@sentio/sdk 1.27.2 → 1.27.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/lib/aptos/types.js +4 -3
  2. package/lib/aptos/types.js.map +1 -1
  3. package/lib/{tests/aptos.test.d.ts → aptos/types.test.d.ts} +0 -0
  4. package/lib/aptos/types.test.js.map +1 -0
  5. package/lib/aptos/utils.d.ts +2 -1
  6. package/lib/aptos/utils.js +9 -1
  7. package/lib/aptos/utils.js.map +1 -1
  8. package/lib/aptos-codegen/codegen.js +1 -7
  9. package/lib/aptos-codegen/codegen.js.map +1 -1
  10. package/lib/processor-runner.js +2 -2
  11. package/lib/processor-runner.js.map +1 -1
  12. package/package.json +4 -4
  13. package/src/aptos/types.ts +5 -4
  14. package/src/aptos/utils.ts +9 -1
  15. package/src/aptos-codegen/codegen.ts +2 -9
  16. package/src/processor-runner.ts +2 -2
  17. package/lib/core/generic-processor.test.js +0 -58
  18. package/lib/core/meter.test.js +0 -21
  19. package/lib/core/numberish.test.js +0 -70
  20. package/lib/tests/aptos.test.js +0 -304
  21. package/lib/tests/aptos.test.js.map +0 -1
  22. package/lib/tests/codegen.test.d.ts +0 -1
  23. package/lib/tests/codegen.test.js +0 -49
  24. package/lib/tests/codegen.test.js.map +0 -1
  25. package/lib/tests/erc20-template.test.d.ts +0 -1
  26. package/lib/tests/erc20-template.test.js +0 -56
  27. package/lib/tests/erc20-template.test.js.map +0 -1
  28. package/lib/tests/erc20.d.ts +0 -1
  29. package/lib/tests/erc20.js +0 -54
  30. package/lib/tests/erc20.js.map +0 -1
  31. package/lib/tests/erc20.test.d.ts +0 -1
  32. package/lib/tests/erc20.test.js +0 -94
  33. package/lib/tests/erc20.test.js.map +0 -1
  34. package/lib/tests/error-capture.test.d.ts +0 -1
  35. package/lib/tests/error-capture.test.js +0 -76
  36. package/lib/tests/error-capture.test.js.map +0 -1
  37. package/lib/tests/logger.test.d.ts +0 -1
  38. package/lib/tests/logger.test.js +0 -40
  39. package/lib/tests/logger.test.js.map +0 -1
  40. package/lib/tests/solana.test.d.ts +0 -1
  41. package/lib/tests/solana.test.js +0 -77
  42. package/lib/tests/solana.test.js.map +0 -1
  43. package/lib/tests/souffl3.d.ts +0 -1
  44. package/lib/tests/souffl3.js +0 -46
  45. package/lib/tests/souffl3.js.map +0 -1
  46. package/lib/tests/sui.test.d.ts +0 -1
  47. package/lib/tests/sui.test.js +0 -193
  48. package/lib/tests/sui.test.js.map +0 -1
  49. package/lib/tests/types/aptos/soffl3.d.ts +0 -786
  50. package/lib/tests/types/aptos/soffl3.js +0 -559
  51. package/lib/tests/types/aptos/soffl3.js.map +0 -1
  52. package/lib/tests/types/aptos/souffle.d.ts +0 -348
  53. package/lib/tests/types/aptos/souffle.js +0 -303
  54. package/lib/tests/types/aptos/souffle.js.map +0 -1
  55. package/lib/tests/types/solana/basic_1.d.ts +0 -26
  56. package/lib/tests/types/solana/basic_1.js +0 -66
  57. package/lib/tests/types/solana/basic_1.js.map +0 -1
  58. package/lib/tests/types/solana/basic_1_processor.d.ts +0 -13
  59. package/lib/tests/types/solana/basic_1_processor.js +0 -41
  60. package/lib/tests/types/solana/basic_1_processor.js.map +0 -1
  61. package/lib/tests/wormhole-token-bridge.d.ts +0 -1
  62. package/lib/tests/wormhole-token-bridge.js +0 -22
  63. package/lib/tests/wormhole-token-bridge.js.map +0 -1
  64. package/lib/utils/dex-price.test.js +0 -22
  65. package/lib/utils/erc20.test.js +0 -23
  66. package/src/aptos-codegen/typegen.test.ts +0 -44
  67. package/src/core/generic-processor.test.ts +0 -69
  68. package/src/core/meter.test.ts +0 -23
  69. package/src/core/numberish.test.ts +0 -82
  70. package/src/tests/abis/aptos/soffl3.json +0 -1411
  71. package/src/tests/abis/aptos/souffle.json +0 -389
  72. package/src/tests/abis/evm/CommitmentPool.json +0 -1034
  73. package/src/tests/abis/evm/Seaport.json +0 -2595
  74. package/src/tests/abis/evm/anyswapRouter.json +0 -490
  75. package/src/tests/abis/solana/basic_1.json +0 -62
  76. package/src/tests/aptos.test.ts +0 -324
  77. package/src/tests/codegen.test.ts +0 -29
  78. package/src/tests/erc20-template.test.ts +0 -60
  79. package/src/tests/erc20.test.ts +0 -115
  80. package/src/tests/erc20.ts +0 -60
  81. package/src/tests/error-capture.test.ts +0 -82
  82. package/src/tests/logger.test.ts +0 -46
  83. package/src/tests/solana.test.ts +0 -79
  84. package/src/tests/souffl3.ts +0 -52
  85. package/src/tests/sui.test.ts +0 -197
  86. package/src/tests/types/aptos/soffl3.ts +0 -1377
  87. package/src/tests/types/aptos/souffle.ts +0 -698
  88. package/src/tests/types/solana/basic_1.ts +0 -62
  89. package/src/tests/types/solana/basic_1_processor.ts +0 -41
  90. package/src/tests/wormhole-token-bridge.ts +0 -21
  91. package/src/types/global.d.ts +0 -5
  92. package/src/utils/dex-price.test.ts +0 -25
  93. package/src/utils/erc20.test.ts +0 -26
  94. package/templates/aptos/.gitignore +0 -107
  95. package/templates/aptos/src/processor.test.ts +0 -14
  96. package/templates/evm/.gitignore +0 -107
  97. package/templates/evm/src/processor.test.ts +0 -29
  98. package/templates/raw/.gitignore +0 -107
  99. package/templates/raw/src/processor.test.ts +0 -14
