@sentio/sdk 2.3.6-rc.1 → 2.4.0
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/lib/aptos/tests/aptos.test.js.map +1 -1
- package/lib/eth/account-processor.d.ts +2 -2
- package/lib/eth/account-processor.js +2 -2
- package/lib/eth/account-processor.js.map +1 -1
- package/lib/eth/builtin/eacaggregatorproxy.d.ts +2 -2
- package/lib/eth/builtin/eacaggregatorproxy.js +2 -2
- package/lib/eth/builtin/eacaggregatorproxy.js.map +1 -1
- package/lib/eth/builtin/erc1155.d.ts +2 -2
- package/lib/eth/builtin/erc1155.js +2 -2
- package/lib/eth/builtin/erc1155.js.map +1 -1
- package/lib/eth/builtin/erc20.d.ts +2 -2
- package/lib/eth/builtin/erc20.js +2 -2
- package/lib/eth/builtin/erc20.js.map +1 -1
- package/lib/eth/builtin/erc20bytes.d.ts +2 -2
- package/lib/eth/builtin/erc20bytes.js +2 -2
- package/lib/eth/builtin/erc20bytes.js.map +1 -1
- package/lib/eth/builtin/erc721.d.ts +2 -2
- package/lib/eth/builtin/erc721.js +2 -2
- package/lib/eth/builtin/erc721.js.map +1 -1
- package/lib/eth/builtin/internal/{eacaggregatorproxy_processor.d.ts → eacaggregatorproxy-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{eacaggregatorproxy_processor.js → eacaggregatorproxy-processor.js} +1 -1
- package/lib/eth/builtin/internal/{eacaggregatorproxy_processor.js.map → eacaggregatorproxy-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{eacaggregatorproxy_test-utils.d.ts → eacaggregatorproxy-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{eacaggregatorproxy_test-utils.js → eacaggregatorproxy-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{eacaggregatorproxy_test-utils.js.map → eacaggregatorproxy-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc1155_processor.d.ts → erc1155-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc1155_processor.js → erc1155-processor.js} +1 -1
- package/lib/eth/builtin/internal/{erc1155_processor.js.map → erc1155-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc1155_test-utils.d.ts → erc1155-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc1155_test-utils.js → erc1155-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{erc1155_test-utils.js.map → erc1155-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc20_processor.d.ts → erc20-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc20_processor.js → erc20-processor.js} +1 -1
- package/lib/eth/builtin/internal/{erc20_processor.js.map → erc20-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc20_test-utils.d.ts → erc20-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc20_test-utils.js → erc20-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{erc20_test-utils.js.map → erc20-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc20bytes_processor.d.ts → erc20bytes-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc20bytes_processor.js → erc20bytes-processor.js} +1 -1
- package/lib/eth/builtin/internal/{erc20bytes_processor.js.map → erc20bytes-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc20bytes_test-utils.d.ts → erc20bytes-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc20bytes_test-utils.js → erc20bytes-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{erc20bytes_test-utils.js.map → erc20bytes-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc721_processor.d.ts → erc721-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc721_processor.js → erc721-processor.js} +1 -1
- package/lib/eth/builtin/internal/{erc721_processor.js.map → erc721-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{erc721_test-utils.d.ts → erc721-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{erc721_test-utils.js → erc721-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{erc721_test-utils.js.map → erc721-test-utils.js.map} +1 -1
- package/lib/eth/builtin/internal/{weth9_processor.d.ts → weth9-processor.d.ts} +0 -0
- package/lib/eth/builtin/internal/{weth9_processor.js → weth9-processor.js} +1 -1
- package/lib/eth/builtin/internal/{weth9_processor.js.map → weth9-processor.js.map} +1 -1
- package/lib/eth/builtin/internal/{weth9_test-utils.d.ts → weth9-test-utils.d.ts} +0 -0
- package/lib/eth/builtin/internal/{weth9_test-utils.js → weth9-test-utils.js} +2 -2
- package/lib/eth/builtin/internal/{weth9_test-utils.js.map → weth9-test-utils.js.map} +1 -1
- package/lib/eth/builtin/weth9.d.ts +2 -2
- package/lib/eth/builtin/weth9.js +2 -2
- package/lib/eth/builtin/weth9.js.map +1 -1
- package/lib/eth/codegen/ethers-sentio.js +2 -2
- package/lib/eth/codegen/ethers-sentio.js.map +1 -1
- package/lib/eth/codegen/file.js +3 -3
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/generic-processor.test.js.map +1 -1
- package/lib/eth/tests/account.test.d.ts +1 -0
- package/lib/eth/tests/account.test.js.map +1 -0
- package/lib/eth/tests/codegen.test.d.ts +1 -0
- package/lib/eth/tests/codegen.test.js.map +1 -0
- package/lib/eth/tests/erc20-template.test.d.ts +1 -0
- package/lib/eth/tests/erc20-template.test.js.map +1 -0
- package/lib/eth/tests/erc20.d.ts +1 -0
- package/lib/eth/tests/erc20.js +52 -0
- package/lib/eth/tests/erc20.js.map +1 -0
- package/lib/eth/tests/erc20.test.d.ts +1 -0
- package/lib/eth/tests/erc20.test.js.map +1 -0
- package/lib/eth/tests/error-capture.test.d.ts +1 -0
- package/lib/eth/tests/error-capture.test.js.map +1 -0
- package/lib/eth/tests/logger.test.d.ts +1 -0
- package/lib/eth/tests/logger.test.js.map +1 -0
- package/lib/eth/tests/types/anyswaprouter.d.ts +3 -0
- package/lib/eth/tests/types/anyswaprouter.js +7 -0
- package/lib/eth/tests/types/anyswaprouter.js.map +1 -0
- package/lib/eth/tests/types/commitmentpool.d.ts +3 -0
- package/lib/eth/tests/types/commitmentpool.js +7 -0
- package/lib/eth/tests/types/commitmentpool.js.map +1 -0
- package/lib/eth/tests/types/index.d.ts +12 -0
- package/lib/eth/tests/types/index.js +16 -0
- package/lib/eth/tests/types/index.js.map +1 -0
- package/lib/eth/tests/types/internal/AnyswapRouter.d.ts +122 -0
- package/lib/eth/tests/types/internal/AnyswapRouter.js +2 -0
- package/lib/eth/tests/types/internal/AnyswapRouter.js.map +1 -0
- package/lib/eth/tests/types/internal/CommitmentPool.d.ts +176 -0
- package/lib/eth/tests/types/internal/CommitmentPool.js +2 -0
- package/lib/eth/tests/types/internal/CommitmentPool.js.map +1 -0
- package/lib/eth/tests/types/internal/MembershipStakerV3.d.ts +81 -0
- package/lib/eth/tests/types/internal/MembershipStakerV3.js +2 -0
- package/lib/eth/tests/types/internal/MembershipStakerV3.js.map +1 -0
- package/lib/eth/tests/types/internal/Pyth.d.ts +204 -0
- package/lib/eth/tests/types/internal/Pyth.js +2 -0
- package/lib/eth/tests/types/internal/Pyth.js.map +1 -0
- package/lib/eth/tests/types/internal/Seaport.d.ts +350 -0
- package/lib/eth/tests/types/internal/Seaport.js +2 -0
- package/lib/eth/tests/types/internal/Seaport.js.map +1 -0
- package/lib/eth/tests/types/internal/TokenExchange.d.ts +128 -0
- package/lib/eth/tests/types/internal/TokenExchange.js +2 -0
- package/lib/eth/tests/types/internal/TokenExchange.js.map +1 -0
- package/lib/eth/tests/types/internal/anyswaprouter-processor.d.ts +463 -0
- package/lib/eth/tests/types/internal/anyswaprouter-processor.js +425 -0
- package/lib/eth/tests/types/internal/anyswaprouter-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/anyswaprouter-test-utils.d.ts +9 -0
- package/lib/eth/tests/types/internal/anyswaprouter-test-utils.js +124 -0
- package/lib/eth/tests/types/internal/anyswaprouter-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/commitmentpool-processor.d.ts +348 -0
- package/lib/eth/tests/types/internal/commitmentpool-processor.js +607 -0
- package/lib/eth/tests/types/internal/commitmentpool-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/commitmentpool-test-utils.d.ts +9 -0
- package/lib/eth/tests/types/internal/commitmentpool-test-utils.js +87 -0
- package/lib/eth/tests/types/internal/commitmentpool-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/common.d.ts +10 -0
- package/lib/eth/tests/types/internal/common.js +8 -0
- package/lib/eth/tests/types/internal/common.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.d.ts +988 -0
- package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.js +1269 -0
- package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.d.ts +792 -0
- package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.js +1040 -0
- package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.d.ts +549 -0
- package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.js +721 -0
- package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/Pyth__factory.d.ts +1130 -0
- package/lib/eth/tests/types/internal/factories/Pyth__factory.js +1486 -0
- package/lib/eth/tests/types/internal/factories/Pyth__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/Seaport__factory.d.ts +2018 -0
- package/lib/eth/tests/types/internal/factories/Seaport__factory.js +2610 -0
- package/lib/eth/tests/types/internal/factories/Seaport__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/TokenExchange__factory.d.ts +651 -0
- package/lib/eth/tests/types/internal/factories/TokenExchange__factory.js +853 -0
- package/lib/eth/tests/types/internal/factories/TokenExchange__factory.js.map +1 -0
- package/lib/eth/tests/types/internal/factories/index.d.ts +6 -0
- package/lib/eth/tests/types/internal/factories/index.js +10 -0
- package/lib/eth/tests/types/internal/factories/index.js.map +1 -0
- package/lib/eth/tests/types/internal/index.d.ts +13 -0
- package/lib/eth/tests/types/internal/index.js +8 -0
- package/lib/eth/tests/types/internal/index.js.map +1 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-processor.d.ts +287 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-processor.js +596 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.d.ts +11 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.js +109 -0
- package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/pyth-processor.d.ts +422 -0
- package/lib/eth/tests/types/internal/pyth-processor.js +890 -0
- package/lib/eth/tests/types/internal/pyth-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/pyth-test-utils.d.ts +13 -0
- package/lib/eth/tests/types/internal/pyth-test-utils.js +131 -0
- package/lib/eth/tests/types/internal/pyth-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/seaport-processor.d.ts +211 -0
- package/lib/eth/tests/types/internal/seaport-processor.js +237 -0
- package/lib/eth/tests/types/internal/seaport-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/seaport-test-utils.d.ts +6 -0
- package/lib/eth/tests/types/internal/seaport-test-utils.js +61 -0
- package/lib/eth/tests/types/internal/seaport-test-utils.js.map +1 -0
- package/lib/eth/tests/types/internal/tokenexchange-processor.d.ts +334 -0
- package/lib/eth/tests/types/internal/tokenexchange-processor.js +667 -0
- package/lib/eth/tests/types/internal/tokenexchange-processor.js.map +1 -0
- package/lib/eth/tests/types/internal/tokenexchange-test-utils.d.ts +13 -0
- package/lib/eth/tests/types/internal/tokenexchange-test-utils.js +149 -0
- package/lib/eth/tests/types/internal/tokenexchange-test-utils.js.map +1 -0
- package/lib/eth/tests/types/membershipstakerv3.d.ts +3 -0
- package/lib/eth/tests/types/membershipstakerv3.js +7 -0
- package/lib/eth/tests/types/membershipstakerv3.js.map +1 -0
- package/lib/eth/tests/types/pyth.d.ts +3 -0
- package/lib/eth/tests/types/pyth.js +7 -0
- package/lib/eth/tests/types/pyth.js.map +1 -0
- package/lib/eth/tests/types/seaport.d.ts +3 -0
- package/lib/eth/tests/types/seaport.js +7 -0
- package/lib/eth/tests/types/seaport.js.map +1 -0
- package/lib/eth/tests/types/tokenexchange.d.ts +3 -0
- package/lib/eth/tests/types/tokenexchange.js +7 -0
- package/lib/eth/tests/types/tokenexchange.js.map +1 -0
- package/lib/solana/builtin/types.d.ts +8 -8
- package/lib/solana/tests/solana.test.js.map +1 -1
- package/lib/sui/sui-processor.js +2 -8
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/sui/tests/sui.test.js.map +1 -1
- package/lib/sui/utils.d.ts +2 -0
- package/lib/sui/utils.js +11 -0
- package/lib/sui/utils.js.map +1 -0
- package/lib/testing/aptos-facet.d.ts +12 -0
- package/lib/testing/aptos-facet.js +91 -0
- package/lib/testing/aptos-facet.js.map +1 -0
- package/lib/testing/eth-facet.d.ts +27 -0
- package/lib/testing/eth-facet.js +211 -0
- package/lib/testing/eth-facet.js.map +1 -0
- package/lib/testing/solana-facet.d.ts +7 -0
- package/lib/testing/solana-facet.js +22 -0
- package/lib/testing/solana-facet.js.map +1 -0
- package/lib/testing/sui-facet.d.ts +12 -0
- package/lib/testing/sui-facet.js +103 -0
- package/lib/testing/sui-facet.js.map +1 -0
- package/lib/testing/test-processor-server.d.ts +9 -23
- package/lib/testing/test-processor-server.js +13 -227
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/utils/dex-price.js +1 -1
- package/lib/utils/dex-price.js.map +1 -1
- package/lib/utils/token.js +1 -1
- package/lib/utils/token.js.map +1 -1
- package/package.json +5 -5
- package/src/eth/account-processor.ts +2 -5
- package/src/eth/builtin/eacaggregatorproxy.ts +2 -2
- package/src/eth/builtin/erc1155.ts +2 -2
- package/src/eth/builtin/erc20.ts +2 -2
- package/src/eth/builtin/erc20bytes.ts +2 -2
- package/src/eth/builtin/erc721.ts +2 -2
- package/src/eth/builtin/internal/{eacaggregatorproxy_processor.ts → eacaggregatorproxy-processor.ts} +0 -0
- package/src/eth/builtin/internal/{eacaggregatorproxy_test-utils.ts → eacaggregatorproxy-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{erc1155_processor.ts → erc1155-processor.ts} +0 -0
- package/src/eth/builtin/internal/{erc1155_test-utils.ts → erc1155-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{erc20_processor.ts → erc20-processor.ts} +0 -0
- package/src/eth/builtin/internal/{erc20_test-utils.ts → erc20-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{erc20bytes_processor.ts → erc20bytes-processor.ts} +0 -0
- package/src/eth/builtin/internal/{erc20bytes_test-utils.ts → erc20bytes-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{erc721_processor.ts → erc721-processor.ts} +0 -0
- package/src/eth/builtin/internal/{erc721_test-utils.ts → erc721-test-utils.ts} +1 -1
- package/src/eth/builtin/internal/{weth9_processor.ts → weth9-processor.ts} +0 -0
- package/src/eth/builtin/internal/{weth9_test-utils.ts → weth9-test-utils.ts} +1 -1
- package/src/eth/builtin/weth9.ts +2 -2
- package/src/eth/codegen/ethers-sentio.ts +2 -2
- package/src/eth/codegen/file.ts +3 -3
- package/src/eth/tests/abis/eth/CommitmentPool.json +1034 -0
- package/src/eth/tests/abis/eth/MembershipStakerV3.json +706 -0
- package/src/eth/tests/abis/eth/Pyth.json +1471 -0
- package/src/eth/tests/abis/eth/Seaport.json +2595 -0
- package/src/eth/tests/abis/eth/TokenExchange.json +838 -0
- package/src/eth/tests/abis/eth/anyswapRouter.json +490 -0
- package/src/eth/tests/erc20.ts +63 -0
- package/src/eth/tests/types/anyswaprouter.ts +7 -0
- package/src/eth/tests/types/commitmentpool.ts +7 -0
- package/src/eth/tests/types/index.ts +33 -0
- package/src/eth/tests/types/internal/AnyswapRouter.ts +122 -0
- package/src/eth/tests/types/internal/CommitmentPool.ts +208 -0
- package/src/eth/tests/types/internal/MembershipStakerV3.ts +108 -0
- package/src/eth/tests/types/internal/Pyth.ts +246 -0
- package/src/eth/tests/types/internal/Seaport.ts +389 -0
- package/src/eth/tests/types/internal/TokenExchange.ts +142 -0
- package/src/eth/tests/types/internal/anyswaprouter-processor.ts +1396 -0
- package/src/eth/tests/types/internal/anyswaprouter-test-utils.ts +187 -0
- package/src/eth/tests/types/internal/commitmentpool-processor.ts +1575 -0
- package/src/eth/tests/types/internal/commitmentpool-test-utils.ts +150 -0
- package/src/eth/tests/types/internal/common.ts +23 -0
- package/src/eth/tests/types/internal/factories/AnyswapRouter__factory.ts +1278 -0
- package/src/eth/tests/types/internal/factories/CommitmentPool__factory.ts +1049 -0
- package/src/eth/tests/types/internal/factories/MembershipStakerV3__factory.ts +730 -0
- package/src/eth/tests/types/internal/factories/Pyth__factory.ts +1492 -0
- package/src/eth/tests/types/internal/factories/Seaport__factory.ts +2616 -0
- package/src/eth/tests/types/internal/factories/TokenExchange__factory.ts +862 -0
- package/src/eth/tests/types/internal/factories/index.ts +9 -0
- package/src/eth/tests/types/internal/index.ts +16 -0
- package/src/eth/tests/types/internal/membershipstakerv3-processor.ts +1399 -0
- package/src/eth/tests/types/internal/membershipstakerv3-test-utils.ts +188 -0
- package/src/eth/tests/types/internal/pyth-processor.ts +2043 -0
- package/src/eth/tests/types/internal/pyth-test-utils.ts +226 -0
- package/src/eth/tests/types/internal/seaport-processor.ts +678 -0
- package/src/eth/tests/types/internal/seaport-test-utils.ts +100 -0
- package/src/eth/tests/types/internal/tokenexchange-processor.ts +1570 -0
- package/src/eth/tests/types/internal/tokenexchange-test-utils.ts +244 -0
- package/src/eth/tests/types/membershipstakerv3.ts +7 -0
- package/src/eth/tests/types/pyth.ts +7 -0
- package/src/eth/tests/types/seaport.ts +7 -0
- package/src/eth/tests/types/tokenexchange.ts +7 -0
- package/src/sui/sui-processor.ts +2 -7
- package/src/sui/utils.ts +11 -0
- package/src/testing/aptos-facet.ts +111 -0
- package/src/testing/eth-facet.ts +233 -0
- package/src/testing/solana-facet.ts +25 -0
- package/src/testing/sui-facet.ts +119 -0
- package/src/testing/test-processor-server.ts +15 -252
- package/src/utils/dex-price.ts +1 -1
- package/src/utils/token.ts +1 -3
|
@@ -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
|
+
]
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ERC20Processor, ERC20ProcessorTemplate } from '../builtin/erc20.js'
|
|
2
|
+
import { Exporter } from '../../core/exporter.js'
|
|
3
|
+
|
|
4
|
+
export const filter = ERC20Processor.filters.Transfer(
|
|
5
|
+
'0x0000000000000000000000000000000000000000',
|
|
6
|
+
'0xb329e39ebefd16f40d38f07643652ce17ca5bac1'
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
const exporter = Exporter.register('transfer', 'xxx')
|
|
10
|
+
|
|
11
|
+
const processorTemplate = new ERC20ProcessorTemplate().onEventTransfer(async function (event, ctx) {
|
|
12
|
+
console.log('')
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
ERC20Processor.bind({
|
|
16
|
+
address: '0x1e4ede388cbc9f4b5c79681b7f94d36a11abebc9',
|
|
17
|
+
// network: 1,
|
|
18
|
+
name: 'x2y2',
|
|
19
|
+
startBlock: 14201940,
|
|
20
|
+
})
|
|
21
|
+
.onEventTransfer(async function (event, ctx) {
|
|
22
|
+
processorTemplate.bind({ address: '0x1E4EDE388cbc9F4b5c79681B7f94d36a11ABEBC9', network: 3, name: 'dynamic' })
|
|
23
|
+
// template.bind('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', 3, 'dynamic')
|
|
24
|
+
ctx.meter.Counter('c1').add(1)
|
|
25
|
+
}, filter)
|
|
26
|
+
.onBlockInterval(async function (block, ctx) {
|
|
27
|
+
ctx.meter.Gauge('g1').record(10, { k: 'v' })
|
|
28
|
+
})
|
|
29
|
+
.onCallApprove(function (call, ctx) {
|
|
30
|
+
ctx.meter.Counter('added').add(call.args.amount, { spender: call.args.spender })
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
ERC20Processor.bind({ address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', network: 56, name: 'usdc' })
|
|
34
|
+
.onEventTransfer(
|
|
35
|
+
async function (event, ctx) {
|
|
36
|
+
// ctx.meter.Counter('c2').add(2)
|
|
37
|
+
// const t: Promise<string> =
|
|
38
|
+
// ctx.eventLogger.emit('transfer', { distinctId: event.args.from, xx: 33, y: Promise.resolve("s")})
|
|
39
|
+
// ctx.eventLogger.emit('transfer', { distinctId: event.args.from, x: { y: Promise.resolve("s")} })
|
|
40
|
+
ctx.eventLogger.emit('transfer', { distinctId: event.args.from })
|
|
41
|
+
exporter.emit(ctx, { ...event, x: 100n })
|
|
42
|
+
} /*filter*/
|
|
43
|
+
)
|
|
44
|
+
.onBlockInterval(async function (block, ctx) {
|
|
45
|
+
ctx.meter.Gauge('g2').record(20, { k: 'v' })
|
|
46
|
+
})
|
|
47
|
+
// .onEventApproval(async function (event, ctx) {
|
|
48
|
+
// BigNumber.from(10 ** 18)
|
|
49
|
+
// // console.log(n)
|
|
50
|
+
// })
|
|
51
|
+
ERC20Processor.bind({ address: 'xxxx', network: 56 })
|
|
52
|
+
|
|
53
|
+
ERC20Processor.bind({ address: 'yyyy', network: 1 })
|
|
54
|
+
ERC20Processor.bind({ address: 'yyyy', network: 1 })
|
|
55
|
+
ERC20Processor.bind({ address: 'yyyy', network: 1, startBlock: 21, name: 'ytoken' })
|
|
56
|
+
|
|
57
|
+
// const template = Erc20Processor.template
|
|
58
|
+
// .onTransfer(async function (event, ctx) {
|
|
59
|
+
// ctx.meter.Counter('c2').add(2)
|
|
60
|
+
// }, filter)
|
|
61
|
+
// .onBlock(async function (block, ctx) {
|
|
62
|
+
// ctx.meter.Gauge('h1').record(20, { k: 'v' })
|
|
63
|
+
// })
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
export * as commitmentpool from "./commitmentpool.js";
|
|
6
|
+
export {
|
|
7
|
+
CommitmentPoolProcessor,
|
|
8
|
+
CommitmentPoolProcessorTemplate,
|
|
9
|
+
} from "./commitmentpool.js";
|
|
10
|
+
|
|
11
|
+
export * as membershipstakerv3 from "./membershipstakerv3.js";
|
|
12
|
+
export {
|
|
13
|
+
MembershipStakerV3Processor,
|
|
14
|
+
MembershipStakerV3ProcessorTemplate,
|
|
15
|
+
} from "./membershipstakerv3.js";
|
|
16
|
+
|
|
17
|
+
export * as pyth from "./pyth.js";
|
|
18
|
+
export { PythProcessor, PythProcessorTemplate } from "./pyth.js";
|
|
19
|
+
|
|
20
|
+
export * as seaport from "./seaport.js";
|
|
21
|
+
export { SeaportProcessor, SeaportProcessorTemplate } from "./seaport.js";
|
|
22
|
+
|
|
23
|
+
export * as tokenexchange from "./tokenexchange.js";
|
|
24
|
+
export {
|
|
25
|
+
TokenExchangeProcessor,
|
|
26
|
+
TokenExchangeProcessorTemplate,
|
|
27
|
+
} from "./tokenexchange.js";
|
|
28
|
+
|
|
29
|
+
export * as anyswaprouter from "./anyswaprouter.js";
|
|
30
|
+
export {
|
|
31
|
+
AnyswapRouterProcessor,
|
|
32
|
+
AnyswapRouterProcessorTemplate,
|
|
33
|
+
} from "./anyswaprouter.js";
|