From 37f5e4996c115543d068750d633ea5c5ae723725 Mon Sep 17 00:00:00 2001 From: Paras Garg Date: Thu, 9 Jan 2025 12:44:08 +0530 Subject: [PATCH] feat: adding support for non-bitgo recovery for coredao and oas Ticket: WIN-4290 --- modules/sdk-api/src/bitgoAPI.ts | 2 ++ modules/sdk-core/src/bitgo/environments.ts | 4 ++++ modules/statics/src/map.ts | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/modules/sdk-api/src/bitgoAPI.ts b/modules/sdk-api/src/bitgoAPI.ts index a6d07356b5..ad425bd4ab 100644 --- a/modules/sdk-api/src/bitgoAPI.ts +++ b/modules/sdk-api/src/bitgoAPI.ts @@ -235,6 +235,8 @@ export class BitGoAPI implements BitGoBase { 'optimisticEtherscanApiToken', 'zksyncExplorerApiToken', 'bscscanApiToken', + 'coredaoExplorerApiToken', + 'oasExplorerApiToken', ]; Object.keys(params).forEach((key) => { diff --git a/modules/sdk-core/src/bitgo/environments.ts b/modules/sdk-core/src/bitgo/environments.ts index ab1b011f64..1eec781efd 100644 --- a/modules/sdk-core/src/bitgo/environments.ts +++ b/modules/sdk-core/src/bitgo/environments.ts @@ -153,6 +153,8 @@ const mainnetBase: EnvironmentTemplate = { hmacVerificationEnforced: true, suiNodeUrl: 'https://fullnode.mainnet.sui.io', etcNodeUrl: 'https://etc.blockscout.com', + coredaoExplorerBaseUrl: 'https://scan.coredao.org/', + oasExplorerBaseUrl: 'https://explorer.oasys.games', }; const testnetBase: EnvironmentTemplate = { @@ -205,6 +207,8 @@ const testnetBase: EnvironmentTemplate = { hmacVerificationEnforced: false, suiNodeUrl: 'https://fullnode.testnet.sui.io', etcNodeUrl: 'https://etc-mordor.blockscout.com', + coredaoExplorerBaseUrl: 'https://scan.test.btcs.network', + oasExplorerBaseUrl: 'https://explorer.testnet.oasys.games', }; const devBase: EnvironmentTemplate = Object.assign({}, testnetBase, { diff --git a/modules/statics/src/map.ts b/modules/statics/src/map.ts index 73736af53f..3bccb38554 100644 --- a/modules/statics/src/map.ts +++ b/modules/statics/src/map.ts @@ -56,6 +56,10 @@ export class CoinMap { 421614: 'tarbeth', 10: 'opeth', 11155420: 'topeth', + 1116: 'coredao', + 1115: 'tcoredao', + 248: 'oas', + 9372: 'toas', }; return ethLikeCoinFromChainId[chainId]; }