@sentio/sdk 1.21.3 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/aptos/aptos-processor.d.ts +1 -1
- package/lib/aptos/aptos-processor.js +9 -5
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos-codegen/codegen.js +27 -24
- package/lib/aptos-codegen/codegen.js.map +1 -1
- package/lib/builtin/aptos/0x1.d.ts +128 -16
- package/lib/builtin/aptos/0x1.js.map +1 -1
- package/lib/builtin/aptos/0x3.d.ts +27 -2
- package/lib/builtin/aptos/0x3.js.map +1 -1
- package/lib/tests/aptos.test.js +9 -5
- package/lib/tests/aptos.test.js.map +1 -1
- package/lib/tests/souffl3.js.map +1 -1
- package/lib/tests/types/aptos/souffle.d.ts +50 -32
- package/lib/tests/types/aptos/souffle.js.map +1 -1
- package/package.json +1 -1
- package/src/aptos/aptos-processor.ts +10 -6
- package/src/aptos-codegen/codegen.ts +28 -25
- package/src/builtin/aptos/0x1.ts +136 -34
- package/src/builtin/aptos/0x3.ts +28 -3
- package/src/tests/aptos.test.ts +13 -5
- package/src/tests/souffl3.ts +2 -2
- package/src/tests/types/aptos/souffle.ts +66 -51
package/src/builtin/aptos/0x3.ts
CHANGED
@@ -225,6 +225,7 @@ export namespace token {
|
|
225
225
|
export interface BurnTokenEventInstance
|
226
226
|
extends aptos.TypedEventInstance<BurnTokenEvent> {
|
227
227
|
data_typed: BurnTokenEvent;
|
228
|
+
type_arguments: [];
|
228
229
|
}
|
229
230
|
|
230
231
|
export class CollectionData {
|
@@ -261,6 +262,7 @@ export namespace token {
|
|
261
262
|
export interface CreateCollectionEventInstance
|
262
263
|
extends aptos.TypedEventInstance<CreateCollectionEvent> {
|
263
264
|
data_typed: CreateCollectionEvent;
|
265
|
+
type_arguments: [];
|
264
266
|
}
|
265
267
|
|
266
268
|
export class CreateTokenDataEvent {
|
@@ -281,6 +283,7 @@ export namespace token {
|
|
281
283
|
export interface CreateTokenDataEventInstance
|
282
284
|
extends aptos.TypedEventInstance<CreateTokenDataEvent> {
|
283
285
|
data_typed: CreateTokenDataEvent;
|
286
|
+
type_arguments: [];
|
284
287
|
}
|
285
288
|
|
286
289
|
export class DepositEvent {
|
@@ -291,6 +294,7 @@ export namespace token {
|
|
291
294
|
export interface DepositEventInstance
|
292
295
|
extends aptos.TypedEventInstance<DepositEvent> {
|
293
296
|
data_typed: DepositEvent;
|
297
|
+
type_arguments: [];
|
294
298
|
}
|
295
299
|
|
296
300
|
export class MintTokenEvent {
|
@@ -301,6 +305,7 @@ export namespace token {
|
|
301
305
|
export interface MintTokenEventInstance
|
302
306
|
extends aptos.TypedEventInstance<MintTokenEvent> {
|
303
307
|
data_typed: MintTokenEvent;
|
308
|
+
type_arguments: [];
|
304
309
|
}
|
305
310
|
|
306
311
|
export class MutateTokenPropertyMapEvent {
|
@@ -314,6 +319,7 @@ export namespace token {
|
|
314
319
|
export interface MutateTokenPropertyMapEventInstance
|
315
320
|
extends aptos.TypedEventInstance<MutateTokenPropertyMapEvent> {
|
316
321
|
data_typed: MutateTokenPropertyMapEvent;
|
322
|
+
type_arguments: [];
|
317
323
|
}
|
318
324
|
|
319
325
|
export class Royalty {
|
@@ -383,6 +389,7 @@ export namespace token {
|
|
383
389
|
export interface WithdrawEventInstance
|
384
390
|
extends aptos.TypedEventInstance<WithdrawEvent> {
|
385
391
|
data_typed: WithdrawEvent;
|
392
|
+
type_arguments: [];
|
386
393
|
}
|
387
394
|
|
388
395
|
export interface BurnPayload
|
@@ -390,6 +397,7 @@ export namespace token {
|
|
390
397
|
[Address, string, string, bigint, bigint]
|
391
398
|
> {
|
392
399
|
arguments_typed: [Address, string, string, bigint, bigint];
|
400
|
+
type_arguments: [];
|
393
401
|
}
|
394
402
|
|
395
403
|
export interface BurnByCreatorPayload
|
@@ -397,6 +405,7 @@ export namespace token {
|
|
397
405
|
[Address, string, string, bigint, bigint]
|
398
406
|
> {
|
399
407
|
arguments_typed: [Address, string, string, bigint, bigint];
|
408
|
+
type_arguments: [];
|
400
409
|
}
|
401
410
|
|
402
411
|
export interface CreateCollectionScriptPayload
|
@@ -404,6 +413,7 @@ export namespace token {
|
|
404
413
|
[string, string, string, bigint, Boolean[]]
|
405
414
|
> {
|
406
415
|
arguments_typed: [string, string, string, bigint, Boolean[]];
|
416
|
+
type_arguments: [];
|
407
417
|
}
|
408
418
|
|
409
419
|
export interface CreateTokenScriptPayload
|
@@ -439,6 +449,7 @@ export namespace token {
|
|
439
449
|
string[],
|
440
450
|
string[]
|
441
451
|
];
|
452
|
+
type_arguments: [];
|
442
453
|
}
|
443
454
|
|
444
455
|
export interface DirectTransferScriptPayload
|
@@ -446,16 +457,19 @@ export namespace token {
|
|
446
457
|
[Address, Address, string, string, bigint, bigint]
|
447
458
|
> {
|
448
459
|
arguments_typed: [Address, Address, string, string, bigint, bigint];
|
460
|
+
type_arguments: [];
|
449
461
|
}
|
450
462
|
|
451
463
|
export interface InitializeTokenScriptPayload
|
452
464
|
extends aptos.TypedEntryFunctionPayload<[]> {
|
453
465
|
arguments_typed: [];
|
466
|
+
type_arguments: [];
|
454
467
|
}
|
455
468
|
|
456
469
|
export interface MintScriptPayload
|
457
470
|
extends aptos.TypedEntryFunctionPayload<[Address, string, string, bigint]> {
|
458
471
|
arguments_typed: [Address, string, string, bigint];
|
472
|
+
type_arguments: [];
|
459
473
|
}
|
460
474
|
|
461
475
|
export interface MutateTokenPropertiesPayload
|
@@ -483,11 +497,13 @@ export namespace token {
|
|
483
497
|
string[],
|
484
498
|
string[]
|
485
499
|
];
|
500
|
+
type_arguments: [];
|
486
501
|
}
|
487
502
|
|
488
503
|
export interface OptInDirectTransferPayload
|
489
504
|
extends aptos.TypedEntryFunctionPayload<[Boolean]> {
|
490
505
|
arguments_typed: [Boolean];
|
506
|
+
type_arguments: [];
|
491
507
|
}
|
492
508
|
|
493
509
|
export function loadTypes(registry: aptos.TypeRegistry) {
|
@@ -532,9 +548,9 @@ export class token_coin_swap extends aptos.AptosBaseProcessor {
|
|
532
548
|
});
|
533
549
|
}
|
534
550
|
|
535
|
-
onEntryListTokenForSwap
|
551
|
+
onEntryListTokenForSwap(
|
536
552
|
func: (
|
537
|
-
call: token_coin_swap.ListTokenForSwapPayload
|
553
|
+
call: token_coin_swap.ListTokenForSwapPayload,
|
538
554
|
ctx: aptos.AptosContext
|
539
555
|
) => void,
|
540
556
|
filter?: aptos.CallFilter
|
@@ -597,6 +613,7 @@ export namespace token_coin_swap {
|
|
597
613
|
export interface TokenListingEventInstance
|
598
614
|
extends aptos.TypedEventInstance<TokenListingEvent> {
|
599
615
|
data_typed: TokenListingEvent;
|
616
|
+
type_arguments: [];
|
600
617
|
}
|
601
618
|
|
602
619
|
export class TokenListings<T0> {
|
@@ -620,13 +637,15 @@ export namespace token_coin_swap {
|
|
620
637
|
export interface TokenSwapEventInstance
|
621
638
|
extends aptos.TypedEventInstance<TokenSwapEvent> {
|
622
639
|
data_typed: TokenSwapEvent;
|
640
|
+
type_arguments: [];
|
623
641
|
}
|
624
642
|
|
625
|
-
export interface ListTokenForSwapPayload
|
643
|
+
export interface ListTokenForSwapPayload
|
626
644
|
extends aptos.TypedEntryFunctionPayload<
|
627
645
|
[Address, string, string, bigint, bigint, bigint, bigint]
|
628
646
|
> {
|
629
647
|
arguments_typed: [Address, string, string, bigint, bigint, bigint, bigint];
|
648
|
+
type_arguments: [string];
|
630
649
|
}
|
631
650
|
|
632
651
|
export function loadTypes(registry: aptos.TypeRegistry) {
|
@@ -753,6 +772,7 @@ export namespace token_transfers {
|
|
753
772
|
export interface TokenCancelOfferEventInstance
|
754
773
|
extends aptos.TypedEventInstance<TokenCancelOfferEvent> {
|
755
774
|
data_typed: TokenCancelOfferEvent;
|
775
|
+
type_arguments: [];
|
756
776
|
}
|
757
777
|
|
758
778
|
export class TokenClaimEvent {
|
@@ -764,6 +784,7 @@ export namespace token_transfers {
|
|
764
784
|
export interface TokenClaimEventInstance
|
765
785
|
extends aptos.TypedEventInstance<TokenClaimEvent> {
|
766
786
|
data_typed: TokenClaimEvent;
|
787
|
+
type_arguments: [];
|
767
788
|
}
|
768
789
|
|
769
790
|
export class TokenOfferEvent {
|
@@ -775,6 +796,7 @@ export namespace token_transfers {
|
|
775
796
|
export interface TokenOfferEventInstance
|
776
797
|
extends aptos.TypedEventInstance<TokenOfferEvent> {
|
777
798
|
data_typed: TokenOfferEvent;
|
799
|
+
type_arguments: [];
|
778
800
|
}
|
779
801
|
|
780
802
|
export class TokenOfferId {
|
@@ -787,6 +809,7 @@ export namespace token_transfers {
|
|
787
809
|
[Address, Address, string, string, bigint]
|
788
810
|
> {
|
789
811
|
arguments_typed: [Address, Address, string, string, bigint];
|
812
|
+
type_arguments: [];
|
790
813
|
}
|
791
814
|
|
792
815
|
export interface ClaimScriptPayload
|
@@ -794,6 +817,7 @@ export namespace token_transfers {
|
|
794
817
|
[Address, Address, string, string, bigint]
|
795
818
|
> {
|
796
819
|
arguments_typed: [Address, Address, string, string, bigint];
|
820
|
+
type_arguments: [];
|
797
821
|
}
|
798
822
|
|
799
823
|
export interface OfferScriptPayload
|
@@ -801,6 +825,7 @@ export namespace token_transfers {
|
|
801
825
|
[Address, Address, string, string, bigint, bigint]
|
802
826
|
> {
|
803
827
|
arguments_typed: [Address, Address, string, string, bigint, bigint];
|
828
|
+
type_arguments: [];
|
804
829
|
}
|
805
830
|
|
806
831
|
export function loadTypes(registry: aptos.TypeRegistry) {
|
package/src/tests/aptos.test.ts
CHANGED
@@ -59,7 +59,12 @@ describe('Test Aptos Example', () => {
|
|
59
59
|
bindings: [
|
60
60
|
{
|
61
61
|
data: {
|
62
|
-
raw: new TextEncoder().encode(
|
62
|
+
raw: new TextEncoder().encode(
|
63
|
+
JSON.stringify({
|
64
|
+
...testData,
|
65
|
+
events: [testData.events[testData.events.length - 1]],
|
66
|
+
})
|
67
|
+
),
|
63
68
|
},
|
64
69
|
handlerId: 0,
|
65
70
|
handlerType: HandlerType.APT_EVENT,
|
@@ -77,7 +82,12 @@ describe('Test Aptos Example', () => {
|
|
77
82
|
bindings: [
|
78
83
|
{
|
79
84
|
data: {
|
80
|
-
raw: new TextEncoder().encode(
|
85
|
+
raw: new TextEncoder().encode(
|
86
|
+
JSON.stringify({
|
87
|
+
...testData,
|
88
|
+
events: [tokenTestData],
|
89
|
+
})
|
90
|
+
),
|
81
91
|
},
|
82
92
|
handlerId: 2,
|
83
93
|
handlerType: HandlerType.APT_EVENT,
|
@@ -94,7 +104,7 @@ describe('Test Aptos Example', () => {
|
|
94
104
|
bindings: [
|
95
105
|
{
|
96
106
|
data: {
|
97
|
-
raw: new TextEncoder().encode(JSON.stringify(createProposalData)),
|
107
|
+
raw: new TextEncoder().encode(JSON.stringify({ ...testData, events: [createProposalData] })),
|
98
108
|
},
|
99
109
|
handlerId: 3,
|
100
110
|
handlerType: HandlerType.APT_EVENT,
|
@@ -233,7 +243,6 @@ const testData = {
|
|
233
243
|
}
|
234
244
|
|
235
245
|
const tokenTestData = {
|
236
|
-
version: '18483034',
|
237
246
|
guid: {
|
238
247
|
creation_number: '4',
|
239
248
|
account_address: '0x89bc80de59187f707a59ae7a4121718dafe3e6068e0509104ef7e41a56bc97db',
|
@@ -254,7 +263,6 @@ const tokenTestData = {
|
|
254
263
|
}
|
255
264
|
|
256
265
|
const createProposalData = {
|
257
|
-
version: '1',
|
258
266
|
guid: {
|
259
267
|
creation_number: '5',
|
260
268
|
account_address: '0x1',
|
package/src/tests/souffl3.ts
CHANGED
@@ -3,7 +3,7 @@ import { token } from '../builtin/aptos/0x3'
|
|
3
3
|
import { voting } from '../builtin/aptos/0x1'
|
4
4
|
|
5
5
|
SouffleChefCampaign.bind({ startVersion: 3212312 })
|
6
|
-
.onEntryPullTokenV2((call: SouffleChefCampaign.PullTokenV2Payload
|
6
|
+
.onEntryPullTokenV2((call: SouffleChefCampaign.PullTokenV2Payload, ctx) => {
|
7
7
|
ctx.meter.Counter('call_num').add(1)
|
8
8
|
ctx.meter.Counter('pulled').add(call.arguments_typed[3])
|
9
9
|
})
|
@@ -30,7 +30,7 @@ SouffleChefCampaign.bind({ startVersion: 3212312 })
|
|
30
30
|
}
|
31
31
|
})
|
32
32
|
|
33
|
-
CandyMachine.bind().onEntryPullToken((call: CandyMachine.PullTokenPayload
|
33
|
+
CandyMachine.bind().onEntryPullToken((call: CandyMachine.PullTokenPayload, ctx) => {
|
34
34
|
ctx.meter.Counter('pulled').add(call.arguments[2])
|
35
35
|
})
|
36
36
|
|
@@ -24,11 +24,8 @@ export class CandyMachine extends aptos.AptosBaseProcessor {
|
|
24
24
|
return new CandyMachine({ ...CandyMachine.DEFAULT_OPTIONS, ...options });
|
25
25
|
}
|
26
26
|
|
27
|
-
onEntryAddAcl
|
28
|
-
func: (
|
29
|
-
call: CandyMachine.AddAclPayload<T0>,
|
30
|
-
ctx: aptos.AptosContext
|
31
|
-
) => void,
|
27
|
+
onEntryAddAcl(
|
28
|
+
func: (call: CandyMachine.AddAclPayload, ctx: aptos.AptosContext) => void,
|
32
29
|
filter?: aptos.CallFilter
|
33
30
|
): CandyMachine {
|
34
31
|
this.onEntryFunctionCall(func, {
|
@@ -38,9 +35,9 @@ export class CandyMachine extends aptos.AptosBaseProcessor {
|
|
38
35
|
return this;
|
39
36
|
}
|
40
37
|
|
41
|
-
onEntryCreateCandyMachine
|
38
|
+
onEntryCreateCandyMachine(
|
42
39
|
func: (
|
43
|
-
call: CandyMachine.CreateCandyMachinePayload
|
40
|
+
call: CandyMachine.CreateCandyMachinePayload,
|
44
41
|
ctx: aptos.AptosContext
|
45
42
|
) => void,
|
46
43
|
filter?: aptos.CallFilter
|
@@ -52,9 +49,9 @@ export class CandyMachine extends aptos.AptosBaseProcessor {
|
|
52
49
|
return this;
|
53
50
|
}
|
54
51
|
|
55
|
-
onEntryCreateCollection
|
52
|
+
onEntryCreateCollection(
|
56
53
|
func: (
|
57
|
-
call: CandyMachine.CreateCollectionPayload
|
54
|
+
call: CandyMachine.CreateCollectionPayload,
|
58
55
|
ctx: aptos.AptosContext
|
59
56
|
) => void,
|
60
57
|
filter?: aptos.CallFilter
|
@@ -66,9 +63,9 @@ export class CandyMachine extends aptos.AptosBaseProcessor {
|
|
66
63
|
return this;
|
67
64
|
}
|
68
65
|
|
69
|
-
onEntryPullToken
|
66
|
+
onEntryPullToken(
|
70
67
|
func: (
|
71
|
-
call: CandyMachine.PullTokenPayload
|
68
|
+
call: CandyMachine.PullTokenPayload,
|
72
69
|
ctx: aptos.AptosContext
|
73
70
|
) => void,
|
74
71
|
filter?: aptos.CallFilter
|
@@ -80,9 +77,9 @@ export class CandyMachine extends aptos.AptosBaseProcessor {
|
|
80
77
|
return this;
|
81
78
|
}
|
82
79
|
|
83
|
-
onEntryUpdateTokenProperty
|
80
|
+
onEntryUpdateTokenProperty(
|
84
81
|
func: (
|
85
|
-
call: CandyMachine.UpdateTokenPropertyPayload
|
82
|
+
call: CandyMachine.UpdateTokenPropertyPayload,
|
86
83
|
ctx: aptos.AptosContext
|
87
84
|
) => void,
|
88
85
|
filter?: aptos.CallFilter
|
@@ -133,17 +130,19 @@ export namespace CandyMachine {
|
|
133
130
|
cap: account.SignerCapability;
|
134
131
|
}
|
135
132
|
|
136
|
-
export interface AddAclPayload
|
133
|
+
export interface AddAclPayload
|
137
134
|
extends aptos.TypedEntryFunctionPayload<[Address]> {
|
138
135
|
arguments_typed: [Address];
|
136
|
+
type_arguments: [string];
|
139
137
|
}
|
140
138
|
|
141
|
-
export interface CreateCandyMachinePayload
|
139
|
+
export interface CreateCandyMachinePayload
|
142
140
|
extends aptos.TypedEntryFunctionPayload<[string]> {
|
143
141
|
arguments_typed: [string];
|
142
|
+
type_arguments: [string];
|
144
143
|
}
|
145
144
|
|
146
|
-
export interface CreateCollectionPayload
|
145
|
+
export interface CreateCollectionPayload
|
147
146
|
extends aptos.TypedEntryFunctionPayload<
|
148
147
|
[
|
149
148
|
Address,
|
@@ -186,14 +185,16 @@ export namespace CandyMachine {
|
|
186
185
|
string[],
|
187
186
|
bigint
|
188
187
|
];
|
188
|
+
type_arguments: [string];
|
189
189
|
}
|
190
190
|
|
191
|
-
export interface PullTokenPayload
|
191
|
+
export interface PullTokenPayload
|
192
192
|
extends aptos.TypedEntryFunctionPayload<[Address, string, bigint]> {
|
193
193
|
arguments_typed: [Address, string, bigint];
|
194
|
+
type_arguments: [string];
|
194
195
|
}
|
195
196
|
|
196
|
-
export interface UpdateTokenPropertyPayload
|
197
|
+
export interface UpdateTokenPropertyPayload
|
197
198
|
extends aptos.TypedEntryFunctionPayload<
|
198
199
|
[
|
199
200
|
Address,
|
@@ -218,6 +219,7 @@ export namespace CandyMachine {
|
|
218
219
|
string[],
|
219
220
|
string[]
|
220
221
|
];
|
222
|
+
type_arguments: [string];
|
221
223
|
}
|
222
224
|
|
223
225
|
export function loadTypes(registry: aptos.TypeRegistry) {
|
@@ -247,9 +249,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
247
249
|
});
|
248
250
|
}
|
249
251
|
|
250
|
-
onEntryAddAcl
|
252
|
+
onEntryAddAcl(
|
251
253
|
func: (
|
252
|
-
call: SouffleChefCampaign.AddAclPayload
|
254
|
+
call: SouffleChefCampaign.AddAclPayload,
|
253
255
|
ctx: aptos.AptosContext
|
254
256
|
) => void,
|
255
257
|
filter?: aptos.CallFilter
|
@@ -261,9 +263,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
261
263
|
return this;
|
262
264
|
}
|
263
265
|
|
264
|
-
onEntryAddBurnTokenRule
|
266
|
+
onEntryAddBurnTokenRule(
|
265
267
|
func: (
|
266
|
-
call: SouffleChefCampaign.AddBurnTokenRulePayload
|
268
|
+
call: SouffleChefCampaign.AddBurnTokenRulePayload,
|
267
269
|
ctx: aptos.AptosContext
|
268
270
|
) => void,
|
269
271
|
filter?: aptos.CallFilter
|
@@ -275,9 +277,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
275
277
|
return this;
|
276
278
|
}
|
277
279
|
|
278
|
-
onEntryBatchAddAcl
|
280
|
+
onEntryBatchAddAcl(
|
279
281
|
func: (
|
280
|
-
call: SouffleChefCampaign.BatchAddAclPayload
|
282
|
+
call: SouffleChefCampaign.BatchAddAclPayload,
|
281
283
|
ctx: aptos.AptosContext
|
282
284
|
) => void,
|
283
285
|
filter?: aptos.CallFilter
|
@@ -289,9 +291,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
289
291
|
return this;
|
290
292
|
}
|
291
293
|
|
292
|
-
onEntryBurnAndEnjoy
|
294
|
+
onEntryBurnAndEnjoy(
|
293
295
|
func: (
|
294
|
-
call: SouffleChefCampaign.BurnAndEnjoyPayload
|
296
|
+
call: SouffleChefCampaign.BurnAndEnjoyPayload,
|
295
297
|
ctx: aptos.AptosContext
|
296
298
|
) => void,
|
297
299
|
filter?: aptos.CallFilter
|
@@ -303,9 +305,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
303
305
|
return this;
|
304
306
|
}
|
305
307
|
|
306
|
-
onEntryClaim
|
308
|
+
onEntryClaim(
|
307
309
|
func: (
|
308
|
-
call: SouffleChefCampaign.ClaimPayload
|
310
|
+
call: SouffleChefCampaign.ClaimPayload,
|
309
311
|
ctx: aptos.AptosContext
|
310
312
|
) => void,
|
311
313
|
filter?: aptos.CallFilter
|
@@ -317,9 +319,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
317
319
|
return this;
|
318
320
|
}
|
319
321
|
|
320
|
-
onEntryCreateCandyMachine
|
322
|
+
onEntryCreateCandyMachine(
|
321
323
|
func: (
|
322
|
-
call: SouffleChefCampaign.CreateCandyMachinePayload
|
324
|
+
call: SouffleChefCampaign.CreateCandyMachinePayload,
|
323
325
|
ctx: aptos.AptosContext
|
324
326
|
) => void,
|
325
327
|
filter?: aptos.CallFilter
|
@@ -331,9 +333,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
331
333
|
return this;
|
332
334
|
}
|
333
335
|
|
334
|
-
onEntryCreateCollection
|
336
|
+
onEntryCreateCollection(
|
335
337
|
func: (
|
336
|
-
call: SouffleChefCampaign.CreateCollectionPayload
|
338
|
+
call: SouffleChefCampaign.CreateCollectionPayload,
|
337
339
|
ctx: aptos.AptosContext
|
338
340
|
) => void,
|
339
341
|
filter?: aptos.CallFilter
|
@@ -345,9 +347,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
345
347
|
return this;
|
346
348
|
}
|
347
349
|
|
348
|
-
onEntryPullToken
|
350
|
+
onEntryPullToken(
|
349
351
|
func: (
|
350
|
-
call: SouffleChefCampaign.PullTokenPayload
|
352
|
+
call: SouffleChefCampaign.PullTokenPayload,
|
351
353
|
ctx: aptos.AptosContext
|
352
354
|
) => void,
|
353
355
|
filter?: aptos.CallFilter
|
@@ -359,9 +361,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
359
361
|
return this;
|
360
362
|
}
|
361
363
|
|
362
|
-
onEntryPullTokenV2
|
364
|
+
onEntryPullTokenV2(
|
363
365
|
func: (
|
364
|
-
call: SouffleChefCampaign.PullTokenV2Payload
|
366
|
+
call: SouffleChefCampaign.PullTokenV2Payload,
|
365
367
|
ctx: aptos.AptosContext
|
366
368
|
) => void,
|
367
369
|
filter?: aptos.CallFilter
|
@@ -373,9 +375,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
373
375
|
return this;
|
374
376
|
}
|
375
377
|
|
376
|
-
onEntryRemoveBurnTokenRule
|
378
|
+
onEntryRemoveBurnTokenRule(
|
377
379
|
func: (
|
378
|
-
call: SouffleChefCampaign.RemoveBurnTokenRulePayload
|
380
|
+
call: SouffleChefCampaign.RemoveBurnTokenRulePayload,
|
379
381
|
ctx: aptos.AptosContext
|
380
382
|
) => void,
|
381
383
|
filter?: aptos.CallFilter
|
@@ -387,9 +389,9 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
387
389
|
return this;
|
388
390
|
}
|
389
391
|
|
390
|
-
onEntryUpdateTokenProperty
|
392
|
+
onEntryUpdateTokenProperty(
|
391
393
|
func: (
|
392
|
-
call: SouffleChefCampaign.UpdateTokenPropertyPayload
|
394
|
+
call: SouffleChefCampaign.UpdateTokenPropertyPayload,
|
393
395
|
ctx: aptos.AptosContext
|
394
396
|
) => void,
|
395
397
|
filter?: aptos.CallFilter
|
@@ -442,6 +444,7 @@ export namespace SouffleChefCampaign {
|
|
442
444
|
export interface BurnEnjoyEventInstance
|
443
445
|
extends aptos.TypedEventInstance<BurnEnjoyEvent> {
|
444
446
|
data_typed: BurnEnjoyEvent;
|
447
|
+
type_arguments: [];
|
445
448
|
}
|
446
449
|
|
447
450
|
export class BurnRule {
|
@@ -501,28 +504,32 @@ export namespace SouffleChefCampaign {
|
|
501
504
|
export interface PullTokenEventInstance
|
502
505
|
extends aptos.TypedEventInstance<PullTokenEvent> {
|
503
506
|
data_typed: PullTokenEvent;
|
507
|
+
type_arguments: [];
|
504
508
|
}
|
505
509
|
|
506
510
|
export class ResourceAccountCap<T0> {
|
507
511
|
cap: account.SignerCapability;
|
508
512
|
}
|
509
513
|
|
510
|
-
export interface AddAclPayload
|
514
|
+
export interface AddAclPayload
|
511
515
|
extends aptos.TypedEntryFunctionPayload<[string, Address]> {
|
512
516
|
arguments_typed: [string, Address];
|
517
|
+
type_arguments: [string];
|
513
518
|
}
|
514
519
|
|
515
|
-
export interface AddBurnTokenRulePayload
|
520
|
+
export interface AddBurnTokenRulePayload
|
516
521
|
extends aptos.TypedEntryFunctionPayload<[Address, string, bigint]> {
|
517
522
|
arguments_typed: [Address, string, bigint];
|
523
|
+
type_arguments: [string];
|
518
524
|
}
|
519
525
|
|
520
|
-
export interface BatchAddAclPayload
|
526
|
+
export interface BatchAddAclPayload
|
521
527
|
extends aptos.TypedEntryFunctionPayload<[string[], Address[]]> {
|
522
528
|
arguments_typed: [string[], Address[]];
|
529
|
+
type_arguments: [string];
|
523
530
|
}
|
524
531
|
|
525
|
-
export interface BurnAndEnjoyPayload
|
532
|
+
export interface BurnAndEnjoyPayload
|
526
533
|
extends aptos.TypedEntryFunctionPayload<
|
527
534
|
[Address, Address[], string[], string[], bigint[], bigint[]]
|
528
535
|
> {
|
@@ -534,19 +541,22 @@ export namespace SouffleChefCampaign {
|
|
534
541
|
bigint[],
|
535
542
|
bigint[]
|
536
543
|
];
|
544
|
+
type_arguments: [string];
|
537
545
|
}
|
538
546
|
|
539
|
-
export interface ClaimPayload
|
547
|
+
export interface ClaimPayload
|
540
548
|
extends aptos.TypedEntryFunctionPayload<[Address]> {
|
541
549
|
arguments_typed: [Address];
|
550
|
+
type_arguments: [string];
|
542
551
|
}
|
543
552
|
|
544
|
-
export interface CreateCandyMachinePayload
|
553
|
+
export interface CreateCandyMachinePayload
|
545
554
|
extends aptos.TypedEntryFunctionPayload<[string]> {
|
546
555
|
arguments_typed: [string];
|
556
|
+
type_arguments: [string];
|
547
557
|
}
|
548
558
|
|
549
|
-
export interface CreateCollectionPayload
|
559
|
+
export interface CreateCollectionPayload
|
550
560
|
extends aptos.TypedEntryFunctionPayload<
|
551
561
|
[
|
552
562
|
Address,
|
@@ -587,28 +597,32 @@ export namespace SouffleChefCampaign {
|
|
587
597
|
bigint,
|
588
598
|
Boolean
|
589
599
|
];
|
600
|
+
type_arguments: [string];
|
590
601
|
}
|
591
602
|
|
592
|
-
export interface PullTokenPayload
|
603
|
+
export interface PullTokenPayload
|
593
604
|
extends aptos.TypedEntryFunctionPayload<
|
594
605
|
[Address, Address, string, bigint]
|
595
606
|
> {
|
596
607
|
arguments_typed: [Address, Address, string, bigint];
|
608
|
+
type_arguments: [string];
|
597
609
|
}
|
598
610
|
|
599
|
-
export interface PullTokenV2Payload
|
611
|
+
export interface PullTokenV2Payload
|
600
612
|
extends aptos.TypedEntryFunctionPayload<
|
601
613
|
[Address, Address, string, bigint]
|
602
614
|
> {
|
603
615
|
arguments_typed: [Address, Address, string, bigint];
|
616
|
+
type_arguments: [string];
|
604
617
|
}
|
605
618
|
|
606
|
-
export interface RemoveBurnTokenRulePayload
|
619
|
+
export interface RemoveBurnTokenRulePayload
|
607
620
|
extends aptos.TypedEntryFunctionPayload<[Address, string, bigint]> {
|
608
621
|
arguments_typed: [Address, string, bigint];
|
622
|
+
type_arguments: [string];
|
609
623
|
}
|
610
624
|
|
611
|
-
export interface UpdateTokenPropertyPayload
|
625
|
+
export interface UpdateTokenPropertyPayload
|
612
626
|
extends aptos.TypedEntryFunctionPayload<
|
613
627
|
[
|
614
628
|
Address,
|
@@ -633,6 +647,7 @@ export namespace SouffleChefCampaign {
|
|
633
647
|
string[],
|
634
648
|
string[]
|
635
649
|
];
|
650
|
+
type_arguments: [string];
|
636
651
|
}
|
637
652
|
|
638
653
|
export function loadTypes(registry: aptos.TypeRegistry) {
|