diff --git a/package.json b/package.json index bfd237e..e221ff9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@acala-network/asset-router", - "version": "1.0.14", + "version": "1.0.15", "main": "dist/index.js", "repository": "git@github.com:AcalaNetwork/asset-router.git", "author": "Acala Developers ", diff --git a/scripts/consts.ts b/scripts/consts.ts index 36247b2..74ceb94 100644 --- a/scripts/consts.ts +++ b/scripts/consts.ts @@ -34,6 +34,7 @@ export const enum TOKEN { LDOT = 'ldot', TDOT = 'tdot', LCDOT = 'lcdot', + KSM = 'ksm', } export type CHAIN_NAME = keyof typeof CHAIN; @@ -59,7 +60,7 @@ export const ADDRESSES = { [CHAIN.KARURA]: { tokenBridgeAddr: CONTRACTS.MAINNET.karura.token_bridge, factoryAddr: '0x38bCDdc086eC0f68390d7c6452361036469D1203', - feeAddr: '0xF25176942A23C703aB7b79f50fF7eaBb6eee8d82', + feeAddr: '0x2AeFc65B6E1660d2bA2796f8698120A2acB95634', usdcAddr: '0x1F3a10587A20114EA25Ba1b388EE2dD4A337ce27', homaFactoryAddr: '0x915b1505EC8dffE845Bf0AEAc982706631b1C4b6', accountHelperAddr: '0x94Bb240Ff3BB9a61D8f31C39978Ce7D858b9C015', @@ -252,6 +253,14 @@ export const ROUTER_TOKEN_INFO = { decimals: 10, fee: 0.01, }, + [TOKEN.KSM]: { + originChain: CHAIN.KARURA, + originAddr: '0x0000000000000000000100000000000000000082', + karuraAddr: '0x0000000000000000000100000000000000000082', + acalaAddr: null, + decimals: 12, + fee: 0.001, + }, } as const; export const CHAIN_NAME_TO_WORMHOLE_CHAIN_ID = { diff --git a/scripts/deploy-fee.ts b/scripts/deploy-fee.ts index 2165034..5a93907 100644 --- a/scripts/deploy-fee.ts +++ b/scripts/deploy-fee.ts @@ -39,7 +39,7 @@ main().catch((error) => { /* --------------- -karura: 0xF25176942A23C703aB7b79f50fF7eaBb6eee8d82 +karura: 0x2AeFc65B6E1660d2bA2796f8698120A2acB95634 { '0x21a3e77E77f1A73f303B0e050bDFa33c439E57D3': 36000000000000000n, '0xC5033741CA1ce8F4f956eCA6c2fF7360cABFA08d': 50000000000000000n, @@ -54,7 +54,8 @@ karura: 0xF25176942A23C703aB7b79f50fF7eaBb6eee8d82 '0x30b1f4BA0b07789bE9986fA090A57e0FE5631eBB': 13000000000000000n, '0x1F3a10587A20114EA25Ba1b388EE2dD4A337ce27': 40000n, '0x54e183E533FD3c6E72DEBB2D1cAB451d017FaF72': 40000n, - '0xFdb9E75eC0B329B23B2C8cb165F718A5688E66dC': 5400000000000000000n + '0xFdb9E75eC0B329B23B2C8cb165F718A5688E66dC': 5400000000000000000n, + '0x0000000000000000000100000000000000000082': 1000000000n } acala: 0x94Bb240Ff3BB9a61D8f31C39978Ce7D858b9C015