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

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,27 @@ 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__h6dc4e27bc346e525(arg0, arg1, addHeapObject(arg2));
282
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2a8d816163238efc(arg0, arg1, addHeapObject(arg2));
283
+ }
284
+
285
+ let stack_pointer = 128;
286
+
287
+ function addBorrowedObject(obj) {
288
+ if (stack_pointer == 1) throw new Error('out of js stack');
289
+ heap[--stack_pointer] = obj;
290
+ return stack_pointer;
291
+ }
292
+
293
+ function passArray8ToWasm0(arg, malloc) {
294
+ const ptr = malloc(arg.length * 1) >>> 0;
295
+ getUint8Memory0().set(arg, ptr / 1);
296
+ WASM_VECTOR_LEN = arg.length;
297
+ return ptr;
298
+ }
299
+
300
+ function getArrayU8FromWasm0(ptr, len) {
301
+ ptr = ptr >>> 0;
302
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
283
303
  }
284
304
 
285
305
  let cachedUint32Memory0 = null;
@@ -313,26 +333,6 @@ function _assertClass(instance, klass) {
313
333
  return instance.ptr;
314
334
  }
315
335
 
316
- let stack_pointer = 128;
317
-
318
- function addBorrowedObject(obj) {
319
- if (stack_pointer == 1) throw new Error('out of js stack');
320
- heap[--stack_pointer] = obj;
321
- return stack_pointer;
322
- }
323
-
324
- function passArray8ToWasm0(arg, malloc) {
325
- const ptr = malloc(arg.length * 1) >>> 0;
326
- getUint8Memory0().set(arg, ptr / 1);
327
- WASM_VECTOR_LEN = arg.length;
328
- return ptr;
329
- }
330
-
331
- function getArrayU8FromWasm0(ptr, len) {
332
- ptr = ptr >>> 0;
333
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
334
- }
335
-
336
336
  function passArrayJsValueToWasm0(array, malloc) {
337
337
  const ptr = malloc(array.length * 4) >>> 0;
338
338
  const mem = getUint32Memory0();
@@ -371,15 +371,6 @@ function deserializeConsensusError(bytes) {
371
371
  }
372
372
  }
373
373
  /**
374
- * @returns {number}
375
- */
376
-
377
-
378
- function getLatestProtocolVersion() {
379
- const ret = wasm.getLatestProtocolVersion();
380
- return ret >>> 0;
381
- }
382
- /**
383
374
  * @param {any} raw_parameters
384
375
  * @returns {any}
385
376
  */
@@ -404,6 +395,15 @@ function createAssetLockProofInstance(raw_parameters) {
404
395
  }
405
396
  }
406
397
  /**
398
+ * @returns {number}
399
+ */
400
+
401
+
402
+ function getLatestProtocolVersion() {
403
+ const ret = wasm.getLatestProtocolVersion();
404
+ return ret >>> 0;
405
+ }
406
+ /**
407
407
  * @param {any} contract_id
408
408
  * @param {any} owner_id
409
409
  * @param {string} document_type
@@ -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__h84a5e96769458251(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
457
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__ha2c028bd006c6969(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
458
458
  }
459
459
  /**
460
460
  */
