@dashevo/wasm-dpp 0.24.0-dev.11 → 0.24.0-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/dpp.d.ts +9 -0
  3. package/dist/lib/errors/AbstractConsensusError.d.ts +10 -0
  4. package/dist/lib/errors/DPPError.d.ts +5 -0
  5. package/dist/lib/errors/patchConsensusErrors.d.ts +1 -0
  6. package/dist/lib/{patchIdentifier.d.ts → identifier/patchIdentifier.d.ts} +1 -1
  7. package/dist/{index.d.ts → lib/index.d.ts} +1 -1
  8. package/dist/lib/utils/extend.d.ts +1 -0
  9. package/dist/wasm/wasm_dpp.d.ts +352 -205
  10. package/lib/dpp.ts +24 -0
  11. package/lib/errors/AbstractConsensusError.ts +13 -0
  12. package/lib/errors/DPPError.ts +15 -0
  13. package/lib/errors/patchConsensusErrors.ts +175 -0
  14. package/lib/{patchIdentifier.ts → identifier/patchIdentifier.ts} +1 -1
  15. package/{index.ts → lib/index.ts} +4 -3
  16. package/lib/test/expect/expectError.js +4 -2
  17. package/lib/utils/extend.ts +6 -0
  18. package/package.json +5 -5
  19. package/src/data_contract/errors/invalid_data_contract.rs +21 -0
  20. package/src/data_contract/state_transition/data_contract_create_transition/mod.rs +4 -4
  21. package/src/data_contract/state_transition/data_contract_create_transition/validation.rs +2 -2
  22. package/src/data_contract/state_transition/data_contract_update_transition/apply.rs +44 -0
  23. package/src/data_contract/state_transition/data_contract_update_transition/mod.rs +147 -0
  24. package/src/data_contract/state_transition/data_contract_update_transition/validation.rs +46 -0
  25. package/src/data_contract/state_transition/mod.rs +2 -0
  26. package/src/data_contract_factory/data_contract_factory.rs +27 -12
  27. package/src/errors/consensus/basic/data_contract/data_contract_max_depth_exceed_error.rs +5 -5
  28. package/src/errors/consensus/basic/document/duplicate_document_transitions_with_ids_error.rs +4 -4
  29. package/src/errors/consensus/basic/document/duplicate_document_transitions_with_indices_error.rs +36 -0
  30. package/src/errors/consensus/basic/document/missing_document_transition_type_error.rs +20 -0
  31. package/src/errors/consensus/basic/document/mod.rs +4 -0
  32. package/src/errors/consensus/basic/identity/duplicated_identity_public_key_error.rs +2 -2
  33. package/src/errors/consensus/basic/identity/duplicated_identity_public_key_id_error.rs +2 -2
  34. package/src/errors/consensus/basic/identity/invalid_identity_public_key_security_level_error.rs +2 -2
  35. package/src/errors/consensus/basic/json_schema_error.rs +1 -1
  36. package/src/errors/consensus_error.rs +15 -8
  37. package/src/errors/from.rs +1 -1
  38. package/src/errors/mod.rs +1 -0
  39. package/src/errors/protocol_error.rs +12 -0
  40. package/src/{identifier.rs → identifier/mod.rs} +0 -0
  41. package/src/{identity_facade.rs → identity/identity_facade.rs} +1 -1
  42. package/src/{identity_public_key → identity/identity_public_key}/key_type.rs +0 -0
  43. package/src/{identity_public_key → identity/identity_public_key}/mod.rs +0 -3
  44. package/src/{identity_public_key → identity/identity_public_key}/purpose.rs +0 -0
  45. package/src/{identity_public_key → identity/identity_public_key}/security_level.rs +0 -0
  46. package/src/{identity.rs → identity/mod.rs} +6 -7
  47. package/src/identity/validation/mod.rs +3 -0
  48. package/src/identity/validation/public_keys_validator.rs +70 -0
  49. package/src/lib.rs +1 -6
  50. package/src/utils.rs +2 -2
  51. package/src/validation/mod.rs +3 -0
  52. package/src/{validation_result.rs → validation/validation_result.rs} +0 -0
  53. package/test/integration/identity/stateTransition/IdentityUpdateTransition/validation/state/validateIdentityUpdateTransitionStateFactory.spec.js +1 -1
  54. package/test/integration/identity/validation/validatePublicKeysFactory.spec.js +79 -114
  55. package/test/integration/stateTransition/AbstractStateTransitionIdentitySigned.spec.js +0 -11
  56. package/test/integration/stateTransition/StateTransitionFacade.spec.js +1 -1
  57. package/test/integration/stateTransition/calculateStateTransitionFeeFactory.spec.js +135 -0
  58. package/test/unit/dataContract/DataContract.spec.js +5 -9
  59. package/test/unit/dataContract/DataContractFactory.spec.js +13 -6
  60. package/test/unit/dataContract/errors/InvalidDataContractError.spec.js +11 -3
  61. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/validation/state/validateDataContractCreateTransitionStateFactory.spec.js +20 -16
  62. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/DataContractUpdateTransition.spec.js +23 -59
  63. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/applyDataContractUpdateTransitionFactory.spec.js +27 -23
  64. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/validation/basic/validateIndicesAreBackwardCompatible.spec.js +29 -12
  65. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/validation/state/validateDataContractUpdateTransitionStateFactory.spec.js +66 -49
  66. package/test/unit/dataContract/validation/validateDataContractPatterns.spec.js +73 -0
  67. package/test/unit/document/stateTransition/DocumetsBatchTransition/applyDocumentsBatchTransitionFactory.spec.js +1 -1
  68. package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/validateDocumentsBatchTransitionStateFactory.spec.js +1 -1
  69. package/test/unit/identity/IdentityPublicKey.spec.js +25 -31
  70. package/tsconfig.json +1 -1
  71. package/wasm/wasm_dpp.d.ts +352 -205
  72. package/wasm/wasm_dpp.js +759 -372
  73. package/wasm/wasm_dpp_bg.js +1 -1
  74. package/wasm/wasm_dpp_bg.wasm +0 -0
  75. package/wasm/wasm_dpp_bg.wasm.d.ts +205 -175
  76. package/webpack.config.js +1 -1
  77. package/src/identity_public_key/public_keys_validator.rs +0 -44
  78. package/test/integration/stateTransition/calculateStateTransitionFee.spec.js +0 -32
  79. package/test/unit/dataContract/validation/validateDataContractMaxDepthFactory.spec.js +0 -93
  80. package/test/unit/dataContract/validation/validateDataContractPatternsFactory.spec.js +0 -64
package/wasm/wasm_dpp.js CHANGED
@@ -1,12 +1,27 @@
1
1
 
2
2
  let wasm;
3
3
 
4
+ const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
5
+
6
+ cachedTextDecoder.decode();
7
+
8
+ let cachedUint8Memory0 = new Uint8Array();
9
+
10
+ function getUint8Memory0() {
11
+ if (cachedUint8Memory0.byteLength === 0) {
12
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
13
+ }
14
+ return cachedUint8Memory0;
15
+ }
16
+
17
+ function getStringFromWasm0(ptr, len) {
18
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
19
+ }
20
+
4
21
  const heap = new Array(32).fill(undefined);
5
22
 
6
23
  heap.push(undefined, null, true, false);
7
24
 
8
- function getObject(idx) { return heap[idx]; }
9
-
10
25
  let heap_next = heap.length;
11
26
 
