@dashevo/wasm-dpp 0.25.6 → 0.25.9

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 (95) hide show
  1. package/Cargo.toml +3 -2
  2. package/README.md +1 -1
  3. package/dist/wasm/wasm_dpp.d.ts +808 -712
  4. package/dist/wasm/wasm_dpp.js +853 -452
  5. package/dist/wasm/wasm_dpp_bg.js +1 -1
  6. package/lib/bls/bls.js +48 -0
  7. package/lib/test/fixtures/getChainAssetLockProofFixture.js +20 -1
  8. package/lib/test/fixtures/getDataContractFixture.js +4 -6
  9. package/lib/test/fixtures/getDocumentTransitionsFixture.js +31 -1
  10. package/lib/test/fixtures/getInstantAssetLockProofFixture.js +32 -12
  11. package/lib/test/mocks/getBlsAdapterMock.js +1 -1
  12. package/lib/utils/creditsConverter.js +14 -0
  13. package/lib/utils/hash.js +18 -0
  14. package/lib/wasm/wasm_dpp.d.ts +808 -712
  15. package/package.json +3 -5
  16. package/src/dash_platform_protocol.rs +5 -5
  17. package/src/document/errors/invalid_document_error.rs +5 -0
  18. package/src/document/extended_document.rs +15 -0
  19. package/src/document/state_transition/document_batch_transition/document_transition/document_create_transition.rs +219 -214
  20. package/src/document/state_transition/document_batch_transition/document_transition/mod.rs +1 -1
  21. package/src/errors/consensus/basic/identity/identity_insufficient_balance_error.rs +4 -2
  22. package/src/errors/consensus/basic/json_schema_error.rs +35 -5
  23. package/src/identity/identity_facade.rs +7 -5
  24. package/src/identity/state_transition/asset_lock_proof/chain/chain_asset_lock_proof.rs +32 -17
  25. package/src/identity/state_transition/asset_lock_proof/instant/instant_asset_lock_proof.rs +22 -13
  26. package/src/identity/state_transition/asset_lock_proof/mod.rs +12 -11
  27. package/src/identity/state_transition/identity_create_transition/identity_create_transition.rs +1 -0
  28. package/src/identity/state_transition/identity_create_transition/to_object.rs +1 -0
  29. package/src/identity/state_transition/identity_topup_transition/identity_topup_transition.rs +1 -0
  30. package/src/identity/state_transition/identity_topup_transition/to_object.rs +1 -0
  31. package/src/lib.rs +1 -1
  32. package/src/validation/mod.rs +2 -2
  33. package/src/validation/validation_result.rs +16 -15
  34. package/test/integration/document/DocumentFacade.spec.js +11 -27
  35. package/test/integration/document/stateTransition/DocumentsBatchTransition/DocumentBatchTransition.spec.js +9 -19
  36. package/test/integration/document/stateTransition/DocumentsBatchTransition/validation/basic/validateDocumentsBatchTransitionBasicFactory.spec.js +2 -2
  37. package/test/integration/document/validation/validateDocumentFactory.spec.js +2 -2
  38. package/test/integration/identity/IdentityFacade.spec.js +1 -2
  39. package/test/integration/identity/stateTransition/assetLockProof/instant/validateInstantAssetLockProofStructureFactory.spec.js +2 -2
  40. package/test/integration/identity/stateTransition/validatePublicKeySignaturesFactory.spec.js +2 -2
  41. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/DataContractUpdateTransition.spec.js +6 -8
  42. package/test/unit/document/Document.spec.js +30 -52
  43. package/test/unit/document/DocumentFactory.spec.js +2 -2
  44. package/test/unit/document/errors/InvalidDocumentError.spec.js +9 -9
  45. package/test/unit/document/stateTransition/DocumetsBatchTransition/DocumentsBatchTransition.spec.js +158 -155
  46. package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/basic/findDuplicatesByIndices.spec.js +132 -134
  47. package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/basic/validatePartialCompoundIndices.spec.js +3 -3
  48. package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/validateDocumentsBatchTransitionStateFactory.spec.js +568 -591
  49. package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/validateDocumentsUniquenessByIndicesFactory.spec.js +5 -13
  50. package/test/unit/identity/Identity.spec.js +2 -2
  51. package/test/unit/identity/stateTransition/assetLockProof/ChainAssetLockProof.spec.js +9 -28
  52. package/test/unit/identity/stateTransition/assetLockProof/InstantAssetLockProof.spec.js +19 -27
  53. package/lib/test/fixtures/getDashPayContractFixture.js +0 -1
  54. package/lib/test/fixtures/getDashPayDocumentFixture.js +0 -1
  55. package/lib/test/fixtures/getDpnsContractFixture.js +0 -1
  56. package/lib/test/fixtures/getDpnsDocumentFixture.js +0 -1
  57. package/lib/test/fixtures/getFeatureFlagsContractFixture.js +0 -1
  58. package/lib/test/fixtures/getFeatureFlagsDocumentsFixture.js +0 -1
  59. package/lib/test/fixtures/getIdentityTopUpTransitionFixtureJs.js +0 -1
  60. package/lib/test/fixtures/getMasternodeRewardShareDocumentsFixture.js +0 -1
  61. package/lib/test/fixtures/getMasternodeRewardSharesContractFixture.js +0 -1
  62. package/lib/test/fixtures/getPreorderDocumentFixture.js +0 -1
  63. package/lib/test/fixtures/getRawTransactionFixture.js +0 -1
  64. package/lib/test/fixtures/js/generateRandomIdentifier.js +0 -1
  65. package/lib/test/fixtures/js/getChainAssetLockProofFixture.js +0 -1
  66. package/lib/test/fixtures/js/getDataContractFixture.js +0 -1
  67. package/lib/test/fixtures/js/getDocumentTransitionsFixture.js +0 -1
  68. package/lib/test/fixtures/js/getDocumentsFixture.js +0 -1
  69. package/lib/test/fixtures/js/getInstantAssetLockProofFixture.js +0 -1
  70. package/test/integration/DashPlatformProtocol.spec.js +0 -53
  71. package/test/integration/document/stateTransition/DocumentsBatchTransition/validation/state/executeDataTriggersFactory.spec.js +0 -195
  72. package/test/integration/stateTransition/AbstractStateTransitionIdentitySigned.spec.js +0 -500
  73. package/test/integration/stateTransition/calculateStateTransitionFeeFromOperationsFactory.spec.js +0 -53
  74. package/test/unit/dataContract/getBinaryPropertiesFromSchema.spec.js +0 -103
  75. package/test/unit/dataContract/getPropertyDefinitionByPath.spec.js +0 -84
  76. package/test/unit/dataContract/stateTransition/DataContractCreateTransition/applyDataContractCreateTransitionFactory.spec.js +0 -45
  77. package/test/unit/dataContract/stateTransition/DataContractUpdateTransition/applyDataContractUpdateTransitionFactory.spec.js +0 -49
  78. package/test/unit/dataTrigger/DataTrigger.spec.js +0 -132
  79. package/test/unit/dataTrigger/DataTriggerExecutionContext.spec.js +0 -29
  80. package/test/unit/dataTrigger/dashpayDataTriggers/createContactRequestDataTrigger.spec.js +0 -107
  81. package/test/unit/dataTrigger/dpnsTriggers/createDomainDataTrigger.spec.js +0 -382
  82. package/test/unit/dataTrigger/featureFlagDataTriggers/createFeatureFlagDataTrigger.spec.js +0 -99
  83. package/test/unit/dataTrigger/getDataTriggersFactory.spec.js +0 -113
  84. package/test/unit/dataTrigger/rejectDataTrigger.spec.js +0 -51
  85. package/test/unit/dataTrigger/rewardShareDataTriggers/createMasternodeRewardSharesDataTrigger.spec.js +0 -202
  86. package/test/unit/document/stateTransition/DocumetsBatchTransition/applyDocumentsBatchTransitionFactory.spec.js +0 -256
  87. package/test/unit/document/stateTransition/DocumetsBatchTransition/validation/state/fetchDocumentsFactory.spec.js +0 -94
  88. package/test/unit/errors/consensus/codes.spec.js +0 -102
  89. package/test/unit/identity/creditsConverter.spec.js +0 -34
  90. package/test/unit/identity/stateTransition/IdentityCreateTransition/applyIdentityCreateTransitionFactory.spec.js +0 -83
  91. package/test/unit/identity/stateTransition/IdentityTopUpTransition/applyIdentityTopUpTransitionFactory.spec.js +0 -138
  92. package/test/unit/identity/stateTransition/IdentityUpdateTransition/applyIdentityUpdateTransitionFactory.spec.js +0 -100
  93. package/test/unit/identity/stateTransition/assetLockProof/createAssetLockProofInstance.spec.js +0 -36
  94. package/test/unit/identity/stateTransition/assetLockProof/fetchAssetLockPublicKeyHashFactory.spec.js +0 -63
  95. package/test/unit/identity/validation/validateRequiredPurposeAndSecurityLevelFactory.spec.js +0 -47
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.InvalidIdentityPublicKeyDataError = exports.InvalidIdentityKeySignatureError = exports.InvalidIdentityError = exports.InvalidIdentityCreditWithdrawalTransitionOutputScriptError = exports.InvalidIdentityCreditWithdrawalTransitionCoreFeeError = exports.InvalidIdentityAssetLockTransactionOutputError = exports.InvalidIdentityAssetLockTransactionError = exports.InvalidIdentityAssetLockProofChainLockValidationErrorWasm = exports.InvalidIdentifierError = exports.InvalidDocumentTypeInDataContractError = exports.InvalidDocumentTypeError = exports.InvalidDocumentTransitionIdError = exports.InvalidDocumentTransitionActionError = exports.InvalidDocumentRevisionError = exports.InvalidDocumentError = exports.InvalidDocumentActionError = exports.InvalidDataContractVersionError = exports.InvalidDataContractIdError = exports.InvalidDataContractError = exports.InvalidCompoundIndexError = exports.InvalidAssetLockTransactionOutputReturnSizeError = exports.InvalidAssetLockProofTransactionHeightError = exports.InvalidAssetLockProofCoreChainHeightError = exports.InvalidActiontError = exports.InvalidActionNameError = exports.InvalidActionError = exports.InstantAssetLockProof = exports.InconsistentCompoundIndexDataError = exports.IncompatibleRe2PatternError = exports.IncompatibleProtocolVersionError = exports.IncompatibleDataContractSchemaError = exports.IdentityUpdateTransition = exports.IdentityTopUpTransition = exports.IdentityPublicKeyWithWitness = exports.IdentityPublicKeyIsReadOnlyError = exports.IdentityPublicKeyIsDisabledError = exports.IdentityPublicKeyDisabledAtWindowViolationError = exports.IdentityPublicKey = exports.IdentityNotFoundError = exports.IdentityInsufficientBalanceError = exports.IdentityFactory = exports.IdentityFacade = exports.IdentityCreditTransferTransition = exports.IdentityCreateTransition = exports.IdentityAssetLockTransactionOutputNotFoundError = exports.IdentityAssetLockTransactionOutPointAlreadyExistsError = exports.IdentityAssetLockTransactionIsNotFoundError = exports.IdentityAssetLockProofLockedTransactionMismatchError = exports.IdentityAlreadyExistsError = exports.Identity = exports.ExtendedDocument = exports.DuplicatedIdentityPublicKeyStateError = exports.DuplicatedIdentityPublicKeyIdStateError = exports.DuplicatedIdentityPublicKeyIdError = exports.DuplicatedIdentityPublicKeyError = exports.DuplicateUniqueIndexError = exports.DuplicateIndexNameError = exports.DuplicateIndexError = exports.DuplicateDocumentTransitionsWithIndicesError = exports.DuplicateDocumentTransitionsWithIdsError = exports.DocumentsBatchTransition = exports.DocumentTransitions = exports.DocumentTransition = exports.DocumentTimestampsMismatchError = exports.DocumentTimestampsAreEqualError = exports.DocumentTimestampWindowViolationError = exports.DocumentOwnerIdMismatchError = exports.DocumentNotProvidedError = exports.DocumentNotFoundError = exports.DocumentNoRevisionError = exports.DocumentFactory = exports.DocumentFacade = exports.DocumentAlreadyPresentError = exports.DocumentAlreadyExistsError = exports.Document = exports.DataContractUpdateTransition = exports.DataContractUniqueIndicesChangedError = exports.DataContractNotPresentNotConsensusError = exports.DataContractNotPresentError = exports.DataContractMaxDepthExceedError = exports.DataContractMaxDepthError = exports.DataContractIsReadonlyError = exports.DataContractInvalidIndexDefinitionUpdateError = exports.DataContractImmutablePropertiesUpdateError = exports.DataContractHaveNewUniqueIndexError = exports.DataContractGenericError = exports.DataContractFactory = exports.DataContractFacade = exports.DataContractCreateTransition = exports.DataContractConfigUpdateError = exports.DataContractAlreadyPresentError = exports.DataContract = exports.DashPlatformProtocol = exports.ChainAssetLockProof = exports.BasicECDSAError = exports.BasicBLSError = exports.BalanceIsNotEnoughError = exports.AssetLockTransactionIsNotFoundError = exports.AssetLockProof = exports.AssetLockOutputNotFoundError = void 0;
7
- exports.WrongPublicKeyPurposeError = exports.ValueError = exports.UnsupportedVersionError = exports.UnsupportedProtocolVersionError = exports.UnknownAssetLockProofTypeError = exports.UniqueIndicesLimitReachedError = exports.UndefinedIndexPropertyError = exports.TryingToReplaceImmutableDocumentError = exports.TryingToDeleteImmutableDocumentError = exports.SystemPropertyIndexAlreadyPresentError = exports.StateTransitionTypes = exports.StateTransitionMaxSizeExceededError = exports.StateTransitionFactory = exports.SignatureShouldNotBePresentError = exports.SerializedObjectParsingError = exports.RevisionAbsentError = exports.PublicKeySecurityLevelNotMetError = exports.PublicKeyIsDisabledError = exports.ProtocolVersionParsingError = exports.PlatformValueError = exports.NotImplementedIdentityCreditWithdrawalTransitionPoolingError = exports.NonConsensusErrorWasm = exports.NoDocumentsSuppliedError = exports.MissingStateTransitionTypeError = exports.MissingPublicKeyError = exports.MissingMasterPublicKeyError = exports.MissingIdentityPublicKeyIdsError = exports.MissingDocumentTypeError = exports.MissingDocumentTransitionTypeError = exports.MissingDocumentTransitionActionError = exports.MissingDataContractIdError = exports.MismatchOwnerIdsError = exports.Metadata = exports.MaxIdentityPublicKeyLimitReachedError = exports.KeyType = exports.KeySecurityLevel = exports.KeyPurpose = exports.JsonSchemaError = exports.JsonSchemaCompilationError = exports.InvalidStateTransitionTypeError = exports.InvalidStateTransitionSignatureError = exports.InvalidStateTransitionError = exports.InvalidSignaturePublicKeySecurityLevelError = exports.InvalidJsonSchemaRefError = exports.InvalidInstantAssetLockProofSignatureError = exports.InvalidInstantAssetLockProofError = exports.InvalidInitialRevisionError = exports.InvalidIndexedPropertyConstraintError = exports.InvalidIndexPropertyTypeError = exports.InvalidIdentityRevisionError = exports.InvalidIdentityPublicKeyTypeError = exports.InvalidIdentityPublicKeySecurityLevelError = exports.InvalidIdentityPublicKeyIdError = exports.InvalidIdentityPublicKeyDataError = exports.InvalidIdentityKeySignatureError = exports.InvalidIdentityError = exports.InvalidIdentityCreditWithdrawalTransitionOutputScriptError = exports.InvalidIdentityCreditWithdrawalTransitionCoreFeeError = exports.InvalidIdentityAssetLockTransactionOutputError = exports.InvalidIdentityAssetLockTransactionError = exports.InvalidIdentityAssetLockProofChainLockValidationErrorWasm = exports.InvalidIdentifierError = exports.InvalidDocumentTypeInDataContractError = exports.InvalidDocumentTypeError = exports.InvalidDocumentTransitionIdError = exports.InvalidDocumentTransitionActionError = exports.InvalidDocumentRevisionError = exports.InvalidDocumentError = exports.InvalidDocumentActionError = exports.InvalidDataContractVersionError = exports.InvalidDataContractIdError = exports.InvalidDataContractError = exports.InvalidCompoundIndexError = exports.InvalidAssetLockTransactionOutputReturnSizeError = exports.InvalidAssetLockProofTransactionHeightError = exports.InvalidAssetLockProofCoreChainHeightError = exports.InvalidActiontError = exports.InvalidActionNameError = exports.InvalidActionError = exports.InstantAssetLockProof = exports.InconsistentCompoundIndexDataError = exports.IncompatibleRe2PatternError = exports.IncompatibleProtocolVersionError = exports.IncompatibleDataContractSchemaError = exports.IdentityUpdateTransition = exports.IdentityTopUpTransition = exports.IdentityPublicKeyWithWitness = exports.IdentityPublicKeyIsReadOnlyError = exports.IdentityPublicKeyIsDisabledError = exports.IdentityPublicKeyDisabledAtWindowViolationError = exports.IdentityPublicKey = exports.IdentityNotFoundError = exports.IdentityInsufficientBalanceError = exports.IdentityFactory = exports.IdentityFacade = exports.IdentityCreditTransferTransition = exports.IdentityCreateTransition = exports.IdentityAssetLockTransactionOutputNotFoundError = exports.IdentityAssetLockTransactionOutPointAlreadyExistsError = exports.IdentityAssetLockTransactionIsNotFoundError = exports.IdentityAssetLockProofLockedTransactionMismatchError = exports.IdentityAlreadyExistsError = exports.Identity = exports.ExtendedDocument = exports.DuplicatedIdentityPublicKeyStateError = exports.DuplicatedIdentityPublicKeyIdStateError = exports.DuplicatedIdentityPublicKeyIdError = exports.DuplicatedIdentityPublicKeyError = exports.DuplicateUniqueIndexError = exports.DuplicateIndexNameError = exports.DuplicateIndexError = exports.DuplicateDocumentTransitionsWithIndicesError = exports.DuplicateDocumentTransitionsWithIdsError = exports.DocumentsBatchTransition = exports.DocumentTransitions = exports.DocumentTransition = exports.DocumentTimestampsMismatchError = exports.DocumentTimestampsAreEqualError = exports.DocumentTimestampWindowViolationError = exports.DocumentOwnerIdMismatchError = exports.DocumentNotProvidedError = exports.DocumentNotFoundError = exports.DocumentNoRevisionError = exports.DocumentFactory = exports.DocumentFacade = exports.DocumentAlreadyPresentError = exports.DocumentAlreadyExistsError = exports.Document = exports.DataContractUpdateTransition = exports.DataContractUniqueIndicesChangedError = exports.DataContractNotPresentNotConsensusError = exports.DataContractNotPresentError = exports.DataContractMaxDepthExceedError = exports.DataContractMaxDepthError = exports.DataContractIsReadonlyError = exports.DataContractInvalidIndexDefinitionUpdateError = exports.DataContractImmutablePropertiesUpdateError = exports.DataContractHaveNewUniqueIndexError = exports.DataContractGenericError = exports.DataContractFactory = exports.DataContractFacade = exports.DataContractCreateTransition = exports.DataContractConfigUpdateError = exports.DataContractAlreadyPresentError = exports.DataContract = exports.DashPlatformProtocol = exports.ChainAssetLockProof = exports.BasicECDSAError = exports.BasicBLSError = exports.BalanceIsNotEnoughError = exports.AssetLockTransactionIsNotFoundError = exports.AssetLockProof = exports.AssetLockOutputNotFoundError = void 0;
6
+ exports.InvalidIdentityKeySignatureError = exports.InvalidIdentityError = exports.InvalidIdentityCreditWithdrawalTransitionOutputScriptError = exports.InvalidIdentityCreditWithdrawalTransitionCoreFeeError = exports.InvalidIdentityAssetLockTransactionOutputError = exports.InvalidIdentityAssetLockTransactionError = exports.InvalidIdentityAssetLockProofChainLockValidationErrorWasm = exports.InvalidIdentifierError = exports.InvalidDocumentTypeInDataContractError = exports.InvalidDocumentTypeError = exports.InvalidDocumentTransitionIdError = exports.InvalidDocumentTransitionActionError = exports.InvalidDocumentRevisionError = exports.InvalidDocumentError = exports.InvalidDocumentActionError = exports.InvalidDataContractVersionError = exports.InvalidDataContractIdError = exports.InvalidDataContractError = exports.InvalidCompoundIndexError = exports.InvalidAssetLockTransactionOutputReturnSizeError = exports.InvalidAssetLockProofTransactionHeightError = exports.InvalidAssetLockProofCoreChainHeightError = exports.InvalidActiontError = exports.InvalidActionNameError = exports.InvalidActionError = exports.InstantAssetLockProof = exports.InconsistentCompoundIndexDataError = exports.IncompatibleRe2PatternError = exports.IncompatibleProtocolVersionError = exports.IncompatibleDataContractSchemaError = exports.IdentityUpdateTransition = exports.IdentityTopUpTransition = exports.IdentityPublicKeyWithWitness = exports.IdentityPublicKeyIsReadOnlyError = exports.IdentityPublicKeyIsDisabledError = exports.IdentityPublicKeyDisabledAtWindowViolationError = exports.IdentityPublicKey = exports.IdentityNotFoundError = exports.IdentityInsufficientBalanceError = exports.IdentityFactory = exports.IdentityFacade = exports.IdentityCreditTransferTransition = exports.IdentityCreateTransition = exports.IdentityAssetLockTransactionOutputNotFoundError = exports.IdentityAssetLockTransactionOutPointAlreadyExistsError = exports.IdentityAssetLockTransactionIsNotFoundError = exports.IdentityAssetLockProofLockedTransactionMismatchError = exports.IdentityAlreadyExistsError = exports.Identity = exports.ExtendedDocument = exports.DuplicatedIdentityPublicKeyStateError = exports.DuplicatedIdentityPublicKeyIdStateError = exports.DuplicatedIdentityPublicKeyIdError = exports.DuplicatedIdentityPublicKeyError = exports.DuplicateUniqueIndexError = exports.DuplicateIndexNameError = exports.DuplicateIndexError = exports.DuplicateDocumentTransitionsWithIndicesError = exports.DuplicateDocumentTransitionsWithIdsError = exports.DocumentsBatchTransition = exports.DocumentTransitions = exports.DocumentTransition = exports.DocumentTimestampsMismatchError = exports.DocumentTimestampsAreEqualError = exports.DocumentTimestampWindowViolationError = exports.DocumentOwnerIdMismatchError = exports.DocumentNotProvidedError = exports.DocumentNotFoundError = exports.DocumentNoRevisionError = exports.DocumentFactory = exports.DocumentFacade = exports.DocumentCreateTransition = exports.DocumentAlreadyPresentError = exports.DocumentAlreadyExistsError = exports.Document = exports.DataContractUpdateTransition = exports.DataContractUniqueIndicesChangedError = exports.DataContractNotPresentNotConsensusError = exports.DataContractNotPresentError = exports.DataContractMaxDepthExceedError = exports.DataContractMaxDepthError = exports.DataContractIsReadonlyError = exports.DataContractInvalidIndexDefinitionUpdateError = exports.DataContractImmutablePropertiesUpdateError = exports.DataContractHaveNewUniqueIndexError = exports.DataContractGenericError = exports.DataContractFactory = exports.DataContractFacade = exports.DataContractCreateTransition = exports.DataContractConfigUpdateError = exports.DataContractAlreadyPresentError = exports.DataContract = exports.DashPlatformProtocol = exports.ChainAssetLockProof = exports.BasicECDSAError = exports.BasicBLSError = exports.BalanceIsNotEnoughError = exports.AssetLockTransactionIsNotFoundError = exports.AssetLockProof = exports.AssetLockOutputNotFoundError = void 0;
7
+ exports.WrongPublicKeyPurposeError = exports.ValueError = exports.ValidationResult = exports.UnsupportedVersionError = exports.UnsupportedProtocolVersionError = exports.UnknownAssetLockProofTypeError = exports.UniqueIndicesLimitReachedError = exports.UndefinedIndexPropertyError = exports.TryingToReplaceImmutableDocumentError = exports.TryingToDeleteImmutableDocumentError = exports.SystemPropertyIndexAlreadyPresentError = exports.StateTransitionTypes = exports.StateTransitionMaxSizeExceededError = exports.StateTransitionFactory = exports.SignatureShouldNotBePresentError = exports.SerializedObjectParsingError = exports.RevisionAbsentError = exports.PublicKeySecurityLevelNotMetError = exports.PublicKeyIsDisabledError = exports.ProtocolVersionParsingError = exports.PlatformValueError = exports.NotImplementedIdentityCreditWithdrawalTransitionPoolingError = exports.NonConsensusErrorWasm = exports.NoDocumentsSuppliedError = exports.MissingStateTransitionTypeError = exports.MissingPublicKeyError = exports.MissingMasterPublicKeyError = exports.MissingIdentityPublicKeyIdsError = exports.MissingDocumentTypeError = exports.MissingDocumentTransitionTypeError = exports.MissingDocumentTransitionActionError = exports.MissingDataContractIdError = exports.MismatchOwnerIdsError = exports.Metadata = exports.MaxIdentityPublicKeyLimitReachedError = exports.KeyType = exports.KeySecurityLevel = exports.KeyPurpose = exports.JsonSchemaError = exports.JsonSchemaCompilationError = exports.InvalidStateTransitionTypeError = exports.InvalidStateTransitionSignatureError = exports.InvalidStateTransitionError = exports.InvalidSignaturePublicKeySecurityLevelError = exports.InvalidJsonSchemaRefError = exports.InvalidInstantAssetLockProofSignatureError = exports.InvalidInstantAssetLockProofError = exports.InvalidInitialRevisionError = exports.InvalidIndexedPropertyConstraintError = exports.InvalidIndexPropertyTypeError = exports.InvalidIdentityRevisionError = exports.InvalidIdentityPublicKeyTypeError = exports.InvalidIdentityPublicKeySecurityLevelError = exports.InvalidIdentityPublicKeyIdError = exports.InvalidIdentityPublicKeyDataError = exports.InvalidIdentityKeySignatureError = exports.InvalidIdentityError = exports.InvalidIdentityCreditWithdrawalTransitionOutputScriptError = exports.InvalidIdentityCreditWithdrawalTransitionCoreFeeError = exports.InvalidIdentityAssetLockTransactionOutputError = exports.InvalidIdentityAssetLockTransactionError = exports.InvalidIdentityAssetLockProofChainLockValidationErrorWasm = exports.InvalidIdentifierError = exports.InvalidDocumentTypeInDataContractError = exports.InvalidDocumentTypeError = exports.InvalidDocumentTransitionIdError = exports.InvalidDocumentTransitionActionError = exports.InvalidDocumentRevisionError = exports.InvalidDocumentError = exports.InvalidDocumentActionError = exports.InvalidDataContractVersionError = exports.InvalidDataContractIdError = exports.InvalidDataContractError = exports.InvalidCompoundIndexError = exports.InvalidAssetLockTransactionOutputReturnSizeError = exports.InvalidAssetLockProofTransactionHeightError = exports.InvalidAssetLockProofCoreChainHeightError = exports.InvalidActiontError = exports.InvalidActionNameError = exports.InvalidActionError = exports.InstantAssetLockProof = exports.InconsistentCompoundIndexDataError = exports.IncompatibleRe2PatternError = exports.IncompatibleProtocolVersionError = exports.IncompatibleDataContractSchemaError = exports.IdentityUpdateTransition = exports.IdentityTopUpTransition = exports.IdentityPublicKeyWithWitness = exports.IdentityPublicKeyIsReadOnlyError = exports.IdentityPublicKeyIsDisabledError = exports.IdentityPublicKeyDisabledAtWindowViolationError = exports.IdentityPublicKey = exports.IdentityNotFoundError = exports.IdentityInsufficientBalanceError = exports.IdentityFactory = exports.IdentityFacade = exports.IdentityCreditTransferTransition = exports.IdentityCreateTransition = exports.IdentityAssetLockTransactionOutputNotFoundError = exports.IdentityAssetLockTransactionOutPointAlreadyExistsError = exports.IdentityAssetLockTransactionIsNotFoundError = exports.IdentityAssetLockProofLockedTransactionMismatchError = exports.IdentityAlreadyExistsError = exports.Identity = exports.ExtendedDocument = exports.DuplicatedIdentityPublicKeyStateError = exports.DuplicatedIdentityPublicKeyIdStateError = exports.DuplicatedIdentityPublicKeyIdError = exports.DuplicatedIdentityPublicKeyError = exports.DuplicateUniqueIndexError = exports.DuplicateIndexNameError = exports.DuplicateIndexError = exports.DuplicateDocumentTransitionsWithIndicesError = exports.DuplicateDocumentTransitionsWithIdsError = exports.DocumentsBatchTransition = exports.DocumentTransitions = exports.DocumentTransition = exports.DocumentTimestampsMismatchError = exports.DocumentTimestampsAreEqualError = exports.DocumentTimestampWindowViolationError = exports.DocumentOwnerIdMismatchError = exports.DocumentNotProvidedError = exports.DocumentNotFoundError = exports.DocumentNoRevisionError = exports.DocumentFactory = exports.DocumentFacade = exports.DocumentCreateTransition = exports.DocumentAlreadyPresentError = exports.DocumentAlreadyExistsError = exports.Document = exports.DataContractUpdateTransition = exports.DataContractUniqueIndicesChangedError = exports.DataContractNotPresentNotConsensusError = exports.DataContractNotPresentError = exports.DataContractMaxDepthExceedError = exports.DataContractMaxDepthError = exports.DataContractIsReadonlyError = exports.DataContractInvalidIndexDefinitionUpdateError = exports.DataContractImmutablePropertiesUpdateError = exports.DataContractHaveNewUniqueIndexError = exports.DataContractGenericError = exports.DataContractFactory = exports.DataContractFacade = exports.DataContractCreateTransition = exports.DataContractConfigUpdateError = exports.DataContractAlreadyPresentError = exports.DataContract = exports.DashPlatformProtocol = exports.ChainAssetLockProof = exports.BasicECDSAError = exports.BasicBLSError = exports.BalanceIsNotEnoughError = exports.AssetLockTransactionIsNotFoundError = exports.AssetLockProof = exports.AssetLockOutputNotFoundError = void 0;
8
8
  exports.createAssetLockProofInstance = createAssetLockProofInstance;
