@sentio/sdk 2.0.0-rc.14 → 2.0.0-rc.16

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