Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/abstract-cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/abstract-eth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
5 changes: 5 additions & 0 deletions modules/abstract-eth/src/abstractEthLikeNewCoins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,11 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
},
apiKey
);

if (result && typeof result?.nonce === 'number') {
return Number(result.nonce);
}

if (!result || !Array.isArray(result.result)) {
throw new Error('Unable to find next nonce from Etherscan, got: ' + JSON.stringify(result));
}
Expand Down
4 changes: 2 additions & 2 deletions modules/abstract-lightning/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "yarn tsc --build --incremental --verbose .",
"test": "yarn unit-test",
"unit-test": "nyc -- mocha --recursive test",
"unit-test": "c8 -- mocha --recursive test",
"fmt": "prettier --write .",
"check-fmt": "prettier --check '**/*.{ts,js,json}'",
"clean": "rm -r ./dist",
Expand All @@ -33,7 +33,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
2 changes: 1 addition & 1 deletion modules/abstract-substrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
2 changes: 1 addition & 1 deletion modules/abstract-utxo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/account-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint-fix": "eslint --fix 'src/**/*.ts' 'test/**/*.ts'",
"prepare": "npm run build-ts && shx cp -r ./resources ./dist",
"build-ts": "tsc --build --incremental --verbose .",
"unit-test": "nyc -- mocha",
"unit-test": "c8 -- mocha",
"test": "npm run unit-test",
"unprettied": "grep -R -L --include '*.ts' --include '*.js' --include '*.json' '@prettier' src test"
},
Expand Down Expand Up @@ -100,7 +100,7 @@
"paillier-bigint": "3.3.0",
"shx": "^0.3.4"
},
"nyc": {
"c8": {
"extension": [
".ts"
],
Expand Down
4 changes: 2 additions & 2 deletions modules/bitgo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"webpack-prod": "NODE_OPTIONS=--max-old-space-size=4096 cross-env NODE_ENV=production webpack",
"test": "npm run coverage",
"unit-test": "NODE_OPTIONS=--max-old-space-size=8192 mocha 'test/v2/unit/**/*.ts' 'test/unit/**/*.ts'",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"integration-test": "nyc -- mocha \"test/v2/integration/**/*.ts\"",
"browser-test": "karma start karma.conf.js",
"lint": "eslint --quiet .",
Expand Down Expand Up @@ -162,7 +162,7 @@
"ethereumjs-abi": "^0.6.5",
"ethereumjs-util": "7.1.5"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
2 changes: 1 addition & 1 deletion modules/deser-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://github.com/bitgo/bitgojs/issues"
},
"homepage": "https://github.com/bitgo/bitgojs#readme",
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
8 changes: 4 additions & 4 deletions modules/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"scripts": {
"test": "yarn unit-test",
"unit-test": "yarn nyc -- mocha",
"integration-test": "yarn nyc -- mocha \"test/integration/**/*.ts\"",
"unit-test": "yarn c8 -- mocha",
"integration-test": "yarn c8 -- mocha \"test/integration/**/*.ts\"",
"clean": "rm -rf dist/*",
"prepare": "yarn build",
"audit": "if [ \"$(npm --version | cut -d. -f1)\" -ge \"6\" ]; then npm audit; else echo \"npm >= 6 required to perform audit. skipping...\"; fi",
Expand Down Expand Up @@ -72,7 +72,7 @@
"@types/supertest": "^2.0.11",
"keccak": "^3.0.3",
"nock": "^13.3.1",
"nyc": "^15.0.0",
"c8": "^10.1.3",
"should": "^13.2.3",
"should-http": "^0.1.1",
"should-sinon": "^0.0.6",
Expand All @@ -87,7 +87,7 @@
"yarn eslint --fix"
]
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
2 changes: 1 addition & 1 deletion modules/key-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha 'test/unit/**/*.ts'"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-ada/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-algo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-apechain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-apt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-arbeth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-asi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-atom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-avaxc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-avaxp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"scriptsComment": {
Expand All @@ -37,7 +37,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-baby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-bch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-bcha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-bera/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --quiet .",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
"coverage": "c8 -- npm run unit-test",
"unit-test": "mocha"
},
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
Expand All @@ -34,7 +34,7 @@
"publishConfig": {
"access": "public"
},
"nyc": {
"c8": {
"extension": [
".ts"
]
Expand Down
Loading
Loading