@@ -501,6 +501,28 @@ 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;
504
526
  const KeySecurityLevel = Object.freeze({
505
527
  MASTER: 0,
506
528
  "0": "MASTER",
@@ -531,28 +553,6 @@ const KeyType = Object.freeze({
531
553
  */
532
554
 
533
555
  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.invalididentityerror_getErrors(retptr, this.__wbg_ptr);
12180
+ wasm.invaliddatacontracterror_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.invaliddocumenterror_getRawDocument(this.__wbg_ptr);
12198
+ const ret = wasm.invaliddatacontracterror_getRawDataContract(this.__wbg_ptr);
12199
12199
  return takeObject(ret);
12200
12200
  }
12201
12201
 
@@ -15576,7 +15576,7 @@ class TryingToDeleteImmutableDocumentError {
15576
15576
 
15577
15577
  var ptr0 = document.__destroy_into_raw();
15578
15578
 
15579
- const ret = wasm.invalidinitialrevisionerror_new(ptr0);
15579
+ const ret = wasm.tryingtodeleteimmutabledocumenterror_new(ptr0);
15580
15580
  return TryingToDeleteImmutableDocumentError.__wrap(ret);
15581
15581
  }
15582
15582
 
@@ -16260,48 +16260,37 @@ function __wbg_get_imports() {
16260
16260
  takeObject(arg0);
16261
16261
  };
16262
16262
 
16263
- imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
16264
- const ret = new Error(getStringFromWasm0(arg0, arg1));
16263
+ imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
16264
+ const ret = getStringFromWasm0(arg0, arg1);
16265
16265
  return addHeapObject(ret);
16266
16266
  };
16267
16267
 
16268
- imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
16269
- const ret = BalanceIsNotEnoughError.__wrap(arg0);
16270
-
16268
+ imports.wbg.__wbg_from_1240938ee473cab4 = function (arg0, arg1) {
16269
+ const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
16271
16270
  return addHeapObject(ret);
16272
16271
  };
16273
16272
 
16274
- imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
16275
- const ret = getStringFromWasm0(arg0, arg1);
16273
+ imports.wbg.__wbg_new_416ef0cb8856b89a = function (arg0) {
16274
+ const ret = new _Identifier.default(takeObject(arg0));
16276
16275
  return addHeapObject(ret);
16277
16276
  };
16278
16277
 
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;
16286
- };
16287
-
16288
- imports.wbg.__wbindgen_is_function = function (arg0) {
16289
- const ret = typeof getObject(arg0) === 'function';
16278
+ imports.wbg.__wbindgen_is_falsy = function (arg0) {
16279
+ const ret = !getObject(arg0);
16290
16280
  return ret;
16291
16281
  };
16292
16282
 
16293
- imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
16294
- const ret = getObject(arg0);
16295
- return addHeapObject(ret);
16296
- };
16283
+ imports.wbg.__wbg_from_2bc38367b042f514 = function (arg0, arg1) {
16284
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
16297
16285
 
16298
- imports.wbg.__wbg_from_1240938ee473cab4 = function (arg0, arg1) {
16299
- const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
16286
+ wasm.__wbindgen_free(arg0, arg1 * 1);
16287
+
16288
+ const ret = Buffer.from(v0);
16300
16289
  return addHeapObject(ret);
16301
16290
  };
16302
16291
 
16303
- imports.wbg.__wbg_new_416ef0cb8856b89a = function (arg0) {
16304
- const ret = new _Identifier.default(takeObject(arg0));
16292
+ imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
16293
+ const ret = getObject(arg0);
16305
16294
  return addHeapObject(ret);
16306
16295
  };
16307
16296
 
@@ -16313,25 +16302,11 @@ function __wbg_get_imports() {
16313
16302
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16314
16303
  };
16315
16304
 
16316
- imports.wbg.__wbg_from_2bc38367b042f514 = function (arg0, arg1) {
16317
- var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
16318
-
16319
- wasm.__wbindgen_free(arg0, arg1 * 1);
16320
-
16321
- const ret = Buffer.from(v0);
16322
- return addHeapObject(ret);
16323
- };
16324
-
16325
16305
  imports.wbg.__wbindgen_number_new = function (arg0) {
16326
16306
  const ret = arg0;
16327
16307
  return addHeapObject(ret);
16328
16308
  };
16329
16309
 
16330
- imports.wbg.__wbindgen_is_falsy = function (arg0) {
16331
- const ret = !getObject(arg0);
16332
- return ret;
16333
- };
16334
-
16335
16310
  imports.wbg.__wbindgen_is_undefined = function (arg0) {
16336
16311
  const ret = getObject(arg0) === undefined;
16337
16312
  return ret;
@@ -16347,6 +16322,15 @@ function __wbg_get_imports() {
16347
16322
  (0, _lodash.set)(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3));
16348
16323
  };
16349
16324
 
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;
16332
+ };
16333
+
16350
16334
  imports.wbg.__wbg_instantassetlockproof_new = function (arg0) {
16351
16335
  const ret = InstantAssetLockProof.__wrap(arg0);
16352
16336
 
@@ -16359,14 +16343,8 @@ function __wbg_get_imports() {
16359
16343
  return addHeapObject(ret);
16360
16344
  };
16361
16345
 
16362
- imports.wbg.__wbindgen_is_null = function (arg0) {
16363
- const ret = getObject(arg0) === null;
16364
- return ret;
16365
- };
16366
-
16367
- imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
16368
- const ret = InvalidActionNameError.__wrap(arg0);
16369
-
16346
+ imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
16347
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
16370
16348
  return addHeapObject(ret);
16371
16349
  };
16372
16350
 
@@ -16382,46 +16360,15 @@ function __wbg_get_imports() {
16382
16360
  return addHeapObject(ret);
16383
16361
  };
16384
16362
 
16385
- imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
16386
- const ret = DataContractUpdateTransition.__wrap(arg0);
16387
-
16388
- return addHeapObject(ret);
16389
- };
16390
-
16391
- imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
16392
- const ret = DocumentsBatchTransition.__wrap(arg0);
16393
-
16394
- return addHeapObject(ret);
16395
- };
16396
-
16397
- imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
16398
- const ret = IdentityCreateTransition.__wrap(arg0);
16399
-
16400
- return addHeapObject(ret);
16401
- };
16402
-
16403
- imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
16404
- const ret = IdentityTopUpTransition.__wrap(arg0);
16405
-
16406
- return addHeapObject(ret);
16407
- };
16408
-
16409
- imports.wbg.__wbg_identityupdatetransition_new = function (arg0) {
16410
- const ret = IdentityUpdateTransition.__wrap(arg0);
16411
-
16412
- return addHeapObject(ret);
16413
- };
16414
-
16415
- imports.wbg.__wbg_identitycredittransfertransition_new = function (arg0) {
16416
- const ret = IdentityCreditTransferTransition.__wrap(arg0);
16363
+ imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
16364
+ const ret = BalanceIsNotEnoughError.__wrap(arg0);
16417
16365
 
16418
16366
  return addHeapObject(ret);
16419
16367
  };
