@dashevo/wasm-dpp 0.24.0-dev.10 → 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 (92) hide show
  1. package/Cargo.toml +2 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/dpp.d.ts +9 -0
  4. package/dist/lib/errors/AbstractConsensusError.d.ts +10 -0
  5. package/dist/lib/errors/DPPError.d.ts +5 -0
  6. package/dist/lib/errors/patchConsensusErrors.d.ts +1 -0
  7. package/dist/lib/{patchIdentifier.d.ts → identifier/patchIdentifier.d.ts} +1 -1
  8. package/dist/{index.d.ts → lib/index.d.ts} +1 -1
  9. package/dist/lib/utils/extend.d.ts +1 -0
  10. package/dist/wasm/wasm_dpp.d.ts +503 -262
  11. package/lib/dpp.ts +24 -0
  12. package/lib/errors/AbstractConsensusError.ts +13 -0
  13. package/lib/errors/DPPError.ts +15 -0
  14. package/lib/errors/patchConsensusErrors.ts +175 -0
  15. package/lib/{patchIdentifier.ts → identifier/patchIdentifier.ts} +1 -1
  16. package/{index.ts → lib/index.ts} +4 -3
  17. package/lib/test/expect/expectError.js +4 -2
  18. package/lib/utils/extend.ts +6 -0
  19. package/package.json +5 -5
  20. package/src/data_contract/errors/invalid_data_contract.rs +21 -0
  21. package/src/data_contract/state_transition/data_contract_create_transition/apply.rs +44 -0
  22. package/src/data_contract/state_transition/data_contract_create_transition/mod.rs +107 -6
  23. package/src/data_contract/state_transition/data_contract_create_transition/validation.rs +24 -0
  24. package/src/data_contract/state_transition/data_contract_update_transition/apply.rs +44 -0
  25. package/src/data_contract/state_transition/data_contract_update_transition/mod.rs +147 -0
  26. package/src/data_contract/state_transition/data_contract_update_transition/validation.rs +46 -0
  27. package/src/data_contract/state_transition/mod.rs +2 -0
  28. package/src/data_contract_factory/data_contract_factory.rs +27 -12
  29. package/src/document/errors/document_already_exists_error.rs +1 -1
  30. package/src/document/errors/document_not_provided_error.rs +1 -1
  31. package/src/document/errors/invalid_document_action_error.rs +1 -1
  32. package/src/errors/consensus/basic/data_contract/data_contract_max_depth_exceed_error.rs +5 -5
  33. package/src/errors/consensus/basic/document/duplicate_document_transitions_with_ids_error.rs +4 -4
  34. package/src/errors/consensus/basic/document/duplicate_document_transitions_with_indices_error.rs +36 -0
  35. package/src/errors/consensus/basic/document/missing_document_transition_type_error.rs +20 -0
  36. package/src/errors/consensus/basic/document/mod.rs +4 -0
  37. package/src/errors/consensus/basic/identity/duplicated_identity_public_key_error.rs +2 -2
  38. package/src/errors/consensus/basic/identity/duplicated_identity_public_key_id_error.rs +2 -2
  39. package/src/errors/consensus/basic/identity/invalid_identity_public_key_security_level_error.rs +2 -2
  40. package/src/errors/consensus/basic/json_schema_error.rs +1 -1
  41. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_condition_error.rs +1 -1
  42. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_execution_error.rs +1 -1
  43. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_invalid_result_error.rs +1 -1
  44. package/src/errors/consensus_error.rs +15 -8
  45. package/src/errors/from.rs +1 -1
  46. package/src/errors/mod.rs +1 -0
  47. package/src/errors/protocol_error.rs +12 -0
  48. package/src/{identifier.rs → identifier/mod.rs} +0 -0
  49. package/src/{identity_facade.rs → identity/identity_facade.rs} +1 -1
  50. package/src/{identity_public_key → identity/identity_public_key}/key_type.rs +0 -0
  51. package/src/{identity_public_key → identity/identity_public_key}/mod.rs +0 -3
  52. package/src/{identity_public_key → identity/identity_public_key}/purpose.rs +0 -0
  53. package/src/{identity_public_key → identity/identity_public_key}/security_level.rs +0 -0
  54. package/src/{identity.rs → identity/mod.rs} +6 -7
  55. package/src/identity/validation/mod.rs +3 -0
  56. package/src/identity/validation/public_keys_validator.rs +70 -0
  57. package/src/lib.rs +4 -8
  58. package/src/state_repository.rs +229 -0
  59. package/src/state_transition/mod.rs +41 -0
  60. package/src/utils.rs +2 -2
  61. package/src/validation/mod.rs +3 -0
  62. package/src/{validation_result.rs → validation/validation_result.rs} +0 -0
  63. package/test/integration/identity/stateTransition/IdentityUpdateTransition/validation/state/validateIdentityUpdateTransitionStateFactory.spec.js +1 -1
  64. package/test/integration/identity/validation/validatePublicKeysFactory.spec.js +79 -114
  65. package/test/integration/stateTransition/AbstractStateTransitionIdentitySigned.spec.js +0 -11
  66. package/test/integration/stateTransition/StateTransitionFacade.spec.js +1 -1
  67. package/test/integration/stateTransition/calculateStateTransitionFeeFactory.spec.js +135 -0
  68. package/test/unit/dataContract/DataContract.spec.js +5 -9
  69. package/test/unit/dataContract/DataContractFactory.spec.js +13 -6
  70. package/test/unit/dataContract/errors/InvalidDataContractError.spec.js +11 -3
  71. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/DataContractCreateTransition.spec.js +17 -64
  72. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/applyDataContractCreateTransitionFactory.spec.js +28 -22
  73. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/validation/state/validateDataContractCreateTransitionStateFactory.spec.js +49 -42
  74. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/DataContractUpdateTransition.spec.js +23 -59
  75. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/applyDataContractUpdateTransitionFactory.spec.js +27 -23
  76. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/validation/basic/validateIndicesAreBackwardCompatible.spec.js +29 -12
  77. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/validation/state/validateDataContractUpdateTransitionStateFactory.spec.js +66 -49
  78. package/test/unit/dataContract/validation/validateDataContractPatterns.spec.js +73 -0
  79. package/test/unit/document/stateTransition/DocumetsBatchTransition/applyDocumentsBatchTransitionFactory.spec.js +1 -1
  80. package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/validateDocumentsBatchTransitionStateFactory.spec.js +1 -1
  81. package/test/unit/identity/IdentityPublicKey.spec.js +25 -31
  82. package/tsconfig.json +1 -1
  83. package/wasm/wasm_dpp.d.ts +503 -262
  84. package/wasm/wasm_dpp.js +925 -310
  85. package/wasm/wasm_dpp_bg.js +1 -1
  86. package/wasm/wasm_dpp_bg.wasm +0 -0
  87. package/wasm/wasm_dpp_bg.wasm.d.ts +273 -225
  88. package/webpack.config.js +1 -1
  89. package/src/identity_public_key/public_keys_validator.rs +0 -44
  90. package/test/integration/stateTransition/calculateStateTransitionFee.spec.js +0 -32
  91. package/test/unit/dataContract/validation/validateDataContractMaxDepthFactory.spec.js +0 -93
  92. 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__h09f9e9d8394aec0a(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,13 +237,6 @@ function getArrayU8FromWasm0(ptr, len) {
237
237
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
238
238
  }
239
239
 
240
- function _assertClass(instance, klass) {
241
- if (!(instance instanceof klass)) {
242
- throw new Error(`expected instance of ${klass.name}`);
243
- }
244
- return instance.ptr;
245
- }
246
-
247
240
  let cachedUint32Memory0 = new Uint32Array();
248
241
 
249
242
  function getUint32Memory0() {
@@ -253,16 +246,6 @@ function getUint32Memory0() {
253
246
  return cachedUint32Memory0;
254
247
  }
255
248
 
256
- function passArrayJsValueToWasm0(array, malloc) {
257
- const ptr = malloc(array.length * 4);
258
- const mem = getUint32Memory0();
259
- for (let i = 0; i < array.length; i++) {
260
- mem[ptr / 4 + i] = addHeapObject(array[i]);
261
- }
262
- WASM_VECTOR_LEN = array.length;
263
- return ptr;
264
- }
265
-
266
249
  function getArrayJsValueFromWasm0(ptr, len) {
267
250
  const mem = getUint32Memory0();
268
251
  const slice = mem.subarray(ptr / 4, ptr / 4 + len);
@@ -273,8 +256,67 @@ function getArrayJsValueFromWasm0(ptr, len) {
273
256
  return result;
274
257
  }
275
258
 
276
- function getArrayU32FromWasm0(ptr, len) {
277
- return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
259
+ function _assertClass(instance, klass) {
260
+ if (!(instance instanceof klass)) {
261
+ throw new Error(`expected instance of ${klass.name}`);
262
+ }
263
+ return instance.ptr;
264
+ }
265
+ /**
266
+ * @param {any} state_repository
267
+ * @param {DataContractCreateTransition} state_transition
268
+ * @returns {Promise<ValidationResult>}
269
+ */
270
+ export function validateDataContractCreateTransitionState(state_repository, state_transition) {
271
+ _assertClass(state_transition, DataContractCreateTransition);
272
+ var ptr0 = state_transition.ptr;
273
+ state_transition.ptr = 0;
274
+ const ret = wasm.validateDataContractCreateTransitionState(addHeapObject(state_repository), ptr0);
275
+ return takeObject(ret);
276
+ }
277
+
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);
289
+ }
290
+
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);
309
+ }
310
+ }
311
+
312
+ function passArrayJsValueToWasm0(array, malloc) {
313
+ const ptr = malloc(array.length * 4);
314
+ const mem = getUint32Memory0();
315
+ for (let i = 0; i < array.length; i++) {
316
+ mem[ptr / 4 + i] = addHeapObject(array[i]);
317
+ }
318
+ WASM_VECTOR_LEN = array.length;
319
+ return ptr;
278
320
  }
