Skip to content
Open
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
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 @@ -283,6 +283,9 @@ const mainnetBase: EnvironmentTemplate = {
baseUrl: 'https://explorer.fantom.network',
rpcUrl: 'https://rpcapi.fantom.network/',
},
xtzevm: {
baseUrl: 'https://explorer.etherlink.com/api',
},
flow: {
baseUrl: 'https://evm.flowscan.io',
},
Expand Down Expand Up @@ -470,6 +473,9 @@ const testnetBase: EnvironmentTemplate = {
baseUrl: 'https://api.etherscan.io/v2',
apiToken: process.env.ETHERSCAN_API_TOKEN,
},
xtzevm: {
baseUrl: 'https://shadownet.explorer.etherlink.com/api',
},
flow: {
baseUrl: 'https://evm-testnet.flowscan.io',
},
Expand Down
36 changes: 36 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,42 @@ export const allCoinsAndTokens = [
BaseUnit.ETH,
[...AccountCoin.DEFAULT_FEATURES]
),
account(
'260a8571-1f89-40ad-af8d-c58a391581b5',
'xtzevm',
'XTZ EVM',
Networks.main.xtzevm,
18,
UnderlyingAsset.XTZEVM,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
CoinFeature.SUPPORTS_ERC20,
]
),
account(
'e7fdbd6f-93ff-4dda-8a57-81580827188e',
'txtzevm',
'Testnet XTZ EVM',
Networks.test.xtzevm,
18,
UnderlyingAsset.XTZEVM,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
CoinFeature.SUPPORTS_ERC20,
]
),
account(
'2660f6f6-1980-4584-a0b3-487d4a832b9f',
'tbaseeth',
Expand Down
14 changes: 8 additions & 6 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export enum CoinFamily {
DOGEOS = 'dogeos',
DOT = 'dot',
DYDX = 'dydx',
EOS = 'eos',
ETC = 'etc',
ETH = 'eth',
ETH2 = 'eth2',
ETHW = 'ethw',
ETC = 'etc',
EOS = 'eos',
FETCHAI = 'fetchai',
FIAT = 'fiat',
FLOW = 'flow',
Expand Down Expand Up @@ -121,6 +121,7 @@ export enum CoinFamily {
XLM = 'xlm',
XRP = 'xrp',
XTZ = 'xtz',
XTZEVM = 'xtzevm', // Etherlink (XTZ EVM L2)
ZEC = 'zec',
ZETA = 'zeta',
ZKETH = 'zketh',
Expand Down Expand Up @@ -577,12 +578,12 @@ export enum UnderlyingAsset {
COREUM = 'coreum',
CRONOS = 'cronos',
CSPR = 'cspr',
EOS = 'eos',
ERD = 'erd',
ETC = 'etc',
ETH = 'eth',
ETH2 = 'eth2',
ETHW = 'ethw',
ETC = 'etc',
EOS = 'eos',
ERD = 'erd',
EURCVV0 = 'eurcvv0',
EURCV = 'eurcv',
EUROC = 'euroc',
Expand Down Expand Up @@ -648,10 +649,11 @@ export enum UnderlyingAsset {
VET = 'vet',
WEMIX = 'wemix',
WORLD = 'world',
XLM = 'xlm',
XDC = 'xdc',
XLM = 'xlm',
XRP = 'xrp',
XTZ = 'xtz',
XTZEVM = 'xtzevm', // Etherlink (XTZ EVM L2)
ZEC = 'zec',
ZETA = 'zeta',
ZKETH = 'zketh',
Expand Down
9 changes: 9 additions & 0 deletions modules/statics/src/coins/ofcCoins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,15 @@ export const ofcCoins = [
UnderlyingAsset.HYPEEVM,
CoinKind.CRYPTO
),
ofc('dc825481-0a15-44ab-84e6-6f182b13eb87', 'ofcxtzevm', 'XTZ EVM', 18, UnderlyingAsset.XTZEVM, CoinKind.CRYPTO),
tofc(
'0e42884b-c01e-461b-b108-1ed0d0fbbd7b',
'ofctxtzevm',
'XTZ EVM Testnet',
18,
UnderlyingAsset.XTZEVM,
CoinKind.CRYPTO
),
tofc(
'3eb80dc2-98bc-40ee-a27c-b4572e0d7270',
'ofcthypeevm',
Expand Down
20 changes: 20 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,24 @@ class EthereumW extends Mainnet implements EthereumNetwork {
tokenOperationHashPrefix = 'ERC20';
}

class XtzEvm extends Mainnet implements EthereumNetwork {
name = 'XTZ EVM';
family = CoinFamily.XTZEVM;
explorerUrl = 'https://explorer.etherlink.com/tx/';
accountExplorerUrl = 'https://explorer.etherlink.com/address/';
chainId = 42793;
nativeCoinOperationHashPrefix = '42793';
}

class XtzEvmTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet XTZ EVM';
family = CoinFamily.XTZEVM;
explorerUrl = 'https://shadownet.explorer.etherlink.com/tx/';
accountExplorerUrl = 'https://shadownet.explorer.etherlink.com/address/';
chainId = 128123;
nativeCoinOperationHashPrefix = '128123';
}

class Pyrmont extends Testnet implements AccountNetwork {
name = 'Pyrmont';
family = CoinFamily.ETH2;
Expand Down Expand Up @@ -2539,6 +2557,7 @@ export const Networks = {
xpl: Object.freeze(new Plasma()),
xrp: Object.freeze(new Xrp()),
xtz: Object.freeze(new Xtz()),
xtzevm: Object.freeze(new XtzEvm()),
zCash: Object.freeze(new ZCash()),
zeta: Object.freeze(new Zeta()),
zkSync: Object.freeze(new ZkSync()),
Expand Down Expand Up @@ -2658,6 +2677,7 @@ export const Networks = {
xpl: Object.freeze(new PlasmaTestnet()),
xrp: Object.freeze(new XrpTestnet()),
xtz: Object.freeze(new XtzTestnet()),
xtzevm: Object.freeze(new XtzEvmTestnet()),
zCash: Object.freeze(new ZCashTestnet()),
zeta: Object.freeze(new ZetaTestnet()),
zkSync: Object.freeze(new ZkSyncTestnet()),
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/test/unit/fixtures/expectedColdFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const expectedColdFeatures = {
'dogeos',
'dot',
'dydxcosmos',
'xtzevm',
'fetchai',
'flow',
'fluenteth',
Expand Down Expand Up @@ -160,6 +161,7 @@ export const expectedColdFeatures = {
'tdogeos',
'tdot',
'tdydxcosmos',
'txtzevm',
'tfetchai',
'tflow',
'tfluenteth',
Expand Down