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
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 @@ -315,6 +315,9 @@ const mainnetBase: EnvironmentTemplate = {
inketh: {
baseUrl: 'https://explorer.inkonchain.com/api',
},
katanaeth: {
baseUrl: 'https://katanascan.com/api',
},
prividiumeth: {
baseUrl: 'https://explorer.prividium.zksync.dev/api', // TODO: update with mainnet URL when available
},
Expand Down Expand Up @@ -543,6 +546,9 @@ const testnetBase: EnvironmentTemplate = {
tinketh: {
baseUrl: 'https://explorer-sepolia.inkonchain.com/api',
},
tkatanaeth: {
baseUrl: 'https://explorer-bokuto.katanarpc.com/api',
},
prividiumeth: {
baseUrl: 'https://explorer.testnet-prividium.zksync.dev/api',
},
Expand Down
36 changes: 36 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,42 @@ export const allCoinsAndTokens = [
CoinFeature.SUPPORTS_ERC20,
]
),
account(
'0da54d73-c480-4c53-8526-a5990816ac3f',
'katanaeth',
'Katana',
Networks.main.katanaeth,
18,
UnderlyingAsset.KATANAETH,
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.SUPPORTS_ERC20,
]
),
account(
'c82a3444-6f27-426e-9efe-4d3eb6e304a8',
'tkatanaeth',
'Testnet Katana',
Networks.test.katanaeth,
18,
UnderlyingAsset.KATANAETH,
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.SUPPORTS_ERC20,
]
),
account(
'68d22683-a8f2-47b3-8446-92e02a1963ae',
'hemieth',
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 @@ -82,6 +82,7 @@ export enum CoinFamily {
JOVAYETH = 'jovayeth',
KAIA = 'kaia',
KASPA = 'kaspa',
KATANAETH = 'katanaeth', // Katana Network L2
KAVACOSMOS = 'kavacosmos',
KAVAEVM = 'kavaevm',
LNBTC = 'lnbtc',
Expand Down Expand Up @@ -1352,6 +1353,7 @@ export enum UnderlyingAsset {
KARMA = 'karma',
KAS = 'kas',
KASPA = 'kaspa',
KATANAETH = 'katanaeth', // Katana Network L2
KCASH = 'kcash',
KCS = 'kcs',
KEEP = 'keep',
Expand Down
9 changes: 9 additions & 0 deletions modules/statics/src/coins/ofcCoins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,15 @@ export const ofcCoins = [
UnderlyingAsset.LINEAETH,
CoinKind.CRYPTO
),
ofc('84fdd183-ee79-478f-af9a-06ff420e654b', 'ofckatanaeth', 'Katana', 18, UnderlyingAsset.KATANAETH, CoinKind.CRYPTO),
tofc(
'4a912718-0ae2-4fbc-ae46-f3561e4b3a2a',
'ofctkatanaeth',
'Testnet Katana',
18,
UnderlyingAsset.KATANAETH,
CoinKind.CRYPTO
),
ofc('b68e22ea-c6b6-458b-87d1-b6b5f79d9648', 'ofcinketh', 'INK', 18, UnderlyingAsset.INKETH, CoinKind.CRYPTO),
tofc(
'4d79941f-58ea-4fca-a784-93cf7acdf508',
Expand Down
1 change: 1 addition & 0 deletions modules/statics/src/networkFeatureMapForTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const networkFeatureMapForTokens: Partial<Record<CoinFamily, CoinFeature[
eos: AccountCoin.DEFAULT_FEATURES,
hbar: AccountCoin.DEFAULT_FEATURES,
opeth: [...AccountCoin.DEFAULT_FEATURES, CoinFeature.EIP1559],
katanaeth: [...AccountCoin.DEFAULT_FEATURES, CoinFeature.EIP1559],
polygon: POLYGON_TOKEN_FEATURES,
scrolleth: [
...EVM_FEATURES,
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 @@ -2549,6 +2549,24 @@ class PrividiumETHTestnet extends Testnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '8022834';
}

class KatanaEth extends Mainnet implements EthereumNetwork {
name = 'Katana';
family = CoinFamily.KATANAETH;
explorerUrl = 'https://katanascan.com/tx/';
accountExplorerUrl = 'https://katanascan.com/address/';
chainId = 747474;
nativeCoinOperationHashPrefix = '747474';
}

class KatanaEthTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet Katana';
family = CoinFamily.KATANAETH;
explorerUrl = 'https://explorer-bokuto.katanarpc.com/tx/';
accountExplorerUrl = 'https://explorer-bokuto.katanarpc.com/address/';
chainId = 737373;
nativeCoinOperationHashPrefix = '737373';
}

class InkEth extends Mainnet implements EthereumNetwork {
name = 'INK Mainnet';
family = CoinFamily.INKETH;
Expand Down Expand Up @@ -2807,6 +2825,7 @@ export const Networks = {
hederaEVM: Object.freeze(new HederaEVM()),
hemieth: Object.freeze(new HemiEth()),
inketh: Object.freeze(new InkEth()),
katanaeth: Object.freeze(new KatanaEth()),
hppeth: Object.freeze(new Hppeth()),
prividiumeth: Object.freeze(new PrividiumETH()),
icp: Object.freeze(new Icp()),
Expand Down Expand Up @@ -2939,6 +2958,7 @@ export const Networks = {
hederaEVM: Object.freeze(new HederaEVMTestnet()),
hemieth: Object.freeze(new HemiEthTestnet()),
inketh: Object.freeze(new InkEthTestnet()),
katanaeth: Object.freeze(new KatanaEthTestnet()),
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 @@ -115,6 +115,7 @@ export const expectedColdFeatures = {
'jovayeth',
'kaia',
'kaspa',
'katanaeth',
'kavacosmos',
'megaeth',
'mantle',
Expand Down Expand Up @@ -211,6 +212,7 @@ export const expectedColdFeatures = {
'tiota',
'tkaia',
'tkaspa',
'tkatanaeth',
'tkavacosmos',
'tmantle',
'tmantra',
Expand Down
Loading