279
321
 
280
322
  function handleError(f, args) {
@@ -284,10 +326,16 @@ function handleError(f, args) {
284
326
  wasm.__wbindgen_exn_store(addHeapObject(e));
285
327
  }
286
328
  }
287
- function __wbg_adapter_723(arg0, arg1, arg2, arg3) {
288
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h9c669bb18ec068c7(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));
289
331
  }
290
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", });
291
339
  /**
292
340
  */
293
341
  export const KeyPurpose = Object.freeze({
@@ -305,10 +353,86 @@ ENCRYPTION:1,"1":"ENCRYPTION",
305
353
  DECRYPTION:2,"2":"DECRYPTION",WITHDRAW:3,"3":"WITHDRAW", });
306
354
  /**
307
355
  */
308
- export const KeySecurityLevel = Object.freeze({ MASTER:0,"0":"MASTER",CRITICAL:1,"1":"CRITICAL",HIGH:2,"2":"HIGH",MEDIUM:3,"3":"MEDIUM", });
356
+ export class ApplyDataContractCreateTransition {
357
+
358
+ static __wrap(ptr) {
359
+ const obj = Object.create(ApplyDataContractCreateTransition.prototype);
360
+ obj.ptr = ptr;
361
+
362
+ return obj;
363
+ }
364
+
365
+ __destroy_into_raw() {
366
+ const ptr = this.ptr;
367
+ this.ptr = 0;
368
+
369
+ return ptr;
370
+ }
371
+
372
+ free() {
373
+ const ptr = this.__destroy_into_raw();
374
+ wasm.__wbg_applydatacontractcreatetransition_free(ptr);
375
+ }
376
+ /**
377
+ * @param {any} state_repository
378
+ */
379
+ constructor(state_repository) {
380
+ const ret = wasm.applydatacontractcreatetransition_new(addHeapObject(state_repository));
381
+ return ApplyDataContractCreateTransition.__wrap(ret);
382
+ }
383
+ /**
384
+ * @param {DataContractCreateTransition} transition
385
+ * @returns {Promise<void>}
386
+ */
387
+ applyDataContractCreateTransition(transition) {
388
+ _assertClass(transition, DataContractCreateTransition);
389
+ var ptr0 = transition.ptr;
390
+ transition.ptr = 0;
391
+ const ret = wasm.applydatacontractcreatetransition_applyDataContractCreateTransition(this.ptr, ptr0);
392
+ return takeObject(ret);
393
+ }
394
+ }
309
395
  /**
310
396
  */
311
- 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", });
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
+ }
312
436
  /**
313
437
  */
314
438
  export class AssetLockProof {
@@ -879,6 +1003,24 @@ export class DataContractCreateTransition {
879
1003
  wasm.__wbg_datacontractcreatetransition_free(ptr);
880
1004
  }
881
1005
  /**
1006
+ * @param {any} raw_parameters
1007
+ */
1008
+ constructor(raw_parameters) {
1009
+ try {
1010
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1011
+ wasm.datacontractcreatetransition_new(retptr, addHeapObject(raw_parameters));
1012
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1013
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1014
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1015
+ if (r2) {
1016
+ throw takeObject(r1);
1017
+ }
1018
+ return DataContractCreateTransition.__wrap(r0);
1019
+ } finally {
1020
+ wasm.__wbindgen_add_to_stack_pointer(16);
1021
+ }
1022
+ }
1023
+ /**
882
1024
  * @returns {DataContract}
883
1025
  */
884
1026
  getDataContract() {
@@ -899,6 +1041,102 @@ export class DataContractCreateTransition {
899
1041
  const ret = wasm.datacontractcreatetransition_getEntropy(this.ptr);
900
1042
  return takeObject(ret);
901
1043
  }
1044
+ /**
1045
+ * @returns {Identifier}
1046
+ */
1047
+ getOwnerId() {
1048
+ const ret = wasm.datacontractcreatetransition_getOwnerId(this.ptr);
1049
+ return Identifier.__wrap(ret);
1050
+ }
1051
+ /**
1052
+ * @returns {number}
1053
+ */
1054
+ getType() {
1055
+ const ret = wasm.datacontractcreatetransition_getType(this.ptr);
1056
+ return ret >>> 0;
1057
+ }
1058
+ /**
1059
+ * @param {boolean | undefined} skip_signature
1060
+ * @returns {any}
1061
+ */
1062
+ toJSON(skip_signature) {
1063
+ try {
1064
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1065
+ wasm.datacontractcreatetransition_toJSON(retptr, this.ptr, isLikeNone(skip_signature) ? 0xFFFFFF : skip_signature ? 1 : 0);
1066
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1067
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1068
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1069
+ if (r2) {
1070
+ throw takeObject(r1);
1071
+ }
1072
+ return takeObject(r0);
1073
+ } finally {
1074
+ wasm.__wbindgen_add_to_stack_pointer(16);
1075
+ }
1076
+ }
1077
+ /**
1078
+ * @param {boolean | undefined} skip_signature
1079
+ * @returns {any}
1080
+ */
1081
+ toBuffer(skip_signature) {
1082
+ try {
1083
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1084
+ wasm.datacontractcreatetransition_toBuffer(retptr, this.ptr, isLikeNone(skip_signature) ? 0xFFFFFF : skip_signature ? 1 : 0);
1085
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1086
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1087
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1088
+ if (r2) {
1089
+ throw takeObject(r1);
1090
+ }
1091
+ return takeObject(r0);
1092
+ } finally {
1093
+ wasm.__wbindgen_add_to_stack_pointer(16);
1094
+ }
1095
+ }
1096
+ /**
1097
+ * @returns {any[]}
1098
+ */
1099
+ getModifiedDataIds() {
1100
+ try {
1101
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1102
+ wasm.datacontractcreatetransition_getModifiedDataIds(retptr, this.ptr);
1103
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1104
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1105
+ var v0 = getArrayJsValueFromWasm0(r0, r1).slice();
1106
+ wasm.__wbindgen_free(r0, r1 * 4);
1107
+ return v0;
1108
+ } finally {
1109
+ wasm.__wbindgen_add_to_stack_pointer(16);
1110
+ }
1111
+ }
1112
+ /**
1113
+ * @returns {boolean}
1114
+ */
1115
+ isDataContractStateTransition() {
1116
+ const ret = wasm.datacontractcreatetransition_isDataContractStateTransition(this.ptr);
1117
+ return ret !== 0;
1118
+ }
1119
+ /**
1120
+ * @returns {boolean}
1121
+ */
1122
+ isDocumentStateTransition() {
1123
+ const ret = wasm.datacontractcreatetransition_isDocumentStateTransition(this.ptr);
1124
+ return ret !== 0;
1125
+ }
1126
+ /**
1127
+ * @returns {boolean}
1128
+ */
1129
+ isIdentityStateTransition() {
1130
+ const ret = wasm.datacontractcreatetransition_isIdentityStateTransition(this.ptr);
1131
+ return ret !== 0;
1132
+ }
1133
+ /**
1134
+ * @param {StateTransitionExecutionContext} context
1135
+ */
1136
+ setExecutionContext(context) {
1137
+ _assertClass(context, StateTransitionExecutionContext);
1138
+ wasm.datacontractcreatetransition_setExecutionContext(this.ptr, context.ptr);
1139
+ }
902
1140
  }
903
1141
  /**
904
1142
  */
@@ -1199,16 +1437,8 @@ export class DataContractInvalidIndexDefinitionUpdateError {
1199
1437
  return ret >>> 0;
1200
1438
  }
1201
1439
  }
