From f1932de2c8004887bf0a7ea230f99f45daca9be9 Mon Sep 17 00:00:00 2001 From: Mmackz Date: Sat, 23 Dec 2023 11:11:14 -0800 Subject: [PATCH 01/13] chore(pnpm): update symbiosis-sdk --- packages/symbiosis/package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/symbiosis/package.json b/packages/symbiosis/package.json index 4111f218a..ebd228cd7 100644 --- a/packages/symbiosis/package.json +++ b/packages/symbiosis/package.json @@ -45,7 +45,7 @@ "dependencies": { "@rabbitholegg/questdk": "2.0.0-alpha.28", "ethers": "^5.2.0", - "symbiosis-js-sdk": "^3.0.9", + "symbiosis-js-sdk": "^3.1.13", "viem": "^1.2.15" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f8e48d7f4..20bce976b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -524,7 +524,7 @@ importers: ethers: ^5.2.0 rimraf: ^5.0.1 rome: ^12.1.3 - symbiosis-js-sdk: ^3.0.9 + symbiosis-js-sdk: ^3.1.13 ts-node: ^10.9.1 tsconfig: workspace:* typescript: ^5.1.6 @@ -533,7 +533,7 @@ importers: dependencies: '@rabbitholegg/questdk': 2.0.0-alpha.28_typescript@5.3.2 ethers: 5.7.2 - symbiosis-js-sdk: 3.1.1_ethers@5.7.2 + symbiosis-js-sdk: 3.1.13_ethers@5.7.2 viem: 1.19.11_typescript@5.3.2 devDependencies: '@types/node': 20.10.3 @@ -1581,7 +1581,7 @@ packages: '@ethersproject/providers': 5.7.2 '@ethersproject/web': 5.7.1 chai: 4.3.10 - ethers: 5.7.1 + ethers: 5.7.2 lodash: 4.17.21 transitivePeerDependencies: - bufferutil @@ -1759,7 +1759,7 @@ packages: '@ledgerhq/hw-app-eth': 5.27.2 '@ledgerhq/hw-transport': 5.26.0 '@ledgerhq/hw-transport-u2f': 5.26.0 - ethers: 5.7.1 + ethers: 5.7.2 optionalDependencies: '@ledgerhq/hw-transport-node-hid': 5.26.0 transitivePeerDependencies: @@ -9271,8 +9271,8 @@ packages: - utf-8-validate dev: false - /symbiosis-js-sdk/3.1.1_ethers@5.7.2: - resolution: {integrity: sha512-VDvWjyFvCVCFHj1zcgXVfllE5m7NPI8KjnbLpAdF8T6/1RDN8XNWJuqW6dGAuMEXC/qhR4LjFa8GeVy0QDaVwA==} + /symbiosis-js-sdk/3.1.13_ethers@5.7.2: + resolution: {integrity: sha512-0N2AXRhawhUfTmJ6bANuvCO/TaOl8zk8nV1UZ4f0Ww8aAmg35H4lx8WO20ZmY8RUzJr34yc2wdViCMD3ae2ZtA==} engines: {node: '>=10'} peerDependencies: ethers: ^5.2.0 From 48333467c25f13fba463f88009be05e94d6f3fcd Mon Sep 17 00:00:00 2001 From: Mmackz Date: Sat, 23 Dec 2023 11:11:40 -0800 Subject: [PATCH 02/13] fix(symbiosis): use sdk to derive latest contract addresses --- packages/symbiosis/src/test-transactions.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/symbiosis/src/test-transactions.ts b/packages/symbiosis/src/test-transactions.ts index 9952fa2de..15a07b2ee 100644 --- a/packages/symbiosis/src/test-transactions.ts +++ b/packages/symbiosis/src/test-transactions.ts @@ -1,5 +1,6 @@ import type { Address, Hash } from 'viem' import { parseEther } from 'viem' +import { symbiosis } from './symbiosis-sdk' interface Transaction { chainId: number @@ -27,7 +28,7 @@ export const PASSING_TEST_TRANSACTIONS: TestTransaction[] = [ hash: '0xc97deae76c21cb57498d2873babd212fa589eae9e4d2e979f4a10a3428f376ee', input: '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000003782dace9d9000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000a04ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e00000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000006400000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d73796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000001ce4e75e2bd6bbbacde1e10d6813228138337e86000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa00000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000378224e87c9b8000000000000000000000000000000000000000000000000000377a9ae76526d3c2000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000653b51d1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb00000000000000000000000000000000000000000000000000000000000000020000000000000000000000001ce4e75e2bd6bbbacde1e10d6813228138337e86000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000424e691a2aa0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000221b262dd800000000000000000000000000000000000000000000000000037915d9d196a94eb000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000006e2b76966cbd9cf4cc2fa0d76d24d5241e0abc2f000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000c400000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d00000000000000000000000039de19c9ff25693a2311aad1dc5c790194084a39000000000000000000000000b0d30ad9c1a7b303977db7ea073a4329d930d94c00000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000000000000000014473796d62696f7369732d61707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022812aa3caf000000000000000000000000a9305c3c14757bae2e73ef7f66fe241f5f6bf3470000000000000000000000005aea5775959fbc2557cc8789bc1bf90a239d9a91000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000a9305c3c14757bae2e73ef7f66fe241f5f6bf34700000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000378f3beab68d14eb0000000000000000000000000000000000000000000000003773ece9b06260530000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a00000000000000000000000000000000000000000000006c00005600001a0020d6bdbf785aea5775959fbc2557cc8789bc1bf90a239d9a9141215aea5775959fbc2557cc8789bc1bf90a239d9a9100042e1a7d4d0000000000000000000000000000000000000000000000000000000000000000c0616e2b76966cbd9cf4cc2fa0d76d24d5241e0abc2f000000000000000000000000000000000000000000008b1ccac80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: '0x1dcfbc3fa01b2a86bc3a3f43479cce9e8d438adc', + to: symbiosis.metaRouter(1).address as Address, value: '4000000000000000000', }, destinationChainId: 324, @@ -42,7 +43,7 @@ export const PASSING_TEST_TRANSACTIONS: TestTransaction[] = [ hash: '0xce06592607e69b1b20becfd1dba2b0ae1907b066f5fe15d8f960cf5c631d1cd3', input: '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000005667db60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c316070000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c3160700000000000000000000000000000000000000000000000000000000000008a4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000005667db60000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c31607000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d2866000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e0000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a76000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a8000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000000640000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a7673646b2d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f072f11bf151038bd8732cd1088b7c98762b839c000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000000000005667db600000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa000000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000561e9d600000000000000000000000000000000000000000000000000000000055e750e000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000018b5788695d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f072f11bf151038bd8732cd1088b7c98762b839c000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c4e691a2aa000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000561e6ea000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000044000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d286600000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d90000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e0000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a76000000000000000000000000000000000000000000000000000000000000a4b173646b2d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8bc80f1a8000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d286600000000000000000000000000000000000000000000000000000000055d530a000000000000000000000000000000000000000000000000000000000559d425000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000008e295789c9465487074a65b1ae9ce0351172393fea698b470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: '0x1a039ce63ae35a67bf0e9f6dbfae969639d59ec8', + to: symbiosis.metaRouter(10).address as Address, value: '0', }, destinationChainId: 42161, @@ -58,7 +59,7 @@ export const PASSING_TEST_TRANSACTIONS: TestTransaction[] = [ hash: '0xa0d4809a4835d84d15467a9fddfde73d1e57fa5121e56fff2a0526c448011c21', input: '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000a44ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000004200000000000000000000000000000000000006000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f084000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000011c37937e0800000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000110d9316ec00000000000000000000000000000000000000000000000000000010f903280265cf000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000653d989f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f084000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000464e691a2aa000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000001b48eb57e00000000000000000000000000000000000000000000000000000110ed8b84a7330000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000025c030116feb2e7bba054b9de0915e5f51b03e31000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000128000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d620000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000138873796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000264ac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000012475ceafe6000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010f38fccf2933000000000000000000000000000000000000000000000000114865d812ebb843c00000000000000000000000000000000000000000000000000000000653d98aa000000000000000000000000000000000000000000000000000000000000002bdeaddeaddeaddeaddeaddeaddeaddeaddead1111000bb878c1b0c915c4faa5fffa6cabf0219da63d7f4cb800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: '0x1a039ce63ae35a67bf0e9f6dbfae969639d59ec8', + to: symbiosis.metaRouter(10).address as Address, value: '5000000000000000', }, destinationChainId: 5000, @@ -73,7 +74,7 @@ export const PASSING_TEST_TRANSACTIONS: TestTransaction[] = [ from: '0xa99f898530df1514a566f1a6562d62809e99557d', input: '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ee981b2459331ad268cc63ce6167b446af4161f80000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000024812aa3caf000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd090000000000000000000000006f0f6393e45fe0e7215906b6f9cfeff53ea139cf000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000aca33af000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000008300002000000600206b4be0b940414200000000000000000000000000000000000006d0e30db002a00000000000000000000000000000000000000000000000000000000000000001ee63c1e5814c36388be6f416a29c8d8eee81c771ce6be14b1842000000000000000000000000000000000000061111111254eeb25477b68fb85ed929f73a960582000000000000000000000000000000000000000000000000000000000000008b1ccac8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca0000000000000000000000000000000000000000000000000000000000001524ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000adaa6ca000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000adaa6ca00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ad612ea000000000000000000000000000000000000000000000000000000000ab708e1000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000654079820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f44e691a2aa00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000003981ae0000000000000000000000000000000000000000000000000000000000ad5352b000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e640000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000104000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000000173796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4490411a32000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d3000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000073d1a4b00000000000000000000000000000000000000000000000000f2047f855daef000000000000000000000000000000000000000000000000000f42a8e4a37abbd00000000000000000000000000000000000000000000000000000000000000020000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f96200000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000007e00000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000006c83b0feef04139eb5520b1ce0e78069c6e7e2c500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ea0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000bb8ae7ab96520de3a18e5e111b5eaab095312d7fe840000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003a451a74316000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d9000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f67022000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f6702200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000843df0212400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a000050000000000000000000000000000000000000000000000f449d321a885ea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: '0x6f0f6393e45fe0e7215906b6f9cfeff53ea139cf', + to: symbiosis.metaRouter(8453).address as Address, value: '100000000000000000', }, destinationChainId: 1, @@ -89,7 +90,7 @@ const bridgeTx: Transaction = { from: '0xa99f898530df1514a566f1a6562d62809e99557d', input: '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002200000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000000000000115ac18000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d9000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000000a8e449022e000000000000000000000000000000000000000000000000000000000115ac1800000000000000000000000000000000000000000000000000000000011176b6000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000018000000000000000000000008e295789c9465487074a65b1ae9ce0351172393f8b1ccac800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000007c4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000115a0ce000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec000000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000115a0ce00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000001110cee00000000000000000000000000000000000000000000000000000000010b91a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000065407e9b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e4e691a2aa0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000c350000000000000000000000000000000000000000000000000000000000111140a000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d620000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000138873796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: '0xca506793a420e901bbca8066be5661e3c52c84c2', + to: symbiosis.metaRouter(42161).address as Address, value: '0', } From 9b5b10fe943ed0f24c530fa94ba88f5454853665 Mon Sep 17 00:00:00 2001 From: Mmackz Date: Sat, 23 Dec 2023 13:31:13 -0800 Subject: [PATCH 03/13] fix(symbiosis): (wip) use updated transactions --- packages/symbiosis/src/Symbiosis.test.ts | 190 ++++++++++---------- packages/symbiosis/src/test-transactions.ts | 128 +++++++------ 2 files changed, 173 insertions(+), 145 deletions(-) diff --git a/packages/symbiosis/src/Symbiosis.test.ts b/packages/symbiosis/src/Symbiosis.test.ts index fa28ceaad..0e45822ec 100644 --- a/packages/symbiosis/src/Symbiosis.test.ts +++ b/packages/symbiosis/src/Symbiosis.test.ts @@ -14,38 +14,38 @@ const TEST_USER = '0xB7e98B3F16CC915B9C7a321c1bd95fa406BDbabe' const OPTIMISM_USDCe_ADDRESS = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607' describe('Given the symbiosis plugin', () => { - describe('When handling the bridge', () => { - test('should return a valid action filter', async () => { - const filter = await bridge({ - sourceChainId: OPTIMISM_CHAIN_ID, - destinationChainId: ETH_CHAIN_ID, - tokenAddress: OPTIMISM_USDCe_ADDRESS, - amount: GreaterThanOrEqual(100000n), - recipient: TEST_USER, - }) + // describe('When handling the bridge', () => { + // test('should return a valid action filter', async () => { + // const filter = await bridge({ + // sourceChainId: OPTIMISM_CHAIN_ID, + // destinationChainId: ETH_CHAIN_ID, + // tokenAddress: OPTIMISM_USDCe_ADDRESS, + // amount: GreaterThanOrEqual(100000n), + // recipient: TEST_USER, + // }) - expect(filter).to.deep.equal({ - chainId: 10, - to: symbiosis.metaRouter(10).address, - input: { - $abi: metaRouteABI, - _metarouteTransaction: { - approvedTokens: [OPTIMISM_USDCe_ADDRESS], - amount: { - $gte: '100000', - }, - otherSideCalldata: { - $abiAbstract: metaBurnABI, - _metaBurnTransaction: { - chainID: 1, - chain2address: TEST_USER, - }, - }, - }, - }, - }) - }) - }) + // expect(filter).to.deep.equal({ + // chainId: 10, + // to: symbiosis.metaRouter(10).address, + // input: { + // $abi: metaRouteABI, + // _metarouteTransaction: { + // approvedTokens: [OPTIMISM_USDCe_ADDRESS], + // amount: { + // $gte: '100000', + // }, + // otherSideCalldata: { + // $abiAbstract: metaBurnABI, + // _metaBurnTransaction: { + // chainID: 1, + // chain2address: TEST_USER, + // }, + // }, + // }, + // }, + // }) + // }) + // }) describe('should pass filter with valid transactions', () => { PASSING_TEST_TRANSACTIONS.forEach((testTransaction) => { test(testTransaction.description, async () => { @@ -61,78 +61,78 @@ describe('Given the symbiosis plugin', () => { sourceChainId: transaction.chainId, destinationChainId, tokenAddress, - amount: GreaterThanOrEqual(amount), + amount: amount ? GreaterThanOrEqual(amount) : amount, recipient, }) expect(apply(transaction, filter)).to.be.true }) }) }) - describe('should not pass filter with invalid parameters', () => { - test('when sourceChainId is incorrect', async () => { - const { transaction, tokenAddress, recipient } = controlTransaction + // describe('should not pass filter with invalid parameters', () => { + // test('when sourceChainId is incorrect', async () => { + // const { transaction, tokenAddress, recipient } = controlTransaction - const filter = await bridge({ - sourceChainId: 1, // 42161 - destinationChainId: 5000, - tokenAddress, - amount: GreaterThanOrEqual(10000n), - recipient, - }) - expect(apply(transaction, filter)).to.be.false - }) - test('when bridge contract address is incorrect', async () => { - const { transaction, tokenAddress, recipient } = controlTransaction + // const filter = await bridge({ + // sourceChainId: 1, // 42161 + // destinationChainId: 5000, + // tokenAddress, + // amount: GreaterThanOrEqual(10000n), + // recipient, + // }) + // expect(apply(transaction, filter)).to.be.false + // }) + // test('when bridge contract address is incorrect', async () => { + // const { transaction, tokenAddress, recipient } = controlTransaction - const filter = await bridge({ - sourceChainId: 42161, - destinationChainId: 5000, - contractAddress: '0x1DCfbC3fA01b2a86bC3a3f43479cCe9E8D438Adc', - tokenAddress, - amount: GreaterThanOrEqual(10000n), - recipient, - }) - expect(apply(transaction, filter)).to.be.false - }) - FAILING_TEST_TRANSACTIONS.forEach((testTransaction) => { - test(testTransaction.description, async () => { - const { - transaction, - destinationChainId, - tokenAddress, - amount, - recipient, - } = testTransaction + // const filter = await bridge({ + // sourceChainId: 42161, + // destinationChainId: 5000, + // contractAddress: '0x1DCfbC3fA01b2a86bC3a3f43479cCe9E8D438Adc', + // tokenAddress, + // amount: GreaterThanOrEqual(10000n), + // recipient, + // }) + // expect(apply(transaction, filter)).to.be.false + // }) + // FAILING_TEST_TRANSACTIONS.forEach((testTransaction) => { + // test(testTransaction.description, async () => { + // const { + // transaction, + // destinationChainId, + // tokenAddress, + // amount, + // recipient, + // } = testTransaction - const filter = await bridge({ - sourceChainId: transaction.chainId, - destinationChainId, - tokenAddress, - amount: GreaterThanOrEqual(amount), - recipient, - }) - expect(apply(transaction, filter)).to.be.false - }) - }) - }) - describe('control transaction should pass filter', () => { - test(controlTransaction.description, async () => { - const { - transaction, - destinationChainId, - tokenAddress, - amount, - recipient, - } = controlTransaction + // const filter = await bridge({ + // sourceChainId: transaction.chainId, + // destinationChainId, + // tokenAddress, + // amount: amount ? GreaterThanOrEqual(amount) : amount, + // recipient, + // }) + // expect(apply(transaction, filter)).to.be.false + // }) + // }) + // }) + // describe('control transaction should pass filter', () => { + // test(controlTransaction.description, async () => { + // const { + // transaction, + // destinationChainId, + // tokenAddress, + // amount, + // recipient, + // } = controlTransaction - const filter = await bridge({ - sourceChainId: transaction.chainId, - destinationChainId, - tokenAddress, - amount: GreaterThanOrEqual(amount), - recipient, - }) - expect(apply(transaction, filter)).to.be.true - }) - }) + // const filter = await bridge({ + // sourceChainId: transaction.chainId, + // destinationChainId, + // tokenAddress, + // amount: GreaterThanOrEqual(amount), + // recipient, + // }) + // expect(apply(transaction, filter)).to.be.true + // }) + // }) }) diff --git a/packages/symbiosis/src/test-transactions.ts b/packages/symbiosis/src/test-transactions.ts index 15a07b2ee..35e0f5d1a 100644 --- a/packages/symbiosis/src/test-transactions.ts +++ b/packages/symbiosis/src/test-transactions.ts @@ -14,74 +14,102 @@ interface Transaction { interface TestTransaction { transaction: Transaction destinationChainId: number - amount: bigint | number + amount?: bigint | number tokenAddress?: Address recipient?: Address description: string } export const PASSING_TEST_TRANSACTIONS: TestTransaction[] = [ + // { + // transaction: { + // chainId: 1, + // from: '0x27229c5c34c018e6a43d2a00f8f81e06f54a9a5d', + // hash: '0xc97deae76c21cb57498d2873babd212fa589eae9e4d2e979f4a10a3428f376ee', + // input: + // '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000003782dace9d9000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000a04ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e00000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000006400000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d73796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000001ce4e75e2bd6bbbacde1e10d6813228138337e86000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa00000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000378224e87c9b8000000000000000000000000000000000000000000000000000377a9ae76526d3c2000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000653b51d1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb00000000000000000000000000000000000000000000000000000000000000020000000000000000000000001ce4e75e2bd6bbbacde1e10d6813228138337e86000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000424e691a2aa0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000221b262dd800000000000000000000000000000000000000000000000000037915d9d196a94eb000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000006e2b76966cbd9cf4cc2fa0d76d24d5241e0abc2f000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000c400000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d00000000000000000000000039de19c9ff25693a2311aad1dc5c790194084a39000000000000000000000000b0d30ad9c1a7b303977db7ea073a4329d930d94c00000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000000000000000014473796d62696f7369732d61707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022812aa3caf000000000000000000000000a9305c3c14757bae2e73ef7f66fe241f5f6bf3470000000000000000000000005aea5775959fbc2557cc8789bc1bf90a239d9a91000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000a9305c3c14757bae2e73ef7f66fe241f5f6bf34700000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000378f3beab68d14eb0000000000000000000000000000000000000000000000003773ece9b06260530000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a00000000000000000000000000000000000000000000006c00005600001a0020d6bdbf785aea5775959fbc2557cc8789bc1bf90a239d9a9141215aea5775959fbc2557cc8789bc1bf90a239d9a9100042e1a7d4d0000000000000000000000000000000000000000000000000000000000000000c0616e2b76966cbd9cf4cc2fa0d76d24d5241e0abc2f000000000000000000000000000000000000000000008b1ccac80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + // to: symbiosis.metaRouter(1).address as Address, + // value: '4000000000000000000', + // }, + // destinationChainId: 324, + // amount: parseEther('3.5'), + // tokenAddress: '0x0000000000000000000000000000000000000000', + // description: 'when bridging >= 2 ETH from Mainnet to ZK Sync', + // }, + // { + // transaction: { + // chainId: 10, + // from: '0x2108791df451e953a0e356be2f5dca3e7b8e2a76', + // hash: '0xce06592607e69b1b20becfd1dba2b0ae1907b066f5fe15d8f960cf5c631d1cd3', + // input: + // '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000005667db60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c316070000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c3160700000000000000000000000000000000000000000000000000000000000008a4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000005667db60000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c31607000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d2866000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e0000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a76000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a8000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000000640000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a7673646b2d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f072f11bf151038bd8732cd1088b7c98762b839c000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000000000005667db600000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa000000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000561e9d600000000000000000000000000000000000000000000000000000000055e750e000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000018b5788695d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f072f11bf151038bd8732cd1088b7c98762b839c000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c4e691a2aa000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000561e6ea000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000044000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d286600000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d90000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e0000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a76000000000000000000000000000000000000000000000000000000000000a4b173646b2d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8bc80f1a8000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d286600000000000000000000000000000000000000000000000000000000055d530a000000000000000000000000000000000000000000000000000000000559d425000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000008e295789c9465487074a65b1ae9ce0351172393fea698b470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + // to: symbiosis.metaRouter(10).address as Address, + // value: '0', + // }, + // destinationChainId: 42161, + // amount: 90000000n, + // tokenAddress: '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', + // recipient: '0xE833D3cE2B1871fef88742E007254fF73b6d2866', + // description: 'when bridging >= 90 USDC.e from Optimism to Arbitrum', + // }, + // { + // transaction: { + // chainId: 10, + // from: '0xa99f898530df1514a566f1a6562d62809e99557d', + // hash: '0xa0d4809a4835d84d15467a9fddfde73d1e57fa5121e56fff2a0526c448011c21', + // input: + // '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000a44ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000004200000000000000000000000000000000000006000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f084000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000011c37937e0800000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000110d9316ec00000000000000000000000000000000000000000000000000000010f903280265cf000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000653d989f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f084000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000464e691a2aa000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000001b48eb57e00000000000000000000000000000000000000000000000000000110ed8b84a7330000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000025c030116feb2e7bba054b9de0915e5f51b03e31000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000128000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d620000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000138873796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000264ac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000012475ceafe6000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010f38fccf2933000000000000000000000000000000000000000000000000114865d812ebb843c00000000000000000000000000000000000000000000000000000000653d98aa000000000000000000000000000000000000000000000000000000000000002bdeaddeaddeaddeaddeaddeaddeaddeaddead1111000bb878c1b0c915c4faa5fffa6cabf0219da63d7f4cb800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + // to: symbiosis.metaRouter(10).address as Address, + // value: '5000000000000000', + // }, + // destinationChainId: 5000, + // amount: parseEther('0.005'), + // tokenAddress: '0x0000000000000000000000000000000000000000', + // recipient: '0xA99F898530dF1514A566f1a6562D62809e99557D', + // description: 'when bridging ETH from Optimism to Mantle', + // }, + // { + // transaction: { + // chainId: 8453, + // from: '0xa99f898530df1514a566f1a6562d62809e99557d', + // input: + // '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ee981b2459331ad268cc63ce6167b446af4161f80000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000024812aa3caf000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd090000000000000000000000006f0f6393e45fe0e7215906b6f9cfeff53ea139cf000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000aca33af000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000008300002000000600206b4be0b940414200000000000000000000000000000000000006d0e30db002a00000000000000000000000000000000000000000000000000000000000000001ee63c1e5814c36388be6f416a29c8d8eee81c771ce6be14b1842000000000000000000000000000000000000061111111254eeb25477b68fb85ed929f73a960582000000000000000000000000000000000000000000000000000000000000008b1ccac8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca0000000000000000000000000000000000000000000000000000000000001524ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000adaa6ca000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000adaa6ca00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ad612ea000000000000000000000000000000000000000000000000000000000ab708e1000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000654079820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f44e691a2aa00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000003981ae0000000000000000000000000000000000000000000000000000000000ad5352b000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e640000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000104000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000000173796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4490411a32000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d3000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000073d1a4b00000000000000000000000000000000000000000000000000f2047f855daef000000000000000000000000000000000000000000000000000f42a8e4a37abbd00000000000000000000000000000000000000000000000000000000000000020000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f96200000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000007e00000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000006c83b0feef04139eb5520b1ce0e78069c6e7e2c500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ea0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000bb8ae7ab96520de3a18e5e111b5eaab095312d7fe840000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003a451a74316000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d9000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f67022000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f6702200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000843df0212400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a000050000000000000000000000000000000000000000000000f449d321a885ea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + // to: symbiosis.metaRouter(8453).address as Address, + // value: '100000000000000000', + // }, + // destinationChainId: 1, + // amount: parseEther('0.1'), + // tokenAddress: '0x0000000000000000000000000000000000000000', + // recipient: '0xa99f898530df1514a566f1a6562d62809e99557d', + // description: 'when bridging >= 0.1 ETH from Base to Mainnet', + // }, { transaction: { - chainId: 1, - from: '0x27229c5c34c018e6a43d2a00f8f81e06f54a9a5d', - hash: '0xc97deae76c21cb57498d2873babd212fa589eae9e4d2e979f4a10a3428f376ee', - input: - '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000003782dace9d9000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000a04ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e00000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000006400000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d73796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000001ce4e75e2bd6bbbacde1e10d6813228138337e86000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa00000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000378224e87c9b8000000000000000000000000000000000000000000000000000377a9ae76526d3c2000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000653b51d1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb00000000000000000000000000000000000000000000000000000000000000020000000000000000000000001ce4e75e2bd6bbbacde1e10d6813228138337e86000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000424e691a2aa0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000221b262dd800000000000000000000000000000000000000000000000000037915d9d196a94eb000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000006e2b76966cbd9cf4cc2fa0d76d24d5241e0abc2f000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000c400000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d00000000000000000000000039de19c9ff25693a2311aad1dc5c790194084a39000000000000000000000000b0d30ad9c1a7b303977db7ea073a4329d930d94c00000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000000000000000014473796d62696f7369732d61707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022812aa3caf000000000000000000000000a9305c3c14757bae2e73ef7f66fe241f5f6bf3470000000000000000000000005aea5775959fbc2557cc8789bc1bf90a239d9a91000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000a9305c3c14757bae2e73ef7f66fe241f5f6bf34700000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000378f3beab68d14eb0000000000000000000000000000000000000000000000003773ece9b06260530000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a00000000000000000000000000000000000000000000006c00005600001a0020d6bdbf785aea5775959fbc2557cc8789bc1bf90a239d9a9141215aea5775959fbc2557cc8789bc1bf90a239d9a9100042e1a7d4d0000000000000000000000000000000000000000000000000000000000000000c0616e2b76966cbd9cf4cc2fa0d76d24d5241e0abc2f000000000000000000000000000000000000000000008b1ccac80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: symbiosis.metaRouter(1).address as Address, - value: '4000000000000000000', - }, - destinationChainId: 324, - amount: parseEther('3.5'), - tokenAddress: '0x0000000000000000000000000000000000000000', - description: 'when bridging >= 2 ETH from Mainnet to ZK Sync', - }, - { - transaction: { - chainId: 10, - from: '0x2108791df451e953a0e356be2f5dca3e7b8e2a76', - hash: '0xce06592607e69b1b20becfd1dba2b0ae1907b066f5fe15d8f960cf5c631d1cd3', + chainId: 8453, + from: '0xef125e49fb1a1bc5f8025b364ca5486368ff87a9', input: - '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000005667db60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c316070000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c3160700000000000000000000000000000000000000000000000000000000000008a4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000005667db60000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c31607000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d2866000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e0000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a76000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a8000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000000640000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a7673646b2d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f072f11bf151038bd8732cd1088b7c98762b839c000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000000000005667db600000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa000000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000561e9d600000000000000000000000000000000000000000000000000000000055e750e000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000018b5788695d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f072f11bf151038bd8732cd1088b7c98762b839c000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c4e691a2aa000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000561e6ea000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000044000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d286600000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d90000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e0000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a76000000000000000000000000000000000000000000000000000000000000a4b173646b2d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8bc80f1a8000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d286600000000000000000000000000000000000000000000000000000000055d530a000000000000000000000000000000000000000000000000000000000559d425000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000008e295789c9465487074a65b1ae9ce0351172393fea698b470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: symbiosis.metaRouter(10).address as Address, - value: '0', + '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7d8c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ee981b2459331ad268cc63ce6167b446af4161f800000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca0000000000000000000000000000000000000000000000000000000000000584ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000000a7d8c0000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a9000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a9000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a973796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa00000000000000000000000000000000000000000000000000000000000002a41e859a05000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000260000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a90000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a45f4b9bde00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000a344e00000000000000000000000000000000000000000000000009112961495662832000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a9000000000000000000000000000000000000000000000000000000006590735f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + to: symbiosis.metaRouter(8453).address as Address, + value: '100000000000000000', }, destinationChainId: 42161, - amount: 90000000n, - tokenAddress: '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', - recipient: '0xE833D3cE2B1871fef88742E007254fF73b6d2866', - description: 'when bridging >= 90 USDC.e from Optimism to Arbitrum', + amount: parseEther('0.00000000001'), + tokenAddress: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA', + description: 'when bridging from Base to arbitrum', }, { transaction: { - chainId: 10, - from: '0xa99f898530df1514a566f1a6562d62809e99557d', - hash: '0xa0d4809a4835d84d15467a9fddfde73d1e57fa5121e56fff2a0526c448011c21', + chainId: 137, + from: '0x865c301c46d64de5c9b124ec1a97ef1efc1bcbd1', input: - '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000a44ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000004200000000000000000000000000000000000006000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f084000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000011c37937e0800000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000110d9316ec00000000000000000000000000000000000000000000000000000010f903280265cf000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000653d989f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f084000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000464e691a2aa000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000001b48eb57e00000000000000000000000000000000000000000000000000000110ed8b84a7330000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000025c030116feb2e7bba054b9de0915e5f51b03e31000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000128000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d620000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000138873796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000264ac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000012475ceafe6000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010f38fccf2933000000000000000000000000000000000000000000000000114865d812ebb843c00000000000000000000000000000000000000000000000000000000653d98aa000000000000000000000000000000000000000000000000000000000000002bdeaddeaddeaddeaddeaddeaddeaddeaddead1111000bb878c1b0c915c4faa5fffa6cabf0219da63d7f4cb800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: symbiosis.metaRouter(10).address as Address, - value: '5000000000000000', - }, - destinationChainId: 5000, - amount: parseEther('0.005'), - tokenAddress: '0x0000000000000000000000000000000000000000', - recipient: '0xA99F898530dF1514A566f1a6562D62809e99557D', - description: 'when bridging ETH from Optimism to Mantle', - }, - { - transaction: { - chainId: 8453, - from: '0xa99f898530df1514a566f1a6562d62809e99557d', - input: - '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ee981b2459331ad268cc63ce6167b446af4161f80000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000024812aa3caf000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd090000000000000000000000006f0f6393e45fe0e7215906b6f9cfeff53ea139cf000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000aca33af000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000008300002000000600206b4be0b940414200000000000000000000000000000000000006d0e30db002a00000000000000000000000000000000000000000000000000000000000000001ee63c1e5814c36388be6f416a29c8d8eee81c771ce6be14b1842000000000000000000000000000000000000061111111254eeb25477b68fb85ed929f73a960582000000000000000000000000000000000000000000000000000000000000008b1ccac8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca0000000000000000000000000000000000000000000000000000000000001524ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000adaa6ca000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000adaa6ca00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ad612ea000000000000000000000000000000000000000000000000000000000ab708e1000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000654079820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f44e691a2aa00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000003981ae0000000000000000000000000000000000000000000000000000000000ad5352b000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e640000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000104000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000000173796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4490411a32000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d3000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000073d1a4b00000000000000000000000000000000000000000000000000f2047f855daef000000000000000000000000000000000000000000000000000f42a8e4a37abbd00000000000000000000000000000000000000000000000000000000000000020000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f96200000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000007e00000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000006c83b0feef04139eb5520b1ce0e78069c6e7e2c500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ea0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000bb8ae7ab96520de3a18e5e111b5eaab095312d7fe840000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003a451a74316000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d9000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f67022000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f6702200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000843df0212400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a000050000000000000000000000000000000000000000000000f449d321a885ea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: symbiosis.metaRouter(8453).address as Address, + '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000234000000000000000000000000000000000000000000000000000000000000023600000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000023c000000000000000000000000000000000000000000000000000000000000021e490411a320000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000010100000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd3000000000000000000000000a260e3732593e4ecf9ddc144fd6c4c5fe70779780000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000007ffcfc000000000000000000000000000000000000000000000000000000000080bf7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f962000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000007a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000d200000000000000000000000000000000000000000000000000000000000000f8000000000000000000000000000000000000000000000000000000000000010a000000000000000000000000000000000000000000000000000000000000011c000000000000000000000000000000000000000000000000000000000000014c000000000000000000000000000000000000000000000000000000000000016c000000000000000000000000000000000000000000000000000000000000019200000000000000000000000000000000000000000000000000000000000001a400000000000000000000000000000000000000000000000000000000000001b600000000000000000000000000000000000000000000000000000000000001c800000000000000000000000000000000000000000000000000000000000001da0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001449f8654220000000000000000000000000000000000000000000000000000000000001010000000000000000000000000000000040000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000008000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000380615f37993b5a96adf3d443b6e0ac50a21199800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f000000000000000000007d0001380615f37993b5a96adf3d443b6e0ac50a2119980000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000c0000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000005e58e0ced3a272caeb8ba00f4a4c2805df6be4950000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064cac460ee00000000000000003b8b87c05e58e0ced3a272caeb8ba00f4a4c2805df6be4950000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001449f86542200000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000400000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000b4d852b92148eaa16467295975167e640e1fe57a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f000000000000000000186a00b4b4d852b92148eaa16467295975167e640e1fe57a0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000bd02973b441aa83c8eecea158b98b5984bb1036e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f000000000000000000186a0028bd02973b441aa83c8eecea158b98b5984bb1036e00000000000000000000000040379a439d4f6795b6fc9aa5687db461677a2dba0000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f8654220000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a06300000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000005645dcb64c059aa11212707fbf4e7f984440a8cf000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e8f3cf7ad23cd3cadbd9735aff958023239c6a0630000642791bca1f2de4661ed88a30c99a7a9449aa841740000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001449f86542200000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000200000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000951e38875a93df95bbd24fe31f409b7933b35bed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064cac460ee00000000000000003b8b87c0951e38875a93df95bbd24fe31f409b7933b35bed0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000074c64d1976157e7aaeeed46ef04705f4424b27ec00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f008000000000000000186a00b474c64d1976157e7aaeeed46ef04705f4424b27ec0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000d17cb0f162f133e339c0bbfc18c36c357e681d6b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f008000000000000000186a0028d17cb0f162f133e339c0bbfc18c36c357e681d6b00000000000000000000000040379a439d4f6795b6fc9aa5687db461677a2dba0000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000000000080bf7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000a260e3732593e4ecf9ddc144fd6c4c5fe707797800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000008c4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000080bf710000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd1000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd1000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd173796d62696f7369732d61707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000059aa2e5f628659918a4890a2a732e6c8bd334e7a000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000080bf7100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000007c2b9100000000000000000000000000000000000000000000000000000000007ac7cf0000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d00000000000000000000000000000000000000000000000000000000658fb68d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece84882000000000000000000000000000000000000000000000000000000000000000200000000000000000000000059aa2e5f628659918a4890a2a732e6c8bd334e7a000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e4e66bb550000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000927c000000000000000000000000000000000000000000000000000000000007c283300000000000000000000000000000000000000000000000000000000000000000000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000044000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd100000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d90000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd1000000000000000000000000000000000000000000000000000000000000a4b173796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8bc80f1a8000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd10000000000000000000000000000000000000000000000000000000000730073000000000000000000000000000000000000000000000000000b9d81f4d88a7e00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001a000000000000000000000006f38e884725a116c9c7fbf208e79fe8828a2595fea698b470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + to: symbiosis.metaRouter(137).address as Address, value: '100000000000000000', }, - destinationChainId: 1, - amount: parseEther('0.1'), + destinationChainId: 42161, + amount: parseEther('0.00000000001'), tokenAddress: '0x0000000000000000000000000000000000000000', - recipient: '0xa99f898530df1514a566f1a6562d62809e99557d', - description: 'when bridging >= 0.1 ETH from Base to Mainnet', + description: 'when bridging polygon to arbitrum', }, ] From 8da0a35261ab5dfd72ebe2ab88acb6e99c98f0fd Mon Sep 17 00:00:00 2001 From: Mmackz Date: Tue, 26 Dec 2023 21:27:12 -0800 Subject: [PATCH 04/13] chore(pnpm): update and pin symbiosys sdk --- packages/symbiosis/package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/symbiosis/package.json b/packages/symbiosis/package.json index a7bb1924d..d8d0cb9a1 100644 --- a/packages/symbiosis/package.json +++ b/packages/symbiosis/package.json @@ -45,7 +45,7 @@ "dependencies": { "@rabbitholegg/questdk": "2.0.0-alpha.28", "ethers": "^5.2.0", - "symbiosis-js-sdk": "3.0.9", + "symbiosis-js-sdk": "3.1.15", "viem": "^1.2.15" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c24e5015..792673a89 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -524,7 +524,7 @@ importers: ethers: ^5.2.0 rimraf: ^5.0.1 rome: ^12.1.3 - symbiosis-js-sdk: 3.0.9 + symbiosis-js-sdk: 3.1.15 ts-node: ^10.9.1 tsconfig: workspace:* typescript: ^5.1.6 @@ -533,7 +533,7 @@ importers: dependencies: '@rabbitholegg/questdk': 2.0.0-alpha.28_typescript@5.3.3 ethers: 5.7.2 - symbiosis-js-sdk: 3.0.9_ethers@5.7.2 + symbiosis-js-sdk: 3.1.15_ethers@5.7.2 viem: 1.21.0_typescript@5.3.3 devDependencies: '@types/node': 20.10.5 @@ -9259,8 +9259,8 @@ packages: - utf-8-validate dev: false - /symbiosis-js-sdk/3.0.9_ethers@5.7.2: - resolution: {integrity: sha512-jNdOiSiXHIAGgnhDI/KeRVeCNcr284+5ocPOR9ccnvb4ltBb8eA1O+fem2EVrPj/yHxk5weM16vTuparCVNljQ==} + /symbiosis-js-sdk/3.1.15_ethers@5.7.2: + resolution: {integrity: sha512-oxXLjPcEX3vB7jOv+YfKVqiYYwP7oUF1+yjG3InpFXEpg5orOcgevrK52U1cY3q526x646B9RRPKeVEFxD7GdQ==} engines: {node: '>=10'} peerDependencies: ethers: ^5.2.0 From 7e4011ea82e483f6d35c718a9eb3a3ceb6053026 Mon Sep 17 00:00:00 2001 From: Mmackz Date: Tue, 26 Dec 2023 21:27:54 -0800 Subject: [PATCH 05/13] fix(symbiosis): update metaburn abi --- packages/symbiosis/src/abi.ts | 69 ++++++----------------------------- 1 file changed, 12 insertions(+), 57 deletions(-) diff --git a/packages/symbiosis/src/abi.ts b/packages/symbiosis/src/abi.ts index ba0b77130..bda07ac09 100644 --- a/packages/symbiosis/src/abi.ts +++ b/packages/symbiosis/src/abi.ts @@ -55,66 +55,27 @@ export const metaBurnABI = [ name: 'stableBridgingFee', type: 'uint256', }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'address', - name: 'syntCaller', - type: 'address', - }, + { internalType: 'uint256', name: 'amount', type: 'uint256' }, + { internalType: 'bytes32', name: 'crossChainID', type: 'bytes32' }, + { internalType: 'address', name: 'syntCaller', type: 'address' }, { internalType: 'address', name: 'finalReceiveSide', type: 'address', }, - { - internalType: 'address', - name: 'sToken', - type: 'address', - }, - { - internalType: 'bytes', - name: 'finalCallData', - type: 'bytes', - }, - { - internalType: 'uint256', - name: 'finalOffset', - type: 'uint256', - }, - { - internalType: 'address', - name: 'chain2address', - type: 'address', - }, - { - internalType: 'address', - name: 'receiveSide', - type: 'address', - }, - { - internalType: 'address', - name: 'oppositeBridge', - type: 'address', - }, + { internalType: 'address', name: 'sToken', type: 'address' }, + { internalType: 'bytes', name: 'finalCallData', type: 'bytes' }, + { internalType: 'uint256', name: 'finalOffset', type: 'uint256' }, + { internalType: 'address', name: 'chain2address', type: 'address' }, + { internalType: 'address', name: 'receiveSide', type: 'address' }, + { internalType: 'address', name: 'oppositeBridge', type: 'address' }, { internalType: 'address', name: 'revertableAddress', type: 'address', }, - { - internalType: 'uint256', - name: 'chainID', - type: 'uint256', - }, - { - internalType: 'bytes32', - name: 'clientID', - type: 'bytes32', - }, + { internalType: 'uint256', name: 'chainID', type: 'uint256' }, + { internalType: 'bytes32', name: 'clientID', type: 'bytes32' }, ], internalType: 'struct MetaRouteStructs.MetaBurnTransaction', name: '_metaBurnTransaction', @@ -122,13 +83,7 @@ export const metaBurnABI = [ }, ], name: 'metaBurnSyntheticToken', - outputs: [ - { - internalType: 'bytes32', - name: 'internalID', - type: 'bytes32', - }, - ], + outputs: [{ internalType: 'bytes32', name: 'internalID', type: 'bytes32' }], stateMutability: 'nonpayable', type: 'function', }, From 3805f9e835d072415d8c7f7f2bc513719af73daf Mon Sep 17 00:00:00 2001 From: Mmackz Date: Tue, 26 Dec 2023 21:28:08 -0800 Subject: [PATCH 06/13] feat(symbiosis): import utils folder --- packages/symbiosis/src/utils.ts | 63 +++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 packages/symbiosis/src/utils.ts diff --git a/packages/symbiosis/src/utils.ts b/packages/symbiosis/src/utils.ts new file mode 100644 index 000000000..c9a3a355a --- /dev/null +++ b/packages/symbiosis/src/utils.ts @@ -0,0 +1,63 @@ +import type { ActionParams } from '@rabbitholegg/questdk' +import type { Address, Hash } from 'viem' + +export enum Chains { + ETHEREUM = 1, + OPTIMISM = 10, + BINANCE_SMART_CHAIN = 56, + GNOSIS = 100, + POLYGON_POS = 137, + ZK_SYNC_ERA = 324, + POLYGON_ZK = 1101, + MANTLE = 5000, + BASE = 8453, + ARBITRUM_ONE = 42161, + AVALANCHE = 43114, + LINEA = 59144, + SCROLL = 534352, +} + +interface Transaction { + chainId: number + from: Address + hash?: Hash + input: string + to: Address + value: string +} + +export interface TestCase { + transaction: Transaction + params: T + description: string +} + +export type TestParams = { + transaction: Transaction + params: T +} + +/** + * Creates a test case object for a given action and transaction. + * + * This function takes a `TestParams` object that includes both a `Transaction` and + * `ActionParams`, a description of the test case, and an optional set of overrides + * for the action parameters. It returns a `TestCase` object that contains the transaction, + * the combined action parameters with any overrides applied, and the description. + * + * @param {TestParams} testParams - An object containing the transaction and action parameters. + * @param {string} description - A brief description of the test case. + * @param {Partial} [overrides] - Optional overrides for the action parameters. + * @returns {TestCase} A test case object with the transaction, params, and description. + */ +export function createTestCase( + testParams: TestParams, + description: string, + overrides: Partial = {}, +): TestCase { + return { + transaction: testParams.transaction, + params: { ...testParams.params, ...overrides }, + description, + } +} From 787062b175110d3dcc9b3bb1936cddee266c548d Mon Sep 17 00:00:00 2001 From: Mmackz Date: Tue, 26 Dec 2023 21:29:07 -0800 Subject: [PATCH 07/13] test(symbiosis): add tests for various pass and fail conditions --- packages/symbiosis/src/Symbiosis.test.ts | 167 ++++-------- packages/symbiosis/src/test-transactions.ts | 274 ++++++++++---------- 2 files changed, 175 insertions(+), 266 deletions(-) diff --git a/packages/symbiosis/src/Symbiosis.test.ts b/packages/symbiosis/src/Symbiosis.test.ts index 0e45822ec..32e080ac9 100644 --- a/packages/symbiosis/src/Symbiosis.test.ts +++ b/packages/symbiosis/src/Symbiosis.test.ts @@ -1,138 +1,59 @@ -import { GreaterThanOrEqual, apply } from '@rabbitholegg/questdk/filter' +import { apply } from '@rabbitholegg/questdk/filter' import { describe, expect, test } from 'vitest' import { bridge } from './Symbiosis' import { - PASSING_TEST_TRANSACTIONS, - FAILING_TEST_TRANSACTIONS, - controlTransaction, + passingTestCases, + failingTestCases, } from './test-transactions' import { metaBurnABI, metaRouteABI } from './abi' -import { ETH_CHAIN_ID, OPTIMISM_CHAIN_ID } from './constants' -import { symbiosis } from './symbiosis-sdk' - -const TEST_USER = '0xB7e98B3F16CC915B9C7a321c1bd95fa406BDbabe' -const OPTIMISM_USDCe_ADDRESS = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607' +import { zeroAddress } from 'viem' +import { Chains } from './utils' describe('Given the symbiosis plugin', () => { - // describe('When handling the bridge', () => { - // test('should return a valid action filter', async () => { - // const filter = await bridge({ - // sourceChainId: OPTIMISM_CHAIN_ID, - // destinationChainId: ETH_CHAIN_ID, - // tokenAddress: OPTIMISM_USDCe_ADDRESS, - // amount: GreaterThanOrEqual(100000n), - // recipient: TEST_USER, - // }) + describe('When handling the bridge', () => { + test('should return a valid action filter', async () => { + const { params } = passingTestCases[0] + const filter = await bridge(params) + expect(filter).to.deep.equal({ + chainId:Chains.OPTIMISM, + to: '0x0f91052dc5B4baE53d0FeA5DAe561A117268f5d2', + input: { + $abi: metaRouteABI, + _metarouteTransaction: { + approvedTokens: [zeroAddress], + amount: { + $gte: '7500000000000000', + }, + otherSideCalldata: { + $abiAbstract: metaBurnABI, + _metaBurnTransaction: { + chainID: Chains.ARBITRUM_ONE, + chain2address: '0xa99f898530df1514a566f1a6562d62809e99557d', + }, + }, + }, + }, + }) + }) + }) - // expect(filter).to.deep.equal({ - // chainId: 10, - // to: symbiosis.metaRouter(10).address, - // input: { - // $abi: metaRouteABI, - // _metarouteTransaction: { - // approvedTokens: [OPTIMISM_USDCe_ADDRESS], - // amount: { - // $gte: '100000', - // }, - // otherSideCalldata: { - // $abiAbstract: metaBurnABI, - // _metaBurnTransaction: { - // chainID: 1, - // chain2address: TEST_USER, - // }, - // }, - // }, - // }, - // }) - // }) - // }) describe('should pass filter with valid transactions', () => { - PASSING_TEST_TRANSACTIONS.forEach((testTransaction) => { - test(testTransaction.description, async () => { - const { - transaction, - destinationChainId, - tokenAddress, - amount, - recipient, - } = testTransaction - - const filter = await bridge({ - sourceChainId: transaction.chainId, - destinationChainId, - tokenAddress, - amount: amount ? GreaterThanOrEqual(amount) : amount, - recipient, - }) + passingTestCases.forEach((testCase) => { + const { transaction, description, params } = testCase + test(description, async () => { + const filter = await bridge(params) expect(apply(transaction, filter)).to.be.true }) }) }) - // describe('should not pass filter with invalid parameters', () => { - // test('when sourceChainId is incorrect', async () => { - // const { transaction, tokenAddress, recipient } = controlTransaction - - // const filter = await bridge({ - // sourceChainId: 1, // 42161 - // destinationChainId: 5000, - // tokenAddress, - // amount: GreaterThanOrEqual(10000n), - // recipient, - // }) - // expect(apply(transaction, filter)).to.be.false - // }) - // test('when bridge contract address is incorrect', async () => { - // const { transaction, tokenAddress, recipient } = controlTransaction - // const filter = await bridge({ - // sourceChainId: 42161, - // destinationChainId: 5000, - // contractAddress: '0x1DCfbC3fA01b2a86bC3a3f43479cCe9E8D438Adc', - // tokenAddress, - // amount: GreaterThanOrEqual(10000n), - // recipient, - // }) - // expect(apply(transaction, filter)).to.be.false - // }) - // FAILING_TEST_TRANSACTIONS.forEach((testTransaction) => { - // test(testTransaction.description, async () => { - // const { - // transaction, - // destinationChainId, - // tokenAddress, - // amount, - // recipient, - // } = testTransaction - - // const filter = await bridge({ - // sourceChainId: transaction.chainId, - // destinationChainId, - // tokenAddress, - // amount: amount ? GreaterThanOrEqual(amount) : amount, - // recipient, - // }) - // expect(apply(transaction, filter)).to.be.false - // }) - // }) - // }) - // describe('control transaction should pass filter', () => { - // test(controlTransaction.description, async () => { - // const { - // transaction, - // destinationChainId, - // tokenAddress, - // amount, - // recipient, - // } = controlTransaction - - // const filter = await bridge({ - // sourceChainId: transaction.chainId, - // destinationChainId, - // tokenAddress, - // amount: GreaterThanOrEqual(amount), - // recipient, - // }) - // expect(apply(transaction, filter)).to.be.true - // }) - // }) + describe('should not pass filter with invalid transactions', () => { + failingTestCases.forEach((testCase) => { + const { transaction, description, params } = testCase + test(description, async () => { + const filter = await bridge(params) + expect(apply(transaction, filter)).to.be.false + }) + }) + }) }) diff --git a/packages/symbiosis/src/test-transactions.ts b/packages/symbiosis/src/test-transactions.ts index 35e0f5d1a..9d4a14014 100644 --- a/packages/symbiosis/src/test-transactions.ts +++ b/packages/symbiosis/src/test-transactions.ts @@ -1,155 +1,143 @@ -import type { Address, Hash } from 'viem' -import { parseEther } from 'viem' -import { symbiosis } from './symbiosis-sdk' +import type { BridgeActionParams } from '@rabbitholegg/questdk' +import { GreaterThanOrEqual } from '@rabbitholegg/questdk' +import { Chains, createTestCase, type TestParams } from './utils' +import { parseEther, parseUnits, zeroAddress } from 'viem' -interface Transaction { - chainId: number - from: Address - hash?: Hash - input: string - to: Address - value: string -} - -interface TestTransaction { - transaction: Transaction - destinationChainId: number - amount?: bigint | number - tokenAddress?: Address - recipient?: Address - description: string -} - -export const PASSING_TEST_TRANSACTIONS: TestTransaction[] = [ - // { - // transaction: { - // chainId: 1, - // from: '0x27229c5c34c018e6a43d2a00f8f81e06f54a9a5d', - // hash: '0xc97deae76c21cb57498d2873babd212fa589eae9e4d2e979f4a10a3428f376ee', - // input: - // '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000180000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000003782dace9d9000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000a04ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e00000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000000000000000000000000000000000000000000580000000000000000000000000000000000000000000000000000000000000006400000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d73796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000001ce4e75e2bd6bbbacde1e10d6813228138337e86000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa00000000000000000000000000000000000000000000000000000000000000090000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000378224e87c9b8000000000000000000000000000000000000000000000000000377a9ae76526d3c2000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000653b51d1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb00000000000000000000000000000000000000000000000000000000000000020000000000000000000000001ce4e75e2bd6bbbacde1e10d6813228138337e86000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000424e691a2aa0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000221b262dd800000000000000000000000000000000000000000000000000037915d9d196a94eb000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000006e2b76966cbd9cf4cc2fa0d76d24d5241e0abc2f000000000000000000000000e3db9ad5a3c6387bece39fafc26dbb2b594fb7ff00000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000c400000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d00000000000000000000000039de19c9ff25693a2311aad1dc5c790194084a39000000000000000000000000b0d30ad9c1a7b303977db7ea073a4329d930d94c00000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000000000000000014473796d62696f7369732d61707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022812aa3caf000000000000000000000000a9305c3c14757bae2e73ef7f66fe241f5f6bf3470000000000000000000000005aea5775959fbc2557cc8789bc1bf90a239d9a91000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000a9305c3c14757bae2e73ef7f66fe241f5f6bf34700000000000000000000000027229c5c34c018e6a43d2a00f8f81e06f54a9a5d000000000000000000000000000000000000000000000000378f3beab68d14eb0000000000000000000000000000000000000000000000003773ece9b06260530000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a00000000000000000000000000000000000000000000006c00005600001a0020d6bdbf785aea5775959fbc2557cc8789bc1bf90a239d9a9141215aea5775959fbc2557cc8789bc1bf90a239d9a9100042e1a7d4d0000000000000000000000000000000000000000000000000000000000000000c0616e2b76966cbd9cf4cc2fa0d76d24d5241e0abc2f000000000000000000000000000000000000000000008b1ccac80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - // to: symbiosis.metaRouter(1).address as Address, - // value: '4000000000000000000', - // }, - // destinationChainId: 324, - // amount: parseEther('3.5'), - // tokenAddress: '0x0000000000000000000000000000000000000000', - // description: 'when bridging >= 2 ETH from Mainnet to ZK Sync', - // }, - // { - // transaction: { - // chainId: 10, - // from: '0x2108791df451e953a0e356be2f5dca3e7b8e2a76', - // hash: '0xce06592607e69b1b20becfd1dba2b0ae1907b066f5fe15d8f960cf5c631d1cd3', - // input: - // '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000005667db60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c316070000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c3160700000000000000000000000000000000000000000000000000000000000008a4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000005667db60000000000000000000000007f5c764cbc14f9669b88837ca1490cca17c31607000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d2866000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e0000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a76000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a8000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000000640000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a7673646b2d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f072f11bf151038bd8732cd1088b7c98762b839c000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000000000005667db600000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa000000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000561e9d600000000000000000000000000000000000000000000000000000000055e750e000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000018b5788695d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000f072f11bf151038bd8732cd1088b7c98762b839c000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c4e691a2aa000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000561e6ea000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000044000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d286600000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d90000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e0000000000000000000000002108791df451e953a0e356be2f5dca3e7b8e2a76000000000000000000000000000000000000000000000000000000000000a4b173646b2d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8bc80f1a8000000000000000000000000e833d3ce2b1871fef88742e007254ff73b6d286600000000000000000000000000000000000000000000000000000000055d530a000000000000000000000000000000000000000000000000000000000559d425000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000008e295789c9465487074a65b1ae9ce0351172393fea698b470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - // to: symbiosis.metaRouter(10).address as Address, - // value: '0', - // }, - // destinationChainId: 42161, - // amount: 90000000n, - // tokenAddress: '0x7F5c764cBc14f9669B88837ca1490cCa17c31607', - // recipient: '0xE833D3cE2B1871fef88742E007254fF73b6d2866', - // description: 'when bridging >= 90 USDC.e from Optimism to Arbitrum', - // }, - // { - // transaction: { - // chainId: 10, - // from: '0xa99f898530df1514a566f1a6562d62809e99557d', - // hash: '0xa0d4809a4835d84d15467a9fddfde73d1e57fa5121e56fff2a0526c448011c21', - // input: - // '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000a44ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000004200000000000000000000000000000000000006000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f084000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000011c37937e0800000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000000000000000000000000000000110d9316ec00000000000000000000000000000000000000000000000000000010f903280265cf000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000653d989f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f084000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000464e691a2aa000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000001b48eb57e00000000000000000000000000000000000000000000000000000110ed8b84a7330000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000025c030116feb2e7bba054b9de0915e5f51b03e31000000000000000000000000a6e6c78746f873db8545b7571dd1c5d87cc9576300000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000128000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d620000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000138873796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000264ac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000012475ceafe6000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010f38fccf2933000000000000000000000000000000000000000000000000114865d812ebb843c00000000000000000000000000000000000000000000000000000000653d98aa000000000000000000000000000000000000000000000000000000000000002bdeaddeaddeaddeaddeaddeaddeaddeaddead1111000bb878c1b0c915c4faa5fffa6cabf0219da63d7f4cb800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - // to: symbiosis.metaRouter(10).address as Address, - // value: '5000000000000000', - // }, - // destinationChainId: 5000, - // amount: parseEther('0.005'), - // tokenAddress: '0x0000000000000000000000000000000000000000', - // recipient: '0xA99F898530dF1514A566f1a6562D62809e99557D', - // description: 'when bridging ETH from Optimism to Mantle', - // }, - // { - // transaction: { - // chainId: 8453, - // from: '0xa99f898530df1514a566f1a6562d62809e99557d', - // input: - // '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ee981b2459331ad268cc63ce6167b446af4161f80000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000024812aa3caf000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd090000000000000000000000006f0f6393e45fe0e7215906b6f9cfeff53ea139cf000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000aca33af000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000008300002000000600206b4be0b940414200000000000000000000000000000000000006d0e30db002a00000000000000000000000000000000000000000000000000000000000000001ee63c1e5814c36388be6f416a29c8d8eee81c771ce6be14b1842000000000000000000000000000000000000061111111254eeb25477b68fb85ed929f73a960582000000000000000000000000000000000000000000000000000000000000008b1ccac8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca0000000000000000000000000000000000000000000000000000000000001524ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000adaa6ca000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000adaa6ca00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ad612ea000000000000000000000000000000000000000000000000000000000ab708e1000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e000000000000000000000000000000000000000000000000000000000654079820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f44e691a2aa00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000003981ae0000000000000000000000000000000000000000000000000000000000ad5352b000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e640000000000000000000000007d6ec42b5d9566931560411a8652cea00b90d98200000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000104000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000000173796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4490411a32000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d3000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000073d1a4b00000000000000000000000000000000000000000000000000f2047f855daef000000000000000000000000000000000000000000000000000f42a8e4a37abbd00000000000000000000000000000000000000000000000000000000000000020000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f96200000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000007e00000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000006c83b0feef04139eb5520b1ce0e78069c6e7e2c500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c27d980b71d5978f8b6de9e1ba01ed001d8760d300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ea0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000bb8ae7ab96520de3a18e5e111b5eaab095312d7fe840000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003a451a74316000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d9000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f67022000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000dc24316b9ae028f1497c275eb9192a3ea0f6702200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000843df0212400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a000050000000000000000000000000000000000000000000000f449d321a885ea00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - // to: symbiosis.metaRouter(8453).address as Address, - // value: '100000000000000000', - // }, - // destinationChainId: 1, - // amount: parseEther('0.1'), - // tokenAddress: '0x0000000000000000000000000000000000000000', - // recipient: '0xa99f898530df1514a566f1a6562d62809e99557d', - // description: 'when bridging >= 0.1 ETH from Base to Mainnet', - // }, - { - transaction: { - chainId: 8453, - from: '0xef125e49fb1a1bc5f8025b364ca5486368ff87a9', - input: - '0xa11b11980000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7d8c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ee981b2459331ad268cc63ce6167b446af4161f800000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca0000000000000000000000000000000000000000000000000000000000000584ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000000a7d8c0000000000000000000000000d9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a9000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a9000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a973796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa00000000000000000000000000000000000000000000000000000000000002a41e859a05000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000260000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a90000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a45f4b9bde00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000a344e00000000000000000000000000000000000000000000000009112961495662832000000000000000000000000ef125e49fb1a1bc5f8025b364ca5486368ff87a9000000000000000000000000000000000000000000000000000000006590735f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: symbiosis.metaRouter(8453).address as Address, - value: '100000000000000000', - }, - destinationChainId: 42161, - amount: parseEther('0.00000000001'), - tokenAddress: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA', - description: 'when bridging from Base to arbitrum', +const BRIDGE_ETH_OP_ARB: TestParams = { + transaction: { + chainId: 10, + from: '0xa99f898530df1514a566f1a6562d62809e99557d', + to: '0x0f91052dc5b4bae53d0fea5dae561a117268f5d2', + hash: '0x005a63cd06bfb336b646d7fcc587e460f75c93daa8c03925cd3eccd51c05e803', + input: + '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000001aa535d3d0c0000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d6200000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000844ce654c1700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f48000000000000000000000000000000000000000000000000000001aa535d3d0c0000000000000000000000000004200000000000000000000000000000000000006000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f0840000000000000000000000004994b8bb0b58708cc6a66079d22db35c95650b4b00000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000001aa535d3d0c00000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000019ef4fb2dc40000000000000000000000000000000000000000000000000000019d9e7d89ca1ca000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000000000006594e533000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bcc2637dfa64999f75abb53a7265b5b4932e40eb0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000983e6839e84004e78fbfe76431d879cf9cf2f0840000000000000000000000004994b8bb0b58708cc6a66079d22db35c95650b4b00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000264e66bb55000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000b5e620f480000000000000000000000000000000000000000000000000000019efd129e05e1c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000005eb4ed9f745531221fae41906e11d37642b15da60000000000000000000000004994b8bb0b58708cc6a66079d22db35c95650b4b00000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000024000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d90000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000a4b173796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000447647691d000000000000000000000000000000000000000000000000001939eb08ebde1c000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + value: '7500000000000000', }, - { - transaction: { - chainId: 137, - from: '0x865c301c46d64de5c9b124ec1a97ef1efc1bcbd1', - input: - '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000234000000000000000000000000000000000000000000000000000000000000023600000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000023c000000000000000000000000000000000000000000000000000000000000021e490411a320000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000010100000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd3000000000000000000000000a260e3732593e4ecf9ddc144fd6c4c5fe70779780000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000007ffcfc000000000000000000000000000000000000000000000000000000000080bf7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f962000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000007a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000d200000000000000000000000000000000000000000000000000000000000000f8000000000000000000000000000000000000000000000000000000000000010a000000000000000000000000000000000000000000000000000000000000011c000000000000000000000000000000000000000000000000000000000000014c000000000000000000000000000000000000000000000000000000000000016c000000000000000000000000000000000000000000000000000000000000019200000000000000000000000000000000000000000000000000000000000001a400000000000000000000000000000000000000000000000000000000000001b600000000000000000000000000000000000000000000000000000000000001c800000000000000000000000000000000000000000000000000000000000001da0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001449f8654220000000000000000000000000000000000000000000000000000000000001010000000000000000000000000000000040000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000008000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000380615f37993b5a96adf3d443b6e0ac50a21199800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f000000000000000000007d0001380615f37993b5a96adf3d443b6e0ac50a2119980000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000c0000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000005e58e0ced3a272caeb8ba00f4a4c2805df6be4950000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064cac460ee00000000000000003b8b87c05e58e0ced3a272caeb8ba00f4a4c2805df6be4950000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001449f86542200000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000400000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000b4d852b92148eaa16467295975167e640e1fe57a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f000000000000000000186a00b4b4d852b92148eaa16467295975167e640e1fe57a0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000bd02973b441aa83c8eecea158b98b5984bb1036e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f000000000000000000186a0028bd02973b441aa83c8eecea158b98b5984bb1036e00000000000000000000000040379a439d4f6795b6fc9aa5687db461677a2dba0000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f8654220000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a06300000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000005645dcb64c059aa11212707fbf4e7f984440a8cf000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e8f3cf7ad23cd3cadbd9735aff958023239c6a0630000642791bca1f2de4661ed88a30c99a7a9449aa841740000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001449f86542200000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000200000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000951e38875a93df95bbd24fe31f409b7933b35bed0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064cac460ee00000000000000003b8b87c0951e38875a93df95bbd24fe31f409b7933b35bed0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000074c64d1976157e7aaeeed46ef04705f4424b27ec00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f008000000000000000186a00b474c64d1976157e7aaeeed46ef04705f4424b27ec0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000d17cb0f162f133e339c0bbfc18c36c357e681d6b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000643afe5f008000000000000000186a0028d17cb0f162f133e339c0bbfc18c36c357e681d6b00000000000000000000000040379a439d4f6795b6fc9aa5687db461677a2dba0000000000000000000000006d8e9bd8f845f51a224e216b6dd25d5e593d8dd300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000000000080bf7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000a260e3732593e4ecf9ddc144fd6c4c5fe707797800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000008c4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000080bf710000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd1000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd1000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd173796d62696f7369732d61707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000059aa2e5f628659918a4890a2a732e6c8bd334e7a000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000080bf7100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000007c2b9100000000000000000000000000000000000000000000000000000000007ac7cf0000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d00000000000000000000000000000000000000000000000000000000658fb68d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece84882000000000000000000000000000000000000000000000000000000000000000200000000000000000000000059aa2e5f628659918a4890a2a732e6c8bd334e7a000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e4e66bb550000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000927c000000000000000000000000000000000000000000000000000000000007c283300000000000000000000000000000000000000000000000000000000000000000000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000044000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd100000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d90000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd1000000000000000000000000000000000000000000000000000000000000a4b173796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8bc80f1a8000000000000000000000000865c301c46d64de5c9b124ec1a97ef1efc1bcbd10000000000000000000000000000000000000000000000000000000000730073000000000000000000000000000000000000000000000000000b9d81f4d88a7e00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001a000000000000000000000006f38e884725a116c9c7fbf208e79fe8828a2595fea698b470000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: symbiosis.metaRouter(137).address as Address, - value: '100000000000000000', - }, - destinationChainId: 42161, - amount: parseEther('0.00000000001'), - tokenAddress: '0x0000000000000000000000000000000000000000', - description: 'when bridging polygon to arbitrum', + params: { + sourceChainId: Chains.OPTIMISM, + destinationChainId: Chains.ARBITRUM_ONE, + tokenAddress: zeroAddress, + amount: GreaterThanOrEqual(parseEther('0.0075')), + recipient: '0xa99f898530df1514a566f1a6562d62809e99557d', }, -] - -const bridgeTx: Transaction = { - chainId: 42161, - from: '0xa99f898530df1514a566f1a6562d62809e99557d', - input: - '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002200000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000000000000115ac18000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d9000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000000a8e449022e000000000000000000000000000000000000000000000000000000000115ac1800000000000000000000000000000000000000000000000000000000011176b6000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000018000000000000000000000008e295789c9465487074a65b1ae9ce0351172393f8b1ccac800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000007c4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e0000000000000000000000000000000000000000000000000000000000115a0ce000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec000000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000115a0ce00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000001110cee00000000000000000000000000000000000000000000000000000000010b91a0000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e00000000000000000000000000000000000000000000000000000000065407e9b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e4e691a2aa0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000c350000000000000000000000000000000000000000000000000000000000111140a000000000000000000000000b79a4f5828eb55c10d7abf4bfe9a9f5d11aa84e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d620000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000138873796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', - to: symbiosis.metaRouter(42161).address as Address, - value: '0', } -export const controlTransaction: TestTransaction = { - transaction: bridgeTx, - destinationChainId: 5000, - amount: 10000000n, - tokenAddress: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8', - recipient: '0xa99f898530df1514a566f1a6562d62809e99557d', - description: 'when all parameters are correctly set', +const BRIDGE_MATIC_POLYGON_BSC: TestParams = { + transaction: { + chainId: 137, + from: '0xe1f7e7ed6d9a4733a63f34ceba62786d3f3533d5', + to: '0xa260e3732593e4ecf9ddc144fd6c4c5fe7077978', + hash: '0xc8b7ebf2a4ac11727ce024192f2f076b70fad282a42698effc301d505c4f7d9f', + input: + '0xa11b1198000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c400000000000000000000000000000000000000000000000000000000000000c600000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad400000000000000000000000000000000000000000000001f711def073e9000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000000000000000000000000000000000000000000cc00000000000000000000000000000000000000000000000000000000000000ae490411a320000000000000000000000001e82ad8a12068a85fcb96368463b434e77b21201000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000010100000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000001e82ad8a12068a85fcb96368463b434e77b21201000000000000000000000000a260e3732593e4ecf9ddc144fd6c4c5fe707797800000000000000000000000000000000000000000000001f711def073e900000000000000000000000000000000000000000000000000000000000002250cf0b0000000000000000000000000000000000000000000000000000000022d6966b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f962000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000006a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001449f86542200000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000100000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004d0e30db00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f8654220000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000ec15624fbb314eb05baad4ca49b7904c0cb6b645000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000001e82ad8a12068a85fcb96368463b434e77b2120100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e0d500b1d8e8ef31e21c99d1db9a6444d3adf12700001f42791bca1f2de4661ed88a30c99a7a9449aa8417400000b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a00000000000000000000000000000000000000000000000000000000022d6966b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f8654220000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000a260e3732593e4ecf9ddc144fd6c4c5fe707797800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000007e4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000022d6966b0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000e1f7e7ed6d9a4733a63f34ceba62786d3f3533d5000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000e1f7e7ed6d9a4733a63f34ceba62786d3f3533d5000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000e1f7e7ed6d9a4733a63f34ceba62786d3f3533d573796d62696f7369732d61707000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000059aa2e5f628659918a4890a2a732e6c8bd334e7a0000000000000000000000005e19efc6ac9c80bfaa755259c9fab2398a8e87eb00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000000000022d6966b00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000022d2028b00000000000000000000000000000000000000000000001f09ea74444dbfbc89000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000065949f190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece84882000000000000000000000000000000000000000000000000000000000000000200000000000000000000000059aa2e5f628659918a4890a2a732e6c8bd334e7a0000000000000000000000005e19efc6ac9c80bfaa755259c9fab2398a8e87eb00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204e66bb55000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000429d069189e000000000000000000000000000000000000000000000000001fab85170da9b9466d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005e19efc6ac9c80bfaa755259c9fab2398a8e87eb00000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e1f7e7ed6d9a4733a63f34ceba62786d3f3533d50000000000000000000000005aa5f7f84ed0e5db0a4a85c3947ea16b53352fd4000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a8000000000000000000000000e1f7e7ed6d9a4733a63f34ceba62786d3f3533d5000000000000000000000000000000000000000000000000000000000000003873796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + value: '580000000000000000000', + }, + params: { + sourceChainId: Chains.POLYGON_POS, + destinationChainId: Chains.BINANCE_SMART_CHAIN, + tokenAddress: zeroAddress, + amount: GreaterThanOrEqual(parseEther('580')), + recipient: '0xe1f7e7ed6d9a4733a63f34ceba62786d3f3533d5', + }, } -export const FAILING_TEST_TRANSACTIONS: TestTransaction[] = [ - { - ...controlTransaction, - destinationChainId: 10, // 5000 - description: 'when destination chain is incorrect', +const BRIDGE_USDCE_ARB_MANTLE: TestParams = { + transaction: { + chainId: 42161, + from: '0xa99f898530df1514a566f1a6562d62809e99557d', + to: '0xf7e96217347667064dee8f20db747b1c7df45dde', + hash: '0xb5acc10c797b991a1506dc8b924b79c4dcf434d18621b51af0e291a3f5e8b6a8', + input: + '0xa11b1198000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000aa00000000000000000000000000000000000000000000000000000000000000ac00000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000001312d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d90000000000000000000000000000000000000000000000000000000000000b20000000000000000000000000000000000000000000000000000000000000094490411a32000000000000000000000000e07f9293ade766bffdf5e8548ad50425d49d5b25000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000e07f9293ade766bffdf5e8548ad50425d49d5b25000000000000000000000000f7e96217347667064dee8f20db747b1c7df45dde0000000000000000000000000000000000000000000000000000000001312d0000000000000000000000000000000000000000000000000000000000012f5c2e000000000000000000000000000000000000000000000000000000000131291800000000000000000000000000000000000000000000000000000000000000020000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f9620000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc800000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000de568fd89b3349a766f45d5ab2a7c0510f476a8000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de568fd89b3349a766f45d5ab2a7c0510f476a80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004453c059a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e07f9293ade766bffdf5e8548ad50425d49d5b2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000000000131291800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000f7e96217347667064dee8f20db747b1c7df45dde000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58310000000000000000000000000000000000000000000000000000000000001624ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000001312918000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec000000000000000000000000000000000000000000000000000000000000002e41e859a05000000000000000000000000000000000000000000000000000000000131291800000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000012c95380000000000000000000000000000000000000000000000000000000001294899000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000000000006594eb5b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f00000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001044e66bb550000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e000000000000000000000000000000000000000000000000000000000012c93f200000000000000000000000000000000000000000000000000000000000000000000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e6400000000000000000000000085ec8da79bd2e54724ab8aa4a7a209b1f66d6ec000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000104000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000292fc50e4eb66c3f6514b9e402dbc25961824d620000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000138873796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e2490411a320000000000000000000000008d2b7e5501eb6d92f8e349f2febe785dd070be74000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000009bc4e0d864854c6afb6eb9a9cdf58ac190d0df900000000000000000000000000000000000000000000000000000000000000000000000000000000000000008d2b7e5501eb6d92f8e349f2febe785dd070be74000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d0000000000000000000000000000000000000000000000000000000001280012000000000000000000000000000000000000000000000001cc6421232eb04aaf000000000000000000000000000000000000000000000001d07a81b73a0dcd4f00000000000000000000000000000000000000000000000000000000000000020000000000000000000000003254ae00947e44b7fd03f50b93b9acfed59f962000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000006a000000000000000000000000000000000000000000000000000000000000008c000000000000000000000000000000000000000000000000000000000000009e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f86542200000000000000000000000009bc4e0d864854c6afb6eb9a9cdf58ac190d0df900000000000000000000000000000002000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000064d4c6e06711eaff5a9e2a19e750ee8b94159ab000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000008d2b7e5501eb6d92f8e349f2febe785dd070be7400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e09bc4e0d864854c6afb6eb9a9cdf58ac190d0df900006478c1b0c915c4faa5fffa6cabf0219da63d7f4cb80000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f86542200000000000000000000000009bc4e0d864854c6afb6eb9a9cdf58ac190d0df900000000000000000000000000000012000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000001858d52cf57c07a018171d7a1e68dc081f17144f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000008d2b7e5501eb6d92f8e349f2febe785dd070be7400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e09bc4e0d864854c6afb6eb9a9cdf58ac190d0df90001f478c1b0c915c4faa5fffa6cabf0219da63d7f4cb80000130000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001649f86542200000000000000000000000078c1b0c915c4faa5fffa6cabf0219da63d7f4cb800000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000400000000000000000000000078c1b0c915c4faa5fffa6cabf0219da63d7f4cb800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000001d07a81b73a0dcd4f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + value: '0', }, - { - ...controlTransaction, - amount: 20000000n, // 10000000n - description: 'when amount is insufficient', + params: { + sourceChainId: Chains.ARBITRUM_ONE, + destinationChainId: Chains.MANTLE, + tokenAddress: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8', // USDC.e + amount: GreaterThanOrEqual(parseUnits('20', 6)), + recipient: '0xa99f898530df1514a566f1a6562d62809e99557d', }, - { - ...controlTransaction, - tokenAddress: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831', // wrong USDC token - description: 'when input token is incorrect', +} + +const BRIDGE_USDC_ARB_BASE: TestParams = { + transaction: { + chainId: 42161, + from: '0xa99f898530df1514a566f1a6562d62809e99557d', + to: '0xf7e96217347667064dee8f20db747b1c7df45dde', + input: + '0xa11b119800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000001312d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a3c8e513b758ebb011f7afaf6c37616c9c24d900000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000007e4ce654c17000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000000000000000001312d00000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a80000000000000000000000005523985926aa12ba58dc5ad00ddca99678d7227e000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000dbe00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad40000000000000000000000000000000000000000000000000000000000000260000000000000000000000000b8f275fbf7a959f4bce59999a2ef122a099e81a800000000000000000000000000000000000000000000000000000000000005800000000000000000000000000000000000000000000000000000000000000064000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d73796d62696f7369732d617070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa00000000000000000000000000000000000000000000000000000000000002e41e859a050000000000000000000000000000000000000000000000000000000001312d0000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c48f6bdeaa0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000012c992000000000000000000000000000000000000000000000000000000000012b0e82000000000000000000000000cb28fbe3e9c0fea62e0e63ff3f232cecfe555ad4000000000000000000000000000000000000000000000000000000006594ec5b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006148fd6c649866596c3d8a971fc313e5ece848820000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeae2132f2e21f68d862c535d7d9857803fbcf3f000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204e66bb550000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000493e000000000000000000000000000000000000000000000000000000000012c8f3a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000002cbabd7329b84e2c0a317702410e7c73d0e0246d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd1a897f92c14cda3ab7023b094615a7068d01fa00000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000ee981b2459331ad268cc63ce6167b446af4161f80000000000000000000000008097f0b9f06c27af9579f75762f971d745bb222f000000000000000000000000a99f898530df1514a566f1a6562d62809e99557d000000000000000000000000000000000000000000000000000000000000210573796d62696f7369732d6170700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', + value: '0', }, - { - ...controlTransaction, - recipient: '0xB7e98B3F16CC915B9C7a321c1bd95fa406BDbabe', - description: 'when recipient is incorrect', + params: { + sourceChainId: Chains.ARBITRUM_ONE, + destinationChainId: Chains.BASE, + tokenAddress: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', // USDC + amount: GreaterThanOrEqual(parseUnits('20', 6)), + recipient: '0xa99f898530df1514a566f1a6562d62809e99557d', }, +} + +export const passingTestCases = [ + createTestCase( + BRIDGE_ETH_OP_ARB, + 'when bridging ETH from Optimism to Arbitrum', + ), + createTestCase( + BRIDGE_MATIC_POLYGON_BSC, + 'when bridging MATIC from Polygon to BSC', + ), + createTestCase( + BRIDGE_USDCE_ARB_MANTLE, + 'when bridging USDC.e from Arbitrum to Mantle', + ), + createTestCase( + BRIDGE_USDC_ARB_BASE, + 'when bridging USDC from Arbitrum to Base', + ), + createTestCase( + BRIDGE_ETH_OP_ARB, + 'when tokenAddress is set to any (using ETH)', + { tokenAddress: undefined }, + ), + createTestCase( + BRIDGE_USDCE_ARB_MANTLE, + 'when tokenAddress is set to any (using ERC-20)', + { tokenAddress: undefined }, + ), + createTestCase( + BRIDGE_MATIC_POLYGON_BSC, + 'when token and amount set to any (using MATIC)', + { tokenAddress: undefined, amount: undefined }, + ), + createTestCase( + BRIDGE_USDC_ARB_BASE, + 'when token and amount set to any (using ERC-20)', + { tokenAddress: undefined, amount: undefined }, + ), +] + +export const failingTestCases = [ + createTestCase(BRIDGE_ETH_OP_ARB, 'when sourceChainId is incorrect', { + sourceChainId: Chains.POLYGON_POS, + }), + createTestCase(BRIDGE_ETH_OP_ARB, 'when destinationChainId is incorrect', { + destinationChainId: Chains.POLYGON_POS, + }), + createTestCase(BRIDGE_USDCE_ARB_MANTLE, 'when tokenAddress is incorrect', { + tokenAddress: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', + }), + createTestCase( + BRIDGE_ETH_OP_ARB, + 'when amountIn is insufficient (using ETH)', + { amount: GreaterThanOrEqual(parseEther('1000')) }, + ), + createTestCase( + BRIDGE_USDCE_ARB_MANTLE, + 'when amountIn is insufficient (using ERC-20)', + { amount: GreaterThanOrEqual(parseUnits('1000', 6)) }, + ), + createTestCase(BRIDGE_USDC_ARB_BASE, 'when recipient is incorrect', { + recipient: '0xe1f7e7ed6d9a4733a63f34ceba62786d3f3533d5', + }), ] From fd97343af9f8ee5b2618681e20a0a87140899b8c Mon Sep 17 00:00:00 2001 From: Mmackz Date: Tue, 26 Dec 2023 22:12:00 -0800 Subject: [PATCH 08/13] refactor(symbiosis): use array operator for approved tokens array --- packages/symbiosis/src/Symbiosis.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/symbiosis/src/Symbiosis.ts b/packages/symbiosis/src/Symbiosis.ts index 102a2fe91..f5626fe37 100644 --- a/packages/symbiosis/src/Symbiosis.ts +++ b/packages/symbiosis/src/Symbiosis.ts @@ -3,7 +3,7 @@ import { type BridgeActionParams, compressJson, } from '@rabbitholegg/questdk' -import { type Address } from 'viem' +import { type Address, getAddress } from 'viem' import { CHAIN_ID_ARRAY, CHAIN_TO_TOKENS } from './constants' import { metaBurnABI, metaRouteABI } from './abi' import { symbiosis } from './symbiosis-sdk' @@ -29,7 +29,9 @@ export const bridge = async ( input: { $abi: metaRouteABI, _metarouteTransaction: { - approvedTokens: tokenAddress ? [tokenAddress] : undefined, // if tokenAddress is undefined, any input token will pass filter + approvedTokens: tokenAddress + ? { $first: getAddress(tokenAddress) } + : undefined, // if tokenAddress is undefined, any input token will pass filter amount: amount, otherSideCalldata: { $abiAbstract: metaBurnABI, From 36697cd08df8c14457b88b915862be8d65c49e68 Mon Sep 17 00:00:00 2001 From: Mmackz Date: Tue, 26 Dec 2023 22:13:04 -0800 Subject: [PATCH 09/13] test(symbiosis): adjust filter test to use array operator --- packages/symbiosis/src/Symbiosis.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/symbiosis/src/Symbiosis.test.ts b/packages/symbiosis/src/Symbiosis.test.ts index 32e080ac9..bebbec853 100644 --- a/packages/symbiosis/src/Symbiosis.test.ts +++ b/packages/symbiosis/src/Symbiosis.test.ts @@ -20,7 +20,7 @@ describe('Given the symbiosis plugin', () => { input: { $abi: metaRouteABI, _metarouteTransaction: { - approvedTokens: [zeroAddress], + approvedTokens: { $first: zeroAddress }, amount: { $gte: '7500000000000000', }, From 6365b566ac015b7247c9aa0e05a0ffca4843c44b Mon Sep 17 00:00:00 2001 From: Mmackz Date: Tue, 26 Dec 2023 22:15:00 -0800 Subject: [PATCH 10/13] test(symbiosis): test valid token lists are returned for each chain --- packages/symbiosis/src/Symbiosis.test.ts | 32 +++++++++++++++++++----- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/packages/symbiosis/src/Symbiosis.test.ts b/packages/symbiosis/src/Symbiosis.test.ts index bebbec853..d53cc33cc 100644 --- a/packages/symbiosis/src/Symbiosis.test.ts +++ b/packages/symbiosis/src/Symbiosis.test.ts @@ -1,13 +1,14 @@ import { apply } from '@rabbitholegg/questdk/filter' import { describe, expect, test } from 'vitest' -import { bridge } from './Symbiosis' -import { - passingTestCases, - failingTestCases, -} from './test-transactions' +import { passingTestCases, failingTestCases } from './test-transactions' import { metaBurnABI, metaRouteABI } from './abi' import { zeroAddress } from 'viem' import { Chains } from './utils' +import { + bridge, + getSupportedChainIds, + getSupportedTokenAddresses, +} from './Symbiosis' describe('Given the symbiosis plugin', () => { describe('When handling the bridge', () => { @@ -15,7 +16,7 @@ describe('Given the symbiosis plugin', () => { const { params } = passingTestCases[0] const filter = await bridge(params) expect(filter).to.deep.equal({ - chainId:Chains.OPTIMISM, + chainId: Chains.OPTIMISM, to: '0x0f91052dc5B4baE53d0FeA5DAe561A117268f5d2', input: { $abi: metaRouteABI, @@ -56,4 +57,23 @@ describe('Given the symbiosis plugin', () => { }) }) }) + + describe('should return a valid list of tokens for each supported chain', async () => { + const chainIdArray = await getSupportedChainIds() + chainIdArray.forEach((chainId) => { + test(`for chainId: ${chainId}`, async () => { + const tokens = await getSupportedTokenAddresses(chainId) + const addressRegex = /^0x[a-fA-F0-9]{40}$/ + expect(tokens).to.be.an('array') + expect(tokens).to.have.length.greaterThan(0) + expect(tokens).to.have.length.lessThan(100) + tokens.forEach((token) => { + expect(token).to.match( + addressRegex, + `Token address ${token} is not a valid Ethereum address`, + ) + }) + }) + }) + }) }) From 9430b81ef1ddabd7b9f66b9dd978b72a2ceac7ea Mon Sep 17 00:00:00 2001 From: Mmackz Date: Tue, 26 Dec 2023 22:18:00 -0800 Subject: [PATCH 11/13] chore(pnpm): generate changes --- .changeset/short-eagles-carry.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/short-eagles-carry.md diff --git a/.changeset/short-eagles-carry.md b/.changeset/short-eagles-carry.md new file mode 100644 index 000000000..f34841582 --- /dev/null +++ b/.changeset/short-eagles-carry.md @@ -0,0 +1,5 @@ +--- +"@rabbitholegg/questdk-plugin-symbiosis": minor +--- + +update and pin symbiosis sdk and add support for new metaburn ABI From 3432185b907c4d765a42aa315fa3958d03525790 Mon Sep 17 00:00:00 2001 From: Mmackz Date: Wed, 27 Dec 2023 11:09:55 -0800 Subject: [PATCH 12/13] refactor(symbiosis): use isAddress instead of regex for token address validation --- packages/symbiosis/src/Symbiosis.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/symbiosis/src/Symbiosis.test.ts b/packages/symbiosis/src/Symbiosis.test.ts index d53cc33cc..5345ebbfd 100644 --- a/packages/symbiosis/src/Symbiosis.test.ts +++ b/packages/symbiosis/src/Symbiosis.test.ts @@ -2,7 +2,7 @@ import { apply } from '@rabbitholegg/questdk/filter' import { describe, expect, test } from 'vitest' import { passingTestCases, failingTestCases } from './test-transactions' import { metaBurnABI, metaRouteABI } from './abi' -import { zeroAddress } from 'viem' +import { zeroAddress, isAddress } from 'viem' import { Chains } from './utils' import { bridge, @@ -63,15 +63,15 @@ describe('Given the symbiosis plugin', () => { chainIdArray.forEach((chainId) => { test(`for chainId: ${chainId}`, async () => { const tokens = await getSupportedTokenAddresses(chainId) - const addressRegex = /^0x[a-fA-F0-9]{40}$/ expect(tokens).to.be.an('array') expect(tokens).to.have.length.greaterThan(0) expect(tokens).to.have.length.lessThan(100) tokens.forEach((token) => { - expect(token).to.match( - addressRegex, - `Token address ${token} is not a valid Ethereum address`, - ) + const isValid = isAddress(token) + if (!isValid) { + console.error(`Token address ${token} is not a valid Ethereum address`) + } + expect(isValid).to.be.true }) }) }) From 61a4b2b6062d7daf74113d9722c9f90813c6e0a0 Mon Sep 17 00:00:00 2001 From: mmackz Date: Wed, 27 Dec 2023 19:10:39 +0000 Subject: [PATCH 13/13] chore: format --- packages/symbiosis/src/Symbiosis.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/symbiosis/src/Symbiosis.test.ts b/packages/symbiosis/src/Symbiosis.test.ts index 5345ebbfd..b16fb7aa6 100644 --- a/packages/symbiosis/src/Symbiosis.test.ts +++ b/packages/symbiosis/src/Symbiosis.test.ts @@ -69,7 +69,9 @@ describe('Given the symbiosis plugin', () => { tokens.forEach((token) => { const isValid = isAddress(token) if (!isValid) { - console.error(`Token address ${token} is not a valid Ethereum address`) + console.error( + `Token address ${token} is not a valid Ethereum address`, + ) } expect(isValid).to.be.true })