@dashevo/wasm-dpp 0.24.0-dev.12 → 0.24.0-dev.13

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 (118) hide show
  1. package/Cargo.toml +3 -0
  2. package/README.md +5 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.LICENSE.txt +9 -0
  5. package/dist/wasm/wasm_dpp.d.ts +1495 -565
  6. package/karma.conf.js +5 -0
  7. package/lib/identifier/patchIdentifier.ts +5 -4
  8. package/lib/index.ts +1 -1
  9. package/lib/test/bootstrap.js +5 -0
  10. package/lib/test/mocks/getBlsAdapterMock.js +36 -0
  11. package/lib/test/utils/newDocumentsContainer.js +36 -0
  12. package/package.json +7 -4
  13. package/src/bls_adapter.rs +16 -1
  14. package/src/data_contract/data_contract.rs +35 -7
  15. package/src/data_contract/errors/invalid_document_type.rs +1 -1
  16. package/src/data_contract/index.rs +56 -1
  17. package/src/data_contract/mod.rs +1 -0
  18. package/src/data_contract/state_transition/data_contract_create_transition/mod.rs +2 -4
  19. package/src/data_contract/state_transition/data_contract_create_transition/validation.rs +3 -3
  20. package/src/data_contract/state_transition/data_contract_update_transition/mod.rs +2 -4
  21. package/src/data_contract/state_transition/data_contract_update_transition/validation.rs +9 -6
  22. package/src/data_contract_factory/data_contract_factory.rs +4 -6
  23. package/src/document/errors/invalid_document_error.rs +10 -9
  24. package/src/document/errors/invalid_initial_revision_error.rs +1 -1
  25. package/src/document/errors/mismatch_owners_ids_error.rs +14 -4
  26. package/src/document/errors/mod.rs +17 -13
  27. package/src/document/errors/no_documents_supplied_error.rs +4 -4
  28. package/src/document/factory.rs +192 -0
  29. package/src/document/mod.rs +222 -30
  30. package/src/document/state_transition/document_batch_transition/document_transition/document_create_transition.rs +47 -1
  31. package/src/document/state_transition/document_batch_transition/document_transition/document_delete_transition.rs +25 -1
  32. package/src/document/state_transition/document_batch_transition/document_transition/document_replace_transition.rs +65 -0
  33. package/src/document/state_transition/document_batch_transition/document_transition/mod.rs +123 -3
  34. package/src/document/state_transition/document_batch_transition/mod.rs +378 -0
  35. package/src/document/validator.rs +30 -0
  36. package/src/errors/consensus/basic/identity/identity_asset_lock_proof_locked_transaction_mismatch_error.rs +6 -2
  37. package/src/errors/consensus/basic/identity/identity_asset_lock_transaction_out_point_already_exists_error.rs +5 -2
  38. package/src/errors/consensus/basic/identity/invalid_asset_lock_proof_transaction_height_error.rs +3 -3
  39. package/src/errors/dpp_error.rs +17 -0
  40. package/src/errors/from.rs +5 -0
  41. package/src/errors/js_conversion.rs +19 -4
  42. package/src/errors/mod.rs +2 -0
  43. package/src/errors/protocol_error.rs +7 -4
  44. package/src/identifier/mod.rs +48 -3
  45. package/src/identity/errors/asset_lock_output_not_found_error.rs +11 -0
  46. package/src/identity/errors/asset_lock_transaction_is_not_found_error.rs +20 -0
  47. package/src/identity/errors/mod.rs +7 -0
  48. package/src/identity/errors/unknown_asset_lock_proof_type_error.rs +26 -0
  49. package/src/identity/identity_facade.rs +2 -4
  50. package/src/identity/identity_public_key/mod.rs +41 -7
  51. package/src/identity/mod.rs +14 -5
  52. package/src/identity/state_transition/asset_lock_proof/chain/chain_asset_lock_proof.rs +132 -0
  53. package/src/identity/state_transition/asset_lock_proof/chain/chain_asset_lock_proof_structure_validator.rs +72 -0
  54. package/src/identity/state_transition/asset_lock_proof/chain/mod.rs +4 -0
  55. package/src/identity/state_transition/asset_lock_proof/instant/instant_asset_lock_proof.rs +177 -0
  56. package/src/identity/state_transition/asset_lock_proof/instant/instant_asset_lock_proof_structure_validator.rs +72 -0
  57. package/src/identity/state_transition/asset_lock_proof/instant/mod.rs +4 -0
  58. package/src/identity/state_transition/asset_lock_proof/mod.rs +269 -0
  59. package/src/identity/state_transition/identity_create_transition/apply_identity_create_transition.rs +26 -0
  60. package/src/identity/state_transition/identity_create_transition/identity_create_transition.rs +335 -0
  61. package/src/identity/state_transition/identity_create_transition/identity_create_transition_basic_validator.rs +153 -0
  62. package/src/identity/state_transition/identity_create_transition/identity_create_transition_state_validator.rs +37 -0
  63. package/src/identity/state_transition/identity_create_transition/mod.rs +8 -0
  64. package/src/identity/state_transition/identity_create_transition/to_object.rs +46 -0
  65. package/src/identity/state_transition/identity_topup_transition/apply_identity_topup_transition.rs +31 -0
  66. package/src/identity/state_transition/identity_topup_transition/identity_topup_transition.rs +280 -0
  67. package/src/identity/state_transition/identity_topup_transition/identity_topup_transition_basic_validator.rs +113 -0
  68. package/src/identity/state_transition/identity_topup_transition/identity_topup_transition_state_validator.rs +37 -0
  69. package/src/identity/state_transition/identity_topup_transition/mod.rs +8 -0
  70. package/src/identity/state_transition/identity_topup_transition/to_object.rs +42 -0
  71. package/src/identity/state_transition/mod.rs +9 -0
  72. package/src/identity/state_transition/validate_public_key_signatures.rs +59 -0
  73. package/src/identity/validation/public_keys_validator.rs +16 -10
  74. package/src/identity_public_key/public_keys_validator.rs +44 -0
  75. package/src/lib.rs +2 -0
  76. package/src/lodash.rs +7 -0
  77. package/src/state_repository.rs +188 -36
  78. package/src/state_transition/mod.rs +12 -0
  79. package/src/utils.rs +102 -7
  80. package/src/validation/json_schema_validator.rs +41 -0
  81. package/src/validation/mod.rs +2 -0
  82. package/src/validation/validation_result.rs +23 -5
  83. package/src/version/mod.rs +2 -0
  84. package/src/version/protocol_version.rs +26 -0
  85. package/test/integration/dataContract/validation/validateDataContractFactory.spec.js +579 -502
  86. package/test/integration/identity/stateTransition/IdentityCreateTransition/validation/basic/validateIdentityCreateTransitionBasicFactory.spec.js +175 -165
  87. package/test/integration/identity/stateTransition/IdentityTopUpTransition/validation/basic/validateIdentityTopUpTransitionBasicFactory.spec.js +83 -114
  88. package/test/integration/identity/stateTransition/assetLockProof/chain/validateChainAssetLockProofStructureFactory.spec.js +82 -91
  89. package/test/integration/identity/stateTransition/assetLockProof/fetchAssetLockTransactionOutputFactory.spec.js +75 -31
  90. package/test/integration/identity/stateTransition/assetLockProof/instant/validateInstantAssetLockProofStructureFactory.spec.js +93 -148
  91. package/test/integration/identity/stateTransition/assetLockProof/validateAssetLockTransactionFactory.spec.js +63 -75
  92. package/test/integration/identity/stateTransition/validatePublicKeySignaturesFactory.spec.js +48 -19
  93. package/test/unit/dataContract/DataContract.spec.js +3 -3
  94. package/test/unit/dataContract/createDataContract.spec.js +0 -1
  95. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/DataContractCreateTransition.spec.js +3 -3
  96. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/DataContractUpdateTransition.spec.js +3 -3
  97. package/test/unit/decodeProtocolEntityFactory.spec.js +2 -2
  98. package/test/unit/document/Document.spec.js +147 -155
  99. package/test/unit/document/DocumentFactory.spec.js +325 -91
  100. package/test/unit/document/stateTransition/DocumetsBatchTransition/DocumentsBatchTransition.spec.js +142 -64
  101. package/test/unit/identity/Identity.spec.js +2 -2
  102. package/test/unit/identity/stateTransition/IdentityCreateTransition/IdentityCreateTransition.spec.js +69 -30
  103. package/test/unit/identity/stateTransition/IdentityCreateTransition/applyIdentityCreateTransitionFactory.spec.js +32 -32
  104. package/test/unit/identity/stateTransition/IdentityCreateTransition/validation/state/validateIdentityCreateTransitionStateFactory.spec.js +56 -25
  105. package/test/unit/identity/stateTransition/IdentityTopUpTransition/IdentityTopUpTransition.spec.js +36 -16
  106. package/test/unit/identity/stateTransition/IdentityTopUpTransition/applyIdentityTopUpTransitionFactory.spec.js +48 -46
  107. package/test/unit/identity/stateTransition/IdentityTopUpTransition/validation/state/validateIdentityTopUpTransitionStateFactory.spec.js +24 -6
  108. package/test/unit/identity/stateTransition/assetLockProof/ChainAssetLockProof.spec.js +63 -0
  109. package/test/unit/identity/stateTransition/assetLockProof/InstantAssetLockProof.spec.js +90 -0
  110. package/test/unit/identity/stateTransition/assetLockProof/createAssetLockProofInstance.spec.js +18 -3
  111. package/test/unit/identity/stateTransition/assetLockProof/fetchAssetLockPublicKeyHashFactory.spec.js +38 -11
  112. package/wasm/package.json +5 -0
  113. package/wasm/wasm_dpp.d.ts +1495 -565
  114. package/wasm/wasm_dpp.js +3654 -1206
  115. package/wasm/wasm_dpp_bg.js +1 -1
  116. package/wasm/wasm_dpp_bg.wasm +0 -0
  117. package/wasm/wasm_dpp_bg.wasm.d.ts +557 -386
  118. package/webpack.config.js +9 -0
@@ -8,6 +8,45 @@
8
8
  export function validateDataContractCreateTransitionState(state_repository: any, state_transition: DataContractCreateTransition): Promise<ValidationResult>;
