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 @@ -292,6 +292,9 @@ const mainnetBase: EnvironmentTemplate = {
xtzevm: {
baseUrl: 'https://explorer.etherlink.com/api',
},
gasevm: {
baseUrl: 'https://neoxscan.ngd.network/api',
},
flow: {
baseUrl: 'https://evm.flowscan.io',
},
Expand Down Expand Up @@ -509,6 +512,9 @@ const testnetBase: EnvironmentTemplate = {
xtzevm: {
baseUrl: 'https://shadownet.explorer.etherlink.com/api',
},
tgasevm: {
baseUrl: 'https://neoxt4scan.ngd.network/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 @@ -413,6 +413,24 @@ export const allCoinsAndTokens = [
CoinFeature.SUPPORTS_ERC20,
]
),
account(
'7b83f1e2-28f2-464d-84d0-1d36cc738cae',
'gasevm',
'Neo X',
Networks.main.gasevm,
18,
UnderlyingAsset.GASEVM,
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',
Expand Down Expand Up @@ -992,6 +1010,24 @@ export const allCoinsAndTokens = [
CoinFeature.STAKING,
]
),
account(
'c61b81b8-c216-435c-8281-8f8b649e1f94',
'tgasevm',
'Testnet Neo X',
Networks.test.tgasevm,
18,
UnderlyingAsset.GASEVM,
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(
'9fbfb875-fb80-4a37-b844-48b9e48dfcdd',
'zeta',
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export enum CoinFamily {
FANTOM = 'fantom', // Fantom
FLR = 'flr',
FLRP = 'flrp',
GASEVM = 'gasevm', // Neo X EVM sidechain (native GAS token)
H = 'h', // Humanity Protocol
HASH = 'hash', // Provenance
HBAR = 'hbar',
Expand Down Expand Up @@ -610,6 +611,7 @@ export enum UnderlyingAsset {
FLRP = 'flrp',
FLUENTETH = 'fluenteth',
FANTOM = 'fantom', // Fantom
GASEVM = 'gasevm', // Neo X EVM sidechain (native GAS token)
GTC = 'gtc',
H = 'h', // Humanity Protocol
HASH = 'hash', // Provenance
Expand Down
10 changes: 10 additions & 0 deletions modules/statics/src/networkFeatureMapForTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ADA_TOKEN_FEATURES,
APT_FEATURES,
BSC_TOKEN_FEATURES,
EVM_FEATURES,
POLYGON_TOKEN_FEATURES,
POLYX_TOKEN_FEATURES,
SOL_TOKEN_FEATURES,
Expand All @@ -22,6 +23,15 @@ export const networkFeatureMapForTokens: Partial<Record<CoinFamily, CoinFeature[
celo: AccountCoin.DEFAULT_FEATURES,
eth: AccountCoin.DEFAULT_FEATURES,
eos: AccountCoin.DEFAULT_FEATURES,
gasevm: [
...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,
],
hbar: AccountCoin.DEFAULT_FEATURES,
opeth: [...AccountCoin.DEFAULT_FEATURES, CoinFeature.EIP1559],
polygon: POLYGON_TOKEN_FEATURES,
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 @@ -2431,6 +2431,24 @@ class FlowTestnet extends Testnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '545';
}

class GasEvm extends Mainnet implements EthereumNetwork {
name = 'Neo X';
family = CoinFamily.GASEVM;
explorerUrl = 'https://neoxscan.ngd.network/tx/';
accountExplorerUrl = 'https://neoxscan.ngd.network/address/';
chainId = 47763;
nativeCoinOperationHashPrefix = '47763';
}

class GasEvmTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet Neo X';
family = CoinFamily.GASEVM;
explorerUrl = 'https://neoxt4scan.ngd.network/tx/';
accountExplorerUrl = 'https://neoxt4scan.ngd.network/address/';
chainId = 12227332;
nativeCoinOperationHashPrefix = '12227332';
}

class MegaETH extends Mainnet implements EthereumNetwork {
name = 'MegaETH';
family = CoinFamily.MEGAETH;
Expand Down Expand Up @@ -2742,6 +2760,7 @@ export const Networks = {
fiat: Object.freeze(new Fiat()),
fetchai: Object.freeze(new FetchAi()),
flow: Object.freeze(new Flow()),
gasevm: Object.freeze(new GasEvm()),
flr: Object.freeze(new Flare()),
flrP: Object.freeze(new FlareP()),
fluenteth: Object.freeze(new FluentETH()),
Expand Down Expand Up @@ -2864,6 +2883,7 @@ export const Networks = {
fiat: Object.freeze(new FiatTestnet()),
fetchai: Object.freeze(new FetchAiTestnet()),
flow: Object.freeze(new FlowTestnet()),
tgasevm: Object.freeze(new GasEvmTestnet()),
flr: Object.freeze(new FlareTestnet()),
flrP: Object.freeze(new FlarePTestnet()),
fluenteth: Object.freeze(new FluentETHTestnet()),
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 @@ -97,6 +97,7 @@ export const expectedColdFeatures = {
'fetchai',
'flow',
'fluenteth',
'gasevm',
'h',
'hash',
'hbarevm',
Expand Down Expand Up @@ -175,6 +176,7 @@ export const expectedColdFeatures = {
'tfetchai',
'tflow',
'tfluenteth',
'tgasevm',
'th',
'thbarevm',
'themieth',
Expand Down
Loading