@dashevo/wasm-dpp2 4.2.0-beta.2 → 4.2.0-beta.3

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.
@@ -3083,68 +3083,139 @@ export class ContractBounds {
3083
3083
  }
3084
3084
  if (Symbol.dispose) ContractBounds.prototype[Symbol.dispose] = ContractBounds.prototype.free;
3085
3085
 
3086
- export class CoreScript {
3086
+ export class ContractFeeClaim {
3087
3087
  static __wrap(ptr) {
3088
3088
  ptr = ptr >>> 0;
3089
- const obj = Object.create(CoreScript.prototype);
3089
+ const obj = Object.create(ContractFeeClaim.prototype);
3090
3090
  obj.__wbg_ptr = ptr;
3091
- CoreScriptFinalization.register(obj, obj.__wbg_ptr, obj);
3091
+ ContractFeeClaimFinalization.register(obj, obj.__wbg_ptr, obj);
3092
3092
  return obj;
3093
3093
  }
3094
3094
  __destroy_into_raw() {
3095
3095
  const ptr = this.__wbg_ptr;
3096
3096
  this.__wbg_ptr = 0;
3097
- CoreScriptFinalization.unregister(this);
3097
+ ContractFeeClaimFinalization.unregister(this);
3098
3098
  return ptr;
3099
3099
  }
3100
3100
  free() {
3101
3101
  const ptr = this.__destroy_into_raw();
3102
- wasm.__wbg_corescript_free(ptr, 0);
3102
+ wasm.__wbg_contractfeeclaim_free(ptr, 0);
3103
+ }
3104
+ /**
3105
+ * @param {ContractFeeClaimTransitionOptions} options
3106
+ */
3107
+ constructor(options) {
3108
+ const ret = wasm.contractfeeclaim_constructor(options);
3109
+ if (ret[2]) {
3110
+ throw takeFromExternrefTable0(ret[1]);
3111
+ }
3112
+ this.__wbg_ptr = ret[0] >>> 0;
3113
+ ContractFeeClaimFinalization.register(this, this.__wbg_ptr, this);
3114
+ return this;
3115
+ }
3116
+ /**
3117
+ * @returns {Identifier}
3118
+ */
3119
+ get dataContractId() {
3120
+ const ret = wasm.contractfeeclaim_data_contract_id(this.__wbg_ptr);
3121
+ return Identifier.__wrap(ret);
3122
+ }
3123
+ /**
3124
+ * @param {string} base64
3125
+ * @returns {ContractFeeClaim}
3126
+ */
3127
+ static fromBase64(base64) {
3128
+ const ptr0 = passStringToWasm0(base64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3129
+ const len0 = WASM_VECTOR_LEN;
3130
+ const ret = wasm.contractfeeclaim_fromBase64(ptr0, len0);
3131
+ if (ret[2]) {
3132
+ throw takeFromExternrefTable0(ret[1]);
3133
+ }
3134
+ return ContractFeeClaim.__wrap(ret[0]);
3103
3135
  }
3104
3136
  /**
3105
3137
  * @param {Uint8Array} bytes
3106
- * @returns {CoreScript}
3138
+ * @returns {ContractFeeClaim}
3107
3139
  */
3108
3140
  static fromBytes(bytes) {
3109
3141
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
3110
3142
  const len0 = WASM_VECTOR_LEN;
3111
- const ret = wasm.corescript_fromBytes(ptr0, len0);
3112
- return CoreScript.__wrap(ret);
3143
+ const ret = wasm.contractfeeclaim_fromBytes(ptr0, len0);
3144
+ if (ret[2]) {
3145
+ throw takeFromExternrefTable0(ret[1]);
3146
+ }
3147
+ return ContractFeeClaim.__wrap(ret[0]);
3113
3148
  }
3114
3149
  /**
3115
- * @param {Uint8Array} keyHash
3116
- * @returns {CoreScript}
3150
+ * @param {string} hex
3151
+ * @returns {ContractFeeClaim}
3117
3152
  */
3118
- static fromP2PKH(keyHash) {
3119
- const ptr0 = passArray8ToWasm0(keyHash, wasm.__wbindgen_malloc);
3153
+ static fromHex(hex) {
3154
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3120
3155
  const len0 = WASM_VECTOR_LEN;
3121
- const ret = wasm.corescript_fromP2PKH(ptr0, len0);
3156
+ const ret = wasm.contractfeeclaim_fromHex(ptr0, len0);
3122
3157
  if (ret[2]) {
3123
3158
  throw takeFromExternrefTable0(ret[1]);
3124
3159
  }
3125
- return CoreScript.__wrap(ret[0]);
3160
+ return ContractFeeClaim.__wrap(ret[0]);
3126
3161
  }
3127
3162
  /**
3128
- * @param {Uint8Array} scriptHash
3129
- * @returns {CoreScript}
3163
+ * @param {ContractFeeClaimJSON} js
3164
+ * @returns {ContractFeeClaim}
3130
3165
  */
3131
- static fromP2SH(scriptHash) {
3132
- const ptr0 = passArray8ToWasm0(scriptHash, wasm.__wbindgen_malloc);
3133
- const len0 = WASM_VECTOR_LEN;
3134
- const ret = wasm.corescript_fromP2SH(ptr0, len0);
3166
+ static fromJSON(js) {
3167
+ const ret = wasm.contractfeeclaim_fromJSON(js);
3135
3168
  if (ret[2]) {
3136
3169
  throw takeFromExternrefTable0(ret[1]);
3137
3170
  }
3138
- return CoreScript.__wrap(ret[0]);
3171
+ return ContractFeeClaim.__wrap(ret[0]);
3172
+ }
3173
+ /**
3174
+ * @param {ContractFeeClaimObject} obj
3175
+ * @returns {ContractFeeClaim}
3176
+ */
3177
+ static fromObject(obj) {
3178
+ const ret = wasm.contractfeeclaim_fromObject(obj);
3179
+ if (ret[2]) {
3180
+ throw takeFromExternrefTable0(ret[1]);
3181
+ }
3182
+ return ContractFeeClaim.__wrap(ret[0]);
3183
+ }
3184
+ /**
3185
+ * @param {StateTransition} st
3186
+ * @returns {ContractFeeClaim}
3187
+ */
3188
+ static fromStateTransition(st) {
3189
+ _assertClass(st, StateTransition);
3190
+ const ret = wasm.contractfeeclaim_fromStateTransition(st.__wbg_ptr);
3191
+ if (ret[2]) {
3192
+ throw takeFromExternrefTable0(ret[1]);
3193
+ }
3194
+ return ContractFeeClaim.__wrap(ret[0]);
3195
+ }
3196
+ /**
3197
+ * @returns {bigint}
3198
+ */
3199
+ get identityContractNonce() {
3200
+ const ret = wasm.contractfeeclaim_identity_contract_nonce(this.__wbg_ptr);
3201
+ return BigInt.asUintN(64, ret);
3202
+ }
3203
+ /**
3204
+ * @returns {Identifier}
3205
+ */
3206
+ get ownerId() {
3207
+ const ret = wasm.contractfeeclaim_owner_id(this.__wbg_ptr);
3208
+ return Identifier.__wrap(ret);
3139
3209
  }
3140
3210
  /**
3211
+ * The pot that is paid out: owner or moderators
3141
3212
  * @returns {string}
3142
3213
  */
3143
- static get __struct() {
3214
+ get pot() {
3144
3215
  let deferred1_0;
3145
3216
  let deferred1_1;
3146
3217
  try {
3147
- const ret = wasm.corescript_struct_name();
3218
+ const ret = wasm.contractfeeclaim_pot(this.__wbg_ptr);
3148
3219
  deferred1_0 = ret[0];
3149
3220
  deferred1_1 = ret[1];
3150
3221
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3152,14 +3223,94 @@ export class CoreScript {
3152
3223
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3153
3224
  }
3154
3225
  }
3226
+ /**
3227
+ * @param {IdentifierLike} id
3228
+ */
3229
+ set dataContractId(id) {
3230
+ const ret = wasm.contractfeeclaim_set_data_contract_id(this.__wbg_ptr, id);
3231
+ if (ret[1]) {
3232
+ throw takeFromExternrefTable0(ret[0]);
3233
+ }
3234
+ }
3235
+ /**
3236
+ * @param {bigint} nonce
3237
+ */
3238
+ set identityContractNonce(nonce) {
3239
+ const ret = wasm.contractfeeclaim_set_identity_contract_nonce(this.__wbg_ptr, nonce);
3240
+ if (ret[1]) {
3241
+ throw takeFromExternrefTable0(ret[0]);
3242
+ }
3243
+ }
3244
+ /**
3245
+ * @param {IdentifierLike} owner_id
3246
+ */
3247
+ set ownerId(owner_id) {
3248
+ const ret = wasm.contractfeeclaim_set_owner_id(this.__wbg_ptr, owner_id);
3249
+ if (ret[1]) {
3250
+ throw takeFromExternrefTable0(ret[0]);
3251
+ }
3252
+ }
3253
+ /**
3254
+ * @param {string} pot
3255
+ */
3256
+ set pot(pot) {
3257
+ const ptr0 = passStringToWasm0(pot, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3258
+ const len0 = WASM_VECTOR_LEN;
3259
+ const ret = wasm.contractfeeclaim_set_pot(this.__wbg_ptr, ptr0, len0);
3260
+ if (ret[1]) {
3261
+ throw takeFromExternrefTable0(ret[0]);
3262
+ }
3263
+ }
3264
+ /**
3265
+ * @param {Uint8Array} signature
3266
+ */
3267
+ set signature(signature) {
3268
+ const ptr0 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
3269
+ const len0 = WASM_VECTOR_LEN;
3270
+ wasm.contractfeeclaim_set_signature(this.__wbg_ptr, ptr0, len0);
3271
+ }
3272
+ /**
3273
+ * @param {number} publicKeyId
3274
+ */
3275
+ set signaturePublicKeyId(publicKeyId) {
3276
+ const ret = wasm.contractfeeclaim_set_signature_public_key_id(this.__wbg_ptr, publicKeyId);
3277
+ if (ret[1]) {
3278
+ throw takeFromExternrefTable0(ret[0]);
3279
+ }
3280
+ }
3281
+ /**
3282
+ * @param {number} amount
3283
+ */
3284
+ set userFeeIncrease(amount) {
3285
+ const ret = wasm.contractfeeclaim_set_user_fee_increase(this.__wbg_ptr, amount);
3286
+ if (ret[1]) {
3287
+ throw takeFromExternrefTable0(ret[0]);
3288
+ }
3289
+ }
3290
+ /**
3291
+ * @returns {Uint8Array}
3292
+ */
3293
+ get signature() {
3294
+ const ret = wasm.contractfeeclaim_signature(this.__wbg_ptr);
3295
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
3296
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3297
+ return v1;
3298
+ }
3299
+ /**
3300
+ * @returns {number}
3301
+ */
3302
+ get signaturePublicKeyId() {
3303
+ const ret = wasm.contractfeeclaim_signature_public_key_id(this.__wbg_ptr);
3304
+ return ret >>> 0;
3305
+ }
3155
3306
  /**
3156
3307
  * @returns {string}
3157
3308
  */
3158
- toASMString() {
3309
+ static get __struct() {
3159
3310
  let deferred1_0;
3160
3311
  let deferred1_1;
3161
3312
  try {
3162
- const ret = wasm.corescript_toASMString(this.__wbg_ptr);
3313
+ const ret = wasm.contractfeeclaim_struct_name();
3163
3314
  deferred1_0 = ret[0];
3164
3315
  deferred1_1 = ret[1];
3165
3316
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3168,14 +3319,13 @@ export class CoreScript {
3168
3319
  }
3169
3320
  }
3170
3321
  /**
3171
- * @param {NetworkLike} network
3172
3322
  * @returns {string}
3173
3323
  */
3174
- toAddress(network) {
3324
+ toBase64() {
3175
3325
  let deferred2_0;
3176
3326
  let deferred2_1;
3177
3327
  try {
3178
- const ret = wasm.corescript_toAddress(this.__wbg_ptr, network);
3328
+ const ret = wasm.contractfeeclaim_toBase64(this.__wbg_ptr);
3179
3329
  var ptr1 = ret[0];
3180
3330
  var len1 = ret[1];
3181
3331
  if (ret[3]) {
@@ -3189,26 +3339,14 @@ export class CoreScript {
3189
3339
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
3190
3340
  }
3191
3341
  }
3192
- /**
3193
- * @returns {string}
3194
- */
3195
- toBase64() {
3196
- let deferred1_0;
3197
- let deferred1_1;
3198
- try {
3199
- const ret = wasm.corescript_toBase64(this.__wbg_ptr);
3200
- deferred1_0 = ret[0];
3201
- deferred1_1 = ret[1];
3202
- return getStringFromWasm0(ret[0], ret[1]);
3203
- } finally {
3204
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3205
- }
3206
- }
3207
3342
  /**
3208
3343
  * @returns {Uint8Array}
3209
3344
  */
3210
3345
  toBytes() {
3211
- const ret = wasm.corescript_toBytes(this.__wbg_ptr);
3346
+ const ret = wasm.contractfeeclaim_toBytes(this.__wbg_ptr);
3347
+ if (ret[3]) {
3348
+ throw takeFromExternrefTable0(ret[2]);
3349
+ }
3212
3350
  var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
3213
3351
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3214
3352
  return v1;
@@ -3217,31 +3355,49 @@ export class CoreScript {
3217
3355
  * @returns {string}
3218
3356
  */
3219
3357
  toHex() {
3220
- let deferred1_0;
3221
- let deferred1_1;
3358
+ let deferred2_0;
3359
+ let deferred2_1;
3222
3360
  try {
3223
- const ret = wasm.corescript_toHex(this.__wbg_ptr);
3224
- deferred1_0 = ret[0];
3225
- deferred1_1 = ret[1];
3226
- return getStringFromWasm0(ret[0], ret[1]);
3361
+ const ret = wasm.contractfeeclaim_toHex(this.__wbg_ptr);
3362
+ var ptr1 = ret[0];
3363
+ var len1 = ret[1];
3364
+ if (ret[3]) {
3365
+ ptr1 = 0; len1 = 0;
3366
+ throw takeFromExternrefTable0(ret[2]);
3367
+ }
3368
+ deferred2_0 = ptr1;
3369
+ deferred2_1 = len1;
3370
+ return getStringFromWasm0(ptr1, len1);
3227
3371
  } finally {
3228
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3372
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
3229
3373
  }
3230
3374
  }
3231
3375
  /**
3232
- * @returns {string}
3376
+ * @returns {ContractFeeClaimJSON}
3233
3377
  */
3234
- toString() {
3235
- let deferred1_0;
3236
- let deferred1_1;
3237
- try {
3238
- const ret = wasm.corescript_toString(this.__wbg_ptr);
3239
- deferred1_0 = ret[0];
3240
- deferred1_1 = ret[1];
3241
- return getStringFromWasm0(ret[0], ret[1]);
3242
- } finally {
3243
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3378
+ toJSON() {
3379
+ const ret = wasm.contractfeeclaim_toJSON(this.__wbg_ptr);
3380
+ if (ret[2]) {
3381
+ throw takeFromExternrefTable0(ret[1]);
3244
3382
  }
3383
+ return takeFromExternrefTable0(ret[0]);
3384
+ }
3385
+ /**
3386
+ * @returns {ContractFeeClaimObject}
3387
+ */
3388
+ toObject() {
3389
+ const ret = wasm.contractfeeclaim_toObject(this.__wbg_ptr);
3390
+ if (ret[2]) {
3391
+ throw takeFromExternrefTable0(ret[1]);
3392
+ }
3393
+ return takeFromExternrefTable0(ret[0]);
3394
+ }
3395
+ /**
3396
+ * @returns {StateTransition}
3397
+ */
3398
+ toStateTransition() {
3399
+ const ret = wasm.contractfeeclaim_toStateTransition(this.__wbg_ptr);
3400
+ return StateTransition.__wrap(ret);
3245
3401
  }
3246
3402
  /**
3247
3403
  * @returns {string}
@@ -3250,7 +3406,7 @@ export class CoreScript {
3250
3406
  let deferred1_0;
3251
3407
  let deferred1_1;
3252
3408
  try {
3253
- const ret = wasm.corescript_type_name(this.__wbg_ptr);
3409
+ const ret = wasm.contractfeeclaim_type_name(this.__wbg_ptr);
3254
3410
  deferred1_0 = ret[0];
3255
3411
  deferred1_1 = ret[1];
3256
3412
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3258,314 +3414,262 @@ export class CoreScript {
3258
3414
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3259
3415
  }
3260
3416
  }
3417
+ /**
3418
+ * @returns {number}
3419
+ */
3420
+ get userFeeIncrease() {
3421
+ const ret = wasm.contractfeeclaim_user_fee_increase(this.__wbg_ptr);
3422
+ return ret;
3423
+ }
3261
3424
  }
3262
- if (Symbol.dispose) CoreScript.prototype[Symbol.dispose] = CoreScript.prototype.free;
3425
+ if (Symbol.dispose) ContractFeeClaim.prototype[Symbol.dispose] = ContractFeeClaim.prototype.free;
3263
3426
 
3264
- export class DataContract {
3427
+ export class ContractUserModeration {
3265
3428
  static __wrap(ptr) {
3266
3429
  ptr = ptr >>> 0;
3267
- const obj = Object.create(DataContract.prototype);
3430
+ const obj = Object.create(ContractUserModeration.prototype);
3268
3431
  obj.__wbg_ptr = ptr;
3269
- DataContractFinalization.register(obj, obj.__wbg_ptr, obj);
3432
+ ContractUserModerationFinalization.register(obj, obj.__wbg_ptr, obj);
3270
3433
  return obj;
3271
3434
  }
3272
3435
  __destroy_into_raw() {
3273
3436
  const ptr = this.__wbg_ptr;
3274
3437
  this.__wbg_ptr = 0;
3275
- DataContractFinalization.unregister(this);
3438
+ ContractUserModerationFinalization.unregister(this);
3276
3439
  return ptr;
3277
3440
  }
3278
3441
  free() {
3279
3442
  const ptr = this.__destroy_into_raw();
3280
- wasm.__wbg_datacontract_free(ptr, 0);
3443
+ wasm.__wbg_contractusermoderation_free(ptr, 0);
3281
3444
  }
3282
3445
  /**
3283
- * @returns {DataContractConfig}
3446
+ * The action's name: ban, unban, suspend, unsuspend or deleteDocument
3447
+ * @returns {string}
3284
3448
  */
3285
- get config() {
3286
- const ret = wasm.datacontract_config(this.__wbg_ptr);
3287
- if (ret[2]) {
3288
- throw takeFromExternrefTable0(ret[1]);
3449
+ get action() {
3450
+ let deferred1_0;
3451
+ let deferred1_1;
3452
+ try {
3453
+ const ret = wasm.contractusermoderation_action(this.__wbg_ptr);
3454
+ deferred1_0 = ret[0];
3455
+ deferred1_1 = ret[1];
3456
+ return getStringFromWasm0(ret[0], ret[1]);
3457
+ } finally {
3458
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3289
3459
  }
3290
- return takeFromExternrefTable0(ret[0]);
3291
3460
  }
3292
3461
  /**
3293
- * @param {DataContractOptions} options
3462
+ * @param {ContractUserModerationTransitionOptions} options
3294
3463
  */
3295
3464
  constructor(options) {
3296
- const ret = wasm.datacontract_constructor(options);
3465
+ const ret = wasm.contractusermoderation_constructor(options);
3297
3466
  if (ret[2]) {
3298
3467
  throw takeFromExternrefTable0(ret[1]);
3299
3468
  }
3300
3469
  this.__wbg_ptr = ret[0] >>> 0;
3301
- DataContractFinalization.register(this, this.__wbg_ptr, this);
3470
+ ContractUserModerationFinalization.register(this, this.__wbg_ptr, this);
3302
3471
  return this;
3303
3472
  }
3304
3473
  /**
3305
- * The `immutable` / `immutableAllowSetting` declarations of one
3306
- * document type: `{ immutable: string[], immutableAllowSetting:
3307
- * string[] }`, both sorted by property name.
3308
- *
3309
- * Both arrays are empty when the document type declares nothing (the
3310
- * normal case, and the only case for a type whose documents are not
3311
- * mutable). Throws when the contract has no document type by that
3312
- * name, so "no such type" and "nothing frozen" stay distinguishable.
3313
- *
3314
- * The keywords are only parsed from protocol version 14 onward. A
3315
- * contract deserialized against an earlier platform version reports
3316
- * empty lists, which is exactly what consensus enforced at that
3317
- * version, while `toJSON()` still shows the raw keywords either way.
3318
- * @param {string} documentTypeName
3319
- * @returns {DocumentTypeImmutableProperties}
3320
- */
3321
- documentTypeImmutableProperties(documentTypeName) {
3322
- const ptr0 = passStringToWasm0(documentTypeName, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3323
- const len0 = WASM_VECTOR_LEN;
3324
- const ret = wasm.datacontract_documentTypeImmutableProperties(this.__wbg_ptr, ptr0, len0);
3325
- if (ret[2]) {
3326
- throw takeFromExternrefTable0(ret[1]);
3327
- }
3328
- return takeFromExternrefTable0(ret[0]);
3329
- }
3330
- /**
3331
- * All `refersTo` declarations of one document type, in schema property
3332
- * order.
3333
- *
3334
- * Returns an empty array when the document type declares none. Throws
3335
- * when the contract has no document type by that name — an empty array
3336
- * would conflate "no such type" with "no references".
3337
- *
3338
- * Reference declarations are only parsed from protocol version 14
3339
- * onward. A contract deserialized against an earlier platform version
3340
- * reports none, which is exactly what consensus enforced at that
3341
- * version — but note the trap: `DataContract.fromBytes(bytes, false, 1)`
3342
- * yields `[]` even for a contract whose raw schema does carry
3343
- * `refersTo`, and `toJSON()` still shows the raw keyword either way.
3344
- * @param {string} documentTypeName
3345
- * @returns {Array<DocumentPropertyReference>}
3474
+ * @returns {Identifier}
3346
3475
  */
3347
- documentTypeReferences(documentTypeName) {
3348
- const ptr0 = passStringToWasm0(documentTypeName, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3349
- const len0 = WASM_VECTOR_LEN;
3350
- const ret = wasm.datacontract_documentTypeReferences(this.__wbg_ptr, ptr0, len0);
3351
- if (ret[2]) {
3352
- throw takeFromExternrefTable0(ret[1]);
3353
- }
3354
- return takeFromExternrefTable0(ret[0]);
3476
+ get dataContractId() {
3477
+ const ret = wasm.contractusermoderation_data_contract_id(this.__wbg_ptr);
3478
+ return Identifier.__wrap(ret);
3355
3479
  }
3356
3480
  /**
3357
- * Every document type that freezes at least one property, keyed by
3358
- * document type name.
3359
- *
3360
- * Document types with an empty `immutable` list are omitted, so an
3361
- * empty `Map` means "nothing in this contract is frozen per property".
3362
- * @returns {Map<string, DocumentTypeImmutableProperties>}
3481
+ * For a deleteDocument, the document it deletes
3482
+ * @returns {Identifier | undefined}
3363
3483
  */
3364
- get documentImmutableProperties() {
3365
- const ret = wasm.datacontract_document_immutable_properties(this.__wbg_ptr);
3366
- if (ret[2]) {
3367
- throw takeFromExternrefTable0(ret[1]);
3368
- }
3369
- return takeFromExternrefTable0(ret[0]);
3484
+ get documentId() {
3485
+ const ret = wasm.contractusermoderation_document_id(this.__wbg_ptr);
3486
+ return ret === 0 ? undefined : Identifier.__wrap(ret);
3370
3487
  }
3371
3488
  /**
3372
- * Every document type that declares at least one reference, keyed by
3373
- * document type name.
3374
- *
3375
- * Document types with no declarations are omitted, so an empty `Map`
3376
- * means "this contract declares no references at all".
3377
- * @returns {Map<string, Array<DocumentPropertyReference>>}
3489
+ * For a deleteDocument, the document type of the document it deletes
3490
+ * @returns {string | undefined}
3378
3491
  */
3379
- get documentReferences() {
3380
- const ret = wasm.datacontract_document_references(this.__wbg_ptr);
3381
- if (ret[2]) {
3382
- throw takeFromExternrefTable0(ret[1]);
3492
+ get documentTypeName() {
3493
+ const ret = wasm.contractusermoderation_document_type_name(this.__wbg_ptr);
3494
+ let v1;
3495
+ if (ret[0] !== 0) {
3496
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
3497
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3383
3498
  }
3384
- return takeFromExternrefTable0(ret[0]);
3499
+ return v1;
3385
3500
  }
3386
3501
  /**
3387
3502
  * @param {string} base64
3388
- * @param {boolean} full_validation
3389
- * @param {PlatformVersionLike} platform_version
3390
- * @returns {DataContract}
3503
+ * @returns {ContractUserModeration}
3391
3504
  */
3392
- static fromBase64(base64, full_validation, platform_version) {
3505
+ static fromBase64(base64) {
3393
3506
  const ptr0 = passStringToWasm0(base64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3394
3507
  const len0 = WASM_VECTOR_LEN;
3395
- const ret = wasm.datacontract_fromBase64(ptr0, len0, full_validation, platform_version);
3508
+ const ret = wasm.contractusermoderation_fromBase64(ptr0, len0);
3396
3509
  if (ret[2]) {
3397
3510
  throw takeFromExternrefTable0(ret[1]);
3398
3511
  }
3399
- return DataContract.__wrap(ret[0]);
3512
+ return ContractUserModeration.__wrap(ret[0]);
3400
3513
  }
3401
3514
  /**
3402
3515
  * @param {Uint8Array} bytes
3403
- * @param {boolean} full_validation
3404
- * @param {PlatformVersionLike} platform_version
3405
- * @returns {DataContract}
3516
+ * @returns {ContractUserModeration}
3406
3517
  */
3407
- static fromBytes(bytes, full_validation, platform_version) {
3518
+ static fromBytes(bytes) {
3408
3519
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
3409
3520
  const len0 = WASM_VECTOR_LEN;
3410
- const ret = wasm.datacontract_fromBytes(ptr0, len0, full_validation, platform_version);
3521
+ const ret = wasm.contractusermoderation_fromBytes(ptr0, len0);
3411
3522
  if (ret[2]) {
3412
3523
  throw takeFromExternrefTable0(ret[1]);
3413
3524
  }
3414
- return DataContract.__wrap(ret[0]);
3525
+ return ContractUserModeration.__wrap(ret[0]);
3415
3526
  }
3416
3527
  /**
3417
3528
  * @param {string} hex
3418
- * @param {boolean} full_validation
3419
- * @param {PlatformVersionLike} platform_version
3420
- * @returns {DataContract}
3529
+ * @returns {ContractUserModeration}
3421
3530
  */
3422
- static fromHex(hex, full_validation, platform_version) {
3531
+ static fromHex(hex) {
3423
3532
  const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3424
3533
  const len0 = WASM_VECTOR_LEN;
3425
- const ret = wasm.datacontract_fromHex(ptr0, len0, full_validation, platform_version);
3534
+ const ret = wasm.contractusermoderation_fromHex(ptr0, len0);
3426
3535
  if (ret[2]) {
3427
3536
  throw takeFromExternrefTable0(ret[1]);
3428
3537
  }
3429
- return DataContract.__wrap(ret[0]);
3538
+ return ContractUserModeration.__wrap(ret[0]);
3430
3539
  }
3431
3540
  /**
3432
- * @param {DataContractJSON} value
3433
- * @param {boolean} full_validation
3434
- * @param {PlatformVersionLike} platform_version
3435
- * @returns {DataContract}
3541
+ * @param {ContractUserModerationJSON} js
3542
+ * @returns {ContractUserModeration}
3436
3543
  */
3437
- static fromJSON(value, full_validation, platform_version) {
3438
- const ret = wasm.datacontract_fromJSON(value, full_validation, platform_version);
3544
+ static fromJSON(js) {
3545
+ const ret = wasm.contractusermoderation_fromJSON(js);
3439
3546
  if (ret[2]) {
3440
3547
  throw takeFromExternrefTable0(ret[1]);
3441
3548
  }
3442
- return DataContract.__wrap(ret[0]);
3549
+ return ContractUserModeration.__wrap(ret[0]);
3443
3550
  }
3444
3551
  /**
3445
- * @param {DataContractObject} value
3446
- * @param {boolean} full_validation
3447
- * @param {PlatformVersionLike} platform_version
3448
- * @returns {DataContract}
3552
+ * @param {ContractUserModerationObject} obj
3553
+ * @returns {ContractUserModeration}
3449
3554
  */
3450
- static fromObject(value, full_validation, platform_version) {
3451
- const ret = wasm.datacontract_fromObject(value, full_validation, platform_version);
3555
+ static fromObject(obj) {
3556
+ const ret = wasm.contractusermoderation_fromObject(obj);
3452
3557
  if (ret[2]) {
3453
3558
  throw takeFromExternrefTable0(ret[1]);
3454
3559
  }
3455
- return DataContract.__wrap(ret[0]);
3560
+ return ContractUserModeration.__wrap(ret[0]);
3456
3561
  }
3457
3562
  /**
3458
- * @param {IdentifierLike} owner_id
3459
- * @param {bigint} identity_nonce
3460
- * @returns {Identifier}
3563
+ * @param {StateTransition} st
3564
+ * @returns {ContractUserModeration}
3461
3565
  */
3462
- static generateId(owner_id, identity_nonce) {
3463
- const ret = wasm.datacontract_generateId(owner_id, identity_nonce);
3566
+ static fromStateTransition(st) {
3567
+ _assertClass(st, StateTransition);
3568
+ const ret = wasm.contractusermoderation_fromStateTransition(st.__wbg_ptr);
3464
3569
  if (ret[2]) {
3465
3570
  throw takeFromExternrefTable0(ret[1]);
3466
3571
  }
3467
- return Identifier.__wrap(ret[0]);
3572
+ return ContractUserModeration.__wrap(ret[0]);
3468
3573
  }
3469
3574
  /**
3470
- * @returns {Record<number, Group>}
3575
+ * @returns {bigint}
3471
3576
  */
3472
- get groups() {
3473
- const ret = wasm.datacontract_groups(this.__wbg_ptr);
3474
- if (ret[2]) {
3475
- throw takeFromExternrefTable0(ret[1]);
3476
- }
3477
- return takeFromExternrefTable0(ret[0]);
3577
+ get identityContractNonce() {
3578
+ const ret = wasm.contractusermoderation_identity_contract_nonce(this.__wbg_ptr);
3579
+ return BigInt.asUintN(64, ret);
3478
3580
  }
3479
3581
  /**
3480
- * @returns {Identifier}
3582
+ * The identity the action targets, undefined for a deleteDocument: it names a document,
3583
+ * and whose it is is only known once the document is read
3584
+ * @returns {Identifier | undefined}
3481
3585
  */
3482
- get id() {
3483
- const ret = wasm.datacontract_id(this.__wbg_ptr);
3484
- return Identifier.__wrap(ret);
3586
+ get identityId() {
3587
+ const ret = wasm.contractusermoderation_identity_id(this.__wbg_ptr);
3588
+ return ret === 0 ? undefined : Identifier.__wrap(ret);
3485
3589
  }
3486
3590
  /**
3487
3591
  * @returns {Identifier}
3488
3592
  */
3489
3593
  get ownerId() {
3490
- const ret = wasm.datacontract_owner_id(this.__wbg_ptr);
3594
+ const ret = wasm.contractusermoderation_owner_id(this.__wbg_ptr);
3491
3595
  return Identifier.__wrap(ret);
3492
3596
  }
3493
3597
  /**
3494
- * @returns {Record<string, object>}
3598
+ * For a ban, a suspend and a deleteDocument, why
3599
+ * @returns {ContractModerationReason | undefined}
3495
3600
  */
3496
- get schemas() {
3497
- const ret = wasm.datacontract_schemas(this.__wbg_ptr);
3498
- if (ret[2]) {
3499
- throw takeFromExternrefTable0(ret[1]);
3500
- }
3501
- return takeFromExternrefTable0(ret[0]);
3601
+ get reason() {
3602
+ const ret = wasm.contractusermoderation_reason(this.__wbg_ptr);
3603
+ return ret;
3502
3604
  }
3503
3605
  /**
3504
- * @param {DataContractConfig} config
3505
- * @param {PlatformVersionLike} platformVersion
3606
+ * @param {IdentifierLike} id
3506
3607
  */
3507
- setConfig(config, platformVersion) {
3508
- const ret = wasm.datacontract_setConfig(this.__wbg_ptr, config, platformVersion);
3608
+ set dataContractId(id) {
3609
+ const ret = wasm.contractusermoderation_set_data_contract_id(this.__wbg_ptr, id);
3509
3610
  if (ret[1]) {
3510
3611
  throw takeFromExternrefTable0(ret[0]);
3511
3612
  }
3512
3613
  }
3513
3614
  /**
3514
- * @param {Record<string, object>} schemas
3515
- * @param {object | null | undefined} definitions
3516
- * @param {boolean} full_validation
3517
- * @param {PlatformVersionLike} platform_version
3615
+ * @param {bigint} nonce
3518
3616
  */
3519
- setSchemas(schemas, definitions, full_validation, platform_version) {
3520
- const ret = wasm.datacontract_setSchemas(this.__wbg_ptr, schemas, isLikeNone(definitions) ? 0 : addToExternrefTable0(definitions), full_validation, platform_version);
3617
+ set identityContractNonce(nonce) {
3618
+ const ret = wasm.contractusermoderation_set_identity_contract_nonce(this.__wbg_ptr, nonce);
3521
3619
  if (ret[1]) {
3522
3620
  throw takeFromExternrefTable0(ret[0]);
3523
3621
  }
3524
3622
  }
3525
3623
  /**
3526
- * @param {Record<number, Group>} groups
3624
+ * @param {IdentifierLike} owner_id
3527
3625
  */
3528
- set groups(groups) {
3529
- const ret = wasm.datacontract_set_groups(this.__wbg_ptr, groups);
3626
+ set ownerId(owner_id) {
3627
+ const ret = wasm.contractusermoderation_set_owner_id(this.__wbg_ptr, owner_id);
3530
3628
  if (ret[1]) {
3531
3629
  throw takeFromExternrefTable0(ret[0]);
3532
3630
  }
3533
3631
  }
3534
3632
  /**
3535
- * @param {IdentifierLike} id
3633
+ * @param {Uint8Array} signature
3536
3634
  */
3537
- set id(id) {
3538
- const ret = wasm.datacontract_set_id(this.__wbg_ptr, id);
3539
- if (ret[1]) {
3540
- throw takeFromExternrefTable0(ret[0]);
3541
- }
3635
+ set signature(signature) {
3636
+ const ptr0 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
3637
+ const len0 = WASM_VECTOR_LEN;
3638
+ wasm.contractusermoderation_set_signature(this.__wbg_ptr, ptr0, len0);
3542
3639
  }
3543
3640
  /**
3544
- * @param {IdentifierLike} ownerId
3641
+ * @param {number} publicKeyId
3545
3642
  */
3546
- set ownerId(ownerId) {
3547
- const ret = wasm.datacontract_set_owner_id(this.__wbg_ptr, ownerId);
3643
+ set signaturePublicKeyId(publicKeyId) {
3644
+ const ret = wasm.contractusermoderation_set_signature_public_key_id(this.__wbg_ptr, publicKeyId);
3548
3645
  if (ret[1]) {
3549
3646
  throw takeFromExternrefTable0(ret[0]);
3550
3647
  }
3551
3648
  }
3552
3649
  /**
3553
- * @param {Record<number, TokenConfiguration>} tokens
3650
+ * @param {number} amount
3554
3651
  */
3555
- set tokens(tokens) {
3556
- const ret = wasm.datacontract_set_tokens(this.__wbg_ptr, tokens);
3652
+ set userFeeIncrease(amount) {
3653
+ const ret = wasm.contractusermoderation_set_user_fee_increase(this.__wbg_ptr, amount);
3557
3654
  if (ret[1]) {
3558
3655
  throw takeFromExternrefTable0(ret[0]);
3559
3656
  }
3560
3657
  }
3561
3658
  /**
3562
- * @param {number} version
3659
+ * @returns {Uint8Array}
3563
3660
  */
3564
- set version(version) {
3565
- const ret = wasm.datacontract_set_version(this.__wbg_ptr, version);
3566
- if (ret[1]) {
3567
- throw takeFromExternrefTable0(ret[0]);
3568
- }
3661
+ get signature() {
3662
+ const ret = wasm.contractusermoderation_signature(this.__wbg_ptr);
3663
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
3664
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3665
+ return v1;
3666
+ }
3667
+ /**
3668
+ * @returns {number}
3669
+ */
3670
+ get signaturePublicKeyId() {
3671
+ const ret = wasm.contractusermoderation_signature_public_key_id(this.__wbg_ptr);
3672
+ return ret >>> 0;
3569
3673
  }
3570
3674
  /**
3571
3675
  * @returns {string}
@@ -3574,7 +3678,7 @@ export class DataContract {
3574
3678
  let deferred1_0;
3575
3679
  let deferred1_1;
3576
3680
  try {
3577
- const ret = wasm.datacontract_struct_name();
3681
+ const ret = wasm.contractusermoderation_struct_name();
3578
3682
  deferred1_0 = ret[0];
3579
3683
  deferred1_1 = ret[1];
3580
3684
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3583,14 +3687,13 @@ export class DataContract {
3583
3687
  }
3584
3688
  }
3585
3689
  /**
3586
- * @param {PlatformVersionLike} platformVersion
3587
3690
  * @returns {string}
3588
3691
  */
3589
- toBase64(platformVersion) {
3692
+ toBase64() {
3590
3693
  let deferred2_0;
3591
3694
  let deferred2_1;
3592
3695
  try {
3593
- const ret = wasm.datacontract_toBase64(this.__wbg_ptr, platformVersion);
3696
+ const ret = wasm.contractusermoderation_toBase64(this.__wbg_ptr);
3594
3697
  var ptr1 = ret[0];
3595
3698
  var len1 = ret[1];
3596
3699
  if (ret[3]) {
@@ -3605,11 +3708,10 @@ export class DataContract {
3605
3708
  }
3606
3709
  }
3607
3710
  /**
3608
- * @param {PlatformVersionLike} platformVersion
3609
3711
  * @returns {Uint8Array}
3610
3712
  */
3611
- toBytes(platformVersion) {
3612
- const ret = wasm.datacontract_toBytes(this.__wbg_ptr, platformVersion);
3713
+ toBytes() {
3714
+ const ret = wasm.contractusermoderation_toBytes(this.__wbg_ptr);
3613
3715
  if (ret[3]) {
3614
3716
  throw takeFromExternrefTable0(ret[2]);
3615
3717
  }
@@ -3618,14 +3720,13 @@ export class DataContract {
3618
3720
  return v1;
3619
3721
  }
3620
3722
  /**
3621
- * @param {PlatformVersionLike} platformVersion
3622
3723
  * @returns {string}
3623
3724
  */
3624
- toHex(platformVersion) {
3725
+ toHex() {
3625
3726
  let deferred2_0;
3626
3727
  let deferred2_1;
3627
3728
  try {
3628
- const ret = wasm.datacontract_toHex(this.__wbg_ptr, platformVersion);
3729
+ const ret = wasm.contractusermoderation_toHex(this.__wbg_ptr);
3629
3730
  var ptr1 = ret[0];
3630
3731
  var len1 = ret[1];
3631
3732
  if (ret[3]) {
@@ -3640,36 +3741,31 @@ export class DataContract {
3640
3741
  }
3641
3742
  }
3642
3743
  /**
3643
- * @param {PlatformVersionLike} platform_version
3644
- * @returns {DataContractJSON}
3744
+ * @returns {ContractUserModerationJSON}
3645
3745
  */
3646
- toJSON(platform_version) {
3647
- const ret = wasm.datacontract_toJSON(this.__wbg_ptr, platform_version);
3746
+ toJSON() {
3747
+ const ret = wasm.contractusermoderation_toJSON(this.__wbg_ptr);
3648
3748
  if (ret[2]) {
3649
3749
  throw takeFromExternrefTable0(ret[1]);
3650
3750
  }
3651
3751
  return takeFromExternrefTable0(ret[0]);
3652
3752
  }
3653
3753
  /**
3654
- * @param {PlatformVersionLike} platformVersion
3655
- * @returns {DataContractObject}
3754
+ * @returns {ContractUserModerationObject}
3656
3755
  */
3657
- toObject(platformVersion) {
3658
- const ret = wasm.datacontract_toObject(this.__wbg_ptr, platformVersion);
3756
+ toObject() {
3757
+ const ret = wasm.contractusermoderation_toObject(this.__wbg_ptr);
3659
3758
  if (ret[2]) {
3660
3759
  throw takeFromExternrefTable0(ret[1]);
3661
3760
  }
3662
3761
  return takeFromExternrefTable0(ret[0]);
3663
3762
  }
3664
3763
  /**
3665
- * @returns {object}
3764
+ * @returns {StateTransition}
3666
3765
  */
3667
- get tokens() {
3668
- const ret = wasm.datacontract_tokens(this.__wbg_ptr);
3669
- if (ret[2]) {
3670
- throw takeFromExternrefTable0(ret[1]);
3671
- }
3672
- return takeFromExternrefTable0(ret[0]);
3766
+ toStateTransition() {
3767
+ const ret = wasm.contractusermoderation_toStateTransition(this.__wbg_ptr);
3768
+ return StateTransition.__wrap(ret);
3673
3769
  }
3674
3770
  /**
3675
3771
  * @returns {string}
@@ -3678,7 +3774,7 @@ export class DataContract {
3678
3774
  let deferred1_0;
3679
3775
  let deferred1_1;
3680
3776
  try {
3681
- const ret = wasm.datacontract_type_name(this.__wbg_ptr);
3777
+ const ret = wasm.contractusermoderation_type_name(this.__wbg_ptr);
3682
3778
  deferred1_0 = ret[0];
3683
3779
  deferred1_1 = ret[1];
3684
3780
  return getStringFromWasm0(ret[0], ret[1]);
@@ -3686,20 +3782,641 @@ export class DataContract {
3686
3782
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3687
3783
  }
3688
3784
  }
3785
+ /**
3786
+ * For a suspend, the block time in milliseconds at which the suspension lapses
3787
+ * @returns {bigint | undefined}
3788
+ */
3789
+ get until() {
3790
+ const ret = wasm.contractusermoderation_until(this.__wbg_ptr);
3791
+ return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
3792
+ }
3689
3793
  /**
3690
3794
  * @returns {number}
3691
3795
  */
3692
- get version() {
3693
- const ret = wasm.datacontract_version(this.__wbg_ptr);
3694
- return ret >>> 0;
3796
+ get userFeeIncrease() {
3797
+ const ret = wasm.contractusermoderation_user_fee_increase(this.__wbg_ptr);
3798
+ return ret;
3695
3799
  }
3696
3800
  }
3697
- if (Symbol.dispose) DataContract.prototype[Symbol.dispose] = DataContract.prototype.free;
3801
+ if (Symbol.dispose) ContractUserModeration.prototype[Symbol.dispose] = ContractUserModeration.prototype.free;
3698
3802
 
3699
- export class DataContractCreateTransition {
3803
+ export class CoreScript {
3700
3804
  static __wrap(ptr) {
3701
3805
  ptr = ptr >>> 0;
3702
- const obj = Object.create(DataContractCreateTransition.prototype);
3806
+ const obj = Object.create(CoreScript.prototype);
3807
+ obj.__wbg_ptr = ptr;
3808
+ CoreScriptFinalization.register(obj, obj.__wbg_ptr, obj);
3809
+ return obj;
3810
+ }
3811
+ __destroy_into_raw() {
3812
+ const ptr = this.__wbg_ptr;
3813
+ this.__wbg_ptr = 0;
3814
+ CoreScriptFinalization.unregister(this);
3815
+ return ptr;
3816
+ }
3817
+ free() {
3818
+ const ptr = this.__destroy_into_raw();
3819
+ wasm.__wbg_corescript_free(ptr, 0);
3820
+ }
3821
+ /**
3822
+ * @param {Uint8Array} bytes
3823
+ * @returns {CoreScript}
3824
+ */
3825
+ static fromBytes(bytes) {
3826
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
3827
+ const len0 = WASM_VECTOR_LEN;
3828
+ const ret = wasm.corescript_fromBytes(ptr0, len0);
3829
+ return CoreScript.__wrap(ret);
3830
+ }
3831
+ /**
3832
+ * @param {Uint8Array} keyHash
3833
+ * @returns {CoreScript}
3834
+ */
3835
+ static fromP2PKH(keyHash) {
3836
+ const ptr0 = passArray8ToWasm0(keyHash, wasm.__wbindgen_malloc);
3837
+ const len0 = WASM_VECTOR_LEN;
3838
+ const ret = wasm.corescript_fromP2PKH(ptr0, len0);
3839
+ if (ret[2]) {
3840
+ throw takeFromExternrefTable0(ret[1]);
3841
+ }
3842
+ return CoreScript.__wrap(ret[0]);
3843
+ }
3844
+ /**
3845
+ * @param {Uint8Array} scriptHash
3846
+ * @returns {CoreScript}
3847
+ */
3848
+ static fromP2SH(scriptHash) {
3849
+ const ptr0 = passArray8ToWasm0(scriptHash, wasm.__wbindgen_malloc);
3850
+ const len0 = WASM_VECTOR_LEN;
3851
+ const ret = wasm.corescript_fromP2SH(ptr0, len0);
3852
+ if (ret[2]) {
3853
+ throw takeFromExternrefTable0(ret[1]);
3854
+ }
3855
+ return CoreScript.__wrap(ret[0]);
3856
+ }
3857
+ /**
3858
+ * @returns {string}
3859
+ */
3860
+ static get __struct() {
3861
+ let deferred1_0;
3862
+ let deferred1_1;
3863
+ try {
3864
+ const ret = wasm.corescript_struct_name();
3865
+ deferred1_0 = ret[0];
3866
+ deferred1_1 = ret[1];
3867
+ return getStringFromWasm0(ret[0], ret[1]);
3868
+ } finally {
3869
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3870
+ }
3871
+ }
3872
+ /**
3873
+ * @returns {string}
3874
+ */
3875
+ toASMString() {
3876
+ let deferred1_0;
3877
+ let deferred1_1;
3878
+ try {
3879
+ const ret = wasm.corescript_toASMString(this.__wbg_ptr);
3880
+ deferred1_0 = ret[0];
3881
+ deferred1_1 = ret[1];
3882
+ return getStringFromWasm0(ret[0], ret[1]);
3883
+ } finally {
3884
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3885
+ }
3886
+ }
3887
+ /**
3888
+ * @param {NetworkLike} network
3889
+ * @returns {string}
3890
+ */
3891
+ toAddress(network) {
3892
+ let deferred2_0;
3893
+ let deferred2_1;
3894
+ try {
3895
+ const ret = wasm.corescript_toAddress(this.__wbg_ptr, network);
3896
+ var ptr1 = ret[0];
3897
+ var len1 = ret[1];
3898
+ if (ret[3]) {
3899
+ ptr1 = 0; len1 = 0;
3900
+ throw takeFromExternrefTable0(ret[2]);
3901
+ }
3902
+ deferred2_0 = ptr1;
3903
+ deferred2_1 = len1;
3904
+ return getStringFromWasm0(ptr1, len1);
3905
+ } finally {
3906
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
3907
+ }
3908
+ }
3909
+ /**
3910
+ * @returns {string}
3911
+ */
3912
+ toBase64() {
3913
+ let deferred1_0;
3914
+ let deferred1_1;
3915
+ try {
3916
+ const ret = wasm.corescript_toBase64(this.__wbg_ptr);
3917
+ deferred1_0 = ret[0];
3918
+ deferred1_1 = ret[1];
3919
+ return getStringFromWasm0(ret[0], ret[1]);
3920
+ } finally {
3921
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3922
+ }
3923
+ }
3924
+ /**
3925
+ * @returns {Uint8Array}
3926
+ */
3927
+ toBytes() {
3928
+ const ret = wasm.corescript_toBytes(this.__wbg_ptr);
3929
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
3930
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3931
+ return v1;
3932
+ }
3933
+ /**
3934
+ * @returns {string}
3935
+ */
3936
+ toHex() {
3937
+ let deferred1_0;
3938
+ let deferred1_1;
3939
+ try {
3940
+ const ret = wasm.corescript_toHex(this.__wbg_ptr);
3941
+ deferred1_0 = ret[0];
3942
+ deferred1_1 = ret[1];
3943
+ return getStringFromWasm0(ret[0], ret[1]);
3944
+ } finally {
3945
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3946
+ }
3947
+ }
3948
+ /**
3949
+ * @returns {string}
3950
+ */
3951
+ toString() {
3952
+ let deferred1_0;
3953
+ let deferred1_1;
3954
+ try {
3955
+ const ret = wasm.corescript_toString(this.__wbg_ptr);
3956
+ deferred1_0 = ret[0];
3957
+ deferred1_1 = ret[1];
3958
+ return getStringFromWasm0(ret[0], ret[1]);
3959
+ } finally {
3960
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3961
+ }
3962
+ }
3963
+ /**
3964
+ * @returns {string}
3965
+ */
3966
+ get __type() {
3967
+ let deferred1_0;
3968
+ let deferred1_1;
3969
+ try {
3970
+ const ret = wasm.corescript_type_name(this.__wbg_ptr);
3971
+ deferred1_0 = ret[0];
3972
+ deferred1_1 = ret[1];
3973
+ return getStringFromWasm0(ret[0], ret[1]);
3974
+ } finally {
3975
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3976
+ }
3977
+ }
3978
+ }
3979
+ if (Symbol.dispose) CoreScript.prototype[Symbol.dispose] = CoreScript.prototype.free;
3980
+
3981
+ export class DataContract {
3982
+ static __wrap(ptr) {
3983
+ ptr = ptr >>> 0;
3984
+ const obj = Object.create(DataContract.prototype);
3985
+ obj.__wbg_ptr = ptr;
3986
+ DataContractFinalization.register(obj, obj.__wbg_ptr, obj);
3987
+ return obj;
3988
+ }
3989
+ __destroy_into_raw() {
3990
+ const ptr = this.__wbg_ptr;
3991
+ this.__wbg_ptr = 0;
3992
+ DataContractFinalization.unregister(this);
3993
+ return ptr;
3994
+ }
3995
+ free() {
3996
+ const ptr = this.__destroy_into_raw();
3997
+ wasm.__wbg_datacontract_free(ptr, 0);
3998
+ }
3999
+ /**
4000
+ * @returns {DataContractConfig}
4001
+ */
4002
+ get config() {
4003
+ const ret = wasm.datacontract_config(this.__wbg_ptr);
4004
+ if (ret[2]) {
4005
+ throw takeFromExternrefTable0(ret[1]);
4006
+ }
4007
+ return takeFromExternrefTable0(ret[0]);
4008
+ }
4009
+ /**
4010
+ * @param {DataContractOptions} options
4011
+ */
4012
+ constructor(options) {
4013
+ const ret = wasm.datacontract_constructor(options);
4014
+ if (ret[2]) {
4015
+ throw takeFromExternrefTable0(ret[1]);
4016
+ }
4017
+ this.__wbg_ptr = ret[0] >>> 0;
4018
+ DataContractFinalization.register(this, this.__wbg_ptr, this);
4019
+ return this;
4020
+ }
4021
+ /**
4022
+ * The `immutable` / `immutableAllowSetting` declarations of one
4023
+ * document type: `{ immutable: string[], immutableAllowSetting:
4024
+ * string[] }`, both sorted by property name.
4025
+ *
4026
+ * Both arrays are empty when the document type declares nothing (the
4027
+ * normal case, and the only case for a type whose documents are not
4028
+ * mutable). Throws when the contract has no document type by that
4029
+ * name, so "no such type" and "nothing frozen" stay distinguishable.
4030
+ *
4031
+ * The keywords are only parsed from protocol version 14 onward. A
4032
+ * contract deserialized against an earlier platform version reports
4033
+ * empty lists, which is exactly what consensus enforced at that
4034
+ * version, while `toJSON()` still shows the raw keywords either way.
4035
+ * @param {string} documentTypeName
4036
+ * @returns {DocumentTypeImmutableProperties}
4037
+ */
4038
+ documentTypeImmutableProperties(documentTypeName) {
4039
+ const ptr0 = passStringToWasm0(documentTypeName, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4040
+ const len0 = WASM_VECTOR_LEN;
4041
+ const ret = wasm.datacontract_documentTypeImmutableProperties(this.__wbg_ptr, ptr0, len0);
4042
+ if (ret[2]) {
4043
+ throw takeFromExternrefTable0(ret[1]);
4044
+ }
4045
+ return takeFromExternrefTable0(ret[0]);
4046
+ }
4047
+ /**
4048
+ * All `refersTo` declarations of one document type, in schema property
4049
+ * order.
4050
+ *
4051
+ * Returns an empty array when the document type declares none. Throws
4052
+ * when the contract has no document type by that name — an empty array
4053
+ * would conflate "no such type" with "no references".
4054
+ *
4055
+ * Reference declarations are only parsed from protocol version 14
4056
+ * onward. A contract deserialized against an earlier platform version
4057
+ * reports none, which is exactly what consensus enforced at that
4058
+ * version — but note the trap: `DataContract.fromBytes(bytes, false, 1)`
4059
+ * yields `[]` even for a contract whose raw schema does carry
4060
+ * `refersTo`, and `toJSON()` still shows the raw keyword either way.
4061
+ * @param {string} documentTypeName
4062
+ * @returns {Array<DocumentPropertyReference>}
4063
+ */
4064
+ documentTypeReferences(documentTypeName) {
4065
+ const ptr0 = passStringToWasm0(documentTypeName, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4066
+ const len0 = WASM_VECTOR_LEN;
4067
+ const ret = wasm.datacontract_documentTypeReferences(this.__wbg_ptr, ptr0, len0);
4068
+ if (ret[2]) {
4069
+ throw takeFromExternrefTable0(ret[1]);
4070
+ }
4071
+ return takeFromExternrefTable0(ret[0]);
4072
+ }
4073
+ /**
4074
+ * Every document type that freezes at least one property, keyed by
4075
+ * document type name.
4076
+ *
4077
+ * Document types with an empty `immutable` list are omitted, so an
4078
+ * empty `Map` means "nothing in this contract is frozen per property".
4079
+ * @returns {Map<string, DocumentTypeImmutableProperties>}
4080
+ */
4081
+ get documentImmutableProperties() {
4082
+ const ret = wasm.datacontract_document_immutable_properties(this.__wbg_ptr);
4083
+ if (ret[2]) {
4084
+ throw takeFromExternrefTable0(ret[1]);
4085
+ }
4086
+ return takeFromExternrefTable0(ret[0]);
4087
+ }
4088
+ /**
4089
+ * Every document type that declares at least one reference, keyed by
4090
+ * document type name.
4091
+ *
4092
+ * Document types with no declarations are omitted, so an empty `Map`
4093
+ * means "this contract declares no references at all".
4094
+ * @returns {Map<string, Array<DocumentPropertyReference>>}
4095
+ */
4096
+ get documentReferences() {
4097
+ const ret = wasm.datacontract_document_references(this.__wbg_ptr);
4098
+ if (ret[2]) {
4099
+ throw takeFromExternrefTable0(ret[1]);
4100
+ }
4101
+ return takeFromExternrefTable0(ret[0]);
4102
+ }
4103
+ /**
4104
+ * @param {string} base64
4105
+ * @param {boolean} full_validation
4106
+ * @param {PlatformVersionLike} platform_version
4107
+ * @returns {DataContract}
4108
+ */
4109
+ static fromBase64(base64, full_validation, platform_version) {
4110
+ const ptr0 = passStringToWasm0(base64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4111
+ const len0 = WASM_VECTOR_LEN;
4112
+ const ret = wasm.datacontract_fromBase64(ptr0, len0, full_validation, platform_version);
4113
+ if (ret[2]) {
4114
+ throw takeFromExternrefTable0(ret[1]);
4115
+ }
4116
+ return DataContract.__wrap(ret[0]);
4117
+ }
4118
+ /**
4119
+ * @param {Uint8Array} bytes
4120
+ * @param {boolean} full_validation
4121
+ * @param {PlatformVersionLike} platform_version
4122
+ * @returns {DataContract}
4123
+ */
4124
+ static fromBytes(bytes, full_validation, platform_version) {
4125
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
4126
+ const len0 = WASM_VECTOR_LEN;
4127
+ const ret = wasm.datacontract_fromBytes(ptr0, len0, full_validation, platform_version);
4128
+ if (ret[2]) {
4129
+ throw takeFromExternrefTable0(ret[1]);
4130
+ }
4131
+ return DataContract.__wrap(ret[0]);
4132
+ }
4133
+ /**
4134
+ * @param {string} hex
4135
+ * @param {boolean} full_validation
4136
+ * @param {PlatformVersionLike} platform_version
4137
+ * @returns {DataContract}
4138
+ */
4139
+ static fromHex(hex, full_validation, platform_version) {
4140
+ const ptr0 = passStringToWasm0(hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4141
+ const len0 = WASM_VECTOR_LEN;
4142
+ const ret = wasm.datacontract_fromHex(ptr0, len0, full_validation, platform_version);
4143
+ if (ret[2]) {
4144
+ throw takeFromExternrefTable0(ret[1]);
4145
+ }
4146
+ return DataContract.__wrap(ret[0]);
4147
+ }
4148
+ /**
4149
+ * @param {DataContractJSON} value
4150
+ * @param {boolean} full_validation
4151
+ * @param {PlatformVersionLike} platform_version
4152
+ * @returns {DataContract}
4153
+ */
4154
+ static fromJSON(value, full_validation, platform_version) {
4155
+ const ret = wasm.datacontract_fromJSON(value, full_validation, platform_version);
4156
+ if (ret[2]) {
4157
+ throw takeFromExternrefTable0(ret[1]);
4158
+ }
4159
+ return DataContract.__wrap(ret[0]);
4160
+ }
4161
+ /**
4162
+ * @param {DataContractObject} value
4163
+ * @param {boolean} full_validation
4164
+ * @param {PlatformVersionLike} platform_version
4165
+ * @returns {DataContract}
4166
+ */
4167
+ static fromObject(value, full_validation, platform_version) {
4168
+ const ret = wasm.datacontract_fromObject(value, full_validation, platform_version);
4169
+ if (ret[2]) {
4170
+ throw takeFromExternrefTable0(ret[1]);
4171
+ }
4172
+ return DataContract.__wrap(ret[0]);
4173
+ }
4174
+ /**
4175
+ * @param {IdentifierLike} owner_id
4176
+ * @param {bigint} identity_nonce
4177
+ * @returns {Identifier}
4178
+ */
4179
+ static generateId(owner_id, identity_nonce) {
4180
+ const ret = wasm.datacontract_generateId(owner_id, identity_nonce);
4181
+ if (ret[2]) {
4182
+ throw takeFromExternrefTable0(ret[1]);
4183
+ }
4184
+ return Identifier.__wrap(ret[0]);
4185
+ }
4186
+ /**
4187
+ * @returns {Record<number, Group>}
4188
+ */
4189
+ get groups() {
4190
+ const ret = wasm.datacontract_groups(this.__wbg_ptr);
4191
+ if (ret[2]) {
4192
+ throw takeFromExternrefTable0(ret[1]);
4193
+ }
4194
+ return takeFromExternrefTable0(ret[0]);
4195
+ }
4196
+ /**
4197
+ * @returns {Identifier}
4198
+ */
4199
+ get id() {
4200
+ const ret = wasm.datacontract_id(this.__wbg_ptr);
4201
+ return Identifier.__wrap(ret);
4202
+ }
4203
+ /**
4204
+ * @returns {Identifier}
4205
+ */
4206
+ get ownerId() {
4207
+ const ret = wasm.datacontract_owner_id(this.__wbg_ptr);
4208
+ return Identifier.__wrap(ret);
4209
+ }
4210
+ /**
4211
+ * @returns {Record<string, object>}
4212
+ */
4213
+ get schemas() {
4214
+ const ret = wasm.datacontract_schemas(this.__wbg_ptr);
4215
+ if (ret[2]) {
4216
+ throw takeFromExternrefTable0(ret[1]);
4217
+ }
4218
+ return takeFromExternrefTable0(ret[0]);
4219
+ }
4220
+ /**
4221
+ * @param {DataContractConfig} config
4222
+ * @param {PlatformVersionLike} platformVersion
4223
+ */
4224
+ setConfig(config, platformVersion) {
4225
+ const ret = wasm.datacontract_setConfig(this.__wbg_ptr, config, platformVersion);
4226
+ if (ret[1]) {
4227
+ throw takeFromExternrefTable0(ret[0]);
4228
+ }
4229
+ }
4230
+ /**
4231
+ * @param {Record<string, object>} schemas
4232
+ * @param {object | null | undefined} definitions
4233
+ * @param {boolean} full_validation
4234
+ * @param {PlatformVersionLike} platform_version
4235
+ */
4236
+ setSchemas(schemas, definitions, full_validation, platform_version) {
4237
+ const ret = wasm.datacontract_setSchemas(this.__wbg_ptr, schemas, isLikeNone(definitions) ? 0 : addToExternrefTable0(definitions), full_validation, platform_version);
4238
+ if (ret[1]) {
4239
+ throw takeFromExternrefTable0(ret[0]);
4240
+ }
4241
+ }
4242
+ /**
4243
+ * @param {Record<number, Group>} groups
4244
+ */
4245
+ set groups(groups) {
4246
+ const ret = wasm.datacontract_set_groups(this.__wbg_ptr, groups);
4247
+ if (ret[1]) {
4248
+ throw takeFromExternrefTable0(ret[0]);
4249
+ }
4250
+ }
4251
+ /**
4252
+ * @param {IdentifierLike} id
4253
+ */
4254
+ set id(id) {
4255
+ const ret = wasm.datacontract_set_id(this.__wbg_ptr, id);
4256
+ if (ret[1]) {
4257
+ throw takeFromExternrefTable0(ret[0]);
4258
+ }
4259
+ }
4260
+ /**
4261
+ * @param {IdentifierLike} ownerId
4262
+ */
4263
+ set ownerId(ownerId) {
4264
+ const ret = wasm.datacontract_set_owner_id(this.__wbg_ptr, ownerId);
4265
+ if (ret[1]) {
4266
+ throw takeFromExternrefTable0(ret[0]);
4267
+ }
4268
+ }
4269
+ /**
4270
+ * @param {Record<number, TokenConfiguration>} tokens
4271
+ */
4272
+ set tokens(tokens) {
4273
+ const ret = wasm.datacontract_set_tokens(this.__wbg_ptr, tokens);
4274
+ if (ret[1]) {
4275
+ throw takeFromExternrefTable0(ret[0]);
4276
+ }
4277
+ }
4278
+ /**
4279
+ * @param {number} version
4280
+ */
4281
+ set version(version) {
4282
+ const ret = wasm.datacontract_set_version(this.__wbg_ptr, version);
4283
+ if (ret[1]) {
4284
+ throw takeFromExternrefTable0(ret[0]);
4285
+ }
4286
+ }
4287
+ /**
4288
+ * @returns {string}
4289
+ */
4290
+ static get __struct() {
4291
+ let deferred1_0;
4292
+ let deferred1_1;
4293
+ try {
4294
+ const ret = wasm.datacontract_struct_name();
4295
+ deferred1_0 = ret[0];
4296
+ deferred1_1 = ret[1];
4297
+ return getStringFromWasm0(ret[0], ret[1]);
4298
+ } finally {
4299
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4300
+ }
4301
+ }
4302
+ /**
4303
+ * @param {PlatformVersionLike} platformVersion
4304
+ * @returns {string}
4305
+ */
4306
+ toBase64(platformVersion) {
4307
+ let deferred2_0;
4308
+ let deferred2_1;
4309
+ try {
4310
+ const ret = wasm.datacontract_toBase64(this.__wbg_ptr, platformVersion);
4311
+ var ptr1 = ret[0];
4312
+ var len1 = ret[1];
4313
+ if (ret[3]) {
4314
+ ptr1 = 0; len1 = 0;
4315
+ throw takeFromExternrefTable0(ret[2]);
4316
+ }
4317
+ deferred2_0 = ptr1;
4318
+ deferred2_1 = len1;
4319
+ return getStringFromWasm0(ptr1, len1);
4320
+ } finally {
4321
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
4322
+ }
4323
+ }
4324
+ /**
4325
+ * @param {PlatformVersionLike} platformVersion
4326
+ * @returns {Uint8Array}
4327
+ */
4328
+ toBytes(platformVersion) {
4329
+ const ret = wasm.datacontract_toBytes(this.__wbg_ptr, platformVersion);
4330
+ if (ret[3]) {
4331
+ throw takeFromExternrefTable0(ret[2]);
4332
+ }
4333
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
4334
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
4335
+ return v1;
4336
+ }
4337
+ /**
4338
+ * @param {PlatformVersionLike} platformVersion
4339
+ * @returns {string}
4340
+ */
4341
+ toHex(platformVersion) {
4342
+ let deferred2_0;
4343
+ let deferred2_1;
4344
+ try {
4345
+ const ret = wasm.datacontract_toHex(this.__wbg_ptr, platformVersion);
4346
+ var ptr1 = ret[0];
4347
+ var len1 = ret[1];
4348
+ if (ret[3]) {
4349
+ ptr1 = 0; len1 = 0;
4350
+ throw takeFromExternrefTable0(ret[2]);
4351
+ }
4352
+ deferred2_0 = ptr1;
4353
+ deferred2_1 = len1;
4354
+ return getStringFromWasm0(ptr1, len1);
4355
+ } finally {
4356
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
4357
+ }
4358
+ }
4359
+ /**
4360
+ * @param {PlatformVersionLike} platform_version
4361
+ * @returns {DataContractJSON}
4362
+ */
4363
+ toJSON(platform_version) {
4364
+ const ret = wasm.datacontract_toJSON(this.__wbg_ptr, platform_version);
4365
+ if (ret[2]) {
4366
+ throw takeFromExternrefTable0(ret[1]);
4367
+ }
4368
+ return takeFromExternrefTable0(ret[0]);
4369
+ }
4370
+ /**
4371
+ * @param {PlatformVersionLike} platformVersion
4372
+ * @returns {DataContractObject}
4373
+ */
4374
+ toObject(platformVersion) {
4375
+ const ret = wasm.datacontract_toObject(this.__wbg_ptr, platformVersion);
4376
+ if (ret[2]) {
4377
+ throw takeFromExternrefTable0(ret[1]);
4378
+ }
4379
+ return takeFromExternrefTable0(ret[0]);
4380
+ }
4381
+ /**
4382
+ * @returns {object}
4383
+ */
4384
+ get tokens() {
4385
+ const ret = wasm.datacontract_tokens(this.__wbg_ptr);
4386
+ if (ret[2]) {
4387
+ throw takeFromExternrefTable0(ret[1]);
4388
+ }
4389
+ return takeFromExternrefTable0(ret[0]);
4390
+ }
4391
+ /**
4392
+ * @returns {string}
4393
+ */
4394
+ get __type() {
4395
+ let deferred1_0;
4396
+ let deferred1_1;
4397
+ try {
4398
+ const ret = wasm.datacontract_type_name(this.__wbg_ptr);
4399
+ deferred1_0 = ret[0];
4400
+ deferred1_1 = ret[1];
4401
+ return getStringFromWasm0(ret[0], ret[1]);
4402
+ } finally {
4403
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4404
+ }
4405
+ }
4406
+ /**
4407
+ * @returns {number}
4408
+ */
4409
+ get version() {
4410
+ const ret = wasm.datacontract_version(this.__wbg_ptr);
4411
+ return ret >>> 0;
4412
+ }
4413
+ }
4414
+ if (Symbol.dispose) DataContract.prototype[Symbol.dispose] = DataContract.prototype.free;
4415
+
4416
+ export class DataContractCreateTransition {
4417
+ static __wrap(ptr) {
4418
+ ptr = ptr >>> 0;
4419
+ const obj = Object.create(DataContractCreateTransition.prototype);
3703
4420
  obj.__wbg_ptr = ptr;
3704
4421
  DataContractCreateTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
3705
4422
  return obj;
@@ -5903,6 +6620,158 @@ export class Document {
5903
6620
  }
5904
6621
  if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
5905
6622
 
6623
+ /**
6624
+ * What a document transition agrees to pay in document action fees. The amounts are the ones
6625
+ * the document type declares for the action, read off the contract by the signer.
6626
+ */
6627
+ export class DocumentActionFeeAgreement {
6628
+ static __wrap(ptr) {
6629
+ ptr = ptr >>> 0;
6630
+ const obj = Object.create(DocumentActionFeeAgreement.prototype);
6631
+ obj.__wbg_ptr = ptr;
6632
+ DocumentActionFeeAgreementFinalization.register(obj, obj.__wbg_ptr, obj);
6633
+ return obj;
6634
+ }
6635
+ __destroy_into_raw() {
6636
+ const ptr = this.__wbg_ptr;
6637
+ this.__wbg_ptr = 0;
6638
+ DocumentActionFeeAgreementFinalization.unregister(this);
6639
+ return ptr;
6640
+ }
6641
+ free() {
6642
+ const ptr = this.__destroy_into_raw();
6643
+ wasm.__wbg_documentactionfeeagreement_free(ptr, 0);
6644
+ }
6645
+ /**
6646
+ * @param {DocumentActionFeeAgreementOptions} options
6647
+ */
6648
+ constructor(options) {
6649
+ const ret = wasm.documentactionfeeagreement_constructor(options);
6650
+ if (ret[2]) {
6651
+ throw takeFromExternrefTable0(ret[1]);
6652
+ }
6653
+ this.__wbg_ptr = ret[0] >>> 0;
6654
+ DocumentActionFeeAgreementFinalization.register(this, this.__wbg_ptr, this);
6655
+ return this;
6656
+ }
6657
+ /**
6658
+ * @returns {number | undefined}
6659
+ */
6660
+ get feeMultiplierIncreaseTolerancePercent() {
6661
+ const ret = wasm.documentactionfeeagreement_fee_multiplier_increase_tolerance_percent(this.__wbg_ptr);
6662
+ return ret === 0xFFFFFF ? undefined : ret;
6663
+ }
6664
+ /**
6665
+ * @param {DocumentActionFeeAgreementJSON} js
6666
+ * @returns {DocumentActionFeeAgreement}
6667
+ */
6668
+ static fromJSON(js) {
6669
+ const ret = wasm.documentactionfeeagreement_fromJSON(js);
6670
+ if (ret[2]) {
6671
+ throw takeFromExternrefTable0(ret[1]);
6672
+ }
6673
+ return DocumentActionFeeAgreement.__wrap(ret[0]);
6674
+ }
6675
+ /**
6676
+ * @param {DocumentActionFeeAgreementObject} obj
6677
+ * @returns {DocumentActionFeeAgreement}
6678
+ */
6679
+ static fromObject(obj) {
6680
+ const ret = wasm.documentactionfeeagreement_fromObject(obj);
6681
+ if (ret[2]) {
6682
+ throw takeFromExternrefTable0(ret[1]);
6683
+ }
6684
+ return DocumentActionFeeAgreement.__wrap(ret[0]);
6685
+ }
6686
+ /**
6687
+ * @returns {bigint | undefined}
6688
+ */
6689
+ get knownFeeMultiplierPermille() {
6690
+ const ret = wasm.documentactionfeeagreement_known_fee_multiplier_permille(this.__wbg_ptr);
6691
+ return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
6692
+ }
6693
+ /**
6694
+ * @returns {bigint}
6695
+ */
6696
+ get moderators() {
6697
+ const ret = wasm.documentactionfeeagreement_moderators(this.__wbg_ptr);
6698
+ return BigInt.asUintN(64, ret);
6699
+ }
6700
+ /**
6701
+ * @returns {bigint}
6702
+ */
6703
+ get owner() {
6704
+ const ret = wasm.documentactionfeeagreement_owner(this.__wbg_ptr);
6705
+ return BigInt.asUintN(64, ret);
6706
+ }
6707
+ /**
6708
+ * @returns {string}
6709
+ */
6710
+ get pricing() {
6711
+ let deferred1_0;
6712
+ let deferred1_1;
6713
+ try {
6714
+ const ret = wasm.documentactionfeeagreement_pricing(this.__wbg_ptr);
6715
+ deferred1_0 = ret[0];
6716
+ deferred1_1 = ret[1];
6717
+ return getStringFromWasm0(ret[0], ret[1]);
6718
+ } finally {
6719
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
6720
+ }
6721
+ }
6722
+ /**
6723
+ * @returns {string}
6724
+ */
6725
+ static get __struct() {
6726
+ let deferred1_0;
6727
+ let deferred1_1;
6728
+ try {
6729
+ const ret = wasm.documentactionfeeagreement_struct_name();
6730
+ deferred1_0 = ret[0];
6731
+ deferred1_1 = ret[1];
6732
+ return getStringFromWasm0(ret[0], ret[1]);
6733
+ } finally {
6734
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
6735
+ }
6736
+ }
6737
+ /**
6738
+ * @returns {DocumentActionFeeAgreementJSON}
6739
+ */
6740
+ toJSON() {
6741
+ const ret = wasm.documentactionfeeagreement_toJSON(this.__wbg_ptr);
6742
+ if (ret[2]) {
6743
+ throw takeFromExternrefTable0(ret[1]);
6744
+ }
6745
+ return takeFromExternrefTable0(ret[0]);
6746
+ }
6747
+ /**
6748
+ * @returns {DocumentActionFeeAgreementObject}
6749
+ */
6750
+ toObject() {
6751
+ const ret = wasm.documentactionfeeagreement_toObject(this.__wbg_ptr);
6752
+ if (ret[2]) {
6753
+ throw takeFromExternrefTable0(ret[1]);
6754
+ }
6755
+ return takeFromExternrefTable0(ret[0]);
6756
+ }
6757
+ /**
6758
+ * @returns {string}
6759
+ */
6760
+ get __type() {
6761
+ let deferred1_0;
6762
+ let deferred1_1;
6763
+ try {
6764
+ const ret = wasm.documentactionfeeagreement_type_name(this.__wbg_ptr);
6765
+ deferred1_0 = ret[0];
6766
+ deferred1_1 = ret[1];
6767
+ return getStringFromWasm0(ret[0], ret[1]);
6768
+ } finally {
6769
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
6770
+ }
6771
+ }
6772
+ }
6773
+ if (Symbol.dispose) DocumentActionFeeAgreement.prototype[Symbol.dispose] = DocumentActionFeeAgreement.prototype.free;
6774
+
5906
6775
  export class DocumentBaseTransition {
5907
6776
  static __wrap(ptr) {
5908
6777
  ptr = ptr >>> 0;
@@ -5921,6 +6790,15 @@ export class DocumentBaseTransition {
5921
6790
  const ptr = this.__destroy_into_raw();
5922
6791
  wasm.__wbg_documentbasetransition_free(ptr, 0);
5923
6792
  }
6793
+ /**
6794
+ * The action fees this transition agrees to pay. A base older than version 2, which a
6795
+ * transition decoded from the wire can carry, has none.
6796
+ * @returns {DocumentActionFeeAgreement | undefined}
6797
+ */
6798
+ get actionFeeAgreement() {
6799
+ const ret = wasm.documentbasetransition_action_fee_agreement(this.__wbg_ptr);
6800
+ return ret === 0 ? undefined : DocumentActionFeeAgreement.__wrap(ret);
6801
+ }
5924
6802
  /**
5925
6803
  * @param {DocumentBaseTransitionOptions} options
5926
6804
  */
@@ -5969,6 +6847,21 @@ export class DocumentBaseTransition {
5969
6847
  const ret = wasm.documentbasetransition_identity_contract_nonce(this.__wbg_ptr);
5970
6848
  return BigInt.asUintN(64, ret);
5971
6849
  }
6850
+ /**
6851
+ * Sets the action fees this transition agrees to pay, `undefined` clears them.
6852
+ *
6853
+ * Only a base of version 2 carries an agreement, so an older base, which the constructor
6854
+ * builds when it is given none, is rebuilt as version 2 to take one.
6855
+ * @param {DocumentActionFeeAgreement | null} [actionFeeAgreement]
6856
+ */
6857
+ set actionFeeAgreement(actionFeeAgreement) {
6858
+ let ptr0 = 0;
6859
+ if (!isLikeNone(actionFeeAgreement)) {
6860
+ _assertClass(actionFeeAgreement, DocumentActionFeeAgreement);
6861
+ ptr0 = actionFeeAgreement.__destroy_into_raw();
6862
+ }
6863
+ wasm.documentbasetransition_set_action_fee_agreement(this.__wbg_ptr, ptr0);
6864
+ }
5972
6865
  /**
5973
6866
  * @param {IdentifierLike} data_contract_id
5974
6867
  */
@@ -6477,23 +7370,25 @@ if (Symbol.dispose) DocumentPurchaseTransition.prototype[Symbol.dispose] = Docum
6477
7370
  * }
6478
7371
  * }
6479
7372
  * ```
6480
- * @enum {40120 | 40121 | 40122 | 40123 | 40124 | 40125}
7373
+ * @enum {40120 | 40121 | 40122 | 40123 | 40124 | 40125 | 40131}
6481
7374
  */
6482
7375
  export const DocumentReferenceErrorCode = Object.freeze({
6483
7376
  /**
6484
- * The referenced identity, contract, token or permanent document does
6485
- * not exist.
7377
+ * The referenced identity, contract, token or document (permanent or
7378
+ * deletable) does not exist.
6486
7379
  */
6487
7380
  ReferencedEntityNotFound: 40120, "40120": "ReferencedEntityNotFound",
6488
7381
  /**
6489
- * A `permanentDocument` reference names a document type the referenced
6490
- * contract does not define, or the contract itself is missing.
7382
+ * A `permanentDocument` or `deletableDocument` reference names a
7383
+ * document type the referenced contract does not define, or the
7384
+ * contract itself is missing.
6491
7385
  */
6492
7386
  ReferencedDocumentTypeNotFound: 40121, "40121": "ReferencedDocumentTypeNotFound",
6493
7387
  /**
6494
7388
  * The referenced document type allows deletion. Only types declaring
6495
7389
  * `canBeDeleted: false` may be the target of a `permanentDocument`
6496
- * reference — otherwise the reference could be left dangling.
7390
+ * reference — otherwise the reference could be left dangling. A
7391
+ * `deletableDocument` reference is the one for such a type.
6497
7392
  */
6498
7393
  ReferencedDocumentTypeDeletable: 40122, "40122": "ReferencedDocumentTypeDeletable",
6499
7394
  /**
@@ -6509,6 +7404,13 @@ export const DocumentReferenceErrorCode = Object.freeze({
6509
7404
  * or names a property that is not an integer.
6510
7405
  */
6511
7406
  ReferencedKeyIdPropertyInvalid: 40125, "40125": "ReferencedKeyIdPropertyInvalid",
7407
+ /**
7408
+ * The referenced document type forbids deletion. Only types whose
7409
+ * documents can be deleted may be the target of a `deletableDocument`
7410
+ * reference; a `permanentDocument` reference is the one for a type
7411
+ * declaring `canBeDeleted: false`.
7412
+ */
7413
+ ReferencedDocumentTypeNotDeletable: 40131, "40131": "ReferencedDocumentTypeNotDeletable",
6512
7414
  });
6513
7415
 
6514
7416
  export class DocumentReplaceTransition {
@@ -19629,6 +20531,13 @@ export class TokenDistributionRules {
19629
20531
  const ret = wasm.tokendistributionrules_new_tokens_destination_identity_rules(this.__wbg_ptr);
19630
20532
  return ChangeControlRules.__wrap(ret);
19631
20533
  }
20534
+ /**
20535
+ * @returns {TokenOncePerIdentityDistribution | undefined}
20536
+ */
20537
+ get oncePerIdentityDistribution() {
20538
+ const ret = wasm.tokendistributionrules_once_per_identity_distribution(this.__wbg_ptr);
20539
+ return ret === 0 ? undefined : TokenOncePerIdentityDistribution.__wrap(ret);
20540
+ }
19632
20541
  /**
19633
20542
  * @returns {TokenPerpetualDistribution | undefined}
19634
20543
  */
@@ -19686,6 +20595,15 @@ export class TokenDistributionRules {
19686
20595
  _assertClass(rules, ChangeControlRules);
19687
20596
  wasm.tokendistributionrules_set_new_tokens_destination_identity_rules(this.__wbg_ptr, rules.__wbg_ptr);
19688
20597
  }
20598
+ /**
20599
+ * @param {any} distribution
20600
+ */
20601
+ set oncePerIdentityDistribution(distribution) {
20602
+ const ret = wasm.tokendistributionrules_set_once_per_identity_distribution(this.__wbg_ptr, distribution);
20603
+ if (ret[1]) {
20604
+ throw takeFromExternrefTable0(ret[0]);
20605
+ }
20606
+ }
19689
20607
  /**
19690
20608
  * @param {any} perpetual_distribution
19691
20609
  */
@@ -19745,11 +20663,12 @@ export class TokenDistributionRules {
19745
20663
  if (Symbol.dispose) TokenDistributionRules.prototype[Symbol.dispose] = TokenDistributionRules.prototype.free;
19746
20664
 
19747
20665
  /**
19748
- * @enum {0 | 1}
20666
+ * @enum {0 | 1 | 2}
19749
20667
  */
19750
20668
  export const TokenDistributionType = Object.freeze({
19751
20669
  PreProgrammed: 0, "0": "PreProgrammed",
19752
20670
  Perpetual: 1, "1": "Perpetual",
20671
+ OncePerIdentity: 2, "2": "OncePerIdentity",
19753
20672
  });
19754
20673
 
19755
20674
  /**
@@ -20459,7 +21378,90 @@ export class TokenMintTransition {
20459
21378
  let deferred1_0;
20460
21379
  let deferred1_1;
20461
21380
  try {
20462
- const ret = wasm.tokenminttransition_struct_name();
21381
+ const ret = wasm.tokenminttransition_struct_name();
21382
+ deferred1_0 = ret[0];
21383
+ deferred1_1 = ret[1];
21384
+ return getStringFromWasm0(ret[0], ret[1]);
21385
+ } finally {
21386
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21387
+ }
21388
+ }
21389
+ /**
21390
+ * @returns {string}
21391
+ */
21392
+ get __type() {
21393
+ let deferred1_0;
21394
+ let deferred1_1;
21395
+ try {
21396
+ const ret = wasm.tokenminttransition_type_name(this.__wbg_ptr);
21397
+ deferred1_0 = ret[0];
21398
+ deferred1_1 = ret[1];
21399
+ return getStringFromWasm0(ret[0], ret[1]);
21400
+ } finally {
21401
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21402
+ }
21403
+ }
21404
+ }
21405
+ if (Symbol.dispose) TokenMintTransition.prototype[Symbol.dispose] = TokenMintTransition.prototype.free;
21406
+
21407
+ /**
21408
+ * A distribution every identity may claim exactly once: a fixed `amount` minted to the claimant
21409
+ * on its first claim of type `OncePerIdentity`. Bounded only by the token's max supply.
21410
+ */
21411
+ export class TokenOncePerIdentityDistribution {
21412
+ static __wrap(ptr) {
21413
+ ptr = ptr >>> 0;
21414
+ const obj = Object.create(TokenOncePerIdentityDistribution.prototype);
21415
+ obj.__wbg_ptr = ptr;
21416
+ TokenOncePerIdentityDistributionFinalization.register(obj, obj.__wbg_ptr, obj);
21417
+ return obj;
21418
+ }
21419
+ __destroy_into_raw() {
21420
+ const ptr = this.__wbg_ptr;
21421
+ this.__wbg_ptr = 0;
21422
+ TokenOncePerIdentityDistributionFinalization.unregister(this);
21423
+ return ptr;
21424
+ }
21425
+ free() {
21426
+ const ptr = this.__destroy_into_raw();
21427
+ wasm.__wbg_tokenonceperidentitydistribution_free(ptr, 0);
21428
+ }
21429
+ /**
21430
+ * @returns {bigint}
21431
+ */
21432
+ get amount() {
21433
+ const ret = wasm.tokenonceperidentitydistribution_amount(this.__wbg_ptr);
21434
+ return BigInt.asUintN(64, ret);
21435
+ }
21436
+ /**
21437
+ * @param {any} amount
21438
+ */
21439
+ constructor(amount) {
21440
+ const ret = wasm.tokenonceperidentitydistribution_constructor(amount);
21441
+ if (ret[2]) {
21442
+ throw takeFromExternrefTable0(ret[1]);
21443
+ }
21444
+ this.__wbg_ptr = ret[0] >>> 0;
21445
+ TokenOncePerIdentityDistributionFinalization.register(this, this.__wbg_ptr, this);
21446
+ return this;
21447
+ }
21448
+ /**
21449
+ * @param {any} amount
21450
+ */
21451
+ set amount(amount) {
21452
+ const ret = wasm.tokenonceperidentitydistribution_set_amount(this.__wbg_ptr, amount);
21453
+ if (ret[1]) {
21454
+ throw takeFromExternrefTable0(ret[0]);
21455
+ }
21456
+ }
21457
+ /**
21458
+ * @returns {string}
21459
+ */
21460
+ static get __struct() {
21461
+ let deferred1_0;
21462
+ let deferred1_1;
21463
+ try {
21464
+ const ret = wasm.tokenonceperidentitydistribution_struct_name();
20463
21465
  deferred1_0 = ret[0];
20464
21466
  deferred1_1 = ret[1];
20465
21467
  return getStringFromWasm0(ret[0], ret[1]);
@@ -20474,7 +21476,7 @@ export class TokenMintTransition {
20474
21476
  let deferred1_0;
20475
21477
  let deferred1_1;
20476
21478
  try {
20477
- const ret = wasm.tokenminttransition_type_name(this.__wbg_ptr);
21479
+ const ret = wasm.tokenonceperidentitydistribution_type_name(this.__wbg_ptr);
20478
21480
  deferred1_0 = ret[0];
20479
21481
  deferred1_1 = ret[1];
20480
21482
  return getStringFromWasm0(ret[0], ret[1]);
@@ -20483,7 +21485,7 @@ export class TokenMintTransition {
20483
21485
  }
20484
21486
  }
20485
21487
  }
20486
- if (Symbol.dispose) TokenMintTransition.prototype[Symbol.dispose] = TokenMintTransition.prototype.free;
21488
+ if (Symbol.dispose) TokenOncePerIdentityDistribution.prototype[Symbol.dispose] = TokenOncePerIdentityDistribution.prototype.free;
20487
21489
 
20488
21490
  export class TokenPaymentInfo {
20489
21491
  static __wrap(ptr) {
@@ -20979,52 +21981,306 @@ if (Symbol.dispose) TokenPricingSchedule.prototype[Symbol.dispose] = TokenPricin
20979
21981
  export class TokenSetPriceForDirectPurchaseTransition {
20980
21982
  static __wrap(ptr) {
20981
21983
  ptr = ptr >>> 0;
20982
- const obj = Object.create(TokenSetPriceForDirectPurchaseTransition.prototype);
21984
+ const obj = Object.create(TokenSetPriceForDirectPurchaseTransition.prototype);
21985
+ obj.__wbg_ptr = ptr;
21986
+ TokenSetPriceForDirectPurchaseTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
21987
+ return obj;
21988
+ }
21989
+ __destroy_into_raw() {
21990
+ const ptr = this.__wbg_ptr;
21991
+ this.__wbg_ptr = 0;
21992
+ TokenSetPriceForDirectPurchaseTransitionFinalization.unregister(this);
21993
+ return ptr;
21994
+ }
21995
+ free() {
21996
+ const ptr = this.__destroy_into_raw();
21997
+ wasm.__wbg_tokensetpricefordirectpurchasetransition_free(ptr, 0);
21998
+ }
21999
+ /**
22000
+ * @returns {TokenBaseTransition}
22001
+ */
22002
+ get base() {
22003
+ const ret = wasm.tokensetpricefordirectpurchasetransition_base(this.__wbg_ptr);
22004
+ return TokenBaseTransition.__wrap(ret);
22005
+ }
22006
+ /**
22007
+ * @param {TokenSetPriceForDirectPurchaseTransitionOptions} options
22008
+ */
22009
+ constructor(options) {
22010
+ const ret = wasm.tokensetpricefordirectpurchasetransition_constructor(options);
22011
+ if (ret[2]) {
22012
+ throw takeFromExternrefTable0(ret[1]);
22013
+ }
22014
+ this.__wbg_ptr = ret[0] >>> 0;
22015
+ TokenSetPriceForDirectPurchaseTransitionFinalization.register(this, this.__wbg_ptr, this);
22016
+ return this;
22017
+ }
22018
+ /**
22019
+ * @returns {TokenPricingSchedule | undefined}
22020
+ */
22021
+ get price() {
22022
+ const ret = wasm.tokensetpricefordirectpurchasetransition_price(this.__wbg_ptr);
22023
+ return ret === 0 ? undefined : TokenPricingSchedule.__wrap(ret);
22024
+ }
22025
+ /**
22026
+ * @returns {string | undefined}
22027
+ */
22028
+ get publicNote() {
22029
+ const ret = wasm.tokensetpricefordirectpurchasetransition_public_note(this.__wbg_ptr);
22030
+ let v1;
22031
+ if (ret[0] !== 0) {
22032
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
22033
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
22034
+ }
22035
+ return v1;
22036
+ }
22037
+ /**
22038
+ * @param {TokenBaseTransition} base
22039
+ */
22040
+ set base(base) {
22041
+ _assertClass(base, TokenBaseTransition);
22042
+ var ptr0 = base.__destroy_into_raw();
22043
+ wasm.tokensetpricefordirectpurchasetransition_set_base(this.__wbg_ptr, ptr0);
22044
+ }
22045
+ /**
22046
+ * @param {TokenPricingSchedule | null} [price]
22047
+ */
22048
+ set price(price) {
22049
+ let ptr0 = 0;
22050
+ if (!isLikeNone(price)) {
22051
+ _assertClass(price, TokenPricingSchedule);
22052
+ ptr0 = price.__destroy_into_raw();
22053
+ }
22054
+ wasm.tokensetpricefordirectpurchasetransition_set_price(this.__wbg_ptr, ptr0);
22055
+ }
22056
+ /**
22057
+ * @param {string | null} [note]
22058
+ */
22059
+ set publicNote(note) {
22060
+ var ptr0 = isLikeNone(note) ? 0 : passStringToWasm0(note, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
22061
+ var len0 = WASM_VECTOR_LEN;
22062
+ wasm.tokensetpricefordirectpurchasetransition_set_public_note(this.__wbg_ptr, ptr0, len0);
22063
+ }
22064
+ /**
22065
+ * @returns {string}
22066
+ */
22067
+ static get __struct() {
22068
+ let deferred1_0;
22069
+ let deferred1_1;
22070
+ try {
22071
+ const ret = wasm.tokensetpricefordirectpurchasetransition_struct_name();
22072
+ deferred1_0 = ret[0];
22073
+ deferred1_1 = ret[1];
22074
+ return getStringFromWasm0(ret[0], ret[1]);
22075
+ } finally {
22076
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22077
+ }
22078
+ }
22079
+ /**
22080
+ * @returns {string}
22081
+ */
22082
+ get __type() {
22083
+ let deferred1_0;
22084
+ let deferred1_1;
22085
+ try {
22086
+ const ret = wasm.tokensetpricefordirectpurchasetransition_type_name(this.__wbg_ptr);
22087
+ deferred1_0 = ret[0];
22088
+ deferred1_1 = ret[1];
22089
+ return getStringFromWasm0(ret[0], ret[1]);
22090
+ } finally {
22091
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22092
+ }
22093
+ }
22094
+ }
22095
+ if (Symbol.dispose) TokenSetPriceForDirectPurchaseTransition.prototype[Symbol.dispose] = TokenSetPriceForDirectPurchaseTransition.prototype.free;
22096
+
22097
+ export class TokenStatus {
22098
+ static __wrap(ptr) {
22099
+ ptr = ptr >>> 0;
22100
+ const obj = Object.create(TokenStatus.prototype);
22101
+ obj.__wbg_ptr = ptr;
22102
+ TokenStatusFinalization.register(obj, obj.__wbg_ptr, obj);
22103
+ return obj;
22104
+ }
22105
+ __destroy_into_raw() {
22106
+ const ptr = this.__wbg_ptr;
22107
+ this.__wbg_ptr = 0;
22108
+ TokenStatusFinalization.unregister(this);
22109
+ return ptr;
22110
+ }
22111
+ free() {
22112
+ const ptr = this.__destroy_into_raw();
22113
+ wasm.__wbg_tokenstatus_free(ptr, 0);
22114
+ }
22115
+ /**
22116
+ * @returns {boolean}
22117
+ */
22118
+ get isPaused() {
22119
+ const ret = wasm.tokenstatus_is_paused(this.__wbg_ptr);
22120
+ return ret !== 0;
22121
+ }
22122
+ /**
22123
+ * @returns {string}
22124
+ */
22125
+ static get __struct() {
22126
+ let deferred1_0;
22127
+ let deferred1_1;
22128
+ try {
22129
+ const ret = wasm.tokenstatus_struct_name();
22130
+ deferred1_0 = ret[0];
22131
+ deferred1_1 = ret[1];
22132
+ return getStringFromWasm0(ret[0], ret[1]);
22133
+ } finally {
22134
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22135
+ }
22136
+ }
22137
+ /**
22138
+ * @returns {string}
22139
+ */
22140
+ get __type() {
22141
+ let deferred1_0;
22142
+ let deferred1_1;
22143
+ try {
22144
+ const ret = wasm.tokenstatus_type_name(this.__wbg_ptr);
22145
+ deferred1_0 = ret[0];
22146
+ deferred1_1 = ret[1];
22147
+ return getStringFromWasm0(ret[0], ret[1]);
22148
+ } finally {
22149
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22150
+ }
22151
+ }
22152
+ }
22153
+ if (Symbol.dispose) TokenStatus.prototype[Symbol.dispose] = TokenStatus.prototype.free;
22154
+
22155
+ export class TokenTradeMode {
22156
+ static __wrap(ptr) {
22157
+ ptr = ptr >>> 0;
22158
+ const obj = Object.create(TokenTradeMode.prototype);
22159
+ obj.__wbg_ptr = ptr;
22160
+ TokenTradeModeFinalization.register(obj, obj.__wbg_ptr, obj);
22161
+ return obj;
22162
+ }
22163
+ __destroy_into_raw() {
22164
+ const ptr = this.__wbg_ptr;
22165
+ this.__wbg_ptr = 0;
22166
+ TokenTradeModeFinalization.unregister(this);
22167
+ return ptr;
22168
+ }
22169
+ free() {
22170
+ const ptr = this.__destroy_into_raw();
22171
+ wasm.__wbg_tokentrademode_free(ptr, 0);
22172
+ }
22173
+ /**
22174
+ * @returns {TokenTradeMode}
22175
+ */
22176
+ static NotTradeable() {
22177
+ const ret = wasm.tokentrademode_NotTradeable();
22178
+ return TokenTradeMode.__wrap(ret);
22179
+ }
22180
+ /**
22181
+ * @returns {string}
22182
+ */
22183
+ static get __struct() {
22184
+ let deferred1_0;
22185
+ let deferred1_1;
22186
+ try {
22187
+ const ret = wasm.tokentrademode_struct_name();
22188
+ deferred1_0 = ret[0];
22189
+ deferred1_1 = ret[1];
22190
+ return getStringFromWasm0(ret[0], ret[1]);
22191
+ } finally {
22192
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22193
+ }
22194
+ }
22195
+ /**
22196
+ * @returns {string}
22197
+ */
22198
+ get __type() {
22199
+ let deferred1_0;
22200
+ let deferred1_1;
22201
+ try {
22202
+ const ret = wasm.tokentrademode_type_name(this.__wbg_ptr);
22203
+ deferred1_0 = ret[0];
22204
+ deferred1_1 = ret[1];
22205
+ return getStringFromWasm0(ret[0], ret[1]);
22206
+ } finally {
22207
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22208
+ }
22209
+ }
22210
+ /**
22211
+ * @returns {string}
22212
+ */
22213
+ get value() {
22214
+ let deferred1_0;
22215
+ let deferred1_1;
22216
+ try {
22217
+ const ret = wasm.tokentrademode_value(this.__wbg_ptr);
22218
+ deferred1_0 = ret[0];
22219
+ deferred1_1 = ret[1];
22220
+ return getStringFromWasm0(ret[0], ret[1]);
22221
+ } finally {
22222
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22223
+ }
22224
+ }
22225
+ }
22226
+ if (Symbol.dispose) TokenTradeMode.prototype[Symbol.dispose] = TokenTradeMode.prototype.free;
22227
+
22228
+ export class TokenTransferTransition {
22229
+ static __wrap(ptr) {
22230
+ ptr = ptr >>> 0;
22231
+ const obj = Object.create(TokenTransferTransition.prototype);
20983
22232
  obj.__wbg_ptr = ptr;
20984
- TokenSetPriceForDirectPurchaseTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
22233
+ TokenTransferTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
20985
22234
  return obj;
20986
22235
  }
20987
22236
  __destroy_into_raw() {
20988
22237
  const ptr = this.__wbg_ptr;
20989
22238
  this.__wbg_ptr = 0;
20990
- TokenSetPriceForDirectPurchaseTransitionFinalization.unregister(this);
22239
+ TokenTransferTransitionFinalization.unregister(this);
20991
22240
  return ptr;
20992
22241
  }
20993
22242
  free() {
20994
22243
  const ptr = this.__destroy_into_raw();
20995
- wasm.__wbg_tokensetpricefordirectpurchasetransition_free(ptr, 0);
22244
+ wasm.__wbg_tokentransfertransition_free(ptr, 0);
22245
+ }
22246
+ /**
22247
+ * @returns {bigint}
22248
+ */
22249
+ get amount() {
22250
+ const ret = wasm.tokentransfertransition_amount(this.__wbg_ptr);
22251
+ return BigInt.asUintN(64, ret);
20996
22252
  }
20997
22253
  /**
20998
22254
  * @returns {TokenBaseTransition}
20999
22255
  */
21000
22256
  get base() {
21001
- const ret = wasm.tokensetpricefordirectpurchasetransition_base(this.__wbg_ptr);
22257
+ const ret = wasm.tokentransfertransition_base(this.__wbg_ptr);
21002
22258
  return TokenBaseTransition.__wrap(ret);
21003
22259
  }
21004
22260
  /**
21005
- * @param {TokenSetPriceForDirectPurchaseTransitionOptions} options
22261
+ * @param {TokenTransferTransitionOptions} options
21006
22262
  */
21007
22263
  constructor(options) {
21008
- const ret = wasm.tokensetpricefordirectpurchasetransition_constructor(options);
22264
+ const ret = wasm.tokentransfertransition_constructor(options);
21009
22265
  if (ret[2]) {
21010
22266
  throw takeFromExternrefTable0(ret[1]);
21011
22267
  }
21012
22268
  this.__wbg_ptr = ret[0] >>> 0;
21013
- TokenSetPriceForDirectPurchaseTransitionFinalization.register(this, this.__wbg_ptr, this);
22269
+ TokenTransferTransitionFinalization.register(this, this.__wbg_ptr, this);
21014
22270
  return this;
21015
22271
  }
21016
22272
  /**
21017
- * @returns {TokenPricingSchedule | undefined}
22273
+ * @returns {PrivateEncryptedNote | undefined}
21018
22274
  */
21019
- get price() {
21020
- const ret = wasm.tokensetpricefordirectpurchasetransition_price(this.__wbg_ptr);
21021
- return ret === 0 ? undefined : TokenPricingSchedule.__wrap(ret);
22275
+ get privateEncryptedNote() {
22276
+ const ret = wasm.tokentransfertransition_private_encrypted_note(this.__wbg_ptr);
22277
+ return ret === 0 ? undefined : PrivateEncryptedNote.__wrap(ret);
21022
22278
  }
21023
22279
  /**
21024
22280
  * @returns {string | undefined}
21025
22281
  */
21026
22282
  get publicNote() {
21027
- const ret = wasm.tokensetpricefordirectpurchasetransition_public_note(this.__wbg_ptr);
22283
+ const ret = wasm.tokentransfertransition_public_note(this.__wbg_ptr);
21028
22284
  let v1;
21029
22285
  if (ret[0] !== 0) {
21030
22286
  v1 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -21032,24 +22288,38 @@ export class TokenSetPriceForDirectPurchaseTransition {
21032
22288
  }
21033
22289
  return v1;
21034
22290
  }
22291
+ /**
22292
+ * @returns {Identifier}
22293
+ */
22294
+ get recipientId() {
22295
+ const ret = wasm.tokentransfertransition_recipient_id(this.__wbg_ptr);
22296
+ return Identifier.__wrap(ret);
22297
+ }
22298
+ /**
22299
+ * @param {bigint} amount
22300
+ */
22301
+ set amount(amount) {
22302
+ const ret = wasm.tokentransfertransition_set_amount(this.__wbg_ptr, amount);
22303
+ if (ret[1]) {
22304
+ throw takeFromExternrefTable0(ret[0]);
22305
+ }
22306
+ }
21035
22307
  /**
21036
22308
  * @param {TokenBaseTransition} base
21037
22309
  */
21038
22310
  set base(base) {
21039
22311
  _assertClass(base, TokenBaseTransition);
21040
22312
  var ptr0 = base.__destroy_into_raw();
21041
- wasm.tokensetpricefordirectpurchasetransition_set_base(this.__wbg_ptr, ptr0);
22313
+ wasm.tokentransfertransition_set_base(this.__wbg_ptr, ptr0);
21042
22314
  }
21043
22315
  /**
21044
- * @param {TokenPricingSchedule | null} [price]
22316
+ * @param {any} privateEncryptedNote
21045
22317
  */
21046
- set price(price) {
21047
- let ptr0 = 0;
21048
- if (!isLikeNone(price)) {
21049
- _assertClass(price, TokenPricingSchedule);
21050
- ptr0 = price.__destroy_into_raw();
22318
+ set privateEncryptedNote(privateEncryptedNote) {
22319
+ const ret = wasm.tokentransfertransition_set_private_encrypted_note(this.__wbg_ptr, privateEncryptedNote);
22320
+ if (ret[1]) {
22321
+ throw takeFromExternrefTable0(ret[0]);
21051
22322
  }
21052
- wasm.tokensetpricefordirectpurchasetransition_set_price(this.__wbg_ptr, ptr0);
21053
22323
  }
21054
22324
  /**
21055
22325
  * @param {string | null} [note]
@@ -21057,7 +22327,32 @@ export class TokenSetPriceForDirectPurchaseTransition {
21057
22327
  set publicNote(note) {
21058
22328
  var ptr0 = isLikeNone(note) ? 0 : passStringToWasm0(note, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
21059
22329
  var len0 = WASM_VECTOR_LEN;
21060
- wasm.tokensetpricefordirectpurchasetransition_set_public_note(this.__wbg_ptr, ptr0, len0);
22330
+ wasm.tokentransfertransition_set_public_note(this.__wbg_ptr, ptr0, len0);
22331
+ }
22332
+ /**
22333
+ * @param {IdentifierLike} recipientId
22334
+ */
22335
+ set recipientId(recipientId) {
22336
+ const ret = wasm.tokentransfertransition_set_recipient_id(this.__wbg_ptr, recipientId);
22337
+ if (ret[1]) {
22338
+ throw takeFromExternrefTable0(ret[0]);
22339
+ }
22340
+ }
22341
+ /**
22342
+ * @param {any} sharedEncryptedNote
22343
+ */
22344
+ set sharedEncryptedNote(sharedEncryptedNote) {
22345
+ const ret = wasm.tokentransfertransition_set_shared_encrypted_note(this.__wbg_ptr, sharedEncryptedNote);
22346
+ if (ret[1]) {
22347
+ throw takeFromExternrefTable0(ret[0]);
22348
+ }
22349
+ }
22350
+ /**
22351
+ * @returns {SharedEncryptedNote | undefined}
22352
+ */
22353
+ get sharedEncryptedNote() {
22354
+ const ret = wasm.tokentransfertransition_shared_encrypted_note(this.__wbg_ptr);
22355
+ return ret === 0 ? undefined : SharedEncryptedNote.__wrap(ret);
21061
22356
  }
21062
22357
  /**
21063
22358
  * @returns {string}
@@ -21066,7 +22361,7 @@ export class TokenSetPriceForDirectPurchaseTransition {
21066
22361
  let deferred1_0;
21067
22362
  let deferred1_1;
21068
22363
  try {
21069
- const ret = wasm.tokensetpricefordirectpurchasetransition_struct_name();
22364
+ const ret = wasm.tokentransfertransition_struct_name();
21070
22365
  deferred1_0 = ret[0];
21071
22366
  deferred1_1 = ret[1];
21072
22367
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21081,7 +22376,7 @@ export class TokenSetPriceForDirectPurchaseTransition {
21081
22376
  let deferred1_0;
21082
22377
  let deferred1_1;
21083
22378
  try {
21084
- const ret = wasm.tokensetpricefordirectpurchasetransition_type_name(this.__wbg_ptr);
22379
+ const ret = wasm.tokentransfertransition_type_name(this.__wbg_ptr);
21085
22380
  deferred1_0 = ret[0];
21086
22381
  deferred1_1 = ret[1];
21087
22382
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21090,56 +22385,64 @@ export class TokenSetPriceForDirectPurchaseTransition {
21090
22385
  }
21091
22386
  }
21092
22387
  }
21093
- if (Symbol.dispose) TokenSetPriceForDirectPurchaseTransition.prototype[Symbol.dispose] = TokenSetPriceForDirectPurchaseTransition.prototype.free;
22388
+ if (Symbol.dispose) TokenTransferTransition.prototype[Symbol.dispose] = TokenTransferTransition.prototype.free;
21094
22389
 
21095
- export class TokenStatus {
22390
+ export class TokenTransition {
21096
22391
  static __wrap(ptr) {
21097
22392
  ptr = ptr >>> 0;
21098
- const obj = Object.create(TokenStatus.prototype);
22393
+ const obj = Object.create(TokenTransition.prototype);
21099
22394
  obj.__wbg_ptr = ptr;
21100
- TokenStatusFinalization.register(obj, obj.__wbg_ptr, obj);
22395
+ TokenTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
21101
22396
  return obj;
21102
22397
  }
21103
22398
  __destroy_into_raw() {
21104
22399
  const ptr = this.__wbg_ptr;
21105
22400
  this.__wbg_ptr = 0;
21106
- TokenStatusFinalization.unregister(this);
22401
+ TokenTransitionFinalization.unregister(this);
21107
22402
  return ptr;
21108
22403
  }
21109
22404
  free() {
21110
22405
  const ptr = this.__destroy_into_raw();
21111
- wasm.__wbg_tokenstatus_free(ptr, 0);
22406
+ wasm.__wbg_tokentransition_free(ptr, 0);
21112
22407
  }
21113
22408
  /**
21114
- * @returns {boolean}
22409
+ * @param {TokenTransitionLike} transition
21115
22410
  */
21116
- get isPaused() {
21117
- const ret = wasm.tokenstatus_is_paused(this.__wbg_ptr);
21118
- return ret !== 0;
22411
+ constructor(transition) {
22412
+ const ret = wasm.tokentransition_constructor(transition);
22413
+ if (ret[2]) {
22414
+ throw takeFromExternrefTable0(ret[1]);
22415
+ }
22416
+ this.__wbg_ptr = ret[0] >>> 0;
22417
+ TokenTransitionFinalization.register(this, this.__wbg_ptr, this);
22418
+ return this;
21119
22419
  }
21120
22420
  /**
21121
- * @returns {string}
22421
+ * @returns {Identifier}
21122
22422
  */
21123
- static get __struct() {
21124
- let deferred1_0;
21125
- let deferred1_1;
21126
- try {
21127
- const ret = wasm.tokenstatus_struct_name();
21128
- deferred1_0 = ret[0];
21129
- deferred1_1 = ret[1];
21130
- return getStringFromWasm0(ret[0], ret[1]);
21131
- } finally {
21132
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22423
+ get contractId() {
22424
+ const ret = wasm.tokentransition_contract_id(this.__wbg_ptr);
22425
+ return Identifier.__wrap(ret);
22426
+ }
22427
+ /**
22428
+ * @param {IdentifierLike} owner
22429
+ * @returns {Identifier}
22430
+ */
22431
+ getHistoricalDocumentId(owner) {
22432
+ const ret = wasm.tokentransition_getHistoricalDocumentId(this.__wbg_ptr, owner);
22433
+ if (ret[2]) {
22434
+ throw takeFromExternrefTable0(ret[1]);
21133
22435
  }
22436
+ return Identifier.__wrap(ret[0]);
21134
22437
  }
21135
22438
  /**
21136
22439
  * @returns {string}
21137
22440
  */
21138
- get __type() {
22441
+ get historicalDocumentTypeName() {
21139
22442
  let deferred1_0;
21140
22443
  let deferred1_1;
21141
22444
  try {
21142
- const ret = wasm.tokenstatus_type_name(this.__wbg_ptr);
22445
+ const ret = wasm.tokentransition_historical_document_type_name(this.__wbg_ptr);
21143
22446
  deferred1_0 = ret[0];
21144
22447
  deferred1_1 = ret[1];
21145
22448
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21147,33 +22450,39 @@ export class TokenStatus {
21147
22450
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21148
22451
  }
21149
22452
  }
21150
- }
21151
- if (Symbol.dispose) TokenStatus.prototype[Symbol.dispose] = TokenStatus.prototype.free;
21152
-
21153
- export class TokenTradeMode {
21154
- static __wrap(ptr) {
21155
- ptr = ptr >>> 0;
21156
- const obj = Object.create(TokenTradeMode.prototype);
21157
- obj.__wbg_ptr = ptr;
21158
- TokenTradeModeFinalization.register(obj, obj.__wbg_ptr, obj);
21159
- return obj;
22453
+ /**
22454
+ * @returns {bigint}
22455
+ */
22456
+ get identityContractNonce() {
22457
+ const ret = wasm.tokentransition_identity_contract_nonce(this.__wbg_ptr);
22458
+ return BigInt.asUintN(64, ret);
21160
22459
  }
21161
- __destroy_into_raw() {
21162
- const ptr = this.__wbg_ptr;
21163
- this.__wbg_ptr = 0;
21164
- TokenTradeModeFinalization.unregister(this);
21165
- return ptr;
22460
+ /**
22461
+ * @param {IdentifierLike} contractId
22462
+ */
22463
+ set contractId(contractId) {
22464
+ const ret = wasm.tokentransition_set_contract_id(this.__wbg_ptr, contractId);
22465
+ if (ret[1]) {
22466
+ throw takeFromExternrefTable0(ret[0]);
22467
+ }
21166
22468
  }
21167
- free() {
21168
- const ptr = this.__destroy_into_raw();
21169
- wasm.__wbg_tokentrademode_free(ptr, 0);
22469
+ /**
22470
+ * @param {bigint} nonce
22471
+ */
22472
+ set identityContractNonce(nonce) {
22473
+ const ret = wasm.tokentransition_set_identity_contract_nonce(this.__wbg_ptr, nonce);
22474
+ if (ret[1]) {
22475
+ throw takeFromExternrefTable0(ret[0]);
22476
+ }
21170
22477
  }
21171
22478
  /**
21172
- * @returns {TokenTradeMode}
22479
+ * @param {IdentifierLike} tokenId
21173
22480
  */
21174
- static NotTradeable() {
21175
- const ret = wasm.tokentrademode_NotTradeable();
21176
- return TokenTradeMode.__wrap(ret);
22481
+ set tokenId(tokenId) {
22482
+ const ret = wasm.tokentransition_set_token_id(this.__wbg_ptr, tokenId);
22483
+ if (ret[1]) {
22484
+ throw takeFromExternrefTable0(ret[0]);
22485
+ }
21177
22486
  }
21178
22487
  /**
21179
22488
  * @returns {string}
@@ -21182,7 +22491,7 @@ export class TokenTradeMode {
21182
22491
  let deferred1_0;
21183
22492
  let deferred1_1;
21184
22493
  try {
21185
- const ret = wasm.tokentrademode_struct_name();
22494
+ const ret = wasm.tokentransition_struct_name();
21186
22495
  deferred1_0 = ret[0];
21187
22496
  deferred1_1 = ret[1];
21188
22497
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21190,14 +22499,28 @@ export class TokenTradeMode {
21190
22499
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21191
22500
  }
21192
22501
  }
22502
+ /**
22503
+ * @returns {Identifier}
22504
+ */
22505
+ get tokenId() {
22506
+ const ret = wasm.tokentransition_token_id(this.__wbg_ptr);
22507
+ return Identifier.__wrap(ret);
22508
+ }
22509
+ /**
22510
+ * @returns {TokenTransitionLike}
22511
+ */
22512
+ get transition() {
22513
+ const ret = wasm.tokentransition_transition(this.__wbg_ptr);
22514
+ return ret;
22515
+ }
21193
22516
  /**
21194
22517
  * @returns {string}
21195
22518
  */
21196
- get __type() {
22519
+ get transitionType() {
21197
22520
  let deferred1_0;
21198
22521
  let deferred1_1;
21199
22522
  try {
21200
- const ret = wasm.tokentrademode_type_name(this.__wbg_ptr);
22523
+ const ret = wasm.tokentransition_transition_type(this.__wbg_ptr);
21201
22524
  deferred1_0 = ret[0];
21202
22525
  deferred1_1 = ret[1];
21203
22526
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21205,14 +22528,21 @@ export class TokenTradeMode {
21205
22528
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21206
22529
  }
21207
22530
  }
22531
+ /**
22532
+ * @returns {number}
22533
+ */
22534
+ get transitionTypeNumber() {
22535
+ const ret = wasm.tokentransition_transition_type_number(this.__wbg_ptr);
22536
+ return ret;
22537
+ }
21208
22538
  /**
21209
22539
  * @returns {string}
21210
22540
  */
21211
- get value() {
22541
+ get __type() {
21212
22542
  let deferred1_0;
21213
22543
  let deferred1_1;
21214
22544
  try {
21215
- const ret = wasm.tokentrademode_value(this.__wbg_ptr);
22545
+ const ret = wasm.tokentransition_type_name(this.__wbg_ptr);
21216
22546
  deferred1_0 = ret[0];
21217
22547
  deferred1_1 = ret[1];
21218
22548
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21221,64 +22551,57 @@ export class TokenTradeMode {
21221
22551
  }
21222
22552
  }
21223
22553
  }
21224
- if (Symbol.dispose) TokenTradeMode.prototype[Symbol.dispose] = TokenTradeMode.prototype.free;
22554
+ if (Symbol.dispose) TokenTransition.prototype[Symbol.dispose] = TokenTransition.prototype.free;
21225
22555
 
21226
- export class TokenTransferTransition {
22556
+ export class TokenUnFreezeTransition {
21227
22557
  static __wrap(ptr) {
21228
22558
  ptr = ptr >>> 0;
21229
- const obj = Object.create(TokenTransferTransition.prototype);
22559
+ const obj = Object.create(TokenUnFreezeTransition.prototype);
21230
22560
  obj.__wbg_ptr = ptr;
21231
- TokenTransferTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
22561
+ TokenUnFreezeTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
21232
22562
  return obj;
21233
22563
  }
21234
22564
  __destroy_into_raw() {
21235
22565
  const ptr = this.__wbg_ptr;
21236
22566
  this.__wbg_ptr = 0;
21237
- TokenTransferTransitionFinalization.unregister(this);
22567
+ TokenUnFreezeTransitionFinalization.unregister(this);
21238
22568
  return ptr;
21239
22569
  }
21240
22570
  free() {
21241
22571
  const ptr = this.__destroy_into_raw();
21242
- wasm.__wbg_tokentransfertransition_free(ptr, 0);
21243
- }
21244
- /**
21245
- * @returns {bigint}
21246
- */
21247
- get amount() {
21248
- const ret = wasm.tokentransfertransition_amount(this.__wbg_ptr);
21249
- return BigInt.asUintN(64, ret);
22572
+ wasm.__wbg_tokenunfreezetransition_free(ptr, 0);
21250
22573
  }
21251
22574
  /**
21252
22575
  * @returns {TokenBaseTransition}
21253
22576
  */
21254
22577
  get base() {
21255
- const ret = wasm.tokentransfertransition_base(this.__wbg_ptr);
22578
+ const ret = wasm.tokenunfreezetransition_base(this.__wbg_ptr);
21256
22579
  return TokenBaseTransition.__wrap(ret);
21257
22580
  }
21258
22581
  /**
21259
- * @param {TokenTransferTransitionOptions} options
22582
+ * @param {TokenUnFreezeTransitionOptions} options
21260
22583
  */
21261
22584
  constructor(options) {
21262
- const ret = wasm.tokentransfertransition_constructor(options);
22585
+ const ret = wasm.tokenunfreezetransition_constructor(options);
21263
22586
  if (ret[2]) {
21264
22587
  throw takeFromExternrefTable0(ret[1]);
21265
22588
  }
21266
22589
  this.__wbg_ptr = ret[0] >>> 0;
21267
- TokenTransferTransitionFinalization.register(this, this.__wbg_ptr, this);
22590
+ TokenUnFreezeTransitionFinalization.register(this, this.__wbg_ptr, this);
21268
22591
  return this;
21269
22592
  }
21270
22593
  /**
21271
- * @returns {PrivateEncryptedNote | undefined}
22594
+ * @returns {Identifier}
21272
22595
  */
21273
- get privateEncryptedNote() {
21274
- const ret = wasm.tokentransfertransition_private_encrypted_note(this.__wbg_ptr);
21275
- return ret === 0 ? undefined : PrivateEncryptedNote.__wrap(ret);
22596
+ get frozenIdentityId() {
22597
+ const ret = wasm.tokenunfreezetransition_frozen_identity_id(this.__wbg_ptr);
22598
+ return Identifier.__wrap(ret);
21276
22599
  }
21277
22600
  /**
21278
22601
  * @returns {string | undefined}
21279
22602
  */
21280
22603
  get publicNote() {
21281
- const ret = wasm.tokentransfertransition_public_note(this.__wbg_ptr);
22604
+ const ret = wasm.tokenunfreezetransition_public_note(this.__wbg_ptr);
21282
22605
  let v1;
21283
22606
  if (ret[0] !== 0) {
21284
22607
  v1 = getStringFromWasm0(ret[0], ret[1]).slice();
@@ -21286,35 +22609,19 @@ export class TokenTransferTransition {
21286
22609
  }
21287
22610
  return v1;
21288
22611
  }
21289
- /**
21290
- * @returns {Identifier}
21291
- */
21292
- get recipientId() {
21293
- const ret = wasm.tokentransfertransition_recipient_id(this.__wbg_ptr);
21294
- return Identifier.__wrap(ret);
21295
- }
21296
- /**
21297
- * @param {bigint} amount
21298
- */
21299
- set amount(amount) {
21300
- const ret = wasm.tokentransfertransition_set_amount(this.__wbg_ptr, amount);
21301
- if (ret[1]) {
21302
- throw takeFromExternrefTable0(ret[0]);
21303
- }
21304
- }
21305
22612
  /**
21306
22613
  * @param {TokenBaseTransition} base
21307
22614
  */
21308
22615
  set base(base) {
21309
22616
  _assertClass(base, TokenBaseTransition);
21310
22617
  var ptr0 = base.__destroy_into_raw();
21311
- wasm.tokentransfertransition_set_base(this.__wbg_ptr, ptr0);
22618
+ wasm.tokenunfreezetransition_set_base(this.__wbg_ptr, ptr0);
21312
22619
  }
21313
22620
  /**
21314
- * @param {any} privateEncryptedNote
22621
+ * @param {IdentifierLike} frozenIdentityId
21315
22622
  */
21316
- set privateEncryptedNote(privateEncryptedNote) {
21317
- const ret = wasm.tokentransfertransition_set_private_encrypted_note(this.__wbg_ptr, privateEncryptedNote);
22623
+ set frozenIdentityId(frozenIdentityId) {
22624
+ const ret = wasm.tokenunfreezetransition_set_frozen_identity_id(this.__wbg_ptr, frozenIdentityId);
21318
22625
  if (ret[1]) {
21319
22626
  throw takeFromExternrefTable0(ret[0]);
21320
22627
  }
@@ -21325,32 +22632,7 @@ export class TokenTransferTransition {
21325
22632
  set publicNote(note) {
21326
22633
  var ptr0 = isLikeNone(note) ? 0 : passStringToWasm0(note, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
21327
22634
  var len0 = WASM_VECTOR_LEN;
21328
- wasm.tokentransfertransition_set_public_note(this.__wbg_ptr, ptr0, len0);
21329
- }
21330
- /**
21331
- * @param {IdentifierLike} recipientId
21332
- */
21333
- set recipientId(recipientId) {
21334
- const ret = wasm.tokentransfertransition_set_recipient_id(this.__wbg_ptr, recipientId);
21335
- if (ret[1]) {
21336
- throw takeFromExternrefTable0(ret[0]);
21337
- }
21338
- }
21339
- /**
21340
- * @param {any} sharedEncryptedNote
21341
- */
21342
- set sharedEncryptedNote(sharedEncryptedNote) {
21343
- const ret = wasm.tokentransfertransition_set_shared_encrypted_note(this.__wbg_ptr, sharedEncryptedNote);
21344
- if (ret[1]) {
21345
- throw takeFromExternrefTable0(ret[0]);
21346
- }
21347
- }
21348
- /**
21349
- * @returns {SharedEncryptedNote | undefined}
21350
- */
21351
- get sharedEncryptedNote() {
21352
- const ret = wasm.tokentransfertransition_shared_encrypted_note(this.__wbg_ptr);
21353
- return ret === 0 ? undefined : SharedEncryptedNote.__wrap(ret);
22635
+ wasm.tokenunfreezetransition_set_public_note(this.__wbg_ptr, ptr0, len0);
21354
22636
  }
21355
22637
  /**
21356
22638
  * @returns {string}
@@ -21359,7 +22641,7 @@ export class TokenTransferTransition {
21359
22641
  let deferred1_0;
21360
22642
  let deferred1_1;
21361
22643
  try {
21362
- const ret = wasm.tokentransfertransition_struct_name();
22644
+ const ret = wasm.tokenunfreezetransition_struct_name();
21363
22645
  deferred1_0 = ret[0];
21364
22646
  deferred1_1 = ret[1];
21365
22647
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21374,7 +22656,7 @@ export class TokenTransferTransition {
21374
22656
  let deferred1_0;
21375
22657
  let deferred1_1;
21376
22658
  try {
21377
- const ret = wasm.tokentransfertransition_type_name(this.__wbg_ptr);
22659
+ const ret = wasm.tokenunfreezetransition_type_name(this.__wbg_ptr);
21378
22660
  deferred1_0 = ret[0];
21379
22661
  deferred1_1 = ret[1];
21380
22662
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21383,64 +22665,192 @@ export class TokenTransferTransition {
21383
22665
  }
21384
22666
  }
21385
22667
  }
21386
- if (Symbol.dispose) TokenTransferTransition.prototype[Symbol.dispose] = TokenTransferTransition.prototype.free;
22668
+ if (Symbol.dispose) TokenUnFreezeTransition.prototype[Symbol.dispose] = TokenUnFreezeTransition.prototype.free;
21387
22669
 
21388
- export class TokenTransition {
22670
+ export class UnshieldTransition {
21389
22671
  static __wrap(ptr) {
21390
22672
  ptr = ptr >>> 0;
21391
- const obj = Object.create(TokenTransition.prototype);
22673
+ const obj = Object.create(UnshieldTransition.prototype);
21392
22674
  obj.__wbg_ptr = ptr;
21393
- TokenTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
22675
+ UnshieldTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
21394
22676
  return obj;
21395
22677
  }
21396
22678
  __destroy_into_raw() {
21397
22679
  const ptr = this.__wbg_ptr;
21398
22680
  this.__wbg_ptr = 0;
21399
- TokenTransitionFinalization.unregister(this);
22681
+ UnshieldTransitionFinalization.unregister(this);
21400
22682
  return ptr;
21401
22683
  }
21402
22684
  free() {
21403
22685
  const ptr = this.__destroy_into_raw();
21404
- wasm.__wbg_tokentransition_free(ptr, 0);
22686
+ wasm.__wbg_unshieldtransition_free(ptr, 0);
21405
22687
  }
21406
22688
  /**
21407
- * @param {TokenTransitionLike} transition
22689
+ * Returns the serialized Orchard actions.
22690
+ * @returns {SerializedOrchardAction[]}
21408
22691
  */
21409
- constructor(transition) {
21410
- const ret = wasm.tokentransition_constructor(transition);
22692
+ get actions() {
22693
+ const ret = wasm.unshieldtransition_actions(this.__wbg_ptr);
22694
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
22695
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
22696
+ return v1;
22697
+ }
22698
+ /**
22699
+ * Returns the anchor (32-byte Merkle root).
22700
+ * @returns {Uint8Array}
22701
+ */
22702
+ get anchor() {
22703
+ const ret = wasm.unshieldtransition_anchor(this.__wbg_ptr);
22704
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
22705
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
22706
+ return v1;
22707
+ }
22708
+ /**
22709
+ * Returns the RedPallas binding signature (64 bytes).
22710
+ * @returns {Uint8Array}
22711
+ */
22712
+ get bindingSignature() {
22713
+ const ret = wasm.unshieldtransition_binding_signature(this.__wbg_ptr);
22714
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
22715
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
22716
+ return v1;
22717
+ }
22718
+ /**
22719
+ * @param {Uint8Array} bytes
22720
+ * @returns {UnshieldTransition}
22721
+ */
22722
+ static fromBytes(bytes) {
22723
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
22724
+ const len0 = WASM_VECTOR_LEN;
22725
+ const ret = wasm.unshieldtransition_fromBytes(ptr0, len0);
22726
+ if (ret[2]) {
22727
+ throw takeFromExternrefTable0(ret[1]);
22728
+ }
22729
+ return UnshieldTransition.__wrap(ret[0]);
22730
+ }
22731
+ /**
22732
+ * @param {UnshieldTransitionJSON} js
22733
+ * @returns {UnshieldTransition}
22734
+ */
22735
+ static fromJSON(js) {
22736
+ const ret = wasm.unshieldtransition_fromJSON(js);
22737
+ if (ret[2]) {
22738
+ throw takeFromExternrefTable0(ret[1]);
22739
+ }
22740
+ return UnshieldTransition.__wrap(ret[0]);
22741
+ }
22742
+ /**
22743
+ * @param {UnshieldTransitionObject} obj
22744
+ * @returns {UnshieldTransition}
22745
+ */
22746
+ static fromObject(obj) {
22747
+ const ret = wasm.unshieldtransition_fromObject(obj);
22748
+ if (ret[2]) {
22749
+ throw takeFromExternrefTable0(ret[1]);
22750
+ }
22751
+ return UnshieldTransition.__wrap(ret[0]);
22752
+ }
22753
+ /**
22754
+ * @returns {Identifier[]}
22755
+ */
22756
+ getModifiedDataIds() {
22757
+ const ret = wasm.unshieldtransition_getModifiedDataIds(this.__wbg_ptr);
22758
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
22759
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
22760
+ return v1;
22761
+ }
22762
+ /**
22763
+ * @param {UnshieldTransitionOptions} options
22764
+ */
22765
+ constructor(options) {
22766
+ const ret = wasm.unshieldtransition_new(options);
21411
22767
  if (ret[2]) {
21412
22768
  throw takeFromExternrefTable0(ret[1]);
21413
22769
  }
21414
22770
  this.__wbg_ptr = ret[0] >>> 0;
21415
- TokenTransitionFinalization.register(this, this.__wbg_ptr, this);
22771
+ UnshieldTransitionFinalization.register(this, this.__wbg_ptr, this);
21416
22772
  return this;
21417
22773
  }
21418
22774
  /**
21419
- * @returns {Identifier}
22775
+ * Returns the output address receiving the unshielded funds.
22776
+ * @returns {PlatformAddress}
21420
22777
  */
21421
- get contractId() {
21422
- const ret = wasm.tokentransition_contract_id(this.__wbg_ptr);
21423
- return Identifier.__wrap(ret);
22778
+ get outputAddress() {
22779
+ const ret = wasm.unshieldtransition_output_address(this.__wbg_ptr);
22780
+ return PlatformAddress.__wrap(ret);
21424
22781
  }
21425
22782
  /**
21426
- * @param {IdentifierLike} owner
21427
- * @returns {Identifier}
22783
+ * Returns the Halo2 proof bytes.
22784
+ * @returns {Uint8Array}
21428
22785
  */
21429
- getHistoricalDocumentId(owner) {
21430
- const ret = wasm.tokentransition_getHistoricalDocumentId(this.__wbg_ptr, owner);
22786
+ get proof() {
22787
+ const ret = wasm.unshieldtransition_proof(this.__wbg_ptr);
22788
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
22789
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
22790
+ return v1;
22791
+ }
22792
+ /**
22793
+ * @returns {string}
22794
+ */
22795
+ static get __struct() {
22796
+ let deferred1_0;
22797
+ let deferred1_1;
22798
+ try {
22799
+ const ret = wasm.unshieldtransition_struct_name();
22800
+ deferred1_0 = ret[0];
22801
+ deferred1_1 = ret[1];
22802
+ return getStringFromWasm0(ret[0], ret[1]);
22803
+ } finally {
22804
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22805
+ }
22806
+ }
22807
+ /**
22808
+ * @returns {Uint8Array}
22809
+ */
22810
+ toBytes() {
22811
+ const ret = wasm.unshieldtransition_toBytes(this.__wbg_ptr);
22812
+ if (ret[3]) {
22813
+ throw takeFromExternrefTable0(ret[2]);
22814
+ }
22815
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
22816
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
22817
+ return v1;
22818
+ }
22819
+ /**
22820
+ * @returns {UnshieldTransitionJSON}
22821
+ */
22822
+ toJSON() {
22823
+ const ret = wasm.unshieldtransition_toJSON(this.__wbg_ptr);
21431
22824
  if (ret[2]) {
21432
22825
  throw takeFromExternrefTable0(ret[1]);
21433
22826
  }
21434
- return Identifier.__wrap(ret[0]);
22827
+ return takeFromExternrefTable0(ret[0]);
22828
+ }
22829
+ /**
22830
+ * @returns {UnshieldTransitionObject}
22831
+ */
22832
+ toObject() {
22833
+ const ret = wasm.unshieldtransition_toObject(this.__wbg_ptr);
22834
+ if (ret[2]) {
22835
+ throw takeFromExternrefTable0(ret[1]);
22836
+ }
22837
+ return takeFromExternrefTable0(ret[0]);
22838
+ }
22839
+ /**
22840
+ * @returns {StateTransition}
22841
+ */
22842
+ toStateTransition() {
22843
+ const ret = wasm.unshieldtransition_toStateTransition(this.__wbg_ptr);
22844
+ return StateTransition.__wrap(ret);
21435
22845
  }
21436
22846
  /**
21437
22847
  * @returns {string}
21438
22848
  */
21439
- get historicalDocumentTypeName() {
22849
+ get __type() {
21440
22850
  let deferred1_0;
21441
22851
  let deferred1_1;
21442
22852
  try {
21443
- const ret = wasm.tokentransition_historical_document_type_name(this.__wbg_ptr);
22853
+ const ret = wasm.unshieldtransition_type_name(this.__wbg_ptr);
21444
22854
  deferred1_0 = ret[0];
21445
22855
  deferred1_1 = ret[1];
21446
22856
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21449,38 +22859,62 @@ export class TokenTransition {
21449
22859
  }
21450
22860
  }
21451
22861
  /**
22862
+ * Returns the unshielding amount.
21452
22863
  * @returns {bigint}
21453
22864
  */
21454
- get identityContractNonce() {
21455
- const ret = wasm.tokentransition_identity_contract_nonce(this.__wbg_ptr);
22865
+ get unshieldingAmount() {
22866
+ const ret = wasm.unshieldtransition_unshielding_amount(this.__wbg_ptr);
21456
22867
  return BigInt.asUintN(64, ret);
21457
22868
  }
22869
+ }
22870
+ if (Symbol.dispose) UnshieldTransition.prototype[Symbol.dispose] = UnshieldTransition.prototype.free;
22871
+
22872
+ export class VerifiedAddressInfos {
22873
+ static __wrap(ptr) {
22874
+ ptr = ptr >>> 0;
22875
+ const obj = Object.create(VerifiedAddressInfos.prototype);
22876
+ obj.__wbg_ptr = ptr;
22877
+ VerifiedAddressInfosFinalization.register(obj, obj.__wbg_ptr, obj);
22878
+ return obj;
22879
+ }
22880
+ __destroy_into_raw() {
22881
+ const ptr = this.__wbg_ptr;
22882
+ this.__wbg_ptr = 0;
22883
+ VerifiedAddressInfosFinalization.unregister(this);
22884
+ return ptr;
22885
+ }
22886
+ free() {
22887
+ const ptr = this.__destroy_into_raw();
22888
+ wasm.__wbg_verifiedaddressinfos_free(ptr, 0);
22889
+ }
21458
22890
  /**
21459
- * @param {IdentifierLike} contractId
22891
+ * @returns {Map<any, any>}
21460
22892
  */
21461
- set contractId(contractId) {
21462
- const ret = wasm.tokentransition_set_contract_id(this.__wbg_ptr, contractId);
21463
- if (ret[1]) {
21464
- throw takeFromExternrefTable0(ret[0]);
21465
- }
22893
+ get addressInfos() {
22894
+ const ret = wasm.verifiedaddressinfos_address_infos(this.__wbg_ptr);
22895
+ return ret;
21466
22896
  }
21467
22897
  /**
21468
- * @param {bigint} nonce
22898
+ * @param {any} value
22899
+ * @returns {VerifiedAddressInfos}
21469
22900
  */
21470
- set identityContractNonce(nonce) {
21471
- const ret = wasm.tokentransition_set_identity_contract_nonce(this.__wbg_ptr, nonce);
21472
- if (ret[1]) {
21473
- throw takeFromExternrefTable0(ret[0]);
22901
+ static fromJSON(value) {
22902
+ const ret = wasm.verifiedaddressinfos_fromJSON(value);
22903
+ if (ret[2]) {
22904
+ throw takeFromExternrefTable0(ret[1]);
21474
22905
  }
22906
+ return VerifiedAddressInfos.__wrap(ret[0]);
21475
22907
  }
21476
22908
  /**
21477
- * @param {IdentifierLike} tokenId
22909
+ * @param {any} value
22910
+ * @returns {VerifiedAddressInfos}
21478
22911
  */
21479
- set tokenId(tokenId) {
21480
- const ret = wasm.tokentransition_set_token_id(this.__wbg_ptr, tokenId);
21481
- if (ret[1]) {
21482
- throw takeFromExternrefTable0(ret[0]);
22912
+ static fromObject(value) {
22913
+ const ret = wasm.verifiedaddressinfos_fromObject(value);
22914
+ if (ret[2]) {
22915
+ throw takeFromExternrefTable0(ret[1]);
21483
22916
  }
22917
+ return VerifiedAddressInfos.__wrap(ret[0]);
21484
22918
  }
21485
22919
  /**
21486
22920
  * @returns {string}
@@ -21489,7 +22923,7 @@ export class TokenTransition {
21489
22923
  let deferred1_0;
21490
22924
  let deferred1_1;
21491
22925
  try {
21492
- const ret = wasm.tokentransition_struct_name();
22926
+ const ret = wasm.verifiedaddressinfos_struct_name();
21493
22927
  deferred1_0 = ret[0];
21494
22928
  deferred1_1 = ret[1];
21495
22929
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21498,39 +22932,23 @@ export class TokenTransition {
21498
22932
  }
21499
22933
  }
21500
22934
  /**
21501
- * @returns {Identifier}
21502
- */
21503
- get tokenId() {
21504
- const ret = wasm.tokentransition_token_id(this.__wbg_ptr);
21505
- return Identifier.__wrap(ret);
21506
- }
21507
- /**
21508
- * @returns {TokenTransitionLike}
21509
- */
21510
- get transition() {
21511
- const ret = wasm.tokentransition_transition(this.__wbg_ptr);
21512
- return ret;
21513
- }
21514
- /**
21515
- * @returns {string}
22935
+ * Returns a `JSON.stringify`-friendly form: the `Map` is normalised to a
22936
+ * plain object so its entries survive serialisation (otherwise
22937
+ * `JSON.stringify({addressInfos: <Map>})` produces `{"addressInfos":{}}`).
22938
+ * @returns {any}
21516
22939
  */
21517
- get transitionType() {
21518
- let deferred1_0;
21519
- let deferred1_1;
21520
- try {
21521
- const ret = wasm.tokentransition_transition_type(this.__wbg_ptr);
21522
- deferred1_0 = ret[0];
21523
- deferred1_1 = ret[1];
21524
- return getStringFromWasm0(ret[0], ret[1]);
21525
- } finally {
21526
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22940
+ toJSON() {
22941
+ const ret = wasm.verifiedaddressinfos_toJSON(this.__wbg_ptr);
22942
+ if (ret[2]) {
22943
+ throw takeFromExternrefTable0(ret[1]);
21527
22944
  }
22945
+ return takeFromExternrefTable0(ret[0]);
21528
22946
  }
21529
22947
  /**
21530
- * @returns {number}
22948
+ * @returns {any}
21531
22949
  */
21532
- get transitionTypeNumber() {
21533
- const ret = wasm.tokentransition_transition_type_number(this.__wbg_ptr);
22950
+ toObject() {
22951
+ const ret = wasm.verifiedaddressinfos_toObject(this.__wbg_ptr);
21534
22952
  return ret;
21535
22953
  }
21536
22954
  /**
@@ -21540,7 +22958,7 @@ export class TokenTransition {
21540
22958
  let deferred1_0;
21541
22959
  let deferred1_1;
21542
22960
  try {
21543
- const ret = wasm.tokentransition_type_name(this.__wbg_ptr);
22961
+ const ret = wasm.verifiedaddressinfos_type_name(this.__wbg_ptr);
21544
22962
  deferred1_0 = ret[0];
21545
22963
  deferred1_1 = ret[1];
21546
22964
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21549,88 +22967,84 @@ export class TokenTransition {
21549
22967
  }
21550
22968
  }
21551
22969
  }
21552
- if (Symbol.dispose) TokenTransition.prototype[Symbol.dispose] = TokenTransition.prototype.free;
22970
+ if (Symbol.dispose) VerifiedAddressInfos.prototype[Symbol.dispose] = VerifiedAddressInfos.prototype.free;
21553
22971
 
21554
- export class TokenUnFreezeTransition {
22972
+ export class VerifiedAssetLockConsumed {
21555
22973
  static __wrap(ptr) {
21556
22974
  ptr = ptr >>> 0;
21557
- const obj = Object.create(TokenUnFreezeTransition.prototype);
22975
+ const obj = Object.create(VerifiedAssetLockConsumed.prototype);
21558
22976
  obj.__wbg_ptr = ptr;
21559
- TokenUnFreezeTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
22977
+ VerifiedAssetLockConsumedFinalization.register(obj, obj.__wbg_ptr, obj);
21560
22978
  return obj;
21561
22979
  }
21562
22980
  __destroy_into_raw() {
21563
22981
  const ptr = this.__wbg_ptr;
21564
22982
  this.__wbg_ptr = 0;
21565
- TokenUnFreezeTransitionFinalization.unregister(this);
22983
+ VerifiedAssetLockConsumedFinalization.unregister(this);
21566
22984
  return ptr;
21567
22985
  }
21568
22986
  free() {
21569
22987
  const ptr = this.__destroy_into_raw();
21570
- wasm.__wbg_tokenunfreezetransition_free(ptr, 0);
21571
- }
21572
- /**
21573
- * @returns {TokenBaseTransition}
21574
- */
21575
- get base() {
21576
- const ret = wasm.tokenunfreezetransition_base(this.__wbg_ptr);
21577
- return TokenBaseTransition.__wrap(ret);
22988
+ wasm.__wbg_verifiedassetlockconsumed_free(ptr, 0);
21578
22989
  }
21579
22990
  /**
21580
- * @param {TokenUnFreezeTransitionOptions} options
22991
+ * @returns {string}
21581
22992
  */
21582
- constructor(options) {
21583
- const ret = wasm.tokenunfreezetransition_constructor(options);
21584
- if (ret[2]) {
21585
- throw takeFromExternrefTable0(ret[1]);
22993
+ get status() {
22994
+ let deferred1_0;
22995
+ let deferred1_1;
22996
+ try {
22997
+ const ret = wasm.__wbg_get_verifiedassetlockconsumed_status(this.__wbg_ptr);
22998
+ deferred1_0 = ret[0];
22999
+ deferred1_1 = ret[1];
23000
+ return getStringFromWasm0(ret[0], ret[1]);
23001
+ } finally {
23002
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21586
23003
  }
21587
- this.__wbg_ptr = ret[0] >>> 0;
21588
- TokenUnFreezeTransitionFinalization.register(this, this.__wbg_ptr, this);
21589
- return this;
21590
23004
  }
21591
23005
  /**
21592
- * @returns {Identifier}
23006
+ * @param {string} arg0
21593
23007
  */
21594
- get frozenIdentityId() {
21595
- const ret = wasm.tokenunfreezetransition_frozen_identity_id(this.__wbg_ptr);
21596
- return Identifier.__wrap(ret);
23008
+ set status(arg0) {
23009
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
23010
+ const len0 = WASM_VECTOR_LEN;
23011
+ wasm.__wbg_set_verifiedassetlockconsumed_status(this.__wbg_ptr, ptr0, len0);
21597
23012
  }
21598
23013
  /**
21599
- * @returns {string | undefined}
23014
+ * @param {any} js
23015
+ * @returns {VerifiedAssetLockConsumed}
21600
23016
  */
21601
- get publicNote() {
21602
- const ret = wasm.tokenunfreezetransition_public_note(this.__wbg_ptr);
21603
- let v1;
21604
- if (ret[0] !== 0) {
21605
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
21606
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
23017
+ static fromJSON(js) {
23018
+ const ret = wasm.verifiedassetlockconsumed_fromJSON(js);
23019
+ if (ret[2]) {
23020
+ throw takeFromExternrefTable0(ret[1]);
21607
23021
  }
21608
- return v1;
23022
+ return VerifiedAssetLockConsumed.__wrap(ret[0]);
21609
23023
  }
21610
23024
  /**
21611
- * @param {TokenBaseTransition} base
23025
+ * @param {any} obj
23026
+ * @returns {VerifiedAssetLockConsumed}
21612
23027
  */
21613
- set base(base) {
21614
- _assertClass(base, TokenBaseTransition);
21615
- var ptr0 = base.__destroy_into_raw();
21616
- wasm.tokenunfreezetransition_set_base(this.__wbg_ptr, ptr0);
23028
+ static fromObject(obj) {
23029
+ const ret = wasm.verifiedassetlockconsumed_fromObject(obj);
23030
+ if (ret[2]) {
23031
+ throw takeFromExternrefTable0(ret[1]);
23032
+ }
23033
+ return VerifiedAssetLockConsumed.__wrap(ret[0]);
21617
23034
  }
21618
23035
  /**
21619
- * @param {IdentifierLike} frozenIdentityId
23036
+ * @returns {any}
21620
23037
  */
21621
- set frozenIdentityId(frozenIdentityId) {
21622
- const ret = wasm.tokenunfreezetransition_set_frozen_identity_id(this.__wbg_ptr, frozenIdentityId);
21623
- if (ret[1]) {
21624
- throw takeFromExternrefTable0(ret[0]);
21625
- }
23038
+ get initialCreditValue() {
23039
+ const ret = wasm.verifiedassetlockconsumed_initialCreditValue(this.__wbg_ptr);
23040
+ return ret;
21626
23041
  }
21627
23042
  /**
21628
- * @param {string | null} [note]
23043
+ * @returns {any}
21629
23044
  */
21630
- set publicNote(note) {
21631
- var ptr0 = isLikeNone(note) ? 0 : passStringToWasm0(note, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
21632
- var len0 = WASM_VECTOR_LEN;
21633
- wasm.tokenunfreezetransition_set_public_note(this.__wbg_ptr, ptr0, len0);
23045
+ get remainingCreditValue() {
23046
+ const ret = wasm.verifiedassetlockconsumed_remainingCreditValue(this.__wbg_ptr);
23047
+ return ret;
21634
23048
  }
21635
23049
  /**
21636
23050
  * @returns {string}
@@ -21639,7 +23053,7 @@ export class TokenUnFreezeTransition {
21639
23053
  let deferred1_0;
21640
23054
  let deferred1_1;
21641
23055
  try {
21642
- const ret = wasm.tokenunfreezetransition_struct_name();
23056
+ const ret = wasm.verifiedassetlockconsumed_struct_name();
21643
23057
  deferred1_0 = ret[0];
21644
23058
  deferred1_1 = ret[1];
21645
23059
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21647,6 +23061,26 @@ export class TokenUnFreezeTransition {
21647
23061
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21648
23062
  }
21649
23063
  }
23064
+ /**
23065
+ * @returns {any}
23066
+ */
23067
+ toJSON() {
23068
+ const ret = wasm.verifiedassetlockconsumed_toJSON(this.__wbg_ptr);
23069
+ if (ret[2]) {
23070
+ throw takeFromExternrefTable0(ret[1]);
23071
+ }
23072
+ return takeFromExternrefTable0(ret[0]);
23073
+ }
23074
+ /**
23075
+ * @returns {any}
23076
+ */
23077
+ toObject() {
23078
+ const ret = wasm.verifiedassetlockconsumed_toObject(this.__wbg_ptr);
23079
+ if (ret[2]) {
23080
+ throw takeFromExternrefTable0(ret[1]);
23081
+ }
23082
+ return takeFromExternrefTable0(ret[0]);
23083
+ }
21650
23084
  /**
21651
23085
  * @returns {string}
21652
23086
  */
@@ -21654,7 +23088,7 @@ export class TokenUnFreezeTransition {
21654
23088
  let deferred1_0;
21655
23089
  let deferred1_1;
21656
23090
  try {
21657
- const ret = wasm.tokenunfreezetransition_type_name(this.__wbg_ptr);
23091
+ const ret = wasm.verifiedassetlockconsumed_type_name(this.__wbg_ptr);
21658
23092
  deferred1_0 = ret[0];
21659
23093
  deferred1_1 = ret[1];
21660
23094
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21663,138 +23097,77 @@ export class TokenUnFreezeTransition {
21663
23097
  }
21664
23098
  }
21665
23099
  }
21666
- if (Symbol.dispose) TokenUnFreezeTransition.prototype[Symbol.dispose] = TokenUnFreezeTransition.prototype.free;
23100
+ if (Symbol.dispose) VerifiedAssetLockConsumed.prototype[Symbol.dispose] = VerifiedAssetLockConsumed.prototype.free;
21667
23101
 
21668
- export class UnshieldTransition {
23102
+ export class VerifiedAssetLockConsumedWithAddressInfos {
21669
23103
  static __wrap(ptr) {
21670
23104
  ptr = ptr >>> 0;
21671
- const obj = Object.create(UnshieldTransition.prototype);
23105
+ const obj = Object.create(VerifiedAssetLockConsumedWithAddressInfos.prototype);
21672
23106
  obj.__wbg_ptr = ptr;
21673
- UnshieldTransitionFinalization.register(obj, obj.__wbg_ptr, obj);
23107
+ VerifiedAssetLockConsumedWithAddressInfosFinalization.register(obj, obj.__wbg_ptr, obj);
21674
23108
  return obj;
21675
23109
  }
21676
23110
  __destroy_into_raw() {
21677
23111
  const ptr = this.__wbg_ptr;
21678
23112
  this.__wbg_ptr = 0;
21679
- UnshieldTransitionFinalization.unregister(this);
23113
+ VerifiedAssetLockConsumedWithAddressInfosFinalization.unregister(this);
21680
23114
  return ptr;
21681
23115
  }
21682
23116
  free() {
21683
23117
  const ptr = this.__destroy_into_raw();
21684
- wasm.__wbg_unshieldtransition_free(ptr, 0);
21685
- }
21686
- /**
21687
- * Returns the serialized Orchard actions.
21688
- * @returns {SerializedOrchardAction[]}
21689
- */
21690
- get actions() {
21691
- const ret = wasm.unshieldtransition_actions(this.__wbg_ptr);
21692
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
21693
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
21694
- return v1;
21695
- }
21696
- /**
21697
- * Returns the anchor (32-byte Merkle root).
21698
- * @returns {Uint8Array}
21699
- */
21700
- get anchor() {
21701
- const ret = wasm.unshieldtransition_anchor(this.__wbg_ptr);
21702
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
21703
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
21704
- return v1;
21705
- }
21706
- /**
21707
- * Returns the RedPallas binding signature (64 bytes).
21708
- * @returns {Uint8Array}
21709
- */
21710
- get bindingSignature() {
21711
- const ret = wasm.unshieldtransition_binding_signature(this.__wbg_ptr);
21712
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
21713
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
21714
- return v1;
21715
- }
21716
- /**
21717
- * @param {Uint8Array} bytes
21718
- * @returns {UnshieldTransition}
21719
- */
21720
- static fromBytes(bytes) {
21721
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
21722
- const len0 = WASM_VECTOR_LEN;
21723
- const ret = wasm.unshieldtransition_fromBytes(ptr0, len0);
21724
- if (ret[2]) {
21725
- throw takeFromExternrefTable0(ret[1]);
21726
- }
21727
- return UnshieldTransition.__wrap(ret[0]);
23118
+ wasm.__wbg_verifiedassetlockconsumedwithaddressinfos_free(ptr, 0);
21728
23119
  }
21729
23120
  /**
21730
- * @param {UnshieldTransitionJSON} js
21731
- * @returns {UnshieldTransition}
23121
+ * @returns {Map<any, any>}
21732
23122
  */
21733
- static fromJSON(js) {
21734
- const ret = wasm.unshieldtransition_fromJSON(js);
21735
- if (ret[2]) {
21736
- throw takeFromExternrefTable0(ret[1]);
21737
- }
21738
- return UnshieldTransition.__wrap(ret[0]);
23123
+ get addressInfos() {
23124
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_address_infos(this.__wbg_ptr);
23125
+ return ret;
21739
23126
  }
21740
23127
  /**
21741
- * @param {UnshieldTransitionObject} obj
21742
- * @returns {UnshieldTransition}
23128
+ * @param {any} value
23129
+ * @returns {VerifiedAssetLockConsumedWithAddressInfos}
21743
23130
  */
21744
- static fromObject(obj) {
21745
- const ret = wasm.unshieldtransition_fromObject(obj);
23131
+ static fromJSON(value) {
23132
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_fromJSON(value);
21746
23133
  if (ret[2]) {
21747
23134
  throw takeFromExternrefTable0(ret[1]);
21748
23135
  }
21749
- return UnshieldTransition.__wrap(ret[0]);
21750
- }
21751
- /**
21752
- * @returns {Identifier[]}
21753
- */
21754
- getModifiedDataIds() {
21755
- const ret = wasm.unshieldtransition_getModifiedDataIds(this.__wbg_ptr);
21756
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
21757
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
21758
- return v1;
23136
+ return VerifiedAssetLockConsumedWithAddressInfos.__wrap(ret[0]);
21759
23137
  }
21760
23138
  /**
21761
- * @param {UnshieldTransitionOptions} options
23139
+ * @param {any} value
23140
+ * @returns {VerifiedAssetLockConsumedWithAddressInfos}
21762
23141
  */
21763
- constructor(options) {
21764
- const ret = wasm.unshieldtransition_new(options);
23142
+ static fromObject(value) {
23143
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_fromObject(value);
21765
23144
  if (ret[2]) {
21766
23145
  throw takeFromExternrefTable0(ret[1]);
21767
23146
  }
21768
- this.__wbg_ptr = ret[0] >>> 0;
21769
- UnshieldTransitionFinalization.register(this, this.__wbg_ptr, this);
21770
- return this;
23147
+ return VerifiedAssetLockConsumedWithAddressInfos.__wrap(ret[0]);
21771
23148
  }
21772
23149
  /**
21773
- * Returns the output address receiving the unshielded funds.
21774
- * @returns {PlatformAddress}
23150
+ * @returns {any}
21775
23151
  */
21776
- get outputAddress() {
21777
- const ret = wasm.unshieldtransition_output_address(this.__wbg_ptr);
21778
- return PlatformAddress.__wrap(ret);
23152
+ get initialCreditValue() {
23153
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_initialCreditValue(this.__wbg_ptr);
23154
+ return ret;
21779
23155
  }
21780
23156
  /**
21781
- * Returns the Halo2 proof bytes.
21782
- * @returns {Uint8Array}
23157
+ * @returns {any}
21783
23158
  */
21784
- get proof() {
21785
- const ret = wasm.unshieldtransition_proof(this.__wbg_ptr);
21786
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
21787
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
21788
- return v1;
23159
+ get remainingCreditValue() {
23160
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_remainingCreditValue(this.__wbg_ptr);
23161
+ return ret;
21789
23162
  }
21790
23163
  /**
21791
23164
  * @returns {string}
21792
23165
  */
21793
- static get __struct() {
23166
+ get status() {
21794
23167
  let deferred1_0;
21795
23168
  let deferred1_1;
21796
23169
  try {
21797
- const ret = wasm.unshieldtransition_struct_name();
23170
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_status(this.__wbg_ptr);
21798
23171
  deferred1_0 = ret[0];
21799
23172
  deferred1_1 = ret[1];
21800
23173
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21803,43 +23176,38 @@ export class UnshieldTransition {
21803
23176
  }
21804
23177
  }
21805
23178
  /**
21806
- * @returns {Uint8Array}
23179
+ * @returns {string}
21807
23180
  */
21808
- toBytes() {
21809
- const ret = wasm.unshieldtransition_toBytes(this.__wbg_ptr);
21810
- if (ret[3]) {
21811
- throw takeFromExternrefTable0(ret[2]);
23181
+ static get __struct() {
23182
+ let deferred1_0;
23183
+ let deferred1_1;
23184
+ try {
23185
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_struct_name();
23186
+ deferred1_0 = ret[0];
23187
+ deferred1_1 = ret[1];
23188
+ return getStringFromWasm0(ret[0], ret[1]);
23189
+ } finally {
23190
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21812
23191
  }
21813
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
21814
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
21815
- return v1;
21816
23192
  }
21817
23193
  /**
21818
- * @returns {UnshieldTransitionJSON}
23194
+ * Returns a `JSON.stringify`-friendly form: the `Map` is normalised to a
23195
+ * plain object so its entries survive serialisation.
23196
+ * @returns {any}
21819
23197
  */
21820
23198
  toJSON() {
21821
- const ret = wasm.unshieldtransition_toJSON(this.__wbg_ptr);
23199
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_toJSON(this.__wbg_ptr);
21822
23200
  if (ret[2]) {
21823
23201
  throw takeFromExternrefTable0(ret[1]);
21824
23202
  }
21825
23203
  return takeFromExternrefTable0(ret[0]);
21826
23204
  }
21827
23205
  /**
21828
- * @returns {UnshieldTransitionObject}
23206
+ * @returns {any}
21829
23207
  */
21830
23208
  toObject() {
21831
- const ret = wasm.unshieldtransition_toObject(this.__wbg_ptr);
21832
- if (ret[2]) {
21833
- throw takeFromExternrefTable0(ret[1]);
21834
- }
21835
- return takeFromExternrefTable0(ret[0]);
21836
- }
21837
- /**
21838
- * @returns {StateTransition}
21839
- */
21840
- toStateTransition() {
21841
- const ret = wasm.unshieldtransition_toStateTransition(this.__wbg_ptr);
21842
- return StateTransition.__wrap(ret);
23209
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_toObject(this.__wbg_ptr);
23210
+ return ret;
21843
23211
  }
21844
23212
  /**
21845
23213
  * @returns {string}
@@ -21848,7 +23216,7 @@ export class UnshieldTransition {
21848
23216
  let deferred1_0;
21849
23217
  let deferred1_1;
21850
23218
  try {
21851
- const ret = wasm.unshieldtransition_type_name(this.__wbg_ptr);
23219
+ const ret = wasm.verifiedassetlockconsumedwithaddressinfos_type_name(this.__wbg_ptr);
21852
23220
  deferred1_0 = ret[0];
21853
23221
  deferred1_1 = ret[1];
21854
23222
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21856,63 +23224,78 @@ export class UnshieldTransition {
21856
23224
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
21857
23225
  }
21858
23226
  }
21859
- /**
21860
- * Returns the unshielding amount.
21861
- * @returns {bigint}
21862
- */
21863
- get unshieldingAmount() {
21864
- const ret = wasm.unshieldtransition_unshielding_amount(this.__wbg_ptr);
21865
- return BigInt.asUintN(64, ret);
21866
- }
21867
23227
  }
21868
- if (Symbol.dispose) UnshieldTransition.prototype[Symbol.dispose] = UnshieldTransition.prototype.free;
23228
+ if (Symbol.dispose) VerifiedAssetLockConsumedWithAddressInfos.prototype[Symbol.dispose] = VerifiedAssetLockConsumedWithAddressInfos.prototype.free;
21869
23229
 
21870
- export class VerifiedAddressInfos {
23230
+ export class VerifiedBalanceTransfer {
21871
23231
  static __wrap(ptr) {
21872
23232
  ptr = ptr >>> 0;
21873
- const obj = Object.create(VerifiedAddressInfos.prototype);
23233
+ const obj = Object.create(VerifiedBalanceTransfer.prototype);
21874
23234
  obj.__wbg_ptr = ptr;
21875
- VerifiedAddressInfosFinalization.register(obj, obj.__wbg_ptr, obj);
23235
+ VerifiedBalanceTransferFinalization.register(obj, obj.__wbg_ptr, obj);
21876
23236
  return obj;
21877
23237
  }
21878
23238
  __destroy_into_raw() {
21879
23239
  const ptr = this.__wbg_ptr;
21880
23240
  this.__wbg_ptr = 0;
21881
- VerifiedAddressInfosFinalization.unregister(this);
23241
+ VerifiedBalanceTransferFinalization.unregister(this);
21882
23242
  return ptr;
21883
23243
  }
21884
23244
  free() {
21885
23245
  const ptr = this.__destroy_into_raw();
21886
- wasm.__wbg_verifiedaddressinfos_free(ptr, 0);
23246
+ wasm.__wbg_verifiedbalancetransfer_free(ptr, 0);
21887
23247
  }
21888
23248
  /**
21889
- * @returns {Map<any, any>}
23249
+ * @returns {PartialIdentity}
21890
23250
  */
21891
- get addressInfos() {
21892
- const ret = wasm.verifiedaddressinfos_address_infos(this.__wbg_ptr);
21893
- return ret;
23251
+ get recipient() {
23252
+ const ret = wasm.__wbg_get_verifiedbalancetransfer_recipient(this.__wbg_ptr);
23253
+ return PartialIdentity.__wrap(ret);
21894
23254
  }
21895
23255
  /**
21896
- * @param {any} value
21897
- * @returns {VerifiedAddressInfos}
23256
+ * @returns {PartialIdentity}
21898
23257
  */
21899
- static fromJSON(value) {
21900
- const ret = wasm.verifiedaddressinfos_fromJSON(value);
23258
+ get sender() {
23259
+ const ret = wasm.__wbg_get_verifiedbalancetransfer_sender(this.__wbg_ptr);
23260
+ return PartialIdentity.__wrap(ret);
23261
+ }
23262
+ /**
23263
+ * @param {PartialIdentity} arg0
23264
+ */
23265
+ set recipient(arg0) {
23266
+ _assertClass(arg0, PartialIdentity);
23267
+ var ptr0 = arg0.__destroy_into_raw();
23268
+ wasm.__wbg_set_verifiedbalancetransfer_recipient(this.__wbg_ptr, ptr0);
23269
+ }
23270
+ /**
23271
+ * @param {PartialIdentity} arg0
23272
+ */
23273
+ set sender(arg0) {
23274
+ _assertClass(arg0, PartialIdentity);
23275
+ var ptr0 = arg0.__destroy_into_raw();
23276
+ wasm.__wbg_set_verifiedbalancetransfer_sender(this.__wbg_ptr, ptr0);
23277
+ }
23278
+ /**
23279
+ * @param {any} js
23280
+ * @returns {VerifiedBalanceTransfer}
23281
+ */
23282
+ static fromJSON(js) {
23283
+ const ret = wasm.verifiedbalancetransfer_fromJSON(js);
21901
23284
  if (ret[2]) {
21902
23285
  throw takeFromExternrefTable0(ret[1]);
21903
23286
  }
21904
- return VerifiedAddressInfos.__wrap(ret[0]);
23287
+ return VerifiedBalanceTransfer.__wrap(ret[0]);
21905
23288
  }
21906
23289
  /**
21907
- * @param {any} value
21908
- * @returns {VerifiedAddressInfos}
23290
+ * @param {any} obj
23291
+ * @returns {VerifiedBalanceTransfer}
21909
23292
  */
21910
- static fromObject(value) {
21911
- const ret = wasm.verifiedaddressinfos_fromObject(value);
23293
+ static fromObject(obj) {
23294
+ const ret = wasm.verifiedbalancetransfer_fromObject(obj);
21912
23295
  if (ret[2]) {
21913
23296
  throw takeFromExternrefTable0(ret[1]);
21914
23297
  }
21915
- return VerifiedAddressInfos.__wrap(ret[0]);
23298
+ return VerifiedBalanceTransfer.__wrap(ret[0]);
21916
23299
  }
21917
23300
  /**
21918
23301
  * @returns {string}
@@ -21921,7 +23304,7 @@ export class VerifiedAddressInfos {
21921
23304
  let deferred1_0;
21922
23305
  let deferred1_1;
21923
23306
  try {
21924
- const ret = wasm.verifiedaddressinfos_struct_name();
23307
+ const ret = wasm.verifiedbalancetransfer_struct_name();
21925
23308
  deferred1_0 = ret[0];
21926
23309
  deferred1_1 = ret[1];
21927
23310
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21930,13 +23313,10 @@ export class VerifiedAddressInfos {
21930
23313
  }
21931
23314
  }
21932
23315
  /**
21933
- * Returns a `JSON.stringify`-friendly form: the `Map` is normalised to a
21934
- * plain object so its entries survive serialisation (otherwise
21935
- * `JSON.stringify({addressInfos: <Map>})` produces `{"addressInfos":{}}`).
21936
23316
  * @returns {any}
21937
23317
  */
21938
23318
  toJSON() {
21939
- const ret = wasm.verifiedaddressinfos_toJSON(this.__wbg_ptr);
23319
+ const ret = wasm.verifiedbalancetransfer_toJSON(this.__wbg_ptr);
21940
23320
  if (ret[2]) {
21941
23321
  throw takeFromExternrefTable0(ret[1]);
21942
23322
  }
@@ -21946,8 +23326,11 @@ export class VerifiedAddressInfos {
21946
23326
  * @returns {any}
21947
23327
  */
21948
23328
  toObject() {
21949
- const ret = wasm.verifiedaddressinfos_toObject(this.__wbg_ptr);
21950
- return ret;
23329
+ const ret = wasm.verifiedbalancetransfer_toObject(this.__wbg_ptr);
23330
+ if (ret[2]) {
23331
+ throw takeFromExternrefTable0(ret[1]);
23332
+ }
23333
+ return takeFromExternrefTable0(ret[0]);
21951
23334
  }
21952
23335
  /**
21953
23336
  * @returns {string}
@@ -21956,7 +23339,7 @@ export class VerifiedAddressInfos {
21956
23339
  let deferred1_0;
21957
23340
  let deferred1_1;
21958
23341
  try {
21959
- const ret = wasm.verifiedaddressinfos_type_name(this.__wbg_ptr);
23342
+ const ret = wasm.verifiedbalancetransfer_type_name(this.__wbg_ptr);
21960
23343
  deferred1_0 = ret[0];
21961
23344
  deferred1_1 = ret[1];
21962
23345
  return getStringFromWasm0(ret[0], ret[1]);
@@ -21965,83 +23348,132 @@ export class VerifiedAddressInfos {
21965
23348
  }
21966
23349
  }
21967
23350
  }
21968
- if (Symbol.dispose) VerifiedAddressInfos.prototype[Symbol.dispose] = VerifiedAddressInfos.prototype.free;
23351
+ if (Symbol.dispose) VerifiedBalanceTransfer.prototype[Symbol.dispose] = VerifiedBalanceTransfer.prototype.free;
21969
23352
 
21970
- export class VerifiedAssetLockConsumed {
21971
- static __wrap(ptr) {
21972
- ptr = ptr >>> 0;
21973
- const obj = Object.create(VerifiedAssetLockConsumed.prototype);
21974
- obj.__wbg_ptr = ptr;
21975
- VerifiedAssetLockConsumedFinalization.register(obj, obj.__wbg_ptr, obj);
21976
- return obj;
21977
- }
23353
+ /**
23354
+ * `VerifiedContractDocumentRemoval` proof-result wrapper: the record a moderator's document
23355
+ * deletion left under the contract. The document itself is gone; the record says whose it
23356
+ * was, who removed it, why and when.
23357
+ */
23358
+ export class VerifiedContractDocumentRemoval {
21978
23359
  __destroy_into_raw() {
21979
23360
  const ptr = this.__wbg_ptr;
21980
23361
  this.__wbg_ptr = 0;
21981
- VerifiedAssetLockConsumedFinalization.unregister(this);
23362
+ VerifiedContractDocumentRemovalFinalization.unregister(this);
21982
23363
  return ptr;
21983
23364
  }
21984
23365
  free() {
21985
23366
  const ptr = this.__destroy_into_raw();
21986
- wasm.__wbg_verifiedassetlockconsumed_free(ptr, 0);
23367
+ wasm.__wbg_verifiedcontractdocumentremoval_free(ptr, 0);
23368
+ }
23369
+ /**
23370
+ * @returns {Identifier}
23371
+ */
23372
+ get contractId() {
23373
+ const ret = wasm.__wbg_get_verifiedcontractdocumentremoval_contractId(this.__wbg_ptr);
23374
+ return Identifier.__wrap(ret);
23375
+ }
23376
+ /**
23377
+ * @returns {Identifier}
23378
+ */
23379
+ get documentId() {
23380
+ const ret = wasm.__wbg_get_verifiedcontractdocumentremoval_documentId(this.__wbg_ptr);
23381
+ return Identifier.__wrap(ret);
23382
+ }
23383
+ /**
23384
+ * The identity that owned the document when it was removed
23385
+ * @returns {Identifier}
23386
+ */
23387
+ get documentOwnerId() {
23388
+ const ret = wasm.__wbg_get_verifiedcontractdocumentremoval_documentOwnerId(this.__wbg_ptr);
23389
+ return Identifier.__wrap(ret);
23390
+ }
23391
+ /**
23392
+ * @returns {string}
23393
+ */
23394
+ get documentTypeName() {
23395
+ let deferred1_0;
23396
+ let deferred1_1;
23397
+ try {
23398
+ const ret = wasm.__wbg_get_verifiedcontractdocumentremoval_documentTypeName(this.__wbg_ptr);
23399
+ deferred1_0 = ret[0];
23400
+ deferred1_1 = ret[1];
23401
+ return getStringFromWasm0(ret[0], ret[1]);
23402
+ } finally {
23403
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
23404
+ }
23405
+ }
23406
+ /**
23407
+ * The contract owner or moderator that removed it
23408
+ * @returns {Identifier}
23409
+ */
23410
+ get moderatorId() {
23411
+ const ret = wasm.__wbg_get_verifiedcontractdocumentremoval_moderatorId(this.__wbg_ptr);
23412
+ return Identifier.__wrap(ret);
23413
+ }
23414
+ /**
23415
+ * The time of the block that removed it, in milliseconds
23416
+ * @returns {bigint}
23417
+ */
23418
+ get removedAt() {
23419
+ const ret = wasm.__wbg_get_verifiedcontractdocumentremoval_removedAt(this.__wbg_ptr);
23420
+ return BigInt.asUintN(64, ret);
23421
+ }
23422
+ /**
23423
+ * @param {Identifier} arg0
23424
+ */
23425
+ set contractId(arg0) {
23426
+ _assertClass(arg0, Identifier);
23427
+ var ptr0 = arg0.__destroy_into_raw();
23428
+ wasm.__wbg_set_verifiedcontractdocumentremoval_contractId(this.__wbg_ptr, ptr0);
21987
23429
  }
21988
23430
  /**
21989
- * @returns {string}
23431
+ * @param {Identifier} arg0
21990
23432
  */
21991
- get status() {
21992
- let deferred1_0;
21993
- let deferred1_1;
21994
- try {
21995
- const ret = wasm.__wbg_get_verifiedassetlockconsumed_status(this.__wbg_ptr);
21996
- deferred1_0 = ret[0];
21997
- deferred1_1 = ret[1];
21998
- return getStringFromWasm0(ret[0], ret[1]);
21999
- } finally {
22000
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22001
- }
23433
+ set documentId(arg0) {
23434
+ _assertClass(arg0, Identifier);
23435
+ var ptr0 = arg0.__destroy_into_raw();
23436
+ wasm.__wbg_set_verifiedcontractdocumentremoval_documentId(this.__wbg_ptr, ptr0);
22002
23437
  }
22003
23438
  /**
22004
- * @param {string} arg0
23439
+ * The identity that owned the document when it was removed
23440
+ * @param {Identifier} arg0
22005
23441
  */
22006
- set status(arg0) {
22007
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
22008
- const len0 = WASM_VECTOR_LEN;
22009
- wasm.__wbg_set_verifiedassetlockconsumed_status(this.__wbg_ptr, ptr0, len0);
23442
+ set documentOwnerId(arg0) {
23443
+ _assertClass(arg0, Identifier);
23444
+ var ptr0 = arg0.__destroy_into_raw();
23445
+ wasm.__wbg_set_verifiedcontractdocumentremoval_documentOwnerId(this.__wbg_ptr, ptr0);
22010
23446
  }
22011
23447
  /**
22012
- * @param {any} js
22013
- * @returns {VerifiedAssetLockConsumed}
23448
+ * @param {string} arg0
22014
23449
  */
22015
- static fromJSON(js) {
22016
- const ret = wasm.verifiedassetlockconsumed_fromJSON(js);
22017
- if (ret[2]) {
22018
- throw takeFromExternrefTable0(ret[1]);
22019
- }
22020
- return VerifiedAssetLockConsumed.__wrap(ret[0]);
23450
+ set documentTypeName(arg0) {
23451
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
23452
+ const len0 = WASM_VECTOR_LEN;
23453
+ wasm.__wbg_set_verifiedcontractdocumentremoval_documentTypeName(this.__wbg_ptr, ptr0, len0);
22021
23454
  }
22022
23455
  /**
22023
- * @param {any} obj
22024
- * @returns {VerifiedAssetLockConsumed}
23456
+ * The contract owner or moderator that removed it
23457
+ * @param {Identifier} arg0
22025
23458
  */
22026
- static fromObject(obj) {
22027
- const ret = wasm.verifiedassetlockconsumed_fromObject(obj);
22028
- if (ret[2]) {
22029
- throw takeFromExternrefTable0(ret[1]);
22030
- }
22031
- return VerifiedAssetLockConsumed.__wrap(ret[0]);
23459
+ set moderatorId(arg0) {
23460
+ _assertClass(arg0, Identifier);
23461
+ var ptr0 = arg0.__destroy_into_raw();
23462
+ wasm.__wbg_set_verifiedcontractdocumentremoval_moderatorId(this.__wbg_ptr, ptr0);
22032
23463
  }
22033
23464
  /**
22034
- * @returns {any}
23465
+ * The time of the block that removed it, in milliseconds
23466
+ * @param {bigint} arg0
22035
23467
  */
22036
- get initialCreditValue() {
22037
- const ret = wasm.verifiedassetlockconsumed_initialCreditValue(this.__wbg_ptr);
22038
- return ret;
23468
+ set removedAt(arg0) {
23469
+ wasm.__wbg_set_verifiedcontractdocumentremoval_removedAt(this.__wbg_ptr, arg0);
22039
23470
  }
22040
23471
  /**
22041
- * @returns {any}
23472
+ * Why the moderator removed the document: the text may be empty
23473
+ * @returns {ContractModerationReason}
22042
23474
  */
22043
- get remainingCreditValue() {
22044
- const ret = wasm.verifiedassetlockconsumed_remainingCreditValue(this.__wbg_ptr);
23475
+ get reason() {
23476
+ const ret = wasm.verifiedcontractdocumentremoval_reason(this.__wbg_ptr);
22045
23477
  return ret;
22046
23478
  }
22047
23479
  /**
@@ -22051,7 +23483,7 @@ export class VerifiedAssetLockConsumed {
22051
23483
  let deferred1_0;
22052
23484
  let deferred1_1;
22053
23485
  try {
22054
- const ret = wasm.verifiedassetlockconsumed_struct_name();
23486
+ const ret = wasm.verifiedcontractdocumentremoval_struct_name();
22055
23487
  deferred1_0 = ret[0];
22056
23488
  deferred1_1 = ret[1];
22057
23489
  return getStringFromWasm0(ret[0], ret[1]);
@@ -22063,7 +23495,7 @@ export class VerifiedAssetLockConsumed {
22063
23495
  * @returns {any}
22064
23496
  */
22065
23497
  toJSON() {
22066
- const ret = wasm.verifiedassetlockconsumed_toJSON(this.__wbg_ptr);
23498
+ const ret = wasm.verifiedcontractdocumentremoval_toJSON(this.__wbg_ptr);
22067
23499
  if (ret[2]) {
22068
23500
  throw takeFromExternrefTable0(ret[1]);
22069
23501
  }
@@ -22073,7 +23505,7 @@ export class VerifiedAssetLockConsumed {
22073
23505
  * @returns {any}
22074
23506
  */
22075
23507
  toObject() {
22076
- const ret = wasm.verifiedassetlockconsumed_toObject(this.__wbg_ptr);
23508
+ const ret = wasm.verifiedcontractdocumentremoval_toObject(this.__wbg_ptr);
22077
23509
  if (ret[2]) {
22078
23510
  throw takeFromExternrefTable0(ret[1]);
22079
23511
  }
@@ -22086,7 +23518,7 @@ export class VerifiedAssetLockConsumed {
22086
23518
  let deferred1_0;
22087
23519
  let deferred1_1;
22088
23520
  try {
22089
- const ret = wasm.verifiedassetlockconsumed_type_name(this.__wbg_ptr);
23521
+ const ret = wasm.verifiedcontractdocumentremoval_type_name(this.__wbg_ptr);
22090
23522
  deferred1_0 = ret[0];
22091
23523
  deferred1_1 = ret[1];
22092
23524
  return getStringFromWasm0(ret[0], ret[1]);
@@ -22095,77 +23527,59 @@ export class VerifiedAssetLockConsumed {
22095
23527
  }
22096
23528
  }
22097
23529
  }
22098
- if (Symbol.dispose) VerifiedAssetLockConsumed.prototype[Symbol.dispose] = VerifiedAssetLockConsumed.prototype.free;
23530
+ if (Symbol.dispose) VerifiedContractDocumentRemoval.prototype[Symbol.dispose] = VerifiedContractDocumentRemoval.prototype.free;
22099
23531
 
22100
- export class VerifiedAssetLockConsumedWithAddressInfos {
22101
- static __wrap(ptr) {
22102
- ptr = ptr >>> 0;
22103
- const obj = Object.create(VerifiedAssetLockConsumedWithAddressInfos.prototype);
22104
- obj.__wbg_ptr = ptr;
22105
- VerifiedAssetLockConsumedWithAddressInfosFinalization.register(obj, obj.__wbg_ptr, obj);
22106
- return obj;
22107
- }
23532
+ /**
23533
+ * `VerifiedContractFeeClaim` proof-result wrapper: the pot a contract fee claim paid out (the
23534
+ * contract, the pot, its last claim, the credits left in it) and the balance of every identity
23535
+ * the claim paid, after the claim. A pot is paid out at most once per epoch, so while
23536
+ * `lastClaimEpoch` is the epoch of the claim the proof is of that claim, and `lastClaimantId`
23537
+ * and `lastClaimTimeMs` are its own.
23538
+ */
23539
+ export class VerifiedContractFeeClaim {
22108
23540
  __destroy_into_raw() {
22109
23541
  const ptr = this.__wbg_ptr;
22110
23542
  this.__wbg_ptr = 0;
22111
- VerifiedAssetLockConsumedWithAddressInfosFinalization.unregister(this);
23543
+ VerifiedContractFeeClaimFinalization.unregister(this);
22112
23544
  return ptr;
22113
23545
  }
22114
23546
  free() {
22115
23547
  const ptr = this.__destroy_into_raw();
22116
- wasm.__wbg_verifiedassetlockconsumedwithaddressinfos_free(ptr, 0);
22117
- }
22118
- /**
22119
- * @returns {Map<any, any>}
22120
- */
22121
- get addressInfos() {
22122
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_address_infos(this.__wbg_ptr);
22123
- return ret;
22124
- }
22125
- /**
22126
- * @param {any} value
22127
- * @returns {VerifiedAssetLockConsumedWithAddressInfos}
22128
- */
22129
- static fromJSON(value) {
22130
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_fromJSON(value);
22131
- if (ret[2]) {
22132
- throw takeFromExternrefTable0(ret[1]);
22133
- }
22134
- return VerifiedAssetLockConsumedWithAddressInfos.__wrap(ret[0]);
23548
+ wasm.__wbg_verifiedcontractfeeclaim_free(ptr, 0);
22135
23549
  }
22136
23550
  /**
22137
- * @param {any} value
22138
- * @returns {VerifiedAssetLockConsumedWithAddressInfos}
23551
+ * @returns {Identifier}
22139
23552
  */
22140
- static fromObject(value) {
22141
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_fromObject(value);
22142
- if (ret[2]) {
22143
- throw takeFromExternrefTable0(ret[1]);
22144
- }
22145
- return VerifiedAssetLockConsumedWithAddressInfos.__wrap(ret[0]);
23553
+ get contractId() {
23554
+ const ret = wasm.__wbg_get_verifiedcontractfeeclaim_contractId(this.__wbg_ptr);
23555
+ return Identifier.__wrap(ret);
22146
23556
  }
22147
23557
  /**
22148
- * @returns {any}
23558
+ * The epoch the pot was last claimed in: this claim's own, unless the pot was claimed
23559
+ * again since
23560
+ * @returns {number}
22149
23561
  */
22150
- get initialCreditValue() {
22151
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_initialCreditValue(this.__wbg_ptr);
23562
+ get lastClaimEpoch() {
23563
+ const ret = wasm.__wbg_get_verifiedcontractfeeclaim_lastClaimEpoch(this.__wbg_ptr);
22152
23564
  return ret;
22153
23565
  }
22154
23566
  /**
22155
- * @returns {any}
23567
+ * The identity that signed the last claim of the pot
23568
+ * @returns {Identifier}
22156
23569
  */
22157
- get remainingCreditValue() {
22158
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_remainingCreditValue(this.__wbg_ptr);
22159
- return ret;
23570
+ get lastClaimantId() {
23571
+ const ret = wasm.__wbg_get_verifiedcontractfeeclaim_lastClaimantId(this.__wbg_ptr);
23572
+ return Identifier.__wrap(ret);
22160
23573
  }
22161
23574
  /**
23575
+ * The pot that was paid out: `owner` or `moderators`
22162
23576
  * @returns {string}
22163
23577
  */
22164
- get status() {
23578
+ get pot() {
22165
23579
  let deferred1_0;
22166
23580
  let deferred1_1;
22167
23581
  try {
22168
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_status(this.__wbg_ptr);
23582
+ const ret = wasm.__wbg_get_verifiedcontractfeeclaim_pot(this.__wbg_ptr);
22169
23583
  deferred1_0 = ret[0];
22170
23584
  deferred1_1 = ret[1];
22171
23585
  return getStringFromWasm0(ret[0], ret[1]);
@@ -22173,6 +23587,64 @@ export class VerifiedAssetLockConsumedWithAddressInfos {
22173
23587
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22174
23588
  }
22175
23589
  }
23590
+ /**
23591
+ * @param {Identifier} arg0
23592
+ */
23593
+ set contractId(arg0) {
23594
+ _assertClass(arg0, Identifier);
23595
+ var ptr0 = arg0.__destroy_into_raw();
23596
+ wasm.__wbg_set_verifiedcontractfeeclaim_contractId(this.__wbg_ptr, ptr0);
23597
+ }
23598
+ /**
23599
+ * The epoch the pot was last claimed in: this claim's own, unless the pot was claimed
23600
+ * again since
23601
+ * @param {number} arg0
23602
+ */
23603
+ set lastClaimEpoch(arg0) {
23604
+ wasm.__wbg_set_verifiedcontractfeeclaim_lastClaimEpoch(this.__wbg_ptr, arg0);
23605
+ }
23606
+ /**
23607
+ * The identity that signed the last claim of the pot
23608
+ * @param {Identifier} arg0
23609
+ */
23610
+ set lastClaimantId(arg0) {
23611
+ _assertClass(arg0, Identifier);
23612
+ var ptr0 = arg0.__destroy_into_raw();
23613
+ wasm.__wbg_set_verifiedcontractfeeclaim_lastClaimantId(this.__wbg_ptr, ptr0);
23614
+ }
23615
+ /**
23616
+ * The pot that was paid out: `owner` or `moderators`
23617
+ * @param {string} arg0
23618
+ */
23619
+ set pot(arg0) {
23620
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
23621
+ const len0 = WASM_VECTOR_LEN;
23622
+ wasm.__wbg_set_verifiedcontractfeeclaim_pot(this.__wbg_ptr, ptr0, len0);
23623
+ }
23624
+ /**
23625
+ * The balance of every identity the claim paid, after the claim
23626
+ * @returns {Map<any, any>}
23627
+ */
23628
+ get balances() {
23629
+ const ret = wasm.verifiedcontractfeeclaim_balances(this.__wbg_ptr);
23630
+ return ret;
23631
+ }
23632
+ /**
23633
+ * The time, in milliseconds, of the block the pot was last paid out in
23634
+ * @returns {any}
23635
+ */
23636
+ get lastClaimTimeMs() {
23637
+ const ret = wasm.verifiedcontractfeeclaim_last_claim_time_ms(this.__wbg_ptr);
23638
+ return ret;
23639
+ }
23640
+ /**
23641
+ * The credits left in the pot after the claim
23642
+ * @returns {any}
23643
+ */
23644
+ get remainingCredits() {
23645
+ const ret = wasm.verifiedcontractfeeclaim_remaining_credits(this.__wbg_ptr);
23646
+ return ret;
23647
+ }
22176
23648
  /**
22177
23649
  * @returns {string}
22178
23650
  */
@@ -22180,7 +23652,7 @@ export class VerifiedAssetLockConsumedWithAddressInfos {
22180
23652
  let deferred1_0;
22181
23653
  let deferred1_1;
22182
23654
  try {
22183
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_struct_name();
23655
+ const ret = wasm.verifiedcontractfeeclaim_struct_name();
22184
23656
  deferred1_0 = ret[0];
22185
23657
  deferred1_1 = ret[1];
22186
23658
  return getStringFromWasm0(ret[0], ret[1]);
@@ -22189,12 +23661,13 @@ export class VerifiedAssetLockConsumedWithAddressInfos {
22189
23661
  }
22190
23662
  }
22191
23663
  /**
22192
- * Returns a `JSON.stringify`-friendly form: the `Map` is normalised to a
22193
- * plain object so its entries survive serialisation.
23664
+ * Returns a `JSON.stringify`-friendly form: the `balances` `Map` is normalised to a plain
23665
+ * object so its entries survive serialisation (otherwise `JSON.stringify({balances: <Map>})`
23666
+ * produces `{"balances":{}}`).
22194
23667
  * @returns {any}
22195
23668
  */
22196
23669
  toJSON() {
22197
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_toJSON(this.__wbg_ptr);
23670
+ const ret = wasm.verifiedcontractfeeclaim_toJSON(this.__wbg_ptr);
22198
23671
  if (ret[2]) {
22199
23672
  throw takeFromExternrefTable0(ret[1]);
22200
23673
  }
@@ -22204,8 +23677,11 @@ export class VerifiedAssetLockConsumedWithAddressInfos {
22204
23677
  * @returns {any}
22205
23678
  */
22206
23679
  toObject() {
22207
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_toObject(this.__wbg_ptr);
22208
- return ret;
23680
+ const ret = wasm.verifiedcontractfeeclaim_toObject(this.__wbg_ptr);
23681
+ if (ret[2]) {
23682
+ throw takeFromExternrefTable0(ret[1]);
23683
+ }
23684
+ return takeFromExternrefTable0(ret[0]);
22209
23685
  }
22210
23686
  /**
22211
23687
  * @returns {string}
@@ -22214,7 +23690,7 @@ export class VerifiedAssetLockConsumedWithAddressInfos {
22214
23690
  let deferred1_0;
22215
23691
  let deferred1_1;
22216
23692
  try {
22217
- const ret = wasm.verifiedassetlockconsumedwithaddressinfos_type_name(this.__wbg_ptr);
23693
+ const ret = wasm.verifiedcontractfeeclaim_type_name(this.__wbg_ptr);
22218
23694
  deferred1_0 = ret[0];
22219
23695
  deferred1_1 = ret[1];
22220
23696
  return getStringFromWasm0(ret[0], ret[1]);
@@ -22223,77 +23699,113 @@ export class VerifiedAssetLockConsumedWithAddressInfos {
22223
23699
  }
22224
23700
  }
22225
23701
  }
22226
- if (Symbol.dispose) VerifiedAssetLockConsumedWithAddressInfos.prototype[Symbol.dispose] = VerifiedAssetLockConsumedWithAddressInfos.prototype.free;
23702
+ if (Symbol.dispose) VerifiedContractFeeClaim.prototype[Symbol.dispose] = VerifiedContractFeeClaim.prototype.free;
22227
23703
 
22228
- export class VerifiedBalanceTransfer {
22229
- static __wrap(ptr) {
22230
- ptr = ptr >>> 0;
22231
- const obj = Object.create(VerifiedBalanceTransfer.prototype);
22232
- obj.__wbg_ptr = ptr;
22233
- VerifiedBalanceTransferFinalization.register(obj, obj.__wbg_ptr, obj);
22234
- return obj;
22235
- }
23704
+ /**
23705
+ * `VerifiedContractModerationListStatuses` proof-result wrapper: the target identity's status
23706
+ * on the lists a moderation transition touched (both for a ban, the edited one otherwise).
23707
+ * A list the proof does not cover is unknown: `banned` is undefined unless `lists` includes
23708
+ * `banlist`.
23709
+ */
23710
+ export class VerifiedContractModerationListStatuses {
22236
23711
  __destroy_into_raw() {
22237
23712
  const ptr = this.__wbg_ptr;
22238
23713
  this.__wbg_ptr = 0;
22239
- VerifiedBalanceTransferFinalization.unregister(this);
23714
+ VerifiedContractModerationListStatusesFinalization.unregister(this);
22240
23715
  return ptr;
22241
23716
  }
22242
23717
  free() {
22243
23718
  const ptr = this.__destroy_into_raw();
22244
- wasm.__wbg_verifiedbalancetransfer_free(ptr, 0);
23719
+ wasm.__wbg_verifiedcontractmoderationliststatuses_free(ptr, 0);
22245
23720
  }
22246
23721
  /**
22247
- * @returns {PartialIdentity}
23722
+ * When `lists` includes `banlist`: the identity is on the banlist
23723
+ * @returns {boolean | undefined}
22248
23724
  */
22249
- get recipient() {
22250
- const ret = wasm.__wbg_get_verifiedbalancetransfer_recipient(this.__wbg_ptr);
22251
- return PartialIdentity.__wrap(ret);
23725
+ get banned() {
23726
+ const ret = wasm.__wbg_get_verifiedcontractmoderationliststatuses_banned(this.__wbg_ptr);
23727
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
22252
23728
  }
22253
23729
  /**
22254
- * @returns {PartialIdentity}
23730
+ * @returns {Identifier}
22255
23731
  */
22256
- get sender() {
22257
- const ret = wasm.__wbg_get_verifiedbalancetransfer_sender(this.__wbg_ptr);
22258
- return PartialIdentity.__wrap(ret);
23732
+ get contractId() {
23733
+ const ret = wasm.__wbg_get_verifiedcontractmoderationliststatuses_contractId(this.__wbg_ptr);
23734
+ return Identifier.__wrap(ret);
22259
23735
  }
22260
23736
  /**
22261
- * @param {PartialIdentity} arg0
23737
+ * @returns {Identifier}
22262
23738
  */
22263
- set recipient(arg0) {
22264
- _assertClass(arg0, PartialIdentity);
23739
+ get identityId() {
23740
+ const ret = wasm.__wbg_get_verifiedcontractmoderationliststatuses_identityId(this.__wbg_ptr);
23741
+ return Identifier.__wrap(ret);
23742
+ }
23743
+ /**
23744
+ * The lists the proof covers: `banlist`, `suspensions`, or both
23745
+ * @returns {string[]}
23746
+ */
23747
+ get lists() {
23748
+ const ret = wasm.__wbg_get_verifiedcontractmoderationliststatuses_lists(this.__wbg_ptr);
23749
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
23750
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
23751
+ return v1;
23752
+ }
23753
+ /**
23754
+ * When `lists` includes `suspensions`: the block time, in milliseconds, until which the
23755
+ * identity is suspended
23756
+ * @returns {bigint | undefined}
23757
+ */
23758
+ get suspendedUntil() {
23759
+ const ret = wasm.__wbg_get_verifiedcontractmoderationliststatuses_suspendedUntil(this.__wbg_ptr);
23760
+ return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
23761
+ }
23762
+ /**
23763
+ * When `lists` includes `banlist`: the identity is on the banlist
23764
+ * @param {boolean | null} [arg0]
23765
+ */
23766
+ set banned(arg0) {
23767
+ wasm.__wbg_set_verifiedcontractmoderationliststatuses_banned(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
23768
+ }
23769
+ /**
23770
+ * @param {Identifier} arg0
23771
+ */
23772
+ set contractId(arg0) {
23773
+ _assertClass(arg0, Identifier);
22265
23774
  var ptr0 = arg0.__destroy_into_raw();
22266
- wasm.__wbg_set_verifiedbalancetransfer_recipient(this.__wbg_ptr, ptr0);
23775
+ wasm.__wbg_set_verifiedcontractdocumentremoval_documentId(this.__wbg_ptr, ptr0);
22267
23776
  }
22268
23777
  /**
22269
- * @param {PartialIdentity} arg0
23778
+ * @param {Identifier} arg0
22270
23779
  */
22271
- set sender(arg0) {
22272
- _assertClass(arg0, PartialIdentity);
23780
+ set identityId(arg0) {
23781
+ _assertClass(arg0, Identifier);
22273
23782
  var ptr0 = arg0.__destroy_into_raw();
22274
- wasm.__wbg_set_verifiedbalancetransfer_sender(this.__wbg_ptr, ptr0);
23783
+ wasm.__wbg_set_verifiedcontractdocumentremoval_documentOwnerId(this.__wbg_ptr, ptr0);
22275
23784
  }
22276
23785
  /**
22277
- * @param {any} js
22278
- * @returns {VerifiedBalanceTransfer}
23786
+ * The lists the proof covers: `banlist`, `suspensions`, or both
23787
+ * @param {string[]} arg0
22279
23788
  */
22280
- static fromJSON(js) {
22281
- const ret = wasm.verifiedbalancetransfer_fromJSON(js);
22282
- if (ret[2]) {
22283
- throw takeFromExternrefTable0(ret[1]);
22284
- }
22285
- return VerifiedBalanceTransfer.__wrap(ret[0]);
23789
+ set lists(arg0) {
23790
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
23791
+ const len0 = WASM_VECTOR_LEN;
23792
+ wasm.__wbg_set_verifiedcontractmoderationliststatuses_lists(this.__wbg_ptr, ptr0, len0);
22286
23793
  }
22287
23794
  /**
22288
- * @param {any} obj
22289
- * @returns {VerifiedBalanceTransfer}
23795
+ * When `lists` includes `suspensions`: the block time, in milliseconds, until which the
23796
+ * identity is suspended
23797
+ * @param {bigint | null} [arg0]
22290
23798
  */
22291
- static fromObject(obj) {
22292
- const ret = wasm.verifiedbalancetransfer_fromObject(obj);
22293
- if (ret[2]) {
22294
- throw takeFromExternrefTable0(ret[1]);
22295
- }
22296
- return VerifiedBalanceTransfer.__wrap(ret[0]);
23799
+ set suspendedUntil(arg0) {
23800
+ wasm.__wbg_set_verifiedcontractmoderationliststatuses_suspendedUntil(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
23801
+ }
23802
+ /**
23803
+ * When the identity is banned: why
23804
+ * @returns {ContractModerationReason | undefined}
23805
+ */
23806
+ get banReason() {
23807
+ const ret = wasm.verifiedcontractmoderationliststatuses_ban_reason(this.__wbg_ptr);
23808
+ return ret;
22297
23809
  }
22298
23810
  /**
22299
23811
  * @returns {string}
@@ -22302,7 +23814,7 @@ export class VerifiedBalanceTransfer {
22302
23814
  let deferred1_0;
22303
23815
  let deferred1_1;
22304
23816
  try {
22305
- const ret = wasm.verifiedbalancetransfer_struct_name();
23817
+ const ret = wasm.verifiedcontractmoderationliststatuses_struct_name();
22306
23818
  deferred1_0 = ret[0];
22307
23819
  deferred1_1 = ret[1];
22308
23820
  return getStringFromWasm0(ret[0], ret[1]);
@@ -22310,11 +23822,19 @@ export class VerifiedBalanceTransfer {
22310
23822
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
22311
23823
  }
22312
23824
  }
23825
+ /**
23826
+ * When the identity is suspended: why
23827
+ * @returns {ContractModerationReason | undefined}
23828
+ */
23829
+ get suspensionReason() {
23830
+ const ret = wasm.verifiedcontractmoderationliststatuses_suspension_reason(this.__wbg_ptr);
23831
+ return ret;
23832
+ }
22313
23833
  /**
22314
23834
  * @returns {any}
22315
23835
  */
22316
23836
  toJSON() {
22317
- const ret = wasm.verifiedbalancetransfer_toJSON(this.__wbg_ptr);
23837
+ const ret = wasm.verifiedcontractmoderationliststatuses_toJSON(this.__wbg_ptr);
22318
23838
  if (ret[2]) {
22319
23839
  throw takeFromExternrefTable0(ret[1]);
22320
23840
  }
@@ -22324,7 +23844,7 @@ export class VerifiedBalanceTransfer {
22324
23844
  * @returns {any}
22325
23845
  */
22326
23846
  toObject() {
22327
- const ret = wasm.verifiedbalancetransfer_toObject(this.__wbg_ptr);
23847
+ const ret = wasm.verifiedcontractmoderationliststatuses_toObject(this.__wbg_ptr);
22328
23848
  if (ret[2]) {
22329
23849
  throw takeFromExternrefTable0(ret[1]);
22330
23850
  }
@@ -22337,7 +23857,7 @@ export class VerifiedBalanceTransfer {
22337
23857
  let deferred1_0;
22338
23858
  let deferred1_1;
22339
23859
  try {
22340
- const ret = wasm.verifiedbalancetransfer_type_name(this.__wbg_ptr);
23860
+ const ret = wasm.verifiedcontractmoderationliststatuses_type_name(this.__wbg_ptr);
22341
23861
  deferred1_0 = ret[0];
22342
23862
  deferred1_1 = ret[1];
22343
23863
  return getStringFromWasm0(ret[0], ret[1]);
@@ -22346,7 +23866,7 @@ export class VerifiedBalanceTransfer {
22346
23866
  }
22347
23867
  }
22348
23868
  }
22349
- if (Symbol.dispose) VerifiedBalanceTransfer.prototype[Symbol.dispose] = VerifiedBalanceTransfer.prototype.free;
23869
+ if (Symbol.dispose) VerifiedContractModerationListStatuses.prototype[Symbol.dispose] = VerifiedContractModerationListStatuses.prototype.free;
22350
23870
 
22351
23871
  export class VerifiedDataContract {
22352
23872
  static __wrap(ptr) {
@@ -22699,7 +24219,7 @@ export class VerifiedIdentityFullWithAddressInfos {
22699
24219
  set identity(arg0) {
22700
24220
  _assertClass(arg0, Identity);
22701
24221
  var ptr0 = arg0.__destroy_into_raw();
22702
- wasm.__wbg_set_verifiedidentity_identity(this.__wbg_ptr, ptr0);
24222
+ wasm.__wbg_set_verifiedidentityfullwithaddressinfos_identity(this.__wbg_ptr, ptr0);
22703
24223
  }
22704
24224
  /**
22705
24225
  * @returns {Map<any, any>}
@@ -22816,7 +24336,7 @@ export class VerifiedIdentityWithAddressInfos {
22816
24336
  set partialIdentity(arg0) {
22817
24337
  _assertClass(arg0, PartialIdentity);
22818
24338
  var ptr0 = arg0.__destroy_into_raw();
22819
- wasm.__wbg_set_verifiedbalancetransfer_sender(this.__wbg_ptr, ptr0);
24339
+ wasm.__wbg_set_verifiedidentitywithaddressinfos_partialIdentity(this.__wbg_ptr, ptr0);
22820
24340
  }
22821
24341
  /**
22822
24342
  * @returns {Map<any, any>}
@@ -26230,6 +27750,12 @@ const ContestedDocumentVotePollWinnerInfoFinalization = (typeof FinalizationRegi
26230
27750
  const ContractBoundsFinalization = (typeof FinalizationRegistry === 'undefined')
26231
27751
  ? { register: () => {}, unregister: () => {} }
26232
27752
  : new FinalizationRegistry(ptr => wasm.__wbg_contractbounds_free(ptr >>> 0, 1));
27753
+ const ContractFeeClaimFinalization = (typeof FinalizationRegistry === 'undefined')
27754
+ ? { register: () => {}, unregister: () => {} }
27755
+ : new FinalizationRegistry(ptr => wasm.__wbg_contractfeeclaim_free(ptr >>> 0, 1));
27756
+ const ContractUserModerationFinalization = (typeof FinalizationRegistry === 'undefined')
27757
+ ? { register: () => {}, unregister: () => {} }
27758
+ : new FinalizationRegistry(ptr => wasm.__wbg_contractusermoderation_free(ptr >>> 0, 1));
26233
27759
  const CoreScriptFinalization = (typeof FinalizationRegistry === 'undefined')
26234
27760
  ? { register: () => {}, unregister: () => {} }
26235
27761
  : new FinalizationRegistry(ptr => wasm.__wbg_corescript_free(ptr >>> 0, 1));
@@ -26272,6 +27798,9 @@ const DistributionStepDecreasingAmountFinalization = (typeof FinalizationRegistr
26272
27798
  const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
26273
27799
  ? { register: () => {}, unregister: () => {} }
26274
27800
  : new FinalizationRegistry(ptr => wasm.__wbg_document_free(ptr >>> 0, 1));
27801
+ const DocumentActionFeeAgreementFinalization = (typeof FinalizationRegistry === 'undefined')
27802
+ ? { register: () => {}, unregister: () => {} }
27803
+ : new FinalizationRegistry(ptr => wasm.__wbg_documentactionfeeagreement_free(ptr >>> 0, 1));
26275
27804
  const DocumentBaseTransitionFinalization = (typeof FinalizationRegistry === 'undefined')
26276
27805
  ? { register: () => {}, unregister: () => {} }
26277
27806
  : new FinalizationRegistry(ptr => wasm.__wbg_documentbasetransition_free(ptr >>> 0, 1));
@@ -26509,6 +28038,9 @@ const TokenMarketplaceRulesFinalization = (typeof FinalizationRegistry === 'unde
26509
28038
  const TokenMintTransitionFinalization = (typeof FinalizationRegistry === 'undefined')
26510
28039
  ? { register: () => {}, unregister: () => {} }
26511
28040
  : new FinalizationRegistry(ptr => wasm.__wbg_tokenminttransition_free(ptr >>> 0, 1));
28041
+ const TokenOncePerIdentityDistributionFinalization = (typeof FinalizationRegistry === 'undefined')
28042
+ ? { register: () => {}, unregister: () => {} }
28043
+ : new FinalizationRegistry(ptr => wasm.__wbg_tokenonceperidentitydistribution_free(ptr >>> 0, 1));
26512
28044
  const TokenPaymentInfoFinalization = (typeof FinalizationRegistry === 'undefined')
26513
28045
  ? { register: () => {}, unregister: () => {} }
26514
28046
  : new FinalizationRegistry(ptr => wasm.__wbg_tokenpaymentinfo_free(ptr >>> 0, 1));
@@ -26554,6 +28086,15 @@ const VerifiedAssetLockConsumedWithAddressInfosFinalization = (typeof Finalizati
26554
28086
  const VerifiedBalanceTransferFinalization = (typeof FinalizationRegistry === 'undefined')
26555
28087
  ? { register: () => {}, unregister: () => {} }
26556
28088
  : new FinalizationRegistry(ptr => wasm.__wbg_verifiedbalancetransfer_free(ptr >>> 0, 1));
28089
+ const VerifiedContractDocumentRemovalFinalization = (typeof FinalizationRegistry === 'undefined')
28090
+ ? { register: () => {}, unregister: () => {} }
28091
+ : new FinalizationRegistry(ptr => wasm.__wbg_verifiedcontractdocumentremoval_free(ptr >>> 0, 1));
28092
+ const VerifiedContractFeeClaimFinalization = (typeof FinalizationRegistry === 'undefined')
28093
+ ? { register: () => {}, unregister: () => {} }
28094
+ : new FinalizationRegistry(ptr => wasm.__wbg_verifiedcontractfeeclaim_free(ptr >>> 0, 1));
28095
+ const VerifiedContractModerationListStatusesFinalization = (typeof FinalizationRegistry === 'undefined')
28096
+ ? { register: () => {}, unregister: () => {} }
28097
+ : new FinalizationRegistry(ptr => wasm.__wbg_verifiedcontractmoderationliststatuses_free(ptr >>> 0, 1));
26557
28098
  const VerifiedDataContractFinalization = (typeof FinalizationRegistry === 'undefined')
26558
28099
  ? { register: () => {}, unregister: () => {} }
26559
28100
  : new FinalizationRegistry(ptr => wasm.__wbg_verifieddatacontract_free(ptr >>> 0, 1));