16420
16368
 
16421
- imports.wbg.__wbg_invalidstatetransitionerror_new = function (arg0) {
16422
- const ret = InvalidStateTransitionError.__wrap(arg0);
16423
-
16424
- return addHeapObject(ret);
16369
+ imports.wbg.__wbindgen_is_function = function (arg0) {
16370
+ const ret = typeof getObject(arg0) === 'function';
16371
+ return ret;
16425
16372
  };
16426
16373
 
16427
16374
  imports.wbg.__wbindgen_boolean_get = function (arg0) {
@@ -16462,24 +16409,77 @@ function __wbg_get_imports() {
16462
16409
  return ret;
16463
16410
  };
16464
16411
 
16465
- imports.wbg.__wbg_documenttransition_new = function (arg0) {
16466
- const ret = DocumentTransition.__wrap(arg0);
16412
+ imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
16413
+ const ret = InvalidIdentityError.__wrap(arg0);
16467
16414
 
16468
16415
  return addHeapObject(ret);
16469
16416
  };
16470
16417
 
16471
- imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
16472
- const ret = InvalidIdentityError.__wrap(arg0);
16418
+ imports.wbg.__wbg_documenttransition_new = function (arg0) {
16419
+ const ret = DocumentTransition.__wrap(arg0);
16473
16420
 
16474
16421
  return addHeapObject(ret);
16475
16422
  };
16476
16423
 
16424
+ imports.wbg.__wbindgen_is_null = function (arg0) {
16425
+ const ret = getObject(arg0) === null;
16426
+ return ret;
16427
+ };
16428
+
16477
16429
  imports.wbg.__wbg_unknownassetlockprooftypeerror_new = function (arg0) {
16478
16430
  const ret = UnknownAssetLockProofTypeError.__wrap(arg0);
16479
16431
 
16480
16432
  return addHeapObject(ret);
16481
16433
  };
16482
16434
 
16435
+ imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
16436
+ const ret = DataContractUpdateTransition.__wrap(arg0);
16437
+
16438
+ return addHeapObject(ret);
16439
+ };
16440
+
16441
+ imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
16442
+ const ret = DocumentsBatchTransition.__wrap(arg0);
16443
+
16444
+ return addHeapObject(ret);
16445
+ };
16446
+
16447
+ imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
16448
+ const ret = IdentityCreateTransition.__wrap(arg0);
16449
+
16450
+ return addHeapObject(ret);
16451
+ };
16452
+
16453
+ imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
16454
+ const ret = IdentityTopUpTransition.__wrap(arg0);
16455
+
16456
+ return addHeapObject(ret);
16457
+ };
16458
+
16459
+ imports.wbg.__wbg_identityupdatetransition_new = function (arg0) {
16460
+ const ret = IdentityUpdateTransition.__wrap(arg0);
16461
+
16462
+ return addHeapObject(ret);
16463
+ };
16464
+
16465
+ imports.wbg.__wbg_identitycredittransfertransition_new = function (arg0) {
16466
+ const ret = IdentityCreditTransferTransition.__wrap(arg0);
16467
+
16468
+ return addHeapObject(ret);
16469
+ };
16470
+
16471
+ imports.wbg.__wbg_invalidstatetransitionerror_new = function (arg0) {
16472
+ const ret = InvalidStateTransitionError.__wrap(arg0);
16473
+
16474
+ return addHeapObject(ret);
16475
+ };
16476
+
16477
+ imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
16478
+ const ret = InvalidActionNameError.__wrap(arg0);
16479
+
16480
+ return addHeapObject(ret);
16481
+ };
16482
+
16483
16483
  imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function (arg0) {
16484
16484
  const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
16485
16485
 
@@ -16510,91 +16510,140 @@ function __wbg_get_imports() {
16510
16510
  return addHeapObject(ret);
16511
16511
  };
16512
16512
 
16513
- imports.wbg.__wbg_documentalreadyexistserror_new = function (arg0) {
16514
- const ret = DocumentAlreadyExistsError.__wrap(arg0);
16513
+ imports.wbg.__wbg_generate_1f42caa3e9e2b460 = function () {
16514
+ return handleError(function (arg0) {
16515
+ const ret = getObject(arg0).generate();
16516
+ return addHeapObject(ret);
16517
+ }, arguments);
16518
+ };
16519
+
16520
+ imports.wbg.__wbg_identitypublickey_new = function (arg0) {
16521
+ const ret = IdentityPublicKey.__wrap(arg0);
16515
16522
 
16516
16523
  return addHeapObject(ret);
16517
16524
  };
16518
16525
 
16519
- imports.wbg.__wbg_documentnotprovidederror_new = function (arg0) {
16520
- const ret = DocumentNotProvidedError.__wrap(arg0);
16526
+ imports.wbg.__wbg_buffer_a2f9733fd9333302 = function (arg0) {
16527
+ const ret = getObject(arg0).buffer;
16528
+ return addHeapObject(ret);
16529
+ };
16530
+
16531
+ imports.wbg.__wbg_byteOffset_82ed8366a41aeb88 = function (arg0) {
16532
+ const ret = getObject(arg0).byteOffset;
16533
+ return ret;
16534
+ };
16535
+
16536
+ imports.wbg.__wbg_length_ef51e3e9b7ed1303 = function (arg0) {
16537
+ const ret = getObject(arg0).length;
16538
+ return ret;
16539
+ };
16540
+
16541
+ imports.wbg.__wbg_document_new = function (arg0) {
16542
+ const ret = Document.__wrap(arg0);
16521
16543
 
16522
16544
  return addHeapObject(ret);
16523
16545
  };
16524
16546
 
16525
- imports.wbg.__wbg_invalidactionerror_new = function (arg0) {
16526
- const ret = InvalidActionError.__wrap(arg0);
16547
+ imports.wbg.__wbg_identitypublickeywithwitness_new = function (arg0) {
16548
+ const ret = IdentityPublicKeyWithWitness.__wrap(arg0);
16527
16549
 
16528
16550
  return addHeapObject(ret);
16529
16551
  };
16530
16552
 
16531
- imports.wbg.__wbg_invaliddocumentactionerror_new = function (arg0) {
16532
- const ret = InvalidDocumentActionError.__wrap(arg0);
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
+ };
16559
+
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);
16565
+ };
16566
+
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
+ };
16573
+
16574
+ imports.wbg.__wbindgen_is_string = function (arg0) {
16575
+ const ret = typeof getObject(arg0) === 'string';
16576
+ return ret;
16577
+ };
16578
+
16579
+ imports.wbg.__wbg_documentalreadyexistserror_new = function (arg0) {
16580
+ const ret = DocumentAlreadyExistsError.__wrap(arg0);
16533
16581
 
16534
16582
  return addHeapObject(ret);
16535
16583
  };
16536
16584
 
16537
- imports.wbg.__wbg_invalidinitialrevisionerror_new = function (arg0) {
16538
- const ret = InvalidInitialRevisionError.__wrap(arg0);
16585
+ imports.wbg.__wbg_documentnorevisionerror_new = function (arg0) {
16586
+ const ret = DocumentNoRevisionError.__wrap(arg0);
16539
16587
 
16540
16588
  return addHeapObject(ret);
16541
16589
  };
16542
16590
 
16543
- imports.wbg.__wbg_revisionabsenterror_new = function (arg0) {
16544
- const ret = RevisionAbsentError.__wrap(arg0);
16591
+ imports.wbg.__wbg_documentnotprovidederror_new = function (arg0) {
16592
+ const ret = DocumentNotProvidedError.__wrap(arg0);
16545
16593
 
16546
16594
  return addHeapObject(ret);
16547
16595
  };
16548
16596
 
16549
- imports.wbg.__wbg_tryingtoreplaceimmutabledocumenterror_new = function (arg0) {
16550
- const ret = TryingToReplaceImmutableDocumentError.__wrap(arg0);
16597
+ imports.wbg.__wbg_invalidactionerror_new = function (arg0) {
16598
+ const ret = InvalidActionError.__wrap(arg0);
16551
16599
 
16552
16600
  return addHeapObject(ret);
16553
16601
  };
16554
16602
 
16555
- imports.wbg.__wbg_tryingtodeleteimmutabledocumenterror_new = function (arg0) {
16556
- const ret = TryingToDeleteImmutableDocumentError.__wrap(arg0);
16603
+ imports.wbg.__wbg_invaliddocumentactionerror_new = function (arg0) {
16604
+ const ret = InvalidDocumentActionError.__wrap(arg0);
16557
16605
 
16558
16606
  return addHeapObject(ret);
16559
16607
  };
16560
16608
 
16561
- imports.wbg.__wbg_mismatchowneridserror_new = function (arg0) {
16562
- const ret = MismatchOwnerIdsError.__wrap(arg0);
16609
+ imports.wbg.__wbg_invaliddocumenterror_new = function (arg0) {
16610
+ const ret = InvalidDocumentError.__wrap(arg0);
16563
16611
 
16564
16612
  return addHeapObject(ret);
16565
16613
  };
16566
16614
 
16567
- imports.wbg.__wbg_documentnorevisionerror_new = function (arg0) {
16568
- const ret = DocumentNoRevisionError.__wrap(arg0);
16615
+ imports.wbg.__wbg_invalidinitialrevisionerror_new = function (arg0) {
16616
+ const ret = InvalidInitialRevisionError.__wrap(arg0);
16569
16617
 
16570
16618
  return addHeapObject(ret);
16571
16619
  };
16572
16620
 
16573
- imports.wbg.__wbg_nodocumentssuppliederror_new = function (arg0) {
16574
- const ret = NoDocumentsSuppliedError.__wrap(arg0);
16621
+ imports.wbg.__wbg_mismatchowneridserror_new = function (arg0) {
16622
+ const ret = MismatchOwnerIdsError.__wrap(arg0);
16575
16623
 
16576
16624
  return addHeapObject(ret);
16577
16625
  };
16578
16626
 
16579
- imports.wbg.__wbg_invaliddocumenterror_new = function (arg0) {
16580
- const ret = InvalidDocumentError.__wrap(arg0);
16627
+ imports.wbg.__wbg_nodocumentssuppliederror_new = function (arg0) {
16628
+ const ret = NoDocumentsSuppliedError.__wrap(arg0);
16581
16629
 
16582
16630
  return addHeapObject(ret);
16583
16631
  };
16584
16632
 
16585
- imports.wbg.__wbindgen_is_string = function (arg0) {
16586
- const ret = typeof getObject(arg0) === 'string';
16587
- return ret;
16633
+ imports.wbg.__wbg_revisionabsenterror_new = function (arg0) {
16634
+ const ret = RevisionAbsentError.__wrap(arg0);
16635
+
16636
+ return addHeapObject(ret);
16588
16637
  };
16589
16638
 
16590
- imports.wbg.__wbg_identitypublickey_new = function (arg0) {
16591
- const ret = IdentityPublicKey.__wrap(arg0);
16639
+ imports.wbg.__wbg_tryingtodeleteimmutabledocumenterror_new = function (arg0) {
16640
+ const ret = TryingToDeleteImmutableDocumentError.__wrap(arg0);
16592
16641
 
16593
16642
  return addHeapObject(ret);
16594
16643
  };
16595
16644
 
16596
- imports.wbg.__wbg_document_new = function (arg0) {
16597
- const ret = Document.__wrap(arg0);
16645
+ imports.wbg.__wbg_tryingtoreplaceimmutabledocumenterror_new = function (arg0) {
16646
+ const ret = TryingToReplaceImmutableDocumentError.__wrap(arg0);
16598
16647
 
16599
16648
  return addHeapObject(ret);
16600
16649
  };
@@ -17169,55 +17218,6 @@ function __wbg_get_imports() {
17169
17218
  return addHeapObject(ret);
17170
17219
  };
17171
17220
 
17172
- imports.wbg.__wbg_identitypublickeywithwitness_new = function (arg0) {
17173
- const ret = IdentityPublicKeyWithWitness.__wrap(arg0);
17174
-
17175
- return addHeapObject(ret);
17176
- };
17177
-
17178
- imports.wbg.__wbg_buffer_a2f9733fd9333302 = function (arg0) {
17179
- const ret = getObject(arg0).buffer;
17180
- return addHeapObject(ret);
17181
- };
17182
-
17183
- imports.wbg.__wbg_byteOffset_82ed8366a41aeb88 = function (arg0) {
17184
- const ret = getObject(arg0).byteOffset;
17185
- return ret;
17186
- };
17187
-
17188
- imports.wbg.__wbg_length_ef51e3e9b7ed1303 = function (arg0) {
17189
- const ret = getObject(arg0).length;
17190
- return ret;
17191
- };
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_wrapper2465 = function (arg0, arg1, arg2) {
17701
- const ret = makeMutClosure(arg0, arg1, 259, __wbg_adapter_56);
17700
+ imports.wbg.__wbindgen_closure_wrapper2470 = function (arg0, arg1, arg2) {
17701
+ const ret = makeMutClosure(arg0, arg1, 256, __wbg_adapter_56);
17702
17702
  return addHeapObject(ret);
17703
17703
  };
17704
17704