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

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 (24) hide show
  1. package/Cargo.toml +2 -0
  2. package/dist/index.js +1 -1
  3. package/dist/wasm/wasm_dpp.d.ts +277 -183
  4. package/package.json +3 -3
  5. package/src/data_contract/state_transition/data_contract_create_transition/apply.rs +44 -0
  6. package/src/data_contract/state_transition/data_contract_create_transition/mod.rs +103 -2
  7. package/src/data_contract/state_transition/data_contract_create_transition/validation.rs +24 -0
  8. package/src/document/errors/document_already_exists_error.rs +1 -1
  9. package/src/document/errors/document_not_provided_error.rs +1 -1
  10. package/src/document/errors/invalid_document_action_error.rs +1 -1
  11. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_condition_error.rs +1 -1
  12. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_execution_error.rs +1 -1
  13. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_invalid_result_error.rs +1 -1
  14. package/src/lib.rs +3 -2
  15. package/src/state_repository.rs +229 -0
  16. package/src/state_transition/mod.rs +41 -0
  17. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/DataContractCreateTransition.spec.js +17 -64
  18. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/applyDataContractCreateTransitionFactory.spec.js +28 -22
  19. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/validation/state/validateDataContractCreateTransitionStateFactory.spec.js +47 -44
  20. package/wasm/wasm_dpp.d.ts +277 -183
  21. package/wasm/wasm_dpp.js +473 -245
  22. package/wasm/wasm_dpp_bg.js +1 -1
  23. package/wasm/wasm_dpp_bg.wasm +0 -0
  24. package/wasm/wasm_dpp_bg.wasm.d.ts +201 -183
package/wasm/wasm_dpp.js CHANGED
@@ -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__hb1f2f14d640579c3(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function passArray8ToWasm0(arg, malloc) {
@@ -243,6 +243,18 @@ function _assertClass(instance, klass) {
243
243
  }
244
244
  return instance.ptr;
245
245
  }
246
+ /**
247
+ * @param {any} state_repository
248
+ * @param {DataContractCreateTransition} state_transition
249
+ * @returns {Promise<ValidationResult>}
250
+ */
251
+ export function validateDataContractCreateTransitionState(state_repository, state_transition) {
252
+ _assertClass(state_transition, DataContractCreateTransition);
253
+ var ptr0 = state_transition.ptr;
254
+ state_transition.ptr = 0;
255
+ const ret = wasm.validateDataContractCreateTransitionState(addHeapObject(state_repository), ptr0);
256
+ return takeObject(ret);
257
+ }
246
258
 
247
259
  let cachedUint32Memory0 = new Uint32Array();
248
260
 
@@ -253,16 +265,6 @@ function getUint32Memory0() {
253
265
  return cachedUint32Memory0;
254
266
  }
255
267
 
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
268
  function getArrayJsValueFromWasm0(ptr, len) {
267
269
  const mem = getUint32Memory0();
268
270
  const slice = mem.subarray(ptr / 4, ptr / 4 + len);
@@ -273,6 +275,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
273
275
  return result;
274
276
  }
275
277
 
278
+ function passArrayJsValueToWasm0(array, malloc) {
279
+ const ptr = malloc(array.length * 4);
280
+ const mem = getUint32Memory0();
281
+ for (let i = 0; i < array.length; i++) {
282
+ mem[ptr / 4 + i] = addHeapObject(array[i]);
283
+ }
284
+ WASM_VECTOR_LEN = array.length;
285
+ return ptr;
286
+ }
287
+
276
288
  function getArrayU32FromWasm0(ptr, len) {
277
289
  return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
278
290
  }
@@ -284,8 +296,8 @@ function handleError(f, args) {
284
296
  wasm.__wbindgen_exn_store(addHeapObject(e));
285
297
  }
286
298
  }
