Skip to content

Commit 958f9dd

Browse files
committed
feat(statics): added statics config for arc TICKET: WIN-8039
1 parent 9984f25 commit 958f9dd

File tree

8 files changed

+47
-0
lines changed

8 files changed

+47
-0
lines changed

modules/bitgo/test/v2/unit/keychains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ describe('V2 Keychains', function () {
107107
n.asset !== UnderlyingAsset.MORPH &&
108108
n.asset !== UnderlyingAsset.DOGEOS &&
109109
n.asset !== UnderlyingAsset.MEGAETH &&
110+
n.asset !== UnderlyingAsset.ARC &&
110111
coinFamilyValues.includes(n.name)
111112
);
112113

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ const mainnetBase: EnvironmentTemplate = {
300300
dogeos: {
301301
baseUrl: 'https://blockscout.testnet.dogeos.com', //TODO: WIN-8082 => add mainnet url when available
302302
},
303+
arc: {
304+
baseUrl: 'https://testnet.arcscan.app/api/v2', // WIN-8039 => add testnet url when available
305+
},
303306
},
304307
icpNodeUrl: 'https://ic0.app',
305308
worldExplorerBaseUrl: 'https://worldscan.org/',
@@ -463,6 +466,9 @@ const testnetBase: EnvironmentTemplate = {
463466
dogeos: {
464467
baseUrl: 'https://blockscout.testnet.dogeos.com',
465468
},
469+
arc: {
470+
baseUrl: 'https://testnet.arcscan.app/api/v2',
471+
},
466472
},
467473
stxNodeUrl: 'https://api.testnet.hiro.so',
468474
vetNodeUrl: 'https://sync-testnet.vechain.org',

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,6 +2466,28 @@ export const allCoinsAndTokens = [
24662466
'',
24672467
'DogeOS'
24682468
),
2469+
account(
2470+
'cf06d1ea-f7c4-4a26-95fd-f71983eba58f',
2471+
'tarc',
2472+
'ARC Testnet',
2473+
Networks.test.arc,
2474+
18,
2475+
UnderlyingAsset.ARC,
2476+
BaseUnit.USDC,
2477+
[
2478+
...EVM_FEATURES,
2479+
CoinFeature.SHARED_EVM_SIGNING,
2480+
CoinFeature.SHARED_EVM_SDK,
2481+
CoinFeature.EVM_COMPATIBLE_IMS,
2482+
CoinFeature.EVM_COMPATIBLE_UI,
2483+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2484+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2485+
CoinFeature.EVM_COMPATIBLE_WP,
2486+
],
2487+
KeyCurve.Secp256k1,
2488+
'',
2489+
'TARC'
2490+
),
24692491
canton(
24702492
'07385320-5a4f-48e9-97a5-86d4be9f24b0',
24712493
'canton',

modules/statics/src/base.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export enum CoinFamily {
125125
SOMI = 'somi', // Somnia Chain
126126
FLUENTETH = 'fluenteth',
127127
MORPH = 'morph',
128+
ARC = 'arc', // ARC network
128129
}
129130

130131
/**
@@ -704,6 +705,7 @@ export enum UnderlyingAsset {
704705
APPC = 'appc',
705706
APT = 'apt',
706707
AQT = 'aqt',
708+
ARC = 'arc',
707709
ARCT = 'arct',
708710
ARCX = 'arcx',
709711
ARKM = 'arkm',
@@ -3525,6 +3527,7 @@ export enum BaseUnit {
35253527
TCRONOS = 'basetcro',
35263528
TASI = 'atestfet',
35273529
CANTON = 'canton',
3530+
USDC = 'usdc',
35283531
}
35293532

35303533
export interface BaseCoinConstructorOptions {

modules/statics/src/coins/ofcCoins.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3733,4 +3733,6 @@ export const ofcCoins = [
37333733
6,
37343734
UnderlyingAsset['tsui:deep']
37353735
),
3736+
ofc('d45636f8-f120-4374-b717-70fe999baa43', 'ofcarc', 'ARC', 18, UnderlyingAsset.ARC, CoinKind.CRYPTO),
3737+
tofc('bc57e64d-045e-4421-aa92-64db0c51e1d7', 'ofctarc', 'ARC Testnet', 18, UnderlyingAsset.ARC, CoinKind.CRYPTO),
37363738
];

modules/statics/src/map.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export class CoinMap {
156156
1952: 'tokb',
157157
5734951: 'jovayeth',
158158
2019775: 'tjovayeth',
159+
5042002: 'tarc',
159160
};
160161
return ethLikeCoinFromChainId[chainId];
161162
}

modules/statics/src/networks.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,15 @@ class DogeosTestnet extends Testnet implements EthereumNetwork {
22202220
nativeCoinOperationHashPrefix = '6281971';
22212221
}
22222222

2223+
class ArcTestnet extends Testnet implements EthereumNetwork {
2224+
name = 'ARC';
2225+
family = CoinFamily.ARC;
2226+
explorerUrl = 'https://testnet.arcscan.app/txs/';
2227+
accountExplorerUrl = 'https://testnet.arcscan.app/address/';
2228+
chainId = 5042002;
2229+
nativeCoinOperationHashPrefix = '5042002';
2230+
}
2231+
22232232
export const Networks = {
22242233
main: {
22252234
ada: Object.freeze(new Ada()),
@@ -2437,5 +2446,6 @@ export const Networks = {
24372446
zCash: Object.freeze(new ZCashTestnet()),
24382447
zeta: Object.freeze(new ZetaTestnet()),
24392448
zkSync: Object.freeze(new ZkSyncTestnet()),
2449+
arc: Object.freeze(new ArcTestnet()),
24402450
},
24412451
};

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

Lines changed: 2 additions & 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',
@@ -136,6 +137,7 @@ export const expectedColdFeatures = {
136137
'tatom',
137138
'tapechain',
138139
'tapt',
140+
'tarc',
139141
'tbaby',
140142
'tbera',
141143
'tbaseeth',

0 commit comments

Comments
 (0)