@sentio/sdk 1.7.12 → 1.7.15

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.
Files changed (293) hide show
  1. package/{base-processor-template.d.ts → lib/base-processor-template.d.ts} +0 -0
  2. package/{base-processor-template.js → lib/base-processor-template.js} +0 -0
  3. package/lib/base-processor-template.js.map +1 -0
  4. package/{base-processor.d.ts → lib/base-processor.d.ts} +0 -0
  5. package/{base-processor.js → lib/base-processor.js} +0 -0
  6. package/lib/base-processor.js.map +1 -0
  7. package/{bind-options.d.ts → lib/bind-options.d.ts} +0 -0
  8. package/{bind-options.js → lib/bind-options.js} +0 -0
  9. package/lib/bind-options.js.map +1 -0
  10. package/{binds.d.ts → lib/binds.d.ts} +0 -0
  11. package/{binds.js → lib/binds.js} +0 -0
  12. package/lib/binds.js.map +1 -0
  13. package/{builtin → lib/builtin}/erc20/index.d.ts +0 -0
  14. package/{builtin → lib/builtin}/erc20/index.js +0 -0
  15. package/lib/builtin/erc20/index.js.map +1 -0
  16. package/{builtin → lib/builtin}/erc20/test-utils.d.ts +0 -0
  17. package/{builtin → lib/builtin}/erc20/test-utils.js +0 -0
  18. package/lib/builtin/erc20/test-utils.js.map +1 -0
  19. package/{builtin → lib/builtin}/internal/Erc20.d.ts +0 -0
  20. package/{builtin → lib/builtin}/internal/Erc20.js +0 -0
  21. package/lib/builtin/internal/Erc20.js.map +1 -0
  22. package/{builtin → lib/builtin}/internal/common.d.ts +0 -0
  23. package/{builtin → lib/builtin}/internal/common.js +0 -0
  24. package/lib/builtin/internal/common.js.map +1 -0
  25. package/{builtin → lib/builtin}/internal/erc20_processor.d.ts +0 -0
  26. package/{builtin → lib/builtin}/internal/erc20_processor.js +0 -0
  27. package/lib/builtin/internal/erc20_processor.js.map +1 -0
  28. package/{builtin → lib/builtin}/internal/factories/Erc20__factory.d.ts +0 -0
  29. package/{builtin → lib/builtin}/internal/factories/Erc20__factory.js +0 -0
  30. package/lib/builtin/internal/factories/Erc20__factory.js.map +1 -0
  31. package/{builtin → lib/builtin}/internal/factories/index.d.ts +0 -0
  32. package/{builtin → lib/builtin}/internal/factories/index.js +0 -0
  33. package/{builtin → lib/builtin}/internal/factories/index.js.map +1 -1
  34. package/{builtin → lib/builtin}/internal/index.d.ts +0 -0
  35. package/{builtin → lib/builtin}/internal/index.js +0 -0
  36. package/lib/builtin/internal/index.js.map +1 -0
  37. package/{chain-config.d.ts → lib/chain-config.d.ts} +0 -0
  38. package/{chain-config.js → lib/chain-config.js} +0 -0
  39. package/lib/chain-config.js.map +1 -0
  40. package/{cli → lib/cli}/build.d.ts +0 -0
  41. package/{cli → lib/cli}/build.js +0 -0
  42. package/lib/cli/build.js.map +1 -0
  43. package/{cli → lib/cli}/cli.d.ts +0 -0
  44. package/{cli → lib/cli}/cli.js +0 -0
  45. package/lib/cli/cli.js.map +1 -0
  46. package/{cli → lib/cli}/config.d.ts +0 -0
  47. package/{cli → lib/cli}/config.js +0 -0
  48. package/lib/cli/config.js.map +1 -0
  49. package/{cli → lib/cli}/key.d.ts +0 -0
  50. package/{cli → lib/cli}/key.js +0 -0
  51. package/{cli → lib/cli}/key.js.map +1 -1
  52. package/{cli → lib/cli}/solana-code-gen.d.ts +0 -0
  53. package/{cli → lib/cli}/solana-code-gen.js +0 -0
  54. package/{cli → lib/cli}/solana-code-gen.js.map +1 -1
  55. package/{cli → lib/cli}/upload.d.ts +0 -0
  56. package/{cli → lib/cli}/upload.js +0 -0
  57. package/{cli → lib/cli}/upload.js.map +1 -1
  58. package/{cli → lib/cli}/webpack.config.js +0 -0
  59. package/{context.d.ts → lib/context.d.ts} +0 -0
  60. package/{context.js → lib/context.js} +0 -0
  61. package/lib/context.js.map +1 -0
  62. package/{contract-namer.d.ts → lib/contract-namer.d.ts} +0 -0
  63. package/{contract-namer.js → lib/contract-namer.js} +0 -0
  64. package/{contract-namer.js.map → lib/contract-namer.js.map} +1 -1
  65. package/{error.d.ts → lib/error.d.ts} +0 -0
  66. package/{error.js → lib/error.js} +0 -0
  67. package/lib/error.js.map +1 -0
  68. package/{gen → lib/gen}/builtin.d.ts +0 -0
  69. package/{gen → lib/gen}/builtin.js +0 -0
  70. package/lib/gen/builtin.js.map +1 -0
  71. package/{gen → lib/gen}/google/protobuf/empty.d.ts +0 -0
  72. package/{gen → lib/gen}/google/protobuf/empty.js +0 -0
  73. package/lib/gen/google/protobuf/empty.js.map +1 -0
  74. package/{gen → lib/gen}/processor/protos/processor.d.ts +0 -0
  75. package/{gen → lib/gen}/processor/protos/processor.js +0 -0
  76. package/lib/gen/processor/protos/processor.js.map +1 -0
  77. package/{generic-processor.d.ts → lib/generic-processor.d.ts} +0 -0
  78. package/{generic-processor.js → lib/generic-processor.js} +0 -0
  79. package/lib/generic-processor.js.map +1 -0
  80. package/{index.d.ts → lib/index.d.ts} +0 -0
  81. package/{index.js → lib/index.js} +0 -0
  82. package/lib/index.js.map +1 -0
  83. package/{meter.d.ts → lib/meter.d.ts} +0 -0
  84. package/{meter.js → lib/meter.js} +0 -0
  85. package/lib/meter.js.map +1 -0
  86. package/{numberish.d.ts → lib/numberish.d.ts} +0 -0
  87. package/{numberish.js → lib/numberish.js} +0 -0
  88. package/lib/numberish.js.map +1 -0
  89. package/{numberish.test.d.ts → lib/numberish.test.d.ts} +0 -0
  90. package/{numberish.test.js → lib/numberish.test.js} +0 -0
  91. package/{numberish.test.js.map → lib/numberish.test.js.map} +1 -1
  92. package/{processor-runner.d.ts → lib/processor-runner.d.ts} +0 -0
  93. package/{processor-runner.js → lib/processor-runner.js} +0 -0
  94. package/lib/processor-runner.js.map +1 -0
  95. package/{processor-state.d.ts → lib/processor-state.d.ts} +0 -0
  96. package/{processor-state.js → lib/processor-state.js} +0 -0
  97. package/lib/processor-state.js.map +1 -0
  98. package/{promise-or-void.d.ts → lib/promise-or-void.d.ts} +0 -0
  99. package/{promise-or-void.js → lib/promise-or-void.js} +0 -0
  100. package/lib/promise-or-void.js.map +1 -0
  101. package/{provider.d.ts → lib/provider.d.ts} +0 -0
  102. package/{provider.js → lib/provider.js} +1 -1
  103. package/lib/provider.js.map +1 -0
  104. package/{release.config.js → lib/release.config.js} +0 -0
  105. package/{service.d.ts → lib/service.d.ts} +0 -0
  106. package/{service.js → lib/service.js} +0 -0
  107. package/lib/service.js.map +1 -0
  108. package/{solana → lib/solana}/builtin/index.d.ts +0 -0
  109. package/{solana → lib/solana}/builtin/index.js +0 -0
  110. package/lib/solana/builtin/index.js.map +1 -0
  111. package/{solana → lib/solana}/builtin/spl-token-processor.d.ts +0 -0
  112. package/{solana → lib/solana}/builtin/spl-token-processor.js +0 -0
  113. package/lib/solana/builtin/spl-token-processor.js.map +1 -0
  114. package/{solana → lib/solana}/builtin/types.d.ts +0 -0
  115. package/{solana → lib/solana}/builtin/types.js +0 -0
  116. package/lib/solana/builtin/types.js.map +1 -0
  117. package/{solana → lib/solana}/builtin/wormhole-processor.d.ts +0 -0
  118. package/{solana → lib/solana}/builtin/wormhole-processor.js +0 -0
  119. package/lib/solana/builtin/wormhole-processor.js.map +1 -0
  120. package/{solana-processor.d.ts → lib/solana-processor.d.ts} +0 -0
  121. package/{solana-processor.js → lib/solana-processor.js} +0 -0
  122. package/lib/solana-processor.js.map +1 -0
  123. package/{target-ethers-sentio → lib/target-ethers-sentio}/codegen.d.ts +0 -0
  124. package/{target-ethers-sentio → lib/target-ethers-sentio}/codegen.js +0 -0
  125. package/{target-ethers-sentio → lib/target-ethers-sentio}/codegen.js.map +0 -0
  126. package/{target-ethers-sentio → lib/target-ethers-sentio}/index.d.ts +0 -0
  127. package/{target-ethers-sentio → lib/target-ethers-sentio}/index.js +0 -0
  128. package/{target-ethers-sentio → lib/target-ethers-sentio}/index.js.map +0 -0
  129. package/{test → lib/test}/codegen.test.d.ts +0 -0
  130. package/{test → lib/test}/codegen.test.js +4 -8
  131. package/lib/test/codegen.test.js.map +1 -0
  132. package/{test → lib/test}/erc20-template.d.ts +0 -0
  133. package/{test → lib/test}/erc20-template.js +0 -0
  134. package/lib/test/erc20-template.js.map +1 -0
  135. package/{test → lib/test}/erc20-template.test.d.ts +0 -0
  136. package/{test → lib/test}/erc20-template.test.js +0 -0
  137. package/{test → lib/test}/erc20-template.test.js.map +1 -1
  138. package/{test → lib/test}/erc20.d.ts +0 -0
  139. package/{test → lib/test}/erc20.js +0 -0
  140. package/lib/test/erc20.js.map +1 -0
  141. package/{test → lib/test}/erc20.test.d.ts +0 -0
  142. package/{test → lib/test}/erc20.test.js +0 -0
  143. package/{test → lib/test}/erc20.test.js.map +1 -1
  144. package/{test → lib/test}/generic-processor.test.d.ts +0 -0
  145. package/{test → lib/test}/generic-processor.test.js +11 -1
  146. package/lib/test/generic-processor.test.js.map +1 -0
  147. package/{test → lib/test}/index.d.ts +0 -0
  148. package/{test → lib/test}/index.js +0 -0
  149. package/{test → lib/test}/index.js.map +1 -1
  150. package/{test → lib/test}/metric-utils.d.ts +0 -0
  151. package/{test → lib/test}/metric-utils.js +0 -0
  152. package/lib/test/metric-utils.js.map +1 -0
  153. package/{test → lib/test}/mirrorworld.d.ts +0 -0
  154. package/{test → lib/test}/mirrorworld.js +0 -0
  155. package/{test → lib/test}/mirrorworld.js.map +1 -1
  156. package/{test → lib/test}/solana.test.d.ts +0 -0
  157. package/{test → lib/test}/solana.test.js +0 -0
  158. package/lib/test/solana.test.js.map +1 -0
  159. package/{test → lib/test}/test-processor-server.d.ts +0 -0
  160. package/{test → lib/test}/test-processor-server.js +0 -0
  161. package/lib/test/test-processor-server.js.map +1 -0
  162. package/{test → lib/test}/types/game_wallet.d.ts +0 -0
  163. package/{test → lib/test}/types/game_wallet.js +0 -0
  164. package/lib/test/types/game_wallet.js.map +1 -0
  165. package/{test → lib/test}/types/game_wallet_processor.d.ts +0 -0
  166. package/{test → lib/test}/types/game_wallet_processor.js +0 -0
  167. package/lib/test/types/game_wallet_processor.js.map +1 -0
  168. package/{test → lib/test}/wormhole-token-bridge.d.ts +0 -0
  169. package/{test → lib/test}/wormhole-token-bridge.js +0 -0
  170. package/lib/test/wormhole-token-bridge.js.map +1 -0
  171. package/{utils → lib/utils}/chainmap.d.ts +0 -0
  172. package/{utils → lib/utils}/chainmap.js +0 -0
  173. package/lib/utils/chainmap.js.map +1 -0
  174. package/{utils → lib/utils}/convert.d.ts +0 -0
  175. package/{utils → lib/utils}/convert.js +0 -0
  176. package/lib/utils/convert.js.map +1 -0
  177. package/{utils → lib/utils}/index.d.ts +0 -0
  178. package/{utils → lib/utils}/index.js +0 -0
  179. package/lib/utils/index.js.map +1 -0
  180. package/package.json +47 -6
  181. package/src/abis/erc20.json +198 -0
  182. package/src/base-processor-template.ts +92 -0
  183. package/src/base-processor.ts +128 -0
  184. package/src/bind-options.ts +41 -0
  185. package/src/binds.ts +73 -0
  186. package/src/builtin/erc20/index.ts +6 -0
  187. package/src/builtin/erc20/test-utils.ts +49 -0
  188. package/src/builtin/internal/Erc20.ts +356 -0
  189. package/src/builtin/internal/common.ts +46 -0
  190. package/src/builtin/internal/erc20_processor.ts +295 -0
  191. package/src/builtin/internal/factories/Erc20__factory.ts +216 -0
  192. package/src/builtin/internal/factories/index.ts +4 -0
  193. package/src/builtin/internal/index.ts +6 -0
  194. package/src/chain-config.ts +6 -0
  195. package/src/cli/build.ts +180 -0
  196. package/src/cli/cli.ts +217 -0
  197. package/src/cli/config.ts +43 -0
  198. package/src/cli/key.ts +43 -0
  199. package/src/cli/solana-code-gen.ts +16 -0
  200. package/src/cli/upload.ts +86 -0
  201. package/src/cli/webpack.config.js +42 -0
  202. package/src/context.ts +93 -0
  203. package/src/contract-namer.ts +17 -0
  204. package/src/error.ts +43 -0
  205. package/src/gen/builtin.ts +22 -0
  206. package/src/gen/google/protobuf/empty.ts +70 -0
  207. package/src/gen/processor/protos/processor.ts +3071 -0
  208. package/src/generic-processor.ts +38 -0
  209. package/src/index.ts +19 -0
  210. package/src/meter.ts +122 -0
  211. package/src/numberish.test.ts +82 -0
  212. package/src/numberish.ts +99 -0
  213. package/src/processor-runner.ts +75 -0
  214. package/src/processor-state.ts +24 -0
  215. package/src/promise-or-void.ts +1 -0
  216. package/src/provider.ts +74 -0
  217. package/src/service.ts +434 -0
  218. package/src/solana/builtin/index.ts +2 -0
  219. package/src/solana/builtin/spl-token-processor.ts +164 -0
  220. package/src/solana/builtin/types.ts +268 -0
  221. package/src/solana/builtin/wormhole-processor.ts +178 -0
  222. package/src/solana-processor.ts +105 -0
  223. package/src/target-ethers-sentio/codegen.ts +289 -0
  224. package/src/target-ethers-sentio/index.ts +50 -0
  225. package/src/target-ethers-sentio/tsconfig.json +9 -0
  226. package/src/test/abis/evm/anyswapRouter.json +490 -0
  227. package/src/test/abis/solana/mirrorworld.json +1392 -0
  228. package/src/test/codegen.test.ts +26 -0
  229. package/src/test/erc20-template.test.ts +39 -0
  230. package/src/test/erc20-template.ts +25 -0
  231. package/src/test/erc20.test.ts +92 -0
  232. package/src/test/erc20.ts +48 -0
  233. package/src/test/generic-processor.test.ts +72 -0
  234. package/src/test/index.ts +1 -0
  235. package/src/test/metric-utils.ts +49 -0
  236. package/src/test/mirrorworld.ts +40 -0
  237. package/src/test/sentio.yaml +4 -0
  238. package/src/test/solana.test.ts +93 -0
  239. package/src/test/test-processor-server.ts +210 -0
  240. package/src/test/types/game_wallet.ts +1392 -0
  241. package/src/test/types/game_wallet_processor.ts +113 -0
  242. package/src/test/wormhole-token-bridge.ts +21 -0
  243. package/src/types/global.d.ts +17 -0
  244. package/src/utils/chainmap.ts +95 -0
  245. package/src/utils/convert.ts +6 -0
  246. package/src/utils/index.ts +2 -0
  247. package/base-processor-template.js.map +0 -1
  248. package/base-processor.js.map +0 -1
  249. package/bind-options.js.map +0 -1
  250. package/binds.js.map +0 -1
  251. package/builtin/erc20/index.js.map +0 -1
  252. package/builtin/erc20/test-utils.js.map +0 -1
  253. package/builtin/internal/Erc20.js.map +0 -1
  254. package/builtin/internal/common.js.map +0 -1
  255. package/builtin/internal/erc20_processor.js.map +0 -1
  256. package/builtin/internal/factories/Erc20__factory.js.map +0 -1
  257. package/builtin/internal/index.js.map +0 -1
  258. package/chain-config.js.map +0 -1
  259. package/cli/build.js.map +0 -1
  260. package/cli/cli.js.map +0 -1
  261. package/cli/config.js.map +0 -1
  262. package/context.js.map +0 -1
  263. package/error.js.map +0 -1
  264. package/gen/builtin.js.map +0 -1
  265. package/gen/google/protobuf/empty.js.map +0 -1
  266. package/gen/processor/protos/processor.js.map +0 -1
  267. package/generic-processor.js.map +0 -1
  268. package/index.js.map +0 -1
  269. package/meter.js.map +0 -1
  270. package/numberish.js.map +0 -1
  271. package/processor-runner.js.map +0 -1
  272. package/processor-state.js.map +0 -1
  273. package/promise-or-void.js.map +0 -1
  274. package/provider.js.map +0 -1
  275. package/service.js.map +0 -1
  276. package/solana/builtin/index.js.map +0 -1
  277. package/solana/builtin/spl-token-processor.js.map +0 -1
  278. package/solana/builtin/types.js.map +0 -1
  279. package/solana/builtin/wormhole-processor.js.map +0 -1
  280. package/solana-processor.js.map +0 -1
  281. package/test/codegen.test.js.map +0 -1
  282. package/test/erc20-template.js.map +0 -1
  283. package/test/erc20.js.map +0 -1
  284. package/test/generic-processor.test.js.map +0 -1
  285. package/test/metric-utils.js.map +0 -1
  286. package/test/solana.test.js.map +0 -1
  287. package/test/test-processor-server.js.map +0 -1
  288. package/test/types/game_wallet.js.map +0 -1
  289. package/test/types/game_wallet_processor.js.map +0 -1
  290. package/test/wormhole-token-bridge.js.map +0 -1
  291. package/utils/chainmap.js.map +0 -1
  292. package/utils/convert.js.map +0 -1
  293. 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
+ ]