9
9
  /**
10
10
  * @param {any} state_repository
11
+ * @param {IdentityCreateTransition} state_transition
12
+ * @returns {Promise<void>}
13
+ */
14
+ export function applyIdentityCreateTransition(state_repository: any, state_transition: IdentityCreateTransition): Promise<void>;
15
+ /**
16
+ * @param {any} state_repository
17
+ * @param {IdentityTopUpTransition} state_transition
18
+ * @returns {Promise<void>}
19
+ */
20
+ export function applyIdentityTopUpTransition(state_repository: any, state_transition: IdentityTopUpTransition): Promise<void>;
21
+ /**
22
+ * @param {any} raw_parameters
23
+ * @returns {any}
24
+ */
25
+ export function createAssetLockProofInstance(raw_parameters: any): any;
26
+ /**
27
+ * @param {any} state_repository
28
+ * @param {string} raw_transaction
29
+ * @param {number} output_index
30
+ * @param {StateTransitionExecutionContext} execution_context
31
+ * @returns {Promise<ValidationResult>}
32
+ */
33
+ export function validateAssetLockTransaction(state_repository: any, raw_transaction: string, output_index: number, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
34
+ /**
35
+ * @param {any} state_repository
36
+ * @param {any} raw_asset_lock_proof
37
+ * @param {StateTransitionExecutionContext} execution_context
38
+ * @returns {Promise<any>}
39
+ */
40
+ export function fetchAssetLockTransactionOutput(state_repository: any, raw_asset_lock_proof: any, execution_context: StateTransitionExecutionContext): Promise<any>;
41
+ /**
42
+ * @param {any} state_repository
43
+ * @param {any} raw_asset_lock_proof
44
+ * @param {StateTransitionExecutionContext} execution_context
45
+ * @returns {Promise<any>}
46
+ */
47
+ export function fetchAssetLockPublicKeyHash(state_repository: any, raw_asset_lock_proof: any, execution_context: StateTransitionExecutionContext): Promise<any>;
48
+ /**
49
+ * @param {any} state_repository
11
50
  * @param {DataContractUpdateTransition} state_transition
12
51
  * @returns {Promise<ValidationResult>}
13
52
  */
@@ -28,14 +67,6 @@ export enum KeySecurityLevel {
28
67
  }
29
68
  /**
30
69
  */
31
- export enum KeyType {
32
- ECDSA_SECP256K1,
33
- BLS12_381,
34
- ECDSA_HASH160,
35
- BIP13_SCRIPT_HASH,
36
- }
37
- /**
38
- */
39
70
  export enum KeyPurpose {
40
71
  /**
41
72
  * at least one authentication key must be registered for all security levels
@@ -53,6 +84,14 @@ export enum KeyPurpose {
53
84
  }
54
85
  /**
55
86
  */
87
+ export enum KeyType {
88
+ ECDSA_SECP256K1,
89
+ BLS12_381,
90
+ ECDSA_HASH160,
91
+ BIP13_SCRIPT_HASH,
92
+ }
93
+ /**
94
+ */
56
95
  export class ApplyDataContractCreateTransition {
57
96
  free(): void;
58
97
  /**
@@ -81,8 +120,34 @@ export class ApplyDataContractUpdateTransition {
81
120
  }
82
121
  /**
83
122
  */
123
+ export class AssetLockOutputNotFoundError {
124
+ free(): void;
125
+ }
126
+ /**
127
+ */
84
128
  export class AssetLockProof {
85
129
  free(): void;
130
+ /**
131
+ * @param {any} raw_asset_lock_proof
132
+ */
133
+ constructor(raw_asset_lock_proof: any);
134
+ /**
135
+ * @returns {Identifier}
136
+ */
137
+ createIdentifier(): Identifier;
138
+ /**
139
+ * @returns {any}
140
+ */
141
+ toObject(): any;
142
+ }
143
+ /**
144
+ */
145
+ export class AssetLockTransactionIsNotFoundError {
146
+ free(): void;
147
+ /**
148
+ * @returns {any}
149
+ */
150
+ getTransactionId(): any;
86
151
  }
87
152
  /**
88
153
  */
@@ -103,6 +168,62 @@ export class BalanceIsNotEnoughError {
103
168
  }
104
169
  /**
105
170
  */
171
+ export class ChainAssetLockProof {
172
+ free(): void;
173
+ /**
174
+ * @param {any} raw_parameters
175
+ */
176
+ constructor(raw_parameters: any);
177
+ /**
178
+ * @returns {number}
179
+ */
180
+ getType(): number;
181
+ /**
182
+ * @returns {number}
183
+ */
184
+ getCoreChainLockedHeight(): number;
185
+ /**
186
+ * @param {number} value
187
+ */
188
+ setCoreChainLockedHeight(value: number): void;
189
+ /**
190
+ * @returns {any}
191
+ */
192
+ getOutPoint(): any;
193
+ /**
194
+ * @param {Uint8Array} out_point
195
+ */
196
+ setOutPoint(out_point: Uint8Array): void;
197
+ /**
198
+ * @returns {any}
199
+ */
200
+ toJSON(): any;
201
+ /**
202
+ * @returns {any}
203
+ */
204
+ toObject(): any;
205
+ /**
206
+ * @returns {Identifier}
207
+ */
208
+ createIdentifier(): Identifier;
209
+ }
210
+ /**
211
+ */
212
+ export class ChainAssetLockProofStructureValidator {
213
+ free(): void;
214
+ /**
215
+ * @param {any} state_repository
216
+ */
217
+ constructor(state_repository: any);
218
+ /**
219
+ * @param {any} raw_asset_lock_proof
220
+ * @param {StateTransitionExecutionContext} execution_context
221
+ * @returns {Promise<ValidationResult>}
222
+ */
223
+ validate(raw_asset_lock_proof: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
224
+ }
225
+ /**
226
+ */
106
227
  export class DashPlatformProtocol {
107
228
  free(): void;
108
229
  /**
@@ -127,6 +248,10 @@ export class DataContract {
127
248
  */
128
249
  getId(): Identifier;
129
250
  /**
251
+ * @param {Identifier} id
252
+ */
253
+ setId(id: Identifier): void;
254
+ /**
130
255
  * @returns {Identifier}
131
256
  */
132
257
  getOwnerId(): Identifier;
@@ -231,6 +356,11 @@ export class DataContract {
231
356
  * @returns {DataContract}
232
357
  */
233
358
  static from(v: any): DataContract;
359
+ /**
360
+ * @param {Uint8Array} b
361
+ * @returns {DataContract}
362
+ */
363
+ static fromBuffer(b: Uint8Array): DataContract;
234
364
  }
235
365
  /**
236
366
  */
@@ -601,6 +731,11 @@ export class DataTriggerInvalidResultError {
601
731
  export class Document {
602
732
  free(): void;
603
733
  /**
734
+ * @param {any} js_raw_document
735
+ * @param {DataContract} js_data_contract
736
+ */
737
+ constructor(js_raw_document: any, js_data_contract: DataContract);
738
+ /**
604
739
  * @returns {number}
605
740
  */
606
741
  getProtocolVersion(): number;
@@ -609,6 +744,10 @@ export class Document {
609
744
  */
610
745
  getId(): Identifier;
611
746
  /**
747
+ * @param {Identifier} js_id
748
+ */
749
+ setId(js_id: Identifier): void;
750
+ /**
612
751
  * @returns {string}
613
752
  */
614
753
  getType(): string;
@@ -621,6 +760,10 @@ export class Document {
621
760
  */
622
761
  getDataContract(): DataContract;
623
762
  /**
763
+ * @param {Identifier} owner_id
764
+ */
765
+ setOwnerId(owner_id: Identifier): void;
766
+ /**
624
767
  * @returns {Identifier}
625
768
  */
626
769
  getOwnerId(): Identifier;
@@ -637,9 +780,9 @@ export class Document {
637
780
  */
638
781
  setEntropy(e: Uint8Array): void;
639
782
  /**
640
- * @returns {Uint8Array}
783
+ * @returns {any}
641
784
  */
642
- getEntropy(): Uint8Array;
785
+ getEntropy(): any;
643
786
  /**
644
787
  * @param {any} d
645
788
  */
@@ -649,55 +792,61 @@ export class Document {
649
792
  */
650
793
  getData(): any;
651
794
  /**
652
- * @param {string} _path
653
- * @param {any} _d
795
+ * @param {string} path
796
+ * @param {any} js_value_to_set
654
797
  */
655
- set(_path: string, _d: any): void;
798
+ set(path: string, js_value_to_set: any): void;
656
799
  /**
657
- * @param {string} _path
800
+ * @param {string} path
658
801
  * @returns {any}
659
802
  */
660
- get(_path: string): any;
803
+ get(path: string): any;
661
804
  /**
662
- * @param {bigint} ts
805
+ * @param {number} ts
663
806
  */
664
- setCreatedAt(ts: bigint): void;
807
+ setCreatedAt(ts: number): void;
665
808
  /**
666
- * @param {bigint} ts
809
+ * @param {number} ts
667
810
  */
668
- setUpdatedAt(ts: bigint): void;
811
+ setUpdatedAt(ts: number): void;
669
812
  /**
670
- * @returns {bigint | undefined}
813
+ * @returns {number | undefined}
671
814
  */
672
- getCreatedAt(): bigint | undefined;
815
+ getCreatedAt(): number | undefined;
673
816
  /**
674
- * @returns {bigint | undefined}
817
+ * @returns {number | undefined}
675
818
  */
676
- getUpdatedAt(): bigint | undefined;
819
+ getUpdatedAt(): number | undefined;
677
820
  /**
678
821
  * @returns {Metadata | undefined}
679
822
  */
680
823
  getMetadata(): Metadata | undefined;
681
824
  /**
682
825
  * @param {Metadata} metadata
826
+ * @returns {Document}
683
827
  */
684
- setMetadata(metadata: Metadata): void;
828
+ setMetadata(metadata: Metadata): Document;
685
829
  /**
830
+ * @param {any} options
686
831
  * @returns {any}
687
832
  */
688
- toObject(): any;
833
+ toObject(options: any): any;
689
834
  /**
690
835
  * @returns {any}
691
836
  */
692
837
  toJSON(): any;
693
838
  /**
694
- * @returns {Uint8Array}
839
+ * @returns {any}
695
840
  */
696
- toBuffer(): Uint8Array;
841
+ toBuffer(): any;
697
842
  /**
698
- * @returns {Uint8Array}
843
+ * @returns {any}
699
844
  */
700
- hash(): Uint8Array;
845
+ hash(): any;
846
+ /**
847
+ * @returns {Document}
848
+ */
849
+ clone(): Document;
701
850
  }
702
851
  /**
703
852
  */
@@ -729,6 +878,10 @@ export class DocumentCreateTransition {
729
878
  * @returns {number}
730
879
  */
731
880
  getAction(): number;
881
+ /**
882
+ * @returns {any}
883
+ */
884
+ toObject(): any;
732
885
  }
733
886
  /**
734
887
  */
@@ -738,6 +891,46 @@ export class DocumentDeleteTransition {
738
891
  * @returns {number}
739
892
  */
740
893
  getAction(): number;
894
+ /**
895
+ * @returns {any}
896
+ */
897
+ toObject(): any;
898
+ }
899
+ /**
900
+ */
901
+ export class DocumentFactory {
902
+ free(): void;
903
+ /**
904
+ * @param {number} protocol_version
905
+ * @param {DocumentValidator} document_validator
906
+ * @param {any} state_repository
907
+ */
908
+ constructor(protocol_version: number, document_validator: DocumentValidator, state_repository: any);
909
+ /**
910
+ * @param {DataContract} data_contract
911
+ * @param {any} js_owner_id
912
+ * @param {string} document_type
913
+ * @param {any} data
914
+ * @returns {Document}
915
+ */
916
+ create(data_contract: DataContract, js_owner_id: any, document_type: string, data: any): Document;
917
+ /**
918
+ * @param {DocumentsContainer} documents_container
919
+ * @returns {DocumentsBatchTransition}
920
+ */
921
+ createStateTransition(documents_container: DocumentsContainer): DocumentsBatchTransition;
922
+ /**
923
+ * @param {any} raw_document_js
924
+ * @param {any} options
925
+ * @returns {Promise<Document>}
926
+ */
927
+ createFromObject(raw_document_js: any, options: any): Promise<Document>;
928
+ /**
929
+ * @param {Uint8Array} buffer
930
+ * @param {any} options
931
+ * @returns {Promise<Document>}
932
+ */
933
+ createFromBuffer(buffer: Uint8Array, options: any): Promise<Document>;
741
934
  }
742
935
  /**
743
936
  */
@@ -832,136 +1025,341 @@ export class DocumentTransition {
832
1025
  * @returns {number}
833
1026
  */
834
1027
  getAction(): number;
835
- }
836
1028
  /**
1029
+ * @returns {any}
837
1030
  */
838
- export class DuplicateDocumentTransitionsWithIdsError {
839
- free(): void;
1031
+ toObject(): any;
1032
+ }
840
1033
  /**
841
- * @returns {Array<any>}
842
1034
  */
843
- getReferences(): Array<any>;
1035
+ export class DocumentTransitionWasm {
1036
+ free(): void;
844
1037
  /**
845
- * @returns {number}
1038
+ * @returns {Identifier}
846
1039
  */
847
- getCode(): number;
848
- }
1040
+ getId(): Identifier;
849
1041
  /**
1042
+ * @returns {string}
850
1043
  */
851
- export class DuplicateDocumentTransitionsWithIndicesError {
852
- free(): void;
1044
+ getType(): string;
853
1045
  /**
854
- * @returns {Array<any>}
1046
+ * @returns {number}
855
1047
  */
856
- getReferences(): Array<any>;
1048
+ getAction(): number;
857
1049
  /**
858
- * @returns {number}
1050
+ * @returns {DataContract}
859
1051
  */
860
- getCode(): number;
861
- }
1052
+ getDataContract(): DataContract;
862
1053
  /**
1054
+ * @returns {Identifier}
863
1055
  */
864
- export class DuplicateIndexError {
865
- free(): void;
1056
+ getDataContractId(): Identifier;
866
1057
  /**
867
- * @returns {string}
1058
+ * @param {string} path
1059
+ * @returns {any}
868
1060
  */
869
- getDocumentType(): string;
1061
+ get(path: string): any;
870
1062
  /**
1063
+ * @param {any} _options
871
1064
  * @returns {any}
872
1065
  */
873
- getIndexDefinition(): any;
1066
+ getObject(_options: any): any;
874
1067
  /**
875
- * @returns {number}
1068
+ * @returns {any}
876
1069
  */
877
- getCode(): number;
1070
+ toJSON(): any;
878
1071
  }
879
1072
  /**
880
1073
  */
881
- export class DuplicateIndexNameError {
1074
+ export class DocumentTransitions {
882
1075
  free(): void;
883
1076
  /**
884
- * @returns {string}
885
1077
  */
886
- getDocumentType(): string;
1078
+ constructor();
887
1079
  /**
888
- * @returns {string}
1080
+ * @param {Document} transition
889
1081
  */
890
- getDuplicateIndexName(): string;
1082
+ addTransitionCreate(transition: Document): void;
891
1083
  /**
892
- * @returns {number}
1084
+ * @param {Document} transition
893
1085
  */
894
- getCode(): number;
1086
+ addTransitionReplace(transition: Document): void;
1087
+ /**
1088
+ * @param {Document} transition
1089
+ */
1090
+ addTransitionDelete(transition: Document): void;
895
1091
  }
896
1092
  /**
897
1093
  */
898
- export class DuplicateUniqueIndexError {
1094
+ export class DocumentValidator {
899
1095
  free(): void;
900
1096
  /**
901
- * @returns {any}
1097
+ * @param {ProtocolVersionValidator} protocol_validator
902
1098
  */
903
- getDocumentId(): any;
1099
+ constructor(protocol_validator: ProtocolVersionValidator);
1100
+ }
904
1101
  /**
905
- * @returns {Array<any>}
906
1102
  */
907
- getDuplicatingProperties(): Array<any>;
1103
+ export class DocumentsBatchTransition {
1104
+ free(): void;
1105
+ /**
1106
+ * @param {any} js_raw_transition
1107
+ * @param {Array<any>} data_contracts
1108
+ */
1109
+ constructor(js_raw_transition: any, data_contracts: Array<any>);
908
1110
  /**
909
1111
  * @returns {number}
910
1112
  */
911
- getCode(): number;
912
- }
1113
+ getType(): number;
913
1114
  /**
1115
+ * @returns {Identifier}
914
1116
  */
915
- export class DuplicatedIdentityPublicKeyError {
916
- free(): void;
1117
+ getOwnerId(): Identifier;
917
1118
  /**
918
1119
  * @returns {Array<any>}
919
1120
  */
920
- getDuplicatedPublicKeysIds(): Array<any>;
1121
+ getTransitions(): Array<any>;
921
1122
  /**
922
- * @returns {number}
1123
+ * @returns {any}
923
1124
  */
924
- getCode(): number;
925
- }
1125
+ toJSON(): any;
926
1126
  /**
1127
+ * @param {any} options
1128
+ * @returns {any}
927
1129
  */
928
- export class DuplicatedIdentityPublicKeyIdError {
929
- free(): void;
1130
+ toObject(options: any): any;
930
1131
  /**
931
1132
  * @returns {Array<any>}
932
1133
  */
933
- getDuplicatedIds(): Array<any>;
1134
+ getModifiedDataIds(): Array<any>;
934
1135
  /**
935
- * @returns {number}
1136
+ * @returns {number | undefined}
936
1137
  */
937
- getCode(): number;
938
- }
1138
+ getSignaturePublicKeyId(): number | undefined;
939
1139
  /**
1140
+ * @param {IdentityPublicKey} identity_public_key
1141
+ * @param {Uint8Array} private_key
1142
+ * @param {any} bls
940
1143
  */
941
- export class Identifier {
1144
+ sign(identity_public_key: IdentityPublicKey, private_key: Uint8Array, bls: any): void;
942
1145
  /**
943
- ** Return copy of self without private attributes.
1146
+ * @param {IdentityPublicKey} public_key
944
1147
  */
945
- toJSON(): Object;
1148
+ verifyPublicKeyLevelAndPurpose(public_key: IdentityPublicKey): void;
946
1149
  /**
947
- * Return stringified version of self.
1150
+ * @param {IdentityPublicKey} public_key
948
1151
  */
949
- toString(): string;
950
- free(): void;
1152
+ verifyPublicKeyIsEnabled(public_key: IdentityPublicKey): void;
951
1153
  /**
952
- * @param {Uint8Array} buffer
1154
+ * @param {IdentityPublicKey} public_key
1155
+ * @param {any} bls
953
1156
  */
954
- constructor(buffer: Uint8Array);
1157
+ verifySignature(public_key: IdentityPublicKey, bls: any): void;
955
1158
  /**
956
- * @param {any} value
957
- * @param {string | undefined} encoding
958
- * @returns {Identifier}
1159
+ * @param {bigint} key_id
959
1160
  */
960
- static from(value: any, encoding?: string): Identifier;
1161
+ setSignaturePublicKey(key_id: bigint): void;
1162
+ /**
1163
+ * @returns {number}
1164
+ */
1165
+ getSecurityLevelRequirement(): number;
1166
+ /**
1167
+ * @returns {number}
1168
+ */
1169
+ getProtocolVersion(): number;
1170
+ /**
1171
+ * @returns {Uint8Array}
1172
+ */
1173
+ getSignature(): Uint8Array;
1174
+ /**
1175
+ * @param {Uint8Array} signature
1176
+ */
1177
+ setSignature(signature: Uint8Array): void;
1178
+ /**
1179
+ * @returns {bigint}
1180
+ */
1181
+ calculateFee(): bigint;
1182
+ /**
1183
+ * @returns {boolean}
1184
+ */
1185
+ isDocumentStateTransition(): boolean;
1186
+ /**
1187
+ * @returns {boolean}
1188
+ */
1189
+ isDataContractStateTransition(): boolean;
1190
+ /**
1191
+ * @returns {boolean}
1192
+ */
1193
+ isIdentityStateTransition(): boolean;
1194
+ /**
1195
+ * @param {StateExecutionContext} context
1196
+ */
1197
+ setExecutionContext(context: StateExecutionContext): void;
1198
+ /**
1199
+ * @returns {StateExecutionContext}
1200
+ */
1201
+ getExecutionContext(): StateExecutionContext;
1202
+ /**
1203
+ * @param {any} options
1204
+ * @returns {any}
1205
+ */
1206
+ toBuffer(options: any): any;
1207
+ /**
1208
+ * @param {any} options
1209
+ * @returns {any}
1210
+ */
1211
+ hash(options: any): any;
1212
+ }
1213
+ /**
1214
+ * Collections of Documents split by actions
1215
+ */
1216
+ export class DocumentsContainer {
1217
+ free(): void;
1218
+ /**
1219
+ */
1220
+ constructor();
1221
+ /**
1222
+ * @param {Document} d
1223
+ */
1224
+ pushDocumentCreate(d: Document): void;
1225
+ /**
1226
+ * @param {Document} d
1227
+ */
1228
+ pushDocumentReplace(d: Document): void;
1229
+ /**
1230
+ * @param {Document} d
1231
+ */
1232
+ pushDocumentDelete(d: Document): void;
1233
+ }
1234
+ /**
1235
+ */
1236
+ export class DuplicateDocumentTransitionsWithIdsError {
1237
+ free(): void;
1238
+ /**
1239
+ * @returns {Array<any>}
1240
+ */
1241
+ getReferences(): Array<any>;
1242
+ /**
1243
+ * @returns {number}
1244
+ */
1245
+ getCode(): number;
1246
+ }
1247
+ /**
1248
+ */
1249
+ export class DuplicateDocumentTransitionsWithIndicesError {
1250
+ free(): void;
1251
+ /**
1252
+ * @returns {Array<any>}
1253
+ */
1254
+ getReferences(): Array<any>;
1255
+ /**
1256
+ * @returns {number}
1257
+ */
1258
+ getCode(): number;
1259
+ }
1260
+ /**
1261
+ */
1262
+ export class DuplicateIndexError {
1263
+ free(): void;
1264
+ /**
1265
+ * @returns {string}
1266
+ */
1267
+ getDocumentType(): string;
1268
+ /**
1269
+ * @returns {any}
1270
+ */
1271
+ getIndexDefinition(): any;
1272
+ /**
1273
+ * @returns {number}
1274
+ */
1275
+ getCode(): number;
1276
+ }
1277
+ /**
1278
+ */
1279
+ export class DuplicateIndexNameError {
1280
+ free(): void;
1281
+ /**
1282
+ * @returns {string}
1283
+ */
1284
+ getDocumentType(): string;
1285
+ /**
1286
+ * @returns {string}
1287
+ */
1288
+ getDuplicateIndexName(): string;
1289
+ /**
1290
+ * @returns {number}
1291
+ */
1292
+ getCode(): number;
1293
+ }
1294
+ /**
1295
+ */
1296
+ export class DuplicateUniqueIndexError {
1297
+ free(): void;
1298
+ /**
1299
+ * @returns {any}
1300
+ */
1301
+ getDocumentId(): any;
1302
+ /**
1303
+ * @returns {Array<any>}
1304
+ */
1305
+ getDuplicatingProperties(): Array<any>;
1306
+ /**
1307
+ * @returns {number}
1308
+ */
1309
+ getCode(): number;
1310
+ }
961
1311
  /**
962
- * @param {string} value
963
- * @param {string | undefined} encoding
964
- * @returns {Identifier}
1312
+ */
1313
+ export class DuplicatedIdentityPublicKeyError {
1314
+ free(): void;
1315
+ /**
1316
+ * @returns {Array<any>}
1317
+ */
1318
+ getDuplicatedPublicKeysIds(): Array<any>;
1319
+ /**
1320
+ * @returns {number}
1321
+ */
1322
+ getCode(): number;
1323
+ }
1324
+ /**
1325
+ */
1326
+ export class DuplicatedIdentityPublicKeyIdError {
1327
+ free(): void;
1328
+ /**
1329
+ * @returns {Array<any>}
1330
+ */
1331
+ getDuplicatedIds(): Array<any>;
1332
+ /**
1333
+ * @returns {number}
1334
+ */
1335
+ getCode(): number;
1336
+ }
1337
+ /**
1338
+ */
1339
+ export class Identifier {
1340
+ /**
1341
+ ** Return copy of self without private attributes.
1342
+ */
1343
+ toJSON(): Object;
1344
+ /**
1345
+ * Return stringified version of self.
1346
+ */
1347
+ toString(): string;
1348
+ free(): void;
1349
+ /**
1350
+ * @param {Uint8Array} buffer
1351
+ */
1352
+ constructor(buffer: Uint8Array);
1353
+ /**
1354
+ * @param {any} value
1355
+ * @param {string | undefined} encoding
1356
+ * @returns {Identifier}
1357
+ */
1358
+ static from(value: any, encoding?: string): Identifier;
1359
+ /**
1360
+ * @param {string} value
1361
+ * @param {string | undefined} encoding
1362
+ * @returns {Identifier}
965
1363
  */
966
1364
  static fromString(value: string, encoding?: string): Identifier;
967
1365
  /**
@@ -980,7 +1378,11 @@ export class Identifier {
980
1378
  /**
981
1379
  * @returns {Uint8Array}
982
1380
  */
983
- inner(): Uint8Array;
1381
+ toBytes(): Uint8Array;
1382
+ /**
1383
+ * @returns {Identifier}
1384
+ */
1385
+ clone(): Identifier;
984
1386
  /**
985
1387
  */
986
1388
  readonly length: number;
@@ -1142,7 +1544,7 @@ export class IdentityAssetLockTransactionOutPointAlreadyExistsError {
1142
1544
  /**
1143
1545
  * @returns {number}
1144
1546
  */
1145
- getDuplicatedIds(): number;
1547
+ getOutputIndex(): number;
1146
1548
  /**
1147
1549
  * @returns {any}
1148
1550
  */
@@ -1167,98 +1569,221 @@ export class IdentityAssetLockTransactionOutputNotFoundError {
1167
1569
  }
1168
1570
  /**
1169
1571
  */
1170
- export class IdentityFacade {
1572
+ export class IdentityCreateTransition {
1171
1573
  free(): void;
1172
1574
  /**
1173
- * @param {any} bls_adapter
1575
+ * @param {any} raw_parameters
1174
1576
  */
1175
- constructor(bls_adapter: any);
1577
+ constructor(raw_parameters: any);
1176
1578
  /**
1177
- * @param {any} raw_identity_object
1178
- * @returns {ValidationResult}
1579
+ * @param {any} asset_lock_proof
1179
1580
  */
1180
- validate(raw_identity_object: any): ValidationResult;
1181
- }
1581
+ setAssetLockProof(asset_lock_proof: any): void;
1182
1582
  /**
1583
+ * @returns {any}
1183
1584
  */
1184
- export class IdentityInsufficientBalanceError {
1185
- free(): void;
1585
+ getAssetLockProof(): any;
1186
1586
  /**
1187
- * @returns {any}
1587
+ * @param {any[]} public_keys
1188
1588
  */
1189
- getIdentityId(): any;
1589
+ setPublicKeys(public_keys: any[]): void;
1190
1590
  /**
1191
- * @returns {number}
1591
+ * @param {any[]} public_keys
1192
1592
  */
1193
- getBalance(): number;
1593
+ addPublicKeys(public_keys: any[]): void;
1194
1594
  /**
1195
- * @returns {number}
1595
+ * @returns {any[]}
1196
1596
  */
1197
- getCode(): number;
1198
- }
1597
+ getPublicKeys(): any[];
1199
1598
  /**
1599
+ * @returns {number}
1200
1600
  */
1201
- export class IdentityNotFoundError {
1202
- free(): void;
1601
+ getType(): number;
1203
1602
  /**
1204
- * @returns {any}
1603
+ * @returns {Identifier}
1205
1604
  */
1206
- getIdentityId(): any;
1605
+ getIdentityId(): Identifier;
1207
1606
  /**
1208
- * @returns {number}
1607
+ * @returns {Identifier}
1209
1608
  */
1210
- getCode(): number;
1211
- }
1609
+ getOwnerId(): Identifier;
1212
1610
  /**
1611
+ * @param {any} options
1612
+ * @returns {any}
1213
1613
  */
1214
- export class IdentityPublicKey {
1215
- free(): void;
1614
+ toObject(options: any): any;
1216
1615
  /**
1217
- * @param {any} raw_public_key
1616
+ * @returns {any}
1218
1617
  */
1219
- constructor(raw_public_key: any);
1618
+ toJSON(): any;
1220
1619
  /**
1221
- * @returns {number}
1620
+ * @returns {any[]}
1222
1621
  */
1223
- getId(): number;
1622
+ getModifiedDataIds(): any[];
1224
1623
  /**
1225
- * @param {number} id
1624
+ * @returns {boolean}
1226
1625
  */
1227
- setId(id: number): void;
1626
+ isDataContractStateTransition(): boolean;
1228
1627
  /**
1229
- * @returns {number}
1628
+ * @returns {boolean}
1230
1629
  */
1231
- getType(): number;
1630
+ isDocumentStateTransition(): boolean;
1232
1631
  /**
1233
- * @param {number} key_type
1632
+ * @returns {boolean}
1234
1633
  */
1235
- setType(key_type: number): void;
1634
+ isIdentityStateTransition(): boolean;
1236
1635
  /**
1237
- * @param {Uint8Array} data
1636
+ * @param {StateTransitionExecutionContext} context
1238
1637
  */
1239
- setData(data: Uint8Array): void;
1638
+ setExecutionContext(context: StateTransitionExecutionContext): void;
1240
1639
  /**
1241
- * @returns {Uint8Array}
1640
+ * @returns {StateTransitionExecutionContext}
1242
1641
  */
1243
- getData(): Uint8Array;
1642
+ getExecutionContext(): StateTransitionExecutionContext;
1244
1643
  /**
1245
- * @param {number} purpose
1644
+ * @param {Uint8Array} private_key
1645
+ * @param {number} key_type
1646
+ * @param {any} bls
1246
1647
  */
1247
- setPurpose(purpose: number): void;
1648
+ signByPrivateKey(private_key: Uint8Array, key_type: number, bls: any): void;
1248
1649
  /**
1249
- * @returns {number}
1650
+ * @returns {any}
1250
1651
  */
1251
- getPurpose(): number;
1652
+ getSignature(): any;
1252
1653
  /**
1253
- * @param {number} purpose
1254
1654
  */
1255
- setSecurityLevel(purpose: number): void;
1655
+ readonly assetLockProof: any;
1256
1656
  /**
1257
- * @returns {number}
1258
1657
  */
1259
- getSecurityLevel(): number;
1658
+ readonly identityId: Identifier;
1260
1659
  /**
1261
- * @param {boolean} purpose
1660
+ */
1661
+ readonly publicKeys: any[];
1662
+ }
1663
+ /**
1664
+ */
1665
+ export class IdentityCreateTransitionBasicValidator {
1666
+ free(): void;
1667
+ /**
1668
+ * @param {any} state_repository
1669
+ * @param {any} js_bls
1670
+ */
1671
+ constructor(state_repository: any, js_bls: any);
1672
+ /**
1673
+ * @param {any} raw_state_transition
1674
+ * @param {StateTransitionExecutionContext} execution_context
1675
+ * @returns {Promise<ValidationResult>}
1676
+ */
1677
+ validate(raw_state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
1678
+ }
1679
+ /**
1680
+ */
1681
+ export class IdentityCreateTransitionStateValidator {
1682
+ free(): void;
1683
+ /**
1684
+ * @param {any} state_repository
1685
+ */
1686
+ constructor(state_repository: any);
1687
+ /**
1688
+ * @param {IdentityCreateTransition} state_transition
1689
+ * @returns {Promise<ValidationResult>}
1690
+ */
1691
+ validate(state_transition: IdentityCreateTransition): Promise<ValidationResult>;
1692
+ }
1693
+ /**
1694
+ */
1695
+ export class IdentityFacade {
1696
+ free(): void;
1697
+ /**
1698
+ * @param {any} bls_adapter
1699
+ */
1700
+ constructor(bls_adapter: any);
1701
+ /**
1702
+ * @param {any} raw_identity_object
1703
+ * @returns {ValidationResult}
1704
+ */
1705
+ validate(raw_identity_object: any): ValidationResult;
1706
+ }
1707
+ /**
1708
+ */
1709
+ export class IdentityInsufficientBalanceError {
1710
+ free(): void;
1711
+ /**
1712
+ * @returns {any}
1713
+ */
1714
+ getIdentityId(): any;
1715
+ /**
1716
+ * @returns {number}
1717
+ */
1718
+ getBalance(): number;
1719
+ /**
1720
+ * @returns {number}
1721
+ */
1722
+ getCode(): number;
1723
+ }
1724
+ /**
1725
+ */
1726
+ export class IdentityNotFoundError {
1727
+ free(): void;
1728
+ /**
1729
+ * @returns {any}
1730
+ */
1731
+ getIdentityId(): any;
1732
+ /**
1733
+ * @returns {number}
1734
+ */
1735
+ getCode(): number;
1736
+ }
1737
+ /**
1738
+ */
1739
+ export class IdentityPublicKey {
1740
+ free(): void;
1741
+ /**
1742
+ * @param {any} raw_public_key
1743
+ */
1744
+ constructor(raw_public_key: any);
1745
+ /**
1746
+ * @returns {number}
1747
+ */
1748
+ getId(): number;
1749
+ /**
1750
+ * @param {number} id
1751
+ */
1752
+ setId(id: number): void;
1753
+ /**
1754
+ * @returns {number}
1755
+ */
1756
+ getType(): number;
1757
+ /**
1758
+ * @param {number} key_type
1759
+ */
1760
+ setType(key_type: number): void;
1761
+ /**
1762
+ * @param {Uint8Array} data
1763
+ */
1764
+ setData(data: Uint8Array): void;
1765
+ /**
1766
+ * @returns {Uint8Array}
1767
+ */
1768
+ getData(): Uint8Array;
1769
+ /**
1770
+ * @param {number} purpose
1771
+ */
1772
+ setPurpose(purpose: number): void;
1773
+ /**
1774
+ * @returns {number}
1775
+ */
1776
+ getPurpose(): number;
1777
+ /**
1778
+ * @param {number} purpose
1779
+ */
1780
+ setSecurityLevel(purpose: number): void;
1781
+ /**
1782
+ * @returns {number}
1783
+ */
1784
+ getSecurityLevel(): number;
1785
+ /**
1786
+ * @param {boolean} purpose
1262
1787
  */
1263
1788
  setReadOnly(purpose: boolean): void;
1264
1789
  /**
@@ -1286,10 +1811,18 @@ export class IdentityPublicKey {
1286
1811
  */
1287
1812
  toJSON(): any;
1288
1813
  /**
1289
- * @param {boolean | undefined} some_option
1814
+ * @param {boolean | undefined} skip_signatures
1815
+ * @returns {any}
1816
+ */
1817
+ toObject(skip_signatures?: boolean): any;
1818
+ /**
1819
+ * @param {Uint8Array} signature
1820
+ */
1821
+ setSignature(signature: Uint8Array): void;
1822
+ /**
1290
1823
  * @returns {any}
1291
1824
  */
1292
- toObject(some_option?: boolean): any;
1825
+ getSignature(): any;
1293
1826
  }
1294
1827
  /**
1295
1828
  */
@@ -1340,6 +1873,113 @@ export class IdentityPublicKeyIsReadOnlyError {
1340
1873
  }
1341
1874
  /**
1342
1875
  */
1876
+ export class IdentityTopUpTransition {
1877
+ free(): void;
1878
+ /**
1879
+ * @param {any} raw_parameters
1880
+ */
1881
+ constructor(raw_parameters: any);
1882
+ /**
1883
+ * @param {any} asset_lock_proof
1884
+ */
1885
+ setAssetLockProof(asset_lock_proof: any): void;
1886
+ /**
1887
+ * @returns {any}
1888
+ */
1889
+ getAssetLockProof(): any;
1890
+ /**
1891
+ * @returns {number}
1892
+ */
1893
+ getType(): number;
1894
+ /**
1895
+ * @returns {Identifier}
1896
+ */
1897
+ getIdentityId(): Identifier;
1898
+ /**
1899
+ * @returns {Identifier}
1900
+ */
1901
+ getOwnerId(): Identifier;
1902
+ /**
1903
+ * @param {any} options
1904
+ * @returns {any}
1905
+ */
1906
+ toObject(options: any): any;
1907
+ /**
1908
+ * @returns {any}
1909
+ */
1910
+ toJSON(): any;
1911
+ /**
1912
+ * @returns {any[]}
1913
+ */
1914
+ getModifiedDataIds(): any[];
1915
+ /**
1916
+ * @returns {boolean}
1917
+ */
1918
+ isDataContractStateTransition(): boolean;
1919
+ /**
1920
+ * @returns {boolean}
1921
+ */
1922
+ isDocumentStateTransition(): boolean;
1923
+ /**
1924
+ * @returns {boolean}
1925
+ */
1926
+ isIdentityStateTransition(): boolean;
1927
+ /**
1928
+ * @param {StateTransitionExecutionContext} context
1929
+ */
1930
+ setExecutionContext(context: StateTransitionExecutionContext): void;
1931
+ /**
1932
+ * @returns {StateTransitionExecutionContext}
1933
+ */
1934
+ getExecutionContext(): StateTransitionExecutionContext;
1935
+ /**
1936
+ * @param {Uint8Array} private_key
1937
+ * @param {number} key_type
1938
+ * @param {any} bls
1939
+ */
1940
+ signByPrivateKey(private_key: Uint8Array, key_type: number, bls: any): void;
1941
+ /**
1942
+ * @returns {any}
1943
+ */
1944
+ getSignature(): any;
1945
+ /**
1946
+ */
1947
+ readonly assetLockProof: any;
1948
+ /**
1949
+ */
1950
+ readonly identityId: Identifier;
1951
+ }
1952
+ /**
1953
+ */
1954
+ export class IdentityTopUpTransitionBasicValidator {
1955
+ free(): void;
1956
+ /**
1957
+ * @param {any} state_repository
1958
+ */
1959
+ constructor(state_repository: any);
1960
+ /**
1961
+ * @param {any} raw_state_transition
1962
+ * @param {StateTransitionExecutionContext} execution_context
1963
+ * @returns {Promise<ValidationResult>}
1964
+ */
1965
+ validate(raw_state_transition: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
1966
+ }
1967
+ /**
1968
+ */
1969
+ export class IdentityTopUpTransitionStateValidator {
1970
+ free(): void;
1971
+ /**
1972
+ * @param {any} state_repository
1973
+ */
1974
+ constructor(state_repository: any);
1975
+ /**
1976
+ * @param {IdentityTopUpTransition} state_transition
1977
+ * @returns {Promise<ValidationResult>}
1978
+ */
1979
+ validate(state_transition: IdentityTopUpTransition): Promise<ValidationResult>;
1980
+ }
1981
+ /**
1982
+ */
1343
1983
  export class IncompatibleDataContractSchemaError {
1344
1984
  free(): void;
1345
1985
  /**
@@ -1438,6 +2078,10 @@ export class IndexDefinition {
1438
2078
  * @returns {boolean}
1439
2079
  */
1440
2080
  isUnique(): boolean;
2081
+ /**
2082
+ * @returns {any}
2083
+ */
2084
+ toObject(): any;
1441
2085
  }
1442
2086
  /**
1443
2087
  */
@@ -1454,63 +2098,123 @@ export class IndexProperty {
1454
2098
  }
1455
2099
  /**
1456
2100
  */
1457
- export class InvalidActionNameError {
2101
+ export class InstantAssetLockProof {
1458
2102
  free(): void;
1459
2103
  /**
1460
- * @param {any[]} actions
2104
+ * @param {any} raw_parameters
1461
2105
  */
1462
- constructor(actions: any[]);
2106
+ constructor(raw_parameters: any);
1463
2107
  /**
1464
- * @returns {any[]}
2108
+ * @returns {number}
1465
2109
  */
1466
- getActions(): any[];
1467
- }
2110
+ getType(): number;
1468
2111
  /**
2112
+ * @returns {number}
1469
2113
  */
1470
- export class InvalidAssetLockProofCoreChainHeightError {
1471
- free(): void;
2114
+ getOutputIndex(): number;
1472
2115
  /**
1473
- * @returns {number}
2116
+ * @returns {any | undefined}
1474
2117
  */
1475
- getProofCoreChainLockedHeight(): number;
2118
+ getOutPoint(): any | undefined;
1476
2119
  /**
1477
- * @returns {number}
2120
+ * @returns {any}
1478
2121
  */
1479
- getCurrentCoreChainLockedHeight(): number;
2122
+ getOutput(): any;
1480
2123
  /**
1481
- * @returns {number}
2124
+ * @returns {Identifier}
1482
2125
  */
1483
- getCode(): number;
1484
- }
2126
+ createIdentifier(): Identifier;
1485
2127
  /**
2128
+ * @returns {any}
1486
2129
  */
1487
- export class InvalidAssetLockProofTransactionHeightError {
1488
- free(): void;
2130
+ getInstantLock(): any;
1489
2131
  /**
1490
- * @returns {number}
2132
+ * @returns {any}
1491
2133
  */
1492
- getProofCoreChainLockedHeight(): number;
2134
+ getTransaction(): any;
1493
2135
  /**
1494
- * @returns {number | undefined}
2136
+ * @returns {any}
1495
2137
  */
1496
- getCurrentCoreChainLockedHeight(): number | undefined;
2138
+ toObject(): any;
1497
2139
  /**
1498
- * @returns {number}
2140
+ * @returns {any}
1499
2141
  */
1500
- getCode(): number;
2142
+ toJSON(): any;
1501
2143
  }
1502
2144
  /**
1503
2145
  */
1504
- export class InvalidAssetLockTransactionOutputReturnSizeError {
2146
+ export class InstantAssetLockProofStructureValidator {
1505
2147
  free(): void;
1506
2148
  /**
1507
- * @returns {number}
2149
+ * @param {any} state_repository
1508
2150
  */
1509
- getOutputIndex(): number;
2151
+ constructor(state_repository: any);
1510
2152
  /**
1511
- * @returns {number}
2153
+ * @param {any} raw_asset_lock_proof
2154
+ * @param {StateTransitionExecutionContext} execution_context
2155
+ * @returns {Promise<ValidationResult>}
1512
2156
  */
1513
- getCode(): number;
2157
+ validate(raw_asset_lock_proof: any, execution_context: StateTransitionExecutionContext): Promise<ValidationResult>;
2158
+ }
2159
+ /**
2160
+ */
2161
+ export class InvalidActionNameError {
2162
+ free(): void;
2163
+ /**
2164
+ * @param {any[]} actions
2165
+ */
2166
+ constructor(actions: any[]);
2167
+ /**
2168
+ * @returns {any[]}
2169
+ */
2170
+ getActions(): any[];
2171
+ }
2172
+ /**
2173
+ */
2174
+ export class InvalidAssetLockProofCoreChainHeightError {
2175
+ free(): void;
2176
+ /**
2177
+ * @returns {number}
2178
+ */
2179
+ getProofCoreChainLockedHeight(): number;
2180
+ /**
2181
+ * @returns {number}
2182
+ */
2183
+ getCurrentCoreChainLockedHeight(): number;
2184
+ /**
2185
+ * @returns {number}
2186
+ */
2187
+ getCode(): number;
2188
+ }
2189
+ /**
2190
+ */
2191
+ export class InvalidAssetLockProofTransactionHeightError {
2192
+ free(): void;
2193
+ /**
2194
+ * @returns {number}
2195
+ */
2196
+ getProofCoreChainLockedHeight(): number;
2197
+ /**
2198
+ * @returns {number | undefined}
2199
+ */
2200
+ getTransactionHeight(): number | undefined;
2201
+ /**
2202
+ * @returns {number}
2203
+ */
2204
+ getCode(): number;
2205
+ }
2206
+ /**
2207
+ */
2208
+ export class InvalidAssetLockTransactionOutputReturnSizeError {
2209
+ free(): void;
2210
+ /**
2211
+ * @returns {number}
2212
+ */
2213
+ getOutputIndex(): number;
2214
+ /**
2215
+ * @returns {number}
2216
+ */
2217
+ getCode(): number;
1514
2218
  }
1515
2219
  /**
1516
2220
  */
@@ -1599,18 +2303,18 @@ export class InvalidDocumentActionError {
1599
2303
  export class InvalidDocumentError {
1600
2304
  free(): void;
1601
2305
  /**
1602
- * @param {Document} document
2306
+ * @param {any} raw_document
1603
2307
  * @param {any[]} errors
1604
2308
  */
1605
- constructor(document: Document, errors: any[]);
2309
+ constructor(raw_document: any, errors: any[]);
1606
2310
  /**
1607
2311
  * @returns {any[]}
1608
2312
  */
1609
2313
  getErrors(): any[];
1610
2314
  /**
1611
- * @returns {Document}
2315
+ * @returns {any}
1612
2316
  */
1613
- getDocument(): Document;
2317
+ getRawDocument(): any;
1614
2318
  }
1615
2319
  /**
1616
2320
  */
@@ -1688,7 +2392,7 @@ export class InvalidDocumentTypeInDataContractError {
1688
2392
  /**
1689
2393
  * @returns {string}
1690
2394
  */
1691
- getDocType(): string;
2395
+ getType(): string;
1692
2396
  /**
1693
2397
  * @returns {DataContract}
1694
2398
  */
@@ -1926,7 +2630,7 @@ export class InvalidInitialRevisionError {
1926
2630
  /**
1927
2631
  * @returns {Document}
1928
2632
  */
1929
- getDocumentTransition(): Document;
2633
+ getDocument(): Document;
1930
2634
  }
1931
2635
  /**
1932
2636
  */
@@ -2042,6 +2746,16 @@ export class JsonSchemaError {
2042
2746
  }
2043
2747
  /**
2044
2748
  */
2749
+ export class JsonSchemaValidator {
2750
+ free(): void;
2751
+ /**
2752
+ * @param {any} schema_js
2753
+ * @param {any} definitions
2754
+ */
2755
+ constructor(schema_js: any, definitions: any);
2756
+ }
2757
+ /**
2758
+ */
2045
2759
  export class MaxIdentityPublicKeyLimitReachedError {
2046
2760
  free(): void;
2047
2761
  /**
@@ -2078,7 +2792,7 @@ export class Metadata {
2078
2792
  }
2079
2793
  /**
2080
2794
  */
2081
- export class MismatchOwnersIdsError {
2795
+ export class MismatchOwnerIdsError {
2082
2796
  free(): void;
2083
2797
  /**
2084
2798
  * @param {any[]} documents
@@ -2087,7 +2801,7 @@ export class MismatchOwnersIdsError {
2087
2801
  /**
2088
2802
  * @returns {any[]}
2089
2803
  */
2090
- getDocumentTransition(): any[];
2804
+ getDocuments(): any[];
2091
2805
  }
2092
2806
  /**
2093
2807
  */
@@ -2158,16 +2872,16 @@ export class MissingStateTransitionTypeError {
2158
2872
  }
2159
2873
  /**
2160
2874
  */
2161
- export class NonConsensusErrorWasm {
2875
+ export class NoDocumentsSuppliedError {
2162
2876
  free(): void;
2163
- }
2164
2877
  /**
2165
2878
  */
2166
- export class NotDocumentsSuppliedError {
2167
- free(): void;
2879
+ constructor();
2880
+ }
2168
2881
  /**
2169
2882
  */
2170
- constructor();
2883
+ export class NonConsensusErrorWasm {
2884
+ free(): void;
2171
2885
  }
2172
2886
  /**
2173
2887
  */
@@ -2184,6 +2898,14 @@ export class ProtocolVersionParsingError {
2184
2898
  }
2185
2899
  /**
2186
2900
  */
2901
+ export class ProtocolVersionValidator {
2902
+ free(): void;
2903
+ /**
2904
+ */
2905
+ constructor();
2906
+ }
2907
+ /**
2908
+ */
2187
2909
  export class PublicKeyIsDisabledError {
2188
2910
  free(): void;
2189
2911
  /**
@@ -2222,6 +2944,21 @@ export class PublicKeyValidationError {
2222
2944
  }
2223
2945
  /**
2224
2946
  */
2947
+ export class PublicKeysSignaturesValidator {
2948
+ free(): void;
2949
+ /**
2950
+ * @param {any} bls
2951
+ */
2952
+ constructor(bls: any);
2953
+ /**
2954
+ * @param {any} raw_state_transition
2955
+ * @param {any[]} raw_public_keys
2956
+ * @returns {ValidationResult}
2957
+ */
2958
+ validate(raw_state_transition: any, raw_public_keys: any[]): ValidationResult;
2959
+ }
2960
+ /**
2961
+ */
2225
2962
  export class PublicKeysValidator {
2226
2963
  free(): void;
2227
2964
  /**
@@ -2259,6 +2996,11 @@ export class SerializedObjectParsingError {
2259
2996
  }
2260
2997
  /**
2261
2998
  */
2999
+ export class StateExecutionContext {
3000
+ free(): void;
3001
+ }
3002
+ /**
3003
+ */
2262
3004
  export class StateTransitionExecutionContext {
2263
3005
  free(): void;
2264
3006
  /**
@@ -2354,6 +3096,15 @@ export class UniqueIndicesLimitReachedError {
2354
3096
  }
2355
3097
  /**
2356
3098
  */
3099
+ export class UnknownAssetLockProofTypeError {
3100
+ free(): void;
3101
+ /**
3102
+ * @returns {number | undefined}
3103
+ */
3104
+ getType(): number | undefined;
3105
+ }
3106
+ /**
3107
+ */
2357
3108
  export class UnsupportedProtocolVersionError {
2358
3109
  free(): void;
2359
3110
  /**
@@ -2387,6 +3138,14 @@ export class ValidationResult {
2387
3138
  * @returns {any[]}
2388
3139
  */
2389
3140
  getErrors(): any[];
3141
+ /**
3142
+ * @returns {any}
3143
+ */
3144
+ getData(): any;
3145
+ /**
3146
+ * @returns {any}
3147
+ */
3148
+ getFirstError(): any;
2390
3149
  }
2391
3150
  /**
2392
3151
  */
@@ -2410,9 +3169,81 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
2410
3169
 
2411
3170
  export interface InitOutput {
2412
3171
  readonly memory: WebAssembly.Memory;
3172
+ readonly validateDataContractCreateTransitionState: (a: number, b: number) => number;
3173
+ readonly __wbg_datacontractcreatetransition_free: (a: number) => void;
3174
+ readonly datacontractcreatetransition_new: (a: number, b: number) => void;
3175
+ readonly datacontractcreatetransition_getDataContract: (a: number) => number;
3176
+ readonly datacontractcreatetransition_getProtocolVersion: (a: number) => number;
3177
+ readonly datacontractcreatetransition_getEntropy: (a: number) => number;
3178
+ readonly datacontractcreatetransition_getOwnerId: (a: number) => number;
3179
+ readonly datacontractcreatetransition_getType: (a: number) => number;
3180
+ readonly datacontractcreatetransition_toJSON: (a: number, b: number, c: number) => void;
3181
+ readonly datacontractcreatetransition_toBuffer: (a: number, b: number, c: number) => void;
3182
+ readonly datacontractcreatetransition_getModifiedDataIds: (a: number, b: number) => void;
3183
+ readonly datacontractcreatetransition_isDataContractStateTransition: (a: number) => number;
3184
+ readonly datacontractcreatetransition_isDocumentStateTransition: (a: number) => number;
3185
+ readonly datacontractcreatetransition_isIdentityStateTransition: (a: number) => number;
3186
+ readonly datacontractcreatetransition_setExecutionContext: (a: number, b: number) => void;
3187
+ readonly __wbg_incompatibledatacontractschemaerror_free: (a: number) => void;
3188
+ readonly incompatibledatacontractschemaerror_getOperation: (a: number, b: number) => void;
3189
+ readonly incompatibledatacontractschemaerror_getFieldPath: (a: number, b: number) => void;
3190
+ readonly incompatibledatacontractschemaerror_getOldSchema: (a: number, b: number) => void;
3191
+ readonly incompatibledatacontractschemaerror_getNewSchema: (a: number, b: number) => void;
3192
+ readonly incompatibledatacontractschemaerror_getCode: (a: number) => number;
3193
+ readonly __wbg_invalidindexedpropertyconstrainterror_free: (a: number) => void;
3194
+ readonly invalidindexedpropertyconstrainterror_getDocumentType: (a: number, b: number) => void;
3195
+ readonly invalidindexedpropertyconstrainterror_getIndexDefinition: (a: number) => number;
3196
+ readonly invalidindexedpropertyconstrainterror_getPropertyName: (a: number, b: number) => void;
3197
+ readonly invalidindexedpropertyconstrainterror_getConstraintName: (a: number, b: number) => void;
3198
+ readonly invalidindexedpropertyconstrainterror_getReason: (a: number, b: number) => void;
2413
3199
  readonly __wbg_duplicatedocumenttransitionswithidserror_free: (a: number) => void;
2414
3200
  readonly duplicatedocumenttransitionswithidserror_getReferences: (a: number) => number;
2415
3201
  readonly duplicatedocumenttransitionswithidserror_getCode: (a: number) => number;
3202
+ readonly __wbg_datatriggerinvalidresulterror_free: (a: number) => void;
3203
+ readonly datatriggerinvalidresulterror_getDataContractId: (a: number) => number;
3204
+ readonly datatriggerinvalidresulterror_getDocumentTransitionId: (a: number) => number;
3205
+ readonly datatriggerinvalidresulterror_getTimestamp: (a: number) => number;
3206
+ readonly datatriggerinvalidresulterror_getOwnerId: (a: number) => number;
3207
+ readonly datatriggerinvalidresulterror_getCode: (a: number) => number;
3208
+ readonly __wbg_publickeysvalidator_free: (a: number) => void;
3209
+ readonly publickeysvalidator_new: (a: number, b: number) => void;
3210
+ readonly publickeysvalidator_validateKeys: (a: number, b: number, c: number) => void;
3211
+ readonly publickeysvalidator_validatePublicKeyStructure: (a: number, b: number, c: number) => void;
3212
+ readonly publickeysvalidator_validateKeysInStateTransition: (a: number, b: number, c: number) => void;
3213
+ readonly applyIdentityCreateTransition: (a: number, b: number) => number;
3214
+ readonly applyIdentityTopUpTransition: (a: number, b: number) => number;
3215
+ readonly invalidindexedpropertyconstrainterror_getCode: (a: number) => number;
3216
+ readonly duplicatedocumenttransitionswithindiceserror_getCode: (a: number) => number;
3217
+ readonly __wbg_duplicatedocumenttransitionswithindiceserror_free: (a: number) => void;
3218
+ readonly incompatibledatacontractschemaerror_getDataContractId: (a: number) => number;
3219
+ readonly duplicatedocumenttransitionswithindiceserror_getReferences: (a: number) => number;
3220
+ readonly __wbg_applydatacontractcreatetransition_free: (a: number) => void;
3221
+ readonly applydatacontractcreatetransition_new: (a: number) => number;
3222
+ readonly applydatacontractcreatetransition_applyDataContractCreateTransition: (a: number, b: number) => number;
3223
+ readonly applydatacontractupdatetransition_applyDataContractUpdateTransition: (a: number, b: number) => number;
3224
+ readonly __wbg_indexproperty_free: (a: number) => void;
3225
+ readonly indexproperty_isAscending: (a: number) => number;
3226
+ readonly __wbg_indexdefinition_free: (a: number) => void;
3227
+ readonly indexdefinition_getName: (a: number, b: number) => void;
3228
+ readonly indexdefinition_getProperties: (a: number, b: number) => void;
3229
+ readonly indexdefinition_isUnique: (a: number) => number;
3230
+ readonly indexdefinition_toObject: (a: number, b: number) => void;
3231
+ readonly __wbg_invaliddocumenterror_free: (a: number) => void;
3232
+ readonly invaliddocumenterror_new: (a: number, b: number, c: number) => number;
3233
+ readonly invaliddocumenterror_getErrors: (a: number, b: number) => void;
3234
+ readonly invaliddocumenterror_getRawDocument: (a: number) => number;
3235
+ readonly __wbg_documenttransitionwasm_free: (a: number) => void;
3236
+ readonly documenttransitionwasm_getId: (a: number) => number;
3237
+ readonly documenttransitionwasm_getType: (a: number, b: number) => void;
3238
+ readonly documenttransitionwasm_getAction: (a: number) => number;
3239
+ readonly documenttransitionwasm_getDataContract: (a: number) => number;
3240
+ readonly documenttransitionwasm_getDataContractId: (a: number) => number;
3241
+ readonly documenttransitionwasm_get: (a: number, b: number, c: number) => number;
3242
+ readonly documenttransitionwasm_getObject: (a: number, b: number, c: number) => void;
3243
+ readonly documenttransitionwasm_toJSON: (a: number, b: number) => void;
3244
+ readonly __wbg_protocolversionparsingerror_free: (a: number) => void;
3245
+ readonly protocolversionparsingerror_getParsingError: (a: number) => number;
3246
+ readonly protocolversionparsingerror_getCode: (a: number) => number;
2416
3247
  readonly __wbg_identityassetlocktransactionoutputnotfounderror_free: (a: number) => void;
2417
3248
  readonly identityassetlocktransactionoutputnotfounderror_getOutputIndex: (a: number) => number;
2418
3249
  readonly identityassetlocktransactionoutputnotfounderror_getCode: (a: number) => number;
@@ -2420,274 +3251,142 @@ export interface InitOutput {
2420
3251
  readonly invalidassetlocktransactionoutputreturnsizeerror_getCode: (a: number) => number;
2421
3252
  readonly invalididentityassetlocktransactionoutputerror_getOutputIndex: (a: number) => number;
2422
3253
  readonly invalididentityassetlocktransactionoutputerror_getCode: (a: number) => number;
2423
- readonly __wbg_identifier_free: (a: number) => void;
2424
- readonly identifier_new: (a: number, b: number, c: number) => void;
2425
- readonly identifier_from: (a: number, b: number, c: number, d: number) => void;
2426
- readonly identifier_fromString: (a: number, b: number, c: number, d: number) => number;
2427
- readonly identifier_toBuffer: (a: number) => number;
2428
- readonly identifier_toJSON: (a: number, b: number) => void;
2429
- readonly identifier_toString: (a: number, b: number, c: number, d: number) => void;
2430
- readonly identifier_length: (a: number) => number;
2431
- readonly identifier_inner: (a: number, b: number) => void;
2432
- readonly __wbg_validationresult_free: (a: number) => void;
2433
- readonly validationresult_errorsText: (a: number, b: number) => void;
2434
- readonly validationresult_isValid: (a: number) => number;
2435
- readonly validationresult_getErrors: (a: number, b: number) => void;
2436
- readonly duplicatedocumenttransitionswithindiceserror_getCode: (a: number) => number;
2437
- readonly __wbg_duplicatedocumenttransitionswithindiceserror_free: (a: number) => void;
2438
- readonly __wbg_invalidassetlocktransactionoutputreturnsizeerror_free: (a: number) => void;
2439
- readonly __wbg_invalididentityassetlocktransactionoutputerror_free: (a: number) => void;
2440
- readonly duplicatedocumenttransitionswithindiceserror_getReferences: (a: number) => number;
2441
- readonly __wbg_protocolversionparsingerror_free: (a: number) => void;
2442
- readonly protocolversionparsingerror_getParsingError: (a: number) => number;
2443
- readonly protocolversionparsingerror_getCode: (a: number) => number;
2444
- readonly __wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_free: (a: number) => void;
2445
3254
  readonly invalididentitycreditwithdrawaltransitioncorefeeerror_getCoreFee: (a: number) => number;
2446
3255
  readonly invalididentitycreditwithdrawaltransitioncorefeeerror_getCode: (a: number) => number;
2447
- readonly __wbg_datatriggerinvalidresulterror_free: (a: number) => void;
2448
- readonly datatriggerinvalidresulterror_getDataContractId: (a: number) => number;
2449
- readonly datatriggerinvalidresulterror_getDocumentTransitionId: (a: number) => number;
2450
- readonly datatriggerinvalidresulterror_getTimestamp: (a: number) => number;
2451
- readonly datatriggerinvalidresulterror_getOwnerId: (a: number) => number;
2452
- readonly datatriggerinvalidresulterror_getCode: (a: number) => number;
2453
- readonly __wbg_identityfacade_free: (a: number) => void;
2454
- readonly identityfacade_new: (a: number) => number;
2455
- readonly identityfacade_validate: (a: number, b: number, c: number) => void;
2456
- readonly __wbg_nonconsensuserrorwasm_free: (a: number) => void;
3256
+ readonly __wbg_datacontractalreadypresenterror_free: (a: number) => void;
3257
+ readonly datacontractalreadypresenterror_getDataContractId: (a: number) => number;
3258
+ readonly datacontractalreadypresenterror_getCode: (a: number) => number;
3259
+ readonly identitycreatetransitionstatevalidator_validate: (a: number, b: number) => number;
3260
+ readonly identitytopuptransitionstatevalidator_validate: (a: number, b: number) => number;
3261
+ readonly indexproperty_getName: (a: number, b: number) => void;
2457
3262
  readonly serializedobjectparsingerror_getCode: (a: number) => number;
3263
+ readonly identitynotfounderror_getCode: (a: number) => number;
3264
+ readonly documentalreadypresenterror_getCode: (a: number) => number;
3265
+ readonly documentnotfounderror_getCode: (a: number) => number;
3266
+ readonly documenttimestampsmismatcherror_getCode: (a: number) => number;
2458
3267
  readonly __wbg_serializedobjectparsingerror_free: (a: number) => void;
3268
+ readonly __wbg_applydatacontractupdatetransition_free: (a: number) => void;
3269
+ readonly __wbg_identitycreatetransitionstatevalidator_free: (a: number) => void;
3270
+ readonly __wbg_identitytopuptransitionstatevalidator_free: (a: number) => void;
3271
+ readonly identitynotfounderror_getIdentityId: (a: number) => number;
3272
+ readonly documentalreadypresenterror_getDocumentId: (a: number) => number;
3273
+ readonly documentnotfounderror_getDocumentId: (a: number) => number;
3274
+ readonly documenttimestampsmismatcherror_getDocumentId: (a: number) => number;
2459
3275
  readonly serializedobjectparsingerror_getParsingError: (a: number) => number;
2460
- readonly __wbg_datacontractupdatetransition_free: (a: number) => void;
2461
- readonly datacontractupdatetransition_new: (a: number, b: number) => void;
2462
- readonly datacontractupdatetransition_getDataContract: (a: number) => number;
2463
- readonly datacontractupdatetransition_getProtocolVersion: (a: number) => number;
2464
- readonly datacontractupdatetransition_getEntropy: (a: number) => number;
2465
- readonly datacontractupdatetransition_getOwnerId: (a: number) => number;
2466
- readonly datacontractupdatetransition_getType: (a: number) => number;
2467
- readonly datacontractupdatetransition_toJSON: (a: number, b: number, c: number) => void;
2468
- readonly datacontractupdatetransition_toBuffer: (a: number, b: number, c: number) => void;
2469
- readonly datacontractupdatetransition_getModifiedDataIds: (a: number, b: number) => void;
2470
- readonly datacontractupdatetransition_isDataContractStateTransition: (a: number) => number;
2471
- readonly datacontractupdatetransition_isDocumentStateTransition: (a: number) => number;
2472
- readonly datacontractupdatetransition_isIdentityStateTransition: (a: number) => number;
2473
- readonly datacontractupdatetransition_setExecutionContext: (a: number, b: number) => void;
2474
- readonly datacontractupdatetransition_hash: (a: number, b: number, c: number) => void;
2475
- readonly __wbg_document_free: (a: number) => void;
2476
- readonly document_getProtocolVersion: (a: number) => number;
2477
- readonly document_getId: (a: number) => number;
2478
- readonly document_getType: (a: number, b: number) => void;
2479
- readonly document_getDataContractId: (a: number) => number;
2480
- readonly document_getDataContract: (a: number) => number;
2481
- readonly document_getOwnerId: (a: number) => number;
2482
- readonly document_setRevision: (a: number, b: number) => void;
2483
- readonly document_getRevision: (a: number) => number;
2484
- readonly document_setEntropy: (a: number, b: number, c: number, d: number) => void;
2485
- readonly document_getEntropy: (a: number, b: number) => void;
2486
- readonly document_setData: (a: number, b: number, c: number) => void;
2487
- readonly document_getData: (a: number, b: number) => void;
2488
- readonly document_set: (a: number, b: number, c: number, d: number) => void;
2489
- readonly document_get: (a: number, b: number, c: number) => number;
2490
- readonly document_setCreatedAt: (a: number, b: number) => void;
2491
- readonly document_setUpdatedAt: (a: number, b: number) => void;
2492
- readonly document_getCreatedAt: (a: number, b: number) => void;
2493
- readonly document_getUpdatedAt: (a: number, b: number) => void;
2494
- readonly document_getMetadata: (a: number) => number;
2495
- readonly document_setMetadata: (a: number, b: number) => void;
2496
- readonly document_toJSON: (a: number, b: number) => void;
2497
- readonly document_toBuffer: (a: number, b: number) => void;
2498
- readonly document_hash: (a: number, b: number) => void;
2499
- readonly __wbg_invalidindexedpropertyconstrainterror_free: (a: number) => void;
2500
- readonly invalidindexedpropertyconstrainterror_getDocumentType: (a: number, b: number) => void;
2501
- readonly invalidindexedpropertyconstrainterror_getIndexDefinition: (a: number) => number;
2502
- readonly invalidindexedpropertyconstrainterror_getPropertyName: (a: number, b: number) => void;
2503
- readonly invalidindexedpropertyconstrainterror_getConstraintName: (a: number, b: number) => void;
2504
- readonly invalidindexedpropertyconstrainterror_getReason: (a: number, b: number) => void;
2505
- readonly invalidindexedpropertyconstrainterror_getCode: (a: number) => number;
3276
+ readonly applydatacontractupdatetransition_new: (a: number) => number;
3277
+ readonly identitycreatetransitionstatevalidator_new: (a: number) => number;
3278
+ readonly identitytopuptransitionstatevalidator_new: (a: number) => number;
3279
+ readonly __wbg_invalidassetlocktransactionoutputreturnsizeerror_free: (a: number) => void;
3280
+ readonly __wbg_invalididentityassetlocktransactionoutputerror_free: (a: number) => void;
3281
+ readonly __wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_free: (a: number) => void;
3282
+ readonly __wbg_identitynotfounderror_free: (a: number) => void;
3283
+ readonly __wbg_documentalreadypresenterror_free: (a: number) => void;
3284
+ readonly __wbg_documentnotfounderror_free: (a: number) => void;
2506
3285
  readonly __wbg_documenttimestampsmismatcherror_free: (a: number) => void;
2507
- readonly documenttimestampsmismatcherror_getDocumentId: (a: number) => number;
2508
- readonly documenttimestampsmismatcherror_getCode: (a: number) => number;
2509
- readonly document_toObject: (a: number, b: number) => void;
2510
- readonly validateDataContractCreateTransitionState: (a: number, b: number) => number;
2511
- readonly validateDataContractUpdateTransitionState: (a: number, b: number) => number;
2512
- readonly validateIndicesAreBackwardCompatible: (a: number, b: number, c: number) => void;
3286
+ readonly __wbg_documentdeletetransition_free: (a: number) => void;
3287
+ readonly documentdeletetransition_getAction: (a: number) => number;
3288
+ readonly documentdeletetransition_toObject: (a: number, b: number) => void;
2513
3289
  readonly __wbg_datacontractmaxdepthexceederror_free: (a: number) => void;
3290
+ readonly datacontractmaxdeptherror_getDepth: (a: number) => number;
2514
3291
  readonly datacontractmaxdeptherror_getCode: (a: number) => number;
2515
- readonly __wbg_incompatibledatacontractschemaerror_free: (a: number) => void;
2516
- readonly incompatibledatacontractschemaerror_getDataContractId: (a: number) => number;
2517
- readonly incompatibledatacontractschemaerror_getOperation: (a: number, b: number) => void;
2518
- readonly incompatibledatacontractschemaerror_getFieldPath: (a: number, b: number) => void;
2519
- readonly incompatibledatacontractschemaerror_getOldSchema: (a: number, b: number) => void;
2520
- readonly incompatibledatacontractschemaerror_getNewSchema: (a: number, b: number) => void;
2521
- readonly incompatibledatacontractschemaerror_getCode: (a: number) => number;
3292
+ readonly __wbg_invalidindexpropertytypeerror_free: (a: number) => void;
3293
+ readonly invalidindexpropertytypeerror_getIndexDefinition: (a: number) => number;
3294
+ readonly invalidindexpropertytypeerror_getPropertyName: (a: number, b: number) => void;
3295
+ readonly invalidindexpropertytypeerror_getPropertyType: (a: number, b: number) => void;
3296
+ readonly __wbg_datacontractnotpresenterror_free: (a: number) => void;
3297
+ readonly datacontractnotpresenterror_getDataContractId: (a: number) => number;
3298
+ readonly datacontractnotpresenterror_getCode: (a: number) => number;
2522
3299
  readonly __wbg_invaliddocumenttransitionactionerror_free: (a: number) => void;
2523
3300
  readonly invaliddocumenttransitionactionerror_getAction: (a: number, b: number) => void;
2524
- readonly invaliddocumenttransitionactionerror_getCode: (a: number) => number;
3301
+ readonly __wbg_invalididentitypublickeysecuritylevelerror_free: (a: number) => void;
3302
+ readonly invalididentitypublickeysecuritylevelerror_getPublicKeyId: (a: number) => number;
3303
+ readonly invalididentitypublickeysecuritylevelerror_getPublicKeyPurpose: (a: number) => number;
3304
+ readonly invalididentitypublickeysecuritylevelerror_getPublicKeySecurityLevel: (a: number) => number;
3305
+ readonly invalididentitypublickeysecuritylevelerror_getCode: (a: number) => number;
2525
3306
  readonly invalididentitypublickeytypeerror_getPublicKeyType: (a: number) => number;
2526
3307
  readonly invalidstatetransitiontypeerror_getTransitionType: (a: number) => number;
2527
- readonly __wbg_datacontractalreadypresenterror_free: (a: number) => void;
2528
- readonly datacontractalreadypresenterror_getDataContractId: (a: number) => number;
2529
- readonly datacontractalreadypresenterror_getCode: (a: number) => number;
2530
3308
  readonly __wbg_identitypublickeyisdisablederror_free: (a: number) => void;
2531
3309
  readonly identitypublickeyisdisablederror_getPublicKeyIndex: (a: number) => number;
2532
3310
  readonly identitypublickeyisdisablederror_getCode: (a: number) => number;
2533
- readonly __wbg_statetransitionexecutioncontext_free: (a: number) => void;
2534
- readonly statetransitionexecutioncontext_new: () => number;
2535
- readonly statetransitionexecutioncontext_enableDryRun: (a: number) => void;
2536
- readonly statetransitionexecutioncontext_disableDryRun: (a: number) => void;
3311
+ readonly __wbg_identitytopuptransition_free: (a: number) => void;
3312
+ readonly identitytopuptransition_new: (a: number, b: number) => void;
3313
+ readonly identitytopuptransition_setAssetLockProof: (a: number, b: number, c: number) => void;
3314
+ readonly identitytopuptransition_assetLockProof: (a: number) => number;
3315
+ readonly identitytopuptransition_getType: (a: number) => number;
3316
+ readonly identitytopuptransition_getIdentityId: (a: number) => number;
3317
+ readonly identitytopuptransition_getOwnerId: (a: number) => number;
3318
+ readonly identitytopuptransition_toObject: (a: number, b: number, c: number) => void;
3319
+ readonly identitytopuptransition_toJSON: (a: number, b: number) => void;
3320
+ readonly identitytopuptransition_getModifiedDataIds: (a: number, b: number) => void;
3321
+ readonly identitytopuptransition_isDataContractStateTransition: (a: number) => number;
3322
+ readonly identitytopuptransition_isDocumentStateTransition: (a: number) => number;
3323
+ readonly identitytopuptransition_isIdentityStateTransition: (a: number) => number;
3324
+ readonly identitytopuptransition_setExecutionContext: (a: number, b: number) => void;
3325
+ readonly identitytopuptransition_getExecutionContext: (a: number) => number;
3326
+ readonly identitytopuptransition_signByPrivateKey: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
3327
+ readonly identitytopuptransition_getSignature: (a: number) => number;
3328
+ readonly invalidjsonschemareferror_getRefError: (a: number, b: number) => void;
3329
+ readonly invalidindexpropertytypeerror_getDocumentType: (a: number, b: number) => void;
3330
+ readonly jsonschemacompilationerror_getError: (a: number, b: number) => void;
2537
3331
  readonly __wbg_invalidjsonschemareferror_free: (a: number) => void;
2538
3332
  readonly __wbg_jsonschemacompilationerror_free: (a: number) => void;
2539
- readonly datacontractnotpresenterror_getCode: (a: number) => number;
3333
+ readonly invalidindexpropertytypeerror_getCode: (a: number) => number;
2540
3334
  readonly invalidjsonschemareferror_getCode: (a: number) => number;
3335
+ readonly invaliddocumenttransitionactionerror_getCode: (a: number) => number;
3336
+ readonly invalididentitykeysignatureerror_getPublicKeyId: (a: number) => number;
3337
+ readonly invalididentitykeysignatureerror_getCode: (a: number) => number;
2541
3338
  readonly invalididentitypublickeytypeerror_getCode: (a: number) => number;
2542
3339
  readonly jsonschemacompilationerror_getCode: (a: number) => number;
2543
3340
  readonly invalidstatetransitiontypeerror_getCode: (a: number) => number;
2544
- readonly identitynotfounderror_getCode: (a: number) => number;
2545
- readonly datacontractmaxdeptherror_getDepth: (a: number) => number;
2546
- readonly documentalreadypresenterror_getCode: (a: number) => number;
2547
- readonly documentnotfounderror_getCode: (a: number) => number;
2548
3341
  readonly identitypublickeyisreadonlyerror_getCode: (a: number) => number;
3342
+ readonly invalididentitypublickeyiderror_getCode: (a: number) => number;
2549
3343
  readonly maxidentitypublickeylimitreachederror_getIdentityId: (a: number) => number;
2550
3344
  readonly maxidentitypublickeylimitreachederror_getCode: (a: number) => number;
2551
3345
  readonly identitypublickeyisreadonlyerror_getKeyId: (a: number) => number;
2552
- readonly invalidjsonschemareferror_getRefError: (a: number, b: number) => void;
2553
- readonly jsonschemacompilationerror_getError: (a: number, b: number) => void;
2554
- readonly identitynotfounderror_getIdentityId: (a: number) => number;
2555
- readonly datacontractnotpresenterror_getDataContractId: (a: number) => number;
2556
- readonly documentalreadypresenterror_getDocumentId: (a: number) => number;
2557
- readonly documentnotfounderror_getDocumentId: (a: number) => number;
3346
+ readonly invalididentitypublickeyiderror_getId: (a: number) => number;
3347
+ readonly identitytopuptransition_getAssetLockProof: (a: number) => number;
3348
+ readonly identitytopuptransition_identityId: (a: number) => number;
3349
+ readonly __wbg_invalididentitykeysignatureerror_free: (a: number) => void;
2558
3350
  readonly __wbg_invalididentitypublickeytypeerror_free: (a: number) => void;
2559
3351
  readonly __wbg_invalidstatetransitiontypeerror_free: (a: number) => void;
2560
- readonly __wbg_identitynotfounderror_free: (a: number) => void;
2561
- readonly __wbg_datacontractnotpresenterror_free: (a: number) => void;
2562
- readonly __wbg_documentalreadypresenterror_free: (a: number) => void;
2563
- readonly __wbg_documentnotfounderror_free: (a: number) => void;
2564
3352
  readonly __wbg_identitypublickeyisreadonlyerror_free: (a: number) => void;
3353
+ readonly __wbg_invalididentitypublickeyiderror_free: (a: number) => void;
2565
3354
  readonly __wbg_maxidentitypublickeylimitreachederror_free: (a: number) => void;
2566
- readonly __wbg_datacontract_free: (a: number) => void;
2567
- readonly datacontract_new: (a: number, b: number) => void;
2568
- readonly datacontract_getProtocolVersion: (a: number) => number;
2569
- readonly datacontract_getId: (a: number) => number;
2570
- readonly datacontract_getOwnerId: (a: number) => number;
2571
- readonly datacontract_getVersion: (a: number) => number;
2572
- readonly datacontract_setVersion: (a: number, b: number) => void;
2573
- readonly datacontract_incrementVersion: (a: number) => void;
2574
- readonly datacontract_getJsonSchemaId: (a: number, b: number) => void;
2575
- readonly datacontract_setJsonMetaSchema: (a: number, b: number, c: number) => void;
2576
- readonly datacontract_getJsonMetaSchema: (a: number, b: number) => void;
2577
- readonly datacontract_setDocuments: (a: number, b: number, c: number) => void;
2578
- readonly datacontract_getDocuments: (a: number, b: number) => void;
2579
- readonly datacontract_isDocumentDefined: (a: number, b: number, c: number) => number;
2580
- readonly datacontract_setDocumentSchema: (a: number, b: number, c: number, d: number, e: number) => void;
2581
- readonly datacontract_getDocumentSchema: (a: number, b: number, c: number, d: number) => void;
2582
- readonly datacontract_getDocumentSchemaRef: (a: number, b: number, c: number, d: number) => void;
2583
- readonly datacontract_setDefinitions: (a: number, b: number, c: number) => void;
2584
- readonly datacontract_getDefinitions: (a: number, b: number) => void;
2585
- readonly datacontract_setEntropy: (a: number, b: number, c: number, d: number) => void;
2586
- readonly datacontract_getEntropy: (a: number) => number;
2587
- readonly datacontract_getBinaryProperties: (a: number, b: number, c: number, d: number) => void;
2588
- readonly datacontract_getMetadata: (a: number) => number;
2589
- readonly datacontract_setMetadata: (a: number, b: number) => void;
2590
- readonly datacontract_toObject: (a: number, b: number) => void;
2591
- readonly datacontract_toJSON: (a: number, b: number) => void;
2592
- readonly datacontract_toBuffer: (a: number, b: number) => void;
2593
- readonly datacontract_hash: (a: number, b: number) => void;
2594
- readonly datacontract_from: (a: number, b: number) => void;
2595
- readonly __wbg_datacontractdefaults_free: (a: number) => void;
2596
- readonly datacontractdefaults_get_default_schema: (a: number) => void;
2597
3355
  readonly __wbg_invaliddatacontracterror_free: (a: number) => void;
2598
3356
  readonly invaliddatacontracterror_new: (a: number, b: number, c: number) => number;
2599
3357
  readonly invaliddatacontracterror_getErrors: (a: number, b: number) => void;
2600
3358
  readonly invaliddatacontracterror_getRawDataContract: (a: number) => number;
2601
3359
  readonly invaliddatacontracterror_getMessage: (a: number, b: number) => void;
2602
- readonly __wbg_applydatacontractcreatetransition_free: (a: number) => void;
2603
- readonly applydatacontractcreatetransition_new: (a: number) => number;
2604
- readonly applydatacontractcreatetransition_applyDataContractCreateTransition: (a: number, b: number) => number;
2605
- readonly __wbg_datacontractcreatetransition_free: (a: number) => void;
2606
- readonly datacontractcreatetransition_new: (a: number, b: number) => void;
2607
- readonly datacontractcreatetransition_getDataContract: (a: number) => number;
2608
- readonly datacontractcreatetransition_getProtocolVersion: (a: number) => number;
2609
- readonly datacontractcreatetransition_getEntropy: (a: number) => number;
2610
- readonly datacontractcreatetransition_getOwnerId: (a: number) => number;
2611
- readonly datacontractcreatetransition_getType: (a: number) => number;
2612
- readonly datacontractcreatetransition_toJSON: (a: number, b: number, c: number) => void;
2613
- readonly datacontractcreatetransition_toBuffer: (a: number, b: number, c: number) => void;
2614
- readonly datacontractcreatetransition_getModifiedDataIds: (a: number, b: number) => void;
2615
- readonly datacontractcreatetransition_isDataContractStateTransition: (a: number) => number;
2616
- readonly datacontractcreatetransition_isDocumentStateTransition: (a: number) => number;
2617
- readonly datacontractcreatetransition_isIdentityStateTransition: (a: number) => number;
2618
- readonly datacontractcreatetransition_setExecutionContext: (a: number, b: number) => void;
2619
- readonly applydatacontractupdatetransition_applyDataContractUpdateTransition: (a: number, b: number) => number;
2620
- readonly __wbg_invalidactionnameerror_free: (a: number) => void;
2621
- readonly invalidactionnameerror_new: (a: number, b: number) => number;
2622
- readonly invalidactionnameerror_getActions: (a: number, b: number) => void;
2623
- readonly __wbg_invaliddocumenterror_free: (a: number) => void;
2624
- readonly invaliddocumenterror_new: (a: number, b: number, c: number) => number;
2625
- readonly invaliddocumenterror_getErrors: (a: number, b: number) => void;
2626
- readonly invaliddocumenterror_getDocument: (a: number) => number;
2627
- readonly __wbg_mismatchownersidserror_free: (a: number) => void;
2628
- readonly mismatchownersidserror_new: (a: number, b: number) => number;
2629
- readonly mismatchownersidserror_getDocumentTransition: (a: number, b: number) => void;
2630
- readonly __wbg_invalidindexpropertytypeerror_free: (a: number) => void;
2631
- readonly invalidindexpropertytypeerror_getDocumentType: (a: number, b: number) => void;
2632
- readonly invalidindexpropertytypeerror_getIndexDefinition: (a: number) => number;
2633
- readonly invalidindexpropertytypeerror_getPropertyName: (a: number, b: number) => void;
2634
- readonly invalidindexpropertytypeerror_getPropertyType: (a: number, b: number) => void;
2635
- readonly invalidindexpropertytypeerror_getCode: (a: number) => number;
2636
- readonly __wbg_transactiondecodeerror_free: (a: number) => void;
2637
- readonly __wbg_invalididentityassetlocktransactionerror_free: (a: number) => void;
2638
- readonly invalididentityassetlocktransactionerror_getValidationError: (a: number) => number;
2639
- readonly invalididentityassetlocktransactionerror_getMessage: (a: number, b: number) => void;
2640
- readonly invalididentityassetlocktransactionerror_getCode: (a: number) => number;
2641
- readonly __wbg_invalididentitykeysignatureerror_free: (a: number) => void;
2642
- readonly invalididentitykeysignatureerror_getPublicKeyId: (a: number) => number;
2643
- readonly invalididentitykeysignatureerror_getCode: (a: number) => number;
2644
- readonly __wbg_invalididentitypublickeysecuritylevelerror_free: (a: number) => void;
2645
- readonly invalididentitypublickeysecuritylevelerror_getPublicKeyId: (a: number) => number;
2646
- readonly invalididentitypublickeysecuritylevelerror_getPublicKeyPurpose: (a: number) => number;
2647
- readonly invalididentitypublickeysecuritylevelerror_getPublicKeySecurityLevel: (a: number) => number;
2648
- readonly invalididentitypublickeysecuritylevelerror_getCode: (a: number) => number;
3360
+ readonly __wbg_missingpublickeyerror_free: (a: number) => void;
2649
3361
  readonly missingpublickeyerror_getPublicKeyId: (a: number) => number;
3362
+ readonly missingpublickeyerror_getCode: (a: number) => number;
2650
3363
  readonly __wbg_identitypublickeydisabledatwindowviolationerror_free: (a: number) => void;
2651
3364
  readonly identitypublickeydisabledatwindowviolationerror_getDisabledAt: (a: number) => number;
2652
3365
  readonly identitypublickeydisabledatwindowviolationerror_getTimeWindowStart: (a: number) => number;
2653
3366
  readonly identitypublickeydisabledatwindowviolationerror_getTimeWindowEnd: (a: number) => number;
2654
- readonly __wbg_invalididentitypublickeyiderror_free: (a: number) => void;
2655
- readonly invalididentitypublickeyiderror_getId: (a: number) => number;
2656
- readonly invalididentitypublickeyiderror_getCode: (a: number) => number;
2657
- readonly publickeyisdisablederror_getPublicKeyId: (a: number) => number;
2658
- readonly publickeyisdisablederror_getCode: (a: number) => number;
2659
3367
  readonly identitypublickeydisabledatwindowviolationerror_getCode: (a: number) => number;
2660
- readonly missingpublickeyerror_getCode: (a: number) => number;
2661
- readonly __wbg_applydatacontractupdatetransition_free: (a: number) => void;
2662
- readonly applydatacontractupdatetransition_new: (a: number) => number;
2663
- readonly __wbg_publickeyisdisablederror_free: (a: number) => void;
2664
- readonly __wbg_missingpublickeyerror_free: (a: number) => void;
2665
- readonly __wbg_invalidinitialrevisionerror_free: (a: number) => void;
2666
- readonly invalidinitialrevisionerror_new: (a: number) => number;
2667
- readonly invalidinitialrevisionerror_getDocumentTransition: (a: number) => number;
2668
- readonly __wbg_systempropertyindexalreadypresenterror_free: (a: number) => void;
2669
- readonly systempropertyindexalreadypresenterror_getDocumentType: (a: number, b: number) => void;
2670
- readonly systempropertyindexalreadypresenterror_getIndexDefinition: (a: number) => number;
2671
- readonly systempropertyindexalreadypresenterror_getPropertyName: (a: number, b: number) => void;
2672
- readonly systempropertyindexalreadypresenterror_getCode: (a: number) => number;
2673
- readonly __wbg_identityassetlockprooflockedtransactionmismatcherror_free: (a: number) => void;
2674
- readonly identityassetlockprooflockedtransactionmismatcherror_getInstantLockTransactionId: (a: number) => number;
2675
- readonly identityassetlockprooflockedtransactionmismatcherror_getAssetLockTransactionId: (a: number) => number;
2676
- readonly identityassetlockprooflockedtransactionmismatcherror_getCode: (a: number) => number;
2677
- readonly __wbg_invalidinstantassetlockprooferror_free: (a: number) => void;
2678
- readonly invalidinstantassetlockprooferror_getCode: (a: number) => number;
2679
- readonly __wbg_documentowneridmismatcherror_free: (a: number) => void;
2680
- readonly documentowneridmismatcherror_getDocumentId: (a: number) => number;
2681
- readonly documentowneridmismatcherror_getDocumentOwnerId: (a: number) => number;
2682
- readonly documentowneridmismatcherror_getExistingDocumentOwnerId: (a: number) => number;
2683
- readonly documentowneridmismatcherror_getCode: (a: number) => number;
2684
- readonly __wbg_publickeysvalidator_free: (a: number) => void;
2685
- readonly publickeysvalidator_new: (a: number, b: number) => void;
2686
- readonly publickeysvalidator_validateKeys: (a: number, b: number, c: number) => void;
2687
- readonly publickeysvalidator_validatePublicKeyStructure: (a: number, b: number, c: number) => void;
2688
- readonly publickeysvalidator_validateKeysInStateTransition: (a: number, b: number, c: number) => void;
2689
- readonly __wbg_identity_free: (a: number) => void;
3368
+ readonly __wbg_chainassetlockproof_free: (a: number) => void;
3369
+ readonly chainassetlockproof_new: (a: number, b: number) => void;
3370
+ readonly chainassetlockproof_getType: (a: number) => number;
3371
+ readonly chainassetlockproof_getCoreChainLockedHeight: (a: number) => number;
3372
+ readonly chainassetlockproof_setCoreChainLockedHeight: (a: number, b: number) => void;
3373
+ readonly chainassetlockproof_getOutPoint: (a: number) => number;
3374
+ readonly chainassetlockproof_setOutPoint: (a: number, b: number, c: number, d: number) => void;
3375
+ readonly chainassetlockproof_toJSON: (a: number, b: number) => void;
3376
+ readonly chainassetlockproof_toObject: (a: number, b: number) => void;
3377
+ readonly chainassetlockproof_createIdentifier: (a: number, b: number) => void;
2690
3378
  readonly __wbg_assetlockproof_free: (a: number) => void;
3379
+ readonly assetlockproof_new: (a: number, b: number) => void;
3380
+ readonly assetlockproof_createIdentifier: (a: number, b: number) => void;
3381
+ readonly assetlockproof_toObject: (a: number, b: number) => void;
3382
+ readonly createAssetLockProofInstance: (a: number, b: number) => void;
3383
+ readonly validateAssetLockTransaction: (a: number, b: number, c: number, d: number, e: number) => number;
3384
+ readonly fetchAssetLockTransactionOutput: (a: number, b: number, c: number) => number;
3385
+ readonly fetchAssetLockPublicKeyHash: (a: number, b: number, c: number) => number;
3386
+ readonly __wbg_identitycreatetransitionbasicvalidator_free: (a: number) => void;
3387
+ readonly identitycreatetransitionbasicvalidator_new: (a: number, b: number, c: number) => void;
3388
+ readonly identitycreatetransitionbasicvalidator_validate: (a: number, b: number, c: number) => number;
3389
+ readonly __wbg_identity_free: (a: number) => void;
2691
3390
  readonly identity_new: (a: number, b: number) => void;
2692
3391
  readonly identity_getProtocolVersion: (a: number) => number;
2693
3392
  readonly identity_getId: (a: number) => number;
@@ -2712,95 +3411,97 @@ export interface InitOutput {
2712
3411
  readonly identity_addPublicKey: (a: number, b: number) => void;
2713
3412
  readonly identity_addPublicKeys: (a: number, b: number, c: number) => void;
2714
3413
  readonly identity_getPublicKeyMaxId: (a: number) => number;
2715
- readonly undefinedindexpropertyerror_getCode: (a: number) => number;
2716
- readonly __wbg_undefinedindexpropertyerror_free: (a: number) => void;
3414
+ readonly publickeyisdisablederror_getPublicKeyId: (a: number) => number;
3415
+ readonly publickeyisdisablederror_getCode: (a: number) => number;
3416
+ readonly __wbg_publickeyisdisablederror_free: (a: number) => void;
3417
+ readonly __wbg_invalidactionnameerror_free: (a: number) => void;
3418
+ readonly invalidactionnameerror_new: (a: number, b: number) => number;
3419
+ readonly invalidactionnameerror_getActions: (a: number, b: number) => void;
3420
+ readonly __wbg_invalidinitialrevisionerror_free: (a: number) => void;
3421
+ readonly invalidinitialrevisionerror_new: (a: number) => number;
3422
+ readonly invalidinitialrevisionerror_getDocument: (a: number) => number;
3423
+ readonly __wbg_mismatchowneridserror_free: (a: number) => void;
3424
+ readonly mismatchowneridserror_new: (a: number, b: number) => number;
3425
+ readonly mismatchowneridserror_getDocuments: (a: number, b: number) => void;
3426
+ readonly __wbg_systempropertyindexalreadypresenterror_free: (a: number) => void;
3427
+ readonly systempropertyindexalreadypresenterror_getDocumentType: (a: number, b: number) => void;
3428
+ readonly systempropertyindexalreadypresenterror_getIndexDefinition: (a: number) => number;
3429
+ readonly systempropertyindexalreadypresenterror_getPropertyName: (a: number, b: number) => void;
3430
+ readonly systempropertyindexalreadypresenterror_getCode: (a: number) => number;
3431
+ readonly __wbg_transactiondecodeerror_free: (a: number) => void;
3432
+ readonly __wbg_invalididentityassetlocktransactionerror_free: (a: number) => void;
3433
+ readonly invalididentityassetlocktransactionerror_getValidationError: (a: number) => number;
3434
+ readonly invalididentityassetlocktransactionerror_getMessage: (a: number, b: number) => void;
3435
+ readonly invalididentityassetlocktransactionerror_getCode: (a: number) => number;
2717
3436
  readonly undefinedindexpropertyerror_getDocumentType: (a: number, b: number) => void;
2718
3437
  readonly undefinedindexpropertyerror_getPropertyName: (a: number, b: number) => void;
3438
+ readonly undefinedindexpropertyerror_getCode: (a: number) => number;
3439
+ readonly __wbg_undefinedindexpropertyerror_free: (a: number) => void;
2719
3440
  readonly undefinedindexpropertyerror_getIndexDefinition: (a: number) => number;
2720
- readonly __wbg_documentalreadyexistserror_free: (a: number) => void;
2721
- readonly documentalreadyexistserror_getDocumentTransition: (a: number) => number;
2722
- readonly __wbg_documentcreatetransition_free: (a: number) => void;
2723
- readonly documentcreatetransition_getAction: (a: number) => number;
2724
- readonly __wbg_documentdeletetransition_free: (a: number) => void;
2725
- readonly __wbg_documenttransition_free: (a: number) => void;
3441
+ readonly __wbg_documenttransitions_free: (a: number) => void;
3442
+ readonly documenttransitions_new: () => number;
3443
+ readonly documenttransitions_addTransitionCreate: (a: number, b: number) => void;
3444
+ readonly documenttransitions_addTransitionReplace: (a: number, b: number) => void;
3445
+ readonly documenttransitions_addTransitionDelete: (a: number, b: number) => void;
3446
+ readonly __wbg_documentfactory_free: (a: number) => void;
3447
+ readonly documentfactory_new: (a: number, b: number, c: number) => number;
3448
+ readonly documentfactory_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
3449
+ readonly documentfactory_createStateTransition: (a: number, b: number, c: number) => void;
3450
+ readonly documentfactory_createFromObject: (a: number, b: number, c: number) => number;
3451
+ readonly documentfactory_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
2726
3452
  readonly __wbg_incompatiblere2patternerror_free: (a: number) => void;
2727
3453
  readonly incompatiblere2patternerror_getPattern: (a: number, b: number) => void;
2728
3454
  readonly incompatiblere2patternerror_getPath: (a: number, b: number) => void;
2729
3455
  readonly incompatiblere2patternerror_getMessage: (a: number, b: number) => void;
2730
3456
  readonly incompatiblere2patternerror_getCode: (a: number) => number;
2731
- readonly __wbg_inconsistentcompoundindexdataerror_free: (a: number) => void;
2732
- readonly inconsistentcompoundindexdataerror_getCode: (a: number) => number;
3457
+ readonly __wbg_identityassetlockprooflockedtransactionmismatcherror_free: (a: number) => void;
3458
+ readonly identityassetlockprooflockedtransactionmismatcherror_getInstantLockTransactionId: (a: number) => number;
3459
+ readonly identityassetlockprooflockedtransactionmismatcherror_getAssetLockTransactionId: (a: number) => number;
3460
+ readonly identityassetlockprooflockedtransactionmismatcherror_getCode: (a: number) => number;
2733
3461
  readonly __wbg_identityassetlocktransactionoutpointalreadyexistserror_free: (a: number) => void;
2734
- readonly identityassetlocktransactionoutpointalreadyexistserror_getDuplicatedIds: (a: number) => number;
3462
+ readonly identityassetlocktransactionoutpointalreadyexistserror_getOutputIndex: (a: number) => number;
2735
3463
  readonly identityassetlocktransactionoutpointalreadyexistserror_getTransactionId: (a: number) => number;
2736
3464
  readonly identityassetlocktransactionoutpointalreadyexistserror_getCode: (a: number) => number;
2737
3465
  readonly __wbg_identityinsufficientbalanceerror_free: (a: number) => void;
2738
3466
  readonly identityinsufficientbalanceerror_getIdentityId: (a: number) => number;
2739
3467
  readonly identityinsufficientbalanceerror_getBalance: (a: number) => number;
2740
3468
  readonly identityinsufficientbalanceerror_getCode: (a: number) => number;
2741
- readonly __wbg_invalididentitypublickeydataerror_free: (a: number) => void;
2742
- readonly invalididentitypublickeydataerror_getPublicKeyId: (a: number) => number;
2743
- readonly invalididentitypublickeydataerror_getValidationError: (a: number) => number;
2744
- readonly invalididentitypublickeydataerror_getCode: (a: number) => number;
2745
- readonly __wbg_invalidinstantassetlockproofsignatureerror_free: (a: number) => void;
2746
- readonly invalidinstantassetlockproofsignatureerror_getCode: (a: number) => number;
2747
- readonly missingmasterpublickeyerror_getCode: (a: number) => number;
2748
- readonly __wbg_invalidstatetransitionsignatureerror_free: (a: number) => void;
2749
- readonly invalidstatetransitionsignatureerror_getCode: (a: number) => number;
2750
- readonly __wbg_duplicateuniqueindexerror_free: (a: number) => void;
2751
- readonly duplicateuniqueindexerror_getDocumentId: (a: number) => number;
2752
- readonly duplicateuniqueindexerror_getDuplicatingProperties: (a: number) => number;
2753
- readonly duplicateuniqueindexerror_getCode: (a: number) => number;
2754
- readonly __wbg_publickeyvalidationerror_free: (a: number) => void;
2755
- readonly publickeyvalidationerror_message: (a: number) => number;
2756
- readonly documentdeletetransition_getAction: (a: number) => number;
2757
- readonly documenttransition_getAction: (a: number) => number;
2758
- readonly missingdocumenttransitionactionerror_getCode: (a: number) => number;
2759
- readonly missingdocumenttransitiontypeerror_getCode: (a: number) => number;
2760
- readonly missingdocumenttypeerror_getCode: (a: number) => number;
2761
- readonly missingdatacontractiderror_getCode: (a: number) => number;
2762
- readonly missingstatetransitiontypeerror_getCode: (a: number) => number;
2763
- readonly inconsistentcompoundindexdataerror_getIndexProperties: (a: number) => number;
2764
- readonly inconsistentcompoundindexdataerror_getDocumentType: (a: number, b: number) => void;
2765
- readonly __wbg_documentnotprovidederror_free: (a: number) => void;
2766
- readonly __wbg_invaliddocumentactionerror_free: (a: number) => void;
2767
- readonly __wbg_missingmasterpublickeyerror_free: (a: number) => void;
2768
- readonly __wbg_missingdocumenttransitionactionerror_free: (a: number) => void;
2769
- readonly __wbg_missingdocumenttransitiontypeerror_free: (a: number) => void;
2770
- readonly __wbg_missingdocumenttypeerror_free: (a: number) => void;
2771
- readonly __wbg_missingdatacontractiderror_free: (a: number) => void;
2772
- readonly __wbg_missingstatetransitiontypeerror_free: (a: number) => void;
2773
- readonly documentnotprovidederror_getDocumentTransition: (a: number) => number;
2774
- readonly invaliddocumentactionerror_getDocumentTransition: (a: number) => number;
2775
- readonly __wbg_dashplatformprotocol_free: (a: number) => void;
2776
- readonly dashplatformprotocol_new: (a: number) => number;
2777
- readonly __wbg_datacontractvalidator_free: (a: number) => void;
2778
- readonly datacontractvalidator_new: () => number;
2779
- readonly datacontractvalidator_validate: (a: number, b: number, c: number) => void;
3469
+ readonly __wbg_invalidinstantassetlockprooferror_free: (a: number) => void;
3470
+ readonly invalidinstantassetlockprooferror_getCode: (a: number) => number;
3471
+ readonly __wbg_documentowneridmismatcherror_free: (a: number) => void;
3472
+ readonly documentowneridmismatcherror_getDocumentId: (a: number) => number;
3473
+ readonly documentowneridmismatcherror_getDocumentOwnerId: (a: number) => number;
3474
+ readonly documentowneridmismatcherror_getExistingDocumentOwnerId: (a: number) => number;
3475
+ readonly documentowneridmismatcherror_getCode: (a: number) => number;
3476
+ readonly identifier_new: (a: number, b: number, c: number) => void;
3477
+ readonly identifier_from: (a: number, b: number, c: number, d: number) => void;
3478
+ readonly identifier_fromString: (a: number, b: number, c: number, d: number) => number;
3479
+ readonly identifier_toBuffer: (a: number) => number;
3480
+ readonly identifier_toJSON: (a: number, b: number) => void;
3481
+ readonly identifier_toString: (a: number, b: number, c: number, d: number) => void;
3482
+ readonly identifier_length: (a: number) => number;
3483
+ readonly identifier_toBytes: (a: number, b: number) => void;
3484
+ readonly identifier_clone: (a: number) => number;
3485
+ readonly __wbg_assetlocktransactionisnotfounderror_free: (a: number) => void;
3486
+ readonly assetlocktransactionisnotfounderror_getTransactionId: (a: number) => number;
3487
+ readonly __wbg_identifier_free: (a: number) => void;
3488
+ readonly validateDataContractUpdateTransitionState: (a: number, b: number) => number;
3489
+ readonly validateIndicesAreBackwardCompatible: (a: number, b: number, c: number) => void;
3490
+ readonly __wbg_datacontractvalidator_free: (a: number) => void;
3491
+ readonly datacontractvalidator_new: () => number;
3492
+ readonly datacontractvalidator_validate: (a: number, b: number, c: number) => void;
2780
3493
  readonly __wbg_datacontractfactory_free: (a: number) => void;
2781
3494
  readonly datacontractfactory_new: (a: number, b: number, c: number) => number;
2782
3495
  readonly datacontractfactory_create: (a: number, b: number, c: number, d: number, e: number) => void;
2783
3496
  readonly datacontractfactory_createFromObject: (a: number, b: number, c: number) => number;
2784
3497
  readonly datacontractfactory_createFromBuffer: (a: number, b: number, c: number, d: number) => number;
2785
3498
  readonly datacontractfactory_createDataContractCreateTransition: (a: number, b: number) => number;
2786
- readonly __wbg_duplicateindexerror_free: (a: number) => void;
2787
- readonly duplicateindexerror_getDocumentType: (a: number, b: number) => void;
2788
- readonly duplicateindexerror_getIndexDefinition: (a: number) => number;
2789
- readonly duplicateindexerror_getCode: (a: number) => number;
2790
- readonly __wbg_invaliddatacontractiderror_free: (a: number) => void;
2791
- readonly invaliddatacontractiderror_getExpectedId: (a: number) => number;
2792
- readonly invaliddatacontractiderror_getInvalidId: (a: number) => number;
2793
- readonly invaliddatacontractiderror_getCode: (a: number) => number;
2794
- readonly __wbg_invaliddocumenttransitioniderror_free: (a: number) => void;
2795
- readonly invaliddocumenttransitioniderror_getExpectedId: (a: number) => number;
2796
- readonly invaliddocumenttransitioniderror_getInvalidId: (a: number) => number;
2797
- readonly invaliddocumenttransitioniderror_getCode: (a: number) => number;
3499
+ readonly __wbg_documentcreatetransition_free: (a: number) => void;
3500
+ readonly documentcreatetransition_getAction: (a: number) => number;
3501
+ readonly documentcreatetransition_toObject: (a: number, b: number) => void;
2798
3502
  readonly invalidassetlockproofcorechainheighterror_getProofCoreChainLockedHeight: (a: number) => number;
2799
3503
  readonly invalidassetlockproofcorechainheighterror_getCurrentCoreChainLockedHeight: (a: number) => number;
2800
3504
  readonly invalidassetlockproofcorechainheighterror_getCode: (a: number) => number;
2801
- readonly __wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_free: (a: number) => void;
2802
- readonly invalididentitycreditwithdrawaltransitionoutputscripterror_getOutputScript: (a: number) => number;
2803
- readonly invalididentitycreditwithdrawaltransitionoutputscripterror_getCode: (a: number) => number;
2804
3505
  readonly __wbg_incompatibleprotocolversionerror_free: (a: number) => void;
2805
3506
  readonly incompatibleprotocolversionerror_getParsedProtocolVersion: (a: number) => number;
2806
3507
  readonly incompatibleprotocolversionerror_getMinimalProtocolVersion: (a: number) => number;
@@ -2816,40 +3517,205 @@ export interface InitOutput {
2816
3517
  readonly datatriggerexecutionerror_getTimestamp: (a: number) => number;
2817
3518
  readonly datatriggerexecutionerror_getOwnerId: (a: number) => number;
2818
3519
  readonly datatriggerexecutionerror_getCode: (a: number) => number;
2819
- readonly invalidcompoundindexerror_getCode: (a: number) => number;
3520
+ readonly __wbg_duplicateuniqueindexerror_free: (a: number) => void;
3521
+ readonly duplicateuniqueindexerror_getDocumentId: (a: number) => number;
3522
+ readonly duplicateuniqueindexerror_getDuplicatingProperties: (a: number) => number;
3523
+ readonly duplicateuniqueindexerror_getCode: (a: number) => number;
3524
+ readonly __wbg_publickeyvalidationerror_free: (a: number) => void;
3525
+ readonly publickeyvalidationerror_message: (a: number) => number;
3526
+ readonly __wbg_identitypublickey_free: (a: number) => void;
3527
+ readonly identitypublickey_new: (a: number, b: number) => void;
3528
+ readonly identitypublickey_getId: (a: number) => number;
3529
+ readonly identitypublickey_setId: (a: number, b: number) => void;
3530
+ readonly identitypublickey_getType: (a: number) => number;
3531
+ readonly identitypublickey_setType: (a: number, b: number, c: number) => void;
3532
+ readonly identitypublickey_setData: (a: number, b: number, c: number, d: number) => void;
3533
+ readonly identitypublickey_getData: (a: number, b: number) => void;
3534
+ readonly identitypublickey_setPurpose: (a: number, b: number, c: number) => void;
3535
+ readonly identitypublickey_getPurpose: (a: number) => number;
3536
+ readonly identitypublickey_setSecurityLevel: (a: number, b: number, c: number) => void;
3537
+ readonly identitypublickey_getSecurityLevel: (a: number) => number;
3538
+ readonly identitypublickey_setReadOnly: (a: number, b: number) => void;
3539
+ readonly identitypublickey_isReadOnly: (a: number) => number;
3540
+ readonly identitypublickey_setDisabledAt: (a: number, b: number) => void;
3541
+ readonly identitypublickey_getDisabledAt: (a: number, b: number) => void;
3542
+ readonly identitypublickey_hash: (a: number, b: number) => void;
3543
+ readonly identitypublickey_isMaster: (a: number) => number;
3544
+ readonly identitypublickey_toJSON: (a: number, b: number) => void;
3545
+ readonly identitypublickey_toObject: (a: number, b: number, c: number) => void;
3546
+ readonly identitypublickey_setSignature: (a: number, b: number, c: number) => void;
3547
+ readonly identitypublickey_getSignature: (a: number) => number;
3548
+ readonly __wbg_identitytopuptransitionbasicvalidator_free: (a: number) => void;
3549
+ readonly identitytopuptransitionbasicvalidator_new: (a: number, b: number) => void;
3550
+ readonly identitytopuptransitionbasicvalidator_validate: (a: number, b: number, c: number) => number;
3551
+ readonly __wbg_publickeyssignaturesvalidator_free: (a: number) => void;
3552
+ readonly publickeyssignaturesvalidator_new: (a: number) => number;
3553
+ readonly publickeyssignaturesvalidator_validate: (a: number, b: number, c: number, d: number, e: number) => void;
3554
+ readonly __wbg_validationresult_free: (a: number) => void;
3555
+ readonly validationresult_errorsText: (a: number, b: number) => void;
3556
+ readonly validationresult_isValid: (a: number) => number;
3557
+ readonly validationresult_getErrors: (a: number, b: number) => void;
3558
+ readonly validationresult_getData: (a: number) => number;
3559
+ readonly validationresult_getFirstError: (a: number) => number;
3560
+ readonly __wbg_invalidassetlockproofcorechainheighterror_free: (a: number) => void;
3561
+ readonly __wbg_unsupportedprotocolversionerror_free: (a: number) => void;
3562
+ readonly __wbg_dashplatformprotocol_free: (a: number) => void;
3563
+ readonly dashplatformprotocol_new: (a: number) => number;
3564
+ readonly __wbg_documentalreadyexistserror_free: (a: number) => void;
3565
+ readonly documentalreadyexistserror_getDocumentTransition: (a: number) => number;
3566
+ readonly __wbg_documenttransition_free: (a: number) => void;
3567
+ readonly documenttransition_getAction: (a: number) => number;
3568
+ readonly documenttransition_toObject: (a: number, b: number) => void;
3569
+ readonly __wbg_duplicateindexerror_free: (a: number) => void;
3570
+ readonly duplicateindexerror_getDocumentType: (a: number, b: number) => void;
3571
+ readonly duplicateindexerror_getIndexDefinition: (a: number) => number;
3572
+ readonly duplicateindexerror_getCode: (a: number) => number;
3573
+ readonly __wbg_invaliddatacontractiderror_free: (a: number) => void;
3574
+ readonly invaliddatacontractiderror_getExpectedId: (a: number) => number;
3575
+ readonly invaliddatacontractiderror_getInvalidId: (a: number) => number;
3576
+ readonly __wbg_inconsistentcompoundindexdataerror_free: (a: number) => void;
3577
+ readonly inconsistentcompoundindexdataerror_getIndexProperties: (a: number) => number;
3578
+ readonly inconsistentcompoundindexdataerror_getDocumentType: (a: number, b: number) => void;
3579
+ readonly __wbg_invaliddocumenttransitioniderror_free: (a: number) => void;
3580
+ readonly invaliddocumenttransitioniderror_getExpectedId: (a: number) => number;
3581
+ readonly invaliddocumenttransitioniderror_getInvalidId: (a: number) => number;
3582
+ readonly invaliddocumenttransitioniderror_getCode: (a: number) => number;
3583
+ readonly __wbg_invalididentitycreditwithdrawaltransitionoutputscripterror_free: (a: number) => void;
3584
+ readonly invalididentitycreditwithdrawaltransitionoutputscripterror_getOutputScript: (a: number) => number;
3585
+ readonly invalididentitycreditwithdrawaltransitionoutputscripterror_getCode: (a: number) => number;
3586
+ readonly __wbg_invalididentitypublickeydataerror_free: (a: number) => void;
3587
+ readonly invalididentitypublickeydataerror_getPublicKeyId: (a: number) => number;
3588
+ readonly invalididentitypublickeydataerror_getValidationError: (a: number) => number;
3589
+ readonly invalididentitypublickeydataerror_getCode: (a: number) => number;
3590
+ readonly __wbg_invalidinstantassetlockproofsignatureerror_free: (a: number) => void;
3591
+ readonly invalidinstantassetlockproofsignatureerror_getCode: (a: number) => number;
3592
+ readonly missingmasterpublickeyerror_getCode: (a: number) => number;
3593
+ readonly __wbg_invalidstatetransitionsignatureerror_free: (a: number) => void;
3594
+ readonly __wbg_jsonschemaerror_free: (a: number) => void;
3595
+ readonly jsonschemaerror_getKeyword: (a: number, b: number) => void;
3596
+ readonly jsonschemaerror_getInstancePath: (a: number, b: number) => void;
3597
+ readonly jsonschemaerror_getSchemaPath: (a: number, b: number) => void;
3598
+ readonly jsonschemaerror_getPropertyName: (a: number, b: number) => void;
3599
+ readonly jsonschemaerror_getParams: (a: number, b: number) => void;
3600
+ readonly jsonschemaerror_getCode: (a: number) => number;
3601
+ readonly __wbg_publickeysecuritylevelnotmeterror_free: (a: number) => void;
3602
+ readonly publickeysecuritylevelnotmeterror_getPublicKeySecurityLevel: (a: number) => number;
3603
+ readonly publickeysecuritylevelnotmeterror_getRequiredSecurityLevel: (a: number) => number;
3604
+ readonly unknownassetlockprooftypeerror_getType: (a: number) => number;
2820
3605
  readonly invalidcompoundindexerror_getDocumentType: (a: number, b: number) => void;
3606
+ readonly invalidcompoundindexerror_getCode: (a: number) => number;
3607
+ readonly invaliddatacontractiderror_getCode: (a: number) => number;
3608
+ readonly inconsistentcompoundindexdataerror_getCode: (a: number) => number;
3609
+ readonly missingdatacontractiderror_getCode: (a: number) => number;
3610
+ readonly missingdocumenttransitionactionerror_getCode: (a: number) => number;
3611
+ readonly missingdocumenttransitiontypeerror_getCode: (a: number) => number;
3612
+ readonly missingdocumenttypeerror_getCode: (a: number) => number;
3613
+ readonly invalidstatetransitionsignatureerror_getCode: (a: number) => number;
3614
+ readonly publickeysecuritylevelnotmeterror_getCode: (a: number) => number;
3615
+ readonly missingstatetransitiontypeerror_getCode: (a: number) => number;
2821
3616
  readonly __wbg_invalidcompoundindexerror_free: (a: number) => void;
2822
3617
  readonly invalidcompoundindexerror_getIndexDefinition: (a: number) => number;
2823
- readonly __wbg_invalidassetlockproofcorechainheighterror_free: (a: number) => void;
2824
- readonly __wbg_unsupportedprotocolversionerror_free: (a: number) => void;
2825
- readonly __wbg_notdocumentssuppliederror_free: (a: number) => void;
3618
+ readonly __wbg_missingmasterpublickeyerror_free: (a: number) => void;
3619
+ readonly __wbg_documentnotprovidederror_free: (a: number) => void;
3620
+ readonly __wbg_invaliddocumentactionerror_free: (a: number) => void;
3621
+ readonly __wbg_missingdocumenttransitionactionerror_free: (a: number) => void;
3622
+ readonly __wbg_missingdocumenttransitiontypeerror_free: (a: number) => void;
3623
+ readonly __wbg_missingdocumenttypeerror_free: (a: number) => void;
3624
+ readonly __wbg_missingdatacontractiderror_free: (a: number) => void;
3625
+ readonly __wbg_missingstatetransitiontypeerror_free: (a: number) => void;
3626
+ readonly __wbg_unknownassetlockprooftypeerror_free: (a: number) => void;
3627
+ readonly documentnotprovidederror_getDocumentTransition: (a: number) => number;
3628
+ readonly invaliddocumentactionerror_getDocumentTransition: (a: number) => number;
3629
+ readonly __wbg_invaliddocumenttypeindatacontracterror_free: (a: number) => void;
3630
+ readonly invaliddocumenttypeindatacontracterror_new: (a: number, b: number, c: number) => number;
3631
+ readonly invaliddocumenttypeindatacontracterror_getType: (a: number, b: number) => void;
3632
+ readonly invaliddocumenttypeindatacontracterror_getDataContract: (a: number) => number;
3633
+ readonly __wbg_nodocumentssuppliederror_free: (a: number) => void;
3634
+ readonly __wbg_documentsbatchtransition_free: (a: number) => void;
3635
+ readonly __wbg_documentscontainer_free: (a: number) => void;
3636
+ readonly documentscontainer_new: () => number;
3637
+ readonly documentscontainer_pushDocumentCreate: (a: number, b: number) => void;
3638
+ readonly documentscontainer_pushDocumentReplace: (a: number, b: number) => void;
3639
+ readonly documentscontainer_pushDocumentDelete: (a: number, b: number) => void;
3640
+ readonly documentsbatchtransition_from_raw_object: (a: number, b: number, c: number) => void;
3641
+ readonly documentsbatchtransition_getType: (a: number) => number;
3642
+ readonly documentsbatchtransition_getOwnerId: (a: number) => number;
3643
+ readonly documentsbatchtransition_getTransitions: (a: number) => number;
3644
+ readonly documentsbatchtransition_toJSON: (a: number, b: number) => void;
3645
+ readonly documentsbatchtransition_toObject: (a: number, b: number, c: number) => void;
3646
+ readonly documentsbatchtransition_getModifiedDataIds: (a: number) => number;
3647
+ readonly documentsbatchtransition_getSignaturePublicKeyId: (a: number, b: number) => void;
3648
+ readonly documentsbatchtransition_sign: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
3649
+ readonly documentsbatchtransition_verifyPublicKeyLevelAndPurpose: (a: number, b: number, c: number) => void;
3650
+ readonly documentsbatchtransition_verifyPublicKeyIsEnabled: (a: number, b: number, c: number) => void;
3651
+ readonly documentsbatchtransition_verifySignature: (a: number, b: number, c: number, d: number) => void;
3652
+ readonly documentsbatchtransition_setSignaturePublicKey: (a: number, b: number) => void;
3653
+ readonly documentsbatchtransition_getSecurityLevelRequirement: (a: number) => number;
3654
+ readonly documentsbatchtransition_getProtocolVersion: (a: number) => number;
3655
+ readonly documentsbatchtransition_getSignature: (a: number, b: number) => void;
3656
+ readonly documentsbatchtransition_setSignature: (a: number, b: number, c: number) => void;
3657
+ readonly documentsbatchtransition_calculateFee: (a: number) => number;
3658
+ readonly documentsbatchtransition_isDocumentStateTransition: (a: number) => number;
3659
+ readonly documentsbatchtransition_isDataContractStateTransition: (a: number) => number;
3660
+ readonly documentsbatchtransition_isIdentityStateTransition: (a: number) => number;
3661
+ readonly documentsbatchtransition_setExecutionContext: (a: number, b: number) => void;
3662
+ readonly documentsbatchtransition_getExecutionContext: (a: number) => number;
3663
+ readonly documentsbatchtransition_toBuffer: (a: number, b: number, c: number) => void;
3664
+ readonly documentsbatchtransition_hash: (a: number, b: number, c: number) => void;
3665
+ readonly __wbg_stateexecutioncontext_free: (a: number) => void;
2826
3666
  readonly __wbg_datacontracthavenewuniqueindexerror_free: (a: number) => void;
2827
3667
  readonly datacontracthavenewuniqueindexerror_getDocumentType: (a: number, b: number) => void;
2828
3668
  readonly datacontracthavenewuniqueindexerror_getIndexName: (a: number, b: number) => void;
2829
3669
  readonly datacontracthavenewuniqueindexerror_getCode: (a: number) => number;
2830
3670
  readonly __wbg_uniqueindiceslimitreachederror_free: (a: number) => void;
3671
+ readonly uniqueindiceslimitreachederror_getDocumentType: (a: number, b: number) => void;
2831
3672
  readonly uniqueindiceslimitreachederror_getCode: (a: number) => number;
2832
3673
  readonly __wbg_invaliddocumenttypeerror_free: (a: number) => void;
2833
- readonly invaliddocumenttypeerror_getDataContractId: (a: number) => number;
2834
- readonly invaliddocumenttypeerror_getCode: (a: number) => number;
2835
- readonly __wbg_duplicatedidentitypublickeyerror_free: (a: number) => void;
2836
- readonly duplicatedidentitypublickeyerror_getDuplicatedPublicKeysIds: (a: number) => number;
2837
- readonly duplicatedidentitypublickeyerror_getCode: (a: number) => number;
3674
+ readonly invaliddocumenttypeerror_getDocumentType: (a: number, b: number) => void;
3675
+ readonly __wbg_duplicatedidentitypublickeyiderror_free: (a: number) => void;
2838
3676
  readonly duplicatedidentitypublickeyiderror_getDuplicatedIds: (a: number) => number;
2839
3677
  readonly duplicatedidentitypublickeyiderror_getCode: (a: number) => number;
2840
3678
  readonly __wbg_invalidassetlockprooftransactionheighterror_free: (a: number) => void;
2841
3679
  readonly invalidassetlockprooftransactionheighterror_getProofCoreChainLockedHeight: (a: number) => number;
2842
- readonly invalidassetlockprooftransactionheighterror_getCurrentCoreChainLockedHeight: (a: number, b: number) => void;
3680
+ readonly invalidassetlockprooftransactionheighterror_getTransactionHeight: (a: number, b: number) => void;
2843
3681
  readonly invalidassetlockprooftransactionheighterror_getCode: (a: number) => number;
2844
3682
  readonly __wbg_invalidsignaturepublickeysecuritylevelerror_free: (a: number) => void;
2845
3683
  readonly invalidsignaturepublickeysecuritylevelerror_getPublicKeySecurityLevel: (a: number) => number;
2846
3684
  readonly invalidsignaturepublickeysecuritylevelerror_getRequiredKeySecurityLevel: (a: number) => number;
3685
+ readonly __wbg_datatriggerconditionerror_free: (a: number) => void;
3686
+ readonly datatriggerconditionerror_getDataContractId: (a: number) => number;
3687
+ readonly datatriggerconditionerror_getDocumentTransitionId: (a: number) => number;
3688
+ readonly datatriggerconditionerror_getMessage: (a: number, b: number) => void;
3689
+ readonly datatriggerconditionerror_getTimestamp: (a: number) => number;
3690
+ readonly datatriggerconditionerror_getOwnerId: (a: number) => number;
3691
+ readonly datatriggerconditionerror_getCode: (a: number) => number;
3692
+ readonly __wbg_documenttimestampwindowviolationerror_free: (a: number) => void;
3693
+ readonly documenttimestampwindowviolationerror_getTimestampName: (a: number, b: number) => void;
3694
+ readonly documenttimestampwindowviolationerror_getTimestamp: (a: number) => number;
3695
+ readonly documenttimestampwindowviolationerror_getTimeWindowStart: (a: number) => number;
3696
+ readonly documenttimestampwindowviolationerror_getTimeWindowEnd: (a: number) => number;
3697
+ readonly documenttimestampwindowviolationerror_getCode: (a: number) => number;
2847
3698
  readonly __wbg_invaliddocumentrevisionerror_free: (a: number) => void;
2848
3699
  readonly invaliddocumentrevisionerror_getDocumentId: (a: number) => number;
2849
3700
  readonly invaliddocumentrevisionerror_getCurrentRevision: (a: number) => number;
2850
3701
  readonly invaliddocumentrevisionerror_getCode: (a: number) => number;
2851
- readonly publickeysecuritylevelnotmeterror_getPublicKeySecurityLevel: (a: number) => number;
2852
- readonly publickeysecuritylevelnotmeterror_getRequiredSecurityLevel: (a: number) => number;
3702
+ readonly __wbg_metadata_free: (a: number) => void;
3703
+ readonly metadata_new: (a: number, b: number) => number;
3704
+ readonly metadata_from: (a: number) => number;
3705
+ readonly metadata_toJSON: (a: number) => number;
3706
+ readonly metadata_toObject: (a: number) => number;
3707
+ readonly __wbg_protocolversionvalidator_free: (a: number) => void;
3708
+ readonly protocolversionvalidator_new: () => number;
3709
+ readonly datacontractimmutablepropertiesupdateerror_getOperation: (a: number, b: number) => void;
3710
+ readonly datacontractimmutablepropertiesupdateerror_getFieldPath: (a: number, b: number) => void;
3711
+ readonly datacontractinvalidindexdefinitionupdateerror_getDocumentType: (a: number, b: number) => void;
3712
+ readonly datacontractinvalidindexdefinitionupdateerror_getIndexName: (a: number, b: number) => void;
3713
+ readonly datacontractuniqueindiceschangederror_getDocumentType: (a: number, b: number) => void;
3714
+ readonly datacontractuniqueindiceschangederror_getIndexName: (a: number, b: number) => void;
3715
+ readonly duplicateindexnameerror_getDocumentType: (a: number, b: number) => void;
3716
+ readonly duplicateindexnameerror_getDuplicateIndexName: (a: number, b: number) => void;
3717
+ readonly invalididentifiererror_getIdentifierName: (a: number, b: number) => void;
3718
+ readonly invalididentifiererror_getError: (a: number, b: number) => void;
2853
3719
  readonly wrongpublickeypurposeerror_getPublicKeyPurpose: (a: number) => number;
2854
3720
  readonly wrongpublickeypurposeerror_getKeyPurposeRequirement: (a: number) => number;
2855
3721
  readonly datacontractimmutablepropertiesupdateerror_getCode: (a: number) => number;
@@ -2858,108 +3724,172 @@ export interface InitOutput {
2858
3724
  readonly duplicateindexnameerror_getCode: (a: number) => number;
2859
3725
  readonly uniqueindiceslimitreachederror_getIndexLimit: (a: number) => number;
2860
3726
  readonly invalididentifiererror_getCode: (a: number) => number;
2861
- readonly publickeysecuritylevelnotmeterror_getCode: (a: number) => number;
2862
- readonly wrongpublickeypurposeerror_getCode: (a: number) => number;
2863
3727
  readonly invalidsignaturepublickeysecuritylevelerror_getCode: (a: number) => number;
3728
+ readonly wrongpublickeypurposeerror_getCode: (a: number) => number;
3729
+ readonly invaliddocumenttypeerror_getCode: (a: number) => number;
2864
3730
  readonly invalididentityrevisionerror_getCurrentRevision: (a: number) => number;
2865
3731
  readonly invalididentityrevisionerror_getCode: (a: number) => number;
2866
- readonly __wbg_duplicatedidentitypublickeyiderror_free: (a: number) => void;
2867
- readonly datacontractimmutablepropertiesupdateerror_getOperation: (a: number, b: number) => void;
2868
- readonly datacontractimmutablepropertiesupdateerror_getFieldPath: (a: number, b: number) => void;
2869
- readonly datacontractinvalidindexdefinitionupdateerror_getDocumentType: (a: number, b: number) => void;
2870
- readonly datacontractinvalidindexdefinitionupdateerror_getIndexName: (a: number, b: number) => void;
2871
- readonly datacontractuniqueindiceschangederror_getDocumentType: (a: number, b: number) => void;
2872
- readonly datacontractuniqueindiceschangederror_getIndexName: (a: number, b: number) => void;
2873
- readonly duplicateindexnameerror_getDocumentType: (a: number, b: number) => void;
2874
- readonly duplicateindexnameerror_getDuplicateIndexName: (a: number, b: number) => void;
2875
- readonly uniqueindiceslimitreachederror_getDocumentType: (a: number, b: number) => void;
2876
- readonly invaliddocumenttypeerror_getDocumentType: (a: number, b: number) => void;
2877
- readonly invalididentifiererror_getIdentifierName: (a: number, b: number) => void;
2878
- readonly invalididentifiererror_getError: (a: number, b: number) => void;
3732
+ readonly documenttimestampwindowviolationerror_getDocumentId: (a: number) => number;
3733
+ readonly invaliddocumenttypeerror_getDataContractId: (a: number) => number;
2879
3734
  readonly invalididentityrevisionerror_getIdentityId: (a: number) => number;
2880
- readonly notdocumentssuppliederror_new: () => number;
3735
+ readonly nodocumentssuppliederror_new: () => number;
2881
3736
  readonly __wbg_datacontractimmutablepropertiesupdateerror_free: (a: number) => void;
2882
3737
  readonly __wbg_datacontractinvalidindexdefinitionupdateerror_free: (a: number) => void;
2883
3738
  readonly __wbg_datacontractuniqueindiceschangederror_free: (a: number) => void;
2884
3739
  readonly __wbg_duplicateindexnameerror_free: (a: number) => void;
2885
3740
  readonly __wbg_invalididentifiererror_free: (a: number) => void;
2886
- readonly __wbg_publickeysecuritylevelnotmeterror_free: (a: number) => void;
2887
3741
  readonly __wbg_wrongpublickeypurposeerror_free: (a: number) => void;
2888
3742
  readonly __wbg_invalididentityrevisionerror_free: (a: number) => void;
2889
- readonly __wbg_invaliddocumenttypeindatacontracterror_free: (a: number) => void;
2890
- readonly invaliddocumenttypeindatacontracterror_new: (a: number, b: number, c: number) => number;
2891
- readonly invaliddocumenttypeindatacontracterror_getDocType: (a: number, b: number) => void;
2892
- readonly invaliddocumenttypeindatacontracterror_getDataContract: (a: number) => number;
2893
- readonly __wbg_indexproperty_free: (a: number) => void;
2894
- readonly indexproperty_isAscending: (a: number) => number;
2895
- readonly __wbg_indexdefinition_free: (a: number) => void;
2896
- readonly indexdefinition_getName: (a: number, b: number) => void;
2897
- readonly indexdefinition_getProperties: (a: number, b: number) => void;
2898
- readonly indexdefinition_isUnique: (a: number) => number;
3743
+ readonly __wbg_document_free: (a: number) => void;
3744
+ readonly document_new: (a: number, b: number, c: number) => void;
3745
+ readonly document_getProtocolVersion: (a: number) => number;
3746
+ readonly document_getId: (a: number) => number;
3747
+ readonly document_setId: (a: number, b: number) => void;
3748
+ readonly document_getType: (a: number, b: number) => void;
3749
+ readonly document_getDataContractId: (a: number) => number;
3750
+ readonly document_getDataContract: (a: number) => number;
3751
+ readonly document_setOwnerId: (a: number, b: number) => void;
3752
+ readonly document_getOwnerId: (a: number) => number;
3753
+ readonly document_setRevision: (a: number, b: number) => void;
3754
+ readonly document_getRevision: (a: number) => number;
3755
+ readonly document_setEntropy: (a: number, b: number, c: number, d: number) => void;
3756
+ readonly document_getEntropy: (a: number) => number;
3757
+ readonly document_setData: (a: number, b: number, c: number) => void;
3758
+ readonly document_getData: (a: number, b: number) => void;
3759
+ readonly document_set: (a: number, b: number, c: number, d: number, e: number) => void;
3760
+ readonly document_get: (a: number, b: number, c: number) => number;
3761
+ readonly document_setCreatedAt: (a: number, b: number) => void;
3762
+ readonly document_setUpdatedAt: (a: number, b: number) => void;
3763
+ readonly document_getCreatedAt: (a: number, b: number) => void;
3764
+ readonly document_getUpdatedAt: (a: number, b: number) => void;
3765
+ readonly document_getMetadata: (a: number) => number;
3766
+ readonly document_setMetadata: (a: number, b: number) => number;
3767
+ readonly document_toObject: (a: number, b: number, c: number) => void;
3768
+ readonly document_toJSON: (a: number, b: number) => void;
3769
+ readonly document_toBuffer: (a: number, b: number) => void;
3770
+ readonly document_hash: (a: number, b: number) => void;
3771
+ readonly document_clone: (a: number) => number;
2899
3772
  readonly __wbg_invaliddatacontractversionerror_free: (a: number) => void;
2900
3773
  readonly invaliddatacontractversionerror_getExpectedVersion: (a: number) => number;
2901
3774
  readonly invaliddatacontractversionerror_getVersion: (a: number) => number;
2902
3775
  readonly invaliddatacontractversionerror_getCode: (a: number) => number;
2903
- readonly __wbg_jsonschemaerror_free: (a: number) => void;
2904
- readonly jsonschemaerror_getKeyword: (a: number, b: number) => void;
2905
- readonly jsonschemaerror_getInstancePath: (a: number, b: number) => void;
2906
- readonly jsonschemaerror_getSchemaPath: (a: number, b: number) => void;
2907
- readonly jsonschemaerror_getPropertyName: (a: number, b: number) => void;
2908
- readonly jsonschemaerror_getParams: (a: number, b: number) => void;
2909
- readonly jsonschemaerror_getCode: (a: number) => number;
3776
+ readonly __wbg_duplicatedidentitypublickeyerror_free: (a: number) => void;
3777
+ readonly duplicatedidentitypublickeyerror_getDuplicatedPublicKeysIds: (a: number) => number;
3778
+ readonly duplicatedidentitypublickeyerror_getCode: (a: number) => number;
2910
3779
  readonly __wbg_balanceisnotenougherror_free: (a: number) => void;
2911
3780
  readonly balanceisnotenougherror_getBalance: (a: number) => number;
2912
3781
  readonly balanceisnotenougherror_getFee: (a: number) => number;
2913
3782
  readonly balanceisnotenougherror_getCode: (a: number) => number;
2914
- readonly __wbg_datatriggerconditionerror_free: (a: number) => void;
2915
- readonly datatriggerconditionerror_getDataContractId: (a: number) => number;
2916
- readonly datatriggerconditionerror_getDocumentTransitionId: (a: number) => number;
2917
- readonly datatriggerconditionerror_getMessage: (a: number, b: number) => void;
2918
- readonly datatriggerconditionerror_getTimestamp: (a: number) => number;
2919
- readonly datatriggerconditionerror_getOwnerId: (a: number) => number;
2920
- readonly datatriggerconditionerror_getCode: (a: number) => number;
2921
- readonly __wbg_documenttimestampwindowviolationerror_free: (a: number) => void;
2922
- readonly documenttimestampwindowviolationerror_getDocumentId: (a: number) => number;
2923
- readonly documenttimestampwindowviolationerror_getTimestampName: (a: number, b: number) => void;
2924
- readonly documenttimestampwindowviolationerror_getTimestamp: (a: number) => number;
2925
- readonly documenttimestampwindowviolationerror_getTimeWindowStart: (a: number) => number;
2926
- readonly documenttimestampwindowviolationerror_getTimeWindowEnd: (a: number) => number;
2927
- readonly documenttimestampwindowviolationerror_getCode: (a: number) => number;
2928
- readonly __wbg_metadata_free: (a: number) => void;
2929
- readonly metadata_new: (a: number, b: number) => number;
2930
- readonly metadata_from: (a: number) => number;
2931
- readonly metadata_toJSON: (a: number) => number;
2932
- readonly metadata_toObject: (a: number) => number;
3783
+ readonly __wbg_assetlockoutputnotfounderror_free: (a: number) => void;
3784
+ readonly __wbg_chainassetlockproofstructurevalidator_free: (a: number) => void;
3785
+ readonly chainassetlockproofstructurevalidator_new: (a: number, b: number) => void;
3786
+ readonly chainassetlockproofstructurevalidator_validate: (a: number, b: number, c: number) => number;
3787
+ readonly __wbg_instantassetlockproof_free: (a: number) => void;
3788
+ readonly instantassetlockproof_new: (a: number, b: number) => void;
3789
+ readonly instantassetlockproof_getType: (a: number) => number;
3790
+ readonly instantassetlockproof_getOutputIndex: (a: number) => number;
3791
+ readonly instantassetlockproof_getOutPoint: (a: number) => number;
3792
+ readonly instantassetlockproof_getOutput: (a: number, b: number) => void;
3793
+ readonly instantassetlockproof_createIdentifier: (a: number, b: number) => void;
3794
+ readonly instantassetlockproof_getInstantLock: (a: number) => number;
3795
+ readonly instantassetlockproof_getTransaction: (a: number) => number;
3796
+ readonly instantassetlockproof_toObject: (a: number, b: number) => void;
3797
+ readonly instantassetlockproof_toJSON: (a: number, b: number) => void;
3798
+ readonly instantassetlockproofstructurevalidator_new: (a: number, b: number) => void;
3799
+ readonly instantassetlockproofstructurevalidator_validate: (a: number, b: number, c: number) => number;
3800
+ readonly __wbg_jsonschemavalidator_free: (a: number) => void;
3801
+ readonly jsonschemavalidator_new: (a: number, b: number, c: number) => void;
3802
+ readonly __wbg_instantassetlockproofstructurevalidator_free: (a: number) => void;
2933
3803
  readonly statetransitionmaxsizeexceedederror_getActualSizeKBytes: (a: number) => number;
2934
3804
  readonly statetransitionmaxsizeexceedederror_getMaxSizeKBytes: (a: number) => number;
2935
3805
  readonly statetransitionmaxsizeexceedederror_getCode: (a: number) => number;
2936
- readonly indexproperty_getName: (a: number, b: number) => void;
2937
3806
  readonly __wbg_statetransitionmaxsizeexceedederror_free: (a: number) => void;
3807
+ readonly __wbg_datacontract_free: (a: number) => void;
3808
+ readonly datacontract_new: (a: number, b: number) => void;
3809
+ readonly datacontract_getProtocolVersion: (a: number) => number;
3810
+ readonly datacontract_getId: (a: number) => number;
3811
+ readonly datacontract_setId: (a: number, b: number) => void;
3812
+ readonly datacontract_getOwnerId: (a: number) => number;
3813
+ readonly datacontract_getVersion: (a: number) => number;
3814
+ readonly datacontract_setVersion: (a: number, b: number) => void;
3815
+ readonly datacontract_incrementVersion: (a: number) => void;
3816
+ readonly datacontract_getJsonSchemaId: (a: number, b: number) => void;
3817
+ readonly datacontract_setJsonMetaSchema: (a: number, b: number, c: number) => void;
3818
+ readonly datacontract_getJsonMetaSchema: (a: number, b: number) => void;
3819
+ readonly datacontract_setDocuments: (a: number, b: number, c: number) => void;
3820
+ readonly datacontract_getDocuments: (a: number, b: number) => void;
3821
+ readonly datacontract_isDocumentDefined: (a: number, b: number, c: number) => number;
3822
+ readonly datacontract_setDocumentSchema: (a: number, b: number, c: number, d: number, e: number) => void;
3823
+ readonly datacontract_getDocumentSchema: (a: number, b: number, c: number, d: number) => void;
3824
+ readonly datacontract_getDocumentSchemaRef: (a: number, b: number, c: number, d: number) => void;
3825
+ readonly datacontract_setDefinitions: (a: number, b: number, c: number) => void;
3826
+ readonly datacontract_getDefinitions: (a: number, b: number) => void;
3827
+ readonly datacontract_setEntropy: (a: number, b: number, c: number, d: number) => void;
3828
+ readonly datacontract_getEntropy: (a: number) => number;
3829
+ readonly datacontract_getBinaryProperties: (a: number, b: number, c: number, d: number) => void;
3830
+ readonly datacontract_getMetadata: (a: number) => number;
3831
+ readonly datacontract_setMetadata: (a: number, b: number) => void;
3832
+ readonly datacontract_toObject: (a: number, b: number) => void;
3833
+ readonly datacontract_toJSON: (a: number, b: number) => void;
3834
+ readonly datacontract_toBuffer: (a: number, b: number) => void;
3835
+ readonly datacontract_hash: (a: number, b: number) => void;
3836
+ readonly datacontract_from: (a: number, b: number) => void;
3837
+ readonly datacontract_fromBuffer: (a: number, b: number, c: number) => void;
3838
+ readonly __wbg_datacontractdefaults_free: (a: number) => void;
3839
+ readonly datacontractdefaults_get_default_schema: (a: number) => void;
3840
+ readonly __wbg_datacontractupdatetransition_free: (a: number) => void;
3841
+ readonly datacontractupdatetransition_new: (a: number, b: number) => void;
3842
+ readonly datacontractupdatetransition_getDataContract: (a: number) => number;
3843
+ readonly datacontractupdatetransition_getProtocolVersion: (a: number) => number;
3844
+ readonly datacontractupdatetransition_getEntropy: (a: number) => number;
3845
+ readonly datacontractupdatetransition_getOwnerId: (a: number) => number;
3846
+ readonly datacontractupdatetransition_getType: (a: number) => number;
3847
+ readonly datacontractupdatetransition_toJSON: (a: number, b: number, c: number) => void;
3848
+ readonly datacontractupdatetransition_toBuffer: (a: number, b: number, c: number) => void;
3849
+ readonly datacontractupdatetransition_getModifiedDataIds: (a: number, b: number) => void;
3850
+ readonly datacontractupdatetransition_isDataContractStateTransition: (a: number) => number;
3851
+ readonly datacontractupdatetransition_isDocumentStateTransition: (a: number) => number;
3852
+ readonly datacontractupdatetransition_isIdentityStateTransition: (a: number) => number;
3853
+ readonly datacontractupdatetransition_setExecutionContext: (a: number, b: number) => void;
3854
+ readonly datacontractupdatetransition_hash: (a: number, b: number, c: number) => void;
3855
+ readonly __wbg_documentvalidator_free: (a: number) => void;
3856
+ readonly documentvalidator_new: (a: number) => number;
2938
3857
  readonly identityassetlocktransactionisnotfounderror_getTransactionId: (a: number) => number;
2939
3858
  readonly identityassetlocktransactionisnotfounderror_getCode: (a: number) => number;
2940
3859
  readonly __wbg_identityalreadyexistserror_free: (a: number) => void;
2941
3860
  readonly identityalreadyexistserror_getIdentityId: (a: number) => number;
2942
3861
  readonly identityalreadyexistserror_getCode: (a: number) => number;
2943
- readonly __wbg_identitypublickey_free: (a: number) => void;
2944
- readonly identitypublickey_new: (a: number, b: number) => void;
2945
- readonly identitypublickey_getId: (a: number) => number;
2946
- readonly identitypublickey_setId: (a: number, b: number) => void;
2947
- readonly identitypublickey_getType: (a: number) => number;
2948
- readonly identitypublickey_setType: (a: number, b: number, c: number) => void;
2949
- readonly identitypublickey_setData: (a: number, b: number, c: number, d: number) => void;
2950
- readonly identitypublickey_getData: (a: number, b: number) => void;
2951
- readonly identitypublickey_setPurpose: (a: number, b: number, c: number) => void;
2952
- readonly identitypublickey_getPurpose: (a: number) => number;
2953
- readonly identitypublickey_setSecurityLevel: (a: number, b: number, c: number) => void;
2954
- readonly identitypublickey_getSecurityLevel: (a: number) => number;
2955
- readonly identitypublickey_setReadOnly: (a: number, b: number) => void;
2956
- readonly identitypublickey_isReadOnly: (a: number) => number;
2957
- readonly identitypublickey_setDisabledAt: (a: number, b: number) => void;
2958
- readonly identitypublickey_getDisabledAt: (a: number, b: number) => void;
2959
- readonly identitypublickey_hash: (a: number, b: number) => void;
2960
- readonly identitypublickey_isMaster: (a: number) => number;
2961
- readonly identitypublickey_toJSON: (a: number, b: number) => void;
2962
- readonly identitypublickey_toObject: (a: number, b: number, c: number) => void;
3862
+ readonly __wbg_identityfacade_free: (a: number) => void;
3863
+ readonly identityfacade_new: (a: number) => number;
3864
+ readonly identityfacade_validate: (a: number, b: number, c: number) => void;
3865
+ readonly __wbg_nonconsensuserrorwasm_free: (a: number) => void;
3866
+ readonly __wbg_identitycreatetransition_free: (a: number) => void;
3867
+ readonly identitycreatetransition_new: (a: number, b: number) => void;
3868
+ readonly identitycreatetransition_setAssetLockProof: (a: number, b: number, c: number) => void;
3869
+ readonly identitycreatetransition_assetLockProof: (a: number) => number;
3870
+ readonly identitycreatetransition_setPublicKeys: (a: number, b: number, c: number, d: number) => void;
3871
+ readonly identitycreatetransition_addPublicKeys: (a: number, b: number, c: number, d: number) => void;
3872
+ readonly identitycreatetransition_getPublicKeys: (a: number, b: number) => void;
3873
+ readonly identitycreatetransition_getType: (a: number) => number;
3874
+ readonly identitycreatetransition_getIdentityId: (a: number) => number;
3875
+ readonly identitycreatetransition_getOwnerId: (a: number) => number;
3876
+ readonly identitycreatetransition_toObject: (a: number, b: number, c: number) => void;
3877
+ readonly identitycreatetransition_toJSON: (a: number, b: number) => void;
3878
+ readonly identitycreatetransition_getModifiedDataIds: (a: number, b: number) => void;
3879
+ readonly identitycreatetransition_isDataContractStateTransition: (a: number) => number;
3880
+ readonly identitycreatetransition_isDocumentStateTransition: (a: number) => number;
3881
+ readonly identitycreatetransition_isIdentityStateTransition: (a: number) => number;
3882
+ readonly identitycreatetransition_setExecutionContext: (a: number, b: number) => void;
3883
+ readonly identitycreatetransition_getExecutionContext: (a: number) => number;
3884
+ readonly identitycreatetransition_signByPrivateKey: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
3885
+ readonly identitycreatetransition_getSignature: (a: number) => number;
3886
+ readonly __wbg_statetransitionexecutioncontext_free: (a: number) => void;
3887
+ readonly statetransitionexecutioncontext_new: () => number;
3888
+ readonly statetransitionexecutioncontext_enableDryRun: (a: number) => void;
3889
+ readonly statetransitionexecutioncontext_disableDryRun: (a: number) => void;
3890
+ readonly identitycreatetransition_publicKeys: (a: number, b: number) => void;
3891
+ readonly identitycreatetransition_getAssetLockProof: (a: number) => number;
3892
+ readonly identitycreatetransition_identityId: (a: number) => number;
2963
3893
  readonly __wbg_identityassetlocktransactionisnotfounderror_free: (a: number) => void;
2964
3894
  readonly rustsecp256k1_v0_6_1_context_create: (a: number) => number;
2965
3895
  readonly rustsecp256k1_v0_6_1_context_destroy: (a: number) => void;
@@ -2968,11 +3898,11 @@ export interface InitOutput {
2968
3898
  readonly __wbindgen_malloc: (a: number) => number;
2969
3899
  readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
2970
3900
  readonly __wbindgen_export_2: WebAssembly.Table;
2971
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he7da8f1ac6678eec: (a: number, b: number, c: number) => void;
3901
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb41434d7f0ac0d06: (a: number, b: number, c: number) => void;
2972
3902
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
2973
3903
  readonly __wbindgen_free: (a: number, b: number) => void;
2974
3904
  readonly __wbindgen_exn_store: (a: number) => void;
2975
- readonly wasm_bindgen__convert__closures__invoke2_mut__hb55bc58977266d22: (a: number, b: number, c: number, d: number) => void;
3905
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h068e39ab2e0e8376: (a: number, b: number, c: number, d: number) => void;
2976
3906
  }
2977
3907
 
2978
3908
  export type SyncInitInput = BufferSource | WebAssembly.Module;