@dashevo/wasm-dpp 0.25.0-dev.13 → 0.25.0-dev.15
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/README.md +11 -6
- package/dist/wasm/wasm_dpp.d.ts +107 -91
- package/dist/wasm/wasm_dpp.js +1188 -1178
- package/dist/wasm/wasm_dpp_bg.js +1 -1
- package/lib/wasm/wasm_dpp.d.ts +107 -91
- package/package.json +3 -3
- package/scripts/build-wasm.sh +10 -3
- package/src/document/document_facade.rs +12 -0
- package/src/document/factory.rs +17 -0
- package/src/errors/consensus/basic/data_contract/data_contract_have_new_unique_index_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/data_contract_immutable_properties_update_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/data_contract_invalid_index_definition_update_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/data_contract_max_depth_exceed_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/data_contract_unique_indices_changed_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/duplicate_index_name_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/incompatible_data_contract_schema_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/incompatible_re2_pattern_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/index_error/duplicate_index_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/index_error/invalid_compound_index_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/index_error/invalid_index_property_type_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/index_error/invalid_indexed_property_constraint_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/index_error/system_property_index_already_present_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/index_error/undefined_index_property_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/index_error/unique_indices_limit_reached_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/invalid_data_contract_id_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/invalid_data_contract_version_error.rs +1 -0
- package/src/errors/consensus/basic/data_contract/invalid_json_schema_ref_error.rs +1 -0
- package/src/errors/consensus/basic/decode/protocol_version_parsing_error.rs +1 -0
- package/src/errors/consensus/basic/decode/serialized_object_parsing_error.rs +1 -0
- package/src/errors/consensus/basic/document/data_contract_not_present_error.rs +1 -0
- package/src/errors/consensus/basic/document/duplicate_document_transitions_with_ids_error.rs +1 -0
- package/src/errors/consensus/basic/document/duplicate_document_transitions_with_indices_error.rs +1 -0
- package/src/errors/consensus/basic/document/inconsistent_compound_index_data_error.rs +1 -0
- package/src/errors/consensus/basic/document/invalid_document_transition_action_error.rs +1 -0
- package/src/errors/consensus/basic/document/invalid_document_transition_id_error.rs +1 -0
- package/src/errors/consensus/basic/document/invalid_document_type_error.rs +1 -0
- package/src/errors/consensus/basic/document/missing_data_contract_id_error.rs +1 -0
- package/src/errors/consensus/basic/document/missing_document_transition_action_error.rs +1 -0
- package/src/errors/consensus/basic/document/missing_document_transition_type_error.rs +1 -0
- package/src/errors/consensus/basic/document/missing_document_type_error.rs +1 -0
- package/src/errors/consensus/basic/identity/duplicated_identity_public_key_error.rs +1 -0
- package/src/errors/consensus/basic/identity/duplicated_identity_public_key_id_error.rs +1 -0
- package/src/errors/consensus/basic/identity/identity_asset_lock_proof_locked_transaction_mismatch_error.rs +1 -0
- package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_is_not_found_error.rs +1 -0
- package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_out_point_already_exists_error.rs +1 -0
- package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_output_not_found_error.rs +1 -0
- package/src/errors/consensus/basic/identity/identity_insufficient_balance_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_asset_lock_proof_core_chain_height_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_asset_lock_proof_transaction_height_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_asset_lock_transaction_output_return_size_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_asset_lock_transaction_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_asset_lock_transaction_output_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_core_fee_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_output_script_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_pooling_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_key_signature_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_public_key_data_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_public_key_security_level_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_identity_public_key_type_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_instant_asset_lock_proof_error.rs +1 -0
- package/src/errors/consensus/basic/identity/invalid_instant_asset_lock_proof_signature_error.rs +1 -0
- package/src/errors/consensus/basic/identity/missing_master_public_key_error.rs +1 -0
- package/src/errors/consensus/basic/identity/missing_public_key_error.rs +1 -0
- package/src/errors/consensus/basic/incompatible_protocol_version_error.rs +1 -0
- package/src/errors/consensus/basic/invalid_identifier_error.rs +1 -0
- package/src/errors/consensus/basic/invalid_signature_public_key_security_level_error.rs +1 -0
- package/src/errors/consensus/basic/invalid_state_transition_signature_error.rs +1 -0
- package/src/errors/consensus/basic/json_schema_compilation_error.rs +1 -0
- package/src/errors/consensus/basic/json_schema_error.rs +2 -2
- package/src/errors/consensus/basic/public_key_is_disabled_error.rs +1 -0
- package/src/errors/consensus/basic/public_key_security_level_not_met_error.rs +2 -2
- package/src/errors/consensus/basic/state_transition/invalid_state_transition_type_error.rs +1 -0
- package/src/errors/consensus/basic/state_transition/missing_state_transition_type_error.rs +1 -0
- package/src/errors/consensus/basic/state_transition/state_transition_max_size_exceeded_error.rs +1 -0
- package/src/errors/consensus/basic/unsupported_protocol_version_error.rs +1 -0
- package/src/errors/consensus/basic/wrong_public_key_purpose_error.rs +1 -0
- package/src/errors/consensus/deserialize.rs +1 -0
- package/src/errors/consensus/fee/balance_is_not_enough_error.rs +1 -0
- package/src/errors/consensus/signature/basic_bls_error.rs +1 -0
- package/src/errors/consensus/signature/basic_ecdsa_error.rs +1 -0
- package/src/errors/consensus/signature/identity_not_found_error.rs +1 -0
- package/src/errors/consensus/signature/signature_should_not_be_present_error.rs +1 -0
- package/src/errors/consensus/state/data_contract/data_contract_already_present_error.rs +1 -0
- package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_condition_error.rs +1 -0
- package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_execution_error.rs +1 -0
- package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_invalid_result_error.rs +1 -0
- package/src/errors/consensus/state/document/document_already_present_error.rs +1 -0
- package/src/errors/consensus/state/document/document_not_found_error.rs +1 -0
- package/src/errors/consensus/state/document/document_owner_id_mismatch_error.rs +1 -0
- package/src/errors/consensus/state/document/document_timestamp_window_violation_error.rs +1 -0
- package/src/errors/consensus/state/document/document_timestamps_are_equal_error.rs +1 -0
- package/src/errors/consensus/state/document/document_timestamps_mismatch_error.rs +1 -0
- package/src/errors/consensus/state/document/duplicate_unique_index_error.rs +1 -0
- package/src/errors/consensus/state/document/invalid_document_revision_error.rs +1 -0
- package/src/errors/consensus/state/identity/duplicated_identity_public_key_id_state_error.rs +1 -0
- package/src/errors/consensus/state/identity/duplicated_identity_public_key_state_error.rs +1 -0
- package/src/errors/consensus/state/identity/identity_already_exists_error.rs +1 -0
- package/src/errors/consensus/state/identity/identity_public_key_disabled_at_window_violation_error.rs +1 -0
- package/src/errors/consensus/state/identity/identity_public_key_is_disabled_error.rs +1 -0
- package/src/errors/consensus/state/identity/identity_public_key_is_read_only_error.rs +1 -0
- package/src/errors/consensus/state/identity/invalid_identity_public_key_id_error.rs +1 -0
- package/src/errors/consensus/state/identity/invalid_identity_revision_error.rs +1 -0
- package/src/errors/consensus/state/identity/max_identity_public_key_limit_reached_error.rs +1 -0
- package/src/errors/consensus/value_error.rs +1 -0
- package/src/state_transition/errors/invalid_state_transition_error.rs +2 -4
- package/src/utils.rs +2 -1
- package/src/validation/validation_result.rs +1 -0
package/Cargo.toml
CHANGED
|
@@ -10,7 +10,7 @@ crate-type = ["cdylib"]
|
|
|
10
10
|
[dependencies]
|
|
11
11
|
serde = { version = "1.0.152", features = ["derive"] }
|
|
12
12
|
serde_json = { version = "1.0", features = ["preserve_order"] }
|
|
13
|
-
wasm-bindgen = { version = "
|
|
13
|
+
wasm-bindgen = { version = "0.2.85" }
|
|
14
14
|
js-sys = "0.3.53"
|
|
15
15
|
web-sys = { version = "0.3.6", features = ["console"] }
|
|
16
16
|
thiserror = { version = "1.0" }
|
package/README.md
CHANGED
|
@@ -14,32 +14,37 @@ The WASM JavaScript binding of the Rust implementation of the [Dash Platform Pro
|
|
|
14
14
|
In order for this binding to work, you have to have a rs-platform cloned
|
|
15
15
|
alongside platform repo, so you can have access to the rust dpp.
|
|
16
16
|
|
|
17
|
-
## IMPORTANT
|
|
17
|
+
## IMPORTANT
|
|
18
18
|
|
|
19
19
|
### Build on a Mac
|
|
20
|
+
|
|
20
21
|
Built-in `llvm` on OSX does not work, it needs to be installed from brew:
|
|
22
|
+
|
|
21
23
|
- `brew install llvm`
|
|
22
24
|
- LLVM installed from brew is keg only, and path to it must be provided in the profile file, e.g.`echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc`
|
|
23
25
|
|
|
24
26
|
### Class names minification
|
|
27
|
+
|
|
25
28
|
Library consumers must ignore class names minification for `@dashevo/wasm-dpp` library in their bundlers.
|
|
26
29
|
|
|
27
30
|
## Table of Contents
|
|
28
|
-
|
|
31
|
+
|
|
32
|
+
- [Prerequisites](#prerequisites)
|
|
29
33
|
- [Build](#build)
|
|
30
34
|
- [Usage](#usage)
|
|
31
35
|
- [Contributing](#contributing)
|
|
32
36
|
- [License](#license)
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
38
|
## Prerequisites
|
|
39
|
+
|
|
37
40
|
- Install [Rust](https://www.rust-lang.org/tools/install) v1.67+
|
|
38
41
|
- Add wasm32 target: `$ rustup target add wasm32-unknown-unknown`
|
|
39
|
-
- Install wasm-bingen-cli: `cargo install wasm-bindgen-cli`
|
|
40
|
-
-
|
|
42
|
+
- Install wasm-bingen-cli: `cargo install wasm-bindgen-cli@0.2.85`
|
|
43
|
+
- *double-check that wasm-bindgen-cli version above matches wasm-bindgen version in Cargo.lock file*
|
|
44
|
+
- *Depending on system, additional packages may need to be installed as a prerequisite for wasm-bindgen-cli. If anything is missing, installation will error and prompt what packages are missing (i.e. clang, llvm, libssl-dev)*
|
|
41
45
|
|
|
42
46
|
## Build
|
|
47
|
+
|
|
43
48
|
`$ yarn build`
|
|
44
49
|
|
|
45
50
|
## TODO
|
package/dist/wasm/wasm_dpp.d.ts
CHANGED
|
@@ -110,12 +110,6 @@ export function calculateStateTransitionFee(state_transition_js: any, execution_
|
|
|
110
110
|
*/
|
|
111
111
|
export function getLatestProtocolVersion(): number;
|
|
112
112
|
/**
|
|
113
|
-
* @param {any} state_repository
|
|
114
|
-
* @param {any} js_raw_document
|
|
115
|
-
* @returns {Promise<ValidationResult>}
|
|
116
|
-
*/
|
|
117
|
-
export function fetchAndValidateDataContract(state_repository: any, js_raw_document: any): Promise<ValidationResult>;
|
|
118
|
-
/**
|
|
119
113
|
* @param {any} contract_id
|
|
120
114
|
* @param {any} owner_id
|
|
121
115
|
* @param {string} document_type
|
|
@@ -167,6 +161,12 @@ export function applyIdentityTopUpTransition(state_repository: any, state_transi
|
|
|
167
161
|
*/
|
|
168
162
|
export function applyIdentityUpdateTransition(state_repository: any, state_transition: IdentityUpdateTransition, execution_context: StateTransitionExecutionContext): Promise<void>;
|
|
169
163
|
/**
|
|
164
|
+
* @param {any} state_repository
|
|
165
|
+
* @param {any} js_raw_document
|
|
166
|
+
* @returns {Promise<ValidationResult>}
|
|
167
|
+
*/
|
|
168
|
+
export function fetchAndValidateDataContract(state_repository: any, js_raw_document: any): Promise<ValidationResult>;
|
|
169
|
+
/**
|
|
170
170
|
* @param {Array<any>} js_raw_transitions
|
|
171
171
|
* @param {DataContract} data_contract
|
|
172
172
|
* @param {any} owner_id
|
|
@@ -1508,6 +1508,13 @@ export class DocumentFacade {
|
|
|
1508
1508
|
*/
|
|
1509
1509
|
createFromBuffer(bytes: Uint8Array, options?: object): Promise<ExtendedDocument>;
|
|
1510
1510
|
/**
|
|
1511
|
+
* @param {Uint8Array} buffer
|
|
1512
|
+
* @param {string} document_type
|
|
1513
|
+
* @param {DataContract} data_contract
|
|
1514
|
+
* @returns {ExtendedDocument}
|
|
1515
|
+
*/
|
|
1516
|
+
createExtendedDocumentFromDocumentBuffer(buffer: Uint8Array, document_type: string, data_contract: DataContract): ExtendedDocument;
|
|
1517
|
+
/**
|
|
1511
1518
|
* Creates Documents State Transition
|
|
1512
1519
|
* @param {any} documents
|
|
1513
1520
|
* @returns {DocumentsBatchTransition}
|
|
@@ -1562,6 +1569,13 @@ export class DocumentFactory {
|
|
|
1562
1569
|
* @returns {Promise<ExtendedDocument>}
|
|
1563
1570
|
*/
|
|
1564
1571
|
createFromBuffer(buffer: Uint8Array, options: any): Promise<ExtendedDocument>;
|
|
1572
|
+
/**
|
|
1573
|
+
* @param {Uint8Array} buffer
|
|
1574
|
+
* @param {string} document_type
|
|
1575
|
+
* @param {DataContract} data_contract
|
|
1576
|
+
* @returns {ExtendedDocument}
|
|
1577
|
+
*/
|
|
1578
|
+
createExtendedDocumentFromDocumentBuffer(buffer: Uint8Array, document_type: string, data_contract: DataContract): ExtendedDocument;
|
|
1565
1579
|
}
|
|
1566
1580
|
/**
|
|
1567
1581
|
*/
|
|
@@ -5392,9 +5406,6 @@ export interface InitOutput {
|
|
|
5392
5406
|
readonly indexdefinition_getProperties: (a: number, b: number) => void;
|
|
5393
5407
|
readonly indexdefinition_isUnique: (a: number) => number;
|
|
5394
5408
|
readonly indexdefinition_toObject: (a: number, b: number) => void;
|
|
5395
|
-
readonly __wbg_invalidactionnameerror_free: (a: number) => void;
|
|
5396
|
-
readonly invalidactionnameerror_new: (a: number, b: number) => number;
|
|
5397
|
-
readonly invalidactionnameerror_getActions: (a: number, b: number) => void;
|
|
5398
5409
|
readonly __wbg_mismatchowneridserror_free: (a: number) => void;
|
|
5399
5410
|
readonly mismatchowneridserror_new: (a: number, b: number) => number;
|
|
5400
5411
|
readonly mismatchowneridserror_getDocuments: (a: number, b: number) => void;
|
|
@@ -5453,6 +5464,11 @@ export interface InitOutput {
|
|
|
5453
5464
|
readonly serializedobjectparsingerror_getCode: (a: number) => number;
|
|
5454
5465
|
readonly serializedobjectparsingerror_message: (a: number, b: number) => void;
|
|
5455
5466
|
readonly serializedobjectparsingerror_serialize: (a: number, b: number) => void;
|
|
5467
|
+
readonly __wbg_datacontractnotpresenterror_free: (a: number) => void;
|
|
5468
|
+
readonly datacontractnotpresenterror_getDataContractId: (a: number) => number;
|
|
5469
|
+
readonly datacontractnotpresenterror_getCode: (a: number) => number;
|
|
5470
|
+
readonly datacontractnotpresenterror_message: (a: number, b: number) => void;
|
|
5471
|
+
readonly datacontractnotpresenterror_serialize: (a: number, b: number) => void;
|
|
5456
5472
|
readonly __wbg_invaliddocumenttransitionactionerror_free: (a: number) => void;
|
|
5457
5473
|
readonly invaliddocumenttransitionactionerror_getAction: (a: number, b: number) => void;
|
|
5458
5474
|
readonly invaliddocumenttransitionactionerror_getCode: (a: number) => number;
|
|
@@ -5470,7 +5486,6 @@ export interface InitOutput {
|
|
|
5470
5486
|
readonly jsonschemacompilationerror_getCode: (a: number) => number;
|
|
5471
5487
|
readonly jsonschemacompilationerror_message: (a: number, b: number) => void;
|
|
5472
5488
|
readonly jsonschemacompilationerror_serialize: (a: number, b: number) => void;
|
|
5473
|
-
readonly __wbg_documentalreadypresenterror_free: (a: number) => void;
|
|
5474
5489
|
readonly documentalreadypresenterror_getDocumentId: (a: number) => number;
|
|
5475
5490
|
readonly documentalreadypresenterror_getCode: (a: number) => number;
|
|
5476
5491
|
readonly documentalreadypresenterror_message: (a: number, b: number) => void;
|
|
@@ -5479,6 +5494,10 @@ export interface InitOutput {
|
|
|
5479
5494
|
readonly documentnotfounderror_getCode: (a: number) => number;
|
|
5480
5495
|
readonly documentnotfounderror_message: (a: number, b: number) => void;
|
|
5481
5496
|
readonly documentnotfounderror_serialize: (a: number, b: number) => void;
|
|
5497
|
+
readonly documenttimestampsareequalerror_getDocumentId: (a: number) => number;
|
|
5498
|
+
readonly documenttimestampsareequalerror_getCode: (a: number) => number;
|
|
5499
|
+
readonly documenttimestampsareequalerror_message: (a: number, b: number) => void;
|
|
5500
|
+
readonly documenttimestampsareequalerror_serialize: (a: number, b: number) => void;
|
|
5482
5501
|
readonly documenttimestampsmismatcherror_getDocumentId: (a: number) => number;
|
|
5483
5502
|
readonly documenttimestampsmismatcherror_getCode: (a: number) => number;
|
|
5484
5503
|
readonly documenttimestampsmismatcherror_message: (a: number, b: number) => void;
|
|
@@ -5528,9 +5547,6 @@ export interface InitOutput {
|
|
|
5528
5547
|
readonly dummyfeesresult_set_storageFee: (a: number, b: number, c: number) => void;
|
|
5529
5548
|
readonly dummyfeesresult_set_processingFee: (a: number, b: number, c: number) => void;
|
|
5530
5549
|
readonly dummyfeesresult_set_feeRefunds: (a: number, b: number, c: number) => void;
|
|
5531
|
-
readonly __wbg_statetransitionfeevalidator_free: (a: number) => void;
|
|
5532
|
-
readonly statetransitionfeevalidator_new: (a: number) => number;
|
|
5533
|
-
readonly statetransitionfeevalidator_validate: (a: number, b: number, c: number) => number;
|
|
5534
5550
|
readonly __wbg_statetransitionexecutioncontext_free: (a: number) => void;
|
|
5535
5551
|
readonly statetransitionexecutioncontext_new: () => number;
|
|
5536
5552
|
readonly statetransitionexecutioncontext_enableDryRun: (a: number) => void;
|
|
@@ -5542,13 +5558,18 @@ export interface InitOutput {
|
|
|
5542
5558
|
readonly statetransitionexecutioncontext_clearDryOperations: (a: number) => void;
|
|
5543
5559
|
readonly indexproperty_getName: (a: number, b: number) => void;
|
|
5544
5560
|
readonly __wbg_identityassetlocktransactionisnotfounderror_free: (a: number) => void;
|
|
5561
|
+
readonly __wbg_documentalreadypresenterror_free: (a: number) => void;
|
|
5545
5562
|
readonly __wbg_documentnotfounderror_free: (a: number) => void;
|
|
5563
|
+
readonly __wbg_documenttimestampsareequalerror_free: (a: number) => void;
|
|
5546
5564
|
readonly __wbg_documenttimestampsmismatcherror_free: (a: number) => void;
|
|
5547
5565
|
readonly __wbg_identityalreadyexistserror_free: (a: number) => void;
|
|
5548
5566
|
readonly __wbg_serializedobjectparsingerror_free: (a: number) => void;
|
|
5549
5567
|
readonly __wbg_invalididentityassetlocktransactionerror_free: (a: number) => void;
|
|
5550
5568
|
readonly __wbg_jsonschemacompilationerror_free: (a: number) => void;
|
|
5551
5569
|
readonly __wbg_valueerror_free: (a: number) => void;
|
|
5570
|
+
readonly __wbg_invalidactionnameerror_free: (a: number) => void;
|
|
5571
|
+
readonly invalidactionnameerror_new: (a: number, b: number) => number;
|
|
5572
|
+
readonly invalidactionnameerror_getActions: (a: number, b: number) => void;
|
|
5552
5573
|
readonly __wbg_document_free: (a: number) => void;
|
|
5553
5574
|
readonly document_new: (a: number, b: number, c: number, d: number) => void;
|
|
5554
5575
|
readonly document_getId: (a: number) => number;
|
|
@@ -5608,16 +5629,6 @@ export interface InitOutput {
|
|
|
5608
5629
|
readonly missingpublickeyerror_getCode: (a: number) => number;
|
|
5609
5630
|
readonly missingpublickeyerror_message: (a: number, b: number) => void;
|
|
5610
5631
|
readonly missingpublickeyerror_serialize: (a: number, b: number) => void;
|
|
5611
|
-
readonly __wbg_jsonschemaerror_free: (a: number) => void;
|
|
5612
|
-
readonly jsonschemaerror_getKeyword: (a: number, b: number) => void;
|
|
5613
|
-
readonly jsonschemaerror_getInstancePath: (a: number, b: number) => void;
|
|
5614
|
-
readonly jsonschemaerror_getSchemaPath: (a: number, b: number) => void;
|
|
5615
|
-
readonly jsonschemaerror_getPropertyName: (a: number, b: number) => void;
|
|
5616
|
-
readonly jsonschemaerror_getParams: (a: number, b: number) => void;
|
|
5617
|
-
readonly jsonschemaerror_getCode: (a: number) => number;
|
|
5618
|
-
readonly jsonschemaerror_toString: (a: number, b: number) => void;
|
|
5619
|
-
readonly jsonschemaerror_message: (a: number, b: number) => void;
|
|
5620
|
-
readonly jsonschemaerror_serialize: (a: number, b: number) => void;
|
|
5621
5632
|
readonly publickeyisdisablederror_getPublicKeyId: (a: number) => number;
|
|
5622
5633
|
readonly publickeyisdisablederror_getCode: (a: number) => number;
|
|
5623
5634
|
readonly publickeyisdisablederror_message: (a: number, b: number) => void;
|
|
@@ -5661,6 +5672,9 @@ export interface InitOutput {
|
|
|
5661
5672
|
readonly readoperation_storageCost: (a: number, b: number) => void;
|
|
5662
5673
|
readonly readoperation_refunds: (a: number) => number;
|
|
5663
5674
|
readonly readoperation_toJSON: (a: number, b: number) => void;
|
|
5675
|
+
readonly __wbg_statetransitionfeevalidator_free: (a: number) => void;
|
|
5676
|
+
readonly statetransitionfeevalidator_new: (a: number) => number;
|
|
5677
|
+
readonly statetransitionfeevalidator_validate: (a: number, b: number, c: number) => number;
|
|
5664
5678
|
readonly identitycreatetransition_publicKeys: (a: number, b: number) => void;
|
|
5665
5679
|
readonly identitycreatetransition_getAssetLockProof: (a: number) => number;
|
|
5666
5680
|
readonly identitycreatetransition_identityId: (a: number) => number;
|
|
@@ -5690,24 +5704,16 @@ export interface InitOutput {
|
|
|
5690
5704
|
readonly __wbg_invalidinitialrevisionerror_free: (a: number) => void;
|
|
5691
5705
|
readonly invalidinitialrevisionerror_new: (a: number) => number;
|
|
5692
5706
|
readonly invalidinitialrevisionerror_getDocument: (a: number) => number;
|
|
5693
|
-
readonly
|
|
5694
|
-
readonly
|
|
5695
|
-
readonly
|
|
5696
|
-
readonly
|
|
5697
|
-
readonly
|
|
5698
|
-
readonly
|
|
5699
|
-
readonly
|
|
5700
|
-
readonly
|
|
5701
|
-
readonly
|
|
5702
|
-
readonly
|
|
5703
|
-
readonly invalidinstantassetlockprooferror_serialize: (a: number, b: number) => void;
|
|
5704
|
-
readonly __wbg_basicecdsaerror_free: (a: number) => void;
|
|
5705
|
-
readonly basicecdsaerror_getCode: (a: number) => number;
|
|
5706
|
-
readonly basicecdsaerror_message: (a: number, b: number) => void;
|
|
5707
|
-
readonly basicecdsaerror_serialize: (a: number, b: number) => void;
|
|
5708
|
-
readonly signatureshouldnotbepresenterror_getCode: (a: number) => number;
|
|
5709
|
-
readonly signatureshouldnotbepresenterror_message: (a: number, b: number) => void;
|
|
5710
|
-
readonly signatureshouldnotbepresenterror_serialize: (a: number, b: number) => void;
|
|
5707
|
+
readonly __wbg_jsonschemaerror_free: (a: number) => void;
|
|
5708
|
+
readonly jsonschemaerror_getKeyword: (a: number, b: number) => void;
|
|
5709
|
+
readonly jsonschemaerror_getInstancePath: (a: number, b: number) => void;
|
|
5710
|
+
readonly jsonschemaerror_getSchemaPath: (a: number, b: number) => void;
|
|
5711
|
+
readonly jsonschemaerror_getPropertyName: (a: number, b: number) => void;
|
|
5712
|
+
readonly jsonschemaerror_getParams: (a: number, b: number) => void;
|
|
5713
|
+
readonly jsonschemaerror_getCode: (a: number) => number;
|
|
5714
|
+
readonly jsonschemaerror_toString: (a: number, b: number) => void;
|
|
5715
|
+
readonly jsonschemaerror_message: (a: number, b: number) => void;
|
|
5716
|
+
readonly jsonschemaerror_serialize: (a: number, b: number) => void;
|
|
5711
5717
|
readonly __wbg_documenttimestampwindowviolationerror_free: (a: number) => void;
|
|
5712
5718
|
readonly documenttimestampwindowviolationerror_getDocumentId: (a: number) => number;
|
|
5713
5719
|
readonly documenttimestampwindowviolationerror_getTimestampName: (a: number, b: number) => void;
|
|
@@ -5739,8 +5745,6 @@ export interface InitOutput {
|
|
|
5739
5745
|
readonly dashplatformprotocol_protocol_version: (a: number) => number;
|
|
5740
5746
|
readonly __wbg_tryingtoreplaceimmutabledocumenterror_free: (a: number) => void;
|
|
5741
5747
|
readonly __wbg_datacontractnotpresentnotconsensuserror_free: (a: number) => void;
|
|
5742
|
-
readonly __wbg_invalidinstantassetlockprooferror_free: (a: number) => void;
|
|
5743
|
-
readonly __wbg_signatureshouldnotbepresenterror_free: (a: number) => void;
|
|
5744
5748
|
readonly datacontractgenericerror_getMessage: (a: number, b: number) => void;
|
|
5745
5749
|
readonly __wbg_documentalreadyexistserror_free: (a: number) => void;
|
|
5746
5750
|
readonly documentalreadyexistserror_getDocumentTransition: (a: number) => number;
|
|
@@ -5750,10 +5754,19 @@ export interface InitOutput {
|
|
|
5750
5754
|
readonly invalididentitypublickeytypeerror_getCode: (a: number) => number;
|
|
5751
5755
|
readonly invalididentitypublickeytypeerror_message: (a: number, b: number) => void;
|
|
5752
5756
|
readonly invalididentitypublickeytypeerror_serialize: (a: number, b: number) => void;
|
|
5757
|
+
readonly invalidinstantassetlockprooferror_getCode: (a: number) => number;
|
|
5758
|
+
readonly invalidinstantassetlockprooferror_message: (a: number, b: number) => void;
|
|
5759
|
+
readonly invalidinstantassetlockprooferror_serialize: (a: number, b: number) => void;
|
|
5753
5760
|
readonly __wbg_basicblserror_free: (a: number) => void;
|
|
5754
5761
|
readonly basicblserror_getCode: (a: number) => number;
|
|
5755
5762
|
readonly basicblserror_message: (a: number, b: number) => void;
|
|
5756
5763
|
readonly basicblserror_serialize: (a: number, b: number) => void;
|
|
5764
|
+
readonly basicecdsaerror_getCode: (a: number) => number;
|
|
5765
|
+
readonly basicecdsaerror_message: (a: number, b: number) => void;
|
|
5766
|
+
readonly basicecdsaerror_serialize: (a: number, b: number) => void;
|
|
5767
|
+
readonly signatureshouldnotbepresenterror_getCode: (a: number) => number;
|
|
5768
|
+
readonly signatureshouldnotbepresenterror_message: (a: number, b: number) => void;
|
|
5769
|
+
readonly signatureshouldnotbepresenterror_serialize: (a: number, b: number) => void;
|
|
5757
5770
|
readonly __wbg_compatibleprotocolversionisnotdefinederror_free: (a: number) => void;
|
|
5758
5771
|
readonly compatibleprotocolversionisnotdefinederror_getCurrentProtocolVersion: (a: number) => number;
|
|
5759
5772
|
readonly unknownassetlockprooftypeerror_getType: (a: number) => number;
|
|
@@ -5776,7 +5789,10 @@ export interface InitOutput {
|
|
|
5776
5789
|
readonly __wbg_unknownassetlockprooftypeerror_free: (a: number) => void;
|
|
5777
5790
|
readonly documentnotprovidederror_getDocumentTransition: (a: number) => number;
|
|
5778
5791
|
readonly invaliddocumentactionerror_getDocumentTransition: (a: number) => number;
|
|
5792
|
+
readonly __wbg_invalidinstantassetlockprooferror_free: (a: number) => void;
|
|
5779
5793
|
readonly __wbg_datacontractgenericerror_free: (a: number) => void;
|
|
5794
|
+
readonly __wbg_basicecdsaerror_free: (a: number) => void;
|
|
5795
|
+
readonly __wbg_signatureshouldnotbepresenterror_free: (a: number) => void;
|
|
5780
5796
|
readonly __wbg_revisionabsenterror_free: (a: number) => void;
|
|
5781
5797
|
readonly revisionabsenterror_new: (a: number) => number;
|
|
5782
5798
|
readonly revisionabsenterror_getDocument: (a: number) => number;
|
|
@@ -5789,9 +5805,6 @@ export interface InitOutput {
|
|
|
5789
5805
|
readonly missingdatacontractiderror_getCode: (a: number) => number;
|
|
5790
5806
|
readonly missingdatacontractiderror_message: (a: number, b: number) => void;
|
|
5791
5807
|
readonly missingdatacontractiderror_serialize: (a: number, b: number) => void;
|
|
5792
|
-
readonly missingdocumenttransitionactionerror_getCode: (a: number) => number;
|
|
5793
|
-
readonly missingdocumenttransitionactionerror_message: (a: number, b: number) => void;
|
|
5794
|
-
readonly missingdocumenttransitionactionerror_serialize: (a: number, b: number) => void;
|
|
5795
5808
|
readonly missingdocumenttransitiontypeerror_getCode: (a: number) => number;
|
|
5796
5809
|
readonly missingdocumenttransitiontypeerror_message: (a: number, b: number) => void;
|
|
5797
5810
|
readonly missingdocumenttransitiontypeerror_serialize: (a: number, b: number) => void;
|
|
@@ -5799,6 +5812,9 @@ export interface InitOutput {
|
|
|
5799
5812
|
readonly invalidinstantassetlockproofsignatureerror_getCode: (a: number) => number;
|
|
5800
5813
|
readonly invalidinstantassetlockproofsignatureerror_message: (a: number, b: number) => void;
|
|
5801
5814
|
readonly invalidinstantassetlockproofsignatureerror_serialize: (a: number, b: number) => void;
|
|
5815
|
+
readonly missingmasterpublickeyerror_getCode: (a: number) => number;
|
|
5816
|
+
readonly missingmasterpublickeyerror_message: (a: number, b: number) => void;
|
|
5817
|
+
readonly missingmasterpublickeyerror_serialize: (a: number, b: number) => void;
|
|
5802
5818
|
readonly invalidstatetransitionsignatureerror_getCode: (a: number) => number;
|
|
5803
5819
|
readonly invalidstatetransitionsignatureerror_message: (a: number, b: number) => void;
|
|
5804
5820
|
readonly invalidstatetransitionsignatureerror_serialize: (a: number, b: number) => void;
|
|
@@ -5821,9 +5837,9 @@ export interface InitOutput {
|
|
|
5821
5837
|
readonly identitytopuptransition_setSignature: (a: number, b: number, c: number) => void;
|
|
5822
5838
|
readonly identitytopuptransition_getAssetLockProof: (a: number) => number;
|
|
5823
5839
|
readonly identitytopuptransition_identityId: (a: number) => number;
|
|
5824
|
-
readonly __wbg_missingdocumenttransitionactionerror_free: (a: number) => void;
|
|
5825
5840
|
readonly __wbg_missingdocumenttransitiontypeerror_free: (a: number) => void;
|
|
5826
5841
|
readonly __wbg_missingdatacontractiderror_free: (a: number) => void;
|
|
5842
|
+
readonly __wbg_missingmasterpublickeyerror_free: (a: number) => void;
|
|
5827
5843
|
readonly __wbg_invalidstatetransitionsignatureerror_free: (a: number) => void;
|
|
5828
5844
|
readonly validateDataContractUpdateTransitionState: (a: number, b: number, c: number) => number;
|
|
5829
5845
|
readonly validateIndicesAreBackwardCompatible: (a: number, b: number, c: number) => void;
|
|
@@ -5852,13 +5868,13 @@ export interface InitOutput {
|
|
|
5852
5868
|
readonly invalidindexedpropertyconstrainterror_getCode: (a: number) => number;
|
|
5853
5869
|
readonly invalidindexedpropertyconstrainterror_message: (a: number, b: number) => void;
|
|
5854
5870
|
readonly invalidindexedpropertyconstrainterror_serialize: (a: number, b: number) => void;
|
|
5855
|
-
readonly
|
|
5871
|
+
readonly __wbg_missingdocumenttransitionactionerror_free: (a: number) => void;
|
|
5872
|
+
readonly missingdocumenttransitionactionerror_getCode: (a: number) => number;
|
|
5873
|
+
readonly missingdocumenttransitionactionerror_message: (a: number, b: number) => void;
|
|
5874
|
+
readonly missingdocumenttransitionactionerror_serialize: (a: number, b: number) => void;
|
|
5856
5875
|
readonly missingdocumenttypeerror_getCode: (a: number) => number;
|
|
5857
5876
|
readonly missingdocumenttypeerror_message: (a: number, b: number) => void;
|
|
5858
5877
|
readonly missingdocumenttypeerror_serialize: (a: number, b: number) => void;
|
|
5859
|
-
readonly missingmasterpublickeyerror_getCode: (a: number) => number;
|
|
5860
|
-
readonly missingmasterpublickeyerror_message: (a: number, b: number) => void;
|
|
5861
|
-
readonly missingmasterpublickeyerror_serialize: (a: number, b: number) => void;
|
|
5862
5878
|
readonly __wbg_invalidstatetransitiontypeerror_free: (a: number) => void;
|
|
5863
5879
|
readonly invalidstatetransitiontypeerror_new: (a: number) => number;
|
|
5864
5880
|
readonly invalidstatetransitiontypeerror_getType: (a: number) => number;
|
|
@@ -5878,6 +5894,9 @@ export interface InitOutput {
|
|
|
5878
5894
|
readonly datacontractalreadypresenterror_getCode: (a: number) => number;
|
|
5879
5895
|
readonly datacontractalreadypresenterror_message: (a: number, b: number) => void;
|
|
5880
5896
|
readonly datacontractalreadypresenterror_serialize: (a: number, b: number) => void;
|
|
5897
|
+
readonly __wbg_platformvalueerror_free: (a: number) => void;
|
|
5898
|
+
readonly platformvalueerror_getMessage: (a: number, b: number) => void;
|
|
5899
|
+
readonly platformvalueerror_toString: (a: number, b: number) => void;
|
|
5881
5900
|
readonly __wbg_chainassetlockproof_free: (a: number) => void;
|
|
5882
5901
|
readonly chainassetlockproof_new: (a: number, b: number) => void;
|
|
5883
5902
|
readonly chainassetlockproof_getType: (a: number) => number;
|
|
@@ -5931,7 +5950,8 @@ export interface InitOutput {
|
|
|
5931
5950
|
readonly feeresult_set_desiredAmount: (a: number, b: number, c: number) => void;
|
|
5932
5951
|
readonly feeresult_set_requiredAmount: (a: number, b: number, c: number) => void;
|
|
5933
5952
|
readonly feeresult_set_totalRefunds: (a: number, b: number, c: number) => void;
|
|
5934
|
-
readonly
|
|
5953
|
+
readonly __wbg_missingdocumenttypeerror_free: (a: number) => void;
|
|
5954
|
+
readonly platformvalueerror_valueOf: (a: number, b: number) => void;
|
|
5935
5955
|
readonly identity_getBalance: (a: number) => number;
|
|
5936
5956
|
readonly __wbg_invaliddocumenttypeindatacontracterror_free: (a: number) => void;
|
|
5937
5957
|
readonly invaliddocumenttypeindatacontracterror_new: (a: number, b: number, c: number) => number;
|
|
@@ -6003,10 +6023,8 @@ export interface InitOutput {
|
|
|
6003
6023
|
readonly identitypublickeydisabledatwindowviolationerror_getCode: (a: number) => number;
|
|
6004
6024
|
readonly identitypublickeydisabledatwindowviolationerror_message: (a: number, b: number) => void;
|
|
6005
6025
|
readonly identitypublickeydisabledatwindowviolationerror_serialize: (a: number, b: number) => void;
|
|
6026
|
+
readonly __wbg_publickeyvalidationerror_free: (a: number) => void;
|
|
6006
6027
|
readonly publickeyvalidationerror_message: (a: number) => number;
|
|
6007
|
-
readonly __wbg_platformvalueerror_free: (a: number) => void;
|
|
6008
|
-
readonly platformvalueerror_getMessage: (a: number, b: number) => void;
|
|
6009
|
-
readonly platformvalueerror_toString: (a: number, b: number) => void;
|
|
6010
6028
|
readonly getCreditsConversionRatio: () => number;
|
|
6011
6029
|
readonly __wbg_identitytopuptransitionbasicvalidator_free: (a: number) => void;
|
|
6012
6030
|
readonly identitytopuptransitionbasicvalidator_new: (a: number, b: number) => void;
|
|
@@ -6060,8 +6078,6 @@ export interface InitOutput {
|
|
|
6060
6078
|
readonly nodocumentssuppliederror_new: () => number;
|
|
6061
6079
|
readonly __wbg_nodocumentssuppliederror_free: (a: number) => void;
|
|
6062
6080
|
readonly __wbg_missingstatetransitiontypeerror_free: (a: number) => void;
|
|
6063
|
-
readonly platformvalueerror_valueOf: (a: number, b: number) => void;
|
|
6064
|
-
readonly __wbg_publickeyvalidationerror_free: (a: number) => void;
|
|
6065
6081
|
readonly __wbg_identitypublickeywithwitness_free: (a: number) => void;
|
|
6066
6082
|
readonly identitypublickeywithwitness_new: (a: number, b: number) => void;
|
|
6067
6083
|
readonly identitypublickeywithwitness_getId: (a: number) => number;
|
|
@@ -6087,10 +6103,18 @@ export interface InitOutput {
|
|
|
6087
6103
|
readonly invaliddatacontracterror_getRawDataContract: (a: number) => number;
|
|
6088
6104
|
readonly invaliddatacontracterror_getMessage: (a: number, b: number) => void;
|
|
6089
6105
|
readonly __wbg_invalidactionerror_free: (a: number) => void;
|
|
6090
|
-
readonly
|
|
6091
|
-
readonly
|
|
6092
|
-
readonly
|
|
6093
|
-
readonly
|
|
6106
|
+
readonly __wbg_documenttransitions_free: (a: number) => void;
|
|
6107
|
+
readonly documenttransitions_new: () => number;
|
|
6108
|
+
readonly documenttransitions_addTransitionCreate: (a: number, b: number) => void;
|
|
6109
|
+
readonly documenttransitions_addTransitionReplace: (a: number, b: number) => void;
|
|
6110
|
+
readonly documenttransitions_addTransitionDelete: (a: number, b: number) => void;
|
|
6111
|
+
readonly __wbg_documentfactory_free: (a: number) => void;
|
|
6112
|
+
readonly documentfactory_new: (a: number, b: number, c: number, d: number) => number;
|
|
6113
|
+
readonly documentfactory_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
6114
|
+
readonly documentfactory_createStateTransition: (a: number, b: number, c: number) => void;
|
|
6115
|
+
readonly documentfactory_createFromObject: (a: number, b: number, c: number) => number;
|
|
6116
|
+
readonly documentfactory_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
|
|
6117
|
+
readonly documentfactory_createExtendedDocumentFromDocumentBuffer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
6094
6118
|
readonly generateDocumentId: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
6095
6119
|
readonly applyDocumentsBatchTransition: (a: number, b: number, c: number) => number;
|
|
6096
6120
|
readonly validateDocumentsBatchTransitionBasic: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -6174,10 +6198,6 @@ export interface InitOutput {
|
|
|
6174
6198
|
readonly applyIdentityCreateTransition: (a: number, b: number, c: number) => number;
|
|
6175
6199
|
readonly applyIdentityTopUpTransition: (a: number, b: number, c: number) => number;
|
|
6176
6200
|
readonly applyIdentityUpdateTransition: (a: number, b: number, c: number) => number;
|
|
6177
|
-
readonly __wbg_refunds_free: (a: number) => void;
|
|
6178
|
-
readonly refunds_identifier: (a: number) => number;
|
|
6179
|
-
readonly refunds_credits_per_epoch: (a: number) => number;
|
|
6180
|
-
readonly refunds_toObject: (a: number, b: number) => void;
|
|
6181
6201
|
readonly __wbg_jsonschemavalidator_free: (a: number) => void;
|
|
6182
6202
|
readonly jsonschemavalidator_new: (a: number, b: number, c: number) => void;
|
|
6183
6203
|
readonly __wbg_undefinedindexpropertyerror_free: (a: number) => void;
|
|
@@ -6218,17 +6238,10 @@ export interface InitOutput {
|
|
|
6218
6238
|
readonly datacontract_clone: (a: number) => number;
|
|
6219
6239
|
readonly __wbg_datacontractdefaults_free: (a: number) => void;
|
|
6220
6240
|
readonly datacontractdefaults_get_default_schema: (a: number) => void;
|
|
6221
|
-
readonly
|
|
6222
|
-
readonly
|
|
6223
|
-
readonly
|
|
6224
|
-
readonly
|
|
6225
|
-
readonly documenttransitions_addTransitionDelete: (a: number, b: number) => void;
|
|
6226
|
-
readonly __wbg_documentfactory_free: (a: number) => void;
|
|
6227
|
-
readonly documentfactory_new: (a: number, b: number, c: number, d: number) => number;
|
|
6228
|
-
readonly documentfactory_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
6229
|
-
readonly documentfactory_createStateTransition: (a: number, b: number, c: number) => void;
|
|
6230
|
-
readonly documentfactory_createFromObject: (a: number, b: number, c: number) => number;
|
|
6231
|
-
readonly documentfactory_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
|
|
6241
|
+
readonly __wbg_fetchandvalidatedatacontractfactory_free: (a: number) => void;
|
|
6242
|
+
readonly fetchandvalidatedatacontractfactory_new: (a: number) => number;
|
|
6243
|
+
readonly fetchandvalidatedatacontractfactory_validate: (a: number, b: number) => number;
|
|
6244
|
+
readonly fetchAndValidateDataContract: (a: number, b: number) => number;
|
|
6232
6245
|
readonly findDuplicatesByIndices: (a: number, b: number, c: number, d: number) => void;
|
|
6233
6246
|
readonly fetchExtendedDocuments: (a: number, b: number, c: number) => number;
|
|
6234
6247
|
readonly __wbg_datacontracthavenewuniqueindexerror_free: (a: number) => void;
|
|
@@ -6402,17 +6415,19 @@ export interface InitOutput {
|
|
|
6402
6415
|
readonly __wbg_invalididentityerror_free: (a: number) => void;
|
|
6403
6416
|
readonly invalididentityerror_getErrors: (a: number, b: number) => void;
|
|
6404
6417
|
readonly invalididentityerror_getRawIdentity: (a: number) => number;
|
|
6405
|
-
readonly __wbg_identitycreatetransitionstatevalidator_free: (a: number) => void;
|
|
6406
|
-
readonly identitycreatetransitionstatevalidator_new: (a: number) => number;
|
|
6407
6418
|
readonly identitycreatetransitionstatevalidator_validate: (a: number, b: number, c: number) => number;
|
|
6408
6419
|
readonly identitytopuptransitionstatevalidator_validate: (a: number, b: number, c: number) => number;
|
|
6409
6420
|
readonly __wbg_identityupdatetransitionstatevalidator_free: (a: number) => void;
|
|
6410
6421
|
readonly identityupdatetransitionstatevalidator_new: (a: number, b: number) => void;
|
|
6411
6422
|
readonly identityupdatetransitionstatevalidator_validate: (a: number, b: number, c: number) => number;
|
|
6423
|
+
readonly __wbg_refunds_free: (a: number) => void;
|
|
6424
|
+
readonly refunds_credits_per_epoch: (a: number) => number;
|
|
6425
|
+
readonly refunds_toObject: (a: number, b: number) => void;
|
|
6412
6426
|
readonly __wbg_operation_free: (a: number) => void;
|
|
6413
6427
|
readonly __wbg_statetransitionkeysignaturevalidator_free: (a: number) => void;
|
|
6414
6428
|
readonly statetransitionkeysignaturevalidator_new: (a: number) => number;
|
|
6415
6429
|
readonly statetransitionkeysignaturevalidator_validate: (a: number, b: number, c: number) => number;
|
|
6430
|
+
readonly refunds_identifier: (a: number) => number;
|
|
6416
6431
|
readonly __wbg_datacontractinvalidindexdefinitionupdateerror_free: (a: number) => void;
|
|
6417
6432
|
readonly __wbg_datacontractuniqueindiceschangederror_free: (a: number) => void;
|
|
6418
6433
|
readonly __wbg_duplicateindexnameerror_free: (a: number) => void;
|
|
@@ -6420,7 +6435,9 @@ export interface InitOutput {
|
|
|
6420
6435
|
readonly __wbg_invalidcompoundindexerror_free: (a: number) => void;
|
|
6421
6436
|
readonly __wbg_invaliddatacontractiderror_free: (a: number) => void;
|
|
6422
6437
|
readonly __wbg_invalididentifiererror_free: (a: number) => void;
|
|
6438
|
+
readonly __wbg_identitycreatetransitionstatevalidator_free: (a: number) => void;
|
|
6423
6439
|
readonly __wbg_identitytopuptransitionstatevalidator_free: (a: number) => void;
|
|
6440
|
+
readonly identitycreatetransitionstatevalidator_new: (a: number) => number;
|
|
6424
6441
|
readonly identitytopuptransitionstatevalidator_new: (a: number) => number;
|
|
6425
6442
|
readonly __wbg_invaliddatacontractversionerror_free: (a: number) => void;
|
|
6426
6443
|
readonly __wbg_invalidassetlockproofcorechainheighterror_free: (a: number) => void;
|
|
@@ -6519,6 +6536,15 @@ export interface InitOutput {
|
|
|
6519
6536
|
readonly datatrigger_set_transition_action: (a: number, b: number, c: number, d: number) => void;
|
|
6520
6537
|
readonly datatrigger_get_top_level_identity: (a: number) => number;
|
|
6521
6538
|
readonly datatrigger_set_top_level_identity: (a: number, b: number, c: number) => void;
|
|
6539
|
+
readonly __wbg_documentfacade_free: (a: number) => void;
|
|
6540
|
+
readonly documentfacade_new: (a: number, b: number, c: number) => number;
|
|
6541
|
+
readonly documentfacade_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
6542
|
+
readonly documentfacade_createFromObject: (a: number, b: number, c: number) => number;
|
|
6543
|
+
readonly documentfacade_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
|
|
6544
|
+
readonly documentfacade_createExtendedDocumentFromDocumentBuffer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
6545
|
+
readonly documentfacade_createStateTransition: (a: number, b: number, c: number) => void;
|
|
6546
|
+
readonly documentfacade_validate: (a: number, b: number) => number;
|
|
6547
|
+
readonly documentfacade_validate_raw_document: (a: number, b: number) => number;
|
|
6522
6548
|
readonly __wbg_documentdeletetransition_free: (a: number) => void;
|
|
6523
6549
|
readonly documentdeletetransition_getAction: (a: number) => number;
|
|
6524
6550
|
readonly documentdeletetransition_toObject: (a: number, b: number, c: number) => void;
|
|
@@ -6558,11 +6584,6 @@ export interface InitOutput {
|
|
|
6558
6584
|
readonly datacontractimmutablepropertiesupdateerror_getCode: (a: number) => number;
|
|
6559
6585
|
readonly datacontractimmutablepropertiesupdateerror_message: (a: number, b: number) => void;
|
|
6560
6586
|
readonly datacontractimmutablepropertiesupdateerror_serialize: (a: number, b: number) => void;
|
|
6561
|
-
readonly __wbg_datacontractnotpresenterror_free: (a: number) => void;
|
|
6562
|
-
readonly datacontractnotpresenterror_getDataContractId: (a: number) => number;
|
|
6563
|
-
readonly datacontractnotpresenterror_getCode: (a: number) => number;
|
|
6564
|
-
readonly datacontractnotpresenterror_message: (a: number, b: number) => void;
|
|
6565
|
-
readonly datacontractnotpresenterror_serialize: (a: number, b: number) => void;
|
|
6566
6587
|
readonly __wbg_duplicatedocumenttransitionswithidserror_free: (a: number) => void;
|
|
6567
6588
|
readonly duplicatedocumenttransitionswithidserror_getDocumentTransitionReferences: (a: number) => number;
|
|
6568
6589
|
readonly duplicatedocumenttransitionswithidserror_getCode: (a: number) => number;
|
|
@@ -6592,10 +6613,6 @@ export interface InitOutput {
|
|
|
6592
6613
|
readonly datatriggeractioninvalidresulterror_getDocumentTransitionId: (a: number) => number;
|
|
6593
6614
|
readonly datatriggeractioninvalidresulterror_getOwnerId: (a: number) => number;
|
|
6594
6615
|
readonly datatriggeractioninvalidresulterror_getCode: (a: number) => number;
|
|
6595
|
-
readonly documenttimestampsareequalerror_getDocumentId: (a: number) => number;
|
|
6596
|
-
readonly documenttimestampsareequalerror_getCode: (a: number) => number;
|
|
6597
|
-
readonly documenttimestampsareequalerror_message: (a: number, b: number) => void;
|
|
6598
|
-
readonly documenttimestampsareequalerror_serialize: (a: number, b: number) => void;
|
|
6599
6616
|
readonly duplicatedidentitypublickeyidstateerror_getDuplicatedIds: (a: number) => number;
|
|
6600
6617
|
readonly duplicatedidentitypublickeyidstateerror_getCode: (a: number) => number;
|
|
6601
6618
|
readonly duplicatedidentitypublickeyidstateerror_message: (a: number, b: number) => void;
|
|
@@ -6640,7 +6657,6 @@ export interface InitOutput {
|
|
|
6640
6657
|
readonly __wbg_duplicatedidentitypublickeystateerror_free: (a: number) => void;
|
|
6641
6658
|
readonly validationresult_getErrors: (a: number, b: number) => void;
|
|
6642
6659
|
readonly __wbg_duplicatedocumenttransitionswithindiceserror_free: (a: number) => void;
|
|
6643
|
-
readonly __wbg_documenttimestampsareequalerror_free: (a: number) => void;
|
|
6644
6660
|
readonly rustsecp256k1_v0_6_1_context_create: (a: number) => number;
|
|
6645
6661
|
readonly rustsecp256k1_v0_6_1_context_destroy: (a: number) => void;
|
|
6646
6662
|
readonly rustsecp256k1_v0_6_1_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
@@ -6648,11 +6664,11 @@ export interface InitOutput {
|
|
|
6648
6664
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
6649
6665
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
6650
6666
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
6651
|
-
readonly
|
|
6667
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc20888cf22f54164: (a: number, b: number, c: number) => void;
|
|
6652
6668
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
6653
6669
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
6654
6670
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
6655
|
-
readonly
|
|
6671
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h6bd18e3c01470de5: (a: number, b: number, c: number, d: number) => void;
|
|
6656
6672
|
}
|
|
6657
6673
|
|
|
6658
6674
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
@@ -6674,4 +6690,4 @@ export function initSync(module: SyncInitInput): InitOutput;
|
|
|
6674
6690
|
*
|
|
6675
6691
|
* @returns {Promise<InitOutput>}
|
|
6676
6692
|
*/
|
|
6677
|
-
export default function
|
|
6693
|
+
export default function __wbg_init (module_or_path: InitInput | Promise<InitInput>): Promise<InitOutput>;
|