Skip to content
Draft
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 @@ -84,6 +84,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.PHRS &&
n.asset !== UnderlyingAsset.CTC &&
n.asset !== UnderlyingAsset.HYPEEVM &&
n.asset !== UnderlyingAsset.HEMI &&
n.asset !== UnderlyingAsset.XPL &&
n.asset !== UnderlyingAsset.SONEIUM &&
n.asset !== UnderlyingAsset.VET &&
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 @@ -290,6 +290,9 @@ const mainnetBase: EnvironmentTemplate = {
baseUrl: 'https://mainnet.mirrornode.hedera.com/api/v1',
rpcUrl: 'https://mainnet.hashio.io/api',
},
hemi: {
baseUrl: 'https://explorer.hemi.xyz/api',
},
fluenteth: {
baseUrl: 'https://testnet.fluentscan.xyz/api/', //TODO: COIN-6478: add mainnet url when available
},
Expand Down Expand Up @@ -471,6 +474,9 @@ const testnetBase: EnvironmentTemplate = {
baseUrl: 'https://testnet.mirrornode.hedera.com/api/v1',
rpcUrl: 'https://testnet.hashio.io/api',
},
hemi: {
baseUrl: 'https://testnet.explorer.hemi.xyz/api',
},
fluenteth: {
baseUrl: 'https://testnet.fluentscan.xyz/api/',
},
Expand Down
46 changes: 46 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,52 @@ export const allCoinsAndTokens = [
CoinFeature.STAKING,
]
),
account(
'6f15e172-0b85-4f4b-be78-13f108d0f2bb',
'hemi',
'Hemi',
Networks.main.hemi,
18,
UnderlyingAsset.HEMI,
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.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
CoinFeature.SUPPORTS_ERC20,
],
KeyCurve.Secp256k1,
'',
'Hemi'
),
account(
'209f235f-ce48-44ac-8804-3af1eab50136',
'themi',
'Testnet Hemi',
Networks.test.hemi,
18,
UnderlyingAsset.HEMI,
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.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
CoinFeature.SUPPORTS_ERC20,
],
KeyCurve.Secp256k1,
'',
'THemi'
),
account(
'23e7eca6-e862-4bc5-bf4f-65eeb8174171',
'sonic',
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 {
HASH = 'hash', // Provenance
HBAR = 'hbar',
HBAREVM = 'hbarevm', // Hedera EVM coin
HEMI = 'hemi',
ICP = 'icp',
INITIA = 'initia',
INJECTIVE = 'injective',
Expand Down Expand Up @@ -594,6 +595,7 @@ export enum UnderlyingAsset {
HASH = 'hash', // Provenance
HBAR = 'hbar', // Hedera main coin
HBAREVM = 'hbarevm', // Hedera EVM coin
HEMI = 'hemi',
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 @@ -2312,6 +2312,24 @@ class HederaEVM extends Mainnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '295';
}

class Hemi extends Mainnet implements EthereumNetwork {
name = 'Hemi';
family = CoinFamily.HEMI;
explorerUrl = 'https://explorer.hemi.xyz/tx/';
accountExplorerUrl = 'https://explorer.hemi.xyz/address/';
chainId = 43111;
nativeCoinOperationHashPrefix = '43111';
}

class HemiTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet Hemi';
family = CoinFamily.HEMI;
explorerUrl = 'https://testnet.explorer.hemi.xyz/tx/';
accountExplorerUrl = 'https://testnet.explorer.hemi.xyz/address/';
chainId = 743111;
nativeCoinOperationHashPrefix = '743111';
}

class PlumeTestnet extends Testnet implements EthereumNetwork {
name = 'PlumeTestnet';
family = CoinFamily.PLUME;
Expand Down Expand Up @@ -2437,6 +2455,7 @@ export const Networks = {
hash: Object.freeze(new Hash()),
hedera: Object.freeze(new Hedera()),
hederaEVM: Object.freeze(new HederaEVM()),
hemi: Object.freeze(new Hemi()),
icp: Object.freeze(new Icp()),
ip: Object.freeze(new IP()),
initia: Object.freeze(new Initia()),
Expand Down Expand Up @@ -2552,6 +2571,7 @@ export const Networks = {
hash: Object.freeze(new HashTestnet()),
hedera: Object.freeze(new HederaTestnet()),
hederaEVM: Object.freeze(new HederaEVMTestnet()),
hemi: Object.freeze(new HemiTestnet()),
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 @@ -95,6 +95,7 @@ export const expectedColdFeatures = {
'fluenteth',
'hash',
'hbarevm',
'hemi',
'icp',
'ip', // Story chain
'initia',
Expand Down Expand Up @@ -161,6 +162,7 @@ export const expectedColdFeatures = {
'tflow',
'tfluenteth',
'thbarevm',
'themi',
'tjovayeth',
'tog',
'tokbxlayer',
Expand Down
Loading