diff --git a/.changeset/mean-cows-deny.md b/.changeset/mean-cows-deny.md new file mode 100644 index 000000000..561e5f891 --- /dev/null +++ b/.changeset/mean-cows-deny.md @@ -0,0 +1,5 @@ +--- +'@xchainjs/xchain-aggregator': patch +--- + +Add arbitrum to chainflip protocol diff --git a/.changeset/polite-flowers-grow.md b/.changeset/polite-flowers-grow.md new file mode 100644 index 000000000..9356cbc14 --- /dev/null +++ b/.changeset/polite-flowers-grow.md @@ -0,0 +1,5 @@ +--- +'@xchainjs/xchain-arbitrum': patch +--- + +Lower fee bound updated to 10000000. diff --git a/examples/aggregator/swap-history.ts b/examples/aggregator/swap-history.ts index 3d4ee59fb..336cee9c6 100644 --- a/examples/aggregator/swap-history.ts +++ b/examples/aggregator/swap-history.ts @@ -25,10 +25,10 @@ const main = async () => { return { protocol: swap.protocol, fromAsset: assetToString(swap.inboundTx.amount.asset), - toAsset: swap.outboundTx ? assetToString(swap.outboundTx.amount.asset) : undefined, + toAsset: swap.status === 'success' ? assetToString(swap.outboundTx.amount.asset) : undefined, hash: swap.inboundTx.hash, fromAmount: swap.inboundTx.amount.assetAmount.amount().toString(), - toAmount: swap.outboundTx ? swap.outboundTx.amount.assetAmount.amount().toString() : undefined, + toAmount: swap.status === 'success' ? swap.outboundTx.amount.assetAmount.amount().toString() : undefined, } }), ) diff --git a/packages/xchain-aggregator/__e2e__/aggregator.e2e.ts b/packages/xchain-aggregator/__e2e__/aggregator.e2e.ts index 55eaeaee4..ab0599cac 100644 --- a/packages/xchain-aggregator/__e2e__/aggregator.e2e.ts +++ b/packages/xchain-aggregator/__e2e__/aggregator.e2e.ts @@ -178,33 +178,33 @@ describe('Aggregator', () => { console.log(txSubmitted) }) - it('Should get swaps history', async () => { - const swapHistory = await aggregator.getSwapHistory({ - chainAddresses: [{ chain: 'BTC', address: 'address' }], - }) - - console.log( - swapHistory.swaps.map((swap) => { - return { - protocol: swap.protocol, - status: swap.status, - date: swap.date.toDateString(), - inboundTX: { - hash: swap.inboundTx.hash, - address: swap.inboundTx.address, - asset: assetToString(swap.inboundTx.amount.asset), - amount: swap.inboundTx.amount.assetAmount.amount().toString(), - }, - outboundTx: swap.outboundTx - ? { - hash: swap.outboundTx.hash, - address: swap.outboundTx.address, - asset: assetToString(swap.outboundTx.amount.asset), - amount: swap.outboundTx.amount.assetAmount.amount().toString(), - } - : undefined, - } - }), - ) - }) + // it('Should get swaps history', async () => { + // const swapHistory = await aggregator.getSwapHistory({ + // chainAddresses: [{ chain: 'BTC', address: 'address' }], + // }) + + // console.log( + // swapHistory.swaps.map((swap) => { + // return { + // protocol: swap.protocol, + // status: swap.status, + // date: swap.date.toDateString(), + // inboundTX: { + // hash: swap.inboundTx.hash, + // address: swap.inboundTx.address, + // asset: assetToString(swap.inboundTx.amount.asset), + // amount: swap.inboundTx.amount.assetAmount.amount().toString(), + // }, + // outboundTx: swap.outboundTx + // ? { + // hash: swap.outboundTx.hash, + // address: swap.outboundTx.address, + // asset: assetToString(swap.outboundTx.amount.asset), + // amount: swap.outboundTx.amount.assetAmount.amount().toString(), + // } + // : undefined, + // } + // }), + // ) + // }) }) diff --git a/packages/xchain-aggregator/__mocks__/@chainflip/sdk/swap.ts b/packages/xchain-aggregator/__mocks__/@chainflip/sdk/swap.ts index bab1849d3..5868051dd 100644 --- a/packages/xchain-aggregator/__mocks__/@chainflip/sdk/swap.ts +++ b/packages/xchain-aggregator/__mocks__/@chainflip/sdk/swap.ts @@ -18,6 +18,7 @@ class SwapSDK { evmChainId: 11155111, isMainnet: false, requiredBlockConfirmations: 7, + maxRetryDurationBlocks: undefined, }, { chain: 'Polkadot', @@ -25,6 +26,7 @@ class SwapSDK { evmChainId: undefined, isMainnet: false, requiredBlockConfirmations: undefined, + maxRetryDurationBlocks: undefined, }, { chain: 'Bitcoin', @@ -32,6 +34,7 @@ class SwapSDK { evmChainId: undefined, isMainnet: false, requiredBlockConfirmations: 6, + maxRetryDurationBlocks: undefined, }, ] } @@ -126,6 +129,7 @@ class SwapSDK { depositAddress: 'BITCOINfakeaddress', depositChannelId: 'bitcoin-channel-id', brokerCommissionBps: 0, + affiliateBrokers: [], depositChannelExpiryBlock: BigInt(10000), estimatedDepositChannelExpiryTime: 1716889354, channelOpeningFee: BigInt(100), @@ -136,6 +140,7 @@ class SwapSDK { depositAddress: 'ETHEREUMfakeaddress', depositChannelId: 'ethereum-channel-id', brokerCommissionBps: 0, + affiliateBrokers: [], depositChannelExpiryBlock: BigInt(20000), estimatedDepositChannelExpiryTime: 1716889354, channelOpeningFee: BigInt(100), @@ -146,6 +151,7 @@ class SwapSDK { depositAddress: 'POLKADOTfakeaddress', depositChannelId: 'polkadot-channel-id', brokerCommissionBps: 0, + affiliateBrokers: [], depositChannelExpiryBlock: BigInt(30000), estimatedDepositChannelExpiryTime: 1716889354, channelOpeningFee: BigInt(100), @@ -168,6 +174,7 @@ class SwapSDK { destChain, amount, quote: { + type: 'REGULAR', intermediateAmount: '36115119', egressAmount: '51193', includedFees: [ @@ -184,13 +191,13 @@ class SwapSDK { amount: '36115', }, { - type: 'LIQUIDITY', + type: 'NETWORK', chain: 'Ethereum', asset: 'ETH', amount: '4655411871275', }, { - type: 'LIQUIDITY', + type: 'NETWORK', chain: 'Ethereum', asset: 'USDC', amount: '18057', @@ -204,6 +211,8 @@ class SwapSDK { ], lowLiquidityWarning: false, estimatedDurationSeconds: 702, + poolInfo: [], + estimatedPrice: '2300', }, } } @@ -222,6 +231,7 @@ class SwapSDK { destChain, amount, quote: { + type: 'REGULAR', intermediateAmount: '13560635', egressAmount: '2063188201000691', includedFees: [ @@ -237,18 +247,6 @@ class SwapSDK { asset: 'USDC', amount: '13560', }, - { - type: 'LIQUIDITY', - chain: 'Ethereum', - asset: 'USDT', - amount: '6783', - }, - { - type: 'LIQUIDITY', - chain: 'Ethereum', - asset: 'USDC', - amount: '6780', - }, { type: 'EGRESS', chain: 'Ethereum', @@ -258,6 +256,8 @@ class SwapSDK { ], lowLiquidityWarning: false, estimatedDurationSeconds: 114, + poolInfo: [], + estimatedPrice: '1', }, } } @@ -276,6 +276,7 @@ class SwapSDK { destChain, amount, quote: { + type: 'REGULAR', intermediateAmount: '33919877', egressAmount: '24884030', includedFees: [ @@ -291,18 +292,6 @@ class SwapSDK { asset: 'USDC', amount: '33919', }, - { - type: 'LIQUIDITY', - chain: 'Ethereum', - asset: 'ETH', - amount: '4357594332450', - }, - { - type: 'LIQUIDITY', - chain: 'Ethereum', - asset: 'USDC', - amount: '16959', - }, { type: 'EGRESS', chain: 'Ethereum', @@ -312,6 +301,8 @@ class SwapSDK { ], lowLiquidityWarning: false, estimatedDurationSeconds: 114, + poolInfo: [], + estimatedPrice: '2300', }, } } diff --git a/packages/xchain-aggregator/package.json b/packages/xchain-aggregator/package.json index dbb8d72a0..10469cb11 100644 --- a/packages/xchain-aggregator/package.json +++ b/packages/xchain-aggregator/package.json @@ -29,7 +29,7 @@ "directory": "release/package" }, "dependencies": { - "@chainflip/sdk": "1.3.0", + "@chainflip/sdk": "1.6.0", "@xchainjs/xchain-client": "workspace:*", "@xchainjs/xchain-mayachain": "workspace:*", "@xchainjs/xchain-mayachain-amm": "workspace:*", diff --git a/packages/xchain-aggregator/src/protocols/chainflip/chainflipProtocol.ts b/packages/xchain-aggregator/src/protocols/chainflip/chainflipProtocol.ts index dd218270b..fb4f686ec 100644 --- a/packages/xchain-aggregator/src/protocols/chainflip/chainflipProtocol.ts +++ b/packages/xchain-aggregator/src/protocols/chainflip/chainflipProtocol.ts @@ -37,11 +37,15 @@ export class ChainflipProtocol implements IProtocol { return this.sdk.getAssets() }, 24 * 60 * 60 * 1000) } - approveRouterToSpend(_params: { asset: TokenAsset; amount?: CryptoAmount }): Promise { - throw new Error('Method not implemented.') + public approveRouterToSpend(_params: { asset: TokenAsset; amount?: CryptoAmount }): Promise { + throw new Error('Not implemented') } - shouldBeApproved(_params: { asset: TokenAsset; amount: CryptoAmount; address: string }): Promise { - throw new Error('Method not implemented.') + public async shouldBeApproved(_params: { + asset: TokenAsset + amount: CryptoAmount + address: string + }): Promise { + return Promise.resolve(false) } /** @@ -209,11 +213,7 @@ export class ChainflipProtocol implements IProtocol { } const chainAssets = await this.assetsData.getValue() const assetData = chainAssets.find((chainAsset) => { - const contractAddress = asset.symbol.split('-').length > 1 ? asset.symbol.split('-')[1] : undefined - return ( - chainAsset.asset === xAssetToCAsset(asset) && - chainAsset.contractAddress?.toLowerCase() === contractAddress?.toLowerCase() - ) + return chainAsset.asset === xAssetToCAsset(asset) && asset.chain === cChainToXChain(chainAsset.chain) }) if (!assetData) throw Error(`${asset.ticker} asset not supported in ${asset.chain} chain`) return assetData diff --git a/packages/xchain-aggregator/src/protocols/chainflip/utils.ts b/packages/xchain-aggregator/src/protocols/chainflip/utils.ts index 6d042f5b6..a21fc7182 100644 --- a/packages/xchain-aggregator/src/protocols/chainflip/utils.ts +++ b/packages/xchain-aggregator/src/protocols/chainflip/utils.ts @@ -9,6 +9,10 @@ export const cChainToXChain = (chain: CChain): XChain => { return 'ETH' case 'Polkadot': return 'POL' + case 'Arbitrum': + return 'ARB' + case 'Solana': + return 'SOL' default: throw Error('Unsupported chain in XChainJS') } @@ -22,6 +26,10 @@ export const xChainToCChain = (chain: XChain): CChain => { return Chains.Ethereum case 'POL': return Chains.Polkadot + case 'ARB': + return Chains.Arbitrum + case 'SOL': + return Chains.Solana default: throw Error('Unsupported chain in Chainflip') } diff --git a/packages/xchain-arbitrum/src/const.ts b/packages/xchain-arbitrum/src/const.ts index 5658b8f14..6ee0f973f 100644 --- a/packages/xchain-arbitrum/src/const.ts +++ b/packages/xchain-arbitrum/src/const.ts @@ -7,7 +7,7 @@ import { BigNumber, ethers } from 'ethers' // Define constants related to Arbitrum export const ARB_DECIMAL = 18 -export const LOWER_FEE_BOUND = 100_000_000 +export const LOWER_FEE_BOUND = 100_000_00 export const UPPER_FEE_BOUND = 1_000_000_000 export const ARB_GAS_ASSET_DECIMAL = 18 export const ARBChain = 'ARB' as const diff --git a/yarn.lock b/yarn.lock index f1a1de772..fafee5c3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -710,15 +710,39 @@ __metadata: languageName: node linkType: hard -"@chainflip/sdk@npm:1.3.0": - version: 1.3.0 - resolution: "@chainflip/sdk@npm:1.3.0" +"@chainflip/rpc@npm:^1.6.6": + version: 1.6.6 + resolution: "@chainflip/rpc@npm:1.6.6" + dependencies: + "@chainflip/utils": "npm:^0.3.0" + zod: "npm:^3.22.8" + checksum: 10c0/bb87a38883989f12a7e408cd6f51fa0bf81350b386f3ca75be17714e611d1ab59680ad893efb09b68b3cb657ebc444f001e97bf6b5607e24d105b125cfe839bf + languageName: node + linkType: hard + +"@chainflip/sdk@npm:1.6.0": + version: 1.6.0 + resolution: "@chainflip/sdk@npm:1.6.0" dependencies: - "@polkadot/util": "npm:^12.6.2" - "@polkadot/util-crypto": "npm:^12.6.2" - axios: "npm:^1.6.8" - ethers: "npm:^6.11.1" - checksum: 10c0/18690f1a2eb070339221bc7c1bd9fa9c05d8d69e5c04e156355ad138a89d6013f131e290398c9a8e766307644ee12f346d4e3cb1dae7e6b12f2f321c3f50d61f + "@chainflip/rpc": "npm:^1.6.6" + "@chainflip/utils": "npm:^0.4.0" + axios: "npm:^1.7.7" + ethers: "npm:^6.13.2" + checksum: 10c0/a1a9937597bdfaaa93e1ce169e487042a6a305a023a1601ee6ed964e84626551999caa894f3f4f9d86a416e93942474e8f4cc1652d2d2da77b61a8767658c0fb + languageName: node + linkType: hard + +"@chainflip/utils@npm:^0.3.0": + version: 0.3.0 + resolution: "@chainflip/utils@npm:0.3.0" + checksum: 10c0/4cba70b9a4ac1c298dcc4a8467a86345c26192ac910c15ea3c7f6eaaa442411b3e258a0a56b208b2c39f089fa6f09d574ef7f35cba737cbd64c915d3d82b9c3d + languageName: node + linkType: hard + +"@chainflip/utils@npm:^0.4.0": + version: 0.4.0 + resolution: "@chainflip/utils@npm:0.4.0" + checksum: 10c0/77dda4c19e02b3f6ab6b1ab58593368685d35c02229f918dc8169dbd7d61c8e77bbb9fa3d3d82d1b19cf401b72539accabf743a5977025d44e1737fef3431f85 languageName: node linkType: hard @@ -2687,15 +2711,6 @@ __metadata: languageName: node linkType: hard -"@noble/curves@npm:^1.3.0": - version: 1.4.0 - resolution: "@noble/curves@npm:1.4.0" - dependencies: - "@noble/hashes": "npm:1.4.0" - checksum: 10c0/31fbc370df91bcc5a920ca3f2ce69c8cf26dc94775a36124ed8a5a3faf0453badafd2ee4337061ffea1b43c623a90ee8b286a5a81604aaf9563bdad7ff795d18 - languageName: node - linkType: hard - "@noble/ed25519@npm:2.0.0": version: 2.0.0 resolution: "@noble/ed25519@npm:2.0.0" @@ -2724,7 +2739,7 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.4.0, @noble/hashes@npm:^1.3.3, @noble/hashes@npm:^1.4.0": +"@noble/hashes@npm:1.4.0, @noble/hashes@npm:^1.4.0": version: 1.4.0 resolution: "@noble/hashes@npm:1.4.0" checksum: 10c0/8c3f005ee72e7b8f9cff756dfae1241485187254e3f743873e22073d63906863df5d4f13d441b7530ea614b7a093f0d889309f28b59850f33b66cb26a779a4a5 @@ -2833,184 +2848,6 @@ __metadata: languageName: node linkType: hard -"@polkadot/networks@npm:12.6.2": - version: 12.6.2 - resolution: "@polkadot/networks@npm:12.6.2" - dependencies: - "@polkadot/util": "npm:12.6.2" - "@substrate/ss58-registry": "npm:^1.44.0" - tslib: "npm:^2.6.2" - checksum: 10c0/44a482c46900058e6d5b25110cb5396382036057240cd4a8e0dae325fab54e689ec81bc43b047570581f14ce456b67310c05c1fe34c4b7f7d4e064f095f4c276 - languageName: node - linkType: hard - -"@polkadot/util-crypto@npm:^12.6.2": - version: 12.6.2 - resolution: "@polkadot/util-crypto@npm:12.6.2" - dependencies: - "@noble/curves": "npm:^1.3.0" - "@noble/hashes": "npm:^1.3.3" - "@polkadot/networks": "npm:12.6.2" - "@polkadot/util": "npm:12.6.2" - "@polkadot/wasm-crypto": "npm:^7.3.2" - "@polkadot/wasm-util": "npm:^7.3.2" - "@polkadot/x-bigint": "npm:12.6.2" - "@polkadot/x-randomvalues": "npm:12.6.2" - "@scure/base": "npm:^1.1.5" - tslib: "npm:^2.6.2" - peerDependencies: - "@polkadot/util": 12.6.2 - checksum: 10c0/b25f1574a2d4298c32b7a3cf3fa9f1b1237af3cc9e4ac16e75840097e9bcea11c8188abd5c46522d46d350edceb1e3e54fe8cbb01111e4eb643df4040ff41e2a - languageName: node - linkType: hard - -"@polkadot/util@npm:12.6.2, @polkadot/util@npm:^12.6.2": - version: 12.6.2 - resolution: "@polkadot/util@npm:12.6.2" - dependencies: - "@polkadot/x-bigint": "npm:12.6.2" - "@polkadot/x-global": "npm:12.6.2" - "@polkadot/x-textdecoder": "npm:12.6.2" - "@polkadot/x-textencoder": "npm:12.6.2" - "@types/bn.js": "npm:^5.1.5" - bn.js: "npm:^5.2.1" - tslib: "npm:^2.6.2" - checksum: 10c0/e426d31f8a6b8e8c57b86c18b419312906c5a169e5b2d89c15b54a5d6cf297912250d336f81926e07511ce825d36222d9e6387a01240aa6a20b11aa25dc8226a - languageName: node - linkType: hard - -"@polkadot/wasm-bridge@npm:7.3.2": - version: 7.3.2 - resolution: "@polkadot/wasm-bridge@npm:7.3.2" - dependencies: - "@polkadot/wasm-util": "npm:7.3.2" - tslib: "npm:^2.6.2" - peerDependencies: - "@polkadot/util": "*" - "@polkadot/x-randomvalues": "*" - checksum: 10c0/8becfcd4efbabe8ea536c353164c8b767a5510d6d62e376813ab1dc0dd4560906f1dfdb1b349d56b4da657ba7c88bc9f074b658218dcae9b1edbd36f4508b710 - languageName: node - linkType: hard - -"@polkadot/wasm-crypto-asmjs@npm:7.3.2": - version: 7.3.2 - resolution: "@polkadot/wasm-crypto-asmjs@npm:7.3.2" - dependencies: - tslib: "npm:^2.6.2" - peerDependencies: - "@polkadot/util": "*" - checksum: 10c0/c4eb0b2c6bae2cd7b4ada5211c877a0f0cff4d4a4f2716817430c5aab74f4e8d37099add57c809a098033028378ed3e88ba1c56fd85b6fd0a80b181742f7a3f9 - languageName: node - linkType: hard - -"@polkadot/wasm-crypto-init@npm:7.3.2": - version: 7.3.2 - resolution: "@polkadot/wasm-crypto-init@npm:7.3.2" - dependencies: - "@polkadot/wasm-bridge": "npm:7.3.2" - "@polkadot/wasm-crypto-asmjs": "npm:7.3.2" - "@polkadot/wasm-crypto-wasm": "npm:7.3.2" - "@polkadot/wasm-util": "npm:7.3.2" - tslib: "npm:^2.6.2" - peerDependencies: - "@polkadot/util": "*" - "@polkadot/x-randomvalues": "*" - checksum: 10c0/4813a87bf44065d4ec7cdc29b00f37cc6859974969710c6a6fefba8e42f5bb0c7e102293a8418b1c6e1b5fd55540d13beebdff777200b69420ce50b8fad803ed - languageName: node - linkType: hard - -"@polkadot/wasm-crypto-wasm@npm:7.3.2": - version: 7.3.2 - resolution: "@polkadot/wasm-crypto-wasm@npm:7.3.2" - dependencies: - "@polkadot/wasm-util": "npm:7.3.2" - tslib: "npm:^2.6.2" - peerDependencies: - "@polkadot/util": "*" - checksum: 10c0/546ebc5c42929f2f37565190014ff26f6817024e087c56053c1d8c1dcffd1f02014c4638ca70c79145d540f760339699209bb1dc939c235085a7c78efd56bc60 - languageName: node - linkType: hard - -"@polkadot/wasm-crypto@npm:^7.3.2": - version: 7.3.2 - resolution: "@polkadot/wasm-crypto@npm:7.3.2" - dependencies: - "@polkadot/wasm-bridge": "npm:7.3.2" - "@polkadot/wasm-crypto-asmjs": "npm:7.3.2" - "@polkadot/wasm-crypto-init": "npm:7.3.2" - "@polkadot/wasm-crypto-wasm": "npm:7.3.2" - "@polkadot/wasm-util": "npm:7.3.2" - tslib: "npm:^2.6.2" - peerDependencies: - "@polkadot/util": "*" - "@polkadot/x-randomvalues": "*" - checksum: 10c0/ff3ef6a2a4dcbbdeb257e7a42f906f1bb7e31292600482c1acf9267406011ea75bd9d3d6ceaf4c011f986e25a2416768775ee59ccc7dbfa6c529b11b8ea91eb4 - languageName: node - linkType: hard - -"@polkadot/wasm-util@npm:7.3.2, @polkadot/wasm-util@npm:^7.3.2": - version: 7.3.2 - resolution: "@polkadot/wasm-util@npm:7.3.2" - dependencies: - tslib: "npm:^2.6.2" - peerDependencies: - "@polkadot/util": "*" - checksum: 10c0/58ef58d357e7983c3bb4008b0159262d5c588234d7be64155c031f452fc0daeb078ff0ac8bb4b0377dac307130b0b548c01fd466968869ed308d50e2c162d23b - languageName: node - linkType: hard - -"@polkadot/x-bigint@npm:12.6.2": - version: 12.6.2 - resolution: "@polkadot/x-bigint@npm:12.6.2" - dependencies: - "@polkadot/x-global": "npm:12.6.2" - tslib: "npm:^2.6.2" - checksum: 10c0/78123efa2a5fad7fccb79dbe0c44f5506b70405a2b9b1dc9db9450ddd2f01791b011a46c9fff31ed8b21aace6f676179c4b7746c97ca254e8822bcf543e4d779 - languageName: node - linkType: hard - -"@polkadot/x-global@npm:12.6.2": - version: 12.6.2 - resolution: "@polkadot/x-global@npm:12.6.2" - dependencies: - tslib: "npm:^2.6.2" - checksum: 10c0/63738eb46465e3e43151d746321c178131385a734e1d3865fc76667fec9d4b1fb8b35a0d8ee75834035b54a4047e0bae86c4f2e465b16c73d4fc15ec4426446f - languageName: node - linkType: hard - -"@polkadot/x-randomvalues@npm:12.6.2": - version: 12.6.2 - resolution: "@polkadot/x-randomvalues@npm:12.6.2" - dependencies: - "@polkadot/x-global": "npm:12.6.2" - tslib: "npm:^2.6.2" - peerDependencies: - "@polkadot/util": 12.6.2 - "@polkadot/wasm-util": "*" - checksum: 10c0/44920ec7a93ca0b5b0d2abae493fe5a9fb8cdb44b70029d431c1244a11dea0a9f14d216b4d14bde8b984199b9dd364a3ae68b51937784645343f686b3613c223 - languageName: node - linkType: hard - -"@polkadot/x-textdecoder@npm:12.6.2": - version: 12.6.2 - resolution: "@polkadot/x-textdecoder@npm:12.6.2" - dependencies: - "@polkadot/x-global": "npm:12.6.2" - tslib: "npm:^2.6.2" - checksum: 10c0/d1aa46dc0c4f88bce3cb7aaadbede99c2fb159c0fd317fb9fe5b54bdbb83da9cce3a5d628e25892028b34cc4eeef72669c344f0af12e21f05429142cc7b4732d - languageName: node - linkType: hard - -"@polkadot/x-textencoder@npm:12.6.2": - version: 12.6.2 - resolution: "@polkadot/x-textencoder@npm:12.6.2" - dependencies: - "@polkadot/x-global": "npm:12.6.2" - tslib: "npm:^2.6.2" - checksum: 10c0/fa234ce4d164991ea98f34e9eae2adf0c4d2b0806e2e30b11c41a52b432f8cbd91fb16945243809fd9433c513b8c7ab4c16d902b92faf7befaa523daae7459f4 - languageName: node - linkType: hard - "@protobufjs/aspromise@npm:^1.1.1, @protobufjs/aspromise@npm:^1.1.2": version: 1.1.2 resolution: "@protobufjs/aspromise@npm:1.1.2" @@ -3360,7 +3197,7 @@ __metadata: languageName: node linkType: hard -"@scure/base@npm:^1.1.1, @scure/base@npm:^1.1.5": +"@scure/base@npm:^1.1.1": version: 1.1.6 resolution: "@scure/base@npm:1.1.6" checksum: 10c0/237a46a1f45391fc57719154f14295db936a0b1562ea3e182dd42d7aca082dbb7062a28d6c49af16a7e478b12dae8a0fe678d921ea5056bcc30238d29eb05c55 @@ -3755,13 +3592,6 @@ __metadata: languageName: node linkType: hard -"@substrate/ss58-registry@npm:^1.44.0": - version: 1.48.0 - resolution: "@substrate/ss58-registry@npm:1.48.0" - checksum: 10c0/b2ff1bd7688a3f72353f05dd47676a0127be346d0516a0dd2214118d4085637e35a37b115f4bd9101772a9723f6111e4e77dc008cf69ad45b64c806de419547c - languageName: node - linkType: hard - "@supercharge/promise-pool@npm:2.4.0": version: 2.4.0 resolution: "@supercharge/promise-pool@npm:2.4.0" @@ -3913,15 +3743,6 @@ __metadata: languageName: node linkType: hard -"@types/bn.js@npm:^5.1.5": - version: 5.1.5 - resolution: "@types/bn.js@npm:5.1.5" - dependencies: - "@types/node": "npm:*" - checksum: 10c0/e9f375b43d8119ed82aed2090f83d4cda8afbb63ba13223afb02fa7550258ff90acd76d65cd7186838644048f085241cd98a3a512d8d187aa497c6039c746ac8 - languageName: node - linkType: hard - "@types/connect@npm:^3.4.33": version: 3.4.38 resolution: "@types/connect@npm:3.4.38" @@ -4431,7 +4252,7 @@ __metadata: version: 0.0.0-use.local resolution: "@xchainjs/xchain-aggregator@workspace:packages/xchain-aggregator" dependencies: - "@chainflip/sdk": "npm:1.3.0" + "@chainflip/sdk": "npm:1.6.0" "@xchainjs/xchain-avax": "workspace:*" "@xchainjs/xchain-binance": "workspace:*" "@xchainjs/xchain-bitcoin": "workspace:*" @@ -5448,14 +5269,14 @@ __metadata: languageName: node linkType: hard -"axios@npm:^1.6.8": - version: 1.7.2 - resolution: "axios@npm:1.7.2" +"axios@npm:^1.7.7": + version: 1.7.7 + resolution: "axios@npm:1.7.7" dependencies: follow-redirects: "npm:^1.15.6" form-data: "npm:^4.0.0" proxy-from-env: "npm:^1.1.0" - checksum: 10c0/cbd47ce380fe045313364e740bb03b936420b8b5558c7ea36a4563db1258c658f05e40feb5ddd41f6633fdd96d37ac2a76f884dad599c5b0224b4c451b3fa7ae + checksum: 10c0/4499efc89e86b0b49ffddc018798de05fab26e3bf57913818266be73279a6418c3ce8f9e934c7d2d707ab8c095e837fc6c90608fb7715b94d357720b5f568af7 languageName: node linkType: hard @@ -7625,9 +7446,9 @@ __metadata: languageName: node linkType: hard -"ethers@npm:^6.11.1": - version: 6.12.1 - resolution: "ethers@npm:6.12.1" +"ethers@npm:^6.13.2": + version: 6.13.2 + resolution: "ethers@npm:6.13.2" dependencies: "@adraffy/ens-normalize": "npm:1.10.1" "@noble/curves": "npm:1.2.0" @@ -7635,8 +7456,8 @@ __metadata: "@types/node": "npm:18.15.13" aes-js: "npm:4.0.0-beta.5" tslib: "npm:2.4.0" - ws: "npm:8.5.0" - checksum: 10c0/7686e1efdb0a831578f35d69188783c225de5a6fbb1b422327bc45cee04d49a2707e73c9342a6a5eb2870ce35668c71372737439ec3993d31d83f4a0e2446cc7 + ws: "npm:8.17.1" + checksum: 10c0/5956389a180992f8b6d90bc21b2e0f28619a098513d3aeb7a350a0b7c5852d635a9d7fd4ced1af50c985dd88398716f66dfd4a2de96c5c3a67150b93543d92af languageName: node linkType: hard @@ -12994,13 +12815,20 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.0.3, tslib@npm:^2.6.2": +"tslib@npm:^2.0.3": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: 10c0/e03a8a4271152c8b26604ed45535954c0a45296e32445b4b87f8a5abdb2421f40b59b4ca437c4346af0f28179780d604094eb64546bee2019d903d01c6c19bdb languageName: node linkType: hard +"tslib@npm:^2.6.2": + version: 2.7.0 + resolution: "tslib@npm:2.7.0" + checksum: 10c0/469e1d5bf1af585742128827000711efa61010b699cb040ab1800bcd3ccdd37f63ec30642c9e07c4439c1db6e46345582614275daca3e0f4abae29b0083f04a6 + languageName: node + linkType: hard + "tsutils@npm:^3.21.0": version: 3.21.0 resolution: "tsutils@npm:3.21.0" @@ -13771,18 +13599,18 @@ __metadata: languageName: node linkType: hard -"ws@npm:8.5.0": - version: 8.5.0 - resolution: "ws@npm:8.5.0" +"ws@npm:8.17.1": + version: 8.17.1 + resolution: "ws@npm:8.17.1" peerDependencies: bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 + utf-8-validate: ">=5.0.2" peerDependenciesMeta: bufferutil: optional: true utf-8-validate: optional: true - checksum: 10c0/0baeee03e97865accda8fad51e8e5fa17d19b8e264529efdf662bbba2acc1c7f1de8316287e6df5cb639231a96009e6d5234b57e6ff36ee2d04e49a0995fec2f + checksum: 10c0/f4a49064afae4500be772abdc2211c8518f39e1c959640457dcee15d4488628620625c783902a52af2dd02f68558da2868fd06e6fd0e67ebcd09e6881b1b5bfe languageName: node linkType: hard @@ -14299,3 +14127,10 @@ __metadata: checksum: 10c0/dceb44c28578b31641e13695d200d34ec4ab3966a5729814d5445b194933c096b7ced71494ce53a0e8820685d1d010df8b2422e5bf2cdea7e469d97ffbea306f languageName: node linkType: hard + +"zod@npm:^3.22.8": + version: 3.23.8 + resolution: "zod@npm:3.23.8" + checksum: 10c0/8f14c87d6b1b53c944c25ce7a28616896319d95bc46a9660fe441adc0ed0a81253b02b5abdaeffedbeb23bdd25a0bf1c29d2c12dd919aef6447652dd295e3e69 + languageName: node + linkType: hard