@dashevo/wasm-dpp 0.23.0-dev.15 → 0.24.0-dev.10
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/.eslintignore +1 -0
- package/Cargo.toml +23 -0
- package/README.md +21 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +8 -0
- package/dist/lib/patchIdentifier.d.ts +2 -0
- package/dist/wasm/wasm_dpp.d.ts +2756 -0
- package/index.ts +30 -0
- package/karma.conf.js +6 -3
- package/lib/patchIdentifier.ts +37 -0
- package/lib/test/.eslintrc +9 -0
- package/lib/test/bootstrap.js +27 -0
- package/lib/test/expect/expectError.js +34 -0
- package/lib/test/karma/loader.js +6 -0
- package/lib/test/utils/generateRandomIdentifierAsync.js +14 -0
- package/package.json +31 -55
- package/scripts/build.sh +69 -0
- package/scripts/clean.sh +4 -0
- package/src/bls_adapter.rs +71 -0
- package/src/buffer.rs +15 -0
- package/src/dash_platform_protocol.rs +26 -0
- package/src/data_contract/data_contract.rs +290 -0
- package/src/data_contract/errors/data_contract_already_exists.rs +1 -0
- package/src/data_contract/errors/invalid_data_contract.rs +29 -0
- package/src/data_contract/errors/invalid_document_type.rs +33 -0
- package/src/data_contract/errors/mod.rs +37 -0
- package/src/data_contract/index.rs +61 -0
- package/src/data_contract/mod.rs +10 -0
- package/src/data_contract/state_transition/data_contract_create_transition/mod.rs +37 -0
- package/src/data_contract/state_transition/mod.rs +3 -0
- package/src/data_contract_factory/data_contract_factory.rs +155 -0
- package/src/data_contract_factory/mod.rs +1 -0
- package/src/document/errors/document_already_exists_error.rs +28 -0
- package/src/document/errors/document_not_provided_error.rs +28 -0
- package/src/document/errors/invalid_action_name_error.rs +24 -0
- package/src/document/errors/invalid_document_action_error.rs +28 -0
- package/src/document/errors/invalid_document_error.rs +32 -0
- package/src/document/errors/invalid_initial_revision_error.rs +25 -0
- package/src/document/errors/mismatch_owners_ids_error.rs +27 -0
- package/src/document/errors/mod.rs +55 -0
- package/src/document/errors/no_documents_supplied_error.rs +22 -0
- package/src/document/mod.rs +158 -0
- package/src/document/state_transition/document_batch_transition/document_transition/document_create_transition.rs +22 -0
- package/src/document/state_transition/document_batch_transition/document_transition/document_delete_transition.rs +22 -0
- package/src/document/state_transition/document_batch_transition/document_transition/document_update_transition.rs +22 -0
- package/src/document/state_transition/document_batch_transition/document_transition/mod.rs +24 -0
- package/src/document/state_transition/document_batch_transition/mod.rs +1 -0
- package/src/document/state_transition/mod.rs +1 -0
- package/src/errors/consensus/basic/data_contract/data_contract_have_new_unique_index_error.rs +36 -0
- package/src/errors/consensus/basic/data_contract/data_contract_immutable_properties_update_error.rs +36 -0
- package/src/errors/consensus/basic/data_contract/data_contract_invalid_index_definition_update_error.rs +36 -0
- package/src/errors/consensus/basic/data_contract/data_contract_max_depth_exceed_error.rs +26 -0
- package/src/errors/consensus/basic/data_contract/data_contract_unique_indices_changed_error.rs +36 -0
- package/src/errors/consensus/basic/data_contract/duplicate_index_name_error.rs +36 -0
- package/src/errors/consensus/basic/data_contract/incompatible_data_contract_schema_error.rs +66 -0
- package/src/errors/consensus/basic/data_contract/incompatible_re2_pattern_error.rs +43 -0
- package/src/errors/consensus/basic/data_contract/index_error/duplicate_index_error.rs +39 -0
- package/src/errors/consensus/basic/data_contract/index_error/invalid_compound_index_error.rs +39 -0
- package/src/errors/consensus/basic/data_contract/index_error/invalid_index_property_type_error.rs +59 -0
- package/src/errors/consensus/basic/data_contract/index_error/invalid_indexed_property_constraint_error.rs +67 -0
- package/src/errors/consensus/basic/data_contract/index_error/mod.rs +15 -0
- package/src/errors/consensus/basic/data_contract/index_error/system_property_index_already_present_error.rs +51 -0
- package/src/errors/consensus/basic/data_contract/index_error/undefined_index_property_error.rs +51 -0
- package/src/errors/consensus/basic/data_contract/index_error/unique_indices_limit_reached_error.rs +36 -0
- package/src/errors/consensus/basic/data_contract/invalid_data_contract_id_error.rs +37 -0
- package/src/errors/consensus/basic/data_contract/invalid_data_contract_version_error.rs +36 -0
- package/src/errors/consensus/basic/data_contract/invalid_json_schema_ref_error.rs +26 -0
- package/src/errors/consensus/basic/data_contract/mod.rs +25 -0
- package/src/errors/consensus/basic/decode/mod.rs +5 -0
- package/src/errors/consensus/basic/decode/protocol_version_parsing_error.rs +29 -0
- package/src/errors/consensus/basic/decode/serialized_object_parsing_error.rs +29 -0
- package/src/errors/consensus/basic/document/data_contract_not_present_error.rs +32 -0
- package/src/errors/consensus/basic/document/duplicate_document_transitions_with_ids_error.rs +36 -0
- package/src/errors/consensus/basic/document/inconsistent_compound_index_data_error.rs +40 -0
- package/src/errors/consensus/basic/document/invalid_document_transition_action_error.rs +26 -0
- package/src/errors/consensus/basic/document/invalid_document_transition_id_error.rs +38 -0
- package/src/errors/consensus/basic/document/invalid_document_type_error.rs +39 -0
- package/src/errors/consensus/basic/document/missing_data_contract_id_error.rs +20 -0
- package/src/errors/consensus/basic/document/missing_document_transition_action_error.rs +20 -0
- package/src/errors/consensus/basic/document/missing_document_type_error.rs +20 -0
- package/src/errors/consensus/basic/document/mod.rs +19 -0
- package/src/errors/consensus/basic/identity/duplicated_identity_public_key_error.rs +32 -0
- package/src/errors/consensus/basic/identity/duplicated_identity_public_key_id_error.rs +32 -0
- package/src/errors/consensus/basic/identity/identity_asset_lock_proof_locked_transaction_mismatch_error.rs +38 -0
- package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_is_not_found_error.rs +31 -0
- package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_out_point_already_exists_error.rs +37 -0
- package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_output_not_found_error.rs +29 -0
- package/src/errors/consensus/basic/identity/identity_insufficient_balance_error.rs +33 -0
- package/src/errors/consensus/basic/identity/invalid_asset_lock_proof_core_chain_height_error.rs +34 -0
- package/src/errors/consensus/basic/identity/invalid_asset_lock_proof_transaction_height_error.rs +34 -0
- package/src/errors/consensus/basic/identity/invalid_asset_lock_transaction_output_return_size_error.rs +29 -0
- package/src/errors/consensus/basic/identity/invalid_identity_asset_lock_transaction_error.rs +60 -0
- package/src/errors/consensus/basic/identity/invalid_identity_asset_lock_transaction_output_error.rs +29 -0
- package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_core_fee_error.rs +29 -0
- package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_output_script_error.rs +32 -0
- package/src/errors/consensus/basic/identity/invalid_identity_key_signature_error.rs +29 -0
- package/src/errors/consensus/basic/identity/invalid_identity_public_key_data_error.rs +39 -0
- package/src/errors/consensus/basic/identity/invalid_identity_public_key_security_level_error.rs +42 -0
- package/src/errors/consensus/basic/identity/invalid_identity_public_key_type_error.rs +30 -0
- package/src/errors/consensus/basic/identity/invalid_instant_asset_lock_proof_error.rs +22 -0
- package/src/errors/consensus/basic/identity/invalid_instant_asset_lock_proof_signature_error.rs +24 -0
- package/src/errors/consensus/basic/identity/missing_master_public_key_error.rs +22 -0
- package/src/errors/consensus/basic/identity/missing_public_key_error.rs +29 -0
- package/src/errors/consensus/basic/identity/mod.rs +45 -0
- package/src/errors/consensus/basic/incompatible_protocol_version_error.rs +32 -0
- package/src/errors/consensus/basic/invalid_identifier_error.rs +36 -0
- package/src/errors/consensus/basic/invalid_signature_public_key_security_level_error.rs +41 -0
- package/src/errors/consensus/basic/invalid_state_transition_signature_error.rs +20 -0
- package/src/errors/consensus/basic/json_schema_compilation_error.rs +26 -0
- package/src/errors/consensus/basic/json_schema_error.rs +274 -0
- package/src/errors/consensus/basic/mod.rs +30 -0
- package/src/errors/consensus/basic/public_key_is_disabled_error.rs +30 -0
- package/src/errors/consensus/basic/public_key_security_level_not_met_error.rs +41 -0
- package/src/errors/consensus/basic/state_transition/invalid_state_transition_type_error.rs +29 -0
- package/src/errors/consensus/basic/state_transition/missing_state_transition_type_error.rs +20 -0
- package/src/errors/consensus/basic/state_transition/mod.rs +7 -0
- package/src/errors/consensus/basic/state_transition/state_transition_max_size_exceeded_error.rs +36 -0
- package/src/errors/consensus/basic/test_consensus_error.rs +21 -0
- package/src/errors/consensus/basic/unsupported_protocol_version_error.rs +32 -0
- package/src/errors/consensus/basic/wrong_public_key_purpose_error.rs +37 -0
- package/src/errors/consensus/fee/balance_is_not_enough_error.rs +32 -0
- package/src/errors/consensus/fee/mod.rs +3 -0
- package/src/errors/consensus/mod.rs +4 -0
- package/src/errors/consensus/signature/identity_not_found_error.rs +29 -0
- package/src/errors/consensus/signature/mod.rs +3 -0
- package/src/errors/consensus/state/data_contract/data_contract_already_present_error.rs +31 -0
- package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_condition_error.rs +74 -0
- package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_execution_error.rs +82 -0
- package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_invalid_result_error.rs +66 -0
- package/src/errors/consensus/state/data_contract/data_trigger/mod.rs +7 -0
- package/src/errors/consensus/state/data_contract/mod.rs +4 -0
- package/src/errors/consensus/state/document/document_already_present_error.rs +28 -0
- package/src/errors/consensus/state/document/document_not_found_error.rs +28 -0
- package/src/errors/consensus/state/document/document_owner_id_mismatch_error.rs +50 -0
- package/src/errors/consensus/state/document/document_timestamp_window_violation_error.rs +72 -0
- package/src/errors/consensus/state/document/document_timestamps_mismatch_error.rs +28 -0
- package/src/errors/consensus/state/document/duplicate_unique_index_error.rs +42 -0
- package/src/errors/consensus/state/document/invalid_document_revision_error.rs +38 -0
- package/src/errors/consensus/state/document/mod.rs +15 -0
- package/src/errors/consensus/state/identity/identity_already_exists_error.rs +28 -0
- package/src/errors/consensus/state/identity/identity_public_key_disabled_at_window_violation_error.rs +49 -0
- package/src/errors/consensus/state/identity/identity_public_key_is_disabled_error.rs +31 -0
- package/src/errors/consensus/state/identity/identity_public_key_is_read_only_error.rs +28 -0
- package/src/errors/consensus/state/identity/invalid_identity_public_key_id_error.rs +28 -0
- package/src/errors/consensus/state/identity/invalid_identity_revision_error.rs +38 -0
- package/src/errors/consensus/state/identity/max_identity_public_key_limit_reached_error.rs +26 -0
- package/src/errors/consensus/state/identity/mod.rs +15 -0
- package/src/errors/consensus/state/mod.rs +3 -0
- package/src/errors/consensus_error.rs +612 -0
- package/src/errors/from.rs +24 -0
- package/src/errors/js_conversion.rs +63 -0
- package/src/errors/mod.rs +10 -0
- package/src/errors/public_key_validation_error.rs +23 -0
- package/src/identifier.rs +103 -0
- package/src/identity.rs +253 -0
- package/src/identity_facade.rs +55 -0
- package/src/identity_public_key/key_type.rs +22 -0
- package/src/identity_public_key/mod.rs +192 -0
- package/src/identity_public_key/public_keys_validator.rs +44 -0
- package/src/identity_public_key/purpose.rs +24 -0
- package/src/identity_public_key/security_level.rs +21 -0
- package/src/lib.rs +28 -0
- package/src/metadata.rs +54 -0
- package/src/utils.rs +59 -0
- package/src/validation_result.rs +41 -0
- package/test/integration/DashPlatformProtocol.spec.js +4 -4
- package/test/integration/ajv/keywords/byteArray/addByteArrayKeyword.spec.js +2 -2
- package/test/integration/dataContract/DataContractFacade.spec.js +6 -6
- package/test/integration/dataContract/stateTransition/DataContractCreateTransition/validation/basic/validateDataContractCreateTransitionBasicFactory.spec.js +10 -10
- package/test/integration/dataContract/stateTransition/DataContractUpdateTransition/validation/basic/validateDataContractUpdateTransitionBasicFactory.spec.js +14 -14
- package/test/integration/dataContract/validation/validateDataContractFactory.spec.js +22 -22
- package/test/integration/document/Document.spec.js +10 -5
- package/test/integration/document/DocumentFacade.spec.js +11 -11
- package/test/integration/document/stateTransition/DocumentsBatchTransition/DocumentBatchTransition.spec.js +5 -5
- package/test/integration/document/stateTransition/DocumentsBatchTransition/validation/basic/validateDocumentsBatchTransitionBasicFactory.spec.js +25 -25
- package/test/integration/document/stateTransition/DocumentsBatchTransition/validation/state/executeDataTriggersFactory.spec.js +15 -15
- package/test/integration/document/validation/validateDocumentFactory.spec.js +12 -12
- package/test/integration/error/consensus/createConsensusError.spec.js +3 -3
- package/test/integration/identity/IdentityFacade.spec.js +13 -13
- package/test/integration/identity/stateTransition/IdentityCreateTransition/validation/basic/validateIdentityCreateTransitionBasicFactory.spec.js +12 -12
- package/test/integration/identity/stateTransition/IdentityTopUpTransition/validation/basic/validateIdentityTopUpTransitionBasicFactory.spec.js +11 -11
- package/test/integration/identity/stateTransition/IdentityUpdateTransition/validation/basic/validateIdentityUpdateTransitionBasicFactory.spec.js +8 -8
- package/test/integration/identity/stateTransition/IdentityUpdateTransition/validation/state/validateIdentityUpdateTransitionStateFactory.spec.js +24 -39
- package/test/integration/identity/stateTransition/IdentityUpdateTransition/validation/state/validatePublicKeysState.spec.js +7 -7
- package/test/integration/identity/stateTransition/assetLockProof/chain/validateChainAssetLockProofStructureFactory.spec.js +29 -35
- package/test/integration/identity/stateTransition/assetLockProof/fetchAssetLockTransactionOutputFactory.spec.js +8 -8
- package/test/integration/identity/stateTransition/assetLockProof/instant/validateInstantAssetLockProofStructureFactory.spec.js +11 -11
- package/test/integration/identity/stateTransition/assetLockProof/validateAssetLockTransactionFactory.spec.js +10 -10
- package/test/integration/identity/stateTransition/validatePublicKeySignaturesFactory.spec.js +7 -7
- package/test/integration/identity/validation/validateIdentityFactory.spec.js +8 -8
- package/test/integration/identity/validation/validatePublicKeysFactory.spec.js +50 -24
- package/test/integration/stateTransition/AbstractStateTransitionIdentitySigned.spec.js +14 -14
- package/test/integration/stateTransition/StateTransitionFacade.spec.js +15 -19
- package/test/integration/stateTransition/calculateStateTransitionFee.spec.js +8 -11
- package/test/integration/util/generateEntropy.spec.js +1 -1
- package/test/integration/util/serializer.spec.js +2 -2
- package/test/unit/DashPlatformProtocol.spec.js +4 -4
- package/test/unit/Identifier.spec.js +2 -2
- package/test/unit/Metadata.spec.js +1 -1
- package/test/unit/dataContract/DataContract.spec.js +100 -159
- package/test/unit/dataContract/DataContractFactory.spec.js +55 -111
- package/test/unit/dataContract/createDataContract.spec.js +20 -10
- package/test/unit/dataContract/errors/InvalidDataContractError.spec.js +2 -2
- package/test/unit/dataContract/generateDataContractId.spec.js +23 -6
- package/test/unit/dataContract/getBinaryPropertiesFromSchema.spec.js +1 -1
- package/test/unit/dataContract/getPropertyDefinitionByPath.spec.js +1 -1
- package/test/unit/dataContract/stateTransition/DataContractCreateTransition/DataContractCreateTransition.spec.js +8 -8
- package/test/unit/dataContract/stateTransition/DataContractCreateTransition/applyDataContractCreateTransitionFactory.spec.js +6 -6
- package/test/unit/dataContract/stateTransition/DataContractCreateTransition/validation/state/validateDataContractCreateTransitionStateFactory.spec.js +8 -8
- package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/DataContractUpdateTransition.spec.js +8 -8
- package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/applyDataContractUpdateTransitionFactory.spec.js +6 -6
- package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/validation/basic/validateIndicesAreBackwardCompatible.spec.js +6 -6
- package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/validation/state/validateDataContractUpdateTransitionStateFactory.spec.js +9 -9
- package/test/unit/dataContract/validation/validateDataContractMaxDepthFactory.spec.js +6 -6
- package/test/unit/dataContract/validation/validateDataContractPatternsFactory.spec.js +3 -3
- package/test/unit/dataTrigger/DataTrigger.spec.js +8 -8
- package/test/unit/dataTrigger/DataTriggerExecutionContext.spec.js +4 -4
- package/test/unit/dataTrigger/dashpayDataTriggers/createContactRequestDataTrigger.spec.js +13 -15
- package/test/unit/dataTrigger/dpnsTriggers/createDomainDataTrigger.spec.js +12 -12
- package/test/unit/dataTrigger/featureFlagDataTriggers/createFeatureFlagDataTrigger.spec.js +11 -13
- package/test/unit/dataTrigger/getDataTriggersFactory.spec.js +7 -7
- package/test/unit/dataTrigger/rejectDataTrigger.spec.js +8 -8
- package/test/unit/dataTrigger/rewardShareDataTriggers/createMasternodeRewardSharesDataTrigger.spec.js +9 -9
- package/test/unit/decodeProtocolEntityFactory.spec.js +4 -4
- package/test/unit/document/Document.spec.js +9 -9
- package/test/unit/document/DocumentFactory.spec.js +19 -19
- package/test/unit/document/errors/InvalidDocumentError.spec.js +2 -2
- package/test/unit/document/fetchAndValidateDataContractFactory.spec.js +8 -8
- package/test/unit/document/stateTransition/DocumetsBatchTransition/DocumentsBatchTransition.spec.js +8 -8
- package/test/unit/document/stateTransition/DocumetsBatchTransition/applyDocumentsBatchTransitionFactory.spec.js +16 -17
- package/test/unit/document/stateTransition/DocumetsBatchTransition/documentTransition/DocumentCreateTransition.spec.js +1 -1
- package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/basic/findDuplicatesById.spec.js +2 -2
- package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/basic/findDuplicatesByIndices.spec.js +6 -6
- package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/basic/validatePartialCompoundIndices.spec.js +7 -7
- package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/fetchDocumentsFactory.spec.js +6 -6
- package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/validateDocumentsBatchTransitionStateFactory.spec.js +27 -34
- package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/validateDocumentsUniquenessByIndicesFactory.spec.js +9 -9
- package/test/unit/errors/consensus/codes.spec.js +7 -7
- package/test/unit/identity/Identity.spec.js +98 -69
- package/test/unit/identity/IdentityFactory.spec.js +15 -15
- package/test/unit/identity/IdentityPublicKey.spec.js +53 -66
- package/test/unit/identity/creditsConverter.spec.js +1 -1
- package/test/unit/identity/errors/InvalidIdentityError.spec.js +2 -2
- package/test/unit/identity/stateTransition/IdentityCreateTransition/IdentityCreateTransition.spec.js +7 -7
- package/test/unit/identity/stateTransition/IdentityCreateTransition/applyIdentityCreateTransitionFactory.spec.js +8 -8
- package/test/unit/identity/stateTransition/IdentityCreateTransition/validation/state/validateIdentityCreateTransitionStateFactory.spec.js +6 -6
- package/test/unit/identity/stateTransition/IdentityTopUpTransition/IdentityTopUpTransition.spec.js +4 -4
- package/test/unit/identity/stateTransition/IdentityTopUpTransition/applyIdentityTopUpTransitionFactory.spec.js +7 -7
- package/test/unit/identity/stateTransition/IdentityTopUpTransition/validation/state/validateIdentityTopUpTransitionStateFactory.spec.js +2 -2
- package/test/unit/identity/stateTransition/IdentityUpdateTransition/IdentityUpdateTransition.spec.js +6 -6
- package/test/unit/identity/stateTransition/IdentityUpdateTransition/applyIdentityUpdateTransitionFactory.spec.js +6 -6
- package/test/unit/identity/stateTransition/assetLockProof/createAssetLockProofInstance.spec.js +5 -5
- package/test/unit/identity/stateTransition/assetLockProof/fetchAssetLockPublicKeyHashFactory.spec.js +3 -3
- package/test/unit/identity/validation/validateRequiredPurposeAndSecurityLevelFactory.spec.js +5 -5
- package/test/unit/stateTransition/StateTransitionFactory.spec.js +8 -8
- package/test/unit/stateTransition/createStateTransitionFactory.spec.js +8 -8
- package/test/unit/stateTransition/errors/InvalidStateTransitionError.spec.js +3 -3
- package/test/unit/stateTransition/validation/validateStateTransitionBasicFactory.spec.js +12 -12
- package/test/unit/stateTransition/validation/validateStateTransitionFeeFactory.spec.js +15 -15
- package/test/unit/stateTransition/validation/validateStateTransitionIdentitySignatureFactory.spec.js +22 -22
- package/test/unit/stateTransition/validation/validateStateTransitionKeySignatureFactory.spec.js +6 -6
- package/test/unit/stateTransition/validation/validateStateTransitionStateFactory.spec.js +9 -9
- package/test/unit/version/validateProtocolVersionFactory.spec.js +7 -7
- package/tsconfig.json +18 -0
- package/wasm/wasm_dpp.d.ts +2756 -0
- package/wasm/wasm_dpp.js +7750 -0
- package/wasm/wasm_dpp_bg.js +1 -0
- package/wasm/wasm_dpp_bg.wasm +0 -0
- package/wasm/wasm_dpp_bg.wasm.d.ts +518 -0
- package/webpack.config.js +22 -19
- package/CHANGELOG.md +0 -397
|
@@ -0,0 +1,2756 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*/
|
|
5
|
+
export enum KeyPurpose {
|
|
6
|
+
/**
|
|
7
|
+
* at least one authentication key must be registered for all security levels
|
|
8
|
+
*/
|
|
9
|
+
AUTHENTICATION,
|
|
10
|
+
/**
|
|
11
|
+
* this key cannot be used for signing documents
|
|
12
|
+
*/
|
|
13
|
+
ENCRYPTION,
|
|
14
|
+
/**
|
|
15
|
+
* this key cannot be used for signing documents
|
|
16
|
+
*/
|
|
17
|
+
DECRYPTION,
|
|
18
|
+
WITHDRAW,
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*/
|
|
22
|
+
export enum KeySecurityLevel {
|
|
23
|
+
MASTER,
|
|
24
|
+
CRITICAL,
|
|
25
|
+
HIGH,
|
|
26
|
+
MEDIUM,
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*/
|
|
30
|
+
export enum KeyType {
|
|
31
|
+
ECDSA_SECP256K1,
|
|
32
|
+
BLS12_381,
|
|
33
|
+
ECDSA_HASH160,
|
|
34
|
+
BIP13_SCRIPT_HASH,
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
*/
|
|
38
|
+
export class AssetLockProof {
|
|
39
|
+
free(): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*/
|
|
43
|
+
export class BalanceIsNotEnoughError {
|
|
44
|
+
free(): void;
|
|
45
|
+
/**
|
|
46
|
+
* @returns {bigint}
|
|
47
|
+
*/
|
|
48
|
+
getBalance(): bigint;
|
|
49
|
+
/**
|
|
50
|
+
* @returns {bigint}
|
|
51
|
+
*/
|
|
52
|
+
getFee(): bigint;
|
|
53
|
+
/**
|
|
54
|
+
* @returns {number}
|
|
55
|
+
*/
|
|
56
|
+
getCode(): number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
*/
|
|
60
|
+
export class DashPlatformProtocol {
|
|
61
|
+
free(): void;
|
|
62
|
+
/**
|
|
63
|
+
* @param {any} bls_adapter
|
|
64
|
+
*/
|
|
65
|
+
constructor(bls_adapter: any);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
*/
|
|
69
|
+
export class DataContract {
|
|
70
|
+
free(): void;
|
|
71
|
+
/**
|
|
72
|
+
* @param {any} raw_parameters
|
|
73
|
+
*/
|
|
74
|
+
constructor(raw_parameters: any);
|
|
75
|
+
/**
|
|
76
|
+
* @returns {number}
|
|
77
|
+
*/
|
|
78
|
+
getProtocolVersion(): number;
|
|
79
|
+
/**
|
|
80
|
+
* @returns {Identifier}
|
|
81
|
+
*/
|
|
82
|
+
getId(): Identifier;
|
|
83
|
+
/**
|
|
84
|
+
* @returns {Identifier}
|
|
85
|
+
*/
|
|
86
|
+
getOwnerId(): Identifier;
|
|
87
|
+
/**
|
|
88
|
+
* @returns {number}
|
|
89
|
+
*/
|
|
90
|
+
getVersion(): number;
|
|
91
|
+
/**
|
|
92
|
+
* @param {number} v
|
|
93
|
+
*/
|
|
94
|
+
setVersion(v: number): void;
|
|
95
|
+
/**
|
|
96
|
+
*/
|
|
97
|
+
incrementVersion(): void;
|
|
98
|
+
/**
|
|
99
|
+
* @returns {string}
|
|
100
|
+
*/
|
|
101
|
+
getJsonSchemaId(): string;
|
|
102
|
+
/**
|
|
103
|
+
* @param {string} schema
|
|
104
|
+
*/
|
|
105
|
+
setJsonMetaSchema(schema: string): void;
|
|
106
|
+
/**
|
|
107
|
+
* @returns {string}
|
|
108
|
+
*/
|
|
109
|
+
getJsonMetaSchema(): string;
|
|
110
|
+
/**
|
|
111
|
+
* @param {any} documents
|
|
112
|
+
*/
|
|
113
|
+
setDocuments(documents: any): void;
|
|
114
|
+
/**
|
|
115
|
+
* @returns {any}
|
|
116
|
+
*/
|
|
117
|
+
getDocuments(): any;
|
|
118
|
+
/**
|
|
119
|
+
* @param {string} doc_type
|
|
120
|
+
* @returns {boolean}
|
|
121
|
+
*/
|
|
122
|
+
isDocumentDefined(doc_type: string): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* @param {string} doc_type
|
|
125
|
+
* @param {any} schema
|
|
126
|
+
*/
|
|
127
|
+
setDocumentSchema(doc_type: string, schema: any): void;
|
|
128
|
+
/**
|
|
129
|
+
* @param {string} doc_type
|
|
130
|
+
* @returns {any}
|
|
131
|
+
*/
|
|
132
|
+
getDocumentSchema(doc_type: string): any;
|
|
133
|
+
/**
|
|
134
|
+
* @param {string} doc_type
|
|
135
|
+
* @returns {any}
|
|
136
|
+
*/
|
|
137
|
+
getDocumentSchemaRef(doc_type: string): any;
|
|
138
|
+
/**
|
|
139
|
+
* @param {any} definitions
|
|
140
|
+
*/
|
|
141
|
+
setDefinitions(definitions: any): void;
|
|
142
|
+
/**
|
|
143
|
+
* @returns {any}
|
|
144
|
+
*/
|
|
145
|
+
getDefinitions(): any;
|
|
146
|
+
/**
|
|
147
|
+
* @param {Uint8Array} e
|
|
148
|
+
*/
|
|
149
|
+
setEntropy(e: Uint8Array): void;
|
|
150
|
+
/**
|
|
151
|
+
* @returns {any}
|
|
152
|
+
*/
|
|
153
|
+
getEntropy(): any;
|
|
154
|
+
/**
|
|
155
|
+
* @param {string} doc_type
|
|
156
|
+
* @returns {any}
|
|
157
|
+
*/
|
|
158
|
+
getBinaryProperties(doc_type: string): any;
|
|
159
|
+
/**
|
|
160
|
+
* @returns {Metadata | undefined}
|
|
161
|
+
*/
|
|
162
|
+
getMetadata(): Metadata | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* @param {Metadata} metadata
|
|
165
|
+
*/
|
|
166
|
+
setMetadata(metadata: Metadata): void;
|
|
167
|
+
/**
|
|
168
|
+
* @returns {any}
|
|
169
|
+
*/
|
|
170
|
+
toObject(): any;
|
|
171
|
+
/**
|
|
172
|
+
* @returns {any}
|
|
173
|
+
*/
|
|
174
|
+
toJSON(): any;
|
|
175
|
+
/**
|
|
176
|
+
* @returns {any}
|
|
177
|
+
*/
|
|
178
|
+
toBuffer(): any;
|
|
179
|
+
/**
|
|
180
|
+
* @returns {Uint8Array}
|
|
181
|
+
*/
|
|
182
|
+
hash(): Uint8Array;
|
|
183
|
+
/**
|
|
184
|
+
* @param {any} v
|
|
185
|
+
* @returns {DataContract}
|
|
186
|
+
*/
|
|
187
|
+
static from(v: any): DataContract;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
*/
|
|
191
|
+
export class DataContractAlreadyPresentError {
|
|
192
|
+
free(): void;
|
|
193
|
+
/**
|
|
194
|
+
* @returns {any}
|
|
195
|
+
*/
|
|
196
|
+
getDataContractId(): any;
|
|
197
|
+
/**
|
|
198
|
+
* @returns {number}
|
|
199
|
+
*/
|
|
200
|
+
getCode(): number;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
*/
|
|
204
|
+
export class DataContractCreateTransition {
|
|
205
|
+
free(): void;
|
|
206
|
+
/**
|
|
207
|
+
* @returns {DataContract}
|
|
208
|
+
*/
|
|
209
|
+
getDataContract(): DataContract;
|
|
210
|
+
/**
|
|
211
|
+
* @returns {number}
|
|
212
|
+
*/
|
|
213
|
+
getProtocolVersion(): number;
|
|
214
|
+
/**
|
|
215
|
+
* @returns {any}
|
|
216
|
+
*/
|
|
217
|
+
getEntropy(): any;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
*/
|
|
221
|
+
export class DataContractDefaults {
|
|
222
|
+
free(): void;
|
|
223
|
+
/**
|
|
224
|
+
*/
|
|
225
|
+
static readonly SCHEMA: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
*/
|
|
229
|
+
export class DataContractFactory {
|
|
230
|
+
free(): void;
|
|
231
|
+
/**
|
|
232
|
+
* @param {number} protocol_version
|
|
233
|
+
* @param {DataContractValidator} validate_data_contract
|
|
234
|
+
* @param {any | undefined} external_entropy_generator_arg
|
|
235
|
+
*/
|
|
236
|
+
constructor(protocol_version: number, validate_data_contract: DataContractValidator, external_entropy_generator_arg?: any);
|
|
237
|
+
/**
|
|
238
|
+
* @param {Uint8Array} owner_id
|
|
239
|
+
* @param {any} documents
|
|
240
|
+
* @returns {DataContract}
|
|
241
|
+
*/
|
|
242
|
+
create(owner_id: Uint8Array, documents: any): DataContract;
|
|
243
|
+
/**
|
|
244
|
+
* @param {any} object
|
|
245
|
+
* @param {boolean | undefined} skip_validation
|
|
246
|
+
* @returns {Promise<DataContract>}
|
|
247
|
+
*/
|
|
248
|
+
createFromObject(object: any, skip_validation?: boolean): Promise<DataContract>;
|
|
249
|
+
/**
|
|
250
|
+
* @param {Uint8Array} buffer
|
|
251
|
+
* @param {boolean | undefined} skip_validation
|
|
252
|
+
* @returns {Promise<DataContract>}
|
|
253
|
+
*/
|
|
254
|
+
createFromBuffer(buffer: Uint8Array, skip_validation?: boolean): Promise<DataContract>;
|
|
255
|
+
/**
|
|
256
|
+
* @param {DataContract} data_contract
|
|
257
|
+
* @returns {Promise<DataContractCreateTransition>}
|
|
258
|
+
*/
|
|
259
|
+
createDataContractCreateTransition(data_contract: DataContract): Promise<DataContractCreateTransition>;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
*/
|
|
263
|
+
export class DataContractHaveNewUniqueIndexError {
|
|
264
|
+
free(): void;
|
|
265
|
+
/**
|
|
266
|
+
* @returns {string}
|
|
267
|
+
*/
|
|
268
|
+
getDocumentType(): string;
|
|
269
|
+
/**
|
|
270
|
+
* @returns {string}
|
|
271
|
+
*/
|
|
272
|
+
getIndexName(): string;
|
|
273
|
+
/**
|
|
274
|
+
* @returns {number}
|
|
275
|
+
*/
|
|
276
|
+
getCode(): number;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
*/
|
|
280
|
+
export class DataContractImmutablePropertiesUpdateError {
|
|
281
|
+
free(): void;
|
|
282
|
+
/**
|
|
283
|
+
* @returns {string}
|
|
284
|
+
*/
|
|
285
|
+
getOperation(): string;
|
|
286
|
+
/**
|
|
287
|
+
* @returns {string}
|
|
288
|
+
*/
|
|
289
|
+
getFieldPath(): string;
|
|
290
|
+
/**
|
|
291
|
+
* @returns {number}
|
|
292
|
+
*/
|
|
293
|
+
getCode(): number;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
*/
|
|
297
|
+
export class DataContractInvalidIndexDefinitionUpdateError {
|
|
298
|
+
free(): void;
|
|
299
|
+
/**
|
|
300
|
+
* @returns {string}
|
|
301
|
+
*/
|
|
302
|
+
getDocumentType(): string;
|
|
303
|
+
/**
|
|
304
|
+
* @returns {string}
|
|
305
|
+
*/
|
|
306
|
+
getIndexName(): string;
|
|
307
|
+
/**
|
|
308
|
+
* @returns {number}
|
|
309
|
+
*/
|
|
310
|
+
getCode(): number;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
*/
|
|
314
|
+
export class DataContractMaxDepthError {
|
|
315
|
+
free(): void;
|
|
316
|
+
/**
|
|
317
|
+
* @returns {number}
|
|
318
|
+
*/
|
|
319
|
+
getDepth(): number;
|
|
320
|
+
/**
|
|
321
|
+
* @returns {number}
|
|
322
|
+
*/
|
|
323
|
+
getCode(): number;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
*/
|
|
327
|
+
export class DataContractNotPresentError {
|
|
328
|
+
free(): void;
|
|
329
|
+
/**
|
|
330
|
+
* @returns {any}
|
|
331
|
+
*/
|
|
332
|
+
getDataContractId(): any;
|
|
333
|
+
/**
|
|
334
|
+
* @returns {number}
|
|
335
|
+
*/
|
|
336
|
+
getCode(): number;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
*/
|
|
340
|
+
export class DataContractUniqueIndicesChangedError {
|
|
341
|
+
free(): void;
|
|
342
|
+
/**
|
|
343
|
+
* @returns {string}
|
|
344
|
+
*/
|
|
345
|
+
getDocumentType(): string;
|
|
346
|
+
/**
|
|
347
|
+
* @returns {string}
|
|
348
|
+
*/
|
|
349
|
+
getIndexName(): string;
|
|
350
|
+
/**
|
|
351
|
+
* @returns {number}
|
|
352
|
+
*/
|
|
353
|
+
getCode(): number;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
*/
|
|
357
|
+
export class DataContractValidator {
|
|
358
|
+
free(): void;
|
|
359
|
+
/**
|
|
360
|
+
*/
|
|
361
|
+
constructor();
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
*/
|
|
365
|
+
export class DataTriggerConditionError {
|
|
366
|
+
free(): void;
|
|
367
|
+
/**
|
|
368
|
+
* @returns {any}
|
|
369
|
+
*/
|
|
370
|
+
getDataContractId(): any;
|
|
371
|
+
/**
|
|
372
|
+
* @returns {any}
|
|
373
|
+
*/
|
|
374
|
+
getDocumentTransitionId(): any;
|
|
375
|
+
/**
|
|
376
|
+
* @returns {string}
|
|
377
|
+
*/
|
|
378
|
+
getMessage(): string;
|
|
379
|
+
/**
|
|
380
|
+
* @returns {any}
|
|
381
|
+
*/
|
|
382
|
+
getTimestamp(): any;
|
|
383
|
+
/**
|
|
384
|
+
* @returns {any | undefined}
|
|
385
|
+
*/
|
|
386
|
+
getOwnerId(): any | undefined;
|
|
387
|
+
/**
|
|
388
|
+
* @returns {number}
|
|
389
|
+
*/
|
|
390
|
+
getCode(): number;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
*/
|
|
394
|
+
export class DataTriggerExecutionError {
|
|
395
|
+
free(): void;
|
|
396
|
+
/**
|
|
397
|
+
* @returns {any}
|
|
398
|
+
*/
|
|
399
|
+
getDataContractId(): any;
|
|
400
|
+
/**
|
|
401
|
+
* @returns {any}
|
|
402
|
+
*/
|
|
403
|
+
getExecutionError(): any;
|
|
404
|
+
/**
|
|
405
|
+
* @returns {any}
|
|
406
|
+
*/
|
|
407
|
+
getDocumentTransitionId(): any;
|
|
408
|
+
/**
|
|
409
|
+
* @returns {string}
|
|
410
|
+
*/
|
|
411
|
+
getMessage(): string;
|
|
412
|
+
/**
|
|
413
|
+
* @returns {any}
|
|
414
|
+
*/
|
|
415
|
+
getTimestamp(): any;
|
|
416
|
+
/**
|
|
417
|
+
* @returns {any | undefined}
|
|
418
|
+
*/
|
|
419
|
+
getOwnerId(): any | undefined;
|
|
420
|
+
/**
|
|
421
|
+
* @returns {number}
|
|
422
|
+
*/
|
|
423
|
+
getCode(): number;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
*/
|
|
427
|
+
export class DataTriggerInvalidResultError {
|
|
428
|
+
free(): void;
|
|
429
|
+
/**
|
|
430
|
+
* @returns {any}
|
|
431
|
+
*/
|
|
432
|
+
getDataContractId(): any;
|
|
433
|
+
/**
|
|
434
|
+
* @returns {any}
|
|
435
|
+
*/
|
|
436
|
+
getDocumentTransitionId(): any;
|
|
437
|
+
/**
|
|
438
|
+
* @returns {any}
|
|
439
|
+
*/
|
|
440
|
+
getTimestamp(): any;
|
|
441
|
+
/**
|
|
442
|
+
* @returns {any | undefined}
|
|
443
|
+
*/
|
|
444
|
+
getOwnerId(): any | undefined;
|
|
445
|
+
/**
|
|
446
|
+
* @returns {number}
|
|
447
|
+
*/
|
|
448
|
+
getCode(): number;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
*/
|
|
452
|
+
export class Document {
|
|
453
|
+
free(): void;
|
|
454
|
+
/**
|
|
455
|
+
* @returns {number}
|
|
456
|
+
*/
|
|
457
|
+
getProtocolVersion(): number;
|
|
458
|
+
/**
|
|
459
|
+
* @returns {Identifier}
|
|
460
|
+
*/
|
|
461
|
+
getId(): Identifier;
|
|
462
|
+
/**
|
|
463
|
+
* @returns {string}
|
|
464
|
+
*/
|
|
465
|
+
getType(): string;
|
|
466
|
+
/**
|
|
467
|
+
* @returns {Identifier}
|
|
468
|
+
*/
|
|
469
|
+
getDataContractId(): Identifier;
|
|
470
|
+
/**
|
|
471
|
+
* @returns {DataContract}
|
|
472
|
+
*/
|
|
473
|
+
getDataContract(): DataContract;
|
|
474
|
+
/**
|
|
475
|
+
* @returns {Identifier}
|
|
476
|
+
*/
|
|
477
|
+
getOwnerId(): Identifier;
|
|
478
|
+
/**
|
|
479
|
+
* @param {number} rev
|
|
480
|
+
*/
|
|
481
|
+
setRevision(rev: number): void;
|
|
482
|
+
/**
|
|
483
|
+
* @returns {number}
|
|
484
|
+
*/
|
|
485
|
+
getRevision(): number;
|
|
486
|
+
/**
|
|
487
|
+
* @param {Uint8Array} e
|
|
488
|
+
*/
|
|
489
|
+
setEntropy(e: Uint8Array): void;
|
|
490
|
+
/**
|
|
491
|
+
* @returns {Uint8Array}
|
|
492
|
+
*/
|
|
493
|
+
getEntropy(): Uint8Array;
|
|
494
|
+
/**
|
|
495
|
+
* @param {any} d
|
|
496
|
+
*/
|
|
497
|
+
setData(d: any): void;
|
|
498
|
+
/**
|
|
499
|
+
* @returns {any}
|
|
500
|
+
*/
|
|
501
|
+
getData(): any;
|
|
502
|
+
/**
|
|
503
|
+
* @param {string} _path
|
|
504
|
+
* @param {any} _d
|
|
505
|
+
*/
|
|
506
|
+
set(_path: string, _d: any): void;
|
|
507
|
+
/**
|
|
508
|
+
* @param {string} _path
|
|
509
|
+
* @returns {any}
|
|
510
|
+
*/
|
|
511
|
+
get(_path: string): any;
|
|
512
|
+
/**
|
|
513
|
+
* @param {bigint} ts
|
|
514
|
+
*/
|
|
515
|
+
setCreatedAt(ts: bigint): void;
|
|
516
|
+
/**
|
|
517
|
+
* @param {bigint} ts
|
|
518
|
+
*/
|
|
519
|
+
setUpdatedAt(ts: bigint): void;
|
|
520
|
+
/**
|
|
521
|
+
* @returns {bigint | undefined}
|
|
522
|
+
*/
|
|
523
|
+
getCreatedAt(): bigint | undefined;
|
|
524
|
+
/**
|
|
525
|
+
* @returns {bigint | undefined}
|
|
526
|
+
*/
|
|
527
|
+
getUpdatedAt(): bigint | undefined;
|
|
528
|
+
/**
|
|
529
|
+
* @returns {Metadata | undefined}
|
|
530
|
+
*/
|
|
531
|
+
getMetadata(): Metadata | undefined;
|
|
532
|
+
/**
|
|
533
|
+
* @param {Metadata} metadata
|
|
534
|
+
*/
|
|
535
|
+
setMetadata(metadata: Metadata): void;
|
|
536
|
+
/**
|
|
537
|
+
* @returns {any}
|
|
538
|
+
*/
|
|
539
|
+
toObject(): any;
|
|
540
|
+
/**
|
|
541
|
+
* @returns {any}
|
|
542
|
+
*/
|
|
543
|
+
toJSON(): any;
|
|
544
|
+
/**
|
|
545
|
+
* @returns {Uint8Array}
|
|
546
|
+
*/
|
|
547
|
+
toBuffer(): Uint8Array;
|
|
548
|
+
/**
|
|
549
|
+
* @returns {Uint8Array}
|
|
550
|
+
*/
|
|
551
|
+
hash(): Uint8Array;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
*/
|
|
555
|
+
export class DocumentAlreadyExistsError {
|
|
556
|
+
free(): void;
|
|
557
|
+
/**
|
|
558
|
+
* @returns {any}
|
|
559
|
+
*/
|
|
560
|
+
getDocumentTransition(): any;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
*/
|
|
564
|
+
export class DocumentAlreadyPresentError {
|
|
565
|
+
free(): void;
|
|
566
|
+
/**
|
|
567
|
+
* @returns {any}
|
|
568
|
+
*/
|
|
569
|
+
getDocumentId(): any;
|
|
570
|
+
/**
|
|
571
|
+
* @returns {number}
|
|
572
|
+
*/
|
|
573
|
+
getCode(): number;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
*/
|
|
577
|
+
export class DocumentCreateTransition {
|
|
578
|
+
free(): void;
|
|
579
|
+
/**
|
|
580
|
+
* @returns {number}
|
|
581
|
+
*/
|
|
582
|
+
getAction(): number;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
*/
|
|
586
|
+
export class DocumentDeleteTransition {
|
|
587
|
+
free(): void;
|
|
588
|
+
/**
|
|
589
|
+
* @returns {number}
|
|
590
|
+
*/
|
|
591
|
+
getAction(): number;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
*/
|
|
595
|
+
export class DocumentNotFoundError {
|
|
596
|
+
free(): void;
|
|
597
|
+
/**
|
|
598
|
+
* @returns {any}
|
|
599
|
+
*/
|
|
600
|
+
getDocumentId(): any;
|
|
601
|
+
/**
|
|
602
|
+
* @returns {number}
|
|
603
|
+
*/
|
|
604
|
+
getCode(): number;
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
*/
|
|
608
|
+
export class DocumentNotProvidedError {
|
|
609
|
+
free(): void;
|
|
610
|
+
/**
|
|
611
|
+
* @returns {any}
|
|
612
|
+
*/
|
|
613
|
+
getDocumentTransition(): any;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
*/
|
|
617
|
+
export class DocumentOwnerIdMismatchError {
|
|
618
|
+
free(): void;
|
|
619
|
+
/**
|
|
620
|
+
* @returns {any}
|
|
621
|
+
*/
|
|
622
|
+
getDocumentId(): any;
|
|
623
|
+
/**
|
|
624
|
+
* @returns {any}
|
|
625
|
+
*/
|
|
626
|
+
getDocumentOwnerId(): any;
|
|
627
|
+
/**
|
|
628
|
+
* @returns {any}
|
|
629
|
+
*/
|
|
630
|
+
getExistingDocumentOwnerId(): any;
|
|
631
|
+
/**
|
|
632
|
+
* @returns {number}
|
|
633
|
+
*/
|
|
634
|
+
getCode(): number;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
*/
|
|
638
|
+
export class DocumentTimestampWindowViolationError {
|
|
639
|
+
free(): void;
|
|
640
|
+
/**
|
|
641
|
+
* @returns {any}
|
|
642
|
+
*/
|
|
643
|
+
getDocumentId(): any;
|
|
644
|
+
/**
|
|
645
|
+
* @returns {string}
|
|
646
|
+
*/
|
|
647
|
+
getTimestampName(): string;
|
|
648
|
+
/**
|
|
649
|
+
* @returns {Date}
|
|
650
|
+
*/
|
|
651
|
+
getTimestamp(): Date;
|
|
652
|
+
/**
|
|
653
|
+
* @returns {Date}
|
|
654
|
+
*/
|
|
655
|
+
getTimeWindowStart(): Date;
|
|
656
|
+
/**
|
|
657
|
+
* @returns {Date}
|
|
658
|
+
*/
|
|
659
|
+
getTimeWindowEnd(): Date;
|
|
660
|
+
/**
|
|
661
|
+
* @returns {number}
|
|
662
|
+
*/
|
|
663
|
+
getCode(): number;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
*/
|
|
667
|
+
export class DocumentTimestampsMismatchError {
|
|
668
|
+
free(): void;
|
|
669
|
+
/**
|
|
670
|
+
* @returns {any}
|
|
671
|
+
*/
|
|
672
|
+
getDocumentId(): any;
|
|
673
|
+
/**
|
|
674
|
+
* @returns {number}
|
|
675
|
+
*/
|
|
676
|
+
getCode(): number;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
*/
|
|
680
|
+
export class DocumentTransition {
|
|
681
|
+
free(): void;
|
|
682
|
+
/**
|
|
683
|
+
* @returns {number}
|
|
684
|
+
*/
|
|
685
|
+
getAction(): number;
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
*/
|
|
689
|
+
export class DuplicateDocumentTransitionsWithIdsError {
|
|
690
|
+
free(): void;
|
|
691
|
+
/**
|
|
692
|
+
* @returns {Array<any>}
|
|
693
|
+
*/
|
|
694
|
+
getReferences(): Array<any>;
|
|
695
|
+
/**
|
|
696
|
+
* @returns {number}
|
|
697
|
+
*/
|
|
698
|
+
getCode(): number;
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
*/
|
|
702
|
+
export class DuplicateIndexError {
|
|
703
|
+
free(): void;
|
|
704
|
+
/**
|
|
705
|
+
* @returns {string}
|
|
706
|
+
*/
|
|
707
|
+
getDocumentType(): string;
|
|
708
|
+
/**
|
|
709
|
+
* @returns {any}
|
|
710
|
+
*/
|
|
711
|
+
getIndexDefinition(): any;
|
|
712
|
+
/**
|
|
713
|
+
* @returns {number}
|
|
714
|
+
*/
|
|
715
|
+
getCode(): number;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
*/
|
|
719
|
+
export class DuplicateIndexNameError {
|
|
720
|
+
free(): void;
|
|
721
|
+
/**
|
|
722
|
+
* @returns {string}
|
|
723
|
+
*/
|
|
724
|
+
getDocumentType(): string;
|
|
725
|
+
/**
|
|
726
|
+
* @returns {string}
|
|
727
|
+
*/
|
|
728
|
+
getDuplicateIndexName(): string;
|
|
729
|
+
/**
|
|
730
|
+
* @returns {number}
|
|
731
|
+
*/
|
|
732
|
+
getCode(): number;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
*/
|
|
736
|
+
export class DuplicateUniqueIndexError {
|
|
737
|
+
free(): void;
|
|
738
|
+
/**
|
|
739
|
+
* @returns {any}
|
|
740
|
+
*/
|
|
741
|
+
getDocumentId(): any;
|
|
742
|
+
/**
|
|
743
|
+
* @returns {Array<any>}
|
|
744
|
+
*/
|
|
745
|
+
getDuplicatingProperties(): Array<any>;
|
|
746
|
+
/**
|
|
747
|
+
* @returns {number}
|
|
748
|
+
*/
|
|
749
|
+
getCode(): number;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
*/
|
|
753
|
+
export class DuplicatedIdentityPublicKeyError {
|
|
754
|
+
free(): void;
|
|
755
|
+
/**
|
|
756
|
+
* @returns {Uint32Array}
|
|
757
|
+
*/
|
|
758
|
+
getDuplicatedPublicKeysIds(): Uint32Array;
|
|
759
|
+
/**
|
|
760
|
+
* @returns {number}
|
|
761
|
+
*/
|
|
762
|
+
getCode(): number;
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
*/
|
|
766
|
+
export class DuplicatedIdentityPublicKeyIdError {
|
|
767
|
+
free(): void;
|
|
768
|
+
/**
|
|
769
|
+
* @returns {Uint32Array}
|
|
770
|
+
*/
|
|
771
|
+
getDuplicatedIds(): Uint32Array;
|
|
772
|
+
/**
|
|
773
|
+
* @returns {number}
|
|
774
|
+
*/
|
|
775
|
+
getCode(): number;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
*/
|
|
779
|
+
export class Identifier {
|
|
780
|
+
/**
|
|
781
|
+
** Return copy of self without private attributes.
|
|
782
|
+
*/
|
|
783
|
+
toJSON(): Object;
|
|
784
|
+
/**
|
|
785
|
+
* Return stringified version of self.
|
|
786
|
+
*/
|
|
787
|
+
toString(): string;
|
|
788
|
+
free(): void;
|
|
789
|
+
/**
|
|
790
|
+
* @param {Uint8Array} buffer
|
|
791
|
+
*/
|
|
792
|
+
constructor(buffer: Uint8Array);
|
|
793
|
+
/**
|
|
794
|
+
* @param {any} value
|
|
795
|
+
* @param {string | undefined} encoding
|
|
796
|
+
* @returns {Identifier}
|
|
797
|
+
*/
|
|
798
|
+
static from(value: any, encoding?: string): Identifier;
|
|
799
|
+
/**
|
|
800
|
+
* @param {string} value
|
|
801
|
+
* @param {string | undefined} encoding
|
|
802
|
+
* @returns {Identifier}
|
|
803
|
+
*/
|
|
804
|
+
static fromString(value: string, encoding?: string): Identifier;
|
|
805
|
+
/**
|
|
806
|
+
* @returns {any}
|
|
807
|
+
*/
|
|
808
|
+
toBuffer(): any;
|
|
809
|
+
/**
|
|
810
|
+
* @returns {string}
|
|
811
|
+
*/
|
|
812
|
+
toJSON(): string;
|
|
813
|
+
/**
|
|
814
|
+
* @param {string | undefined} encoding
|
|
815
|
+
* @returns {string}
|
|
816
|
+
*/
|
|
817
|
+
toString(encoding?: string): string;
|
|
818
|
+
/**
|
|
819
|
+
* @returns {Uint8Array}
|
|
820
|
+
*/
|
|
821
|
+
inner(): Uint8Array;
|
|
822
|
+
/**
|
|
823
|
+
*/
|
|
824
|
+
readonly length: number;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
*/
|
|
828
|
+
export class Identity {
|
|
829
|
+
free(): void;
|
|
830
|
+
/**
|
|
831
|
+
* @param {any} raw_identity
|
|
832
|
+
*/
|
|
833
|
+
constructor(raw_identity: any);
|
|
834
|
+
/**
|
|
835
|
+
* @returns {number}
|
|
836
|
+
*/
|
|
837
|
+
getProtocolVersion(): number;
|
|
838
|
+
/**
|
|
839
|
+
* @returns {Identifier}
|
|
840
|
+
*/
|
|
841
|
+
getId(): Identifier;
|
|
842
|
+
/**
|
|
843
|
+
* @param {Array<any>} public_keys
|
|
844
|
+
* @returns {number}
|
|
845
|
+
*/
|
|
846
|
+
setPublicKeys(public_keys: Array<any>): number;
|
|
847
|
+
/**
|
|
848
|
+
* @returns {any[]}
|
|
849
|
+
*/
|
|
850
|
+
getPublicKeys(): any[];
|
|
851
|
+
/**
|
|
852
|
+
* @param {number} key_id
|
|
853
|
+
* @returns {IdentityPublicKey | undefined}
|
|
854
|
+
*/
|
|
855
|
+
getPublicKeyById(key_id: number): IdentityPublicKey | undefined;
|
|
856
|
+
/**
|
|
857
|
+
* @returns {number}
|
|
858
|
+
*/
|
|
859
|
+
getBalance(): number;
|
|
860
|
+
/**
|
|
861
|
+
* @param {number} balance
|
|
862
|
+
*/
|
|
863
|
+
setBalance(balance: number): void;
|
|
864
|
+
/**
|
|
865
|
+
* @param {number} amount
|
|
866
|
+
* @returns {number}
|
|
867
|
+
*/
|
|
868
|
+
increaseBalance(amount: number): number;
|
|
869
|
+
/**
|
|
870
|
+
* @param {number} amount
|
|
871
|
+
* @returns {number}
|
|
872
|
+
*/
|
|
873
|
+
reduceBalance(amount: number): number;
|
|
874
|
+
/**
|
|
875
|
+
* @param {any} lock
|
|
876
|
+
*/
|
|
877
|
+
setAssetLockProof(lock: any): void;
|
|
878
|
+
/**
|
|
879
|
+
* @returns {AssetLockProof | undefined}
|
|
880
|
+
*/
|
|
881
|
+
getAssetLockProof(): AssetLockProof | undefined;
|
|
882
|
+
/**
|
|
883
|
+
* @param {number} revision
|
|
884
|
+
*/
|
|
885
|
+
setRevision(revision: number): void;
|
|
886
|
+
/**
|
|
887
|
+
* @returns {number}
|
|
888
|
+
*/
|
|
889
|
+
getRevision(): number;
|
|
890
|
+
/**
|
|
891
|
+
* @param {Metadata} metadata
|
|
892
|
+
*/
|
|
893
|
+
setMetadata(metadata: Metadata): void;
|
|
894
|
+
/**
|
|
895
|
+
* @returns {Metadata | undefined}
|
|
896
|
+
*/
|
|
897
|
+
getMetadata(): Metadata | undefined;
|
|
898
|
+
/**
|
|
899
|
+
* @param {any} object
|
|
900
|
+
* @returns {Identity}
|
|
901
|
+
*/
|
|
902
|
+
static from(object: any): Identity;
|
|
903
|
+
/**
|
|
904
|
+
* @returns {any}
|
|
905
|
+
*/
|
|
906
|
+
toJSON(): any;
|
|
907
|
+
/**
|
|
908
|
+
* @param {boolean | undefined} _some_option
|
|
909
|
+
* @returns {any}
|
|
910
|
+
*/
|
|
911
|
+
toObject(_some_option?: boolean): any;
|
|
912
|
+
/**
|
|
913
|
+
* @returns {Uint8Array}
|
|
914
|
+
*/
|
|
915
|
+
toBuffer(): Uint8Array;
|
|
916
|
+
/**
|
|
917
|
+
* @returns {Uint8Array}
|
|
918
|
+
*/
|
|
919
|
+
hash(): Uint8Array;
|
|
920
|
+
/**
|
|
921
|
+
* @param {IdentityPublicKey} public_key
|
|
922
|
+
*/
|
|
923
|
+
addPublicKey(public_key: IdentityPublicKey): void;
|
|
924
|
+
/**
|
|
925
|
+
* @param {...any} js_public_keys
|
|
926
|
+
*/
|
|
927
|
+
addPublicKeys(...js_public_keys: any): void;
|
|
928
|
+
/**
|
|
929
|
+
* @returns {number}
|
|
930
|
+
*/
|
|
931
|
+
getPublicKeyMaxId(): number;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
*/
|
|
935
|
+
export class IdentityAlreadyExistsError {
|
|
936
|
+
free(): void;
|
|
937
|
+
/**
|
|
938
|
+
* @returns {any}
|
|
939
|
+
*/
|
|
940
|
+
getIdentityId(): any;
|
|
941
|
+
/**
|
|
942
|
+
* @returns {number}
|
|
943
|
+
*/
|
|
944
|
+
getCode(): number;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
*/
|
|
948
|
+
export class IdentityAssetLockProofLockedTransactionMismatchError {
|
|
949
|
+
free(): void;
|
|
950
|
+
/**
|
|
951
|
+
* @returns {any}
|
|
952
|
+
*/
|
|
953
|
+
getInstantLockTransactionId(): any;
|
|
954
|
+
/**
|
|
955
|
+
* @returns {any}
|
|
956
|
+
*/
|
|
957
|
+
getAssetLockTransactionId(): any;
|
|
958
|
+
/**
|
|
959
|
+
* @returns {number}
|
|
960
|
+
*/
|
|
961
|
+
getCode(): number;
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
*/
|
|
965
|
+
export class IdentityAssetLockTransactionIsNotFoundError {
|
|
966
|
+
free(): void;
|
|
967
|
+
/**
|
|
968
|
+
* @returns {any}
|
|
969
|
+
*/
|
|
970
|
+
getTransactionId(): any;
|
|
971
|
+
/**
|
|
972
|
+
* @returns {number}
|
|
973
|
+
*/
|
|
974
|
+
getCode(): number;
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
*/
|
|
978
|
+
export class IdentityAssetLockTransactionOutPointAlreadyExistsError {
|
|
979
|
+
free(): void;
|
|
980
|
+
/**
|
|
981
|
+
* @returns {number}
|
|
982
|
+
*/
|
|
983
|
+
getDuplicatedIds(): number;
|
|
984
|
+
/**
|
|
985
|
+
* @returns {any}
|
|
986
|
+
*/
|
|
987
|
+
getTransactionId(): any;
|
|
988
|
+
/**
|
|
989
|
+
* @returns {number}
|
|
990
|
+
*/
|
|
991
|
+
getCode(): number;
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
*/
|
|
995
|
+
export class IdentityAssetLockTransactionOutputNotFoundError {
|
|
996
|
+
free(): void;
|
|
997
|
+
/**
|
|
998
|
+
* @returns {number}
|
|
999
|
+
*/
|
|
1000
|
+
getOutputIndex(): number;
|
|
1001
|
+
/**
|
|
1002
|
+
* @returns {number}
|
|
1003
|
+
*/
|
|
1004
|
+
getCode(): number;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
*/
|
|
1008
|
+
export class IdentityFacade {
|
|
1009
|
+
free(): void;
|
|
1010
|
+
/**
|
|
1011
|
+
* @param {any} bls_adapter
|
|
1012
|
+
*/
|
|
1013
|
+
constructor(bls_adapter: any);
|
|
1014
|
+
/**
|
|
1015
|
+
* @param {any} raw_identity_object
|
|
1016
|
+
* @returns {ValidationResult}
|
|
1017
|
+
*/
|
|
1018
|
+
validate(raw_identity_object: any): ValidationResult;
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
*/
|
|
1022
|
+
export class IdentityInsufficientBalanceError {
|
|
1023
|
+
free(): void;
|
|
1024
|
+
/**
|
|
1025
|
+
* @returns {any}
|
|
1026
|
+
*/
|
|
1027
|
+
getIdentityId(): any;
|
|
1028
|
+
/**
|
|
1029
|
+
* @returns {number}
|
|
1030
|
+
*/
|
|
1031
|
+
getBalance(): number;
|
|
1032
|
+
/**
|
|
1033
|
+
* @returns {number}
|
|
1034
|
+
*/
|
|
1035
|
+
getCode(): number;
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
*/
|
|
1039
|
+
export class IdentityNotFoundError {
|
|
1040
|
+
free(): void;
|
|
1041
|
+
/**
|
|
1042
|
+
* @returns {any}
|
|
1043
|
+
*/
|
|
1044
|
+
getIdentityId(): any;
|
|
1045
|
+
/**
|
|
1046
|
+
* @returns {number}
|
|
1047
|
+
*/
|
|
1048
|
+
getCode(): number;
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
*/
|
|
1052
|
+
export class IdentityPublicKey {
|
|
1053
|
+
free(): void;
|
|
1054
|
+
/**
|
|
1055
|
+
* @param {any} raw_public_key
|
|
1056
|
+
*/
|
|
1057
|
+
constructor(raw_public_key: any);
|
|
1058
|
+
/**
|
|
1059
|
+
* @returns {number}
|
|
1060
|
+
*/
|
|
1061
|
+
getId(): number;
|
|
1062
|
+
/**
|
|
1063
|
+
* @param {number} id
|
|
1064
|
+
*/
|
|
1065
|
+
setId(id: number): void;
|
|
1066
|
+
/**
|
|
1067
|
+
* @returns {number}
|
|
1068
|
+
*/
|
|
1069
|
+
getType(): number;
|
|
1070
|
+
/**
|
|
1071
|
+
* @param {number} key_type
|
|
1072
|
+
*/
|
|
1073
|
+
setType(key_type: number): void;
|
|
1074
|
+
/**
|
|
1075
|
+
* @param {Uint8Array} data
|
|
1076
|
+
*/
|
|
1077
|
+
setData(data: Uint8Array): void;
|
|
1078
|
+
/**
|
|
1079
|
+
* @returns {Uint8Array}
|
|
1080
|
+
*/
|
|
1081
|
+
getData(): Uint8Array;
|
|
1082
|
+
/**
|
|
1083
|
+
* @param {number} purpose
|
|
1084
|
+
*/
|
|
1085
|
+
setPurpose(purpose: number): void;
|
|
1086
|
+
/**
|
|
1087
|
+
* @returns {number}
|
|
1088
|
+
*/
|
|
1089
|
+
getPurpose(): number;
|
|
1090
|
+
/**
|
|
1091
|
+
* @param {number} purpose
|
|
1092
|
+
*/
|
|
1093
|
+
setSecurityLevel(purpose: number): void;
|
|
1094
|
+
/**
|
|
1095
|
+
* @returns {number}
|
|
1096
|
+
*/
|
|
1097
|
+
getSecurityLevel(): number;
|
|
1098
|
+
/**
|
|
1099
|
+
* @param {boolean} purpose
|
|
1100
|
+
*/
|
|
1101
|
+
setReadOnly(purpose: boolean): void;
|
|
1102
|
+
/**
|
|
1103
|
+
* @returns {boolean}
|
|
1104
|
+
*/
|
|
1105
|
+
isReadOnly(): boolean;
|
|
1106
|
+
/**
|
|
1107
|
+
* @param {number} timestamp
|
|
1108
|
+
*/
|
|
1109
|
+
setDisabledAt(timestamp: number): void;
|
|
1110
|
+
/**
|
|
1111
|
+
* @returns {number | undefined}
|
|
1112
|
+
*/
|
|
1113
|
+
getDisabledAt(): number | undefined;
|
|
1114
|
+
/**
|
|
1115
|
+
* @returns {Uint8Array}
|
|
1116
|
+
*/
|
|
1117
|
+
hash(): Uint8Array;
|
|
1118
|
+
/**
|
|
1119
|
+
* @returns {boolean}
|
|
1120
|
+
*/
|
|
1121
|
+
isMaster(): boolean;
|
|
1122
|
+
/**
|
|
1123
|
+
* @returns {any}
|
|
1124
|
+
*/
|
|
1125
|
+
toJSON(): any;
|
|
1126
|
+
/**
|
|
1127
|
+
* @param {boolean | undefined} some_option
|
|
1128
|
+
* @returns {any}
|
|
1129
|
+
*/
|
|
1130
|
+
toObject(some_option?: boolean): any;
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
*/
|
|
1134
|
+
export class IdentityPublicKeyDisabledAtWindowViolationError {
|
|
1135
|
+
free(): void;
|
|
1136
|
+
/**
|
|
1137
|
+
* @returns {Date}
|
|
1138
|
+
*/
|
|
1139
|
+
getDisabledAt(): Date;
|
|
1140
|
+
/**
|
|
1141
|
+
* @returns {Date}
|
|
1142
|
+
*/
|
|
1143
|
+
getTimeWindowStart(): Date;
|
|
1144
|
+
/**
|
|
1145
|
+
* @returns {Date}
|
|
1146
|
+
*/
|
|
1147
|
+
getTimeWindowEnd(): Date;
|
|
1148
|
+
/**
|
|
1149
|
+
* @returns {number}
|
|
1150
|
+
*/
|
|
1151
|
+
getCode(): number;
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
*/
|
|
1155
|
+
export class IdentityPublicKeyIsDisabledError {
|
|
1156
|
+
free(): void;
|
|
1157
|
+
/**
|
|
1158
|
+
* @returns {number}
|
|
1159
|
+
*/
|
|
1160
|
+
getPublicKeyIndex(): number;
|
|
1161
|
+
/**
|
|
1162
|
+
* @returns {number}
|
|
1163
|
+
*/
|
|
1164
|
+
getCode(): number;
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
*/
|
|
1168
|
+
export class IdentityPublicKeyIsReadOnlyError {
|
|
1169
|
+
free(): void;
|
|
1170
|
+
/**
|
|
1171
|
+
* @returns {number}
|
|
1172
|
+
*/
|
|
1173
|
+
getKeyId(): number;
|
|
1174
|
+
/**
|
|
1175
|
+
* @returns {number}
|
|
1176
|
+
*/
|
|
1177
|
+
getCode(): number;
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
*/
|
|
1181
|
+
export class IncompatibleDataContractSchemaError {
|
|
1182
|
+
free(): void;
|
|
1183
|
+
/**
|
|
1184
|
+
* @returns {any}
|
|
1185
|
+
*/
|
|
1186
|
+
getDataContractId(): any;
|
|
1187
|
+
/**
|
|
1188
|
+
* @returns {string}
|
|
1189
|
+
*/
|
|
1190
|
+
getOperation(): string;
|
|
1191
|
+
/**
|
|
1192
|
+
* @returns {string}
|
|
1193
|
+
*/
|
|
1194
|
+
getFieldPath(): string;
|
|
1195
|
+
/**
|
|
1196
|
+
* @returns {any}
|
|
1197
|
+
*/
|
|
1198
|
+
getOldSchema(): any;
|
|
1199
|
+
/**
|
|
1200
|
+
* @returns {any}
|
|
1201
|
+
*/
|
|
1202
|
+
getNewSchema(): any;
|
|
1203
|
+
/**
|
|
1204
|
+
* @returns {number}
|
|
1205
|
+
*/
|
|
1206
|
+
getCode(): number;
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
*/
|
|
1210
|
+
export class IncompatibleProtocolVersionError {
|
|
1211
|
+
free(): void;
|
|
1212
|
+
/**
|
|
1213
|
+
* @returns {number}
|
|
1214
|
+
*/
|
|
1215
|
+
getParsedProtocolVersion(): number;
|
|
1216
|
+
/**
|
|
1217
|
+
* @returns {number}
|
|
1218
|
+
*/
|
|
1219
|
+
getMinimalProtocolVersion(): number;
|
|
1220
|
+
/**
|
|
1221
|
+
* @returns {number}
|
|
1222
|
+
*/
|
|
1223
|
+
getCode(): number;
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
*/
|
|
1227
|
+
export class IncompatibleRe2PatternError {
|
|
1228
|
+
free(): void;
|
|
1229
|
+
/**
|
|
1230
|
+
* @returns {string}
|
|
1231
|
+
*/
|
|
1232
|
+
getPattern(): string;
|
|
1233
|
+
/**
|
|
1234
|
+
* @returns {string}
|
|
1235
|
+
*/
|
|
1236
|
+
getPath(): string;
|
|
1237
|
+
/**
|
|
1238
|
+
* @returns {string}
|
|
1239
|
+
*/
|
|
1240
|
+
getMessage(): string;
|
|
1241
|
+
/**
|
|
1242
|
+
* @returns {number}
|
|
1243
|
+
*/
|
|
1244
|
+
getCode(): number;
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
*/
|
|
1248
|
+
export class InconsistentCompoundIndexDataError {
|
|
1249
|
+
free(): void;
|
|
1250
|
+
/**
|
|
1251
|
+
* @returns {Array<any>}
|
|
1252
|
+
*/
|
|
1253
|
+
getIndexProperties(): Array<any>;
|
|
1254
|
+
/**
|
|
1255
|
+
* @returns {string}
|
|
1256
|
+
*/
|
|
1257
|
+
getDocumentType(): string;
|
|
1258
|
+
/**
|
|
1259
|
+
* @returns {number}
|
|
1260
|
+
*/
|
|
1261
|
+
getCode(): number;
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
*/
|
|
1265
|
+
export class IndexDefinition {
|
|
1266
|
+
free(): void;
|
|
1267
|
+
/**
|
|
1268
|
+
* @returns {string}
|
|
1269
|
+
*/
|
|
1270
|
+
getName(): string;
|
|
1271
|
+
/**
|
|
1272
|
+
* @returns {any[]}
|
|
1273
|
+
*/
|
|
1274
|
+
getProperties(): any[];
|
|
1275
|
+
/**
|
|
1276
|
+
* @returns {boolean}
|
|
1277
|
+
*/
|
|
1278
|
+
isUnique(): boolean;
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
*/
|
|
1282
|
+
export class IndexProperty {
|
|
1283
|
+
free(): void;
|
|
1284
|
+
/**
|
|
1285
|
+
* @returns {string}
|
|
1286
|
+
*/
|
|
1287
|
+
getName(): string;
|
|
1288
|
+
/**
|
|
1289
|
+
* @returns {boolean}
|
|
1290
|
+
*/
|
|
1291
|
+
isAscending(): boolean;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
*/
|
|
1295
|
+
export class InvalidActionNameError {
|
|
1296
|
+
free(): void;
|
|
1297
|
+
/**
|
|
1298
|
+
* @param {any[]} actions
|
|
1299
|
+
*/
|
|
1300
|
+
constructor(actions: any[]);
|
|
1301
|
+
/**
|
|
1302
|
+
* @returns {any[]}
|
|
1303
|
+
*/
|
|
1304
|
+
getActions(): any[];
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
*/
|
|
1308
|
+
export class InvalidAssetLockProofCoreChainHeightError {
|
|
1309
|
+
free(): void;
|
|
1310
|
+
/**
|
|
1311
|
+
* @returns {number}
|
|
1312
|
+
*/
|
|
1313
|
+
getProofCoreChainLockedHeight(): number;
|
|
1314
|
+
/**
|
|
1315
|
+
* @returns {number}
|
|
1316
|
+
*/
|
|
1317
|
+
getCurrentCoreChainLockedHeight(): number;
|
|
1318
|
+
/**
|
|
1319
|
+
* @returns {number}
|
|
1320
|
+
*/
|
|
1321
|
+
getCode(): number;
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
*/
|
|
1325
|
+
export class InvalidAssetLockProofTransactionHeightError {
|
|
1326
|
+
free(): void;
|
|
1327
|
+
/**
|
|
1328
|
+
* @returns {number}
|
|
1329
|
+
*/
|
|
1330
|
+
getProofCoreChainLockedHeight(): number;
|
|
1331
|
+
/**
|
|
1332
|
+
* @returns {number | undefined}
|
|
1333
|
+
*/
|
|
1334
|
+
getCurrentCoreChainLockedHeight(): number | undefined;
|
|
1335
|
+
/**
|
|
1336
|
+
* @returns {number}
|
|
1337
|
+
*/
|
|
1338
|
+
getCode(): number;
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
*/
|
|
1342
|
+
export class InvalidAssetLockTransactionOutputReturnSizeError {
|
|
1343
|
+
free(): void;
|
|
1344
|
+
/**
|
|
1345
|
+
* @returns {number}
|
|
1346
|
+
*/
|
|
1347
|
+
getOutputIndex(): number;
|
|
1348
|
+
/**
|
|
1349
|
+
* @returns {number}
|
|
1350
|
+
*/
|
|
1351
|
+
getCode(): number;
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
*/
|
|
1355
|
+
export class InvalidCompoundIndexError {
|
|
1356
|
+
free(): void;
|
|
1357
|
+
/**
|
|
1358
|
+
* @returns {string}
|
|
1359
|
+
*/
|
|
1360
|
+
getDocumentType(): string;
|
|
1361
|
+
/**
|
|
1362
|
+
* @returns {any}
|
|
1363
|
+
*/
|
|
1364
|
+
getIndexDefinition(): any;
|
|
1365
|
+
/**
|
|
1366
|
+
* @returns {number}
|
|
1367
|
+
*/
|
|
1368
|
+
getCode(): number;
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
*/
|
|
1372
|
+
export class InvalidDataContractError {
|
|
1373
|
+
free(): void;
|
|
1374
|
+
/**
|
|
1375
|
+
* @param {any[]} errors
|
|
1376
|
+
* @param {any} raw_data_contract
|
|
1377
|
+
* @returns {InvalidDataContractError}
|
|
1378
|
+
*/
|
|
1379
|
+
static new(errors: any[], raw_data_contract: any): InvalidDataContractError;
|
|
1380
|
+
/**
|
|
1381
|
+
* @returns {any[]}
|
|
1382
|
+
*/
|
|
1383
|
+
getErrors(): any[];
|
|
1384
|
+
/**
|
|
1385
|
+
* @returns {any}
|
|
1386
|
+
*/
|
|
1387
|
+
getRawDataContract(): any;
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
*/
|
|
1391
|
+
export class InvalidDataContractIdError {
|
|
1392
|
+
free(): void;
|
|
1393
|
+
/**
|
|
1394
|
+
* @returns {any}
|
|
1395
|
+
*/
|
|
1396
|
+
getExpectedId(): any;
|
|
1397
|
+
/**
|
|
1398
|
+
* @returns {any}
|
|
1399
|
+
*/
|
|
1400
|
+
getInvalidId(): any;
|
|
1401
|
+
/**
|
|
1402
|
+
* @returns {number}
|
|
1403
|
+
*/
|
|
1404
|
+
getCode(): number;
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
*/
|
|
1408
|
+
export class InvalidDataContractVersionError {
|
|
1409
|
+
free(): void;
|
|
1410
|
+
/**
|
|
1411
|
+
* @returns {number}
|
|
1412
|
+
*/
|
|
1413
|
+
getExpectedVersion(): number;
|
|
1414
|
+
/**
|
|
1415
|
+
* @returns {number}
|
|
1416
|
+
*/
|
|
1417
|
+
getVersion(): number;
|
|
1418
|
+
/**
|
|
1419
|
+
* @returns {number}
|
|
1420
|
+
*/
|
|
1421
|
+
getCode(): number;
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
*/
|
|
1425
|
+
export class InvalidDocumentActionError {
|
|
1426
|
+
free(): void;
|
|
1427
|
+
/**
|
|
1428
|
+
* @returns {any}
|
|
1429
|
+
*/
|
|
1430
|
+
getDocumentTransition(): any;
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
*/
|
|
1434
|
+
export class InvalidDocumentError {
|
|
1435
|
+
free(): void;
|
|
1436
|
+
/**
|
|
1437
|
+
* @param {Document} document
|
|
1438
|
+
* @param {any[]} errors
|
|
1439
|
+
*/
|
|
1440
|
+
constructor(document: Document, errors: any[]);
|
|
1441
|
+
/**
|
|
1442
|
+
* @returns {any[]}
|
|
1443
|
+
*/
|
|
1444
|
+
getErrors(): any[];
|
|
1445
|
+
/**
|
|
1446
|
+
* @returns {Document}
|
|
1447
|
+
*/
|
|
1448
|
+
getDocument(): Document;
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
*/
|
|
1452
|
+
export class InvalidDocumentRevisionError {
|
|
1453
|
+
free(): void;
|
|
1454
|
+
/**
|
|
1455
|
+
* @returns {any}
|
|
1456
|
+
*/
|
|
1457
|
+
getDocumentId(): any;
|
|
1458
|
+
/**
|
|
1459
|
+
* @returns {number}
|
|
1460
|
+
*/
|
|
1461
|
+
getCurrentRevision(): number;
|
|
1462
|
+
/**
|
|
1463
|
+
* @returns {number}
|
|
1464
|
+
*/
|
|
1465
|
+
getCode(): number;
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
*/
|
|
1469
|
+
export class InvalidDocumentTransitionActionError {
|
|
1470
|
+
free(): void;
|
|
1471
|
+
/**
|
|
1472
|
+
* @returns {string}
|
|
1473
|
+
*/
|
|
1474
|
+
getAction(): string;
|
|
1475
|
+
/**
|
|
1476
|
+
* @returns {number}
|
|
1477
|
+
*/
|
|
1478
|
+
getCode(): number;
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
*/
|
|
1482
|
+
export class InvalidDocumentTransitionIdError {
|
|
1483
|
+
free(): void;
|
|
1484
|
+
/**
|
|
1485
|
+
* @returns {any}
|
|
1486
|
+
*/
|
|
1487
|
+
getExpectedId(): any;
|
|
1488
|
+
/**
|
|
1489
|
+
* @returns {any}
|
|
1490
|
+
*/
|
|
1491
|
+
getInvalidId(): any;
|
|
1492
|
+
/**
|
|
1493
|
+
* @returns {number}
|
|
1494
|
+
*/
|
|
1495
|
+
getCode(): number;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
*/
|
|
1499
|
+
export class InvalidDocumentTypeError {
|
|
1500
|
+
free(): void;
|
|
1501
|
+
/**
|
|
1502
|
+
* @returns {string}
|
|
1503
|
+
*/
|
|
1504
|
+
getDocumentType(): string;
|
|
1505
|
+
/**
|
|
1506
|
+
* @returns {any}
|
|
1507
|
+
*/
|
|
1508
|
+
getDataContractId(): any;
|
|
1509
|
+
/**
|
|
1510
|
+
* @returns {number}
|
|
1511
|
+
*/
|
|
1512
|
+
getCode(): number;
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
*/
|
|
1516
|
+
export class InvalidDocumentTypeInDataContractError {
|
|
1517
|
+
free(): void;
|
|
1518
|
+
/**
|
|
1519
|
+
* @param {string} doc_type
|
|
1520
|
+
* @param {DataContract} data_contract
|
|
1521
|
+
*/
|
|
1522
|
+
constructor(doc_type: string, data_contract: DataContract);
|
|
1523
|
+
/**
|
|
1524
|
+
* @returns {string}
|
|
1525
|
+
*/
|
|
1526
|
+
getDocType(): string;
|
|
1527
|
+
/**
|
|
1528
|
+
* @returns {DataContract}
|
|
1529
|
+
*/
|
|
1530
|
+
getDataContract(): DataContract;
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
*/
|
|
1534
|
+
export class InvalidIdentifierError {
|
|
1535
|
+
free(): void;
|
|
1536
|
+
/**
|
|
1537
|
+
* @returns {string}
|
|
1538
|
+
*/
|
|
1539
|
+
getIdentifierName(): string;
|
|
1540
|
+
/**
|
|
1541
|
+
* @returns {string}
|
|
1542
|
+
*/
|
|
1543
|
+
getError(): string;
|
|
1544
|
+
/**
|
|
1545
|
+
* @returns {number}
|
|
1546
|
+
*/
|
|
1547
|
+
getCode(): number;
|
|
1548
|
+
}
|
|
1549
|
+
/**
|
|
1550
|
+
*/
|
|
1551
|
+
export class InvalidIdentityAssetLockTransactionError {
|
|
1552
|
+
free(): void;
|
|
1553
|
+
/**
|
|
1554
|
+
* @returns {any}
|
|
1555
|
+
*/
|
|
1556
|
+
getValidationError(): any;
|
|
1557
|
+
/**
|
|
1558
|
+
* @returns {string}
|
|
1559
|
+
*/
|
|
1560
|
+
getMessage(): string;
|
|
1561
|
+
/**
|
|
1562
|
+
* @returns {number}
|
|
1563
|
+
*/
|
|
1564
|
+
getCode(): number;
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
*/
|
|
1568
|
+
export class InvalidIdentityAssetLockTransactionOutputError {
|
|
1569
|
+
free(): void;
|
|
1570
|
+
/**
|
|
1571
|
+
* @returns {number}
|
|
1572
|
+
*/
|
|
1573
|
+
getOutputIndex(): number;
|
|
1574
|
+
/**
|
|
1575
|
+
* @returns {number}
|
|
1576
|
+
*/
|
|
1577
|
+
getCode(): number;
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
*/
|
|
1581
|
+
export class InvalidIdentityCreditWithdrawalTransitionCoreFeeError {
|
|
1582
|
+
free(): void;
|
|
1583
|
+
/**
|
|
1584
|
+
* @returns {number}
|
|
1585
|
+
*/
|
|
1586
|
+
getCoreFee(): number;
|
|
1587
|
+
/**
|
|
1588
|
+
* @returns {number}
|
|
1589
|
+
*/
|
|
1590
|
+
getCode(): number;
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
*/
|
|
1594
|
+
export class InvalidIdentityCreditWithdrawalTransitionOutputScriptError {
|
|
1595
|
+
free(): void;
|
|
1596
|
+
/**
|
|
1597
|
+
* @returns {any}
|
|
1598
|
+
*/
|
|
1599
|
+
getOutputScript(): any;
|
|
1600
|
+
/**
|
|
1601
|
+
* @returns {number}
|
|
1602
|
+
*/
|
|
1603
|
+
getCode(): number;
|
|
1604
|
+
}
|
|
1605
|
+
/**
|
|
1606
|
+
*/
|
|
1607
|
+
export class InvalidIdentityKeySignatureError {
|
|
1608
|
+
free(): void;
|
|
1609
|
+
/**
|
|
1610
|
+
* @returns {number}
|
|
1611
|
+
*/
|
|
1612
|
+
getPublicKeyId(): number;
|
|
1613
|
+
/**
|
|
1614
|
+
* @returns {number}
|
|
1615
|
+
*/
|
|
1616
|
+
getCode(): number;
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
*/
|
|
1620
|
+
export class InvalidIdentityPublicKeyDataError {
|
|
1621
|
+
free(): void;
|
|
1622
|
+
/**
|
|
1623
|
+
* @returns {number}
|
|
1624
|
+
*/
|
|
1625
|
+
getPublicKeyId(): number;
|
|
1626
|
+
/**
|
|
1627
|
+
* @returns {PublicKeyValidationError | undefined}
|
|
1628
|
+
*/
|
|
1629
|
+
getValidationError(): PublicKeyValidationError | undefined;
|
|
1630
|
+
/**
|
|
1631
|
+
* @returns {number}
|
|
1632
|
+
*/
|
|
1633
|
+
getCode(): number;
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
*/
|
|
1637
|
+
export class InvalidIdentityPublicKeyIdError {
|
|
1638
|
+
free(): void;
|
|
1639
|
+
/**
|
|
1640
|
+
* @returns {number}
|
|
1641
|
+
*/
|
|
1642
|
+
getId(): number;
|
|
1643
|
+
/**
|
|
1644
|
+
* @returns {number}
|
|
1645
|
+
*/
|
|
1646
|
+
getCode(): number;
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
*/
|
|
1650
|
+
export class InvalidIdentityPublicKeySecurityLevelError {
|
|
1651
|
+
free(): void;
|
|
1652
|
+
/**
|
|
1653
|
+
* @returns {number}
|
|
1654
|
+
*/
|
|
1655
|
+
getPublicKeyId(): number;
|
|
1656
|
+
/**
|
|
1657
|
+
* @returns {number}
|
|
1658
|
+
*/
|
|
1659
|
+
getPurpose(): number;
|
|
1660
|
+
/**
|
|
1661
|
+
* @returns {number}
|
|
1662
|
+
*/
|
|
1663
|
+
getSecurityLevel(): number;
|
|
1664
|
+
/**
|
|
1665
|
+
* @returns {number}
|
|
1666
|
+
*/
|
|
1667
|
+
getCode(): number;
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
*/
|
|
1671
|
+
export class InvalidIdentityPublicKeyTypeError {
|
|
1672
|
+
free(): void;
|
|
1673
|
+
/**
|
|
1674
|
+
* @returns {number}
|
|
1675
|
+
*/
|
|
1676
|
+
getPublicKeyType(): number;
|
|
1677
|
+
/**
|
|
1678
|
+
* @returns {number}
|
|
1679
|
+
*/
|
|
1680
|
+
getCode(): number;
|
|
1681
|
+
}
|
|
1682
|
+
/**
|
|
1683
|
+
*/
|
|
1684
|
+
export class InvalidIdentityRevisionError {
|
|
1685
|
+
free(): void;
|
|
1686
|
+
/**
|
|
1687
|
+
* @returns {any}
|
|
1688
|
+
*/
|
|
1689
|
+
getIdentityId(): any;
|
|
1690
|
+
/**
|
|
1691
|
+
* @returns {number}
|
|
1692
|
+
*/
|
|
1693
|
+
getCurrentRevision(): number;
|
|
1694
|
+
/**
|
|
1695
|
+
* @returns {number}
|
|
1696
|
+
*/
|
|
1697
|
+
getCode(): number;
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
*/
|
|
1701
|
+
export class InvalidIndexPropertyTypeError {
|
|
1702
|
+
free(): void;
|
|
1703
|
+
/**
|
|
1704
|
+
* @returns {string}
|
|
1705
|
+
*/
|
|
1706
|
+
getDocumentType(): string;
|
|
1707
|
+
/**
|
|
1708
|
+
* @returns {any}
|
|
1709
|
+
*/
|
|
1710
|
+
getIndexDefinition(): any;
|
|
1711
|
+
/**
|
|
1712
|
+
* @returns {string}
|
|
1713
|
+
*/
|
|
1714
|
+
getPropertyName(): string;
|
|
1715
|
+
/**
|
|
1716
|
+
* @returns {string}
|
|
1717
|
+
*/
|
|
1718
|
+
getPropertyType(): string;
|
|
1719
|
+
/**
|
|
1720
|
+
* @returns {number}
|
|
1721
|
+
*/
|
|
1722
|
+
getCode(): number;
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
*/
|
|
1726
|
+
export class InvalidIndexedPropertyConstraintError {
|
|
1727
|
+
free(): void;
|
|
1728
|
+
/**
|
|
1729
|
+
* @returns {string}
|
|
1730
|
+
*/
|
|
1731
|
+
getDocumentType(): string;
|
|
1732
|
+
/**
|
|
1733
|
+
* @returns {any}
|
|
1734
|
+
*/
|
|
1735
|
+
getIndexDefinition(): any;
|
|
1736
|
+
/**
|
|
1737
|
+
* @returns {string}
|
|
1738
|
+
*/
|
|
1739
|
+
getPropertyName(): string;
|
|
1740
|
+
/**
|
|
1741
|
+
* @returns {string}
|
|
1742
|
+
*/
|
|
1743
|
+
getConstraintName(): string;
|
|
1744
|
+
/**
|
|
1745
|
+
* @returns {string}
|
|
1746
|
+
*/
|
|
1747
|
+
getReason(): string;
|
|
1748
|
+
/**
|
|
1749
|
+
* @returns {number}
|
|
1750
|
+
*/
|
|
1751
|
+
getCode(): number;
|
|
1752
|
+
}
|
|
1753
|
+
/**
|
|
1754
|
+
*/
|
|
1755
|
+
export class InvalidInitialRevisionError {
|
|
1756
|
+
free(): void;
|
|
1757
|
+
/**
|
|
1758
|
+
* @param {Document} document
|
|
1759
|
+
*/
|
|
1760
|
+
constructor(document: Document);
|
|
1761
|
+
/**
|
|
1762
|
+
* @returns {Document}
|
|
1763
|
+
*/
|
|
1764
|
+
getDocumentTransition(): Document;
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
*/
|
|
1768
|
+
export class InvalidInstantAssetLockProofError {
|
|
1769
|
+
free(): void;
|
|
1770
|
+
/**
|
|
1771
|
+
* @returns {number}
|
|
1772
|
+
*/
|
|
1773
|
+
getCode(): number;
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
*/
|
|
1777
|
+
export class InvalidInstantAssetLockProofSignatureError {
|
|
1778
|
+
free(): void;
|
|
1779
|
+
/**
|
|
1780
|
+
* @returns {number}
|
|
1781
|
+
*/
|
|
1782
|
+
getCode(): number;
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
*/
|
|
1786
|
+
export class InvalidJsonSchemaRefError {
|
|
1787
|
+
free(): void;
|
|
1788
|
+
/**
|
|
1789
|
+
* @returns {string}
|
|
1790
|
+
*/
|
|
1791
|
+
getRefError(): string;
|
|
1792
|
+
/**
|
|
1793
|
+
* @returns {number}
|
|
1794
|
+
*/
|
|
1795
|
+
getCode(): number;
|
|
1796
|
+
}
|
|
1797
|
+
/**
|
|
1798
|
+
*/
|
|
1799
|
+
export class InvalidSignaturePublicKeySecurityLevelError {
|
|
1800
|
+
free(): void;
|
|
1801
|
+
/**
|
|
1802
|
+
* @returns {number}
|
|
1803
|
+
*/
|
|
1804
|
+
getPublicKeySecurityLevel(): number;
|
|
1805
|
+
/**
|
|
1806
|
+
* @returns {number}
|
|
1807
|
+
*/
|
|
1808
|
+
getRequiredKeySecurityLevel(): number;
|
|
1809
|
+
/**
|
|
1810
|
+
* @returns {number}
|
|
1811
|
+
*/
|
|
1812
|
+
getCode(): number;
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
*/
|
|
1816
|
+
export class InvalidStateTransitionSignatureError {
|
|
1817
|
+
free(): void;
|
|
1818
|
+
/**
|
|
1819
|
+
* @returns {number}
|
|
1820
|
+
*/
|
|
1821
|
+
getCode(): number;
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
*/
|
|
1825
|
+
export class InvalidStateTransitionTypeError {
|
|
1826
|
+
free(): void;
|
|
1827
|
+
/**
|
|
1828
|
+
* @returns {number}
|
|
1829
|
+
*/
|
|
1830
|
+
getTransitionType(): number;
|
|
1831
|
+
/**
|
|
1832
|
+
* @returns {number}
|
|
1833
|
+
*/
|
|
1834
|
+
getCode(): number;
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
*/
|
|
1838
|
+
export class JsonSchemaCompilationError {
|
|
1839
|
+
free(): void;
|
|
1840
|
+
/**
|
|
1841
|
+
* @returns {string}
|
|
1842
|
+
*/
|
|
1843
|
+
getError(): string;
|
|
1844
|
+
/**
|
|
1845
|
+
* @returns {number}
|
|
1846
|
+
*/
|
|
1847
|
+
getCode(): number;
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
*/
|
|
1851
|
+
export class JsonSchemaError {
|
|
1852
|
+
free(): void;
|
|
1853
|
+
/**
|
|
1854
|
+
* @returns {string}
|
|
1855
|
+
*/
|
|
1856
|
+
getKeyword(): string;
|
|
1857
|
+
/**
|
|
1858
|
+
* @returns {string}
|
|
1859
|
+
*/
|
|
1860
|
+
getInstancePath(): string;
|
|
1861
|
+
/**
|
|
1862
|
+
* @returns {string}
|
|
1863
|
+
*/
|
|
1864
|
+
getSchemaPath(): string;
|
|
1865
|
+
/**
|
|
1866
|
+
* @returns {string}
|
|
1867
|
+
*/
|
|
1868
|
+
getPropertyName(): string;
|
|
1869
|
+
/**
|
|
1870
|
+
* @returns {any}
|
|
1871
|
+
*/
|
|
1872
|
+
getParams(): any;
|
|
1873
|
+
/**
|
|
1874
|
+
* @returns {number}
|
|
1875
|
+
*/
|
|
1876
|
+
getCode(): number;
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
*/
|
|
1880
|
+
export class MaxIdentityPublicKeyLimitReachedError {
|
|
1881
|
+
free(): void;
|
|
1882
|
+
/**
|
|
1883
|
+
* @returns {number}
|
|
1884
|
+
*/
|
|
1885
|
+
getIdentityId(): number;
|
|
1886
|
+
/**
|
|
1887
|
+
* @returns {number}
|
|
1888
|
+
*/
|
|
1889
|
+
getCode(): number;
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
*/
|
|
1893
|
+
export class Metadata {
|
|
1894
|
+
free(): void;
|
|
1895
|
+
/**
|
|
1896
|
+
* @param {any} block_height
|
|
1897
|
+
* @param {any} core_chain_locked_height
|
|
1898
|
+
*/
|
|
1899
|
+
constructor(block_height: any, core_chain_locked_height: any);
|
|
1900
|
+
/**
|
|
1901
|
+
* @param {any} object
|
|
1902
|
+
* @returns {Metadata}
|
|
1903
|
+
*/
|
|
1904
|
+
static from(object: any): Metadata;
|
|
1905
|
+
/**
|
|
1906
|
+
* @returns {any}
|
|
1907
|
+
*/
|
|
1908
|
+
toJSON(): any;
|
|
1909
|
+
/**
|
|
1910
|
+
* @returns {any}
|
|
1911
|
+
*/
|
|
1912
|
+
toObject(): any;
|
|
1913
|
+
}
|
|
1914
|
+
/**
|
|
1915
|
+
*/
|
|
1916
|
+
export class MismatchOwnersIdsError {
|
|
1917
|
+
free(): void;
|
|
1918
|
+
/**
|
|
1919
|
+
* @param {any[]} documents
|
|
1920
|
+
*/
|
|
1921
|
+
constructor(documents: any[]);
|
|
1922
|
+
/**
|
|
1923
|
+
* @returns {any[]}
|
|
1924
|
+
*/
|
|
1925
|
+
getDocumentTransition(): any[];
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
*/
|
|
1929
|
+
export class MissingDataContractIdError {
|
|
1930
|
+
free(): void;
|
|
1931
|
+
/**
|
|
1932
|
+
* @returns {number}
|
|
1933
|
+
*/
|
|
1934
|
+
getCode(): number;
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
*/
|
|
1938
|
+
export class MissingDocumentTransitionActionError {
|
|
1939
|
+
free(): void;
|
|
1940
|
+
/**
|
|
1941
|
+
* @returns {number}
|
|
1942
|
+
*/
|
|
1943
|
+
getCode(): number;
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
*/
|
|
1947
|
+
export class MissingDocumentTypeError {
|
|
1948
|
+
free(): void;
|
|
1949
|
+
/**
|
|
1950
|
+
* @returns {number}
|
|
1951
|
+
*/
|
|
1952
|
+
getCode(): number;
|
|
1953
|
+
}
|
|
1954
|
+
/**
|
|
1955
|
+
*/
|
|
1956
|
+
export class MissingMasterPublicKeyError {
|
|
1957
|
+
free(): void;
|
|
1958
|
+
/**
|
|
1959
|
+
* @returns {number}
|
|
1960
|
+
*/
|
|
1961
|
+
getCode(): number;
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
*/
|
|
1965
|
+
export class MissingPublicKeyError {
|
|
1966
|
+
free(): void;
|
|
1967
|
+
/**
|
|
1968
|
+
* @returns {bigint}
|
|
1969
|
+
*/
|
|
1970
|
+
getPublicKeyId(): bigint;
|
|
1971
|
+
/**
|
|
1972
|
+
* @returns {number}
|
|
1973
|
+
*/
|
|
1974
|
+
getCode(): number;
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
*/
|
|
1978
|
+
export class MissingStateTransitionTypeError {
|
|
1979
|
+
free(): void;
|
|
1980
|
+
/**
|
|
1981
|
+
* @returns {number}
|
|
1982
|
+
*/
|
|
1983
|
+
getCode(): number;
|
|
1984
|
+
}
|
|
1985
|
+
/**
|
|
1986
|
+
*/
|
|
1987
|
+
export class NonConsensusErrorWasm {
|
|
1988
|
+
free(): void;
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
*/
|
|
1992
|
+
export class NotDocumentsSuppliedError {
|
|
1993
|
+
free(): void;
|
|
1994
|
+
/**
|
|
1995
|
+
*/
|
|
1996
|
+
constructor();
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
*/
|
|
2000
|
+
export class ProtocolVersionParsingError {
|
|
2001
|
+
free(): void;
|
|
2002
|
+
/**
|
|
2003
|
+
* @returns {any}
|
|
2004
|
+
*/
|
|
2005
|
+
getParsingError(): any;
|
|
2006
|
+
/**
|
|
2007
|
+
* @returns {number}
|
|
2008
|
+
*/
|
|
2009
|
+
getCode(): number;
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
*/
|
|
2013
|
+
export class PublicKeyIsDisabledError {
|
|
2014
|
+
free(): void;
|
|
2015
|
+
/**
|
|
2016
|
+
* @returns {bigint}
|
|
2017
|
+
*/
|
|
2018
|
+
getPublicKeyId(): bigint;
|
|
2019
|
+
/**
|
|
2020
|
+
* @returns {number}
|
|
2021
|
+
*/
|
|
2022
|
+
getCode(): number;
|
|
2023
|
+
}
|
|
2024
|
+
/**
|
|
2025
|
+
*/
|
|
2026
|
+
export class PublicKeySecurityLevelNotMetError {
|
|
2027
|
+
free(): void;
|
|
2028
|
+
/**
|
|
2029
|
+
* @returns {number}
|
|
2030
|
+
*/
|
|
2031
|
+
getPublicKeySecurityLevel(): number;
|
|
2032
|
+
/**
|
|
2033
|
+
* @returns {number}
|
|
2034
|
+
*/
|
|
2035
|
+
getRequiredSecurityLevel(): number;
|
|
2036
|
+
/**
|
|
2037
|
+
* @returns {number}
|
|
2038
|
+
*/
|
|
2039
|
+
getCode(): number;
|
|
2040
|
+
}
|
|
2041
|
+
/**
|
|
2042
|
+
*/
|
|
2043
|
+
export class PublicKeyValidationError {
|
|
2044
|
+
free(): void;
|
|
2045
|
+
/**
|
|
2046
|
+
*/
|
|
2047
|
+
readonly message: any;
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
*/
|
|
2051
|
+
export class PublicKeysValidator {
|
|
2052
|
+
free(): void;
|
|
2053
|
+
/**
|
|
2054
|
+
* @param {any} adapter
|
|
2055
|
+
*/
|
|
2056
|
+
constructor(adapter: any);
|
|
2057
|
+
/**
|
|
2058
|
+
* @param {Array<any>} public_keys
|
|
2059
|
+
* @returns {ValidationResult}
|
|
2060
|
+
*/
|
|
2061
|
+
validateKeys(public_keys: Array<any>): ValidationResult;
|
|
2062
|
+
/**
|
|
2063
|
+
* @param {any} public_key
|
|
2064
|
+
* @returns {ValidationResult}
|
|
2065
|
+
*/
|
|
2066
|
+
validatePublicKeyStructure(public_key: any): ValidationResult;
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
*/
|
|
2070
|
+
export class SerializedObjectParsingError {
|
|
2071
|
+
free(): void;
|
|
2072
|
+
/**
|
|
2073
|
+
* @returns {any}
|
|
2074
|
+
*/
|
|
2075
|
+
getParsingError(): any;
|
|
2076
|
+
/**
|
|
2077
|
+
* @returns {number}
|
|
2078
|
+
*/
|
|
2079
|
+
getCode(): number;
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
*/
|
|
2083
|
+
export class StateTransitionMaxSizeExceededError {
|
|
2084
|
+
free(): void;
|
|
2085
|
+
/**
|
|
2086
|
+
* @returns {number}
|
|
2087
|
+
*/
|
|
2088
|
+
getActualSizeKBytes(): number;
|
|
2089
|
+
/**
|
|
2090
|
+
* @returns {number}
|
|
2091
|
+
*/
|
|
2092
|
+
getMaxSizeKBytes(): number;
|
|
2093
|
+
/**
|
|
2094
|
+
* @returns {number}
|
|
2095
|
+
*/
|
|
2096
|
+
getCode(): number;
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
*/
|
|
2100
|
+
export class SystemPropertyIndexAlreadyPresentError {
|
|
2101
|
+
free(): void;
|
|
2102
|
+
/**
|
|
2103
|
+
* @returns {string}
|
|
2104
|
+
*/
|
|
2105
|
+
getDocumentType(): string;
|
|
2106
|
+
/**
|
|
2107
|
+
* @returns {any}
|
|
2108
|
+
*/
|
|
2109
|
+
getIndexDefinition(): any;
|
|
2110
|
+
/**
|
|
2111
|
+
* @returns {string}
|
|
2112
|
+
*/
|
|
2113
|
+
getPropertyName(): string;
|
|
2114
|
+
/**
|
|
2115
|
+
* @returns {number}
|
|
2116
|
+
*/
|
|
2117
|
+
getCode(): number;
|
|
2118
|
+
}
|
|
2119
|
+
/**
|
|
2120
|
+
*/
|
|
2121
|
+
export class TransactionDecodeError {
|
|
2122
|
+
free(): void;
|
|
2123
|
+
}
|
|
2124
|
+
/**
|
|
2125
|
+
*/
|
|
2126
|
+
export class UndefinedIndexPropertyError {
|
|
2127
|
+
free(): void;
|
|
2128
|
+
/**
|
|
2129
|
+
* @returns {string}
|
|
2130
|
+
*/
|
|
2131
|
+
getDocumentType(): string;
|
|
2132
|
+
/**
|
|
2133
|
+
* @returns {any}
|
|
2134
|
+
*/
|
|
2135
|
+
getIndexDefinition(): any;
|
|
2136
|
+
/**
|
|
2137
|
+
* @returns {string}
|
|
2138
|
+
*/
|
|
2139
|
+
getPropertyName(): string;
|
|
2140
|
+
/**
|
|
2141
|
+
* @returns {number}
|
|
2142
|
+
*/
|
|
2143
|
+
getCode(): number;
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
*/
|
|
2147
|
+
export class UniqueIndicesLimitReachedError {
|
|
2148
|
+
free(): void;
|
|
2149
|
+
/**
|
|
2150
|
+
* @returns {string}
|
|
2151
|
+
*/
|
|
2152
|
+
getDocumentType(): string;
|
|
2153
|
+
/**
|
|
2154
|
+
* @returns {number}
|
|
2155
|
+
*/
|
|
2156
|
+
getIndexLimit(): number;
|
|
2157
|
+
/**
|
|
2158
|
+
* @returns {number}
|
|
2159
|
+
*/
|
|
2160
|
+
getCode(): number;
|
|
2161
|
+
}
|
|
2162
|
+
/**
|
|
2163
|
+
*/
|
|
2164
|
+
export class UnsupportedProtocolVersionError {
|
|
2165
|
+
free(): void;
|
|
2166
|
+
/**
|
|
2167
|
+
* @returns {number}
|
|
2168
|
+
*/
|
|
2169
|
+
getParsedProtocolVersion(): number;
|
|
2170
|
+
/**
|
|
2171
|
+
* @returns {number}
|
|
2172
|
+
*/
|
|
2173
|
+
getLatestVersion(): number;
|
|
2174
|
+
/**
|
|
2175
|
+
* @returns {number}
|
|
2176
|
+
*/
|
|
2177
|
+
getCode(): number;
|
|
2178
|
+
}
|
|
2179
|
+
/**
|
|
2180
|
+
*/
|
|
2181
|
+
export class ValidationResult {
|
|
2182
|
+
free(): void;
|
|
2183
|
+
/**
|
|
2184
|
+
* This is just a test method - doesn't need to be in the resulted binding. Please
|
|
2185
|
+
* remove before shipping
|
|
2186
|
+
* @returns {(string)[]}
|
|
2187
|
+
*/
|
|
2188
|
+
errorsText(): (string)[];
|
|
2189
|
+
/**
|
|
2190
|
+
* @returns {boolean}
|
|
2191
|
+
*/
|
|
2192
|
+
isValid(): boolean;
|
|
2193
|
+
/**
|
|
2194
|
+
* @returns {any[]}
|
|
2195
|
+
*/
|
|
2196
|
+
getErrors(): any[];
|
|
2197
|
+
}
|
|
2198
|
+
/**
|
|
2199
|
+
*/
|
|
2200
|
+
export class WrongPublicKeyPurposeError {
|
|
2201
|
+
free(): void;
|
|
2202
|
+
/**
|
|
2203
|
+
* @returns {number}
|
|
2204
|
+
*/
|
|
2205
|
+
getPublicKeyPurpose(): number;
|
|
2206
|
+
/**
|
|
2207
|
+
* @returns {number}
|
|
2208
|
+
*/
|
|
2209
|
+
getKeyPurposeRequirement(): number;
|
|
2210
|
+
/**
|
|
2211
|
+
* @returns {number}
|
|
2212
|
+
*/
|
|
2213
|
+
getCode(): number;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
2217
|
+
|
|
2218
|
+
export interface InitOutput {
|
|
2219
|
+
readonly memory: WebAssembly.Memory;
|
|
2220
|
+
readonly __wbg_datacontractcreatetransition_free: (a: number) => void;
|
|
2221
|
+
readonly datacontractcreatetransition_getDataContract: (a: number) => number;
|
|
2222
|
+
readonly datacontractcreatetransition_getProtocolVersion: (a: number) => number;
|
|
2223
|
+
readonly datacontractcreatetransition_getEntropy: (a: number) => number;
|
|
2224
|
+
readonly __wbg_document_free: (a: number) => void;
|
|
2225
|
+
readonly document_getProtocolVersion: (a: number) => number;
|
|
2226
|
+
readonly document_getId: (a: number) => number;
|
|
2227
|
+
readonly document_getType: (a: number, b: number) => void;
|
|
2228
|
+
readonly document_getDataContractId: (a: number) => number;
|
|
2229
|
+
readonly document_getDataContract: (a: number) => number;
|
|
2230
|
+
readonly document_getOwnerId: (a: number) => number;
|
|
2231
|
+
readonly document_setRevision: (a: number, b: number) => void;
|
|
2232
|
+
readonly document_getRevision: (a: number) => number;
|
|
2233
|
+
readonly document_setEntropy: (a: number, b: number, c: number, d: number) => void;
|
|
2234
|
+
readonly document_getEntropy: (a: number, b: number) => void;
|
|
2235
|
+
readonly document_setData: (a: number, b: number, c: number) => void;
|
|
2236
|
+
readonly document_getData: (a: number, b: number) => void;
|
|
2237
|
+
readonly document_set: (a: number, b: number, c: number, d: number) => void;
|
|
2238
|
+
readonly document_get: (a: number, b: number, c: number) => number;
|
|
2239
|
+
readonly document_setCreatedAt: (a: number, b: number) => void;
|
|
2240
|
+
readonly document_setUpdatedAt: (a: number, b: number) => void;
|
|
2241
|
+
readonly document_getCreatedAt: (a: number, b: number) => void;
|
|
2242
|
+
readonly document_getUpdatedAt: (a: number, b: number) => void;
|
|
2243
|
+
readonly document_getMetadata: (a: number) => number;
|
|
2244
|
+
readonly document_setMetadata: (a: number, b: number) => void;
|
|
2245
|
+
readonly document_toJSON: (a: number, b: number) => void;
|
|
2246
|
+
readonly document_toBuffer: (a: number, b: number) => void;
|
|
2247
|
+
readonly document_hash: (a: number, b: number) => void;
|
|
2248
|
+
readonly __wbg_incompatibledatacontractschemaerror_free: (a: number) => void;
|
|
2249
|
+
readonly incompatibledatacontractschemaerror_getDataContractId: (a: number) => number;
|
|
2250
|
+
readonly incompatibledatacontractschemaerror_getOperation: (a: number, b: number) => void;
|
|
2251
|
+
readonly incompatibledatacontractschemaerror_getFieldPath: (a: number, b: number) => void;
|
|
2252
|
+
readonly incompatibledatacontractschemaerror_getOldSchema: (a: number, b: number) => void;
|
|
2253
|
+
readonly incompatibledatacontractschemaerror_getNewSchema: (a: number, b: number) => void;
|
|
2254
|
+
readonly incompatibledatacontractschemaerror_getCode: (a: number) => number;
|
|
2255
|
+
readonly __wbg_invalidindexedpropertyconstrainterror_free: (a: number) => void;
|
|
2256
|
+
readonly invalidindexedpropertyconstrainterror_getDocumentType: (a: number, b: number) => void;
|
|
2257
|
+
readonly invalidindexedpropertyconstrainterror_getIndexDefinition: (a: number) => number;
|
|
2258
|
+
readonly invalidindexedpropertyconstrainterror_getPropertyName: (a: number, b: number) => void;
|
|
2259
|
+
readonly invalidindexedpropertyconstrainterror_getConstraintName: (a: number, b: number) => void;
|
|
2260
|
+
readonly invalidindexedpropertyconstrainterror_getReason: (a: number, b: number) => void;
|
|
2261
|
+
readonly invalidindexedpropertyconstrainterror_getCode: (a: number) => number;
|
|
2262
|
+
readonly __wbg_serializedobjectparsingerror_free: (a: number) => void;
|
|
2263
|
+
readonly serializedobjectparsingerror_getParsingError: (a: number) => number;
|
|
2264
|
+
readonly serializedobjectparsingerror_getCode: (a: number) => number;
|
|
2265
|
+
readonly __wbg_invalididentitypublickeytypeerror_free: (a: number) => void;
|
|
2266
|
+
readonly invalididentitypublickeytypeerror_getPublicKeyType: (a: number) => number;
|
|
2267
|
+
readonly __wbg_datacontractalreadypresenterror_free: (a: number) => void;
|
|
2268
|
+
readonly datacontractalreadypresenterror_getDataContractId: (a: number) => number;
|
|
2269
|
+
readonly datacontractalreadypresenterror_getCode: (a: number) => number;
|
|
2270
|
+
readonly invalididentitypublickeytypeerror_getCode: (a: number) => number;
|
|
2271
|
+
readonly identitynotfounderror_getCode: (a: number) => number;
|
|
2272
|
+
readonly datacontractnotpresenterror_getCode: (a: number) => number;
|
|
2273
|
+
readonly documentalreadypresenterror_getCode: (a: number) => number;
|
|
2274
|
+
readonly documentnotfounderror_getCode: (a: number) => number;
|
|
2275
|
+
readonly documenttimestampsmismatcherror_getCode: (a: number) => number;
|
|
2276
|
+
readonly document_toObject: (a: number, b: number) => void;
|
|
2277
|
+
readonly identitynotfounderror_getIdentityId: (a: number) => number;
|
|
2278
|
+
readonly datacontractnotpresenterror_getDataContractId: (a: number) => number;
|
|
2279
|
+
readonly documentalreadypresenterror_getDocumentId: (a: number) => number;
|
|
2280
|
+
readonly documentnotfounderror_getDocumentId: (a: number) => number;
|
|
2281
|
+
readonly documenttimestampsmismatcherror_getDocumentId: (a: number) => number;
|
|
2282
|
+
readonly __wbg_identitynotfounderror_free: (a: number) => void;
|
|
2283
|
+
readonly __wbg_datacontractnotpresenterror_free: (a: number) => void;
|
|
2284
|
+
readonly __wbg_documentalreadypresenterror_free: (a: number) => void;
|
|
2285
|
+
readonly __wbg_documentnotfounderror_free: (a: number) => void;
|
|
2286
|
+
readonly __wbg_documenttimestampsmismatcherror_free: (a: number) => void;
|
|
2287
|
+
readonly __wbg_datacontract_free: (a: number) => void;
|
|
2288
|
+
readonly datacontract_new: (a: number, b: number) => void;
|
|
2289
|
+
readonly datacontract_getProtocolVersion: (a: number) => number;
|
|
2290
|
+
readonly datacontract_getId: (a: number) => number;
|
|
2291
|
+
readonly datacontract_getOwnerId: (a: number) => number;
|
|
2292
|
+
readonly datacontract_getVersion: (a: number) => number;
|
|
2293
|
+
readonly datacontract_setVersion: (a: number, b: number) => void;
|
|
2294
|
+
readonly datacontract_incrementVersion: (a: number) => void;
|
|
2295
|
+
readonly datacontract_getJsonSchemaId: (a: number, b: number) => void;
|
|
2296
|
+
readonly datacontract_setJsonMetaSchema: (a: number, b: number, c: number) => void;
|
|
2297
|
+
readonly datacontract_getJsonMetaSchema: (a: number, b: number) => void;
|
|
2298
|
+
readonly datacontract_setDocuments: (a: number, b: number, c: number) => void;
|
|
2299
|
+
readonly datacontract_getDocuments: (a: number, b: number) => void;
|
|
2300
|
+
readonly datacontract_isDocumentDefined: (a: number, b: number, c: number) => number;
|
|
2301
|
+
readonly datacontract_setDocumentSchema: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2302
|
+
readonly datacontract_getDocumentSchema: (a: number, b: number, c: number, d: number) => void;
|
|
2303
|
+
readonly datacontract_getDocumentSchemaRef: (a: number, b: number, c: number, d: number) => void;
|
|
2304
|
+
readonly datacontract_setDefinitions: (a: number, b: number, c: number) => void;
|
|
2305
|
+
readonly datacontract_getDefinitions: (a: number, b: number) => void;
|
|
2306
|
+
readonly datacontract_setEntropy: (a: number, b: number, c: number, d: number) => void;
|
|
2307
|
+
readonly datacontract_getEntropy: (a: number) => number;
|
|
2308
|
+
readonly datacontract_getBinaryProperties: (a: number, b: number, c: number, d: number) => void;
|
|
2309
|
+
readonly datacontract_getMetadata: (a: number) => number;
|
|
2310
|
+
readonly datacontract_setMetadata: (a: number, b: number) => void;
|
|
2311
|
+
readonly datacontract_toObject: (a: number, b: number) => void;
|
|
2312
|
+
readonly datacontract_toJSON: (a: number, b: number) => void;
|
|
2313
|
+
readonly datacontract_toBuffer: (a: number, b: number) => void;
|
|
2314
|
+
readonly datacontract_hash: (a: number, b: number) => void;
|
|
2315
|
+
readonly datacontract_from: (a: number, b: number) => void;
|
|
2316
|
+
readonly __wbg_datacontractdefaults_free: (a: number) => void;
|
|
2317
|
+
readonly datacontractdefaults_get_default_schema: (a: number) => void;
|
|
2318
|
+
readonly __wbg_invaliddocumenterror_free: (a: number) => void;
|
|
2319
|
+
readonly invaliddocumenterror_new: (a: number, b: number, c: number) => number;
|
|
2320
|
+
readonly invaliddocumenterror_getErrors: (a: number, b: number) => void;
|
|
2321
|
+
readonly invaliddocumenterror_getDocument: (a: number) => number;
|
|
2322
|
+
readonly __wbg_datacontractmaxdeptherror_free: (a: number) => void;
|
|
2323
|
+
readonly datacontractmaxdeptherror_getDepth: (a: number) => number;
|
|
2324
|
+
readonly datacontractmaxdeptherror_getCode: (a: number) => number;
|
|
2325
|
+
readonly __wbg_invaliddocumenttransitionactionerror_free: (a: number) => void;
|
|
2326
|
+
readonly invaliddocumenttransitionactionerror_getAction: (a: number, b: number) => void;
|
|
2327
|
+
readonly invaliddocumenttransitionactionerror_getCode: (a: number) => number;
|
|
2328
|
+
readonly invalidstatetransitiontypeerror_getTransitionType: (a: number) => number;
|
|
2329
|
+
readonly __wbg_identitypublickeyisreadonlyerror_free: (a: number) => void;
|
|
2330
|
+
readonly identitypublickeyisreadonlyerror_getKeyId: (a: number) => number;
|
|
2331
|
+
readonly identitypublickeyisreadonlyerror_getCode: (a: number) => number;
|
|
2332
|
+
readonly __wbg_invalidjsonschemareferror_free: (a: number) => void;
|
|
2333
|
+
readonly __wbg_jsonschemacompilationerror_free: (a: number) => void;
|
|
2334
|
+
readonly invalidjsonschemareferror_getCode: (a: number) => number;
|
|
2335
|
+
readonly jsonschemacompilationerror_getCode: (a: number) => number;
|
|
2336
|
+
readonly invalidstatetransitiontypeerror_getCode: (a: number) => number;
|
|
2337
|
+
readonly invalididentitypublickeyiderror_getCode: (a: number) => number;
|
|
2338
|
+
readonly maxidentitypublickeylimitreachederror_getIdentityId: (a: number) => number;
|
|
2339
|
+
readonly maxidentitypublickeylimitreachederror_getCode: (a: number) => number;
|
|
2340
|
+
readonly invalididentitypublickeyiderror_getId: (a: number) => number;
|
|
2341
|
+
readonly invalidjsonschemareferror_getRefError: (a: number, b: number) => void;
|
|
2342
|
+
readonly jsonschemacompilationerror_getError: (a: number, b: number) => void;
|
|
2343
|
+
readonly __wbg_invalidstatetransitiontypeerror_free: (a: number) => void;
|
|
2344
|
+
readonly __wbg_invalididentitypublickeyiderror_free: (a: number) => void;
|
|
2345
|
+
readonly __wbg_maxidentitypublickeylimitreachederror_free: (a: number) => void;
|
|
2346
|
+
readonly __wbg_invalidactionnameerror_free: (a: number) => void;
|
|
2347
|
+
readonly invalidactionnameerror_new: (a: number, b: number) => number;
|
|
2348
|
+
readonly invalidactionnameerror_getActions: (a: number, b: number) => void;
|
|
2349
|
+
readonly __wbg_mismatchownersidserror_free: (a: number) => void;
|
|
2350
|
+
readonly mismatchownersidserror_new: (a: number, b: number) => number;
|
|
2351
|
+
readonly mismatchownersidserror_getDocumentTransition: (a: number, b: number) => void;
|
|
2352
|
+
readonly __wbg_invalidindexpropertytypeerror_free: (a: number) => void;
|
|
2353
|
+
readonly invalidindexpropertytypeerror_getDocumentType: (a: number, b: number) => void;
|
|
2354
|
+
readonly invalidindexpropertytypeerror_getIndexDefinition: (a: number) => number;
|
|
2355
|
+
readonly invalidindexpropertytypeerror_getPropertyName: (a: number, b: number) => void;
|
|
2356
|
+
readonly invalidindexpropertytypeerror_getPropertyType: (a: number, b: number) => void;
|
|
2357
|
+
readonly invalidindexpropertytypeerror_getCode: (a: number) => number;
|
|
2358
|
+
readonly __wbg_invalididentitykeysignatureerror_free: (a: number) => void;
|
|
2359
|
+
readonly invalididentitykeysignatureerror_getPublicKeyId: (a: number) => number;
|
|
2360
|
+
readonly invalididentitykeysignatureerror_getCode: (a: number) => number;
|
|
2361
|
+
readonly __wbg_invalididentitypublickeysecuritylevelerror_free: (a: number) => void;
|
|
2362
|
+
readonly invalididentitypublickeysecuritylevelerror_getPublicKeyId: (a: number) => number;
|
|
2363
|
+
readonly invalididentitypublickeysecuritylevelerror_getPurpose: (a: number) => number;
|
|
2364
|
+
readonly invalididentitypublickeysecuritylevelerror_getSecurityLevel: (a: number) => number;
|
|
2365
|
+
readonly invalididentitypublickeysecuritylevelerror_getCode: (a: number) => number;
|
|
2366
|
+
readonly missingpublickeyerror_getPublicKeyId: (a: number) => number;
|
|
2367
|
+
readonly __wbg_identitypublickeydisabledatwindowviolationerror_free: (a: number) => void;
|
|
2368
|
+
readonly identitypublickeydisabledatwindowviolationerror_getDisabledAt: (a: number) => number;
|
|
2369
|
+
readonly identitypublickeydisabledatwindowviolationerror_getTimeWindowStart: (a: number) => number;
|
|
2370
|
+
readonly identitypublickeydisabledatwindowviolationerror_getTimeWindowEnd: (a: number) => number;
|
|
2371
|
+
readonly identitypublickeydisabledatwindowviolationerror_getCode: (a: number) => number;
|
|
2372
|
+
readonly __wbg_identitypublickeyisdisablederror_free: (a: number) => void;
|
|
2373
|
+
readonly identitypublickeyisdisablederror_getPublicKeyIndex: (a: number) => number;
|
|
2374
|
+
readonly identitypublickeyisdisablederror_getCode: (a: number) => number;
|
|
2375
|
+
readonly publickeyisdisablederror_getPublicKeyId: (a: number) => number;
|
|
2376
|
+
readonly publickeyisdisablederror_getCode: (a: number) => number;
|
|
2377
|
+
readonly missingpublickeyerror_getCode: (a: number) => number;
|
|
2378
|
+
readonly __wbg_publickeyisdisablederror_free: (a: number) => void;
|
|
2379
|
+
readonly __wbg_missingpublickeyerror_free: (a: number) => void;
|
|
2380
|
+
readonly __wbg_identityassetlockprooflockedtransactionmismatcherror_free: (a: number) => void;
|
|
2381
|
+
readonly identityassetlockprooflockedtransactionmismatcherror_getInstantLockTransactionId: (a: number) => number;
|
|
2382
|
+
readonly identityassetlockprooflockedtransactionmismatcherror_getAssetLockTransactionId: (a: number) => number;
|
|
2383
|
+
readonly identityassetlockprooflockedtransactionmismatcherror_getCode: (a: number) => number;
|
|
2384
|
+
readonly __wbg_transactiondecodeerror_free: (a: number) => void;
|
|
2385
|
+
readonly __wbg_invalididentityassetlocktransactionerror_free: (a: number) => void;
|
|
2386
|
+
readonly invalididentityassetlocktransactionerror_getValidationError: (a: number) => number;
|
|
2387
|
+
readonly invalididentityassetlocktransactionerror_getMessage: (a: number, b: number) => void;
|
|
2388
|
+
readonly invalididentityassetlocktransactionerror_getCode: (a: number) => number;
|
|
2389
|
+
readonly __wbg_invalidinstantassetlockprooferror_free: (a: number) => void;
|
|
2390
|
+
readonly invalidinstantassetlockprooferror_getCode: (a: number) => number;
|
|
2391
|
+
readonly __wbg_identity_free: (a: number) => void;
|
|
2392
|
+
readonly __wbg_assetlockproof_free: (a: number) => void;
|
|
2393
|
+
readonly identity_new: (a: number, b: number) => void;
|
|
2394
|
+
readonly identity_getProtocolVersion: (a: number) => number;
|
|
2395
|
+
readonly identity_getId: (a: number) => number;
|
|
2396
|
+
readonly identity_setPublicKeys: (a: number, b: number, c: number) => void;
|
|
2397
|
+
readonly identity_getPublicKeys: (a: number, b: number) => void;
|
|
2398
|
+
readonly identity_getPublicKeyById: (a: number, b: number) => number;
|
|
2399
|
+
readonly identity_getBalance: (a: number) => number;
|
|
2400
|
+
readonly identity_setBalance: (a: number, b: number) => void;
|
|
2401
|
+
readonly identity_increaseBalance: (a: number, b: number) => number;
|
|
2402
|
+
readonly identity_reduceBalance: (a: number, b: number) => number;
|
|
2403
|
+
readonly identity_setAssetLockProof: (a: number, b: number) => void;
|
|
2404
|
+
readonly identity_getAssetLockProof: (a: number) => number;
|
|
2405
|
+
readonly identity_setRevision: (a: number, b: number) => void;
|
|
2406
|
+
readonly identity_getRevision: (a: number) => number;
|
|
2407
|
+
readonly identity_setMetadata: (a: number, b: number) => void;
|
|
2408
|
+
readonly identity_getMetadata: (a: number) => number;
|
|
2409
|
+
readonly identity_from: (a: number) => number;
|
|
2410
|
+
readonly identity_toJSON: (a: number, b: number) => void;
|
|
2411
|
+
readonly identity_toObject: (a: number, b: number, c: number) => void;
|
|
2412
|
+
readonly identity_toBuffer: (a: number, b: number) => void;
|
|
2413
|
+
readonly identity_hash: (a: number, b: number) => void;
|
|
2414
|
+
readonly identity_addPublicKey: (a: number, b: number) => void;
|
|
2415
|
+
readonly identity_addPublicKeys: (a: number, b: number, c: number) => void;
|
|
2416
|
+
readonly identity_getPublicKeyMaxId: (a: number) => number;
|
|
2417
|
+
readonly __wbg_documentalreadyexistserror_free: (a: number) => void;
|
|
2418
|
+
readonly documentalreadyexistserror_getDocumentTransition: (a: number) => number;
|
|
2419
|
+
readonly __wbg_invalidinitialrevisionerror_free: (a: number) => void;
|
|
2420
|
+
readonly invalidinitialrevisionerror_new: (a: number) => number;
|
|
2421
|
+
readonly invalidinitialrevisionerror_getDocumentTransition: (a: number) => number;
|
|
2422
|
+
readonly __wbg_documentcreatetransition_free: (a: number) => void;
|
|
2423
|
+
readonly documentcreatetransition_getAction: (a: number) => number;
|
|
2424
|
+
readonly __wbg_documentdeletetransition_free: (a: number) => void;
|
|
2425
|
+
readonly __wbg_documenttransition_free: (a: number) => void;
|
|
2426
|
+
readonly __wbg_systempropertyindexalreadypresenterror_free: (a: number) => void;
|
|
2427
|
+
readonly systempropertyindexalreadypresenterror_getDocumentType: (a: number, b: number) => void;
|
|
2428
|
+
readonly systempropertyindexalreadypresenterror_getIndexDefinition: (a: number) => number;
|
|
2429
|
+
readonly systempropertyindexalreadypresenterror_getPropertyName: (a: number, b: number) => void;
|
|
2430
|
+
readonly systempropertyindexalreadypresenterror_getCode: (a: number) => number;
|
|
2431
|
+
readonly __wbg_identityassetlocktransactionoutpointalreadyexistserror_free: (a: number) => void;
|
|
2432
|
+
readonly identityassetlocktransactionoutpointalreadyexistserror_getDuplicatedIds: (a: number) => number;
|
|
2433
|
+
readonly identityassetlocktransactionoutpointalreadyexistserror_getTransactionId: (a: number) => number;
|
|
2434
|
+
readonly identityassetlocktransactionoutpointalreadyexistserror_getCode: (a: number) => number;
|
|
2435
|
+
readonly __wbg_identityinsufficientbalanceerror_free: (a: number) => void;
|
|
2436
|
+
readonly identityinsufficientbalanceerror_getIdentityId: (a: number) => number;
|
|
2437
|
+
readonly identityinsufficientbalanceerror_getBalance: (a: number) => number;
|
|
2438
|
+
readonly identityinsufficientbalanceerror_getCode: (a: number) => number;
|
|
2439
|
+
readonly __wbg_documentowneridmismatcherror_free: (a: number) => void;
|
|
2440
|
+
readonly documentowneridmismatcherror_getDocumentId: (a: number) => number;
|
|
2441
|
+
readonly documentowneridmismatcherror_getDocumentOwnerId: (a: number) => number;
|
|
2442
|
+
readonly documentowneridmismatcherror_getExistingDocumentOwnerId: (a: number) => number;
|
|
2443
|
+
readonly documentowneridmismatcherror_getCode: (a: number) => number;
|
|
2444
|
+
readonly documentdeletetransition_getAction: (a: number) => number;
|
|
2445
|
+
readonly documenttransition_getAction: (a: number) => number;
|
|
2446
|
+
readonly undefinedindexpropertyerror_getCode: (a: number) => number;
|
|
2447
|
+
readonly __wbg_undefinedindexpropertyerror_free: (a: number) => void;
|
|
2448
|
+
readonly undefinedindexpropertyerror_getDocumentType: (a: number, b: number) => void;
|
|
2449
|
+
readonly undefinedindexpropertyerror_getPropertyName: (a: number, b: number) => void;
|
|
2450
|
+
readonly undefinedindexpropertyerror_getIndexDefinition: (a: number) => number;
|
|
2451
|
+
readonly __wbg_documentnotprovidederror_free: (a: number) => void;
|
|
2452
|
+
readonly __wbg_invaliddocumentactionerror_free: (a: number) => void;
|
|
2453
|
+
readonly documentnotprovidederror_getDocumentTransition: (a: number) => number;
|
|
2454
|
+
readonly invaliddocumentactionerror_getDocumentTransition: (a: number) => number;
|
|
2455
|
+
readonly __wbg_dashplatformprotocol_free: (a: number) => void;
|
|
2456
|
+
readonly dashplatformprotocol_new: (a: number) => number;
|
|
2457
|
+
readonly __wbg_incompatiblere2patternerror_free: (a: number) => void;
|
|
2458
|
+
readonly incompatiblere2patternerror_getPath: (a: number, b: number) => void;
|
|
2459
|
+
readonly incompatiblere2patternerror_getMessage: (a: number, b: number) => void;
|
|
2460
|
+
readonly incompatiblere2patternerror_getCode: (a: number) => number;
|
|
2461
|
+
readonly __wbg_duplicateindexerror_free: (a: number) => void;
|
|
2462
|
+
readonly duplicateindexerror_getDocumentType: (a: number, b: number) => void;
|
|
2463
|
+
readonly duplicateindexerror_getIndexDefinition: (a: number) => number;
|
|
2464
|
+
readonly duplicateindexerror_getCode: (a: number) => number;
|
|
2465
|
+
readonly __wbg_invaliddatacontractiderror_free: (a: number) => void;
|
|
2466
|
+
readonly invaliddatacontractiderror_getExpectedId: (a: number) => number;
|
|
2467
|
+
readonly invaliddatacontractiderror_getInvalidId: (a: number) => number;
|
|
2468
|
+
readonly __wbg_inconsistentcompoundindexdataerror_free: (a: number) => void;
|
|
2469
|
+
readonly inconsistentcompoundindexdataerror_getCode: (a: number) => number;
|
|
2470
|
+
readonly __wbg_duplicatedidentitypublickeyerror_free: (a: number) => void;
|
|
2471
|
+
readonly duplicatedidentitypublickeyerror_getDuplicatedPublicKeysIds: (a: number, b: number) => void;
|
|
2472
|
+
readonly duplicatedidentitypublickeyerror_getCode: (a: number) => number;
|
|
2473
|
+
readonly duplicatedidentitypublickeyiderror_getDuplicatedIds: (a: number, b: number) => void;
|
|
2474
|
+
readonly duplicatedidentitypublickeyiderror_getCode: (a: number) => number;
|
|
2475
|
+
readonly invalidassetlockproofcorechainheighterror_getProofCoreChainLockedHeight: (a: number) => number;
|
|
2476
|
+
readonly invalidassetlockproofcorechainheighterror_getCurrentCoreChainLockedHeight: (a: number) => number;
|
|
2477
|
+
readonly invalidassetlockproofcorechainheighterror_getCode: (a: number) => number;
|
|
2478
|
+
readonly __wbg_invalididentitypublickeydataerror_free: (a: number) => void;
|
|
2479
|
+
readonly invalididentitypublickeydataerror_getPublicKeyId: (a: number) => number;
|
|
2480
|
+
readonly invalididentitypublickeydataerror_getValidationError: (a: number) => number;
|
|
2481
|
+
readonly invalididentitypublickeydataerror_getCode: (a: number) => number;
|
|
2482
|
+
readonly __wbg_invalidinstantassetlockproofsignatureerror_free: (a: number) => void;
|
|
2483
|
+
readonly invalidinstantassetlockproofsignatureerror_getCode: (a: number) => number;
|
|
2484
|
+
readonly missingmasterpublickeyerror_getCode: (a: number) => number;
|
|
2485
|
+
readonly __wbg_incompatibleprotocolversionerror_free: (a: number) => void;
|
|
2486
|
+
readonly incompatibleprotocolversionerror_getParsedProtocolVersion: (a: number) => number;
|
|
2487
|
+
readonly incompatibleprotocolversionerror_getMinimalProtocolVersion: (a: number) => number;
|
|
2488
|
+
readonly incompatibleprotocolversionerror_getCode: (a: number) => number;
|
|
2489
|
+
readonly __wbg_invalidstatetransitionsignatureerror_free: (a: number) => void;
|
|
2490
|
+
readonly invalidstatetransitionsignatureerror_getCode: (a: number) => number;
|
|
2491
|
+
readonly unsupportedprotocolversionerror_getParsedProtocolVersion: (a: number) => number;
|
|
2492
|
+
readonly unsupportedprotocolversionerror_getLatestVersion: (a: number) => number;
|
|
2493
|
+
readonly unsupportedprotocolversionerror_getCode: (a: number) => number;
|
|
2494
|
+
readonly __wbg_datatriggerexecutionerror_free: (a: number) => void;
|
|
2495
|
+
readonly datatriggerexecutionerror_getDataContractId: (a: number) => number;
|
|
2496
|
+
readonly datatriggerexecutionerror_getExecutionError: (a: number) => number;
|
|
2497
|
+
readonly datatriggerexecutionerror_getDocumentTransitionId: (a: number) => number;
|
|
2498
|
+
readonly datatriggerexecutionerror_getMessage: (a: number, b: number) => void;
|
|
2499
|
+
readonly datatriggerexecutionerror_getTimestamp: (a: number) => number;
|
|
2500
|
+
readonly datatriggerexecutionerror_getOwnerId: (a: number) => number;
|
|
2501
|
+
readonly datatriggerexecutionerror_getCode: (a: number) => number;
|
|
2502
|
+
readonly __wbg_duplicateuniqueindexerror_free: (a: number) => void;
|
|
2503
|
+
readonly duplicateuniqueindexerror_getDocumentId: (a: number) => number;
|
|
2504
|
+
readonly duplicateuniqueindexerror_getDuplicatingProperties: (a: number) => number;
|
|
2505
|
+
readonly duplicateuniqueindexerror_getCode: (a: number) => number;
|
|
2506
|
+
readonly __wbg_publickeyvalidationerror_free: (a: number) => void;
|
|
2507
|
+
readonly publickeyvalidationerror_message: (a: number) => number;
|
|
2508
|
+
readonly invalidcompoundindexerror_getCode: (a: number) => number;
|
|
2509
|
+
readonly invaliddatacontractiderror_getCode: (a: number) => number;
|
|
2510
|
+
readonly missingdocumenttransitionactionerror_getCode: (a: number) => number;
|
|
2511
|
+
readonly missingdocumenttypeerror_getCode: (a: number) => number;
|
|
2512
|
+
readonly missingdatacontractiderror_getCode: (a: number) => number;
|
|
2513
|
+
readonly missingstatetransitiontypeerror_getCode: (a: number) => number;
|
|
2514
|
+
readonly inconsistentcompoundindexdataerror_getIndexProperties: (a: number) => number;
|
|
2515
|
+
readonly __wbg_duplicatedidentitypublickeyiderror_free: (a: number) => void;
|
|
2516
|
+
readonly incompatiblere2patternerror_getPattern: (a: number, b: number) => void;
|
|
2517
|
+
readonly invalidcompoundindexerror_getDocumentType: (a: number, b: number) => void;
|
|
2518
|
+
readonly inconsistentcompoundindexdataerror_getDocumentType: (a: number, b: number) => void;
|
|
2519
|
+
readonly __wbg_invalidcompoundindexerror_free: (a: number) => void;
|
|
2520
|
+
readonly invalidcompoundindexerror_getIndexDefinition: (a: number) => number;
|
|
2521
|
+
readonly __wbg_missingmasterpublickeyerror_free: (a: number) => void;
|
|
2522
|
+
readonly __wbg_missingdocumenttransitionactionerror_free: (a: number) => void;
|
|
2523
|
+
readonly __wbg_missingdocumenttypeerror_free: (a: number) => void;
|
|
2524
|
+
readonly __wbg_invalidassetlockproofcorechainheighterror_free: (a: number) => void;
|
|
2525
|
+
readonly __wbg_missingdatacontractiderror_free: (a: number) => void;
|
|
2526
|
+
readonly __wbg_missingstatetransitiontypeerror_free: (a: number) => void;
|
|
2527
|
+
readonly __wbg_unsupportedprotocolversionerror_free: (a: number) => void;
|
|
2528
|
+
readonly __wbg_invaliddocumenttransitioniderror_free: (a: number) => void;
|
|
2529
|
+
readonly invaliddocumenttransitioniderror_getExpectedId: (a: number) => number;
|
|
2530
|
+
readonly invaliddocumenttransitioniderror_getInvalidId: (a: number) => number;
|
|
2531
|
+
readonly invaliddocumenttransitioniderror_getCode: (a: number) => number;
|
|
2532
|
+
readonly __wbg_invaliddocumenttypeerror_free: (a: number) => void;
|
|
2533
|
+
readonly invaliddocumenttypeerror_getDocumentType: (a: number, b: number) => void;
|
|
2534
|
+
readonly invaliddocumenttypeerror_getDataContractId: (a: number) => number;
|
|
2535
|
+
readonly invaliddocumenttypeerror_getCode: (a: number) => number;
|
|
2536
|
+
readonly __wbg_invalidassetlockprooftransactionheighterror_free: (a: number) => void;
|
|
2537
|
+
readonly invalidassetlockprooftransactionheighterror_getProofCoreChainLockedHeight: (a: number) => number;
|
|
2538
|
+
readonly invalidassetlockprooftransactionheighterror_getCurrentCoreChainLockedHeight: (a: number, b: number) => void;
|
|
2539
|
+
readonly invalidassetlockprooftransactionheighterror_getCode: (a: number) => number;
|
|
2540
|
+
readonly __wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_free: (a: number) => void;
|
|
2541
|
+
readonly invalididentitycreditwithdrawaltransitionoutputscripterror_getOutputScript: (a: number) => number;
|
|
2542
|
+
readonly invalididentitycreditwithdrawaltransitionoutputscripterror_getCode: (a: number) => number;
|
|
2543
|
+
readonly __wbg_indexproperty_free: (a: number) => void;
|
|
2544
|
+
readonly indexproperty_isAscending: (a: number) => number;
|
|
2545
|
+
readonly __wbg_indexdefinition_free: (a: number) => void;
|
|
2546
|
+
readonly indexdefinition_getProperties: (a: number, b: number) => void;
|
|
2547
|
+
readonly indexdefinition_isUnique: (a: number) => number;
|
|
2548
|
+
readonly __wbg_notdocumentssuppliederror_free: (a: number) => void;
|
|
2549
|
+
readonly __wbg_datacontracthavenewuniqueindexerror_free: (a: number) => void;
|
|
2550
|
+
readonly datacontracthavenewuniqueindexerror_getDocumentType: (a: number, b: number) => void;
|
|
2551
|
+
readonly datacontracthavenewuniqueindexerror_getIndexName: (a: number, b: number) => void;
|
|
2552
|
+
readonly datacontracthavenewuniqueindexerror_getCode: (a: number) => number;
|
|
2553
|
+
readonly __wbg_uniqueindiceslimitreachederror_free: (a: number) => void;
|
|
2554
|
+
readonly uniqueindiceslimitreachederror_getIndexLimit: (a: number) => number;
|
|
2555
|
+
readonly uniqueindiceslimitreachederror_getCode: (a: number) => number;
|
|
2556
|
+
readonly __wbg_invalidsignaturepublickeysecuritylevelerror_free: (a: number) => void;
|
|
2557
|
+
readonly invalidsignaturepublickeysecuritylevelerror_getPublicKeySecurityLevel: (a: number) => number;
|
|
2558
|
+
readonly invalidsignaturepublickeysecuritylevelerror_getRequiredKeySecurityLevel: (a: number) => number;
|
|
2559
|
+
readonly __wbg_jsonschemaerror_free: (a: number) => void;
|
|
2560
|
+
readonly jsonschemaerror_getKeyword: (a: number, b: number) => void;
|
|
2561
|
+
readonly jsonschemaerror_getInstancePath: (a: number, b: number) => void;
|
|
2562
|
+
readonly jsonschemaerror_getSchemaPath: (a: number, b: number) => void;
|
|
2563
|
+
readonly jsonschemaerror_getPropertyName: (a: number, b: number) => void;
|
|
2564
|
+
readonly jsonschemaerror_getParams: (a: number, b: number) => void;
|
|
2565
|
+
readonly jsonschemaerror_getCode: (a: number) => number;
|
|
2566
|
+
readonly __wbg_statetransitionmaxsizeexceedederror_free: (a: number) => void;
|
|
2567
|
+
readonly statetransitionmaxsizeexceedederror_getCode: (a: number) => number;
|
|
2568
|
+
readonly __wbg_invaliddocumentrevisionerror_free: (a: number) => void;
|
|
2569
|
+
readonly invaliddocumentrevisionerror_getDocumentId: (a: number) => number;
|
|
2570
|
+
readonly invaliddocumentrevisionerror_getCurrentRevision: (a: number) => number;
|
|
2571
|
+
readonly invaliddocumentrevisionerror_getCode: (a: number) => number;
|
|
2572
|
+
readonly publickeysecuritylevelnotmeterror_getPublicKeySecurityLevel: (a: number) => number;
|
|
2573
|
+
readonly publickeysecuritylevelnotmeterror_getRequiredSecurityLevel: (a: number) => number;
|
|
2574
|
+
readonly wrongpublickeypurposeerror_getPublicKeyPurpose: (a: number) => number;
|
|
2575
|
+
readonly wrongpublickeypurposeerror_getKeyPurposeRequirement: (a: number) => number;
|
|
2576
|
+
readonly datacontractimmutablepropertiesupdateerror_getCode: (a: number) => number;
|
|
2577
|
+
readonly datacontractinvalidindexdefinitionupdateerror_getCode: (a: number) => number;
|
|
2578
|
+
readonly datacontractuniqueindiceschangederror_getCode: (a: number) => number;
|
|
2579
|
+
readonly duplicateindexnameerror_getCode: (a: number) => number;
|
|
2580
|
+
readonly invalididentifiererror_getCode: (a: number) => number;
|
|
2581
|
+
readonly publickeysecuritylevelnotmeterror_getCode: (a: number) => number;
|
|
2582
|
+
readonly statetransitionmaxsizeexceedederror_getActualSizeKBytes: (a: number) => number;
|
|
2583
|
+
readonly wrongpublickeypurposeerror_getCode: (a: number) => number;
|
|
2584
|
+
readonly invalidsignaturepublickeysecuritylevelerror_getCode: (a: number) => number;
|
|
2585
|
+
readonly statetransitionmaxsizeexceedederror_getMaxSizeKBytes: (a: number) => number;
|
|
2586
|
+
readonly invalididentityrevisionerror_getCurrentRevision: (a: number) => number;
|
|
2587
|
+
readonly invalididentityrevisionerror_getCode: (a: number) => number;
|
|
2588
|
+
readonly indexproperty_getName: (a: number, b: number) => void;
|
|
2589
|
+
readonly indexdefinition_getName: (a: number, b: number) => void;
|
|
2590
|
+
readonly datacontractimmutablepropertiesupdateerror_getOperation: (a: number, b: number) => void;
|
|
2591
|
+
readonly datacontractimmutablepropertiesupdateerror_getFieldPath: (a: number, b: number) => void;
|
|
2592
|
+
readonly datacontractinvalidindexdefinitionupdateerror_getDocumentType: (a: number, b: number) => void;
|
|
2593
|
+
readonly datacontractinvalidindexdefinitionupdateerror_getIndexName: (a: number, b: number) => void;
|
|
2594
|
+
readonly datacontractuniqueindiceschangederror_getDocumentType: (a: number, b: number) => void;
|
|
2595
|
+
readonly datacontractuniqueindiceschangederror_getIndexName: (a: number, b: number) => void;
|
|
2596
|
+
readonly duplicateindexnameerror_getDocumentType: (a: number, b: number) => void;
|
|
2597
|
+
readonly duplicateindexnameerror_getDuplicateIndexName: (a: number, b: number) => void;
|
|
2598
|
+
readonly uniqueindiceslimitreachederror_getDocumentType: (a: number, b: number) => void;
|
|
2599
|
+
readonly invalididentifiererror_getIdentifierName: (a: number, b: number) => void;
|
|
2600
|
+
readonly invalididentifiererror_getError: (a: number, b: number) => void;
|
|
2601
|
+
readonly invalididentityrevisionerror_getIdentityId: (a: number) => number;
|
|
2602
|
+
readonly notdocumentssuppliederror_new: () => number;
|
|
2603
|
+
readonly __wbg_datacontractimmutablepropertiesupdateerror_free: (a: number) => void;
|
|
2604
|
+
readonly __wbg_datacontractinvalidindexdefinitionupdateerror_free: (a: number) => void;
|
|
2605
|
+
readonly __wbg_datacontractuniqueindiceschangederror_free: (a: number) => void;
|
|
2606
|
+
readonly __wbg_duplicateindexnameerror_free: (a: number) => void;
|
|
2607
|
+
readonly __wbg_invalididentifiererror_free: (a: number) => void;
|
|
2608
|
+
readonly __wbg_publickeysecuritylevelnotmeterror_free: (a: number) => void;
|
|
2609
|
+
readonly __wbg_wrongpublickeypurposeerror_free: (a: number) => void;
|
|
2610
|
+
readonly __wbg_invalididentityrevisionerror_free: (a: number) => void;
|
|
2611
|
+
readonly __wbg_datacontractvalidator_free: (a: number) => void;
|
|
2612
|
+
readonly datacontractvalidator_new: () => number;
|
|
2613
|
+
readonly __wbg_datacontractfactory_free: (a: number) => void;
|
|
2614
|
+
readonly datacontractfactory_new: (a: number, b: number, c: number) => number;
|
|
2615
|
+
readonly datacontractfactory_create: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2616
|
+
readonly datacontractfactory_createFromObject: (a: number, b: number, c: number) => number;
|
|
2617
|
+
readonly datacontractfactory_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
|
|
2618
|
+
readonly datacontractfactory_createDataContractCreateTransition: (a: number, b: number) => number;
|
|
2619
|
+
readonly __wbg_invaliddatacontractversionerror_free: (a: number) => void;
|
|
2620
|
+
readonly invaliddatacontractversionerror_getExpectedVersion: (a: number) => number;
|
|
2621
|
+
readonly invaliddatacontractversionerror_getVersion: (a: number) => number;
|
|
2622
|
+
readonly invaliddatacontractversionerror_getCode: (a: number) => number;
|
|
2623
|
+
readonly __wbg_balanceisnotenougherror_free: (a: number) => void;
|
|
2624
|
+
readonly balanceisnotenougherror_getBalance: (a: number) => number;
|
|
2625
|
+
readonly balanceisnotenougherror_getFee: (a: number) => number;
|
|
2626
|
+
readonly balanceisnotenougherror_getCode: (a: number) => number;
|
|
2627
|
+
readonly __wbg_datatriggerconditionerror_free: (a: number) => void;
|
|
2628
|
+
readonly datatriggerconditionerror_getDataContractId: (a: number) => number;
|
|
2629
|
+
readonly datatriggerconditionerror_getDocumentTransitionId: (a: number) => number;
|
|
2630
|
+
readonly datatriggerconditionerror_getMessage: (a: number, b: number) => void;
|
|
2631
|
+
readonly datatriggerconditionerror_getTimestamp: (a: number) => number;
|
|
2632
|
+
readonly datatriggerconditionerror_getOwnerId: (a: number) => number;
|
|
2633
|
+
readonly datatriggerconditionerror_getCode: (a: number) => number;
|
|
2634
|
+
readonly __wbg_documenttimestampwindowviolationerror_free: (a: number) => void;
|
|
2635
|
+
readonly documenttimestampwindowviolationerror_getDocumentId: (a: number) => number;
|
|
2636
|
+
readonly documenttimestampwindowviolationerror_getTimestampName: (a: number, b: number) => void;
|
|
2637
|
+
readonly documenttimestampwindowviolationerror_getTimestamp: (a: number) => number;
|
|
2638
|
+
readonly documenttimestampwindowviolationerror_getTimeWindowStart: (a: number) => number;
|
|
2639
|
+
readonly documenttimestampwindowviolationerror_getTimeWindowEnd: (a: number) => number;
|
|
2640
|
+
readonly documenttimestampwindowviolationerror_getCode: (a: number) => number;
|
|
2641
|
+
readonly __wbg_publickeysvalidator_free: (a: number) => void;
|
|
2642
|
+
readonly publickeysvalidator_new: (a: number) => number;
|
|
2643
|
+
readonly publickeysvalidator_validateKeys: (a: number, b: number, c: number) => void;
|
|
2644
|
+
readonly publickeysvalidator_validatePublicKeyStructure: (a: number, b: number, c: number) => void;
|
|
2645
|
+
readonly __wbg_identitypublickey_free: (a: number) => void;
|
|
2646
|
+
readonly identitypublickey_new: (a: number, b: number) => void;
|
|
2647
|
+
readonly identitypublickey_getId: (a: number) => number;
|
|
2648
|
+
readonly identitypublickey_setId: (a: number, b: number) => void;
|
|
2649
|
+
readonly identitypublickey_getType: (a: number) => number;
|
|
2650
|
+
readonly identitypublickey_setType: (a: number, b: number, c: number) => void;
|
|
2651
|
+
readonly identitypublickey_setData: (a: number, b: number, c: number, d: number) => void;
|
|
2652
|
+
readonly identitypublickey_getData: (a: number, b: number) => void;
|
|
2653
|
+
readonly identitypublickey_setPurpose: (a: number, b: number, c: number) => void;
|
|
2654
|
+
readonly identitypublickey_getPurpose: (a: number) => number;
|
|
2655
|
+
readonly identitypublickey_setSecurityLevel: (a: number, b: number, c: number) => void;
|
|
2656
|
+
readonly identitypublickey_getSecurityLevel: (a: number) => number;
|
|
2657
|
+
readonly identitypublickey_setReadOnly: (a: number, b: number) => void;
|
|
2658
|
+
readonly identitypublickey_isReadOnly: (a: number) => number;
|
|
2659
|
+
readonly identitypublickey_setDisabledAt: (a: number, b: number) => void;
|
|
2660
|
+
readonly identitypublickey_getDisabledAt: (a: number, b: number) => void;
|
|
2661
|
+
readonly identitypublickey_hash: (a: number, b: number) => void;
|
|
2662
|
+
readonly identitypublickey_isMaster: (a: number) => number;
|
|
2663
|
+
readonly identitypublickey_toJSON: (a: number, b: number) => void;
|
|
2664
|
+
readonly identitypublickey_toObject: (a: number, b: number, c: number) => void;
|
|
2665
|
+
readonly __wbg_metadata_free: (a: number) => void;
|
|
2666
|
+
readonly metadata_new: (a: number, b: number) => number;
|
|
2667
|
+
readonly metadata_from: (a: number) => number;
|
|
2668
|
+
readonly metadata_toJSON: (a: number) => number;
|
|
2669
|
+
readonly metadata_toObject: (a: number) => number;
|
|
2670
|
+
readonly __wbg_invaliddatacontracterror_free: (a: number) => void;
|
|
2671
|
+
readonly invaliddatacontracterror_new: (a: number, b: number, c: number) => number;
|
|
2672
|
+
readonly invaliddatacontracterror_getErrors: (a: number, b: number) => void;
|
|
2673
|
+
readonly invaliddatacontracterror_getRawDataContract: (a: number) => number;
|
|
2674
|
+
readonly __wbg_invaliddocumenttypeindatacontracterror_free: (a: number) => void;
|
|
2675
|
+
readonly invaliddocumenttypeindatacontracterror_new: (a: number, b: number, c: number) => number;
|
|
2676
|
+
readonly invaliddocumenttypeindatacontracterror_getDocType: (a: number, b: number) => void;
|
|
2677
|
+
readonly invaliddocumenttypeindatacontracterror_getDataContract: (a: number) => number;
|
|
2678
|
+
readonly __wbg_duplicatedocumenttransitionswithidserror_free: (a: number) => void;
|
|
2679
|
+
readonly duplicatedocumenttransitionswithidserror_getReferences: (a: number) => number;
|
|
2680
|
+
readonly duplicatedocumenttransitionswithidserror_getCode: (a: number) => number;
|
|
2681
|
+
readonly identityassetlocktransactionisnotfounderror_getTransactionId: (a: number) => number;
|
|
2682
|
+
readonly identityassetlocktransactionisnotfounderror_getCode: (a: number) => number;
|
|
2683
|
+
readonly __wbg_invalidassetlocktransactionoutputreturnsizeerror_free: (a: number) => void;
|
|
2684
|
+
readonly invalidassetlocktransactionoutputreturnsizeerror_getOutputIndex: (a: number) => number;
|
|
2685
|
+
readonly invalidassetlocktransactionoutputreturnsizeerror_getCode: (a: number) => number;
|
|
2686
|
+
readonly invalididentityassetlocktransactionoutputerror_getOutputIndex: (a: number) => number;
|
|
2687
|
+
readonly invalididentityassetlocktransactionoutputerror_getCode: (a: number) => number;
|
|
2688
|
+
readonly __wbg_datatriggerinvalidresulterror_free: (a: number) => void;
|
|
2689
|
+
readonly datatriggerinvalidresulterror_getDataContractId: (a: number) => number;
|
|
2690
|
+
readonly datatriggerinvalidresulterror_getDocumentTransitionId: (a: number) => number;
|
|
2691
|
+
readonly datatriggerinvalidresulterror_getTimestamp: (a: number) => number;
|
|
2692
|
+
readonly datatriggerinvalidresulterror_getOwnerId: (a: number) => number;
|
|
2693
|
+
readonly datatriggerinvalidresulterror_getCode: (a: number) => number;
|
|
2694
|
+
readonly identityalreadyexistserror_getIdentityId: (a: number) => number;
|
|
2695
|
+
readonly identityalreadyexistserror_getCode: (a: number) => number;
|
|
2696
|
+
readonly __wbg_identifier_free: (a: number) => void;
|
|
2697
|
+
readonly identifier_new: (a: number, b: number, c: number) => void;
|
|
2698
|
+
readonly identifier_from: (a: number, b: number, c: number, d: number) => void;
|
|
2699
|
+
readonly identifier_fromString: (a: number, b: number, c: number, d: number) => number;
|
|
2700
|
+
readonly identifier_toBuffer: (a: number) => number;
|
|
2701
|
+
readonly identifier_toJSON: (a: number, b: number) => void;
|
|
2702
|
+
readonly identifier_toString: (a: number, b: number, c: number, d: number) => void;
|
|
2703
|
+
readonly identifier_length: (a: number) => number;
|
|
2704
|
+
readonly identifier_inner: (a: number, b: number) => void;
|
|
2705
|
+
readonly __wbg_validationresult_free: (a: number) => void;
|
|
2706
|
+
readonly validationresult_errorsText: (a: number, b: number) => void;
|
|
2707
|
+
readonly validationresult_isValid: (a: number) => number;
|
|
2708
|
+
readonly validationresult_getErrors: (a: number, b: number) => void;
|
|
2709
|
+
readonly __wbg_invalididentityassetlocktransactionoutputerror_free: (a: number) => void;
|
|
2710
|
+
readonly __wbg_identityassetlocktransactionisnotfounderror_free: (a: number) => void;
|
|
2711
|
+
readonly __wbg_identityalreadyexistserror_free: (a: number) => void;
|
|
2712
|
+
readonly __wbg_protocolversionparsingerror_free: (a: number) => void;
|
|
2713
|
+
readonly protocolversionparsingerror_getParsingError: (a: number) => number;
|
|
2714
|
+
readonly protocolversionparsingerror_getCode: (a: number) => number;
|
|
2715
|
+
readonly __wbg_identityassetlocktransactionoutputnotfounderror_free: (a: number) => void;
|
|
2716
|
+
readonly identityassetlocktransactionoutputnotfounderror_getOutputIndex: (a: number) => number;
|
|
2717
|
+
readonly identityassetlocktransactionoutputnotfounderror_getCode: (a: number) => number;
|
|
2718
|
+
readonly invalididentitycreditwithdrawaltransitioncorefeeerror_getCoreFee: (a: number) => number;
|
|
2719
|
+
readonly invalididentitycreditwithdrawaltransitioncorefeeerror_getCode: (a: number) => number;
|
|
2720
|
+
readonly __wbg_identityfacade_free: (a: number) => void;
|
|
2721
|
+
readonly identityfacade_new: (a: number) => number;
|
|
2722
|
+
readonly identityfacade_validate: (a: number, b: number, c: number) => void;
|
|
2723
|
+
readonly __wbg_nonconsensuserrorwasm_free: (a: number) => void;
|
|
2724
|
+
readonly __wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_free: (a: number) => void;
|
|
2725
|
+
readonly rustsecp256k1_v0_5_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
2726
|
+
readonly rustsecp256k1_v0_5_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
2727
|
+
readonly __wbindgen_malloc: (a: number) => number;
|
|
2728
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
2729
|
+
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
2730
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h09f9e9d8394aec0a: (a: number, b: number, c: number) => void;
|
|
2731
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
2732
|
+
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
2733
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
2734
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h9c669bb18ec068c7: (a: number, b: number, c: number, d: number) => void;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
2738
|
+
/**
|
|
2739
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
2740
|
+
* a precompiled `WebAssembly.Module`.
|
|
2741
|
+
*
|
|
2742
|
+
* @param {SyncInitInput} module
|
|
2743
|
+
*
|
|
2744
|
+
* @returns {InitOutput}
|
|
2745
|
+
*/
|
|
2746
|
+
export function initSync(module: SyncInitInput): InitOutput;
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
2750
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
2751
|
+
*
|
|
2752
|
+
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
2753
|
+
*
|
|
2754
|
+
* @returns {Promise<InitOutput>}
|
|
2755
|
+
*/
|
|
2756
|
+
export default function init (module_or_path: InitInput | Promise<InitInput>): Promise<InitOutput>;
|