12
27
  function addHeapObject(obj) {
@@ -18,6 +33,8 @@ function addHeapObject(obj) {
18
33
  return idx;
19
34
  }
20
35
 
36
+ function getObject(idx) { return heap[idx]; }
37
+
21
38
  function dropObject(idx) {
22
39
  if (idx < 36) return;
23
40
  heap[idx] = heap_next;
@@ -30,23 +47,6 @@ function takeObject(idx) {
30
47
  return ret;
31
48
  }
32
49
 
33
- const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
34
-
35
- cachedTextDecoder.decode();
36
-
37
- let cachedUint8Memory0 = new Uint8Array();
38
-
39
- function getUint8Memory0() {
40
- if (cachedUint8Memory0.byteLength === 0) {
41
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
42
- }
43
- return cachedUint8Memory0;
44
- }
45
-
46
- function getStringFromWasm0(ptr, len) {
47
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
48
- }
49
-
50
50
  let WASM_VECTOR_LEN = 0;
51
51
 
52
52
  const cachedTextEncoder = new TextEncoder('utf-8');
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_48(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb1f2f14d640579c3(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he7da8f1ac6678eec(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function passArray8ToWasm0(arg, malloc) {
@@ -237,6 +237,25 @@ function getArrayU8FromWasm0(ptr, len) {
237
237
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
238
238
  }
239
239
 
240
+ let cachedUint32Memory0 = new Uint32Array();
241
+
242
+ function getUint32Memory0() {
243
+ if (cachedUint32Memory0.byteLength === 0) {
244
+ cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
245
+ }
246
+ return cachedUint32Memory0;
247
+ }
248
+
249
+ function getArrayJsValueFromWasm0(ptr, len) {
250
+ const mem = getUint32Memory0();
251
+ const slice = mem.subarray(ptr / 4, ptr / 4 + len);
252
+ const result = [];
253
+ for (let i = 0; i < slice.length; i++) {
254
+ result.push(takeObject(slice[i]));
255
+ }
256
+ return result;
257
+ }
258
+
240
259
  function _assertClass(instance, klass) {
241
260
  if (!(instance instanceof klass)) {
242
261
  throw new Error(`expected instance of ${klass.name}`);
@@ -256,23 +275,38 @@ export function validateDataContractCreateTransitionState(state_repository, stat
256
275
  return takeObject(ret);
257
276
  }
258
277
 
259
- let cachedUint32Memory0 = new Uint32Array();
260
-
261
- function getUint32Memory0() {
262
- if (cachedUint32Memory0.byteLength === 0) {
263
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
264
- }
265
- return cachedUint32Memory0;
278
+ /**
279
+ * @param {any} state_repository
280
+ * @param {DataContractUpdateTransition} state_transition
281
+ * @returns {Promise<ValidationResult>}
282
+ */
283
+ export function validateDataContractUpdateTransitionState(state_repository, state_transition) {
284
+ _assertClass(state_transition, DataContractUpdateTransition);
285
+ var ptr0 = state_transition.ptr;
286
+ state_transition.ptr = 0;
287
+ const ret = wasm.validateDataContractUpdateTransitionState(addHeapObject(state_repository), ptr0);
288
+ return takeObject(ret);
266
289
  }
267
290
 
268
- function getArrayJsValueFromWasm0(ptr, len) {
269
- const mem = getUint32Memory0();
270
- const slice = mem.subarray(ptr / 4, ptr / 4 + len);
271
- const result = [];
272
- for (let i = 0; i < slice.length; i++) {
273
- result.push(takeObject(slice[i]));
291
+ /**
292
+ * @param {any} old_documents_schema
293
+ * @param {any} new_documents_schema
294
+ * @returns {ValidationResult}
295
+ */
296
+ export function validateIndicesAreBackwardCompatible(old_documents_schema, new_documents_schema) {
297
+ try {
298
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
299
+ wasm.validateIndicesAreBackwardCompatible(retptr, addHeapObject(old_documents_schema), addHeapObject(new_documents_schema));
300
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
301
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
302
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
303
+ if (r2) {
304
+ throw takeObject(r1);
305
+ }
306
+ return ValidationResult.__wrap(r0);
307
+ } finally {
308
+ wasm.__wbindgen_add_to_stack_pointer(16);
274
309
  }
275
- return result;
276
310
  }
277
311
 
278
312
  function passArrayJsValueToWasm0(array, malloc) {
@@ -285,10 +319,6 @@ function passArrayJsValueToWasm0(array, malloc) {
285
319
  return ptr;
286
320
  }
287
321
 
288
- function getArrayU32FromWasm0(ptr, len) {
289
- return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
290
- }
291
-
292
322
  function handleError(f, args) {
293
323
  try {
294
324
  return f.apply(this, args);
@@ -296,10 +326,16 @@ function handleError(f, args) {
296
326
  wasm.__wbindgen_exn_store(addHeapObject(e));
297
327
  }
298
328
  }
299
- function __wbg_adapter_747(arg0, arg1, arg2, arg3) {
300
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h9c4ada57796258da(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
329
+ function __wbg_adapter_777(arg0, arg1, arg2, arg3) {
330
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__hb55bc58977266d22(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
301
331
  }
302
332
 
333
+ /**
334
+ */
335
+ export const KeySecurityLevel = Object.freeze({ MASTER:0,"0":"MASTER",CRITICAL:1,"1":"CRITICAL",HIGH:2,"2":"HIGH",MEDIUM:3,"3":"MEDIUM", });
336
+ /**
337
+ */
338
+ export const KeyType = Object.freeze({ ECDSA_SECP256K1:0,"0":"ECDSA_SECP256K1",BLS12_381:1,"1":"BLS12_381",ECDSA_HASH160:2,"2":"ECDSA_HASH160",BIP13_SCRIPT_HASH:3,"3":"BIP13_SCRIPT_HASH", });
303
339
  /**
304
340
  */
305
341
  export const KeyPurpose = Object.freeze({
@@ -317,12 +353,6 @@ ENCRYPTION:1,"1":"ENCRYPTION",
317
353
  DECRYPTION:2,"2":"DECRYPTION",WITHDRAW:3,"3":"WITHDRAW", });
318
354
  /**
319
355
  */
320
- export const KeySecurityLevel = Object.freeze({ MASTER:0,"0":"MASTER",CRITICAL:1,"1":"CRITICAL",HIGH:2,"2":"HIGH",MEDIUM:3,"3":"MEDIUM", });
321
- /**
322
- */
323
- export const KeyType = Object.freeze({ ECDSA_SECP256K1:0,"0":"ECDSA_SECP256K1",BLS12_381:1,"1":"BLS12_381",ECDSA_HASH160:2,"2":"ECDSA_HASH160",BIP13_SCRIPT_HASH:3,"3":"BIP13_SCRIPT_HASH", });
324
- /**
325
- */
326
356
  export class ApplyDataContractCreateTransition {
327
357
 
328
358
  static __wrap(ptr) {
@@ -364,6 +394,47 @@ export class ApplyDataContractCreateTransition {
364
394
  }
365
395
  /**
366
396
  */
397
+ export class ApplyDataContractUpdateTransition {
398
+
399
+ static __wrap(ptr) {
400
+ const obj = Object.create(ApplyDataContractUpdateTransition.prototype);
401
+ obj.ptr = ptr;
402
+
403
+ return obj;
404
+ }
405
+
406
+ __destroy_into_raw() {
407
+ const ptr = this.ptr;
408
+ this.ptr = 0;
409
+
410
+ return ptr;
411
+ }
412
+
413
+ free() {
414
+ const ptr = this.__destroy_into_raw();
415
+ wasm.__wbg_applydatacontractupdatetransition_free(ptr);
416
+ }
417
+ /**
418
+ * @param {any} state_repository
419
+ */
420
+ constructor(state_repository) {
421
+ const ret = wasm.applydatacontractcreatetransition_new(addHeapObject(state_repository));
422
+ return ApplyDataContractUpdateTransition.__wrap(ret);
423
+ }
424
+ /**
425
+ * @param {DataContractUpdateTransition} transition
426
+ * @returns {Promise<void>}
427
+ */
428
+ applyDataContractUpdateTransition(transition) {
429
+ _assertClass(transition, DataContractUpdateTransition);
430
+ var ptr0 = transition.ptr;
431
+ transition.ptr = 0;
432
+ const ret = wasm.applydatacontractupdatetransition_applyDataContractUpdateTransition(this.ptr, ptr0);
433
+ return takeObject(ret);
434
+ }
435
+ }
436
+ /**
437
+ */
367
438
  export class AssetLockProof {
368
439
 
369
440
  static __wrap(ptr) {
@@ -1274,7 +1345,7 @@ export class DataContractImmutablePropertiesUpdateError {
1274
1345
  getOperation() {
1275
1346
  try {
1276
1347
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1277
- wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
1348
+ wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
1278
1349
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1279
1350
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1280
1351
  return getStringFromWasm0(r0, r1);
@@ -1289,7 +1360,7 @@ export class DataContractImmutablePropertiesUpdateError {
1289
1360
  getFieldPath() {
1290
1361
  try {
1291
1362
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1292
- wasm.datacontractimmutablepropertiesupdateerror_getFieldPath(retptr, this.ptr);
1363
+ wasm.datacontracthavenewuniqueindexerror_getIndexName(retptr, this.ptr);
1293
1364
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1294
1365
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1295
1366
  return getStringFromWasm0(r0, r1);
@@ -1302,7 +1373,7 @@ export class DataContractImmutablePropertiesUpdateError {
1302
1373
  * @returns {number}
1303
1374
  */
1304
1375
  getCode() {
1305
- const ret = wasm.datacontractimmutablepropertiesupdateerror_getCode(this.ptr);
1376
+ const ret = wasm.datacontracthavenewuniqueindexerror_getCode(this.ptr);
1306
1377
  return ret >>> 0;
1307
1378
  }
1308
1379
  }
@@ -1334,7 +1405,7 @@ export class DataContractInvalidIndexDefinitionUpdateError {
1334
1405
  getDocumentType() {
1335
1406
  try {
1336
1407
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1337
- wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
1408
+ wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
1338
1409
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1339
1410
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1340
1411
  return getStringFromWasm0(r0, r1);
@@ -1349,7 +1420,7 @@ export class DataContractInvalidIndexDefinitionUpdateError {
1349
1420
  getIndexName() {
1350
1421
  try {
1351
1422
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1352
- wasm.datacontractimmutablepropertiesupdateerror_getFieldPath(retptr, this.ptr);
1423
+ wasm.datacontracthavenewuniqueindexerror_getIndexName(retptr, this.ptr);
1353
1424
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1354
1425
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1355
1426
  return getStringFromWasm0(r0, r1);
@@ -1362,20 +1433,12 @@ export class DataContractInvalidIndexDefinitionUpdateError {
1362
1433
  * @returns {number}
1363
1434
  */
1364
1435
  getCode() {
1365
- const ret = wasm.datacontractimmutablepropertiesupdateerror_getCode(this.ptr);
1436
+ const ret = wasm.datacontracthavenewuniqueindexerror_getCode(this.ptr);
1366
1437
  return ret >>> 0;
1367
1438
  }
1368
1439
  }
1369
- /**
1370
- */
1371
- export class DataContractMaxDepthError {
1372
-
1373
- static __wrap(ptr) {
1374
- const obj = Object.create(DataContractMaxDepthError.prototype);
1375
- obj.ptr = ptr;
1376
1440
 
1377
- return obj;
1378
- }
1441
+ export class DataContractMaxDepthError {
1379
1442
 
1380
1443
  __destroy_into_raw() {
1381
1444
  const ptr = this.ptr;
@@ -1392,7 +1455,7 @@ export class DataContractMaxDepthError {
1392
1455
  * @returns {number}
1393
1456
  */
1394
1457
  getDepth() {
1395
- const ret = wasm.datacontractmaxdeptherror_getDepth(this.ptr);
1458
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
1396
1459
  return ret >>> 0;
1397
1460
  }
1398
1461
  /**
@@ -1405,6 +1468,29 @@ export class DataContractMaxDepthError {
1405
1468
  }
1406
1469
  /**
1407
1470
  */
1471
+ export class DataContractMaxDepthExceedError {
1472
+
1473
+ static __wrap(ptr) {
1474
+ const obj = Object.create(DataContractMaxDepthExceedError.prototype);
1475
+ obj.ptr = ptr;
1476
+
1477
+ return obj;
1478
+ }
1479
+
1480
+ __destroy_into_raw() {
1481
+ const ptr = this.ptr;
1482
+ this.ptr = 0;
1483
+
1484
+ return ptr;
1485
+ }
1486
+
1487
+ free() {
1488
+ const ptr = this.__destroy_into_raw();
1489
+ wasm.__wbg_datacontractmaxdepthexceederror_free(ptr);
1490
+ }
1491
+ }
1492
+ /**
1493
+ */
1408
1494
  export class DataContractNotPresentError {
1409
1495
 
1410
1496
  static __wrap(ptr) {
@@ -1429,14 +1515,14 @@ export class DataContractNotPresentError {
1429
1515
  * @returns {any}
1430
1516
  */
1431
1517
  getDataContractId() {
1432
- const ret = wasm.datacontractnotpresenterror_getDataContractId(this.ptr);
1518
+ const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
1433
1519
  return takeObject(ret);
1434
1520
  }
1435
1521
  /**
1436
1522
  * @returns {number}
1437
1523
  */
1438
1524
  getCode() {
1439
- const ret = wasm.datacontractnotpresenterror_getCode(this.ptr);
1525
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
1440
1526
  return ret >>> 0;
1441
1527
  }
1442
1528
  }
@@ -1502,10 +1588,10 @@ export class DataContractUniqueIndicesChangedError {
1502
1588
  }
1503
1589
  /**
1504
1590
  */
1505
- export class DataContractValidator {
1591
+ export class DataContractUpdateTransition {
1506
1592
 
1507
1593
  static __wrap(ptr) {
1508
- const obj = Object.create(DataContractValidator.prototype);
1594
+ const obj = Object.create(DataContractUpdateTransition.prototype);
1509
1595
  obj.ptr = ptr;
1510
1596
 
1511
1597
  return obj;
@@ -1520,78 +1606,274 @@ export class DataContractValidator {
1520
1606
 
1521
1607
  free() {
1522
1608
  const ptr = this.__destroy_into_raw();
1523
- wasm.__wbg_datacontractvalidator_free(ptr);
1609
+ wasm.__wbg_datacontractupdatetransition_free(ptr);
1524
1610
  }
1525
1611
  /**
1612
+ * @param {any} raw_parameters
1526
1613
  */
1527
- constructor() {
1528
- const ret = wasm.datacontractvalidator_new();
1529
- return DataContractValidator.__wrap(ret);
1530
- }
1531
- }
1532
- /**
1533
- */
1534
- export class DataTriggerConditionError {
1535
-
1536
- static __wrap(ptr) {
1537
- const obj = Object.create(DataTriggerConditionError.prototype);
1538
- obj.ptr = ptr;
1539
-
1540
- return obj;
1614
+ constructor(raw_parameters) {
1615
+ try {
1616
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1617
+ wasm.datacontractupdatetransition_new(retptr, addHeapObject(raw_parameters));
1618
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1619
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1620
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1621
+ if (r2) {
1622
+ throw takeObject(r1);
1623
+ }
1624
+ return DataContractUpdateTransition.__wrap(r0);
1625
+ } finally {
1626
+ wasm.__wbindgen_add_to_stack_pointer(16);
1627
+ }
1541
1628
  }
1542
-
1543
- __destroy_into_raw() {
1544
- const ptr = this.ptr;
1545
- this.ptr = 0;
1546
-
1547
- return ptr;
1629
+ /**
1630
+ * @returns {DataContract}
1631
+ */
1632
+ getDataContract() {
1633
+ const ret = wasm.datacontractupdatetransition_getDataContract(this.ptr);
1634
+ return DataContract.__wrap(ret);
1548
1635
  }
1549
-
1550
- free() {
1551
- const ptr = this.__destroy_into_raw();
1552
- wasm.__wbg_datatriggerconditionerror_free(ptr);
1636
+ /**
1637
+ * @returns {number}
1638
+ */
1639
+ getProtocolVersion() {
1640
+ const ret = wasm.datacontractupdatetransition_getProtocolVersion(this.ptr);
1641
+ return ret >>> 0;
1553
1642
  }
1554
1643
  /**
1555
1644
  * @returns {any}
1556
1645
  */
1557
- getDataContractId() {
1558
- const ret = wasm.datatriggerconditionerror_getDataContractId(this.ptr);
1646
+ getEntropy() {
1647
+ const ret = wasm.datacontractupdatetransition_getEntropy(this.ptr);
1559
1648
  return takeObject(ret);
1560
1649
  }
1561
1650
  /**
1562
- * @returns {any}
1651
+ * @returns {Identifier}
1563
1652
  */
1564
- getDocumentTransitionId() {
1565
- const ret = wasm.datatriggerconditionerror_getDocumentTransitionId(this.ptr);
1566
- return takeObject(ret);
1653
+ getOwnerId() {
1654
+ const ret = wasm.datacontractupdatetransition_getOwnerId(this.ptr);
1655
+ return Identifier.__wrap(ret);
1567
1656
  }
1568
1657
  /**
1569
- * @returns {string}
1658
+ * @returns {number}
1570
1659
  */
1571
- getMessage() {
1660
+ getType() {
1661
+ const ret = wasm.datacontractupdatetransition_getType(this.ptr);
1662
+ return ret >>> 0;
1663
+ }
1664
+ /**
1665
+ * @param {boolean | undefined} skip_signature
1666
+ * @returns {any}
1667
+ */
1668
+ toJSON(skip_signature) {
1572
1669
  try {
1573
1670
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1574
- wasm.datatriggerconditionerror_getMessage(retptr, this.ptr);
1671
+ wasm.datacontractupdatetransition_toJSON(retptr, this.ptr, isLikeNone(skip_signature) ? 0xFFFFFF : skip_signature ? 1 : 0);
1575
1672
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1576
1673
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1577
- return getStringFromWasm0(r0, r1);
1674
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1675
+ if (r2) {
1676
+ throw takeObject(r1);
1677
+ }
1678
+ return takeObject(r0);
1578
1679
  } finally {
1579
1680
  wasm.__wbindgen_add_to_stack_pointer(16);
1580
- wasm.__wbindgen_free(r0, r1);
1581
1681
  }
1582
1682
  }
1583
1683
  /**
1684
+ * @param {boolean | undefined} skip_signature
1584
1685
  * @returns {any}
1585
1686
  */
1586
- getTimestamp() {
1587
- const ret = wasm.datatriggerconditionerror_getTimestamp(this.ptr);
1588
- return takeObject(ret);
1589
- }
1590
- /**
1591
- * @returns {any | undefined}
1592
- */
1593
- getOwnerId() {
1594
- const ret = wasm.datatriggerconditionerror_getOwnerId(this.ptr);
1687
+ toBuffer(skip_signature) {
1688
+ try {
1689
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1690
+ wasm.datacontractupdatetransition_toBuffer(retptr, this.ptr, isLikeNone(skip_signature) ? 0xFFFFFF : skip_signature ? 1 : 0);
1691
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1692
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1693
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1694
+ if (r2) {
1695
+ throw takeObject(r1);
1696
+ }
1697
+ return takeObject(r0);
1698
+ } finally {
1699
+ wasm.__wbindgen_add_to_stack_pointer(16);
1700
+ }
1701
+ }
1702
+ /**
1703
+ * @returns {any[]}
1704
+ */
1705
+ getModifiedDataIds() {
1706
+ try {
1707
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1708
+ wasm.datacontractupdatetransition_getModifiedDataIds(retptr, this.ptr);
1709
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1710
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1711
+ var v0 = getArrayJsValueFromWasm0(r0, r1).slice();
1712
+ wasm.__wbindgen_free(r0, r1 * 4);
1713
+ return v0;
1714
+ } finally {
1715
+ wasm.__wbindgen_add_to_stack_pointer(16);
1716
+ }
1717
+ }
1718
+ /**
1719
+ * @returns {boolean}
1720
+ */
1721
+ isDataContractStateTransition() {
1722
+ const ret = wasm.datacontractupdatetransition_isDataContractStateTransition(this.ptr);
1723
+ return ret !== 0;
1724
+ }
1725
+ /**
1726
+ * @returns {boolean}
1727
+ */
1728
+ isDocumentStateTransition() {
1729
+ const ret = wasm.datacontractupdatetransition_isDocumentStateTransition(this.ptr);
1730
+ return ret !== 0;
1731
+ }
1732
+ /**
1733
+ * @returns {boolean}
1734
+ */
1735
+ isIdentityStateTransition() {
1736
+ const ret = wasm.datacontractupdatetransition_isIdentityStateTransition(this.ptr);
1737
+ return ret !== 0;
1738
+ }
1739
+ /**
1740
+ * @param {StateTransitionExecutionContext} context
1741
+ */
1742
+ setExecutionContext(context) {
1743
+ _assertClass(context, StateTransitionExecutionContext);
1744
+ wasm.datacontractupdatetransition_setExecutionContext(this.ptr, context.ptr);
1745
+ }
1746
+ /**
1747
+ * @param {boolean | undefined} skip_signature
1748
+ * @returns {any}
1749
+ */
1750
+ hash(skip_signature) {
1751
+ try {
1752
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1753
+ wasm.datacontractupdatetransition_hash(retptr, this.ptr, isLikeNone(skip_signature) ? 0xFFFFFF : skip_signature ? 1 : 0);
1754
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1755
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1756
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1757
+ if (r2) {
1758
+ throw takeObject(r1);
1759
+ }
1760
+ return takeObject(r0);
1761
+ } finally {
1762
+ wasm.__wbindgen_add_to_stack_pointer(16);
1763
+ }
1764
+ }
1765
+ }
1766
+ /**
1767
+ */
1768
+ export class DataContractValidator {
1769
+
1770
+ static __wrap(ptr) {
1771
+ const obj = Object.create(DataContractValidator.prototype);
1772
+ obj.ptr = ptr;
1773
+
1774
+ return obj;
1775
+ }
1776
+
1777
+ __destroy_into_raw() {
1778
+ const ptr = this.ptr;
1779
+ this.ptr = 0;
1780
+
1781
+ return ptr;
1782
+ }
1783
+
1784
+ free() {
1785
+ const ptr = this.__destroy_into_raw();
1786
+ wasm.__wbg_datacontractvalidator_free(ptr);
1787
+ }
1788
+ /**
1789
+ */
1790
+ constructor() {
1791
+ const ret = wasm.datacontractvalidator_new();
1792
+ return DataContractValidator.__wrap(ret);
1793
+ }
1794
+ /**
1795
+ * @param {any} raw_data_contract
1796
+ * @returns {ValidationResult}
1797
+ */
1798
+ validate(raw_data_contract) {
1799
+ try {
1800
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1801
+ wasm.datacontractvalidator_validate(retptr, this.ptr, addHeapObject(raw_data_contract));
1802
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1803
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1804
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1805
+ if (r2) {
1806
+ throw takeObject(r1);
1807
+ }
1808
+ return ValidationResult.__wrap(r0);
1809
+ } finally {
1810
+ wasm.__wbindgen_add_to_stack_pointer(16);
1811
+ }
1812
+ }
1813
+ }
1814
+ /**
1815
+ */
1816
+ export class DataTriggerConditionError {
1817
+
1818
+ static __wrap(ptr) {
1819
+ const obj = Object.create(DataTriggerConditionError.prototype);
1820
+ obj.ptr = ptr;
1821
+
1822
+ return obj;
1823
+ }
1824
+
1825
+ __destroy_into_raw() {
1826
+ const ptr = this.ptr;
1827
+ this.ptr = 0;
1828
+
1829
+ return ptr;
1830
+ }
1831
+
1832
+ free() {
1833
+ const ptr = this.__destroy_into_raw();
1834
+ wasm.__wbg_datatriggerconditionerror_free(ptr);
1835
+ }
1836
+ /**
1837
+ * @returns {any}
1838
+ */
1839
+ getDataContractId() {
1840
+ const ret = wasm.datatriggerconditionerror_getDataContractId(this.ptr);
1841
+ return takeObject(ret);
1842
+ }
1843
+ /**
1844
+ * @returns {any}
1845
+ */
1846
+ getDocumentTransitionId() {
1847
+ const ret = wasm.datatriggerconditionerror_getDocumentTransitionId(this.ptr);
1848
+ return takeObject(ret);
1849
+ }
1850
+ /**
1851
+ * @returns {string}
1852
+ */
1853
+ getMessage() {
1854
+ try {
1855
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1856
+ wasm.datatriggerconditionerror_getMessage(retptr, this.ptr);
1857
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1858
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1859
+ return getStringFromWasm0(r0, r1);
1860
+ } finally {
1861
+ wasm.__wbindgen_add_to_stack_pointer(16);
1862
+ wasm.__wbindgen_free(r0, r1);
1863
+ }
1864
+ }
1865
+ /**
1866
+ * @returns {any}
1867
+ */
1868
+ getTimestamp() {
1869
+ const ret = wasm.datatriggerconditionerror_getTimestamp(this.ptr);
1870
+ return takeObject(ret);
1871
+ }
1872
+ /**
1873
+ * @returns {any | undefined}
1874
+ */
1875
+ getOwnerId() {
1876
+ const ret = wasm.datatriggerconditionerror_getOwnerId(this.ptr);
1595
1877
  return takeObject(ret);
1596
1878
  }
1597
1879
  /**
@@ -2200,14 +2482,14 @@ export class DocumentNotFoundError {
2200
2482
  * @returns {any}
2201
2483
  */
2202
2484
  getDocumentId() {
2203
- const ret = wasm.datacontractnotpresenterror_getDataContractId(this.ptr);
2485
+ const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
2204
2486
  return takeObject(ret);
2205
2487
  }
2206
2488
  /**
2207
2489
  * @returns {number}
2208
2490
  */
2209
2491
  getCode() {
2210
- const ret = wasm.datacontractnotpresenterror_getCode(this.ptr);
2492
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
2211
2493
  return ret >>> 0;
2212
2494
  }
2213
2495
  }
@@ -2391,14 +2673,14 @@ export class DocumentTimestampsMismatchError {
2391
2673
  * @returns {any}
2392
2674
  */
2393
2675
  getDocumentId() {
2394
- const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
2676
+ const ret = wasm.documenttimestampsmismatcherror_getDocumentId(this.ptr);
2395
2677
  return takeObject(ret);
2396
2678
  }
2397
2679
  /**
2398
2680
  * @returns {number}
2399
2681
  */
2400
2682
  getCode() {
2401
- const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
2683
+ const ret = wasm.documenttimestampsmismatcherror_getCode(this.ptr);
2402
2684
  return ret >>> 0;
2403
2685
  }
2404
2686
  }
@@ -2471,6 +2753,43 @@ export class DuplicateDocumentTransitionsWithIdsError {
2471
2753
  }
2472
2754
  /**
2473
2755
  */
2756
+ export class DuplicateDocumentTransitionsWithIndicesError {
2757
+
2758
+ static __wrap(ptr) {
2759
+ const obj = Object.create(DuplicateDocumentTransitionsWithIndicesError.prototype);
2760
+ obj.ptr = ptr;
2761
+
2762
+ return obj;
2763
+ }
2764
+
2765
+ __destroy_into_raw() {
2766
+ const ptr = this.ptr;
2767
+ this.ptr = 0;
2768
+
2769
+ return ptr;
2770
+ }
2771
+
2772
+ free() {
2773
+ const ptr = this.__destroy_into_raw();
2774
+ wasm.__wbg_duplicatedocumenttransitionswithindiceserror_free(ptr);
2775
+ }
2776
+ /**
2777
+ * @returns {Array<any>}
2778
+ */
2779
+ getReferences() {
2780
+ const ret = wasm.duplicatedocumenttransitionswithidserror_getReferences(this.ptr);
2781
+ return takeObject(ret);
2782
+ }
2783
+ /**
2784
+ * @returns {number}
2785
+ */
2786
+ getCode() {
2787
+ const ret = wasm.duplicatedocumenttransitionswithidserror_getCode(this.ptr);
2788
+ return ret >>> 0;
2789
+ }
2790
+ }
2791
+ /**
2792
+ */
2474
2793
  export class DuplicateIndexError {
2475
2794
 
2476
2795
  static __wrap(ptr) {
@@ -2549,7 +2868,7 @@ export class DuplicateIndexNameError {
2549
2868
  getDocumentType() {
2550
2869
  try {
2551
2870
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2552
- wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
2871
+ wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
2553
2872
  var r0 = getInt32Memory0()[retptr / 4 + 0];
2554
2873
  var r1 = getInt32Memory0()[retptr / 4 + 1];
2555
2874
  return getStringFromWasm0(r0, r1);
@@ -2564,7 +2883,7 @@ export class DuplicateIndexNameError {
2564
2883
  getDuplicateIndexName() {
2565
2884
  try {
2566
2885
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2567
- wasm.datacontractimmutablepropertiesupdateerror_getFieldPath(retptr, this.ptr);
2886
+ wasm.datacontracthavenewuniqueindexerror_getIndexName(retptr, this.ptr);
2568
2887
  var r0 = getInt32Memory0()[retptr / 4 + 0];
2569
2888
  var r1 = getInt32Memory0()[retptr / 4 + 1];
2570
2889
  return getStringFromWasm0(r0, r1);
@@ -2577,7 +2896,7 @@ export class DuplicateIndexNameError {
2577
2896
  * @returns {number}
2578
2897
  */
2579
2898
  getCode() {
2580
- const ret = wasm.datacontractimmutablepropertiesupdateerror_getCode(this.ptr);
2899
+ const ret = wasm.datacontracthavenewuniqueindexerror_getCode(this.ptr);
2581
2900
  return ret >>> 0;
2582
2901
  }
2583
2902
  }
@@ -2648,20 +2967,11 @@ export class DuplicatedIdentityPublicKeyError {
2648
2967
  wasm.__wbg_duplicatedidentitypublickeyerror_free(ptr);
2649
2968
  }
2650
2969
  /**
2651
- * @returns {Uint32Array}
2970
+ * @returns {Array<any>}
2652
2971
  */
2653
2972
  getDuplicatedPublicKeysIds() {
2654
- try {
2655
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2656
- wasm.duplicatedidentitypublickeyerror_getDuplicatedPublicKeysIds(retptr, this.ptr);
2657
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2658
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2659
- var v0 = getArrayU32FromWasm0(r0, r1).slice();
2660
- wasm.__wbindgen_free(r0, r1 * 4);
2661
- return v0;
2662
- } finally {
2663
- wasm.__wbindgen_add_to_stack_pointer(16);
2664
- }
2973
+ const ret = wasm.duplicatedidentitypublickeyerror_getDuplicatedPublicKeysIds(this.ptr);
2974
+ return takeObject(ret);
2665
2975
  }
2666
2976
  /**
2667
2977
  * @returns {number}
@@ -2694,20 +3004,11 @@ export class DuplicatedIdentityPublicKeyIdError {
2694
3004
  wasm.__wbg_duplicatedidentitypublickeyiderror_free(ptr);
2695
3005
  }
2696
3006
  /**
2697
- * @returns {Uint32Array}
3007
+ * @returns {Array<any>}
2698
3008
  */
2699
3009
  getDuplicatedIds() {
2700
- try {
2701
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2702
- wasm.duplicatedidentitypublickeyiderror_getDuplicatedIds(retptr, this.ptr);
2703
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2704
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2705
- var v0 = getArrayU32FromWasm0(r0, r1).slice();
2706
- wasm.__wbindgen_free(r0, r1 * 4);
2707
- return v0;
2708
- } finally {
2709
- wasm.__wbindgen_add_to_stack_pointer(16);
2710
- }
3010
+ const ret = wasm.duplicatedidentitypublickeyiderror_getDuplicatedIds(this.ptr);
3011
+ return takeObject(ret);
2711
3012
  }
2712
3013
  /**
2713
3014
  * @returns {number}
@@ -3469,14 +3770,14 @@ export class IdentityNotFoundError {
3469
3770
  * @returns {any}
3470
3771
  */
3471
3772
  getIdentityId() {
3472
- const ret = wasm.datacontractnotpresenterror_getDataContractId(this.ptr);
3773
+ const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
3473
3774
  return takeObject(ret);
3474
3775
  }
3475
3776
  /**
3476
3777
  * @returns {number}
3477
3778
  */
3478
3779
  getCode() {
3479
- const ret = wasm.datacontractnotpresenterror_getCode(this.ptr);
3780
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
3480
3781
  return ret >>> 0;
3481
3782
  }
3482
3783
  }
@@ -3782,7 +4083,7 @@ export class IdentityPublicKeyDisabledAtWindowViolationError {
3782
4083
  * @returns {number}
3783
4084
  */
3784
4085
  getCode() {
3785
- const ret = wasm.identitypublickeydisabledatwindowviolationerror_getCode(this.ptr);
4086
+ const ret = wasm.datacontract_getProtocolVersion(this.ptr);
3786
4087
  return ret >>> 0;
3787
4088
  }
3788
4089
  }
@@ -4117,7 +4418,7 @@ export class InconsistentCompoundIndexDataError {
4117
4418
  getDocumentType() {
4118
4419
  try {
4119
4420
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4120
- wasm.inconsistentcompoundindexdataerror_getDocumentType(retptr, this.ptr);
4421
+ wasm.incompatiblere2patternerror_getPath(retptr, this.ptr);
4121
4422
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4122
4423
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4123
4424
  return getStringFromWasm0(r0, r1);
@@ -4162,7 +4463,7 @@ export class IndexDefinition {
4162
4463
  getName() {
4163
4464
  try {
4164
4465
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4165
- wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
4466
+ wasm.indexdefinition_getName(retptr, this.ptr);
4166
4467
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4167
4468
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4168
4469
  return getStringFromWasm0(r0, r1);
@@ -4223,7 +4524,7 @@ export class IndexProperty {
4223
4524
  getName() {
4224
4525
  try {
4225
4526
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4226
- wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
4527
+ wasm.indexdefinition_getName(retptr, this.ptr);
4227
4528
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4228
4529
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4229
4530
  return getStringFromWasm0(r0, r1);
@@ -4497,9 +4798,8 @@ export class InvalidDataContractError {
4497
4798
  /**
4498
4799
  * @param {any[]} errors
4499
4800
  * @param {any} raw_data_contract
4500
- * @returns {InvalidDataContractError}
4501
4801
  */
4502
- static new(errors, raw_data_contract) {
4802
+ constructor(errors, raw_data_contract) {
4503
4803
  const ptr0 = passArrayJsValueToWasm0(errors, wasm.__wbindgen_malloc);
4504
4804
  const len0 = WASM_VECTOR_LEN;
4505
4805
  const ret = wasm.invaliddatacontracterror_new(ptr0, len0, addHeapObject(raw_data_contract));
@@ -4528,15 +4828,30 @@ export class InvalidDataContractError {
4528
4828
  const ret = wasm.invaliddatacontracterror_getRawDataContract(this.ptr);
4529
4829
  return takeObject(ret);
4530
4830
  }
4531
- }
4532
- /**
4533
- */
4534
- export class InvalidDataContractIdError {
4535
-
4536
- static __wrap(ptr) {
4537
- const obj = Object.create(InvalidDataContractIdError.prototype);
4538
- obj.ptr = ptr;
4539
-
4831
+ /**
4832
+ * @returns {string}
4833
+ */
4834
+ getMessage() {
4835
+ try {
4836
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4837
+ wasm.invaliddatacontracterror_getMessage(retptr, this.ptr);
4838
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
4839
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
4840
+ return getStringFromWasm0(r0, r1);
4841
+ } finally {
4842
+ wasm.__wbindgen_add_to_stack_pointer(16);
4843
+ wasm.__wbindgen_free(r0, r1);
4844
+ }
4845
+ }
4846
+ }
4847
+ /**
4848
+ */
4849
+ export class InvalidDataContractIdError {
4850
+
4851
+ static __wrap(ptr) {
4852
+ const obj = Object.create(InvalidDataContractIdError.prototype);
4853
+ obj.ptr = ptr;
4854
+
4540
4855
  return obj;
4541
4856
  }
4542
4857
 
@@ -4569,7 +4884,7 @@ export class InvalidDataContractIdError {
4569
4884
  * @returns {number}
4570
4885
  */
4571
4886
  getCode() {
4572
- const ret = wasm.inconsistentcompoundindexdataerror_getCode(this.ptr);
4887
+ const ret = wasm.invaliddatacontractiderror_getCode(this.ptr);
4573
4888
  return ret >>> 0;
4574
4889
  }
4575
4890
  }
@@ -4977,7 +5292,7 @@ export class InvalidIdentifierError {
4977
5292
  getIdentifierName() {
4978
5293
  try {
4979
5294
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4980
- wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
5295
+ wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
4981
5296
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4982
5297
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4983
5298
  return getStringFromWasm0(r0, r1);
@@ -4992,7 +5307,7 @@ export class InvalidIdentifierError {
4992
5307
  getError() {
4993
5308
  try {
4994
5309
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4995
- wasm.datacontractimmutablepropertiesupdateerror_getFieldPath(retptr, this.ptr);
5310
+ wasm.datacontracthavenewuniqueindexerror_getIndexName(retptr, this.ptr);
4996
5311
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4997
5312
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4998
5313
  return getStringFromWasm0(r0, r1);
@@ -5005,7 +5320,7 @@ export class InvalidIdentifierError {
5005
5320
  * @returns {number}
5006
5321
  */
5007
5322
  getCode() {
5008
- const ret = wasm.datacontractimmutablepropertiesupdateerror_getCode(this.ptr);
5323
+ const ret = wasm.datacontracthavenewuniqueindexerror_getCode(this.ptr);
5009
5324
  return ret >>> 0;
5010
5325
  }
5011
5326
  }
@@ -5279,14 +5594,14 @@ export class InvalidIdentityPublicKeyIdError {
5279
5594
  * @returns {number}
5280
5595
  */
5281
5596
  getId() {
5282
- const ret = wasm.identitypublickeyisdisablederror_getPublicKeyIndex(this.ptr);
5597
+ const ret = wasm.invalididentitypublickeyiderror_getId(this.ptr);
5283
5598
  return ret >>> 0;
5284
5599
  }
5285
5600
  /**
5286
5601
  * @returns {number}
5287
5602
  */
5288
5603
  getCode() {
5289
- const ret = wasm.identitypublickeyisdisablederror_getCode(this.ptr);
5604
+ const ret = wasm.invalididentitypublickeyiderror_getCode(this.ptr);
5290
5605
  return ret >>> 0;
5291
5606
  }
5292
5607
  }
@@ -5322,15 +5637,15 @@ export class InvalidIdentityPublicKeySecurityLevelError {
5322
5637
  /**
5323
5638
  * @returns {number}
5324
5639
  */
5325
- getPurpose() {
5326
- const ret = wasm.invalididentitypublickeysecuritylevelerror_getPurpose(this.ptr);
5640
+ getPublicKeyPurpose() {
5641
+ const ret = wasm.invalididentitypublickeysecuritylevelerror_getPublicKeyPurpose(this.ptr);
5327
5642
  return ret;
5328
5643
  }
5329
5644
  /**
5330
5645
  * @returns {number}
5331
5646
  */
5332
- getSecurityLevel() {
5333
- const ret = wasm.invalididentitypublickeysecuritylevelerror_getSecurityLevel(this.ptr);
5647
+ getPublicKeySecurityLevel() {
5648
+ const ret = wasm.invalididentitypublickeysecuritylevelerror_getPublicKeySecurityLevel(this.ptr);
5334
5649
  return ret;
5335
5650
  }
5336
5651
  /**
@@ -5374,7 +5689,7 @@ export class InvalidIdentityPublicKeyTypeError {
5374
5689
  * @returns {number}
5375
5690
  */
5376
5691
  getCode() {
5377
- const ret = wasm.datacontractnotpresenterror_getCode(this.ptr);
5692
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
5378
5693
  return ret >>> 0;
5379
5694
  }
5380
5695
  }
@@ -5853,7 +6168,7 @@ export class InvalidStateTransitionTypeError {
5853
6168
  * @returns {number}
5854
6169
  */
5855
6170
  getCode() {
5856
- const ret = wasm.datacontractmaxdeptherror_getDepth(this.ptr);
6171
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
5857
6172
  return ret >>> 0;
5858
6173
  }
5859
6174
  }
@@ -5885,7 +6200,7 @@ export class JsonSchemaCompilationError {
5885
6200
  getError() {
5886
6201
  try {
5887
6202
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5888
- wasm.jsonschemacompilationerror_getError(retptr, this.ptr);
6203
+ wasm.invaliddocumenttransitionactionerror_getAction(retptr, this.ptr);
5889
6204
  var r0 = getInt32Memory0()[retptr / 4 + 0];
5890
6205
  var r1 = getInt32Memory0()[retptr / 4 + 1];
5891
6206
  return getStringFromWasm0(r0, r1);
@@ -5898,7 +6213,7 @@ export class JsonSchemaCompilationError {
5898
6213
  * @returns {number}
5899
6214
  */
5900
6215
  getCode() {
5901
- const ret = wasm.jsonschemacompilationerror_getCode(this.ptr);
6216
+ const ret = wasm.invaliddocumenttransitionactionerror_getCode(this.ptr);
5902
6217
  return ret >>> 0;
5903
6218
  }
5904
6219
  }
@@ -6036,7 +6351,7 @@ export class MaxIdentityPublicKeyLimitReachedError {
6036
6351
  * @returns {number}
6037
6352
  */
6038
6353
  getIdentityId() {
6039
- const ret = wasm.datacontractmaxdeptherror_getDepth(this.ptr);
6354
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
6040
6355
  return ret >>> 0;
6041
6356
  }
6042
6357
  /**
@@ -6210,6 +6525,36 @@ export class MissingDocumentTransitionActionError {
6210
6525
  }
6211
6526
  /**
6212
6527
  */
6528
+ export class MissingDocumentTransitionTypeError {
6529
+
6530
+ static __wrap(ptr) {
6531
+ const obj = Object.create(MissingDocumentTransitionTypeError.prototype);
6532
+ obj.ptr = ptr;
6533
+
6534
+ return obj;
6535
+ }
6536
+
6537
+ __destroy_into_raw() {
6538
+ const ptr = this.ptr;
6539
+ this.ptr = 0;
6540
+
6541
+ return ptr;
6542
+ }
6543
+
6544
+ free() {
6545
+ const ptr = this.__destroy_into_raw();
6546
+ wasm.__wbg_missingdocumenttransitiontypeerror_free(ptr);
6547
+ }
6548
+ /**
6549
+ * @returns {number}
6550
+ */
6551
+ getCode() {
6552
+ const ret = wasm.invalidstatetransitionsignatureerror_getCode(this.ptr);
6553
+ return ret >>> 0;
6554
+ }
6555
+ }
6556
+ /**
6557
+ */
6213
6558
  export class MissingDocumentTypeError {
6214
6559
 
6215
6560
  static __wrap(ptr) {
@@ -6301,7 +6646,7 @@ export class MissingPublicKeyError {
6301
6646
  * @returns {number}
6302
6647
  */
6303
6648
  getCode() {
6304
- const ret = wasm.identitypublickeyisdisablederror_getCode(this.ptr);
6649
+ const ret = wasm.invalididentitypublickeyiderror_getCode(this.ptr);
6305
6650
  return ret >>> 0;
6306
6651
  }
6307
6652
  }
@@ -6457,7 +6802,7 @@ export class PublicKeyIsDisabledError {
6457
6802
  * @returns {number}
6458
6803
  */
6459
6804
  getCode() {
6460
- const ret = wasm.identitypublickeyisdisablederror_getCode(this.ptr);
6805
+ const ret = wasm.invalididentitypublickeyiderror_getCode(this.ptr);
6461
6806
  return ret >>> 0;
6462
6807
  }
6463
6808
  }
@@ -6561,8 +6906,19 @@ export class PublicKeysValidator {
6561
6906
  * @param {any} adapter
6562
6907
  */
6563
6908
  constructor(adapter) {
6564
- const ret = wasm.publickeysvalidator_new(addHeapObject(adapter));
6565
- return PublicKeysValidator.__wrap(ret);
6909
+ try {
6910
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6911
+ wasm.publickeysvalidator_new(retptr, addHeapObject(adapter));
6912
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
6913
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
6914
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
6915
+ if (r2) {
6916
+ throw takeObject(r1);
6917
+ }
6918
+ return PublicKeysValidator.__wrap(r0);
6919
+ } finally {
6920
+ wasm.__wbindgen_add_to_stack_pointer(16);
6921
+ }
6566
6922
  }
6567
6923
  /**
6568
6924
  * @param {Array<any>} public_keys
@@ -6602,6 +6958,25 @@ export class PublicKeysValidator {
6602
6958
  wasm.__wbindgen_add_to_stack_pointer(16);
6603
6959
  }
6604
6960
  }
6961
+ /**
6962
+ * @param {Array<any>} public_keys
6963
+ * @returns {ValidationResult}
6964
+ */
6965
+ validateKeysInStateTransition(public_keys) {
6966
+ try {
6967
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6968
+ wasm.publickeysvalidator_validateKeysInStateTransition(retptr, this.ptr, addHeapObject(public_keys));
6969
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
6970
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
6971
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
6972
+ if (r2) {
6973
+ throw takeObject(r1);
6974
+ }
6975
+ return ValidationResult.__wrap(r0);
6976
+ } finally {
6977
+ wasm.__wbindgen_add_to_stack_pointer(16);
6978
+ }
6979
+ }
6605
6980
  }
6606
6981
  /**
6607
6982
  */
@@ -6751,7 +7126,7 @@ export class SystemPropertyIndexAlreadyPresentError {
6751
7126
  getDocumentType() {
6752
7127
  try {
6753
7128
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6754
- wasm.incompatiblere2patternerror_getPattern(retptr, this.ptr);
7129
+ wasm.systempropertyindexalreadypresenterror_getDocumentType(retptr, this.ptr);
6755
7130
  var r0 = getInt32Memory0()[retptr / 4 + 0];
6756
7131
  var r1 = getInt32Memory0()[retptr / 4 + 1];
6757
7132
  return getStringFromWasm0(r0, r1);
@@ -6841,7 +7216,7 @@ export class UndefinedIndexPropertyError {
6841
7216
  getDocumentType() {
6842
7217
  try {
6843
7218
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6844
- wasm.incompatiblere2patternerror_getPattern(retptr, this.ptr);
7219
+ wasm.systempropertyindexalreadypresenterror_getDocumentType(retptr, this.ptr);
6845
7220
  var r0 = getInt32Memory0()[retptr / 4 + 0];
6846
7221
  var r1 = getInt32Memory0()[retptr / 4 + 1];
6847
7222
  return getStringFromWasm0(r0, r1);
@@ -7119,191 +7494,147 @@ async function load(module, imports) {
7119
7494
  function getImports() {
7120
7495
  const imports = {};
7121
7496
  imports.wbg = {};
7122
- imports.wbg.__wbg_identifier_new = function(arg0) {
7123
- const ret = Identifier.__wrap(arg0);
7497
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
7498
+ const ret = getStringFromWasm0(arg0, arg1);
7124
7499
  return addHeapObject(ret);
7125
7500
  };
7126
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
7127
- const ret = getObject(arg0);
7501
+ imports.wbg.__wbg_from_1240938ee473cab4 = function(arg0, arg1) {
7502
+ const ret = new Buffer(getArrayU8FromWasm0(arg0, arg1));
7128
7503
  return addHeapObject(ret);
7129
7504
  };
7130
7505
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
7131
7506
  takeObject(arg0);
7132
7507
  };
7133
- imports.wbg.__wbg_indexproperty_new = function(arg0) {
7134
- const ret = IndexProperty.__wrap(arg0);
7135
- return addHeapObject(ret);
7136
- };
7137
- imports.wbg.__wbg_identitypublickey_new = function(arg0) {
7138
- const ret = IdentityPublicKey.__wrap(arg0);
7139
- return addHeapObject(ret);
7140
- };
7141
- imports.wbg.__wbg_jsonschemaerror_new = function(arg0) {
7142
- const ret = JsonSchemaError.__wrap(arg0);
7143
- return addHeapObject(ret);
7144
- };
7145
- imports.wbg.__wbg_unsupportedprotocolversionerror_new = function(arg0) {
7146
- const ret = UnsupportedProtocolVersionError.__wrap(arg0);
7147
- return addHeapObject(ret);
7148
- };
7149
- imports.wbg.__wbg_incompatibleprotocolversionerror_new = function(arg0) {
7150
- const ret = IncompatibleProtocolVersionError.__wrap(arg0);
7151
- return addHeapObject(ret);
7152
- };
7153
- imports.wbg.__wbg_duplicatedidentitypublickeyiderror_new = function(arg0) {
7154
- const ret = DuplicatedIdentityPublicKeyIdError.__wrap(arg0);
7155
- return addHeapObject(ret);
7156
- };
7157
- imports.wbg.__wbg_invalididentitypublickeydataerror_new = function(arg0) {
7158
- const ret = InvalidIdentityPublicKeyDataError.__wrap(arg0);
7159
- return addHeapObject(ret);
7160
- };
7161
- imports.wbg.__wbg_invalididentitypublickeysecuritylevelerror_new = function(arg0) {
7162
- const ret = InvalidIdentityPublicKeySecurityLevelError.__wrap(arg0);
7163
- return addHeapObject(ret);
7164
- };
7165
- imports.wbg.__wbg_duplicatedidentitypublickeyerror_new = function(arg0) {
7166
- const ret = DuplicatedIdentityPublicKeyError.__wrap(arg0);
7167
- return addHeapObject(ret);
7168
- };
7169
- imports.wbg.__wbg_missingmasterpublickeyerror_new = function(arg0) {
7170
- const ret = MissingMasterPublicKeyError.__wrap(arg0);
7508
+ imports.wbg.__wbg_duplicatedocumenttransitionswithidserror_new = function(arg0) {
7509
+ const ret = DuplicateDocumentTransitionsWithIdsError.__wrap(arg0);
7171
7510
  return addHeapObject(ret);
7172
7511
  };
7173
- imports.wbg.__wbg_identityassetlocktransactionoutpointalreadyexistserror_new = function(arg0) {
7174
- const ret = IdentityAssetLockTransactionOutPointAlreadyExistsError.__wrap(arg0);
7512
+ imports.wbg.__wbg_validationresult_new = function(arg0) {
7513
+ const ret = ValidationResult.__wrap(arg0);
7175
7514
  return addHeapObject(ret);
7176
7515
  };
7177
7516
  imports.wbg.__wbg_invalididentityassetlocktransactionoutputerror_new = function(arg0) {
7178
7517
  const ret = InvalidIdentityAssetLockTransactionOutputError.__wrap(arg0);
7179
7518
  return addHeapObject(ret);
7180
7519
  };
7181
- imports.wbg.__wbg_invalidassetlocktransactionoutputreturnsizeerror_new = function(arg0) {
7182
- const ret = InvalidAssetLockTransactionOutputReturnSizeError.__wrap(arg0);
7183
- return addHeapObject(ret);
7184
- };
7185
7520
  imports.wbg.__wbg_identityassetlocktransactionoutputnotfounderror_new = function(arg0) {
7186
7521
  const ret = IdentityAssetLockTransactionOutputNotFoundError.__wrap(arg0);
7187
7522
  return addHeapObject(ret);
7188
7523
  };
7189
- imports.wbg.__wbg_invalididentityassetlocktransactionerror_new = function(arg0) {
7190
- const ret = InvalidIdentityAssetLockTransactionError.__wrap(arg0);
7524
+ imports.wbg.__wbg_invalidassetlocktransactionoutputreturnsizeerror_new = function(arg0) {
7525
+ const ret = InvalidAssetLockTransactionOutputReturnSizeError.__wrap(arg0);
7191
7526
  return addHeapObject(ret);
7192
7527
  };
7193
- imports.wbg.__wbg_invalidinstantassetlockprooferror_new = function(arg0) {
7194
- const ret = InvalidInstantAssetLockProofError.__wrap(arg0);
7528
+ imports.wbg.__wbg_identifier_new = function(arg0) {
7529
+ const ret = Identifier.__wrap(arg0);
7195
7530
  return addHeapObject(ret);
7196
7531
  };
7197
- imports.wbg.__wbg_invalidinstantassetlockproofsignatureerror_new = function(arg0) {
7198
- const ret = InvalidInstantAssetLockProofSignatureError.__wrap(arg0);
7532
+ imports.wbg.__wbg_duplicatedocumenttransitionswithindiceserror_new = function(arg0) {
7533
+ const ret = DuplicateDocumentTransitionsWithIndicesError.__wrap(arg0);
7199
7534
  return addHeapObject(ret);
7200
7535
  };
7201
- imports.wbg.__wbg_identityassetlockprooflockedtransactionmismatcherror_new = function(arg0) {
7202
- const ret = IdentityAssetLockProofLockedTransactionMismatchError.__wrap(arg0);
7203
- return addHeapObject(ret);
7536
+ imports.wbg.__wbindgen_is_string = function(arg0) {
7537
+ const ret = typeof(getObject(arg0)) === 'string';
7538
+ return ret;
7204
7539
  };
7205
- imports.wbg.__wbg_identityassetlocktransactionisnotfounderror_new = function(arg0) {
7206
- const ret = IdentityAssetLockTransactionIsNotFoundError.__wrap(arg0);
7540
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
7541
+ const obj = getObject(arg1);
7542
+ const ret = typeof(obj) === 'string' ? obj : undefined;
7543
+ var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7544
+ var len0 = WASM_VECTOR_LEN;
7545
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
7546
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
7547
+ };
7548
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
7549
+ const ret = getObject(arg0);
7207
7550
  return addHeapObject(ret);
7208
7551
  };
7209
- imports.wbg.__wbg_invalidassetlockproofcorechainheighterror_new = function(arg0) {
7210
- const ret = InvalidAssetLockProofCoreChainHeightError.__wrap(arg0);
7552
+ imports.wbg.__wbg_indexproperty_new = function(arg0) {
7553
+ const ret = IndexProperty.__wrap(arg0);
7211
7554
  return addHeapObject(ret);
7212
7555
  };
7213
- imports.wbg.__wbg_invalidassetlockprooftransactionheighterror_new = function(arg0) {
7214
- const ret = InvalidAssetLockProofTransactionHeightError.__wrap(arg0);
7556
+ imports.wbg.__wbg_identitypublickey_new = function(arg0) {
7557
+ const ret = IdentityPublicKey.__wrap(arg0);
7215
7558
  return addHeapObject(ret);
7216
7559
  };
7217
7560
  imports.wbg.__wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_new = function(arg0) {
7218
7561
  const ret = InvalidIdentityCreditWithdrawalTransitionCoreFeeError.__wrap(arg0);
7219
7562
  return addHeapObject(ret);
7220
7563
  };
7221
- imports.wbg.__wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_new = function(arg0) {
7222
- const ret = InvalidIdentityCreditWithdrawalTransitionOutputScriptError.__wrap(arg0);
7223
- return addHeapObject(ret);
7224
- };
7225
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
7226
- const ret = new Error(getStringFromWasm0(arg0, arg1));
7227
- return addHeapObject(ret);
7228
- };
7229
- imports.wbg.__wbg_serializedobjectparsingerror_new = function(arg0) {
7230
- const ret = SerializedObjectParsingError.__wrap(arg0);
7564
+ imports.wbg.__wbg_datatriggerinvalidresulterror_new = function(arg0) {
7565
+ const ret = DataTriggerInvalidResultError.__wrap(arg0);
7231
7566
  return addHeapObject(ret);
7232
7567
  };
7233
7568
  imports.wbg.__wbg_protocolversionparsingerror_new = function(arg0) {
7234
7569
  const ret = ProtocolVersionParsingError.__wrap(arg0);
7235
7570
  return addHeapObject(ret);
7236
7571
  };
7237
- imports.wbg.__wbg_incompatiblere2patternerror_new = function(arg0) {
7238
- const ret = IncompatibleRe2PatternError.__wrap(arg0);
7239
- return addHeapObject(ret);
7240
- };
7241
- imports.wbg.__wbg_identityinsufficientbalanceerror_new = function(arg0) {
7242
- const ret = IdentityInsufficientBalanceError.__wrap(arg0);
7243
- return addHeapObject(ret);
7244
- };
7245
- imports.wbg.__wbg_identityalreadyexistserror_new = function(arg0) {
7246
- const ret = IdentityAlreadyExistsError.__wrap(arg0);
7572
+ imports.wbg.__wbg_serializedobjectparsingerror_new = function(arg0) {
7573
+ const ret = SerializedObjectParsingError.__wrap(arg0);
7247
7574
  return addHeapObject(ret);
7248
7575
  };
7249
- imports.wbg.__wbg_balanceisnotenougherror_new = function(arg0) {
7250
- const ret = BalanceIsNotEnoughError.__wrap(arg0);
7251
- return addHeapObject(ret);
7576
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
7577
+ const v = getObject(arg0);
7578
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
7579
+ return ret;
7252
7580
  };
7253
- imports.wbg.__wbg_indexdefinition_new = function(arg0) {
7254
- const ret = IndexDefinition.__wrap(arg0);
7255
- return addHeapObject(ret);
7581
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
7582
+ const ret = typeof(getObject(arg0)) === 'bigint';
7583
+ return ret;
7256
7584
  };
7257
- imports.wbg.__wbg_from_1240938ee473cab4 = function(arg0, arg1) {
7258
- const ret = new Buffer(getArrayU8FromWasm0(arg0, arg1));
7585
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
7586
+ const ret = arg0;
7259
7587
  return addHeapObject(ret);
7260
7588
  };
7261
- imports.wbg.__wbindgen_is_string = function(arg0) {
7262
- const ret = typeof(getObject(arg0)) === 'string';
7589
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
7590
+ const ret = getObject(arg0) === getObject(arg1);
7263
7591
  return ret;
7264
7592
  };
7265
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
7593
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
7266
7594
  const obj = getObject(arg1);
7267
- const ret = typeof(obj) === 'string' ? obj : undefined;
7268
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7269
- var len0 = WASM_VECTOR_LEN;
7270
- getInt32Memory0()[arg0 / 4 + 1] = len0;
7271
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
7595
+ const ret = typeof(obj) === 'number' ? obj : undefined;
7596
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
7597
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
7272
7598
  };
7273
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
7274
- const ret = getStringFromWasm0(arg0, arg1);
7275
- return addHeapObject(ret);
7599
+ imports.wbg.__wbindgen_is_object = function(arg0) {
7600
+ const val = getObject(arg0);
7601
+ const ret = typeof(val) === 'object' && val !== null;
7602
+ return ret;
7276
7603
  };
7277
- imports.wbg.__wbg_nonconsensuserrorwasm_new = function(arg0) {
7278
- const ret = NonConsensusErrorWasm.__wrap(arg0);
7279
- return addHeapObject(ret);
7604
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
7605
+ const ret = getObject(arg0) in getObject(arg1);
7606
+ return ret;
7280
7607
  };
7281
- imports.wbg.__wbg_document_new = function(arg0) {
7282
- const ret = Document.__wrap(arg0);
7608
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
7609
+ const ret = BigInt.asUintN(64, arg0);
7283
7610
  return addHeapObject(ret);
7284
7611
  };
7285
- imports.wbg.__wbg_datacontractnotpresenterror_new = function(arg0) {
7286
- const ret = DataContractNotPresentError.__wrap(arg0);
7612
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
7613
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
7287
7614
  return addHeapObject(ret);
7288
7615
  };
7289
- imports.wbg.__wbg_invalididentitypublickeytypeerror_new = function(arg0) {
7290
- const ret = InvalidIdentityPublicKeyTypeError.__wrap(arg0);
7616
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
7617
+ const ret = getObject(arg0) === undefined;
7618
+ return ret;
7619
+ };
7620
+ imports.wbg.__wbg_datacontract_new = function(arg0) {
7621
+ const ret = DataContract.__wrap(arg0);
7291
7622
  return addHeapObject(ret);
7292
7623
  };
7293
- imports.wbg.__wbg_documentnotfounderror_new = function(arg0) {
7294
- const ret = DocumentNotFoundError.__wrap(arg0);
7624
+ imports.wbg.__wbg_invaliddatacontracterror_new = function(arg0) {
7625
+ const ret = InvalidDataContractError.__wrap(arg0);
7295
7626
  return addHeapObject(ret);
7296
7627
  };
7297
- imports.wbg.__wbg_jsonschemacompilationerror_new = function(arg0) {
7298
- const ret = JsonSchemaCompilationError.__wrap(arg0);
7628
+ imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function(arg0) {
7629
+ const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
7299
7630
  return addHeapObject(ret);
7300
7631
  };
7301
- imports.wbg.__wbg_identitynotfounderror_new = function(arg0) {
7302
- const ret = IdentityNotFoundError.__wrap(arg0);
7632
+ imports.wbg.__wbg_datacontractcreatetransition_new = function(arg0) {
7633
+ const ret = DataContractCreateTransition.__wrap(arg0);
7303
7634
  return addHeapObject(ret);
7304
7635
  };
7305
- imports.wbg.__wbg_incompatibledatacontractschemaerror_new = function(arg0) {
7306
- const ret = IncompatibleDataContractSchemaError.__wrap(arg0);
7636
+ imports.wbg.__wbg_indexdefinition_new = function(arg0) {
7637
+ const ret = IndexDefinition.__wrap(arg0);
7307
7638
  return addHeapObject(ret);
7308
7639
  };
7309
7640
  imports.wbg.__wbg_documentalreadyexistserror_new = function(arg0) {
@@ -7338,22 +7669,6 @@ function getImports() {
7338
7669
  const ret = NotDocumentsSuppliedError.__wrap(arg0);
7339
7670
  return addHeapObject(ret);
7340
7671
  };
7341
- imports.wbg.__wbg_datacontract_new = function(arg0) {
7342
- const ret = DataContract.__wrap(arg0);
7343
- return addHeapObject(ret);
7344
- };
7345
- imports.wbg.__wbg_invaliddatacontracterror_new = function(arg0) {
7346
- const ret = InvalidDataContractError.__wrap(arg0);
7347
- return addHeapObject(ret);
7348
- };
7349
- imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function(arg0) {
7350
- const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
7351
- return addHeapObject(ret);
7352
- };
7353
- imports.wbg.__wbg_datacontractcreatetransition_new = function(arg0) {
7354
- const ret = DataContractCreateTransition.__wrap(arg0);
7355
- return addHeapObject(ret);
7356
- };
7357
7672
  imports.wbg.__wbg_documentcreatetransition_new = function(arg0) {
7358
7673
  const ret = DocumentCreateTransition.__wrap(arg0);
7359
7674
  return addHeapObject(ret);
@@ -7366,6 +7681,10 @@ function getImports() {
7366
7681
  const ret = DocumentTransition.__wrap(arg0);
7367
7682
  return addHeapObject(ret);
7368
7683
  };
7684
+ imports.wbg.__wbg_document_new = function(arg0) {
7685
+ const ret = Document.__wrap(arg0);
7686
+ return addHeapObject(ret);
7687
+ };
7369
7688
  imports.wbg.__wbg_datacontracthavenewuniqueindexerror_new = function(arg0) {
7370
7689
  const ret = DataContractHaveNewUniqueIndexError.__wrap(arg0);
7371
7690
  return addHeapObject(ret);
@@ -7378,8 +7697,8 @@ function getImports() {
7378
7697
  const ret = DataContractInvalidIndexDefinitionUpdateError.__wrap(arg0);
7379
7698
  return addHeapObject(ret);
7380
7699
  };
7381
- imports.wbg.__wbg_datacontractmaxdeptherror_new = function(arg0) {
7382
- const ret = DataContractMaxDepthError.__wrap(arg0);
7700
+ imports.wbg.__wbg_datacontractmaxdepthexceederror_new = function(arg0) {
7701
+ const ret = DataContractMaxDepthExceedError.__wrap(arg0);
7383
7702
  return addHeapObject(ret);
7384
7703
  };
7385
7704
  imports.wbg.__wbg_datacontractuniqueindiceschangederror_new = function(arg0) {
@@ -7390,6 +7709,14 @@ function getImports() {
7390
7709
  const ret = DuplicateIndexNameError.__wrap(arg0);
7391
7710
  return addHeapObject(ret);
7392
7711
  };
7712
+ imports.wbg.__wbg_incompatibledatacontractschemaerror_new = function(arg0) {
7713
+ const ret = IncompatibleDataContractSchemaError.__wrap(arg0);
7714
+ return addHeapObject(ret);
7715
+ };
7716
+ imports.wbg.__wbg_incompatiblere2patternerror_new = function(arg0) {
7717
+ const ret = IncompatibleRe2PatternError.__wrap(arg0);
7718
+ return addHeapObject(ret);
7719
+ };
7393
7720
  imports.wbg.__wbg_duplicateindexerror_new = function(arg0) {
7394
7721
  const ret = DuplicateIndexError.__wrap(arg0);
7395
7722
  return addHeapObject(ret);
@@ -7430,8 +7757,8 @@ function getImports() {
7430
7757
  const ret = InvalidJsonSchemaRefError.__wrap(arg0);
7431
7758
  return addHeapObject(ret);
7432
7759
  };
7433
- imports.wbg.__wbg_duplicatedocumenttransitionswithidserror_new = function(arg0) {
7434
- const ret = DuplicateDocumentTransitionsWithIdsError.__wrap(arg0);
7760
+ imports.wbg.__wbg_datacontractnotpresenterror_new = function(arg0) {
7761
+ const ret = DataContractNotPresentError.__wrap(arg0);
7435
7762
  return addHeapObject(ret);
7436
7763
  };
7437
7764
  imports.wbg.__wbg_inconsistentcompoundindexdataerror_new = function(arg0) {
@@ -7458,22 +7785,94 @@ function getImports() {
7458
7785
  const ret = MissingDocumentTransitionActionError.__wrap(arg0);
7459
7786
  return addHeapObject(ret);
7460
7787
  };
7788
+ imports.wbg.__wbg_missingdocumenttransitiontypeerror_new = function(arg0) {
7789
+ const ret = MissingDocumentTransitionTypeError.__wrap(arg0);
7790
+ return addHeapObject(ret);
7791
+ };
7461
7792
  imports.wbg.__wbg_missingdocumenttypeerror_new = function(arg0) {
7462
7793
  const ret = MissingDocumentTypeError.__wrap(arg0);
7463
7794
  return addHeapObject(ret);
7464
7795
  };
7796
+ imports.wbg.__wbg_duplicatedidentitypublickeyerror_new = function(arg0) {
7797
+ const ret = DuplicatedIdentityPublicKeyError.__wrap(arg0);
7798
+ return addHeapObject(ret);
7799
+ };
7800
+ imports.wbg.__wbg_duplicatedidentitypublickeyiderror_new = function(arg0) {
7801
+ const ret = DuplicatedIdentityPublicKeyIdError.__wrap(arg0);
7802
+ return addHeapObject(ret);
7803
+ };
7804
+ imports.wbg.__wbg_identityassetlockprooflockedtransactionmismatcherror_new = function(arg0) {
7805
+ const ret = IdentityAssetLockProofLockedTransactionMismatchError.__wrap(arg0);
7806
+ return addHeapObject(ret);
7807
+ };
7808
+ imports.wbg.__wbg_identityassetlocktransactionisnotfounderror_new = function(arg0) {
7809
+ const ret = IdentityAssetLockTransactionIsNotFoundError.__wrap(arg0);
7810
+ return addHeapObject(ret);
7811
+ };
7812
+ imports.wbg.__wbg_identityassetlocktransactionoutpointalreadyexistserror_new = function(arg0) {
7813
+ const ret = IdentityAssetLockTransactionOutPointAlreadyExistsError.__wrap(arg0);
7814
+ return addHeapObject(ret);
7815
+ };
7816
+ imports.wbg.__wbg_identityinsufficientbalanceerror_new = function(arg0) {
7817
+ const ret = IdentityInsufficientBalanceError.__wrap(arg0);
7818
+ return addHeapObject(ret);
7819
+ };
7820
+ imports.wbg.__wbg_invalidassetlockproofcorechainheighterror_new = function(arg0) {
7821
+ const ret = InvalidAssetLockProofCoreChainHeightError.__wrap(arg0);
7822
+ return addHeapObject(ret);
7823
+ };
7824
+ imports.wbg.__wbg_invalidassetlockprooftransactionheighterror_new = function(arg0) {
7825
+ const ret = InvalidAssetLockProofTransactionHeightError.__wrap(arg0);
7826
+ return addHeapObject(ret);
7827
+ };
7465
7828
  imports.wbg.__wbg_transactiondecodeerror_new = function(arg0) {
7466
7829
  const ret = TransactionDecodeError.__wrap(arg0);
7467
7830
  return addHeapObject(ret);
7468
7831
  };
7832
+ imports.wbg.__wbg_invalididentityassetlocktransactionerror_new = function(arg0) {
7833
+ const ret = InvalidIdentityAssetLockTransactionError.__wrap(arg0);
7834
+ return addHeapObject(ret);
7835
+ };
7836
+ imports.wbg.__wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_new = function(arg0) {
7837
+ const ret = InvalidIdentityCreditWithdrawalTransitionOutputScriptError.__wrap(arg0);
7838
+ return addHeapObject(ret);
7839
+ };
7469
7840
  imports.wbg.__wbg_invalididentitykeysignatureerror_new = function(arg0) {
7470
7841
  const ret = InvalidIdentityKeySignatureError.__wrap(arg0);
7471
7842
  return addHeapObject(ret);
7472
7843
  };
7844
+ imports.wbg.__wbg_invalididentitypublickeydataerror_new = function(arg0) {
7845
+ const ret = InvalidIdentityPublicKeyDataError.__wrap(arg0);
7846
+ return addHeapObject(ret);
7847
+ };
7848
+ imports.wbg.__wbg_invalididentitypublickeysecuritylevelerror_new = function(arg0) {
7849
+ const ret = InvalidIdentityPublicKeySecurityLevelError.__wrap(arg0);
7850
+ return addHeapObject(ret);
7851
+ };
7852
+ imports.wbg.__wbg_invalididentitypublickeytypeerror_new = function(arg0) {
7853
+ const ret = InvalidIdentityPublicKeyTypeError.__wrap(arg0);
7854
+ return addHeapObject(ret);
7855
+ };
7856
+ imports.wbg.__wbg_invalidinstantassetlockprooferror_new = function(arg0) {
7857
+ const ret = InvalidInstantAssetLockProofError.__wrap(arg0);
7858
+ return addHeapObject(ret);
7859
+ };
7860
+ imports.wbg.__wbg_invalidinstantassetlockproofsignatureerror_new = function(arg0) {
7861
+ const ret = InvalidInstantAssetLockProofSignatureError.__wrap(arg0);
7862
+ return addHeapObject(ret);
7863
+ };
7864
+ imports.wbg.__wbg_missingmasterpublickeyerror_new = function(arg0) {
7865
+ const ret = MissingMasterPublicKeyError.__wrap(arg0);
7866
+ return addHeapObject(ret);
7867
+ };
7473
7868
  imports.wbg.__wbg_missingpublickeyerror_new = function(arg0) {
7474
7869
  const ret = MissingPublicKeyError.__wrap(arg0);
7475
7870
  return addHeapObject(ret);
7476
7871
  };
7872
+ imports.wbg.__wbg_incompatibleprotocolversionerror_new = function(arg0) {
7873
+ const ret = IncompatibleProtocolVersionError.__wrap(arg0);
7874
+ return addHeapObject(ret);
7875
+ };
7477
7876
  imports.wbg.__wbg_invalididentifiererror_new = function(arg0) {
7478
7877
  const ret = InvalidIdentifierError.__wrap(arg0);
7479
7878
  return addHeapObject(ret);
@@ -7486,6 +7885,14 @@ function getImports() {
7486
7885
  const ret = InvalidStateTransitionSignatureError.__wrap(arg0);
7487
7886
  return addHeapObject(ret);
7488
7887
  };
7888
+ imports.wbg.__wbg_jsonschemacompilationerror_new = function(arg0) {
7889
+ const ret = JsonSchemaCompilationError.__wrap(arg0);
7890
+ return addHeapObject(ret);
7891
+ };
7892
+ imports.wbg.__wbg_jsonschemaerror_new = function(arg0) {
7893
+ const ret = JsonSchemaError.__wrap(arg0);
7894
+ return addHeapObject(ret);
7895
+ };
7489
7896
  imports.wbg.__wbg_publickeyisdisablederror_new = function(arg0) {
7490
7897
  const ret = PublicKeyIsDisabledError.__wrap(arg0);
7491
7898
  return addHeapObject(ret);
@@ -7506,10 +7913,22 @@ function getImports() {
7506
7913
  const ret = StateTransitionMaxSizeExceededError.__wrap(arg0);
7507
7914
  return addHeapObject(ret);
7508
7915
  };
7916
+ imports.wbg.__wbg_unsupportedprotocolversionerror_new = function(arg0) {
7917
+ const ret = UnsupportedProtocolVersionError.__wrap(arg0);
7918
+ return addHeapObject(ret);
7919
+ };
7509
7920
  imports.wbg.__wbg_wrongpublickeypurposeerror_new = function(arg0) {
7510
7921
  const ret = WrongPublicKeyPurposeError.__wrap(arg0);
7511
7922
  return addHeapObject(ret);
7512
7923
  };
7924
+ imports.wbg.__wbg_balanceisnotenougherror_new = function(arg0) {
7925
+ const ret = BalanceIsNotEnoughError.__wrap(arg0);
7926
+ return addHeapObject(ret);
7927
+ };
7928
+ imports.wbg.__wbg_identitynotfounderror_new = function(arg0) {
7929
+ const ret = IdentityNotFoundError.__wrap(arg0);
7930
+ return addHeapObject(ret);
7931
+ };
7513
7932
  imports.wbg.__wbg_datacontractalreadypresenterror_new = function(arg0) {
7514
7933
  const ret = DataContractAlreadyPresentError.__wrap(arg0);
7515
7934
  return addHeapObject(ret);
@@ -7522,14 +7941,14 @@ function getImports() {
7522
7941
  const ret = DataTriggerExecutionError.__wrap(arg0);
7523
7942
  return addHeapObject(ret);
7524
7943
  };
7525
- imports.wbg.__wbg_datatriggerinvalidresulterror_new = function(arg0) {
7526
- const ret = DataTriggerInvalidResultError.__wrap(arg0);
7527
- return addHeapObject(ret);
7528
- };
7529
7944
  imports.wbg.__wbg_documentalreadypresenterror_new = function(arg0) {
7530
7945
  const ret = DocumentAlreadyPresentError.__wrap(arg0);
7531
7946
  return addHeapObject(ret);
7532
7947
  };
7948
+ imports.wbg.__wbg_documentnotfounderror_new = function(arg0) {
7949
+ const ret = DocumentNotFoundError.__wrap(arg0);
7950
+ return addHeapObject(ret);
7951
+ };
7533
7952
  imports.wbg.__wbg_documentowneridmismatcherror_new = function(arg0) {
7534
7953
  const ret = DocumentOwnerIdMismatchError.__wrap(arg0);
7535
7954
  return addHeapObject(ret);
@@ -7550,6 +7969,10 @@ function getImports() {
7550
7969
  const ret = InvalidDocumentRevisionError.__wrap(arg0);
7551
7970
  return addHeapObject(ret);
7552
7971
  };
7972
+ imports.wbg.__wbg_identityalreadyexistserror_new = function(arg0) {
7973
+ const ret = IdentityAlreadyExistsError.__wrap(arg0);
7974
+ return addHeapObject(ret);
7975
+ };
7553
7976
  imports.wbg.__wbg_identitypublickeydisabledatwindowviolationerror_new = function(arg0) {
7554
7977
  const ret = IdentityPublicKeyDisabledAtWindowViolationError.__wrap(arg0);
7555
7978
  return addHeapObject(ret);
@@ -7574,50 +7997,10 @@ function getImports() {
7574
7997
  const ret = MaxIdentityPublicKeyLimitReachedError.__wrap(arg0);
7575
7998
  return addHeapObject(ret);
7576
7999
  };
7577
- imports.wbg.__wbg_validationresult_new = function(arg0) {
7578
- const ret = ValidationResult.__wrap(arg0);
7579
- return addHeapObject(ret);
7580
- };
7581
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
7582
- const v = getObject(arg0);
7583
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
7584
- return ret;
7585
- };
7586
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
7587
- const ret = typeof(getObject(arg0)) === 'bigint';
7588
- return ret;
7589
- };
7590
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
7591
- const ret = arg0;
7592
- return addHeapObject(ret);
7593
- };
7594
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
7595
- const ret = getObject(arg0) === getObject(arg1);
7596
- return ret;
7597
- };
7598
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
7599
- const obj = getObject(arg1);
7600
- const ret = typeof(obj) === 'number' ? obj : undefined;
7601
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
7602
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
7603
- };
7604
- imports.wbg.__wbindgen_is_object = function(arg0) {
7605
- const val = getObject(arg0);
7606
- const ret = typeof(val) === 'object' && val !== null;
7607
- return ret;
7608
- };
7609
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
7610
- const ret = getObject(arg0) in getObject(arg1);
7611
- return ret;
7612
- };
7613
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
7614
- const ret = BigInt.asUintN(64, arg0);
8000
+ imports.wbg.__wbg_nonconsensuserrorwasm_new = function(arg0) {
8001
+ const ret = NonConsensusErrorWasm.__wrap(arg0);
7615
8002
  return addHeapObject(ret);
7616
8003
  };
7617
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
7618
- const ret = getObject(arg0) === undefined;
7619
- return ret;
7620
- };
7621
8004
  imports.wbg.__wbg_fetchDataContract_b17bbb6c3e7c09f9 = function(arg0, arg1, arg2) {
7622
8005
  const ret = getObject(arg0).fetchDataContract(Identifier.__wrap(arg1), StateTransitionExecutionContext.__wrap(arg2));
7623
8006
  let ptr0 = 0;
@@ -7632,14 +8015,14 @@ function getImports() {
7632
8015
  const ret = getObject(arg0).storeDataContract(DataContract.__wrap(arg1), StateTransitionExecutionContext.__wrap(arg2));
7633
8016
  return addHeapObject(ret);
7634
8017
  };
7635
- imports.wbg.__wbg_validatePublicKey_bee145d16f9dc2e3 = function(arg0, arg1, arg2) {
7636
- const ret = getObject(arg0).validatePublicKey(getArrayU8FromWasm0(arg1, arg2));
7637
- return ret;
7638
- };
7639
8018
  imports.wbg.__wbindgen_number_new = function(arg0) {
7640
8019
  const ret = arg0;
7641
8020
  return addHeapObject(ret);
7642
8021
  };
8022
+ imports.wbg.__wbg_validatePublicKey_bee145d16f9dc2e3 = function(arg0, arg1, arg2) {
8023
+ const ret = getObject(arg0).validatePublicKey(getArrayU8FromWasm0(arg1, arg2));
8024
+ return ret;
8025
+ };
7643
8026
  imports.wbg.__wbg_generate_1f42caa3e9e2b460 = function(arg0, arg1) {
7644
8027
  const ret = getObject(arg1).generate();
7645
8028
  const ptr0 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
@@ -7805,6 +8188,10 @@ function getImports() {
7805
8188
  const ret = result;
7806
8189
  return ret;
7807
8190
  };
8191
+ imports.wbg.__wbg_message_fe2af63ccc8985bc = function(arg0) {
8192
+ const ret = getObject(arg0).message;
8193
+ return addHeapObject(ret);
8194
+ };
7808
8195
  imports.wbg.__wbg_newwithargs_8fe23e3842840c8e = function(arg0, arg1, arg2, arg3) {
7809
8196
  const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
7810
8197
  return addHeapObject(ret);
@@ -7836,7 +8223,7 @@ function getImports() {
7836
8223
  const a = state0.a;
7837
8224
  state0.a = 0;
7838
8225
  try {
7839
- return __wbg_adapter_747(a, state0.b, arg0, arg1);
8226
+ return __wbg_adapter_777(a, state0.b, arg0, arg1);
7840
8227
  } finally {
7841
8228
  state0.a = a;
7842
8229
  }
@@ -7920,8 +8307,8 @@ function getImports() {
7920
8307
  const ret = wasm.memory;
7921
8308
  return addHeapObject(ret);
7922
8309
  };
7923
- imports.wbg.__wbindgen_closure_wrapper1461 = function(arg0, arg1, arg2) {
7924
- const ret = makeMutClosure(arg0, arg1, 189, __wbg_adapter_48);
8310
+ imports.wbg.__wbindgen_closure_wrapper1556 = function(arg0, arg1, arg2) {
8311
+ const ret = makeMutClosure(arg0, arg1, 206, __wbg_adapter_48);
7925
8312
  return addHeapObject(ret);
7926
8313
  };
7927
8314