Skip to content

Commit 70ddda3

Browse files
authored
Merge pull request #8435 from BitGo/cecho-699
feat: onboard prividium evm
2 parents 01ae568 + a11c683 commit 70ddda3

File tree

6 files changed

+82
-0
lines changed

6 files changed

+82
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ const mainnetBase: EnvironmentTemplate = {
308308
hemieth: {
309309
baseUrl: 'https://explorer.hemi.xyz/api',
310310
},
311+
prividium: {
312+
baseUrl: 'https://explorer.prividium.zksync.dev/api', // TODO: update with mainnet URL when available
313+
},
311314
fluenteth: {
312315
baseUrl: 'https://fluentscan.xyz/api/',
313316
},
@@ -519,6 +522,9 @@ const testnetBase: EnvironmentTemplate = {
519522
hemieth: {
520523
baseUrl: 'https://testnet.explorer.hemi.xyz/api',
521524
},
525+
prividium: {
526+
baseUrl: 'https://explorer.testnet-prividium.zksync.dev/api',
527+
},
522528
fluenteth: {
523529
baseUrl: 'https://testnet.fluentscan.xyz/api/',
524530
},

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,6 +2417,42 @@ export const allCoinsAndTokens = [
24172417
]
24182418
),
24192419

2420+
account(
2421+
'1cc2170d-c24d-4179-b0eb-155de0f46617',
2422+
'prividium',
2423+
'Prividium',
2424+
Networks.main.prividium,
2425+
18,
2426+
UnderlyingAsset.PRIVIDIUM,
2427+
BaseUnit.ETH,
2428+
[
2429+
...EVM_FEATURES,
2430+
CoinFeature.SHARED_EVM_SIGNING,
2431+
CoinFeature.SHARED_EVM_SDK,
2432+
CoinFeature.EVM_COMPATIBLE_IMS,
2433+
CoinFeature.EVM_COMPATIBLE_UI,
2434+
CoinFeature.EVM_COMPATIBLE_WP,
2435+
CoinFeature.SUPPORTS_ERC20,
2436+
]
2437+
),
2438+
account(
2439+
'b0067fb1-d00d-4959-981c-6f6009862418',
2440+
'tprividium',
2441+
'Testnet Prividium',
2442+
Networks.test.prividium,
2443+
18,
2444+
UnderlyingAsset.PRIVIDIUM,
2445+
BaseUnit.ETH,
2446+
[
2447+
...EVM_FEATURES,
2448+
CoinFeature.SHARED_EVM_SIGNING,
2449+
CoinFeature.SHARED_EVM_SDK,
2450+
CoinFeature.EVM_COMPATIBLE_IMS,
2451+
CoinFeature.EVM_COMPATIBLE_UI,
2452+
CoinFeature.EVM_COMPATIBLE_WP,
2453+
]
2454+
),
2455+
24202456
erc721Token(
24212457
'a7604e03-7f40-41f0-8efa-2e7673ac2a9f',
24222458
'terc721:hbarevmtoken',

modules/statics/src/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export enum CoinFamily {
9191
POLYGON = 'polygon',
9292
POLYX = 'polyx',
9393
PHRS = 'phrs',
94+
PRIVIDIUM = 'prividium', // Prividium L2
9495
CTC = 'ctc',
9596
HYPEEVM = 'hypeevm',
9697
HYPERLIQUID = 'hyperliquid', // HyperCore L1
@@ -646,6 +647,7 @@ export enum UnderlyingAsset {
646647
POLYGON = 'polygon',
647648
PHRS = 'phrs',
648649
PLUME = 'plume',
650+
PRIVIDIUM = 'prividium', // Prividium L2
649651
CTC = 'ctc',
650652
HYPEEVM = 'hypeevm',
651653
HYPERLIQUID = 'hyperliquid', // HyperCore L1

modules/statics/src/coins/ofcCoins.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,14 @@ export const ofcCoins = [
354354
UnderlyingAsset.HEMIETH,
355355
CoinKind.CRYPTO
356356
),
357+
ofc(
358+
'7a3c5dee-ea51-4b1a-8871-b7283d1dc516',
359+
'ofcprividium',
360+
'Prividium',
361+
18,
362+
UnderlyingAsset.PRIVIDIUM,
363+
CoinKind.CRYPTO
364+
),
357365
tofc(
358366
'bc005b8a-dfb5-42db-92ad-92db5cb5b7d2',
359367
'ofcthemieth',
@@ -362,6 +370,14 @@ export const ofcCoins = [
362370
UnderlyingAsset.HEMIETH,
363371
CoinKind.CRYPTO
364372
),
373+
tofc(
374+
'7d18cdc5-a7da-4c76-8ce0-f80c391f80b3',
375+
'ofctprividium',
376+
'Prividium Testnet',
377+
18,
378+
UnderlyingAsset.PRIVIDIUM,
379+
CoinKind.CRYPTO
380+
),
365381
ofc(
366382
'f43afacc-0db3-4a8a-a987-ff9d93e08cb4',
367383
'ofcjovayeth',

modules/statics/src/networks.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,24 @@ class HemiEthTestnet extends Testnet implements EthereumNetwork {
24942494
nativeCoinOperationHashPrefix = '743111';
24952495
}
24962496

2497+
class Prividium extends Mainnet implements EthereumNetwork {
2498+
name = 'Prividium';
2499+
family = CoinFamily.PRIVIDIUM;
2500+
explorerUrl = 'https://explorer.prividium.zksync.dev/tx/'; // TODO: update with mainnet URL when available
2501+
accountExplorerUrl = 'https://explorer.prividium.zksync.dev/address/'; // TODO: update with mainnet URL when available
2502+
chainId = 9999999; // TODO: update with mainnet chain ID when available
2503+
nativeCoinOperationHashPrefix = '9999999';
2504+
}
2505+
2506+
class PrividiumTestnet extends Testnet implements EthereumNetwork {
2507+
name = 'Prividium Testnet';
2508+
family = CoinFamily.PRIVIDIUM;
2509+
explorerUrl = 'https://explorer.testnet-prividium.zksync.dev/tx/';
2510+
accountExplorerUrl = 'https://explorer.testnet-prividium.zksync.dev/address/';
2511+
chainId = 8022834;
2512+
nativeCoinOperationHashPrefix = '8022834';
2513+
}
2514+
24972515
class PlumeTestnet extends Testnet implements EthereumNetwork {
24982516
name = 'PlumeTestnet';
24992517
family = CoinFamily.PLUME;
@@ -2714,6 +2732,7 @@ export const Networks = {
27142732
hederaEVM: Object.freeze(new HederaEVM()),
27152733
hemieth: Object.freeze(new HemiEth()),
27162734
hppeth: Object.freeze(new Hppeth()),
2735+
prividium: Object.freeze(new Prividium()),
27172736
icp: Object.freeze(new Icp()),
27182737
ip: Object.freeze(new IP()),
27192738
initia: Object.freeze(new Initia()),
@@ -2837,6 +2856,7 @@ export const Networks = {
28372856
hedera: Object.freeze(new HederaTestnet()),
28382857
hoodeth: Object.freeze(new HoodethTestnet()),
28392858
hppeth: Object.freeze(new HppethTestnet()),
2859+
prividium: Object.freeze(new PrividiumTestnet()),
28402860
hederaEVM: Object.freeze(new HederaEVMTestnet()),
28412861
hemieth: Object.freeze(new HemiEthTestnet()),
28422862
icp: Object.freeze(new IcpTestnet()),

modules/statics/test/unit/fixtures/expectedColdFeatures.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export const expectedColdFeatures = {
124124
'okbxlayer',
125125
'osmo',
126126
'plume',
127+
'prividium',
127128
'polyx',
128129
'sgb',
129130
'sei',
@@ -187,6 +188,7 @@ export const expectedColdFeatures = {
187188
'tworld',
188189
'tphrs',
189190
'tplume',
191+
'tprividium',
190192
'tctc',
191193
'thypeevm',
192194
'tlineaeth',

0 commit comments

Comments
 (0)