Skip to content

Commit

Permalink
966, Soneium Testnet (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoElement authored Jan 13, 2025
2 parents 5f3867c + 006d6c5 commit 0b20737
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubic-sdk",
"version": "5.49.11",
"version": "5.50.0",
"description": "Simplify dApp creation",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions src/common/tokens/constants/native-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ const testnetNativeTokens: Record<TestnetEvmBlockchain, Token> = {
name: 'Ether',
symbol: 'ETH',
decimals: 18
}),
[BLOCKCHAIN_NAME.SONEIUM_TESTNET]: new Token({
blockchain: BLOCKCHAIN_NAME.SONEIUM_TESTNET,
address: EvmWeb3Pure.nativeTokenAddress,
name: 'Ether',
symbol: 'ETH',
decimals: 18
})
};

Expand Down
3 changes: 2 additions & 1 deletion src/common/tokens/constants/wrapped-addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ export const wrappedAddress: Partial<Record<EvmBlockchainName, string>> = {
[BLOCKCHAIN_NAME.BLAST_TESTNET]: '0x4200000000000000000000000000000000000023',
[BLOCKCHAIN_NAME.HOLESKY]: '',
[BLOCKCHAIN_NAME.BITLAYER]: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f',
[BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: '0x4200000000000000000000000000000000000006'
[BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: '0x4200000000000000000000000000000000000006',
[BLOCKCHAIN_NAME.SONEIUM_TESTNET]: '0x4200000000000000000000000000000000000006'
};
7 changes: 7 additions & 0 deletions src/common/tokens/constants/wrapped-native-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,13 @@ export const wrappedNativeTokensList: Partial<Record<EvmBlockchainName, Token>>
symbol: 'WETH',
decimals: 18
}),
[BLOCKCHAIN_NAME.SONEIUM_TESTNET]: new Token({
blockchain: BLOCKCHAIN_NAME.SONEIUM_TESTNET,
address: '0x4200000000000000000000000000000000000006',
name: 'Wrapped Ether',
symbol: 'WETH',
decimals: 18
}),
[BLOCKCHAIN_NAME.SONIC]: new Token({
blockchain: BLOCKCHAIN_NAME.SONIC,
address: '0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38',
Expand Down
1 change: 1 addition & 0 deletions src/core/blockchain/models/backend-blockchains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ const BLOCKCHAINS_MAPPING = {
[BLOCKCHAIN_NAME.BITLAYER]: 'bitlayer',
[BLOCKCHAIN_NAME.GRAVITY]: 'gravity',
[BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: 'unichain-sepolia-testnet',
[BLOCKCHAIN_NAME.SONEIUM_TESTNET]: 'soneium-minato',
[BLOCKCHAIN_NAME.SONIC]: 'sonic'
} as const;

Expand Down
3 changes: 2 additions & 1 deletion src/core/blockchain/models/blockchain-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export const TEST_EVM_BLOCKCHAIN_NAME = {
BERACHAIN: 'BERACHAIN',
BLAST_TESTNET: 'BLAST_TESTNET',
HOLESKY: 'HOLESKY',
UNICHAIN_SEPOLIA_TESTNET: 'UNICHAIN_SEPOLIA_TESTNET'
UNICHAIN_SEPOLIA_TESTNET: 'UNICHAIN_SEPOLIA_TESTNET',
SONEIUM_TESTNET: 'SONEIUM_TESTNET'
} as const;

export const EVM_BLOCKCHAIN_NAME = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const blockchainId: Record<BlockchainName, number> = {
[BLOCKCHAIN_NAME.BLAST_TESTNET]: 168587773,
[BLOCKCHAIN_NAME.HOLESKY]: 17000,
[BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: 1301,
[BLOCKCHAIN_NAME.SONEIUM_TESTNET]: 1946,
// Non EVN blockchains
[BLOCKCHAIN_NAME.BITCOIN]: 5555,
[BLOCKCHAIN_NAME.FILECOIN]: 314,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ export const MULTICALL_ADDRESSES: Record<Web3PublicSupportedBlockchain, string>
[BLOCKCHAIN_NAME.GRAVITY]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[BLOCKCHAIN_NAME.FLARE]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: '0xca11bde05977b3631167028862be2a173976ca11',
[BLOCKCHAIN_NAME.SONEIUM_TESTNET]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[BLOCKCHAIN_NAME.SONIC]: '0xcA11bde05977b3631167028862bE2a173976CA11'
};

0 comments on commit 0b20737

Please sign in to comment.