Skip to content

Commit 017155b

Browse files
committed
feat(sdk-coin-etc): non-bitgo recovery support for wrw
TICKET: COIN-1418
1 parent f6632b9 commit 017155b

5 files changed

Lines changed: 539 additions & 8 deletions

File tree

modules/abstract-eth/src/lib/utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,3 +849,11 @@ export async function recoveryBlockchainExplorerQuery(
849849
}
850850
return response.body;
851851
}
852+
853+
/**
854+
* Default expire time for a contract call (1 week)
855+
* @returns {number} Time in seconds
856+
*/
857+
export function getDefaultExpireTime(): number {
858+
return Math.floor(new Date().getTime() / 1000) + 60 * 60 * 24 * 7;
859+
}

modules/sdk-coin-etc/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@
4545
"@bitgo/sdk-core": "^27.9.0",
4646
"@bitgo/statics": "^48.28.0",
4747
"@ethereumjs/common": "^2.6.5",
48-
"ethereumjs-abi": "^0.6.5"
48+
"ethereumjs-abi": "^0.6.5",
49+
"ethereumjs-util": "7.1.5",
50+
"lodash": "^4.17.14",
51+
"superagent": "^9.0.1",
52+
"bignumber.js": "^9.1.1",
53+
"@bitgo/utxo-lib": "^10.1.0"
4954
},
5055
"devDependencies": {
5156
"@bitgo/sdk-api": "^1.52.0",

0 commit comments

Comments
 (0)