@sentio/sdk 1.7.13 → 1.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{base-processor-template.d.ts → lib/base-processor-template.d.ts} +0 -0
- package/{base-processor-template.js → lib/base-processor-template.js} +0 -0
- package/lib/base-processor-template.js.map +1 -0
- package/{base-processor.d.ts → lib/base-processor.d.ts} +0 -0
- package/{base-processor.js → lib/base-processor.js} +0 -0
- package/lib/base-processor.js.map +1 -0
- package/{bind-options.d.ts → lib/bind-options.d.ts} +0 -0
- package/{bind-options.js → lib/bind-options.js} +0 -0
- package/lib/bind-options.js.map +1 -0
- package/{binds.d.ts → lib/binds.d.ts} +0 -0
- package/{binds.js → lib/binds.js} +0 -0
- package/lib/binds.js.map +1 -0
- package/{builtin → lib/builtin}/erc20/index.d.ts +0 -0
- package/{builtin → lib/builtin}/erc20/index.js +0 -0
- package/lib/builtin/erc20/index.js.map +1 -0
- package/{builtin → lib/builtin}/erc20/test-utils.d.ts +0 -0
- package/{builtin → lib/builtin}/erc20/test-utils.js +0 -0
- package/lib/builtin/erc20/test-utils.js.map +1 -0
- package/{builtin → lib/builtin}/internal/Erc20.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/Erc20.js +0 -0
- package/lib/builtin/internal/Erc20.js.map +1 -0
- package/{builtin → lib/builtin}/internal/common.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/common.js +0 -0
- package/lib/builtin/internal/common.js.map +1 -0
- package/{builtin → lib/builtin}/internal/erc20_processor.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/erc20_processor.js +0 -0
- package/lib/builtin/internal/erc20_processor.js.map +1 -0
- package/{builtin → lib/builtin}/internal/factories/Erc20__factory.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/factories/Erc20__factory.js +0 -0
- package/lib/builtin/internal/factories/Erc20__factory.js.map +1 -0
- package/{builtin → lib/builtin}/internal/factories/index.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/factories/index.js +0 -0
- package/{builtin → lib/builtin}/internal/factories/index.js.map +1 -1
- package/{builtin → lib/builtin}/internal/index.d.ts +0 -0
- package/{builtin → lib/builtin}/internal/index.js +0 -0
- package/lib/builtin/internal/index.js.map +1 -0
- package/{chain-config.d.ts → lib/chain-config.d.ts} +0 -0
- package/{chain-config.js → lib/chain-config.js} +0 -0
- package/lib/chain-config.js.map +1 -0
- package/{cli → lib/cli}/build.d.ts +0 -0
- package/{cli → lib/cli}/build.js +0 -0
- package/lib/cli/build.js.map +1 -0
- package/{cli → lib/cli}/cli.d.ts +0 -0
- package/{cli → lib/cli}/cli.js +0 -0
- package/lib/cli/cli.js.map +1 -0
- package/{cli → lib/cli}/config.d.ts +0 -0
- package/{cli → lib/cli}/config.js +0 -0
- package/lib/cli/config.js.map +1 -0
- package/{cli → lib/cli}/key.d.ts +0 -0
- package/{cli → lib/cli}/key.js +0 -0
- package/{cli → lib/cli}/key.js.map +1 -1
- package/{cli → lib/cli}/solana-code-gen.d.ts +0 -0
- package/{cli → lib/cli}/solana-code-gen.js +0 -0
- package/{cli → lib/cli}/solana-code-gen.js.map +1 -1
- package/{cli → lib/cli}/upload.d.ts +0 -0
- package/{cli → lib/cli}/upload.js +0 -0
- package/{cli → lib/cli}/upload.js.map +1 -1
- package/{cli → lib/cli}/webpack.config.js +0 -0
- package/{context.d.ts → lib/context.d.ts} +0 -0
- package/{context.js → lib/context.js} +0 -0
- package/lib/context.js.map +1 -0
- package/{contract-namer.d.ts → lib/contract-namer.d.ts} +0 -0
- package/{contract-namer.js → lib/contract-namer.js} +0 -0
- package/{contract-namer.js.map → lib/contract-namer.js.map} +1 -1
- package/{error.d.ts → lib/error.d.ts} +0 -0
- package/{error.js → lib/error.js} +0 -0
- package/lib/error.js.map +1 -0
- package/{gen → lib/gen}/builtin.d.ts +0 -0
- package/{gen → lib/gen}/builtin.js +0 -0
- package/lib/gen/builtin.js.map +1 -0
- package/{gen → lib/gen}/google/protobuf/empty.d.ts +0 -0
- package/{gen → lib/gen}/google/protobuf/empty.js +0 -0
- package/lib/gen/google/protobuf/empty.js.map +1 -0
- package/{gen → lib/gen}/processor/protos/processor.d.ts +0 -0
- package/{gen → lib/gen}/processor/protos/processor.js +0 -0
- package/lib/gen/processor/protos/processor.js.map +1 -0
- package/{generic-processor.d.ts → lib/generic-processor.d.ts} +0 -0
- package/{generic-processor.js → lib/generic-processor.js} +0 -0
- package/lib/generic-processor.js.map +1 -0
- package/{index.d.ts → lib/index.d.ts} +0 -0
- package/{index.js → lib/index.js} +0 -0
- package/lib/index.js.map +1 -0
- package/lib/loader.d.ts +5 -0
- package/lib/loader.js +30 -0
- package/lib/loader.js.map +1 -0
- package/{meter.d.ts → lib/meter.d.ts} +0 -0
- package/{meter.js → lib/meter.js} +0 -0
- package/lib/meter.js.map +1 -0
- package/{numberish.d.ts → lib/numberish.d.ts} +0 -0
- package/{numberish.js → lib/numberish.js} +0 -0
- package/lib/numberish.js.map +1 -0
- package/{numberish.test.d.ts → lib/numberish.test.d.ts} +0 -0
- package/{numberish.test.js → lib/numberish.test.js} +0 -0
- package/{numberish.test.js.map → lib/numberish.test.js.map} +1 -1
- package/{processor-runner.d.ts → lib/processor-runner.d.ts} +0 -0
- package/{processor-runner.js → lib/processor-runner.js} +2 -27
- package/lib/processor-runner.js.map +1 -0
- package/{processor-state.d.ts → lib/processor-state.d.ts} +0 -0
- package/{processor-state.js → lib/processor-state.js} +0 -0
- package/lib/processor-state.js.map +1 -0
- package/{promise-or-void.d.ts → lib/promise-or-void.d.ts} +0 -0
- package/{promise-or-void.js → lib/promise-or-void.js} +0 -0
- package/lib/promise-or-void.js.map +1 -0
- package/{provider.d.ts → lib/provider.d.ts} +0 -0
- package/{provider.js → lib/provider.js} +0 -0
- package/lib/provider.js.map +1 -0
- package/{release.config.js → lib/release.config.js} +0 -0
- package/{service.d.ts → lib/service.d.ts} +2 -1
- package/{service.js → lib/service.js} +6 -3
- package/lib/service.js.map +1 -0
- package/{solana → lib/solana}/builtin/index.d.ts +0 -0
- package/{solana → lib/solana}/builtin/index.js +0 -0
- package/lib/solana/builtin/index.js.map +1 -0
- package/{solana → lib/solana}/builtin/spl-token-processor.d.ts +0 -0
- package/{solana → lib/solana}/builtin/spl-token-processor.js +0 -0
- package/lib/solana/builtin/spl-token-processor.js.map +1 -0
- package/{solana → lib/solana}/builtin/types.d.ts +0 -0
- package/{solana → lib/solana}/builtin/types.js +0 -0
- package/lib/solana/builtin/types.js.map +1 -0
- package/{solana → lib/solana}/builtin/wormhole-processor.d.ts +0 -0
- package/{solana → lib/solana}/builtin/wormhole-processor.js +0 -0
- package/lib/solana/builtin/wormhole-processor.js.map +1 -0
- package/{solana-processor.d.ts → lib/solana-processor.d.ts} +0 -0
- package/{solana-processor.js → lib/solana-processor.js} +0 -0
- package/lib/solana-processor.js.map +1 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/codegen.d.ts +0 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/codegen.js +0 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/codegen.js.map +0 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/index.d.ts +0 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/index.js +0 -0
- package/{target-ethers-sentio → lib/target-ethers-sentio}/index.js.map +0 -0
- package/{test → lib/test}/codegen.test.d.ts +0 -0
- package/{test → lib/test}/codegen.test.js +1 -1
- package/lib/test/codegen.test.js.map +1 -0
- package/{test → lib/test}/erc20-template.d.ts +0 -0
- package/{test → lib/test}/erc20-template.js +0 -0
- package/lib/test/erc20-template.js.map +1 -0
- package/{test → lib/test}/erc20-template.test.d.ts +0 -0
- package/{test → lib/test}/erc20-template.test.js +1 -3
- package/lib/test/erc20-template.test.js.map +1 -0
- package/{test → lib/test}/erc20.d.ts +0 -0
- package/{test → lib/test}/erc20.js +0 -0
- package/lib/test/erc20.js.map +1 -0
- package/{test → lib/test}/erc20.test.d.ts +0 -0
- package/{test → lib/test}/erc20.test.js +1 -3
- package/lib/test/erc20.test.js.map +1 -0
- package/{test → lib/test}/generic-processor.test.d.ts +0 -0
- package/{test → lib/test}/generic-processor.test.js +14 -4
- package/lib/test/generic-processor.test.js.map +1 -0
- package/{test → lib/test}/index.d.ts +0 -0
- package/{test → lib/test}/index.js +0 -0
- package/{test → lib/test}/index.js.map +1 -1
- package/{test → lib/test}/metric-utils.d.ts +0 -0
- package/{test → lib/test}/metric-utils.js +0 -0
- package/lib/test/metric-utils.js.map +1 -0
- package/{test → lib/test}/mirrorworld.d.ts +0 -0
- package/{test → lib/test}/mirrorworld.js +0 -0
- package/{test → lib/test}/mirrorworld.js.map +1 -1
- package/{test → lib/test}/solana.test.d.ts +0 -0
- package/{test → lib/test}/solana.test.js +3 -3
- package/lib/test/solana.test.js.map +1 -0
- package/{test → lib/test}/test-processor-server.d.ts +1 -1
- package/{test → lib/test}/test-processor-server.js +3 -8
- package/lib/test/test-processor-server.js.map +1 -0
- package/{test → lib/test}/types/game_wallet.d.ts +0 -0
- package/{test → lib/test}/types/game_wallet.js +0 -0
- package/lib/test/types/game_wallet.js.map +1 -0
- package/{test → lib/test}/types/game_wallet_processor.d.ts +0 -0
- package/{test → lib/test}/types/game_wallet_processor.js +0 -0
- package/lib/test/types/game_wallet_processor.js.map +1 -0
- package/{test → lib/test}/wormhole-token-bridge.d.ts +0 -0
- package/{test → lib/test}/wormhole-token-bridge.js +0 -0
- package/lib/test/wormhole-token-bridge.js.map +1 -0
- package/{utils → lib/utils}/chainmap.d.ts +0 -0
- package/{utils → lib/utils}/chainmap.js +0 -0
- package/lib/utils/chainmap.js.map +1 -0
- package/{utils → lib/utils}/convert.d.ts +0 -0
- package/{utils → lib/utils}/convert.js +0 -0
- package/lib/utils/convert.js.map +1 -0
- package/{utils → lib/utils}/index.d.ts +0 -0
- package/{utils → lib/utils}/index.js +0 -0
- package/lib/utils/index.js.map +1 -0
- package/package.json +47 -6
- package/src/abis/erc20.json +198 -0
- package/src/base-processor-template.ts +92 -0
- package/src/base-processor.ts +128 -0
- package/src/bind-options.ts +41 -0
- package/src/binds.ts +73 -0
- package/src/builtin/erc20/index.ts +6 -0
- package/src/builtin/erc20/test-utils.ts +49 -0
- package/src/builtin/internal/Erc20.ts +356 -0
- package/src/builtin/internal/common.ts +46 -0
- package/src/builtin/internal/erc20_processor.ts +295 -0
- package/src/builtin/internal/factories/Erc20__factory.ts +216 -0
- package/src/builtin/internal/factories/index.ts +4 -0
- package/src/builtin/internal/index.ts +6 -0
- package/src/chain-config.ts +6 -0
- package/src/cli/build.ts +180 -0
- package/src/cli/cli.ts +217 -0
- package/src/cli/config.ts +43 -0
- package/src/cli/key.ts +43 -0
- package/src/cli/solana-code-gen.ts +16 -0
- package/src/cli/upload.ts +86 -0
- package/src/cli/webpack.config.js +42 -0
- package/src/context.ts +93 -0
- package/src/contract-namer.ts +17 -0
- package/src/error.ts +43 -0
- package/src/gen/builtin.ts +22 -0
- package/src/gen/google/protobuf/empty.ts +70 -0
- package/src/gen/processor/protos/processor.ts +3071 -0
- package/src/generic-processor.ts +38 -0
- package/src/index.ts +19 -0
- package/src/loader.ts +24 -0
- package/src/meter.ts +122 -0
- package/src/numberish.test.ts +82 -0
- package/src/numberish.ts +99 -0
- package/src/processor-runner.ts +49 -0
- package/src/processor-state.ts +24 -0
- package/src/promise-or-void.ts +1 -0
- package/src/provider.ts +74 -0
- package/src/service.ts +439 -0
- package/src/solana/builtin/index.ts +2 -0
- package/src/solana/builtin/spl-token-processor.ts +164 -0
- package/src/solana/builtin/types.ts +268 -0
- package/src/solana/builtin/wormhole-processor.ts +178 -0
- package/src/solana-processor.ts +105 -0
- package/src/target-ethers-sentio/codegen.ts +289 -0
- package/src/target-ethers-sentio/index.ts +50 -0
- package/src/target-ethers-sentio/tsconfig.json +9 -0
- package/src/test/abis/evm/anyswapRouter.json +490 -0
- package/src/test/abis/solana/mirrorworld.json +1392 -0
- package/src/test/codegen.test.ts +26 -0
- package/src/test/erc20-template.test.ts +37 -0
- package/src/test/erc20-template.ts +25 -0
- package/src/test/erc20.test.ts +90 -0
- package/src/test/erc20.ts +48 -0
- package/src/test/generic-processor.test.ts +70 -0
- package/src/test/index.ts +1 -0
- package/src/test/metric-utils.ts +49 -0
- package/src/test/mirrorworld.ts +40 -0
- package/src/test/sentio.yaml +4 -0
- package/src/test/solana.test.ts +93 -0
- package/src/test/test-processor-server.ts +205 -0
- package/src/test/types/game_wallet.ts +1392 -0
- package/src/test/types/game_wallet_processor.ts +113 -0
- package/src/test/wormhole-token-bridge.ts +21 -0
- package/src/types/global.d.ts +17 -0
- package/src/utils/chainmap.ts +95 -0
- package/src/utils/convert.ts +6 -0
- package/src/utils/index.ts +2 -0
- package/base-processor-template.js.map +0 -1
- package/base-processor.js.map +0 -1
- package/bind-options.js.map +0 -1
- package/binds.js.map +0 -1
- package/builtin/erc20/index.js.map +0 -1
- package/builtin/erc20/test-utils.js.map +0 -1
- package/builtin/internal/Erc20.js.map +0 -1
- package/builtin/internal/common.js.map +0 -1
- package/builtin/internal/erc20_processor.js.map +0 -1
- package/builtin/internal/factories/Erc20__factory.js.map +0 -1
- package/builtin/internal/index.js.map +0 -1
- package/chain-config.js.map +0 -1
- package/cli/build.js.map +0 -1
- package/cli/cli.js.map +0 -1
- package/cli/config.js.map +0 -1
- package/context.js.map +0 -1
- package/error.js.map +0 -1
- package/gen/builtin.js.map +0 -1
- package/gen/google/protobuf/empty.js.map +0 -1
- package/gen/processor/protos/processor.js.map +0 -1
- package/generic-processor.js.map +0 -1
- package/index.js.map +0 -1
- package/meter.js.map +0 -1
- package/numberish.js.map +0 -1
- package/processor-runner.js.map +0 -1
- package/processor-state.js.map +0 -1
- package/promise-or-void.js.map +0 -1
- package/provider.js.map +0 -1
- package/service.js.map +0 -1
- package/solana/builtin/index.js.map +0 -1
- package/solana/builtin/spl-token-processor.js.map +0 -1
- package/solana/builtin/types.js.map +0 -1
- package/solana/builtin/wormhole-processor.js.map +0 -1
- package/solana-processor.js.map +0 -1
- package/test/codegen.test.js.map +0 -1
- package/test/erc20-template.js.map +0 -1
- package/test/erc20-template.test.js.map +0 -1
- package/test/erc20.js.map +0 -1
- package/test/erc20.test.js.map +0 -1
- package/test/generic-processor.test.js.map +0 -1
- package/test/metric-utils.js.map +0 -1
- package/test/solana.test.js.map +0 -1
- package/test/test-processor-server.js.map +0 -1
- package/test/types/game_wallet.js.map +0 -1
- package/test/types/game_wallet_processor.js.map +0 -1
- package/test/wormhole-token-bridge.js.map +0 -1
- package/utils/chainmap.js.map +0 -1
- package/utils/convert.js.map +0 -1
- package/utils/index.js.map +0 -1
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{ "internalType": "address", "name": "_factory", "type": "address" },
|
|
5
|
+
{ "internalType": "address", "name": "_wNATIVE", "type": "address" },
|
|
6
|
+
{ "internalType": "address", "name": "_mpc", "type": "address" }
|
|
7
|
+
],
|
|
8
|
+
"stateMutability": "nonpayable",
|
|
9
|
+
"type": "constructor"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"anonymous": false,
|
|
13
|
+
"inputs": [
|
|
14
|
+
{ "indexed": true, "internalType": "bytes32", "name": "txhash", "type": "bytes32" },
|
|
15
|
+
{ "indexed": true, "internalType": "address", "name": "token", "type": "address" },
|
|
16
|
+
{ "indexed": true, "internalType": "address", "name": "to", "type": "address" },
|
|
17
|
+
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
18
|
+
{ "indexed": false, "internalType": "uint256", "name": "fromChainID", "type": "uint256" },
|
|
19
|
+
{ "indexed": false, "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
20
|
+
],
|
|
21
|
+
"name": "LogAnySwapIn",
|
|
22
|
+
"type": "event"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"anonymous": false,
|
|
26
|
+
"inputs": [
|
|
27
|
+
{ "indexed": true, "internalType": "address", "name": "token", "type": "address" },
|
|
28
|
+
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
|
|
29
|
+
{ "indexed": true, "internalType": "address", "name": "to", "type": "address" },
|
|
30
|
+
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
31
|
+
{ "indexed": false, "internalType": "uint256", "name": "fromChainID", "type": "uint256" },
|
|
32
|
+
{ "indexed": false, "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
33
|
+
],
|
|
34
|
+
"name": "LogAnySwapOut",
|
|
35
|
+
"type": "event"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"anonymous": false,
|
|
39
|
+
"inputs": [
|
|
40
|
+
{ "indexed": true, "internalType": "address", "name": "token", "type": "address" },
|
|
41
|
+
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
|
|
42
|
+
{ "indexed": false, "internalType": "string", "name": "to", "type": "string" },
|
|
43
|
+
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
44
|
+
{ "indexed": false, "internalType": "uint256", "name": "fromChainID", "type": "uint256" },
|
|
45
|
+
{ "indexed": false, "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
46
|
+
],
|
|
47
|
+
"name": "LogAnySwapOut",
|
|
48
|
+
"type": "event"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"anonymous": false,
|
|
52
|
+
"inputs": [
|
|
53
|
+
{ "indexed": false, "internalType": "address[]", "name": "path", "type": "address[]" },
|
|
54
|
+
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
|
|
55
|
+
{ "indexed": true, "internalType": "address", "name": "to", "type": "address" },
|
|
56
|
+
{ "indexed": false, "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
57
|
+
{ "indexed": false, "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
|
|
58
|
+
{ "indexed": false, "internalType": "uint256", "name": "fromChainID", "type": "uint256" },
|
|
59
|
+
{ "indexed": false, "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
60
|
+
],
|
|
61
|
+
"name": "LogAnySwapTradeTokensForNative",
|
|
62
|
+
"type": "event"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"anonymous": false,
|
|
66
|
+
"inputs": [
|
|
67
|
+
{ "indexed": false, "internalType": "address[]", "name": "path", "type": "address[]" },
|
|
68
|
+
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
|
|
69
|
+
{ "indexed": true, "internalType": "address", "name": "to", "type": "address" },
|
|
70
|
+
{ "indexed": false, "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
71
|
+
{ "indexed": false, "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
|
|
72
|
+
{ "indexed": false, "internalType": "uint256", "name": "fromChainID", "type": "uint256" },
|
|
73
|
+
{ "indexed": false, "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
74
|
+
],
|
|
75
|
+
"name": "LogAnySwapTradeTokensForTokens",
|
|
76
|
+
"type": "event"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"anonymous": false,
|
|
80
|
+
"inputs": [
|
|
81
|
+
{ "indexed": true, "internalType": "address", "name": "oldMPC", "type": "address" },
|
|
82
|
+
{ "indexed": true, "internalType": "address", "name": "newMPC", "type": "address" },
|
|
83
|
+
{ "indexed": true, "internalType": "uint256", "name": "effectiveTime", "type": "uint256" },
|
|
84
|
+
{ "indexed": false, "internalType": "uint256", "name": "chainID", "type": "uint256" }
|
|
85
|
+
],
|
|
86
|
+
"name": "LogChangeMPC",
|
|
87
|
+
"type": "event"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"anonymous": false,
|
|
91
|
+
"inputs": [
|
|
92
|
+
{ "indexed": true, "internalType": "address", "name": "oldRouter", "type": "address" },
|
|
93
|
+
{ "indexed": true, "internalType": "address", "name": "newRouter", "type": "address" },
|
|
94
|
+
{ "indexed": false, "internalType": "uint256", "name": "chainID", "type": "uint256" }
|
|
95
|
+
],
|
|
96
|
+
"name": "LogChangeRouter",
|
|
97
|
+
"type": "event"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"inputs": [
|
|
101
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
102
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
|
|
103
|
+
],
|
|
104
|
+
"name": "anySwapFeeTo",
|
|
105
|
+
"outputs": [],
|
|
106
|
+
"stateMutability": "nonpayable",
|
|
107
|
+
"type": "function"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"inputs": [
|
|
111
|
+
{ "internalType": "bytes32[]", "name": "txs", "type": "bytes32[]" },
|
|
112
|
+
{ "internalType": "address[]", "name": "tokens", "type": "address[]" },
|
|
113
|
+
{ "internalType": "address[]", "name": "to", "type": "address[]" },
|
|
114
|
+
{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" },
|
|
115
|
+
{ "internalType": "uint256[]", "name": "fromChainIDs", "type": "uint256[]" }
|
|
116
|
+
],
|
|
117
|
+
"name": "anySwapIn",
|
|
118
|
+
"outputs": [],
|
|
119
|
+
"stateMutability": "nonpayable",
|
|
120
|
+
"type": "function"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"inputs": [
|
|
124
|
+
{ "internalType": "bytes32", "name": "txs", "type": "bytes32" },
|
|
125
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
126
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
127
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
128
|
+
{ "internalType": "uint256", "name": "fromChainID", "type": "uint256" }
|
|
129
|
+
],
|
|
130
|
+
"name": "anySwapIn",
|
|
131
|
+
"outputs": [],
|
|
132
|
+
"stateMutability": "nonpayable",
|
|
133
|
+
"type": "function"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"inputs": [
|
|
137
|
+
{ "internalType": "bytes32", "name": "txs", "type": "bytes32" },
|
|
138
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
139
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
140
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
141
|
+
{ "internalType": "uint256", "name": "fromChainID", "type": "uint256" }
|
|
142
|
+
],
|
|
143
|
+
"name": "anySwapInAuto",
|
|
144
|
+
"outputs": [],
|
|
145
|
+
"stateMutability": "nonpayable",
|
|
146
|
+
"type": "function"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"inputs": [
|
|
150
|
+
{ "internalType": "bytes32", "name": "txs", "type": "bytes32" },
|
|
151
|
+
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
152
|
+
{ "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
|
|
153
|
+
{ "internalType": "address[]", "name": "path", "type": "address[]" },
|
|
154
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
155
|
+
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
|
|
156
|
+
{ "internalType": "uint256", "name": "fromChainID", "type": "uint256" }
|
|
157
|
+
],
|
|
158
|
+
"name": "anySwapInExactTokensForNative",
|
|
159
|
+
"outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }],
|
|
160
|
+
"stateMutability": "nonpayable",
|
|
161
|
+
"type": "function"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"inputs": [
|
|
165
|
+
{ "internalType": "bytes32", "name": "txs", "type": "bytes32" },
|
|
166
|
+
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
167
|
+
{ "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
|
|
168
|
+
{ "internalType": "address[]", "name": "path", "type": "address[]" },
|
|
169
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
170
|
+
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
|
|
171
|
+
{ "internalType": "uint256", "name": "fromChainID", "type": "uint256" }
|
|
172
|
+
],
|
|
173
|
+
"name": "anySwapInExactTokensForTokens",
|
|
174
|
+
"outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }],
|
|
175
|
+
"stateMutability": "nonpayable",
|
|
176
|
+
"type": "function"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"inputs": [
|
|
180
|
+
{ "internalType": "bytes32", "name": "txs", "type": "bytes32" },
|
|
181
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
182
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
183
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
184
|
+
{ "internalType": "uint256", "name": "fromChainID", "type": "uint256" }
|
|
185
|
+
],
|
|
186
|
+
"name": "anySwapInUnderlying",
|
|
187
|
+
"outputs": [],
|
|
188
|
+
"stateMutability": "nonpayable",
|
|
189
|
+
"type": "function"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"inputs": [
|
|
193
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
194
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
195
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
196
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
197
|
+
],
|
|
198
|
+
"name": "anySwapOut",
|
|
199
|
+
"outputs": [],
|
|
200
|
+
"stateMutability": "nonpayable",
|
|
201
|
+
"type": "function"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"inputs": [
|
|
205
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
206
|
+
{ "internalType": "string", "name": "to", "type": "string" },
|
|
207
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
208
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
209
|
+
],
|
|
210
|
+
"name": "anySwapOut",
|
|
211
|
+
"outputs": [],
|
|
212
|
+
"stateMutability": "nonpayable",
|
|
213
|
+
"type": "function"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"inputs": [
|
|
217
|
+
{ "internalType": "address[]", "name": "tokens", "type": "address[]" },
|
|
218
|
+
{ "internalType": "address[]", "name": "to", "type": "address[]" },
|
|
219
|
+
{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" },
|
|
220
|
+
{ "internalType": "uint256[]", "name": "toChainIDs", "type": "uint256[]" }
|
|
221
|
+
],
|
|
222
|
+
"name": "anySwapOut",
|
|
223
|
+
"outputs": [],
|
|
224
|
+
"stateMutability": "nonpayable",
|
|
225
|
+
"type": "function"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"inputs": [
|
|
229
|
+
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
230
|
+
{ "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
|
|
231
|
+
{ "internalType": "address[]", "name": "path", "type": "address[]" },
|
|
232
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
233
|
+
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
|
|
234
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
235
|
+
],
|
|
236
|
+
"name": "anySwapOutExactTokensForNative",
|
|
237
|
+
"outputs": [],
|
|
238
|
+
"stateMutability": "nonpayable",
|
|
239
|
+
"type": "function"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"inputs": [
|
|
243
|
+
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
244
|
+
{ "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
|
|
245
|
+
{ "internalType": "address[]", "name": "path", "type": "address[]" },
|
|
246
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
247
|
+
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
|
|
248
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
249
|
+
],
|
|
250
|
+
"name": "anySwapOutExactTokensForNativeUnderlying",
|
|
251
|
+
"outputs": [],
|
|
252
|
+
"stateMutability": "nonpayable",
|
|
253
|
+
"type": "function"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"inputs": [
|
|
257
|
+
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
258
|
+
{ "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
|
|
259
|
+
{ "internalType": "address[]", "name": "path", "type": "address[]" },
|
|
260
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
261
|
+
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
|
|
262
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
263
|
+
],
|
|
264
|
+
"name": "anySwapOutExactTokensForTokens",
|
|
265
|
+
"outputs": [],
|
|
266
|
+
"stateMutability": "nonpayable",
|
|
267
|
+
"type": "function"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"inputs": [
|
|
271
|
+
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
272
|
+
{ "internalType": "uint256", "name": "amountOutMin", "type": "uint256" },
|
|
273
|
+
{ "internalType": "address[]", "name": "path", "type": "address[]" },
|
|
274
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
275
|
+
{ "internalType": "uint256", "name": "deadline", "type": "uint256" },
|
|
276
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
277
|
+
],
|
|
278
|
+
"name": "anySwapOutExactTokensForTokensUnderlying",
|
|
279
|
+
"outputs": [],
|
|
280
|
+
"stateMutability": "nonpayable",
|
|
281
|
+
"type": "function"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"inputs": [
|
|
285
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
286
|
+
{ "internalType": "string", "name": "to", "type": "string" },
|
|
287
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
288
|
+
],
|
|
289
|
+
"name": "anySwapOutNative",
|
|
290
|
+
"outputs": [],
|
|
291
|
+
"stateMutability": "payable",
|
|
292
|
+
"type": "function"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"inputs": [
|
|
296
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
297
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
298
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
299
|
+
],
|
|
300
|
+
"name": "anySwapOutNative",
|
|
301
|
+
"outputs": [],
|
|
302
|
+
"stateMutability": "payable",
|
|
303
|
+
"type": "function"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"inputs": [
|
|
307
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
308
|
+
{ "internalType": "string", "name": "to", "type": "string" },
|
|
309
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
310
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
311
|
+
],
|
|
312
|
+
"name": "anySwapOutUnderlying",
|
|
313
|
+
"outputs": [],
|
|
314
|
+
"stateMutability": "nonpayable",
|
|
315
|
+
"type": "function"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"inputs": [
|
|
319
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
320
|
+
{ "internalType": "address", "name": "to", "type": "address" },
|
|
321
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
322
|
+
{ "internalType": "uint256", "name": "toChainID", "type": "uint256" }
|
|
323
|
+
],
|
|
324
|
+
"name": "anySwapOutUnderlying",
|
|
325
|
+
"outputs": [],
|
|
326
|
+
"stateMutability": "nonpayable",
|
|
327
|
+
"type": "function"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"inputs": [{ "internalType": "address", "name": "token", "type": "address" }],
|
|
331
|
+
"name": "applyMinter",
|
|
332
|
+
"outputs": [],
|
|
333
|
+
"stateMutability": "nonpayable",
|
|
334
|
+
"type": "function"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"inputs": [],
|
|
338
|
+
"name": "cID",
|
|
339
|
+
"outputs": [{ "internalType": "uint256", "name": "id", "type": "uint256" }],
|
|
340
|
+
"stateMutability": "view",
|
|
341
|
+
"type": "function"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"inputs": [{ "internalType": "address", "name": "newMPC", "type": "address" }],
|
|
345
|
+
"name": "changeMPC",
|
|
346
|
+
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
|
|
347
|
+
"stateMutability": "nonpayable",
|
|
348
|
+
"type": "function"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"inputs": [
|
|
352
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
353
|
+
{ "internalType": "address", "name": "newVault", "type": "address" }
|
|
354
|
+
],
|
|
355
|
+
"name": "changeVault",
|
|
356
|
+
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
|
|
357
|
+
"stateMutability": "nonpayable",
|
|
358
|
+
"type": "function"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"inputs": [
|
|
362
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
363
|
+
{ "internalType": "address", "name": "to", "type": "address" }
|
|
364
|
+
],
|
|
365
|
+
"name": "depositNative",
|
|
366
|
+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
367
|
+
"stateMutability": "payable",
|
|
368
|
+
"type": "function"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"inputs": [],
|
|
372
|
+
"name": "enableSwapTrade",
|
|
373
|
+
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
|
|
374
|
+
"stateMutability": "view",
|
|
375
|
+
"type": "function"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"inputs": [],
|
|
379
|
+
"name": "factory",
|
|
380
|
+
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
381
|
+
"stateMutability": "view",
|
|
382
|
+
"type": "function"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"inputs": [
|
|
386
|
+
{ "internalType": "uint256", "name": "amountOut", "type": "uint256" },
|
|
387
|
+
{ "internalType": "uint256", "name": "reserveIn", "type": "uint256" },
|
|
388
|
+
{ "internalType": "uint256", "name": "reserveOut", "type": "uint256" }
|
|
389
|
+
],
|
|
390
|
+
"name": "getAmountIn",
|
|
391
|
+
"outputs": [{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }],
|
|
392
|
+
"stateMutability": "pure",
|
|
393
|
+
"type": "function"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"inputs": [
|
|
397
|
+
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
398
|
+
{ "internalType": "uint256", "name": "reserveIn", "type": "uint256" },
|
|
399
|
+
{ "internalType": "uint256", "name": "reserveOut", "type": "uint256" }
|
|
400
|
+
],
|
|
401
|
+
"name": "getAmountOut",
|
|
402
|
+
"outputs": [{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }],
|
|
403
|
+
"stateMutability": "pure",
|
|
404
|
+
"type": "function"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"inputs": [
|
|
408
|
+
{ "internalType": "uint256", "name": "amountOut", "type": "uint256" },
|
|
409
|
+
{ "internalType": "address[]", "name": "path", "type": "address[]" }
|
|
410
|
+
],
|
|
411
|
+
"name": "getAmountsIn",
|
|
412
|
+
"outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }],
|
|
413
|
+
"stateMutability": "view",
|
|
414
|
+
"type": "function"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"inputs": [
|
|
418
|
+
{ "internalType": "uint256", "name": "amountIn", "type": "uint256" },
|
|
419
|
+
{ "internalType": "address[]", "name": "path", "type": "address[]" }
|
|
420
|
+
],
|
|
421
|
+
"name": "getAmountsOut",
|
|
422
|
+
"outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }],
|
|
423
|
+
"stateMutability": "view",
|
|
424
|
+
"type": "function"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"inputs": [],
|
|
428
|
+
"name": "mpc",
|
|
429
|
+
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
430
|
+
"stateMutability": "view",
|
|
431
|
+
"type": "function"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"inputs": [
|
|
435
|
+
{ "internalType": "uint256", "name": "amountA", "type": "uint256" },
|
|
436
|
+
{ "internalType": "uint256", "name": "reserveA", "type": "uint256" },
|
|
437
|
+
{ "internalType": "uint256", "name": "reserveB", "type": "uint256" }
|
|
438
|
+
],
|
|
439
|
+
"name": "quote",
|
|
440
|
+
"outputs": [{ "internalType": "uint256", "name": "amountB", "type": "uint256" }],
|
|
441
|
+
"stateMutability": "pure",
|
|
442
|
+
"type": "function"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"inputs": [
|
|
446
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
447
|
+
{ "internalType": "address", "name": "_auth", "type": "address" }
|
|
448
|
+
],
|
|
449
|
+
"name": "revokeMinter",
|
|
450
|
+
"outputs": [],
|
|
451
|
+
"stateMutability": "nonpayable",
|
|
452
|
+
"type": "function"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"inputs": [{ "internalType": "bool", "name": "enable", "type": "bool" }],
|
|
456
|
+
"name": "setEnableSwapTrade",
|
|
457
|
+
"outputs": [],
|
|
458
|
+
"stateMutability": "nonpayable",
|
|
459
|
+
"type": "function"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"inputs": [
|
|
463
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
464
|
+
{ "internalType": "address", "name": "_auth", "type": "address" }
|
|
465
|
+
],
|
|
466
|
+
"name": "setMinter",
|
|
467
|
+
"outputs": [],
|
|
468
|
+
"stateMutability": "nonpayable",
|
|
469
|
+
"type": "function"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"inputs": [],
|
|
473
|
+
"name": "wNATIVE",
|
|
474
|
+
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
475
|
+
"stateMutability": "view",
|
|
476
|
+
"type": "function"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"inputs": [
|
|
480
|
+
{ "internalType": "address", "name": "token", "type": "address" },
|
|
481
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
482
|
+
{ "internalType": "address", "name": "to", "type": "address" }
|
|
483
|
+
],
|
|
484
|
+
"name": "withdrawNative",
|
|
485
|
+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
486
|
+
"stateMutability": "nonpayable",
|
|
487
|
+
"type": "function"
|
|
488
|
+
},
|
|
489
|
+
{ "stateMutability": "payable", "type": "receive" }
|
|
490
|
+
]
|