@sentio/sdk 2.0.0-rc.9 → 2.0.1-rc.1

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 (503) hide show
  1. package/lib/aptos/api.d.ts +5 -0
  2. package/lib/aptos/api.js +21 -0
  3. package/lib/aptos/api.js.map +1 -0
  4. package/lib/aptos/aptos-plugin.d.ts +14 -0
  5. package/lib/aptos/aptos-plugin.js +146 -0
  6. package/lib/aptos/aptos-plugin.js.map +1 -0
  7. package/lib/aptos/aptos-processor.d.ts +72 -0
  8. package/lib/aptos/aptos-processor.js +201 -0
  9. package/lib/aptos/aptos-processor.js.map +1 -0
  10. package/lib/aptos/builtin/0x1.d.ts +1914 -0
  11. package/lib/aptos/builtin/0x1.js +2727 -0
  12. package/lib/aptos/builtin/0x1.js.map +1 -0
  13. package/lib/aptos/builtin/0x3.d.ts +491 -0
  14. package/lib/aptos/builtin/0x3.js +496 -0
  15. package/lib/aptos/builtin/0x3.js.map +1 -0
  16. package/lib/aptos/builtin/index.d.ts +2 -0
  17. package/lib/aptos/builtin/index.js +6 -0
  18. package/lib/aptos/builtin/index.js.map +1 -0
  19. package/lib/aptos/codegen/codegen.d.ts +21 -0
  20. package/lib/aptos/codegen/codegen.js +384 -0
  21. package/lib/aptos/codegen/codegen.js.map +1 -0
  22. package/lib/aptos/codegen/index.d.ts +1 -0
  23. package/lib/aptos/codegen/index.js +2 -0
  24. package/lib/aptos/codegen/index.js.map +1 -0
  25. package/lib/aptos/codegen/run.d.ts +1 -0
  26. package/lib/aptos/codegen/run.js +12 -0
  27. package/lib/aptos/codegen/run.js.map +1 -0
  28. package/lib/aptos/codegen/typegen.d.ts +18 -0
  29. package/lib/aptos/codegen/typegen.js +145 -0
  30. package/lib/aptos/codegen/typegen.js.map +1 -0
  31. package/lib/aptos/codegen/typegen.test.d.ts +1 -0
  32. package/lib/aptos/codegen/typegen.test.js.map +1 -0
  33. package/lib/aptos/context.d.ts +21 -0
  34. package/lib/aptos/context.js +59 -0
  35. package/lib/aptos/context.js.map +1 -0
  36. package/lib/aptos/index.d.ts +9 -0
  37. package/lib/aptos/index.js +8 -0
  38. package/lib/aptos/index.js.map +1 -0
  39. package/lib/aptos/models.d.ts +29 -0
  40. package/lib/aptos/models.js +2 -0
  41. package/lib/aptos/models.js.map +1 -0
  42. package/lib/aptos/move-coder.d.ts +22 -0
  43. package/lib/aptos/move-coder.js +162 -0
  44. package/lib/aptos/move-coder.js.map +1 -0
  45. package/lib/aptos/move-types.d.ts +10 -0
  46. package/lib/aptos/move-types.js +2 -0
  47. package/lib/aptos/move-types.js.map +1 -0
  48. package/lib/aptos/network.d.ts +11 -0
  49. package/lib/aptos/network.js +27 -0
  50. package/lib/aptos/network.js.map +1 -0
  51. package/lib/aptos/tests/aptos.test.d.ts +1 -0
  52. package/lib/aptos/tests/aptos.test.js.map +1 -0
  53. package/lib/aptos/tests/souffl3.d.ts +1 -0
  54. package/lib/aptos/tests/souffl3.js +44 -0
  55. package/lib/aptos/tests/souffl3.js.map +1 -0
  56. package/lib/aptos/tests/types/index.d.ts +3 -0
  57. package/lib/aptos/tests/types/index.js +7 -0
  58. package/lib/aptos/tests/types/index.js.map +1 -0
  59. package/lib/aptos/tests/types/reserved.d.ts +345 -0
  60. package/lib/aptos/tests/types/reserved.js +301 -0
  61. package/lib/aptos/tests/types/reserved.js.map +1 -0
  62. package/lib/aptos/tests/types/soffl3.d.ts +812 -0
  63. package/lib/aptos/tests/types/soffl3.js +548 -0
  64. package/lib/aptos/tests/types/soffl3.js.map +1 -0
  65. package/lib/aptos/tests/types/souffle.d.ts +340 -0
  66. package/lib/aptos/tests/types/souffle.js +295 -0
  67. package/lib/aptos/tests/types/souffle.js.map +1 -0
  68. package/lib/aptos/types.d.ts +9 -0
  69. package/lib/aptos/types.js +130 -0
  70. package/lib/aptos/types.js.map +1 -0
  71. package/lib/aptos/types.test.d.ts +1 -0
  72. package/lib/aptos/types.test.js.map +1 -0
  73. package/lib/aptos/utils.d.ts +7 -0
  74. package/lib/aptos/utils.js +20 -0
  75. package/lib/aptos/utils.js.map +1 -0
  76. package/lib/core/big-decimal.d.ts +2 -0
  77. package/lib/core/big-decimal.js +8 -0
  78. package/lib/core/big-decimal.js.map +1 -1
  79. package/lib/{utils → core}/chain.d.ts +0 -0
  80. package/lib/{utils → core}/chain.js +0 -0
  81. package/lib/core/chain.js.map +1 -0
  82. package/lib/core/index.d.ts +2 -4
  83. package/lib/core/index.js +2 -4
  84. package/lib/core/index.js.map +1 -1
  85. package/lib/core/numberish.d.ts +0 -2
  86. package/lib/core/numberish.js +0 -9
  87. package/lib/core/numberish.js.map +1 -1
  88. package/lib/core/sui-plugin.js +1 -1
  89. package/lib/core/sui-plugin.js.map +1 -1
  90. package/lib/core/sui-processor.d.ts +1 -1
  91. package/lib/core/sui-processor.js +1 -1
  92. package/lib/core/sui-processor.js.map +1 -1
  93. package/lib/eth/account-processor.d.ts +4 -4
  94. package/lib/eth/account-processor.js +4 -4
  95. package/lib/eth/account-processor.js.map +1 -1
  96. package/lib/eth/base-processor-template.d.ts +6 -5
  97. package/lib/eth/base-processor-template.js +1 -1
  98. package/lib/eth/base-processor-template.js.map +1 -1
  99. package/lib/eth/base-processor.d.ts +6 -5
  100. package/lib/eth/base-processor.js +3 -2
  101. package/lib/eth/base-processor.js.map +1 -1
  102. package/lib/{core → eth}/bind-options.d.ts +0 -0
  103. package/lib/{core → eth}/bind-options.js +0 -0
  104. package/lib/eth/bind-options.js.map +1 -0
  105. package/lib/eth/binds.d.ts +2 -2
  106. package/lib/eth/binds.js +1 -1
  107. package/lib/eth/binds.js.map +1 -1
  108. package/lib/{builtin → eth/builtin}/eacaggregatorproxy/index.d.ts +0 -0
  109. package/lib/{builtin → eth/builtin}/eacaggregatorproxy/index.js +0 -0
  110. package/lib/eth/builtin/eacaggregatorproxy/index.js.map +1 -0
  111. package/lib/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.d.ts +0 -0
  112. package/lib/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.js +0 -0
  113. package/lib/eth/builtin/eacaggregatorproxy/test-utils.js.map +1 -0
  114. package/lib/{builtin → eth/builtin}/erc1155/index.d.ts +0 -0
  115. package/lib/{builtin → eth/builtin}/erc1155/index.js +0 -0
  116. package/lib/eth/builtin/erc1155/index.js.map +1 -0
  117. package/lib/{builtin → eth/builtin}/erc1155/test-utils.d.ts +0 -0
  118. package/lib/{builtin → eth/builtin}/erc1155/test-utils.js +0 -0
  119. package/lib/eth/builtin/erc1155/test-utils.js.map +1 -0
  120. package/lib/{builtin → eth/builtin}/erc20/index.d.ts +0 -0
  121. package/lib/{builtin → eth/builtin}/erc20/index.js +0 -0
  122. package/lib/eth/builtin/erc20/index.js.map +1 -0
  123. package/lib/{builtin → eth/builtin}/erc20/test-utils.d.ts +0 -0
  124. package/lib/{builtin → eth/builtin}/erc20/test-utils.js +0 -0
  125. package/lib/eth/builtin/erc20/test-utils.js.map +1 -0
  126. package/lib/{builtin → eth/builtin}/erc20bytes/index.d.ts +0 -0
  127. package/lib/{builtin → eth/builtin}/erc20bytes/index.js +0 -0
  128. package/lib/eth/builtin/erc20bytes/index.js.map +1 -0
  129. package/lib/{builtin → eth/builtin}/erc20bytes/test-utils.d.ts +0 -0
  130. package/lib/{builtin → eth/builtin}/erc20bytes/test-utils.js +0 -0
  131. package/lib/eth/builtin/erc20bytes/test-utils.js.map +1 -0
  132. package/lib/{builtin → eth/builtin}/erc721/index.d.ts +0 -0
  133. package/lib/{builtin → eth/builtin}/erc721/index.js +0 -0
  134. package/lib/eth/builtin/erc721/index.js.map +1 -0
  135. package/lib/{builtin → eth/builtin}/erc721/test-utils.d.ts +0 -0
  136. package/lib/{builtin → eth/builtin}/erc721/test-utils.js +0 -0
  137. package/lib/eth/builtin/erc721/test-utils.js.map +1 -0
  138. package/lib/{builtin → eth/builtin}/index.d.ts +0 -0
  139. package/lib/{builtin → eth/builtin}/index.js +0 -0
  140. package/lib/eth/builtin/index.js.map +1 -0
  141. package/lib/{builtin → eth/builtin}/internal/EACAggregatorProxy.d.ts +5 -5
  142. package/lib/{builtin → eth/builtin}/internal/EACAggregatorProxy.js +0 -0
  143. package/lib/eth/builtin/internal/EACAggregatorProxy.js.map +1 -0
  144. package/lib/{builtin → eth/builtin}/internal/ERC1155.d.ts +5 -5
  145. package/lib/{builtin → eth/builtin}/internal/ERC1155.js +0 -0
  146. package/lib/eth/builtin/internal/ERC1155.js.map +1 -0
  147. package/lib/{builtin → eth/builtin}/internal/ERC20.d.ts +4 -4
  148. package/lib/{builtin → eth/builtin}/internal/ERC20.js +0 -0
  149. package/lib/eth/builtin/internal/ERC20.js.map +1 -0
  150. package/lib/{builtin → eth/builtin}/internal/ERC20Bytes.d.ts +3 -3
  151. package/lib/{builtin → eth/builtin}/internal/ERC20Bytes.js +0 -0
  152. package/lib/eth/builtin/internal/ERC20Bytes.js.map +1 -0
  153. package/lib/{builtin → eth/builtin}/internal/ERC721.d.ts +4 -4
  154. package/lib/{builtin → eth/builtin}/internal/ERC721.js +0 -0
  155. package/lib/eth/builtin/internal/ERC721.js.map +1 -0
  156. package/lib/{builtin → eth/builtin}/internal/WETH9.d.ts +5 -5
  157. package/lib/{builtin → eth/builtin}/internal/WETH9.js +0 -0
  158. package/lib/eth/builtin/internal/WETH9.js.map +1 -0
  159. package/lib/{builtin → eth/builtin}/internal/common.d.ts +4 -2
  160. package/lib/{builtin → eth/builtin}/internal/common.js +0 -0
  161. package/lib/eth/builtin/internal/common.js.map +1 -0
  162. package/lib/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.d.ts +5 -5
  163. package/lib/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.js +92 -182
  164. package/lib/eth/builtin/internal/eacaggregatorproxy_processor.js.map +1 -0
  165. package/lib/{builtin → eth/builtin}/internal/erc1155_processor.d.ts +5 -5
  166. package/lib/{builtin → eth/builtin}/internal/erc1155_processor.js +27 -52
  167. package/lib/eth/builtin/internal/erc1155_processor.js.map +1 -0
  168. package/lib/{builtin → eth/builtin}/internal/erc20_processor.d.ts +4 -4
  169. package/lib/{builtin → eth/builtin}/internal/erc20_processor.js +42 -82
  170. package/lib/eth/builtin/internal/erc20_processor.js.map +1 -0
  171. package/lib/{builtin → eth/builtin}/internal/erc20bytes_processor.d.ts +3 -3
  172. package/lib/{builtin → eth/builtin}/internal/erc20bytes_processor.js +32 -62
  173. package/lib/eth/builtin/internal/erc20bytes_processor.js.map +1 -0
  174. package/lib/{builtin → eth/builtin}/internal/erc721_processor.d.ts +4 -4
  175. package/lib/{builtin → eth/builtin}/internal/erc721_processor.js +47 -92
  176. package/lib/eth/builtin/internal/erc721_processor.js.map +1 -0
  177. package/lib/{builtin → eth/builtin}/internal/factories/EACAggregatorProxy__factory.d.ts +1 -1
  178. package/lib/{builtin → eth/builtin}/internal/factories/EACAggregatorProxy__factory.js +0 -0
  179. package/lib/eth/builtin/internal/factories/EACAggregatorProxy__factory.js.map +1 -0
  180. package/lib/{builtin → eth/builtin}/internal/factories/ERC1155__factory.d.ts +1 -1
  181. package/lib/{builtin → eth/builtin}/internal/factories/ERC1155__factory.js +0 -0
  182. package/lib/eth/builtin/internal/factories/ERC1155__factory.js.map +1 -0
  183. package/lib/{builtin → eth/builtin}/internal/factories/ERC20Bytes__factory.d.ts +1 -1
  184. package/lib/{builtin → eth/builtin}/internal/factories/ERC20Bytes__factory.js +0 -0
  185. package/lib/eth/builtin/internal/factories/ERC20Bytes__factory.js.map +1 -0
  186. package/lib/{builtin → eth/builtin}/internal/factories/ERC20__factory.d.ts +1 -1
  187. package/lib/{builtin → eth/builtin}/internal/factories/ERC20__factory.js +0 -0
  188. package/lib/eth/builtin/internal/factories/ERC20__factory.js.map +1 -0
  189. package/lib/{builtin → eth/builtin}/internal/factories/ERC721__factory.d.ts +1 -1
  190. package/lib/{builtin → eth/builtin}/internal/factories/ERC721__factory.js +0 -0
  191. package/lib/eth/builtin/internal/factories/ERC721__factory.js.map +1 -0
  192. package/lib/{builtin → eth/builtin}/internal/factories/WETH9__factory.d.ts +1 -1
  193. package/lib/{builtin → eth/builtin}/internal/factories/WETH9__factory.js +0 -0
  194. package/lib/eth/builtin/internal/factories/WETH9__factory.js.map +1 -0
  195. package/lib/{builtin → eth/builtin}/internal/factories/index.d.ts +0 -0
  196. package/lib/{builtin → eth/builtin}/internal/factories/index.js +0 -0
  197. package/lib/eth/builtin/internal/factories/index.js.map +1 -0
  198. package/lib/{builtin → eth/builtin}/internal/index.d.ts +0 -0
  199. package/lib/{builtin → eth/builtin}/internal/index.js +0 -0
  200. package/lib/eth/builtin/internal/index.js.map +1 -0
  201. package/lib/{builtin → eth/builtin}/internal/weth9_processor.d.ts +5 -5
  202. package/lib/{builtin → eth/builtin}/internal/weth9_processor.js +32 -62
  203. package/lib/eth/builtin/internal/weth9_processor.js.map +1 -0
  204. package/lib/{builtin → eth/builtin}/weth9/index.d.ts +0 -0
  205. package/lib/{builtin → eth/builtin}/weth9/index.js +0 -0
  206. package/lib/eth/builtin/weth9/index.js.map +1 -0
  207. package/lib/{builtin → eth/builtin}/weth9/test-utils.d.ts +0 -0
  208. package/lib/{builtin → eth/builtin}/weth9/test-utils.js +0 -0
  209. package/lib/eth/builtin/weth9/test-utils.js.map +1 -0
  210. package/lib/eth/codegen/codegen.d.ts +1 -0
  211. package/lib/eth/codegen/codegen.js +53 -0
  212. package/lib/eth/codegen/codegen.js.map +1 -0
  213. package/lib/{target-ethers-sentio/index.d.cts → eth/codegen/ethers-sentio.d.ts} +1 -1
  214. package/lib/eth/codegen/ethers-sentio.js +57 -0
  215. package/lib/eth/codegen/ethers-sentio.js.map +1 -0
  216. package/lib/{target-ethers-sentio/event-handler.d.cts → eth/codegen/event-handler.d.ts} +0 -0
  217. package/lib/eth/codegen/event-handler.js +46 -0
  218. package/lib/eth/codegen/event-handler.js.map +1 -0
  219. package/lib/{target-ethers-sentio/file.d.cts → eth/codegen/file.d.ts} +0 -0
  220. package/lib/{target-ethers-sentio/file.cjs → eth/codegen/file.js} +28 -35
  221. package/lib/eth/codegen/file.js.map +1 -0
  222. package/lib/{target-ethers-sentio/functions-handler.d.cts → eth/codegen/functions-handler.d.ts} +0 -0
  223. package/lib/{target-ethers-sentio/functions-handler.cjs → eth/codegen/functions-handler.js} +13 -18
  224. package/lib/eth/codegen/functions-handler.js.map +1 -0
  225. package/lib/eth/codegen/index.d.ts +1 -0
  226. package/lib/eth/codegen/index.js +2 -0
  227. package/lib/eth/codegen/index.js.map +1 -0
  228. package/lib/eth/codegen/run.d.ts +2 -0
  229. package/lib/eth/codegen/run.js +12 -0
  230. package/lib/eth/codegen/run.js.map +1 -0
  231. package/lib/{target-ethers-sentio/types.d.cts → eth/codegen/types.d.ts} +0 -0
  232. package/lib/{target-ethers-sentio/types.cjs → eth/codegen/types.js} +4 -10
  233. package/lib/eth/codegen/types.js.map +1 -0
  234. package/lib/{target-ethers-sentio/view-function.d.cts → eth/codegen/view-function.d.ts} +0 -0
  235. package/lib/eth/codegen/view-function.js +62 -0
  236. package/lib/eth/codegen/view-function.js.map +1 -0
  237. package/lib/{core → eth}/context.d.ts +5 -4
  238. package/lib/{core → eth}/context.js +7 -8
  239. package/lib/eth/context.js.map +1 -0
  240. package/lib/eth/error.d.ts +1 -0
  241. package/lib/eth/error.js +3 -0
  242. package/lib/eth/error.js.map +1 -0
  243. package/lib/eth/eth.d.ts +13 -0
  244. package/lib/{error.js → eth/eth.js} +20 -14
  245. package/lib/eth/eth.js.map +1 -0
  246. package/lib/eth/generic-processor.d.ts +2 -2
  247. package/lib/eth/generic-processor.js +2 -2
  248. package/lib/eth/generic-processor.js.map +1 -1
  249. package/lib/eth/generic-processor.test.js.map +1 -1
  250. package/lib/eth/index.d.ts +5 -1
  251. package/lib/eth/index.js +5 -1
  252. package/lib/eth/index.js.map +1 -1
  253. package/lib/eth/provider.js +3 -2
  254. package/lib/eth/provider.js.map +1 -1
  255. package/lib/index.d.ts +1 -3
  256. package/lib/index.js +1 -5
  257. package/lib/index.js.map +1 -1
  258. package/lib/jest.config.d.ts +9 -0
  259. package/lib/jest.config.js +9 -0
  260. package/lib/jest.config.js.map +1 -0
  261. package/lib/solana/builtin/index.d.ts +1 -0
  262. package/lib/solana/builtin/index.js +2 -0
  263. package/lib/solana/builtin/index.js.map +1 -0
  264. package/lib/solana/builtin/spl-token-processor.d.ts +39 -0
  265. package/lib/solana/builtin/spl-token-processor.js +254 -0
  266. package/lib/solana/builtin/spl-token-processor.js.map +1 -0
  267. package/lib/solana/builtin/types.d.ts +427 -0
  268. package/lib/solana/builtin/types.js +200 -0
  269. package/lib/solana/builtin/types.js.map +1 -0
  270. package/lib/solana/codegen/codegen.d.ts +1 -0
  271. package/lib/solana/codegen/codegen.js +122 -0
  272. package/lib/solana/codegen/codegen.js.map +1 -0
  273. package/lib/solana/codegen/index.d.ts +1 -0
  274. package/lib/solana/codegen/index.js +2 -0
  275. package/lib/solana/codegen/index.js.map +1 -0
  276. package/lib/solana/codegen/run.d.ts +2 -0
  277. package/lib/solana/codegen/run.js +12 -0
  278. package/lib/solana/codegen/run.js.map +1 -0
  279. package/lib/solana/index.d.ts +4 -0
  280. package/lib/solana/index.js +5 -0
  281. package/lib/solana/index.js.map +1 -0
  282. package/lib/solana/solana-context.d.ts +9 -0
  283. package/lib/solana/solana-context.js +28 -0
  284. package/lib/solana/solana-context.js.map +1 -0
  285. package/lib/solana/solana-options.d.ts +10 -0
  286. package/lib/solana/solana-options.js +10 -0
  287. package/lib/solana/solana-options.js.map +1 -0
  288. package/lib/solana/solana-plugin.d.ts +9 -0
  289. package/lib/solana/solana-plugin.js +87 -0
  290. package/lib/solana/solana-plugin.js.map +1 -0
  291. package/lib/solana/solana-processor.d.ts +43 -0
  292. package/lib/solana/solana-processor.js +72 -0
  293. package/lib/solana/solana-processor.js.map +1 -0
  294. package/lib/solana/tests/solana.test.d.ts +1 -0
  295. package/lib/solana/tests/solana.test.js.map +1 -0
  296. package/lib/solana/tests/types/basic_1.d.ts +26 -0
  297. package/lib/solana/tests/types/basic_1.js +63 -0
  298. package/lib/solana/tests/types/basic_1.js.map +1 -0
  299. package/lib/solana/tests/types/basic_1_processor.d.ts +21 -0
  300. package/lib/solana/tests/types/basic_1_processor.js +35 -0
  301. package/lib/solana/tests/types/basic_1_processor.js.map +1 -0
  302. package/lib/solana/tests/types/token_bridge.d.ts +29 -0
  303. package/lib/solana/tests/types/token_bridge.js +938 -0
  304. package/lib/solana/tests/types/token_bridge.js.map +1 -0
  305. package/lib/solana/tests/types/token_bridge_processor.d.ts +212 -0
  306. package/lib/solana/tests/types/token_bridge_processor.js +134 -0
  307. package/lib/solana/tests/types/token_bridge_processor.js.map +1 -0
  308. package/lib/solana/tests/wormhole-token-bridge.d.ts +15 -0
  309. package/lib/solana/tests/wormhole-token-bridge.js +79 -0
  310. package/lib/solana/tests/wormhole-token-bridge.js.map +1 -0
  311. package/lib/testing/test-processor-server.js +1 -1
  312. package/lib/testing/test-processor-server.js.map +1 -1
  313. package/lib/testing/test-provider.js +1 -1
  314. package/lib/testing/test-provider.js.map +1 -1
  315. package/lib/tsup.config.ts +3 -0
  316. package/lib/utils/conversion.d.ts +0 -5
  317. package/lib/utils/conversion.js +21 -20
  318. package/lib/utils/conversion.js.map +1 -1
  319. package/lib/utils/dex-price.js +2 -2
  320. package/lib/utils/dex-price.js.map +1 -1
  321. package/lib/utils/index.d.ts +3 -3
  322. package/lib/utils/index.js +3 -3
  323. package/lib/utils/index.js.map +1 -1
  324. package/lib/utils/token.d.ts +0 -1
  325. package/lib/utils/token.js +17 -28
  326. package/lib/utils/token.js.map +1 -1
  327. package/package.json +42 -20
  328. package/src/aptos/abis/0x1.json +9205 -0
  329. package/src/aptos/abis/0x3.json +1515 -0
  330. package/src/aptos/api.ts +23 -0
  331. package/src/aptos/aptos-plugin.ts +183 -0
  332. package/src/aptos/aptos-processor.ts +331 -0
  333. package/src/aptos/builtin/0x1.ts +4685 -0
  334. package/src/aptos/builtin/0x3.ts +1010 -0
  335. package/src/aptos/builtin/index.ts +5 -0
  336. package/src/aptos/codegen/codegen.ts +461 -0
  337. package/src/aptos/codegen/index.ts +1 -0
  338. package/src/aptos/codegen/run.ts +13 -0
  339. package/src/aptos/codegen/tsconfig.json +8 -0
  340. package/src/aptos/codegen/typegen.ts +165 -0
  341. package/src/aptos/context.ts +72 -0
  342. package/src/aptos/index.ts +10 -0
  343. package/src/aptos/models.ts +37 -0
  344. package/src/aptos/move-coder.ts +199 -0
  345. package/src/aptos/move-types.ts +11 -0
  346. package/src/aptos/network.ts +29 -0
  347. package/src/aptos/tests/abis/reserved.json +402 -0
  348. package/src/aptos/tests/abis/soffl3.json +1411 -0
  349. package/src/aptos/tests/abis/souffle.json +389 -0
  350. package/src/aptos/tests/souffl3.ts +57 -0
  351. package/src/aptos/tests/types/index.ts +6 -0
  352. package/src/aptos/tests/types/reserved.ts +781 -0
  353. package/src/aptos/tests/types/soffl3.ts +1567 -0
  354. package/src/aptos/tests/types/souffle.ts +780 -0
  355. package/src/aptos/types.ts +149 -0
  356. package/src/aptos/utils.ts +26 -0
  357. package/src/core/big-decimal.ts +11 -0
  358. package/src/{utils → core}/chain.ts +0 -0
  359. package/src/core/index.ts +2 -5
  360. package/src/core/numberish.ts +0 -11
  361. package/src/core/sui-plugin.ts +1 -1
  362. package/src/core/sui-processor.ts +1 -1
  363. package/src/{abis → eth/abis}/EACAggregatorProxy.json +0 -0
  364. package/src/{abis → eth/abis}/ERC1155.json +0 -0
  365. package/src/{abis → eth/abis}/ERC20.json +0 -0
  366. package/src/{abis → eth/abis}/ERC20Bytes.json +0 -0
  367. package/src/{abis → eth/abis}/ERC721.json +0 -0
  368. package/src/{abis → eth/abis}/WETH9.json +0 -0
  369. package/src/eth/account-processor.ts +7 -7
  370. package/src/eth/base-processor-template.ts +5 -4
  371. package/src/eth/base-processor.ts +10 -20
  372. package/src/{core → eth}/bind-options.ts +0 -0
  373. package/src/eth/binds.ts +2 -2
  374. package/src/{builtin → eth/builtin}/eacaggregatorproxy/index.ts +0 -0
  375. package/src/{builtin → eth/builtin}/eacaggregatorproxy/test-utils.ts +0 -0
  376. package/src/{builtin → eth/builtin}/erc1155/index.ts +0 -0
  377. package/src/{builtin → eth/builtin}/erc1155/test-utils.ts +0 -0
  378. package/src/{builtin → eth/builtin}/erc20/index.ts +0 -0
  379. package/src/{builtin → eth/builtin}/erc20/test-utils.ts +0 -0
  380. package/src/{builtin → eth/builtin}/erc20bytes/index.ts +0 -0
  381. package/src/{builtin → eth/builtin}/erc20bytes/test-utils.ts +0 -0
  382. package/src/{builtin → eth/builtin}/erc721/index.ts +0 -0
  383. package/src/{builtin → eth/builtin}/erc721/test-utils.ts +0 -0
  384. package/src/{builtin → eth/builtin}/index.ts +0 -0
  385. package/src/{builtin → eth/builtin}/internal/EACAggregatorProxy.ts +5 -9
  386. package/src/{builtin → eth/builtin}/internal/ERC1155.ts +5 -9
  387. package/src/{builtin → eth/builtin}/internal/ERC20.ts +4 -7
  388. package/src/{builtin → eth/builtin}/internal/ERC20Bytes.ts +3 -5
  389. package/src/{builtin → eth/builtin}/internal/ERC721.ts +4 -7
  390. package/src/{builtin → eth/builtin}/internal/WETH9.ts +5 -9
  391. package/src/eth/builtin/internal/common.ts +22 -0
  392. package/src/{builtin → eth/builtin}/internal/eacaggregatorproxy_processor.ts +92 -164
  393. package/src/{builtin → eth/builtin}/internal/erc1155_processor.ts +27 -51
  394. package/src/{builtin → eth/builtin}/internal/erc20_processor.ts +42 -74
  395. package/src/{builtin → eth/builtin}/internal/erc20bytes_processor.ts +32 -56
  396. package/src/{builtin → eth/builtin}/internal/erc721_processor.ts +47 -83
  397. package/src/{builtin → eth/builtin}/internal/factories/EACAggregatorProxy__factory.ts +1 -1
  398. package/src/{builtin → eth/builtin}/internal/factories/ERC1155__factory.ts +1 -1
  399. package/src/{builtin → eth/builtin}/internal/factories/ERC20Bytes__factory.ts +1 -1
  400. package/src/{builtin → eth/builtin}/internal/factories/ERC20__factory.ts +1 -1
  401. package/src/{builtin → eth/builtin}/internal/factories/ERC721__factory.ts +1 -1
  402. package/src/{builtin → eth/builtin}/internal/factories/WETH9__factory.ts +1 -1
  403. package/src/{builtin → eth/builtin}/internal/factories/index.ts +0 -0
  404. package/src/{builtin → eth/builtin}/internal/index.ts +0 -0
  405. package/src/{builtin → eth/builtin}/internal/weth9_processor.ts +32 -56
  406. package/src/{builtin → eth/builtin}/weth9/index.ts +0 -0
  407. package/src/{builtin → eth/builtin}/weth9/test-utils.ts +0 -0
  408. package/src/eth/codegen/codegen.ts +62 -0
  409. package/src/{target-ethers-sentio/index.cts → eth/codegen/ethers-sentio.ts} +2 -2
  410. package/src/{target-ethers-sentio/event-handler.cts → eth/codegen/event-handler.ts} +2 -2
  411. package/src/{target-ethers-sentio/file.cts → eth/codegen/file.ts} +7 -7
  412. package/src/{target-ethers-sentio/functions-handler.cts → eth/codegen/functions-handler.ts} +4 -4
  413. package/src/eth/codegen/index.ts +1 -0
  414. package/src/eth/codegen/run.ts +12 -0
  415. package/src/eth/codegen/tsconfig.json +8 -0
  416. package/src/{target-ethers-sentio/types.cts → eth/codegen/types.ts} +1 -1
  417. package/src/{target-ethers-sentio/view-function.cts → eth/codegen/view-function.ts} +7 -12
  418. package/src/{core → eth}/context.ts +8 -9
  419. package/src/eth/error.ts +4 -0
  420. package/src/eth/eth.ts +56 -0
  421. package/src/eth/generic-processor.ts +3 -3
  422. package/src/eth/index.ts +6 -2
  423. package/src/eth/provider.ts +4 -3
  424. package/src/index.ts +1 -6
  425. package/src/jest.config.ts +8 -0
  426. package/src/solana/builtin/index.ts +1 -0
  427. package/src/solana/builtin/spl-token-processor.ts +298 -0
  428. package/src/solana/builtin/types.ts +279 -0
  429. package/src/solana/codegen/codegen.ts +140 -0
  430. package/src/solana/codegen/index.ts +1 -0
  431. package/src/solana/codegen/run.ts +12 -0
  432. package/src/solana/codegen/tsconfig.json +8 -0
  433. package/src/solana/index.ts +4 -0
  434. package/src/solana/solana-context.ts +30 -0
  435. package/src/solana/solana-options.ts +11 -0
  436. package/src/solana/solana-plugin.ts +103 -0
  437. package/src/solana/solana-processor.ts +102 -0
  438. package/src/solana/tests/abis/basic_1.json +62 -0
  439. package/src/solana/tests/abis/token_bridge.json +937 -0
  440. package/src/solana/tests/types/basic_1.ts +62 -0
  441. package/src/solana/tests/types/basic_1_processor.ts +42 -0
  442. package/src/solana/tests/types/token_bridge.ts +937 -0
  443. package/src/solana/tests/types/token_bridge_processor.ts +150 -0
  444. package/src/solana/tests/wormhole-token-bridge.ts +96 -0
  445. package/src/testing/test-processor-server.ts +1 -1
  446. package/src/testing/test-provider.ts +1 -1
  447. package/src/tsup.config.ts +3 -0
  448. package/src/utils/conversion.ts +21 -25
  449. package/src/utils/dex-price.ts +2 -3
  450. package/src/utils/index.ts +3 -3
  451. package/src/utils/token.ts +19 -30
  452. package/lib/builtin/eacaggregatorproxy/index.js.map +0 -1
  453. package/lib/builtin/eacaggregatorproxy/test-utils.js.map +0 -1
  454. package/lib/builtin/erc1155/index.js.map +0 -1
  455. package/lib/builtin/erc1155/test-utils.js.map +0 -1
  456. package/lib/builtin/erc20/index.js.map +0 -1
  457. package/lib/builtin/erc20/test-utils.js.map +0 -1
  458. package/lib/builtin/erc20bytes/index.js.map +0 -1
  459. package/lib/builtin/erc20bytes/test-utils.js.map +0 -1
  460. package/lib/builtin/erc721/index.js.map +0 -1
  461. package/lib/builtin/erc721/test-utils.js.map +0 -1
  462. package/lib/builtin/index.js.map +0 -1
  463. package/lib/builtin/internal/EACAggregatorProxy.js.map +0 -1
  464. package/lib/builtin/internal/ERC1155.js.map +0 -1
  465. package/lib/builtin/internal/ERC20.js.map +0 -1
  466. package/lib/builtin/internal/ERC20Bytes.js.map +0 -1
  467. package/lib/builtin/internal/ERC721.js.map +0 -1
  468. package/lib/builtin/internal/WETH9.js.map +0 -1
  469. package/lib/builtin/internal/common.js.map +0 -1
  470. package/lib/builtin/internal/eacaggregatorproxy_processor.js.map +0 -1
  471. package/lib/builtin/internal/erc1155_processor.js.map +0 -1
  472. package/lib/builtin/internal/erc20_processor.js.map +0 -1
  473. package/lib/builtin/internal/erc20bytes_processor.js.map +0 -1
  474. package/lib/builtin/internal/erc721_processor.js.map +0 -1
  475. package/lib/builtin/internal/factories/EACAggregatorProxy__factory.js.map +0 -1
  476. package/lib/builtin/internal/factories/ERC1155__factory.js.map +0 -1
  477. package/lib/builtin/internal/factories/ERC20Bytes__factory.js.map +0 -1
  478. package/lib/builtin/internal/factories/ERC20__factory.js.map +0 -1
  479. package/lib/builtin/internal/factories/ERC721__factory.js.map +0 -1
  480. package/lib/builtin/internal/factories/WETH9__factory.js.map +0 -1
  481. package/lib/builtin/internal/factories/index.js.map +0 -1
  482. package/lib/builtin/internal/index.js.map +0 -1
  483. package/lib/builtin/internal/weth9_processor.js.map +0 -1
  484. package/lib/builtin/weth9/index.js.map +0 -1
  485. package/lib/builtin/weth9/test-utils.js.map +0 -1
  486. package/lib/core/bind-options.js.map +0 -1
  487. package/lib/core/context.js.map +0 -1
  488. package/lib/error.d.ts +0 -7
  489. package/lib/error.js.map +0 -1
  490. package/lib/target-ethers-sentio/event-handler.cjs +0 -52
  491. package/lib/target-ethers-sentio/event-handler.cjs.map +0 -1
  492. package/lib/target-ethers-sentio/file.cjs.map +0 -1
  493. package/lib/target-ethers-sentio/functions-handler.cjs.map +0 -1
  494. package/lib/target-ethers-sentio/index.cjs +0 -61
  495. package/lib/target-ethers-sentio/index.cjs.map +0 -1
  496. package/lib/target-ethers-sentio/types.cjs.map +0 -1
  497. package/lib/target-ethers-sentio/view-function.cjs +0 -74
  498. package/lib/target-ethers-sentio/view-function.cjs.map +0 -1
  499. package/lib/utils/chain.js.map +0 -1
  500. package/src/builtin/internal/common.ts +0 -46
  501. package/src/error.ts +0 -45
  502. package/src/target-ethers-sentio/.eslintrc.json +0 -14
  503. package/src/target-ethers-sentio/tsconfig.json +0 -9
