@dashevo/wasm-dpp 0.24.0-dev.33 → 0.25.0-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/Cargo.toml +2 -2
  2. package/dist/wasm/wasm_dpp.d.ts +600 -454
  3. package/dist/wasm/wasm_dpp.js +178 -120
  4. package/dist/wasm/wasm_dpp_bg.js +1 -1
  5. package/lib/test/fixtures/getDocumentsFixture.js +5 -1
  6. package/lib/wasm/wasm_dpp.d.ts +600 -454
  7. package/package.json +4 -4
  8. package/src/dash_platform_protocol.rs +1 -1
  9. package/src/data_contract/data_contract.rs +2 -1
  10. package/src/data_contract/data_contract_facade.rs +2 -2
  11. package/src/data_contract/state_transition/data_contract_create_transition/apply.rs +1 -1
  12. package/src/data_contract/state_transition/data_contract_create_transition/mod.rs +7 -16
  13. package/src/data_contract/state_transition/data_contract_create_transition/validation.rs +5 -3
  14. package/src/data_contract/state_transition/data_contract_update_transition/apply.rs +6 -2
  15. package/src/data_contract/state_transition/data_contract_update_transition/mod.rs +7 -18
  16. package/src/data_contract/state_transition/data_contract_update_transition/validation.rs +6 -4
  17. package/src/decode_protocol_entity.rs +19 -19
  18. package/src/document/extended_document.rs +5 -2
  19. package/src/document/fetch_and_validate_data_contract.rs +2 -2
  20. package/src/document/mod.rs +5 -3
  21. package/src/document/state_transition/document_batch_transition/apply_document_batch_transition.rs +9 -6
  22. package/src/document/state_transition/document_batch_transition/document_transition/document_create_transition.rs +1 -1
  23. package/src/document/state_transition/document_batch_transition/document_transition/document_replace_transition.rs +1 -1
  24. package/src/document/state_transition/document_batch_transition/document_transition/mod.rs +1 -2
  25. package/src/document/state_transition/document_batch_transition/mod.rs +18 -25
  26. package/src/document/state_transition/document_batch_transition/validation/basic/validate_documents_batch_transition_basic.rs +4 -4
  27. package/src/document/state_transition/document_batch_transition/validation/state/validate_documents_batch_transitions_state.rs +3 -1
  28. package/src/errors/consensus/basic/data_contract/data_contract_have_new_unique_index_error.rs +1 -1
  29. package/src/errors/consensus/basic/data_contract/data_contract_immutable_properties_update_error.rs +3 -3
  30. package/src/errors/consensus/basic/data_contract/data_contract_invalid_index_definition_update_error.rs +1 -1
  31. package/src/errors/consensus/basic/data_contract/data_contract_max_depth_exceed_error.rs +1 -1
  32. package/src/errors/consensus/basic/data_contract/data_contract_unique_indices_changed_error.rs +1 -1
  33. package/src/errors/consensus/basic/data_contract/duplicate_index_name_error.rs +3 -3
  34. package/src/errors/consensus/basic/data_contract/incompatible_data_contract_schema_error.rs +3 -3
  35. package/src/errors/consensus/basic/data_contract/incompatible_re2_pattern_error.rs +4 -4
  36. package/src/errors/consensus/basic/data_contract/index_error/duplicate_index_error.rs +1 -1
  37. package/src/errors/consensus/basic/data_contract/index_error/invalid_compound_index_error.rs +1 -1
  38. package/src/errors/consensus/basic/data_contract/index_error/invalid_index_property_type_error.rs +1 -1
  39. package/src/errors/consensus/basic/data_contract/index_error/invalid_indexed_property_constraint_error.rs +1 -1
  40. package/src/errors/consensus/basic/data_contract/index_error/system_property_index_already_present_error.rs +1 -1
  41. package/src/errors/consensus/basic/data_contract/index_error/undefined_index_property_error.rs +1 -1
  42. package/src/errors/consensus/basic/data_contract/index_error/unique_indices_limit_reached_error.rs +1 -1
  43. package/src/errors/consensus/basic/data_contract/invalid_data_contract_id_error.rs +1 -1
  44. package/src/errors/consensus/basic/data_contract/invalid_data_contract_version_error.rs +1 -1
  45. package/src/errors/consensus/basic/data_contract/invalid_json_schema_ref_error.rs +2 -2
  46. package/src/errors/consensus/basic/decode/protocol_version_parsing_error.rs +1 -1
  47. package/src/errors/consensus/basic/decode/serialized_object_parsing_error.rs +1 -1
  48. package/src/errors/consensus/basic/document/data_contract_not_present_error.rs +1 -1
  49. package/src/errors/consensus/basic/document/duplicate_document_transitions_with_ids_error.rs +1 -1
  50. package/src/errors/consensus/basic/document/duplicate_document_transitions_with_indices_error.rs +1 -1
  51. package/src/errors/consensus/basic/document/inconsistent_compound_index_data_error.rs +2 -2
  52. package/src/errors/consensus/basic/document/invalid_document_transition_action_error.rs +1 -1
  53. package/src/errors/consensus/basic/document/invalid_document_transition_id_error.rs +1 -1
  54. package/src/errors/consensus/basic/document/invalid_document_type_error.rs +2 -2
  55. package/src/errors/consensus/basic/document/missing_data_contract_id_error.rs +1 -1
  56. package/src/errors/consensus/basic/document/missing_document_transition_action_error.rs +1 -1
  57. package/src/errors/consensus/basic/document/missing_document_transition_type_error.rs +1 -1
  58. package/src/errors/consensus/basic/document/missing_document_type_error.rs +1 -1
  59. package/src/errors/consensus/basic/identity/duplicated_identity_public_key_error.rs +1 -1
  60. package/src/errors/consensus/basic/identity/duplicated_identity_public_key_id_error.rs +1 -1
  61. package/src/errors/consensus/basic/identity/identity_asset_lock_proof_locked_transaction_mismatch_error.rs +1 -1
  62. package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_is_not_found_error.rs +1 -1
  63. package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_out_point_already_exists_error.rs +1 -1
  64. package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_output_not_found_error.rs +1 -1
  65. package/src/errors/consensus/basic/identity/identity_insufficient_balance_error.rs +1 -1
  66. package/src/errors/consensus/basic/identity/invalid_asset_lock_proof_core_chain_height_error.rs +1 -1
  67. package/src/errors/consensus/basic/identity/invalid_asset_lock_proof_transaction_height_error.rs +1 -1
  68. package/src/errors/consensus/basic/identity/invalid_asset_lock_transaction_output_return_size_error.rs +1 -1
  69. package/src/errors/consensus/basic/identity/invalid_identity_asset_lock_proof_chain_lock_validation_error.rs +35 -0
  70. package/src/errors/consensus/basic/identity/invalid_identity_asset_lock_transaction_error.rs +1 -1
  71. package/src/errors/consensus/basic/identity/invalid_identity_asset_lock_transaction_output_error.rs +1 -1
  72. package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_core_fee_error.rs +1 -1
  73. package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_output_script_error.rs +1 -1
  74. package/src/errors/consensus/basic/identity/invalid_identity_credit_withdrawal_transition_pooling_error.rs +1 -1
  75. package/src/errors/consensus/basic/identity/invalid_identity_key_signature_error.rs +1 -1
  76. package/src/errors/consensus/basic/identity/invalid_identity_public_key_data_error.rs +1 -1
  77. package/src/errors/consensus/basic/identity/invalid_identity_public_key_security_level_error.rs +1 -1
  78. package/src/errors/consensus/basic/identity/invalid_identity_public_key_type_error.rs +1 -1
  79. package/src/errors/consensus/basic/identity/invalid_instant_asset_lock_proof_error.rs +1 -1
  80. package/src/errors/consensus/basic/identity/invalid_instant_asset_lock_proof_signature_error.rs +1 -1
  81. package/src/errors/consensus/basic/identity/missing_master_public_key_error.rs +1 -1
  82. package/src/errors/consensus/basic/identity/missing_public_key_error.rs +1 -1
  83. package/src/errors/consensus/basic/identity/mod.rs +2 -0
  84. package/src/errors/consensus/basic/incompatible_protocol_version_error.rs +2 -2
  85. package/src/errors/consensus/basic/invalid_identifier_error.rs +1 -1
  86. package/src/errors/consensus/basic/invalid_signature_public_key_security_level_error.rs +7 -3
  87. package/src/errors/consensus/basic/invalid_state_transition_signature_error.rs +1 -1
  88. package/src/errors/consensus/basic/json_schema_compilation_error.rs +1 -1
  89. package/src/errors/consensus/basic/json_schema_error.rs +1 -3
  90. package/src/errors/consensus/basic/public_key_is_disabled_error.rs +1 -1
  91. package/src/errors/consensus/basic/public_key_security_level_not_met_error.rs +2 -2
  92. package/src/errors/consensus/basic/state_transition/invalid_state_transition_type_error.rs +1 -1
  93. package/src/errors/consensus/basic/state_transition/missing_state_transition_type_error.rs +1 -1
  94. package/src/errors/consensus/basic/state_transition/state_transition_max_size_exceeded_error.rs +1 -1
  95. package/src/errors/consensus/basic/unsupported_protocol_version_error.rs +1 -1
  96. package/src/errors/consensus/basic/wrong_public_key_purpose_error.rs +1 -1
  97. package/src/errors/consensus/consensus_error.rs +24 -4
  98. package/src/errors/consensus/deserialize.rs +1 -1
  99. package/src/errors/consensus/fee/balance_is_not_enough_error.rs +1 -1
  100. package/src/errors/consensus/signature/basic_bls_error.rs +38 -0
  101. package/src/errors/consensus/signature/basic_ecdsa_error.rs +38 -0
  102. package/src/errors/consensus/signature/mod.rs +6 -0
  103. package/src/errors/consensus/signature/signature_should_not_be_present_error.rs +38 -0
  104. package/src/errors/consensus/state/data_contract/data_contract_already_present_error.rs +2 -2
  105. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_condition_error.rs +58 -1
  106. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_execution_error.rs +66 -1
  107. package/src/errors/consensus/state/data_contract/data_trigger/data_trigger_invalid_result_error.rs +50 -1
  108. package/src/errors/consensus/state/document/document_already_present_error.rs +1 -1
  109. package/src/errors/consensus/state/document/document_not_found_error.rs +1 -1
  110. package/src/errors/consensus/state/document/document_owner_id_mismatch_error.rs +1 -1
  111. package/src/errors/consensus/state/document/document_timestamp_window_violation_error.rs +2 -2
  112. package/src/errors/consensus/state/document/document_timestamps_mismatch_error.rs +1 -1
  113. package/src/errors/consensus/state/document/duplicate_unique_index_error.rs +1 -1
  114. package/src/errors/consensus/state/document/invalid_document_revision_error.rs +1 -1
  115. package/src/errors/consensus/state/identity/duplicated_identity_public_key_id_state_error.rs +1 -1
  116. package/src/errors/consensus/state/identity/duplicated_identity_public_key_state_error.rs +1 -1
  117. package/src/errors/consensus/state/identity/identity_already_exists_error.rs +1 -1
  118. package/src/errors/consensus/state/identity/identity_public_key_disabled_at_window_violation_error.rs +1 -1
  119. package/src/errors/consensus/state/identity/identity_public_key_is_disabled_error.rs +1 -1
  120. package/src/errors/consensus/state/identity/identity_public_key_is_read_only_error.rs +1 -1
  121. package/src/errors/consensus/state/identity/invalid_identity_public_key_id_error.rs +1 -1
  122. package/src/errors/consensus/state/identity/invalid_identity_revision_error.rs +1 -1
  123. package/src/errors/consensus/state/identity/max_identity_public_key_limit_reached_error.rs +1 -1
  124. package/src/errors/consensus/state/identity/missing_identity_public_key_ids_error.rs +26 -0
  125. package/src/errors/consensus/state/identity/mod.rs +2 -0
  126. package/src/errors/consensus/value_error.rs +1 -1
  127. package/src/errors/from.rs +0 -1
  128. package/src/generate_temporary_ecdsa_private_key.rs +2 -6
  129. package/src/identity/factory_utils.rs +4 -4
  130. package/src/identity/identity_public_key/key_type.rs +2 -0
  131. package/src/identity/identity_public_key/purpose.rs +7 -0
  132. package/src/identity/mod.rs +4 -2
  133. package/src/identity/state_transition/identity_create_transition/apply_identity_create_transition.rs +6 -2
  134. package/src/identity/state_transition/identity_create_transition/identity_create_transition.rs +14 -32
  135. package/src/identity/state_transition/identity_create_transition/identity_create_transition_state_validator.rs +3 -1
  136. package/src/identity/state_transition/identity_create_transition/to_object.rs +2 -2
  137. package/src/identity/state_transition/identity_public_key_transitions.rs +11 -11
  138. package/src/identity/state_transition/identity_topup_transition/apply_identity_topup_transition.rs +6 -2
  139. package/src/identity/state_transition/identity_topup_transition/identity_topup_transition.rs +7 -26
  140. package/src/identity/state_transition/identity_topup_transition/identity_topup_transition_state_validator.rs +3 -1
  141. package/src/identity/state_transition/identity_update_transition/apply_identity_update_transition.rs +3 -1
  142. package/src/identity/state_transition/identity_update_transition/identity_update_public_keys_validator.rs +2 -2
  143. package/src/identity/state_transition/identity_update_transition/identity_update_transition.rs +11 -32
  144. package/src/identity/state_transition/identity_update_transition/identity_update_transition_state_validator.rs +3 -2
  145. package/src/identity/state_transition/identity_update_transition/to_object.rs +2 -2
  146. package/src/identity/state_transition/validate_public_key_signatures.rs +2 -2
  147. package/src/state_repository.rs +3 -2
  148. package/src/state_transition/fee/calculate_state_transition_fee.rs +8 -5
  149. package/src/state_transition/state_transition_facade.rs +18 -21
  150. package/src/state_transition/validation/state_transition_fee_validator.rs +3 -1
  151. package/src/state_transition/validation/validate_state_transition_identity_signature.rs +22 -6
  152. package/src/state_transition/validation/validate_state_transition_key_signature.rs +7 -1
  153. package/src/utils.rs +2 -4
  154. package/src/validation/validation_result.rs +12 -7
  155. package/test/integration/dataContract/DataContractFacade.spec.js +17 -20
  156. package/test/integration/dataContract/stateTransition/DataContractUpdateTransition/validation/basic/validateDataContractUpdateTransitionBasicFactory.spec.js +5 -4
  157. package/test/integration/dataContract/validation/validateDataContractFactory.spec.js +0 -17
  158. package/test/integration/document/stateTransition/DocumentsBatchTransition/DocumentBatchTransition.spec.js +10 -3
  159. package/test/integration/identity/stateTransition/IdentityUpdateTransition/validation/state/validateIdentityUpdateTransitionStateFactory.spec.js +4 -7
  160. package/test/integration/stateTransition/StateTransitionFacade.spec.js +21 -8
  161. package/test/unit/dataContract/DataContract.spec.js +9 -21
  162. package/test/unit/dataContract/DataContractFactory.spec.js +19 -28
  163. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/DataContractCreateTransition.spec.js +2 -4
  164. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/applyDataContractCreateTransitionFactory.spec.js +0 -7
  165. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/validation/state/validateDataContractCreateTransitionStateFactory.spec.js +10 -8
  166. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/DataContractUpdateTransition.spec.js +3 -5
  167. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/applyDataContractUpdateTransitionFactory.spec.js +1 -3
  168. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/validation/state/validateDataContractUpdateTransitionStateFactory.spec.js +8 -6
  169. package/test/unit/decodeProtocolEntityFactory.spec.js +4 -1
  170. package/test/unit/document/Document.spec.js +9 -7
  171. package/test/unit/document/DocumentFactory.spec.js +38 -90
  172. package/test/unit/document/stateTransition/DocumetsBatchTransition/DocumentsBatchTransition.spec.js +2 -3
  173. package/test/unit/document/stateTransition/DocumetsBatchTransition/applyDocumentsBatchTransitionFactory.spec.js +5 -6
  174. package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/validateDocumentsBatchTransitionStateFactory.spec.js +20 -18
  175. package/test/unit/identity/Identity.spec.js +3 -8
  176. package/test/unit/identity/IdentityFactory.spec.js +3 -4
  177. package/test/unit/identity/stateTransition/IdentityCreateTransition/applyIdentityCreateTransitionFactory.spec.js +1 -2
  178. package/test/unit/identity/stateTransition/IdentityCreateTransition/validation/state/validateIdentityCreateTransitionStateFactory.spec.js +7 -3
  179. package/test/unit/identity/stateTransition/IdentityTopUpTransition/applyIdentityTopUpTransitionFactory.spec.js +1 -2
  180. package/test/unit/identity/stateTransition/IdentityTopUpTransition/validation/state/validateIdentityTopUpTransitionStateFactory.spec.js +5 -1
  181. package/test/unit/identity/stateTransition/IdentityUpdateTransition/applyIdentityUpdateTransitionFactory.spec.js +3 -3
  182. package/test/unit/stateTransition/validation/validateStateTransitionBasicFactory.spec.js +12 -6
  183. package/test/unit/stateTransition/validation/validateStateTransitionFeeFactory.spec.js +4 -16
  184. package/test/unit/stateTransition/validation/validateStateTransitionIdentitySignatureFactory.spec.js +8 -4
  185. package/test/unit/stateTransition/validation/validateStateTransitionKeySignatureFactory.spec.js +3 -1
  186. package/test/unit/stateTransition/validation/validateStateTransitionStateFactory.spec.js +7 -3
