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
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 @@ -266,6 +266,9 @@ const mainnetBase: EnvironmentTemplate = {
megaeth: {
baseUrl: 'https://carrot.megaeth.com/rpc', //TODO: add mainnet url when available
},
hedera: {
baseUrl: 'https://server-verify.hashscan.io/verify',
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
Expand Down Expand Up @@ -400,6 +403,9 @@ const testnetBase: EnvironmentTemplate = {
plume: {
baseUrl: 'https://testnet-explorer.plume.org/api',
},
hedera: {
baseUrl: 'https://server-verify.hashscan.io/verify',
},
},
stxNodeUrl: 'https://api.testnet.hiro.so',
vetNodeUrl: 'https://sync-testnet.vechain.org',
Expand Down
38 changes: 38 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2121,6 +2121,44 @@ export const allCoinsAndTokens = [
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
]
),
account(
'577efbd5-4f61-4620-a736-5a2655d1521d',
'hbarevm',
'Hedera EVM',
Networks.main.hederaEVM,
8,
UnderlyingAsset.HBAREVM,
BaseUnit.HBAR,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
CoinFeature.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
]
),
account(
'd38fb9c4-2949-404b-85be-7c828a416de9',
'thbarevm',
'Testnet Hedera EVM',
Networks.test.hederaEVM,
8,
UnderlyingAsset.HBAREVM,
BaseUnit.HBAR,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
CoinFeature.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
]
),
canton(
'07385320-5a4f-48e9-97a5-86d4be9f24b0',
'canton',
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 @@ -60,6 +60,7 @@ export enum CoinFamily {
FLRP = 'flrp',
HASH = 'hash', // Provenance
HBAR = 'hbar',
HBAREVM = 'hbarevm', // Hedera EVM coin
ICP = 'icp',
INITIA = 'initia',
INJECTIVE = 'injective',
Expand Down Expand Up @@ -536,6 +537,7 @@ export enum UnderlyingAsset {
GTC = 'gtc',
HASH = 'hash', // Provenance
HBAR = 'hbar', // Hedera main coin
HBAREVM = 'hbarevm', // Hedera EVM coin
ICP = 'icp',
IP = 'ip', // Story Chain
INITIA = 'initia',
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 @@ -1992,6 +1992,24 @@ class Plume extends Mainnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '98866';
}

class HederaEVMTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet Hedera EVM';
family = CoinFamily.HBAREVM;
explorerUrl = 'https://hashscan.io/mainnet/transactions/';
accountExplorerUrl = 'https://hashscan.io/mainnet/account/';
chainId = 296;
nativeCoinOperationHashPrefix = '296';
}

class HederaEVM extends Mainnet implements EthereumNetwork {
name = 'Hedera EVM';
family = CoinFamily.HBAREVM;
explorerUrl = 'https://hashscan.io/testnet/transaction/';
accountExplorerUrl = 'https://hashscan.io/testnet/account/';
chainId = 295;
nativeCoinOperationHashPrefix = '295';
}

class PlumeTestnet extends Testnet implements EthereumNetwork {
name = 'PlumeTestnet';
family = CoinFamily.PLUME;
Expand Down Expand Up @@ -2055,6 +2073,7 @@ export const Networks = {
flrP: Object.freeze(new FlareP()),
hash: Object.freeze(new Hash()),
hedera: Object.freeze(new Hedera()),
hederaEVM: Object.freeze(new HederaEVM()),
icp: Object.freeze(new Icp()),
ip: Object.freeze(new IP()),
initia: Object.freeze(new Initia()),
Expand Down Expand Up @@ -2155,6 +2174,7 @@ export const Networks = {
ethereumClassicTestnet: Object.freeze(new EthereumClassicTestnet()),
hash: Object.freeze(new HashTestnet()),
hedera: Object.freeze(new HederaTestnet()),
hederaEVM: Object.freeze(new HederaEVMTestnet()),
icp: Object.freeze(new IcpTestnet()),
ip: Object.freeze(new IPTestnet()),
initia: Object.freeze(new InitiaTestnet()),
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 @@ -74,6 +74,7 @@ export const expectedColdFeatures = {
'flow',
'flr',
'hash',
'hbarevm',
'icp',
'ip', // Story chain
'initia',
Expand Down Expand Up @@ -129,6 +130,7 @@ export const expectedColdFeatures = {
'tfetchai',
'tflow',
'tflr',
'thbarevm',
'tog',
'tmegaeth',
'tmon',
Expand Down