@dashevo/wasm-dpp 0.23.0-dev.15 → 0.24.0-dev.11

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