Skip to content

Commit 9415d58

Browse files
committed
fix(mbe): added etherscan api token as recovery params
TICKET: WP-5168
1 parent b254361 commit 9415d58

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

masterBitgoExpress.json

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,6 @@
462462
"ledgerSequenceDelta": {
463463
"type": "number"
464464
},
465-
"gasPrice": {
466-
"type": "number"
467-
},
468465
"noSplitChange": {
469466
"type": "boolean"
470467
},
@@ -762,6 +759,36 @@
762759
"coinSpecificParams": {
763760
"type": "object",
764761
"properties": {
762+
"ecdsaCosmosLikeRecoverySpecificParams": {
763+
"type": "object",
764+
"properties": {
765+
"rootAddress": {
766+
"type": "string"
767+
}
768+
},
769+
"required": [
770+
"rootAddress"
771+
]
772+
},
773+
"ecdsaEthLikeRecoverySpecificParams": {
774+
"type": "object",
775+
"properties": {
776+
"apiKey": {
777+
"type": "string"
778+
},
779+
"bitgoDestinationAddress": {
780+
"type": "string"
781+
},
782+
"walletContractAddress": {
783+
"type": "string"
784+
}
785+
},
786+
"required": [
787+
"apiKey",
788+
"bitgoDestinationAddress",
789+
"walletContractAddress"
790+
]
791+
},
765792
"evmRecoveryOptions": {
766793
"type": "object",
767794
"properties": {

src/api/master/handlers/recoveryWallet.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export async function handleRecoveryWalletOnPrem(
271271
gasLimit,
272272
bitgoDestinationAddress: coinSpecificParams?.ecdsaEthLikeRecoverySpecificParams
273273
?.bitgoDestinationAddress as string,
274+
apiKey: coinSpecificParams?.ecdsaEthLikeRecoverySpecificParams?.apiKey
274275
};
275276
} else if (isCosmosLikeCoin(sdkCoin)) {
276277
params.cosmosLikeParams = {

src/api/master/routers/masterApiSpec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const RecoveryParamTypes = {
7979
ecdsaEthLikeRecoverySpecificParams: t.type({
8080
walletContractAddress: t.string,
8181
bitgoDestinationAddress: t.string,
82+
apiKey: t.string,
8283
}),
8384

8485
// ECDSA Cosmos-like recovery specific parameters

0 commit comments

Comments
 (0)