Skip to content

Commit

Permalink
feat: adding support for non-bitgo recovery for coredao and oas
Browse files Browse the repository at this point in the history
Ticket: WIN-4290
  • Loading branch information
parasgarg-bitgo committed Jan 9, 2025
1 parent 6f6d2c0 commit 37f5e49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/sdk-api/src/bitgoAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ export class BitGoAPI implements BitGoBase {
'optimisticEtherscanApiToken',
'zksyncExplorerApiToken',
'bscscanApiToken',
'coredaoExplorerApiToken',
'oasExplorerApiToken',
];

Object.keys(params).forEach((key) => {
Expand Down
4 changes: 4 additions & 0 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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, {
Expand Down
4 changes: 4 additions & 0 deletions modules/statics/src/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export class CoinMap {
421614: 'tarbeth',
10: 'opeth',
11155420: 'topeth',
1116: 'coredao',
1115: 'tcoredao',
248: 'oas',
9372: 'toas',
};
return ethLikeCoinFromChainId[chainId];
}
Expand Down

0 comments on commit 37f5e49

Please sign in to comment.