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
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 @@ -102,6 +102,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.FLUENTETH &&
n.asset !== UnderlyingAsset.MANTLE &&
n.asset !== UnderlyingAsset.JOVAYETH &&
n.asset !== UnderlyingAsset.OKB &&
coinFamilyValues.includes(n.name)
);

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 @@ -283,6 +283,9 @@ const mainnetBase: EnvironmentTemplate = {
jovayeth: {
baseUrl: 'https://api.zan.top/node/v1/jovay/mainnet/',
},
okb: {
baseUrl: 'https://www.oklink.com/api/v5/explorer/block/block-list?chainShortName=xlayer',
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
Expand Down Expand Up @@ -433,6 +436,9 @@ const testnetBase: EnvironmentTemplate = {
jovayeth: {
baseUrl: 'https://api.zan.top/node/v1/jovay/testnet/',
},
okb: {
baseUrl: 'https://www.oklink.com/api/v5/explorer/block/block-list?chainShortName=xlayer_testnet',
},
},
stxNodeUrl: 'https://api.testnet.hiro.so',
vetNodeUrl: 'https://sync-testnet.vechain.org',
Expand Down
34 changes: 34 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2278,6 +2278,40 @@ export const allCoinsAndTokens = [
'',
'TJovayETH'
),
account(
'2c59a9f2-9bb0-42ff-b925-6049476b93a0',
'okb',
'X Layer',
Networks.main.okb,
18,
UnderlyingAsset.OKB,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
]
),
account(
'6f29e239-1bcd-4d29-b638-e17b5efc3f6c',
'tokb',
'Testnet X Layer',
Networks.test.okb,
18,
UnderlyingAsset.OKB,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_COMPATIBLE_WP,
]
),
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 @@ -87,6 +87,7 @@ export enum CoinFamily {
OAS = 'oas',
OFC = 'ofc',
OG = 'og',
OKB = 'okb',
OPETH = 'opeth',
OSMO = 'osmo',
PLUME = 'plume',
Expand Down Expand Up @@ -583,6 +584,7 @@ export enum UnderlyingAsset {
NEAR = 'near',
OAS = 'oas',
OG = 'og',
OKB = 'okb',
OPETH = 'opeth',
OSMO = 'osmo',
XPL = 'xpl', // Plasma Network
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 @@ -1545,6 +1545,24 @@ class JovayETHTestnet extends Testnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '2019775';
}

class Xlayer extends Mainnet implements EthereumNetwork {
name = 'X Layer';
family = CoinFamily.OKB;
explorerUrl = 'https://www.oklink.com/x-layer/tx/';
accountExplorerUrl = 'https://www.oklink.com/x-layer/address/';
chainId = 196;
nativeCoinOperationHashPrefix = '196';
}

class XlayerTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet X Layer';
family = CoinFamily.OKB;
explorerUrl = 'https://www.oklink.com/x-layer-testnet/tx/';
accountExplorerUrl = 'https://www.oklink.com/x-layer-testnet/address/';
chainId = 195;
nativeCoinOperationHashPrefix = '195';
}

class CreditcoinTestnet extends Testnet implements EthereumNetwork {
name = 'CreditcoinTestnet';
family = CoinFamily.CTC;
Expand Down Expand Up @@ -2160,6 +2178,7 @@ export const Networks = {
oas: Object.freeze(new Oas()),
og: Object.freeze(new Og()),
ofc: Object.freeze(new Ofc()),
okb: Object.freeze(new Xlayer()),
optimism: Object.freeze(new Optimism()),
osmo: Object.freeze(new Osmo()),
rbtc: Object.freeze(new Rbtc()),
Expand Down Expand Up @@ -2264,6 +2283,7 @@ export const Networks = {
oas: Object.freeze(new OasTestnet()),
og: Object.freeze(new OgTestnet()),
ofc: Object.freeze(new OfcTestnet()),
okb: Object.freeze(new XlayerTestnet()),
optimism: Object.freeze(new OptimismTestnet()),
osmo: Object.freeze(new OsmoTestnet()),
rbtc: Object.freeze(new RbtcTestnet()),
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 @@ -106,6 +106,7 @@ export const expectedColdFeatures = {
'near',
'oas',
'og',
'okb',
'osmo',
'plume',
'polyx',
Expand Down Expand Up @@ -149,6 +150,7 @@ export const expectedColdFeatures = {
'thbarevm',
'tjovayeth',
'tog',
'tokb',
'tmegaeth',
'tmon',
'tworld',
Expand Down