Skip to content

Commit

Permalink
Merge pull request #4830 from BitGo/COIN-1418-non-bitgo-recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
bhupendra11 authored Aug 20, 2024
2 parents 619a2df + 017155b commit 2a9fa19
Show file tree
Hide file tree
Showing 5 changed files with 539 additions and 8 deletions.
8 changes: 8 additions & 0 deletions modules/abstract-eth/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,3 +849,11 @@ export async function recoveryBlockchainExplorerQuery(
}
return response.body;
}

/**
* Default expire time for a contract call (1 week)
* @returns {number} Time in seconds
*/
export function getDefaultExpireTime(): number {
return Math.floor(new Date().getTime() / 1000) + 60 * 60 * 24 * 7;
}
7 changes: 6 additions & 1 deletion modules/sdk-coin-etc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@
"@bitgo/sdk-core": "^27.9.0",
"@bitgo/statics": "^48.28.0",
"@ethereumjs/common": "^2.6.5",
"ethereumjs-abi": "^0.6.5"
"ethereumjs-abi": "^0.6.5",
"ethereumjs-util": "7.1.5",
"lodash": "^4.17.14",
"superagent": "^9.0.1",
"bignumber.js": "^9.1.1",
"@bitgo/utxo-lib": "^10.1.0"
},
"devDependencies": {
"@bitgo/sdk-api": "^1.52.0",
Expand Down
Loading

0 comments on commit 2a9fa19

Please sign in to comment.