Skip to content

Commit d9da300

Browse files
committed
feat: recovery support for Hedera EVM
ticket: win-7852
1 parent 2e80147 commit d9da300

File tree

107 files changed

+927
-519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+927
-519
lines changed

modules/abstract-cosmos/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"publishConfig": {
3333
"access": "public"
3434
},
35-
"nyc": {
35+
"c8": {
3636
"extension": [
3737
".ts"
3838
]

modules/abstract-eth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint": "eslint --quiet .",
1313
"prepare": "npm run build",
1414
"test": "npm run coverage",
15-
"coverage": "nyc -- npm run unit-test",
15+
"coverage": "c8 -- npm run unit-test",
1616
"unit-test": "mocha"
1717
},
1818
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
@@ -34,7 +34,7 @@
3434
"publishConfig": {
3535
"access": "public"
3636
},
37-
"nyc": {
37+
"c8": {
3838
"extension": [
3939
".ts"
4040
]

modules/abstract-eth/src/abstractEthLikeNewCoins.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,11 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
902902
},
903903
apiKey
904904
);
905+
906+
if (result && typeof result?.nonce === 'number') {
907+
return Number(result.nonce);
908+
}
909+
905910
if (!result || !Array.isArray(result.result)) {
906911
throw new Error('Unable to find next nonce from Etherscan, got: ' + JSON.stringify(result));
907912
}

modules/abstract-lightning/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"build": "yarn tsc --build --incremental --verbose .",
99
"test": "yarn unit-test",
10-
"unit-test": "nyc -- mocha --recursive test",
10+
"unit-test": "c8 -- mocha --recursive test",
1111
"fmt": "prettier --write .",
1212
"check-fmt": "prettier --check '**/*.{ts,js,json}'",
1313
"clean": "rm -r ./dist",
@@ -33,7 +33,7 @@
3333
"publishConfig": {
3434
"access": "public"
3535
},
36-
"nyc": {
36+
"c8": {
3737
"extension": [
3838
".ts"
3939
]

modules/abstract-substrate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"publishConfig": {
3333
"access": "public"
3434
},
35-
"nyc": {
35+
"c8": {
3636
"extension": [
3737
".ts"
3838
]

modules/abstract-utxo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"publishConfig": {
3838
"access": "public"
3939
},
40-
"nyc": {
40+
"c8": {
4141
"extension": [
4242
".ts"
4343
]

modules/account-lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint-fix": "eslint --fix 'src/**/*.ts' 'test/**/*.ts'",
1313
"prepare": "npm run build-ts && shx cp -r ./resources ./dist",
1414
"build-ts": "tsc --build --incremental --verbose .",
15-
"unit-test": "nyc -- mocha",
15+
"unit-test": "c8 -- mocha",
1616
"test": "npm run unit-test",
1717
"unprettied": "grep -R -L --include '*.ts' --include '*.js' --include '*.json' '@prettier' src test"
1818
},
@@ -100,7 +100,7 @@
100100
"paillier-bigint": "3.3.0",
101101
"shx": "^0.3.4"
102102
},
103-
"nyc": {
103+
"c8": {
104104
"extension": [
105105
".ts"
106106
],

modules/bitgo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"webpack-prod": "NODE_OPTIONS=--max-old-space-size=4096 cross-env NODE_ENV=production webpack",
2828
"test": "npm run coverage",
2929
"unit-test": "NODE_OPTIONS=--max-old-space-size=8192 mocha 'test/v2/unit/**/*.ts' 'test/unit/**/*.ts'",
30-
"coverage": "nyc -- npm run unit-test",
30+
"coverage": "c8 -- npm run unit-test",
3131
"integration-test": "nyc -- mocha \"test/v2/integration/**/*.ts\"",
3232
"browser-test": "karma start karma.conf.js",
3333
"lint": "eslint --quiet .",
@@ -162,7 +162,7 @@
162162
"ethereumjs-abi": "^0.6.5",
163163
"ethereumjs-util": "7.1.5"
164164
},
165-
"nyc": {
165+
"c8": {
166166
"extension": [
167167
".ts"
168168
]

modules/deser-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"url": "https://github.com/bitgo/bitgojs/issues"
2626
},
2727
"homepage": "https://github.com/bitgo/bitgojs#readme",
28-
"nyc": {
28+
"c8": {
2929
"extension": [
3030
".ts"
3131
]

modules/express/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
},
2222
"scripts": {
2323
"test": "yarn unit-test",
24-
"unit-test": "yarn nyc -- mocha",
25-
"integration-test": "yarn nyc -- mocha \"test/integration/**/*.ts\"",
24+
"unit-test": "yarn c8 -- mocha",
25+
"integration-test": "yarn c8 -- mocha \"test/integration/**/*.ts\"",
2626
"clean": "rm -rf dist/*",
2727
"prepare": "yarn build",
2828
"audit": "if [ \"$(npm --version | cut -d. -f1)\" -ge \"6\" ]; then npm audit; else echo \"npm >= 6 required to perform audit. skipping...\"; fi",
@@ -72,7 +72,7 @@
7272
"@types/supertest": "^2.0.11",
7373
"keccak": "^3.0.3",
7474
"nock": "^13.3.1",
75-
"nyc": "^15.0.0",
75+
"c8": "^10.1.3",
7676
"should": "^13.2.3",
7777
"should-http": "^0.1.1",
7878
"should-sinon": "^0.0.6",
@@ -87,7 +87,7 @@
8787
"yarn eslint --fix"
8888
]
8989
},
90-
"nyc": {
90+
"c8": {
9191
"extension": [
9292
".ts"
9393
]

0 commit comments

Comments
 (0)