@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,1269 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- // @ts-nocheck
5
- import { Contract, Interface } from "ethers";
6
- const _abi = [
7
- {
8
- inputs: [
9
- {
10
- internalType: "address",
11
- name: "_factory",
12
- type: "address",
13
- },
14
- {
15
- internalType: "address",
16
- name: "_wNATIVE",
17
- type: "address",
18
- },
19
- {
20
- internalType: "address",
21
- name: "_mpc",
22
- type: "address",
23
- },
24
- ],
25
- stateMutability: "nonpayable",
26
- type: "constructor",
27
- },
28
- {
29
- anonymous: false,
30
- inputs: [
31
- {
32
- indexed: true,
33
- internalType: "bytes32",
34
- name: "txhash",
35
- type: "bytes32",
36
- },
37
- {
38
- indexed: true,
39
- internalType: "address",
40
- name: "token",
41
- type: "address",
42
- },
43
- {
44
- indexed: true,
45
- internalType: "address",
46
- name: "to",
47
- type: "address",
48
- },
49
- {
50
- indexed: false,
51
- internalType: "uint256",
52
- name: "amount",
53
- type: "uint256",
54
- },
55
- {
56
- indexed: false,
57
- internalType: "uint256",
58
- name: "fromChainID",
59
- type: "uint256",
60
- },
61
- {
62
- indexed: false,
63
- internalType: "uint256",
64
- name: "toChainID",
65
- type: "uint256",
66
- },
67
- ],
68
- name: "LogAnySwapIn",
69
- type: "event",
70
- },
71
- {
72
- anonymous: false,
73
- inputs: [
74
- {
75
- indexed: true,
76
- internalType: "address",
77
- name: "token",
78
- type: "address",
79
- },
80
- {
81
- indexed: true,
82
- internalType: "address",
83
- name: "from",
84
- type: "address",
85
- },
86
- {
87
- indexed: true,
88
- internalType: "address",
89
- name: "to",
90
- type: "address",
91
- },
92
- {
93
- indexed: false,
94
- internalType: "uint256",
95
- name: "amount",
96
- type: "uint256",
97
- },
98
- {
99
- indexed: false,
100
- internalType: "uint256",
101
- name: "fromChainID",
102
- type: "uint256",
103
- },
104
- {
105
- indexed: false,
106
- internalType: "uint256",
107
- name: "toChainID",
108
- type: "uint256",
109
- },
110
- ],
111
- name: "LogAnySwapOut",
112
- type: "event",
113
- },
114
- {
115
- anonymous: false,
116
- inputs: [
117
- {
118
- indexed: true,
119
- internalType: "address",
120
- name: "token",
121
- type: "address",
122
- },
123
- {
124
- indexed: true,
125
- internalType: "address",
126
- name: "from",
127
- type: "address",
128
- },
129
- {
130
- indexed: false,
131
- internalType: "string",
132
- name: "to",
133
- type: "string",
134
- },
135
- {
136
- indexed: false,
137
- internalType: "uint256",
138
- name: "amount",
139
- type: "uint256",
140
- },
141
- {
142
- indexed: false,
143
- internalType: "uint256",
144
- name: "fromChainID",
145
- type: "uint256",
146
- },
147
- {
148
- indexed: false,
149
- internalType: "uint256",
150
- name: "toChainID",
151
- type: "uint256",
152
- },
153
- ],
154
- name: "LogAnySwapOut",
155
- type: "event",
156
- },
157
- {
158
- anonymous: false,
159
- inputs: [
160
- {
161
- indexed: false,
162
- internalType: "address[]",
163
- name: "path",
164
- type: "address[]",
165
- },
166
- {
167
- indexed: true,
168
- internalType: "address",
169
- name: "from",
170
- type: "address",
171
- },
172
- {
173
- indexed: true,
174
- internalType: "address",
175
- name: "to",
176
- type: "address",
177
- },
178
- {
179
- indexed: false,
180
- internalType: "uint256",
181
- name: "amountIn",
182
- type: "uint256",
183
- },
184
- {
185
- indexed: false,
186
- internalType: "uint256",
187
- name: "amountOutMin",
188
- type: "uint256",
189
- },
190
- {
191
- indexed: false,
192
- internalType: "uint256",
193
- name: "fromChainID",
194
- type: "uint256",
195
- },
196
- {
197
- indexed: false,
198
- internalType: "uint256",
199
- name: "toChainID",
200
- type: "uint256",
201
- },
202
- ],
203
- name: "LogAnySwapTradeTokensForNative",
204
- type: "event",
205
- },
206
- {
207
- anonymous: false,
208
- inputs: [
209
- {
210
- indexed: false,
211
- internalType: "address[]",
212
- name: "path",
213
- type: "address[]",
214
- },
215
- {
216
- indexed: true,
217
- internalType: "address",
218
- name: "from",
219
- type: "address",
220
- },
221
- {
222
- indexed: true,
223
- internalType: "address",
224
- name: "to",
225
- type: "address",
226
- },
227
- {
228
- indexed: false,
229
- internalType: "uint256",
230
- name: "amountIn",
231
- type: "uint256",
232
- },
233
- {
234
- indexed: false,
235
- internalType: "uint256",
236
- name: "amountOutMin",
237
- type: "uint256",
238
- },
239
- {
240
- indexed: false,
241
- internalType: "uint256",
242
- name: "fromChainID",
243
- type: "uint256",
244
- },
245
- {
246
- indexed: false,
247
- internalType: "uint256",
248
- name: "toChainID",
249
- type: "uint256",
250
- },
251
- ],
252
- name: "LogAnySwapTradeTokensForTokens",
253
- type: "event",
254
- },
255
- {
256
- anonymous: false,
257
- inputs: [
258
- {
259
- indexed: true,
260
- internalType: "address",
261
- name: "oldMPC",
262
- type: "address",
263
- },
264
- {
265
- indexed: true,
266
- internalType: "address",
267
- name: "newMPC",
268
- type: "address",
269
- },
270
- {
271
- indexed: true,
272
- internalType: "uint256",
273
- name: "effectiveTime",
274
- type: "uint256",
275
- },
276
- {
277
- indexed: false,
278
- internalType: "uint256",
279
- name: "chainID",
280
- type: "uint256",
281
- },
282
- ],
283
- name: "LogChangeMPC",
284
- type: "event",
285
- },
286
- {
287
- anonymous: false,
288
- inputs: [
289
- {
290
- indexed: true,
291
- internalType: "address",
292
- name: "oldRouter",
293
- type: "address",
294
- },
295
- {
296
- indexed: true,
297
- internalType: "address",
298
- name: "newRouter",
299
- type: "address",
300
- },
301
- {
302
- indexed: false,
303
- internalType: "uint256",
304
- name: "chainID",
305
- type: "uint256",
306
- },
307
- ],
308
- name: "LogChangeRouter",
309
- type: "event",
310
- },
311
- {
312
- inputs: [
313
- {
314
- internalType: "address",
315
- name: "token",
316
- type: "address",
317
- },
318
- {
319
- internalType: "uint256",
320
- name: "amount",
321
- type: "uint256",
322
- },
323
- ],
324
- name: "anySwapFeeTo",
325
- outputs: [],
326
- stateMutability: "nonpayable",
327
- type: "function",
328
- },
329
- {
330
- inputs: [
331
- {
332
- internalType: "bytes32[]",
333
- name: "txs",
334
- type: "bytes32[]",
335
- },
336
- {
337
- internalType: "address[]",
338
- name: "tokens",
339
- type: "address[]",
340
- },
341
- {
342
- internalType: "address[]",
343
- name: "to",
344
- type: "address[]",
345
- },
346
- {
347
- internalType: "uint256[]",
348
- name: "amounts",
349
- type: "uint256[]",
350
- },
351
- {
352
- internalType: "uint256[]",
353
- name: "fromChainIDs",
354
- type: "uint256[]",
355
- },
356
- ],
357
- name: "anySwapIn",
358
- outputs: [],
359
- stateMutability: "nonpayable",
360
- type: "function",
361
- },
362
- {
363
- inputs: [
364
- {
365
- internalType: "bytes32",
366
- name: "txs",
367
- type: "bytes32",
368
- },
369
- {
370
- internalType: "address",
371
- name: "token",
372
- type: "address",
373
- },
374
- {
375
- internalType: "address",
376
- name: "to",
377
- type: "address",
378
- },
379
- {
380
- internalType: "uint256",
381
- name: "amount",
382
- type: "uint256",
383
- },
384
- {
385
- internalType: "uint256",
386
- name: "fromChainID",
387
- type: "uint256",
388
- },
389
- ],
390
- name: "anySwapIn",
391
- outputs: [],
392
- stateMutability: "nonpayable",
393
- type: "function",
394
- },
395
- {
396
- inputs: [
397
- {
398
- internalType: "bytes32",
399
- name: "txs",
400
- type: "bytes32",
401
- },
402
- {
403
- internalType: "address",
404
- name: "token",
405
- type: "address",
406
- },
407
- {
408
- internalType: "address",
409
- name: "to",
410
- type: "address",
411
- },
412
- {
413
- internalType: "uint256",
414
- name: "amount",
415
- type: "uint256",
416
- },
417
- {
418
- internalType: "uint256",
419
- name: "fromChainID",
420
- type: "uint256",
421
- },
422
- ],
423
- name: "anySwapInAuto",
424
- outputs: [],
425
- stateMutability: "nonpayable",
426
- type: "function",
427
- },
428
- {
429
- inputs: [
430
- {
431
- internalType: "bytes32",
432
- name: "txs",
433
- type: "bytes32",
434
- },
435
- {
436
- internalType: "uint256",
437
- name: "amountIn",
438
- type: "uint256",
439
- },
440
- {
441
- internalType: "uint256",
442
- name: "amountOutMin",
443
- type: "uint256",
444
- },
445
- {
446
- internalType: "address[]",
447
- name: "path",
448
- type: "address[]",
449
- },
450
- {
451
- internalType: "address",
452
- name: "to",
453
- type: "address",
454
- },
455
- {
456
- internalType: "uint256",
457
- name: "deadline",
458
- type: "uint256",
459
- },
460
- {
461
- internalType: "uint256",
462
- name: "fromChainID",
463
- type: "uint256",
464
- },
465
- ],
466
- name: "anySwapInExactTokensForNative",
467
- outputs: [
468
- {
469
- internalType: "uint256[]",
470
- name: "amounts",
471
- type: "uint256[]",
472
- },
473
- ],
474
- stateMutability: "nonpayable",
475
- type: "function",
476
- },
477
- {
478
- inputs: [
479
- {
480
- internalType: "bytes32",
481
- name: "txs",
482
- type: "bytes32",
483
- },
484
- {
485
- internalType: "uint256",
486
- name: "amountIn",
487
- type: "uint256",
488
- },
489
- {
490
- internalType: "uint256",
491
- name: "amountOutMin",
492
- type: "uint256",
493
- },
494
- {
495
- internalType: "address[]",
496
- name: "path",
497
- type: "address[]",
498
- },
499
- {
500
- internalType: "address",
501
- name: "to",
502
- type: "address",
503
- },
504
- {
505
- internalType: "uint256",
506
- name: "deadline",
507
- type: "uint256",
508
- },
509
- {
510
- internalType: "uint256",
511
- name: "fromChainID",
512
- type: "uint256",
513
- },
514
- ],
515
- name: "anySwapInExactTokensForTokens",
516
- outputs: [
517
- {
518
- internalType: "uint256[]",
519
- name: "amounts",
520
- type: "uint256[]",
521
- },
522
- ],
523
- stateMutability: "nonpayable",
524
- type: "function",
525
- },
526
- {
527
- inputs: [
528
- {
529
- internalType: "bytes32",
530
- name: "txs",
531
- type: "bytes32",
532
- },
533
- {
534
- internalType: "address",
535
- name: "token",
536
- type: "address",
537
- },
538
- {
539
- internalType: "address",
540
- name: "to",
541
- type: "address",
542
- },
543
- {
544
- internalType: "uint256",
545
- name: "amount",
546
- type: "uint256",
547
- },
548
- {
549
- internalType: "uint256",
550
- name: "fromChainID",
551
- type: "uint256",
552
- },
553
- ],
554
- name: "anySwapInUnderlying",
555
- outputs: [],
556
- stateMutability: "nonpayable",
557
- type: "function",
558
- },
559
- {
560
- inputs: [
561
- {
562
- internalType: "address",
563
- name: "token",
564
- type: "address",
565
- },
566
- {
567
- internalType: "address",
568
- name: "to",
569
- type: "address",
570
- },
571
- {
572
- internalType: "uint256",
573
- name: "amount",
574
- type: "uint256",
575
- },
576
- {
577
- internalType: "uint256",
578
- name: "toChainID",
579
- type: "uint256",
580
- },
581
- ],
582
- name: "anySwapOut",
583
- outputs: [],
584
- stateMutability: "nonpayable",
585
- type: "function",
586
- },
587
- {
588
- inputs: [
589
- {
590
- internalType: "address",
591
- name: "token",
592
- type: "address",
593
- },
594
- {
595
- internalType: "string",
596
- name: "to",
597
- type: "string",
598
- },
599
- {
600
- internalType: "uint256",
601
- name: "amount",
602
- type: "uint256",
603
- },
604
- {
605
- internalType: "uint256",
606
- name: "toChainID",
607
- type: "uint256",
608
- },
609
- ],
610
- name: "anySwapOut",
611
- outputs: [],
612
- stateMutability: "nonpayable",
613
- type: "function",
614
- },
615
- {
616
- inputs: [
617
- {
618
- internalType: "address[]",
619
- name: "tokens",
620
- type: "address[]",
621
- },
622
- {
623
- internalType: "address[]",
624
- name: "to",
625
- type: "address[]",
626
- },
627
- {
628
- internalType: "uint256[]",
629
- name: "amounts",
630
- type: "uint256[]",
631
- },
632
- {
633
- internalType: "uint256[]",
634
- name: "toChainIDs",
635
- type: "uint256[]",
636
- },
637
- ],
638
- name: "anySwapOut",
639
- outputs: [],
640
- stateMutability: "nonpayable",
641
- type: "function",
642
- },
643
- {
644
- inputs: [
645
- {
646
- internalType: "uint256",
647
- name: "amountIn",
648
- type: "uint256",
649
- },
650
- {
651
- internalType: "uint256",
652
- name: "amountOutMin",
653
- type: "uint256",
654
- },
655
- {
656
- internalType: "address[]",
657
- name: "path",
658
- type: "address[]",
659
- },
660
- {
661
- internalType: "address",
662
- name: "to",
663
- type: "address",
664
- },
665
- {
666
- internalType: "uint256",
667
- name: "deadline",
668
- type: "uint256",
669
- },
670
- {
671
- internalType: "uint256",
672
- name: "toChainID",
673
- type: "uint256",
674
- },
675
- ],
676
- name: "anySwapOutExactTokensForNative",
677
- outputs: [],
678
- stateMutability: "nonpayable",
679
- type: "function",
680
- },
681
- {
682
- inputs: [
683
- {
684
- internalType: "uint256",
685
- name: "amountIn",
686
- type: "uint256",
687
- },
688
- {
689
- internalType: "uint256",
690
- name: "amountOutMin",
691
- type: "uint256",
692
- },
693
- {
694
- internalType: "address[]",
695
- name: "path",
696
- type: "address[]",
697
- },
698
- {
699
- internalType: "address",
700
- name: "to",
701
- type: "address",
702
- },
703
- {
704
- internalType: "uint256",
705
- name: "deadline",
706
- type: "uint256",
707
- },
708
- {
709
- internalType: "uint256",
710
- name: "toChainID",
711
- type: "uint256",
712
- },
713
- ],
714
- name: "anySwapOutExactTokensForNativeUnderlying",
715
- outputs: [],
716
- stateMutability: "nonpayable",
717
- type: "function",
718
- },
719
- {
720
- inputs: [
721
- {
722
- internalType: "uint256",
723
- name: "amountIn",
724
- type: "uint256",
725
- },
726
- {
727
- internalType: "uint256",
728
- name: "amountOutMin",
729
- type: "uint256",
730
- },
731
- {
732
- internalType: "address[]",
733
- name: "path",
734
- type: "address[]",
735
- },
736
- {
737
- internalType: "address",
738
- name: "to",
739
- type: "address",
740
- },
741
- {
742
- internalType: "uint256",
743
- name: "deadline",
744
- type: "uint256",
745
- },
746
- {
747
- internalType: "uint256",
748
- name: "toChainID",
749
- type: "uint256",
750
- },
751
- ],
752
- name: "anySwapOutExactTokensForTokens",
753
- outputs: [],
754
- stateMutability: "nonpayable",
755
- type: "function",
756
- },
757
- {
758
- inputs: [
759
- {
760
- internalType: "uint256",
761
- name: "amountIn",
762
- type: "uint256",
763
- },
764
- {
765
- internalType: "uint256",
766
- name: "amountOutMin",
767
- type: "uint256",
768
- },
769
- {
770
- internalType: "address[]",
771
- name: "path",
772
- type: "address[]",
773
- },
774
- {
775
- internalType: "address",
776
- name: "to",
777
- type: "address",
778
- },
779
- {
780
- internalType: "uint256",
781
- name: "deadline",
782
- type: "uint256",
783
- },
784
- {
785
- internalType: "uint256",
786
- name: "toChainID",
787
- type: "uint256",
788
- },
789
- ],
790
- name: "anySwapOutExactTokensForTokensUnderlying",
791
- outputs: [],
792
- stateMutability: "nonpayable",
793
- type: "function",
794
- },
795
- {
796
- inputs: [
797
- {
798
- internalType: "address",
799
- name: "token",
800
- type: "address",
801
- },
802
- {
803
- internalType: "string",
804
- name: "to",
805
- type: "string",
806
- },
807
- {
808
- internalType: "uint256",
809
- name: "toChainID",
810
- type: "uint256",
811
- },
812
- ],
813
- name: "anySwapOutNative",
814
- outputs: [],
815
- stateMutability: "payable",
816
- type: "function",
817
- },
818
- {
819
- inputs: [
820
- {
821
- internalType: "address",
822
- name: "token",
823
- type: "address",
824
- },
825
- {
826
- internalType: "address",
827
- name: "to",
828
- type: "address",
829
- },
830
- {
831
- internalType: "uint256",
832
- name: "toChainID",
833
- type: "uint256",
834
- },
835
- ],
836
- name: "anySwapOutNative",
837
- outputs: [],
838
- stateMutability: "payable",
839
- type: "function",
840
- },
841
- {
842
- inputs: [
843
- {
844
- internalType: "address",
845
- name: "token",
846
- type: "address",
847
- },
848
- {
849
- internalType: "string",
850
- name: "to",
851
- type: "string",
852
- },
853
- {
854
- internalType: "uint256",
855
- name: "amount",
856
- type: "uint256",
857
- },
858
- {
859
- internalType: "uint256",
860
- name: "toChainID",
861
- type: "uint256",
862
- },
863
- ],
864
- name: "anySwapOutUnderlying",
865
- outputs: [],
866
- stateMutability: "nonpayable",
867
- type: "function",
868
- },
869
- {
870
- inputs: [
871
- {
872
- internalType: "address",
873
- name: "token",
874
- type: "address",
875
- },
876
- {
877
- internalType: "address",
878
- name: "to",
879
- type: "address",
880
- },
881
- {
882
- internalType: "uint256",
883
- name: "amount",
884
- type: "uint256",
885
- },
886
- {
887
- internalType: "uint256",
888
- name: "toChainID",
889
- type: "uint256",
890
- },
891
- ],
892
- name: "anySwapOutUnderlying",
893
- outputs: [],
894
- stateMutability: "nonpayable",
895
- type: "function",
896
- },
897
- {
898
- inputs: [
899
- {
900
- internalType: "address",
901
- name: "token",
902
- type: "address",
903
- },
904
- ],
905
- name: "applyMinter",
906
- outputs: [],
907
- stateMutability: "nonpayable",
908
- type: "function",
909
- },
910
- {
911
- inputs: [],
912
- name: "cID",
913
- outputs: [
914
- {
915
- internalType: "uint256",
916
- name: "id",
917
- type: "uint256",
918
- },
919
- ],
920
- stateMutability: "view",
921
- type: "function",
922
- },
923
- {
924
- inputs: [
925
- {
926
- internalType: "address",
927
- name: "newMPC",
928
- type: "address",
929
- },
930
- ],
931
- name: "changeMPC",
932
- outputs: [
933
- {
934
- internalType: "bool",
935
- name: "",
936
- type: "bool",
937
- },
938
- ],
939
- stateMutability: "nonpayable",
940
- type: "function",
941
- },
942
- {
943
- inputs: [
944
- {
945
- internalType: "address",
946
- name: "token",
947
- type: "address",
948
- },
949
- {
950
- internalType: "address",
951
- name: "newVault",
952
- type: "address",
953
- },
954
- ],
955
- name: "changeVault",
956
- outputs: [
957
- {
958
- internalType: "bool",
959
- name: "",
960
- type: "bool",
961
- },
962
- ],
963
- stateMutability: "nonpayable",
964
- type: "function",
965
- },
966
- {
967
- inputs: [
968
- {
969
- internalType: "address",
970
- name: "token",
971
- type: "address",
972
- },
973
- {
974
- internalType: "address",
975
- name: "to",
976
- type: "address",
977
- },
978
- ],
979
- name: "depositNative",
980
- outputs: [
981
- {
982
- internalType: "uint256",
983
- name: "",
984
- type: "uint256",
985
- },
986
- ],
987
- stateMutability: "payable",
988
- type: "function",
989
- },
990
- {
991
- inputs: [],
992
- name: "enableSwapTrade",
993
- outputs: [
994
- {
995
- internalType: "bool",
996
- name: "",
997
- type: "bool",
998
- },
999
- ],
1000
- stateMutability: "view",
1001
- type: "function",
1002
- },
1003
- {
1004
- inputs: [],
1005
- name: "factory",
1006
- outputs: [
1007
- {
1008
- internalType: "address",
1009
- name: "",
1010
- type: "address",
1011
- },
1012
- ],
1013
- stateMutability: "view",
1014
- type: "function",
1015
- },
1016
- {
1017
- inputs: [
1018
- {
1019
- internalType: "uint256",
1020
- name: "amountOut",
1021
- type: "uint256",
1022
- },
1023
- {
1024
- internalType: "uint256",
1025
- name: "reserveIn",
1026
- type: "uint256",
1027
- },
1028
- {
1029
- internalType: "uint256",
1030
- name: "reserveOut",
1031
- type: "uint256",
1032
- },
1033
- ],
1034
- name: "getAmountIn",
1035
- outputs: [
1036
- {
1037
- internalType: "uint256",
1038
- name: "amountIn",
1039
- type: "uint256",
1040
- },
1041
- ],
1042
- stateMutability: "pure",
1043
- type: "function",
1044
- },
1045
- {
1046
- inputs: [
1047
- {
1048
- internalType: "uint256",
1049
- name: "amountIn",
1050
- type: "uint256",
1051
- },
1052
- {
1053
- internalType: "uint256",
1054
- name: "reserveIn",
1055
- type: "uint256",
1056
- },
1057
- {
1058
- internalType: "uint256",
1059
- name: "reserveOut",
1060
- type: "uint256",
1061
- },
1062
- ],
1063
- name: "getAmountOut",
1064
- outputs: [
1065
- {
1066
- internalType: "uint256",
1067
- name: "amountOut",
1068
- type: "uint256",
1069
- },
1070
- ],
1071
- stateMutability: "pure",
1072
- type: "function",
1073
- },
1074
- {
1075
- inputs: [
1076
- {
1077
- internalType: "uint256",
1078
- name: "amountOut",
1079
- type: "uint256",
1080
- },
1081
- {
1082
- internalType: "address[]",
1083
- name: "path",
1084
- type: "address[]",
1085
- },
1086
- ],
1087
- name: "getAmountsIn",
1088
- outputs: [
1089
- {
1090
- internalType: "uint256[]",
1091
- name: "amounts",
1092
- type: "uint256[]",
1093
- },
1094
- ],
1095
- stateMutability: "view",
1096
- type: "function",
1097
- },
1098
- {
1099
- inputs: [
1100
- {
1101
- internalType: "uint256",
1102
- name: "amountIn",
1103
- type: "uint256",
1104
- },
1105
- {
1106
- internalType: "address[]",
1107
- name: "path",
1108
- type: "address[]",
1109
- },
1110
- ],
1111
- name: "getAmountsOut",
1112
- outputs: [
1113
- {
1114
- internalType: "uint256[]",
1115
- name: "amounts",
1116
- type: "uint256[]",
1117
- },
1118
- ],
1119
- stateMutability: "view",
1120
- type: "function",
1121
- },
1122
- {
1123
- inputs: [],
1124
- name: "mpc",
1125
- outputs: [
1126
- {
1127
- internalType: "address",
1128
- name: "",
1129
- type: "address",
1130
- },
1131
- ],
1132
- stateMutability: "view",
1133
- type: "function",
1134
- },
1135
- {
1136
- inputs: [
1137
- {
1138
- internalType: "uint256",
1139
- name: "amountA",
1140
- type: "uint256",
1141
- },
1142
- {
1143
- internalType: "uint256",
1144
- name: "reserveA",
1145
- type: "uint256",
1146
- },
1147
- {
1148
- internalType: "uint256",
1149
- name: "reserveB",
1150
- type: "uint256",
1151
- },
1152
- ],
1153
- name: "quote",
1154
- outputs: [
1155
- {
1156
- internalType: "uint256",
1157
- name: "amountB",
1158
- type: "uint256",
1159
- },
1160
- ],
1161
- stateMutability: "pure",
1162
- type: "function",
1163
- },
1164
- {
1165
- inputs: [
1166
- {
1167
- internalType: "address",
1168
- name: "token",
1169
- type: "address",
1170
- },
1171
- {
1172
- internalType: "address",
1173
- name: "_auth",
1174
- type: "address",
1175
- },
1176
- ],
1177
- name: "revokeMinter",
1178
- outputs: [],
1179
- stateMutability: "nonpayable",
1180
- type: "function",
1181
- },
1182
- {
1183
- inputs: [
1184
- {
1185
- internalType: "bool",
1186
- name: "enable",
1187
- type: "bool",
1188
- },
1189
- ],
1190
- name: "setEnableSwapTrade",
1191
- outputs: [],
1192
- stateMutability: "nonpayable",
1193
- type: "function",
1194
- },
1195
- {
1196
- inputs: [
1197
- {
1198
- internalType: "address",
1199
- name: "token",
1200
- type: "address",
1201
- },
1202
- {
1203
- internalType: "address",
1204
- name: "_auth",
1205
- type: "address",
1206
- },
1207
- ],
1208
- name: "setMinter",
1209
- outputs: [],
1210
- stateMutability: "nonpayable",
1211
- type: "function",
1212
- },
1213
- {
1214
- inputs: [],
1215
- name: "wNATIVE",
1216
- outputs: [
1217
- {
1218
- internalType: "address",
1219
- name: "",
1220
- type: "address",
1221
- },
1222
- ],
1223
- stateMutability: "view",
1224
- type: "function",
1225
- },
1226
- {
1227
- inputs: [
1228
- {
1229
- internalType: "address",
1230
- name: "token",
1231
- type: "address",
1232
- },
1233
- {
1234
- internalType: "uint256",
1235
- name: "amount",
1236
- type: "uint256",
1237
- },
1238
- {
1239
- internalType: "address",
1240
- name: "to",
1241
- type: "address",
1242
- },
1243
- ],
1244
- name: "withdrawNative",
1245
- outputs: [
1246
- {
1247
- internalType: "uint256",
1248
- name: "",
1249
- type: "uint256",
1250
- },
1251
- ],
1252
- stateMutability: "nonpayable",
1253
- type: "function",
1254
- },
1255
- {
1256
- stateMutability: "payable",
1257
- type: "receive",
1258
- },
1259
- ];
1260
- export class AnyswapRouter__factory {
1261
- static abi = _abi;
1262
- static createInterface() {
1263
- return new Interface(_abi);
1264
- }
1265
- static connect(address, signerOrProvider) {
1266
- return new Contract(address, _abi, signerOrProvider);
1267
- }
1268
- }
1269
- //# sourceMappingURL=AnyswapRouter__factory.js.map