Skip to content

Commit 4422844

Browse files
Merge pull request #8251 from BitGo/CGARD-454-onboard-unieth-hppeth-h
feat(statics): onboard unieth, hppeth, h, hoodeth
2 parents 8d1b215 + 41deea3 commit 4422844

8 files changed

Lines changed: 363 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,12 @@ describe('V2 Keychains', function () {
102102
n.asset !== UnderlyingAsset.FLRP &&
103103
n.asset !== UnderlyingAsset.FLUENTETH &&
104104
n.asset !== UnderlyingAsset.MANTLE &&
105+
n.asset !== UnderlyingAsset.H &&
106+
n.asset !== UnderlyingAsset.HOODETH &&
107+
n.asset !== UnderlyingAsset.HPPETH &&
105108
n.asset !== UnderlyingAsset.JOVAYETH &&
106109
n.asset !== UnderlyingAsset.OKBXLAYER &&
110+
n.asset !== UnderlyingAsset.UNIETH &&
107111
n.asset !== UnderlyingAsset.MORPH &&
108112
n.asset !== UnderlyingAsset.MORPHETH &&
109113
n.asset !== UnderlyingAsset.DOGEOS &&

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,18 @@ const mainnetBase: EnvironmentTemplate = {
334334
zksyncera: {
335335
baseUrl: 'https://api.etherscan.io/v2',
336336
},
337+
unieth: {
338+
baseUrl: 'https://unichain.blockscout.com/api',
339+
},
340+
hoodeth: {
341+
baseUrl: 'https://explorer.testnet.chain.robinhood.com/api', // TODO: update to mainnet explorer API when available
342+
},
343+
hppeth: {
344+
baseUrl: 'https://explorer.hpp.io/api',
345+
},
346+
h: {
347+
baseUrl: 'https://humanity-mainnet.explorer.alchemy.com/api',
348+
},
337349
},
338350
icpNodeUrl: 'https://ic0.app',
339351
worldExplorerBaseUrl: 'https://worldscan.org/',
@@ -528,6 +540,18 @@ const testnetBase: EnvironmentTemplate = {
528540
zksyncera: {
529541
baseUrl: 'https://api.etherscan.io/v2',
530542
},
543+
unieth: {
544+
baseUrl: 'https://unichain-sepolia.blockscout.com/api',
545+
},
546+
hoodeth: {
547+
baseUrl: 'https://explorer.testnet.chain.robinhood.com/api',
548+
},
549+
hppeth: {
550+
baseUrl: 'https://sepolia-explorer.hpp.io/api',
551+
},
552+
h: {
553+
baseUrl: 'https://humanity-testnet.explorer.alchemy.com/api',
554+
},
531555
},
532556
stxNodeUrl: 'https://api.testnet.hiro.so',
533557
vetNodeUrl: 'https://sync-testnet.vechain.org',

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,6 +2599,188 @@ export const allCoinsAndTokens = [
25992599
'',
26002600
'TJovayETH'
26012601
),
2602+
account(
2603+
'fb957436-c58c-4fa3-a1f0-324a104cfa72',
2604+
'unieth',
2605+
'Unichain',
2606+
Networks.main.unieth,
2607+
18,
2608+
UnderlyingAsset.UNIETH,
2609+
BaseUnit.ETH,
2610+
[
2611+
...EVM_FEATURES,
2612+
CoinFeature.SHARED_EVM_SIGNING,
2613+
CoinFeature.SHARED_EVM_SDK,
2614+
CoinFeature.EVM_COMPATIBLE_IMS,
2615+
CoinFeature.EVM_COMPATIBLE_UI,
2616+
CoinFeature.EVM_COMPATIBLE_WP,
2617+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2618+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2619+
CoinFeature.SUPPORTS_ERC20,
2620+
],
2621+
KeyCurve.Secp256k1,
2622+
'',
2623+
'UniETH'
2624+
),
2625+
account(
2626+
'9eb4b6e4-7dcf-4ce7-b1c2-2ae9fa894fb6',
2627+
'tunieth',
2628+
'Testnet Unichain',
2629+
Networks.test.unieth,
2630+
18,
2631+
UnderlyingAsset.UNIETH,
2632+
BaseUnit.ETH,
2633+
[
2634+
...EVM_FEATURES,
2635+
CoinFeature.SHARED_EVM_SIGNING,
2636+
CoinFeature.SHARED_EVM_SDK,
2637+
CoinFeature.EVM_COMPATIBLE_IMS,
2638+
CoinFeature.EVM_COMPATIBLE_UI,
2639+
CoinFeature.EVM_COMPATIBLE_WP,
2640+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2641+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2642+
CoinFeature.SUPPORTS_ERC20,
2643+
],
2644+
KeyCurve.Secp256k1,
2645+
'',
2646+
'TUniETH'
2647+
),
2648+
account(
2649+
'd68be88e-9d17-404c-ba7f-08aba1844437',
2650+
'hppeth',
2651+
'House Party Protocol',
2652+
Networks.main.hppeth,
2653+
18,
2654+
UnderlyingAsset.HPPETH,
2655+
BaseUnit.ETH,
2656+
[
2657+
...EVM_FEATURES,
2658+
CoinFeature.SHARED_EVM_SIGNING,
2659+
CoinFeature.SHARED_EVM_SDK,
2660+
CoinFeature.EVM_COMPATIBLE_IMS,
2661+
CoinFeature.EVM_COMPATIBLE_UI,
2662+
CoinFeature.EVM_COMPATIBLE_WP,
2663+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2664+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2665+
CoinFeature.SUPPORTS_ERC20,
2666+
],
2667+
KeyCurve.Secp256k1,
2668+
'',
2669+
'HppETH'
2670+
),
2671+
account(
2672+
'2e4011ee-9512-4c51-896f-5b24ac477b52',
2673+
'thppeth',
2674+
'Testnet House Party Protocol',
2675+
Networks.test.hppeth,
2676+
18,
2677+
UnderlyingAsset.HPPETH,
2678+
BaseUnit.ETH,
2679+
[
2680+
...EVM_FEATURES,
2681+
CoinFeature.SHARED_EVM_SIGNING,
2682+
CoinFeature.SHARED_EVM_SDK,
2683+
CoinFeature.EVM_COMPATIBLE_IMS,
2684+
CoinFeature.EVM_COMPATIBLE_UI,
2685+
CoinFeature.EVM_COMPATIBLE_WP,
2686+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2687+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2688+
CoinFeature.SUPPORTS_ERC20,
2689+
],
2690+
KeyCurve.Secp256k1,
2691+
'',
2692+
'THppETH'
2693+
),
2694+
account(
2695+
'f0e3aa10-8e76-483c-ad4d-35aefb74b77b',
2696+
'thoodeth',
2697+
'Testnet Robinhood Chain',
2698+
Networks.test.hoodeth,
2699+
18,
2700+
UnderlyingAsset.HOODETH,
2701+
BaseUnit.ETH,
2702+
[
2703+
...EVM_FEATURES,
2704+
CoinFeature.SHARED_EVM_SIGNING,
2705+
CoinFeature.SHARED_EVM_SDK,
2706+
CoinFeature.EVM_COMPATIBLE_IMS,
2707+
CoinFeature.EVM_COMPATIBLE_UI,
2708+
CoinFeature.EVM_COMPATIBLE_WP,
2709+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2710+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2711+
],
2712+
KeyCurve.Secp256k1,
2713+
'',
2714+
'THoodETH'
2715+
),
2716+
account(
2717+
'1b17bbf4-02fc-492d-9071-6d7f47395f7a',
2718+
'hoodeth',
2719+
'Robinhood Chain',
2720+
Networks.main.hoodeth,
2721+
18,
2722+
UnderlyingAsset.HOODETH,
2723+
BaseUnit.ETH,
2724+
[
2725+
...EVM_FEATURES,
2726+
CoinFeature.SHARED_EVM_SIGNING,
2727+
CoinFeature.SHARED_EVM_SDK,
2728+
CoinFeature.EVM_COMPATIBLE_IMS,
2729+
CoinFeature.EVM_COMPATIBLE_UI,
2730+
CoinFeature.EVM_COMPATIBLE_WP,
2731+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2732+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2733+
],
2734+
KeyCurve.Secp256k1,
2735+
'',
2736+
'HoodETH'
2737+
),
2738+
account(
2739+
'ddf32007-d3a5-4cad-9a20-b7793e96fdd2',
2740+
'h',
2741+
'Humanity Protocol',
2742+
Networks.main.h,
2743+
18,
2744+
UnderlyingAsset.H,
2745+
BaseUnit.ETH,
2746+
[
2747+
...EVM_FEATURES,
2748+
CoinFeature.SHARED_EVM_SIGNING,
2749+
CoinFeature.SHARED_EVM_SDK,
2750+
CoinFeature.EVM_COMPATIBLE_IMS,
2751+
CoinFeature.EVM_COMPATIBLE_UI,
2752+
CoinFeature.EVM_COMPATIBLE_WP,
2753+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2754+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2755+
CoinFeature.SUPPORTS_ERC20,
2756+
],
2757+
KeyCurve.Secp256k1,
2758+
'',
2759+
'H'
2760+
),
2761+
account(
2762+
'e23f84e3-9b6a-4b0a-8a1e-6dc8e57650a8',
2763+
'th',
2764+
'Testnet Humanity Protocol',
2765+
Networks.test.h,
2766+
18,
2767+
UnderlyingAsset.H,
2768+
BaseUnit.ETH,
2769+
[
2770+
...EVM_FEATURES,
2771+
CoinFeature.SHARED_EVM_SIGNING,
2772+
CoinFeature.SHARED_EVM_SDK,
2773+
CoinFeature.EVM_COMPATIBLE_IMS,
2774+
CoinFeature.EVM_COMPATIBLE_UI,
2775+
CoinFeature.EVM_COMPATIBLE_WP,
2776+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2777+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2778+
CoinFeature.SUPPORTS_ERC20,
2779+
],
2780+
KeyCurve.Secp256k1,
2781+
'',
2782+
'TH'
2783+
),
26022784

26032785
// Jovayeth mainnet tokens
26042786
erc20Token(

modules/statics/src/base.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ export enum CoinFamily {
6363
FANTOM = 'fantom', // Fantom
6464
FLR = 'flr',
6565
FLRP = 'flrp',
66+
H = 'h', // Humanity Protocol
6667
HASH = 'hash', // Provenance
6768
HBAR = 'hbar',
6869
HBAREVM = 'hbarevm', // Hedera EVM coin
6970
HEMIETH = 'hemieth', // Hemi Ethereum L2
71+
HOODETH = 'hoodeth', // Robinhood Chain
72+
HPPETH = 'hppeth', // House Party Protocol
7073
ICP = 'icp',
7174
INITIA = 'initia',
7275
INJECTIVE = 'injective',
@@ -135,6 +138,7 @@ export enum CoinFamily {
135138
MORPHETH = 'morpheth',
136139
ARCUSDC = 'arcusdc', // ARC network
137140
TEMPO = 'tempo', // Tempo Network
141+
UNIETH = 'unieth', // Unichain
138142
}
139143

140144
/**
@@ -596,10 +600,13 @@ export enum UnderlyingAsset {
596600
FLUENTETH = 'fluenteth',
597601
FANTOM = 'fantom', // Fantom
598602
GTC = 'gtc',
603+
H = 'h', // Humanity Protocol
599604
HASH = 'hash', // Provenance
600605
HBAR = 'hbar', // Hedera main coin
601606
HBAREVM = 'hbarevm', // Hedera EVM coin
602607
HEMIETH = 'hemieth', // Hemi Ethereum L2
608+
HOODETH = 'hoodeth', // Robinhood Chain
609+
HPPETH = 'hppeth', // House Party Protocol
603610
ICP = 'icp',
604611
IP = 'ip', // Story Chain
605612
INITIA = 'initia',
@@ -661,6 +668,7 @@ export enum UnderlyingAsset {
661668
ZKETH = 'zketh',
662669

663670
ZKSYNCERA = 'zksyncera', // ZkSync Era
671+
UNIETH = 'unieth', // Unichain
664672
// ERC 20 tokens
665673
'$Evmosia.com' = '$evmosia.com',
666674
'0xREVIEW' = '0xreview',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4116,4 +4116,54 @@ export const ofcCoins = [
41164116
6,
41174117
UnderlyingAsset['ttempo:thetausd']
41184118
),
4119+
ofc('6f0246cf-b792-483a-b720-9755b158c614', 'ofcunieth', 'Unichain', 18, UnderlyingAsset.UNIETH, CoinKind.CRYPTO),
4120+
tofc(
4121+
'4efb1377-8439-410a-b460-2aeeff944fb2',
4122+
'ofctunieth',
4123+
'Testnet Unichain',
4124+
18,
4125+
UnderlyingAsset.UNIETH,
4126+
CoinKind.CRYPTO
4127+
),
4128+
ofc(
4129+
'598218e6-8b8b-45a1-9f50-f114e1c43f0d',
4130+
'ofchppeth',
4131+
'House Party Protocol',
4132+
18,
4133+
UnderlyingAsset.HPPETH,
4134+
CoinKind.CRYPTO
4135+
),
4136+
tofc(
4137+
'4baee871-3e95-4a46-98cd-4854cffaea7c',
4138+
'ofcthppeth',
4139+
'Testnet House Party Protocol',
4140+
18,
4141+
UnderlyingAsset.HPPETH,
4142+
CoinKind.CRYPTO
4143+
),
4144+
ofc('b0360f56-3aaa-4171-a5d6-c0c6ba56a392', 'ofch', 'Humanity Protocol', 18, UnderlyingAsset.H, CoinKind.CRYPTO),
4145+
tofc(
4146+
'74d684f5-b5fd-4bcd-88cc-96f27ee133a1',
4147+
'ofcth',
4148+
'Testnet Humanity Protocol',
4149+
18,
4150+
UnderlyingAsset.H,
4151+
CoinKind.CRYPTO
4152+
),
4153+
ofc(
4154+
'ce1af7ad-a694-4180-9a44-2bd9aa5b031e',
4155+
'ofchoodeth',
4156+
'Robinhood Chain',
4157+
18,
4158+
UnderlyingAsset.HOODETH,
4159+
CoinKind.CRYPTO
4160+
),
4161+
tofc(
4162+
'85c5c0d5-a1b0-48b7-9c40-b1ab7162053e',
4163+
'ofcthoodeth',
4164+
'Testnet Robinhood Chain',
4165+
18,
4166+
UnderlyingAsset.HOODETH,
4167+
CoinKind.CRYPTO
4168+
),
41194169
];

modules/statics/src/map.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,13 @@ export class CoinMap {
116116
43114: 'avax',
117117
43113: 'tavax',
118118
100: 'gno',
119-
130: 'uni',
119+
130: 'unieth',
120+
1301: 'tunieth',
121+
190415: 'hppeth',
122+
181228: 'thppeth',
123+
6985385: 'h',
124+
7080969: 'th',
125+
46630: 'thoodeth',
120126
324: 'zketh',
121127
8453: 'baseeth',
122128
84532: 'tbaseeth',

0 commit comments

Comments
 (0)