287
- function __wbg_adapter_723(arg0, arg1, arg2, arg3) {
288
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h9c669bb18ec068c7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
299
+ function __wbg_adapter_747(arg0, arg1, arg2, arg3) {
300
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h9c4ada57796258da(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
289
301
  }
290
302
 
291
303
  /**
@@ -311,6 +323,47 @@ export const KeySecurityLevel = Object.freeze({ MASTER:0,"0":"MASTER",CRITICAL:1
311
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", });
312
324
  /**
313
325
  */
326
+ export class ApplyDataContractCreateTransition {
327
+
328
+ static __wrap(ptr) {
329
+ const obj = Object.create(ApplyDataContractCreateTransition.prototype);
330
+ obj.ptr = ptr;
331
+
332
+ return obj;
333
+ }
334
+
335
+ __destroy_into_raw() {
336
+ const ptr = this.ptr;
337
+ this.ptr = 0;
338
+
339
+ return ptr;
340
+ }
341
+
342
+ free() {
343
+ const ptr = this.__destroy_into_raw();
344
+ wasm.__wbg_applydatacontractcreatetransition_free(ptr);
345
+ }
346
+ /**
347
+ * @param {any} state_repository
348
+ */
349
+ constructor(state_repository) {
350
+ const ret = wasm.applydatacontractcreatetransition_new(addHeapObject(state_repository));
351
+ return ApplyDataContractCreateTransition.__wrap(ret);
352
+ }
353
+ /**
354
+ * @param {DataContractCreateTransition} transition
355
+ * @returns {Promise<void>}
356
+ */
357
+ applyDataContractCreateTransition(transition) {
358
+ _assertClass(transition, DataContractCreateTransition);
359
+ var ptr0 = transition.ptr;
360
+ transition.ptr = 0;
361
+ const ret = wasm.applydatacontractcreatetransition_applyDataContractCreateTransition(this.ptr, ptr0);
362
+ return takeObject(ret);
363
+ }
364
+ }
365
+ /**
366
+ */
314
367
  export class AssetLockProof {
315
368
 
316
369
  static __wrap(ptr) {
@@ -879,6 +932,24 @@ export class DataContractCreateTransition {
879
932
  wasm.__wbg_datacontractcreatetransition_free(ptr);
880
933
  }
881
934
  /**
935
+ * @param {any} raw_parameters
936
+ */
937
+ constructor(raw_parameters) {
938
+ try {
939
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
940
+ wasm.datacontractcreatetransition_new(retptr, addHeapObject(raw_parameters));
941
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
942
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
943
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
944
+ if (r2) {
945
+ throw takeObject(r1);
946
+ }
947
+ return DataContractCreateTransition.__wrap(r0);
948
+ } finally {
949
+ wasm.__wbindgen_add_to_stack_pointer(16);
950
+ }
951
+ }
952
+ /**
882
953
  * @returns {DataContract}
883
954
  */
884
955
  getDataContract() {
@@ -899,6 +970,102 @@ export class DataContractCreateTransition {
899
970
  const ret = wasm.datacontractcreatetransition_getEntropy(this.ptr);
900
971
  return takeObject(ret);
901
972
  }
973
+ /**
974
+ * @returns {Identifier}
975
+ */
976
+ getOwnerId() {
977
+ const ret = wasm.datacontractcreatetransition_getOwnerId(this.ptr);
978
+ return Identifier.__wrap(ret);
979
+ }
980
+ /**
981
+ * @returns {number}
982
+ */
983
+ getType() {
984
+ const ret = wasm.datacontractcreatetransition_getType(this.ptr);
985
+ return ret >>> 0;
986
+ }
987
+ /**
988
+ * @param {boolean | undefined} skip_signature
989
+ * @returns {any}
990
+ */
991
+ toJSON(skip_signature) {
992
+ try {
993
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
994
+ wasm.datacontractcreatetransition_toJSON(retptr, this.ptr, isLikeNone(skip_signature) ? 0xFFFFFF : skip_signature ? 1 : 0);
995
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
996
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
997
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
998
+ if (r2) {
999
+ throw takeObject(r1);
1000
+ }
1001
+ return takeObject(r0);
1002
+ } finally {
1003
+ wasm.__wbindgen_add_to_stack_pointer(16);
1004
+ }
1005
+ }
1006
+ /**
1007
+ * @param {boolean | undefined} skip_signature
1008
+ * @returns {any}
1009
+ */
1010
+ toBuffer(skip_signature) {
1011
+ try {
1012
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1013
+ wasm.datacontractcreatetransition_toBuffer(retptr, this.ptr, isLikeNone(skip_signature) ? 0xFFFFFF : skip_signature ? 1 : 0);
1014
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1015
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1016
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1017
+ if (r2) {
1018
+ throw takeObject(r1);
1019
+ }
1020
+ return takeObject(r0);
1021
+ } finally {
1022
+ wasm.__wbindgen_add_to_stack_pointer(16);
1023
+ }
1024
+ }
1025
+ /**
1026
+ * @returns {any[]}
1027
+ */
1028
+ getModifiedDataIds() {
1029
+ try {
1030
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1031
+ wasm.datacontractcreatetransition_getModifiedDataIds(retptr, this.ptr);
1032
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1033
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1034
+ var v0 = getArrayJsValueFromWasm0(r0, r1).slice();
1035
+ wasm.__wbindgen_free(r0, r1 * 4);
1036
+ return v0;
1037
+ } finally {
1038
+ wasm.__wbindgen_add_to_stack_pointer(16);
1039
+ }
1040
+ }
1041
+ /**
1042
+ * @returns {boolean}
1043
+ */
1044
+ isDataContractStateTransition() {
1045
+ const ret = wasm.datacontractcreatetransition_isDataContractStateTransition(this.ptr);
1046
+ return ret !== 0;
1047
+ }
1048
+ /**
1049
+ * @returns {boolean}
1050
+ */
1051
+ isDocumentStateTransition() {
1052
+ const ret = wasm.datacontractcreatetransition_isDocumentStateTransition(this.ptr);
1053
+ return ret !== 0;
1054
+ }
1055
+ /**
1056
+ * @returns {boolean}
1057
+ */
1058
+ isIdentityStateTransition() {
1059
+ const ret = wasm.datacontractcreatetransition_isIdentityStateTransition(this.ptr);
1060
+ return ret !== 0;
1061
+ }
1062
+ /**
1063
+ * @param {StateTransitionExecutionContext} context
1064
+ */
1065
+ setExecutionContext(context) {
1066
+ _assertClass(context, StateTransitionExecutionContext);
1067
+ wasm.datacontractcreatetransition_setExecutionContext(this.ptr, context.ptr);
1068
+ }
902
1069
  }
903
1070
  /**
904
1071
  */
@@ -1107,7 +1274,7 @@ export class DataContractImmutablePropertiesUpdateError {
1107
1274
  getOperation() {
1108
1275
  try {
1109
1276
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1110
- wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
1277
+ wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
1111
1278
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1112
1279
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1113
1280
  return getStringFromWasm0(r0, r1);
@@ -1122,7 +1289,7 @@ export class DataContractImmutablePropertiesUpdateError {
1122
1289
  getFieldPath() {
1123
1290
  try {
1124
1291
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1125
- wasm.datacontracthavenewuniqueindexerror_getIndexName(retptr, this.ptr);
1292
+ wasm.datacontractimmutablepropertiesupdateerror_getFieldPath(retptr, this.ptr);
1126
1293
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1127
1294
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1128
1295
  return getStringFromWasm0(r0, r1);
@@ -1135,7 +1302,7 @@ export class DataContractImmutablePropertiesUpdateError {
1135
1302
  * @returns {number}
1136
1303
  */
1137
1304
  getCode() {
1138
- const ret = wasm.datacontracthavenewuniqueindexerror_getCode(this.ptr);
1305
+ const ret = wasm.datacontractimmutablepropertiesupdateerror_getCode(this.ptr);
1139
1306
  return ret >>> 0;
1140
1307
  }
1141
1308
  }
@@ -1167,7 +1334,7 @@ export class DataContractInvalidIndexDefinitionUpdateError {
1167
1334
  getDocumentType() {
1168
1335
  try {
1169
1336
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1170
- wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
1337
+ wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
1171
1338
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1172
1339
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1173
1340
  return getStringFromWasm0(r0, r1);
@@ -1182,7 +1349,7 @@ export class DataContractInvalidIndexDefinitionUpdateError {
1182
1349
  getIndexName() {
1183
1350
  try {
1184
1351
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1185
- wasm.datacontracthavenewuniqueindexerror_getIndexName(retptr, this.ptr);
1352
+ wasm.datacontractimmutablepropertiesupdateerror_getFieldPath(retptr, this.ptr);
1186
1353
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1187
1354
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1188
1355
  return getStringFromWasm0(r0, r1);
@@ -1195,7 +1362,7 @@ export class DataContractInvalidIndexDefinitionUpdateError {
1195
1362
  * @returns {number}
1196
1363
  */
1197
1364
  getCode() {
1198
- const ret = wasm.datacontracthavenewuniqueindexerror_getCode(this.ptr);
1365
+ const ret = wasm.datacontractimmutablepropertiesupdateerror_getCode(this.ptr);
1199
1366
  return ret >>> 0;
1200
1367
  }
1201
1368
  }
@@ -1262,14 +1429,14 @@ export class DataContractNotPresentError {
1262
1429
  * @returns {any}
1263
1430
  */
1264
1431
  getDataContractId() {
1265
- const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
1432
+ const ret = wasm.datacontractnotpresenterror_getDataContractId(this.ptr);
1266
1433
  return takeObject(ret);
1267
1434
  }
1268
1435
  /**
1269
1436
  * @returns {number}
1270
1437
  */
1271
1438
  getCode() {
1272
- const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
1439
+ const ret = wasm.datacontractnotpresenterror_getCode(this.ptr);
1273
1440
  return ret >>> 0;
1274
1441
  }
1275
1442
  }
@@ -2033,14 +2200,14 @@ export class DocumentNotFoundError {
2033
2200
  * @returns {any}
2034
2201
  */
2035
2202
  getDocumentId() {
2036
- const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
2203
+ const ret = wasm.datacontractnotpresenterror_getDataContractId(this.ptr);
2037
2204
  return takeObject(ret);
2038
2205
  }
2039
2206
  /**
2040
2207
  * @returns {number}
2041
2208
  */
2042
2209
  getCode() {
2043
- const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
2210
+ const ret = wasm.datacontractnotpresenterror_getCode(this.ptr);
2044
2211
  return ret >>> 0;
2045
2212
  }
2046
2213
  }
@@ -2382,7 +2549,7 @@ export class DuplicateIndexNameError {
2382
2549
  getDocumentType() {
2383
2550
  try {
2384
2551
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2385
- wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
2552
+ wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
2386
2553
  var r0 = getInt32Memory0()[retptr / 4 + 0];
2387
2554
  var r1 = getInt32Memory0()[retptr / 4 + 1];
2388
2555
  return getStringFromWasm0(r0, r1);
@@ -2397,7 +2564,7 @@ export class DuplicateIndexNameError {
2397
2564
  getDuplicateIndexName() {
2398
2565
  try {
2399
2566
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2400
- wasm.datacontracthavenewuniqueindexerror_getIndexName(retptr, this.ptr);
2567
+ wasm.datacontractimmutablepropertiesupdateerror_getFieldPath(retptr, this.ptr);
2401
2568
  var r0 = getInt32Memory0()[retptr / 4 + 0];
2402
2569
  var r1 = getInt32Memory0()[retptr / 4 + 1];
2403
2570
  return getStringFromWasm0(r0, r1);
@@ -2410,7 +2577,7 @@ export class DuplicateIndexNameError {
2410
2577
  * @returns {number}
2411
2578
  */
2412
2579
  getCode() {
2413
- const ret = wasm.datacontracthavenewuniqueindexerror_getCode(this.ptr);
2580
+ const ret = wasm.datacontractimmutablepropertiesupdateerror_getCode(this.ptr);
2414
2581
  return ret >>> 0;
2415
2582
  }
2416
2583
  }
@@ -3302,14 +3469,14 @@ export class IdentityNotFoundError {
3302
3469
  * @returns {any}
3303
3470
  */
3304
3471
  getIdentityId() {
3305
- const ret = wasm.datacontractalreadypresenterror_getDataContractId(this.ptr);
3472
+ const ret = wasm.datacontractnotpresenterror_getDataContractId(this.ptr);
3306
3473
  return takeObject(ret);
3307
3474
  }
3308
3475
  /**
3309
3476
  * @returns {number}
3310
3477
  */
3311
3478
  getCode() {
3312
- const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
3479
+ const ret = wasm.datacontractnotpresenterror_getCode(this.ptr);
3313
3480
  return ret >>> 0;
3314
3481
  }
3315
3482
  }
@@ -3682,14 +3849,14 @@ export class IdentityPublicKeyIsReadOnlyError {
3682
3849
  * @returns {number}
3683
3850
  */
3684
3851
  getKeyId() {
3685
- const ret = wasm.identitypublickeyisreadonlyerror_getKeyId(this.ptr);
3852
+ const ret = wasm.identitypublickeyisdisablederror_getPublicKeyIndex(this.ptr);
3686
3853
  return ret >>> 0;
3687
3854
  }
3688
3855
  /**
3689
3856
  * @returns {number}
3690
3857
  */
3691
3858
  getCode() {
3692
- const ret = wasm.identitypublickeyisreadonlyerror_getCode(this.ptr);
3859
+ const ret = wasm.identitypublickeyisdisablederror_getCode(this.ptr);
3693
3860
  return ret >>> 0;
3694
3861
  }
3695
3862
  }
@@ -3868,7 +4035,7 @@ export class IncompatibleRe2PatternError {
3868
4035
  getPattern() {
3869
4036
  try {
3870
4037
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3871
- wasm.duplicateindexerror_getDocumentType(retptr, this.ptr);
4038
+ wasm.incompatiblere2patternerror_getPattern(retptr, this.ptr);
3872
4039
  var r0 = getInt32Memory0()[retptr / 4 + 0];
3873
4040
  var r1 = getInt32Memory0()[retptr / 4 + 1];
3874
4041
  return getStringFromWasm0(r0, r1);
@@ -3950,7 +4117,7 @@ export class InconsistentCompoundIndexDataError {
3950
4117
  getDocumentType() {
3951
4118
  try {
3952
4119
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3953
- wasm.incompatiblere2patternerror_getPath(retptr, this.ptr);
4120
+ wasm.inconsistentcompoundindexdataerror_getDocumentType(retptr, this.ptr);
3954
4121
  var r0 = getInt32Memory0()[retptr / 4 + 0];
3955
4122
  var r1 = getInt32Memory0()[retptr / 4 + 1];
3956
4123
  return getStringFromWasm0(r0, r1);
@@ -3995,7 +4162,7 @@ export class IndexDefinition {
3995
4162
  getName() {
3996
4163
  try {
3997
4164
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3998
- wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
4165
+ wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
3999
4166
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4000
4167
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4001
4168
  return getStringFromWasm0(r0, r1);
@@ -4056,7 +4223,7 @@ export class IndexProperty {
4056
4223
  getName() {
4057
4224
  try {
4058
4225
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4059
- wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
4226
+ wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
4060
4227
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4061
4228
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4062
4229
  return getStringFromWasm0(r0, r1);
@@ -4700,7 +4867,7 @@ export class InvalidDocumentTypeError {
4700
4867
  getDocumentType() {
4701
4868
  try {
4702
4869
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4703
- wasm.invaliddocumenttypeerror_getDocumentType(retptr, this.ptr);
4870
+ wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
4704
4871
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4705
4872
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4706
4873
  return getStringFromWasm0(r0, r1);
@@ -4810,7 +4977,7 @@ export class InvalidIdentifierError {
4810
4977
  getIdentifierName() {
4811
4978
  try {
4812
4979
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4813
- wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.ptr);
4980
+ wasm.datacontractimmutablepropertiesupdateerror_getOperation(retptr, this.ptr);
4814
4981
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4815
4982
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4816
4983
  return getStringFromWasm0(r0, r1);
@@ -4825,7 +4992,7 @@ export class InvalidIdentifierError {
4825
4992
  getError() {
4826
4993
  try {
4827
4994
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4828
- wasm.datacontracthavenewuniqueindexerror_getIndexName(retptr, this.ptr);
4995
+ wasm.datacontractimmutablepropertiesupdateerror_getFieldPath(retptr, this.ptr);
4829
4996
  var r0 = getInt32Memory0()[retptr / 4 + 0];
4830
4997
  var r1 = getInt32Memory0()[retptr / 4 + 1];
4831
4998
  return getStringFromWasm0(r0, r1);
@@ -4838,7 +5005,7 @@ export class InvalidIdentifierError {
4838
5005
  * @returns {number}
4839
5006
  */
4840
5007
  getCode() {
4841
- const ret = wasm.datacontracthavenewuniqueindexerror_getCode(this.ptr);
5008
+ const ret = wasm.datacontractimmutablepropertiesupdateerror_getCode(this.ptr);
4842
5009
  return ret >>> 0;
4843
5010
  }
4844
5011
  }
@@ -5112,14 +5279,14 @@ export class InvalidIdentityPublicKeyIdError {
5112
5279
  * @returns {number}
5113
5280
  */
5114
5281
  getId() {
5115
- const ret = wasm.identitypublickeyisreadonlyerror_getKeyId(this.ptr);
5282
+ const ret = wasm.identitypublickeyisdisablederror_getPublicKeyIndex(this.ptr);
5116
5283
  return ret >>> 0;
5117
5284
  }
5118
5285
  /**
5119
5286
  * @returns {number}
5120
5287
  */
5121
5288
  getCode() {
5122
- const ret = wasm.identitypublickeyisreadonlyerror_getCode(this.ptr);
5289
+ const ret = wasm.identitypublickeyisdisablederror_getCode(this.ptr);
5123
5290
  return ret >>> 0;
5124
5291
  }
5125
5292
  }
@@ -5207,7 +5374,7 @@ export class InvalidIdentityPublicKeyTypeError {
5207
5374
  * @returns {number}
5208
5375
  */
5209
5376
  getCode() {
5210
- const ret = wasm.datacontractalreadypresenterror_getCode(this.ptr);
5377
+ const ret = wasm.datacontractnotpresenterror_getCode(this.ptr);
5211
5378
  return ret >>> 0;
5212
5379
  }
5213
5380
  }
@@ -5718,7 +5885,7 @@ export class JsonSchemaCompilationError {
5718
5885
  getError() {
5719
5886
  try {
5720
5887
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5721
- wasm.invaliddocumenttransitionactionerror_getAction(retptr, this.ptr);
5888
+ wasm.jsonschemacompilationerror_getError(retptr, this.ptr);
5722
5889
  var r0 = getInt32Memory0()[retptr / 4 + 0];
5723
5890
  var r1 = getInt32Memory0()[retptr / 4 + 1];
5724
5891
  return getStringFromWasm0(r0, r1);
@@ -5731,7 +5898,7 @@ export class JsonSchemaCompilationError {
5731
5898
  * @returns {number}
5732
5899
  */
5733
5900
  getCode() {
5734
- const ret = wasm.invaliddocumenttransitionactionerror_getCode(this.ptr);
5901
+ const ret = wasm.jsonschemacompilationerror_getCode(this.ptr);
5735
5902
  return ret >>> 0;
5736
5903
  }
5737
5904
  }
@@ -6462,19 +6629,58 @@ export class SerializedObjectParsingError {
6462
6629
  * @returns {any}
6463
6630
  */
6464
6631
  getParsingError() {
6465
- const ret = wasm.serializedobjectparsingerror_getParsingError(this.ptr);
6632
+ const ret = wasm.protocolversionparsingerror_getParsingError(this.ptr);
6466
6633
  return takeObject(ret);
6467
6634
  }
6468
6635
  /**
6469
6636
  * @returns {number}
6470
6637
  */
6471
6638
  getCode() {
6472
- const ret = wasm.serializedobjectparsingerror_getCode(this.ptr);
6639
+ const ret = wasm.protocolversionparsingerror_getCode(this.ptr);
6473
6640
  return ret >>> 0;
6474
6641
  }
6475
6642
  }
6476
6643
  /**
6477
6644
  */
6645
+ export class StateTransitionExecutionContext {
6646
+
6647
+ static __wrap(ptr) {
6648
+ const obj = Object.create(StateTransitionExecutionContext.prototype);
6649
+ obj.ptr = ptr;
6650
+
6651
+ return obj;
6652
+ }
6653
+
6654
+ __destroy_into_raw() {
6655
+ const ptr = this.ptr;
6656
+ this.ptr = 0;
6657
+
6658
+ return ptr;
6659
+ }
6660
+
6661
+ free() {
6662
+ const ptr = this.__destroy_into_raw();
6663
+ wasm.__wbg_statetransitionexecutioncontext_free(ptr);
6664
+ }
6665
+ /**
6666
+ */
6667
+ constructor() {
6668
+ const ret = wasm.statetransitionexecutioncontext_new();
6669
+ return StateTransitionExecutionContext.__wrap(ret);
6670
+ }
6671
+ /**
6672
+ */
6673
+ enableDryRun() {
6674
+ wasm.statetransitionexecutioncontext_enableDryRun(this.ptr);
6675
+ }
6676
+ /**
6677
+ */
6678
+ disableDryRun() {
6679
+ wasm.statetransitionexecutioncontext_disableDryRun(this.ptr);
6680
+ }
6681
+ }
6682
+ /**
6683
+ */
6478
6684
  export class StateTransitionMaxSizeExceededError {
6479
6685
 
6480
6686
  static __wrap(ptr) {
@@ -6499,21 +6705,21 @@ export class StateTransitionMaxSizeExceededError {
6499
6705
  * @returns {number}
6500
6706
  */
6501
6707
  getActualSizeKBytes() {
6502
- const ret = wasm.invaliddocumentrevisionerror_getCurrentRevision(this.ptr);
6708
+ const ret = wasm.invaliddatacontractversionerror_getExpectedVersion(this.ptr);
6503
6709
  return ret >>> 0;
6504
6710
  }
6505
6711
  /**
6506
6712
  * @returns {number}
6507
6713
  */
6508
6714
  getMaxSizeKBytes() {
6509
- const ret = wasm.invaliddocumentrevisionerror_getCode(this.ptr);
6715
+ const ret = wasm.invaliddatacontractversionerror_getVersion(this.ptr);
6510
6716
  return ret >>> 0;
6511
6717
  }
6512
6718
  /**
6513
6719
  * @returns {number}
6514
6720
  */
6515
6721
  getCode() {
6516
- const ret = wasm.statetransitionmaxsizeexceedederror_getCode(this.ptr);
6722
+ const ret = wasm.invaliddatacontractversionerror_getCode(this.ptr);
6517
6723
  return ret >>> 0;
6518
6724
  }
6519
6725
  }
@@ -6545,7 +6751,7 @@ export class SystemPropertyIndexAlreadyPresentError {
6545
6751
  getDocumentType() {
6546
6752
  try {
6547
6753
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6548
- wasm.systempropertyindexalreadypresenterror_getDocumentType(retptr, this.ptr);
6754
+ wasm.incompatiblere2patternerror_getPattern(retptr, this.ptr);
6549
6755
  var r0 = getInt32Memory0()[retptr / 4 + 0];
6550
6756
  var r1 = getInt32Memory0()[retptr / 4 + 1];
6551
6757
  return getStringFromWasm0(r0, r1);
@@ -6635,7 +6841,7 @@ export class UndefinedIndexPropertyError {
6635
6841
  getDocumentType() {
6636
6842
  try {
6637
6843
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6638
- wasm.systempropertyindexalreadypresenterror_getDocumentType(retptr, this.ptr);
6844
+ wasm.incompatiblere2patternerror_getPattern(retptr, this.ptr);
6639
6845
  var r0 = getInt32Memory0()[retptr / 4 + 0];
6640
6846
  var r1 = getInt32Memory0()[retptr / 4 + 1];
6641
6847
  return getStringFromWasm0(r0, r1);
@@ -6715,7 +6921,7 @@ export class UniqueIndicesLimitReachedError {
6715
6921
  * @returns {number}
6716
6922
  */
6717
6923
  getIndexLimit() {
6718
- const ret = wasm.uniqueindiceslimitreachederror_getIndexLimit(this.ptr);
6924
+ const ret = wasm.invaliddocumenttypeerror_getCode(this.ptr);
6719
6925
  return ret >>> 0;
6720
6926
  }
6721
6927
  /**
@@ -6913,6 +7119,10 @@ async function load(module, imports) {
6913
7119
  function getImports() {
6914
7120
  const imports = {};
6915
7121
  imports.wbg = {};
7122
+ imports.wbg.__wbg_identifier_new = function(arg0) {
7123
+ const ret = Identifier.__wrap(arg0);
7124
+ return addHeapObject(ret);
7125
+ };
6916
7126
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
6917
7127
  const ret = getObject(arg0);
6918
7128
  return addHeapObject(ret);
@@ -6928,133 +7138,129 @@ function getImports() {
6928
7138
  const ret = IdentityPublicKey.__wrap(arg0);
6929
7139
  return addHeapObject(ret);
6930
7140
  };
6931
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
6932
- const ret = new Error(getStringFromWasm0(arg0, arg1));
7141
+ imports.wbg.__wbg_jsonschemaerror_new = function(arg0) {
7142
+ const ret = JsonSchemaError.__wrap(arg0);
6933
7143
  return addHeapObject(ret);
6934
7144
  };
6935
- imports.wbg.__wbg_datacontractalreadypresenterror_new = function(arg0) {
6936
- const ret = DataContractAlreadyPresentError.__wrap(arg0);
7145
+ imports.wbg.__wbg_unsupportedprotocolversionerror_new = function(arg0) {
7146
+ const ret = UnsupportedProtocolVersionError.__wrap(arg0);
6937
7147
  return addHeapObject(ret);
6938
7148
  };
6939
- imports.wbg.__wbg_datacontractnotpresenterror_new = function(arg0) {
6940
- const ret = DataContractNotPresentError.__wrap(arg0);
7149
+ imports.wbg.__wbg_incompatibleprotocolversionerror_new = function(arg0) {
7150
+ const ret = IncompatibleProtocolVersionError.__wrap(arg0);
6941
7151
  return addHeapObject(ret);
6942
7152
  };
6943
- imports.wbg.__wbg_incompatibledatacontractschemaerror_new = function(arg0) {
6944
- const ret = IncompatibleDataContractSchemaError.__wrap(arg0);
7153
+ imports.wbg.__wbg_duplicatedidentitypublickeyiderror_new = function(arg0) {
7154
+ const ret = DuplicatedIdentityPublicKeyIdError.__wrap(arg0);
6945
7155
  return addHeapObject(ret);
6946
7156
  };
6947
- imports.wbg.__wbg_invalididentitypublickeytypeerror_new = function(arg0) {
6948
- const ret = InvalidIdentityPublicKeyTypeError.__wrap(arg0);
7157
+ imports.wbg.__wbg_invalididentitypublickeydataerror_new = function(arg0) {
7158
+ const ret = InvalidIdentityPublicKeyDataError.__wrap(arg0);
6949
7159
  return addHeapObject(ret);
6950
7160
  };
6951
- imports.wbg.__wbg_datacontractcreatetransition_new = function(arg0) {
6952
- const ret = DataContractCreateTransition.__wrap(arg0);
7161
+ imports.wbg.__wbg_invalididentitypublickeysecuritylevelerror_new = function(arg0) {
7162
+ const ret = InvalidIdentityPublicKeySecurityLevelError.__wrap(arg0);
6953
7163
  return addHeapObject(ret);
6954
7164
  };
6955
- imports.wbg.__wbg_serializedobjectparsingerror_new = function(arg0) {
6956
- const ret = SerializedObjectParsingError.__wrap(arg0);
7165
+ imports.wbg.__wbg_duplicatedidentitypublickeyerror_new = function(arg0) {
7166
+ const ret = DuplicatedIdentityPublicKeyError.__wrap(arg0);
6957
7167
  return addHeapObject(ret);
6958
7168
  };
6959
- imports.wbg.__wbg_documentnotfounderror_new = function(arg0) {
6960
- const ret = DocumentNotFoundError.__wrap(arg0);
7169
+ imports.wbg.__wbg_missingmasterpublickeyerror_new = function(arg0) {
7170
+ const ret = MissingMasterPublicKeyError.__wrap(arg0);
6961
7171
  return addHeapObject(ret);
6962
7172
  };
6963
- imports.wbg.__wbg_document_new = function(arg0) {
6964
- const ret = Document.__wrap(arg0);
7173
+ imports.wbg.__wbg_identityassetlocktransactionoutpointalreadyexistserror_new = function(arg0) {
7174
+ const ret = IdentityAssetLockTransactionOutPointAlreadyExistsError.__wrap(arg0);
6965
7175
  return addHeapObject(ret);
6966
7176
  };
6967
- imports.wbg.__wbg_identitynotfounderror_new = function(arg0) {
6968
- const ret = IdentityNotFoundError.__wrap(arg0);
7177
+ imports.wbg.__wbg_invalididentityassetlocktransactionoutputerror_new = function(arg0) {
7178
+ const ret = InvalidIdentityAssetLockTransactionOutputError.__wrap(arg0);
6969
7179
  return addHeapObject(ret);
6970
7180
  };
6971
- imports.wbg.__wbg_documenttimestampsmismatcherror_new = function(arg0) {
6972
- const ret = DocumentTimestampsMismatchError.__wrap(arg0);
7181
+ imports.wbg.__wbg_invalidassetlocktransactionoutputreturnsizeerror_new = function(arg0) {
7182
+ const ret = InvalidAssetLockTransactionOutputReturnSizeError.__wrap(arg0);
6973
7183
  return addHeapObject(ret);
6974
7184
  };
6975
- imports.wbg.__wbg_invalidindexedpropertyconstrainterror_new = function(arg0) {
6976
- const ret = InvalidIndexedPropertyConstraintError.__wrap(arg0);
6977
- return addHeapObject(ret);
6978
- };
6979
- imports.wbg.__wbg_documentalreadypresenterror_new = function(arg0) {
6980
- const ret = DocumentAlreadyPresentError.__wrap(arg0);
7185
+ imports.wbg.__wbg_identityassetlocktransactionoutputnotfounderror_new = function(arg0) {
7186
+ const ret = IdentityAssetLockTransactionOutputNotFoundError.__wrap(arg0);
6981
7187
  return addHeapObject(ret);
6982
7188
  };
6983
- imports.wbg.__wbg_documentalreadyexistserror_new = function(arg0) {
6984
- const ret = DocumentAlreadyExistsError.__wrap(arg0);
7189
+ imports.wbg.__wbg_invalididentityassetlocktransactionerror_new = function(arg0) {
7190
+ const ret = InvalidIdentityAssetLockTransactionError.__wrap(arg0);
6985
7191
  return addHeapObject(ret);
6986
7192
  };
6987
- imports.wbg.__wbg_documentnotprovidederror_new = function(arg0) {
6988
- const ret = DocumentNotProvidedError.__wrap(arg0);
7193
+ imports.wbg.__wbg_invalidinstantassetlockprooferror_new = function(arg0) {
7194
+ const ret = InvalidInstantAssetLockProofError.__wrap(arg0);
6989
7195
  return addHeapObject(ret);
6990
7196
  };
6991
- imports.wbg.__wbg_invalidactionnameerror_new = function(arg0) {
6992
- const ret = InvalidActionNameError.__wrap(arg0);
7197
+ imports.wbg.__wbg_invalidinstantassetlockproofsignatureerror_new = function(arg0) {
7198
+ const ret = InvalidInstantAssetLockProofSignatureError.__wrap(arg0);
6993
7199
  return addHeapObject(ret);
6994
7200
  };
6995
- imports.wbg.__wbg_invaliddocumentactionerror_new = function(arg0) {
6996
- const ret = InvalidDocumentActionError.__wrap(arg0);
7201
+ imports.wbg.__wbg_identityassetlockprooflockedtransactionmismatcherror_new = function(arg0) {
7202
+ const ret = IdentityAssetLockProofLockedTransactionMismatchError.__wrap(arg0);
6997
7203
  return addHeapObject(ret);
6998
7204
  };
6999
- imports.wbg.__wbg_invaliddocumenterror_new = function(arg0) {
7000
- const ret = InvalidDocumentError.__wrap(arg0);
7205
+ imports.wbg.__wbg_identityassetlocktransactionisnotfounderror_new = function(arg0) {
7206
+ const ret = IdentityAssetLockTransactionIsNotFoundError.__wrap(arg0);
7001
7207
  return addHeapObject(ret);
7002
7208
  };
7003
- imports.wbg.__wbg_invalidinitialrevisionerror_new = function(arg0) {
7004
- const ret = InvalidInitialRevisionError.__wrap(arg0);
7209
+ imports.wbg.__wbg_invalidassetlockproofcorechainheighterror_new = function(arg0) {
7210
+ const ret = InvalidAssetLockProofCoreChainHeightError.__wrap(arg0);
7005
7211
  return addHeapObject(ret);
7006
7212
  };
7007
- imports.wbg.__wbg_mismatchownersidserror_new = function(arg0) {
7008
- const ret = MismatchOwnersIdsError.__wrap(arg0);
7213
+ imports.wbg.__wbg_invalidassetlockprooftransactionheighterror_new = function(arg0) {
7214
+ const ret = InvalidAssetLockProofTransactionHeightError.__wrap(arg0);
7009
7215
  return addHeapObject(ret);
7010
7216
  };
7011
- imports.wbg.__wbg_notdocumentssuppliederror_new = function(arg0) {
7012
- const ret = NotDocumentsSuppliedError.__wrap(arg0);
7217
+ imports.wbg.__wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_new = function(arg0) {
7218
+ const ret = InvalidIdentityCreditWithdrawalTransitionCoreFeeError.__wrap(arg0);
7013
7219
  return addHeapObject(ret);
7014
7220
  };
7015
- imports.wbg.__wbg_from_1240938ee473cab4 = function(arg0, arg1) {
7016
- const ret = new Buffer(getArrayU8FromWasm0(arg0, arg1));
7221
+ imports.wbg.__wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_new = function(arg0) {
7222
+ const ret = InvalidIdentityCreditWithdrawalTransitionOutputScriptError.__wrap(arg0);
7017
7223
  return addHeapObject(ret);
7018
7224
  };
7019
- imports.wbg.__wbg_indexdefinition_new = function(arg0) {
7020
- const ret = IndexDefinition.__wrap(arg0);
7225
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
7226
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
7021
7227
  return addHeapObject(ret);
7022
7228
  };
7023
- imports.wbg.__wbg_invaliddocumenttransitionactionerror_new = function(arg0) {
7024
- const ret = InvalidDocumentTransitionActionError.__wrap(arg0);
7229
+ imports.wbg.__wbg_serializedobjectparsingerror_new = function(arg0) {
7230
+ const ret = SerializedObjectParsingError.__wrap(arg0);
7025
7231
  return addHeapObject(ret);
7026
7232
  };
7027
- imports.wbg.__wbg_invalidstatetransitiontypeerror_new = function(arg0) {
7028
- const ret = InvalidStateTransitionTypeError.__wrap(arg0);
7233
+ imports.wbg.__wbg_protocolversionparsingerror_new = function(arg0) {
7234
+ const ret = ProtocolVersionParsingError.__wrap(arg0);
7029
7235
  return addHeapObject(ret);
7030
7236
  };
7031
- imports.wbg.__wbg_maxidentitypublickeylimitreachederror_new = function(arg0) {
7032
- const ret = MaxIdentityPublicKeyLimitReachedError.__wrap(arg0);
7237
+ imports.wbg.__wbg_incompatiblere2patternerror_new = function(arg0) {
7238
+ const ret = IncompatibleRe2PatternError.__wrap(arg0);
7033
7239
  return addHeapObject(ret);
7034
7240
  };
7035
- imports.wbg.__wbg_invalididentitypublickeyiderror_new = function(arg0) {
7036
- const ret = InvalidIdentityPublicKeyIdError.__wrap(arg0);
7241
+ imports.wbg.__wbg_identityinsufficientbalanceerror_new = function(arg0) {
7242
+ const ret = IdentityInsufficientBalanceError.__wrap(arg0);
7037
7243
  return addHeapObject(ret);
7038
7244
  };
7039
- imports.wbg.__wbg_invalidjsonschemareferror_new = function(arg0) {
7040
- const ret = InvalidJsonSchemaRefError.__wrap(arg0);
7245
+ imports.wbg.__wbg_identityalreadyexistserror_new = function(arg0) {
7246
+ const ret = IdentityAlreadyExistsError.__wrap(arg0);
7041
7247
  return addHeapObject(ret);
7042
7248
  };
7043
- imports.wbg.__wbg_datacontractmaxdeptherror_new = function(arg0) {
7044
- const ret = DataContractMaxDepthError.__wrap(arg0);
7249
+ imports.wbg.__wbg_balanceisnotenougherror_new = function(arg0) {
7250
+ const ret = BalanceIsNotEnoughError.__wrap(arg0);
7045
7251
  return addHeapObject(ret);
7046
7252
  };
7047
- imports.wbg.__wbg_jsonschemacompilationerror_new = function(arg0) {
7048
- const ret = JsonSchemaCompilationError.__wrap(arg0);
7253
+ imports.wbg.__wbg_indexdefinition_new = function(arg0) {
7254
+ const ret = IndexDefinition.__wrap(arg0);
7049
7255
  return addHeapObject(ret);
7050
7256
  };
7051
- imports.wbg.__wbg_identitypublickeyisreadonlyerror_new = function(arg0) {
7052
- const ret = IdentityPublicKeyIsReadOnlyError.__wrap(arg0);
7257
+ imports.wbg.__wbg_from_1240938ee473cab4 = function(arg0, arg1) {
7258
+ const ret = new Buffer(getArrayU8FromWasm0(arg0, arg1));
7053
7259
  return addHeapObject(ret);
7054
7260
  };
7055
- imports.wbg.__wbg_datacontract_new = function(arg0) {
7056
- const ret = DataContract.__wrap(arg0);
7057
- return addHeapObject(ret);
7261
+ imports.wbg.__wbindgen_is_string = function(arg0) {
7262
+ const ret = typeof(getObject(arg0)) === 'string';
7263
+ return ret;
7058
7264
  };
7059
7265
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
7060
7266
  const obj = getObject(arg1);
@@ -7068,53 +7274,73 @@ function getImports() {
7068
7274
  const ret = getStringFromWasm0(arg0, arg1);
7069
7275
  return addHeapObject(ret);
7070
7276
  };
7071
- imports.wbg.__wbindgen_is_string = function(arg0) {
7072
- const ret = typeof(getObject(arg0)) === 'string';
7073
- return ret;
7277
+ imports.wbg.__wbg_nonconsensuserrorwasm_new = function(arg0) {
7278
+ const ret = NonConsensusErrorWasm.__wrap(arg0);
7279
+ return addHeapObject(ret);
7074
7280
  };
7075
- imports.wbg.__wbg_invalidindexpropertytypeerror_new = function(arg0) {
7076
- const ret = InvalidIndexPropertyTypeError.__wrap(arg0);
7281
+ imports.wbg.__wbg_document_new = function(arg0) {
7282
+ const ret = Document.__wrap(arg0);
7077
7283
  return addHeapObject(ret);
7078
7284
  };
7079
- imports.wbg.__wbg_missingpublickeyerror_new = function(arg0) {
7080
- const ret = MissingPublicKeyError.__wrap(arg0);
7285
+ imports.wbg.__wbg_datacontractnotpresenterror_new = function(arg0) {
7286
+ const ret = DataContractNotPresentError.__wrap(arg0);
7081
7287
  return addHeapObject(ret);
7082
7288
  };
7083
- imports.wbg.__wbg_invalididentitykeysignatureerror_new = function(arg0) {
7084
- const ret = InvalidIdentityKeySignatureError.__wrap(arg0);
7289
+ imports.wbg.__wbg_invalididentitypublickeytypeerror_new = function(arg0) {
7290
+ const ret = InvalidIdentityPublicKeyTypeError.__wrap(arg0);
7085
7291
  return addHeapObject(ret);
7086
7292
  };
7087
- imports.wbg.__wbg_identitypublickeyisdisablederror_new = function(arg0) {
7088
- const ret = IdentityPublicKeyIsDisabledError.__wrap(arg0);
7293
+ imports.wbg.__wbg_documentnotfounderror_new = function(arg0) {
7294
+ const ret = DocumentNotFoundError.__wrap(arg0);
7089
7295
  return addHeapObject(ret);
7090
7296
  };
7091
- imports.wbg.__wbg_identitypublickeydisabledatwindowviolationerror_new = function(arg0) {
7092
- const ret = IdentityPublicKeyDisabledAtWindowViolationError.__wrap(arg0);
7297
+ imports.wbg.__wbg_jsonschemacompilationerror_new = function(arg0) {
7298
+ const ret = JsonSchemaCompilationError.__wrap(arg0);
7093
7299
  return addHeapObject(ret);
7094
7300
  };
7095
- imports.wbg.__wbg_invalididentitypublickeysecuritylevelerror_new = function(arg0) {
7096
- const ret = InvalidIdentityPublicKeySecurityLevelError.__wrap(arg0);
7301
+ imports.wbg.__wbg_identitynotfounderror_new = function(arg0) {
7302
+ const ret = IdentityNotFoundError.__wrap(arg0);
7097
7303
  return addHeapObject(ret);
7098
7304
  };
7099
- imports.wbg.__wbg_publickeyisdisablederror_new = function(arg0) {
7100
- const ret = PublicKeyIsDisabledError.__wrap(arg0);
7305
+ imports.wbg.__wbg_incompatibledatacontractschemaerror_new = function(arg0) {
7306
+ const ret = IncompatibleDataContractSchemaError.__wrap(arg0);
7101
7307
  return addHeapObject(ret);
7102
7308
  };
7103
- imports.wbg.__wbg_documentcreatetransition_new = function(arg0) {
7104
- const ret = DocumentCreateTransition.__wrap(arg0);
7309
+ imports.wbg.__wbg_documentalreadyexistserror_new = function(arg0) {
7310
+ const ret = DocumentAlreadyExistsError.__wrap(arg0);
7105
7311
  return addHeapObject(ret);
7106
7312
  };
7107
- imports.wbg.__wbg_documenttransition_new = function(arg0) {
7108
- const ret = DocumentTransition.__wrap(arg0);
7313
+ imports.wbg.__wbg_documentnotprovidederror_new = function(arg0) {
7314
+ const ret = DocumentNotProvidedError.__wrap(arg0);
7109
7315
  return addHeapObject(ret);
7110
7316
  };
7111
- imports.wbg.__wbg_documentdeletetransition_new = function(arg0) {
7112
- const ret = DocumentDeleteTransition.__wrap(arg0);
7317
+ imports.wbg.__wbg_invalidactionnameerror_new = function(arg0) {
7318
+ const ret = InvalidActionNameError.__wrap(arg0);
7113
7319
  return addHeapObject(ret);
7114
7320
  };
7115
- imports.wbg.__wbg_validatePublicKey_bee145d16f9dc2e3 = function(arg0, arg1, arg2) {
7116
- const ret = getObject(arg0).validatePublicKey(getArrayU8FromWasm0(arg1, arg2));
7117
- return ret;
7321
+ imports.wbg.__wbg_invaliddocumentactionerror_new = function(arg0) {
7322
+ const ret = InvalidDocumentActionError.__wrap(arg0);
7323
+ return addHeapObject(ret);
7324
+ };
7325
+ imports.wbg.__wbg_invaliddocumenterror_new = function(arg0) {
7326
+ const ret = InvalidDocumentError.__wrap(arg0);
7327
+ return addHeapObject(ret);
7328
+ };
7329
+ imports.wbg.__wbg_invalidinitialrevisionerror_new = function(arg0) {
7330
+ const ret = InvalidInitialRevisionError.__wrap(arg0);
7331
+ return addHeapObject(ret);
7332
+ };
7333
+ imports.wbg.__wbg_mismatchownersidserror_new = function(arg0) {
7334
+ const ret = MismatchOwnersIdsError.__wrap(arg0);
7335
+ return addHeapObject(ret);
7336
+ };
7337
+ imports.wbg.__wbg_notdocumentssuppliederror_new = function(arg0) {
7338
+ const ret = NotDocumentsSuppliedError.__wrap(arg0);
7339
+ return addHeapObject(ret);
7340
+ };
7341
+ imports.wbg.__wbg_datacontract_new = function(arg0) {
7342
+ const ret = DataContract.__wrap(arg0);
7343
+ return addHeapObject(ret);
7118
7344
  };
7119
7345
  imports.wbg.__wbg_invaliddatacontracterror_new = function(arg0) {
7120
7346
  const ret = InvalidDataContractError.__wrap(arg0);
@@ -7124,6 +7350,22 @@ function getImports() {
7124
7350
  const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
7125
7351
  return addHeapObject(ret);
7126
7352
  };
7353
+ imports.wbg.__wbg_datacontractcreatetransition_new = function(arg0) {
7354
+ const ret = DataContractCreateTransition.__wrap(arg0);
7355
+ return addHeapObject(ret);
7356
+ };
7357
+ imports.wbg.__wbg_documentcreatetransition_new = function(arg0) {
7358
+ const ret = DocumentCreateTransition.__wrap(arg0);
7359
+ return addHeapObject(ret);
7360
+ };
7361
+ imports.wbg.__wbg_documentdeletetransition_new = function(arg0) {
7362
+ const ret = DocumentDeleteTransition.__wrap(arg0);
7363
+ return addHeapObject(ret);
7364
+ };
7365
+ imports.wbg.__wbg_documenttransition_new = function(arg0) {
7366
+ const ret = DocumentTransition.__wrap(arg0);
7367
+ return addHeapObject(ret);
7368
+ };
7127
7369
  imports.wbg.__wbg_datacontracthavenewuniqueindexerror_new = function(arg0) {
7128
7370
  const ret = DataContractHaveNewUniqueIndexError.__wrap(arg0);
7129
7371
  return addHeapObject(ret);
@@ -7136,6 +7378,10 @@ function getImports() {
7136
7378
  const ret = DataContractInvalidIndexDefinitionUpdateError.__wrap(arg0);
7137
7379
  return addHeapObject(ret);
7138
7380
  };
7381
+ imports.wbg.__wbg_datacontractmaxdeptherror_new = function(arg0) {
7382
+ const ret = DataContractMaxDepthError.__wrap(arg0);
7383
+ return addHeapObject(ret);
7384
+ };
7139
7385
  imports.wbg.__wbg_datacontractuniqueindiceschangederror_new = function(arg0) {
7140
7386
  const ret = DataContractUniqueIndicesChangedError.__wrap(arg0);
7141
7387
  return addHeapObject(ret);
@@ -7144,10 +7390,6 @@ function getImports() {
7144
7390
  const ret = DuplicateIndexNameError.__wrap(arg0);
7145
7391
  return addHeapObject(ret);
7146
7392
  };
7147
- imports.wbg.__wbg_incompatiblere2patternerror_new = function(arg0) {
7148
- const ret = IncompatibleRe2PatternError.__wrap(arg0);
7149
- return addHeapObject(ret);
7150
- };
7151
7393
  imports.wbg.__wbg_duplicateindexerror_new = function(arg0) {
7152
7394
  const ret = DuplicateIndexError.__wrap(arg0);
7153
7395
  return addHeapObject(ret);
@@ -7156,6 +7398,14 @@ function getImports() {
7156
7398
  const ret = InvalidCompoundIndexError.__wrap(arg0);
7157
7399
  return addHeapObject(ret);
7158
7400
  };
7401
+ imports.wbg.__wbg_invalidindexpropertytypeerror_new = function(arg0) {
7402
+ const ret = InvalidIndexPropertyTypeError.__wrap(arg0);
7403
+ return addHeapObject(ret);
7404
+ };
7405
+ imports.wbg.__wbg_invalidindexedpropertyconstrainterror_new = function(arg0) {
7406
+ const ret = InvalidIndexedPropertyConstraintError.__wrap(arg0);
7407
+ return addHeapObject(ret);
7408
+ };
7159
7409
  imports.wbg.__wbg_systempropertyindexalreadypresenterror_new = function(arg0) {
7160
7410
  const ret = SystemPropertyIndexAlreadyPresentError.__wrap(arg0);
7161
7411
  return addHeapObject(ret);
@@ -7176,8 +7426,8 @@ function getImports() {
7176
7426
  const ret = InvalidDataContractVersionError.__wrap(arg0);
7177
7427
  return addHeapObject(ret);
7178
7428
  };
7179
- imports.wbg.__wbg_protocolversionparsingerror_new = function(arg0) {
7180
- const ret = ProtocolVersionParsingError.__wrap(arg0);
7429
+ imports.wbg.__wbg_invalidjsonschemareferror_new = function(arg0) {
7430
+ const ret = InvalidJsonSchemaRefError.__wrap(arg0);
7181
7431
  return addHeapObject(ret);
7182
7432
  };
7183
7433
  imports.wbg.__wbg_duplicatedocumenttransitionswithidserror_new = function(arg0) {
@@ -7188,6 +7438,10 @@ function getImports() {
7188
7438
  const ret = InconsistentCompoundIndexDataError.__wrap(arg0);
7189
7439
  return addHeapObject(ret);
7190
7440
  };
7441
+ imports.wbg.__wbg_invaliddocumenttransitionactionerror_new = function(arg0) {
7442
+ const ret = InvalidDocumentTransitionActionError.__wrap(arg0);
7443
+ return addHeapObject(ret);
7444
+ };
7191
7445
  imports.wbg.__wbg_invaliddocumenttransitioniderror_new = function(arg0) {
7192
7446
  const ret = InvalidDocumentTransitionIdError.__wrap(arg0);
7193
7447
  return addHeapObject(ret);
@@ -7208,84 +7462,16 @@ function getImports() {
7208
7462
  const ret = MissingDocumentTypeError.__wrap(arg0);
7209
7463
  return addHeapObject(ret);
7210
7464
  };
7211
- imports.wbg.__wbg_duplicatedidentitypublickeyerror_new = function(arg0) {
7212
- const ret = DuplicatedIdentityPublicKeyError.__wrap(arg0);
7213
- return addHeapObject(ret);
7214
- };
7215
- imports.wbg.__wbg_duplicatedidentitypublickeyiderror_new = function(arg0) {
7216
- const ret = DuplicatedIdentityPublicKeyIdError.__wrap(arg0);
7217
- return addHeapObject(ret);
7218
- };
7219
- imports.wbg.__wbg_identityassetlockprooflockedtransactionmismatcherror_new = function(arg0) {
7220
- const ret = IdentityAssetLockProofLockedTransactionMismatchError.__wrap(arg0);
7221
- return addHeapObject(ret);
7222
- };
7223
- imports.wbg.__wbg_identityassetlocktransactionisnotfounderror_new = function(arg0) {
7224
- const ret = IdentityAssetLockTransactionIsNotFoundError.__wrap(arg0);
7225
- return addHeapObject(ret);
7226
- };
7227
- imports.wbg.__wbg_identityassetlocktransactionoutpointalreadyexistserror_new = function(arg0) {
7228
- const ret = IdentityAssetLockTransactionOutPointAlreadyExistsError.__wrap(arg0);
7229
- return addHeapObject(ret);
7230
- };
7231
- imports.wbg.__wbg_identityassetlocktransactionoutputnotfounderror_new = function(arg0) {
7232
- const ret = IdentityAssetLockTransactionOutputNotFoundError.__wrap(arg0);
7233
- return addHeapObject(ret);
7234
- };
7235
- imports.wbg.__wbg_identityinsufficientbalanceerror_new = function(arg0) {
7236
- const ret = IdentityInsufficientBalanceError.__wrap(arg0);
7237
- return addHeapObject(ret);
7238
- };
7239
- imports.wbg.__wbg_invalidassetlockproofcorechainheighterror_new = function(arg0) {
7240
- const ret = InvalidAssetLockProofCoreChainHeightError.__wrap(arg0);
7241
- return addHeapObject(ret);
7242
- };
7243
- imports.wbg.__wbg_invalidassetlockprooftransactionheighterror_new = function(arg0) {
7244
- const ret = InvalidAssetLockProofTransactionHeightError.__wrap(arg0);
7245
- return addHeapObject(ret);
7246
- };
7247
- imports.wbg.__wbg_invalidassetlocktransactionoutputreturnsizeerror_new = function(arg0) {
7248
- const ret = InvalidAssetLockTransactionOutputReturnSizeError.__wrap(arg0);
7249
- return addHeapObject(ret);
7250
- };
7251
7465
  imports.wbg.__wbg_transactiondecodeerror_new = function(arg0) {
7252
7466
  const ret = TransactionDecodeError.__wrap(arg0);
7253
7467
  return addHeapObject(ret);
7254
7468
  };
7255
- imports.wbg.__wbg_invalididentityassetlocktransactionerror_new = function(arg0) {
7256
- const ret = InvalidIdentityAssetLockTransactionError.__wrap(arg0);
7257
- return addHeapObject(ret);
7258
- };
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
- imports.wbg.__wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_new = function(arg0) {
7268
- const ret = InvalidIdentityCreditWithdrawalTransitionOutputScriptError.__wrap(arg0);
7269
- return addHeapObject(ret);
7270
- };
7271
- imports.wbg.__wbg_invalididentitypublickeydataerror_new = function(arg0) {
7272
- const ret = InvalidIdentityPublicKeyDataError.__wrap(arg0);
7273
- return addHeapObject(ret);
7274
- };
7275
- imports.wbg.__wbg_invalidinstantassetlockprooferror_new = function(arg0) {
7276
- const ret = InvalidInstantAssetLockProofError.__wrap(arg0);
7277
- return addHeapObject(ret);
7278
- };
7279
- imports.wbg.__wbg_invalidinstantassetlockproofsignatureerror_new = function(arg0) {
7280
- const ret = InvalidInstantAssetLockProofSignatureError.__wrap(arg0);
7281
- return addHeapObject(ret);
7282
- };
7283
- imports.wbg.__wbg_missingmasterpublickeyerror_new = function(arg0) {
7284
- const ret = MissingMasterPublicKeyError.__wrap(arg0);
7469
+ imports.wbg.__wbg_invalididentitykeysignatureerror_new = function(arg0) {
7470
+ const ret = InvalidIdentityKeySignatureError.__wrap(arg0);
7285
7471
  return addHeapObject(ret);
7286
7472
  };
7287
- imports.wbg.__wbg_incompatibleprotocolversionerror_new = function(arg0) {
7288
- const ret = IncompatibleProtocolVersionError.__wrap(arg0);
7473
+ imports.wbg.__wbg_missingpublickeyerror_new = function(arg0) {
7474
+ const ret = MissingPublicKeyError.__wrap(arg0);
7289
7475
  return addHeapObject(ret);
7290
7476
  };
7291
7477
  imports.wbg.__wbg_invalididentifiererror_new = function(arg0) {
@@ -7300,14 +7486,18 @@ function getImports() {
7300
7486
  const ret = InvalidStateTransitionSignatureError.__wrap(arg0);
7301
7487
  return addHeapObject(ret);
7302
7488
  };
7303
- imports.wbg.__wbg_jsonschemaerror_new = function(arg0) {
7304
- const ret = JsonSchemaError.__wrap(arg0);
7489
+ imports.wbg.__wbg_publickeyisdisablederror_new = function(arg0) {
7490
+ const ret = PublicKeyIsDisabledError.__wrap(arg0);
7305
7491
  return addHeapObject(ret);
7306
7492
  };
7307
7493
  imports.wbg.__wbg_publickeysecuritylevelnotmeterror_new = function(arg0) {
7308
7494
  const ret = PublicKeySecurityLevelNotMetError.__wrap(arg0);
7309
7495
  return addHeapObject(ret);
7310
7496
  };
7497
+ imports.wbg.__wbg_invalidstatetransitiontypeerror_new = function(arg0) {
7498
+ const ret = InvalidStateTransitionTypeError.__wrap(arg0);
7499
+ return addHeapObject(ret);
7500
+ };
7311
7501
  imports.wbg.__wbg_missingstatetransitiontypeerror_new = function(arg0) {
7312
7502
  const ret = MissingStateTransitionTypeError.__wrap(arg0);
7313
7503
  return addHeapObject(ret);
@@ -7316,16 +7506,12 @@ function getImports() {
7316
7506
  const ret = StateTransitionMaxSizeExceededError.__wrap(arg0);
7317
7507
  return addHeapObject(ret);
7318
7508
  };
7319
- imports.wbg.__wbg_unsupportedprotocolversionerror_new = function(arg0) {
7320
- const ret = UnsupportedProtocolVersionError.__wrap(arg0);
7321
- return addHeapObject(ret);
7322
- };
7323
7509
  imports.wbg.__wbg_wrongpublickeypurposeerror_new = function(arg0) {
7324
7510
  const ret = WrongPublicKeyPurposeError.__wrap(arg0);
7325
7511
  return addHeapObject(ret);
7326
7512
  };
7327
- imports.wbg.__wbg_balanceisnotenougherror_new = function(arg0) {
7328
- const ret = BalanceIsNotEnoughError.__wrap(arg0);
7513
+ imports.wbg.__wbg_datacontractalreadypresenterror_new = function(arg0) {
7514
+ const ret = DataContractAlreadyPresentError.__wrap(arg0);
7329
7515
  return addHeapObject(ret);
7330
7516
  };
7331
7517
  imports.wbg.__wbg_datatriggerconditionerror_new = function(arg0) {
@@ -7340,6 +7526,10 @@ function getImports() {
7340
7526
  const ret = DataTriggerInvalidResultError.__wrap(arg0);
7341
7527
  return addHeapObject(ret);
7342
7528
  };
7529
+ imports.wbg.__wbg_documentalreadypresenterror_new = function(arg0) {
7530
+ const ret = DocumentAlreadyPresentError.__wrap(arg0);
7531
+ return addHeapObject(ret);
7532
+ };
7343
7533
  imports.wbg.__wbg_documentowneridmismatcherror_new = function(arg0) {
7344
7534
  const ret = DocumentOwnerIdMismatchError.__wrap(arg0);
7345
7535
  return addHeapObject(ret);
@@ -7348,6 +7538,10 @@ function getImports() {
7348
7538
  const ret = DocumentTimestampWindowViolationError.__wrap(arg0);
7349
7539
  return addHeapObject(ret);
7350
7540
  };
7541
+ imports.wbg.__wbg_documenttimestampsmismatcherror_new = function(arg0) {
7542
+ const ret = DocumentTimestampsMismatchError.__wrap(arg0);
7543
+ return addHeapObject(ret);
7544
+ };
7351
7545
  imports.wbg.__wbg_duplicateuniqueindexerror_new = function(arg0) {
7352
7546
  const ret = DuplicateUniqueIndexError.__wrap(arg0);
7353
7547
  return addHeapObject(ret);
@@ -7356,20 +7550,32 @@ function getImports() {
7356
7550
  const ret = InvalidDocumentRevisionError.__wrap(arg0);
7357
7551
  return addHeapObject(ret);
7358
7552
  };
7359
- imports.wbg.__wbg_identityalreadyexistserror_new = function(arg0) {
7360
- const ret = IdentityAlreadyExistsError.__wrap(arg0);
7553
+ imports.wbg.__wbg_identitypublickeydisabledatwindowviolationerror_new = function(arg0) {
7554
+ const ret = IdentityPublicKeyDisabledAtWindowViolationError.__wrap(arg0);
7361
7555
  return addHeapObject(ret);
7362
7556
  };
7363
- imports.wbg.__wbindgen_number_new = function(arg0) {
7364
- const ret = arg0;
7557
+ imports.wbg.__wbg_identitypublickeyisdisablederror_new = function(arg0) {
7558
+ const ret = IdentityPublicKeyIsDisabledError.__wrap(arg0);
7559
+ return addHeapObject(ret);
7560
+ };
7561
+ imports.wbg.__wbg_identitypublickeyisreadonlyerror_new = function(arg0) {
7562
+ const ret = IdentityPublicKeyIsReadOnlyError.__wrap(arg0);
7563
+ return addHeapObject(ret);
7564
+ };
7565
+ imports.wbg.__wbg_invalididentitypublickeyiderror_new = function(arg0) {
7566
+ const ret = InvalidIdentityPublicKeyIdError.__wrap(arg0);
7365
7567
  return addHeapObject(ret);
7366
7568
  };
7367
7569
  imports.wbg.__wbg_invalididentityrevisionerror_new = function(arg0) {
7368
7570
  const ret = InvalidIdentityRevisionError.__wrap(arg0);
7369
7571
  return addHeapObject(ret);
7370
7572
  };
7371
- imports.wbg.__wbg_nonconsensuserrorwasm_new = function(arg0) {
7372
- const ret = NonConsensusErrorWasm.__wrap(arg0);
7573
+ imports.wbg.__wbg_maxidentitypublickeylimitreachederror_new = function(arg0) {
7574
+ const ret = MaxIdentityPublicKeyLimitReachedError.__wrap(arg0);
7575
+ return addHeapObject(ret);
7576
+ };
7577
+ imports.wbg.__wbg_validationresult_new = function(arg0) {
7578
+ const ret = ValidationResult.__wrap(arg0);
7373
7579
  return addHeapObject(ret);
7374
7580
  };
7375
7581
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
@@ -7412,6 +7618,28 @@ function getImports() {
7412
7618
  const ret = getObject(arg0) === undefined;
7413
7619
  return ret;
7414
7620
  };
7621
+ imports.wbg.__wbg_fetchDataContract_b17bbb6c3e7c09f9 = function(arg0, arg1, arg2) {
7622
+ const ret = getObject(arg0).fetchDataContract(Identifier.__wrap(arg1), StateTransitionExecutionContext.__wrap(arg2));
7623
+ let ptr0 = 0;
7624
+ if (!isLikeNone(ret)) {
7625
+ _assertClass(ret, DataContract);
7626
+ ptr0 = ret.ptr;
7627
+ ret.ptr = 0;
7628
+ }
7629
+ return ptr0;
7630
+ };
7631
+ imports.wbg.__wbg_storeDataContract_dd0024afb8d1eabf = function(arg0, arg1, arg2) {
7632
+ const ret = getObject(arg0).storeDataContract(DataContract.__wrap(arg1), StateTransitionExecutionContext.__wrap(arg2));
7633
+ return addHeapObject(ret);
7634
+ };
7635
+ imports.wbg.__wbg_validatePublicKey_bee145d16f9dc2e3 = function(arg0, arg1, arg2) {
7636
+ const ret = getObject(arg0).validatePublicKey(getArrayU8FromWasm0(arg1, arg2));
7637
+ return ret;
7638
+ };
7639
+ imports.wbg.__wbindgen_number_new = function(arg0) {
7640
+ const ret = arg0;
7641
+ return addHeapObject(ret);
7642
+ };
7415
7643
  imports.wbg.__wbg_generate_1f42caa3e9e2b460 = function(arg0, arg1) {
7416
7644
  const ret = getObject(arg1).generate();
7417
7645
  const ptr0 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
@@ -7446,12 +7674,6 @@ function getImports() {
7446
7674
  imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
7447
7675
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
7448
7676
  };
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
7677
  imports.wbg.__wbg_crypto_e1d53a1d73fb10b8 = function(arg0) {
7456
7678
  const ret = getObject(arg0).crypto;
7457
7679
  return addHeapObject(ret);
@@ -7480,6 +7702,12 @@ function getImports() {
7480
7702
  const ret = typeof(getObject(arg0)) === 'function';
7481
7703
  return ret;
7482
7704
  };
7705
+ imports.wbg.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
7706
+ getObject(arg0).getRandomValues(getObject(arg1));
7707
+ }, arguments) };
7708
+ imports.wbg.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
7709
+ getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
7710
+ }, arguments) };
7483
7711
  imports.wbg.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
7484
7712
  const ret = getObject(arg0)[arg1 >>> 0];
7485
7713
  return addHeapObject(ret);
@@ -7608,7 +7836,7 @@ function getImports() {
7608
7836
  const a = state0.a;
7609
7837
  state0.a = 0;
7610
7838
  try {
7611
- return __wbg_adapter_723(a, state0.b, arg0, arg1);
7839
+ return __wbg_adapter_747(a, state0.b, arg0, arg1);
7612
7840
  } finally {
7613
7841
  state0.a = a;
7614
7842
  }
@@ -7692,8 +7920,8 @@ function getImports() {
7692
7920
  const ret = wasm.memory;
7693
7921
  return addHeapObject(ret);
7694
7922
  };
7695
- imports.wbg.__wbindgen_closure_wrapper1401 = function(arg0, arg1, arg2) {
7696
- const ret = makeMutClosure(arg0, arg1, 183, __wbg_adapter_48);
7923
+ imports.wbg.__wbindgen_closure_wrapper1461 = function(arg0, arg1, arg2) {
7924
+ const ret = makeMutClosure(arg0, arg1, 189, __wbg_adapter_48);
7697
7925
  return addHeapObject(ret);
7698
7926
  };
7699
7927