9
9
  exports.default = void 0;
10
10
  exports.deserializeConsensusError = deserializeConsensusError;
@@ -40,14 +40,6 @@ function takeObject(idx) {
40
40
  return ret;
41
41
  }
42
42
 
43
- function addHeapObject(obj) {
44
- if (heap_next === heap.length) heap.push(heap.length + 1);
45
- const idx = heap_next;
46
- heap_next = heap[idx];
47
- heap[idx] = obj;
48
- return idx;
49
- }
50
-
51
43
  const cachedTextDecoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', {
52
44
  ignoreBOM: true,
53
45
  fatal: true
@@ -77,28 +69,12 @@ function getStringFromWasm0(ptr, len) {
77
69
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
78
70
  }
79
71
 
80
- function isLikeNone(x) {
81
- return x === undefined || x === null;
82
- }
83
-
84
- let cachedFloat64Memory0 = null;
85
-
86
- function getFloat64Memory0() {
87
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
88
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
89
- }
90
-
91
- return cachedFloat64Memory0;
92
- }
93
-
94
- let cachedInt32Memory0 = null;
95
-
96
- function getInt32Memory0() {
97
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
98
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
99
- }
100
-
101
- return cachedInt32Memory0;
72
+ function addHeapObject(obj) {
73
+ if (heap_next === heap.length) heap.push(heap.length + 1);
74
+ const idx = heap_next;
75
+ heap_next = heap[idx];
76
+ heap[idx] = obj;
77
+ return idx;
102
78
  }