@@ -0,0 +1,1567 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /* Generated modules for account 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4 */
6
+
7
+ import {
8
+ MoveCoder,
9
+ AptosBindOptions,
10
+ AptosBaseProcessor,
11
+ TypedEventInstance,
12
+ AptosNetwork,
13
+ TypedEntryFunctionPayload,
14
+ AptosContext,
15
+ CallFilter,
16
+ } from "@sentio/sdk/aptos";
17
+ import { AptosFetchConfig } from "@sentio/protos";
18
+ import { Address, MoveModule } from "@sentio/sdk/aptos";
19
+
20
+ import { _0x3 } from "@sentio/sdk/aptos/builtin";
21
+ import { _0x1 } from "@sentio/sdk/aptos/builtin";
22
+
23
+ export class Aggregator extends AptosBaseProcessor {
24
+ constructor(options: AptosBindOptions) {
25
+ super("Aggregator", options);
26
+ }
27
+ static DEFAULT_OPTIONS: AptosBindOptions = {
28
+ address:
29
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4",
30
+ network: AptosNetwork.MAIN_NET,
31
+ };
32
+
33
+ static bind(options: Partial<AptosBindOptions> = {}): Aggregator {
34
+ return new Aggregator({ ...Aggregator.DEFAULT_OPTIONS, ...options });
35
+ }
36
+
37
+ onEntryBatchBuyScriptV1(
38
+ func: (call: Aggregator.BatchBuyScriptV1Payload, ctx: AptosContext) => void,
39
+ filter?: CallFilter,
40
+ fetchConfig?: AptosFetchConfig
41
+ ): Aggregator {
42
+ this.onEntryFunctionCall(
43
+ func,
44
+ {
45
+ ...filter,
46
+ function: "Aggregator::batch_buy_script_V1",
47
+ },
48
+ fetchConfig
49
+ );
50
+ return this;
51
+ }
52
+
53
+ onEntryBatchChangePriceScriptV1(
54
+ func: (
55
+ call: Aggregator.BatchChangePriceScriptV1Payload,
56
+ ctx: AptosContext
57
+ ) => void,
58
+ filter?: CallFilter,
59
+ fetchConfig?: AptosFetchConfig
60
+ ): Aggregator {
61
+ this.onEntryFunctionCall(
62
+ func,
63
+ {
64
+ ...filter,
65
+ function: "Aggregator::batch_change_price_script_V1",
66
+ },
67
+ fetchConfig
68
+ );
69
+ return this;
70
+ }
71
+
72
+ onEntryBatchDelistScriptV1(
73
+ func: (
74
+ call: Aggregator.BatchDelistScriptV1Payload,
75
+ ctx: AptosContext
76
+ ) => void,
77
+ filter?: CallFilter,
78
+ fetchConfig?: AptosFetchConfig
79
+ ): Aggregator {
80
+ this.onEntryFunctionCall(
81
+ func,
82
+ {
83
+ ...filter,
84
+ function: "Aggregator::batch_delist_script_V1",
85
+ },
86
+ fetchConfig
87
+ );
88
+ return this;
89
+ }
90
+
91
+ loadTypesInternal(registry: MoveCoder) {
92
+ loadAllTypes(registry);
93
+ }
94
+ }
95
+
96
+ export namespace Aggregator {
97
+ export class BlueMove_V2_batch_buy_script {
98
+ static TYPE_QNAME =
99
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::BlueMove_V2_batch_buy_script";
100
+ creators: Address[];
101
+ collections: string[];
102
+ names: string[];
103
+ prices: bigint[];
104
+ }
105
+
106
+ export class BlueMove_V2_batch_delist_sciprt {
107
+ static TYPE_QNAME =
108
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::BlueMove_V2_batch_delist_sciprt";
109
+ creators: Address[];
110
+ collections: string[];
111
+ names: string[];
112
+ property_versions: bigint[];
113
+ }
114
+
115
+ export class Souffl3_batch_buy_script<T0> {
116
+ static TYPE_QNAME =
117
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Souffl3_batch_buy_script";
118
+ creator_lists: Address[];
119
+ collection_lists: string[];
120
+ name_lists: string[];
121
+ property_version_lists: bigint[];
122
+ token_amount_lists: bigint[];
123
+ coin_amount_lists: bigint[];
124
+ market_address_lists: Address[];
125
+ market_name_lists: string[];
126
+ }
127
+
128
+ export class Souffl3_batch_change_price_script<T0> {
129
+ static TYPE_QNAME =
130
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Souffl3_batch_change_price_script";
131
+ creator_lists: Address[];
132
+ collection_lists: string[];
133
+ name_lists: string[];
134
+ property_version_lists: bigint[];
135
+ token_amount_lists: bigint[];
136
+ coin_per_token_lists: bigint[];
137
+ locked_until_secs_lists: bigint[];
138
+ market_address_lists: Address[];
139
+ market_name_lists: string[];
140
+ }
141
+
142
+ export class Souffl3_batch_delist_sciprt<T0> {
143
+ static TYPE_QNAME =
144
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Souffl3_batch_delist_sciprt";
145
+ creator_lists: Address[];
146
+ collection_lists: string[];
147
+ name_lists: string[];
148
+ property_version_lists: bigint[];
149
+ token_amount_lists: bigint[];
150
+ market_address_lists: Address[];
151
+ market_name_lists: string[];
152
+ }
153
+
154
+ export class Souffl3_batch_list_script<T0> {
155
+ static TYPE_QNAME =
156
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Souffl3_batch_list_script";
157
+ creator_lists: Address[];
158
+ collection_lists: string[];
159
+ name_lists: string[];
160
+ property_version_lists: bigint[];
161
+ token_amount_lists: bigint[];
162
+ coin_amount_lists: bigint[];
163
+ locked_until_secs_lists: bigint[];
164
+ market_address_lists: Address[];
165
+ market_name_lists: string[];
166
+ }
167
+
168
+ export class Topaz_V2_buy_many<T0> {
169
+ static TYPE_QNAME =
170
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Topaz_V2_buy_many";
171
+ listers: Address[];
172
+ prices: bigint[];
173
+ amounts: bigint[];
174
+ creators: Address[];
175
+ collections: string[];
176
+ names: string[];
177
+ property_versions: bigint[];
178
+ }
179
+
180
+ export class Topaz_V2_delist<T0> {
181
+ static TYPE_QNAME =
182
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::Aggregator::Topaz_V2_delist";
183
+ amounts: bigint[];
184
+ creators: Address[];
185
+ collections: string[];
186
+ names: string[];
187
+ property_versions: bigint[];
188
+ }
189
+
190
+ export interface BatchBuyScriptV1Payload
191
+ extends TypedEntryFunctionPayload<
192
+ [
193
+ string[],
194
+ Address[],
195
+ bigint[],
196
+ bigint[],
197
+ Address[],
198
+ string[],
199
+ string[],
200
+ bigint[],
201
+ Address[],
202
+ string[]
203
+ ]
204
+ > {
205
+ arguments_decoded: [
206
+ string[],
207
+ Address[],
208
+ bigint[],
209
+ bigint[],
210
+ Address[],
211
+ string[],
212
+ string[],
213
+ bigint[],
214
+ Address[],
215
+ string[]
216
+ ];
217
+ type_arguments: [];
218
+ }
219
+
220
+ export interface BatchChangePriceScriptV1Payload
221
+ extends TypedEntryFunctionPayload<
222
+ [
223
+ string[],
224
+ Address[],
225
+ string[],
226
+ string[],
227
+ bigint[],
228
+ bigint[],
229
+ bigint[],
230
+ bigint[],
231
+ Address[],
232
+ string[]
233
+ ]
234
+ > {
235
+ arguments_decoded: [
236
+ string[],
237
+ Address[],
238
+ string[],
239
+ string[],
240
+ bigint[],
241
+ bigint[],
242
+ bigint[],
243
+ bigint[],
244
+ Address[],
245
+ string[]
246
+ ];
247
+ type_arguments: [];
248
+ }
249
+
250
+ export interface BatchDelistScriptV1Payload
251
+ extends TypedEntryFunctionPayload<
252
+ [
253
+ string[],
254
+ bigint[],
255
+ Address[],
256
+ string[],
257
+ string[],
258
+ bigint[],
259
+ Address[],
260
+ string[]
261
+ ]
262
+ > {
263
+ arguments_decoded: [
264
+ string[],
265
+ bigint[],
266
+ Address[],
267
+ string[],
268
+ string[],
269
+ bigint[],
270
+ Address[],
271
+ string[]
272
+ ];
273
+ type_arguments: [];
274
+ }
275
+
276
+ export function loadTypes(_r: MoveCoder) {
277
+ loadAllTypes(_r);
278
+ }
279
+ export const ABI: MoveModule = JSON.parse(
280
+ '{"address":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4","name":"Aggregator","friends":[],"exposed_functions":[{"name":"batch_buy_script_V1","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<0x1::string::String>","vector<address>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_change_price_script_V1","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<0x1::string::String>","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_delist_script_V1","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<0x1::string::String>","vector<u64>","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]}],"structs":[{"name":"BlueMove_V2_batch_buy_script","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"creators","type":"vector<address>"},{"name":"collections","type":"vector<0x1::string::String>"},{"name":"names","type":"vector<0x1::string::String>"},{"name":"prices","type":"vector<u64>"}]},{"name":"BlueMove_V2_batch_delist_sciprt","is_native":false,"abilities":["copy","drop"],"generic_type_params":[],"fields":[{"name":"creators","type":"vector<address>"},{"name":"collections","type":"vector<0x1::string::String>"},{"name":"names","type":"vector<0x1::string::String>"},{"name":"property_versions","type":"vector<u64>"}]},{"name":"Souffl3_batch_buy_script","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"creator_lists","type":"vector<address>"},{"name":"collection_lists","type":"vector<0x1::string::String>"},{"name":"name_lists","type":"vector<0x1::string::String>"},{"name":"property_version_lists","type":"vector<u64>"},{"name":"token_amount_lists","type":"vector<u64>"},{"name":"coin_amount_lists","type":"vector<u64>"},{"name":"market_address_lists","type":"vector<address>"},{"name":"market_name_lists","type":"vector<0x1::string::String>"}]},{"name":"Souffl3_batch_change_price_script","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"creator_lists","type":"vector<address>"},{"name":"collection_lists","type":"vector<0x1::string::String>"},{"name":"name_lists","type":"vector<0x1::string::String>"},{"name":"property_version_lists","type":"vector<u64>"},{"name":"token_amount_lists","type":"vector<u64>"},{"name":"coin_per_token_lists","type":"vector<u64>"},{"name":"locked_until_secs_lists","type":"vector<u64>"},{"name":"market_address_lists","type":"vector<address>"},{"name":"market_name_lists","type":"vector<0x1::string::String>"}]},{"name":"Souffl3_batch_delist_sciprt","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"creator_lists","type":"vector<address>"},{"name":"collection_lists","type":"vector<0x1::string::String>"},{"name":"name_lists","type":"vector<0x1::string::String>"},{"name":"property_version_lists","type":"vector<u64>"},{"name":"token_amount_lists","type":"vector<u64>"},{"name":"market_address_lists","type":"vector<address>"},{"name":"market_name_lists","type":"vector<0x1::string::String>"}]},{"name":"Souffl3_batch_list_script","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"creator_lists","type":"vector<address>"},{"name":"collection_lists","type":"vector<0x1::string::String>"},{"name":"name_lists","type":"vector<0x1::string::String>"},{"name":"property_version_lists","type":"vector<u64>"},{"name":"token_amount_lists","type":"vector<u64>"},{"name":"coin_amount_lists","type":"vector<u64>"},{"name":"locked_until_secs_lists","type":"vector<u64>"},{"name":"market_address_lists","type":"vector<address>"},{"name":"market_name_lists","type":"vector<0x1::string::String>"}]},{"name":"Topaz_V2_buy_many","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"listers","type":"vector<address>"},{"name":"prices","type":"vector<u64>"},{"name":"amounts","type":"vector<u64>"},{"name":"creators","type":"vector<address>"},{"name":"collections","type":"vector<0x1::string::String>"},{"name":"names","type":"vector<0x1::string::String>"},{"name":"property_versions","type":"vector<u64>"}]},{"name":"Topaz_V2_delist","is_native":false,"abilities":["copy","drop"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"amounts","type":"vector<u64>"},{"name":"creators","type":"vector<address>"},{"name":"collections","type":"vector<0x1::string::String>"},{"name":"names","type":"vector<0x1::string::String>"},{"name":"property_versions","type":"vector<u64>"}]}]}'
281
+ );
282
+ }
283
+
284
+ export class token_coin_swap extends AptosBaseProcessor {
285
+ constructor(options: AptosBindOptions) {
286
+ super("token_coin_swap", options);
287
+ }
288
+ static DEFAULT_OPTIONS: AptosBindOptions = {
289
+ address:
290
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4",
291
+ network: AptosNetwork.MAIN_NET,
292
+ };
293
+
294
+ static bind(options: Partial<AptosBindOptions> = {}): token_coin_swap {
295
+ return new token_coin_swap({
296
+ ...token_coin_swap.DEFAULT_OPTIONS,
297
+ ...options,
298
+ });
299
+ }
300
+
301
+ onEntryListTokenForSwap(
302
+ func: (
303
+ call: token_coin_swap.ListTokenForSwapPayload,
304
+ ctx: AptosContext
305
+ ) => void,
306
+ filter?: CallFilter,
307
+ fetchConfig?: AptosFetchConfig
308
+ ): token_coin_swap {
309
+ this.onEntryFunctionCall(
310
+ func,
311
+ {
312
+ ...filter,
313
+ function: "token_coin_swap::list_token_for_swap",
314
+ },
315
+ fetchConfig
316
+ );
317
+ return this;
318
+ }
319
+
320
+ onEventTokenListingEvent(
321
+ func: (
322
+ event: token_coin_swap.TokenListingEventInstance,
323
+ ctx: AptosContext
324
+ ) => void,
325
+ fetchConfig?: AptosFetchConfig
326
+ ): token_coin_swap {
327
+ this.onEvent(
328
+ func,
329
+ {
330
+ type: "token_coin_swap::TokenListingEvent",
331
+ },
332
+ fetchConfig
333
+ );
334
+ return this;
335
+ }
336
+
337
+ onEventTokenSwapEvent(
338
+ func: (
339
+ event: token_coin_swap.TokenSwapEventInstance,
340
+ ctx: AptosContext
341
+ ) => void,
342
+ fetchConfig?: AptosFetchConfig
343
+ ): token_coin_swap {
344
+ this.onEvent(
345
+ func,
346
+ {
347
+ type: "token_coin_swap::TokenSwapEvent",
348
+ },
349
+ fetchConfig
350
+ );
351
+ return this;
352
+ }
353
+
354
+ loadTypesInternal(registry: MoveCoder) {
355
+ loadAllTypes(registry);
356
+ }
357
+ }
358
+
359
+ export namespace token_coin_swap {
360
+ export class TokenCoinSwap<T0> {
361
+ static TYPE_QNAME =
362
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenCoinSwap";
363
+ token_amount: bigint;
364
+ min_price_per_token: bigint;
365
+ }
366
+
367
+ export class TokenEscrow {
368
+ static TYPE_QNAME =
369
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenEscrow";
370
+ token: _0x3.token.Token;
371
+ locked_until_secs: bigint;
372
+ }
373
+
374
+ export class TokenListingEvent {
375
+ static TYPE_QNAME =
376
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenListingEvent";
377
+ token_id: _0x3.token.TokenId;
378
+ amount: bigint;
379
+ min_price: bigint;
380
+ locked_until_secs: bigint;
381
+ coin_type_info: _0x1.type_info.TypeInfo;
382
+ }
383
+
384
+ export interface TokenListingEventInstance
385
+ extends TypedEventInstance<TokenListingEvent> {
386
+ data_decoded: TokenListingEvent;
387
+ type_arguments: [];
388
+ }
389
+
390
+ export class TokenListings<T0> {
391
+ static TYPE_QNAME =
392
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenListings";
393
+ listings: _0x1.table.Table<
394
+ _0x3.token.TokenId,
395
+ token_coin_swap.TokenCoinSwap<T0>
396
+ >;
397
+ listing_events: _0x1.event.EventHandle<token_coin_swap.TokenListingEvent>;
398
+ swap_events: _0x1.event.EventHandle<token_coin_swap.TokenSwapEvent>;
399
+ }
400
+
401
+ export class TokenStoreEscrow {
402
+ static TYPE_QNAME =
403
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenStoreEscrow";
404
+ token_escrows: _0x1.table.Table<
405
+ _0x3.token.TokenId,
406
+ token_coin_swap.TokenEscrow
407
+ >;
408
+ }
409
+
410
+ export class TokenSwapEvent {
411
+ static TYPE_QNAME =
412
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenSwapEvent";
413
+ token_id: _0x3.token.TokenId;
414
+ token_buyer: Address;
415
+ token_amount: bigint;
416
+ coin_amount: bigint;
417
+ coin_type_info: _0x1.type_info.TypeInfo;
418
+ }
419
+
420
+ export interface TokenSwapEventInstance
421
+ extends TypedEventInstance<TokenSwapEvent> {
422
+ data_decoded: TokenSwapEvent;
423
+ type_arguments: [];
424
+ }
425
+
426
+ export interface ListTokenForSwapPayload<T0 = any>
427
+ extends TypedEntryFunctionPayload<
428
+ [Address, string, string, bigint, bigint, bigint, bigint]
429
+ > {
430
+ arguments_decoded: [
431
+ Address,
432
+ string,
433
+ string,
434
+ bigint,
435
+ bigint,
436
+ bigint,
437
+ bigint
438
+ ];
439
+ type_arguments: [string];
440
+ }
441
+
442
+ export function loadTypes(_r: MoveCoder) {
443
+ loadAllTypes(_r);
444
+ }
445
+ export const ABI: MoveModule = JSON.parse(
446
+ '{"address":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4","name":"token_coin_swap","friends":[],"exposed_functions":[{"name":"cancel_token_listing","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x3::token::TokenId","u64"],"return":[]},{"name":"deposit_token_to_escrow","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenId","0x3::token::Token","u64"],"return":[]},{"name":"does_listing_exist","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","0x3::token::TokenId"],"return":["bool"]},{"name":"exchange_coin_for_token","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64","address","address","0x1::string::String","0x1::string::String","u64","u64"],"return":[]},{"name":"list_token_for_swap","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64"],"return":[]},{"name":"withdraw_token_from_escrow","visibility":"public","is_entry":false,"generic_type_params":[],"params":["&signer","0x3::token::TokenId","u64"],"return":["0x3::token::Token"]}],"structs":[{"name":"TokenCoinSwap","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"token_amount","type":"u64"},{"name":"min_price_per_token","type":"u64"}]},{"name":"TokenEscrow","is_native":false,"abilities":["store"],"generic_type_params":[],"fields":[{"name":"token","type":"0x3::token::Token"},{"name":"locked_until_secs","type":"u64"}]},{"name":"TokenListingEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"token_id","type":"0x3::token::TokenId"},{"name":"amount","type":"u64"},{"name":"min_price","type":"u64"},{"name":"locked_until_secs","type":"u64"},{"name":"coin_type_info","type":"0x1::type_info::TypeInfo"}]},{"name":"TokenListings","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"listings","type":"0x1::table::Table<0x3::token::TokenId, 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenCoinSwap<T0>>"},{"name":"listing_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenListingEvent>"},{"name":"swap_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenSwapEvent>"}]},{"name":"TokenStoreEscrow","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"token_escrows","type":"0x1::table::Table<0x3::token::TokenId, 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::token_coin_swap::TokenEscrow>"}]},{"name":"TokenSwapEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"token_id","type":"0x3::token::TokenId"},{"name":"token_buyer","type":"address"},{"name":"token_amount","type":"u64"},{"name":"coin_amount","type":"u64"},{"name":"coin_type_info","type":"0x1::type_info::TypeInfo"}]}]}'
447
+ );
448
+ }
449
+
450
+ export class FixedPriceMarket extends AptosBaseProcessor {
451
+ constructor(options: AptosBindOptions) {
452
+ super("FixedPriceMarket", options);
453
+ }
454
+ static DEFAULT_OPTIONS: AptosBindOptions = {
455
+ address:
456
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4",
457
+ network: AptosNetwork.MAIN_NET,
458
+ };
459
+
460
+ static bind(options: Partial<AptosBindOptions> = {}): FixedPriceMarket {
461
+ return new FixedPriceMarket({
462
+ ...FixedPriceMarket.DEFAULT_OPTIONS,
463
+ ...options,
464
+ });
465
+ }
466
+
467
+ onEntryAddAcl(
468
+ func: (call: FixedPriceMarket.AddAclPayload, ctx: AptosContext) => void,
469
+ filter?: CallFilter,
470
+ fetchConfig?: AptosFetchConfig
471
+ ): FixedPriceMarket {
472
+ this.onEntryFunctionCall(
473
+ func,
474
+ {
475
+ ...filter,
476
+ function: "FixedPriceMarket::add_acl",
477
+ },
478
+ fetchConfig
479
+ );
480
+ return this;
481
+ }
482
+
483
+ onEntryBatchBuyScript(
484
+ func: (
485
+ call: FixedPriceMarket.BatchBuyScriptPayload,
486
+ ctx: AptosContext
487
+ ) => void,
488
+ filter?: CallFilter,
489
+ fetchConfig?: AptosFetchConfig
490
+ ): FixedPriceMarket {
491
+ this.onEntryFunctionCall(
492
+ func,
493
+ {
494
+ ...filter,
495
+ function: "FixedPriceMarket::batch_buy_script",
496
+ },
497
+ fetchConfig
498
+ );
499
+ return this;
500
+ }
501
+
502
+ onEntryBatchCancelListScript(
503
+ func: (
504
+ call: FixedPriceMarket.BatchCancelListScriptPayload,
505
+ ctx: AptosContext
506
+ ) => void,
507
+ filter?: CallFilter,
508
+ fetchConfig?: AptosFetchConfig
509
+ ): FixedPriceMarket {
510
+ this.onEntryFunctionCall(
511
+ func,
512
+ {
513
+ ...filter,
514
+ function: "FixedPriceMarket::batch_cancel_list_script",
515
+ },
516
+ fetchConfig
517
+ );
518
+ return this;
519
+ }
520
+
521
+ onEntryBatchChangePriceScript(
522
+ func: (
523
+ call: FixedPriceMarket.BatchChangePriceScriptPayload,
524
+ ctx: AptosContext
525
+ ) => void,
526
+ filter?: CallFilter,
527
+ fetchConfig?: AptosFetchConfig
528
+ ): FixedPriceMarket {
529
+ this.onEntryFunctionCall(
530
+ func,
531
+ {
532
+ ...filter,
533
+ function: "FixedPriceMarket::batch_change_price_script",
534
+ },
535
+ fetchConfig
536
+ );
537
+ return this;
538
+ }
539
+
540
+ onEntryBatchListScript(
541
+ func: (
542
+ call: FixedPriceMarket.BatchListScriptPayload,
543
+ ctx: AptosContext
544
+ ) => void,
545
+ filter?: CallFilter,
546
+ fetchConfig?: AptosFetchConfig
547
+ ): FixedPriceMarket {
548
+ this.onEntryFunctionCall(
549
+ func,
550
+ {
551
+ ...filter,
552
+ function: "FixedPriceMarket::batch_list_script",
553
+ },
554
+ fetchConfig
555
+ );
556
+ return this;
557
+ }
558
+
559
+ onEntryBuyScript(
560
+ func: (call: FixedPriceMarket.BuyScriptPayload, ctx: AptosContext) => void,
561
+ filter?: CallFilter,
562
+ fetchConfig?: AptosFetchConfig
563
+ ): FixedPriceMarket {
564
+ this.onEntryFunctionCall(
565
+ func,
566
+ {
567
+ ...filter,
568
+ function: "FixedPriceMarket::buy_script",
569
+ },
570
+ fetchConfig
571
+ );
572
+ return this;
573
+ }
574
+
575
+ onEntryCancelListScript(
576
+ func: (
577
+ call: FixedPriceMarket.CancelListScriptPayload,
578
+ ctx: AptosContext
579
+ ) => void,
580
+ filter?: CallFilter,
581
+ fetchConfig?: AptosFetchConfig
582
+ ): FixedPriceMarket {
583
+ this.onEntryFunctionCall(
584
+ func,
585
+ {
586
+ ...filter,
587
+ function: "FixedPriceMarket::cancel_list_script",
588
+ },
589
+ fetchConfig
590
+ );
591
+ return this;
592
+ }
593
+
594
+ onEntryChangePriceScript(
595
+ func: (
596
+ call: FixedPriceMarket.ChangePriceScriptPayload,
597
+ ctx: AptosContext
598
+ ) => void,
599
+ filter?: CallFilter,
600
+ fetchConfig?: AptosFetchConfig
601
+ ): FixedPriceMarket {
602
+ this.onEntryFunctionCall(
603
+ func,
604
+ {
605
+ ...filter,
606
+ function: "FixedPriceMarket::change_price_script",
607
+ },
608
+ fetchConfig
609
+ );
610
+ return this;
611
+ }
612
+
613
+ onEntryCreateMarket(
614
+ func: (
615
+ call: FixedPriceMarket.CreateMarketPayload,
616
+ ctx: AptosContext
617
+ ) => void,
618
+ filter?: CallFilter,
619
+ fetchConfig?: AptosFetchConfig
620
+ ): FixedPriceMarket {
621
+ this.onEntryFunctionCall(
622
+ func,
623
+ {
624
+ ...filter,
625
+ function: "FixedPriceMarket::create_market",
626
+ },
627
+ fetchConfig
628
+ );
629
+ return this;
630
+ }
631
+
632
+ onEntryListScript(
633
+ func: (call: FixedPriceMarket.ListScriptPayload, ctx: AptosContext) => void,
634
+ filter?: CallFilter,
635
+ fetchConfig?: AptosFetchConfig
636
+ ): FixedPriceMarket {
637
+ this.onEntryFunctionCall(
638
+ func,
639
+ {
640
+ ...filter,
641
+ function: "FixedPriceMarket::list_script",
642
+ },
643
+ fetchConfig
644
+ );
645
+ return this;
646
+ }
647
+
648
+ onEntryTransferEscrow(
649
+ func: (
650
+ call: FixedPriceMarket.TransferEscrowPayload,
651
+ ctx: AptosContext
652
+ ) => void,
653
+ filter?: CallFilter,
654
+ fetchConfig?: AptosFetchConfig
655
+ ): FixedPriceMarket {
656
+ this.onEntryFunctionCall(
657
+ func,
658
+ {
659
+ ...filter,
660
+ function: "FixedPriceMarket::transfer_escrow",
661
+ },
662
+ fetchConfig
663
+ );
664
+ return this;
665
+ }
666
+
667
+ onEntryUpdateMarket(
668
+ func: (
669
+ call: FixedPriceMarket.UpdateMarketPayload,
670
+ ctx: AptosContext
671
+ ) => void,
672
+ filter?: CallFilter,
673
+ fetchConfig?: AptosFetchConfig
674
+ ): FixedPriceMarket {
675
+ this.onEntryFunctionCall(
676
+ func,
677
+ {
678
+ ...filter,
679
+ function: "FixedPriceMarket::update_market",
680
+ },
681
+ fetchConfig
682
+ );
683
+ return this;
684
+ }
685
+
686
+ onEntryWithdrawFeeToPayee(
687
+ func: (
688
+ call: FixedPriceMarket.WithdrawFeeToPayeePayload,
689
+ ctx: AptosContext
690
+ ) => void,
691
+ filter?: CallFilter,
692
+ fetchConfig?: AptosFetchConfig
693
+ ): FixedPriceMarket {
694
+ this.onEntryFunctionCall(
695
+ func,
696
+ {
697
+ ...filter,
698
+ function: "FixedPriceMarket::withdraw_fee_to_payee",
699
+ },
700
+ fetchConfig
701
+ );
702
+ return this;
703
+ }
704
+
705
+ onEventCreateMarketEvent(
706
+ func: (
707
+ event: FixedPriceMarket.CreateMarketEventInstance,
708
+ ctx: AptosContext
709
+ ) => void,
710
+ fetchConfig?: AptosFetchConfig
711
+ ): FixedPriceMarket {
712
+ this.onEvent(
713
+ func,
714
+ {
715
+ type: "FixedPriceMarket::CreateMarketEvent",
716
+ },
717
+ fetchConfig
718
+ );
719
+ return this;
720
+ }
721
+
722
+ onEventListTokenEvent(
723
+ func: (
724
+ event: FixedPriceMarket.ListTokenEventInstance,
725
+ ctx: AptosContext
726
+ ) => void,
727
+ fetchConfig?: AptosFetchConfig
728
+ ): FixedPriceMarket {
729
+ this.onEvent(
730
+ func,
731
+ {
732
+ type: "FixedPriceMarket::ListTokenEvent",
733
+ },
734
+ fetchConfig
735
+ );
736
+ return this;
737
+ }
738
+
739
+ onEventCancelListTokenEvent(
740
+ func: (
741
+ event: FixedPriceMarket.CancelListTokenEventInstance,
742
+ ctx: AptosContext
743
+ ) => void,
744
+ fetchConfig?: AptosFetchConfig
745
+ ): FixedPriceMarket {
746
+ this.onEvent(
747
+ func,
748
+ {
749
+ type: "FixedPriceMarket::CancelListTokenEvent",
750
+ },
751
+ fetchConfig
752
+ );
753
+ return this;
754
+ }
755
+
756
+ onEventBuyTokenEvent(
757
+ func: (
758
+ event: FixedPriceMarket.BuyTokenEventInstance,
759
+ ctx: AptosContext
760
+ ) => void,
761
+ fetchConfig?: AptosFetchConfig
762
+ ): FixedPriceMarket {
763
+ this.onEvent(
764
+ func,
765
+ {
766
+ type: "FixedPriceMarket::BuyTokenEvent",
767
+ },
768
+ fetchConfig
769
+ );
770
+ return this;
771
+ }
772
+
773
+ loadTypesInternal(registry: MoveCoder) {
774
+ loadAllTypes(registry);
775
+ }
776
+ }
777
+
778
+ export namespace FixedPriceMarket {
779
+ export class ACLBox {
780
+ static TYPE_QNAME =
781
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::ACLBox";
782
+ box: _0x1.acl.ACL;
783
+ }
784
+
785
+ export class BuyTokenEvent<T0> {
786
+ static TYPE_QNAME =
787
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::BuyTokenEvent";
788
+ id: FixedPriceMarket.MarketId<T0>;
789
+ token_id: _0x3.token.TokenId;
790
+ token_amount: bigint;
791
+ buyer: Address;
792
+ token_owner: Address;
793
+ coin_per_token: bigint;
794
+ }
795
+
796
+ export interface BuyTokenEventInstance
797
+ extends TypedEventInstance<BuyTokenEvent<any>> {
798
+ data_decoded: BuyTokenEvent<any>;
799
+ type_arguments: [string];
800
+ }
801
+
802
+ export class CancelListTokenEvent<T0> {
803
+ static TYPE_QNAME =
804
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::CancelListTokenEvent";
805
+ id: FixedPriceMarket.MarketId<T0>;
806
+ token_id: _0x3.token.TokenId;
807
+ token_amount: bigint;
808
+ }
809
+
810
+ export interface CancelListTokenEventInstance
811
+ extends TypedEventInstance<CancelListTokenEvent<any>> {
812
+ data_decoded: CancelListTokenEvent<any>;
813
+ type_arguments: [string];
814
+ }
815
+
816
+ export class CreateMarketEvent<T0> {
817
+ static TYPE_QNAME =
818
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::CreateMarketEvent";
819
+ id: FixedPriceMarket.MarketId<T0>;
820
+ market_fee_point: bigint;
821
+ fee_payee: Address;
822
+ }
823
+
824
+ export interface CreateMarketEventInstance
825
+ extends TypedEventInstance<CreateMarketEvent<any>> {
826
+ data_decoded: CreateMarketEvent<any>;
827
+ type_arguments: [string];
828
+ }
829
+
830
+ export class ListTokenEvent<T0> {
831
+ static TYPE_QNAME =
832
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::ListTokenEvent";
833
+ id: FixedPriceMarket.MarketId<T0>;
834
+ token_id: _0x3.token.TokenId;
835
+ token_owner: Address;
836
+ token_amount: bigint;
837
+ coin_per_token: bigint;
838
+ }
839
+
840
+ export interface ListTokenEventInstance
841
+ extends TypedEventInstance<ListTokenEvent<any>> {
842
+ data_decoded: ListTokenEvent<any>;
843
+ type_arguments: [string];
844
+ }
845
+
846
+ export class MarketConfig<T0> {
847
+ static TYPE_QNAME =
848
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketConfig";
849
+ market_fee_point: bigint;
850
+ fee_payee: Address;
851
+ }
852
+
853
+ export class MarketId<T0> {
854
+ static TYPE_QNAME =
855
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId";
856
+ market_address: Address;
857
+ name: string;
858
+ }
859
+
860
+ export class MarketRecords<T0> {
861
+ static TYPE_QNAME =
862
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketRecords";
863
+ records: _0x1.table.Table<
864
+ FixedPriceMarket.MarketId<T0>,
865
+ FixedPriceMarket.MarketConfig<T0>
866
+ >;
867
+ create_market_events: _0x1.event.EventHandle<
868
+ FixedPriceMarket.CreateMarketEvent<T0>
869
+ >;
870
+ list_token_events: _0x1.event.EventHandle<
871
+ FixedPriceMarket.ListTokenEvent<T0>
872
+ >;
873
+ cancel_list_evnets: _0x1.event.EventHandle<
874
+ FixedPriceMarket.CancelListTokenEvent<T0>
875
+ >;
876
+ buy_token_events: _0x1.event.EventHandle<
877
+ FixedPriceMarket.BuyTokenEvent<T0>
878
+ >;
879
+ }
880
+
881
+ export class ResoureAccountCap {
882
+ static TYPE_QNAME =
883
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::ResoureAccountCap";
884
+ cap: _0x1.account.SignerCapability;
885
+ }
886
+
887
+ export class Ticket<T0> {
888
+ static TYPE_QNAME =
889
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::Ticket";
890
+ market: FixedPriceMarket.MarketId<T0>;
891
+ token_owner: Address;
892
+ coin_per_token: bigint;
893
+ }
894
+
895
+ export class TicketPack<T0> {
896
+ static TYPE_QNAME =
897
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::TicketPack";
898
+ tickets: _0x1.table.Table<_0x3.token.TokenId, FixedPriceMarket.Ticket<T0>>;
899
+ }
900
+
901
+ export interface AddAclPayload
902
+ extends TypedEntryFunctionPayload<[Address[]]> {
903
+ arguments_decoded: [Address[]];
904
+ type_arguments: [];
905
+ }
906
+
907
+ export interface BatchBuyScriptPayload<T0 = any>
908
+ extends TypedEntryFunctionPayload<
909
+ [
910
+ Address[],
911
+ string[],
912
+ string[],
913
+ bigint[],
914
+ bigint[],
915
+ bigint[],
916
+ Address[],
917
+ string[]
918
+ ]
919
+ > {
920
+ arguments_decoded: [
921
+ Address[],
922
+ string[],
923
+ string[],
924
+ bigint[],
925
+ bigint[],
926
+ bigint[],
927
+ Address[],
928
+ string[]
929
+ ];
930
+ type_arguments: [string];
931
+ }
932
+
933
+ export interface BatchCancelListScriptPayload<T0 = any>
934
+ extends TypedEntryFunctionPayload<
935
+ [Address[], string[], string[], bigint[], bigint[], Address[], string[]]
936
+ > {
937
+ arguments_decoded: [
938
+ Address[],
939
+ string[],
940
+ string[],
941
+ bigint[],
942
+ bigint[],
943
+ Address[],
944
+ string[]
945
+ ];
946
+ type_arguments: [string];
947
+ }
948
+
949
+ export interface BatchChangePriceScriptPayload<T0 = any>
950
+ extends TypedEntryFunctionPayload<
951
+ [
952
+ Address[],
953
+ string[],
954
+ string[],
955
+ bigint[],
956
+ bigint[],
957
+ bigint[],
958
+ bigint[],
959
+ Address[],
960
+ string[]
961
+ ]
962
+ > {
963
+ arguments_decoded: [
964
+ Address[],
965
+ string[],
966
+ string[],
967
+ bigint[],
968
+ bigint[],
969
+ bigint[],
970
+ bigint[],
971
+ Address[],
972
+ string[]
973
+ ];
974
+ type_arguments: [string];
975
+ }
976
+
977
+ export interface BatchListScriptPayload<T0 = any>
978
+ extends TypedEntryFunctionPayload<
979
+ [
980
+ Address[],
981
+ string[],
982
+ string[],
983
+ bigint[],
984
+ bigint[],
985
+ bigint[],
986
+ bigint[],
987
+ Address[],
988
+ string[]
989
+ ]
990
+ > {
991
+ arguments_decoded: [
992
+ Address[],
993
+ string[],
994
+ string[],
995
+ bigint[],
996
+ bigint[],
997
+ bigint[],
998
+ bigint[],
999
+ Address[],
1000
+ string[]
1001
+ ];
1002
+ type_arguments: [string];
1003
+ }
1004
+
1005
+ export interface BuyScriptPayload<T0 = any>
1006
+ extends TypedEntryFunctionPayload<
1007
+ [Address, string, string, bigint, bigint, bigint, Address, string]
1008
+ > {
1009
+ arguments_decoded: [
1010
+ Address,
1011
+ string,
1012
+ string,
1013
+ bigint,
1014
+ bigint,
1015
+ bigint,
1016
+ Address,
1017
+ string
1018
+ ];
1019
+ type_arguments: [string];
1020
+ }
1021
+
1022
+ export interface CancelListScriptPayload<T0 = any>
1023
+ extends TypedEntryFunctionPayload<
1024
+ [Address, string, string, bigint, bigint, Address, string]
1025
+ > {
1026
+ arguments_decoded: [
1027
+ Address,
1028
+ string,
1029
+ string,
1030
+ bigint,
1031
+ bigint,
1032
+ Address,
1033
+ string
1034
+ ];
1035
+ type_arguments: [string];
1036
+ }
1037
+
1038
+ export interface ChangePriceScriptPayload<T0 = any>
1039
+ extends TypedEntryFunctionPayload<
1040
+ [Address, string, string, bigint, bigint, bigint, bigint, Address, string]
1041
+ > {
1042
+ arguments_decoded: [
1043
+ Address,
1044
+ string,
1045
+ string,
1046
+ bigint,
1047
+ bigint,
1048
+ bigint,
1049
+ bigint,
1050
+ Address,
1051
+ string
1052
+ ];
1053
+ type_arguments: [string];
1054
+ }
1055
+
1056
+ export interface CreateMarketPayload<T0 = any>
1057
+ extends TypedEntryFunctionPayload<[bigint, Address, string]> {
1058
+ arguments_decoded: [bigint, Address, string];
1059
+ type_arguments: [string];
1060
+ }
1061
+
1062
+ export interface ListScriptPayload<T0 = any>
1063
+ extends TypedEntryFunctionPayload<
1064
+ [Address, string, string, bigint, bigint, bigint, bigint, Address, string]
1065
+ > {
1066
+ arguments_decoded: [
1067
+ Address,
1068
+ string,
1069
+ string,
1070
+ bigint,
1071
+ bigint,
1072
+ bigint,
1073
+ bigint,
1074
+ Address,
1075
+ string
1076
+ ];
1077
+ type_arguments: [string];
1078
+ }
1079
+
1080
+ export interface TransferEscrowPayload<T0 = any>
1081
+ extends TypedEntryFunctionPayload<
1082
+ [Address, string, string, bigint, bigint, FixedPriceMarket.MarketId<T0>]
1083
+ > {
1084
+ arguments_decoded: [
1085
+ Address,
1086
+ string,
1087
+ string,
1088
+ bigint,
1089
+ bigint,
1090
+ FixedPriceMarket.MarketId<T0>
1091
+ ];
1092
+ type_arguments: [string];
1093
+ }
1094
+
1095
+ export interface UpdateMarketPayload<T0 = any>
1096
+ extends TypedEntryFunctionPayload<[bigint, Address, string]> {
1097
+ arguments_decoded: [bigint, Address, string];
1098
+ type_arguments: [string];
1099
+ }
1100
+
1101
+ export interface WithdrawFeeToPayeePayload<T0 = any>
1102
+ extends TypedEntryFunctionPayload<[Address, string]> {
1103
+ arguments_decoded: [Address, string];
1104
+ type_arguments: [string];
1105
+ }
1106
+
1107
+ export function loadTypes(_r: MoveCoder) {
1108
+ loadAllTypes(_r);
1109
+ }
1110
+ export const ABI: MoveModule = JSON.parse(
1111
+ '{"address":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4","name":"FixedPriceMarket","friends":[],"exposed_functions":[{"name":"add_acl","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","vector<address>"],"return":[]},{"name":"batch_buy_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_cancel_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_change_price_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"buy","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"],"return":[]},{"name":"buy_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"cancel_list","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x3::token::TokenId","0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>","u64"],"return":[]},{"name":"cancel_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","address","0x1::string::String"],"return":[]},{"name":"change_price_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"create_market","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64","address","0x1::string::String"],"return":[]},{"name":"create_market_id_raw","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","0x1::string::String"],"return":["0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"]},{"name":"is_ticket_exsit","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["address","0x3::token::TokenId"],"return":["bool"]},{"name":"list","visibility":"public","is_entry":false,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"],"return":[]},{"name":"list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"transfer_escrow","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"],"return":[]},{"name":"update_market","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","u64","address","0x1::string::String"],"return":[]},{"name":"withdraw_fee_to_payee","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String"],"return":[]}],"structs":[{"name":"ACLBox","is_native":false,"abilities":["copy","drop","store","key"],"generic_type_params":[],"fields":[{"name":"box","type":"0x1::acl::ACL"}]},{"name":"BuyTokenEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"id","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"token_amount","type":"u64"},{"name":"buyer","type":"address"},{"name":"token_owner","type":"address"},{"name":"coin_per_token","type":"u64"}]},{"name":"CancelListTokenEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"id","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"token_amount","type":"u64"}]},{"name":"CreateMarketEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"id","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"market_fee_point","type":"u64"},{"name":"fee_payee","type":"address"}]},{"name":"ListTokenEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"id","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"token_id","type":"0x3::token::TokenId"},{"name":"token_owner","type":"address"},{"name":"token_amount","type":"u64"},{"name":"coin_per_token","type":"u64"}]},{"name":"MarketConfig","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"market_fee_point","type":"u64"},{"name":"fee_payee","type":"address"}]},{"name":"MarketId","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"market_address","type":"address"},{"name":"name","type":"0x1::string::String"}]},{"name":"MarketRecords","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"records","type":"0x1::table::Table<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>, 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketConfig<T0>>"},{"name":"create_market_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::CreateMarketEvent<T0>>"},{"name":"list_token_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::ListTokenEvent<T0>>"},{"name":"cancel_list_evnets","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::CancelListTokenEvent<T0>>"},{"name":"buy_token_events","type":"0x1::event::EventHandle<0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::BuyTokenEvent<T0>>"}]},{"name":"ResoureAccountCap","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"cap","type":"0x1::account::SignerCapability"}]},{"name":"Ticket","is_native":false,"abilities":["drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"market","type":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::MarketId<T0>"},{"name":"token_owner","type":"address"},{"name":"coin_per_token","type":"u64"}]},{"name":"TicketPack","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"tickets","type":"0x1::table::Table<0x3::token::TokenId, 0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4::FixedPriceMarket::Ticket<T0>>"}]}]}'
1112
+ );
1113
+ }
1114
+
1115
+ export class FixedPriceMarketScript extends AptosBaseProcessor {
1116
+ constructor(options: AptosBindOptions) {
1117
+ super("FixedPriceMarketScript", options);
1118
+ }
1119
+ static DEFAULT_OPTIONS: AptosBindOptions = {
1120
+ address:
1121
+ "0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4",
1122
+ network: AptosNetwork.MAIN_NET,
1123
+ };
1124
+
1125
+ static bind(options: Partial<AptosBindOptions> = {}): FixedPriceMarketScript {
1126
+ return new FixedPriceMarketScript({
1127
+ ...FixedPriceMarketScript.DEFAULT_OPTIONS,
1128
+ ...options,
1129
+ });
1130
+ }
1131
+
1132
+ onEntryBatchBuyScript(
1133
+ func: (
1134
+ call: FixedPriceMarketScript.BatchBuyScriptPayload,
1135
+ ctx: AptosContext
1136
+ ) => void,
1137
+ filter?: CallFilter,
1138
+ fetchConfig?: AptosFetchConfig
1139
+ ): FixedPriceMarketScript {
1140
+ this.onEntryFunctionCall(
1141
+ func,
1142
+ {
1143
+ ...filter,
1144
+ function: "FixedPriceMarketScript::batch_buy_script",
1145
+ },
1146
+ fetchConfig
1147
+ );
1148
+ return this;
1149
+ }
1150
+
1151
+ onEntryBatchCancelListScript(
1152
+ func: (
1153
+ call: FixedPriceMarketScript.BatchCancelListScriptPayload,
1154
+ ctx: AptosContext
1155
+ ) => void,
1156
+ filter?: CallFilter,
1157
+ fetchConfig?: AptosFetchConfig
1158
+ ): FixedPriceMarketScript {
1159
+ this.onEntryFunctionCall(
1160
+ func,
1161
+ {
1162
+ ...filter,
1163
+ function: "FixedPriceMarketScript::batch_cancel_list_script",
1164
+ },
1165
+ fetchConfig
1166
+ );
1167
+ return this;
1168
+ }
1169
+
1170
+ onEntryBatchChangePriceScript(
1171
+ func: (
1172
+ call: FixedPriceMarketScript.BatchChangePriceScriptPayload,
1173
+ ctx: AptosContext
1174
+ ) => void,
1175
+ filter?: CallFilter,
1176
+ fetchConfig?: AptosFetchConfig
1177
+ ): FixedPriceMarketScript {
1178
+ this.onEntryFunctionCall(
1179
+ func,
1180
+ {
1181
+ ...filter,
1182
+ function: "FixedPriceMarketScript::batch_change_price_script",
1183
+ },
1184
+ fetchConfig
1185
+ );
1186
+ return this;
1187
+ }
1188
+
1189
+ onEntryBatchListScript(
1190
+ func: (
1191
+ call: FixedPriceMarketScript.BatchListScriptPayload,
1192
+ ctx: AptosContext
1193
+ ) => void,
1194
+ filter?: CallFilter,
1195
+ fetchConfig?: AptosFetchConfig
1196
+ ): FixedPriceMarketScript {
1197
+ this.onEntryFunctionCall(
1198
+ func,
1199
+ {
1200
+ ...filter,
1201
+ function: "FixedPriceMarketScript::batch_list_script",
1202
+ },
1203
+ fetchConfig
1204
+ );
1205
+ return this;
1206
+ }
1207
+
1208
+ onEntryBatchTransferEscrow(
1209
+ func: (
1210
+ call: FixedPriceMarketScript.BatchTransferEscrowPayload,
1211
+ ctx: AptosContext
1212
+ ) => void,
1213
+ filter?: CallFilter,
1214
+ fetchConfig?: AptosFetchConfig
1215
+ ): FixedPriceMarketScript {
1216
+ this.onEntryFunctionCall(
1217
+ func,
1218
+ {
1219
+ ...filter,
1220
+ function: "FixedPriceMarketScript::batch_transfer_escrow",
1221
+ },
1222
+ fetchConfig
1223
+ );
1224
+ return this;
1225
+ }
1226
+
1227
+ onEntryBatchTransferTokens(
1228
+ func: (
1229
+ call: FixedPriceMarketScript.BatchTransferTokensPayload,
1230
+ ctx: AptosContext
1231
+ ) => void,
1232
+ filter?: CallFilter,
1233
+ fetchConfig?: AptosFetchConfig
1234
+ ): FixedPriceMarketScript {
1235
+ this.onEntryFunctionCall(
1236
+ func,
1237
+ {
1238
+ ...filter,
1239
+ function: "FixedPriceMarketScript::batch_transfer_tokens",
1240
+ },
1241
+ fetchConfig
1242
+ );
1243
+ return this;
1244
+ }
1245
+
1246
+ onEntryBuyScript(
1247
+ func: (
1248
+ call: FixedPriceMarketScript.BuyScriptPayload,
1249
+ ctx: AptosContext
1250
+ ) => void,
1251
+ filter?: CallFilter,
1252
+ fetchConfig?: AptosFetchConfig
1253
+ ): FixedPriceMarketScript {
1254
+ this.onEntryFunctionCall(
1255
+ func,
1256
+ {
1257
+ ...filter,
1258
+ function: "FixedPriceMarketScript::buy_script",
1259
+ },
1260
+ fetchConfig
1261
+ );
1262
+ return this;
1263
+ }
1264
+
1265
+ onEntryCancelListScript(
1266
+ func: (
1267
+ call: FixedPriceMarketScript.CancelListScriptPayload,
1268
+ ctx: AptosContext
1269
+ ) => void,
1270
+ filter?: CallFilter,
1271
+ fetchConfig?: AptosFetchConfig
1272
+ ): FixedPriceMarketScript {
1273
+ this.onEntryFunctionCall(
1274
+ func,
1275
+ {
1276
+ ...filter,
1277
+ function: "FixedPriceMarketScript::cancel_list_script",
1278
+ },
1279
+ fetchConfig
1280
+ );
1281
+ return this;
1282
+ }
1283
+
1284
+ onEntryChangePriceScript(
1285
+ func: (
1286
+ call: FixedPriceMarketScript.ChangePriceScriptPayload,
1287
+ ctx: AptosContext
1288
+ ) => void,
1289
+ filter?: CallFilter,
1290
+ fetchConfig?: AptosFetchConfig
1291
+ ): FixedPriceMarketScript {
1292
+ this.onEntryFunctionCall(
1293
+ func,
1294
+ {
1295
+ ...filter,
1296
+ function: "FixedPriceMarketScript::change_price_script",
1297
+ },
1298
+ fetchConfig
1299
+ );
1300
+ return this;
1301
+ }
1302
+
1303
+ onEntryListScript(
1304
+ func: (
1305
+ call: FixedPriceMarketScript.ListScriptPayload,
1306
+ ctx: AptosContext
1307
+ ) => void,
1308
+ filter?: CallFilter,
1309
+ fetchConfig?: AptosFetchConfig
1310
+ ): FixedPriceMarketScript {
1311
+ this.onEntryFunctionCall(
1312
+ func,
1313
+ {
1314
+ ...filter,
1315
+ function: "FixedPriceMarketScript::list_script",
1316
+ },
1317
+ fetchConfig
1318
+ );
1319
+ return this;
1320
+ }
1321
+
1322
+ onEntryOptInDirectTransfer(
1323
+ func: (
1324
+ call: FixedPriceMarketScript.OptInDirectTransferPayload,
1325
+ ctx: AptosContext
1326
+ ) => void,
1327
+ filter?: CallFilter,
1328
+ fetchConfig?: AptosFetchConfig
1329
+ ): FixedPriceMarketScript {
1330
+ this.onEntryFunctionCall(
1331
+ func,
1332
+ {
1333
+ ...filter,
1334
+ function: "FixedPriceMarketScript::opt_in_direct_transfer",
1335
+ },
1336
+ fetchConfig
1337
+ );
1338
+ return this;
1339
+ }
1340
+
1341
+ loadTypesInternal(registry: MoveCoder) {
1342
+ loadAllTypes(registry);
1343
+ }
1344
+ }
1345
+
1346
+ export namespace FixedPriceMarketScript {
1347
+ export interface BatchBuyScriptPayload<T0 = any>
1348
+ extends TypedEntryFunctionPayload<
1349
+ [
1350
+ Address[],
1351
+ string[],
1352
+ string[],
1353
+ bigint[],
1354
+ bigint[],
1355
+ bigint[],
1356
+ Address[],
1357
+ string[]
1358
+ ]
1359
+ > {
1360
+ arguments_decoded: [
1361
+ Address[],
1362
+ string[],
1363
+ string[],
1364
+ bigint[],
1365
+ bigint[],
1366
+ bigint[],
1367
+ Address[],
1368
+ string[]
1369
+ ];
1370
+ type_arguments: [string];
1371
+ }
1372
+
1373
+ export interface BatchCancelListScriptPayload<T0 = any>
1374
+ extends TypedEntryFunctionPayload<
1375
+ [Address[], string[], string[], bigint[], bigint[], Address[], string[]]
1376
+ > {
1377
+ arguments_decoded: [
1378
+ Address[],
1379
+ string[],
1380
+ string[],
1381
+ bigint[],
1382
+ bigint[],
1383
+ Address[],
1384
+ string[]
1385
+ ];
1386
+ type_arguments: [string];
1387
+ }
1388
+
1389
+ export interface BatchChangePriceScriptPayload<T0 = any>
1390
+ extends TypedEntryFunctionPayload<
1391
+ [
1392
+ Address[],
1393
+ string[],
1394
+ string[],
1395
+ bigint[],
1396
+ bigint[],
1397
+ bigint[],
1398
+ bigint[],
1399
+ Address[],
1400
+ string[]
1401
+ ]
1402
+ > {
1403
+ arguments_decoded: [
1404
+ Address[],
1405
+ string[],
1406
+ string[],
1407
+ bigint[],
1408
+ bigint[],
1409
+ bigint[],
1410
+ bigint[],
1411
+ Address[],
1412
+ string[]
1413
+ ];
1414
+ type_arguments: [string];
1415
+ }
1416
+
1417
+ export interface BatchListScriptPayload<T0 = any>
1418
+ extends TypedEntryFunctionPayload<
1419
+ [
1420
+ Address[],
1421
+ string[],
1422
+ string[],
1423
+ bigint[],
1424
+ bigint[],
1425
+ bigint[],
1426
+ bigint[],
1427
+ Address[],
1428
+ string[]
1429
+ ]
1430
+ > {
1431
+ arguments_decoded: [
1432
+ Address[],
1433
+ string[],
1434
+ string[],
1435
+ bigint[],
1436
+ bigint[],
1437
+ bigint[],
1438
+ bigint[],
1439
+ Address[],
1440
+ string[]
1441
+ ];
1442
+ type_arguments: [string];
1443
+ }
1444
+
1445
+ export interface BatchTransferEscrowPayload<T0 = any>
1446
+ extends TypedEntryFunctionPayload<
1447
+ [Address[], string[], string[], bigint[], bigint[], Address[], string[]]
1448
+ > {
1449
+ arguments_decoded: [
1450
+ Address[],
1451
+ string[],
1452
+ string[],
1453
+ bigint[],
1454
+ bigint[],
1455
+ Address[],
1456
+ string[]
1457
+ ];
1458
+ type_arguments: [string];
1459
+ }
1460
+
1461
+ export interface BatchTransferTokensPayload
1462
+ extends TypedEntryFunctionPayload<
1463
+ [Address, Address[], string[], string[], bigint[], bigint[]]
1464
+ > {
1465
+ arguments_decoded: [
1466
+ Address,
1467
+ Address[],
1468
+ string[],
1469
+ string[],
1470
+ bigint[],
1471
+ bigint[]
1472
+ ];
1473
+ type_arguments: [];
1474
+ }
1475
+
1476
+ export interface BuyScriptPayload<T0 = any>
1477
+ extends TypedEntryFunctionPayload<
1478
+ [Address, string, string, bigint, bigint, bigint, Address, string]
1479
+ > {
1480
+ arguments_decoded: [
1481
+ Address,
1482
+ string,
1483
+ string,
1484
+ bigint,
1485
+ bigint,
1486
+ bigint,
1487
+ Address,
1488
+ string
1489
+ ];
1490
+ type_arguments: [string];
1491
+ }
1492
+
1493
+ export interface CancelListScriptPayload<T0 = any>
1494
+ extends TypedEntryFunctionPayload<
1495
+ [Address, string, string, bigint, bigint, Address, string]
1496
+ > {
1497
+ arguments_decoded: [
1498
+ Address,
1499
+ string,
1500
+ string,
1501
+ bigint,
1502
+ bigint,
1503
+ Address,
1504
+ string
1505
+ ];
1506
+ type_arguments: [string];
1507
+ }
1508
+
1509
+ export interface ChangePriceScriptPayload<T0 = any>
1510
+ extends TypedEntryFunctionPayload<
1511
+ [Address, string, string, bigint, bigint, bigint, bigint, Address, string]
1512
+ > {
1513
+ arguments_decoded: [
1514
+ Address,
1515
+ string,
1516
+ string,
1517
+ bigint,
1518
+ bigint,
1519
+ bigint,
1520
+ bigint,
1521
+ Address,
1522
+ string
1523
+ ];
1524
+ type_arguments: [string];
1525
+ }
1526
+
1527
+ export interface ListScriptPayload<T0 = any>
1528
+ extends TypedEntryFunctionPayload<
1529
+ [Address, string, string, bigint, bigint, bigint, bigint, Address, string]
1530
+ > {
1531
+ arguments_decoded: [
1532
+ Address,
1533
+ string,
1534
+ string,
1535
+ bigint,
1536
+ bigint,
1537
+ bigint,
1538
+ bigint,
1539
+ Address,
1540
+ string
1541
+ ];
1542
+ type_arguments: [string];
1543
+ }
1544
+
1545
+ export interface OptInDirectTransferPayload
1546
+ extends TypedEntryFunctionPayload<[Boolean]> {
1547
+ arguments_decoded: [Boolean];
1548
+ type_arguments: [];
1549
+ }
1550
+
1551
+ export function loadTypes(_r: MoveCoder) {
1552
+ loadAllTypes(_r);
1553
+ }
1554
+ export const ABI: MoveModule = JSON.parse(
1555
+ '{"address":"0xf6994988bd40261af9431cd6dd3fcf765569719e66322c7a05cc78a89cd366d4","name":"FixedPriceMarketScript","friends":[],"exposed_functions":[{"name":"batch_buy_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_cancel_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_change_price_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_transfer_escrow","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>","vector<address>","vector<0x1::string::String>"],"return":[]},{"name":"batch_transfer_tokens","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","address","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>"],"return":[]},{"name":"buy_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"cancel_list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","address","0x1::string::String"],"return":[]},{"name":"change_price_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"list_script","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","u64","u64","u64","u64","address","0x1::string::String"],"return":[]},{"name":"opt_in_direct_transfer","visibility":"public","is_entry":true,"generic_type_params":[],"params":["&signer","bool"],"return":[]}],"structs":[]}'
1556
+ );
1557
+ }
1558
+
1559
+ export function loadAllTypes(_r: MoveCoder) {
1560
+ _0x3.loadAllTypes(_r);
1561
+ _0x1.loadAllTypes(_r);
1562
+
1563
+ _r.load(Aggregator.ABI);
1564
+ _r.load(token_coin_swap.ABI);
1565
+ _r.load(FixedPriceMarket.ABI);
1566
+ _r.load(FixedPriceMarketScript.ABI);
1567
+ }