@dashevo/wasm-dpp 1.0.0-dev.7 → 1.0.0-dev.8
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.
- package/Cargo.toml +1 -1
- package/dist/wasm/wasm_dpp.d.ts +813 -853
- package/dist/wasm/wasm_dpp.js +306 -405
- package/dist/wasm/wasm_dpp_bg.js +1 -1
- package/lib/test/fixtures/getIdentityUpdateTransitionFixture.js +0 -1
- package/lib/wasm/wasm_dpp.d.ts +813 -853
- package/package.json +2 -2
- package/src/data_contract/data_contract.rs +6 -1
- package/src/data_contract/data_contract_facade.rs +0 -1
- package/src/data_contract/errors/mod.rs +0 -11
- package/src/data_contract_factory/data_contract_factory.rs +0 -1
- package/src/document/extended_document.rs +1 -0
- package/src/document/factory.rs +16 -20
- package/src/document/mod.rs +3 -0
- package/src/errors/consensus/consensus_error.rs +3 -7
- package/src/errors/consensus/state/identity/invalid_identity_contract_nonce_error.rs +1 -3
- package/src/errors/consensus/state/identity/mod.rs +0 -2
- package/src/errors/protocol_error.rs +0 -8
- package/src/identity/identity_facade.rs +0 -2
- package/src/identity/identity_factory.rs +0 -3
- package/src/identity/identity_public_key/mod.rs +2 -1
- package/src/identity/state_transition/identity_credit_withdrawal_transition/transition.rs +6 -6
- package/src/identity/state_transition/identity_public_key_transitions.rs +4 -1
- package/src/identity/state_transition/identity_update_transition/identity_update_transition.rs +0 -33
- package/src/identity/state_transition/identity_update_transition/to_object.rs +0 -3
- package/src/lib.rs +1 -1
- package/test/integration/identity/IdentityFacade.spec.js +0 -1
- package/test/integration/identity/stateTransition/IdentityUpdateTransition/validation/state/validateIdentityUpdateTransitionStateFactory.spec.js +0 -34
- package/test/unit/identity/Identity.spec.js +2 -2
- package/test/unit/identity/IdentityFactory.spec.js +0 -1
- package/test/unit/identity/IdentityPublicKey.spec.js +3 -3
- package/test/unit/identity/stateTransition/IdentityUpdateTransition/IdentityUpdateTransition.spec.js +0 -21
- package/src/errors/consensus/state/identity/identity_public_key_disabled_at_window_violation_error.rs +0 -49
package/dist/wasm/wasm_dpp.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.InvalidDocumentRevisionError = exports.InvalidDocumentError = exports.InvalidDocumentActionError = exports.InvalidDataContractVersionError = exports.InvalidDataContractIdError = exports.InvalidDataContractError = exports.InvalidCompoundIndexError = exports.InvalidAssetLockTransactionOutputReturnSizeError = exports.InvalidAssetLockProofValueError = exports.InvalidAssetLockProofTransactionHeightError = exports.InvalidAssetLockProofCoreChainHeightError = exports.InvalidActiontError = exports.InvalidActionNameError = exports.InvalidActionError = exports.InstantAssetLockProof = exports.InconsistentCompoundIndexDataError = exports.IncompatibleRe2PatternError = exports.IncompatibleProtocolVersionError = exports.IncompatibleDataContractSchemaError = exports.IdentityUpdateTransition = exports.IdentityTopUpTransition = exports.IdentityPublicKeyWithWitness = exports.IdentityPublicKeyIsReadOnlyError = exports.IdentityPublicKeyIsDisabledError = exports.
|
|
7
|
-
exports.WrongPublicKeyPurposeError = exports.ValueError = exports.ValidationResult = exports.UnsupportedVersionError = exports.UnsupportedProtocolVersionError = exports.UnknownAssetLockProofTypeError = exports.UniqueIndicesLimitReachedError = exports.UndefinedIndexPropertyError = exports.TryingToReplaceImmutableDocumentError = exports.TryingToDeleteImmutableDocumentError = exports.SystemPropertyIndexAlreadyPresentError = exports.StateTransitionTypes = exports.StateTransitionMaxSizeExceededError = exports.StateTransitionFactory = exports.SignatureShouldNotBePresentError = exports.SerializedObjectParsingError = exports.RevisionAbsentError = exports.PublicKeySecurityLevelNotMetError = exports.PublicKeyIsDisabledError = exports.ProtocolVersionParsingError = exports.PlatformValueError = exports.NotImplementedIdentityCreditWithdrawalTransitionPoolingError = exports.NonConsensusErrorWasm = exports.NoDocumentsSuppliedError = exports.MissingStateTransitionTypeError = exports.MissingPublicKeyError = exports.MissingMasterPublicKeyError = exports.MissingIdentityPublicKeyIdsError = exports.MissingDocumentTypeError = exports.MissingDocumentTransitionTypeError = exports.MissingDocumentTransitionActionError = exports.MissingDataContractIdError = exports.MismatchOwnerIdsError = exports.Metadata = exports.MaxIdentityPublicKeyLimitReachedError = exports.KeyType = exports.KeySecurityLevel = exports.KeyPurpose = exports.JsonSchemaError = exports.JsonSchemaCompilationError = exports.InvalidStateTransitionTypeError = exports.InvalidStateTransitionSignatureError = exports.InvalidStateTransitionError = exports.InvalidSignaturePublicKeySecurityLevelError = exports.InvalidJsonSchemaRefError = exports.InvalidInstantAssetLockProofSignatureError = exports.InvalidInstantAssetLockProofError = exports.InvalidInitialRevisionError = exports.InvalidIndexedPropertyConstraintError = exports.InvalidIndexPropertyTypeError = exports.InvalidIdentityRevisionError = exports.InvalidIdentityPublicKeyTypeError = exports.InvalidIdentityPublicKeySecurityLevelError = exports.InvalidIdentityPublicKeyIdError = exports.InvalidIdentityPublicKeyDataError = exports.InvalidIdentityNonceError = exports.InvalidIdentityKeySignatureError = exports.InvalidIdentityError = exports.InvalidIdentityCreditWithdrawalTransitionOutputScriptError = exports.InvalidIdentityCreditWithdrawalTransitionCoreFeeError = exports.InvalidIdentityAssetLockTransactionOutputError = exports.InvalidIdentityAssetLockTransactionError = exports.InvalidIdentityAssetLockProofChainLockValidationErrorWasm = exports.InvalidIdentifierError = exports.InvalidDocumentTypeInDataContractError = exports.InvalidDocumentTypeError = exports.InvalidDocumentTransitionIdError =
|
|
6
|
+
exports.InvalidDocumentTransitionActionError = exports.InvalidDocumentRevisionError = exports.InvalidDocumentError = exports.InvalidDocumentActionError = exports.InvalidDataContractVersionError = exports.InvalidDataContractIdError = exports.InvalidDataContractError = exports.InvalidCompoundIndexError = exports.InvalidAssetLockTransactionOutputReturnSizeError = exports.InvalidAssetLockProofValueError = exports.InvalidAssetLockProofTransactionHeightError = exports.InvalidAssetLockProofCoreChainHeightError = exports.InvalidActiontError = exports.InvalidActionNameError = exports.InvalidActionError = exports.InstantAssetLockProof = exports.InconsistentCompoundIndexDataError = exports.IncompatibleRe2PatternError = exports.IncompatibleProtocolVersionError = exports.IncompatibleDataContractSchemaError = exports.IdentityUpdateTransition = exports.IdentityTopUpTransition = exports.IdentityPublicKeyWithWitness = exports.IdentityPublicKeyIsReadOnlyError = exports.IdentityPublicKeyIsDisabledError = exports.IdentityPublicKey = exports.IdentityNotFoundError = exports.IdentityInsufficientBalanceError = exports.IdentityFactory = exports.IdentityFacade = exports.IdentityCreditWithdrawalTransition = exports.IdentityCreditTransferTransition = exports.IdentityCreditTransferToSelfError = exports.IdentityCreateTransition = exports.IdentityContractNonceOutOfBoundsError = exports.IdentityAssetLockTransactionOutputNotFoundError = exports.IdentityAssetLockTransactionOutPointAlreadyExistsError = exports.IdentityAssetLockTransactionIsNotFoundError = exports.IdentityAssetLockProofLockedTransactionMismatchError = exports.IdentityAlreadyExistsError = exports.Identity = exports.ExtendedDocument = exports.DuplicatedIdentityPublicKeyStateError = exports.DuplicatedIdentityPublicKeyIdStateError = exports.DuplicatedIdentityPublicKeyIdError = exports.DuplicatedIdentityPublicKeyError = exports.DuplicateUniqueIndexError = exports.DuplicateIndexNameError = exports.DuplicateIndexError = exports.DuplicateDocumentTransitionsWithIndicesError = exports.DuplicateDocumentTransitionsWithIdsError = exports.DocumentsBatchTransition = exports.DocumentTransitionsAreAbsentError = exports.DocumentTransitions = exports.DocumentTransition = exports.DocumentTimestampsMismatchError = exports.DocumentTimestampsAreEqualError = exports.DocumentTimestampWindowViolationError = exports.DocumentOwnerIdMismatchError = exports.DocumentNotProvidedError = exports.DocumentNotFoundError = exports.DocumentNoRevisionError = exports.DocumentFactory = exports.DocumentFacade = exports.DocumentCreateTransition = exports.DocumentAlreadyPresentError = exports.DocumentAlreadyExistsError = exports.Document = exports.DataTriggerInvalidResultError = exports.DataTriggerExecutionError = exports.DataTriggerConditionError = exports.DataTriggerActionInvalidResultError = exports.DataTriggerActionExecutionError = exports.DataTriggerActionConditionError = exports.DataContractUpdateTransition = exports.DataContractUniqueIndicesChangedError = exports.DataContractNotPresentNotConsensusError = exports.DataContractNotPresentError = exports.DataContractMaxDepthExceedError = exports.DataContractMaxDepthError = exports.DataContractIsReadonlyError = exports.DataContractInvalidIndexDefinitionUpdateError = exports.DataContractImmutablePropertiesUpdateError = exports.DataContractHaveNewUniqueIndexError = exports.DataContractGenericError = exports.DataContractFactory = exports.DataContractFacade = exports.DataContractEmptySchemaError = exports.DataContractCreateTransition = exports.DataContractConfigUpdateError = exports.DataContractAlreadyPresentError = exports.DataContract = exports.DashPlatformProtocol = exports.ChainAssetLockProof = exports.BasicECDSAError = exports.BasicBLSError = exports.BalanceIsNotEnoughError = exports.AssetLockTransactionIsNotFoundError = exports.AssetLockProof = exports.AssetLockOutputNotFoundError = void 0;
|
|
7
|
+
exports.WrongPublicKeyPurposeError = exports.ValueError = exports.ValidationResult = exports.UnsupportedVersionError = exports.UnsupportedProtocolVersionError = exports.UnknownAssetLockProofTypeError = exports.UniqueIndicesLimitReachedError = exports.UndefinedIndexPropertyError = exports.TryingToReplaceImmutableDocumentError = exports.TryingToDeleteImmutableDocumentError = exports.SystemPropertyIndexAlreadyPresentError = exports.StateTransitionTypes = exports.StateTransitionMaxSizeExceededError = exports.StateTransitionFactory = exports.SignatureShouldNotBePresentError = exports.SerializedObjectParsingError = exports.RevisionAbsentError = exports.PublicKeySecurityLevelNotMetError = exports.PublicKeyIsDisabledError = exports.ProtocolVersionParsingError = exports.PlatformValueError = exports.NotImplementedIdentityCreditWithdrawalTransitionPoolingError = exports.NonConsensusErrorWasm = exports.NoDocumentsSuppliedError = exports.MissingStateTransitionTypeError = exports.MissingPublicKeyError = exports.MissingMasterPublicKeyError = exports.MissingIdentityPublicKeyIdsError = exports.MissingDocumentTypeError = exports.MissingDocumentTransitionTypeError = exports.MissingDocumentTransitionActionError = exports.MissingDataContractIdError = exports.MismatchOwnerIdsError = exports.Metadata = exports.MaxIdentityPublicKeyLimitReachedError = exports.KeyType = exports.KeySecurityLevel = exports.KeyPurpose = exports.JsonSchemaError = exports.JsonSchemaCompilationError = exports.InvalidStateTransitionTypeError = exports.InvalidStateTransitionSignatureError = exports.InvalidStateTransitionError = exports.InvalidSignaturePublicKeySecurityLevelError = exports.InvalidJsonSchemaRefError = exports.InvalidInstantAssetLockProofSignatureError = exports.InvalidInstantAssetLockProofError = exports.InvalidInitialRevisionError = exports.InvalidIndexedPropertyConstraintError = exports.InvalidIndexPropertyTypeError = exports.InvalidIdentityRevisionError = exports.InvalidIdentityPublicKeyTypeError = exports.InvalidIdentityPublicKeySecurityLevelError = exports.InvalidIdentityPublicKeyIdError = exports.InvalidIdentityPublicKeyDataError = exports.InvalidIdentityNonceError = exports.InvalidIdentityKeySignatureError = exports.InvalidIdentityError = exports.InvalidIdentityCreditWithdrawalTransitionOutputScriptError = exports.InvalidIdentityCreditWithdrawalTransitionCoreFeeError = exports.InvalidIdentityAssetLockTransactionOutputError = exports.InvalidIdentityAssetLockTransactionError = exports.InvalidIdentityAssetLockProofChainLockValidationErrorWasm = exports.InvalidIdentifierError = exports.InvalidDocumentTypeInDataContractError = exports.InvalidDocumentTypeError = exports.InvalidDocumentTransitionIdError = void 0;
|
|
8
8
|
exports.createAssetLockProofInstance = createAssetLockProofInstance;
|
|
9
9
|
exports.default = void 0;
|
|
10
10
|
exports.deserializeConsensusError = deserializeConsensusError;
|
|
@@ -17,19 +17,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
let wasm;
|
|
18
18
|
const heap = new Array(128).fill(undefined);
|
|
19
19
|
heap.push(undefined, null, true, false);
|
|
20
|
-
function getObject(idx) {
|
|
21
|
-
return heap[idx];
|
|
22
|
-
}
|
|
23
20
|
let heap_next = heap.length;
|
|
24
|
-
function
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
heap_next = idx;
|
|
21
|
+
function addHeapObject(obj) {
|
|
22
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
23
|
+
const idx = heap_next;
|
|
24
|
+
heap_next = heap[idx];
|
|
25
|
+
heap[idx] = obj;
|
|
26
|
+
return idx;
|
|
28
27
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
dropObject(idx);
|
|
32
|
-
return ret;
|
|
28
|
+
function getObject(idx) {
|
|
29
|
+
return heap[idx];
|
|
33
30
|
}
|
|
34
31
|
let WASM_VECTOR_LEN = 0;
|
|
35
32
|
let cachedUint8Memory0 = null;
|
|
@@ -93,6 +90,16 @@ function getInt32Memory0() {
|
|
|
93
90
|
}
|
|
94
91
|
return cachedInt32Memory0;
|
|
95
92
|
}
|
|
93
|
+
function dropObject(idx) {
|
|
94
|
+
if (idx < 132) return;
|
|
95
|
+
heap[idx] = heap_next;
|
|
96
|
+
heap_next = idx;
|
|
97
|
+
}
|
|
98
|
+
function takeObject(idx) {
|
|
99
|
+
const ret = getObject(idx);
|
|
100
|
+
dropObject(idx);
|
|
101
|
+
return ret;
|
|
102
|
+
}
|
|
96
103
|
const cachedTextDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', {
|
|
97
104
|
ignoreBOM: true,
|
|
98
105
|
fatal: true
|
|
@@ -109,13 +116,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
109
116
|
ptr = ptr >>> 0;
|
|
110
117
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
111
118
|
}
|
|
112
|
-
function addHeapObject(obj) {
|
|
113
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
114
|
-
const idx = heap_next;
|
|
115
|
-
heap_next = heap[idx];
|
|
116
|
-
heap[idx] = obj;
|
|
117
|
-
return idx;
|
|
118
|
-
}
|
|
119
119
|
let cachedFloat64Memory0 = null;
|
|
120
120
|
function getFloat64Memory0() {
|
|
121
121
|
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
@@ -227,6 +227,22 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
227
227
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
228
228
|
wasm.wasm_bindgen__convert__closures__invoke1_mut__hb8c36bc5342dd3f6(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
|
+
function _assertClass(instance, klass) {
|
|
231
|
+
if (!(instance instanceof klass)) {
|
|
232
|
+
throw new Error("expected instance of ".concat(klass.name));
|
|
233
|
+
}
|
|
234
|
+
return instance.ptr;
|
|
235
|
+
}
|
|
236
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
237
|
+
ptr = ptr >>> 0;
|
|
238
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
239
|
+
}
|
|
240
|
+
let stack_pointer = 128;
|
|
241
|
+
function addBorrowedObject(obj) {
|
|
242
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
243
|
+
heap[--stack_pointer] = obj;
|
|
244
|
+
return stack_pointer;
|
|
245
|
+
}
|
|
230
246
|
function passArray8ToWasm0(arg, malloc) {
|
|
231
247
|
const ptr = malloc(arg.length * 1) >>> 0;
|
|
232
248
|
getUint8Memory0().set(arg, ptr / 1);
|
|
@@ -250,21 +266,21 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
250
266
|
}
|
|
251
267
|
return result;
|
|
252
268
|
}
|
|
253
|
-
function
|
|
254
|
-
|
|
255
|
-
|
|
269
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
270
|
+
const ptr = malloc(array.length * 4) >>> 0;
|
|
271
|
+
const mem = getUint32Memory0();
|
|
272
|
+
for (let i = 0; i < array.length; i++) {
|
|
273
|
+
mem[ptr / 4 + i] = addHeapObject(array[i]);
|
|
256
274
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
let stack_pointer = 128;
|
|
260
|
-
function addBorrowedObject(obj) {
|
|
261
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
262
|
-
heap[--stack_pointer] = obj;
|
|
263
|
-
return stack_pointer;
|
|
275
|
+
WASM_VECTOR_LEN = array.length;
|
|
276
|
+
return ptr;
|
|
264
277
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
278
|
+
/**
|
|
279
|
+
* @returns {number}
|
|
280
|
+
*/
|
|
281
|
+
function getLatestProtocolVersion() {
|
|
282
|
+
const ret = wasm.getLatestProtocolVersion();
|
|
283
|
+
return ret >>> 0;
|
|
268
284
|
}
|
|
269
285
|
function handleError(f, args) {
|
|
270
286
|
try {
|
|
@@ -273,13 +289,10 @@ function handleError(f, args) {
|
|
|
273
289
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
274
290
|
}
|
|
275
291
|
}
|
|
276
|
-
function
|
|
277
|
-
const ptr = malloc(
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
mem[ptr / 4 + i] = addHeapObject(array[i]);
|
|
281
|
-
}
|
|
282
|
-
WASM_VECTOR_LEN = array.length;
|
|
292
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
293
|
+
const ptr = malloc(arg.length * 4) >>> 0;
|
|
294
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
295
|
+
WASM_VECTOR_LEN = arg.length;
|
|
283
296
|
return ptr;
|
|
284
297
|
}
|
|
285
298
|
/**
|
|
@@ -352,24 +365,24 @@ function createAssetLockProofInstance(raw_parameters) {
|
|
|
352
365
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
353
366
|
}
|
|
354
367
|
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* @returns {number}
|
|
358
|
-
*/
|
|
359
|
-
function getLatestProtocolVersion() {
|
|
360
|
-
const ret = wasm.getLatestProtocolVersion();
|
|
361
|
-
return ret >>> 0;
|
|
362
|
-
}
|
|
363
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
364
|
-
const ptr = malloc(arg.length * 4) >>> 0;
|
|
365
|
-
getUint32Memory0().set(arg, ptr / 4);
|
|
366
|
-
WASM_VECTOR_LEN = arg.length;
|
|
367
|
-
return ptr;
|
|
368
|
-
}
|
|
369
|
-
function __wbg_adapter_1308(arg0, arg1, arg2, arg3) {
|
|
368
|
+
function __wbg_adapter_1295(arg0, arg1, arg2, arg3) {
|
|
370
369
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h469fb73e537dec77(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
371
370
|
}
|
|
372
371
|
|
|
372
|
+
/**
|
|
373
|
+
*/
|
|
374
|
+
const KeyType = exports.KeyType = Object.freeze({
|
|
375
|
+
ECDSA_SECP256K1: 0,
|
|
376
|
+
"0": "ECDSA_SECP256K1",
|
|
377
|
+
BLS12_381: 1,
|
|
378
|
+
"1": "BLS12_381",
|
|
379
|
+
ECDSA_HASH160: 2,
|
|
380
|
+
"2": "ECDSA_HASH160",
|
|
381
|
+
BIP13_SCRIPT_HASH: 3,
|
|
382
|
+
"3": "BIP13_SCRIPT_HASH",
|
|
383
|
+
EDDSA_25519_HASH160: 4,
|
|
384
|
+
"4": "EDDSA_25519_HASH160"
|
|
385
|
+
});
|
|
373
386
|
/**
|
|
374
387
|
*/
|
|
375
388
|
const KeyPurpose = exports.KeyPurpose = Object.freeze({
|
|
@@ -406,32 +419,6 @@ const KeyPurpose = exports.KeyPurpose = Object.freeze({
|
|
|
406
419
|
});
|
|
407
420
|
/**
|
|
408
421
|
*/
|
|
409
|
-
const KeyType = exports.KeyType = Object.freeze({
|
|
410
|
-
ECDSA_SECP256K1: 0,
|
|
411
|
-
"0": "ECDSA_SECP256K1",
|
|
412
|
-
BLS12_381: 1,
|
|
413
|
-
"1": "BLS12_381",
|
|
414
|
-
ECDSA_HASH160: 2,
|
|
415
|
-
"2": "ECDSA_HASH160",
|
|
416
|
-
BIP13_SCRIPT_HASH: 3,
|
|
417
|
-
"3": "BIP13_SCRIPT_HASH",
|
|
418
|
-
EDDSA_25519_HASH160: 4,
|
|
419
|
-
"4": "EDDSA_25519_HASH160"
|
|
420
|
-
});
|
|
421
|
-
/**
|
|
422
|
-
*/
|
|
423
|
-
const KeySecurityLevel = exports.KeySecurityLevel = Object.freeze({
|
|
424
|
-
MASTER: 0,
|
|
425
|
-
"0": "MASTER",
|
|
426
|
-
CRITICAL: 1,
|
|
427
|
-
"1": "CRITICAL",
|
|
428
|
-
HIGH: 2,
|
|
429
|
-
"2": "HIGH",
|
|
430
|
-
MEDIUM: 3,
|
|
431
|
-
"3": "MEDIUM"
|
|
432
|
-
});
|
|
433
|
-
/**
|
|
434
|
-
*/
|
|
435
422
|
const StateTransitionTypes = exports.StateTransitionTypes = Object.freeze({
|
|
436
423
|
DataContractCreate: 0,
|
|
437
424
|
"0": "DataContractCreate",
|
|
@@ -452,6 +439,18 @@ const StateTransitionTypes = exports.StateTransitionTypes = Object.freeze({
|
|
|
452
439
|
});
|
|
453
440
|
/**
|
|
454
441
|
*/
|
|
442
|
+
const KeySecurityLevel = exports.KeySecurityLevel = Object.freeze({
|
|
443
|
+
MASTER: 0,
|
|
444
|
+
"0": "MASTER",
|
|
445
|
+
CRITICAL: 1,
|
|
446
|
+
"1": "CRITICAL",
|
|
447
|
+
HIGH: 2,
|
|
448
|
+
"2": "HIGH",
|
|
449
|
+
MEDIUM: 3,
|
|
450
|
+
"3": "MEDIUM"
|
|
451
|
+
});
|
|
452
|
+
/**
|
|
453
|
+
*/
|
|
455
454
|
class AssetLockOutputNotFoundError {
|
|
456
455
|
__destroy_into_raw() {
|
|
457
456
|
const ptr = this.__wbg_ptr;
|
|
@@ -2792,7 +2791,7 @@ class DataTriggerActionExecutionError {
|
|
|
2792
2791
|
let deferred1_1;
|
|
2793
2792
|
try {
|
|
2794
2793
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2795
|
-
wasm.
|
|
2794
|
+
wasm.datacontractgenericerror_getMessage(retptr, this.__wbg_ptr);
|
|
2796
2795
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2797
2796
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2798
2797
|
deferred1_0 = r0;
|
|
@@ -2901,7 +2900,7 @@ class DataTriggerConditionError {
|
|
|
2901
2900
|
let deferred1_1;
|
|
2902
2901
|
try {
|
|
2903
2902
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2904
|
-
wasm.
|
|
2903
|
+
wasm.datacontractuniqueindiceschangederror_getDocumentType(retptr, this.__wbg_ptr);
|
|
2905
2904
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
2906
2905
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
2907
2906
|
deferred1_0 = r0;
|
|
@@ -2998,7 +2997,7 @@ class DataTriggerExecutionError {
|
|
|
2998
2997
|
let deferred1_1;
|
|
2999
2998
|
try {
|
|
3000
2999
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3001
|
-
wasm.
|
|
3000
|
+
wasm.datatriggerexecutionerror_getMessage(retptr, this.__wbg_ptr);
|
|
3002
3001
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
3003
3002
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
3004
3003
|
deferred1_0 = r0;
|
|
@@ -4015,7 +4014,7 @@ class DocumentTimestampsMismatchError {
|
|
|
4015
4014
|
* @returns {any}
|
|
4016
4015
|
*/
|
|
4017
4016
|
getDocumentId() {
|
|
4018
|
-
const ret = wasm.
|
|
4017
|
+
const ret = wasm.datacontractnotpresentnotconsensuserror_getDataContractId(this.__wbg_ptr);
|
|
4019
4018
|
return takeObject(ret);
|
|
4020
4019
|
}
|
|
4021
4020
|
/**
|
|
@@ -4532,7 +4531,7 @@ class DuplicateDocumentTransitionsWithIndicesError {
|
|
|
4532
4531
|
* @returns {Array<any>}
|
|
4533
4532
|
*/
|
|
4534
4533
|
getDocumentTransitionReferences() {
|
|
4535
|
-
const ret = wasm.
|
|
4534
|
+
const ret = wasm.duplicatedocumenttransitionswithidserror_getDocumentTransitionReferences(this.__wbg_ptr);
|
|
4536
4535
|
return takeObject(ret);
|
|
4537
4536
|
}
|
|
4538
4537
|
/**
|
|
@@ -4589,7 +4588,7 @@ class DuplicateIndexError {
|
|
|
4589
4588
|
let deferred1_1;
|
|
4590
4589
|
try {
|
|
4591
4590
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4592
|
-
wasm.
|
|
4591
|
+
wasm.duplicateindexerror_getDocumentType(retptr, this.__wbg_ptr);
|
|
4593
4592
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
4594
4593
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
4595
4594
|
deferred1_0 = r0;
|
|
@@ -4753,7 +4752,7 @@ class DuplicateUniqueIndexError {
|
|
|
4753
4752
|
* @returns {any}
|
|
4754
4753
|
*/
|
|
4755
4754
|
getDocumentId() {
|
|
4756
|
-
const ret = wasm.
|
|
4755
|
+
const ret = wasm.datatriggeractionconditionerror_getDataContractId(this.__wbg_ptr);
|
|
4757
4756
|
return takeObject(ret);
|
|
4758
4757
|
}
|
|
4759
4758
|
/**
|
|
@@ -5123,7 +5122,7 @@ class ExtendedDocument {
|
|
|
5123
5122
|
* @returns {Document}
|
|
5124
5123
|
*/
|
|
5125
5124
|
getDocument() {
|
|
5126
|
-
const ret = wasm.
|
|
5125
|
+
const ret = wasm.extendeddocument_getDocument(this.__wbg_ptr);
|
|
5127
5126
|
return Document.__wrap(ret);
|
|
5128
5127
|
}
|
|
5129
5128
|
/**
|
|
@@ -5834,7 +5833,7 @@ class IdentityAssetLockTransactionIsNotFoundError {
|
|
|
5834
5833
|
* @returns {any}
|
|
5835
5834
|
*/
|
|
5836
5835
|
getTransactionId() {
|
|
5837
|
-
const ret = wasm.
|
|
5836
|
+
const ret = wasm.datatriggeractioninvalidresulterror_getDataContractId(this.__wbg_ptr);
|
|
5838
5837
|
return takeObject(ret);
|
|
5839
5838
|
}
|
|
5840
5839
|
/**
|
|
@@ -7423,7 +7422,7 @@ class IdentityInsufficientBalanceError {
|
|
|
7423
7422
|
* @returns {any}
|
|
7424
7423
|
*/
|
|
7425
7424
|
getIdentityId() {
|
|
7426
|
-
const ret = wasm.
|
|
7425
|
+
const ret = wasm.identitycredittransfertransition_getIdentityId(this.__wbg_ptr);
|
|
7427
7426
|
return takeObject(ret);
|
|
7428
7427
|
}
|
|
7429
7428
|
/**
|
|
@@ -7483,14 +7482,14 @@ class IdentityNotFoundError {
|
|
|
7483
7482
|
* @param {any} identity_id
|
|
7484
7483
|
*/
|
|
7485
7484
|
constructor(identity_id) {
|
|
7486
|
-
const ret = wasm.
|
|
7485
|
+
const ret = wasm.identitynotfounderror_new(addHeapObject(identity_id));
|
|
7487
7486
|
return IdentityNotFoundError.__wrap(ret);
|
|
7488
7487
|
}
|
|
7489
7488
|
/**
|
|
7490
7489
|
* @returns {any}
|
|
7491
7490
|
*/
|
|
7492
7491
|
getIdentityId() {
|
|
7493
|
-
const ret = wasm.
|
|
7492
|
+
const ret = wasm.identitynotfounderror_getIdentityId(this.__wbg_ptr);
|
|
7494
7493
|
return takeObject(ret);
|
|
7495
7494
|
}
|
|
7496
7495
|
/**
|
|
@@ -7776,73 +7775,6 @@ class IdentityPublicKey {
|
|
|
7776
7775
|
/**
|
|
7777
7776
|
*/
|
|
7778
7777
|
exports.IdentityPublicKey = IdentityPublicKey;
|
|
7779
|
-
class IdentityPublicKeyDisabledAtWindowViolationError {
|
|
7780
|
-
static __wrap(ptr) {
|
|
7781
|
-
ptr = ptr >>> 0;
|
|
7782
|
-
const obj = Object.create(IdentityPublicKeyDisabledAtWindowViolationError.prototype);
|
|
7783
|
-
obj.__wbg_ptr = ptr;
|
|
7784
|
-
return obj;
|
|
7785
|
-
}
|
|
7786
|
-
__destroy_into_raw() {
|
|
7787
|
-
const ptr = this.__wbg_ptr;
|
|
7788
|
-
this.__wbg_ptr = 0;
|
|
7789
|
-
return ptr;
|
|
7790
|
-
}
|
|
7791
|
-
free() {
|
|
7792
|
-
const ptr = this.__destroy_into_raw();
|
|
7793
|
-
wasm.__wbg_identitypublickeydisabledatwindowviolationerror_free(ptr);
|
|
7794
|
-
}
|
|
7795
|
-
/**
|
|
7796
|
-
* @returns {Date}
|
|
7797
|
-
*/
|
|
7798
|
-
getDisabledAt() {
|
|
7799
|
-
const ret = wasm.identitypublickeydisabledatwindowviolationerror_getDisabledAt(this.__wbg_ptr);
|
|
7800
|
-
return takeObject(ret);
|
|
7801
|
-
}
|
|
7802
|
-
/**
|
|
7803
|
-
* @returns {Date}
|
|
7804
|
-
*/
|
|
7805
|
-
getTimeWindowStart() {
|
|
7806
|
-
const ret = wasm.identitypublickeydisabledatwindowviolationerror_getTimeWindowStart(this.__wbg_ptr);
|
|
7807
|
-
return takeObject(ret);
|
|
7808
|
-
}
|
|
7809
|
-
/**
|
|
7810
|
-
* @returns {Date}
|
|
7811
|
-
*/
|
|
7812
|
-
getTimeWindowEnd() {
|
|
7813
|
-
const ret = wasm.identitypublickeydisabledatwindowviolationerror_getTimeWindowEnd(this.__wbg_ptr);
|
|
7814
|
-
return takeObject(ret);
|
|
7815
|
-
}
|
|
7816
|
-
/**
|
|
7817
|
-
* @returns {number}
|
|
7818
|
-
*/
|
|
7819
|
-
getCode() {
|
|
7820
|
-
const ret = wasm.identitypublickeydisabledatwindowviolationerror_getCode(this.__wbg_ptr);
|
|
7821
|
-
return ret >>> 0;
|
|
7822
|
-
}
|
|
7823
|
-
/**
|
|
7824
|
-
* @returns {string}
|
|
7825
|
-
*/
|
|
7826
|
-
get message() {
|
|
7827
|
-
let deferred1_0;
|
|
7828
|
-
let deferred1_1;
|
|
7829
|
-
try {
|
|
7830
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7831
|
-
wasm.identitypublickeydisabledatwindowviolationerror_message(retptr, this.__wbg_ptr);
|
|
7832
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
7833
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
7834
|
-
deferred1_0 = r0;
|
|
7835
|
-
deferred1_1 = r1;
|
|
7836
|
-
return getStringFromWasm0(r0, r1);
|
|
7837
|
-
} finally {
|
|
7838
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7839
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1);
|
|
7840
|
-
}
|
|
7841
|
-
}
|
|
7842
|
-
}
|
|
7843
|
-
/**
|
|
7844
|
-
*/
|
|
7845
|
-
exports.IdentityPublicKeyDisabledAtWindowViolationError = IdentityPublicKeyDisabledAtWindowViolationError;
|
|
7846
7778
|
class IdentityPublicKeyIsDisabledError {
|
|
7847
7779
|
static __wrap(ptr) {
|
|
7848
7780
|
ptr = ptr >>> 0;
|
|
@@ -7916,14 +7848,14 @@ class IdentityPublicKeyIsReadOnlyError {
|
|
|
7916
7848
|
* @returns {number}
|
|
7917
7849
|
*/
|
|
7918
7850
|
getKeyId() {
|
|
7919
|
-
const ret = wasm.
|
|
7851
|
+
const ret = wasm.identitypublickeyisdisablederror_getPublicKeyIndex(this.__wbg_ptr);
|
|
7920
7852
|
return ret >>> 0;
|
|
7921
7853
|
}
|
|
7922
7854
|
/**
|
|
7923
7855
|
* @returns {number}
|
|
7924
7856
|
*/
|
|
7925
7857
|
getPublicKeyIndex() {
|
|
7926
|
-
const ret = wasm.
|
|
7858
|
+
const ret = wasm.identitypublickeyisdisablederror_getPublicKeyIndex(this.__wbg_ptr);
|
|
7927
7859
|
return ret >>> 0;
|
|
7928
7860
|
}
|
|
7929
7861
|
/**
|
|
@@ -8538,19 +8470,6 @@ class IdentityUpdateTransition {
|
|
|
8538
8470
|
wasm.identityupdatetransition_setPublicKeyIdsToDisable(this.__wbg_ptr, ptr0, len0);
|
|
8539
8471
|
}
|
|
8540
8472
|
/**
|
|
8541
|
-
* @returns {Date | undefined}
|
|
8542
|
-
*/
|
|
8543
|
-
getPublicKeysDisabledAt() {
|
|
8544
|
-
const ret = wasm.identityupdatetransition_getPublicKeysDisabledAt(this.__wbg_ptr);
|
|
8545
|
-
return takeObject(ret);
|
|
8546
|
-
}
|
|
8547
|
-
/**
|
|
8548
|
-
* @param {Date | undefined} timestamp
|
|
8549
|
-
*/
|
|
8550
|
-
setPublicKeysDisabledAt(timestamp) {
|
|
8551
|
-
wasm.identityupdatetransition_setPublicKeysDisabledAt(this.__wbg_ptr, isLikeNone(timestamp) ? 0 : addHeapObject(timestamp));
|
|
8552
|
-
}
|
|
8553
|
-
/**
|
|
8554
8473
|
* @returns {number}
|
|
8555
8474
|
*/
|
|
8556
8475
|
getType() {
|
|
@@ -9144,7 +9063,7 @@ class InstantAssetLockProof {
|
|
|
9144
9063
|
* @returns {number}
|
|
9145
9064
|
*/
|
|
9146
9065
|
getType() {
|
|
9147
|
-
const ret = wasm.
|
|
9066
|
+
const ret = wasm.identitycreatetransition_isDataContractStateTransition(this.__wbg_ptr);
|
|
9148
9067
|
return ret;
|
|
9149
9068
|
}
|
|
9150
9069
|
/**
|
|
@@ -9553,7 +9472,7 @@ class InvalidAssetLockTransactionOutputReturnSizeError {
|
|
|
9553
9472
|
* @returns {number}
|
|
9554
9473
|
*/
|
|
9555
9474
|
getOutputIndex() {
|
|
9556
|
-
const ret = wasm.
|
|
9475
|
+
const ret = wasm.datacontractmaxdeptherror_getSchemaDepth(this.__wbg_ptr);
|
|
9557
9476
|
return ret >>> 0;
|
|
9558
9477
|
}
|
|
9559
9478
|
/**
|
|
@@ -9610,7 +9529,7 @@ class InvalidCompoundIndexError {
|
|
|
9610
9529
|
let deferred1_1;
|
|
9611
9530
|
try {
|
|
9612
9531
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
9613
|
-
wasm.
|
|
9532
|
+
wasm.datatriggerexecutionerror_getMessage(retptr, this.__wbg_ptr);
|
|
9614
9533
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
9615
9534
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
9616
9535
|
deferred1_0 = r0;
|
|
@@ -9671,12 +9590,6 @@ class InvalidCompoundIndexError {
|
|
|
9671
9590
|
*/
|
|
9672
9591
|
exports.InvalidCompoundIndexError = InvalidCompoundIndexError;
|
|
9673
9592
|
class InvalidDataContractError {
|
|
9674
|
-
static __wrap(ptr) {
|
|
9675
|
-
ptr = ptr >>> 0;
|
|
9676
|
-
const obj = Object.create(InvalidDataContractError.prototype);
|
|
9677
|
-
obj.__wbg_ptr = ptr;
|
|
9678
|
-
return obj;
|
|
9679
|
-
}
|
|
9680
9593
|
__destroy_into_raw() {
|
|
9681
9594
|
const ptr = this.__wbg_ptr;
|
|
9682
9595
|
this.__wbg_ptr = 0;
|
|
@@ -9918,7 +9831,7 @@ class InvalidDocumentError {
|
|
|
9918
9831
|
* @returns {any}
|
|
9919
9832
|
*/
|
|
9920
9833
|
getRawDocument() {
|
|
9921
|
-
const ret = wasm.
|
|
9834
|
+
const ret = wasm.invaliddocumenterror_getRawDocument(this.__wbg_ptr);
|
|
9922
9835
|
return takeObject(ret);
|
|
9923
9836
|
}
|
|
9924
9837
|
/**
|
|
@@ -10042,7 +9955,7 @@ class InvalidDocumentTransitionActionError {
|
|
|
10042
9955
|
let deferred1_1;
|
|
10043
9956
|
try {
|
|
10044
9957
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10045
|
-
wasm.
|
|
9958
|
+
wasm.datatriggerexecutionerror_getMessage(retptr, this.__wbg_ptr);
|
|
10046
9959
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
10047
9960
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
10048
9961
|
deferred1_0 = r0;
|
|
@@ -10103,7 +10016,7 @@ class InvalidDocumentTransitionIdError {
|
|
|
10103
10016
|
* @returns {any}
|
|
10104
10017
|
*/
|
|
10105
10018
|
getExpectedId() {
|
|
10106
|
-
const ret = wasm.
|
|
10019
|
+
const ret = wasm.datacontractnotpresenterror_getDataContractId(this.__wbg_ptr);
|
|
10107
10020
|
return takeObject(ret);
|
|
10108
10021
|
}
|
|
10109
10022
|
/**
|
|
@@ -10249,7 +10162,7 @@ class InvalidDocumentTypeInDataContractError {
|
|
|
10249
10162
|
let deferred1_1;
|
|
10250
10163
|
try {
|
|
10251
10164
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10252
|
-
wasm.
|
|
10165
|
+
wasm.invaliddocumenttypeindatacontracterror_getType(retptr, this.__wbg_ptr);
|
|
10253
10166
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
10254
10167
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
10255
10168
|
deferred1_0 = r0;
|
|
@@ -10295,7 +10208,7 @@ class InvalidIdentifierError {
|
|
|
10295
10208
|
let deferred1_1;
|
|
10296
10209
|
try {
|
|
10297
10210
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10298
|
-
wasm.
|
|
10211
|
+
wasm.invalididentifiererror_getIdentifierName(retptr, this.__wbg_ptr);
|
|
10299
10212
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
10300
10213
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
10301
10214
|
deferred1_0 = r0;
|
|
@@ -10314,7 +10227,7 @@ class InvalidIdentifierError {
|
|
|
10314
10227
|
let deferred1_1;
|
|
10315
10228
|
try {
|
|
10316
10229
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10317
|
-
wasm.
|
|
10230
|
+
wasm.invalididentifiererror_getIdentifierError(retptr, this.__wbg_ptr);
|
|
10318
10231
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
10319
10232
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
10320
10233
|
deferred1_0 = r0;
|
|
@@ -10474,7 +10387,7 @@ class InvalidIdentityAssetLockTransactionOutputError {
|
|
|
10474
10387
|
* @returns {number}
|
|
10475
10388
|
*/
|
|
10476
10389
|
getOutputIndex() {
|
|
10477
|
-
const ret = wasm.
|
|
10390
|
+
const ret = wasm.invalididentityassetlocktransactionoutputerror_getOutputIndex(this.__wbg_ptr);
|
|
10478
10391
|
return ret >>> 0;
|
|
10479
10392
|
}
|
|
10480
10393
|
/**
|
|
@@ -10527,7 +10440,7 @@ class InvalidIdentityCreditWithdrawalTransitionCoreFeeError {
|
|
|
10527
10440
|
* @returns {number}
|
|
10528
10441
|
*/
|
|
10529
10442
|
getCoreFee() {
|
|
10530
|
-
const ret = wasm.
|
|
10443
|
+
const ret = wasm.invalididentitycreditwithdrawaltransitioncorefeeerror_getCoreFee(this.__wbg_ptr);
|
|
10531
10444
|
return ret >>> 0;
|
|
10532
10445
|
}
|
|
10533
10446
|
/**
|
|
@@ -10628,7 +10541,7 @@ class InvalidIdentityError {
|
|
|
10628
10541
|
getErrors() {
|
|
10629
10542
|
try {
|
|
10630
10543
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10631
|
-
wasm.
|
|
10544
|
+
wasm.invalididentityerror_getErrors(retptr, this.__wbg_ptr);
|
|
10632
10545
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
10633
10546
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
10634
10547
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -10642,7 +10555,7 @@ class InvalidIdentityError {
|
|
|
10642
10555
|
* @returns {any}
|
|
10643
10556
|
*/
|
|
10644
10557
|
getRawIdentity() {
|
|
10645
|
-
const ret = wasm.
|
|
10558
|
+
const ret = wasm.invalididentityerror_getRawIdentity(this.__wbg_ptr);
|
|
10646
10559
|
return takeObject(ret);
|
|
10647
10560
|
}
|
|
10648
10561
|
}
|
|
@@ -10669,7 +10582,7 @@ class InvalidIdentityKeySignatureError {
|
|
|
10669
10582
|
* @returns {number}
|
|
10670
10583
|
*/
|
|
10671
10584
|
getPublicKeyId() {
|
|
10672
|
-
const ret = wasm.
|
|
10585
|
+
const ret = wasm.invalididentitycreditwithdrawaltransitioncorefeeerror_getCoreFee(this.__wbg_ptr);
|
|
10673
10586
|
return ret >>> 0;
|
|
10674
10587
|
}
|
|
10675
10588
|
/**
|
|
@@ -10814,7 +10727,7 @@ class InvalidIdentityPublicKeyDataError {
|
|
|
10814
10727
|
let deferred1_1;
|
|
10815
10728
|
try {
|
|
10816
10729
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10817
|
-
wasm.
|
|
10730
|
+
wasm.datacontracthavenewuniqueindexerror_getDocumentType(retptr, this.__wbg_ptr);
|
|
10818
10731
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
10819
10732
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
10820
10733
|
deferred1_0 = r0;
|
|
@@ -10875,7 +10788,7 @@ class InvalidIdentityPublicKeyIdError {
|
|
|
10875
10788
|
* @returns {number}
|
|
10876
10789
|
*/
|
|
10877
10790
|
getId() {
|
|
10878
|
-
const ret = wasm.
|
|
10791
|
+
const ret = wasm.invalididentitypublickeyiderror_getId(this.__wbg_ptr);
|
|
10879
10792
|
return ret >>> 0;
|
|
10880
10793
|
}
|
|
10881
10794
|
/**
|
|
@@ -10928,7 +10841,7 @@ class InvalidIdentityPublicKeySecurityLevelError {
|
|
|
10928
10841
|
* @returns {number}
|
|
10929
10842
|
*/
|
|
10930
10843
|
getPublicKeyId() {
|
|
10931
|
-
const ret = wasm.
|
|
10844
|
+
const ret = wasm.invalididentitypublickeysecuritylevelerror_getPublicKeyId(this.__wbg_ptr);
|
|
10932
10845
|
return ret >>> 0;
|
|
10933
10846
|
}
|
|
10934
10847
|
/**
|
|
@@ -11252,7 +11165,7 @@ class InvalidIndexedPropertyConstraintError {
|
|
|
11252
11165
|
let deferred1_1;
|
|
11253
11166
|
try {
|
|
11254
11167
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11255
|
-
wasm.
|
|
11168
|
+
wasm.datatriggerexecutionerror_getMessage(retptr, this.__wbg_ptr);
|
|
11256
11169
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
11257
11170
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
11258
11171
|
deferred1_0 = r0;
|
|
@@ -11271,7 +11184,7 @@ class InvalidIndexedPropertyConstraintError {
|
|
|
11271
11184
|
let deferred1_1;
|
|
11272
11185
|
try {
|
|
11273
11186
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11274
|
-
wasm.
|
|
11187
|
+
wasm.invalidcompoundindexerror_getIndexName(retptr, this.__wbg_ptr);
|
|
11275
11188
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
11276
11189
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
11277
11190
|
deferred1_0 = r0;
|
|
@@ -11391,14 +11304,14 @@ class InvalidInitialRevisionError {
|
|
|
11391
11304
|
constructor(document) {
|
|
11392
11305
|
_assertClass(document, Document);
|
|
11393
11306
|
var ptr0 = document.__destroy_into_raw();
|
|
11394
|
-
const ret = wasm.
|
|
11307
|
+
const ret = wasm.invalidinitialrevisionerror_new(ptr0);
|
|
11395
11308
|
return InvalidInitialRevisionError.__wrap(ret);
|
|
11396
11309
|
}
|
|
11397
11310
|
/**
|
|
11398
11311
|
* @returns {Document}
|
|
11399
11312
|
*/
|
|
11400
11313
|
getDocument() {
|
|
11401
|
-
const ret = wasm.
|
|
11314
|
+
const ret = wasm.extendeddocument_getDocument(this.__wbg_ptr);
|
|
11402
11315
|
return Document.__wrap(ret);
|
|
11403
11316
|
}
|
|
11404
11317
|
}
|
|
@@ -11816,7 +11729,7 @@ class JsonSchemaCompilationError {
|
|
|
11816
11729
|
let deferred1_1;
|
|
11817
11730
|
try {
|
|
11818
11731
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11819
|
-
wasm.
|
|
11732
|
+
wasm.duplicateindexerror_getDocumentType(retptr, this.__wbg_ptr);
|
|
11820
11733
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
11821
11734
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
11822
11735
|
deferred1_0 = r0;
|
|
@@ -12605,7 +12518,7 @@ class MissingPublicKeyError {
|
|
|
12605
12518
|
* @returns {number}
|
|
12606
12519
|
*/
|
|
12607
12520
|
getPublicKeyId() {
|
|
12608
|
-
const ret = wasm.
|
|
12521
|
+
const ret = wasm.incompatibleprotocolversionerror_getParsedProtocolVersion(this.__wbg_ptr);
|
|
12609
12522
|
return ret >>> 0;
|
|
12610
12523
|
}
|
|
12611
12524
|
/**
|
|
@@ -12750,7 +12663,7 @@ class NotImplementedIdentityCreditWithdrawalTransitionPoolingError {
|
|
|
12750
12663
|
* @returns {number}
|
|
12751
12664
|
*/
|
|
12752
12665
|
getPooling() {
|
|
12753
|
-
const ret = wasm.
|
|
12666
|
+
const ret = wasm.notimplementedidentitycreditwithdrawaltransitionpoolingerror_getPooling(this.__wbg_ptr);
|
|
12754
12667
|
return ret;
|
|
12755
12668
|
}
|
|
12756
12669
|
/**
|
|
@@ -12899,7 +12812,7 @@ class ProtocolVersionParsingError {
|
|
|
12899
12812
|
let deferred1_1;
|
|
12900
12813
|
try {
|
|
12901
12814
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
12902
|
-
wasm.
|
|
12815
|
+
wasm.protocolversionparsingerror_getParsingError(retptr, this.__wbg_ptr);
|
|
12903
12816
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
12904
12817
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
12905
12818
|
deferred1_0 = r0;
|
|
@@ -13131,7 +13044,7 @@ class SerializedObjectParsingError {
|
|
|
13131
13044
|
let deferred1_1;
|
|
13132
13045
|
try {
|
|
13133
13046
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13134
|
-
wasm.
|
|
13047
|
+
wasm.invalidindexpropertytypeerror_getDocumentType(retptr, this.__wbg_ptr);
|
|
13135
13048
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
13136
13049
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
13137
13050
|
deferred1_0 = r0;
|
|
@@ -13269,7 +13182,7 @@ class StateTransitionMaxSizeExceededError {
|
|
|
13269
13182
|
* @returns {number}
|
|
13270
13183
|
*/
|
|
13271
13184
|
getActualSizeKBytes() {
|
|
13272
|
-
const ret = wasm.
|
|
13185
|
+
const ret = wasm.invalididentitycreditwithdrawaltransitioncorefeeerror_getCoreFee(this.__wbg_ptr);
|
|
13273
13186
|
return ret >>> 0;
|
|
13274
13187
|
}
|
|
13275
13188
|
/**
|
|
@@ -13333,7 +13246,7 @@ class SystemPropertyIndexAlreadyPresentError {
|
|
|
13333
13246
|
let deferred1_1;
|
|
13334
13247
|
try {
|
|
13335
13248
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13336
|
-
wasm.
|
|
13249
|
+
wasm.protocolversionparsingerror_getParsingError(retptr, this.__wbg_ptr);
|
|
13337
13250
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
13338
13251
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
13339
13252
|
deferred1_0 = r0;
|
|
@@ -13434,7 +13347,7 @@ class TryingToDeleteImmutableDocumentError {
|
|
|
13434
13347
|
constructor(document) {
|
|
13435
13348
|
_assertClass(document, Document);
|
|
13436
13349
|
var ptr0 = document.__destroy_into_raw();
|
|
13437
|
-
const ret = wasm.
|
|
13350
|
+
const ret = wasm.documentnorevisionerror_new(ptr0);
|
|
13438
13351
|
return TryingToDeleteImmutableDocumentError.__wrap(ret);
|
|
13439
13352
|
}
|
|
13440
13353
|
}
|
|
@@ -13463,7 +13376,7 @@ class TryingToReplaceImmutableDocumentError {
|
|
|
13463
13376
|
constructor(document) {
|
|
13464
13377
|
_assertClass(document, Document);
|
|
13465
13378
|
var ptr0 = document.__destroy_into_raw();
|
|
13466
|
-
const ret = wasm.
|
|
13379
|
+
const ret = wasm.tryingtoreplaceimmutabledocumenterror_new(ptr0);
|
|
13467
13380
|
return TryingToReplaceImmutableDocumentError.__wrap(ret);
|
|
13468
13381
|
}
|
|
13469
13382
|
}
|
|
@@ -13494,7 +13407,7 @@ class UndefinedIndexPropertyError {
|
|
|
13494
13407
|
let deferred1_1;
|
|
13495
13408
|
try {
|
|
13496
13409
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13497
|
-
wasm.
|
|
13410
|
+
wasm.undefinedindexpropertyerror_getDocumentType(retptr, this.__wbg_ptr);
|
|
13498
13411
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
13499
13412
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
13500
13413
|
deferred1_0 = r0;
|
|
@@ -13597,7 +13510,7 @@ class UniqueIndicesLimitReachedError {
|
|
|
13597
13510
|
let deferred1_1;
|
|
13598
13511
|
try {
|
|
13599
13512
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13600
|
-
wasm.
|
|
13513
|
+
wasm.protocolversionparsingerror_getParsingError(retptr, this.__wbg_ptr);
|
|
13601
13514
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
13602
13515
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
13603
13516
|
deferred1_0 = r0;
|
|
@@ -13692,7 +13605,7 @@ class UnsupportedProtocolVersionError {
|
|
|
13692
13605
|
* @returns {number}
|
|
13693
13606
|
*/
|
|
13694
13607
|
getParsedProtocolVersion() {
|
|
13695
|
-
const ret = wasm.
|
|
13608
|
+
const ret = wasm.identityassetlocktransactionoutputnotfounderror_getOutputIndex(this.__wbg_ptr);
|
|
13696
13609
|
return ret >>> 0;
|
|
13697
13610
|
}
|
|
13698
13611
|
/**
|
|
@@ -13942,7 +13855,7 @@ class ValueError {
|
|
|
13942
13855
|
let deferred1_1;
|
|
13943
13856
|
try {
|
|
13944
13857
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13945
|
-
wasm.
|
|
13858
|
+
wasm.protocolversionparsingerror_getParsingError(retptr, this.__wbg_ptr);
|
|
13946
13859
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
13947
13860
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
13948
13861
|
deferred1_0 = r0;
|
|
@@ -14071,155 +13984,59 @@ async function __wbg_load(module, imports) {
|
|
|
14071
13984
|
function __wbg_get_imports() {
|
|
14072
13985
|
const imports = {};
|
|
14073
13986
|
imports.wbg = {};
|
|
14074
|
-
imports.wbg.
|
|
14075
|
-
takeObject(arg0);
|
|
14076
|
-
};
|
|
14077
|
-
imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
|
|
14078
|
-
const obj = getObject(arg1);
|
|
14079
|
-
const ret = typeof obj === 'string' ? obj : undefined;
|
|
14080
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
14081
|
-
var len1 = WASM_VECTOR_LEN;
|
|
14082
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
14083
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
14084
|
-
};
|
|
14085
|
-
imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
|
|
14086
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
14087
|
-
return addHeapObject(ret);
|
|
14088
|
-
};
|
|
14089
|
-
imports.wbg.__wbg_from_422f48d7e71eabf1 = function (arg0, arg1) {
|
|
13987
|
+
imports.wbg.__wbg_from_986c2d21ce678c02 = function (arg0, arg1) {
|
|
14090
13988
|
const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
|
|
14091
13989
|
return addHeapObject(ret);
|
|
14092
13990
|
};
|
|
14093
|
-
imports.wbg.
|
|
13991
|
+
imports.wbg.__wbg_new_ccdf6b39fc5124c1 = function (arg0) {
|
|
14094
13992
|
const ret = new _Identifier.default(takeObject(arg0));
|
|
14095
13993
|
return addHeapObject(ret);
|
|
14096
13994
|
};
|
|
14097
|
-
imports.wbg.__wbg_toBuffer_55cc3af5060829a5 = function (arg0, arg1) {
|
|
14098
|
-
const ret = getObject(arg1).toBuffer();
|
|
14099
|
-
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
14100
|
-
const len1 = WASM_VECTOR_LEN;
|
|
14101
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
14102
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
14103
|
-
};
|
|
14104
|
-
imports.wbg.__wbg_from_36c957d2a16d1fac = function (arg0, arg1) {
|
|
14105
|
-
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
14106
|
-
wasm.__wbindgen_free(arg0, arg1 * 1);
|
|
14107
|
-
const ret = Buffer.from(v0);
|
|
14108
|
-
return addHeapObject(ret);
|
|
14109
|
-
};
|
|
14110
13995
|
imports.wbg.__wbindgen_number_new = function (arg0) {
|
|
14111
13996
|
const ret = arg0;
|
|
14112
13997
|
return addHeapObject(ret);
|
|
14113
13998
|
};
|
|
14114
|
-
imports.wbg.
|
|
14115
|
-
const ret =
|
|
14116
|
-
return ret;
|
|
14117
|
-
};
|
|
14118
|
-
imports.wbg.__wbindgen_is_undefined = function (arg0) {
|
|
14119
|
-
const ret = getObject(arg0) === undefined;
|
|
14120
|
-
return ret;
|
|
14121
|
-
};
|
|
14122
|
-
imports.wbg.__wbindgen_is_object = function (arg0) {
|
|
14123
|
-
const val = getObject(arg0);
|
|
14124
|
-
const ret = typeof val === 'object' && val !== null;
|
|
14125
|
-
return ret;
|
|
14126
|
-
};
|
|
14127
|
-
imports.wbg.__wbg_set_d5ad1c0e751efa78 = function (arg0, arg1, arg2, arg3) {
|
|
14128
|
-
(0, _lodash.set)(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
14129
|
-
};
|
|
14130
|
-
imports.wbg.__wbg_datacontractnotpresentnotconsensuserror_new = function (arg0) {
|
|
14131
|
-
const ret = DataContractNotPresentNotConsensusError.__wrap(arg0);
|
|
14132
|
-
return addHeapObject(ret);
|
|
14133
|
-
};
|
|
14134
|
-
imports.wbg.__wbg_platformvalueerror_new = function (arg0) {
|
|
14135
|
-
const ret = PlatformValueError.__wrap(arg0);
|
|
14136
|
-
return addHeapObject(ret);
|
|
14137
|
-
};
|
|
14138
|
-
imports.wbg.__wbg_invaliddatacontracterror_new = function (arg0) {
|
|
14139
|
-
const ret = InvalidDataContractError.__wrap(arg0);
|
|
14140
|
-
return addHeapObject(ret);
|
|
14141
|
-
};
|
|
14142
|
-
imports.wbg.__wbindgen_is_function = function (arg0) {
|
|
14143
|
-
const ret = typeof getObject(arg0) === 'function';
|
|
14144
|
-
return ret;
|
|
14145
|
-
};
|
|
14146
|
-
imports.wbg.__wbindgen_boolean_get = function (arg0) {
|
|
14147
|
-
const v = getObject(arg0);
|
|
14148
|
-
const ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
|
|
14149
|
-
return ret;
|
|
14150
|
-
};
|
|
14151
|
-
imports.wbg.__wbindgen_is_bigint = function (arg0) {
|
|
14152
|
-
const ret = typeof getObject(arg0) === 'bigint';
|
|
14153
|
-
return ret;
|
|
14154
|
-
};
|
|
14155
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function (arg0) {
|
|
14156
|
-
const ret = arg0;
|
|
13999
|
+
imports.wbg.__wbg_identitypublickeywithwitness_new = function (arg0) {
|
|
14000
|
+
const ret = IdentityPublicKeyWithWitness.__wrap(arg0);
|
|
14157
14001
|
return addHeapObject(ret);
|
|
14158
14002
|
};
|
|
14159
|
-
imports.wbg.
|
|
14160
|
-
const ret = getObject(arg0)
|
|
14161
|
-
return ret;
|
|
14162
|
-
};
|
|
14163
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
|
|
14164
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
14003
|
+
imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
|
|
14004
|
+
const ret = getObject(arg0);
|
|
14165
14005
|
return addHeapObject(ret);
|
|
14166
14006
|
};
|
|
14167
|
-
imports.wbg.
|
|
14168
|
-
const ret =
|
|
14007
|
+
imports.wbg.__wbg_document_new = function (arg0) {
|
|
14008
|
+
const ret = Document.__wrap(arg0);
|
|
14169
14009
|
return addHeapObject(ret);
|
|
14170
14010
|
};
|
|
14171
|
-
imports.wbg.
|
|
14011
|
+
imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
|
|
14172
14012
|
const obj = getObject(arg1);
|
|
14173
|
-
const ret = typeof obj === '
|
|
14174
|
-
|
|
14175
|
-
|
|
14013
|
+
const ret = typeof obj === 'string' ? obj : undefined;
|
|
14014
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
14015
|
+
var len1 = WASM_VECTOR_LEN;
|
|
14016
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
14017
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
14176
14018
|
};
|
|
14177
|
-
imports.wbg.
|
|
14178
|
-
|
|
14179
|
-
return ret;
|
|
14019
|
+
imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
|
|
14020
|
+
takeObject(arg0);
|
|
14180
14021
|
};
|
|
14181
|
-
imports.wbg.
|
|
14182
|
-
const ret =
|
|
14022
|
+
imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
|
|
14023
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
14183
14024
|
return addHeapObject(ret);
|
|
14184
14025
|
};
|
|
14185
|
-
imports.wbg.
|
|
14186
|
-
const ret =
|
|
14026
|
+
imports.wbg.__wbg_buffer_3e6c1b584d38f83f = function (arg0) {
|
|
14027
|
+
const ret = getObject(arg0).buffer;
|
|
14187
14028
|
return addHeapObject(ret);
|
|
14188
14029
|
};
|
|
14189
|
-
imports.wbg.
|
|
14190
|
-
const ret = getObject(arg0)
|
|
14030
|
+
imports.wbg.__wbg_byteOffset_6d774a7bd04169e1 = function (arg0) {
|
|
14031
|
+
const ret = getObject(arg0).byteOffset;
|
|
14191
14032
|
return ret;
|
|
14192
14033
|
};
|
|
14193
|
-
imports.wbg.
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
return ret;
|
|
14197
|
-
}, arguments);
|
|
14198
|
-
};
|
|
14199
|
-
imports.wbg.__wbg_privateKeyToPublicKey_272b69d2db6b75e5 = function () {
|
|
14200
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
14201
|
-
const ret = getObject(arg0).privateKeyToPublicKey(getArrayU8FromWasm0(arg1, arg2));
|
|
14202
|
-
return addHeapObject(ret);
|
|
14203
|
-
}, arguments);
|
|
14204
|
-
};
|
|
14205
|
-
imports.wbg.__wbg_sign_8da258255e11e5b2 = function () {
|
|
14206
|
-
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
14207
|
-
const ret = getObject(arg0).sign(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
|
|
14208
|
-
return addHeapObject(ret);
|
|
14209
|
-
}, arguments);
|
|
14210
|
-
};
|
|
14211
|
-
imports.wbg.__wbg_generate_d4cd60d7ea120757 = function () {
|
|
14212
|
-
return handleError(function (arg0) {
|
|
14213
|
-
const ret = getObject(arg0).generate();
|
|
14214
|
-
return addHeapObject(ret);
|
|
14215
|
-
}, arguments);
|
|
14216
|
-
};
|
|
14217
|
-
imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
|
|
14218
|
-
const ret = getObject(arg0);
|
|
14219
|
-
return addHeapObject(ret);
|
|
14034
|
+
imports.wbg.__wbg_length_106de7c8ecc31928 = function (arg0) {
|
|
14035
|
+
const ret = getObject(arg0).length;
|
|
14036
|
+
return ret;
|
|
14220
14037
|
};
|
|
14221
|
-
imports.wbg.
|
|
14222
|
-
const ret =
|
|
14038
|
+
imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
|
|
14039
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
14223
14040
|
return addHeapObject(ret);
|
|
14224
14041
|
};
|
|
14225
14042
|
imports.wbg.__wbg_datacontractcreatetransition_new = function (arg0) {
|
|
@@ -14230,42 +14047,55 @@ function __wbg_get_imports() {
|
|
|
14230
14047
|
const ret = DataContract.__wrap(arg0);
|
|
14231
14048
|
return addHeapObject(ret);
|
|
14232
14049
|
};
|
|
14233
|
-
imports.wbg.
|
|
14234
|
-
const ret =
|
|
14050
|
+
imports.wbg.__wbg_datacontractgenericerror_new = function (arg0) {
|
|
14051
|
+
const ret = DataContractGenericError.__wrap(arg0);
|
|
14235
14052
|
return addHeapObject(ret);
|
|
14236
14053
|
};
|
|
14237
|
-
imports.wbg.
|
|
14238
|
-
const ret =
|
|
14054
|
+
imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function (arg0) {
|
|
14055
|
+
const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
|
|
14239
14056
|
return addHeapObject(ret);
|
|
14240
14057
|
};
|
|
14241
|
-
imports.wbg.
|
|
14242
|
-
|
|
14058
|
+
imports.wbg.__wbg_from_0a0cdbf8c6adc0bf = function (arg0, arg1) {
|
|
14059
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
14060
|
+
wasm.__wbindgen_free(arg0, arg1 * 1);
|
|
14061
|
+
const ret = Buffer.from(v0);
|
|
14243
14062
|
return addHeapObject(ret);
|
|
14244
14063
|
};
|
|
14245
|
-
imports.wbg.
|
|
14246
|
-
const ret =
|
|
14247
|
-
return
|
|
14064
|
+
imports.wbg.__wbindgen_is_function = function (arg0) {
|
|
14065
|
+
const ret = typeof getObject(arg0) === 'function';
|
|
14066
|
+
return ret;
|
|
14248
14067
|
};
|
|
14249
|
-
imports.wbg.
|
|
14250
|
-
const ret =
|
|
14251
|
-
return
|
|
14068
|
+
imports.wbg.__wbindgen_is_string = function (arg0) {
|
|
14069
|
+
const ret = typeof getObject(arg0) === 'string';
|
|
14070
|
+
return ret;
|
|
14252
14071
|
};
|
|
14253
|
-
imports.wbg.
|
|
14254
|
-
const ret =
|
|
14255
|
-
|
|
14072
|
+
imports.wbg.__wbg_toBuffer_d5357d578af71aa4 = function (arg0, arg1) {
|
|
14073
|
+
const ret = getObject(arg1).toBuffer();
|
|
14074
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
14075
|
+
const len1 = WASM_VECTOR_LEN;
|
|
14076
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
14077
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
14256
14078
|
};
|
|
14257
|
-
imports.wbg.
|
|
14258
|
-
const ret =
|
|
14259
|
-
return
|
|
14079
|
+
imports.wbg.__wbindgen_is_undefined = function (arg0) {
|
|
14080
|
+
const ret = getObject(arg0) === undefined;
|
|
14081
|
+
return ret;
|
|
14260
14082
|
};
|
|
14261
|
-
imports.wbg.
|
|
14262
|
-
const ret =
|
|
14083
|
+
imports.wbg.__wbindgen_is_null = function (arg0) {
|
|
14084
|
+
const ret = getObject(arg0) === null;
|
|
14263
14085
|
return ret;
|
|
14264
14086
|
};
|
|
14087
|
+
imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
|
|
14088
|
+
const ret = DataContractUpdateTransition.__wrap(arg0);
|
|
14089
|
+
return addHeapObject(ret);
|
|
14090
|
+
};
|
|
14265
14091
|
imports.wbg.__wbg_documentalreadyexistserror_new = function (arg0) {
|
|
14266
14092
|
const ret = DocumentAlreadyExistsError.__wrap(arg0);
|
|
14267
14093
|
return addHeapObject(ret);
|
|
14268
14094
|
};
|
|
14095
|
+
imports.wbg.__wbg_documentnorevisionerror_new = function (arg0) {
|
|
14096
|
+
const ret = DocumentNoRevisionError.__wrap(arg0);
|
|
14097
|
+
return addHeapObject(ret);
|
|
14098
|
+
};
|
|
14269
14099
|
imports.wbg.__wbg_documentnotprovidederror_new = function (arg0) {
|
|
14270
14100
|
const ret = DocumentNotProvidedError.__wrap(arg0);
|
|
14271
14101
|
return addHeapObject(ret);
|
|
@@ -14274,64 +14104,44 @@ function __wbg_get_imports() {
|
|
|
14274
14104
|
const ret = InvalidActionError.__wrap(arg0);
|
|
14275
14105
|
return addHeapObject(ret);
|
|
14276
14106
|
};
|
|
14277
|
-
imports.wbg.
|
|
14278
|
-
const ret =
|
|
14279
|
-
return addHeapObject(ret);
|
|
14280
|
-
};
|
|
14281
|
-
imports.wbg.__wbg_invalidinitialrevisionerror_new = function (arg0) {
|
|
14282
|
-
const ret = InvalidInitialRevisionError.__wrap(arg0);
|
|
14107
|
+
imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
|
|
14108
|
+
const ret = InvalidActionNameError.__wrap(arg0);
|
|
14283
14109
|
return addHeapObject(ret);
|
|
14284
14110
|
};
|
|
14285
|
-
imports.wbg.
|
|
14286
|
-
const ret =
|
|
14111
|
+
imports.wbg.__wbg_invaliddocumentactionerror_new = function (arg0) {
|
|
14112
|
+
const ret = InvalidDocumentActionError.__wrap(arg0);
|
|
14287
14113
|
return addHeapObject(ret);
|
|
14288
14114
|
};
|
|
14289
|
-
imports.wbg.
|
|
14290
|
-
const ret =
|
|
14115
|
+
imports.wbg.__wbg_invaliddocumenterror_new = function (arg0) {
|
|
14116
|
+
const ret = InvalidDocumentError.__wrap(arg0);
|
|
14291
14117
|
return addHeapObject(ret);
|
|
14292
14118
|
};
|
|
14293
|
-
imports.wbg.
|
|
14294
|
-
const ret =
|
|
14119
|
+
imports.wbg.__wbg_invalidinitialrevisionerror_new = function (arg0) {
|
|
14120
|
+
const ret = InvalidInitialRevisionError.__wrap(arg0);
|
|
14295
14121
|
return addHeapObject(ret);
|
|
14296
14122
|
};
|
|
14297
14123
|
imports.wbg.__wbg_mismatchowneridserror_new = function (arg0) {
|
|
14298
14124
|
const ret = MismatchOwnerIdsError.__wrap(arg0);
|
|
14299
14125
|
return addHeapObject(ret);
|
|
14300
14126
|
};
|
|
14301
|
-
imports.wbg.__wbg_documentnorevisionerror_new = function (arg0) {
|
|
14302
|
-
const ret = DocumentNoRevisionError.__wrap(arg0);
|
|
14303
|
-
return addHeapObject(ret);
|
|
14304
|
-
};
|
|
14305
14127
|
imports.wbg.__wbg_nodocumentssuppliederror_new = function (arg0) {
|
|
14306
14128
|
const ret = NoDocumentsSuppliedError.__wrap(arg0);
|
|
14307
14129
|
return addHeapObject(ret);
|
|
14308
14130
|
};
|
|
14309
|
-
imports.wbg.
|
|
14310
|
-
const ret =
|
|
14311
|
-
return addHeapObject(ret);
|
|
14312
|
-
};
|
|
14313
|
-
imports.wbg.__wbg_document_new = function (arg0) {
|
|
14314
|
-
const ret = Document.__wrap(arg0);
|
|
14131
|
+
imports.wbg.__wbg_revisionabsenterror_new = function (arg0) {
|
|
14132
|
+
const ret = RevisionAbsentError.__wrap(arg0);
|
|
14315
14133
|
return addHeapObject(ret);
|
|
14316
14134
|
};
|
|
14317
|
-
imports.wbg.
|
|
14318
|
-
const ret =
|
|
14135
|
+
imports.wbg.__wbg_tryingtodeleteimmutabledocumenterror_new = function (arg0) {
|
|
14136
|
+
const ret = TryingToDeleteImmutableDocumentError.__wrap(arg0);
|
|
14319
14137
|
return addHeapObject(ret);
|
|
14320
14138
|
};
|
|
14321
|
-
imports.wbg.
|
|
14322
|
-
const ret =
|
|
14323
|
-
return ret;
|
|
14324
|
-
};
|
|
14325
|
-
imports.wbg.__wbg_length_6e31636b1a612544 = function (arg0) {
|
|
14326
|
-
const ret = getObject(arg0).length;
|
|
14327
|
-
return ret;
|
|
14328
|
-
};
|
|
14329
|
-
imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
|
|
14330
|
-
const ret = BalanceIsNotEnoughError.__wrap(arg0);
|
|
14139
|
+
imports.wbg.__wbg_tryingtoreplaceimmutabledocumenterror_new = function (arg0) {
|
|
14140
|
+
const ret = TryingToReplaceImmutableDocumentError.__wrap(arg0);
|
|
14331
14141
|
return addHeapObject(ret);
|
|
14332
14142
|
};
|
|
14333
|
-
imports.wbg.
|
|
14334
|
-
const ret =
|
|
14143
|
+
imports.wbg.__wbg_documenttransition_new = function (arg0) {
|
|
14144
|
+
const ret = DocumentTransition.__wrap(arg0);
|
|
14335
14145
|
return addHeapObject(ret);
|
|
14336
14146
|
};
|
|
14337
14147
|
imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
|
|
@@ -14630,6 +14440,10 @@ function __wbg_get_imports() {
|
|
|
14630
14440
|
const ret = WrongPublicKeyPurposeError.__wrap(arg0);
|
|
14631
14441
|
return addHeapObject(ret);
|
|
14632
14442
|
};
|
|
14443
|
+
imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
|
|
14444
|
+
const ret = BalanceIsNotEnoughError.__wrap(arg0);
|
|
14445
|
+
return addHeapObject(ret);
|
|
14446
|
+
};
|
|
14633
14447
|
imports.wbg.__wbg_basicblserror_new = function (arg0) {
|
|
14634
14448
|
const ret = BasicBLSError.__wrap(arg0);
|
|
14635
14449
|
return addHeapObject(ret);
|
|
@@ -14714,10 +14528,6 @@ function __wbg_get_imports() {
|
|
|
14714
14528
|
const ret = IdentityAlreadyExistsError.__wrap(arg0);
|
|
14715
14529
|
return addHeapObject(ret);
|
|
14716
14530
|
};
|
|
14717
|
-
imports.wbg.__wbg_identitypublickeydisabledatwindowviolationerror_new = function (arg0) {
|
|
14718
|
-
const ret = IdentityPublicKeyDisabledAtWindowViolationError.__wrap(arg0);
|
|
14719
|
-
return addHeapObject(ret);
|
|
14720
|
-
};
|
|
14721
14531
|
imports.wbg.__wbg_identitypublickeyisdisablederror_new = function (arg0) {
|
|
14722
14532
|
const ret = IdentityPublicKeyIsDisabledError.__wrap(arg0);
|
|
14723
14533
|
return addHeapObject(ret);
|
|
@@ -14750,6 +14560,34 @@ function __wbg_get_imports() {
|
|
|
14750
14560
|
const ret = ValueError.__wrap(arg0);
|
|
14751
14561
|
return addHeapObject(ret);
|
|
14752
14562
|
};
|
|
14563
|
+
imports.wbg.__wbg_datacontractnotpresentnotconsensuserror_new = function (arg0) {
|
|
14564
|
+
const ret = DataContractNotPresentNotConsensusError.__wrap(arg0);
|
|
14565
|
+
return addHeapObject(ret);
|
|
14566
|
+
};
|
|
14567
|
+
imports.wbg.__wbg_platformvalueerror_new = function (arg0) {
|
|
14568
|
+
const ret = PlatformValueError.__wrap(arg0);
|
|
14569
|
+
return addHeapObject(ret);
|
|
14570
|
+
};
|
|
14571
|
+
imports.wbg.__wbg_identitypublickey_new = function (arg0) {
|
|
14572
|
+
const ret = IdentityPublicKey.__wrap(arg0);
|
|
14573
|
+
return addHeapObject(ret);
|
|
14574
|
+
};
|
|
14575
|
+
imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
|
|
14576
|
+
const ret = InvalidIdentityError.__wrap(arg0);
|
|
14577
|
+
return addHeapObject(ret);
|
|
14578
|
+
};
|
|
14579
|
+
imports.wbg.__wbg_unknownassetlockprooftypeerror_new = function (arg0) {
|
|
14580
|
+
const ret = UnknownAssetLockProofTypeError.__wrap(arg0);
|
|
14581
|
+
return addHeapObject(ret);
|
|
14582
|
+
};
|
|
14583
|
+
imports.wbg.__wbg_chainassetlockproof_new = function (arg0) {
|
|
14584
|
+
const ret = ChainAssetLockProof.__wrap(arg0);
|
|
14585
|
+
return addHeapObject(ret);
|
|
14586
|
+
};
|
|
14587
|
+
imports.wbg.__wbg_instantassetlockproof_new = function (arg0) {
|
|
14588
|
+
const ret = InstantAssetLockProof.__wrap(arg0);
|
|
14589
|
+
return addHeapObject(ret);
|
|
14590
|
+
};
|
|
14753
14591
|
imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
|
|
14754
14592
|
const ret = IdentityCreateTransition.__wrap(arg0);
|
|
14755
14593
|
return addHeapObject(ret);
|
|
@@ -14762,6 +14600,15 @@ function __wbg_get_imports() {
|
|
|
14762
14600
|
const ret = IdentityCreditWithdrawalTransition.__wrap(arg0);
|
|
14763
14601
|
return addHeapObject(ret);
|
|
14764
14602
|
};
|
|
14603
|
+
imports.wbg.__wbindgen_is_object = function (arg0) {
|
|
14604
|
+
const val = getObject(arg0);
|
|
14605
|
+
const ret = typeof val === 'object' && val !== null;
|
|
14606
|
+
return ret;
|
|
14607
|
+
};
|
|
14608
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
|
|
14609
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
14610
|
+
return addHeapObject(ret);
|
|
14611
|
+
};
|
|
14765
14612
|
imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
|
|
14766
14613
|
const ret = IdentityTopUpTransition.__wrap(arg0);
|
|
14767
14614
|
return addHeapObject(ret);
|
|
@@ -14774,6 +14621,64 @@ function __wbg_get_imports() {
|
|
|
14774
14621
|
const ret = InvalidStateTransitionError.__wrap(arg0);
|
|
14775
14622
|
return addHeapObject(ret);
|
|
14776
14623
|
};
|
|
14624
|
+
imports.wbg.__wbindgen_number_get = function (arg0, arg1) {
|
|
14625
|
+
const obj = getObject(arg1);
|
|
14626
|
+
const ret = typeof obj === 'number' ? obj : undefined;
|
|
14627
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
14628
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
14629
|
+
};
|
|
14630
|
+
imports.wbg.__wbindgen_is_falsy = function (arg0) {
|
|
14631
|
+
const ret = !getObject(arg0);
|
|
14632
|
+
return ret;
|
|
14633
|
+
};
|
|
14634
|
+
imports.wbg.__wbindgen_boolean_get = function (arg0) {
|
|
14635
|
+
const v = getObject(arg0);
|
|
14636
|
+
const ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
|
|
14637
|
+
return ret;
|
|
14638
|
+
};
|
|
14639
|
+
imports.wbg.__wbindgen_is_bigint = function (arg0) {
|
|
14640
|
+
const ret = typeof getObject(arg0) === 'bigint';
|
|
14641
|
+
return ret;
|
|
14642
|
+
};
|
|
14643
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function (arg0) {
|
|
14644
|
+
const ret = arg0;
|
|
14645
|
+
return addHeapObject(ret);
|
|
14646
|
+
};
|
|
14647
|
+
imports.wbg.__wbindgen_jsval_eq = function (arg0, arg1) {
|
|
14648
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
14649
|
+
return ret;
|
|
14650
|
+
};
|
|
14651
|
+
imports.wbg.__wbindgen_in = function (arg0, arg1) {
|
|
14652
|
+
const ret = (getObject(arg0) in getObject(arg1));
|
|
14653
|
+
return ret;
|
|
14654
|
+
};
|
|
14655
|
+
imports.wbg.__wbg_verifySignature_cd6ff8c4c6ce0889 = function () {
|
|
14656
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
14657
|
+
const ret = getObject(arg0).verifySignature(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
|
|
14658
|
+
return ret;
|
|
14659
|
+
}, arguments);
|
|
14660
|
+
};
|
|
14661
|
+
imports.wbg.__wbg_privateKeyToPublicKey_90aaab5adfd51946 = function () {
|
|
14662
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
14663
|
+
const ret = getObject(arg0).privateKeyToPublicKey(getArrayU8FromWasm0(arg1, arg2));
|
|
14664
|
+
return addHeapObject(ret);
|
|
14665
|
+
}, arguments);
|
|
14666
|
+
};
|
|
14667
|
+
imports.wbg.__wbg_sign_435fd61fe207fc10 = function () {
|
|
14668
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
14669
|
+
const ret = getObject(arg0).sign(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
|
|
14670
|
+
return addHeapObject(ret);
|
|
14671
|
+
}, arguments);
|
|
14672
|
+
};
|
|
14673
|
+
imports.wbg.__wbg_generate_6b203bcab8a62a6e = function () {
|
|
14674
|
+
return handleError(function (arg0) {
|
|
14675
|
+
const ret = getObject(arg0).generate();
|
|
14676
|
+
return addHeapObject(ret);
|
|
14677
|
+
}, arguments);
|
|
14678
|
+
};
|
|
14679
|
+
imports.wbg.__wbg_set_e8c51d85105478aa = function (arg0, arg1, arg2, arg3) {
|
|
14680
|
+
(0, _lodash.set)(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
14681
|
+
};
|
|
14777
14682
|
imports.wbg.__wbindgen_cb_drop = function (arg0) {
|
|
14778
14683
|
const obj = takeObject(arg0).original;
|
|
14779
14684
|
if (obj.cnt-- == 1) {
|
|
@@ -15026,10 +14931,6 @@ function __wbg_get_imports() {
|
|
|
15026
14931
|
const ret = new Date();
|
|
15027
14932
|
return addHeapObject(ret);
|
|
15028
14933
|
};
|
|
15029
|
-
imports.wbg.__wbg_now_c857fb0367c762cc = function () {
|
|
15030
|
-
const ret = Date.now();
|
|
15031
|
-
return ret;
|
|
15032
|
-
};
|
|
15033
14934
|
imports.wbg.__wbg_setTime_2d1dc9ec65d52540 = function (arg0, arg1) {
|
|
15034
14935
|
const ret = getObject(arg0).setTime(arg1);
|
|
15035
14936
|
return ret;
|
|
@@ -15060,7 +14961,7 @@ function __wbg_get_imports() {
|
|
|
15060
14961
|
const a = state0.a;
|
|
15061
14962
|
state0.a = 0;
|
|
15062
14963
|
try {
|
|
15063
|
-
return
|
|
14964
|
+
return __wbg_adapter_1295(a, state0.b, arg0, arg1);
|
|
15064
14965
|
} finally {
|
|
15065
14966
|
state0.a = a;
|
|
15066
14967
|
}
|
|
@@ -15166,8 +15067,8 @@ function __wbg_get_imports() {
|
|
|
15166
15067
|
const ret = wasm.memory;
|
|
15167
15068
|
return addHeapObject(ret);
|
|
15168
15069
|
};
|
|
15169
|
-
imports.wbg.
|
|
15170
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
15070
|
+
imports.wbg.__wbindgen_closure_wrapper2729 = function (arg0, arg1, arg2) {
|
|
15071
|
+
const ret = makeMutClosure(arg0, arg1, 459, __wbg_adapter_56);
|
|
15171
15072
|
return addHeapObject(ret);
|
|
15172
15073
|
};
|
|
15173
15074
|
return imports;
|