@dashevo/wasm-dpp 0.25.0-dev.29 → 0.25.0-dev.30

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.
@@ -279,7 +279,15 @@ function makeMutClosure(arg0, arg1, dtor, f) {
279
279
  }
280
280
 
281
281
  function __wbg_adapter_56(arg0, arg1, arg2) {
282
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2a8d816163238efc(arg0, arg1, addHeapObject(arg2));
282
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h114bf6a8ad0330e3(arg0, arg1, addHeapObject(arg2));
283
+ }
284
+
285
+ function _assertClass(instance, klass) {
286
+ if (!(instance instanceof klass)) {
287
+ throw new Error("expected instance of ".concat(klass.name));
288
+ }
289
+
290
+ return instance.ptr;
283
291
  }
284
292
 
285
293
  let stack_pointer = 128;
@@ -297,11 +305,6 @@ function passArray8ToWasm0(arg, malloc) {
297
305
  return ptr;
298
306
  }
299
307
 
300
- function getArrayU8FromWasm0(ptr, len) {
301
- ptr = ptr >>> 0;
302
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
303
- }
304
-
305
308
  let cachedUint32Memory0 = null;
306
309
 
307
310
  function getUint32Memory0() {
@@ -325,38 +328,28 @@ function getArrayJsValueFromWasm0(ptr, len) {
325
328
  return result;
326
329
  }
327
330
 
328
- function _assertClass(instance, klass) {
329
- if (!(instance instanceof klass)) {
330
- throw new Error("expected instance of ".concat(klass.name));
331
- }
332
-
333
- return instance.ptr;
334
- }
335
-
336
- function passArrayJsValueToWasm0(array, malloc) {
337
- const ptr = malloc(array.length * 4) >>> 0;
338
- const mem = getUint32Memory0();
339
-
340
- for (let i = 0; i < array.length; i++) {
341
- mem[ptr / 4 + i] = addHeapObject(array[i]);
342
- }
343
-
344
- WASM_VECTOR_LEN = array.length;
345
- return ptr;
331
+ function getArrayU8FromWasm0(ptr, len) {
332
+ ptr = ptr >>> 0;
333
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
346
334
  }
347
335
  /**
348
- * @param {Uint8Array} bytes
336
+ * @param {any} contract_id
337
+ * @param {any} owner_id
338
+ * @param {string} document_type
339
+ * @param {Uint8Array} entropy
349
340
  * @returns {any}
350
341
  */
351
342
 
352
343
 
353
- function deserializeConsensusError(bytes) {
344
+ function generateDocumentId(contract_id, owner_id, document_type, entropy) {
354
345
  try {
355
346
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
356
347
 
357
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
348
+ const ptr0 = passStringToWasm0(document_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
358
349
  const len0 = WASM_VECTOR_LEN;
359
- wasm.deserializeConsensusError(retptr, ptr0, len0);
350
+ const ptr1 = passArray8ToWasm0(entropy, wasm.__wbindgen_malloc);
351
+ const len1 = WASM_VECTOR_LEN;
352
+ wasm.generateDocumentId(retptr, addBorrowedObject(contract_id), addBorrowedObject(owner_id), ptr0, len0, ptr1, len1);
360
353
  var r0 = getInt32Memory0()[retptr / 4 + 0];
361
354
  var r1 = getInt32Memory0()[retptr / 4 + 1];
362
355
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -368,6 +361,9 @@ function deserializeConsensusError(bytes) {
368
361
  return takeObject(r0);
369
362
  } finally {
370
363
  wasm.__wbindgen_add_to_stack_pointer(16);
364
+
365
+ heap[stack_pointer++] = undefined;
366
+ heap[stack_pointer++] = undefined;
371
367
  }
372
368
  }
373
369
  /**
@@ -394,33 +390,38 @@ function createAssetLockProofInstance(raw_parameters) {
394
390
  wasm.__wbindgen_add_to_stack_pointer(16);
395
391
  }
396
392
  }
397
- /**
398
- * @returns {number}
399
- */
400
393
 
394
+ function passArrayJsValueToWasm0(array, malloc) {
395
+ const ptr = malloc(array.length * 4) >>> 0;
396
+ const mem = getUint32Memory0();
401
397
 
402
- function getLatestProtocolVersion() {
403
- const ret = wasm.getLatestProtocolVersion();
404
- return ret >>> 0;
398
+ for (let i = 0; i < array.length; i++) {
399
+ mem[ptr / 4 + i] = addHeapObject(array[i]);
400
+ }
401
+
402
+ WASM_VECTOR_LEN = array.length;
403
+ return ptr;
404
+ }
405
+
406
+ function passArray32ToWasm0(arg, malloc) {
407
+ const ptr = malloc(arg.length * 4) >>> 0;
408
+ getUint32Memory0().set(arg, ptr / 4);
409
+ WASM_VECTOR_LEN = arg.length;
410
+ return ptr;
405
411
  }
406
412
  /**
407
- * @param {any} contract_id
408
- * @param {any} owner_id
409
- * @param {string} document_type
410
- * @param {Uint8Array} entropy
413
+ * @param {Uint8Array} bytes
411
414
  * @returns {any}
412
415
  */
413
416
 
414
417
 
415
- function generateDocumentId(contract_id, owner_id, document_type, entropy) {
418
+ function deserializeConsensusError(bytes) {
416
419
  try {
417
420
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
418
421
 
419
- const ptr0 = passStringToWasm0(document_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
422
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
420
423
  const len0 = WASM_VECTOR_LEN;
421
- const ptr1 = passArray8ToWasm0(entropy, wasm.__wbindgen_malloc);
422
- const len1 = WASM_VECTOR_LEN;
423
- wasm.generateDocumentId(retptr, addBorrowedObject(contract_id), addBorrowedObject(owner_id), ptr0, len0, ptr1, len1);
424
+ wasm.deserializeConsensusError(retptr, ptr0, len0);
424
425
  var r0 = getInt32Memory0()[retptr / 4 + 0];
425
426
  var r1 = getInt32Memory0()[retptr / 4 + 1];
426
427
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -432,17 +433,16 @@ function generateDocumentId(contract_id, owner_id, document_type, entropy) {
432
433
  return takeObject(r0);
433
434
  } finally {
434
435
  wasm.__wbindgen_add_to_stack_pointer(16);
435
-
436
- heap[stack_pointer++] = undefined;
437
- heap[stack_pointer++] = undefined;
438
436
  }
439
437
  }
438
+ /**
439
+ * @returns {number}
440
+ */
440
441
 
441
- function passArray32ToWasm0(arg, malloc) {
442
- const ptr = malloc(arg.length * 4) >>> 0;
443
- getUint32Memory0().set(arg, ptr / 4);
444
- WASM_VECTOR_LEN = arg.length;
445
- return ptr;
442
+
443
+ function getLatestProtocolVersion() {
444
+ const ret = wasm.getLatestProtocolVersion();
445
+ return ret >>> 0;
446
446
  }
447
447
 
448
448
  function handleError(f, args) {
@@ -454,7 +454,7 @@ function handleError(f, args) {
454
454
  }
455
455
 
456
456
  function __wbg_adapter_1188(arg0, arg1, arg2, arg3) {
457
- wasm.wasm_bindgen__convert__closures__invoke2_mut__ha2c028bd006c6969(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
457
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h37f7f7a20d080ebc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
458
458
  }
459
459
  /**
460
460
  */
@@ -501,28 +501,6 @@ const KeyPurpose = Object.freeze({
501
501
  */
502
502
 
503
503
  exports.KeyPurpose = KeyPurpose;
504
- const StateTransitionTypes = Object.freeze({
505
- DataContractCreate: 0,
506
- "0": "DataContractCreate",
507
- DocumentsBatch: 1,
508
- "1": "DocumentsBatch",
509
- IdentityCreate: 2,
510
- "2": "IdentityCreate",
511
- IdentityTopUp: 3,
512
- "3": "IdentityTopUp",
513
- DataContractUpdate: 4,
514
- "4": "DataContractUpdate",
515
- IdentityUpdate: 5,
516
- "5": "IdentityUpdate",
517
- IdentityCreditWithdrawal: 6,
518
- "6": "IdentityCreditWithdrawal",
519
- IdentityCreditTransfer: 7,
520
- "7": "IdentityCreditTransfer"
521
- });
522
- /**
523
- */
524
-
525
- exports.StateTransitionTypes = StateTransitionTypes;
526
504
  const KeySecurityLevel = Object.freeze({
527
505
  MASTER: 0,
528
506
  "0": "MASTER",
@@ -553,6 +531,28 @@ const KeyType = Object.freeze({
553
531
  */
554
532
 
555
533
  exports.KeyType = KeyType;
534
+ const StateTransitionTypes = Object.freeze({
535
+ DataContractCreate: 0,
536
+ "0": "DataContractCreate",
537
+ DocumentsBatch: 1,
538
+ "1": "DocumentsBatch",
539
+ IdentityCreate: 2,
540
+ "2": "IdentityCreate",
541
+ IdentityTopUp: 3,
542
+ "3": "IdentityTopUp",
543
+ DataContractUpdate: 4,
544
+ "4": "DataContractUpdate",
545
+ IdentityUpdate: 5,
546
+ "5": "IdentityUpdate",
547
+ IdentityCreditWithdrawal: 6,
548
+ "6": "IdentityCreditWithdrawal",
549
+ IdentityCreditTransfer: 7,
550
+ "7": "IdentityCreditTransfer"
551
+ });
552
+ /**
553
+ */
554
+
555
+ exports.StateTransitionTypes = StateTransitionTypes;
556
556
 
557
557
  class AssetLockOutputNotFoundError {
558
558
  __destroy_into_raw() {
@@ -12177,7 +12177,7 @@ class InvalidIdentityError {
12177
12177
  try {
12178
12178
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
12179
12179
 
12180
- wasm.invaliddatacontracterror_getErrors(retptr, this.__wbg_ptr);
12180
+ wasm.invalididentityerror_getErrors(retptr, this.__wbg_ptr);
12181
12181
  var r0 = getInt32Memory0()[retptr / 4 + 0];
12182
12182
  var r1 = getInt32Memory0()[retptr / 4 + 1];
12183
12183
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
@@ -12195,7 +12195,7 @@ class InvalidIdentityError {
12195
12195
 
12196
12196
 
12197
12197
  getRawIdentity() {
12198
- const ret = wasm.invaliddatacontracterror_getRawDataContract(this.__wbg_ptr);
12198
+ const ret = wasm.invalididentityerror_getRawIdentity(this.__wbg_ptr);
12199
12199
  return takeObject(ret);
12200
12200
  }
12201
12201
 
@@ -15616,7 +15616,7 @@ class TryingToReplaceImmutableDocumentError {
15616
15616
 
15617
15617
  var ptr0 = document.__destroy_into_raw();
15618
15618
 
15619
- const ret = wasm.invalidinitialrevisionerror_new(ptr0);
15619
+ const ret = wasm.tryingtoreplaceimmutabledocumenterror_new(ptr0);
15620
15620
  return TryingToReplaceImmutableDocumentError.__wrap(ret);
15621
15621
  }
15622
15622
 
@@ -16260,37 +16260,43 @@ function __wbg_get_imports() {
16260
16260
  takeObject(arg0);
16261
16261
  };
16262
16262
 
16263
- imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
16264
- const ret = getStringFromWasm0(arg0, arg1);
16263
+ imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
16264
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
16265
16265
  return addHeapObject(ret);
16266
16266
  };
16267
16267
 
16268
- imports.wbg.__wbg_from_1240938ee473cab4 = function (arg0, arg1) {
16269
- const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
16268
+ imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
16269
+ const ret = BalanceIsNotEnoughError.__wrap(arg0);
16270
+
16270
16271
  return addHeapObject(ret);
16271
16272
  };
16272
16273
 
16273
- imports.wbg.__wbg_new_416ef0cb8856b89a = function (arg0) {
16274
- const ret = new _Identifier.default(takeObject(arg0));
16274
+ imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
16275
+ const ret = getStringFromWasm0(arg0, arg1);
16275
16276
  return addHeapObject(ret);
16276
16277
  };
16277
16278
 
16278
- imports.wbg.__wbindgen_is_falsy = function (arg0) {
16279
- const ret = !getObject(arg0);
16280
- return ret;
16279
+ imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
16280
+ const obj = getObject(arg1);
16281
+ const ret = typeof obj === 'string' ? obj : undefined;
16282
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16283
+ var len1 = WASM_VECTOR_LEN;
16284
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
16285
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16281
16286
  };
16282
16287
 
16283
- imports.wbg.__wbg_from_2bc38367b042f514 = function (arg0, arg1) {
16284
- var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
16285
-
16286
- wasm.__wbindgen_free(arg0, arg1 * 1);
16288
+ imports.wbg.__wbindgen_is_function = function (arg0) {
16289
+ const ret = typeof getObject(arg0) === 'function';
16290
+ return ret;
16291
+ };
16287
16292
 
16288
- const ret = Buffer.from(v0);
16293
+ imports.wbg.__wbg_from_1240938ee473cab4 = function (arg0, arg1) {
16294
+ const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
16289
16295
  return addHeapObject(ret);
16290
16296
  };
16291
16297
 
16292
- imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
16293
- const ret = getObject(arg0);
16298
+ imports.wbg.__wbg_new_416ef0cb8856b89a = function (arg0) {
16299
+ const ret = new _Identifier.default(takeObject(arg0));
16294
16300
  return addHeapObject(ret);
16295
16301
  };
16296
16302
 
@@ -16302,11 +16308,25 @@ function __wbg_get_imports() {
16302
16308
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16303
16309
  };
16304
16310
 
16311
+ imports.wbg.__wbg_from_2bc38367b042f514 = function (arg0, arg1) {
16312
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
16313
+
16314
+ wasm.__wbindgen_free(arg0, arg1 * 1);
16315
+
16316
+ const ret = Buffer.from(v0);
16317
+ return addHeapObject(ret);
16318
+ };
16319
+
16305
16320
  imports.wbg.__wbindgen_number_new = function (arg0) {
16306
16321
  const ret = arg0;
16307
16322
  return addHeapObject(ret);
16308
16323
  };
16309
16324
 
16325
+ imports.wbg.__wbindgen_is_falsy = function (arg0) {
16326
+ const ret = !getObject(arg0);
16327
+ return ret;
16328
+ };
16329
+
16310
16330
  imports.wbg.__wbindgen_is_undefined = function (arg0) {
16311
16331
  const ret = getObject(arg0) === undefined;
16312
16332
  return ret;
@@ -16322,13 +16342,9 @@ function __wbg_get_imports() {
16322
16342
  (0, _lodash.set)(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3));
16323
16343
  };
16324
16344
 
16325
- imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
16326
- const obj = getObject(arg1);
16327
- const ret = typeof obj === 'string' ? obj : undefined;
16328
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16329
- var len1 = WASM_VECTOR_LEN;
16330
- getInt32Memory0()[arg0 / 4 + 1] = len1;
16331
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16345
+ imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
16346
+ const ret = getObject(arg0);
16347
+ return addHeapObject(ret);
16332
16348
  };
16333
16349
 
16334
16350
  imports.wbg.__wbg_instantassetlockproof_new = function (arg0) {
@@ -16343,8 +16359,9 @@ function __wbg_get_imports() {
16343
16359
  return addHeapObject(ret);
16344
16360
  };
16345
16361
 
16346
- imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
16347
- const ret = new Error(getStringFromWasm0(arg0, arg1));
16362
+ imports.wbg.__wbg_datacontractcreatetransition_new = function (arg0) {
16363
+ const ret = DataContractCreateTransition.__wrap(arg0);
16364
+
16348
16365
  return addHeapObject(ret);
16349
16366
  };
16350
16367
 
@@ -16354,46 +16371,21 @@ function __wbg_get_imports() {
16354
16371
  return addHeapObject(ret);
16355
16372
  };
16356
16373
 
16357
- imports.wbg.__wbg_datacontractcreatetransition_new = function (arg0) {
16358
- const ret = DataContractCreateTransition.__wrap(arg0);
16374
+ imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function (arg0) {
16375
+ const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
16359
16376
 
16360
16377
  return addHeapObject(ret);
16361
16378
  };
16362
16379
 
16363
- imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
16364
- const ret = BalanceIsNotEnoughError.__wrap(arg0);
16380
+ imports.wbg.__wbg_datacontractgenericerror_new = function (arg0) {
16381
+ const ret = DataContractGenericError.__wrap(arg0);
16365
16382
 
16366
16383
  return addHeapObject(ret);
16367
16384
  };
16368
16385
 
16369
- imports.wbg.__wbindgen_is_function = function (arg0) {
16370
- const ret = typeof getObject(arg0) === 'function';
16371
- return ret;
16372
- };
16373
-
16374
- imports.wbg.__wbindgen_boolean_get = function (arg0) {
16375
- const v = getObject(arg0);
16376
- const ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
16377
- return ret;
16378
- };
16379
-
16380
- imports.wbg.__wbindgen_is_bigint = function (arg0) {
16381
- const ret = typeof getObject(arg0) === 'bigint';
16382
- return ret;
16383
- };
16384
-
16385
- imports.wbg.__wbindgen_bigint_from_i64 = function (arg0) {
16386
- const ret = arg0;
16387
- return addHeapObject(ret);
16388
- };
16389
-
16390
- imports.wbg.__wbindgen_jsval_eq = function (arg0, arg1) {
16391
- const ret = getObject(arg0) === getObject(arg1);
16392
- return ret;
16393
- };
16386
+ imports.wbg.__wbg_invaliddatacontracterror_new = function (arg0) {
16387
+ const ret = InvalidDataContractError.__wrap(arg0);
16394
16388
 
16395
- imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
16396
- const ret = BigInt.asUintN(64, arg0);
16397
16389
  return addHeapObject(ret);
16398
16390
  };
16399
16391
 
@@ -16404,246 +16396,226 @@ function __wbg_get_imports() {
16404
16396
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
16405
16397
  };
16406
16398
 
16407
- imports.wbg.__wbindgen_in = function (arg0, arg1) {
16408
- const ret = (getObject(arg0) in getObject(arg1));
16409
- return ret;
16410
- };
16411
-
16412
- imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
16413
- const ret = InvalidIdentityError.__wrap(arg0);
16414
-
16415
- return addHeapObject(ret);
16416
- };
16417
-
16418
- imports.wbg.__wbg_documenttransition_new = function (arg0) {
16419
- const ret = DocumentTransition.__wrap(arg0);
16420
-
16421
- return addHeapObject(ret);
16422
- };
16423
-
16424
- imports.wbg.__wbindgen_is_null = function (arg0) {
16425
- const ret = getObject(arg0) === null;
16426
- return ret;
16427
- };
16428
-
16429
16399
  imports.wbg.__wbg_unknownassetlockprooftypeerror_new = function (arg0) {
16430
16400
  const ret = UnknownAssetLockProofTypeError.__wrap(arg0);
16431
16401
 
16432
16402
  return addHeapObject(ret);
16433
16403
  };
16434
16404
 
16435
- imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
16436
- const ret = DataContractUpdateTransition.__wrap(arg0);
16405
+ imports.wbg.__wbg_documentalreadyexistserror_new = function (arg0) {
16406
+ const ret = DocumentAlreadyExistsError.__wrap(arg0);
16437
16407
 
16438
16408
  return addHeapObject(ret);
16439
16409
  };
16440
16410
 
16441
- imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
16442
- const ret = DocumentsBatchTransition.__wrap(arg0);
16411
+ imports.wbg.__wbg_documentnotprovidederror_new = function (arg0) {
16412
+ const ret = DocumentNotProvidedError.__wrap(arg0);
16443
16413
 
16444
16414
  return addHeapObject(ret);
16445
16415
  };
16446
16416
 
16447
- imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
16448
- const ret = IdentityCreateTransition.__wrap(arg0);
16417
+ imports.wbg.__wbg_invalidactionerror_new = function (arg0) {
16418
+ const ret = InvalidActionError.__wrap(arg0);
16449
16419
 
16450
16420
  return addHeapObject(ret);
16451
16421
  };
16452
16422
 
16453
- imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
16454
- const ret = IdentityTopUpTransition.__wrap(arg0);
16423
+ imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
16424
+ const ret = InvalidActionNameError.__wrap(arg0);
16455
16425
 
16456
16426
  return addHeapObject(ret);
16457
16427
  };
16458
16428
 
16459
- imports.wbg.__wbg_identityupdatetransition_new = function (arg0) {
16460
- const ret = IdentityUpdateTransition.__wrap(arg0);
16429
+ imports.wbg.__wbg_invaliddocumentactionerror_new = function (arg0) {
16430
+ const ret = InvalidDocumentActionError.__wrap(arg0);
16461
16431
 
16462
16432
  return addHeapObject(ret);
16463
16433
  };
16464
16434
 
16465
- imports.wbg.__wbg_identitycredittransfertransition_new = function (arg0) {
16466
- const ret = IdentityCreditTransferTransition.__wrap(arg0);
16435
+ imports.wbg.__wbg_invalidinitialrevisionerror_new = function (arg0) {
16436
+ const ret = InvalidInitialRevisionError.__wrap(arg0);
16467
16437
 
16468
16438
  return addHeapObject(ret);
16469
16439
  };
16470
16440
 
16471
- imports.wbg.__wbg_invalidstatetransitionerror_new = function (arg0) {
16472
- const ret = InvalidStateTransitionError.__wrap(arg0);
16441
+ imports.wbg.__wbg_revisionabsenterror_new = function (arg0) {
16442
+ const ret = RevisionAbsentError.__wrap(arg0);
16473
16443
 
16474
16444
  return addHeapObject(ret);
16475
16445
  };
16476
16446
 
16477
- imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
16478
- const ret = InvalidActionNameError.__wrap(arg0);
16447
+ imports.wbg.__wbg_tryingtoreplaceimmutabledocumenterror_new = function (arg0) {
16448
+ const ret = TryingToReplaceImmutableDocumentError.__wrap(arg0);
16479
16449
 
16480
16450
  return addHeapObject(ret);
16481
16451
  };
16482
16452
 
16483
- imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function (arg0) {
16484
- const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
16453
+ imports.wbg.__wbg_tryingtodeleteimmutabledocumenterror_new = function (arg0) {
16454
+ const ret = TryingToDeleteImmutableDocumentError.__wrap(arg0);
16485
16455
 
16486
16456
  return addHeapObject(ret);
16487
16457
  };
16488
16458
 
16489
- imports.wbg.__wbg_datacontractgenericerror_new = function (arg0) {
16490
- const ret = DataContractGenericError.__wrap(arg0);
16459
+ imports.wbg.__wbg_mismatchowneridserror_new = function (arg0) {
16460
+ const ret = MismatchOwnerIdsError.__wrap(arg0);
16491
16461
 
16492
16462
  return addHeapObject(ret);
16493
16463
  };
16494
16464
 
16495
- imports.wbg.__wbg_datacontractnotpresentnotconsensuserror_new = function (arg0) {
16496
- const ret = DataContractNotPresentNotConsensusError.__wrap(arg0);
16465
+ imports.wbg.__wbg_documentnorevisionerror_new = function (arg0) {
16466
+ const ret = DocumentNoRevisionError.__wrap(arg0);
16497
16467
 
16498
16468
  return addHeapObject(ret);
16499
16469
  };
16500
16470
 
16501
- imports.wbg.__wbg_platformvalueerror_new = function (arg0) {
16502
- const ret = PlatformValueError.__wrap(arg0);
16471
+ imports.wbg.__wbg_nodocumentssuppliederror_new = function (arg0) {
16472
+ const ret = NoDocumentsSuppliedError.__wrap(arg0);
16503
16473
 
16504
16474
  return addHeapObject(ret);
16505
16475
  };
16506
16476
 
16507
- imports.wbg.__wbg_invaliddatacontracterror_new = function (arg0) {
16508
- const ret = InvalidDataContractError.__wrap(arg0);
16477
+ imports.wbg.__wbg_invaliddocumenterror_new = function (arg0) {
16478
+ const ret = InvalidDocumentError.__wrap(arg0);
16509
16479
 
16510
16480
  return addHeapObject(ret);
16511
16481
  };
16512
16482
 
16513
- imports.wbg.__wbg_generate_1f42caa3e9e2b460 = function () {
16514
- return handleError(function (arg0) {
16515
- const ret = getObject(arg0).generate();
16516
- return addHeapObject(ret);
16517
- }, arguments);
16483
+ imports.wbg.__wbindgen_boolean_get = function (arg0) {
16484
+ const v = getObject(arg0);
16485
+ const ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
16486
+ return ret;
16518
16487
  };
16519
16488
 
16520
- imports.wbg.__wbg_identitypublickey_new = function (arg0) {
16521
- const ret = IdentityPublicKey.__wrap(arg0);
16489
+ imports.wbg.__wbindgen_is_bigint = function (arg0) {
16490
+ const ret = typeof getObject(arg0) === 'bigint';
16491
+ return ret;
16492
+ };
16522
16493
 
16494
+ imports.wbg.__wbindgen_bigint_from_i64 = function (arg0) {
16495
+ const ret = arg0;
16523
16496
  return addHeapObject(ret);
16524
16497
  };
16525
16498
 
16526
- imports.wbg.__wbg_buffer_a2f9733fd9333302 = function (arg0) {
16527
- const ret = getObject(arg0).buffer;
16499
+ imports.wbg.__wbindgen_jsval_eq = function (arg0, arg1) {
16500
+ const ret = getObject(arg0) === getObject(arg1);
16501
+ return ret;
16502
+ };
16503
+
16504
+ imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
16505
+ const ret = BigInt.asUintN(64, arg0);
16528
16506
  return addHeapObject(ret);
16529
16507
  };
16530
16508
 
16531
- imports.wbg.__wbg_byteOffset_82ed8366a41aeb88 = function (arg0) {
16532
- const ret = getObject(arg0).byteOffset;
16509
+ imports.wbg.__wbindgen_in = function (arg0, arg1) {
16510
+ const ret = (getObject(arg0) in getObject(arg1));
16533
16511
  return ret;
16534
16512
  };
16535
16513
 
16536
- imports.wbg.__wbg_length_ef51e3e9b7ed1303 = function (arg0) {
16537
- const ret = getObject(arg0).length;
16514
+ imports.wbg.__wbindgen_is_null = function (arg0) {
16515
+ const ret = getObject(arg0) === null;
16538
16516
  return ret;
16539
16517
  };
16540
16518
 
16541
- imports.wbg.__wbg_document_new = function (arg0) {
16542
- const ret = Document.__wrap(arg0);
16519
+ imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
16520
+ const ret = DataContractUpdateTransition.__wrap(arg0);
16543
16521
 
16544
16522
  return addHeapObject(ret);
16545
16523
  };
16546
16524
 
16547
- imports.wbg.__wbg_identitypublickeywithwitness_new = function (arg0) {
16548
- const ret = IdentityPublicKeyWithWitness.__wrap(arg0);
16525
+ imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
16526
+ const ret = DocumentsBatchTransition.__wrap(arg0);
16549
16527
 
16550
16528
  return addHeapObject(ret);
16551
16529
  };
16552
16530
 
16553
- imports.wbg.__wbg_verifySignature_d834cbf4122363e7 = function () {
16554
- return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
16555
- const ret = getObject(arg0).verifySignature(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
16556
- return ret;
16557
- }, arguments);
16558
- };
16531
+ imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
16532
+ const ret = IdentityCreateTransition.__wrap(arg0);
16559
16533
 
16560
- imports.wbg.__wbg_sign_2e214e5975b9bc30 = function () {
16561
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
16562
- const ret = getObject(arg0).sign(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
16563
- return addHeapObject(ret);
16564
- }, arguments);
16534
+ return addHeapObject(ret);
16565
16535
  };
16566
16536
 
16567
- imports.wbg.__wbg_privateKeyToPublicKey_a8c7c0801893c959 = function () {
16568
- return handleError(function (arg0, arg1, arg2) {
16569
- const ret = getObject(arg0).privateKeyToPublicKey(getArrayU8FromWasm0(arg1, arg2));
16570
- return addHeapObject(ret);
16571
- }, arguments);
16572
- };
16537
+ imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
16538
+ const ret = IdentityTopUpTransition.__wrap(arg0);
16573
16539
 
16574
- imports.wbg.__wbindgen_is_string = function (arg0) {
16575
- const ret = typeof getObject(arg0) === 'string';
16576
- return ret;
16540
+ return addHeapObject(ret);
16577
16541
  };
16578
16542
 
16579
- imports.wbg.__wbg_documentalreadyexistserror_new = function (arg0) {
16580
- const ret = DocumentAlreadyExistsError.__wrap(arg0);
16543
+ imports.wbg.__wbg_identityupdatetransition_new = function (arg0) {
16544
+ const ret = IdentityUpdateTransition.__wrap(arg0);
16581
16545
 
16582
16546
  return addHeapObject(ret);
16583
16547
  };
16584
16548
 
16585
- imports.wbg.__wbg_documentnorevisionerror_new = function (arg0) {
16586
- const ret = DocumentNoRevisionError.__wrap(arg0);
16549
+ imports.wbg.__wbg_identitycredittransfertransition_new = function (arg0) {
16550
+ const ret = IdentityCreditTransferTransition.__wrap(arg0);
16587
16551
 
16588
16552
  return addHeapObject(ret);
16589
16553
  };
16590
16554
 
16591
- imports.wbg.__wbg_documentnotprovidederror_new = function (arg0) {
16592
- const ret = DocumentNotProvidedError.__wrap(arg0);
16555
+ imports.wbg.__wbg_invalidstatetransitionerror_new = function (arg0) {
16556
+ const ret = InvalidStateTransitionError.__wrap(arg0);
16593
16557
 
16594
16558
  return addHeapObject(ret);
16595
16559
  };
16596
16560
 
16597
- imports.wbg.__wbg_invalidactionerror_new = function (arg0) {
16598
- const ret = InvalidActionError.__wrap(arg0);
16561
+ imports.wbg.__wbg_datacontractnotpresentnotconsensuserror_new = function (arg0) {
16562
+ const ret = DataContractNotPresentNotConsensusError.__wrap(arg0);
16599
16563
 
16600
16564
  return addHeapObject(ret);
16601
16565
  };
16602
16566
 
16603
- imports.wbg.__wbg_invaliddocumentactionerror_new = function (arg0) {
16604
- const ret = InvalidDocumentActionError.__wrap(arg0);
16567
+ imports.wbg.__wbg_platformvalueerror_new = function (arg0) {
16568
+ const ret = PlatformValueError.__wrap(arg0);
16605
16569
 
16606
16570
  return addHeapObject(ret);
16607
16571
  };
16608
16572
 
16609
- imports.wbg.__wbg_invaliddocumenterror_new = function (arg0) {
16610
- const ret = InvalidDocumentError.__wrap(arg0);
16573
+ imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
16574
+ const ret = InvalidIdentityError.__wrap(arg0);
16611
16575
 
16612
16576
  return addHeapObject(ret);
16613
16577
  };
16614
16578
 
16615
- imports.wbg.__wbg_invalidinitialrevisionerror_new = function (arg0) {
16616
- const ret = InvalidInitialRevisionError.__wrap(arg0);
16579
+ imports.wbg.__wbg_identitypublickeywithwitness_new = function (arg0) {
16580
+ const ret = IdentityPublicKeyWithWitness.__wrap(arg0);
16617
16581
 
16618
16582
  return addHeapObject(ret);
16619
16583
  };
16620
16584
 
16621
- imports.wbg.__wbg_mismatchowneridserror_new = function (arg0) {
16622
- const ret = MismatchOwnerIdsError.__wrap(arg0);
16585
+ imports.wbg.__wbg_document_new = function (arg0) {
16586
+ const ret = Document.__wrap(arg0);
16623
16587
 
16624
16588
  return addHeapObject(ret);
16625
16589
  };
16626
16590
 
16627
- imports.wbg.__wbg_nodocumentssuppliederror_new = function (arg0) {
16628
- const ret = NoDocumentsSuppliedError.__wrap(arg0);
16629
-
16591
+ imports.wbg.__wbg_buffer_a2f9733fd9333302 = function (arg0) {
16592
+ const ret = getObject(arg0).buffer;
16630
16593
  return addHeapObject(ret);
16631
16594
  };
16632
16595
 
16633
- imports.wbg.__wbg_revisionabsenterror_new = function (arg0) {
16634
- const ret = RevisionAbsentError.__wrap(arg0);
16596
+ imports.wbg.__wbg_byteOffset_82ed8366a41aeb88 = function (arg0) {
16597
+ const ret = getObject(arg0).byteOffset;
16598
+ return ret;
16599
+ };
16635
16600
 
16636
- return addHeapObject(ret);
16601
+ imports.wbg.__wbg_length_ef51e3e9b7ed1303 = function (arg0) {
16602
+ const ret = getObject(arg0).length;
16603
+ return ret;
16637
16604
  };
16638
16605
 
16639
- imports.wbg.__wbg_tryingtodeleteimmutabledocumenterror_new = function (arg0) {
16640
- const ret = TryingToDeleteImmutableDocumentError.__wrap(arg0);
16606
+ imports.wbg.__wbg_identitypublickey_new = function (arg0) {
16607
+ const ret = IdentityPublicKey.__wrap(arg0);
16641
16608
 
16642
16609
  return addHeapObject(ret);
16643
16610
  };
16644
16611
 
16645
- imports.wbg.__wbg_tryingtoreplaceimmutabledocumenterror_new = function (arg0) {
16646
- const ret = TryingToReplaceImmutableDocumentError.__wrap(arg0);
16612
+ imports.wbg.__wbindgen_is_string = function (arg0) {
16613
+ const ret = typeof getObject(arg0) === 'string';
16614
+ return ret;
16615
+ };
16616
+
16617
+ imports.wbg.__wbg_documenttransition_new = function (arg0) {
16618
+ const ret = DocumentTransition.__wrap(arg0);
16647
16619
 
16648
16620
  return addHeapObject(ret);
16649
16621
  };
@@ -17218,6 +17190,34 @@ function __wbg_get_imports() {
17218
17190
  return addHeapObject(ret);
17219
17191
  };
17220
17192
 
17193
+ imports.wbg.__wbg_verifySignature_d834cbf4122363e7 = function () {
17194
+ return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
17195
+ const ret = getObject(arg0).verifySignature(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
17196
+ return ret;
17197
+ }, arguments);
17198
+ };
17199
+
17200
+ imports.wbg.__wbg_privateKeyToPublicKey_a8c7c0801893c959 = function () {
17201
+ return handleError(function (arg0, arg1, arg2) {
17202
+ const ret = getObject(arg0).privateKeyToPublicKey(getArrayU8FromWasm0(arg1, arg2));
17203
+ return addHeapObject(ret);
17204
+ }, arguments);
17205
+ };
17206
+
17207
+ imports.wbg.__wbg_sign_2e214e5975b9bc30 = function () {
17208
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
17209
+ const ret = getObject(arg0).sign(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
17210
+ return addHeapObject(ret);
17211
+ }, arguments);
17212
+ };
17213
+
17214
+ imports.wbg.__wbg_generate_1f42caa3e9e2b460 = function () {
17215
+ return handleError(function (arg0) {
17216
+ const ret = getObject(arg0).generate();
17217
+ return addHeapObject(ret);
17218
+ }, arguments);
17219
+ };
17220
+
17221
17221
  imports.wbg.__wbindgen_cb_drop = function (arg0) {
17222
17222
  const obj = takeObject(arg0).original;
17223
17223
 
@@ -17697,8 +17697,8 @@ function __wbg_get_imports() {
17697
17697
  return addHeapObject(ret);
17698
17698
  };
17699
17699
 
17700
- imports.wbg.__wbindgen_closure_wrapper2470 = function (arg0, arg1, arg2) {
17701
- const ret = makeMutClosure(arg0, arg1, 256, __wbg_adapter_56);
17700
+ imports.wbg.__wbindgen_closure_wrapper2466 = function (arg0, arg1, arg2) {
17701
+ const ret = makeMutClosure(arg0, arg1, 258, __wbg_adapter_56);
17702
17702
  return addHeapObject(ret);
17703
17703
  };
17704
17704