@sentio/sdk 2.5.1-rc.1 → 2.5.1-rc.2

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 (245) hide show
  1. package/lib/eth/codegen/event-handler.js.map +1 -1
  2. package/lib/eth/codegen/functions-handler.js +4 -9
  3. package/lib/eth/codegen/functions-handler.js.map +1 -1
  4. package/lib/eth/context.js.map +1 -1
  5. package/lib/eth/index.d.ts +0 -1
  6. package/lib/eth/index.js +0 -1
  7. package/lib/eth/index.js.map +1 -1
  8. package/lib/move/abstract-codegen.js +3 -9
  9. package/lib/move/abstract-codegen.js.map +1 -1
  10. package/lib/sui/sui-processor.js.map +1 -1
  11. package/lib/utils/dex-price.test.js.map +1 -1
  12. package/lib/utils/erc20.test.js.map +1 -1
  13. package/package.json +5 -8
  14. package/src/eth/codegen/event-handler.ts +1 -1
  15. package/src/eth/codegen/functions-handler.ts +4 -10
  16. package/src/eth/context.ts +0 -1
  17. package/src/eth/index.ts +0 -1
  18. package/src/move/abstract-codegen.ts +3 -10
  19. package/src/sui/sui-processor.ts +1 -1
  20. package/lib/aptos/tests/aptos.test.d.ts +0 -1
  21. package/lib/aptos/tests/aptos.test.js.map +0 -1
  22. package/lib/aptos/tests/souffl3.d.ts +0 -1
  23. package/lib/aptos/tests/souffl3.js +0 -43
  24. package/lib/aptos/tests/souffl3.js.map +0 -1
  25. package/lib/aptos/tests/types/index.d.ts +0 -3
  26. package/lib/aptos/tests/types/index.js +0 -7
  27. package/lib/aptos/tests/types/index.js.map +0 -1
  28. package/lib/aptos/tests/types/reserved.d.ts +0 -340
  29. package/lib/aptos/tests/types/reserved.js +0 -287
  30. package/lib/aptos/tests/types/reserved.js.map +0 -1
  31. package/lib/aptos/tests/types/soffl3.d.ts +0 -801
  32. package/lib/aptos/tests/types/soffl3.js +0 -514
  33. package/lib/aptos/tests/types/soffl3.js.map +0 -1
  34. package/lib/aptos/tests/types/souffle.d.ts +0 -335
  35. package/lib/aptos/tests/types/souffle.js +0 -281
  36. package/lib/aptos/tests/types/souffle.js.map +0 -1
  37. package/lib/eth/error.d.ts +0 -1
  38. package/lib/eth/error.js +0 -3
  39. package/lib/eth/error.js.map +0 -1
  40. package/lib/eth/tests/account.test.d.ts +0 -1
  41. package/lib/eth/tests/account.test.js.map +0 -1
  42. package/lib/eth/tests/codegen.test.d.ts +0 -1
  43. package/lib/eth/tests/codegen.test.js.map +0 -1
  44. package/lib/eth/tests/erc20-template.test.d.ts +0 -1
  45. package/lib/eth/tests/erc20-template.test.js.map +0 -1
  46. package/lib/eth/tests/erc20.d.ts +0 -1
  47. package/lib/eth/tests/erc20.js +0 -52
  48. package/lib/eth/tests/erc20.js.map +0 -1
  49. package/lib/eth/tests/erc20.test.d.ts +0 -1
  50. package/lib/eth/tests/erc20.test.js.map +0 -1
  51. package/lib/eth/tests/error-capture.test.d.ts +0 -1
  52. package/lib/eth/tests/error-capture.test.js.map +0 -1
  53. package/lib/eth/tests/logger.test.d.ts +0 -1
  54. package/lib/eth/tests/logger.test.js.map +0 -1
  55. package/lib/eth/tests/types/anyswaprouter.d.ts +0 -3
  56. package/lib/eth/tests/types/anyswaprouter.js +0 -7
  57. package/lib/eth/tests/types/anyswaprouter.js.map +0 -1
  58. package/lib/eth/tests/types/commitmentpool.d.ts +0 -3
  59. package/lib/eth/tests/types/commitmentpool.js +0 -7
  60. package/lib/eth/tests/types/commitmentpool.js.map +0 -1
  61. package/lib/eth/tests/types/index.d.ts +0 -12
  62. package/lib/eth/tests/types/index.js +0 -16
  63. package/lib/eth/tests/types/index.js.map +0 -1
  64. package/lib/eth/tests/types/internal/AnyswapRouter.d.ts +0 -122
  65. package/lib/eth/tests/types/internal/AnyswapRouter.js +0 -2
  66. package/lib/eth/tests/types/internal/AnyswapRouter.js.map +0 -1
  67. package/lib/eth/tests/types/internal/CommitmentPool.d.ts +0 -176
  68. package/lib/eth/tests/types/internal/CommitmentPool.js +0 -2
  69. package/lib/eth/tests/types/internal/CommitmentPool.js.map +0 -1
  70. package/lib/eth/tests/types/internal/MembershipStakerV3.d.ts +0 -81
  71. package/lib/eth/tests/types/internal/MembershipStakerV3.js +0 -2
  72. package/lib/eth/tests/types/internal/MembershipStakerV3.js.map +0 -1
  73. package/lib/eth/tests/types/internal/Pyth.d.ts +0 -204
  74. package/lib/eth/tests/types/internal/Pyth.js +0 -2
  75. package/lib/eth/tests/types/internal/Pyth.js.map +0 -1
  76. package/lib/eth/tests/types/internal/Seaport.d.ts +0 -350
  77. package/lib/eth/tests/types/internal/Seaport.js +0 -2
  78. package/lib/eth/tests/types/internal/Seaport.js.map +0 -1
  79. package/lib/eth/tests/types/internal/TokenExchange.d.ts +0 -128
  80. package/lib/eth/tests/types/internal/TokenExchange.js +0 -2
  81. package/lib/eth/tests/types/internal/TokenExchange.js.map +0 -1
  82. package/lib/eth/tests/types/internal/anyswaprouter-processor.d.ts +0 -463
  83. package/lib/eth/tests/types/internal/anyswaprouter-processor.js +0 -425
  84. package/lib/eth/tests/types/internal/anyswaprouter-processor.js.map +0 -1
  85. package/lib/eth/tests/types/internal/anyswaprouter-test-utils.d.ts +0 -9
  86. package/lib/eth/tests/types/internal/anyswaprouter-test-utils.js +0 -124
  87. package/lib/eth/tests/types/internal/anyswaprouter-test-utils.js.map +0 -1
  88. package/lib/eth/tests/types/internal/commitmentpool-processor.d.ts +0 -348
  89. package/lib/eth/tests/types/internal/commitmentpool-processor.js +0 -607
  90. package/lib/eth/tests/types/internal/commitmentpool-processor.js.map +0 -1
  91. package/lib/eth/tests/types/internal/commitmentpool-test-utils.d.ts +0 -9
  92. package/lib/eth/tests/types/internal/commitmentpool-test-utils.js +0 -87
  93. package/lib/eth/tests/types/internal/commitmentpool-test-utils.js.map +0 -1
  94. package/lib/eth/tests/types/internal/common.d.ts +0 -10
  95. package/lib/eth/tests/types/internal/common.js +0 -8
  96. package/lib/eth/tests/types/internal/common.js.map +0 -1
  97. package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.d.ts +0 -988
  98. package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.js +0 -1269
  99. package/lib/eth/tests/types/internal/factories/AnyswapRouter__factory.js.map +0 -1
  100. package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.d.ts +0 -792
  101. package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.js +0 -1040
  102. package/lib/eth/tests/types/internal/factories/CommitmentPool__factory.js.map +0 -1
  103. package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.d.ts +0 -549
  104. package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.js +0 -721
  105. package/lib/eth/tests/types/internal/factories/MembershipStakerV3__factory.js.map +0 -1
  106. package/lib/eth/tests/types/internal/factories/Pyth__factory.d.ts +0 -1130
  107. package/lib/eth/tests/types/internal/factories/Pyth__factory.js +0 -1486
  108. package/lib/eth/tests/types/internal/factories/Pyth__factory.js.map +0 -1
  109. package/lib/eth/tests/types/internal/factories/Seaport__factory.d.ts +0 -2018
  110. package/lib/eth/tests/types/internal/factories/Seaport__factory.js +0 -2610
  111. package/lib/eth/tests/types/internal/factories/Seaport__factory.js.map +0 -1
  112. package/lib/eth/tests/types/internal/factories/TokenExchange__factory.d.ts +0 -651
  113. package/lib/eth/tests/types/internal/factories/TokenExchange__factory.js +0 -853
  114. package/lib/eth/tests/types/internal/factories/TokenExchange__factory.js.map +0 -1
  115. package/lib/eth/tests/types/internal/factories/index.d.ts +0 -6
  116. package/lib/eth/tests/types/internal/factories/index.js +0 -10
  117. package/lib/eth/tests/types/internal/factories/index.js.map +0 -1
  118. package/lib/eth/tests/types/internal/index.d.ts +0 -13
  119. package/lib/eth/tests/types/internal/index.js +0 -8
  120. package/lib/eth/tests/types/internal/index.js.map +0 -1
  121. package/lib/eth/tests/types/internal/membershipstakerv3-processor.d.ts +0 -287
  122. package/lib/eth/tests/types/internal/membershipstakerv3-processor.js +0 -596
  123. package/lib/eth/tests/types/internal/membershipstakerv3-processor.js.map +0 -1
  124. package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.d.ts +0 -11
  125. package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.js +0 -109
  126. package/lib/eth/tests/types/internal/membershipstakerv3-test-utils.js.map +0 -1
  127. package/lib/eth/tests/types/internal/pyth-processor.d.ts +0 -422
  128. package/lib/eth/tests/types/internal/pyth-processor.js +0 -890
  129. package/lib/eth/tests/types/internal/pyth-processor.js.map +0 -1
  130. package/lib/eth/tests/types/internal/pyth-test-utils.d.ts +0 -13
  131. package/lib/eth/tests/types/internal/pyth-test-utils.js +0 -131
  132. package/lib/eth/tests/types/internal/pyth-test-utils.js.map +0 -1
  133. package/lib/eth/tests/types/internal/seaport-processor.d.ts +0 -211
  134. package/lib/eth/tests/types/internal/seaport-processor.js +0 -237
  135. package/lib/eth/tests/types/internal/seaport-processor.js.map +0 -1
  136. package/lib/eth/tests/types/internal/seaport-test-utils.d.ts +0 -6
  137. package/lib/eth/tests/types/internal/seaport-test-utils.js +0 -61
  138. package/lib/eth/tests/types/internal/seaport-test-utils.js.map +0 -1
  139. package/lib/eth/tests/types/internal/tokenexchange-processor.d.ts +0 -334
  140. package/lib/eth/tests/types/internal/tokenexchange-processor.js +0 -667
  141. package/lib/eth/tests/types/internal/tokenexchange-processor.js.map +0 -1
  142. package/lib/eth/tests/types/internal/tokenexchange-test-utils.d.ts +0 -13
  143. package/lib/eth/tests/types/internal/tokenexchange-test-utils.js +0 -149
  144. package/lib/eth/tests/types/internal/tokenexchange-test-utils.js.map +0 -1
  145. package/lib/eth/tests/types/membershipstakerv3.d.ts +0 -3
  146. package/lib/eth/tests/types/membershipstakerv3.js +0 -7
  147. package/lib/eth/tests/types/membershipstakerv3.js.map +0 -1
  148. package/lib/eth/tests/types/pyth.d.ts +0 -3
  149. package/lib/eth/tests/types/pyth.js +0 -7
  150. package/lib/eth/tests/types/pyth.js.map +0 -1
  151. package/lib/eth/tests/types/seaport.d.ts +0 -3
  152. package/lib/eth/tests/types/seaport.js +0 -7
  153. package/lib/eth/tests/types/seaport.js.map +0 -1
  154. package/lib/eth/tests/types/tokenexchange.d.ts +0 -3
  155. package/lib/eth/tests/types/tokenexchange.js +0 -7
  156. package/lib/eth/tests/types/tokenexchange.js.map +0 -1
  157. package/lib/solana/tests/solana.test.d.ts +0 -1
  158. package/lib/solana/tests/solana.test.js.map +0 -1
  159. package/lib/solana/tests/types/basic_1.d.ts +0 -26
  160. package/lib/solana/tests/types/basic_1.js +0 -63
  161. package/lib/solana/tests/types/basic_1.js.map +0 -1
  162. package/lib/solana/tests/types/basic_1_processor.d.ts +0 -21
  163. package/lib/solana/tests/types/basic_1_processor.js +0 -35
  164. package/lib/solana/tests/types/basic_1_processor.js.map +0 -1
  165. package/lib/solana/tests/types/token_bridge.d.ts +0 -29
  166. package/lib/solana/tests/types/token_bridge.js +0 -938
  167. package/lib/solana/tests/types/token_bridge.js.map +0 -1
  168. package/lib/solana/tests/types/token_bridge_processor.d.ts +0 -212
  169. package/lib/solana/tests/types/token_bridge_processor.js +0 -134
  170. package/lib/solana/tests/types/token_bridge_processor.js.map +0 -1
  171. package/lib/solana/tests/wormhole-token-bridge.d.ts +0 -15
  172. package/lib/solana/tests/wormhole-token-bridge.js +0 -79
  173. package/lib/solana/tests/wormhole-token-bridge.js.map +0 -1
  174. package/lib/sui/tests/sui.test.d.ts +0 -1
  175. package/lib/sui/tests/sui.test.js.map +0 -1
  176. package/lib/sui/tests/types/index.d.ts +0 -1
  177. package/lib/sui/tests/types/index.js +0 -5
  178. package/lib/sui/tests/types/index.js.map +0 -1
  179. package/lib/sui/tests/types/testnet/index.d.ts +0 -1
  180. package/lib/sui/tests/types/testnet/index.js +0 -5
  181. package/lib/sui/tests/types/testnet/index.js.map +0 -1
  182. package/lib/sui/tests/types/testnet/swap.d.ts +0 -249
  183. package/lib/sui/tests/types/testnet/swap.js +0 -310
  184. package/lib/sui/tests/types/testnet/swap.js.map +0 -1
  185. package/src/aptos/tests/abis/reserved.json +0 -402
  186. package/src/aptos/tests/abis/soffl3.json +0 -1411
  187. package/src/aptos/tests/abis/souffle.json +0 -389
  188. package/src/aptos/tests/souffl3.ts +0 -56
  189. package/src/aptos/tests/types/index.ts +0 -6
  190. package/src/aptos/tests/types/reserved.ts +0 -766
  191. package/src/aptos/tests/types/soffl3.ts +0 -1528
  192. package/src/aptos/tests/types/souffle.ts +0 -765
  193. package/src/eth/error.ts +0 -4
  194. package/src/eth/tests/abis/eth/CommitmentPool.json +0 -1034
  195. package/src/eth/tests/abis/eth/MembershipStakerV3.json +0 -706
  196. package/src/eth/tests/abis/eth/Pyth.json +0 -1471
  197. package/src/eth/tests/abis/eth/Seaport.json +0 -2595
  198. package/src/eth/tests/abis/eth/TokenExchange.json +0 -838
  199. package/src/eth/tests/abis/eth/anyswapRouter.json +0 -490
  200. package/src/eth/tests/erc20.ts +0 -63
  201. package/src/eth/tests/types/anyswaprouter.ts +0 -7
  202. package/src/eth/tests/types/commitmentpool.ts +0 -7
  203. package/src/eth/tests/types/index.ts +0 -33
  204. package/src/eth/tests/types/internal/AnyswapRouter.ts +0 -122
  205. package/src/eth/tests/types/internal/CommitmentPool.ts +0 -208
  206. package/src/eth/tests/types/internal/MembershipStakerV3.ts +0 -108
  207. package/src/eth/tests/types/internal/Pyth.ts +0 -246
  208. package/src/eth/tests/types/internal/Seaport.ts +0 -389
  209. package/src/eth/tests/types/internal/TokenExchange.ts +0 -142
  210. package/src/eth/tests/types/internal/anyswaprouter-processor.ts +0 -1396
  211. package/src/eth/tests/types/internal/anyswaprouter-test-utils.ts +0 -187
  212. package/src/eth/tests/types/internal/commitmentpool-processor.ts +0 -1575
  213. package/src/eth/tests/types/internal/commitmentpool-test-utils.ts +0 -150
  214. package/src/eth/tests/types/internal/common.ts +0 -23
  215. package/src/eth/tests/types/internal/factories/AnyswapRouter__factory.ts +0 -1278
  216. package/src/eth/tests/types/internal/factories/CommitmentPool__factory.ts +0 -1049
  217. package/src/eth/tests/types/internal/factories/MembershipStakerV3__factory.ts +0 -730
  218. package/src/eth/tests/types/internal/factories/Pyth__factory.ts +0 -1492
  219. package/src/eth/tests/types/internal/factories/Seaport__factory.ts +0 -2616
  220. package/src/eth/tests/types/internal/factories/TokenExchange__factory.ts +0 -862
  221. package/src/eth/tests/types/internal/factories/index.ts +0 -9
  222. package/src/eth/tests/types/internal/index.ts +0 -16
  223. package/src/eth/tests/types/internal/membershipstakerv3-processor.ts +0 -1399
  224. package/src/eth/tests/types/internal/membershipstakerv3-test-utils.ts +0 -188
  225. package/src/eth/tests/types/internal/pyth-processor.ts +0 -2043
  226. package/src/eth/tests/types/internal/pyth-test-utils.ts +0 -226
  227. package/src/eth/tests/types/internal/seaport-processor.ts +0 -678
  228. package/src/eth/tests/types/internal/seaport-test-utils.ts +0 -100
  229. package/src/eth/tests/types/internal/tokenexchange-processor.ts +0 -1570
  230. package/src/eth/tests/types/internal/tokenexchange-test-utils.ts +0 -244
  231. package/src/eth/tests/types/membershipstakerv3.ts +0 -7
  232. package/src/eth/tests/types/pyth.ts +0 -7
  233. package/src/eth/tests/types/seaport.ts +0 -7
  234. package/src/eth/tests/types/tokenexchange.ts +0 -7
  235. package/src/solana/tests/abis/basic_1.json +0 -62
  236. package/src/solana/tests/abis/token_bridge.json +0 -937
  237. package/src/solana/tests/types/basic_1.ts +0 -62
  238. package/src/solana/tests/types/basic_1_processor.ts +0 -42
  239. package/src/solana/tests/types/token_bridge.ts +0 -937
  240. package/src/solana/tests/types/token_bridge_processor.ts +0 -150
  241. package/src/solana/tests/wormhole-token-bridge.ts +0 -96
  242. package/src/sui/tests/abis/testnet/swap.json +0 -1752
  243. package/src/sui/tests/types/index.ts +0 -3
  244. package/src/sui/tests/types/testnet/index.ts +0 -4
  245. package/src/sui/tests/types/testnet/swap.ts +0 -698
@@ -1,490 +0,0 @@
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
- ]
@@ -1,63 +0,0 @@
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
- // })
@@ -1,7 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export * from "./internal/anyswaprouter-processor.js";
6
- export * from "./internal/AnyswapRouter.js";
7
- export * from "./internal/anyswaprouter-test-utils.js";
@@ -1,7 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export * from "./internal/commitmentpool-processor.js";
6
- export * from "./internal/CommitmentPool.js";
7
- export * from "./internal/commitmentpool-test-utils.js";
@@ -1,33 +0,0 @@
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";