Skip to content

Commit 9423f1d

Browse files
authored
Merge pull request #7835 from BitGo/win-8039-mainnet-addition
fix: added mainnet token details TICKET: WIN-8039
2 parents 5fa44b1 + d255978 commit 9423f1d

4 files changed

Lines changed: 37 additions & 10 deletions

File tree

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,11 +2479,11 @@ export const allCoinsAndTokens = [
24792479
account(
24802480
'cf06d1ea-f7c4-4a26-95fd-f71983eba58f',
24812481
'tarc',
2482-
'ARC Testnet',
2482+
'Arc Testnet',
24832483
Networks.test.arc,
24842484
18,
24852485
UnderlyingAsset.ARC,
2486-
BaseUnit.USDC,
2486+
BaseUnit.ETH,
24872487
[
24882488
...EVM_FEATURES,
24892489
CoinFeature.SHARED_EVM_SIGNING,
@@ -2493,10 +2493,26 @@ export const allCoinsAndTokens = [
24932493
CoinFeature.EVM_NON_BITGO_RECOVERY,
24942494
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
24952495
CoinFeature.EVM_COMPATIBLE_WP,
2496-
],
2497-
KeyCurve.Secp256k1,
2498-
'',
2499-
'TARC'
2496+
]
2497+
),
2498+
account(
2499+
'733c4da8-52f7-4f9f-a7dc-897c81453fee',
2500+
'arc',
2501+
'Arc',
2502+
Networks.main.arc,
2503+
18,
2504+
UnderlyingAsset.ARC,
2505+
BaseUnit.ETH,
2506+
[
2507+
...EVM_FEATURES,
2508+
CoinFeature.SHARED_EVM_SIGNING,
2509+
CoinFeature.SHARED_EVM_SDK,
2510+
CoinFeature.EVM_COMPATIBLE_IMS,
2511+
CoinFeature.EVM_COMPATIBLE_UI,
2512+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2513+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2514+
CoinFeature.EVM_COMPATIBLE_WP,
2515+
]
25002516
),
25012517
account(
25022518
'92c6b706-87bc-4a4e-8dd4-2a2c83b724e4',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3775,6 +3775,6 @@ export const ofcCoins = [
37753775
6,
37763776
UnderlyingAsset['tsui:deep']
37773777
),
3778-
ofc('d45636f8-f120-4374-b717-70fe999baa43', 'ofcarc', 'ARC', 18, UnderlyingAsset.ARC, CoinKind.CRYPTO),
3779-
tofc('bc57e64d-045e-4421-aa92-64db0c51e1d7', 'ofctarc', 'ARC Testnet', 18, UnderlyingAsset.ARC, CoinKind.CRYPTO),
3778+
ofc('d45636f8-f120-4374-b717-70fe999baa43', 'ofcarc', 'Arc', 18, UnderlyingAsset.ARC, CoinKind.CRYPTO),
3779+
tofc('bc57e64d-045e-4421-aa92-64db0c51e1d7', 'ofctarc', 'Arc Testnet', 18, UnderlyingAsset.ARC, CoinKind.CRYPTO),
37803780
];

modules/statics/src/networks.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,14 +2221,23 @@ class DogeosTestnet extends Testnet implements EthereumNetwork {
22212221
}
22222222

22232223
class ArcTestnet extends Testnet implements EthereumNetwork {
2224-
name = 'ARC Testnet';
2224+
name = 'Arc Testnet';
22252225
family = CoinFamily.ARC;
22262226
explorerUrl = 'https://testnet.arcscan.app/txs/';
22272227
accountExplorerUrl = 'https://testnet.arcscan.app/address/';
22282228
chainId = 5042002;
22292229
nativeCoinOperationHashPrefix = '5042002';
22302230
}
22312231

2232+
class Arc extends Mainnet implements EthereumNetwork {
2233+
name = 'Arc';
2234+
family = CoinFamily.ARC;
2235+
explorerUrl = 'https://testnet.arcscan.app/txs/'; // change to prod explorer url
2236+
accountExplorerUrl = 'https://testnet.arcscan.app/address/'; // change to prod explorer url when available
2237+
chainId = 5042002; // change to prod chain id when available
2238+
nativeCoinOperationHashPrefix = '5042002'; // change to prod native coin operation hash prefix when available
2239+
}
2240+
22322241
class Tempo extends Mainnet implements EthereumNetwork {
22332242
name = 'Tempo';
22342243
family = CoinFamily.TEMPO;
@@ -2256,6 +2265,7 @@ export const Networks = {
22562265
apechain: Object.freeze(new ApeChain()),
22572266
apt: Object.freeze(new Apt()),
22582267
arbitrum: Object.freeze(new Arbitrum()),
2268+
arc: Object.freeze(new Arc()),
22592269
asi: Object.freeze(new Asi()),
22602270
atom: Object.freeze(new Atom()),
22612271
avalancheC: Object.freeze(new AvalancheC()),
@@ -2363,6 +2373,7 @@ export const Networks = {
23632373
apechain: Object.freeze(new ApeChainTestnet()),
23642374
apt: Object.freeze(new AptTestnet()),
23652375
arbitrum: Object.freeze(new ArbitrumTestnet()),
2376+
arc: Object.freeze(new ArcTestnet()),
23662377
asi: Object.freeze(new AsiTestnet()),
23672378
atom: Object.freeze(new AtomTestnet()),
23682379
avalancheC: Object.freeze(new AvalancheCTestnet()),
@@ -2468,6 +2479,5 @@ export const Networks = {
24682479
zCash: Object.freeze(new ZCashTestnet()),
24692480
zeta: Object.freeze(new ZetaTestnet()),
24702481
zkSync: Object.freeze(new ZkSyncTestnet()),
2471-
arc: Object.freeze(new ArcTestnet()),
24722482
},
24732483
};

modules/statics/test/unit/fixtures/expectedColdFeatures.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export const expectedColdFeatures = {
7272
'ada',
7373
'apechain',
7474
'apt',
75+
'arc',
7576
'asi',
7677
'atom',
7778
'baby',

0 commit comments

Comments
 (0)