diff --git a/package.json b/package.json index 8e684064b6..0b6e0fd65f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/common/tokens/constants/native-tokens.ts b/src/common/tokens/constants/native-tokens.ts index 1e859b1e0c..809840ff60 100644 --- a/src/common/tokens/constants/native-tokens.ts +++ b/src/common/tokens/constants/native-tokens.ts @@ -89,6 +89,13 @@ const testnetNativeTokens: Record = { 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 }) }; diff --git a/src/common/tokens/constants/wrapped-addresses.ts b/src/common/tokens/constants/wrapped-addresses.ts index 6f4947b741..356e23ff3b 100644 --- a/src/common/tokens/constants/wrapped-addresses.ts +++ b/src/common/tokens/constants/wrapped-addresses.ts @@ -64,5 +64,6 @@ export const wrappedAddress: Partial> = { [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' }; diff --git a/src/common/tokens/constants/wrapped-native-tokens.ts b/src/common/tokens/constants/wrapped-native-tokens.ts index d90051caf5..268cacd15b 100644 --- a/src/common/tokens/constants/wrapped-native-tokens.ts +++ b/src/common/tokens/constants/wrapped-native-tokens.ts @@ -486,6 +486,13 @@ export const wrappedNativeTokensList: Partial> 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', diff --git a/src/core/blockchain/models/backend-blockchains.ts b/src/core/blockchain/models/backend-blockchains.ts index 7c8be57f2f..891ee0a89b 100644 --- a/src/core/blockchain/models/backend-blockchains.ts +++ b/src/core/blockchain/models/backend-blockchains.ts @@ -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; diff --git a/src/core/blockchain/models/blockchain-name.ts b/src/core/blockchain/models/blockchain-name.ts index 9159d16623..e3e117fb19 100644 --- a/src/core/blockchain/models/blockchain-name.ts +++ b/src/core/blockchain/models/blockchain-name.ts @@ -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 = { diff --git a/src/core/blockchain/utils/blockchains-info/constants/blockchain-id.ts b/src/core/blockchain/utils/blockchains-info/constants/blockchain-id.ts index 320fd680b1..dfc44559e8 100644 --- a/src/core/blockchain/utils/blockchains-info/constants/blockchain-id.ts +++ b/src/core/blockchain/utils/blockchains-info/constants/blockchain-id.ts @@ -83,6 +83,7 @@ export const blockchainId: Record = { [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, diff --git a/src/core/blockchain/web3-public-service/web3-public/constants/multicall-addresses.ts b/src/core/blockchain/web3-public-service/web3-public/constants/multicall-addresses.ts index 362a1bfa36..3c5443faad 100644 --- a/src/core/blockchain/web3-public-service/web3-public/constants/multicall-addresses.ts +++ b/src/core/blockchain/web3-public-service/web3-public/constants/multicall-addresses.ts @@ -71,5 +71,6 @@ export const MULTICALL_ADDRESSES: Record [BLOCKCHAIN_NAME.GRAVITY]: '0xcA11bde05977b3631167028862bE2a173976CA11', [BLOCKCHAIN_NAME.FLARE]: '0xcA11bde05977b3631167028862bE2a173976CA11', [BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: '0xca11bde05977b3631167028862be2a173976ca11', + [BLOCKCHAIN_NAME.SONEIUM_TESTNET]: '0xcA11bde05977b3631167028862bE2a173976CA11', [BLOCKCHAIN_NAME.SONIC]: '0xcA11bde05977b3631167028862bE2a173976CA11' };