Skip to content
Open
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 @@ -306,6 +306,9 @@ const mainnetBase: EnvironmentTemplate = {
baseUrl: 'https://mainnet.mirrornode.hedera.com/api/v1',
rpcUrl: 'https://mainnet.hashio.io/api',
},
scrolleth: {
baseUrl: 'https://api.scrollscan.com/api',
},
hemieth: {
baseUrl: 'https://explorer.hemi.xyz/api',
},
Expand Down Expand Up @@ -528,6 +531,9 @@ const testnetBase: EnvironmentTemplate = {
baseUrl: 'https://testnet.mirrornode.hedera.com/api/v1',
rpcUrl: 'https://testnet.hashio.io/api',
},
tscrolleth: {
baseUrl: 'https://api-sepolia.scrollscan.com/api',
},
hemieth: {
baseUrl: 'https://testnet.explorer.hemi.xyz/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 @@ -2079,6 +2079,42 @@ export const allCoinsAndTokens = [
BaseUnit.ETH,
[...SONEIUM_FEATURES, CoinFeature.SHARED_EVM_SIGNING]
),
account(
'7596838b-e1c5-4072-a173-b91a7b5cb7de',
'scrolleth',
'Scroll',
Networks.main.scrolleth,
18,
UnderlyingAsset.SCROLLETH,
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(
'406827a0-9bf8-4f83-ae94-bcf22d8ecf6a',
'tscrolleth',
'Scroll Sepolia Testnet',
Networks.test.scrolleth,
18,
UnderlyingAsset.SCROLLETH,
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(
'1bf486a9-47ed-4bea-8e9a-a23a074cdc9a',
'tstt',
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 @@ -108,6 +108,7 @@ export enum CoinFamily {
OSMO = 'osmo',
PLUME = 'plume',
RBTC = 'rbtc',
SCROLLETH = 'scrolleth', // Scroll L2
SGB = 'sgb',
SEI = 'sei',
SEIEVM = 'seievm',
Expand Down Expand Up @@ -657,6 +658,7 @@ export enum UnderlyingAsset {
HYPEEVM = 'hypeevm',
HYPERLIQUID = 'hyperliquid', // HyperCore L1
RBTC = 'rbtc', // RSK main coin
SCROLLETH = 'scrolleth', // Scroll L2
SEI = 'sei',
SEIEVM = 'seievm',
SGB = 'sgb',
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 @@ -367,6 +367,15 @@ export const ofcCoins = [
UnderlyingAsset.INKETH,
CoinKind.CRYPTO
),
ofc('f58a94a1-9f67-423a-bfd0-298f1b2411d8', 'ofcscrolleth', 'Scroll', 18, UnderlyingAsset.SCROLLETH, CoinKind.CRYPTO),
tofc(
'2995fd87-c9b8-4541-a112-17b0f9f74bfc',
'ofctscrolleth',
'Scroll Sepolia Testnet',
18,
UnderlyingAsset.SCROLLETH,
CoinKind.CRYPTO
),
ofc(
'bdab1ab0-215d-4d59-b698-7cc624e5027a',
'ofchemieth',
Expand Down
10 changes: 10 additions & 0 deletions modules/statics/src/networkFeatureMapForTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ADA_TOKEN_FEATURES,
APT_FEATURES,
BSC_TOKEN_FEATURES,
EVM_FEATURES,
POLYGON_TOKEN_FEATURES,
POLYX_TOKEN_FEATURES,
SOL_TOKEN_FEATURES,
Expand All @@ -25,6 +26,15 @@ export const networkFeatureMapForTokens: Partial<Record<CoinFamily, CoinFeature[
hbar: AccountCoin.DEFAULT_FEATURES,
opeth: [...AccountCoin.DEFAULT_FEATURES, CoinFeature.EIP1559],
polygon: POLYGON_TOKEN_FEATURES,
scrolleth: [
...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,
],
sol: SOL_TOKEN_FEATURES,
stx: STX_TOKEN_FEATURES,
sui: SUI_TOKEN_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 @@ -2172,6 +2172,24 @@ class SoneiumTestnet extends Testnet implements EthereumNetwork {
walletImplementationAddress = '0x944fef03af368414f29dc31a72061b8d64f568d2';
}

class ScrollEth extends Mainnet implements EthereumNetwork {
name = 'Scroll';
family = CoinFamily.SCROLLETH;
explorerUrl = 'https://scrollscan.com/tx/';
accountExplorerUrl = 'https://scrollscan.com/address/';
chainId = 534352;
nativeCoinOperationHashPrefix = '534352';
}

class ScrollEthTestnet extends Testnet implements EthereumNetwork {
name = 'Scroll Sepolia';
family = CoinFamily.SCROLLETH;
explorerUrl = 'https://sepolia.scrollscan.com/tx/';
accountExplorerUrl = 'https://sepolia.scrollscan.com/address/';
chainId = 534351;
nativeCoinOperationHashPrefix = '534351';
}

class SeiEvm extends Mainnet implements EthereumNetwork {
name = 'Seievm';
family = CoinFamily.SEIEVM;
Expand Down Expand Up @@ -2827,6 +2845,7 @@ export const Networks = {
rbtc: Object.freeze(new Rbtc()),
rune: Object.freeze(new Rune()),
stellar: Object.freeze(new Stellar()),
scrolleth: Object.freeze(new ScrollEth()),
sei: Object.freeze(new Sei()),
seievm: Object.freeze(new SeiEvm()),
sgb: Object.freeze(new Songbird()),
Expand Down Expand Up @@ -2964,6 +2983,7 @@ export const Networks = {
near: Object.freeze(new NearTestnet()),
stx: Object.freeze(new StxTestnet()),
stt: Object.freeze(new SomniaTestnet()),
scrolleth: Object.freeze(new ScrollEthTestnet()),
soneium: Object.freeze(new SoneiumTestnet()),
sonic: Object.freeze(new SonicTestnet()),
kaia: Object.freeze(new KaiaTestnet()),
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 @@ -101,6 +101,7 @@ export const expectedColdFeatures = {
'hash',
'hbarevm',
'hemieth',
'scrolleth',
'inketh',
'hoodeth',
'hppeth',
Expand Down Expand Up @@ -180,6 +181,7 @@ export const expectedColdFeatures = {
'th',
'thbarevm',
'themieth',
'tscrolleth',
'tinketh',
'thoodeth',
'thppeth',
Expand Down
Loading