@@ -1,786 +0,0 @@
1
- import { aptos } from "@sentio/sdk";
2
- import { Address, MoveModule } from "aptos-sdk/src/generated";
3
- import { token } from "@sentio/sdk/src/builtin/aptos/0x3";
4
- import { type_info, table, event, acl, account } from "@sentio/sdk/src/builtin/aptos/0x1";
5
- export declare class Aggregator extends aptos.AptosBaseProcessor {
6
- constructor(options: aptos.AptosBindOptions);
7
- static DEFAULT_OPTIONS: aptos.AptosBindOptions;
8
- static bind(options?: Partial<aptos.AptosBindOptions>): Aggregator;
9
- onEntryBatchBuyScriptV1(func: (call: Aggregator.BatchBuyScriptV1Payload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): Aggregator;
10
- onEntryBatchChangePriceScriptV1(func: (call: Aggregator.BatchChangePriceScriptV1Payload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): Aggregator;
11
- onEntryBatchDelistScriptV1(func: (call: Aggregator.BatchDelistScriptV1Payload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): Aggregator;
12
- loadTypesInternal(registry: aptos.TypeRegistry): void;
13
- }
14
- export declare namespace Aggregator {
15
- class BlueMove_V2_batch_buy_script {
16
- static TYPE_QNAME: string;
17
- creators: Address[];
18
- collections: string[];
19
- names: string[];
20
- prices: bigint[];
21
- }
22
- class BlueMove_V2_batch_delist_sciprt {
23
- static TYPE_QNAME: string;
24
- creators: Address[];
25
- collections: string[];
26
- names: string[];
27
- property_versions: bigint[];
28
- }
29
- class Souffl3_batch_buy_script<T0> {
30
- static TYPE_QNAME: string;
31
- creator_lists: Address[];
32
- collection_lists: string[];
33
- name_lists: string[];
34
- property_version_lists: bigint[];
35
- token_amount_lists: bigint[];
36
- coin_amount_lists: bigint[];
37
- market_address_lists: Address[];
38
- market_name_lists: string[];
39
- }
40
- class Souffl3_batch_change_price_script<T0> {
41
- static TYPE_QNAME: string;
42
- creator_lists: Address[];
43
- collection_lists: string[];
44
- name_lists: string[];
45
- property_version_lists: bigint[];
46
- token_amount_lists: bigint[];
47
- coin_per_token_lists: bigint[];
48
- locked_until_secs_lists: bigint[];
49
- market_address_lists: Address[];
50
- market_name_lists: string[];
51
- }
52
- class Souffl3_batch_delist_sciprt<T0> {
53
- static TYPE_QNAME: string;
54
- creator_lists: Address[];
55
- collection_lists: string[];
56
- name_lists: string[];
57
- property_version_lists: bigint[];
58
- token_amount_lists: bigint[];
59
- market_address_lists: Address[];
60
- market_name_lists: string[];
61
- }
62
- class Souffl3_batch_list_script<T0> {
63
- static TYPE_QNAME: string;
64
- creator_lists: Address[];
65
- collection_lists: string[];
66
- name_lists: string[];
67
- property_version_lists: bigint[];
68
- token_amount_lists: bigint[];
69
- coin_amount_lists: bigint[];
70
- locked_until_secs_lists: bigint[];
71
- market_address_lists: Address[];
72
- market_name_lists: string[];
73
- }
74
- class Topaz_V2_buy_many<T0> {
75
- static TYPE_QNAME: string;
76
- listers: Address[];
77
- prices: bigint[];
78
- amounts: bigint[];
79
- creators: Address[];
80
- collections: string[];
81
- names: string[];
82
- property_versions: bigint[];
83
- }
84
- class Topaz_V2_delist<T0> {
85
- static TYPE_QNAME: string;
86
- amounts: bigint[];
87
- creators: Address[];
88
- collections: string[];
89
- names: string[];
90
- property_versions: bigint[];
91
- }
92
- interface BatchBuyScriptV1Payload extends aptos.TypedEntryFunctionPayload<[
93
- string[],
94
- Address[],
95
- bigint[],
96
- bigint[],
97
- Address[],
98
- string[],
99
- string[],
100
- bigint[],
101
- Address[],
102
- string[]
103
- ]> {
104
- arguments_typed: [
105
- string[],
106
- Address[],
107
- bigint[],
108
- bigint[],
109
- Address[],
110
- string[],
111
- string[],
112
- bigint[],
113
- Address[],
114
- string[]
115
- ];
116
- type_arguments: [];
117
- }
118
- interface BatchChangePriceScriptV1Payload extends aptos.TypedEntryFunctionPayload<[
119
- string[],
120
- Address[],
121
- string[],
122
- string[],
123
- bigint[],
124
- bigint[],
125
- bigint[],
126
- bigint[],
127
- Address[],
128
- string[]
129
- ]> {
130
- arguments_typed: [
131
- string[],
132
- Address[],
133
- string[],
134
- string[],
135
- bigint[],
136
- bigint[],
137
- bigint[],
138
- bigint[],
139
- Address[],
140
- string[]
141
- ];
142
- type_arguments: [];
143
- }
144
- interface BatchDelistScriptV1Payload extends aptos.TypedEntryFunctionPayload<[
145
- string[],
146
- bigint[],
147
- Address[],
148
- string[],
149
- string[],
150
- bigint[],
151
- Address[],
152
- string[]
153
- ]> {
154
- arguments_typed: [
155
- string[],
156
- bigint[],
157
- Address[],
158
- string[],
159
- string[],
160
- bigint[],
161
- Address[],
162
- string[]
163
- ];
164
- type_arguments: [];
165
- }
166
- function loadTypes(_r: aptos.TypeRegistry): void;
167
- const ABI: MoveModule;
168
- }
169
- export declare class token_coin_swap extends aptos.AptosBaseProcessor {
170
- constructor(options: aptos.AptosBindOptions);
171
- static DEFAULT_OPTIONS: aptos.AptosBindOptions;
172
- static bind(options?: Partial<aptos.AptosBindOptions>): token_coin_swap;
173
- onEntryListTokenForSwap(func: (call: token_coin_swap.ListTokenForSwapPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): token_coin_swap;
174
- onEventTokenListingEvent(func: (event: token_coin_swap.TokenListingEventInstance, ctx: aptos.AptosContext) => void): token_coin_swap;
175
- onEventTokenSwapEvent(func: (event: token_coin_swap.TokenSwapEventInstance, ctx: aptos.AptosContext) => void): token_coin_swap;
176
- loadTypesInternal(registry: aptos.TypeRegistry): void;
177
- }
178
- export declare namespace token_coin_swap {
179
- class TokenCoinSwap<T0> {
180
- static TYPE_QNAME: string;
181
- token_amount: bigint;
182
- min_price_per_token: bigint;
183
- }
184
- class TokenEscrow {
185
- static TYPE_QNAME: string;
186
- token: token.Token;
187
- locked_until_secs: bigint;
188
- }
189
- class TokenListingEvent {
190
- static TYPE_QNAME: string;
191
- token_id: token.TokenId;
192
- amount: bigint;
193
- min_price: bigint;
194
- locked_until_secs: bigint;
195
- coin_type_info: type_info.TypeInfo;
196
- }
197
- interface TokenListingEventInstance extends aptos.TypedEventInstance<TokenListingEvent> {
198
- data_typed: TokenListingEvent;
199
- type_arguments: [];
200
- }
201
- class TokenListings<T0> {
202
- static TYPE_QNAME: string;
203
- listings: table.Table<token.TokenId, token_coin_swap.TokenCoinSwap<T0>>;
204
- listing_events: event.EventHandle<token_coin_swap.TokenListingEvent>;
205
- swap_events: event.EventHandle<token_coin_swap.TokenSwapEvent>;
206
- }
207
- class TokenStoreEscrow {
208
- static TYPE_QNAME: string;
209
- token_escrows: table.Table<token.TokenId, token_coin_swap.TokenEscrow>;
210
- }
211
- class TokenSwapEvent {
212
- static TYPE_QNAME: string;
213
- token_id: token.TokenId;
214
- token_buyer: Address;
215
- token_amount: bigint;
216
- coin_amount: bigint;
217
- coin_type_info: type_info.TypeInfo;
218
- }
219
- interface TokenSwapEventInstance extends aptos.TypedEventInstance<TokenSwapEvent> {
220
- data_typed: TokenSwapEvent;
221
- type_arguments: [];
222
- }
223
- interface ListTokenForSwapPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
224
- Address,
225
- string,
226
- string,
227
- bigint,
228
- bigint,
229
- bigint,
230
- bigint
231
- ]> {
232
- arguments_typed: [Address, string, string, bigint, bigint, bigint, bigint];
233
- type_arguments: [string];
234
- }
235
- function loadTypes(_r: aptos.TypeRegistry): void;
236
- const ABI: MoveModule;
237
- }
238
- export declare class FixedPriceMarket extends aptos.AptosBaseProcessor {
239
- constructor(options: aptos.AptosBindOptions);
240
- static DEFAULT_OPTIONS: aptos.AptosBindOptions;
241
- static bind(options?: Partial<aptos.AptosBindOptions>): FixedPriceMarket;
242
- onEntryAddAcl(func: (call: FixedPriceMarket.AddAclPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
243
- onEntryBatchBuyScript(func: (call: FixedPriceMarket.BatchBuyScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
244
- onEntryBatchCancelListScript(func: (call: FixedPriceMarket.BatchCancelListScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
245
- onEntryBatchChangePriceScript(func: (call: FixedPriceMarket.BatchChangePriceScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
246
- onEntryBatchListScript(func: (call: FixedPriceMarket.BatchListScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
247
- onEntryBuyScript(func: (call: FixedPriceMarket.BuyScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
248
- onEntryCancelListScript(func: (call: FixedPriceMarket.CancelListScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
249
- onEntryChangePriceScript(func: (call: FixedPriceMarket.ChangePriceScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
250
- onEntryCreateMarket(func: (call: FixedPriceMarket.CreateMarketPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
251
- onEntryListScript(func: (call: FixedPriceMarket.ListScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
252
- onEntryTransferEscrow(func: (call: FixedPriceMarket.TransferEscrowPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
253
- onEntryUpdateMarket(func: (call: FixedPriceMarket.UpdateMarketPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
254
- onEntryWithdrawFeeToPayee(func: (call: FixedPriceMarket.WithdrawFeeToPayeePayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarket;
255
- onEventCreateMarketEvent(func: (event: FixedPriceMarket.CreateMarketEventInstance, ctx: aptos.AptosContext) => void): FixedPriceMarket;
256
- onEventListTokenEvent(func: (event: FixedPriceMarket.ListTokenEventInstance, ctx: aptos.AptosContext) => void): FixedPriceMarket;
257
- onEventCancelListTokenEvent(func: (event: FixedPriceMarket.CancelListTokenEventInstance, ctx: aptos.AptosContext) => void): FixedPriceMarket;
258
- onEventBuyTokenEvent(func: (event: FixedPriceMarket.BuyTokenEventInstance, ctx: aptos.AptosContext) => void): FixedPriceMarket;
259
- loadTypesInternal(registry: aptos.TypeRegistry): void;
260
- }
261
- export declare namespace FixedPriceMarket {
262
- class ACLBox {
263
- static TYPE_QNAME: string;
264
- box: acl.ACL;
265
- }
266
- class BuyTokenEvent<T0> {
267
- static TYPE_QNAME: string;
268
- id: FixedPriceMarket.MarketId<T0>;
269
- token_id: token.TokenId;
270
- token_amount: bigint;
271
- buyer: Address;
272
- token_owner: Address;
273
- coin_per_token: bigint;
274
- }
275
- interface BuyTokenEventInstance extends aptos.TypedEventInstance<BuyTokenEvent<any>> {
276
- data_typed: BuyTokenEvent<any>;
277
- type_arguments: [string];
278
- }
279
- class CancelListTokenEvent<T0> {
280
- static TYPE_QNAME: string;
281
- id: FixedPriceMarket.MarketId<T0>;
282
- token_id: token.TokenId;
283
- token_amount: bigint;
284
- }
285
- interface CancelListTokenEventInstance extends aptos.TypedEventInstance<CancelListTokenEvent<any>> {
286
- data_typed: CancelListTokenEvent<any>;
287
- type_arguments: [string];
288
- }
289
- class CreateMarketEvent<T0> {
290
- static TYPE_QNAME: string;
291
- id: FixedPriceMarket.MarketId<T0>;
292
- market_fee_point: bigint;
293
- fee_payee: Address;
294
- }
295
- interface CreateMarketEventInstance extends aptos.TypedEventInstance<CreateMarketEvent<any>> {
296
- data_typed: CreateMarketEvent<any>;
297
- type_arguments: [string];
298
- }
299
- class ListTokenEvent<T0> {
300
- static TYPE_QNAME: string;
301
- id: FixedPriceMarket.MarketId<T0>;
302
- token_id: token.TokenId;
303
- token_owner: Address;
304
- token_amount: bigint;
305
- coin_per_token: bigint;
306
- }
307
- interface ListTokenEventInstance extends aptos.TypedEventInstance<ListTokenEvent<any>> {
308
- data_typed: ListTokenEvent<any>;
309
- type_arguments: [string];
310
- }
311
- class MarketConfig<T0> {
312
- static TYPE_QNAME: string;
313
- market_fee_point: bigint;
314
- fee_payee: Address;
315
- }
316
- class MarketId<T0> {
317
- static TYPE_QNAME: string;
318
- market_address: Address;
319
- name: string;
320
- }
321
- class MarketRecords<T0> {
322
- static TYPE_QNAME: string;
323
- records: table.Table<FixedPriceMarket.MarketId<T0>, FixedPriceMarket.MarketConfig<T0>>;
324
- create_market_events: event.EventHandle<FixedPriceMarket.CreateMarketEvent<T0>>;
325
- list_token_events: event.EventHandle<FixedPriceMarket.ListTokenEvent<T0>>;
326
- cancel_list_evnets: event.EventHandle<FixedPriceMarket.CancelListTokenEvent<T0>>;
327
- buy_token_events: event.EventHandle<FixedPriceMarket.BuyTokenEvent<T0>>;
328
- }
329
- class ResoureAccountCap {
330
- static TYPE_QNAME: string;
331
- cap: account.SignerCapability;
332
- }
333
- class Ticket<T0> {
334
- static TYPE_QNAME: string;
335
- market: FixedPriceMarket.MarketId<T0>;
336
- token_owner: Address;
337
- coin_per_token: bigint;
338
- }
339
- class TicketPack<T0> {
340
- static TYPE_QNAME: string;
341
- tickets: table.Table<token.TokenId, FixedPriceMarket.Ticket<T0>>;
342
- }
343
- interface AddAclPayload extends aptos.TypedEntryFunctionPayload<[Address[]]> {
344
- arguments_typed: [Address[]];
345
- type_arguments: [];
346
- }
347
- interface BatchBuyScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
348
- Address[],
349
- string[],
350
- string[],
351
- bigint[],
352
- bigint[],
353
- bigint[],
354
- Address[],
355
- string[]
356
- ]> {
357
- arguments_typed: [
358
- Address[],
359
- string[],
360
- string[],
361
- bigint[],
362
- bigint[],
363
- bigint[],
364
- Address[],
365
- string[]
366
- ];
367
- type_arguments: [string];
368
- }
369
- interface BatchCancelListScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
370
- Address[],
371
- string[],
372
- string[],
373
- bigint[],
374
- bigint[],
375
- Address[],
376
- string[]
377
- ]> {
378
- arguments_typed: [
379
- Address[],
380
- string[],
381
- string[],
382
- bigint[],
383
- bigint[],
384
- Address[],
385
- string[]
386
- ];
387
- type_arguments: [string];
388
- }
389
- interface BatchChangePriceScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
390
- Address[],
391
- string[],
392
- string[],
393
- bigint[],
394
- bigint[],
395
- bigint[],
396
- bigint[],
397
- Address[],
398
- string[]
399
- ]> {
400
- arguments_typed: [
401
- Address[],
402
- string[],
403
- string[],
404
- bigint[],
405
- bigint[],
406
- bigint[],
407
- bigint[],
408
- Address[],
409
- string[]
410
- ];
411
- type_arguments: [string];
412
- }
413
- interface BatchListScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
414
- Address[],
415
- string[],
416
- string[],
417
- bigint[],
418
- bigint[],
419
- bigint[],
420
- bigint[],
421
- Address[],
422
- string[]
423
- ]> {
424
- arguments_typed: [
425
- Address[],
426
- string[],
427
- string[],
428
- bigint[],
429
- bigint[],
430
- bigint[],
431
- bigint[],
432
- Address[],
433
- string[]
434
- ];
435
- type_arguments: [string];
436
- }
437
- interface BuyScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
438
- Address,
439
- string,
440
- string,
441
- bigint,
442
- bigint,
443
- bigint,
444
- Address,
445
- string
446
- ]> {
447
- arguments_typed: [
448
- Address,
449
- string,
450
- string,
451
- bigint,
452
- bigint,
453
- bigint,
454
- Address,
455
- string
456
- ];
457
- type_arguments: [string];
458
- }
459
- interface CancelListScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
460
- Address,
461
- string,
462
- string,
463
- bigint,
464
- bigint,
465
- Address,
466
- string
467
- ]> {
468
- arguments_typed: [Address, string, string, bigint, bigint, Address, string];
469
- type_arguments: [string];
470
- }
471
- interface ChangePriceScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
472
- Address,
473
- string,
474
- string,
475
- bigint,
476
- bigint,
477
- bigint,
478
- bigint,
479
- Address,
480
- string
481
- ]> {
482
- arguments_typed: [
483
- Address,
484
- string,
485
- string,
486
- bigint,
487
- bigint,
488
- bigint,
489
- bigint,
490
- Address,
491
- string
492
- ];
493
- type_arguments: [string];
494
- }
495
- interface CreateMarketPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[bigint, Address, string]> {
496
- arguments_typed: [bigint, Address, string];
497
- type_arguments: [string];
498
- }
499
- interface ListScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
500
- Address,
501
- string,
502
- string,
503
- bigint,
504
- bigint,
505
- bigint,
506
- bigint,
507
- Address,
508
- string
509
- ]> {
510
- arguments_typed: [
511
- Address,
512
- string,
513
- string,
514
- bigint,
515
- bigint,
516
- bigint,
517
- bigint,
518
- Address,
519
- string
520
- ];
521
- type_arguments: [string];
522
- }
523
- interface TransferEscrowPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
524
- Address,
525
- string,
526
- string,
527
- bigint,
528
- bigint,
529
- FixedPriceMarket.MarketId<T0>
530
- ]> {
531
- arguments_typed: [
532
- Address,
533
- string,
534
- string,
535
- bigint,
536
- bigint,
537
- FixedPriceMarket.MarketId<T0>
538
- ];
539
- type_arguments: [string];
540
- }
541
- interface UpdateMarketPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[bigint, Address, string]> {
542
- arguments_typed: [bigint, Address, string];
543
- type_arguments: [string];
544
- }
545
- interface WithdrawFeeToPayeePayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[Address, string]> {
546
- arguments_typed: [Address, string];
547
- type_arguments: [string];
548
- }
549
- function loadTypes(_r: aptos.TypeRegistry): void;
550
- const ABI: MoveModule;
551
- }
552
- export declare class FixedPriceMarketScript extends aptos.AptosBaseProcessor {
553
- constructor(options: aptos.AptosBindOptions);
554
- static DEFAULT_OPTIONS: aptos.AptosBindOptions;
555
- static bind(options?: Partial<aptos.AptosBindOptions>): FixedPriceMarketScript;
556
- onEntryBatchBuyScript(func: (call: FixedPriceMarketScript.BatchBuyScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
557
- onEntryBatchCancelListScript(func: (call: FixedPriceMarketScript.BatchCancelListScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
558
- onEntryBatchChangePriceScript(func: (call: FixedPriceMarketScript.BatchChangePriceScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
559
- onEntryBatchListScript(func: (call: FixedPriceMarketScript.BatchListScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
560
- onEntryBatchTransferEscrow(func: (call: FixedPriceMarketScript.BatchTransferEscrowPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
561
- onEntryBatchTransferTokens(func: (call: FixedPriceMarketScript.BatchTransferTokensPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
562
- onEntryBuyScript(func: (call: FixedPriceMarketScript.BuyScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
563
- onEntryCancelListScript(func: (call: FixedPriceMarketScript.CancelListScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
564
- onEntryChangePriceScript(func: (call: FixedPriceMarketScript.ChangePriceScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
565
- onEntryListScript(func: (call: FixedPriceMarketScript.ListScriptPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
566
- onEntryOptInDirectTransfer(func: (call: FixedPriceMarketScript.OptInDirectTransferPayload, ctx: aptos.AptosContext) => void, filter?: aptos.CallFilter): FixedPriceMarketScript;
567
- loadTypesInternal(registry: aptos.TypeRegistry): void;
568
- }
569
- export declare namespace FixedPriceMarketScript {
570
- interface BatchBuyScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
571
- Address[],
572
- string[],
573
- string[],
574
- bigint[],
575
- bigint[],
576
- bigint[],
577
- Address[],
578
- string[]
579
- ]> {
580
- arguments_typed: [
581
- Address[],
582
- string[],
583
- string[],
584
- bigint[],
585
- bigint[],
586
- bigint[],
587
- Address[],
588
- string[]
589
- ];
590
- type_arguments: [string];
591
- }
592
- interface BatchCancelListScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
593
- Address[],
594
- string[],
595
- string[],
596
- bigint[],
597
- bigint[],
598
- Address[],
599
- string[]
600
- ]> {
601
- arguments_typed: [
602
- Address[],
603
- string[],
604
- string[],
605
- bigint[],
606
- bigint[],
607
- Address[],
608
- string[]
609
- ];
610
- type_arguments: [string];
611
- }
612
- interface BatchChangePriceScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
613
- Address[],
614
- string[],
615
- string[],
616
- bigint[],
617
- bigint[],
618
- bigint[],
619
- bigint[],
620
- Address[],
621
- string[]
622
- ]> {
623
- arguments_typed: [
624
- Address[],
625
- string[],
626
- string[],
627
- bigint[],
628
- bigint[],
629
- bigint[],
630
- bigint[],
631
- Address[],
632
- string[]
633
- ];
634
- type_arguments: [string];
635
- }
636
- interface BatchListScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
637
- Address[],
638
- string[],
639
- string[],
640
- bigint[],
641
- bigint[],
642
- bigint[],
643
- bigint[],
644
- Address[],
645
- string[]
646
- ]> {
647
- arguments_typed: [
648
- Address[],
649
- string[],
650
- string[],
651
- bigint[],
652
- bigint[],
653
- bigint[],
654
- bigint[],
655
- Address[],
656
- string[]
657
- ];
658
- type_arguments: [string];
659
- }
660
- interface BatchTransferEscrowPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
661
- Address[],
662
- string[],
663
- string[],
664
- bigint[],
665
- bigint[],
666
- Address[],
667
- string[]
668
- ]> {
669
- arguments_typed: [
670
- Address[],
671
- string[],
672
- string[],
673
- bigint[],
674
- bigint[],
675
- Address[],
676
- string[]
677
- ];
678
- type_arguments: [string];
679
- }
680
- interface BatchTransferTokensPayload extends aptos.TypedEntryFunctionPayload<[
681
- Address,
682
- Address[],
683
- string[],
684
- string[],
685
- bigint[],
686
- bigint[]
687
- ]> {
688
- arguments_typed: [
689
- Address,
690
- Address[],
691
- string[],
692
- string[],
693
- bigint[],
694
- bigint[]
695
- ];
696
- type_arguments: [];
697
- }
698
- interface BuyScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
699
- Address,
700
- string,
701
- string,
702
- bigint,
703
- bigint,
704
- bigint,
705
- Address,
706
- string
707
- ]> {
708
- arguments_typed: [
709
- Address,
710
- string,
711
- string,
712
- bigint,
713
- bigint,
714
- bigint,
715
- Address,
716
- string
717
- ];
718
- type_arguments: [string];
719
- }
720
- interface CancelListScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
721
- Address,
722
- string,
723
- string,
724
- bigint,
725
- bigint,
726
- Address,
727
- string
728
- ]> {
729
- arguments_typed: [Address, string, string, bigint, bigint, Address, string];
730
- type_arguments: [string];
731
- }
732
- interface ChangePriceScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
733
- Address,
734
- string,
735
- string,
736
- bigint,
737
- bigint,
738
- bigint,
739
- bigint,
740
- Address,
741
- string
742
- ]> {
743
- arguments_typed: [
744
- Address,
745
- string,
746
- string,
747
- bigint,
748
- bigint,
749
- bigint,
750
- bigint,
751
- Address,
752
- string
753
- ];
754
- type_arguments: [string];
755
- }
756
- interface ListScriptPayload<T0 = any> extends aptos.TypedEntryFunctionPayload<[
757
- Address,
758
- string,
759
- string,
760
- bigint,
761
- bigint,
762
- bigint,
763
- bigint,
764
- Address,
765
- string
766
- ]> {
767
- arguments_typed: [
768
- Address,
769
- string,
770
- string,
771
- bigint,
772
- bigint,
773
- bigint,
774
- bigint,
775
- Address,
776
- string
777
- ];
778
- type_arguments: [string];
779
- }
780
- interface OptInDirectTransferPayload extends aptos.TypedEntryFunctionPayload<[Boolean]> {
781
- arguments_typed: [Boolean];
782
- type_arguments: [];
783
- }
784
- function loadTypes(_r: aptos.TypeRegistry): void;
785
- const ABI: MoveModule;
786
- }