1202
- /**
1203
- */
1204
- export class DataContractMaxDepthError {
1205
-
1206
- static __wrap(ptr) {
1207
- const obj = Object.create(DataContractMaxDepthError.prototype);
1208
- obj.ptr = ptr;
1209
1440
 
1210
- return obj;
1211
- }
1441
+ export class DataContractMaxDepthError {
1212
1442
 
1213
1443
  __destroy_into_raw() {
1214
1444
  const ptr = this.ptr;
@@ -1225,7 +1455,7 @@ export class DataContractMaxDepthError {
1225
1455
  * @returns {number}
1226
1456
  */
1227
1457
  getDepth() {
1228
- const ret = wasm.datacontractmaxdeptherror_getDepth(this.ptr);
1458
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
1229
1459
  return ret >>> 0;
1230
1460
  }
1231
1461
  /**
@@ -1238,10 +1468,10 @@ export class DataContractMaxDepthError {
1238
1468
  }
1239
1469
  /**
1240
1470
  */
1241
- export class DataContractNotPresentError {
1471
+ export class DataContractMaxDepthExceedError {
1242
1472
 
1243
1473
  static __wrap(ptr) {
1244
- const obj = Object.create(DataContractNotPresentError.prototype);
1474
+ const obj = Object.create(DataContractMaxDepthExceedError.prototype);
1245
1475
  obj.ptr = ptr;
1246
1476
 
1247
1477
  return obj;
@@ -1256,17 +1486,40 @@ export class DataContractNotPresentError {
1256
1486
 
1257
1487
  free() {
1258
1488
  const ptr = this.__destroy_into_raw();
1259
- wasm.__wbg_datacontractnotpresenterror_free(ptr);
1260
- }
1261
- /**
1262
- * @returns {any}
1263
- */
1264
- getDataContractId() {
1265
- const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
1266
- return takeObject(ret);
1489
+ wasm.__wbg_datacontractmaxdepthexceederror_free(ptr);
1267
1490
  }
1268
- /**
1269
- * @returns {number}
1491
+ }
1492
+ /**
1493
+ */
1494
+ export class DataContractNotPresentError {
1495
+
1496
+ static __wrap(ptr) {
1497
+ const obj = Object.create(DataContractNotPresentError.prototype);
1498
+ obj.ptr = ptr;
1499
+
1500
+ return obj;
1501
+ }
1502
+
1503
+ __destroy_into_raw() {
1504
+ const ptr = this.ptr;
1505
+ this.ptr = 0;
1506
+
1507
+ return ptr;
1508
+ }
1509
+
1510
+ free() {
1511
+ const ptr = this.__destroy_into_raw();
1512
+ wasm.__wbg_datacontractnotpresenterror_free(ptr);
1513
+ }
1514
+ /**
1515
+ * @returns {any}
1516
+ */
1517
+ getDataContractId() {
1518
+ const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
1519
+ return takeObject(ret);
1520
+ }
1521
+ /**
1522
+ * @returns {number}
1270
1523
  */
1271
1524
  getCode() {
1272
1525
  const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
@@ -1335,6 +1588,183 @@ export class DataContractUniqueIndicesChangedError {
1335
1588
  }
1336
1589
  /**
1337
1590
  */
1591
+ export class DataContractUpdateTransition {
1592
+
1593
+ static __wrap(ptr) {
1594
+ const obj = Object.create(DataContractUpdateTransition.prototype);
1595
+ obj.ptr = ptr;
1596
+
1597
+ return obj;
1598
+ }
1599
+
1600
+ __destroy_into_raw() {
1601
+ const ptr = this.ptr;
1602
+ this.ptr = 0;
1603
+
1604
+ return ptr;
1605
+ }
1606
+
1607
+ free() {
1608
+ const ptr = this.__destroy_into_raw();
1609
+ wasm.__wbg_datacontractupdatetransition_free(ptr);
1610
+ }
1611
+ /**
1612
+ * @param {any} raw_parameters
1613
+ */
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
+ }
1628
+ }
1629
+ /**
1630
+ * @returns {DataContract}
1631
+ */
1632
+ getDataContract() {
1633
+ const ret = wasm.datacontractupdatetransition_getDataContract(this.ptr);
1634
+ return DataContract.__wrap(ret);
1635
+ }
1636
+ /**
1637
+ * @returns {number}
1638
+ */
1639
+ getProtocolVersion() {
1640
+ const ret = wasm.datacontractupdatetransition_getProtocolVersion(this.ptr);
1641
+ return ret >>> 0;
1642
+ }
1643
+ /**
1644
+ * @returns {any}
1645
+ */
1646
+ getEntropy() {
1647
+ const ret = wasm.datacontractupdatetransition_getEntropy(this.ptr);
1648
+ return takeObject(ret);
1649
+ }
1650
+ /**
1651
+ * @returns {Identifier}
1652
+ */
1653
+ getOwnerId() {
1654
+ const ret = wasm.datacontractupdatetransition_getOwnerId(this.ptr);
1655
+ return Identifier.__wrap(ret);
1656
+ }
1657
+ /**
1658
+ * @returns {number}
1659
+ */
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) {
1669
+ try {
1670
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1671
+ wasm.datacontractupdatetransition_toJSON(retptr, this.ptr, isLikeNone(skip_signature) ? 0xFFFFFF : skip_signature ? 1 : 0);
1672
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1673
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1674
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1675
+ if (r2) {
1676
+ throw takeObject(r1);
1677
+ }
1678
+ return takeObject(r0);
1679
+ } finally {
1680
+ wasm.__wbindgen_add_to_stack_pointer(16);
1681
+ }
1682
+ }
1683
+ /**
1684
+ * @param {boolean | undefined} skip_signature
1685
+ * @returns {any}
1686
+ */
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
+ */
1338
1768
  export class DataContractValidator {
1339
1769
 
1340
1770
  static __wrap(ptr) {
@@ -1361,6 +1791,25 @@ export class DataContractValidator {
1361
1791
  const ret = wasm.datacontractvalidator_new();
1362
1792
  return DataContractValidator.__wrap(ret);
1363
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
+ }
1364
1813
  }
1365
1814
  /**
1366
1815
  */
@@ -2224,14 +2673,14 @@ export class DocumentTimestampsMismatchError {
2224
2673
  * @returns {any}
2225
2674
  */
2226
2675
  getDocumentId() {
2227
- const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
2676
+ const ret = wasm.documenttimestampsmismatcherror_getDocumentId(this.ptr);
2228
2677
  return takeObject(ret);
2229
2678
  }
2230
2679
  /**
2231
2680
  * @returns {number}
2232
2681
  */
2233
2682
  getCode() {
2234
- const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
2683
+ const ret = wasm.documenttimestampsmismatcherror_getCode(this.ptr);
2235
2684
  return ret >>> 0;
2236
2685
  }
2237
2686
  }
@@ -2304,6 +2753,43 @@ export class DuplicateDocumentTransitionsWithIdsError {
2304
2753
  }
2305
2754
  /**
2306
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
+ */
2307
2793
  export class DuplicateIndexError {
2308
2794
 
2309
2795
  static __wrap(ptr) {
@@ -2481,20 +2967,11 @@ export class DuplicatedIdentityPublicKeyError {
2481
2967
  wasm.__wbg_duplicatedidentitypublickeyerror_free(ptr);
2482
2968
  }
2483
2969
  /**
2484
- * @returns {Uint32Array}
2970
+ * @returns {Array<any>}
2485
2971
  */
2486
2972
  getDuplicatedPublicKeysIds() {
2487
- try {
2488
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2489
- wasm.duplicatedidentitypublickeyerror_getDuplicatedPublicKeysIds(retptr, this.ptr);
2490
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2491
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2492
- var v0 = getArrayU32FromWasm0(r0, r1).slice();
2493
- wasm.__wbindgen_free(r0, r1 * 4);
2494
- return v0;
2495
- } finally {
2496
- wasm.__wbindgen_add_to_stack_pointer(16);
2497
- }
2973
+ const ret = wasm.duplicatedidentitypublickeyerror_getDuplicatedPublicKeysIds(this.ptr);
2974
+ return takeObject(ret);
2498
2975
  }
2499
2976
  /**
2500
2977
  * @returns {number}
@@ -2527,20 +3004,11 @@ export class DuplicatedIdentityPublicKeyIdError {
2527
3004
  wasm.__wbg_duplicatedidentitypublickeyiderror_free(ptr);
2528
3005
  }
2529
3006
  /**
2530
- * @returns {Uint32Array}
3007
+ * @returns {Array<any>}
2531
3008
  */
2532
3009
  getDuplicatedIds() {
2533
- try {
2534
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2535
- wasm.duplicatedidentitypublickeyiderror_getDuplicatedIds(retptr, this.ptr);
2536
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2537
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2538
- var v0 = getArrayU32FromWasm0(r0, r1).slice();
2539
- wasm.__wbindgen_free(r0, r1 * 4);
2540
- return v0;
2541
- } finally {
2542
- wasm.__wbindgen_add_to_stack_pointer(16);
2543
- }
3010
+ const ret = wasm.duplicatedidentitypublickeyiderror_getDuplicatedIds(this.ptr);
3011
+ return takeObject(ret);
2544
3012
  }
2545
3013
  /**
2546
3014
  * @returns {number}
@@ -3615,7 +4083,7 @@ export class IdentityPublicKeyDisabledAtWindowViolationError {
3615
4083
  * @returns {number}
3616
4084
  */
3617
4085
  getCode() {
3618
- const ret = wasm.identitypublickeydisabledatwindowviolationerror_getCode(this.ptr);
4086
+ const ret = wasm.datacontract_getProtocolVersion(this.ptr);
3619
4087
  return ret >>> 0;
3620
4088
  }
3621
4089
  }
@@ -3682,14 +4150,14 @@ export class IdentityPublicKeyIsReadOnlyError {
3682
4150
  * @returns {number}
3683
4151
  */
3684
4152
  getKeyId() {
3685
- const ret = wasm.identitypublickeyisreadonlyerror_getKeyId(this.ptr);
4153
+ const ret = wasm.identitypublickeyisdisablederror_getPublicKeyIndex(this.ptr);
3686
4154
  return ret >>> 0;
3687
4155
  }
3688
4156
  /**
3689
4157
  * @returns {number}
3690
4158
  */
3691
4159
  getCode() {
3692
- const ret = wasm.identitypublickeyisreadonlyerror_getCode(this.ptr);
4160
+ const ret = wasm.identitypublickeyisdisablederror_getCode(this.ptr);
3693
4161
  return ret >>> 0;
3694
4162
  }
3695
4163
  }
@@ -3868,7 +4336,7 @@ export class IncompatibleRe2PatternError {
3868
4336
  getPattern() {
3869
4337
  try {
3870
4338
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3871
- wasm.duplicateindexerror_getDocumentType(retptr, this.ptr);
4339
+ wasm.incompatiblere2patternerror_getPattern(retptr, this.ptr);
3872
4340
  var r0 = getInt32Memory0()[retptr / 4 + 0];
3873
4341
  var r1 = getInt32Memory0()[retptr / 4 + 1];
3874
4342
  return getStringFromWasm0(r0, r1);
@@ -3995,7 +4463,7 @@ export class IndexDefinition {
3995
4463
  getName() {
3996
4464
  try {
3997
4465
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3998
- wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
4466
+ wasm.indexdefinition_getName(retptr, this.ptr);
3999
4467
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4000
4468
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4001
4469
  return getStringFromWasm0(r0, r1);
@@ -4056,7 +4524,7 @@ export class IndexProperty {
4056
4524
  getName() {
4057
4525
  try {
4058
4526
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4059
- wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
4527
+ wasm.indexdefinition_getName(retptr, this.ptr);
4060
4528
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4061
4529
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4062
4530
  return getStringFromWasm0(r0, r1);
@@ -4330,9 +4798,8 @@ export class InvalidDataContractError {
4330
4798
  /**
4331
4799
  * @param {any[]} errors
4332
4800
  * @param {any} raw_data_contract
4333
- * @returns {InvalidDataContractError}
4334
4801
  */
4335
- static new(errors, raw_data_contract) {
4802
+ constructor(errors, raw_data_contract) {
4336
4803
  const ptr0 = passArrayJsValueToWasm0(errors, wasm.__wbindgen_malloc);
4337
4804
  const len0 = WASM_VECTOR_LEN;
4338
4805
  const ret = wasm.invaliddatacontracterror_new(ptr0, len0, addHeapObject(raw_data_contract));
@@ -4361,6 +4828,21 @@ export class InvalidDataContractError {
4361
4828
  const ret = wasm.invaliddatacontracterror_getRawDataContract(this.ptr);
4362
4829
  return takeObject(ret);
4363
4830
  }
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
+ }
4364
4846
  }
4365
4847
  /**
4366
4848
  */
@@ -4402,7 +4884,7 @@ export class InvalidDataContractIdError {
4402
4884
  * @returns {number}
4403
4885
  */
4404
4886
  getCode() {
4405
- const ret = wasm.inconsistentcompoundindexdataerror_getCode(this.ptr);
4887
+ const ret = wasm.invaliddatacontractiderror_getCode(this.ptr);
4406
4888
  return ret >>> 0;
4407
4889
  }
4408
4890
  }
@@ -4700,7 +5182,7 @@ export class InvalidDocumentTypeError {
4700
5182
  getDocumentType() {
4701
5183
  try {
4702
5184
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4703
- wasm.invaliddocumenttypeerror_getDocumentType(retptr, this.ptr);
5185
+ wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
4704
5186
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4705
5187
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4706
5188
  return getStringFromWasm0(r0, r1);
@@ -5112,14 +5594,14 @@ export class InvalidIdentityPublicKeyIdError {
5112
5594
  * @returns {number}
5113
5595
  */
5114
5596
  getId() {
5115
- const ret = wasm.identitypublickeyisreadonlyerror_getKeyId(this.ptr);
5597
+ const ret = wasm.invalididentitypublickeyiderror_getId(this.ptr);
5116
5598
  return ret >>> 0;
5117
5599
  }
5118
5600
  /**
5119
5601
  * @returns {number}
5120
5602
  */
5121
5603
  getCode() {
5122
- const ret = wasm.identitypublickeyisreadonlyerror_getCode(this.ptr);
5604
+ const ret = wasm.invalididentitypublickeyiderror_getCode(this.ptr);
5123
5605
  return ret >>> 0;
5124
5606
  }
5125
5607
  }
@@ -5155,15 +5637,15 @@ export class InvalidIdentityPublicKeySecurityLevelError {
5155
5637
  /**
5156
5638
  * @returns {number}
5157
5639
  */
5158
- getPurpose() {
5159
- const ret = wasm.invalididentitypublickeysecuritylevelerror_getPurpose(this.ptr);
5640
+ getPublicKeyPurpose() {
5641
+ const ret = wasm.invalididentitypublickeysecuritylevelerror_getPublicKeyPurpose(this.ptr);
5160
5642
  return ret;
5161
5643
  }
5162
5644
  /**
5163
5645
  * @returns {number}
5164
5646
  */
5165
- getSecurityLevel() {
5166
- const ret = wasm.invalididentitypublickeysecuritylevelerror_getSecurityLevel(this.ptr);
5647
+ getPublicKeySecurityLevel() {
5648
+ const ret = wasm.invalididentitypublickeysecuritylevelerror_getPublicKeySecurityLevel(this.ptr);
5167
5649
  return ret;
5168
5650
  }
5169
5651
  /**
@@ -5686,7 +6168,7 @@ export class InvalidStateTransitionTypeError {
5686
6168
  * @returns {number}
5687
6169
  */
5688
6170
  getCode() {
5689
- const ret = wasm.datacontractmaxdeptherror_getDepth(this.ptr);
6171
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
5690
6172
  return ret >>> 0;
5691
6173
  }
5692
6174
  }
@@ -5869,7 +6351,7 @@ export class MaxIdentityPublicKeyLimitReachedError {
5869
6351
  * @returns {number}
5870
6352
  */
5871
6353
  getIdentityId() {
5872
- const ret = wasm.datacontractmaxdeptherror_getDepth(this.ptr);
6354
+ const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
5873
6355
  return ret >>> 0;
5874
6356
  }
5875
6357
  /**
@@ -6043,6 +6525,36 @@ export class MissingDocumentTransitionActionError {
6043
6525
  }
6044
6526
  /**
6045
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
+ */
6046
6558
  export class MissingDocumentTypeError {
6047
6559
 
6048
6560
  static __wrap(ptr) {
@@ -6134,7 +6646,7 @@ export class MissingPublicKeyError {
6134
6646
  * @returns {number}
6135
6647
  */
6136
6648
  getCode() {
6137
- const ret = wasm.identitypublickeyisdisablederror_getCode(this.ptr);
6649
+ const ret = wasm.invalididentitypublickeyiderror_getCode(this.ptr);
6138
6650
  return ret >>> 0;
6139
6651
  }
6140
6652
  }
@@ -6290,7 +6802,7 @@ export class PublicKeyIsDisabledError {
6290
6802
  * @returns {number}
6291
6803
  */
6292
6804
  getCode() {
6293
- const ret = wasm.identitypublickeyisdisablederror_getCode(this.ptr);
6805
+ const ret = wasm.invalididentitypublickeyiderror_getCode(this.ptr);
6294
6806
  return ret >>> 0;
6295
6807
  }
6296
6808
  }
@@ -6394,8 +6906,19 @@ export class PublicKeysValidator {
6394
6906
  * @param {any} adapter
6395
6907
  */
6396
6908
  constructor(adapter) {
6397
- const ret = wasm.publickeysvalidator_new(addHeapObject(adapter));
6398
- 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
+ }
6399
6922
  }
6400
6923
  /**
6401
6924
  * @param {Array<any>} public_keys
@@ -6435,6 +6958,25 @@ export class PublicKeysValidator {
6435
6958
  wasm.__wbindgen_add_to_stack_pointer(16);
6436
6959
  }
6437
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
+ }
6438
6980
  }
6439
6981
  /**
6440
6982
  */
@@ -6462,19 +7004,58 @@ export class SerializedObjectParsingError {
6462
7004
  * @returns {any}
6463
7005
  */
6464
7006
  getParsingError() {
6465
- const ret = wasm.serializedobjectparsingerror_getParsingError(this.ptr);
7007
+ const ret = wasm.protocolversionparsingerror_getParsingError(this.ptr);
6466
7008
  return takeObject(ret);
6467
7009
  }
6468
7010
  /**
6469
7011
  * @returns {number}
6470
7012
  */
6471
7013
  getCode() {
6472
- const ret = wasm.serializedobjectparsingerror_getCode(this.ptr);
7014
+ const ret = wasm.protocolversionparsingerror_getCode(this.ptr);
6473
7015
  return ret >>> 0;
6474
7016
  }
6475
7017
  }
6476
7018
  /**
6477
7019
  */
7020
+ export class StateTransitionExecutionContext {
7021
+
7022
+ static __wrap(ptr) {
7023
+ const obj = Object.create(StateTransitionExecutionContext.prototype);
7024
+ obj.ptr = ptr;
7025
+
7026
+ return obj;
7027
+ }
7028
+
7029
+ __destroy_into_raw() {
7030
+ const ptr = this.ptr;
7031
+ this.ptr = 0;
7032
+
7033
+ return ptr;
7034
+ }
7035
+
7036
+ free() {
7037
+ const ptr = this.__destroy_into_raw();
7038
+ wasm.__wbg_statetransitionexecutioncontext_free(ptr);
7039
+ }
7040
+ /**
7041
+ */
7042
+ constructor() {
7043
+ const ret = wasm.statetransitionexecutioncontext_new();
7044
+ return StateTransitionExecutionContext.__wrap(ret);
7045
+ }
7046
+ /**
7047
+ */
7048
+ enableDryRun() {
7049
+ wasm.statetransitionexecutioncontext_enableDryRun(this.ptr);
7050
+ }
7051
+ /**
7052
+ */
7053
+ disableDryRun() {
7054
+ wasm.statetransitionexecutioncontext_disableDryRun(this.ptr);
7055
+ }
7056
+ }
7057
+ /**
7058
+ */
6478
7059
  export class StateTransitionMaxSizeExceededError {
6479
7060
 
6480
7061
  static __wrap(ptr) {
@@ -6499,21 +7080,21 @@ export class StateTransitionMaxSizeExceededError {
6499
7080
  * @returns {number}
6500
7081
  */
6501
7082
  getActualSizeKBytes() {
6502
- const ret = wasm.invaliddocumentrevisionerror_getCurrentRevision(this.ptr);
7083
+ const ret = wasm.invaliddatacontractversionerror_getExpectedVersion(this.ptr);
6503
7084
  return ret >>> 0;
6504
7085
  }
6505
7086
  /**
6506
7087
  * @returns {number}
6507
7088
  */
6508
7089
  getMaxSizeKBytes() {
6509
- const ret = wasm.invaliddocumentrevisionerror_getCode(this.ptr);
7090
+ const ret = wasm.invaliddatacontractversionerror_getVersion(this.ptr);
6510
7091
  return ret >>> 0;
6511
7092
  }
6512
7093
  /**
6513
7094
  * @returns {number}
6514
7095
  */
6515
7096
  getCode() {
6516
- const ret = wasm.statetransitionmaxsizeexceedederror_getCode(this.ptr);
7097
+ const ret = wasm.invaliddatacontractversionerror_getCode(this.ptr);
6517
7098
  return ret >>> 0;
6518
7099
  }
6519
7100
  }
@@ -6715,7 +7296,7 @@ export class UniqueIndicesLimitReachedError {
6715
7296
  * @returns {number}
6716
7297
  */
6717
7298
  getIndexLimit() {
6718
- const ret = wasm.uniqueindiceslimitreachederror_getIndexLimit(this.ptr);
7299
+ const ret = wasm.invaliddocumenttypeerror_getCode(this.ptr);
6719
7300
  return ret >>> 0;
6720
7301
  }
6721
7302
  /**
@@ -6913,215 +7494,195 @@ async function load(module, imports) {
6913
7494
  function getImports() {
6914
7495
  const imports = {};
6915
7496
  imports.wbg = {};
6916
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
6917
- const ret = getObject(arg0);
6918
- return addHeapObject(ret);
6919
- };
6920
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
6921
- takeObject(arg0);
6922
- };
6923
- imports.wbg.__wbg_indexproperty_new = function(arg0) {
6924
- const ret = IndexProperty.__wrap(arg0);
7497
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
7498
+ const ret = getStringFromWasm0(arg0, arg1);
6925
7499
  return addHeapObject(ret);
6926
7500
  };
6927
- imports.wbg.__wbg_identitypublickey_new = function(arg0) {
6928
- const ret = IdentityPublicKey.__wrap(arg0);
7501
+ imports.wbg.__wbg_from_1240938ee473cab4 = function(arg0, arg1) {
7502
+ const ret = new Buffer(getArrayU8FromWasm0(arg0, arg1));
6929
7503
  return addHeapObject(ret);
6930
7504
  };
6931
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
6932
- const ret = new Error(getStringFromWasm0(arg0, arg1));
6933
- return addHeapObject(ret);
7505
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
7506
+ takeObject(arg0);
6934
7507
  };
6935
- imports.wbg.__wbg_datacontractalreadypresenterror_new = function(arg0) {
6936
- const ret = DataContractAlreadyPresentError.__wrap(arg0);
7508
+ imports.wbg.__wbg_duplicatedocumenttransitionswithidserror_new = function(arg0) {
7509
+ const ret = DuplicateDocumentTransitionsWithIdsError.__wrap(arg0);
6937
7510
  return addHeapObject(ret);
6938
7511
  };
6939
- imports.wbg.__wbg_datacontractnotpresenterror_new = function(arg0) {
6940
- const ret = DataContractNotPresentError.__wrap(arg0);
7512
+ imports.wbg.__wbg_validationresult_new = function(arg0) {
7513
+ const ret = ValidationResult.__wrap(arg0);
6941
7514
  return addHeapObject(ret);
6942
7515
  };
6943
- imports.wbg.__wbg_incompatibledatacontractschemaerror_new = function(arg0) {
6944
- const ret = IncompatibleDataContractSchemaError.__wrap(arg0);
7516
+ imports.wbg.__wbg_invalididentityassetlocktransactionoutputerror_new = function(arg0) {
7517
+ const ret = InvalidIdentityAssetLockTransactionOutputError.__wrap(arg0);
6945
7518
  return addHeapObject(ret);
6946
7519
  };
6947
- imports.wbg.__wbg_invalididentitypublickeytypeerror_new = function(arg0) {
6948
- const ret = InvalidIdentityPublicKeyTypeError.__wrap(arg0);
7520
+ imports.wbg.__wbg_identityassetlocktransactionoutputnotfounderror_new = function(arg0) {
7521
+ const ret = IdentityAssetLockTransactionOutputNotFoundError.__wrap(arg0);
6949
7522
  return addHeapObject(ret);
6950
7523
  };
6951
- imports.wbg.__wbg_datacontractcreatetransition_new = function(arg0) {
6952
- const ret = DataContractCreateTransition.__wrap(arg0);
7524
+ imports.wbg.__wbg_invalidassetlocktransactionoutputreturnsizeerror_new = function(arg0) {
7525
+ const ret = InvalidAssetLockTransactionOutputReturnSizeError.__wrap(arg0);
6953
7526
  return addHeapObject(ret);
6954
7527
  };
6955
- imports.wbg.__wbg_serializedobjectparsingerror_new = function(arg0) {
6956
- const ret = SerializedObjectParsingError.__wrap(arg0);
7528
+ imports.wbg.__wbg_identifier_new = function(arg0) {
7529
+ const ret = Identifier.__wrap(arg0);
6957
7530
  return addHeapObject(ret);
6958
7531
  };
6959
- imports.wbg.__wbg_documentnotfounderror_new = function(arg0) {
6960
- const ret = DocumentNotFoundError.__wrap(arg0);
7532
+ imports.wbg.__wbg_duplicatedocumenttransitionswithindiceserror_new = function(arg0) {
7533
+ const ret = DuplicateDocumentTransitionsWithIndicesError.__wrap(arg0);
6961
7534
  return addHeapObject(ret);
6962
7535
  };
6963
- imports.wbg.__wbg_document_new = function(arg0) {
6964
- const ret = Document.__wrap(arg0);
6965
- return addHeapObject(ret);
7536
+ imports.wbg.__wbindgen_is_string = function(arg0) {
7537
+ const ret = typeof(getObject(arg0)) === 'string';
7538
+ return ret;
6966
7539
  };
6967
- imports.wbg.__wbg_identitynotfounderror_new = function(arg0) {
6968
- const ret = IdentityNotFoundError.__wrap(arg0);
6969
- return addHeapObject(ret);
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;
6970
7547
  };
6971
- imports.wbg.__wbg_documenttimestampsmismatcherror_new = function(arg0) {
6972
- const ret = DocumentTimestampsMismatchError.__wrap(arg0);
7548
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
7549
+ const ret = getObject(arg0);
6973
7550
  return addHeapObject(ret);
6974
7551
  };
6975
- imports.wbg.__wbg_invalidindexedpropertyconstrainterror_new = function(arg0) {
6976
- const ret = InvalidIndexedPropertyConstraintError.__wrap(arg0);
7552
+ imports.wbg.__wbg_indexproperty_new = function(arg0) {
7553
+ const ret = IndexProperty.__wrap(arg0);
6977
7554
  return addHeapObject(ret);
6978
7555
  };
6979
- imports.wbg.__wbg_documentalreadypresenterror_new = function(arg0) {
6980
- const ret = DocumentAlreadyPresentError.__wrap(arg0);
7556
+ imports.wbg.__wbg_identitypublickey_new = function(arg0) {
7557
+ const ret = IdentityPublicKey.__wrap(arg0);
6981
7558
  return addHeapObject(ret);
6982
7559
  };
6983
- imports.wbg.__wbg_documentalreadyexistserror_new = function(arg0) {
6984
- const ret = DocumentAlreadyExistsError.__wrap(arg0);
7560
+ imports.wbg.__wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_new = function(arg0) {
7561
+ const ret = InvalidIdentityCreditWithdrawalTransitionCoreFeeError.__wrap(arg0);
6985
7562
  return addHeapObject(ret);
6986
7563
  };
6987
- imports.wbg.__wbg_documentnotprovidederror_new = function(arg0) {
6988
- const ret = DocumentNotProvidedError.__wrap(arg0);
7564
+ imports.wbg.__wbg_datatriggerinvalidresulterror_new = function(arg0) {
7565
+ const ret = DataTriggerInvalidResultError.__wrap(arg0);
6989
7566
  return addHeapObject(ret);
6990
7567
  };
6991
- imports.wbg.__wbg_invalidactionnameerror_new = function(arg0) {
6992
- const ret = InvalidActionNameError.__wrap(arg0);
7568
+ imports.wbg.__wbg_protocolversionparsingerror_new = function(arg0) {
7569
+ const ret = ProtocolVersionParsingError.__wrap(arg0);
6993
7570
  return addHeapObject(ret);
6994
7571
  };
6995
- imports.wbg.__wbg_invaliddocumentactionerror_new = function(arg0) {
6996
- const ret = InvalidDocumentActionError.__wrap(arg0);
7572
+ imports.wbg.__wbg_serializedobjectparsingerror_new = function(arg0) {
7573
+ const ret = SerializedObjectParsingError.__wrap(arg0);
6997
7574
  return addHeapObject(ret);
6998
7575
  };
6999
- imports.wbg.__wbg_invaliddocumenterror_new = function(arg0) {
7000
- const ret = InvalidDocumentError.__wrap(arg0);
7001
- 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;
7002
7580
  };
7003
- imports.wbg.__wbg_invalidinitialrevisionerror_new = function(arg0) {
7004
- const ret = InvalidInitialRevisionError.__wrap(arg0);
7005
- return addHeapObject(ret);
7581
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
7582
+ const ret = typeof(getObject(arg0)) === 'bigint';
7583
+ return ret;
7006
7584
  };
7007
- imports.wbg.__wbg_mismatchownersidserror_new = function(arg0) {
7008
- const ret = MismatchOwnersIdsError.__wrap(arg0);
7585
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
7586
+ const ret = arg0;
7009
7587
  return addHeapObject(ret);
7010
7588
  };
7011
- imports.wbg.__wbg_notdocumentssuppliederror_new = function(arg0) {
7012
- const ret = NotDocumentsSuppliedError.__wrap(arg0);
7013
- return addHeapObject(ret);
7589
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
7590
+ const ret = getObject(arg0) === getObject(arg1);
7591
+ return ret;
7014
7592
  };
7015
- imports.wbg.__wbg_from_1240938ee473cab4 = function(arg0, arg1) {
7016
- const ret = new Buffer(getArrayU8FromWasm0(arg0, arg1));
7017
- return addHeapObject(ret);
7593
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
7594
+ const obj = getObject(arg1);
7595
+ const ret = typeof(obj) === 'number' ? obj : undefined;
7596
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
7597
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
7018
7598
  };
7019
- imports.wbg.__wbg_indexdefinition_new = function(arg0) {
7020
- const ret = IndexDefinition.__wrap(arg0);
7021
- 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;
7022
7603
  };
7023
- imports.wbg.__wbg_invaliddocumenttransitionactionerror_new = function(arg0) {
7024
- const ret = InvalidDocumentTransitionActionError.__wrap(arg0);
7025
- return addHeapObject(ret);
7604
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
7605
+ const ret = getObject(arg0) in getObject(arg1);
7606
+ return ret;
7026
7607
  };
7027
- imports.wbg.__wbg_invalidstatetransitiontypeerror_new = function(arg0) {
7028
- const ret = InvalidStateTransitionTypeError.__wrap(arg0);
7608
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
7609
+ const ret = BigInt.asUintN(64, arg0);
7029
7610
  return addHeapObject(ret);
7030
7611
  };
7031
- imports.wbg.__wbg_maxidentitypublickeylimitreachederror_new = function(arg0) {
7032
- const ret = MaxIdentityPublicKeyLimitReachedError.__wrap(arg0);
7612
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
7613
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
7033
7614
  return addHeapObject(ret);
7034
7615
  };
7035
- imports.wbg.__wbg_invalididentitypublickeyiderror_new = function(arg0) {
7036
- const ret = InvalidIdentityPublicKeyIdError.__wrap(arg0);
7037
- return addHeapObject(ret);
7616
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
7617
+ const ret = getObject(arg0) === undefined;
7618
+ return ret;
7038
7619
  };
7039
- imports.wbg.__wbg_invalidjsonschemareferror_new = function(arg0) {
7040
- const ret = InvalidJsonSchemaRefError.__wrap(arg0);
7620
+ imports.wbg.__wbg_datacontract_new = function(arg0) {
7621
+ const ret = DataContract.__wrap(arg0);
7041
7622
  return addHeapObject(ret);
7042
7623
  };
7043
- imports.wbg.__wbg_datacontractmaxdeptherror_new = function(arg0) {
7044
- const ret = DataContractMaxDepthError.__wrap(arg0);
7624
+ imports.wbg.__wbg_invaliddatacontracterror_new = function(arg0) {
7625
+ const ret = InvalidDataContractError.__wrap(arg0);
7045
7626
  return addHeapObject(ret);
7046
7627
  };
7047
- imports.wbg.__wbg_jsonschemacompilationerror_new = function(arg0) {
7048
- const ret = JsonSchemaCompilationError.__wrap(arg0);
7628
+ imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function(arg0) {
7629
+ const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
7049
7630
  return addHeapObject(ret);
7050
7631
  };
7051
- imports.wbg.__wbg_identitypublickeyisreadonlyerror_new = function(arg0) {
7052
- const ret = IdentityPublicKeyIsReadOnlyError.__wrap(arg0);
7632
+ imports.wbg.__wbg_datacontractcreatetransition_new = function(arg0) {
7633
+ const ret = DataContractCreateTransition.__wrap(arg0);
7053
7634
  return addHeapObject(ret);
7054
7635
  };
7055
- imports.wbg.__wbg_datacontract_new = function(arg0) {
7056
- const ret = DataContract.__wrap(arg0);
7636
+ imports.wbg.__wbg_indexdefinition_new = function(arg0) {
7637
+ const ret = IndexDefinition.__wrap(arg0);
7057
7638
  return addHeapObject(ret);
7058
7639
  };
7059
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
7060
- const obj = getObject(arg1);
7061
- const ret = typeof(obj) === 'string' ? obj : undefined;
7062
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7063
- var len0 = WASM_VECTOR_LEN;
7064
- getInt32Memory0()[arg0 / 4 + 1] = len0;
7065
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
7066
- };
7067
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
7068
- const ret = getStringFromWasm0(arg0, arg1);
7640
+ imports.wbg.__wbg_documentalreadyexistserror_new = function(arg0) {
7641
+ const ret = DocumentAlreadyExistsError.__wrap(arg0);
7069
7642
  return addHeapObject(ret);
7070
7643
  };
7071
- imports.wbg.__wbindgen_is_string = function(arg0) {
7072
- const ret = typeof(getObject(arg0)) === 'string';
7073
- return ret;
7074
- };
7075
- imports.wbg.__wbg_invalidindexpropertytypeerror_new = function(arg0) {
7076
- const ret = InvalidIndexPropertyTypeError.__wrap(arg0);
7644
+ imports.wbg.__wbg_documentnotprovidederror_new = function(arg0) {
7645
+ const ret = DocumentNotProvidedError.__wrap(arg0);
7077
7646
  return addHeapObject(ret);
7078
7647
  };
7079
- imports.wbg.__wbg_missingpublickeyerror_new = function(arg0) {
7080
- const ret = MissingPublicKeyError.__wrap(arg0);
7648
+ imports.wbg.__wbg_invalidactionnameerror_new = function(arg0) {
7649
+ const ret = InvalidActionNameError.__wrap(arg0);
7081
7650
  return addHeapObject(ret);
7082
7651
  };
7083
- imports.wbg.__wbg_invalididentitykeysignatureerror_new = function(arg0) {
7084
- const ret = InvalidIdentityKeySignatureError.__wrap(arg0);
7652
+ imports.wbg.__wbg_invaliddocumentactionerror_new = function(arg0) {
7653
+ const ret = InvalidDocumentActionError.__wrap(arg0);
7085
7654
  return addHeapObject(ret);
7086
7655
  };
7087
- imports.wbg.__wbg_identitypublickeyisdisablederror_new = function(arg0) {
7088
- const ret = IdentityPublicKeyIsDisabledError.__wrap(arg0);
7656
+ imports.wbg.__wbg_invaliddocumenterror_new = function(arg0) {
7657
+ const ret = InvalidDocumentError.__wrap(arg0);
7089
7658
  return addHeapObject(ret);
7090
7659
  };
7091
- imports.wbg.__wbg_identitypublickeydisabledatwindowviolationerror_new = function(arg0) {
7092
- const ret = IdentityPublicKeyDisabledAtWindowViolationError.__wrap(arg0);
7660
+ imports.wbg.__wbg_invalidinitialrevisionerror_new = function(arg0) {
7661
+ const ret = InvalidInitialRevisionError.__wrap(arg0);
7093
7662
  return addHeapObject(ret);
7094
7663
  };
7095
- imports.wbg.__wbg_invalididentitypublickeysecuritylevelerror_new = function(arg0) {
7096
- const ret = InvalidIdentityPublicKeySecurityLevelError.__wrap(arg0);
7664
+ imports.wbg.__wbg_mismatchownersidserror_new = function(arg0) {
7665
+ const ret = MismatchOwnersIdsError.__wrap(arg0);
7097
7666
  return addHeapObject(ret);
7098
7667
  };
7099
- imports.wbg.__wbg_publickeyisdisablederror_new = function(arg0) {
7100
- const ret = PublicKeyIsDisabledError.__wrap(arg0);
7668
+ imports.wbg.__wbg_notdocumentssuppliederror_new = function(arg0) {
7669
+ const ret = NotDocumentsSuppliedError.__wrap(arg0);
7101
7670
  return addHeapObject(ret);
7102
7671
  };
7103
7672
  imports.wbg.__wbg_documentcreatetransition_new = function(arg0) {
7104
7673
  const ret = DocumentCreateTransition.__wrap(arg0);
7105
7674
  return addHeapObject(ret);
7106
7675
  };
7107
- imports.wbg.__wbg_documenttransition_new = function(arg0) {
7108
- const ret = DocumentTransition.__wrap(arg0);
7109
- return addHeapObject(ret);
7110
- };
7111
7676
  imports.wbg.__wbg_documentdeletetransition_new = function(arg0) {
7112
7677
  const ret = DocumentDeleteTransition.__wrap(arg0);
7113
7678
  return addHeapObject(ret);
7114
7679
  };
7115
- imports.wbg.__wbg_validatePublicKey_bee145d16f9dc2e3 = function(arg0, arg1, arg2) {
7116
- const ret = getObject(arg0).validatePublicKey(getArrayU8FromWasm0(arg1, arg2));
7117
- return ret;
7118
- };
7119
- imports.wbg.__wbg_invaliddatacontracterror_new = function(arg0) {
7120
- const ret = InvalidDataContractError.__wrap(arg0);
7680
+ imports.wbg.__wbg_documenttransition_new = function(arg0) {
7681
+ const ret = DocumentTransition.__wrap(arg0);
7121
7682
  return addHeapObject(ret);
7122
7683
  };
7123
- imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function(arg0) {
7124
- const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
7684
+ imports.wbg.__wbg_document_new = function(arg0) {
7685
+ const ret = Document.__wrap(arg0);
7125
7686
  return addHeapObject(ret);
7126
7687
  };
7127
7688
  imports.wbg.__wbg_datacontracthavenewuniqueindexerror_new = function(arg0) {
@@ -7136,6 +7697,10 @@ function getImports() {
7136
7697
  const ret = DataContractInvalidIndexDefinitionUpdateError.__wrap(arg0);
7137
7698
  return addHeapObject(ret);
7138
7699
  };
7700
+ imports.wbg.__wbg_datacontractmaxdepthexceederror_new = function(arg0) {
7701
+ const ret = DataContractMaxDepthExceedError.__wrap(arg0);
7702
+ return addHeapObject(ret);
7703
+ };
7139
7704
  imports.wbg.__wbg_datacontractuniqueindiceschangederror_new = function(arg0) {
7140
7705
  const ret = DataContractUniqueIndicesChangedError.__wrap(arg0);
7141
7706
  return addHeapObject(ret);
@@ -7144,6 +7709,10 @@ function getImports() {
7144
7709
  const ret = DuplicateIndexNameError.__wrap(arg0);
7145
7710
  return addHeapObject(ret);
7146
7711
  };
7712
+ imports.wbg.__wbg_incompatibledatacontractschemaerror_new = function(arg0) {
7713
+ const ret = IncompatibleDataContractSchemaError.__wrap(arg0);
7714
+ return addHeapObject(ret);
7715
+ };
7147
7716
  imports.wbg.__wbg_incompatiblere2patternerror_new = function(arg0) {
7148
7717
  const ret = IncompatibleRe2PatternError.__wrap(arg0);
7149
7718
  return addHeapObject(ret);
@@ -7156,6 +7725,14 @@ function getImports() {
7156
7725
  const ret = InvalidCompoundIndexError.__wrap(arg0);
7157
7726
  return addHeapObject(ret);
7158
7727
  };
7728
+ imports.wbg.__wbg_invalidindexpropertytypeerror_new = function(arg0) {
7729
+ const ret = InvalidIndexPropertyTypeError.__wrap(arg0);
7730
+ return addHeapObject(ret);
7731
+ };
7732
+ imports.wbg.__wbg_invalidindexedpropertyconstrainterror_new = function(arg0) {
7733
+ const ret = InvalidIndexedPropertyConstraintError.__wrap(arg0);
7734
+ return addHeapObject(ret);
7735
+ };
7159
7736
  imports.wbg.__wbg_systempropertyindexalreadypresenterror_new = function(arg0) {
7160
7737
  const ret = SystemPropertyIndexAlreadyPresentError.__wrap(arg0);
7161
7738
  return addHeapObject(ret);
@@ -7176,18 +7753,22 @@ function getImports() {
7176
7753
  const ret = InvalidDataContractVersionError.__wrap(arg0);
7177
7754
  return addHeapObject(ret);
7178
7755
  };
7179
- imports.wbg.__wbg_protocolversionparsingerror_new = function(arg0) {
7180
- const ret = ProtocolVersionParsingError.__wrap(arg0);
7756
+ imports.wbg.__wbg_invalidjsonschemareferror_new = function(arg0) {
7757
+ const ret = InvalidJsonSchemaRefError.__wrap(arg0);
7181
7758
  return addHeapObject(ret);
7182
7759
  };
7183
- imports.wbg.__wbg_duplicatedocumenttransitionswithidserror_new = function(arg0) {
7184
- const ret = DuplicateDocumentTransitionsWithIdsError.__wrap(arg0);
7760
+ imports.wbg.__wbg_datacontractnotpresenterror_new = function(arg0) {
7761
+ const ret = DataContractNotPresentError.__wrap(arg0);
7185
7762
  return addHeapObject(ret);
7186
7763
  };
7187
7764
  imports.wbg.__wbg_inconsistentcompoundindexdataerror_new = function(arg0) {
7188
7765
  const ret = InconsistentCompoundIndexDataError.__wrap(arg0);
7189
7766
  return addHeapObject(ret);
7190
7767
  };
7768
+ imports.wbg.__wbg_invaliddocumenttransitionactionerror_new = function(arg0) {
7769
+ const ret = InvalidDocumentTransitionActionError.__wrap(arg0);
7770
+ return addHeapObject(ret);
7771
+ };
7191
7772
  imports.wbg.__wbg_invaliddocumenttransitioniderror_new = function(arg0) {
7192
7773
  const ret = InvalidDocumentTransitionIdError.__wrap(arg0);
7193
7774
  return addHeapObject(ret);
@@ -7204,6 +7785,10 @@ function getImports() {
7204
7785
  const ret = MissingDocumentTransitionActionError.__wrap(arg0);
7205
7786
  return addHeapObject(ret);
7206
7787
  };
7788
+ imports.wbg.__wbg_missingdocumenttransitiontypeerror_new = function(arg0) {
7789
+ const ret = MissingDocumentTransitionTypeError.__wrap(arg0);
7790
+ return addHeapObject(ret);
7791
+ };
7207
7792
  imports.wbg.__wbg_missingdocumenttypeerror_new = function(arg0) {
7208
7793
  const ret = MissingDocumentTypeError.__wrap(arg0);
7209
7794
  return addHeapObject(ret);
@@ -7228,10 +7813,6 @@ function getImports() {
7228
7813
  const ret = IdentityAssetLockTransactionOutPointAlreadyExistsError.__wrap(arg0);
7229
7814
  return addHeapObject(ret);
7230
7815
  };
7231
- imports.wbg.__wbg_identityassetlocktransactionoutputnotfounderror_new = function(arg0) {
7232
- const ret = IdentityAssetLockTransactionOutputNotFoundError.__wrap(arg0);
7233
- return addHeapObject(ret);
7234
- };
7235
7816
  imports.wbg.__wbg_identityinsufficientbalanceerror_new = function(arg0) {
7236
7817
  const ret = IdentityInsufficientBalanceError.__wrap(arg0);
7237
7818
  return addHeapObject(ret);
@@ -7244,10 +7825,6 @@ function getImports() {
7244
7825
  const ret = InvalidAssetLockProofTransactionHeightError.__wrap(arg0);
7245
7826
  return addHeapObject(ret);
7246
7827
  };
7247
- imports.wbg.__wbg_invalidassetlocktransactionoutputreturnsizeerror_new = function(arg0) {
7248
- const ret = InvalidAssetLockTransactionOutputReturnSizeError.__wrap(arg0);
7249
- return addHeapObject(ret);
7250
- };
7251
7828
  imports.wbg.__wbg_transactiondecodeerror_new = function(arg0) {
7252
7829
  const ret = TransactionDecodeError.__wrap(arg0);
7253
7830
  return addHeapObject(ret);
@@ -7256,22 +7833,26 @@ function getImports() {
7256
7833
  const ret = InvalidIdentityAssetLockTransactionError.__wrap(arg0);
7257
7834
  return addHeapObject(ret);
7258
7835
  };
7259
- imports.wbg.__wbg_invalididentityassetlocktransactionoutputerror_new = function(arg0) {
7260
- const ret = InvalidIdentityAssetLockTransactionOutputError.__wrap(arg0);
7261
- return addHeapObject(ret);
7262
- };
7263
- imports.wbg.__wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_new = function(arg0) {
7264
- const ret = InvalidIdentityCreditWithdrawalTransitionCoreFeeError.__wrap(arg0);
7265
- return addHeapObject(ret);
7266
- };
7267
7836
  imports.wbg.__wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_new = function(arg0) {
7268
7837
  const ret = InvalidIdentityCreditWithdrawalTransitionOutputScriptError.__wrap(arg0);
7269
7838
  return addHeapObject(ret);
7270
7839
  };
7840
+ imports.wbg.__wbg_invalididentitykeysignatureerror_new = function(arg0) {
7841
+ const ret = InvalidIdentityKeySignatureError.__wrap(arg0);
7842
+ return addHeapObject(ret);
7843
+ };
7271
7844
  imports.wbg.__wbg_invalididentitypublickeydataerror_new = function(arg0) {
7272
7845
  const ret = InvalidIdentityPublicKeyDataError.__wrap(arg0);
7273
7846
  return addHeapObject(ret);
7274
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
+ };
7275
7856
  imports.wbg.__wbg_invalidinstantassetlockprooferror_new = function(arg0) {
7276
7857
  const ret = InvalidInstantAssetLockProofError.__wrap(arg0);
7277
7858
  return addHeapObject(ret);
@@ -7284,6 +7865,10 @@ function getImports() {
7284
7865
  const ret = MissingMasterPublicKeyError.__wrap(arg0);
7285
7866
  return addHeapObject(ret);
7286
7867
  };
7868
+ imports.wbg.__wbg_missingpublickeyerror_new = function(arg0) {
7869
+ const ret = MissingPublicKeyError.__wrap(arg0);
7870
+ return addHeapObject(ret);
7871
+ };
7287
7872
  imports.wbg.__wbg_incompatibleprotocolversionerror_new = function(arg0) {
7288
7873
  const ret = IncompatibleProtocolVersionError.__wrap(arg0);
7289
7874
  return addHeapObject(ret);
@@ -7300,14 +7885,26 @@ function getImports() {
7300
7885
  const ret = InvalidStateTransitionSignatureError.__wrap(arg0);
7301
7886
  return addHeapObject(ret);
7302
7887
  };
7888
+ imports.wbg.__wbg_jsonschemacompilationerror_new = function(arg0) {
7889
+ const ret = JsonSchemaCompilationError.__wrap(arg0);
7890
+ return addHeapObject(ret);
7891
+ };
7303
7892
  imports.wbg.__wbg_jsonschemaerror_new = function(arg0) {
7304
7893
  const ret = JsonSchemaError.__wrap(arg0);
7305
7894
  return addHeapObject(ret);
7306
7895
  };
7896
+ imports.wbg.__wbg_publickeyisdisablederror_new = function(arg0) {
7897
+ const ret = PublicKeyIsDisabledError.__wrap(arg0);
7898
+ return addHeapObject(ret);
7899
+ };
7307
7900
  imports.wbg.__wbg_publickeysecuritylevelnotmeterror_new = function(arg0) {
7308
7901
  const ret = PublicKeySecurityLevelNotMetError.__wrap(arg0);
7309
7902
  return addHeapObject(ret);
7310
7903
  };
7904
+ imports.wbg.__wbg_invalidstatetransitiontypeerror_new = function(arg0) {
7905
+ const ret = InvalidStateTransitionTypeError.__wrap(arg0);
7906
+ return addHeapObject(ret);
7907
+ };
7311
7908
  imports.wbg.__wbg_missingstatetransitiontypeerror_new = function(arg0) {
7312
7909
  const ret = MissingStateTransitionTypeError.__wrap(arg0);
7313
7910
  return addHeapObject(ret);
@@ -7328,6 +7925,14 @@ function getImports() {
7328
7925
  const ret = BalanceIsNotEnoughError.__wrap(arg0);
7329
7926
  return addHeapObject(ret);
7330
7927
  };
7928
+ imports.wbg.__wbg_identitynotfounderror_new = function(arg0) {
7929
+ const ret = IdentityNotFoundError.__wrap(arg0);
7930
+ return addHeapObject(ret);
7931
+ };
7932
+ imports.wbg.__wbg_datacontractalreadypresenterror_new = function(arg0) {
7933
+ const ret = DataContractAlreadyPresentError.__wrap(arg0);
7934
+ return addHeapObject(ret);
7935
+ };
7331
7936
  imports.wbg.__wbg_datatriggerconditionerror_new = function(arg0) {
7332
7937
  const ret = DataTriggerConditionError.__wrap(arg0);
7333
7938
  return addHeapObject(ret);
@@ -7336,8 +7941,12 @@ function getImports() {
7336
7941
  const ret = DataTriggerExecutionError.__wrap(arg0);
7337
7942
  return addHeapObject(ret);
7338
7943
  };
7339
- imports.wbg.__wbg_datatriggerinvalidresulterror_new = function(arg0) {
7340
- const ret = DataTriggerInvalidResultError.__wrap(arg0);
7944
+ imports.wbg.__wbg_documentalreadypresenterror_new = function(arg0) {
7945
+ const ret = DocumentAlreadyPresentError.__wrap(arg0);
7946
+ return addHeapObject(ret);
7947
+ };
7948
+ imports.wbg.__wbg_documentnotfounderror_new = function(arg0) {
7949
+ const ret = DocumentNotFoundError.__wrap(arg0);
7341
7950
  return addHeapObject(ret);
7342
7951
  };
7343
7952
  imports.wbg.__wbg_documentowneridmismatcherror_new = function(arg0) {
@@ -7348,6 +7957,10 @@ function getImports() {
7348
7957
  const ret = DocumentTimestampWindowViolationError.__wrap(arg0);
7349
7958
  return addHeapObject(ret);
7350
7959
  };
7960
+ imports.wbg.__wbg_documenttimestampsmismatcherror_new = function(arg0) {
7961
+ const ret = DocumentTimestampsMismatchError.__wrap(arg0);
7962
+ return addHeapObject(ret);
7963
+ };
7351
7964
  imports.wbg.__wbg_duplicateuniqueindexerror_new = function(arg0) {
7352
7965
  const ret = DuplicateUniqueIndexError.__wrap(arg0);
7353
7966
  return addHeapObject(ret);
@@ -7360,56 +7973,54 @@ function getImports() {
7360
7973
  const ret = IdentityAlreadyExistsError.__wrap(arg0);
7361
7974
  return addHeapObject(ret);
7362
7975
  };
7363
- imports.wbg.__wbindgen_number_new = function(arg0) {
7364
- const ret = arg0;
7976
+ imports.wbg.__wbg_identitypublickeydisabledatwindowviolationerror_new = function(arg0) {
7977
+ const ret = IdentityPublicKeyDisabledAtWindowViolationError.__wrap(arg0);
7365
7978
  return addHeapObject(ret);
7366
7979
  };
7367
- imports.wbg.__wbg_invalididentityrevisionerror_new = function(arg0) {
7368
- const ret = InvalidIdentityRevisionError.__wrap(arg0);
7980
+ imports.wbg.__wbg_identitypublickeyisdisablederror_new = function(arg0) {
7981
+ const ret = IdentityPublicKeyIsDisabledError.__wrap(arg0);
7369
7982
  return addHeapObject(ret);
7370
7983
  };
7371
- imports.wbg.__wbg_nonconsensuserrorwasm_new = function(arg0) {
7372
- const ret = NonConsensusErrorWasm.__wrap(arg0);
7984
+ imports.wbg.__wbg_identitypublickeyisreadonlyerror_new = function(arg0) {
7985
+ const ret = IdentityPublicKeyIsReadOnlyError.__wrap(arg0);
7373
7986
  return addHeapObject(ret);
7374
7987
  };
7375
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
7376
- const v = getObject(arg0);
7377
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
7378
- return ret;
7379
- };
7380
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
7381
- const ret = typeof(getObject(arg0)) === 'bigint';
7382
- return ret;
7988
+ imports.wbg.__wbg_invalididentitypublickeyiderror_new = function(arg0) {
7989
+ const ret = InvalidIdentityPublicKeyIdError.__wrap(arg0);
7990
+ return addHeapObject(ret);
7383
7991
  };
7384
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
7385
- const ret = arg0;
7992
+ imports.wbg.__wbg_invalididentityrevisionerror_new = function(arg0) {
7993
+ const ret = InvalidIdentityRevisionError.__wrap(arg0);
7386
7994
  return addHeapObject(ret);
7387
7995
  };
7388
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
7389
- const ret = getObject(arg0) === getObject(arg1);
7390
- return ret;
7996
+ imports.wbg.__wbg_maxidentitypublickeylimitreachederror_new = function(arg0) {
7997
+ const ret = MaxIdentityPublicKeyLimitReachedError.__wrap(arg0);
7998
+ return addHeapObject(ret);
7391
7999
  };
7392
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
7393
- const obj = getObject(arg1);
7394
- const ret = typeof(obj) === 'number' ? obj : undefined;
7395
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
7396
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
8000
+ imports.wbg.__wbg_nonconsensuserrorwasm_new = function(arg0) {
8001
+ const ret = NonConsensusErrorWasm.__wrap(arg0);
8002
+ return addHeapObject(ret);
7397
8003
  };
7398
- imports.wbg.__wbindgen_is_object = function(arg0) {
7399
- const val = getObject(arg0);
7400
- const ret = typeof(val) === 'object' && val !== null;
7401
- return ret;
8004
+ imports.wbg.__wbg_fetchDataContract_b17bbb6c3e7c09f9 = function(arg0, arg1, arg2) {
8005
+ const ret = getObject(arg0).fetchDataContract(Identifier.__wrap(arg1), StateTransitionExecutionContext.__wrap(arg2));
8006
+ let ptr0 = 0;
8007
+ if (!isLikeNone(ret)) {
8008
+ _assertClass(ret, DataContract);
8009
+ ptr0 = ret.ptr;
8010
+ ret.ptr = 0;
8011
+ }
8012
+ return ptr0;
7402
8013
  };
7403
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
7404
- const ret = getObject(arg0) in getObject(arg1);
7405
- return ret;
8014
+ imports.wbg.__wbg_storeDataContract_dd0024afb8d1eabf = function(arg0, arg1, arg2) {
8015
+ const ret = getObject(arg0).storeDataContract(DataContract.__wrap(arg1), StateTransitionExecutionContext.__wrap(arg2));
8016
+ return addHeapObject(ret);
7406
8017
  };
7407
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
7408
- const ret = BigInt.asUintN(64, arg0);
8018
+ imports.wbg.__wbindgen_number_new = function(arg0) {
8019
+ const ret = arg0;
7409
8020
  return addHeapObject(ret);
7410
8021
  };
7411
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
7412
- const ret = getObject(arg0) === undefined;
8022
+ imports.wbg.__wbg_validatePublicKey_bee145d16f9dc2e3 = function(arg0, arg1, arg2) {
8023
+ const ret = getObject(arg0).validatePublicKey(getArrayU8FromWasm0(arg1, arg2));
7413
8024
  return ret;
7414
8025
  };
7415
8026
  imports.wbg.__wbg_generate_1f42caa3e9e2b460 = function(arg0, arg1) {
@@ -7446,12 +8057,6 @@ function getImports() {
7446
8057
  imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
7447
8058
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
7448
8059
  };
7449
- imports.wbg.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
7450
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
7451
- }, arguments) };
7452
- imports.wbg.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
7453
- getObject(arg0).getRandomValues(getObject(arg1));
7454
- }, arguments) };
7455
8060
  imports.wbg.__wbg_crypto_e1d53a1d73fb10b8 = function(arg0) {
7456
8061
  const ret = getObject(arg0).crypto;
7457
8062
  return addHeapObject(ret);
@@ -7480,6 +8085,12 @@ function getImports() {
7480
8085
  const ret = typeof(getObject(arg0)) === 'function';
7481
8086
  return ret;
7482
8087
  };
8088
+ imports.wbg.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
8089
+ getObject(arg0).getRandomValues(getObject(arg1));
8090
+ }, arguments) };
8091
+ imports.wbg.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
8092
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
8093
+ }, arguments) };
7483
8094
  imports.wbg.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
7484
8095
  const ret = getObject(arg0)[arg1 >>> 0];
7485
8096
  return addHeapObject(ret);
@@ -7577,6 +8188,10 @@ function getImports() {
7577
8188
  const ret = result;
7578
8189
  return ret;
7579
8190
  };
8191
+ imports.wbg.__wbg_message_fe2af63ccc8985bc = function(arg0) {
8192
+ const ret = getObject(arg0).message;
8193
+ return addHeapObject(ret);
8194
+ };
7580
8195
  imports.wbg.__wbg_newwithargs_8fe23e3842840c8e = function(arg0, arg1, arg2, arg3) {
7581
8196
  const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
7582
8197
  return addHeapObject(ret);
@@ -7608,7 +8223,7 @@ function getImports() {
7608
8223
  const a = state0.a;
7609
8224
  state0.a = 0;
7610
8225
  try {
7611
- return __wbg_adapter_723(a, state0.b, arg0, arg1);
8226
+ return __wbg_adapter_777(a, state0.b, arg0, arg1);
7612
8227
  } finally {
7613
8228
  state0.a = a;
7614
8229
  }
@@ -7692,8 +8307,8 @@ function getImports() {
7692
8307
  const ret = wasm.memory;
7693
8308
  return addHeapObject(ret);
7694
8309
  };
7695
- imports.wbg.__wbindgen_closure_wrapper1401 = function(arg0, arg1, arg2) {
7696
- const ret = makeMutClosure(arg0, arg1, 183, __wbg_adapter_48);
8310
+ imports.wbg.__wbindgen_closure_wrapper1556 = function(arg0, arg1, arg2) {
8311
+ const ret = makeMutClosure(arg0, arg1, 206, __wbg_adapter_48);
7697
8312
  return addHeapObject(ret);
7698
8313
  };
7699
8314