@sentio/sdk 1.26.2 → 1.26.4
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.
- package/lib/aptos/types.d.ts +2 -2
- package/lib/aptos/types.js +6 -6
- package/lib/aptos/types.js.map +1 -1
- package/lib/aptos-codegen/codegen.js +53 -15
- package/lib/aptos-codegen/codegen.js.map +1 -1
- package/lib/builtin/aptos/0x1.d.ts +260 -255
- package/lib/builtin/aptos/0x1.js +428 -422
- package/lib/builtin/aptos/0x1.js.map +1 -1
- package/lib/builtin/aptos/0x3.d.ts +39 -39
- package/lib/builtin/aptos/0x3.js +66 -66
- package/lib/builtin/aptos/0x3.js.map +1 -1
- package/lib/core/exporter.d.ts +4 -9
- package/lib/core/exporter.js +8 -8
- package/lib/core/exporter.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +2 -9
- package/lib/gen/processor/protos/processor.js +15 -54
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/service.js +2 -3
- package/lib/service.js.map +1 -1
- package/lib/tests/erc20.js +1 -5
- package/lib/tests/erc20.js.map +1 -1
- package/lib/tests/types/aptos/souffle.d.ts +16 -16
- package/lib/tests/types/aptos/souffle.js +26 -26
- package/lib/tests/types/aptos/souffle.js.map +1 -1
- package/package.json +1 -1
- package/src/aptos/types.ts +6 -6
- package/src/aptos-codegen/codegen.ts +64 -17
- package/src/builtin/aptos/0x1.ts +472 -454
- package/src/builtin/aptos/0x3.ts +78 -78
- package/src/core/exporter.ts +9 -14
- package/src/gen/processor/protos/processor.ts +15 -59
- package/src/service.ts +2 -3
- package/src/tests/erc20.ts +1 -5
- package/src/tests/types/aptos/souffle.ts +26 -26
|
@@ -214,40 +214,8 @@ export interface EventTrackingConfig {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
export interface ExportConfig {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
exportUrl: string;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export enum ExportConfig_ExportType {
|
|
223
|
-
WEBHOOK = 0,
|
|
224
|
-
UNRECOGNIZED = -1,
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export function exportConfig_ExportTypeFromJSON(
|
|
228
|
-
object: any
|
|
229
|
-
): ExportConfig_ExportType {
|
|
230
|
-
switch (object) {
|
|
231
|
-
case 0:
|
|
232
|
-
case "WEBHOOK":
|
|
233
|
-
return ExportConfig_ExportType.WEBHOOK;
|
|
234
|
-
case -1:
|
|
235
|
-
case "UNRECOGNIZED":
|
|
236
|
-
default:
|
|
237
|
-
return ExportConfig_ExportType.UNRECOGNIZED;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export function exportConfig_ExportTypeToJSON(
|
|
242
|
-
object: ExportConfig_ExportType
|
|
243
|
-
): string {
|
|
244
|
-
switch (object) {
|
|
245
|
-
case ExportConfig_ExportType.WEBHOOK:
|
|
246
|
-
return "WEBHOOK";
|
|
247
|
-
case ExportConfig_ExportType.UNRECOGNIZED:
|
|
248
|
-
default:
|
|
249
|
-
return "UNRECOGNIZED";
|
|
250
|
-
}
|
|
217
|
+
name: string;
|
|
218
|
+
channel: string;
|
|
251
219
|
}
|
|
252
220
|
|
|
253
221
|
export interface MetricConfig {
|
|
@@ -1296,7 +1264,7 @@ export const EventTrackingConfig = {
|
|
|
1296
1264
|
};
|
|
1297
1265
|
|
|
1298
1266
|
function createBaseExportConfig(): ExportConfig {
|
|
1299
|
-
return {
|
|
1267
|
+
return { name: "", channel: "" };
|
|
1300
1268
|
}
|
|
1301
1269
|
|
|
1302
1270
|
export const ExportConfig = {
|
|
@@ -1304,14 +1272,11 @@ export const ExportConfig = {
|
|
|
1304
1272
|
message: ExportConfig,
|
|
1305
1273
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1306
1274
|
): _m0.Writer {
|
|
1307
|
-
if (message.
|
|
1308
|
-
writer.uint32(10).string(message.
|
|
1309
|
-
}
|
|
1310
|
-
if (message.exportType !== 0) {
|
|
1311
|
-
writer.uint32(16).int32(message.exportType);
|
|
1275
|
+
if (message.name !== "") {
|
|
1276
|
+
writer.uint32(10).string(message.name);
|
|
1312
1277
|
}
|
|
1313
|
-
if (message.
|
|
1314
|
-
writer.uint32(
|
|
1278
|
+
if (message.channel !== "") {
|
|
1279
|
+
writer.uint32(18).string(message.channel);
|
|
1315
1280
|
}
|
|
1316
1281
|
return writer;
|
|
1317
1282
|
},
|
|
@@ -1324,13 +1289,10 @@ export const ExportConfig = {
|
|
|
1324
1289
|
const tag = reader.uint32();
|
|
1325
1290
|
switch (tag >>> 3) {
|
|
1326
1291
|
case 1:
|
|
1327
|
-
message.
|
|
1292
|
+
message.name = reader.string();
|
|
1328
1293
|
break;
|
|
1329
1294
|
case 2:
|
|
1330
|
-
message.
|
|
1331
|
-
break;
|
|
1332
|
-
case 3:
|
|
1333
|
-
message.exportUrl = reader.string();
|
|
1295
|
+
message.channel = reader.string();
|
|
1334
1296
|
break;
|
|
1335
1297
|
default:
|
|
1336
1298
|
reader.skipType(tag & 7);
|
|
@@ -1342,28 +1304,22 @@ export const ExportConfig = {
|
|
|
1342
1304
|
|
|
1343
1305
|
fromJSON(object: any): ExportConfig {
|
|
1344
1306
|
return {
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
? exportConfig_ExportTypeFromJSON(object.exportType)
|
|
1348
|
-
: 0,
|
|
1349
|
-
exportUrl: isSet(object.exportUrl) ? String(object.exportUrl) : "",
|
|
1307
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
1308
|
+
channel: isSet(object.channel) ? String(object.channel) : "",
|
|
1350
1309
|
};
|
|
1351
1310
|
},
|
|
1352
1311
|
|
|
1353
1312
|
toJSON(message: ExportConfig): unknown {
|
|
1354
1313
|
const obj: any = {};
|
|
1355
|
-
message.
|
|
1356
|
-
message.
|
|
1357
|
-
(obj.exportType = exportConfig_ExportTypeToJSON(message.exportType));
|
|
1358
|
-
message.exportUrl !== undefined && (obj.exportUrl = message.exportUrl);
|
|
1314
|
+
message.name !== undefined && (obj.name = message.name);
|
|
1315
|
+
message.channel !== undefined && (obj.channel = message.channel);
|
|
1359
1316
|
return obj;
|
|
1360
1317
|
},
|
|
1361
1318
|
|
|
1362
1319
|
fromPartial(object: DeepPartial<ExportConfig>): ExportConfig {
|
|
1363
1320
|
const message = createBaseExportConfig();
|
|
1364
|
-
message.
|
|
1365
|
-
message.
|
|
1366
|
-
message.exportUrl = object.exportUrl ?? "";
|
|
1321
|
+
message.name = object.name ?? "";
|
|
1322
|
+
message.channel = object.channel ?? "";
|
|
1367
1323
|
return message;
|
|
1368
1324
|
},
|
|
1369
1325
|
};
|
package/src/service.ts
CHANGED
|
@@ -116,9 +116,8 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
|
116
116
|
|
|
117
117
|
for (const exporter of global.PROCESSOR_STATE.exporters) {
|
|
118
118
|
this.exportConfigs.push({
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
exportUrl: exporter.options.exportUrl,
|
|
119
|
+
name: exporter.name,
|
|
120
|
+
channel: exporter.channel,
|
|
122
121
|
})
|
|
123
122
|
}
|
|
124
123
|
|
package/src/tests/erc20.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ERC20Processor, ERC20ProcessorTemplate } from '../builtin/erc20'
|
|
2
2
|
import { EventTracker } from '../core/event-tracker'
|
|
3
3
|
import { Exporter } from '../core/exporter'
|
|
4
|
-
import { ExportConfig_ExportType } from '@sentio/sdk'
|
|
5
4
|
|
|
6
5
|
export const filter = ERC20Processor.filters.Transfer(
|
|
7
6
|
'0x0000000000000000000000000000000000000000',
|
|
@@ -9,10 +8,7 @@ export const filter = ERC20Processor.filters.Transfer(
|
|
|
9
8
|
)
|
|
10
9
|
|
|
11
10
|
const tracker = EventTracker.register('sdf')
|
|
12
|
-
const exporter = Exporter.register('transfer',
|
|
13
|
-
exportType: ExportConfig_ExportType.WEBHOOK,
|
|
14
|
-
exportUrl: 'http://localhost',
|
|
15
|
-
})
|
|
11
|
+
const exporter = Exporter.register('transfer', 'xxx')
|
|
16
12
|
|
|
17
13
|
const processorTemplate = new ERC20ProcessorTemplate().onEventTransfer(async function (event, ctx) {
|
|
18
14
|
console.log('')
|
|
@@ -98,19 +98,19 @@ export class CandyMachine extends aptos.AptosBaseProcessor {
|
|
|
98
98
|
|
|
99
99
|
export namespace CandyMachine {
|
|
100
100
|
export class ACLBox<T0> {
|
|
101
|
-
static
|
|
101
|
+
static TYPE_QNAME =
|
|
102
102
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::CandyMachine::ACLBox";
|
|
103
103
|
box: acl.ACL;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
export class Counter<T0> {
|
|
107
|
-
static
|
|
107
|
+
static TYPE_QNAME =
|
|
108
108
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::CandyMachine::Counter";
|
|
109
109
|
counter: bigint;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export class Property<T0> {
|
|
113
|
-
static
|
|
113
|
+
static TYPE_QNAME =
|
|
114
114
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::CandyMachine::Property";
|
|
115
115
|
payee: Address;
|
|
116
116
|
collection: string;
|
|
@@ -133,7 +133,7 @@ export namespace CandyMachine {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
export class ResourceAccountCap<T0> {
|
|
136
|
-
static
|
|
136
|
+
static TYPE_QNAME =
|
|
137
137
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::CandyMachine::ResourceAccountCap";
|
|
138
138
|
cap: account.SignerCapability;
|
|
139
139
|
}
|
|
@@ -230,8 +230,8 @@ export namespace CandyMachine {
|
|
|
230
230
|
type_arguments: [string];
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
export function loadTypes(
|
|
234
|
-
loadAllTypes(
|
|
233
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
234
|
+
loadAllTypes(_r);
|
|
235
235
|
}
|
|
236
236
|
export const ABI: MoveModule = JSON.parse(
|
|
237
237
|
'{"address":"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807","name":"CandyMachine","friends":[],"exposed_functions":[{"name":"add_acl","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address"],"return":[]},{"name":"create_candy_machine","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x1::string::String"],"return":[]},{"name":"create_collection","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","u64","u64","u64","vector<bool>","address","u64","u64","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>","u64"],"return":[]},{"name":"pull_token","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","u64"],"return":[]},{"name":"update_token_property","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","address","0x1::string::String","0x1::string::String","u64","u64","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":[]}],"structs":[{"name":"ACLBox","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"box","type":"0x1::acl::ACL"}]},{"name":"Counter","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"counter","type":"u64"}]},{"name":"Property","is_native":false,"abilities":["copy","drop","store","key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"payee","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token_base_name","type":"0x1::string::String"},{"name":"description","type":"0x1::string::String"},{"name":"maximum","type":"u64"},{"name":"maximum_per_address","type":"u64"},{"name":"uri","type":"0x1::string::String"},{"name":"special_uri","type":"0x1::string::String"},{"name":"mod_num","type":"u64"},{"name":"mutate_setting","type":"vector<bool>"},{"name":"royalty_payee_address","type":"address"},{"name":"royalty_points_denominator","type":"u64"},{"name":"royalty_points_numerator","type":"u64"},{"name":"token_mutate_config","type":"0x3::token::TokenMutabilityConfig"},{"name":"property_keys","type":"vector<0x1::string::String>"},{"name":"property_values","type":"vector<vector<u8>>"},{"name":"property_types","type":"vector<0x1::string::String>"},{"name":"coin_per_token","type":"u64"}]},{"name":"ResourceAccountCap","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"cap","type":"0x1::account::SignerCapability"}]}]}'
|
|
@@ -442,13 +442,13 @@ export class SouffleChefCampaign extends aptos.AptosBaseProcessor {
|
|
|
442
442
|
|
|
443
443
|
export namespace SouffleChefCampaign {
|
|
444
444
|
export class ACLBox<T0> {
|
|
445
|
-
static
|
|
445
|
+
static TYPE_QNAME =
|
|
446
446
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::ACLBox";
|
|
447
447
|
box: acl.ACL;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
export class BurnEnjoyEvent {
|
|
451
|
-
static
|
|
451
|
+
static TYPE_QNAME =
|
|
452
452
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::BurnEnjoyEvent";
|
|
453
453
|
owner: Address;
|
|
454
454
|
}
|
|
@@ -460,7 +460,7 @@ export namespace SouffleChefCampaign {
|
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
export class BurnRule {
|
|
463
|
-
static
|
|
463
|
+
static TYPE_QNAME =
|
|
464
464
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::BurnRule";
|
|
465
465
|
token_ids: SouffleChefCampaign.CollectionId[];
|
|
466
466
|
burn_amount: table.Table<SouffleChefCampaign.CollectionId, bigint>;
|
|
@@ -470,26 +470,26 @@ export namespace SouffleChefCampaign {
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
export class CollectionId {
|
|
473
|
-
static
|
|
473
|
+
static TYPE_QNAME =
|
|
474
474
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::CollectionId";
|
|
475
475
|
creator: Address;
|
|
476
476
|
collection_name: string;
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
export class Counter<T0> {
|
|
480
|
-
static
|
|
480
|
+
static TYPE_QNAME =
|
|
481
481
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::Counter";
|
|
482
482
|
counter: bigint;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
export class OfferRecords {
|
|
486
|
-
static
|
|
486
|
+
static TYPE_QNAME =
|
|
487
487
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::OfferRecords";
|
|
488
488
|
records: table.Table<Address, token.TokenId[]>;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
export class Property<T0> {
|
|
492
|
-
static
|
|
492
|
+
static TYPE_QNAME =
|
|
493
493
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::Property";
|
|
494
494
|
payee: Address;
|
|
495
495
|
collection: string;
|
|
@@ -513,7 +513,7 @@ export namespace SouffleChefCampaign {
|
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
export class PropertyContainer<T0> {
|
|
516
|
-
static
|
|
516
|
+
static TYPE_QNAME =
|
|
517
517
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::PropertyContainer";
|
|
518
518
|
container: table.Table<
|
|
519
519
|
SouffleChefCampaign.CollectionId,
|
|
@@ -522,7 +522,7 @@ export namespace SouffleChefCampaign {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
export class PullTokenEvent {
|
|
525
|
-
static
|
|
525
|
+
static TYPE_QNAME =
|
|
526
526
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::PullTokenEvent";
|
|
527
527
|
receiver: Address;
|
|
528
528
|
}
|
|
@@ -534,7 +534,7 @@ export namespace SouffleChefCampaign {
|
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
export class ResourceAccountCap<T0> {
|
|
537
|
-
static
|
|
537
|
+
static TYPE_QNAME =
|
|
538
538
|
"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::ResourceAccountCap";
|
|
539
539
|
cap: account.SignerCapability;
|
|
540
540
|
}
|
|
@@ -678,21 +678,21 @@ export namespace SouffleChefCampaign {
|
|
|
678
678
|
type_arguments: [string];
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
-
export function loadTypes(
|
|
682
|
-
loadAllTypes(
|
|
681
|
+
export function loadTypes(_r: aptos.TypeRegistry) {
|
|
682
|
+
loadAllTypes(_r);
|
|
683
683
|
}
|
|
684
684
|
export const ABI: MoveModule = JSON.parse(
|
|
685
685
|
'{"address":"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807","name":"SouffleChefCampaign","friends":[],"exposed_functions":[{"name":"add_acl","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x1::string::String","address"],"return":[]},{"name":"add_burn_token_rule","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","u64"],"return":[]},{"name":"batch_add_acl","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","vector<0x1::string::String>","vector<address>"],"return":[]},{"name":"burn_and_enjoy","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","vector<address>","vector<0x1::string::String>","vector<0x1::string::String>","vector<u64>","vector<u64>"],"return":[]},{"name":"claim","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address"],"return":[]},{"name":"create_candy_machine","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","0x1::string::String"],"return":[]},{"name":"create_collection","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","u64","u64","vector<bool>","address","u64","u64","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>","u64","bool"],"return":[]},{"name":"pull_token","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","address","0x1::string::String","u64"],"return":[]},{"name":"pull_token_v2","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","address","0x1::string::String","u64"],"return":[]},{"name":"remove_burn_token_rule","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","0x1::string::String","u64"],"return":[]},{"name":"update_token_property","visibility":"public","is_entry":true,"generic_type_params":[{"constraints":[]}],"params":["&signer","address","address","0x1::string::String","0x1::string::String","u64","u64","vector<0x1::string::String>","vector<vector<u8>>","vector<0x1::string::String>"],"return":[]}],"structs":[{"name":"ACLBox","is_native":false,"abilities":["copy","drop","store","key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"box","type":"0x1::acl::ACL"}]},{"name":"BurnEnjoyEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"owner","type":"address"}]},{"name":"BurnRule","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"token_ids","type":"vector<0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::CollectionId>"},{"name":"burn_amount","type":"0x1::table::Table<0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::CollectionId, u64>"},{"name":"total_burn_amount","type":"u64"},{"name":"burn_event_handle","type":"0x1::event::EventHandle<0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::BurnEnjoyEvent>"},{"name":"pull_token_event_handle","type":"0x1::event::EventHandle<0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::PullTokenEvent>"}]},{"name":"CollectionId","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"collection_name","type":"0x1::string::String"}]},{"name":"Counter","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"counter","type":"u64"}]},{"name":"OfferRecords","is_native":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"records","type":"0x1::table::Table<address, vector<0x3::token::TokenId>>"}]},{"name":"Property","is_native":false,"abilities":["copy","drop","store"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"payee","type":"address"},{"name":"collection","type":"0x1::string::String"},{"name":"token_base_name","type":"0x1::string::String"},{"name":"description","type":"0x1::string::String"},{"name":"maximum","type":"u64"},{"name":"maximum_per_address","type":"u64"},{"name":"uri","type":"0x1::string::String"},{"name":"mutate_setting","type":"vector<bool>"},{"name":"royalty_payee_address","type":"address"},{"name":"royalty_points_denominator","type":"u64"},{"name":"royalty_points_numerator","type":"u64"},{"name":"token_mutate_config","type":"0x3::token::TokenMutabilityConfig"},{"name":"property_keys","type":"vector<0x1::string::String>"},{"name":"property_values","type":"vector<vector<u8>>"},{"name":"property_types","type":"vector<0x1::string::String>"},{"name":"coin_per_token","type":"u64"},{"name":"acl_control","type":"bool"},{"name":"acl_box","type":"0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::ACLBox<T0>"},{"name":"current_idx","type":"u64"}]},{"name":"PropertyContainer","is_native":false,"abilities":["store","key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"container","type":"0x1::table::Table<0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::CollectionId, 0x4188c8694687e844677c2aa87171019e23d61cac60de5082a278a8aa47e9d807::SouffleChefCampaign::Property<T0>>"}]},{"name":"PullTokenEvent","is_native":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"receiver","type":"address"}]},{"name":"ResourceAccountCap","is_native":false,"abilities":["key"],"generic_type_params":[{"constraints":[]}],"fields":[{"name":"cap","type":"0x1::account::SignerCapability"}]}]}'
|
|
686
686
|
);
|
|
687
687
|
}
|
|
688
688
|
|
|
689
|
-
function loadAllTypes(
|
|
690
|
-
acl.loadTypes(
|
|
691
|
-
account.loadTypes(
|
|
692
|
-
table.loadTypes(
|
|
693
|
-
event.loadTypes(
|
|
694
|
-
token.loadTypes(
|
|
689
|
+
function loadAllTypes(_r: aptos.TypeRegistry) {
|
|
690
|
+
acl.loadTypes(_r);
|
|
691
|
+
account.loadTypes(_r);
|
|
692
|
+
table.loadTypes(_r);
|
|
693
|
+
event.loadTypes(_r);
|
|
694
|
+
token.loadTypes(_r);
|
|
695
695
|
|
|
696
|
-
|
|
697
|
-
|
|
696
|
+
_r.load(CandyMachine.ABI);
|
|
697
|
+
_r.load(SouffleChefCampaign.ABI);
|
|
698
698
|
}
|