Skip to content

Commit bc0f59c

Browse files
committed
feat: added hyperliquid with default features
TICKET: CECHO-545 feat: added mpc and tss for hyperliquid TICKET: CECHO-90
1 parent ed6e69b commit bc0f59c

File tree

7 files changed

+62
-0
lines changed

7 files changed

+62
-0
lines changed

modules/bitgo/test/v2/unit/keychains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ describe('V2 Keychains', function () {
114114
n.asset !== UnderlyingAsset.MEGAETH &&
115115
n.asset !== UnderlyingAsset.ARCUSDC &&
116116
n.asset !== UnderlyingAsset.ZKSYNCERA &&
117+
n.asset !== UnderlyingAsset.HYPE &&
117118
coinFamilyValues.includes(n.name)
118119
);
119120

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ interface EnvironmentTemplate {
7777
sgbExplorerBaseUrl?: string;
7878
sgbExplorerApiToken?: string;
7979
icpNodeUrl: string;
80+
hypeNodeUrl: string;
8081
wemixExplorerBaseUrl?: string;
8182
wemixExplorerApiToken?: string;
8283
monExplorerBaseUrl?: string;
@@ -348,6 +349,7 @@ const mainnetBase: EnvironmentTemplate = {
348349
},
349350
},
350351
icpNodeUrl: 'https://ic0.app',
352+
hypeNodeUrl: 'https://api.hyperliquid.xyz',
351353
worldExplorerBaseUrl: 'https://worldscan.org/',
352354
somniaExplorerBaseUrl: 'https://mainnet.somnia.w3us.site/',
353355
soneiumExplorerBaseUrl: 'https://soneium.blockscout.com',
@@ -425,6 +427,7 @@ const testnetBase: EnvironmentTemplate = {
425427
xdcExplorerBaseUrl: 'https://api.etherscan.io/v2',
426428
sgbExplorerBaseUrl: 'https://coston-explorer.flare.network',
427429
icpNodeUrl: 'https://ic0.app',
430+
hypeNodeUrl: 'https://api.hyperliquid-testnet.xyz',
428431
monExplorerBaseUrl: 'https://api.etherscan.io/v2',
429432
worldExplorerBaseUrl: 'https://sepolia.worldscan.org/',
430433
somniaExplorerBaseUrl: 'https://shannon-explorer.somnia.network/',

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ import {
104104
FLR_FEATURES,
105105
GENERIC_TOKEN_FEATURES,
106106
HBAR_FEATURES,
107+
HYPE_FEATURES,
107108
ICP_FEATURES,
108109
INJECTIVE_FEATURES,
109110
IOTA_FEATURES,
@@ -1749,6 +1750,28 @@ export const allCoinsAndTokens = [
17491750
CoinFeature.STAKING,
17501751
]
17511752
),
1753+
account(
1754+
'1d7327a1-80fc-4913-9b72-457087811262',
1755+
'hype',
1756+
'Hyperliquid',
1757+
Networks.main.hype,
1758+
8,
1759+
UnderlyingAsset.HYPE,
1760+
BaseUnit.HYPE,
1761+
HYPE_FEATURES,
1762+
KeyCurve.Secp256k1
1763+
),
1764+
account(
1765+
'd0754b12-26fa-47c2-887f-f19099156ea2',
1766+
'thype',
1767+
'Hyperliquid Testnet',
1768+
Networks.test.hype,
1769+
8,
1770+
UnderlyingAsset.HYPE,
1771+
BaseUnit.HYPE,
1772+
HYPE_FEATURES,
1773+
KeyCurve.Secp256k1
1774+
),
17521775
hypeEvm(
17531776
'e907fdbd-2c5d-45d6-b622-9da38937da73',
17541777
'hypeevm',

modules/statics/src/base.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export enum CoinFamily {
9292
PHRS = 'phrs',
9393
CTC = 'ctc',
9494
HYPEEVM = 'hypeevm',
95+
HYPE = 'hype', // HyperCore L1
9596
NEAR = 'near',
9697
OAS = 'oas',
9798
OFC = 'ofc',
@@ -640,6 +641,7 @@ export enum UnderlyingAsset {
640641
PLUME = 'plume',
641642
CTC = 'ctc',
642643
HYPEEVM = 'hypeevm',
644+
HYPE = 'hype', // HyperCore L1
643645
RBTC = 'rbtc', // RSK main coin
644646
SEI = 'sei',
645647
SEIEVM = 'seievm',
@@ -3772,6 +3774,7 @@ export enum BaseUnit {
37723774
RUNE = 'rune',
37733775
TAO = 'rao',
37743776
ICP = 'e8s',
3777+
HYPE = 'hype',
37753778
MANTRA = 'uom',
37763779
POLYX = 'micropolyx',
37773780
CRONOS = 'basecro',

modules/statics/src/coinFeatures.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,13 @@ export const COREDAO_FEATURES = [
600600
CoinFeature.ERC20_BULK_TRANSACTION,
601601
];
602602
export const TEMPO_FEATURES = [...EVM_FEATURES];
603+
export const HYPE_FEATURES = [
604+
...ACCOUNT_COIN_DEFAULT_FEATURES,
605+
CoinFeature.TSS,
606+
CoinFeature.TSS_COLD,
607+
CoinFeature.MPCV2,
608+
CoinFeature.SHA256_WITH_ECDSA_TSS,
609+
];
603610
export const APECHAIN_FEATURES = [
604611
...ETH_FEATURES,
605612
CoinFeature.TSS,

modules/statics/src/coins/ofcCoins.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,15 @@ export const ofcCoins = [
238238
UnderlyingAsset.HYPEEVM,
239239
CoinKind.CRYPTO
240240
),
241+
ofc('10ca4011-4409-42af-a275-bb531ae717b7', 'ofchype', 'Hyperliquid', 8, UnderlyingAsset.HYPE, CoinKind.CRYPTO),
242+
tofc(
243+
'a76394f3-7c14-4d27-bfa8-8920a3ea30d0',
244+
'ofcthype',
245+
'Testnet Hyperliquid',
246+
8,
247+
UnderlyingAsset.HYPE,
248+
CoinKind.CRYPTO
249+
),
241250
ofc('c7350490-f1c0-4f76-8db4-832dc18a2efe', 'ofcseievm', 'Sei EVM', 18, UnderlyingAsset.SEIEVM, CoinKind.CRYPTO),
242251
tofc(
243252
'12d3f26a-dede-429b-8ba6-126293a8e02a',

modules/statics/src/networks.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,20 @@ class HypeEVM extends Mainnet implements EthereumNetwork {
16661666
batcherContractAddress = '0x3e1e5d78e44f15593b3b61ed278f12c27f0ff33e';
16671667
}
16681668

1669+
class Hyperliquid extends Mainnet implements AccountNetwork {
1670+
name = 'Hyperliquid';
1671+
family = CoinFamily.HYPE;
1672+
explorerUrl = 'https://app.hyperliquid.xyz/explorer';
1673+
accountExplorerUrl = 'https://app.hyperliquid.xyz/explorer';
1674+
}
1675+
1676+
class HyperliquidTestnet extends Testnet implements AccountNetwork {
1677+
name = 'HyperliquidTestnet';
1678+
family = CoinFamily.HYPE;
1679+
explorerUrl = 'https://app.hyperliquid-testnet.xyz/explorer';
1680+
accountExplorerUrl = 'https://app.hyperliquid-testnet.xyz/explorer';
1681+
}
1682+
16691683
class KavaEVMTestnet extends Testnet implements EthereumNetwork {
16701684
name = 'KavaEVMTestnet';
16711685
family = CoinFamily.KAVAEVM;
@@ -2615,6 +2629,7 @@ export const Networks = {
26152629
phrs: Object.freeze(new Pharos()),
26162630
ctc: Object.freeze(new Creditcoin()),
26172631
hypeevm: Object.freeze(new HypeEVM()),
2632+
hype: Object.freeze(new Hyperliquid()),
26182633
lineaeth: Object.freeze(new LineaETH()),
26192634
oas: Object.freeze(new Oas()),
26202635
og: Object.freeze(new Og()),
@@ -2738,6 +2753,7 @@ export const Networks = {
27382753
phrs: Object.freeze(new PharosTestnet()),
27392754
ctc: Object.freeze(new CreditcoinTestnet()),
27402755
hypeevm: Object.freeze(new HypeEVMTestnet()),
2756+
hype: Object.freeze(new HyperliquidTestnet()),
27412757
lineaeth: Object.freeze(new LineaETHTestnet()),
27422758
oas: Object.freeze(new OasTestnet()),
27432759
og: Object.freeze(new OgTestnet()),

0 commit comments

Comments
 (0)