103
79
 
104
80
  let WASM_VECTOR_LEN = 0;
@@ -153,6 +129,30 @@ function passStringToWasm0(arg, malloc, realloc) {
153
129
  return ptr;
154
130
  }
155
131
 
132
+ function isLikeNone(x) {
133
+ return x === undefined || x === null;
134
+ }
135
+
136
+ let cachedInt32Memory0 = null;
137
+
138
+ function getInt32Memory0() {
139
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
140
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
141
+ }
142
+
143
+ return cachedInt32Memory0;
144
+ }
145
+
146
+ let cachedFloat64Memory0 = null;
147
+
148
+ function getFloat64Memory0() {
149
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
150
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
151
+ }
152
+
153
+ return cachedFloat64Memory0;
154
+ }
155
+
156
156
  let cachedBigInt64Memory0 = null;
157
157
 
158
158
  function getBigInt64Memory0() {
@@ -282,6 +282,22 @@ function __wbg_adapter_56(arg0, arg1, arg2) {
282
282
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha876a6bd4dea14a7(arg0, arg1, addHeapObject(arg2));
283
283
  }
284
284
 
285
+ function _assertClass(instance, klass) {
286
+ if (!(instance instanceof klass)) {
287
+ throw new Error("expected instance of ".concat(klass.name));
288
+ }
289
+
290
+ return instance.ptr;
291
+ }
292
+
293
+ let stack_pointer = 128;
294
+
295
+ function addBorrowedObject(obj) {
296
+ if (stack_pointer == 1) throw new Error('out of js stack');
297
+ heap[--stack_pointer] = obj;
298
+ return stack_pointer;
299
+ }
300
+
285
301
  function passArray8ToWasm0(arg, malloc) {
286
302
  const ptr = malloc(arg.length * 1) >>> 0;
287
303
  getUint8Memory0().set(arg, ptr / 1);
@@ -304,6 +320,18 @@ function getUint32Memory0() {
304
320
  return cachedUint32Memory0;
305
321
  }
306
322
 
323
+ function passArrayJsValueToWasm0(array, malloc) {
324
+ const ptr = malloc(array.length * 4) >>> 0;
325
+ const mem = getUint32Memory0();
326
+
327
+ for (let i = 0; i < array.length; i++) {
328
+ mem[ptr / 4 + i] = addHeapObject(array[i]);
329
+ }
330
+
331
+ WASM_VECTOR_LEN = array.length;
332
+ return ptr;
333
+ }
334
+
307
335
  function getArrayJsValueFromWasm0(ptr, len) {
308
336
  ptr = ptr >>> 0;
309
337
  const mem = getUint32Memory0();
@@ -317,22 +345,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
317
345
  return result;
318
346
  }
319
347
 
320
- function _assertClass(instance, klass) {
321
- if (!(instance instanceof klass)) {
322
- throw new Error("expected instance of ".concat(klass.name));
323
- }
324
-
325
- return instance.ptr;
326
- }
327
-
328
- let stack_pointer = 128;
329
-
330
- function addBorrowedObject(obj) {
331
- if (stack_pointer == 1) throw new Error('out of js stack');
332
- heap[--stack_pointer] = obj;
333
- return stack_pointer;
334
- }
335
-
336
348
  function handleError(f, args) {
337
349
  try {
338
350
  return f.apply(this, args);
@@ -340,25 +352,6 @@ function handleError(f, args) {
340
352
  wasm.__wbindgen_exn_store(addHeapObject(e));
341
353
  }
342
354
  }
343
-
344
- function passArrayJsValueToWasm0(array, malloc) {
345
- const ptr = malloc(array.length * 4) >>> 0;
346
- const mem = getUint32Memory0();
347
-
348
- for (let i = 0; i < array.length; i++) {
349
- mem[ptr / 4 + i] = addHeapObject(array[i]);
350
- }
351
-
352
- WASM_VECTOR_LEN = array.length;
353
- return ptr;
354
- }
355
-
356
- function passArray32ToWasm0(arg, malloc) {
357
- const ptr = malloc(arg.length * 4) >>> 0;
358
- getUint32Memory0().set(arg, ptr / 4);
359
- WASM_VECTOR_LEN = arg.length;
360
- return ptr;
361
- }
362
355
  /**
363
356
  * @returns {number}
364
357
  */
@@ -453,7 +446,14 @@ function createAssetLockProofInstance(raw_parameters) {
453
446
  }
454
447
  }
455
448
 
456
- function __wbg_adapter_1188(arg0, arg1, arg2, arg3) {
449
+ function passArray32ToWasm0(arg, malloc) {
450
+ const ptr = malloc(arg.length * 4) >>> 0;
451
+ getUint32Memory0().set(arg, ptr / 4);
452
+ WASM_VECTOR_LEN = arg.length;
453
+ return ptr;
454
+ }
455
+
456
+ function __wbg_adapter_1206(arg0, arg1, arg2, arg3) {
457
457
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h7968fa8c9251ee9b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
458
458
  }
459
459
  /**
@@ -501,22 +501,6 @@ const KeyPurpose = Object.freeze({
501
501
  */
502
502
 
503
503
  exports.KeyPurpose = KeyPurpose;
504
- const KeyType = Object.freeze({
505
- ECDSA_SECP256K1: 0,
506
- "0": "ECDSA_SECP256K1",
507
- BLS12_381: 1,
508
- "1": "BLS12_381",
509
- ECDSA_HASH160: 2,
510
- "2": "ECDSA_HASH160",
511
- BIP13_SCRIPT_HASH: 3,
512
- "3": "BIP13_SCRIPT_HASH",
513
- EDDSA_25519_HASH160: 4,
514
- "4": "EDDSA_25519_HASH160"
515
- });
516
- /**
517
- */
518
-
519
- exports.KeyType = KeyType;
520
504
  const KeySecurityLevel = Object.freeze({
521
505
  MASTER: 0,
522
506
  "0": "MASTER",
@@ -553,6 +537,22 @@ const StateTransitionTypes = Object.freeze({
553
537
  */
554
538
 
555
539
  exports.StateTransitionTypes = StateTransitionTypes;
540
+ const KeyType = Object.freeze({
541
+ ECDSA_SECP256K1: 0,
542
+ "0": "ECDSA_SECP256K1",
543
+ BLS12_381: 1,
544
+ "1": "BLS12_381",
545
+ ECDSA_HASH160: 2,
546
+ "2": "ECDSA_HASH160",
547
+ BIP13_SCRIPT_HASH: 3,
548
+ "3": "BIP13_SCRIPT_HASH",
549
+ EDDSA_25519_HASH160: 4,
550
+ "4": "EDDSA_25519_HASH160"
551
+ });
552
+ /**
553
+ */
554
+
555
+ exports.KeyType = KeyType;
556
556
 
557
557
  class AssetLockOutputNotFoundError {
558
558
  __destroy_into_raw() {
@@ -1004,8 +1004,22 @@ class ChainAssetLockProof {
1004
1004
 
1005
1005
 
1006
1006
  getOutPoint() {
1007
- const ret = wasm.chainassetlockproof_getOutPoint(this.__wbg_ptr);
1008
- return takeObject(ret);
1007
+ try {
1008
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1009
+
1010
+ wasm.chainassetlockproof_getOutPoint(retptr, this.__wbg_ptr);
1011
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1012
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1013
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
1014
+
1015
+ if (r2) {
1016
+ throw takeObject(r1);
1017
+ }
1018
+
1019
+ return takeObject(r0);
1020
+ } finally {
1021
+ wasm.__wbindgen_add_to_stack_pointer(16);
1022
+ }
1009
1023
  }
1010
1024
  /**
1011
1025
  * @param {Uint8Array} out_point
@@ -1185,6 +1199,15 @@ class DashPlatformProtocol {
1185
1199
  const ret = wasm.dashplatformprotocol_state_transition(this.__wbg_ptr);
1186
1200
  return StateTransitionFactory.__wrap(ret);
1187
1201
  }
1202
+ /**
1203
+ * @returns {number}
1204
+ */
1205
+
1206
+
1207
+ get protocolVersion() {
1208
+ const ret = wasm.dashplatformprotocol_protocol_version(this.__wbg_ptr);
1209
+ return ret >>> 0;
1210
+ }
1188
1211
 
1189
1212
  }
1190
1213
  /**
@@ -3720,6 +3743,44 @@ class DocumentAlreadyPresentError {
3720
3743
 
3721
3744
  exports.DocumentAlreadyPresentError = DocumentAlreadyPresentError;
3722
3745
 
3746
+ class DocumentCreateTransition {
3747
+ __destroy_into_raw() {
3748
+ const ptr = this.__wbg_ptr;
3749
+ this.__wbg_ptr = 0;
3750
+ return ptr;
3751
+ }
3752
+
3753
+ free() {
3754
+ const ptr = this.__destroy_into_raw();
3755
+
3756
+ wasm.__wbg_documentcreatetransition_free(ptr);
3757
+ }
3758
+ /**
3759
+ * @returns {bigint}
3760
+ */
3761
+
3762
+
3763
+ getRevision() {
3764
+ const ret = wasm.documentcreatetransition_getRevision(this.__wbg_ptr);
3765
+ return BigInt.asUintN(64, ret);
3766
+ }
3767
+ /**
3768
+ * @returns {number}
3769
+ */
3770
+
3771
+
3772
+ static get INITIAL_REVISION() {
3773
+ const ret = wasm.documentcreatetransition_INITIAL_REVISION();
3774
+ return ret >>> 0;
3775
+ }
3776
+
3777
+ }
3778
+ /**
3779
+ */
3780
+
3781
+
3782
+ exports.DocumentCreateTransition = DocumentCreateTransition;
3783
+
3723
3784
  class DocumentFacade {
3724
3785
  static __wrap(ptr) {
3725
3786
  ptr = ptr >>> 0;
@@ -4036,7 +4097,7 @@ class DocumentNoRevisionError {
4036
4097
 
4037
4098
 
4038
4099
  getDocument() {
4039
- const ret = wasm.document_clone(this.__wbg_ptr);
4100
+ const ret = wasm.documentnorevisionerror_getDocument(this.__wbg_ptr);
4040
4101
  return Document.__wrap(ret);
4041
4102
  }
4042
4103
 
@@ -6145,6 +6206,30 @@ class ExtendedDocument {
6145
6206
  const ret = wasm.extendeddocument_clone(this.__wbg_ptr);
6146
6207
  return ExtendedDocument.__wrap(ret);
6147
6208
  }
6209
+ /**
6210
+ * @param {number} platform_version
6211
+ * @returns {ValidationResult}
6212
+ */
6213
+
6214
+
6215
+ validate(platform_version) {
6216
+ try {
6217
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6218
+
6219
+ wasm.extendeddocument_validate(retptr, this.__wbg_ptr, platform_version);
6220
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
6221
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
6222
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
6223
+
6224
+ if (r2) {
6225
+ throw takeObject(r1);
6226
+ }
6227
+
6228
+ return ValidationResult.__wrap(r0);
6229
+ } finally {
6230
+ wasm.__wbindgen_add_to_stack_pointer(16);
6231
+ }
6232
+ }
6148
6233
 
6149
6234
  }
6150
6235
  /**
@@ -6981,7 +7066,7 @@ class IdentityCreateTransition {
6981
7066
 
6982
7067
 
6983
7068
  getAssetLockProof() {
6984
- const ret = wasm.identitycreatetransition_assetLockProof(this.__wbg_ptr);
7069
+ const ret = wasm.identitycreatetransition_getAssetLockProof(this.__wbg_ptr);
6985
7070
  return takeObject(ret);
6986
7071
  }
6987
7072
  /**
@@ -10385,8 +10470,22 @@ class InstantAssetLockProof {
10385
10470
 
10386
10471
 
10387
10472
  getOutPoint() {
10388
- const ret = wasm.instantassetlockproof_getOutPoint(this.__wbg_ptr);
10389
- return takeObject(ret);
10473
+ try {
10474
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
10475
+
10476
+ wasm.instantassetlockproof_getOutPoint(retptr, this.__wbg_ptr);
10477
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
10478
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
10479
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
10480
+
10481
+ if (r2) {
10482
+ throw takeObject(r1);
10483
+ }
10484
+
10485
+ return takeObject(r0);
10486
+ } finally {
10487
+ wasm.__wbindgen_add_to_stack_pointer(16);
10488
+ }
10390
10489
  }
10391
10490
  /**
10392
10491
  * @returns {any}
@@ -11281,9 +11380,33 @@ class InvalidDocumentError {
11281
11380
 
11282
11381
 
11283
11382
  getRawDocument() {
11284
- const ret = wasm.invaliddatacontracterror_getRawDataContract(this.__wbg_ptr);
11383
+ const ret = wasm.invaliddocumenterror_getRawDocument(this.__wbg_ptr);
11285
11384
  return takeObject(ret);
11286
11385
  }
11386
+ /**
11387
+ * @returns {string}
11388
+ */
11389
+
11390
+
11391
+ getMessage() {
11392
+ let deferred1_0;
11393
+ let deferred1_1;
11394
+
11395
+ try {
11396
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
11397
+
11398
+ wasm.invaliddocumenterror_getMessage(retptr, this.__wbg_ptr);
11399
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
11400
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
11401
+ deferred1_0 = r0;
11402
+ deferred1_1 = r1;
11403
+ return getStringFromWasm0(r0, r1);
11404
+ } finally {
11405
+ wasm.__wbindgen_add_to_stack_pointer(16);
11406
+
11407
+ wasm.__wbindgen_free(deferred1_0, deferred1_1);
11408
+ }
11409
+ }
11287
11410
 
11288
11411
  }
11289
11412
  /**
@@ -12195,7 +12318,7 @@ class InvalidIdentityError {
12195
12318
 
12196
12319
 
12197
12320
  getRawIdentity() {
12198
- const ret = wasm.invaliddocumenttypeindatacontracterror_getDataContractId(this.__wbg_ptr);
12321
+ const ret = wasm.invalididentityerror_getRawIdentity(this.__wbg_ptr);
12199
12322
  return takeObject(ret);
12200
12323
  }
12201
12324
 
@@ -13068,7 +13191,7 @@ class InvalidInitialRevisionError {
13068
13191
 
13069
13192
 
13070
13193
  getDocument() {
13071
- const ret = wasm.document_clone(this.__wbg_ptr);
13194
+ const ret = wasm.documentnorevisionerror_getDocument(this.__wbg_ptr);
13072
13195
  return Document.__wrap(ret);
13073
13196
  }
13074
13197
 
@@ -13415,7 +13538,7 @@ class InvalidStateTransitionError {
13415
13538
  try {
13416
13539
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
13417
13540
 
13418
- wasm.invaliddatacontracterror_getErrors(retptr, this.__wbg_ptr);
13541
+ wasm.invalidstatetransitionerror_getErrors(retptr, this.__wbg_ptr);
13419
13542
  var r0 = getInt32Memory0()[retptr / 4 + 0];
13420
13543
  var r1 = getInt32Memory0()[retptr / 4 + 1];
13421
13544
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
@@ -13433,7 +13556,7 @@ class InvalidStateTransitionError {
13433
13556
 
13434
13557
 
13435
13558
  getRawStateTransition() {
13436
- const ret = wasm.invaliddatacontracterror_getRawDataContract(this.__wbg_ptr);
13559
+ const ret = wasm.invalidstatetransitionerror_getRawStateTransition(this.__wbg_ptr);
13437
13560
  return takeObject(ret);
13438
13561
  }
13439
13562
 
@@ -13676,7 +13799,13 @@ class JsonSchemaError {
13676
13799
 
13677
13800
  toJSON() {
13678
13801
  return {
13679
- message: this.message
13802
+ message: this.message,
13803
+ keyword: this.keyword,
13804
+ instancePath: this.instancePath,
13805
+ schemaPath: this.schemaPath,
13806
+ propertyName: this.propertyName,
13807
+ params: this.params,
13808
+ code: this.code
13680
13809
  };
13681
13810
  }
13682
13811
 
@@ -13820,7 +13949,7 @@ class JsonSchemaError {
13820
13949
 
13821
13950
 
13822
13951
  getCode() {
13823
- const ret = wasm.jsonschemaerror_getCode(this.__wbg_ptr);
13952
+ const ret = wasm.jsonschemaerror_code(this.__wbg_ptr);
13824
13953
  return ret >>> 0;
13825
13954
  }
13826
13955
  /**
@@ -13871,6 +14000,134 @@ class JsonSchemaError {
13871
14000
  wasm.__wbindgen_free(deferred1_0, deferred1_1);
13872
14001
  }
13873
14002
  }
14003
+ /**
14004
+ * @returns {string}
14005
+ */
14006
+
14007
+
14008
+ get keyword() {
14009
+ let deferred1_0;
14010
+ let deferred1_1;
14011
+
14012
+ try {
14013
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
14014
+
14015
+ wasm.jsonschemaerror_keyword(retptr, this.__wbg_ptr);
14016
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
14017
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
14018
+ deferred1_0 = r0;
14019
+ deferred1_1 = r1;
14020
+ return getStringFromWasm0(r0, r1);
14021
+ } finally {
14022
+ wasm.__wbindgen_add_to_stack_pointer(16);
14023
+
14024
+ wasm.__wbindgen_free(deferred1_0, deferred1_1);
14025
+ }
14026
+ }
14027
+ /**
14028
+ * @returns {string}
14029
+ */
14030
+
14031
+
14032
+ get instancePath() {
14033
+ let deferred1_0;
14034
+ let deferred1_1;
14035
+
14036
+ try {
14037
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
14038
+
14039
+ wasm.jsonschemaerror_instancePath(retptr, this.__wbg_ptr);
14040
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
14041
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
14042
+ deferred1_0 = r0;
14043
+ deferred1_1 = r1;
14044
+ return getStringFromWasm0(r0, r1);
14045
+ } finally {
14046
+ wasm.__wbindgen_add_to_stack_pointer(16);
14047
+
14048
+ wasm.__wbindgen_free(deferred1_0, deferred1_1);
14049
+ }
14050
+ }
14051
+ /**
14052
+ * @returns {string}
14053
+ */
14054
+
14055
+
14056
+ get schemaPath() {
14057
+ let deferred1_0;
14058
+ let deferred1_1;
14059
+
14060
+ try {
14061
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
14062
+
14063
+ wasm.jsonschemaerror_schemaPath(retptr, this.__wbg_ptr);
14064
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
14065
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
14066
+ deferred1_0 = r0;
14067
+ deferred1_1 = r1;
14068
+ return getStringFromWasm0(r0, r1);
14069
+ } finally {
14070
+ wasm.__wbindgen_add_to_stack_pointer(16);
14071
+
14072
+ wasm.__wbindgen_free(deferred1_0, deferred1_1);
14073
+ }
14074
+ }
14075
+ /**
14076
+ * @returns {string}
14077
+ */
14078
+
14079
+
14080
+ get propertyName() {
14081
+ let deferred1_0;
14082
+ let deferred1_1;
14083
+
14084
+ try {
14085
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
14086
+
14087
+ wasm.jsonschemaerror_propertyName(retptr, this.__wbg_ptr);
14088
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
14089
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
14090
+ deferred1_0 = r0;
14091
+ deferred1_1 = r1;
14092
+ return getStringFromWasm0(r0, r1);
14093
+ } finally {
14094
+ wasm.__wbindgen_add_to_stack_pointer(16);
14095
+
14096
+ wasm.__wbindgen_free(deferred1_0, deferred1_1);
14097
+ }
14098
+ }
14099
+ /**
14100
+ * @returns {any}
14101
+ */
14102
+
14103
+
14104
+ get params() {
14105
+ try {
14106
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
14107
+
14108
+ wasm.jsonschemaerror_getParams(retptr, this.__wbg_ptr);
14109
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
14110
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
14111
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
14112
+
14113
+ if (r2) {
14114
+ throw takeObject(r1);
14115
+ }
14116
+
14117
+ return takeObject(r0);
14118
+ } finally {
14119
+ wasm.__wbindgen_add_to_stack_pointer(16);
14120
+ }
14121
+ }
14122
+ /**
14123
+ * @returns {number}
14124
+ */
14125
+
14126
+
14127
+ get code() {
14128
+ const ret = wasm.jsonschemaerror_code(this.__wbg_ptr);
14129
+ return ret >>> 0;
14130
+ }
13874
14131
 
13875
14132
  }
13876
14133
  /**
@@ -14771,7 +15028,7 @@ class PlatformValueError {
14771
15028
  try {
14772
15029
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
14773
15030
 
14774
- wasm.datacontractgenericerror_getMessage(retptr, this.__wbg_ptr);
15031
+ wasm.platformvalueerror_getMessage(retptr, this.__wbg_ptr);
14775
15032
  var r0 = getInt32Memory0()[retptr / 4 + 0];
14776
15033
  var r1 = getInt32Memory0()[retptr / 4 + 1];
14777
15034
  deferred1_0 = r0;
@@ -15133,7 +15390,7 @@ class RevisionAbsentError {
15133
15390
 
15134
15391
  var ptr0 = document.__destroy_into_raw();
15135
15392
 
15136
- const ret = wasm.revisionabsenterror_new(ptr0);
15393
+ const ret = wasm.documentnorevisionerror_new(ptr0);
15137
15394
  return RevisionAbsentError.__wrap(ret);
15138
15395
  }
15139
15396
  /**
@@ -15142,7 +15399,7 @@ class RevisionAbsentError {
15142
15399
 
15143
15400
 
15144
15401
  getDocument() {
15145
- const ret = wasm.revisionabsenterror_getDocument(this.__wbg_ptr);
15402
+ const ret = wasm.documentnorevisionerror_getDocument(this.__wbg_ptr);
15146
15403
  return Document.__wrap(ret);
15147
15404
  }
15148
15405
 
@@ -16053,24 +16310,14 @@ class UnsupportedVersionError {
16053
16310
 
16054
16311
  exports.UnsupportedVersionError = UnsupportedVersionError;
16055
16312
 
16056
- class ValueError {
16313
+ class ValidationResult {
16057
16314
  static __wrap(ptr) {
16058
16315
  ptr = ptr >>> 0;
16059
- const obj = Object.create(ValueError.prototype);
16316
+ const obj = Object.create(ValidationResult.prototype);
16060
16317
  obj.__wbg_ptr = ptr;
16061
16318
  return obj;
16062
16319
  }
16063
16320
 
16064
- toJSON() {
16065
- return {
16066
- message: this.message
16067
- };
16068
- }
16069
-
16070
- toString() {
16071
- return JSON.stringify(this);
16072
- }
16073
-
16074
16321
  __destroy_into_raw() {
16075
16322
  const ptr = this.__wbg_ptr;
16076
16323
  this.__wbg_ptr = 0;
@@ -16080,82 +16327,236 @@ class ValueError {
16080
16327
  free() {
16081
16328
  const ptr = this.__destroy_into_raw();
16082
16329
 
16083
- wasm.__wbg_valueerror_free(ptr);
16330
+ wasm.__wbg_validationresult_free(ptr);
16084
16331
  }
16085
16332
  /**
16086
- * @returns {string}
16333
+ * @param {any[] | undefined} errors_option
16087
16334
  */
16088
16335
 
16089
16336
 
16090
- getMessage() {
16091
- let deferred1_0;
16092
- let deferred1_1;
16093
-
16337
+ constructor(errors_option) {
16094
16338
  try {
16095
16339
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16096
16340
 
16097
- wasm.valueerror_getMessage(retptr, this.__wbg_ptr);
16341
+ var ptr0 = isLikeNone(errors_option) ? 0 : passArrayJsValueToWasm0(errors_option, wasm.__wbindgen_malloc);
16342
+ var len0 = WASM_VECTOR_LEN;
16343
+ wasm.validationresult_new(retptr, ptr0, len0);
16098
16344
  var r0 = getInt32Memory0()[retptr / 4 + 0];
16099
16345
  var r1 = getInt32Memory0()[retptr / 4 + 1];
16100
- deferred1_0 = r0;
16101
- deferred1_1 = r1;
16102
- return getStringFromWasm0(r0, r1);
16346
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
16347
+
16348
+ if (r2) {
16349
+ throw takeObject(r1);
16350
+ }
16351
+
16352
+ return ValidationResult.__wrap(r0);
16103
16353
  } finally {
16104
16354
  wasm.__wbindgen_add_to_stack_pointer(16);
16105
-
16106
- wasm.__wbindgen_free(deferred1_0, deferred1_1);
16107
16355
  }
16108
16356
  }
16109
16357
  /**
16110
- * @returns {number}
16358
+ * This is just a test method - doesn't need to be in the resulted binding. Please
16359
+ * remove before shipping
16360
+ * @returns {(string)[]}
16111
16361
  */
16112
16362
 
16113
16363
 
16114
- getCode() {
16115
- const ret = wasm.valueerror_getCode(this.__wbg_ptr);
16116
- return ret >>> 0;
16364
+ errorsText() {
16365
+ try {
16366
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16367
+
16368
+ wasm.validationresult_errorsText(retptr, this.__wbg_ptr);
16369
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
16370
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
16371
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
16372
+
16373
+ wasm.__wbindgen_free(r0, r1 * 4);
16374
+
16375
+ return v1;
16376
+ } finally {
16377
+ wasm.__wbindgen_add_to_stack_pointer(16);
16378
+ }
16117
16379
  }
16118
16380
  /**
16119
- * @returns {string}
16381
+ * @returns {boolean}
16120
16382
  */
16121
16383
 
16122
16384
 
16123
- get message() {
16124
- let deferred1_0;
16125
- let deferred1_1;
16385
+ isValid() {
16386
+ const ret = wasm.validationresult_isValid(this.__wbg_ptr);
16387
+ return ret !== 0;
16388
+ }
16389
+ /**
16390
+ * @returns {any[]}
16391
+ */
16392
+
16126
16393
 
16394
+ getErrors() {
16127
16395
  try {
16128
16396
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16129
16397
 
16130
- wasm.valueerror_message(retptr, this.__wbg_ptr);
16398
+ wasm.validationresult_errors(retptr, this.__wbg_ptr);
16131
16399
  var r0 = getInt32Memory0()[retptr / 4 + 0];
16132
16400
  var r1 = getInt32Memory0()[retptr / 4 + 1];
16133
- deferred1_0 = r0;
16134
- deferred1_1 = r1;
16135
- return getStringFromWasm0(r0, r1);
16401
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
16402
+
16403
+ wasm.__wbindgen_free(r0, r1 * 4);
16404
+
16405
+ return v1;
16136
16406
  } finally {
16137
16407
  wasm.__wbindgen_add_to_stack_pointer(16);
16408
+ }
16409
+ }
16410
+ /**
16411
+ * @returns {any[]}
16412
+ */
16138
16413
 
16139
- wasm.__wbindgen_free(deferred1_0, deferred1_1);
16414
+
16415
+ get errors() {
16416
+ try {
16417
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16418
+
16419
+ wasm.validationresult_errors(retptr, this.__wbg_ptr);
16420
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
16421
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
16422
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
16423
+
16424
+ wasm.__wbindgen_free(r0, r1 * 4);
16425
+
16426
+ return v1;
16427
+ } finally {
16428
+ wasm.__wbindgen_add_to_stack_pointer(16);
16140
16429
  }
16141
16430
  }
16431
+ /**
16432
+ * @returns {any}
16433
+ */
16434
+
16435
+
16436
+ getData() {
16437
+ const ret = wasm.validationresult_getData(this.__wbg_ptr);
16438
+ return takeObject(ret);
16439
+ }
16440
+ /**
16441
+ * @returns {any}
16442
+ */
16443
+
16444
+
16445
+ getFirstError() {
16446
+ const ret = wasm.validationresult_getFirstError(this.__wbg_ptr);
16447
+ return takeObject(ret);
16448
+ }
16142
16449
 
16143
16450
  }
16144
16451
  /**
16145
16452
  */
16146
16453
 
16147
16454
 
16148
- exports.ValueError = ValueError;
16455
+ exports.ValidationResult = ValidationResult;
16149
16456
 
16150
- class WrongPublicKeyPurposeError {
16457
+ class ValueError {
16151
16458
  static __wrap(ptr) {
16152
16459
  ptr = ptr >>> 0;
16153
- const obj = Object.create(WrongPublicKeyPurposeError.prototype);
16460
+ const obj = Object.create(ValueError.prototype);
16154
16461
  obj.__wbg_ptr = ptr;
16155
16462
  return obj;
16156
16463
  }
16157
16464
 
16158
- __destroy_into_raw() {
16465
+ toJSON() {
16466
+ return {
16467
+ message: this.message
16468
+ };
16469
+ }
16470
+
16471
+ toString() {
16472
+ return JSON.stringify(this);
16473
+ }
16474
+
16475
+ __destroy_into_raw() {
16476
+ const ptr = this.__wbg_ptr;
16477
+ this.__wbg_ptr = 0;
16478
+ return ptr;
16479
+ }
16480
+
16481
+ free() {
16482
+ const ptr = this.__destroy_into_raw();
16483
+
16484
+ wasm.__wbg_valueerror_free(ptr);
16485
+ }
16486
+ /**
16487
+ * @returns {string}
16488
+ */
16489
+
16490
+
16491
+ getMessage() {
16492
+ let deferred1_0;
16493
+ let deferred1_1;
16494
+
16495
+ try {
16496
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16497
+
16498
+ wasm.valueerror_getMessage(retptr, this.__wbg_ptr);
16499
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
16500
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
16501
+ deferred1_0 = r0;
16502
+ deferred1_1 = r1;
16503
+ return getStringFromWasm0(r0, r1);
16504
+ } finally {
16505
+ wasm.__wbindgen_add_to_stack_pointer(16);
16506
+
16507
+ wasm.__wbindgen_free(deferred1_0, deferred1_1);
16508
+ }
16509
+ }
16510
+ /**
16511
+ * @returns {number}
16512
+ */
16513
+
16514
+
16515
+ getCode() {
16516
+ const ret = wasm.valueerror_getCode(this.__wbg_ptr);
16517
+ return ret >>> 0;
16518
+ }
16519
+ /**
16520
+ * @returns {string}
16521
+ */
16522
+
16523
+
16524
+ get message() {
16525
+ let deferred1_0;
16526
+ let deferred1_1;
16527
+
16528
+ try {
16529
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
16530
+
16531
+ wasm.valueerror_message(retptr, this.__wbg_ptr);
16532
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
16533
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
16534
+ deferred1_0 = r0;
16535
+ deferred1_1 = r1;
16536
+ return getStringFromWasm0(r0, r1);
16537
+ } finally {
16538
+ wasm.__wbindgen_add_to_stack_pointer(16);
16539
+
16540
+ wasm.__wbindgen_free(deferred1_0, deferred1_1);
16541
+ }
16542
+ }
16543
+
16544
+ }
16545
+ /**
16546
+ */
16547
+
16548
+
16549
+ exports.ValueError = ValueError;
16550
+
16551
+ class WrongPublicKeyPurposeError {
16552
+ static __wrap(ptr) {
16553
+ ptr = ptr >>> 0;
16554
+ const obj = Object.create(WrongPublicKeyPurposeError.prototype);
16555
+ obj.__wbg_ptr = ptr;
16556
+ return obj;
16557
+ }
16558
+
16559
+ __destroy_into_raw() {
16159
16560
  const ptr = this.__wbg_ptr;
16160
16561
  this.__wbg_ptr = 0;
16161
16562
  return ptr;
@@ -16260,8 +16661,8 @@ function __wbg_get_imports() {
16260
16661
  takeObject(arg0);
16261
16662
  };
16262
16663
 
16263
- imports.wbg.__wbindgen_number_new = function (arg0) {
16264
- const ret = arg0;
16664
+ imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
16665
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
16265
16666
  return addHeapObject(ret);
16266
16667
  };
16267
16668
 
@@ -16270,6 +16671,20 @@ function __wbg_get_imports() {
16270
16671
  return addHeapObject(ret);
16271
16672
  };
16272
16673
 
16674
+ imports.wbg.__wbg_from_f8994971a6a879bf = function (arg0, arg1) {
16675
+ const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
16676
+ return addHeapObject(ret);
16677
+ };
16678
+
16679
+ imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
16680
+ const obj = getObject(arg1);
16681
+ const ret = typeof obj === 'string' ? obj : undefined;
16682
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16683
+ var len1 = WASM_VECTOR_LEN;
16684
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
16685
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16686
+ };
16687
+
16273
16688
  imports.wbg.__wbg_datacontractnotpresentnotconsensuserror_new = function (arg0) {
16274
16689
  const ret = DataContractNotPresentNotConsensusError.__wrap(arg0);
16275
16690
 
@@ -16282,104 +16697,96 @@ function __wbg_get_imports() {
16282
16697
  return addHeapObject(ret);
16283
16698
  };
16284
16699
 
16285
- imports.wbg.__wbg_invaliddatacontracterror_new = function (arg0) {
16286
- const ret = InvalidDataContractError.__wrap(arg0);
16700
+ imports.wbg.__wbg_datacontractcreatetransition_new = function (arg0) {
16701
+ const ret = DataContractCreateTransition.__wrap(arg0);
16287
16702
 
16288
16703
  return addHeapObject(ret);
16289
16704
  };
16290
16705
 
16291
- imports.wbg.__wbindgen_is_object = function (arg0) {
16292
- const val = getObject(arg0);
16293
- const ret = typeof val === 'object' && val !== null;
16294
- return ret;
16295
- };
16706
+ imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
16707
+ const ret = DataContractUpdateTransition.__wrap(arg0);
16296
16708
 
16297
- imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
16298
- const ret = new Error(getStringFromWasm0(arg0, arg1));
16299
16709
  return addHeapObject(ret);
16300
16710
  };
16301
16711
 
16302
- imports.wbg.__wbindgen_number_get = function (arg0, arg1) {
16303
- const obj = getObject(arg1);
16304
- const ret = typeof obj === 'number' ? obj : undefined;
16305
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
16306
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
16712
+ imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
16713
+ const ret = DocumentsBatchTransition.__wrap(arg0);
16714
+
16715
+ return addHeapObject(ret);
16307
16716
  };
16308
16717
 
16309
- imports.wbg.__wbg_from_f8994971a6a879bf = function (arg0, arg1) {
16310
- const ret = Buffer.from(getArrayU8FromWasm0(arg0, arg1));
16718
+ imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
16719
+ const ret = IdentityCreateTransition.__wrap(arg0);
16720
+
16311
16721
  return addHeapObject(ret);
16312
16722
  };
16313
16723
 
16314
- imports.wbg.__wbg_toBuffer_8926f034b9089b8c = function (arg0, arg1) {
16315
- const ret = getObject(arg1).toBuffer();
16316
- const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
16317
- const len1 = WASM_VECTOR_LEN;
16318
- getInt32Memory0()[arg0 / 4 + 1] = len1;
16319
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16724
+ imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
16725
+ const ret = IdentityTopUpTransition.__wrap(arg0);
16726
+
16727
+ return addHeapObject(ret);
16320
16728
  };
16321
16729
 
16322
- imports.wbg.__wbg_new_4e0c6a7dff639b41 = function (arg0) {
16323
- const ret = new _Identifier.default(takeObject(arg0));
16730
+ imports.wbg.__wbg_identityupdatetransition_new = function (arg0) {
16731
+ const ret = IdentityUpdateTransition.__wrap(arg0);
16732
+
16324
16733
  return addHeapObject(ret);
16325
16734
  };
16326
16735
 
16327
- imports.wbg.__wbg_from_adb7e5a9ca315341 = function (arg0, arg1) {
16328
- var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
16736
+ imports.wbg.__wbg_identitycredittransfertransition_new = function (arg0) {
16737
+ const ret = IdentityCreditTransferTransition.__wrap(arg0);
16329
16738
 
16330
- wasm.__wbindgen_free(arg0, arg1 * 1);
16739
+ return addHeapObject(ret);
16740
+ };
16741
+
16742
+ imports.wbg.__wbg_invalidstatetransitionerror_new = function (arg0) {
16743
+ const ret = InvalidStateTransitionError.__wrap(arg0);
16331
16744
 
16332
- const ret = Buffer.from(v0);
16333
16745
  return addHeapObject(ret);
16334
16746
  };
16335
16747
 
16336
- imports.wbg.__wbindgen_is_falsy = function (arg0) {
16337
- const ret = !getObject(arg0);
16748
+ imports.wbg.__wbindgen_is_object = function (arg0) {
16749
+ const val = getObject(arg0);
16750
+ const ret = typeof val === 'object' && val !== null;
16338
16751
  return ret;
16339
16752
  };
16340
16753
 
16341
- imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
16754
+ imports.wbg.__wbindgen_number_get = function (arg0, arg1) {
16342
16755
  const obj = getObject(arg1);
16343
- const ret = typeof obj === 'string' ? obj : undefined;
16344
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
16345
- var len1 = WASM_VECTOR_LEN;
16346
- getInt32Memory0()[arg0 / 4 + 1] = len1;
16347
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16756
+ const ret = typeof obj === 'number' ? obj : undefined;
16757
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
16758
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
16348
16759
  };
16349
16760
 
16350
- imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
16351
- const ret = getObject(arg0);
16761
+ imports.wbg.__wbg_new_4e0c6a7dff639b41 = function (arg0) {
16762
+ const ret = new _Identifier.default(takeObject(arg0));
16352
16763
  return addHeapObject(ret);
16353
16764
  };
16354
16765
 
16355
- imports.wbg.__wbindgen_boolean_get = function (arg0) {
16356
- const v = getObject(arg0);
16357
- const ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
16358
- return ret;
16766
+ imports.wbg.__wbg_toBuffer_8926f034b9089b8c = function (arg0, arg1) {
16767
+ const ret = getObject(arg1).toBuffer();
16768
+ const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
16769
+ const len1 = WASM_VECTOR_LEN;
16770
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
16771
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
16359
16772
  };
16360
16773
 
16361
- imports.wbg.__wbindgen_is_bigint = function (arg0) {
16362
- const ret = typeof getObject(arg0) === 'bigint';
16363
- return ret;
16364
- };
16774
+ imports.wbg.__wbg_from_adb7e5a9ca315341 = function (arg0, arg1) {
16775
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
16365
16776
 
16366
- imports.wbg.__wbindgen_bigint_from_i64 = function (arg0) {
16367
- const ret = arg0;
16368
- return addHeapObject(ret);
16369
- };
16777
+ wasm.__wbindgen_free(arg0, arg1 * 1);
16370
16778
 
16371
- imports.wbg.__wbindgen_jsval_eq = function (arg0, arg1) {
16372
- const ret = getObject(arg0) === getObject(arg1);
16373
- return ret;
16779
+ const ret = Buffer.from(v0);
16780
+ return addHeapObject(ret);
16374
16781
  };
16375
16782
 
16376
- imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
16377
- const ret = BigInt.asUintN(64, arg0);
16783
+ imports.wbg.__wbindgen_number_new = function (arg0) {
16784
+ const ret = arg0;
16378
16785
  return addHeapObject(ret);
16379
16786
  };
16380
16787
 
16381
- imports.wbg.__wbindgen_in = function (arg0, arg1) {
16382
- const ret = (getObject(arg0) in getObject(arg1));
16788
+ imports.wbg.__wbindgen_is_falsy = function (arg0) {
16789
+ const ret = !getObject(arg0);
16383
16790
  return ret;
16384
16791
  };
16385
16792
 
@@ -16388,53 +16795,18 @@ function __wbg_get_imports() {
16388
16795
  return ret;
16389
16796
  };
16390
16797
 
16391
- imports.wbg.__wbindgen_is_null = function (arg0) {
16392
- const ret = getObject(arg0) === null;
16393
- return ret;
16394
- };
16395
-
16396
- imports.wbg.__wbindgen_is_function = function (arg0) {
16397
- const ret = typeof getObject(arg0) === 'function';
16398
- return ret;
16399
- };
16400
-
16401
- imports.wbg.__wbg_verifySignature_381b6fbc72ef5de0 = function () {
16402
- return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
16403
- const ret = getObject(arg0).verifySignature(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
16404
- return ret;
16405
- }, arguments);
16406
- };
16407
-
16408
- imports.wbg.__wbg_privateKeyToPublicKey_7889a7b14dcd3e4b = function () {
16409
- return handleError(function (arg0, arg1, arg2) {
16410
- const ret = getObject(arg0).privateKeyToPublicKey(getArrayU8FromWasm0(arg1, arg2));
16411
- return addHeapObject(ret);
16412
- }, arguments);
16413
- };
16414
-
16415
- imports.wbg.__wbg_sign_0a75c1d0666868aa = function () {
16416
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
16417
- const ret = getObject(arg0).sign(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
16418
- return addHeapObject(ret);
16419
- }, arguments);
16420
- };
16421
-
16422
- imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
16423
- const ret = InvalidActionNameError.__wrap(arg0);
16424
-
16425
- return addHeapObject(ret);
16798
+ imports.wbg.__wbg_set_5a60f5bcfa43c150 = function (arg0, arg1, arg2, arg3) {
16799
+ (0, _lodash.set)(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3));
16426
16800
  };
16427
16801
 
16428
- imports.wbg.__wbg_documenttransition_new = function (arg0) {
16429
- const ret = DocumentTransition.__wrap(arg0);
16430
-
16802
+ imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
16803
+ const ret = getObject(arg0);
16431
16804
  return addHeapObject(ret);
16432
16805
  };
16433
16806
 
16434
- imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
16435
- const ret = InvalidIdentityError.__wrap(arg0);
16436
-
16437
- return addHeapObject(ret);
16807
+ imports.wbg.__wbindgen_is_function = function (arg0) {
16808
+ const ret = typeof getObject(arg0) === 'function';
16809
+ return ret;
16438
16810
  };
16439
16811
 
16440
16812
  imports.wbg.__wbindgen_is_string = function (arg0) {
@@ -16460,6 +16832,12 @@ function __wbg_get_imports() {
16460
16832
  return addHeapObject(ret);
16461
16833
  };
16462
16834
 
16835
+ imports.wbg.__wbg_invalidactionnameerror_new = function (arg0) {
16836
+ const ret = InvalidActionNameError.__wrap(arg0);
16837
+
16838
+ return addHeapObject(ret);
16839
+ };
16840
+
16463
16841
  imports.wbg.__wbg_invaliddocumentactionerror_new = function (arg0) {
16464
16842
  const ret = InvalidDocumentActionError.__wrap(arg0);
16465
16843
 
@@ -16514,103 +16892,56 @@ function __wbg_get_imports() {
16514
16892
  return addHeapObject(ret);
16515
16893
  };
16516
16894
 
16517
- imports.wbg.__wbg_datacontractcreatetransition_new = function (arg0) {
16518
- const ret = DataContractCreateTransition.__wrap(arg0);
16519
-
16520
- return addHeapObject(ret);
16521
- };
16522
-
16523
- imports.wbg.__wbg_datacontractupdatetransition_new = function (arg0) {
16524
- const ret = DataContractUpdateTransition.__wrap(arg0);
16525
-
16526
- return addHeapObject(ret);
16527
- };
16528
-
16529
- imports.wbg.__wbg_documentsbatchtransition_new = function (arg0) {
16530
- const ret = DocumentsBatchTransition.__wrap(arg0);
16531
-
16532
- return addHeapObject(ret);
16533
- };
16534
-
16535
- imports.wbg.__wbg_identitycreatetransition_new = function (arg0) {
16536
- const ret = IdentityCreateTransition.__wrap(arg0);
16537
-
16538
- return addHeapObject(ret);
16539
- };
16540
-
16541
- imports.wbg.__wbg_identitytopuptransition_new = function (arg0) {
16542
- const ret = IdentityTopUpTransition.__wrap(arg0);
16543
-
16544
- return addHeapObject(ret);
16545
- };
16546
-
16547
- imports.wbg.__wbg_identityupdatetransition_new = function (arg0) {
16548
- const ret = IdentityUpdateTransition.__wrap(arg0);
16549
-
16550
- return addHeapObject(ret);
16551
- };
16552
-
16553
- imports.wbg.__wbg_identitycredittransfertransition_new = function (arg0) {
16554
- const ret = IdentityCreditTransferTransition.__wrap(arg0);
16895
+ imports.wbg.__wbg_protocolversionparsingerror_new = function (arg0) {
16896
+ const ret = ProtocolVersionParsingError.__wrap(arg0);
16555
16897
 
16556
16898
  return addHeapObject(ret);
16557
16899
  };
16558
16900
 
16559
- imports.wbg.__wbg_invalidstatetransitionerror_new = function (arg0) {
16560
- const ret = InvalidStateTransitionError.__wrap(arg0);
16901
+ imports.wbg.__wbg_serializedobjectparsingerror_new = function (arg0) {
16902
+ const ret = SerializedObjectParsingError.__wrap(arg0);
16561
16903
 
16562
16904
  return addHeapObject(ret);
16563
16905
  };
16564
16906
 
16565
- imports.wbg.__wbg_set_5a60f5bcfa43c150 = function (arg0, arg1, arg2, arg3) {
16566
- (0, _lodash.set)(getObject(arg0), getStringFromWasm0(arg1, arg2), takeObject(arg3));
16567
- };
16568
-
16569
- imports.wbg.__wbg_datacontract_new = function (arg0) {
16570
- const ret = DataContract.__wrap(arg0);
16907
+ imports.wbg.__wbg_unsupportedprotocolversionerror_new = function (arg0) {
16908
+ const ret = UnsupportedProtocolVersionError.__wrap(arg0);
16571
16909
 
16572
16910
  return addHeapObject(ret);
16573
16911
  };
16574
16912
 
16575
- imports.wbg.__wbg_generate_e53cabf4e64ecd0f = function () {
16576
- return handleError(function (arg0) {
16577
- const ret = getObject(arg0).generate();
16578
- return addHeapObject(ret);
16579
- }, arguments);
16580
- };
16581
-
16582
- imports.wbg.__wbg_datacontractgenericerror_new = function (arg0) {
16583
- const ret = DataContractGenericError.__wrap(arg0);
16913
+ imports.wbg.__wbg_unsupportedversionerror_new = function (arg0) {
16914
+ const ret = UnsupportedVersionError.__wrap(arg0);
16584
16915
 
16585
16916
  return addHeapObject(ret);
16586
16917
  };
16587
16918
 
16588
- imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function (arg0) {
16589
- const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
16919
+ imports.wbg.__wbg_incompatibleprotocolversionerror_new = function (arg0) {
16920
+ const ret = IncompatibleProtocolVersionError.__wrap(arg0);
16590
16921
 
16591
16922
  return addHeapObject(ret);
16592
16923
  };
16593
16924
 
16594
- imports.wbg.__wbg_document_new = function (arg0) {
16595
- const ret = Document.__wrap(arg0);
16925
+ imports.wbg.__wbg_jsonschemacompilationerror_new = function (arg0) {
16926
+ const ret = JsonSchemaCompilationError.__wrap(arg0);
16596
16927
 
16597
16928
  return addHeapObject(ret);
16598
16929
  };
16599
16930
 
16600
- imports.wbg.__wbg_datacontracthavenewuniqueindexerror_new = function (arg0) {
16601
- const ret = DataContractHaveNewUniqueIndexError.__wrap(arg0);
16931
+ imports.wbg.__wbg_jsonschemaerror_new = function (arg0) {
16932
+ const ret = JsonSchemaError.__wrap(arg0);
16602
16933
 
16603
16934
  return addHeapObject(ret);
16604
16935
  };
16605
16936
 
16606
- imports.wbg.__wbg_datacontractimmutablepropertiesupdateerror_new = function (arg0) {
16607
- const ret = DataContractImmutablePropertiesUpdateError.__wrap(arg0);
16937
+ imports.wbg.__wbg_invalididentifiererror_new = function (arg0) {
16938
+ const ret = InvalidIdentifierError.__wrap(arg0);
16608
16939
 
16609
16940
  return addHeapObject(ret);
16610
16941
  };
16611
16942
 
16612
- imports.wbg.__wbg_datacontractinvalidindexdefinitionupdateerror_new = function (arg0) {
16613
- const ret = DataContractInvalidIndexDefinitionUpdateError.__wrap(arg0);
16943
+ imports.wbg.__wbg_valueerror_new = function (arg0) {
16944
+ const ret = ValueError.__wrap(arg0);
16614
16945
 
16615
16946
  return addHeapObject(ret);
16616
16947
  };
@@ -16621,20 +16952,8 @@ function __wbg_get_imports() {
16621
16952
  return addHeapObject(ret);
16622
16953
  };
16623
16954
 
16624
- imports.wbg.__wbg_datacontractuniqueindiceschangederror_new = function (arg0) {
16625
- const ret = DataContractUniqueIndicesChangedError.__wrap(arg0);
16626
-
16627
- return addHeapObject(ret);
16628
- };
16629
-
16630
- imports.wbg.__wbg_duplicateindexnameerror_new = function (arg0) {
16631
- const ret = DuplicateIndexNameError.__wrap(arg0);
16632
-
16633
- return addHeapObject(ret);
16634
- };
16635
-
16636
- imports.wbg.__wbg_incompatibledatacontractschemaerror_new = function (arg0) {
16637
- const ret = IncompatibleDataContractSchemaError.__wrap(arg0);
16955
+ imports.wbg.__wbg_duplicateindexerror_new = function (arg0) {
16956
+ const ret = DuplicateIndexError.__wrap(arg0);
16638
16957
 
16639
16958
  return addHeapObject(ret);
16640
16959
  };
@@ -16645,20 +16964,14 @@ function __wbg_get_imports() {
16645
16964
  return addHeapObject(ret);
16646
16965
  };
16647
16966
 
16648
- imports.wbg.__wbg_duplicateindexerror_new = function (arg0) {
16649
- const ret = DuplicateIndexError.__wrap(arg0);
16650
-
16651
- return addHeapObject(ret);
16652
- };
16653
-
16654
16967
  imports.wbg.__wbg_invalidcompoundindexerror_new = function (arg0) {
16655
16968
  const ret = InvalidCompoundIndexError.__wrap(arg0);
16656
16969
 
16657
16970
  return addHeapObject(ret);
16658
16971
  };
16659
16972
 
16660
- imports.wbg.__wbg_invalidindexpropertytypeerror_new = function (arg0) {
16661
- const ret = InvalidIndexPropertyTypeError.__wrap(arg0);
16973
+ imports.wbg.__wbg_invaliddatacontractiderror_new = function (arg0) {
16974
+ const ret = InvalidDataContractIdError.__wrap(arg0);
16662
16975
 
16663
16976
  return addHeapObject(ret);
16664
16977
  };
@@ -16669,6 +16982,12 @@ function __wbg_get_imports() {
16669
16982
  return addHeapObject(ret);
16670
16983
  };
16671
16984
 
16985
+ imports.wbg.__wbg_invalidindexpropertytypeerror_new = function (arg0) {
16986
+ const ret = InvalidIndexPropertyTypeError.__wrap(arg0);
16987
+
16988
+ return addHeapObject(ret);
16989
+ };
16990
+
16672
16991
  imports.wbg.__wbg_systempropertyindexalreadypresenterror_new = function (arg0) {
16673
16992
  const ret = SystemPropertyIndexAlreadyPresentError.__wrap(arg0);
16674
16993
 
@@ -16687,8 +17006,8 @@ function __wbg_get_imports() {
16687
17006
  return addHeapObject(ret);
16688
17007
  };
16689
17008
 
16690
- imports.wbg.__wbg_invaliddatacontractiderror_new = function (arg0) {
16691
- const ret = InvalidDataContractIdError.__wrap(arg0);
17009
+ imports.wbg.__wbg_duplicateindexnameerror_new = function (arg0) {
17010
+ const ret = DuplicateIndexNameError.__wrap(arg0);
16692
17011
 
16693
17012
  return addHeapObject(ret);
16694
17013
  };
@@ -16699,20 +17018,26 @@ function __wbg_get_imports() {
16699
17018
  return addHeapObject(ret);
16700
17019
  };
16701
17020
 
16702
- imports.wbg.__wbg_invalidjsonschemareferror_new = function (arg0) {
16703
- const ret = InvalidJsonSchemaRefError.__wrap(arg0);
17021
+ imports.wbg.__wbg_incompatibledatacontractschemaerror_new = function (arg0) {
17022
+ const ret = IncompatibleDataContractSchemaError.__wrap(arg0);
16704
17023
 
16705
17024
  return addHeapObject(ret);
16706
17025
  };
16707
17026
 
16708
- imports.wbg.__wbg_protocolversionparsingerror_new = function (arg0) {
16709
- const ret = ProtocolVersionParsingError.__wrap(arg0);
17027
+ imports.wbg.__wbg_datacontractimmutablepropertiesupdateerror_new = function (arg0) {
17028
+ const ret = DataContractImmutablePropertiesUpdateError.__wrap(arg0);
16710
17029
 
16711
17030
  return addHeapObject(ret);
16712
17031
  };
16713
17032
 
16714
- imports.wbg.__wbg_serializedobjectparsingerror_new = function (arg0) {
16715
- const ret = SerializedObjectParsingError.__wrap(arg0);
17033
+ imports.wbg.__wbg_datacontractinvalidindexdefinitionupdateerror_new = function (arg0) {
17034
+ const ret = DataContractInvalidIndexDefinitionUpdateError.__wrap(arg0);
17035
+
17036
+ return addHeapObject(ret);
17037
+ };
17038
+
17039
+ imports.wbg.__wbg_datacontracthavenewuniqueindexerror_new = function (arg0) {
17040
+ const ret = DataContractHaveNewUniqueIndexError.__wrap(arg0);
16716
17041
 
16717
17042
  return addHeapObject(ret);
16718
17043
  };
@@ -16819,20 +17144,14 @@ function __wbg_get_imports() {
16819
17144
  return addHeapObject(ret);
16820
17145
  };
16821
17146
 
16822
- imports.wbg.__wbg_identityinsufficientbalanceerror_new = function (arg0) {
16823
- const ret = IdentityInsufficientBalanceError.__wrap(arg0);
16824
-
16825
- return addHeapObject(ret);
16826
- };
16827
-
16828
17147
  imports.wbg.__wbg_invalidassetlockproofcorechainheighterror_new = function (arg0) {
16829
17148
  const ret = InvalidAssetLockProofCoreChainHeightError.__wrap(arg0);
16830
17149
 
16831
17150
  return addHeapObject(ret);
16832
17151
  };
16833
17152
 
16834
- imports.wbg.__wbg_invalidassetlockprooftransactionheighterror_new = function (arg0) {
16835
- const ret = InvalidAssetLockProofTransactionHeightError.__wrap(arg0);
17153
+ imports.wbg.__wbg_invalididentityassetlockproofchainlockvalidationerrorwasm_new = function (arg0) {
17154
+ const ret = InvalidIdentityAssetLockProofChainLockValidationErrorWasm.__wrap(arg0);
16836
17155
 
16837
17156
  return addHeapObject(ret);
16838
17157
  };
@@ -16843,12 +17162,6 @@ function __wbg_get_imports() {
16843
17162
  return addHeapObject(ret);
16844
17163
  };
16845
17164
 
16846
- imports.wbg.__wbg_invalididentityassetlockproofchainlockvalidationerrorwasm_new = function (arg0) {
16847
- const ret = InvalidIdentityAssetLockProofChainLockValidationErrorWasm.__wrap(arg0);
16848
-
16849
- return addHeapObject(ret);
16850
- };
16851
-
16852
17165
  imports.wbg.__wbg_invalididentityassetlocktransactionerror_new = function (arg0) {
16853
17166
  const ret = InvalidIdentityAssetLockTransactionError.__wrap(arg0);
16854
17167
 
@@ -16861,8 +17174,20 @@ function __wbg_get_imports() {
16861
17174
  return addHeapObject(ret);
16862
17175
  };
16863
17176
 
16864
- imports.wbg.__wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_new = function (arg0) {
16865
- const ret = InvalidIdentityCreditWithdrawalTransitionCoreFeeError.__wrap(arg0);
17177
+ imports.wbg.__wbg_invalidinstantassetlockprooferror_new = function (arg0) {
17178
+ const ret = InvalidInstantAssetLockProofError.__wrap(arg0);
17179
+
17180
+ return addHeapObject(ret);
17181
+ };
17182
+
17183
+ imports.wbg.__wbg_invalididentitypublickeysecuritylevelerror_new = function (arg0) {
17184
+ const ret = InvalidIdentityPublicKeySecurityLevelError.__wrap(arg0);
17185
+
17186
+ return addHeapObject(ret);
17187
+ };
17188
+
17189
+ imports.wbg.__wbg_invalididentitykeysignatureerror_new = function (arg0) {
17190
+ const ret = InvalidIdentityKeySignatureError.__wrap(arg0);
16866
17191
 
16867
17192
  return addHeapObject(ret);
16868
17193
  };
@@ -16873,158 +17198,164 @@ function __wbg_get_imports() {
16873
17198
  return addHeapObject(ret);
16874
17199
  };
16875
17200
 
17201
+ imports.wbg.__wbg_invalididentitycreditwithdrawaltransitioncorefeeerror_new = function (arg0) {
17202
+ const ret = InvalidIdentityCreditWithdrawalTransitionCoreFeeError.__wrap(arg0);
17203
+
17204
+ return addHeapObject(ret);
17205
+ };
17206
+
16876
17207
  imports.wbg.__wbg_notimplementedidentitycreditwithdrawaltransitionpoolingerror_new = function (arg0) {
16877
17208
  const ret = NotImplementedIdentityCreditWithdrawalTransitionPoolingError.__wrap(arg0);
16878
17209
 
16879
17210
  return addHeapObject(ret);
16880
17211
  };
16881
17212
 
16882
- imports.wbg.__wbg_invalididentitykeysignatureerror_new = function (arg0) {
16883
- const ret = InvalidIdentityKeySignatureError.__wrap(arg0);
17213
+ imports.wbg.__wbg_invalidstatetransitiontypeerror_new = function (arg0) {
17214
+ const ret = InvalidStateTransitionTypeError.__wrap(arg0);
16884
17215
 
16885
17216
  return addHeapObject(ret);
16886
17217
  };
16887
17218
 
16888
- imports.wbg.__wbg_invalididentitypublickeydataerror_new = function (arg0) {
16889
- const ret = InvalidIdentityPublicKeyDataError.__wrap(arg0);
17219
+ imports.wbg.__wbg_missingstatetransitiontypeerror_new = function (arg0) {
17220
+ const ret = MissingStateTransitionTypeError.__wrap(arg0);
16890
17221
 
16891
17222
  return addHeapObject(ret);
16892
17223
  };
16893
17224
 
16894
- imports.wbg.__wbg_invalididentitypublickeysecuritylevelerror_new = function (arg0) {
16895
- const ret = InvalidIdentityPublicKeySecurityLevelError.__wrap(arg0);
17225
+ imports.wbg.__wbg_statetransitionmaxsizeexceedederror_new = function (arg0) {
17226
+ const ret = StateTransitionMaxSizeExceededError.__wrap(arg0);
16896
17227
 
16897
17228
  return addHeapObject(ret);
16898
17229
  };
16899
17230
 
16900
- imports.wbg.__wbg_invalididentitypublickeytypeerror_new = function (arg0) {
16901
- const ret = InvalidIdentityPublicKeyTypeError.__wrap(arg0);
17231
+ imports.wbg.__wbg_datacontractalreadypresenterror_new = function (arg0) {
17232
+ const ret = DataContractAlreadyPresentError.__wrap(arg0);
16902
17233
 
16903
17234
  return addHeapObject(ret);
16904
17235
  };
16905
17236
 
16906
- imports.wbg.__wbg_invalidinstantassetlockprooferror_new = function (arg0) {
16907
- const ret = InvalidInstantAssetLockProofError.__wrap(arg0);
17237
+ imports.wbg.__wbg_documentalreadypresenterror_new = function (arg0) {
17238
+ const ret = DocumentAlreadyPresentError.__wrap(arg0);
16908
17239
 
16909
17240
  return addHeapObject(ret);
16910
17241
  };
16911
17242
 
16912
- imports.wbg.__wbg_invalidinstantassetlockproofsignatureerror_new = function (arg0) {
16913
- const ret = InvalidInstantAssetLockProofSignatureError.__wrap(arg0);
17243
+ imports.wbg.__wbg_documentnotfounderror_new = function (arg0) {
17244
+ const ret = DocumentNotFoundError.__wrap(arg0);
16914
17245
 
16915
17246
  return addHeapObject(ret);
16916
17247
  };
16917
17248
 
16918
- imports.wbg.__wbg_missingmasterpublickeyerror_new = function (arg0) {
16919
- const ret = MissingMasterPublicKeyError.__wrap(arg0);
17249
+ imports.wbg.__wbg_documentowneridmismatcherror_new = function (arg0) {
17250
+ const ret = DocumentOwnerIdMismatchError.__wrap(arg0);
16920
17251
 
16921
17252
  return addHeapObject(ret);
16922
17253
  };
16923
17254
 
16924
- imports.wbg.__wbg_missingpublickeyerror_new = function (arg0) {
16925
- const ret = MissingPublicKeyError.__wrap(arg0);
17255
+ imports.wbg.__wbg_documenttimestampsmismatcherror_new = function (arg0) {
17256
+ const ret = DocumentTimestampsMismatchError.__wrap(arg0);
16926
17257
 
16927
17258
  return addHeapObject(ret);
16928
17259
  };
16929
17260
 
16930
- imports.wbg.__wbg_incompatibleprotocolversionerror_new = function (arg0) {
16931
- const ret = IncompatibleProtocolVersionError.__wrap(arg0);
17261
+ imports.wbg.__wbg_documenttimestampwindowviolationerror_new = function (arg0) {
17262
+ const ret = DocumentTimestampWindowViolationError.__wrap(arg0);
16932
17263
 
16933
17264
  return addHeapObject(ret);
16934
17265
  };
16935
17266
 
16936
- imports.wbg.__wbg_invalididentifiererror_new = function (arg0) {
16937
- const ret = InvalidIdentifierError.__wrap(arg0);
17267
+ imports.wbg.__wbg_duplicateuniqueindexerror_new = function (arg0) {
17268
+ const ret = DuplicateUniqueIndexError.__wrap(arg0);
16938
17269
 
16939
17270
  return addHeapObject(ret);
16940
17271
  };
16941
17272
 
16942
- imports.wbg.__wbg_invalidsignaturepublickeysecuritylevelerror_new = function (arg0) {
16943
- const ret = InvalidSignaturePublicKeySecurityLevelError.__wrap(arg0);
17273
+ imports.wbg.__wbg_invaliddocumentrevisionerror_new = function (arg0) {
17274
+ const ret = InvalidDocumentRevisionError.__wrap(arg0);
16944
17275
 
16945
17276
  return addHeapObject(ret);
16946
17277
  };
16947
17278
 
16948
- imports.wbg.__wbg_invalidstatetransitionsignatureerror_new = function (arg0) {
16949
- const ret = InvalidStateTransitionSignatureError.__wrap(arg0);
17279
+ imports.wbg.__wbg_identityalreadyexistserror_new = function (arg0) {
17280
+ const ret = IdentityAlreadyExistsError.__wrap(arg0);
16950
17281
 
16951
17282
  return addHeapObject(ret);
16952
17283
  };
16953
17284
 
16954
- imports.wbg.__wbg_jsonschemacompilationerror_new = function (arg0) {
16955
- const ret = JsonSchemaCompilationError.__wrap(arg0);
17285
+ imports.wbg.__wbg_identitypublickeydisabledatwindowviolationerror_new = function (arg0) {
17286
+ const ret = IdentityPublicKeyDisabledAtWindowViolationError.__wrap(arg0);
16956
17287
 
16957
17288
  return addHeapObject(ret);
16958
17289
  };
16959
17290
 
16960
- imports.wbg.__wbg_jsonschemaerror_new = function (arg0) {
16961
- const ret = JsonSchemaError.__wrap(arg0);
17291
+ imports.wbg.__wbg_identitypublickeyisreadonlyerror_new = function (arg0) {
17292
+ const ret = IdentityPublicKeyIsReadOnlyError.__wrap(arg0);
16962
17293
 
16963
17294
  return addHeapObject(ret);
16964
17295
  };
16965
17296
 
16966
- imports.wbg.__wbg_publickeyisdisablederror_new = function (arg0) {
16967
- const ret = PublicKeyIsDisabledError.__wrap(arg0);
17297
+ imports.wbg.__wbg_missingidentitypublickeyidserror_new = function (arg0) {
17298
+ const ret = MissingIdentityPublicKeyIdsError.__wrap(arg0);
16968
17299
 
16969
17300
  return addHeapObject(ret);
16970
17301
  };
16971
17302
 
16972
- imports.wbg.__wbg_publickeysecuritylevelnotmeterror_new = function (arg0) {
16973
- const ret = PublicKeySecurityLevelNotMetError.__wrap(arg0);
17303
+ imports.wbg.__wbg_invalididentitypublickeyiderror_new = function (arg0) {
17304
+ const ret = InvalidIdentityPublicKeyIdError.__wrap(arg0);
16974
17305
 
16975
17306
  return addHeapObject(ret);
16976
17307
  };
16977
17308
 
16978
- imports.wbg.__wbg_invalidstatetransitiontypeerror_new = function (arg0) {
16979
- const ret = InvalidStateTransitionTypeError.__wrap(arg0);
17309
+ imports.wbg.__wbg_invalididentityrevisionerror_new = function (arg0) {
17310
+ const ret = InvalidIdentityRevisionError.__wrap(arg0);
16980
17311
 
16981
17312
  return addHeapObject(ret);
16982
17313
  };
16983
17314
 
16984
- imports.wbg.__wbg_missingstatetransitiontypeerror_new = function (arg0) {
16985
- const ret = MissingStateTransitionTypeError.__wrap(arg0);
17315
+ imports.wbg.__wbg_maxidentitypublickeylimitreachederror_new = function (arg0) {
17316
+ const ret = MaxIdentityPublicKeyLimitReachedError.__wrap(arg0);
16986
17317
 
16987
17318
  return addHeapObject(ret);
16988
17319
  };
16989
17320
 
16990
- imports.wbg.__wbg_statetransitionmaxsizeexceedederror_new = function (arg0) {
16991
- const ret = StateTransitionMaxSizeExceededError.__wrap(arg0);
17321
+ imports.wbg.__wbg_duplicatedidentitypublickeystateerror_new = function (arg0) {
17322
+ const ret = DuplicatedIdentityPublicKeyStateError.__wrap(arg0);
16992
17323
 
16993
17324
  return addHeapObject(ret);
16994
17325
  };
16995
17326
 
16996
- imports.wbg.__wbg_unsupportedprotocolversionerror_new = function (arg0) {
16997
- const ret = UnsupportedProtocolVersionError.__wrap(arg0);
17327
+ imports.wbg.__wbg_duplicatedidentitypublickeyidstateerror_new = function (arg0) {
17328
+ const ret = DuplicatedIdentityPublicKeyIdStateError.__wrap(arg0);
16998
17329
 
16999
17330
  return addHeapObject(ret);
17000
17331
  };
17001
17332
 
17002
- imports.wbg.__wbg_unsupportedversionerror_new = function (arg0) {
17003
- const ret = UnsupportedVersionError.__wrap(arg0);
17333
+ imports.wbg.__wbg_identitypublickeyisdisablederror_new = function (arg0) {
17334
+ const ret = IdentityPublicKeyIsDisabledError.__wrap(arg0);
17004
17335
 
17005
17336
  return addHeapObject(ret);
17006
17337
  };
17007
17338
 
17008
- imports.wbg.__wbg_wrongpublickeypurposeerror_new = function (arg0) {
17009
- const ret = WrongPublicKeyPurposeError.__wrap(arg0);
17339
+ imports.wbg.__wbg_identityinsufficientbalanceerror_new = function (arg0) {
17340
+ const ret = IdentityInsufficientBalanceError.__wrap(arg0);
17010
17341
 
17011
17342
  return addHeapObject(ret);
17012
17343
  };
17013
17344
 
17014
- imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
17015
- const ret = BalanceIsNotEnoughError.__wrap(arg0);
17345
+ imports.wbg.__wbg_documenttimestampsareequalerror_new = function (arg0) {
17346
+ const ret = DocumentTimestampsAreEqualError.__wrap(arg0);
17016
17347
 
17017
17348
  return addHeapObject(ret);
17018
17349
  };
17019
17350
 
17020
- imports.wbg.__wbg_basicblserror_new = function (arg0) {
17021
- const ret = BasicBLSError.__wrap(arg0);
17351
+ imports.wbg.__wbg_datacontractisreadonlyerror_new = function (arg0) {
17352
+ const ret = DataContractIsReadonlyError.__wrap(arg0);
17022
17353
 
17023
17354
  return addHeapObject(ret);
17024
17355
  };
17025
17356
 
17026
- imports.wbg.__wbg_basicecdsaerror_new = function (arg0) {
17027
- const ret = BasicECDSAError.__wrap(arg0);
17357
+ imports.wbg.__wbg_datacontractconfigupdateerror_new = function (arg0) {
17358
+ const ret = DataContractConfigUpdateError.__wrap(arg0);
17028
17359
 
17029
17360
  return addHeapObject(ret);
17030
17361
  };
@@ -17035,140 +17366,140 @@ function __wbg_get_imports() {
17035
17366
  return addHeapObject(ret);
17036
17367
  };
17037
17368
 
17038
- imports.wbg.__wbg_signatureshouldnotbepresenterror_new = function (arg0) {
17039
- const ret = SignatureShouldNotBePresentError.__wrap(arg0);
17369
+ imports.wbg.__wbg_invalididentitypublickeytypeerror_new = function (arg0) {
17370
+ const ret = InvalidIdentityPublicKeyTypeError.__wrap(arg0);
17040
17371
 
17041
17372
  return addHeapObject(ret);
17042
17373
  };
17043
17374
 
17044
- imports.wbg.__wbg_datacontractalreadypresenterror_new = function (arg0) {
17045
- const ret = DataContractAlreadyPresentError.__wrap(arg0);
17375
+ imports.wbg.__wbg_invalidstatetransitionsignatureerror_new = function (arg0) {
17376
+ const ret = InvalidStateTransitionSignatureError.__wrap(arg0);
17046
17377
 
17047
17378
  return addHeapObject(ret);
17048
17379
  };
17049
17380
 
17050
- imports.wbg.__wbg_datacontractconfigupdateerror_new = function (arg0) {
17051
- const ret = DataContractConfigUpdateError.__wrap(arg0);
17381
+ imports.wbg.__wbg_missingpublickeyerror_new = function (arg0) {
17382
+ const ret = MissingPublicKeyError.__wrap(arg0);
17052
17383
 
17053
17384
  return addHeapObject(ret);
17054
17385
  };
17055
17386
 
17056
- imports.wbg.__wbg_datacontractisreadonlyerror_new = function (arg0) {
17057
- const ret = DataContractIsReadonlyError.__wrap(arg0);
17387
+ imports.wbg.__wbg_invalidsignaturepublickeysecuritylevelerror_new = function (arg0) {
17388
+ const ret = InvalidSignaturePublicKeySecurityLevelError.__wrap(arg0);
17058
17389
 
17059
17390
  return addHeapObject(ret);
17060
17391
  };
17061
17392
 
17062
- imports.wbg.__wbg_documentalreadypresenterror_new = function (arg0) {
17063
- const ret = DocumentAlreadyPresentError.__wrap(arg0);
17393
+ imports.wbg.__wbg_wrongpublickeypurposeerror_new = function (arg0) {
17394
+ const ret = WrongPublicKeyPurposeError.__wrap(arg0);
17064
17395
 
17065
17396
  return addHeapObject(ret);
17066
17397
  };
17067
17398
 
17068
- imports.wbg.__wbg_documentnotfounderror_new = function (arg0) {
17069
- const ret = DocumentNotFoundError.__wrap(arg0);
17399
+ imports.wbg.__wbg_publickeyisdisablederror_new = function (arg0) {
17400
+ const ret = PublicKeyIsDisabledError.__wrap(arg0);
17070
17401
 
17071
17402
  return addHeapObject(ret);
17072
17403
  };
17073
17404
 
17074
- imports.wbg.__wbg_documentowneridmismatcherror_new = function (arg0) {
17075
- const ret = DocumentOwnerIdMismatchError.__wrap(arg0);
17405
+ imports.wbg.__wbg_publickeysecuritylevelnotmeterror_new = function (arg0) {
17406
+ const ret = PublicKeySecurityLevelNotMetError.__wrap(arg0);
17076
17407
 
17077
17408
  return addHeapObject(ret);
17078
17409
  };
17079
17410
 
17080
- imports.wbg.__wbg_documenttimestampwindowviolationerror_new = function (arg0) {
17081
- const ret = DocumentTimestampWindowViolationError.__wrap(arg0);
17411
+ imports.wbg.__wbg_signatureshouldnotbepresenterror_new = function (arg0) {
17412
+ const ret = SignatureShouldNotBePresentError.__wrap(arg0);
17082
17413
 
17083
17414
  return addHeapObject(ret);
17084
17415
  };
17085
17416
 
17086
- imports.wbg.__wbg_documenttimestampsareequalerror_new = function (arg0) {
17087
- const ret = DocumentTimestampsAreEqualError.__wrap(arg0);
17417
+ imports.wbg.__wbg_basicecdsaerror_new = function (arg0) {
17418
+ const ret = BasicECDSAError.__wrap(arg0);
17088
17419
 
17089
17420
  return addHeapObject(ret);
17090
17421
  };
17091
17422
 
17092
- imports.wbg.__wbg_documenttimestampsmismatcherror_new = function (arg0) {
17093
- const ret = DocumentTimestampsMismatchError.__wrap(arg0);
17423
+ imports.wbg.__wbg_basicblserror_new = function (arg0) {
17424
+ const ret = BasicBLSError.__wrap(arg0);
17094
17425
 
17095
17426
  return addHeapObject(ret);
17096
17427
  };
17097
17428
 
17098
- imports.wbg.__wbg_duplicateuniqueindexerror_new = function (arg0) {
17099
- const ret = DuplicateUniqueIndexError.__wrap(arg0);
17429
+ imports.wbg.__wbg_balanceisnotenougherror_new = function (arg0) {
17430
+ const ret = BalanceIsNotEnoughError.__wrap(arg0);
17100
17431
 
17101
17432
  return addHeapObject(ret);
17102
17433
  };
17103
17434
 
17104
- imports.wbg.__wbg_invaliddocumentrevisionerror_new = function (arg0) {
17105
- const ret = InvalidDocumentRevisionError.__wrap(arg0);
17435
+ imports.wbg.__wbg_datacontract_new = function (arg0) {
17436
+ const ret = DataContract.__wrap(arg0);
17106
17437
 
17107
17438
  return addHeapObject(ret);
17108
17439
  };
17109
17440
 
17110
- imports.wbg.__wbg_duplicatedidentitypublickeyidstateerror_new = function (arg0) {
17111
- const ret = DuplicatedIdentityPublicKeyIdStateError.__wrap(arg0);
17441
+ imports.wbg.__wbg_datacontractgenericerror_new = function (arg0) {
17442
+ const ret = DataContractGenericError.__wrap(arg0);
17112
17443
 
17113
17444
  return addHeapObject(ret);
17114
17445
  };
17115
17446
 
17116
- imports.wbg.__wbg_duplicatedidentitypublickeystateerror_new = function (arg0) {
17117
- const ret = DuplicatedIdentityPublicKeyStateError.__wrap(arg0);
17447
+ imports.wbg.__wbg_invaliddatacontracterror_new = function (arg0) {
17448
+ const ret = InvalidDataContractError.__wrap(arg0);
17118
17449
 
17119
17450
  return addHeapObject(ret);
17120
17451
  };
17121
17452
 
17122
- imports.wbg.__wbg_identityalreadyexistserror_new = function (arg0) {
17123
- const ret = IdentityAlreadyExistsError.__wrap(arg0);
17453
+ imports.wbg.__wbg_invaliddocumenttypeindatacontracterror_new = function (arg0) {
17454
+ const ret = InvalidDocumentTypeInDataContractError.__wrap(arg0);
17124
17455
 
17125
17456
  return addHeapObject(ret);
17126
17457
  };
17127
17458
 
17128
- imports.wbg.__wbg_identitypublickeydisabledatwindowviolationerror_new = function (arg0) {
17129
- const ret = IdentityPublicKeyDisabledAtWindowViolationError.__wrap(arg0);
17459
+ imports.wbg.__wbg_documenttransition_new = function (arg0) {
17460
+ const ret = DocumentTransition.__wrap(arg0);
17130
17461
 
17131
17462
  return addHeapObject(ret);
17132
17463
  };
17133
17464
 
17134
- imports.wbg.__wbg_identitypublickeyisdisablederror_new = function (arg0) {
17135
- const ret = IdentityPublicKeyIsDisabledError.__wrap(arg0);
17465
+ imports.wbg.__wbg_document_new = function (arg0) {
17466
+ const ret = Document.__wrap(arg0);
17136
17467
 
17137
17468
  return addHeapObject(ret);
17138
17469
  };
17139
17470
 
17140
- imports.wbg.__wbg_identitypublickeyisreadonlyerror_new = function (arg0) {
17141
- const ret = IdentityPublicKeyIsReadOnlyError.__wrap(arg0);
17471
+ imports.wbg.__wbg_datacontractuniqueindiceschangederror_new = function (arg0) {
17472
+ const ret = DataContractUniqueIndicesChangedError.__wrap(arg0);
17142
17473
 
17143
17474
  return addHeapObject(ret);
17144
17475
  };
17145
17476
 
17146
- imports.wbg.__wbg_invalididentitypublickeyiderror_new = function (arg0) {
17147
- const ret = InvalidIdentityPublicKeyIdError.__wrap(arg0);
17477
+ imports.wbg.__wbg_invalidjsonschemareferror_new = function (arg0) {
17478
+ const ret = InvalidJsonSchemaRefError.__wrap(arg0);
17148
17479
 
17149
17480
  return addHeapObject(ret);
17150
17481
  };
17151
17482
 
17152
- imports.wbg.__wbg_invalididentityrevisionerror_new = function (arg0) {
17153
- const ret = InvalidIdentityRevisionError.__wrap(arg0);
17483
+ imports.wbg.__wbg_invalidassetlockprooftransactionheighterror_new = function (arg0) {
17484
+ const ret = InvalidAssetLockProofTransactionHeightError.__wrap(arg0);
17154
17485
 
17155
17486
  return addHeapObject(ret);
17156
17487
  };
17157
17488
 
17158
- imports.wbg.__wbg_maxidentitypublickeylimitreachederror_new = function (arg0) {
17159
- const ret = MaxIdentityPublicKeyLimitReachedError.__wrap(arg0);
17489
+ imports.wbg.__wbg_invalididentitypublickeydataerror_new = function (arg0) {
17490
+ const ret = InvalidIdentityPublicKeyDataError.__wrap(arg0);
17160
17491
 
17161
17492
  return addHeapObject(ret);
17162
17493
  };
17163
17494
 
17164
- imports.wbg.__wbg_missingidentitypublickeyidserror_new = function (arg0) {
17165
- const ret = MissingIdentityPublicKeyIdsError.__wrap(arg0);
17495
+ imports.wbg.__wbg_invalidinstantassetlockproofsignatureerror_new = function (arg0) {
17496
+ const ret = InvalidInstantAssetLockProofSignatureError.__wrap(arg0);
17166
17497
 
17167
17498
  return addHeapObject(ret);
17168
17499
  };
17169
17500
 
17170
- imports.wbg.__wbg_valueerror_new = function (arg0) {
17171
- const ret = ValueError.__wrap(arg0);
17501
+ imports.wbg.__wbg_missingmasterpublickeyerror_new = function (arg0) {
17502
+ const ret = MissingMasterPublicKeyError.__wrap(arg0);
17172
17503
 
17173
17504
  return addHeapObject(ret);
17174
17505
  };
@@ -17179,6 +17510,12 @@ function __wbg_get_imports() {
17179
17510
  return addHeapObject(ret);
17180
17511
  };
17181
17512
 
17513
+ imports.wbg.__wbg_invalididentityerror_new = function (arg0) {
17514
+ const ret = InvalidIdentityError.__wrap(arg0);
17515
+
17516
+ return addHeapObject(ret);
17517
+ };
17518
+
17182
17519
  imports.wbg.__wbg_unknownassetlockprooftypeerror_new = function (arg0) {
17183
17520
  const ret = UnknownAssetLockProofTypeError.__wrap(arg0);
17184
17521
 
@@ -17203,6 +17540,63 @@ function __wbg_get_imports() {
17203
17540
  return addHeapObject(ret);
17204
17541
  };
17205
17542
 
17543
+ imports.wbg.__wbindgen_is_null = function (arg0) {
17544
+ const ret = getObject(arg0) === null;
17545
+ return ret;
17546
+ };
17547
+
17548
+ imports.wbg.__wbindgen_boolean_get = function (arg0) {
17549
+ const v = getObject(arg0);
17550
+ const ret = typeof v === 'boolean' ? v ? 1 : 0 : 2;
17551
+ return ret;
17552
+ };
17553
+
17554
+ imports.wbg.__wbindgen_is_bigint = function (arg0) {
17555
+ const ret = typeof getObject(arg0) === 'bigint';
17556
+ return ret;
17557
+ };
17558
+
17559
+ imports.wbg.__wbindgen_bigint_from_i64 = function (arg0) {
17560
+ const ret = arg0;
17561
+ return addHeapObject(ret);
17562
+ };
17563
+
17564
+ imports.wbg.__wbindgen_jsval_eq = function (arg0, arg1) {
17565
+ const ret = getObject(arg0) === getObject(arg1);
17566
+ return ret;
17567
+ };
17568
+
17569
+ imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
17570
+ const ret = BigInt.asUintN(64, arg0);
17571
+ return addHeapObject(ret);
17572
+ };
17573
+
17574
+ imports.wbg.__wbindgen_in = function (arg0, arg1) {
17575
+ const ret = (getObject(arg0) in getObject(arg1));
17576
+ return ret;
17577
+ };
17578
+
17579
+ imports.wbg.__wbg_verifySignature_381b6fbc72ef5de0 = function () {
17580
+ return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
17581
+ const ret = getObject(arg0).verifySignature(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
17582
+ return ret;
17583
+ }, arguments);
17584
+ };
17585
+
17586
+ imports.wbg.__wbg_privateKeyToPublicKey_7889a7b14dcd3e4b = function () {
17587
+ return handleError(function (arg0, arg1, arg2) {
17588
+ const ret = getObject(arg0).privateKeyToPublicKey(getArrayU8FromWasm0(arg1, arg2));
17589
+ return addHeapObject(ret);
17590
+ }, arguments);
17591
+ };
17592
+
17593
+ imports.wbg.__wbg_sign_0a75c1d0666868aa = function () {
17594
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
17595
+ const ret = getObject(arg0).sign(getArrayU8FromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
17596
+ return addHeapObject(ret);
17597
+ }, arguments);
17598
+ };
17599
+
17206
17600
  imports.wbg.__wbg_buffer_c2e5a57e637f032d = function (arg0) {
17207
17601
  const ret = getObject(arg0).buffer;
17208
17602
  return addHeapObject(ret);
@@ -17218,6 +17612,13 @@ function __wbg_get_imports() {
17218
17612
  return ret;
17219
17613
  };
17220
17614
 
17615
+ imports.wbg.__wbg_generate_e53cabf4e64ecd0f = function () {
17616
+ return handleError(function (arg0) {
17617
+ const ret = getObject(arg0).generate();
17618
+ return addHeapObject(ret);
17619
+ }, arguments);
17620
+ };
17621
+
17221
17622
  imports.wbg.__wbindgen_cb_drop = function (arg0) {
17222
17623
  const obj = takeObject(arg0).original;
17223
17624
 
@@ -17568,7 +17969,7 @@ function __wbg_get_imports() {
17568
17969
  state0.a = 0;
17569
17970
 
17570
17971
  try {
17571
- return __wbg_adapter_1188(a, state0.b, arg0, arg1);
17972
+ return __wbg_adapter_1206(a, state0.b, arg0, arg1);
17572
17973
  } finally {
17573
17974
  state0.a = a;
17574
17975
  }
@@ -17697,8 +18098,8 @@ function __wbg_get_imports() {
17697
18098
  return addHeapObject(ret);
17698
18099
  };
17699
18100
 
17700
- imports.wbg.__wbindgen_closure_wrapper2388 = function (arg0, arg1, arg2) {
17701
- const ret = makeMutClosure(arg0, arg1, 250, __wbg_adapter_56);
18101
+ imports.wbg.__wbindgen_closure_wrapper2428 = function (arg0, arg1, arg2) {
18102
+ const ret = makeMutClosure(arg0, arg1, 254, __wbg_adapter_56);
17702
18103
  return addHeapObject(ret);
17703
18104
  };
17704
18105