@@ -1,28 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
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
- * @param {any} raw_parameters
11
- * @returns {Promise<ValidationResult>}
12
- */
13
- export function validateDataContractCreateTransitionBasic(raw_parameters: any): Promise<ValidationResult>;
14
- /**
15
4
  * @param {Uint8Array} bytes
16
5
  * @returns {any}
17
6
  */
18
7
  export function deserializeConsensusError(bytes: Uint8Array): any;
19
8
  /**
20
- * @param {Array<any>} operations
21
- * @param {any} identity_id
22
- * @returns {FeeResult}
23
- */
24
- export function calculateStateTransitionFeeFromOperations(operations: Array<any>, identity_id: any): FeeResult;
25
- /**
26
9
  * @returns {any}
27
10
  */
28
11
  export function generateTemporaryEcdsaPrivateKey(): any;
@@ -64,24 +47,31 @@ export function fetchAssetLockPublicKeyHash(state_repository: any, raw_asset_loc
64
47
  */
65
48
  export function calculateOperationFees(operations: Array<any>): DummyFeesResult;
66
49
  /**
50
+ * @param {any} external_state_repository
51
+ * @param {any} js_state_transition
52
+ * @param {StateTransitionExecutionContext} execution_context
53
+ * @param {any} bls_adapter
54
+ * @returns {Promise<ValidationResult>}
55
+ */
56
+ export function validateStateTransitionIdentitySignature(external_state_repository: any, js_state_transition: any, execution_context: StateTransitionExecutionContext, bls_adapter: any): Promise<ValidationResult>;
57
+ /**
67
58
  * @param {Array<any>} js_raw_transitions
68
59
  * @param {DataContract} data_contract
69
60
  * @returns {ValidationResult}
70
61
  */
71
62
  export function validatePartialCompoundIndices(js_raw_transitions: Array<any>, data_contract: DataContract): ValidationResult;
72
63
  /**
73
- * @param {any} external_state_repository
74
- * @param {any} js_state_transition
75
- * @param {any} bls_adapter
76
- * @returns {Promise<ValidationResult>}
64
+ * @param {Uint8Array} _buffer
65
+ * @returns {Array<any>}
77
66
  */
78
- export function validateStateTransitionIdentitySignature(external_state_repository: any, js_state_transition: any, bls_adapter: any): Promise<ValidationResult>;
67
+ export function decodeProtocolEntity(_buffer: Uint8Array): Array<any>;
79
68
  /**
80
69
  * @param {any} state_repository
81
70
  * @param {DataContractUpdateTransition} state_transition
71
+ * @param {StateTransitionExecutionContext} execution_context
82
72
  * @returns {Promise<ValidationResult>}
83
73
  */
84
- export function validateDataContractUpdateTransitionState(state_repository: any, state_transition: DataContractUpdateTransition): Promise<ValidationResult>;
74
+ export function validateDataContractUpdateTransitionState(state_repository: any, state_transition: DataContractUpdateTransition, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
85
75
  /**
86
76
  * @param {any} old_documents_schema
87
77
  * @param {any} new_documents_schema
@@ -105,24 +95,73 @@ export function validateDataContractUpdateTransitionBasic(state_repository: any,
105
95
  */
106
96
  export function validateDocumentsUniquenessByIndices(state_repository: any, js_owner_id: any, js_document_transitions: Array<any>, js_data_contract: DataContract, js_execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
107
97
  /**
108
- * @param {any} contract_id
109
- * @param {any} owner_id
110
- * @param {string} document_type
111
- * @param {Uint8Array} entropy
112
- * @returns {any}
98
+ * @param {any} state_repository
99
+ * @param {DocumentsBatchTransition} transition
100
+ * @param {StateTransitionExecutionContext} execution_context
101
+ * @returns {Promise<void>}
113
102
  */
114
- export function generateDocumentId(contract_id: any, owner_id: any, document_type: string, entropy: Uint8Array): any;
103
+ export function applyDocumentsBatchTransition(state_repository: any, transition: DocumentsBatchTransition, execution_context: StateTransitionExecutionContext): Promise<void>;
104
+ /**
105
+ * @param {ProtocolVersionValidator} protocol_version_validator
106
+ * @param {any} state_repository
107
+ * @param {any} js_raw_state_transition
108
+ * @param {StateTransitionExecutionContext} execution_context
109
+ * @returns {Promise<ValidationResult>}
110
+ */
111
+ export function validateDocumentsBatchTransitionBasic(protocol_version_validator: ProtocolVersionValidator, state_repository: any, js_raw_state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
112
+ /**
113
+ * @param {any} state_repository
114
+ * @param {DocumentsBatchTransition} state_transition
115
+ * @param {StateTransitionExecutionContext} execution_context
116
+ * @returns {Promise<ValidationResult>}
117
+ */
118
+ export function validateDocumentsBatchTransitionState(state_repository: any, state_transition: DocumentsBatchTransition, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
115
119
  /**
116
120
  * @returns {number}
117
121
  */
118
122
  export function getCreditsConversionRatio(): number;
119
123
  /**
120
124
  * @param {any} state_repository
125
+ * @param {IdentityCreateTransition} state_transition
126
+ * @param {StateTransitionExecutionContext} execution_context
127
+ * @returns {Promise<void>}
128
+ */
129
+ export function applyIdentityCreateTransition(state_repository: any, state_transition: IdentityCreateTransition, execution_context: StateTransitionExecutionContext): Promise<void>;
130
+ /**
131
+ * @param {any} state_repository
132
+ * @param {IdentityTopUpTransition} state_transition
133
+ * @param {StateTransitionExecutionContext} execution_context
134
+ * @returns {Promise<void>}
135
+ */
136
+ export function applyIdentityTopUpTransition(state_repository: any, state_transition: IdentityTopUpTransition, execution_context: StateTransitionExecutionContext): Promise<void>;
137
+ /**
138
+ * @param {any} state_repository
139
+ * @param {IdentityUpdateTransition} state_transition
140
+ * @param {StateTransitionExecutionContext} execution_context
141
+ * @returns {Promise<void>}
142
+ */
143
+ export function applyIdentityUpdateTransition(state_repository: any, state_transition: IdentityUpdateTransition, execution_context: StateTransitionExecutionContext): Promise<void>;
144
+ /**
145
+ * @param {any} state_transition_js
146
+ * @param {StateTransitionExecutionContext} execution_context
147
+ * @returns {FeeResult}
148
+ */
149
+ export function calculateStateTransitionFee(state_transition_js: any, execution_context: StateTransitionExecutionContext): FeeResult;
150
+ /**
151
+ * @param {any} state_repository
121
152
  * @param {any} js_raw_document
122
153
  * @returns {Promise<ValidationResult>}
123
154
  */
124
155
  export function fetchAndValidateDataContract(state_repository: any, js_raw_document: any): Promise<ValidationResult>;
125
156
  /**
157
+ * @param {any} contract_id
158
+ * @param {any} owner_id
159
+ * @param {string} document_type
160
+ * @param {Uint8Array} entropy
161
+ * @returns {any}
162
+ */
163
+ export function generateDocumentId(contract_id: any, owner_id: any, document_type: string, entropy: Uint8Array): any;
164
+ /**
126
165
  * @param {Array<any>} js_raw_transitions
127
166
  * @param {DataContract} data_contract
128
167
  * @param {any} owner_id
@@ -157,52 +196,22 @@ export function getDataTriggers(js_data_contract_id: any, document_type: string,
157
196
  export function getAllDataTriggers(): Array<any>;
158
197
  /**
159
198
  * @param {any} state_repository
160
- * @param {DocumentsBatchTransition} transition
161
- * @returns {Promise<void>}
162
- */
163
- export function applyDocumentsBatchTransition(state_repository: any, transition: DocumentsBatchTransition): Promise<void>;
164
- /**
165
- * @param {ProtocolVersionValidator} protocol_version_validator
166
- * @param {any} state_repository
167
- * @param {any} js_raw_state_transition
199
+ * @param {DataContractCreateTransition} state_transition
168
200
  * @param {StateTransitionExecutionContext} execution_context
169
201
  * @returns {Promise<ValidationResult>}
170
202
  */
171
- export function validateDocumentsBatchTransitionBasic(protocol_version_validator: ProtocolVersionValidator, state_repository: any, js_raw_state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
203
+ export function validateDataContractCreateTransitionState(state_repository: any, state_transition: DataContractCreateTransition, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
172
204
  /**
173
- * @param {any} state_repository
174
- * @param {DocumentsBatchTransition} state_transition
205
+ * @param {any} raw_parameters
175
206
  * @returns {Promise<ValidationResult>}
176
207
  */
177
- export function validateDocumentsBatchTransitionState(state_repository: any, state_transition: DocumentsBatchTransition): Promise<ValidationResult>;
178
- /**
179
- * @param {any} state_repository
180
- * @param {IdentityCreateTransition} state_transition
181
- * @returns {Promise<void>}
182
- */
183
- export function applyIdentityCreateTransition(state_repository: any, state_transition: IdentityCreateTransition): Promise<void>;
184
- /**
185
- * @param {any} state_repository
186
- * @param {IdentityTopUpTransition} state_transition
187
- * @returns {Promise<void>}
188
- */
189
- export function applyIdentityTopUpTransition(state_repository: any, state_transition: IdentityTopUpTransition): Promise<void>;
190
- /**
191
- * @param {any} state_repository
192
- * @param {IdentityUpdateTransition} state_transition
193
- * @returns {Promise<void>}
194
- */
195
- export function applyIdentityUpdateTransition(state_repository: any, state_transition: IdentityUpdateTransition): Promise<void>;
208
+ export function validateDataContractCreateTransitionBasic(raw_parameters: any): Promise<ValidationResult>;
196
209
  /**
197
- * @param {any} state_transition_js
210
+ * @param {Array<any>} operations
211
+ * @param {any} identity_id
198
212
  * @returns {FeeResult}
199
213
  */
200
- export function calculateStateTransitionFee(state_transition_js: any): FeeResult;
201
- /**
202
- * @param {Uint8Array} buffer
203
- * @returns {Array<any>}
204
- */
205
- export function decodeProtocolEntity(buffer: Uint8Array): Array<any>;
214
+ export function calculateStateTransitionFeeFromOperations(operations: Array<any>, identity_id: any): FeeResult;
206
215
  /**
207
216
  */
208
217
  export enum KeyPurpose {
@@ -218,7 +227,18 @@ export enum KeyPurpose {
218
227
  * this key cannot be used for signing documents
219
228
  */
220
229
  DECRYPTION = 2,
230
+ /**
231
+ * this key cannot be used for signing documents
232
+ */
221
233
  WITHDRAW = 3,
234
+ /**
235
+ * this key cannot be used for signing documents
236
+ */
237
+ SYSTEM = 4,
238
+ /**
239
+ * this key cannot be used for signing documents
240
+ */
241
+ VOTING = 5,
222
242
  }
223
243
  /**
224
244
  */
@@ -235,6 +255,7 @@ export enum KeyType {
235
255
  BLS12_381 = 1,
236
256
  ECDSA_HASH160 = 2,
237
257
  BIP13_SCRIPT_HASH = 3,
258
+ EDDSA_25519_HASH160 = 4,
238
259
  }
239
260
  /**
240
261
  */
@@ -260,9 +281,10 @@ export class ApplyDataContractUpdateTransition {
260
281
  constructor(state_repository: any);
261
282
  /**
262
283
  * @param {DataContractUpdateTransition} transition
284
+ * @param {StateTransitionExecutionContext} execution_context
263
285
  * @returns {Promise<void>}
264
286
  */
265
- applyDataContractUpdateTransition(transition: DataContractUpdateTransition): Promise<void>;
287
+ applyDataContractUpdateTransition(transition: DataContractUpdateTransition, execution_context: StateTransitionExecutionContext): Promise<void>;
266
288
  }
267
289
  /**
268
290
  */
@@ -326,6 +348,38 @@ export class BalanceIsNotEnoughError {
326
348
  }
327
349
  /**
328
350
  */
351
+ export class BasicBLSError {
352
+ free(): void;
353
+ /**
354
+ * @returns {number}
355
+ */
356
+ getCode(): number;
357
+ /**
358
+ * @returns {any}
359
+ */
360
+ serialize(): any;
361
+ /**
362
+ */
363
+ readonly message: string;
364
+ }
365
+ /**
366
+ */
367
+ export class BasicECDSAError {
368
+ free(): void;
369
+ /**
370
+ * @returns {number}
371
+ */
372
+ getCode(): number;
373
+ /**
374
+ * @returns {any}
375
+ */
376
+ serialize(): any;
377
+ /**
378
+ */
379
+ readonly message: string;
380
+ }
381
+ /**
382
+ */
329
383
  export class ChainAssetLockProof {
330
384
  free(): void;
331
385
  /**
@@ -625,10 +679,9 @@ export class DataContractCreateTransition {
625
679
  */
626
680
  toJSON(skip_signature?: boolean): any;
627
681
  /**
628
- * @param {boolean | undefined} skip_signature
629
682
  * @returns {any}
630
683
  */
631
- toBuffer(skip_signature?: boolean): any;
684
+ toBuffer(): any;
632
685
  /**
633
686
  * @returns {any[]}
634
687
  */
@@ -646,14 +699,6 @@ export class DataContractCreateTransition {
646
699
  */
647
700
  isIdentityStateTransition(): boolean;
648
701
  /**
649
- * @param {StateTransitionExecutionContext} context
650
- */
651
- setExecutionContext(context: StateTransitionExecutionContext): void;
652
- /**
653
- * @returns {StateTransitionExecutionContext}
654
- */
655
- getExecutionContext(): StateTransitionExecutionContext;
656
- /**
657
702
  * @param {boolean | undefined} skip_signature
658
703
  * @returns {any}
659
704
  */
@@ -931,10 +976,9 @@ export class DataContractUpdateTransition {
931
976
  */
932
977
  toJSON(skip_signature?: boolean): any;
933
978
  /**
934
- * @param {boolean | undefined} skip_signature
935
979
  * @returns {any}
936
980
  */
937
- toBuffer(skip_signature?: boolean): any;
981
+ toBuffer(): any;
938
982
  /**
939
983
  * @returns {any[]}
940
984
  */
@@ -952,14 +996,6 @@ export class DataContractUpdateTransition {
952
996
  */
953
997
  isIdentityStateTransition(): boolean;
954
998
  /**
955
- * @param {StateTransitionExecutionContext} context
956
- */
957
- setExecutionContext(context: StateTransitionExecutionContext): void;
958
- /**
959
- * @returns {StateTransitionExecutionContext}
960
- */
961
- getExecutionContext(): StateTransitionExecutionContext;
962
- /**
963
999
  * @param {boolean | undefined} skip_signature
964
1000
  * @returns {any}
965
1001
  */
@@ -1017,6 +1053,81 @@ export class DataTrigger {
1017
1053
  }
1018
1054
  /**
1019
1055
  */
1056
+ export class DataTriggerActionConditionError {
1057
+ free(): void;
1058
+ /**
1059
+ * @returns {any}
1060
+ */
1061
+ getDataContractId(): any;
1062
+ /**
1063
+ * @returns {any}
1064
+ */
1065
+ getDocumentTransitionId(): any;
1066
+ /**
1067
+ * @returns {string}
1068
+ */
1069
+ getMessage(): string;
1070
+ /**
1071
+ * @returns {any | undefined}
1072
+ */
1073
+ getOwnerId(): any | undefined;
1074
+ /**
1075
+ * @returns {number}
1076
+ */
1077
+ getCode(): number;
1078
+ }
1079
+ /**
1080
+ */
1081
+ export class DataTriggerActionExecutionError {
1082
+ free(): void;
1083
+ /**
1084
+ * @returns {any}
1085
+ */
1086
+ getDataContractId(): any;
1087
+ /**
1088
+ * @returns {any}
1089
+ */
1090
+ getExecutionError(): any;
1091
+ /**
1092
+ * @returns {any}
1093
+ */
1094
+ getDocumentTransitionId(): any;
1095
+ /**
1096
+ * @returns {string}
1097
+ */
1098
+ getMessage(): string;
1099
+ /**
1100
+ * @returns {any | undefined}
1101
+ */
1102
+ getOwnerId(): any | undefined;
1103
+ /**
1104
+ * @returns {number}
1105
+ */
1106
+ getCode(): number;
1107
+ }
1108
+ /**
1109
+ */
1110
+ export class DataTriggerActionInvalidResultError {
1111
+ free(): void;
1112
+ /**
1113
+ * @returns {any}
1114
+ */
1115
+ getDataContractId(): any;
1116
+ /**
1117
+ * @returns {any}
1118
+ */
1119
+ getDocumentTransitionId(): any;
1120
+ /**
1121
+ * @returns {any | undefined}
1122
+ */
1123
+ getOwnerId(): any | undefined;
1124
+ /**
1125
+ * @returns {number}
1126
+ */
1127
+ getCode(): number;
1128
+ }
1129
+ /**
1130
+ */
1020
1131
  export class DataTriggerConditionError {
1021
1132
  free(): void;
1022
1133
  /**
@@ -1812,9 +1923,9 @@ export class DocumentsBatchTransition {
1812
1923
  */
1813
1924
  setSignaturePublicKeyId(key_id: number): void;
1814
1925
  /**
1815
- * @returns {number}
1926
+ * @returns {Array<any>}
1816
1927
  */
1817
- getKeySecurityLevelRequirement(): number;
1928
+ getKeySecurityLevelRequirement(): Array<any>;
1818
1929
  /**
1819
1930
  * @returns {number}
1820
1931
  */
@@ -1840,18 +1951,9 @@ export class DocumentsBatchTransition {
1840
1951
  */
1841
1952
  isIdentityStateTransition(): boolean;
1842
1953
  /**
1843
- * @param {StateTransitionExecutionContext} context
1844
- */
1845
- setExecutionContext(context: StateTransitionExecutionContext): void;
1846
- /**
1847
- * @returns {StateTransitionExecutionContext}
1848
- */
1849
- getExecutionContext(): StateTransitionExecutionContext;
1850
- /**
1851
- * @param {any} options
1852
1954
  * @returns {any}
1853
1955
  */
1854
- toBuffer(options: any): any;
1956
+ toBuffer(): any;
1855
1957
  /**
1856
1958
  * @param {any} options
1857
1959
  * @returns {any}
@@ -2323,9 +2425,9 @@ export class Identity {
2323
2425
  */
2324
2426
  toObject(): any;
2325
2427
  /**
2326
- * @returns {Uint8Array}
2428
+ * @returns {any}
2327
2429
  */
2328
- toBuffer(): Uint8Array;
2430
+ toBuffer(): any;
2329
2431
  /**
2330
2432
  * @returns {Uint8Array}
2331
2433
  */
@@ -2500,10 +2602,9 @@ export class IdentityCreateTransition {
2500
2602
  */
2501
2603
  toObject(options: any): any;
2502
2604
  /**
2503
- * @param {any} options
2504
2605
  * @returns {any}
2505
2606
  */
2506
- toBuffer(options: any): any;
2607
+ toBuffer(): any;
2507
2608
  /**
2508
2609
  * @returns {any}
2509
2610
  */
@@ -2525,14 +2626,6 @@ export class IdentityCreateTransition {
2525
2626
  */
2526
2627
  isIdentityStateTransition(): boolean;
2527
2628
  /**
2528
- * @param {StateTransitionExecutionContext} context
2529
- */
2530
- setExecutionContext(context: StateTransitionExecutionContext): void;
2531
- /**
2532
- * @returns {StateTransitionExecutionContext}
2533
- */
2534
- getExecutionContext(): StateTransitionExecutionContext;
2535
- /**
2536
2629
  * @param {Uint8Array} private_key
2537
2630
  * @param {number} key_type
2538
2631
  * @param {any | undefined} bls
@@ -2582,9 +2675,10 @@ export class IdentityCreateTransitionStateValidator {
2582
2675
  constructor(state_repository: any);
2583
2676
  /**
2584
2677
  * @param {IdentityCreateTransition} state_transition
2678
+ * @param {StateTransitionExecutionContext} execution_context
2585
2679
  * @returns {Promise<ValidationResult>}
2586
2680
  */
2587
- validate(state_transition: IdentityCreateTransition): Promise<ValidationResult>;
2681
+ validate(state_transition: IdentityCreateTransition, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
2588
2682
  }
2589
2683
  /**
2590
2684
  */
@@ -3019,10 +3113,9 @@ export class IdentityTopUpTransition {
3019
3113
  */
3020
3114
  toObject(options: any): any;
3021
3115
  /**
3022
- * @param {any} options
3023
3116
  * @returns {any}
3024
3117
  */
3025
- toBuffer(options: any): any;
3118
+ toBuffer(): any;
3026
3119
  /**
3027
3120
  * @returns {any}
3028
3121
  */
@@ -3044,14 +3137,6 @@ export class IdentityTopUpTransition {
3044
3137
  */
3045
3138
  isIdentityStateTransition(): boolean;
3046
3139
  /**
3047
- * @param {StateTransitionExecutionContext} context
3048
- */
3049
- setExecutionContext(context: StateTransitionExecutionContext): void;
3050
- /**
3051
- * @returns {StateTransitionExecutionContext}
3052
- */
3053
- getExecutionContext(): StateTransitionExecutionContext;
3054
- /**
3055
3140
  * @param {Uint8Array} private_key
3056
3141
  * @param {number} key_type
3057
3142
  * @param {any | undefined} bls
@@ -3097,9 +3182,10 @@ export class IdentityTopUpTransitionStateValidator {
3097
3182
  constructor(state_repository: any);
3098
3183
  /**
3099
3184
  * @param {IdentityTopUpTransition} state_transition
3185
+ * @param {StateTransitionExecutionContext} execution_context
3100
3186
  * @returns {Promise<ValidationResult>}
3101
3187
  */
3102
- validate(state_transition: IdentityTopUpTransition): Promise<ValidationResult>;
3188
+ validate(state_transition: IdentityTopUpTransition, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
3103
3189
  }
3104
3190
  /**
3105
3191
  */
@@ -3168,10 +3254,9 @@ export class IdentityUpdateTransition {
3168
3254
  */
3169
3255
  toObject(options: any): any;
3170
3256
  /**
3171
- * @param {any} options
3172
3257
  * @returns {any}
3173
3258
  */
3174
- toBuffer(options: any): any;
3259
+ toBuffer(): any;
3175
3260
  /**
3176
3261
  * @returns {any}
3177
3262
  */
@@ -3193,14 +3278,6 @@ export class IdentityUpdateTransition {
3193
3278
  */
3194
3279
  isIdentityStateTransition(): boolean;
3195
3280
  /**
3196
- * @param {StateTransitionExecutionContext} context
3197
- */
3198
- setExecutionContext(context: StateTransitionExecutionContext): void;
3199
- /**
3200
- * @returns {StateTransitionExecutionContext}
3201
- */
3202
- getExecutionContext(): StateTransitionExecutionContext;
3203
- /**
3204
3281
  * @param {Uint8Array} private_key
3205
3282
  * @param {number} key_type
3206
3283
  * @param {any | undefined} bls
@@ -3269,9 +3346,10 @@ export class IdentityUpdateTransitionStateValidator {
3269
3346
  constructor(state_repository: any);
3270
3347
  /**
3271
3348
  * @param {IdentityUpdateTransition} state_transition
3349
+ * @param {StateTransitionExecutionContext} execution_context
3272
3350
  * @returns {Promise<ValidationResult>}
3273
3351
  */
3274
- validate(state_transition: IdentityUpdateTransition): Promise<ValidationResult>;
3352
+ validate(state_transition: IdentityUpdateTransition, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
3275
3353
  }
3276
3354
  /**
3277
3355
  */
@@ -3823,6 +3901,19 @@ export class InvalidIdentifierError {
3823
3901
  }
3824
3902
  /**
3825
3903
  */
3904
+ export class InvalidIdentityAssetLockProofChainLockValidationErrorWasm {
3905
+ free(): void;
3906
+ /**
3907
+ * @returns {any}
3908
+ */
3909
+ getTransactionId(): any;
3910
+ /**
3911
+ * @returns {number}
3912
+ */
3913
+ getHeightReportedNotLocked(): number;
3914
+ }
3915
+ /**
3916
+ */
3826
3917
  export class InvalidIdentityAssetLockTransactionError {
3827
3918
  free(): void;
3828
3919
  /**
@@ -4192,9 +4283,9 @@ export class InvalidSignaturePublicKeySecurityLevelError {
4192
4283
  */
4193
4284
  getPublicKeySecurityLevel(): number;
4194
4285
  /**
4195
- * @returns {number}
4286
+ * @returns {Array<any>}
4196
4287
  */
4197
- getKeySecurityLevelRequirement(): number;
4288
+ getKeySecurityLevelRequirement(): Array<any>;
4198
4289
  /**
4199
4290
  * @returns {number}
4200
4291
  */
@@ -4480,6 +4571,15 @@ export class MissingDocumentTypeError {
4480
4571
  }
4481
4572
  /**
4482
4573
  */
4574
+ export class MissingIdentityPublicKeyIdsError {
4575
+ free(): void;
4576
+ /**
4577
+ * @returns {Array<any>}
4578
+ */
4579
+ getDuplicatedIds(): Array<any>;
4580
+ }
4581
+ /**
4582
+ */
4483
4583
  export class MissingMasterPublicKeyError {
4484
4584
  free(): void;
4485
4585
  /**
@@ -4828,6 +4928,22 @@ export class SerializedObjectParsingError {
4828
4928
  }
4829
4929
  /**
4830
4930
  */
4931
+ export class SignatureShouldNotBePresentError {
4932
+ free(): void;
4933
+ /**
4934
+ * @returns {number}
4935
+ */
4936
+ getCode(): number;
4937
+ /**
4938
+ * @returns {any}
4939
+ */
4940
+ serialize(): any;
4941
+ /**
4942
+ */
4943
+ readonly message: string;
4944
+ }
4945
+ /**
4946
+ */
4831
4947
  export class SignatureVerificationOperation {
4832
4948
  free(): void;
4833
4949
  /**
@@ -4901,30 +5017,35 @@ export class StateTransitionFacade {
4901
5017
  createFromBuffer(state_transition_buffer: Uint8Array, options?: object): Promise<any>;
4902
5018
  /**
4903
5019
  * @param {any} raw_state_transition
5020
+ * @param {StateTransitionExecutionContext} execution_context
4904
5021
  * @param {any} options
4905
5022
  * @returns {Promise<ValidationResult>}
4906
5023
  */
4907
- validate(raw_state_transition: any, options: any): Promise<ValidationResult>;
5024
+ validate(raw_state_transition: any, execution_context: StateTransitionExecutionContext, options: any): Promise<ValidationResult>;
4908
5025
  /**
4909
5026
  * @param {any} raw_state_transition
5027
+ * @param {StateTransitionExecutionContext} execution_context
4910
5028
  * @returns {Promise<ValidationResult>}
4911
5029
  */
4912
- validateBasic(raw_state_transition: any): Promise<ValidationResult>;
5030
+ validateBasic(raw_state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
4913
5031
  /**
4914
5032
  * @param {any} raw_state_transition
5033
+ * @param {StateTransitionExecutionContext} execution_context
4915
5034
  * @returns {Promise<ValidationResult>}
4916
5035
  */
4917
- validateSignature(raw_state_transition: any): Promise<ValidationResult>;
5036
+ validateSignature(raw_state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
4918
5037
  /**
4919
5038
  * @param {any} raw_state_transition
5039
+ * @param {StateTransitionExecutionContext} execution_context
4920
5040
  * @returns {Promise<ValidationResult>}
4921
5041
  */
4922
- validateFee(raw_state_transition: any): Promise<ValidationResult>;
5042
+ validateFee(raw_state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
4923
5043
  /**
4924
5044
  * @param {any} raw_state_transition
5045
+ * @param {StateTransitionExecutionContext} execution_context
4925
5046
  * @returns {Promise<ValidationResult>}
4926
5047
  */
4927
- validateState(raw_state_transition: any): Promise<ValidationResult>;
5048
+ validateState(raw_state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
4928
5049
  /**
4929
5050
  * @param {any} state_transition_js
4930
5051
  * @returns {Promise<any>}
@@ -4963,9 +5084,10 @@ export class StateTransitionFeeValidator {
4963
5084
  constructor(state_repository: any);
4964
5085
  /**
4965
5086
  * @param {any} state_transition
5087
+ * @param {StateTransitionExecutionContext} execution_context
4966
5088
  * @returns {Promise<ValidationResult>}
4967
5089
  */
4968
- validate(state_transition: any): Promise<ValidationResult>;
5090
+ validate(state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
4969
5091
  }
4970
5092
  /**
4971
5093
  */
@@ -4977,9 +5099,10 @@ export class StateTransitionKeySignatureValidator {
4977
5099
  constructor(state_repository: any);
4978
5100
  /**
4979
5101
  * @param {any} state_transition
5102
+ * @param {StateTransitionExecutionContext} execution_context
4980
5103
  * @returns {Promise<ValidationResult>}
4981
5104
  */
4982
- validate(state_transition: any): Promise<ValidationResult>;
5105
+ validate(state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
4983
5106
  }
4984
5107
  /**
4985
5108
  */
@@ -5223,11 +5346,30 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
5223
5346
 
5224
5347
  export interface InitOutput {
5225
5348
  readonly memory: WebAssembly.Memory;
5226
- readonly validateDataContractCreateTransitionState: (a: number, b: number) => number;
5227
- readonly validateDataContractCreateTransitionBasic: (a: number) => number;
5228
5349
  readonly __wbg_invalidactionnameerror_free: (a: number) => void;
5229
5350
  readonly invalidactionnameerror_new: (a: number, b: number) => number;
5230
5351
  readonly invalidactionnameerror_getActions: (a: number, b: number) => void;
5352
+ readonly __wbg_document_free: (a: number) => void;
5353
+ readonly document_new: (a: number, b: number, c: number, d: number) => void;
5354
+ readonly document_getId: (a: number) => number;
5355
+ readonly document_setId: (a: number, b: number) => void;
5356
+ readonly document_setOwnerId: (a: number, b: number) => void;
5357
+ readonly document_getOwnerId: (a: number) => number;
5358
+ readonly document_setRevision: (a: number, b: number, c: number) => void;
5359
+ readonly document_getRevision: (a: number, b: number) => void;
5360
+ readonly document_setData: (a: number, b: number, c: number) => void;
5361
+ readonly document_getData: (a: number, b: number) => void;
5362
+ readonly document_set: (a: number, b: number, c: number, d: number, e: number) => void;
5363
+ readonly document_get: (a: number, b: number, c: number, d: number) => void;
5364
+ readonly document_setCreatedAt: (a: number, b: number) => void;
5365
+ readonly document_setUpdatedAt: (a: number, b: number) => void;
5366
+ readonly document_getCreatedAt: (a: number) => number;
5367
+ readonly document_getUpdatedAt: (a: number) => number;
5368
+ readonly document_toObject: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5369
+ readonly document_toJSON: (a: number, b: number) => void;
5370
+ readonly document_toBuffer: (a: number, b: number) => void;
5371
+ readonly document_hash: (a: number, b: number, c: number, d: number, e: number) => void;
5372
+ readonly document_clone: (a: number) => number;
5231
5373
  readonly __wbg_invalidjsonschemareferror_free: (a: number) => void;
5232
5374
  readonly invalidjsonschemareferror_getRefError: (a: number, b: number) => void;
5233
5375
  readonly invalidjsonschemareferror_getCode: (a: number) => number;
@@ -5250,6 +5392,10 @@ export interface InitOutput {
5250
5392
  readonly invalididentitycreditwithdrawaltransitioncorefeeerror_getCode: (a: number) => number;
5251
5393
  readonly invalididentitycreditwithdrawaltransitioncorefeeerror_message: (a: number, b: number) => void;
5252
5394
  readonly invalididentitycreditwithdrawaltransitioncorefeeerror_serialize: (a: number, b: number) => void;
5395
+ readonly __wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_free: (a: number) => void;
5396
+ readonly invalididentitycreditwithdrawaltransitionoutputscripterror_getCode: (a: number) => number;
5397
+ readonly invalididentitycreditwithdrawaltransitionoutputscripterror_message: (a: number, b: number) => void;
5398
+ readonly invalididentitycreditwithdrawaltransitionoutputscripterror_serialize: (a: number, b: number) => void;
5253
5399
  readonly notimplementedidentitycreditwithdrawaltransitionpoolingerror_getPooling: (a: number) => number;
5254
5400
  readonly notimplementedidentitycreditwithdrawaltransitionpoolingerror_getCode: (a: number) => number;
5255
5401
  readonly notimplementedidentitycreditwithdrawaltransitionpoolingerror_message: (a: number, b: number) => void;
@@ -5289,7 +5435,27 @@ export interface InitOutput {
5289
5435
  readonly maxidentitypublickeylimitreachederror_getCode: (a: number) => number;
5290
5436
  readonly maxidentitypublickeylimitreachederror_message: (a: number, b: number) => void;
5291
5437
  readonly maxidentitypublickeylimitreachederror_serialize: (a: number, b: number) => void;
5292
- readonly calculateStateTransitionFeeFromOperations: (a: number, b: number, c: number) => void;
5438
+ readonly __wbg_assetlockoutputnotfounderror_free: (a: number) => void;
5439
+ readonly __wbg_identitycreatetransition_free: (a: number) => void;
5440
+ readonly identitycreatetransition_new: (a: number, b: number) => void;
5441
+ readonly identitycreatetransition_setAssetLockProof: (a: number, b: number, c: number) => void;
5442
+ readonly identitycreatetransition_assetLockProof: (a: number) => number;
5443
+ readonly identitycreatetransition_setPublicKeys: (a: number, b: number, c: number, d: number) => void;
5444
+ readonly identitycreatetransition_addPublicKeys: (a: number, b: number, c: number, d: number) => void;
5445
+ readonly identitycreatetransition_getPublicKeys: (a: number, b: number) => void;
5446
+ readonly identitycreatetransition_getType: (a: number) => number;
5447
+ readonly identitycreatetransition_getIdentityId: (a: number) => number;
5448
+ readonly identitycreatetransition_getOwnerId: (a: number) => number;
5449
+ readonly identitycreatetransition_toObject: (a: number, b: number, c: number) => void;
5450
+ readonly identitycreatetransition_toBuffer: (a: number, b: number) => void;
5451
+ readonly identitycreatetransition_toJSON: (a: number, b: number) => void;
5452
+ readonly identitycreatetransition_getModifiedDataIds: (a: number, b: number) => void;
5453
+ readonly identitycreatetransition_isDataContractStateTransition: (a: number) => number;
5454
+ readonly identitycreatetransition_isDocumentStateTransition: (a: number) => number;
5455
+ readonly identitycreatetransition_isIdentityStateTransition: (a: number) => number;
5456
+ readonly identitycreatetransition_signByPrivateKey: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5457
+ readonly identitycreatetransition_getSignature: (a: number) => number;
5458
+ readonly identitycreatetransition_setSignature: (a: number, b: number, c: number) => void;
5293
5459
  readonly __wbg_dummyfeesresult_free: (a: number) => void;
5294
5460
  readonly dummyfeesresult_storageFee: (a: number) => number;
5295
5461
  readonly dummyfeesresult_processingFee: (a: number) => number;
@@ -5305,7 +5471,11 @@ export interface InitOutput {
5305
5471
  readonly readoperation_toJSON: (a: number, b: number) => void;
5306
5472
  readonly __wbg_statetransitionfeevalidator_free: (a: number) => void;
5307
5473
  readonly statetransitionfeevalidator_new: (a: number) => number;
5308
- readonly statetransitionfeevalidator_validate: (a: number, b: number) => number;
5474
+ readonly statetransitionfeevalidator_validate: (a: number, b: number, c: number) => number;
5475
+ readonly generateTemporaryEcdsaPrivateKey: () => number;
5476
+ readonly identitycreatetransition_publicKeys: (a: number, b: number) => void;
5477
+ readonly identitycreatetransition_getAssetLockProof: (a: number) => number;
5478
+ readonly identitycreatetransition_identityId: (a: number) => number;
5309
5479
  readonly __wbg_invalidassetlocktransactionoutputreturnsizeerror_free: (a: number) => void;
5310
5480
  readonly __wbg_invalididentityassetlocktransactionoutputerror_free: (a: number) => void;
5311
5481
  readonly __wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_free: (a: number) => void;
@@ -5316,31 +5486,22 @@ export interface InitOutput {
5316
5486
  readonly __wbg_identitypublickeyisdisablederror_free: (a: number) => void;
5317
5487
  readonly __wbg_invalididentitypublickeyiderror_free: (a: number) => void;
5318
5488
  readonly __wbg_maxidentitypublickeylimitreachederror_free: (a: number) => void;
5489
+ readonly __wbg_dashplatformprotocol_free: (a: number) => void;
5490
+ readonly dashplatformprotocol_new: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5491
+ readonly dashplatformprotocol_data_contract: (a: number) => number;
5492
+ readonly dashplatformprotocol_document: (a: number) => number;
5493
+ readonly dashplatformprotocol_identity: (a: number) => number;
5494
+ readonly dashplatformprotocol_state_transition: (a: number) => number;
5495
+ readonly dashplatformprotocol_getProtocolVersion: (a: number) => number;
5496
+ readonly dashplatformprotocol_setProtocolVersion: (a: number, b: number, c: number) => void;
5497
+ readonly dashplatformprotocol_setStateRepository: (a: number, b: number, c: number) => void;
5498
+ readonly dashplatformprotocol_getStateRepository: (a: number) => number;
5499
+ readonly __wbg_documentnorevisionerror_free: (a: number) => void;
5319
5500
  readonly documentnorevisionerror_new: (a: number) => number;
5501
+ readonly documentnorevisionerror_getDocument: (a: number) => number;
5320
5502
  readonly __wbg_invalidinitialrevisionerror_free: (a: number) => void;
5321
5503
  readonly invalidinitialrevisionerror_new: (a: number) => number;
5322
5504
  readonly invalidinitialrevisionerror_getDocument: (a: number) => number;
5323
- readonly __wbg_document_free: (a: number) => void;
5324
- readonly document_new: (a: number, b: number, c: number, d: number) => void;
5325
- readonly document_getId: (a: number) => number;
5326
- readonly document_setId: (a: number, b: number) => void;
5327
- readonly document_setOwnerId: (a: number, b: number) => void;
5328
- readonly document_getOwnerId: (a: number) => number;
5329
- readonly document_setRevision: (a: number, b: number, c: number) => void;
5330
- readonly document_getRevision: (a: number, b: number) => void;
5331
- readonly document_setData: (a: number, b: number, c: number) => void;
5332
- readonly document_getData: (a: number, b: number) => void;
5333
- readonly document_set: (a: number, b: number, c: number, d: number, e: number) => void;
5334
- readonly document_get: (a: number, b: number, c: number, d: number) => void;
5335
- readonly document_setCreatedAt: (a: number, b: number) => void;
5336
- readonly document_setUpdatedAt: (a: number, b: number) => void;
5337
- readonly document_getCreatedAt: (a: number) => number;
5338
- readonly document_getUpdatedAt: (a: number) => number;
5339
- readonly document_toObject: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5340
- readonly document_toJSON: (a: number, b: number) => void;
5341
- readonly document_toBuffer: (a: number, b: number) => void;
5342
- readonly document_hash: (a: number, b: number, c: number, d: number, e: number) => void;
5343
- readonly document_clone: (a: number) => number;
5344
5505
  readonly __wbg_documenttimestampwindowviolationerror_free: (a: number) => void;
5345
5506
  readonly documenttimestampwindowviolationerror_getDocumentId: (a: number) => number;
5346
5507
  readonly documenttimestampwindowviolationerror_getTimestampName: (a: number, b: number) => void;
@@ -5350,6 +5511,7 @@ export interface InitOutput {
5350
5511
  readonly documenttimestampwindowviolationerror_getCode: (a: number) => number;
5351
5512
  readonly documenttimestampwindowviolationerror_message: (a: number, b: number) => void;
5352
5513
  readonly documenttimestampwindowviolationerror_serialize: (a: number, b: number) => void;
5514
+ readonly datacontractnotpresentnotconsensuserror_getDataContractId: (a: number) => number;
5353
5515
  readonly __wbg_identityfactory_free: (a: number) => void;
5354
5516
  readonly identityfactory_new: (a: number, b: number, c: number) => void;
5355
5517
  readonly identityfactory_create: (a: number, b: number, c: number, d: number) => void;
@@ -5360,24 +5522,16 @@ export interface InitOutput {
5360
5522
  readonly identityfactory_createIdentityCreateTransition: (a: number, b: number, c: number) => void;
5361
5523
  readonly identityfactory_createIdentityTopUpTransition: (a: number, b: number, c: number, d: number) => void;
5362
5524
  readonly identityfactory_createIdentityUpdateTransition: (a: number, b: number, c: number, d: number) => void;
5363
- readonly __wbg_assetlockoutputnotfounderror_free: (a: number) => void;
5364
5525
  readonly __wbg_assetlocktransactionisnotfounderror_free: (a: number) => void;
5365
5526
  readonly assetlocktransactionisnotfounderror_getTransactionId: (a: number) => number;
5366
- readonly generateTemporaryEcdsaPrivateKey: () => number;
5527
+ readonly __wbg_identitycreatetransitionbasicvalidator_free: (a: number) => void;
5528
+ readonly identitycreatetransitionbasicvalidator_new: (a: number, b: number, c: number) => void;
5529
+ readonly identitycreatetransitionbasicvalidator_validate: (a: number, b: number, c: number) => number;
5367
5530
  readonly tryingtoreplaceimmutabledocumenterror_new: (a: number) => number;
5368
- readonly __wbg_documentnorevisionerror_free: (a: number) => void;
5531
+ readonly dashplatformprotocol_protocol_version: (a: number) => number;
5369
5532
  readonly __wbg_tryingtoreplaceimmutabledocumenterror_free: (a: number) => void;
5370
- readonly documentnorevisionerror_getDocument: (a: number) => number;
5371
- readonly __wbg_dashplatformprotocol_free: (a: number) => void;
5372
- readonly dashplatformprotocol_new: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5373
- readonly dashplatformprotocol_data_contract: (a: number) => number;
5374
- readonly dashplatformprotocol_document: (a: number) => number;
5375
- readonly dashplatformprotocol_identity: (a: number) => number;
5376
- readonly dashplatformprotocol_state_transition: (a: number) => number;
5377
- readonly dashplatformprotocol_getProtocolVersion: (a: number) => number;
5378
- readonly dashplatformprotocol_setProtocolVersion: (a: number, b: number, c: number) => void;
5379
- readonly dashplatformprotocol_setStateRepository: (a: number, b: number, c: number) => void;
5380
- readonly dashplatformprotocol_getStateRepository: (a: number) => number;
5533
+ readonly __wbg_datacontractnotpresentnotconsensuserror_free: (a: number) => void;
5534
+ readonly datacontractgenericerror_getMessage: (a: number, b: number) => void;
5381
5535
  readonly __wbg_documentalreadyexistserror_free: (a: number) => void;
5382
5536
  readonly documentalreadyexistserror_getDocumentTransition: (a: number) => number;
5383
5537
  readonly __wbg_documentfacade_free: (a: number) => void;
@@ -5389,22 +5543,59 @@ export interface InitOutput {
5389
5543
  readonly documentfacade_validate: (a: number, b: number) => number;
5390
5544
  readonly documentfacade_validate_raw_document: (a: number, b: number) => number;
5391
5545
  readonly findDuplicatesById: (a: number, b: number) => void;
5392
- readonly __wbg_invalididentitypublickeytypeerror_free: (a: number) => void;
5393
5546
  readonly invalididentitypublickeytypeerror_new: (a: number, b: number) => void;
5394
5547
  readonly invalididentitypublickeytypeerror_getPublicKeyType: (a: number) => number;
5395
5548
  readonly invalididentitypublickeytypeerror_getCode: (a: number) => number;
5396
5549
  readonly invalididentitypublickeytypeerror_message: (a: number, b: number) => void;
5397
5550
  readonly invalididentitypublickeytypeerror_serialize: (a: number, b: number) => void;
5398
- readonly __wbg_invalidinstantassetlockprooferror_free: (a: number) => void;
5399
5551
  readonly invalidinstantassetlockprooferror_getCode: (a: number) => number;
5400
5552
  readonly invalidinstantassetlockprooferror_message: (a: number, b: number) => void;
5401
5553
  readonly invalidinstantassetlockprooferror_serialize: (a: number, b: number) => void;
5402
- readonly __wbg_datacontractnotpresentnotconsensuserror_free: (a: number) => void;
5403
- readonly datacontractnotpresentnotconsensuserror_getDataContractId: (a: number) => number;
5554
+ readonly __wbg_basicblserror_free: (a: number) => void;
5555
+ readonly basicblserror_getCode: (a: number) => number;
5556
+ readonly basicblserror_message: (a: number, b: number) => void;
5557
+ readonly basicblserror_serialize: (a: number, b: number) => void;
5558
+ readonly basicecdsaerror_getCode: (a: number) => number;
5559
+ readonly basicecdsaerror_message: (a: number, b: number) => void;
5560
+ readonly basicecdsaerror_serialize: (a: number, b: number) => void;
5561
+ readonly signatureshouldnotbepresenterror_getCode: (a: number) => number;
5562
+ readonly signatureshouldnotbepresenterror_message: (a: number, b: number) => void;
5563
+ readonly signatureshouldnotbepresenterror_serialize: (a: number, b: number) => void;
5564
+ readonly __wbg_compatibleprotocolversionisnotdefinederror_free: (a: number) => void;
5565
+ readonly compatibleprotocolversionisnotdefinederror_getCurrentProtocolVersion: (a: number) => number;
5404
5566
  readonly unknownassetlockprooftypeerror_getType: (a: number) => number;
5405
- readonly __wbg_identitycreatetransitionbasicvalidator_free: (a: number) => void;
5406
- readonly identitycreatetransitionbasicvalidator_new: (a: number, b: number, c: number) => void;
5407
- readonly identitycreatetransitionbasicvalidator_validate: (a: number, b: number, c: number) => number;
5567
+ readonly __wbg_assetlockproof_free: (a: number) => void;
5568
+ readonly assetlockproof_new: (a: number, b: number) => void;
5569
+ readonly assetlockproof_createIdentifier: (a: number, b: number) => void;
5570
+ readonly assetlockproof_toObject: (a: number, b: number) => void;
5571
+ readonly createAssetLockProofInstance: (a: number, b: number) => void;
5572
+ readonly validateAssetLockTransaction: (a: number, b: number, c: number, d: number, e: number) => number;
5573
+ readonly fetchAssetLockTransactionOutput: (a: number, b: number, c: number) => number;
5574
+ readonly fetchAssetLockPublicKeyHash: (a: number, b: number, c: number) => number;
5575
+ readonly calculateOperationFees: (a: number, b: number) => void;
5576
+ readonly validateStateTransitionIdentitySignature: (a: number, b: number, c: number, d: number) => number;
5577
+ readonly __wbg_protocolversionvalidator_free: (a: number) => void;
5578
+ readonly protocolversionvalidator_new: (a: number, b: number) => void;
5579
+ readonly protocolversionvalidator_validate: (a: number, b: number, c: number) => void;
5580
+ readonly __wbg_documentnotprovidederror_free: (a: number) => void;
5581
+ readonly __wbg_invaliddocumentactionerror_free: (a: number) => void;
5582
+ readonly __wbg_invalididentitypublickeytypeerror_free: (a: number) => void;
5583
+ readonly __wbg_unknownassetlockprooftypeerror_free: (a: number) => void;
5584
+ readonly documentnotprovidederror_getDocumentTransition: (a: number) => number;
5585
+ readonly invaliddocumentactionerror_getDocumentTransition: (a: number) => number;
5586
+ readonly __wbg_invalidinstantassetlockprooferror_free: (a: number) => void;
5587
+ readonly __wbg_datacontractgenericerror_free: (a: number) => void;
5588
+ readonly __wbg_basicecdsaerror_free: (a: number) => void;
5589
+ readonly __wbg_signatureshouldnotbepresenterror_free: (a: number) => void;
5590
+ readonly __wbg_revisionabsenterror_free: (a: number) => void;
5591
+ readonly revisionabsenterror_new: (a: number) => number;
5592
+ readonly revisionabsenterror_getDocument: (a: number) => number;
5593
+ readonly __wbg_protocolversionparsingerror_free: (a: number) => void;
5594
+ readonly protocolversionparsingerror_new: (a: number, b: number) => number;
5595
+ readonly protocolversionparsingerror_getParsingError: (a: number, b: number) => void;
5596
+ readonly protocolversionparsingerror_getCode: (a: number) => number;
5597
+ readonly protocolversionparsingerror_serialize: (a: number, b: number) => void;
5598
+ readonly protocolversionparsingerror_message: (a: number, b: number) => void;
5408
5599
  readonly __wbg_identitytopuptransition_free: (a: number) => void;
5409
5600
  readonly identitytopuptransition_new: (a: number, b: number) => void;
5410
5601
  readonly identitytopuptransition_setAssetLockProof: (a: number, b: number, c: number) => void;
@@ -5413,42 +5604,17 @@ export interface InitOutput {
5413
5604
  readonly identitytopuptransition_getIdentityId: (a: number) => number;
5414
5605
  readonly identitytopuptransition_getOwnerId: (a: number) => number;
5415
5606
  readonly identitytopuptransition_toObject: (a: number, b: number, c: number) => void;
5416
- readonly identitytopuptransition_toBuffer: (a: number, b: number, c: number) => void;
5607
+ readonly identitytopuptransition_toBuffer: (a: number, b: number) => void;
5417
5608
  readonly identitytopuptransition_toJSON: (a: number, b: number) => void;
5418
5609
  readonly identitytopuptransition_getModifiedDataIds: (a: number, b: number) => void;
5419
5610
  readonly identitytopuptransition_isDataContractStateTransition: (a: number) => number;
5420
5611
  readonly identitytopuptransition_isDocumentStateTransition: (a: number) => number;
5421
5612
  readonly identitytopuptransition_isIdentityStateTransition: (a: number) => number;
5422
- readonly identitytopuptransition_setExecutionContext: (a: number, b: number) => void;
5423
- readonly identitytopuptransition_getExecutionContext: (a: number) => number;
5424
5613
  readonly identitytopuptransition_signByPrivateKey: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5425
5614
  readonly identitytopuptransition_getSignature: (a: number) => number;
5426
5615
  readonly identitytopuptransition_setSignature: (a: number, b: number, c: number) => void;
5427
- readonly __wbg_protocolversionvalidator_free: (a: number) => void;
5428
- readonly protocolversionvalidator_new: (a: number, b: number) => void;
5429
- readonly protocolversionvalidator_validate: (a: number, b: number, c: number) => void;
5430
- readonly dashplatformprotocol_protocol_version: (a: number) => number;
5431
5616
  readonly identitytopuptransition_getAssetLockProof: (a: number) => number;
5432
5617
  readonly identitytopuptransition_identityId: (a: number) => number;
5433
- readonly __wbg_documentnotprovidederror_free: (a: number) => void;
5434
- readonly __wbg_invaliddocumentactionerror_free: (a: number) => void;
5435
- readonly __wbg_unknownassetlockprooftypeerror_free: (a: number) => void;
5436
- readonly documentnotprovidederror_getDocumentTransition: (a: number) => number;
5437
- readonly invaliddocumentactionerror_getDocumentTransition: (a: number) => number;
5438
- readonly __wbg_datacontractgenericerror_free: (a: number) => void;
5439
- readonly datacontractgenericerror_getMessage: (a: number, b: number) => void;
5440
- readonly __wbg_revisionabsenterror_free: (a: number) => void;
5441
- readonly revisionabsenterror_new: (a: number) => number;
5442
- readonly revisionabsenterror_getDocument: (a: number) => number;
5443
- readonly __wbg_assetlockproof_free: (a: number) => void;
5444
- readonly assetlockproof_new: (a: number, b: number) => void;
5445
- readonly assetlockproof_createIdentifier: (a: number, b: number) => void;
5446
- readonly assetlockproof_toObject: (a: number, b: number) => void;
5447
- readonly createAssetLockProofInstance: (a: number, b: number) => void;
5448
- readonly validateAssetLockTransaction: (a: number, b: number, c: number, d: number, e: number) => number;
5449
- readonly fetchAssetLockTransactionOutput: (a: number, b: number, c: number) => number;
5450
- readonly fetchAssetLockPublicKeyHash: (a: number, b: number, c: number) => number;
5451
- readonly calculateOperationFees: (a: number, b: number) => void;
5452
5618
  readonly validatePartialCompoundIndices: (a: number, b: number, c: number) => void;
5453
5619
  readonly __wbg_invalidindexedpropertyconstrainterror_free: (a: number) => void;
5454
5620
  readonly invalidindexedpropertyconstrainterror_getDocumentType: (a: number, b: number) => void;
@@ -5459,12 +5625,6 @@ export interface InitOutput {
5459
5625
  readonly invalidindexedpropertyconstrainterror_getCode: (a: number) => number;
5460
5626
  readonly invalidindexedpropertyconstrainterror_message: (a: number, b: number) => void;
5461
5627
  readonly invalidindexedpropertyconstrainterror_serialize: (a: number, b: number) => void;
5462
- readonly __wbg_protocolversionparsingerror_free: (a: number) => void;
5463
- readonly protocolversionparsingerror_new: (a: number, b: number) => number;
5464
- readonly protocolversionparsingerror_getParsingError: (a: number, b: number) => void;
5465
- readonly protocolversionparsingerror_getCode: (a: number) => number;
5466
- readonly protocolversionparsingerror_serialize: (a: number, b: number) => void;
5467
- readonly protocolversionparsingerror_message: (a: number, b: number) => void;
5468
5628
  readonly missingdatacontractiderror_getCode: (a: number) => number;
5469
5629
  readonly missingdatacontractiderror_message: (a: number, b: number) => void;
5470
5630
  readonly missingdatacontractiderror_serialize: (a: number, b: number) => void;
@@ -5477,10 +5637,7 @@ export interface InitOutput {
5477
5637
  readonly missingdocumenttypeerror_getCode: (a: number) => number;
5478
5638
  readonly missingdocumenttypeerror_message: (a: number, b: number) => void;
5479
5639
  readonly missingdocumenttypeerror_serialize: (a: number, b: number) => void;
5480
- readonly __wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_free: (a: number) => void;
5481
- readonly invalididentitycreditwithdrawaltransitionoutputscripterror_getCode: (a: number) => number;
5482
- readonly invalididentitycreditwithdrawaltransitionoutputscripterror_message: (a: number, b: number) => void;
5483
- readonly invalididentitycreditwithdrawaltransitionoutputscripterror_serialize: (a: number, b: number) => void;
5640
+ readonly __wbg_invalidinstantassetlockproofsignatureerror_free: (a: number) => void;
5484
5641
  readonly invalidinstantassetlockproofsignatureerror_getCode: (a: number) => number;
5485
5642
  readonly invalidinstantassetlockproofsignatureerror_message: (a: number, b: number) => void;
5486
5643
  readonly invalidinstantassetlockproofsignatureerror_serialize: (a: number, b: number) => void;
@@ -5490,6 +5647,7 @@ export interface InitOutput {
5490
5647
  readonly invalidstatetransitionsignatureerror_getCode: (a: number) => number;
5491
5648
  readonly invalidstatetransitionsignatureerror_message: (a: number, b: number) => void;
5492
5649
  readonly invalidstatetransitionsignatureerror_serialize: (a: number, b: number) => void;
5650
+ readonly __wbg_invalidstatetransitiontypeerror_free: (a: number) => void;
5493
5651
  readonly invalidstatetransitiontypeerror_new: (a: number) => number;
5494
5652
  readonly invalidstatetransitiontypeerror_getType: (a: number) => number;
5495
5653
  readonly invalidstatetransitiontypeerror_getCode: (a: number) => number;
@@ -5508,40 +5666,59 @@ export interface InitOutput {
5508
5666
  readonly datacontractalreadypresenterror_getCode: (a: number) => number;
5509
5667
  readonly datacontractalreadypresenterror_message: (a: number, b: number) => void;
5510
5668
  readonly datacontractalreadypresenterror_serialize: (a: number, b: number) => void;
5511
- readonly __wbg_compatibleprotocolversionisnotdefinederror_free: (a: number) => void;
5512
- readonly compatibleprotocolversionisnotdefinederror_getCurrentProtocolVersion: (a: number) => number;
5513
5669
  readonly __wbg_identityupdatetransitionbasicvalidator_free: (a: number) => void;
5514
5670
  readonly identityupdatetransitionbasicvalidator_new: (a: number, b: number) => void;
5515
5671
  readonly identityupdatetransitionbasicvalidator_validate: (a: number, b: number, c: number) => void;
5516
- readonly __wbg_feeresult_free: (a: number) => void;
5517
- readonly feeresult_new: () => number;
5518
- readonly feeresult_storageFee: (a: number) => number;
5519
- readonly feeresult_processingFee: (a: number) => number;
5520
- readonly feeresult_feeRefunds: (a: number) => number;
5521
- readonly feeresult_totalRefunds: (a: number) => number;
5522
- readonly feeresult_desiredAmount: (a: number) => number;
5523
- readonly feeresult_requiredAmount: (a: number) => number;
5524
- readonly feeresult_set_storageFee: (a: number, b: number, c: number) => void;
5525
- readonly feeresult_set_processingFee: (a: number, b: number, c: number) => void;
5526
- readonly feeresult_set_feeRefunds: (a: number, b: number, c: number) => void;
5527
- readonly feeresult_set_desiredAmount: (a: number, b: number, c: number) => void;
5528
- readonly feeresult_set_requiredAmount: (a: number, b: number, c: number) => void;
5529
- readonly feeresult_set_totalRefunds: (a: number, b: number, c: number) => void;
5530
- readonly validateStateTransitionIdentitySignature: (a: number, b: number, c: number) => number;
5531
- readonly __wbg_missingdocumenttransitionactionerror_free: (a: number) => void;
5532
- readonly __wbg_missingdocumenttransitiontypeerror_free: (a: number) => void;
5533
- readonly __wbg_missingdocumenttypeerror_free: (a: number) => void;
5534
- readonly __wbg_missingdatacontractiderror_free: (a: number) => void;
5535
- readonly __wbg_invalidinstantassetlockproofsignatureerror_free: (a: number) => void;
5672
+ readonly __wbg_identity_free: (a: number) => void;
5673
+ readonly identity_new: (a: number, b: number) => void;
5674
+ readonly identity_getProtocolVersion: (a: number) => number;
5675
+ readonly identity_getId: (a: number) => number;
5676
+ readonly identity_setPublicKeys: (a: number, b: number, c: number) => void;
5677
+ readonly identity_getPublicKeys: (a: number, b: number) => void;
5678
+ readonly identity_getPublicKeyById: (a: number, b: number) => number;
5679
+ readonly identity_balance: (a: number) => number;
5680
+ readonly identity_setBalance: (a: number, b: number) => void;
5681
+ readonly identity_increaseBalance: (a: number, b: number) => number;
5682
+ readonly identity_reduceBalance: (a: number, b: number) => number;
5683
+ readonly identity_setAssetLockProof: (a: number, b: number, c: number) => void;
5684
+ readonly identity_getAssetLockProof: (a: number) => number;
5685
+ readonly identity_setRevision: (a: number, b: number) => void;
5686
+ readonly identity_getRevision: (a: number) => number;
5687
+ readonly identity_setMetadata: (a: number, b: number, c: number) => void;
5688
+ readonly identity_getMetadata: (a: number) => number;
5689
+ readonly identity_from: (a: number) => number;
5690
+ readonly identity_toJSON: (a: number, b: number) => void;
5691
+ readonly identity_toObject: (a: number, b: number) => void;
5692
+ readonly identity_toBuffer: (a: number, b: number) => void;
5693
+ readonly identity_hash: (a: number, b: number) => void;
5694
+ readonly identity_addPublicKey: (a: number, b: number) => void;
5695
+ readonly identity_addPublicKeys: (a: number, b: number, c: number) => void;
5696
+ readonly identity_getPublicKeyMaxId: (a: number) => number;
5697
+ readonly __wbg_feeresult_free: (a: number) => void;
5698
+ readonly feeresult_new: () => number;
5699
+ readonly feeresult_storageFee: (a: number) => number;
5700
+ readonly feeresult_processingFee: (a: number) => number;
5701
+ readonly feeresult_feeRefunds: (a: number) => number;
5702
+ readonly feeresult_totalRefunds: (a: number) => number;
5703
+ readonly feeresult_desiredAmount: (a: number) => number;
5704
+ readonly feeresult_requiredAmount: (a: number) => number;
5705
+ readonly feeresult_set_storageFee: (a: number, b: number, c: number) => void;
5706
+ readonly feeresult_set_processingFee: (a: number, b: number, c: number) => void;
5707
+ readonly feeresult_set_feeRefunds: (a: number, b: number, c: number) => void;
5708
+ readonly feeresult_set_desiredAmount: (a: number, b: number, c: number) => void;
5709
+ readonly feeresult_set_requiredAmount: (a: number, b: number, c: number) => void;
5710
+ readonly feeresult_set_totalRefunds: (a: number, b: number, c: number) => void;
5711
+ readonly decodeProtocolEntity: (a: number, b: number, c: number) => void;
5712
+ readonly __wbg_missingdocumenttransitionactionerror_free: (a: number) => void;
5713
+ readonly __wbg_missingdocumenttransitiontypeerror_free: (a: number) => void;
5714
+ readonly __wbg_missingdocumenttypeerror_free: (a: number) => void;
5715
+ readonly __wbg_missingdatacontractiderror_free: (a: number) => void;
5536
5716
  readonly __wbg_missingmasterpublickeyerror_free: (a: number) => void;
5537
5717
  readonly __wbg_invalidstatetransitionsignatureerror_free: (a: number) => void;
5538
- readonly __wbg_invalidstatetransitiontypeerror_free: (a: number) => void;
5539
- readonly validateDataContractUpdateTransitionState: (a: number, b: number) => number;
5718
+ readonly identity_getBalance: (a: number) => number;
5719
+ readonly validateDataContractUpdateTransitionState: (a: number, b: number, c: number) => number;
5540
5720
  readonly validateIndicesAreBackwardCompatible: (a: number, b: number, c: number) => void;
5541
5721
  readonly validateDataContractUpdateTransitionBasic: (a: number, b: number, c: number) => number;
5542
- readonly __wbg_datatriggerexecutionresult_free: (a: number) => void;
5543
- readonly datatriggerexecutionresult_isOk: (a: number) => number;
5544
- readonly datatriggerexecutionresult_getErrors: (a: number) => number;
5545
5722
  readonly __wbg_documentcreatetransition_free: (a: number) => void;
5546
5723
  readonly documentcreatetransition_from_raw_object: (a: number, b: number, c: number) => void;
5547
5724
  readonly documentcreatetransition_getEntropy: (a: number, b: number) => void;
@@ -5571,13 +5748,6 @@ export interface InitOutput {
5571
5748
  readonly documentreplacetransition_getDataContractId: (a: number) => number;
5572
5749
  readonly documentreplacetransition_get: (a: number, b: number, c: number, d: number) => void;
5573
5750
  readonly validateDocumentsUniquenessByIndices: (a: number, b: number, c: number, d: number, e: number) => number;
5574
- readonly __wbg_incompatibledatacontractschemaerror_free: (a: number) => void;
5575
- readonly incompatibledatacontractschemaerror_getDataContractId: (a: number) => number;
5576
- readonly incompatibledatacontractschemaerror_getOperation: (a: number, b: number) => void;
5577
- readonly incompatibledatacontractschemaerror_getFieldPath: (a: number, b: number) => void;
5578
- readonly incompatibledatacontractschemaerror_getCode: (a: number) => number;
5579
- readonly incompatibledatacontractschemaerror_message: (a: number, b: number) => void;
5580
- readonly incompatibledatacontractschemaerror_serialize: (a: number, b: number) => void;
5581
5751
  readonly __wbg_invalidindexpropertytypeerror_free: (a: number) => void;
5582
5752
  readonly invalidindexpropertytypeerror_getDocumentType: (a: number, b: number) => void;
5583
5753
  readonly invalidindexpropertytypeerror_getIndexName: (a: number, b: number) => void;
@@ -5586,30 +5756,12 @@ export interface InitOutput {
5586
5756
  readonly invalidindexpropertytypeerror_getCode: (a: number) => number;
5587
5757
  readonly invalidindexpropertytypeerror_message: (a: number, b: number) => void;
5588
5758
  readonly invalidindexpropertytypeerror_serialize: (a: number, b: number) => void;
5589
- readonly __wbg_missingstatetransitiontypeerror_free: (a: number) => void;
5590
- readonly missingstatetransitiontypeerror_new: () => number;
5591
- readonly missingstatetransitiontypeerror_getCode: (a: number) => number;
5592
- readonly missingstatetransitiontypeerror_message: (a: number, b: number) => void;
5593
- readonly missingstatetransitiontypeerror_serialize: (a: number, b: number) => void;
5594
5759
  readonly __wbg_identitynotfounderror_free: (a: number) => void;
5595
5760
  readonly identitynotfounderror_new: (a: number) => number;
5596
5761
  readonly identitynotfounderror_getIdentityId: (a: number) => number;
5597
5762
  readonly identitynotfounderror_getCode: (a: number) => number;
5598
5763
  readonly identitynotfounderror_message: (a: number, b: number) => void;
5599
5764
  readonly identitynotfounderror_serialize: (a: number, b: number) => void;
5600
- readonly __wbg_datatriggerconditionerror_free: (a: number) => void;
5601
- readonly datatriggerconditionerror_getDataContractId: (a: number) => number;
5602
- readonly datatriggerconditionerror_getDocumentId: (a: number) => number;
5603
- readonly datatriggerconditionerror_getMessage: (a: number, b: number) => void;
5604
- readonly datatriggerconditionerror_getCode: (a: number) => number;
5605
- readonly datatriggerconditionerror_message: (a: number, b: number) => void;
5606
- readonly datatriggerconditionerror_serialize: (a: number, b: number) => void;
5607
- readonly datatriggerexecutionerror_getDataContractId: (a: number) => number;
5608
- readonly datatriggerexecutionerror_getDocumentId: (a: number) => number;
5609
- readonly datatriggerexecutionerror_getMessage: (a: number, b: number) => void;
5610
- readonly datatriggerexecutionerror_getCode: (a: number) => number;
5611
- readonly datatriggerexecutionerror_message: (a: number, b: number) => void;
5612
- readonly datatriggerexecutionerror_serialize: (a: number, b: number) => void;
5613
5765
  readonly __wbg_documentowneridmismatcherror_free: (a: number) => void;
5614
5766
  readonly documentowneridmismatcherror_getDocumentId: (a: number) => number;
5615
5767
  readonly documentowneridmismatcherror_getDocumentOwnerId: (a: number) => number;
@@ -5650,14 +5802,12 @@ export interface InitOutput {
5650
5802
  readonly identityupdatetransition_setIdentityId: (a: number, b: number) => void;
5651
5803
  readonly identityupdatetransition_getOwnerId: (a: number) => number;
5652
5804
  readonly identityupdatetransition_toObject: (a: number, b: number, c: number) => void;
5653
- readonly identityupdatetransition_toBuffer: (a: number, b: number, c: number) => void;
5805
+ readonly identityupdatetransition_toBuffer: (a: number, b: number) => void;
5654
5806
  readonly identityupdatetransition_toJSON: (a: number, b: number) => void;
5655
5807
  readonly identityupdatetransition_getModifiedDataIds: (a: number, b: number) => void;
5656
5808
  readonly identityupdatetransition_isDataContractStateTransition: (a: number) => number;
5657
5809
  readonly identityupdatetransition_isDocumentStateTransition: (a: number) => number;
5658
5810
  readonly identityupdatetransition_isIdentityStateTransition: (a: number) => number;
5659
- readonly identityupdatetransition_setExecutionContext: (a: number, b: number) => void;
5660
- readonly identityupdatetransition_getExecutionContext: (a: number) => number;
5661
5811
  readonly identityupdatetransition_signByPrivateKey: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5662
5812
  readonly identityupdatetransition_setSignaturePublicKeyId: (a: number, b: number, c: number) => void;
5663
5813
  readonly identityupdatetransition_getSignature: (a: number) => number;
@@ -5669,41 +5819,12 @@ export interface InitOutput {
5669
5819
  readonly __wbg_publickeyssignaturesvalidator_free: (a: number) => void;
5670
5820
  readonly publickeyssignaturesvalidator_new: (a: number) => number;
5671
5821
  readonly publickeyssignaturesvalidator_validate: (a: number, b: number, c: number, d: number, e: number) => void;
5672
- readonly __wbg_identity_free: (a: number) => void;
5673
- readonly identity_new: (a: number, b: number) => void;
5674
- readonly identity_getProtocolVersion: (a: number) => number;
5675
- readonly identity_getId: (a: number) => number;
5676
- readonly identity_setPublicKeys: (a: number, b: number, c: number) => void;
5677
- readonly identity_getPublicKeys: (a: number, b: number) => void;
5678
- readonly identity_getPublicKeyById: (a: number, b: number) => number;
5679
- readonly identity_balance: (a: number) => number;
5680
- readonly identity_setBalance: (a: number, b: number) => void;
5681
- readonly identity_increaseBalance: (a: number, b: number) => number;
5682
- readonly identity_reduceBalance: (a: number, b: number) => number;
5683
- readonly identity_setAssetLockProof: (a: number, b: number, c: number) => void;
5684
- readonly identity_getAssetLockProof: (a: number) => number;
5685
- readonly identity_setRevision: (a: number, b: number) => void;
5686
- readonly identity_getRevision: (a: number) => number;
5687
- readonly identity_setMetadata: (a: number, b: number, c: number) => void;
5688
- readonly identity_getMetadata: (a: number) => number;
5689
- readonly identity_from: (a: number) => number;
5690
- readonly identity_toJSON: (a: number, b: number) => void;
5691
- readonly identity_toObject: (a: number, b: number) => void;
5692
- readonly identity_toBuffer: (a: number, b: number) => void;
5693
- readonly identity_hash: (a: number, b: number) => void;
5694
- readonly identity_addPublicKey: (a: number, b: number) => void;
5695
- readonly identity_addPublicKeys: (a: number, b: number, c: number) => void;
5696
- readonly identity_getPublicKeyMaxId: (a: number) => number;
5697
5822
  readonly __wbg_statetransitionfactory_free: (a: number) => void;
5698
5823
  readonly statetransitionfactory_new: (a: number, b: number, c: number) => void;
5699
5824
  readonly statetransitionfactory_createFromObject: (a: number, b: number, c: number) => number;
5700
5825
  readonly statetransitionfactory_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
5701
5826
  readonly identityupdatetransition_getPublicKeysToAdd: (a: number, b: number) => void;
5702
5827
  readonly identityupdatetransition_identityId: (a: number) => number;
5703
- readonly nodocumentssuppliederror_new: () => number;
5704
- readonly __wbg_nodocumentssuppliederror_free: (a: number) => void;
5705
- readonly identity_getBalance: (a: number) => number;
5706
- readonly __wbg_datatriggerexecutionerror_free: (a: number) => void;
5707
5828
  readonly __wbg_invaliddocumenttypeindatacontracterror_free: (a: number) => void;
5708
5829
  readonly invaliddocumenttypeindatacontracterror_new: (a: number, b: number, c: number) => number;
5709
5830
  readonly invaliddocumenttypeindatacontracterror_getType: (a: number, b: number) => void;
@@ -5717,6 +5838,9 @@ export interface InitOutput {
5717
5838
  readonly datacontractfactory_createFromObject: (a: number, b: number, c: number) => number;
5718
5839
  readonly datacontractfactory_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
5719
5840
  readonly datacontractfactory_createDataContractCreateTransition: (a: number, b: number) => number;
5841
+ readonly __wbg_datatriggerexecutionresult_free: (a: number) => void;
5842
+ readonly datatriggerexecutionresult_isOk: (a: number) => number;
5843
+ readonly datatriggerexecutionresult_getErrors: (a: number) => number;
5720
5844
  readonly __wbg_invalididentitypublickeysecuritylevelerror_free: (a: number) => void;
5721
5845
  readonly invalididentitypublickeysecuritylevelerror_getPublicKeyId: (a: number) => number;
5722
5846
  readonly invalididentitypublickeysecuritylevelerror_getPublicKeyPurpose: (a: number) => number;
@@ -5724,15 +5848,22 @@ export interface InitOutput {
5724
5848
  readonly invalididentitypublickeysecuritylevelerror_getCode: (a: number) => number;
5725
5849
  readonly invalididentitypublickeysecuritylevelerror_message: (a: number, b: number) => void;
5726
5850
  readonly invalididentitypublickeysecuritylevelerror_serialize: (a: number, b: number) => void;
5851
+ readonly missingstatetransitiontypeerror_new: () => number;
5852
+ readonly missingstatetransitiontypeerror_getCode: (a: number) => number;
5853
+ readonly missingstatetransitiontypeerror_message: (a: number, b: number) => void;
5854
+ readonly missingstatetransitiontypeerror_serialize: (a: number, b: number) => void;
5855
+ readonly __wbg_publickeyvalidationerror_free: (a: number) => void;
5856
+ readonly publickeyvalidationerror_message: (a: number) => number;
5727
5857
  readonly __wbg_identityupdatepublickeysvalidator_free: (a: number) => void;
5728
- readonly identityupdatepublickeysvalidator_new: () => number;
5729
5858
  readonly identityupdatepublickeysvalidator_validate: (a: number, b: number, c: number, d: number) => void;
5730
- readonly __wbg_invaliddatacontracterror_free: (a: number) => void;
5731
- readonly invaliddatacontracterror_getErrors: (a: number, b: number) => void;
5732
- readonly invaliddatacontracterror_getRawDataContract: (a: number) => number;
5733
- readonly invaliddatacontracterror_getMessage: (a: number, b: number) => void;
5859
+ readonly nodocumentssuppliederror_new: () => number;
5860
+ readonly identityupdatepublickeysvalidator_new: () => number;
5861
+ readonly __wbg_nodocumentssuppliederror_free: (a: number) => void;
5862
+ readonly __wbg_missingstatetransitiontypeerror_free: (a: number) => void;
5734
5863
  readonly __wbg_invalidactionerror_free: (a: number) => void;
5735
- readonly generateDocumentId: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
5864
+ readonly applyDocumentsBatchTransition: (a: number, b: number, c: number) => number;
5865
+ readonly validateDocumentsBatchTransitionBasic: (a: number, b: number, c: number, d: number) => number;
5866
+ readonly validateDocumentsBatchTransitionState: (a: number, b: number, c: number) => number;
5736
5867
  readonly __wbg_systempropertyindexalreadypresenterror_free: (a: number) => void;
5737
5868
  readonly systempropertyindexalreadypresenterror_getDocumentType: (a: number, b: number) => void;
5738
5869
  readonly systempropertyindexalreadypresenterror_getIndexName: (a: number, b: number) => void;
@@ -5746,24 +5877,29 @@ export interface InitOutput {
5746
5877
  readonly undefinedindexpropertyerror_getCode: (a: number) => number;
5747
5878
  readonly undefinedindexpropertyerror_message: (a: number, b: number) => void;
5748
5879
  readonly undefinedindexpropertyerror_serialize: (a: number, b: number) => void;
5749
- readonly __wbg_identityassetlockprooflockedtransactionmismatcherror_free: (a: number) => void;
5750
- readonly identityassetlockprooflockedtransactionmismatcherror_getInstantLockTransactionId: (a: number) => number;
5751
- readonly identityassetlockprooflockedtransactionmismatcherror_getAssetLockTransactionId: (a: number) => number;
5752
- readonly identityassetlockprooflockedtransactionmismatcherror_getCode: (a: number) => number;
5753
- readonly identityassetlockprooflockedtransactionmismatcherror_message: (a: number, b: number) => void;
5754
- readonly identityassetlockprooflockedtransactionmismatcherror_serialize: (a: number, b: number) => void;
5755
- readonly __wbg_invalidassetlockprooftransactionheighterror_free: (a: number) => void;
5756
- readonly invalidassetlockprooftransactionheighterror_getProofCoreChainLockedHeight: (a: number) => number;
5757
- readonly invalidassetlockprooftransactionheighterror_getTransactionHeight: (a: number, b: number) => void;
5758
- readonly invalidassetlockprooftransactionheighterror_getCode: (a: number) => number;
5759
- readonly invalidassetlockprooftransactionheighterror_message: (a: number, b: number) => void;
5760
- readonly invalidassetlockprooftransactionheighterror_serialize: (a: number, b: number) => void;
5761
- readonly __wbg_duplicateuniqueindexerror_free: (a: number) => void;
5762
- readonly duplicateuniqueindexerror_getDocumentId: (a: number) => number;
5763
- readonly duplicateuniqueindexerror_getDuplicatingProperties: (a: number) => number;
5764
- readonly duplicateuniqueindexerror_getCode: (a: number) => number;
5765
- readonly duplicateuniqueindexerror_message: (a: number, b: number) => void;
5766
- readonly duplicateuniqueindexerror_serialize: (a: number, b: number) => void;
5880
+ readonly __wbg_invalididentityassetlockproofchainlockvalidationerrorwasm_free: (a: number) => void;
5881
+ readonly invalididentityassetlockproofchainlockvalidationerrorwasm_getTransactionId: (a: number) => number;
5882
+ readonly invalididentityassetlockproofchainlockvalidationerrorwasm_getHeightReportedNotLocked: (a: number) => number;
5883
+ readonly __wbg_invalidsignaturepublickeysecuritylevelerror_free: (a: number) => void;
5884
+ readonly invalidsignaturepublickeysecuritylevelerror_getPublicKeySecurityLevel: (a: number) => number;
5885
+ readonly invalidsignaturepublickeysecuritylevelerror_getKeySecurityLevelRequirement: (a: number) => number;
5886
+ readonly invalidsignaturepublickeysecuritylevelerror_getCode: (a: number) => number;
5887
+ readonly invalidsignaturepublickeysecuritylevelerror_message: (a: number, b: number) => void;
5888
+ readonly invalidsignaturepublickeysecuritylevelerror_serialize: (a: number, b: number) => void;
5889
+ readonly __wbg_datatriggerexecutionerror_free: (a: number) => void;
5890
+ readonly datatriggerexecutionerror_getDataContractId: (a: number) => number;
5891
+ readonly datatriggerexecutionerror_getDocumentId: (a: number) => number;
5892
+ readonly datatriggerexecutionerror_getMessage: (a: number, b: number) => void;
5893
+ readonly datatriggerexecutionerror_getCode: (a: number) => number;
5894
+ readonly datatriggerexecutionerror_message: (a: number, b: number) => void;
5895
+ readonly datatriggerexecutionerror_serialize: (a: number, b: number) => void;
5896
+ readonly __wbg_datatriggeractionexecutionerror_free: (a: number) => void;
5897
+ readonly datatriggeractionexecutionerror_getDataContractId: (a: number) => number;
5898
+ readonly datatriggeractionexecutionerror_getExecutionError: (a: number) => number;
5899
+ readonly datatriggeractionexecutionerror_getDocumentTransitionId: (a: number) => number;
5900
+ readonly datatriggeractionexecutionerror_getMessage: (a: number, b: number) => void;
5901
+ readonly datatriggeractionexecutionerror_getOwnerId: (a: number) => number;
5902
+ readonly datatriggeractionexecutionerror_getCode: (a: number) => number;
5767
5903
  readonly __wbg_invaliddocumentrevisionerror_free: (a: number) => void;
5768
5904
  readonly invaliddocumentrevisionerror_getDocumentId: (a: number) => number;
5769
5905
  readonly invaliddocumentrevisionerror_getCurrentRevision: (a: number, b: number) => void;
@@ -5776,7 +5912,6 @@ export interface InitOutput {
5776
5912
  readonly invalididentityrevisionerror_getCode: (a: number) => number;
5777
5913
  readonly invalididentityrevisionerror_message: (a: number, b: number) => void;
5778
5914
  readonly invalididentityrevisionerror_serialize: (a: number, b: number) => void;
5779
- readonly publickeyvalidationerror_message: (a: number) => number;
5780
5915
  readonly __wbg_platformvalueerror_free: (a: number) => void;
5781
5916
  readonly platformvalueerror_getMessage: (a: number, b: number) => void;
5782
5917
  readonly platformvalueerror_toString: (a: number, b: number) => void;
@@ -5784,6 +5919,7 @@ export interface InitOutput {
5784
5919
  readonly __wbg_instantassetlockproofstructurevalidator_free: (a: number) => void;
5785
5920
  readonly instantassetlockproofstructurevalidator_new: (a: number, b: number) => void;
5786
5921
  readonly instantassetlockproofstructurevalidator_validate: (a: number, b: number, c: number) => number;
5922
+ readonly applyIdentityCreateTransition: (a: number, b: number, c: number) => number;
5787
5923
  readonly __wbg_identitypublickeywithwitness_free: (a: number) => void;
5788
5924
  readonly identitypublickeywithwitness_new: (a: number, b: number) => void;
5789
5925
  readonly identitypublickeywithwitness_getId: (a: number) => number;
@@ -5804,11 +5940,13 @@ export interface InitOutput {
5804
5940
  readonly identitypublickeywithwitness_isMaster: (a: number) => number;
5805
5941
  readonly identitypublickeywithwitness_toJSON: (a: number, b: number) => void;
5806
5942
  readonly identitypublickeywithwitness_toObject: (a: number, b: number, c: number) => void;
5943
+ readonly applyIdentityTopUpTransition: (a: number, b: number, c: number) => number;
5944
+ readonly applyIdentityUpdateTransition: (a: number, b: number, c: number) => number;
5945
+ readonly calculateStateTransitionFee: (a: number, b: number, c: number) => void;
5807
5946
  readonly __wbg_jsonschemavalidator_free: (a: number) => void;
5808
5947
  readonly jsonschemavalidator_new: (a: number, b: number, c: number) => void;
5809
5948
  readonly __wbg_undefinedindexpropertyerror_free: (a: number) => void;
5810
5949
  readonly invalidactionterror_new: (a: number) => number;
5811
- readonly __wbg_publickeyvalidationerror_free: (a: number) => void;
5812
5950
  readonly __wbg_datacontract_free: (a: number) => void;
5813
5951
  readonly datacontract_new: (a: number, b: number) => void;
5814
5952
  readonly datacontract_getProtocolVersion: (a: number) => number;
@@ -5843,25 +5981,10 @@ export interface InitOutput {
5843
5981
  readonly datacontract_clone: (a: number) => number;
5844
5982
  readonly __wbg_datacontractdefaults_free: (a: number) => void;
5845
5983
  readonly datacontractdefaults_get_default_schema: (a: number) => void;
5846
- readonly __wbg_datacontractupdatetransition_free: (a: number) => void;
5847
- readonly datacontractupdatetransition_new: (a: number, b: number) => void;
5848
- readonly datacontractupdatetransition_getDataContract: (a: number) => number;
5849
- readonly datacontractupdatetransition_getProtocolVersion: (a: number) => number;
5850
- readonly datacontractupdatetransition_getEntropy: (a: number) => number;
5851
- readonly datacontractupdatetransition_getOwnerId: (a: number) => number;
5852
- readonly datacontractupdatetransition_getType: (a: number) => number;
5853
- readonly datacontractupdatetransition_toJSON: (a: number, b: number, c: number) => void;
5854
- readonly datacontractupdatetransition_toBuffer: (a: number, b: number, c: number) => void;
5855
- readonly datacontractupdatetransition_getModifiedDataIds: (a: number, b: number) => void;
5856
- readonly datacontractupdatetransition_isDataContractStateTransition: (a: number) => number;
5857
- readonly datacontractupdatetransition_isDocumentStateTransition: (a: number) => number;
5858
- readonly datacontractupdatetransition_isIdentityStateTransition: (a: number) => number;
5859
- readonly datacontractupdatetransition_setExecutionContext: (a: number, b: number) => void;
5860
- readonly datacontractupdatetransition_getExecutionContext: (a: number) => number;
5861
- readonly datacontractupdatetransition_hash: (a: number, b: number, c: number) => void;
5862
- readonly datacontractupdatetransition_toObject: (a: number, b: number, c: number) => void;
5863
- readonly datacontractupdatetransition_sign: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5864
- readonly datacontractupdatetransition_verifySignature: (a: number, b: number, c: number, d: number) => void;
5984
+ readonly __wbg_invaliddatacontracterror_free: (a: number) => void;
5985
+ readonly invaliddatacontracterror_getErrors: (a: number, b: number) => void;
5986
+ readonly invaliddatacontracterror_getRawDataContract: (a: number) => number;
5987
+ readonly invaliddatacontracterror_getMessage: (a: number, b: number) => void;
5865
5988
  readonly __wbg_documenttransitions_free: (a: number) => void;
5866
5989
  readonly documenttransitions_new: () => number;
5867
5990
  readonly documenttransitions_addTransitionCreate: (a: number, b: number) => void;
@@ -5877,6 +6000,7 @@ export interface InitOutput {
5877
6000
  readonly fetchandvalidatedatacontractfactory_new: (a: number) => number;
5878
6001
  readonly fetchandvalidatedatacontractfactory_validate: (a: number, b: number) => number;
5879
6002
  readonly fetchAndValidateDataContract: (a: number, b: number) => number;
6003
+ readonly generateDocumentId: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
5880
6004
  readonly findDuplicatesByIndices: (a: number, b: number, c: number, d: number) => void;
5881
6005
  readonly fetchExtendedDocuments: (a: number, b: number, c: number) => number;
5882
6006
  readonly __wbg_datacontracthavenewuniqueindexerror_free: (a: number) => void;
@@ -5885,11 +6009,6 @@ export interface InitOutput {
5885
6009
  readonly datacontracthavenewuniqueindexerror_getCode: (a: number) => number;
5886
6010
  readonly datacontracthavenewuniqueindexerror_message: (a: number, b: number) => void;
5887
6011
  readonly datacontracthavenewuniqueindexerror_serialize: (a: number, b: number) => void;
5888
- readonly datacontractimmutablepropertiesupdateerror_getOperation: (a: number, b: number) => void;
5889
- readonly datacontractimmutablepropertiesupdateerror_getFieldPath: (a: number, b: number) => void;
5890
- readonly datacontractimmutablepropertiesupdateerror_getCode: (a: number) => number;
5891
- readonly datacontractimmutablepropertiesupdateerror_message: (a: number, b: number) => void;
5892
- readonly datacontractimmutablepropertiesupdateerror_serialize: (a: number, b: number) => void;
5893
6012
  readonly datacontractinvalidindexdefinitionupdateerror_getDocumentType: (a: number, b: number) => void;
5894
6013
  readonly datacontractinvalidindexdefinitionupdateerror_getIndexName: (a: number, b: number) => void;
5895
6014
  readonly datacontractinvalidindexdefinitionupdateerror_getCode: (a: number) => number;
@@ -5905,6 +6024,13 @@ export interface InitOutput {
5905
6024
  readonly duplicateindexnameerror_getCode: (a: number) => number;
5906
6025
  readonly duplicateindexnameerror_message: (a: number, b: number) => void;
5907
6026
  readonly duplicateindexnameerror_serialize: (a: number, b: number) => void;
6027
+ readonly __wbg_incompatibledatacontractschemaerror_free: (a: number) => void;
6028
+ readonly incompatibledatacontractschemaerror_getDataContractId: (a: number) => number;
6029
+ readonly incompatibledatacontractschemaerror_getOperation: (a: number, b: number) => void;
6030
+ readonly incompatibledatacontractschemaerror_getFieldPath: (a: number, b: number) => void;
6031
+ readonly incompatibledatacontractschemaerror_getCode: (a: number) => number;
6032
+ readonly incompatibledatacontractschemaerror_message: (a: number, b: number) => void;
6033
+ readonly incompatibledatacontractschemaerror_serialize: (a: number, b: number) => void;
5908
6034
  readonly __wbg_incompatiblere2patternerror_free: (a: number) => void;
5909
6035
  readonly incompatiblere2patternerror_getPattern: (a: number, b: number) => void;
5910
6036
  readonly incompatiblere2patternerror_getPath: (a: number, b: number) => void;
@@ -5949,6 +6075,12 @@ export interface InitOutput {
5949
6075
  readonly invaliddocumenttypeerror_getCode: (a: number) => number;
5950
6076
  readonly invaliddocumenttypeerror_message: (a: number, b: number) => void;
5951
6077
  readonly invaliddocumenttypeerror_serialize: (a: number, b: number) => void;
6078
+ readonly __wbg_identityassetlockprooflockedtransactionmismatcherror_free: (a: number) => void;
6079
+ readonly identityassetlockprooflockedtransactionmismatcherror_getInstantLockTransactionId: (a: number) => number;
6080
+ readonly identityassetlockprooflockedtransactionmismatcherror_getAssetLockTransactionId: (a: number) => number;
6081
+ readonly identityassetlockprooflockedtransactionmismatcherror_getCode: (a: number) => number;
6082
+ readonly identityassetlockprooflockedtransactionmismatcherror_message: (a: number, b: number) => void;
6083
+ readonly identityassetlockprooflockedtransactionmismatcherror_serialize: (a: number, b: number) => void;
5952
6084
  readonly __wbg_identityassetlocktransactionoutpointalreadyexistserror_free: (a: number) => void;
5953
6085
  readonly identityassetlocktransactionoutpointalreadyexistserror_getOutputIndex: (a: number) => number;
5954
6086
  readonly identityassetlocktransactionoutpointalreadyexistserror_getTransactionId: (a: number) => number;
@@ -5961,6 +6093,12 @@ export interface InitOutput {
5961
6093
  readonly identityinsufficientbalanceerror_getCode: (a: number) => number;
5962
6094
  readonly identityinsufficientbalanceerror_message: (a: number, b: number) => void;
5963
6095
  readonly identityinsufficientbalanceerror_serialize: (a: number, b: number) => void;
6096
+ readonly __wbg_invalidassetlockprooftransactionheighterror_free: (a: number) => void;
6097
+ readonly invalidassetlockprooftransactionheighterror_getProofCoreChainLockedHeight: (a: number) => number;
6098
+ readonly invalidassetlockprooftransactionheighterror_getTransactionHeight: (a: number, b: number) => void;
6099
+ readonly invalidassetlockprooftransactionheighterror_getCode: (a: number) => number;
6100
+ readonly invalidassetlockprooftransactionheighterror_message: (a: number, b: number) => void;
6101
+ readonly invalidassetlockprooftransactionheighterror_serialize: (a: number, b: number) => void;
5964
6102
  readonly __wbg_invalididentitypublickeydataerror_free: (a: number) => void;
5965
6103
  readonly invalididentitypublickeydataerror_getPublicKeyId: (a: number) => number;
5966
6104
  readonly invalididentitypublickeydataerror_getValidationError: (a: number, b: number) => void;
@@ -5972,12 +6110,7 @@ export interface InitOutput {
5972
6110
  readonly invalididentifiererror_getCode: (a: number) => number;
5973
6111
  readonly invalididentifiererror_message: (a: number, b: number) => void;
5974
6112
  readonly invalididentifiererror_serialize: (a: number, b: number) => void;
5975
- readonly __wbg_invalidsignaturepublickeysecuritylevelerror_free: (a: number) => void;
5976
- readonly invalidsignaturepublickeysecuritylevelerror_getPublicKeySecurityLevel: (a: number) => number;
5977
- readonly invalidsignaturepublickeysecuritylevelerror_getKeySecurityLevelRequirement: (a: number) => number;
5978
- readonly invalidsignaturepublickeysecuritylevelerror_getCode: (a: number) => number;
5979
- readonly invalidsignaturepublickeysecuritylevelerror_message: (a: number, b: number) => void;
5980
- readonly invalidsignaturepublickeysecuritylevelerror_serialize: (a: number, b: number) => void;
6113
+ readonly __wbg_publickeysecuritylevelnotmeterror_free: (a: number) => void;
5981
6114
  readonly publickeysecuritylevelnotmeterror_getPublicKeySecurityLevel: (a: number) => number;
5982
6115
  readonly publickeysecuritylevelnotmeterror_getKeySecurityLevelRequirement: (a: number) => number;
5983
6116
  readonly publickeysecuritylevelnotmeterror_getCode: (a: number) => number;
@@ -5988,26 +6121,47 @@ export interface InitOutput {
5988
6121
  readonly wrongpublickeypurposeerror_getCode: (a: number) => number;
5989
6122
  readonly wrongpublickeypurposeerror_message: (a: number, b: number) => void;
5990
6123
  readonly wrongpublickeypurposeerror_serialize: (a: number, b: number) => void;
5991
- readonly __wbg_datatriggerinvalidresulterror_free: (a: number) => void;
5992
- readonly datatriggerinvalidresulterror_getDataContractId: (a: number) => number;
5993
- readonly datatriggerinvalidresulterror_getDocumentId: (a: number) => number;
5994
- readonly datatriggerinvalidresulterror_getCode: (a: number) => number;
5995
- readonly datatriggerinvalidresulterror_message: (a: number, b: number) => void;
5996
- readonly datatriggerinvalidresulterror_serialize: (a: number, b: number) => void;
5997
- readonly __wbg_invalididentityerror_free: (a: number) => void;
5998
- readonly invalididentityerror_getErrors: (a: number, b: number) => void;
5999
- readonly invalididentityerror_getRawIdentity: (a: number) => number;
6124
+ readonly __wbg_datatriggerconditionerror_free: (a: number) => void;
6125
+ readonly datatriggerconditionerror_getDataContractId: (a: number) => number;
6126
+ readonly datatriggerconditionerror_getDocumentId: (a: number) => number;
6127
+ readonly datatriggerconditionerror_getMessage: (a: number, b: number) => void;
6128
+ readonly datatriggerconditionerror_getCode: (a: number) => number;
6129
+ readonly datatriggerconditionerror_message: (a: number, b: number) => void;
6130
+ readonly datatriggerconditionerror_serialize: (a: number, b: number) => void;
6131
+ readonly __wbg_datatriggeractionconditionerror_free: (a: number) => void;
6132
+ readonly datatriggeractionconditionerror_getDataContractId: (a: number) => number;
6133
+ readonly datatriggeractionconditionerror_getDocumentTransitionId: (a: number) => number;
6134
+ readonly datatriggeractionconditionerror_getMessage: (a: number, b: number) => void;
6135
+ readonly datatriggeractionconditionerror_getOwnerId: (a: number) => number;
6136
+ readonly datatriggeractionconditionerror_getCode: (a: number) => number;
6137
+ readonly __wbg_duplicateuniqueindexerror_free: (a: number) => void;
6138
+ readonly duplicateuniqueindexerror_getDocumentId: (a: number) => number;
6139
+ readonly duplicateuniqueindexerror_getDuplicatingProperties: (a: number) => number;
6140
+ readonly duplicateuniqueindexerror_getCode: (a: number) => number;
6141
+ readonly duplicateuniqueindexerror_message: (a: number, b: number) => void;
6142
+ readonly duplicateuniqueindexerror_serialize: (a: number, b: number) => void;
6143
+ readonly __wbg_identityvalidator_free: (a: number) => void;
6144
+ readonly identityvalidator_new: (a: number, b: number) => void;
6145
+ readonly identityvalidator_validate: (a: number, b: number, c: number) => void;
6000
6146
  readonly __wbg_chainassetlockproofstructurevalidator_free: (a: number) => void;
6001
6147
  readonly chainassetlockproofstructurevalidator_new: (a: number, b: number) => void;
6002
6148
  readonly chainassetlockproofstructurevalidator_validate: (a: number, b: number, c: number) => number;
6149
+ readonly __wbg_identityupdatetransitionstatevalidator_free: (a: number) => void;
6150
+ readonly identityupdatetransitionstatevalidator_new: (a: number, b: number) => void;
6151
+ readonly identityupdatetransitionstatevalidator_validate: (a: number, b: number, c: number) => number;
6003
6152
  readonly invalidstatetransitionerror_new_wasm: (a: number, b: number, c: number, d: number) => void;
6004
6153
  readonly __wbg_refunds_free: (a: number) => void;
6005
6154
  readonly refunds_credits_per_epoch: (a: number) => number;
6006
6155
  readonly refunds_toObject: (a: number, b: number) => void;
6156
+ readonly __wbg_operation_free: (a: number) => void;
6157
+ readonly __wbg_statetransitionkeysignaturevalidator_free: (a: number) => void;
6158
+ readonly statetransitionkeysignaturevalidator_new: (a: number) => number;
6159
+ readonly statetransitionkeysignaturevalidator_validate: (a: number, b: number, c: number) => number;
6160
+ readonly invalididentityerror_getRawIdentity: (a: number) => number;
6007
6161
  readonly invalidstatetransitionerror_getRawStateTransition: (a: number) => number;
6162
+ readonly __wbg_invalididentityerror_free: (a: number) => void;
6008
6163
  readonly __wbg_invalidstatetransitionerror_free: (a: number) => void;
6009
6164
  readonly refunds_identifier: (a: number) => number;
6010
- readonly __wbg_datacontractimmutablepropertiesupdateerror_free: (a: number) => void;
6011
6165
  readonly __wbg_datacontractinvalidindexdefinitionupdateerror_free: (a: number) => void;
6012
6166
  readonly __wbg_datacontractuniqueindiceschangederror_free: (a: number) => void;
6013
6167
  readonly __wbg_duplicateindexnameerror_free: (a: number) => void;
@@ -6015,10 +6169,10 @@ export interface InitOutput {
6015
6169
  readonly __wbg_invalidcompoundindexerror_free: (a: number) => void;
6016
6170
  readonly __wbg_invaliddatacontractiderror_free: (a: number) => void;
6017
6171
  readonly __wbg_invalididentifiererror_free: (a: number) => void;
6172
+ readonly invalididentityerror_getErrors: (a: number, b: number) => void;
6018
6173
  readonly invalidstatetransitionerror_getErrors: (a: number, b: number) => void;
6019
- readonly __wbg_publickeysecuritylevelnotmeterror_free: (a: number) => void;
6020
- readonly __wbg_wrongpublickeypurposeerror_free: (a: number) => void;
6021
6174
  readonly __wbg_invaliddocumenttransitioniderror_free: (a: number) => void;
6175
+ readonly __wbg_wrongpublickeypurposeerror_free: (a: number) => void;
6022
6176
  readonly __wbg_uniqueindiceslimitreachederror_free: (a: number) => void;
6023
6177
  readonly __wbg_datacontractcreatetransition_free: (a: number) => void;
6024
6178
  readonly datacontractcreatetransition_new: (a: number, b: number) => void;
@@ -6028,19 +6182,34 @@ export interface InitOutput {
6028
6182
  readonly datacontractcreatetransition_getOwnerId: (a: number) => number;
6029
6183
  readonly datacontractcreatetransition_getType: (a: number) => number;
6030
6184
  readonly datacontractcreatetransition_toJSON: (a: number, b: number, c: number) => void;
6031
- readonly datacontractcreatetransition_toBuffer: (a: number, b: number, c: number) => void;
6185
+ readonly datacontractcreatetransition_toBuffer: (a: number, b: number) => void;
6032
6186
  readonly datacontractcreatetransition_getModifiedDataIds: (a: number, b: number) => void;
6033
6187
  readonly datacontractcreatetransition_isDataContractStateTransition: (a: number) => number;
6034
6188
  readonly datacontractcreatetransition_isDocumentStateTransition: (a: number) => number;
6035
6189
  readonly datacontractcreatetransition_isIdentityStateTransition: (a: number) => number;
6036
- readonly datacontractcreatetransition_setExecutionContext: (a: number, b: number) => void;
6037
- readonly datacontractcreatetransition_getExecutionContext: (a: number) => number;
6038
6190
  readonly datacontractcreatetransition_toObject: (a: number, b: number, c: number) => void;
6039
6191
  readonly datacontractcreatetransition_sign: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
6040
6192
  readonly datacontractcreatetransition_verifySignature: (a: number, b: number, c: number, d: number) => void;
6041
6193
  readonly __wbg_applydatacontractupdatetransition_free: (a: number) => void;
6042
6194
  readonly applydatacontractupdatetransition_new: (a: number) => number;
6043
- readonly applydatacontractupdatetransition_applyDataContractUpdateTransition: (a: number, b: number) => number;
6195
+ readonly applydatacontractupdatetransition_applyDataContractUpdateTransition: (a: number, b: number, c: number) => number;
6196
+ readonly __wbg_datacontractupdatetransition_free: (a: number) => void;
6197
+ readonly datacontractupdatetransition_new: (a: number, b: number) => void;
6198
+ readonly datacontractupdatetransition_getDataContract: (a: number) => number;
6199
+ readonly datacontractupdatetransition_getProtocolVersion: (a: number) => number;
6200
+ readonly datacontractupdatetransition_getEntropy: (a: number) => number;
6201
+ readonly datacontractupdatetransition_getOwnerId: (a: number) => number;
6202
+ readonly datacontractupdatetransition_getType: (a: number) => number;
6203
+ readonly datacontractupdatetransition_toJSON: (a: number, b: number, c: number) => void;
6204
+ readonly datacontractupdatetransition_toBuffer: (a: number, b: number) => void;
6205
+ readonly datacontractupdatetransition_getModifiedDataIds: (a: number, b: number) => void;
6206
+ readonly datacontractupdatetransition_isDataContractStateTransition: (a: number) => number;
6207
+ readonly datacontractupdatetransition_isDocumentStateTransition: (a: number) => number;
6208
+ readonly datacontractupdatetransition_isIdentityStateTransition: (a: number) => number;
6209
+ readonly datacontractupdatetransition_hash: (a: number, b: number, c: number) => void;
6210
+ readonly datacontractupdatetransition_toObject: (a: number, b: number, c: number) => void;
6211
+ readonly datacontractupdatetransition_sign: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
6212
+ readonly datacontractupdatetransition_verifySignature: (a: number, b: number, c: number, d: number) => void;
6044
6213
  readonly __wbg_datatriggerexecutioncontext_free: (a: number) => void;
6045
6214
  readonly datatriggerexecutioncontext_new: (a: number, b: number, c: number, d: number, e: number) => void;
6046
6215
  readonly datatriggerexecutioncontext_ownerId: (a: number) => number;
@@ -6056,9 +6225,6 @@ export interface InitOutput {
6056
6225
  readonly invaliddocumenterror_new: (a: number, b: number, c: number) => number;
6057
6226
  readonly invaliddocumenterror_getErrors: (a: number, b: number) => void;
6058
6227
  readonly invaliddocumenterror_getRawDocument: (a: number) => number;
6059
- readonly applyDocumentsBatchTransition: (a: number, b: number) => number;
6060
- readonly validateDocumentsBatchTransitionBasic: (a: number, b: number, c: number, d: number) => number;
6061
- readonly validateDocumentsBatchTransitionState: (a: number, b: number) => number;
6062
6228
  readonly __wbg_documentsbatchtransition_free: (a: number) => void;
6063
6229
  readonly documentsbatchtransition_from_raw_object: (a: number, b: number, c: number) => void;
6064
6230
  readonly documentsbatchtransition_getType: (a: number) => number;
@@ -6081,9 +6247,7 @@ export interface InitOutput {
6081
6247
  readonly documentsbatchtransition_isDocumentStateTransition: (a: number) => number;
6082
6248
  readonly documentsbatchtransition_isDataContractStateTransition: (a: number) => number;
6083
6249
  readonly documentsbatchtransition_isIdentityStateTransition: (a: number) => number;
6084
- readonly documentsbatchtransition_setExecutionContext: (a: number, b: number) => void;
6085
- readonly documentsbatchtransition_getExecutionContext: (a: number) => number;
6086
- readonly documentsbatchtransition_toBuffer: (a: number, b: number, c: number) => void;
6250
+ readonly documentsbatchtransition_toBuffer: (a: number, b: number) => void;
6087
6251
  readonly documentsbatchtransition_hash: (a: number, b: number, c: number) => void;
6088
6252
  readonly __wbg_documentvalidator_free: (a: number) => void;
6089
6253
  readonly documentvalidator_new: (a: number) => number;
@@ -6144,20 +6308,19 @@ export interface InitOutput {
6144
6308
  readonly identitypublickey_isMaster: (a: number) => number;
6145
6309
  readonly identitypublickey_toJSON: (a: number, b: number) => void;
6146
6310
  readonly identitypublickey_toObject: (a: number, b: number) => void;
6147
- readonly __wbg_identityvalidator_free: (a: number) => void;
6148
- readonly identityvalidator_new: (a: number, b: number) => void;
6149
- readonly identityvalidator_validate: (a: number, b: number, c: number) => void;
6150
- readonly applyIdentityCreateTransition: (a: number, b: number) => number;
6151
6311
  readonly __wbg_identitycreatetransitionstatevalidator_free: (a: number) => void;
6152
6312
  readonly identitycreatetransitionstatevalidator_new: (a: number) => number;
6153
- readonly identitycreatetransitionstatevalidator_validate: (a: number, b: number) => number;
6154
- readonly applyIdentityTopUpTransition: (a: number, b: number) => number;
6155
- readonly identitytopuptransitionstatevalidator_validate: (a: number, b: number) => number;
6156
- readonly applyIdentityUpdateTransition: (a: number, b: number) => number;
6157
- readonly __wbg_identityupdatetransitionstatevalidator_free: (a: number) => void;
6158
- readonly identityupdatetransitionstatevalidator_new: (a: number, b: number) => void;
6159
- readonly identityupdatetransitionstatevalidator_validate: (a: number, b: number) => number;
6160
- readonly calculateStateTransitionFee: (a: number, b: number) => void;
6313
+ readonly identitycreatetransitionstatevalidator_validate: (a: number, b: number, c: number) => number;
6314
+ readonly identitytopuptransitionstatevalidator_validate: (a: number, b: number, c: number) => number;
6315
+ readonly __wbg_statetransitionfacade_free: (a: number) => void;
6316
+ readonly statetransitionfacade_createFromObject: (a: number, b: number, c: number) => number;
6317
+ readonly statetransitionfacade_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
6318
+ readonly statetransitionfacade_validate: (a: number, b: number, c: number, d: number) => number;
6319
+ readonly statetransitionfacade_validateBasic: (a: number, b: number, c: number) => number;
6320
+ readonly statetransitionfacade_validateSignature: (a: number, b: number, c: number) => number;
6321
+ readonly statetransitionfacade_validateFee: (a: number, b: number, c: number) => number;
6322
+ readonly statetransitionfacade_validateState: (a: number, b: number, c: number) => number;
6323
+ readonly statetransitionfacade_apply: (a: number, b: number) => number;
6161
6324
  readonly __wbg_precalculatedoperation_free: (a: number) => void;
6162
6325
  readonly precalculatedoperation_new: (a: number, b: number, c: number, d: number) => void;
6163
6326
  readonly precalculatedoperation_fromFee: (a: number) => number;
@@ -6166,22 +6329,8 @@ export interface InitOutput {
6166
6329
  readonly precalculatedoperation_refunds: (a: number) => number;
6167
6330
  readonly precalculatedoperation_refunds_as_objects: (a: number, b: number) => void;
6168
6331
  readonly precalculatedoperation_toJSON: (a: number, b: number) => void;
6169
- readonly __wbg_operation_free: (a: number) => void;
6170
- readonly __wbg_statetransitionkeysignaturevalidator_free: (a: number) => void;
6171
- readonly statetransitionkeysignaturevalidator_new: (a: number) => number;
6172
- readonly statetransitionkeysignaturevalidator_validate: (a: number, b: number) => number;
6173
- readonly decodeProtocolEntity: (a: number, b: number, c: number) => void;
6174
- readonly __wbg_validationresult_free: (a: number) => void;
6175
- readonly validationresult_new: (a: number, b: number, c: number) => void;
6176
- readonly validationresult_errorsText: (a: number, b: number) => void;
6177
- readonly validationresult_isValid: (a: number) => number;
6178
- readonly validationresult_errors: (a: number, b: number) => void;
6179
- readonly validationresult_getData: (a: number) => number;
6180
- readonly validationresult_getFirstError: (a: number) => number;
6181
- readonly validationresult_addError: (a: number, b: number, c: number) => void;
6182
6332
  readonly __wbg_identitytopuptransitionstatevalidator_free: (a: number) => void;
6183
6333
  readonly identitypublickeyisreadonlyerror_getPublicKeyIndex: (a: number) => number;
6184
- readonly validationresult_getErrors: (a: number, b: number) => void;
6185
6334
  readonly identitytopuptransitionstatevalidator_new: (a: number) => number;
6186
6335
  readonly __wbg_invaliddatacontractversionerror_free: (a: number) => void;
6187
6336
  readonly __wbg_invalidassetlockproofcorechainheighterror_free: (a: number) => void;
@@ -6208,6 +6357,12 @@ export interface InitOutput {
6208
6357
  readonly datatrigger_set_transition_action: (a: number, b: number, c: number, d: number) => void;
6209
6358
  readonly datatrigger_get_top_level_identity: (a: number) => number;
6210
6359
  readonly datatrigger_set_top_level_identity: (a: number, b: number, c: number) => void;
6360
+ readonly __wbg_datacontractimmutablepropertiesupdateerror_free: (a: number) => void;
6361
+ readonly datacontractimmutablepropertiesupdateerror_getOperation: (a: number, b: number) => void;
6362
+ readonly datacontractimmutablepropertiesupdateerror_getFieldPath: (a: number, b: number) => void;
6363
+ readonly datacontractimmutablepropertiesupdateerror_getCode: (a: number) => number;
6364
+ readonly datacontractimmutablepropertiesupdateerror_message: (a: number, b: number) => void;
6365
+ readonly datacontractimmutablepropertiesupdateerror_serialize: (a: number, b: number) => void;
6211
6366
  readonly __wbg_duplicatedocumenttransitionswithidserror_free: (a: number) => void;
6212
6367
  readonly duplicatedocumenttransitionswithidserror_getDocumentTransitionReferences: (a: number) => number;
6213
6368
  readonly duplicatedocumenttransitionswithidserror_getCode: (a: number) => number;
@@ -6226,11 +6381,17 @@ export interface InitOutput {
6226
6381
  readonly duplicatedidentitypublickeyiderror_getCode: (a: number) => number;
6227
6382
  readonly duplicatedidentitypublickeyiderror_message: (a: number, b: number) => void;
6228
6383
  readonly duplicatedidentitypublickeyiderror_serialize: (a: number, b: number) => void;
6229
- readonly __wbg_documentalreadypresenterror_free: (a: number) => void;
6230
- readonly documentalreadypresenterror_getDocumentId: (a: number) => number;
6231
- readonly documentalreadypresenterror_getCode: (a: number) => number;
6232
- readonly documentalreadypresenterror_message: (a: number, b: number) => void;
6233
- readonly documentalreadypresenterror_serialize: (a: number, b: number) => void;
6384
+ readonly __wbg_datatriggerinvalidresulterror_free: (a: number) => void;
6385
+ readonly datatriggerinvalidresulterror_getDataContractId: (a: number) => number;
6386
+ readonly datatriggerinvalidresulterror_getDocumentId: (a: number) => number;
6387
+ readonly datatriggerinvalidresulterror_getCode: (a: number) => number;
6388
+ readonly datatriggerinvalidresulterror_message: (a: number, b: number) => void;
6389
+ readonly datatriggerinvalidresulterror_serialize: (a: number, b: number) => void;
6390
+ readonly __wbg_datatriggeractioninvalidresulterror_free: (a: number) => void;
6391
+ readonly datatriggeractioninvalidresulterror_getDataContractId: (a: number) => number;
6392
+ readonly datatriggeractioninvalidresulterror_getDocumentTransitionId: (a: number) => number;
6393
+ readonly datatriggeractioninvalidresulterror_getOwnerId: (a: number) => number;
6394
+ readonly datatriggeractioninvalidresulterror_getCode: (a: number) => number;
6234
6395
  readonly duplicatedidentitypublickeyidstateerror_getDuplicatedIds: (a: number) => number;
6235
6396
  readonly duplicatedidentitypublickeyidstateerror_getCode: (a: number) => number;
6236
6397
  readonly duplicatedidentitypublickeyidstateerror_message: (a: number, b: number) => void;
@@ -6239,28 +6400,6 @@ export interface InitOutput {
6239
6400
  readonly duplicatedidentitypublickeystateerror_getCode: (a: number) => number;
6240
6401
  readonly duplicatedidentitypublickeystateerror_message: (a: number, b: number) => void;
6241
6402
  readonly duplicatedidentitypublickeystateerror_serialize: (a: number, b: number) => void;
6242
- readonly __wbg_identitycreatetransition_free: (a: number) => void;
6243
- readonly identitycreatetransition_new: (a: number, b: number) => void;
6244
- readonly identitycreatetransition_setAssetLockProof: (a: number, b: number, c: number) => void;
6245
- readonly identitycreatetransition_assetLockProof: (a: number) => number;
6246
- readonly identitycreatetransition_setPublicKeys: (a: number, b: number, c: number, d: number) => void;
6247
- readonly identitycreatetransition_addPublicKeys: (a: number, b: number, c: number, d: number) => void;
6248
- readonly identitycreatetransition_getPublicKeys: (a: number, b: number) => void;
6249
- readonly identitycreatetransition_getType: (a: number) => number;
6250
- readonly identitycreatetransition_getIdentityId: (a: number) => number;
6251
- readonly identitycreatetransition_getOwnerId: (a: number) => number;
6252
- readonly identitycreatetransition_toObject: (a: number, b: number, c: number) => void;
6253
- readonly identitycreatetransition_toBuffer: (a: number, b: number, c: number) => void;
6254
- readonly identitycreatetransition_toJSON: (a: number, b: number) => void;
6255
- readonly identitycreatetransition_getModifiedDataIds: (a: number, b: number) => void;
6256
- readonly identitycreatetransition_isDataContractStateTransition: (a: number) => number;
6257
- readonly identitycreatetransition_isDocumentStateTransition: (a: number) => number;
6258
- readonly identitycreatetransition_isIdentityStateTransition: (a: number) => number;
6259
- readonly identitycreatetransition_setExecutionContext: (a: number, b: number) => void;
6260
- readonly identitycreatetransition_getExecutionContext: (a: number) => number;
6261
- readonly identitycreatetransition_signByPrivateKey: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
6262
- readonly identitycreatetransition_getSignature: (a: number) => number;
6263
- readonly identitycreatetransition_setSignature: (a: number, b: number, c: number) => void;
6264
6403
  readonly __wbg_metadata_free: (a: number) => void;
6265
6404
  readonly metadata_new: (a: number, b: number) => void;
6266
6405
  readonly metadata_from: (a: number, b: number) => void;
@@ -6276,13 +6415,21 @@ export interface InitOutput {
6276
6415
  readonly signatureverificationoperation_getStorageCost: (a: number, b: number) => void;
6277
6416
  readonly signatureverificationoperation_refunds: (a: number) => number;
6278
6417
  readonly signatureverificationoperation_toJSON: (a: number, b: number) => void;
6279
- readonly identitycreatetransition_publicKeys: (a: number, b: number) => void;
6418
+ readonly __wbg_validationresult_free: (a: number) => void;
6419
+ readonly validationresult_new: (a: number, b: number, c: number) => void;
6420
+ readonly validationresult_errorsText: (a: number, b: number) => void;
6421
+ readonly validationresult_isValid: (a: number) => number;
6422
+ readonly validationresult_errors: (a: number, b: number) => void;
6423
+ readonly validationresult_getData: (a: number) => number;
6424
+ readonly validationresult_getFirstError: (a: number) => number;
6425
+ readonly validationresult_addError: (a: number, b: number, c: number) => void;
6280
6426
  readonly __wbg_duplicatedidentitypublickeyiderror_free: (a: number) => void;
6281
6427
  readonly __wbg_duplicatedidentitypublickeyidstateerror_free: (a: number) => void;
6282
6428
  readonly __wbg_duplicatedidentitypublickeystateerror_free: (a: number) => void;
6283
- readonly identitycreatetransition_getAssetLockProof: (a: number) => number;
6284
- readonly identitycreatetransition_identityId: (a: number) => number;
6429
+ readonly validationresult_getErrors: (a: number, b: number) => void;
6285
6430
  readonly __wbg_duplicatedocumenttransitionswithindiceserror_free: (a: number) => void;
6431
+ readonly validateDataContractCreateTransitionState: (a: number, b: number, c: number) => number;
6432
+ readonly validateDataContractCreateTransitionBasic: (a: number) => number;
6286
6433
  readonly __wbg_indexproperty_free: (a: number) => void;
6287
6434
  readonly indexproperty_isAscending: (a: number) => number;
6288
6435
  readonly __wbg_indexdefinition_free: (a: number) => void;
@@ -6378,6 +6525,10 @@ export interface InitOutput {
6378
6525
  readonly jsonschemacompilationerror_getCode: (a: number) => number;
6379
6526
  readonly jsonschemacompilationerror_message: (a: number, b: number) => void;
6380
6527
  readonly jsonschemacompilationerror_serialize: (a: number, b: number) => void;
6528
+ readonly documentalreadypresenterror_getDocumentId: (a: number) => number;
6529
+ readonly documentalreadypresenterror_getCode: (a: number) => number;
6530
+ readonly documentalreadypresenterror_message: (a: number, b: number) => void;
6531
+ readonly documentalreadypresenterror_serialize: (a: number, b: number) => void;
6381
6532
  readonly documentnotfounderror_getDocumentId: (a: number) => number;
6382
6533
  readonly documentnotfounderror_getCode: (a: number) => number;
6383
6534
  readonly documentnotfounderror_message: (a: number, b: number) => void;
@@ -6390,6 +6541,8 @@ export interface InitOutput {
6390
6541
  readonly identityalreadyexistserror_getCode: (a: number) => number;
6391
6542
  readonly identityalreadyexistserror_message: (a: number, b: number) => void;
6392
6543
  readonly identityalreadyexistserror_serialize: (a: number, b: number) => void;
6544
+ readonly __wbg_missingidentitypublickeyidserror_free: (a: number) => void;
6545
+ readonly missingidentitypublickeyidserror_getDuplicatedIds: (a: number) => number;
6393
6546
  readonly valueerror_getMessage: (a: number, b: number) => void;
6394
6547
  readonly valueerror_getCode: (a: number) => number;
6395
6548
  readonly valueerror_message: (a: number, b: number) => void;
@@ -6421,15 +6574,7 @@ export interface InitOutput {
6421
6574
  readonly instantassetlockproof_getTransaction: (a: number) => number;
6422
6575
  readonly instantassetlockproof_toObject: (a: number, b: number) => void;
6423
6576
  readonly instantassetlockproof_toJSON: (a: number, b: number) => void;
6424
- readonly __wbg_statetransitionfacade_free: (a: number) => void;
6425
- readonly statetransitionfacade_createFromObject: (a: number, b: number, c: number) => number;
6426
- readonly statetransitionfacade_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
6427
- readonly statetransitionfacade_validate: (a: number, b: number, c: number) => number;
6428
- readonly statetransitionfacade_validateBasic: (a: number, b: number) => number;
6429
- readonly statetransitionfacade_validateSignature: (a: number, b: number) => number;
6430
- readonly statetransitionfacade_validateFee: (a: number, b: number) => number;
6431
- readonly statetransitionfacade_validateState: (a: number, b: number) => number;
6432
- readonly statetransitionfacade_apply: (a: number, b: number) => number;
6577
+ readonly calculateStateTransitionFeeFromOperations: (a: number, b: number, c: number) => void;
6433
6578
  readonly __wbg_statetransitionexecutioncontext_free: (a: number) => void;
6434
6579
  readonly statetransitionexecutioncontext_new: () => number;
6435
6580
  readonly statetransitionexecutioncontext_enableDryRun: (a: number) => void;
@@ -6442,6 +6587,7 @@ export interface InitOutput {
6442
6587
  readonly extendeddocument_getId: (a: number) => number;
6443
6588
  readonly indexproperty_getName: (a: number, b: number) => void;
6444
6589
  readonly __wbg_identityassetlocktransactionisnotfounderror_free: (a: number) => void;
6590
+ readonly __wbg_documentalreadypresenterror_free: (a: number) => void;
6445
6591
  readonly __wbg_documentnotfounderror_free: (a: number) => void;
6446
6592
  readonly __wbg_documenttimestampsmismatcherror_free: (a: number) => void;
6447
6593
  readonly __wbg_identityalreadyexistserror_free: (a: number) => void;
@@ -6456,11 +6602,11 @@ export interface InitOutput {
6456
6602
  readonly __wbindgen_malloc: (a: number) => number;
6457
6603
  readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
6458
6604
  readonly __wbindgen_export_2: WebAssembly.Table;
6459
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdd24d8804d5e775b: (a: number, b: number, c: number) => void;
6605
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h927bad69c243ac09: (a: number, b: number, c: number) => void;
6460
6606
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
6461
6607
  readonly __wbindgen_free: (a: number, b: number) => void;
6462
6608
  readonly __wbindgen_exn_store: (a: number) => void;
6463
- readonly wasm_bindgen__convert__closures__invoke2_mut__h21b3b36adbe76a27: (a: number, b: number, c: number, d: number) => void;
6609
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h301472c1a718e708: (a: number, b: number, c: number, d: number) => void;
6464
6610
  }
6465
6611
 
6466
6612
  export type SyncInitInput = BufferSource | WebAssembly.Module;