Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/bitgo/test/v2/unit/keychains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.MORPH &&
n.asset !== UnderlyingAsset.DOGEOS &&
n.asset !== UnderlyingAsset.MEGAETH &&
n.asset !== UnderlyingAsset.ARC &&
coinFamilyValues.includes(n.name)
);

Expand Down
6 changes: 6 additions & 0 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ const mainnetBase: EnvironmentTemplate = {
dogeos: {
baseUrl: 'https://blockscout.testnet.dogeos.com', //TODO: WIN-8082 => add mainnet url when available
},
arc: {
baseUrl: 'https://testnet.arcscan.app/api/v2', // WIN-8039 => add mainnet url when available
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
Expand Down Expand Up @@ -463,6 +466,9 @@ const testnetBase: EnvironmentTemplate = {
dogeos: {
baseUrl: 'https://blockscout.testnet.dogeos.com',
},
arc: {
baseUrl: 'https://testnet.arcscan.app/api/v2',
},
},
stxNodeUrl: 'https://api.testnet.hiro.so',
vetNodeUrl: 'https://sync-testnet.vechain.org',
Expand Down
22 changes: 22 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2466,6 +2466,28 @@ export const allCoinsAndTokens = [
'',
'DogeOS'
),
account(
'cf06d1ea-f7c4-4a26-95fd-f71983eba58f',
'tarc',
'ARC Testnet',
Networks.test.arc,
18,
UnderlyingAsset.ARC,
BaseUnit.USDC,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
CoinFeature.EVM_COMPATIBLE_WP,
],
KeyCurve.Secp256k1,
'',
'TARC'
),
canton(
'07385320-5a4f-48e9-97a5-86d4be9f24b0',
'canton',
Expand Down
3 changes: 3 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export enum CoinFamily {
SOMI = 'somi', // Somnia Chain
FLUENTETH = 'fluenteth',
MORPH = 'morph',
ARC = 'arc', // ARC network
}

/**
Expand Down Expand Up @@ -704,6 +705,7 @@ export enum UnderlyingAsset {
APPC = 'appc',
APT = 'apt',
AQT = 'aqt',
ARC = 'arc',
ARCT = 'arct',
ARCX = 'arcx',
ARKM = 'arkm',
Expand Down Expand Up @@ -3537,6 +3539,7 @@ export enum BaseUnit {
TCRONOS = 'basetcro',
TASI = 'atestfet',
CANTON = 'canton',
USDC = 'usdc',
}

export interface BaseCoinConstructorOptions {
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/src/coins/ofcCoins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3757,4 +3757,6 @@ export const ofcCoins = [
6,
UnderlyingAsset['tsui:deep']
),
ofc('d45636f8-f120-4374-b717-70fe999baa43', 'ofcarc', 'ARC', 18, UnderlyingAsset.ARC, CoinKind.CRYPTO),
tofc('bc57e64d-045e-4421-aa92-64db0c51e1d7', 'ofctarc', 'ARC Testnet', 18, UnderlyingAsset.ARC, CoinKind.CRYPTO),
];
1 change: 1 addition & 0 deletions modules/statics/src/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export class CoinMap {
1952: 'tokb',
5734951: 'jovayeth',
2019775: 'tjovayeth',
5042002: 'tarc',
};

private buildChainIdMap(): Map<number, string> {
Expand Down
10 changes: 10 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2220,6 +2220,15 @@ class DogeosTestnet extends Testnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '6281971';
}

class ArcTestnet extends Testnet implements EthereumNetwork {
name = 'ARC Testnet';
family = CoinFamily.ARC;
explorerUrl = 'https://testnet.arcscan.app/txs/';
accountExplorerUrl = 'https://testnet.arcscan.app/address/';
chainId = 5042002;
nativeCoinOperationHashPrefix = '5042002';
}

export const Networks = {
main: {
ada: Object.freeze(new Ada()),
Expand Down Expand Up @@ -2437,5 +2446,6 @@ export const Networks = {
zCash: Object.freeze(new ZCashTestnet()),
zeta: Object.freeze(new ZetaTestnet()),
zkSync: Object.freeze(new ZkSyncTestnet()),
arc: Object.freeze(new ArcTestnet()),
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export const expectedColdFeatures = {
'tatom',
'tapechain',
'tapt',
'tarc',
'tbaby',
'tbera',
'tbaseeth',
Expand Down