@sravankumar02/sdk-core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +11 -0
- package/README.md +94 -0
- package/out/abi/argSerializer.d.ts +45 -0
- package/out/abi/argSerializer.js +171 -0
- package/out/abi/argSerializer.js.map +1 -0
- package/out/abi/argumentErrorContext.d.ts +12 -0
- package/out/abi/argumentErrorContext.js +34 -0
- package/out/abi/argumentErrorContext.js.map +1 -0
- package/out/abi/code.d.ts +23 -0
- package/out/abi/code.js +41 -0
- package/out/abi/code.js.map +1 -0
- package/out/abi/codec/address.d.ts +24 -0
- package/out/abi/codec/address.js +41 -0
- package/out/abi/codec/address.js.map +1 -0
- package/out/abi/codec/arrayVec.d.ts +11 -0
- package/out/abi/codec/arrayVec.js +39 -0
- package/out/abi/codec/arrayVec.js.map +1 -0
- package/out/abi/codec/binary.d.ts +30 -0
- package/out/abi/codec/binary.js +134 -0
- package/out/abi/codec/binary.js.map +1 -0
- package/out/abi/codec/binaryCodecUtils.d.ts +6 -0
- package/out/abi/codec/binaryCodecUtils.js +35 -0
- package/out/abi/codec/binaryCodecUtils.js.map +1 -0
- package/out/abi/codec/boolean.d.ts +13 -0
- package/out/abi/codec/boolean.js +57 -0
- package/out/abi/codec/boolean.js.map +1 -0
- package/out/abi/codec/bytes.d.ts +11 -0
- package/out/abi/codec/bytes.js +30 -0
- package/out/abi/codec/bytes.js.map +1 -0
- package/out/abi/codec/codemetadata.d.ts +8 -0
- package/out/abi/codec/codemetadata.js +23 -0
- package/out/abi/codec/codemetadata.js.map +1 -0
- package/out/abi/codec/constants.d.ts +1 -0
- package/out/abi/codec/constants.js +5 -0
- package/out/abi/codec/constants.js.map +1 -0
- package/out/abi/codec/enum.d.ts +13 -0
- package/out/abi/codec/enum.js +49 -0
- package/out/abi/codec/enum.js.map +1 -0
- package/out/abi/codec/explicit-enum.d.ts +10 -0
- package/out/abi/codec/explicit-enum.js +30 -0
- package/out/abi/codec/explicit-enum.js.map +1 -0
- package/out/abi/codec/fields.d.ts +9 -0
- package/out/abi/codec/fields.js +31 -0
- package/out/abi/codec/fields.js.map +1 -0
- package/out/abi/codec/h256.d.ts +24 -0
- package/out/abi/codec/h256.js +39 -0
- package/out/abi/codec/h256.js.map +1 -0
- package/out/abi/codec/index.d.ts +6 -0
- package/out/abi/codec/index.js +19 -0
- package/out/abi/codec/index.js.map +1 -0
- package/out/abi/codec/list.d.ts +14 -0
- package/out/abi/codec/list.js +67 -0
- package/out/abi/codec/list.js.map +1 -0
- package/out/abi/codec/managedDecimal.d.ts +11 -0
- package/out/abi/codec/managedDecimal.js +53 -0
- package/out/abi/codec/managedDecimal.js.map +1 -0
- package/out/abi/codec/managedDecimalSigned.d.ts +11 -0
- package/out/abi/codec/managedDecimalSigned.js +53 -0
- package/out/abi/codec/managedDecimalSigned.js.map +1 -0
- package/out/abi/codec/nothing.d.ts +8 -0
- package/out/abi/codec/nothing.js +20 -0
- package/out/abi/codec/nothing.js.map +1 -0
- package/out/abi/codec/numerical.d.ts +13 -0
- package/out/abi/codec/numerical.js +122 -0
- package/out/abi/codec/numerical.js.map +1 -0
- package/out/abi/codec/option.d.ts +14 -0
- package/out/abi/codec/option.js +66 -0
- package/out/abi/codec/option.js.map +1 -0
- package/out/abi/codec/primitive.d.ts +20 -0
- package/out/abi/codec/primitive.js +81 -0
- package/out/abi/codec/primitive.js.map +1 -0
- package/out/abi/codec/string.d.ts +9 -0
- package/out/abi/codec/string.js +28 -0
- package/out/abi/codec/string.js.map +1 -0
- package/out/abi/codec/struct.d.ts +11 -0
- package/out/abi/codec/struct.js +30 -0
- package/out/abi/codec/struct.js.map +1 -0
- package/out/abi/codec/tokenIdentifier.d.ts +9 -0
- package/out/abi/codec/tokenIdentifier.js +28 -0
- package/out/abi/codec/tokenIdentifier.js.map +1 -0
- package/out/abi/codec/tuple.d.ts +11 -0
- package/out/abi/codec/tuple.js +23 -0
- package/out/abi/codec/tuple.js.map +1 -0
- package/out/abi/codec/utils.d.ts +20 -0
- package/out/abi/codec/utils.js +69 -0
- package/out/abi/codec/utils.js.map +1 -0
- package/out/abi/function.d.ts +24 -0
- package/out/abi/function.js +56 -0
- package/out/abi/function.js.map +1 -0
- package/out/abi/index.d.ts +12 -0
- package/out/abi/index.js +25 -0
- package/out/abi/index.js.map +1 -0
- package/out/abi/interaction.d.ts +67 -0
- package/out/abi/interaction.js +146 -0
- package/out/abi/interaction.js.map +1 -0
- package/out/abi/interface.d.ts +85 -0
- package/out/abi/interface.js +3 -0
- package/out/abi/interface.js.map +1 -0
- package/out/abi/nativeSerializer.d.ts +27 -0
- package/out/abi/nativeSerializer.js +343 -0
- package/out/abi/nativeSerializer.js.map +1 -0
- package/out/abi/query.d.ts +18 -0
- package/out/abi/query.js +19 -0
- package/out/abi/query.js.map +1 -0
- package/out/abi/returnCode.d.ts +26 -0
- package/out/abi/returnCode.js +45 -0
- package/out/abi/returnCode.js.map +1 -0
- package/out/abi/smartContract.d.ts +74 -0
- package/out/abi/smartContract.js +208 -0
- package/out/abi/smartContract.js.map +1 -0
- package/out/abi/typeFormula.d.ts +7 -0
- package/out/abi/typeFormula.js +20 -0
- package/out/abi/typeFormula.js.map +1 -0
- package/out/abi/typeFormulaParser.d.ts +14 -0
- package/out/abi/typeFormulaParser.js +126 -0
- package/out/abi/typeFormulaParser.js.map +1 -0
- package/out/abi/typesystem/abi.d.ts +64 -0
- package/out/abi/typesystem/abi.js +208 -0
- package/out/abi/typesystem/abi.js.map +1 -0
- package/out/abi/typesystem/address.d.ts +23 -0
- package/out/abi/typesystem/address.js +41 -0
- package/out/abi/typesystem/address.js.map +1 -0
- package/out/abi/typesystem/algebraic.d.ts +24 -0
- package/out/abi/typesystem/algebraic.js +59 -0
- package/out/abi/typesystem/algebraic.js.map +1 -0
- package/out/abi/typesystem/boolean.d.ts +24 -0
- package/out/abi/typesystem/boolean.js +46 -0
- package/out/abi/typesystem/boolean.js.map +1 -0
- package/out/abi/typesystem/bytes.d.ts +28 -0
- package/out/abi/typesystem/bytes.js +58 -0
- package/out/abi/typesystem/bytes.js.map +1 -0
- package/out/abi/typesystem/codeMetadata.d.ts +11 -0
- package/out/abi/typesystem/codeMetadata.js +24 -0
- package/out/abi/typesystem/codeMetadata.js.map +1 -0
- package/out/abi/typesystem/collections.d.ts +9 -0
- package/out/abi/typesystem/collections.js +32 -0
- package/out/abi/typesystem/collections.js.map +1 -0
- package/out/abi/typesystem/composite.d.ts +16 -0
- package/out/abi/typesystem/composite.js +53 -0
- package/out/abi/typesystem/composite.js.map +1 -0
- package/out/abi/typesystem/endpoint.d.ts +41 -0
- package/out/abi/typesystem/endpoint.js +78 -0
- package/out/abi/typesystem/endpoint.js.map +1 -0
- package/out/abi/typesystem/enum.d.ts +51 -0
- package/out/abi/typesystem/enum.js +137 -0
- package/out/abi/typesystem/enum.js.map +1 -0
- package/out/abi/typesystem/event.d.ts +25 -0
- package/out/abi/typesystem/event.js +36 -0
- package/out/abi/typesystem/event.js.map +1 -0
- package/out/abi/typesystem/explicit-enum.d.ts +33 -0
- package/out/abi/typesystem/explicit-enum.js +63 -0
- package/out/abi/typesystem/explicit-enum.js.map +1 -0
- package/out/abi/typesystem/factory.d.ts +4 -0
- package/out/abi/typesystem/factory.js +19 -0
- package/out/abi/typesystem/factory.js.map +1 -0
- package/out/abi/typesystem/fields.d.ts +24 -0
- package/out/abi/typesystem/fields.js +90 -0
- package/out/abi/typesystem/fields.js.map +1 -0
- package/out/abi/typesystem/generic.d.ts +47 -0
- package/out/abi/typesystem/generic.js +120 -0
- package/out/abi/typesystem/generic.js.map +1 -0
- package/out/abi/typesystem/genericArray.d.ts +17 -0
- package/out/abi/typesystem/genericArray.js +44 -0
- package/out/abi/typesystem/genericArray.js.map +1 -0
- package/out/abi/typesystem/h256.d.ts +18 -0
- package/out/abi/typesystem/h256.js +35 -0
- package/out/abi/typesystem/h256.js.map +1 -0
- package/out/abi/typesystem/index.d.ts +33 -0
- package/out/abi/typesystem/index.js +46 -0
- package/out/abi/typesystem/index.js.map +1 -0
- package/out/abi/typesystem/managedDecimal.d.ts +26 -0
- package/out/abi/typesystem/managedDecimal.js +62 -0
- package/out/abi/typesystem/managedDecimal.js.map +1 -0
- package/out/abi/typesystem/managedDecimalSigned.d.ts +26 -0
- package/out/abi/typesystem/managedDecimalSigned.js +62 -0
- package/out/abi/typesystem/managedDecimalSigned.js.map +1 -0
- package/out/abi/typesystem/matchers.d.ts +51 -0
- package/out/abi/typesystem/matchers.js +185 -0
- package/out/abi/typesystem/matchers.js.map +1 -0
- package/out/abi/typesystem/nothing.d.ts +13 -0
- package/out/abi/typesystem/nothing.js +31 -0
- package/out/abi/typesystem/nothing.js.map +1 -0
- package/out/abi/typesystem/numerical.d.ts +130 -0
- package/out/abi/typesystem/numerical.js +286 -0
- package/out/abi/typesystem/numerical.js.map +1 -0
- package/out/abi/typesystem/string.d.ts +26 -0
- package/out/abi/typesystem/string.js +51 -0
- package/out/abi/typesystem/string.js.map +1 -0
- package/out/abi/typesystem/struct.d.ts +30 -0
- package/out/abi/typesystem/struct.js +78 -0
- package/out/abi/typesystem/struct.js.map +1 -0
- package/out/abi/typesystem/tokenIdentifier.d.ts +21 -0
- package/out/abi/typesystem/tokenIdentifier.js +51 -0
- package/out/abi/typesystem/tokenIdentifier.js.map +1 -0
- package/out/abi/typesystem/tuple.d.ts +16 -0
- package/out/abi/typesystem/tuple.js +71 -0
- package/out/abi/typesystem/tuple.js.map +1 -0
- package/out/abi/typesystem/typeExpressionParser.d.ts +8 -0
- package/out/abi/typesystem/typeExpressionParser.js +30 -0
- package/out/abi/typesystem/typeExpressionParser.js.map +1 -0
- package/out/abi/typesystem/typeMapper.d.ts +20 -0
- package/out/abi/typesystem/typeMapper.js +215 -0
- package/out/abi/typesystem/typeMapper.js.map +1 -0
- package/out/abi/typesystem/types.d.ts +129 -0
- package/out/abi/typesystem/types.js +285 -0
- package/out/abi/typesystem/types.js.map +1 -0
- package/out/abi/typesystem/variadic.d.ts +35 -0
- package/out/abi/typesystem/variadic.js +81 -0
- package/out/abi/typesystem/variadic.js.map +1 -0
- package/out/accountManagement/accountController.d.ts +18 -0
- package/out/accountManagement/accountController.js +54 -0
- package/out/accountManagement/accountController.js.map +1 -0
- package/out/accountManagement/accountTransactionsFactory.d.ts +27 -0
- package/out/accountManagement/accountTransactionsFactory.js +78 -0
- package/out/accountManagement/accountTransactionsFactory.js.map +1 -0
- package/out/accountManagement/index.d.ts +3 -0
- package/out/accountManagement/index.js +16 -0
- package/out/accountManagement/index.js.map +1 -0
- package/out/accountManagement/resources.d.ts +8 -0
- package/out/accountManagement/resources.js +3 -0
- package/out/accountManagement/resources.js.map +1 -0
- package/out/accounts/account.d.ts +94 -0
- package/out/accounts/account.js +154 -0
- package/out/accounts/account.js.map +1 -0
- package/out/accounts/index.d.ts +1 -0
- package/out/accounts/index.js +14 -0
- package/out/accounts/index.js.map +1 -0
- package/out/core/address.d.ts +105 -0
- package/out/core/address.js +313 -0
- package/out/core/address.js.map +1 -0
- package/out/core/asyncTimer.d.ts +27 -0
- package/out/core/asyncTimer.js +91 -0
- package/out/core/asyncTimer.js.map +1 -0
- package/out/core/baseController.d.ts +16 -0
- package/out/core/baseController.js +34 -0
- package/out/core/baseController.js.map +1 -0
- package/out/core/codeMetadata.d.ts +74 -0
- package/out/core/codeMetadata.js +146 -0
- package/out/core/codeMetadata.js.map +1 -0
- package/out/core/compatibility.d.ts +10 -0
- package/out/core/compatibility.js +22 -0
- package/out/core/compatibility.js.map +1 -0
- package/out/core/config.d.ts +15 -0
- package/out/core/config.js +20 -0
- package/out/core/config.js.map +1 -0
- package/out/core/constants.d.ts +28 -0
- package/out/core/constants.js +32 -0
- package/out/core/constants.js.map +1 -0
- package/out/core/errors.d.ts +279 -0
- package/out/core/errors.js +437 -0
- package/out/core/errors.js.map +1 -0
- package/out/core/globals.d.ts +0 -0
- package/out/core/globals.js +5 -0
- package/out/core/globals.js.map +1 -0
- package/out/core/index.d.ts +21 -0
- package/out/core/index.js +35 -0
- package/out/core/index.js.map +1 -0
- package/out/core/interfaces.d.ts +40 -0
- package/out/core/interfaces.js +3 -0
- package/out/core/interfaces.js.map +1 -0
- package/out/core/logger.d.ts +17 -0
- package/out/core/logger.js +50 -0
- package/out/core/logger.js.map +1 -0
- package/out/core/message.d.ts +57 -0
- package/out/core/message.js +71 -0
- package/out/core/message.js.map +1 -0
- package/out/core/networkParams.d.ts +57 -0
- package/out/core/networkParams.js +112 -0
- package/out/core/networkParams.js.map +1 -0
- package/out/core/reflection.d.ts +1 -0
- package/out/core/reflection.js +14 -0
- package/out/core/reflection.js.map +1 -0
- package/out/core/signature.d.ts +17 -0
- package/out/core/signature.js +82 -0
- package/out/core/signature.js.map +1 -0
- package/out/core/smartContractQuery.d.ts +35 -0
- package/out/core/smartContractQuery.js +34 -0
- package/out/core/smartContractQuery.js.map +1 -0
- package/out/core/tokenTransfersDataBuilder.d.ts +10 -0
- package/out/core/tokenTransfersDataBuilder.js +44 -0
- package/out/core/tokenTransfersDataBuilder.js.map +1 -0
- package/out/core/tokens.d.ts +130 -0
- package/out/core/tokens.js +287 -0
- package/out/core/tokens.js.map +1 -0
- package/out/core/transaction.d.ts +263 -0
- package/out/core/transaction.js +323 -0
- package/out/core/transaction.js.map +1 -0
- package/out/core/transactionBuilder.d.ts +32 -0
- package/out/core/transactionBuilder.js +45 -0
- package/out/core/transactionBuilder.js.map +1 -0
- package/out/core/transactionComputer.d.ts +51 -0
- package/out/core/transactionComputer.js +163 -0
- package/out/core/transactionComputer.js.map +1 -0
- package/out/core/transactionEvents.d.ts +17 -0
- package/out/core/transactionEvents.js +27 -0
- package/out/core/transactionEvents.js.map +1 -0
- package/out/core/transactionLogs.d.ts +11 -0
- package/out/core/transactionLogs.js +38 -0
- package/out/core/transactionLogs.js.map +1 -0
- package/out/core/transactionOnNetwork.d.ts +40 -0
- package/out/core/transactionOnNetwork.js +164 -0
- package/out/core/transactionOnNetwork.js.map +1 -0
- package/out/core/transactionStatus.d.ts +45 -0
- package/out/core/transactionStatus.js +71 -0
- package/out/core/transactionStatus.js.map +1 -0
- package/out/core/transactionWatcher.d.ts +48 -0
- package/out/core/transactionWatcher.js +148 -0
- package/out/core/transactionWatcher.js.map +1 -0
- package/out/core/transactionsFactoryConfig.d.ts +54 -0
- package/out/core/transactionsFactoryConfig.js +66 -0
- package/out/core/transactionsFactoryConfig.js.map +1 -0
- package/out/core/utils.codec.d.ts +8 -0
- package/out/core/utils.codec.js +75 -0
- package/out/core/utils.codec.js.map +1 -0
- package/out/core/utils.d.ts +20 -0
- package/out/core/utils.js +86 -0
- package/out/core/utils.js.map +1 -0
- package/out/delegation/delegationController.d.ts +37 -0
- package/out/delegation/delegationController.js +215 -0
- package/out/delegation/delegationController.js.map +1 -0
- package/out/delegation/delegationTransactionsFactory.d.ts +48 -0
- package/out/delegation/delegationTransactionsFactory.js +311 -0
- package/out/delegation/delegationTransactionsFactory.js.map +1 -0
- package/out/delegation/delegationTransactionsOutcomeParser.d.ts +10 -0
- package/out/delegation/delegationTransactionsOutcomeParser.js +35 -0
- package/out/delegation/delegationTransactionsOutcomeParser.js.map +1 -0
- package/out/delegation/index.d.ts +4 -0
- package/out/delegation/index.js +17 -0
- package/out/delegation/index.js.map +1 -0
- package/out/delegation/resources.d.ts +38 -0
- package/out/delegation/resources.js +3 -0
- package/out/delegation/resources.js.map +1 -0
- package/out/entrypoints/config.d.ts +29 -0
- package/out/entrypoints/config.js +36 -0
- package/out/entrypoints/config.js.map +1 -0
- package/out/entrypoints/entrypoints.d.ts +92 -0
- package/out/entrypoints/entrypoints.js +203 -0
- package/out/entrypoints/entrypoints.js.map +1 -0
- package/out/entrypoints/index.d.ts +2 -0
- package/out/entrypoints/index.js +15 -0
- package/out/entrypoints/index.js.map +1 -0
- package/out/governance/governanceController.d.ts +33 -0
- package/out/governance/governanceController.js +205 -0
- package/out/governance/governanceController.js.map +1 -0
- package/out/governance/governanceTransactionsFactory.d.ts +16 -0
- package/out/governance/governanceTransactionsFactory.js +99 -0
- package/out/governance/governanceTransactionsFactory.js.map +1 -0
- package/out/governance/governanceTransactionsOutcomeParser.d.ts +15 -0
- package/out/governance/governanceTransactionsOutcomeParser.js +99 -0
- package/out/governance/governanceTransactionsOutcomeParser.js.map +1 -0
- package/out/governance/index.d.ts +4 -0
- package/out/governance/index.js +17 -0
- package/out/governance/index.js.map +1 -0
- package/out/governance/resources.d.ts +82 -0
- package/out/governance/resources.js +11 -0
- package/out/governance/resources.js.map +1 -0
- package/out/index.d.ts +19 -0
- package/out/index.js +32 -0
- package/out/index.js.map +1 -0
- package/out/multisig/index.d.ts +3 -0
- package/out/multisig/index.js +16 -0
- package/out/multisig/index.js.map +1 -0
- package/out/multisig/multisigController.d.ts +221 -0
- package/out/multisig/multisigController.js +540 -0
- package/out/multisig/multisigController.js.map +1 -0
- package/out/multisig/multisigTransactionsFactory.d.ts +110 -0
- package/out/multisig/multisigTransactionsFactory.js +355 -0
- package/out/multisig/multisigTransactionsFactory.js.map +1 -0
- package/out/multisig/multisigTransactionsOutcomeParser.d.ts +31 -0
- package/out/multisig/multisigTransactionsOutcomeParser.js +41 -0
- package/out/multisig/multisigTransactionsOutcomeParser.js.map +1 -0
- package/out/multisig/proposeTransferExecuteContractInput.d.ts +32 -0
- package/out/multisig/proposeTransferExecuteContractInput.js +65 -0
- package/out/multisig/proposeTransferExecuteContractInput.js.map +1 -0
- package/out/multisig/resources.d.ts +182 -0
- package/out/multisig/resources.js +125 -0
- package/out/multisig/resources.js.map +1 -0
- package/out/networkProviders/accountAwaiter.d.ts +35 -0
- package/out/networkProviders/accountAwaiter.js +67 -0
- package/out/networkProviders/accountAwaiter.js.map +1 -0
- package/out/networkProviders/accounts.d.ts +55 -0
- package/out/networkProviders/accounts.js +154 -0
- package/out/networkProviders/accounts.js.map +1 -0
- package/out/networkProviders/apiNetworkProvider.d.ts +48 -0
- package/out/networkProviders/apiNetworkProvider.js +235 -0
- package/out/networkProviders/apiNetworkProvider.js.map +1 -0
- package/out/networkProviders/blocks.d.ts +48 -0
- package/out/networkProviders/blocks.js +76 -0
- package/out/networkProviders/blocks.js.map +1 -0
- package/out/networkProviders/config.d.ts +6 -0
- package/out/networkProviders/config.js +18 -0
- package/out/networkProviders/config.js.map +1 -0
- package/out/networkProviders/constants.d.ts +9 -0
- package/out/networkProviders/constants.js +16 -0
- package/out/networkProviders/constants.js.map +1 -0
- package/out/networkProviders/contractQueryRequest.d.ts +6 -0
- package/out/networkProviders/contractQueryRequest.js +20 -0
- package/out/networkProviders/contractQueryRequest.js.map +1 -0
- package/out/networkProviders/index.d.ts +11 -0
- package/out/networkProviders/index.js +28 -0
- package/out/networkProviders/index.js.map +1 -0
- package/out/networkProviders/interface.d.ts +110 -0
- package/out/networkProviders/interface.js +3 -0
- package/out/networkProviders/interface.js.map +1 -0
- package/out/networkProviders/networkConfig.d.ts +48 -0
- package/out/networkProviders/networkConfig.js +41 -0
- package/out/networkProviders/networkConfig.js.map +1 -0
- package/out/networkProviders/networkProviderConfig.d.ts +4 -0
- package/out/networkProviders/networkProviderConfig.js +3 -0
- package/out/networkProviders/networkProviderConfig.js.map +1 -0
- package/out/networkProviders/networkStatus.d.ts +31 -0
- package/out/networkProviders/networkStatus.js +31 -0
- package/out/networkProviders/networkStatus.js.map +1 -0
- package/out/networkProviders/proxyNetworkProvider.d.ts +51 -0
- package/out/networkProviders/proxyNetworkProvider.js +261 -0
- package/out/networkProviders/proxyNetworkProvider.js.map +1 -0
- package/out/networkProviders/resources.d.ts +12 -0
- package/out/networkProviders/resources.js +29 -0
- package/out/networkProviders/resources.js.map +1 -0
- package/out/networkProviders/tokenDefinitions.d.ts +49 -0
- package/out/networkProviders/tokenDefinitions.js +152 -0
- package/out/networkProviders/tokenDefinitions.js.map +1 -0
- package/out/networkProviders/tokens.d.ts +40 -0
- package/out/networkProviders/tokens.js +106 -0
- package/out/networkProviders/tokens.js.map +1 -0
- package/out/networkProviders/userAgent.d.ts +2 -0
- package/out/networkProviders/userAgent.js +30 -0
- package/out/networkProviders/userAgent.js.map +1 -0
- package/out/proto/compiled.d.ts +2 -0
- package/out/proto/compiled.js +719 -0
- package/out/proto/compiled.js.map +1 -0
- package/out/proto/index.d.ts +5 -0
- package/out/proto/index.js +18 -0
- package/out/proto/index.js.map +1 -0
- package/out/proto/serializer.d.ts +22 -0
- package/out/proto/serializer.js +114 -0
- package/out/proto/serializer.js.map +1 -0
- package/out/smartContracts/index.d.ts +4 -0
- package/out/smartContracts/index.js +17 -0
- package/out/smartContracts/index.js.map +1 -0
- package/out/smartContracts/resources.d.ts +38 -0
- package/out/smartContracts/resources.js +3 -0
- package/out/smartContracts/resources.js.map +1 -0
- package/out/smartContracts/smartContractController.d.ts +32 -0
- package/out/smartContracts/smartContractController.js +128 -0
- package/out/smartContracts/smartContractController.js.map +1 -0
- package/out/smartContracts/smartContractTransactionsFactory.d.ts +42 -0
- package/out/smartContracts/smartContractTransactionsFactory.js +165 -0
- package/out/smartContracts/smartContractTransactionsFactory.js.map +1 -0
- package/out/smartContracts/smartContractTransactionsOutcomeParser.d.ts +28 -0
- package/out/smartContracts/smartContractTransactionsOutcomeParser.js +189 -0
- package/out/smartContracts/smartContractTransactionsOutcomeParser.js.map +1 -0
- package/out/tokenManagement/index.d.ts +4 -0
- package/out/tokenManagement/index.js +17 -0
- package/out/tokenManagement/index.js.map +1 -0
- package/out/tokenManagement/resources.d.ts +220 -0
- package/out/tokenManagement/resources.js +3 -0
- package/out/tokenManagement/resources.js.map +1 -0
- package/out/tokenManagement/tokenManagementController.d.ts +108 -0
- package/out/tokenManagement/tokenManagementController.js +582 -0
- package/out/tokenManagement/tokenManagementController.js.map +1 -0
- package/out/tokenManagement/tokenManagementTransactionsFactory.d.ts +82 -0
- package/out/tokenManagement/tokenManagementTransactionsFactory.js +684 -0
- package/out/tokenManagement/tokenManagementTransactionsFactory.js.map +1 -0
- package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.d.ts +109 -0
- package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.js +356 -0
- package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.js.map +1 -0
- package/out/tokenOperations/codec.d.ts +7 -0
- package/out/tokenOperations/codec.js +55 -0
- package/out/tokenOperations/codec.js.map +1 -0
- package/out/transactionsOutcomeParsers/index.d.ts +4 -0
- package/out/transactionsOutcomeParsers/index.js +17 -0
- package/out/transactionsOutcomeParsers/index.js.map +1 -0
- package/out/transactionsOutcomeParsers/resources.d.ts +23 -0
- package/out/transactionsOutcomeParsers/resources.js +48 -0
- package/out/transactionsOutcomeParsers/resources.js.map +1 -0
- package/out/transactionsOutcomeParsers/transactionEventsParser.d.ts +16 -0
- package/out/transactionsOutcomeParsers/transactionEventsParser.js +48 -0
- package/out/transactionsOutcomeParsers/transactionEventsParser.js.map +1 -0
- package/out/transfers/index.d.ts +3 -0
- package/out/transfers/index.js +16 -0
- package/out/transfers/index.js.map +1 -0
- package/out/transfers/resources.d.ts +17 -0
- package/out/transfers/resources.js +3 -0
- package/out/transfers/resources.js.map +1 -0
- package/out/transfers/transferTransactionsFactory.d.ts +32 -0
- package/out/transfers/transferTransactionsFactory.js +131 -0
- package/out/transfers/transferTransactionsFactory.js.map +1 -0
- package/out/transfers/transfersControllers.d.ts +11 -0
- package/out/transfers/transfersControllers.js +43 -0
- package/out/transfers/transfersControllers.js.map +1 -0
- package/out/wallet/assertions.d.ts +3 -0
- package/out/wallet/assertions.js +12 -0
- package/out/wallet/assertions.js.map +1 -0
- package/out/wallet/crypto/constants.d.ts +6 -0
- package/out/wallet/crypto/constants.js +11 -0
- package/out/wallet/crypto/constants.js.map +1 -0
- package/out/wallet/crypto/decryptor.d.ts +5 -0
- package/out/wallet/crypto/decryptor.js +29 -0
- package/out/wallet/crypto/decryptor.js.map +1 -0
- package/out/wallet/crypto/derivationParams.d.ts +23 -0
- package/out/wallet/crypto/derivationParams.js +38 -0
- package/out/wallet/crypto/derivationParams.js.map +1 -0
- package/out/wallet/crypto/encryptedData.d.ts +15 -0
- package/out/wallet/crypto/encryptedData.js +52 -0
- package/out/wallet/crypto/encryptedData.js.map +1 -0
- package/out/wallet/crypto/encryptor.d.ts +14 -0
- package/out/wallet/crypto/encryptor.js +39 -0
- package/out/wallet/crypto/encryptor.js.map +1 -0
- package/out/wallet/crypto/index.d.ts +7 -0
- package/out/wallet/crypto/index.js +20 -0
- package/out/wallet/crypto/index.js.map +1 -0
- package/out/wallet/crypto/pubkeyDecryptor.d.ts +6 -0
- package/out/wallet/crypto/pubkeyDecryptor.js +38 -0
- package/out/wallet/crypto/pubkeyDecryptor.js.map +1 -0
- package/out/wallet/crypto/pubkeyEncryptor.d.ts +6 -0
- package/out/wallet/crypto/pubkeyEncryptor.js +54 -0
- package/out/wallet/crypto/pubkeyEncryptor.js.map +1 -0
- package/out/wallet/crypto/randomness.d.ts +7 -0
- package/out/wallet/crypto/randomness.js +15 -0
- package/out/wallet/crypto/randomness.js.map +1 -0
- package/out/wallet/crypto/x25519EncryptedData.d.ts +15 -0
- package/out/wallet/crypto/x25519EncryptedData.js +37 -0
- package/out/wallet/crypto/x25519EncryptedData.js.map +1 -0
- package/out/wallet/index.d.ts +11 -0
- package/out/wallet/index.js +24 -0
- package/out/wallet/index.js.map +1 -0
- package/out/wallet/keypair.d.ts +12 -0
- package/out/wallet/keypair.js +32 -0
- package/out/wallet/keypair.js.map +1 -0
- package/out/wallet/mnemonic.d.ts +13 -0
- package/out/wallet/mnemonic.js +74 -0
- package/out/wallet/mnemonic.js.map +1 -0
- package/out/wallet/pem.d.ts +8 -0
- package/out/wallet/pem.js +60 -0
- package/out/wallet/pem.js.map +1 -0
- package/out/wallet/pemEntry.d.ts +10 -0
- package/out/wallet/pemEntry.js +73 -0
- package/out/wallet/pemEntry.js.map +1 -0
- package/out/wallet/userKeys.d.ts +23 -0
- package/out/wallet/userKeys.js +99 -0
- package/out/wallet/userKeys.js.map +1 -0
- package/out/wallet/userPem.d.ts +15 -0
- package/out/wallet/userPem.js +51 -0
- package/out/wallet/userPem.js.map +1 -0
- package/out/wallet/userSigner.d.ts +16 -0
- package/out/wallet/userSigner.js +41 -0
- package/out/wallet/userSigner.js.map +1 -0
- package/out/wallet/userVerifier.d.ts +18 -0
- package/out/wallet/userVerifier.js +27 -0
- package/out/wallet/userVerifier.js.map +1 -0
- package/out/wallet/userWallet.d.ts +54 -0
- package/out/wallet/userWallet.js +206 -0
- package/out/wallet/userWallet.js.map +1 -0
- package/out/wallet/validatorKeys.d.ts +26 -0
- package/out/wallet/validatorKeys.js +77 -0
- package/out/wallet/validatorKeys.js.map +1 -0
- package/out/wallet/validatorSigner.d.ts +10 -0
- package/out/wallet/validatorSigner.js +25 -0
- package/out/wallet/validatorSigner.js.map +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The base class for exceptions (errors).
|
|
3
|
+
*/
|
|
4
|
+
export declare class Err extends Error {
|
|
5
|
+
inner: Error | undefined;
|
|
6
|
+
constructor(message: string, inner?: Error);
|
|
7
|
+
/**
|
|
8
|
+
* Returns a pretty, friendly summary for the error or for the chain of errros (if appropriate).
|
|
9
|
+
*/
|
|
10
|
+
summary(): any[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Signals invalid arguments for a function, for an operation.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ErrInvalidArgument extends Err {
|
|
16
|
+
constructor(message: string, inner?: Error);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Signals an unsupported operation.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ErrUnsupportedOperation extends Err {
|
|
22
|
+
constructor(operation: string, reason?: string);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Signals the provisioning of objects of unexpected (bad) types.
|
|
26
|
+
*/
|
|
27
|
+
export declare class ErrBadType extends Err {
|
|
28
|
+
constructor(name: string, type: any, value?: any);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Signals that an invariant failed.
|
|
32
|
+
*/
|
|
33
|
+
export declare class ErrInvariantFailed extends Err {
|
|
34
|
+
constructor(message: string);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Signals an unexpected condition.
|
|
38
|
+
*/
|
|
39
|
+
export declare class ErrUnexpectedCondition extends Err {
|
|
40
|
+
constructor(message: string);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Signals issues with {@link Address} instantiation.
|
|
44
|
+
*/
|
|
45
|
+
export declare class ErrAddressCannotCreate extends Err {
|
|
46
|
+
constructor(input: any, inner?: Error);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Signals issues with the HRP of an {@link Address}.
|
|
50
|
+
*/
|
|
51
|
+
export declare class ErrAddressBadHrp extends Err {
|
|
52
|
+
constructor(expected: string, got: string);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Signals the presence of an empty / invalid address.
|
|
56
|
+
*/
|
|
57
|
+
export declare class ErrAddressEmpty extends Err {
|
|
58
|
+
constructor();
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Signals an invalid value for gas limit.
|
|
62
|
+
*/
|
|
63
|
+
export declare class ErrNotEnoughGas extends Err {
|
|
64
|
+
constructor(value: number);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Signals an invalid value for nonce.
|
|
68
|
+
*/
|
|
69
|
+
export declare class ErrNonceInvalid extends Err {
|
|
70
|
+
constructor(value: number);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Signals an invalid value for transaction version.
|
|
74
|
+
*/
|
|
75
|
+
export declare class ErrTransactionVersionInvalid extends Err {
|
|
76
|
+
constructor(value: number);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Signals an invalid value for transaction options.
|
|
80
|
+
*/
|
|
81
|
+
export declare class ErrTransactionOptionsInvalid extends Err {
|
|
82
|
+
constructor(value: number);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Signals an error related to signing a message (a transaction).
|
|
86
|
+
*/
|
|
87
|
+
export declare class ErrSignatureCannotCreate extends Err {
|
|
88
|
+
constructor(input: any, inner?: Error);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Signals an invalid value for the name of a {@link ContractFunction}.
|
|
92
|
+
*/
|
|
93
|
+
export declare class ErrInvalidFunctionName extends Err {
|
|
94
|
+
constructor();
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Signals a failed operation, since the Timer is already running.
|
|
98
|
+
*/
|
|
99
|
+
export declare class ErrAsyncTimerAlreadyRunning extends Err {
|
|
100
|
+
constructor();
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Signals a failed operation, since the Timer has been aborted.
|
|
104
|
+
*/
|
|
105
|
+
export declare class ErrAsyncTimerAborted extends Err {
|
|
106
|
+
constructor();
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Signals a timout for a {@link TransactionWatcher}.
|
|
110
|
+
*/
|
|
111
|
+
export declare class ErrTransactionWatcherTimeout extends Err {
|
|
112
|
+
constructor();
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Signals an issue related to waiting for a specific transaction status.
|
|
116
|
+
*/
|
|
117
|
+
export declare class ErrExpectedTransactionStatusNotReached extends Err {
|
|
118
|
+
constructor();
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Signals an issue related to waiting for specific transaction events.
|
|
122
|
+
*/
|
|
123
|
+
export declare class ErrExpectedTransactionEventsNotFound extends Err {
|
|
124
|
+
constructor();
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Signals a generic error in the context of Smart Contracts.
|
|
128
|
+
*/
|
|
129
|
+
export declare class ErrContract extends Err {
|
|
130
|
+
constructor(message: string);
|
|
131
|
+
}
|
|
132
|
+
export declare class ErrContractHasNoAddress extends ErrContract {
|
|
133
|
+
constructor();
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Signals an error thrown by the mock-like test objects.
|
|
137
|
+
*/
|
|
138
|
+
export declare class ErrMock extends Err {
|
|
139
|
+
constructor(message: string);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Signals a generic type error.
|
|
143
|
+
*/
|
|
144
|
+
export declare class ErrTypingSystem extends Err {
|
|
145
|
+
constructor(message: string);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Signals a missing field on a struct.
|
|
149
|
+
*/
|
|
150
|
+
export declare class ErrMissingFieldOnStruct extends Err {
|
|
151
|
+
constructor(fieldName: string, structName: string);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Signals a missing field on an enum.
|
|
155
|
+
*/
|
|
156
|
+
export declare class ErrMissingFieldOnEnum extends Err {
|
|
157
|
+
constructor(fieldName: string, enumName: string);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Signals an error when parsing the contract results.
|
|
161
|
+
*/
|
|
162
|
+
export declare class ErrCannotParseContractResults extends Err {
|
|
163
|
+
constructor(details: string);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Signals an error when parsing the outcome of a transaction (results and logs).
|
|
167
|
+
*/
|
|
168
|
+
export declare class ErrCannotParseTransactionOutcome extends Err {
|
|
169
|
+
constructor(transactionHash: string, message: string);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Signals a generic codec (encode / decode) error.
|
|
173
|
+
*/
|
|
174
|
+
export declare class ErrCodec extends Err {
|
|
175
|
+
constructor(message: string);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Signals a generic contract interaction error.
|
|
179
|
+
*/
|
|
180
|
+
export declare class ErrContractInteraction extends Err {
|
|
181
|
+
constructor(message: string);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Signals that a method is not yet implemented
|
|
185
|
+
*/
|
|
186
|
+
export declare class ErrNotImplemented extends Err {
|
|
187
|
+
constructor();
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Signals that the `isCompleted` property is missing on the transaction obect and is needed for the Transaction Watcher
|
|
191
|
+
*/
|
|
192
|
+
export declare class ErrIsCompletedFieldIsMissingOnTransaction extends Err {
|
|
193
|
+
constructor();
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Signals that the provided token identifier is not valid
|
|
197
|
+
*/
|
|
198
|
+
export declare class ErrInvalidTokenIdentifier extends Err {
|
|
199
|
+
constructor(message: string);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Signals a generic bad usage error
|
|
203
|
+
*/
|
|
204
|
+
export declare class ErrBadUsage extends Err {
|
|
205
|
+
constructor(message: string);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Signals an invalid inner transaction for relayed transactions
|
|
209
|
+
*/
|
|
210
|
+
export declare class ErrInvalidInnerTransaction extends Err {
|
|
211
|
+
constructor(message: string);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Signals an error when parsing the logs of a transaction.
|
|
215
|
+
*/
|
|
216
|
+
export declare class ErrParseTransactionOutcome extends Err {
|
|
217
|
+
constructor(message: string);
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Signals an error when querying a smart contract.
|
|
221
|
+
*/
|
|
222
|
+
export declare class ErrSmartContractQuery extends Err {
|
|
223
|
+
returnCode: string;
|
|
224
|
+
constructor(returnCode: string, message: string);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Signals a wrong mnemonic format.
|
|
228
|
+
*/
|
|
229
|
+
export declare class ErrWrongMnemonic extends Err {
|
|
230
|
+
constructor();
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Signals a bad mnemonic entropy.
|
|
234
|
+
*/
|
|
235
|
+
export declare class ErrBadMnemonicEntropy extends Err {
|
|
236
|
+
constructor(inner: Error);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Signals a bad PEM file.
|
|
240
|
+
*/
|
|
241
|
+
export declare class ErrBadPEM extends Err {
|
|
242
|
+
constructor(message?: string);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Signals an error related to signing a message (a transaction).
|
|
246
|
+
*/
|
|
247
|
+
export declare class ErrSignerCannotSign extends Err {
|
|
248
|
+
constructor(inner: Error);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Signals a bad address.
|
|
252
|
+
*/
|
|
253
|
+
export declare class ErrBadAddress extends Err {
|
|
254
|
+
constructor(value: string, inner?: Error);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Signals an error that happened during a request against the Network.
|
|
258
|
+
*/
|
|
259
|
+
export declare class ErrNetworkProvider extends Err {
|
|
260
|
+
constructor(url: string, error: string, inner?: Error);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Signals a generic error in the context of querying Smart Contracts.
|
|
264
|
+
*/
|
|
265
|
+
export declare class ErrContractQuery extends Err {
|
|
266
|
+
constructor(originalError: Error);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Signals that the network provider provided is not valid
|
|
270
|
+
*/
|
|
271
|
+
export declare class ErrInvalidNetworkProviderKind extends Err {
|
|
272
|
+
constructor();
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Signals that the account condition was not reached
|
|
276
|
+
*/
|
|
277
|
+
export declare class ExpectedAccountConditionNotReachedError extends Err {
|
|
278
|
+
constructor();
|
|
279
|
+
}
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExpectedAccountConditionNotReachedError = exports.ErrInvalidNetworkProviderKind = exports.ErrContractQuery = exports.ErrNetworkProvider = exports.ErrBadAddress = exports.ErrSignerCannotSign = exports.ErrBadPEM = exports.ErrBadMnemonicEntropy = exports.ErrWrongMnemonic = exports.ErrSmartContractQuery = exports.ErrParseTransactionOutcome = exports.ErrInvalidInnerTransaction = exports.ErrBadUsage = exports.ErrInvalidTokenIdentifier = exports.ErrIsCompletedFieldIsMissingOnTransaction = exports.ErrNotImplemented = exports.ErrContractInteraction = exports.ErrCodec = exports.ErrCannotParseTransactionOutcome = exports.ErrCannotParseContractResults = exports.ErrMissingFieldOnEnum = exports.ErrMissingFieldOnStruct = exports.ErrTypingSystem = exports.ErrMock = exports.ErrContractHasNoAddress = exports.ErrContract = exports.ErrExpectedTransactionEventsNotFound = exports.ErrExpectedTransactionStatusNotReached = exports.ErrTransactionWatcherTimeout = exports.ErrAsyncTimerAborted = exports.ErrAsyncTimerAlreadyRunning = exports.ErrInvalidFunctionName = exports.ErrSignatureCannotCreate = exports.ErrTransactionOptionsInvalid = exports.ErrTransactionVersionInvalid = exports.ErrNonceInvalid = exports.ErrNotEnoughGas = exports.ErrAddressEmpty = exports.ErrAddressBadHrp = exports.ErrAddressCannotCreate = exports.ErrUnexpectedCondition = exports.ErrInvariantFailed = exports.ErrBadType = exports.ErrUnsupportedOperation = exports.ErrInvalidArgument = exports.Err = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The base class for exceptions (errors).
|
|
6
|
+
*/
|
|
7
|
+
class Err extends Error {
|
|
8
|
+
constructor(message, inner) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.inner = undefined;
|
|
11
|
+
this.inner = inner;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Returns a pretty, friendly summary for the error or for the chain of errros (if appropriate).
|
|
15
|
+
*/
|
|
16
|
+
summary() {
|
|
17
|
+
const result = [];
|
|
18
|
+
result.push({ name: this.name, message: this.message });
|
|
19
|
+
let inner = this.inner;
|
|
20
|
+
while (inner) {
|
|
21
|
+
result.push({ name: inner.name, message: inner.message });
|
|
22
|
+
inner = inner.inner;
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Err = Err;
|
|
28
|
+
/**
|
|
29
|
+
* Signals invalid arguments for a function, for an operation.
|
|
30
|
+
*/
|
|
31
|
+
class ErrInvalidArgument extends Err {
|
|
32
|
+
constructor(message, inner) {
|
|
33
|
+
super(`Invalid argument: ${message}`, inner);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ErrInvalidArgument = ErrInvalidArgument;
|
|
37
|
+
/**
|
|
38
|
+
* Signals an unsupported operation.
|
|
39
|
+
*/
|
|
40
|
+
class ErrUnsupportedOperation extends Err {
|
|
41
|
+
constructor(operation, reason = "not specified") {
|
|
42
|
+
super(`Operation "${operation}" not supported. Reason: ${reason}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ErrUnsupportedOperation = ErrUnsupportedOperation;
|
|
46
|
+
/**
|
|
47
|
+
* Signals the provisioning of objects of unexpected (bad) types.
|
|
48
|
+
*/
|
|
49
|
+
class ErrBadType extends Err {
|
|
50
|
+
constructor(name, type, value) {
|
|
51
|
+
super(`Bad type of "${name}": ${value}. Expected type: ${type}`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.ErrBadType = ErrBadType;
|
|
55
|
+
/**
|
|
56
|
+
* Signals that an invariant failed.
|
|
57
|
+
*/
|
|
58
|
+
class ErrInvariantFailed extends Err {
|
|
59
|
+
constructor(message) {
|
|
60
|
+
super(`Invariant failed: [${message}]`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.ErrInvariantFailed = ErrInvariantFailed;
|
|
64
|
+
/**
|
|
65
|
+
* Signals an unexpected condition.
|
|
66
|
+
*/
|
|
67
|
+
class ErrUnexpectedCondition extends Err {
|
|
68
|
+
constructor(message) {
|
|
69
|
+
super(`Unexpected condition: [${message}]`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.ErrUnexpectedCondition = ErrUnexpectedCondition;
|
|
73
|
+
/**
|
|
74
|
+
* Signals issues with {@link Address} instantiation.
|
|
75
|
+
*/
|
|
76
|
+
class ErrAddressCannotCreate extends Err {
|
|
77
|
+
constructor(input, inner) {
|
|
78
|
+
const message = `Cannot create address from: ${input}`;
|
|
79
|
+
super(message, inner);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ErrAddressCannotCreate = ErrAddressCannotCreate;
|
|
83
|
+
/**
|
|
84
|
+
* Signals issues with the HRP of an {@link Address}.
|
|
85
|
+
*/
|
|
86
|
+
class ErrAddressBadHrp extends Err {
|
|
87
|
+
constructor(expected, got) {
|
|
88
|
+
super(`Wrong address HRP. Expected: ${expected}, got ${got}`);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.ErrAddressBadHrp = ErrAddressBadHrp;
|
|
92
|
+
/**
|
|
93
|
+
* Signals the presence of an empty / invalid address.
|
|
94
|
+
*/
|
|
95
|
+
class ErrAddressEmpty extends Err {
|
|
96
|
+
constructor() {
|
|
97
|
+
super(`Address is empty`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.ErrAddressEmpty = ErrAddressEmpty;
|
|
101
|
+
/**
|
|
102
|
+
* Signals an invalid value for gas limit.
|
|
103
|
+
*/
|
|
104
|
+
class ErrNotEnoughGas extends Err {
|
|
105
|
+
constructor(value) {
|
|
106
|
+
super(`Not enough gas provided: ${value}`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.ErrNotEnoughGas = ErrNotEnoughGas;
|
|
110
|
+
/**
|
|
111
|
+
* Signals an invalid value for nonce.
|
|
112
|
+
*/
|
|
113
|
+
class ErrNonceInvalid extends Err {
|
|
114
|
+
constructor(value) {
|
|
115
|
+
super(`Invalid nonce: ${value}`);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.ErrNonceInvalid = ErrNonceInvalid;
|
|
119
|
+
/**
|
|
120
|
+
* Signals an invalid value for transaction version.
|
|
121
|
+
*/
|
|
122
|
+
class ErrTransactionVersionInvalid extends Err {
|
|
123
|
+
constructor(value) {
|
|
124
|
+
super(`Invalid transaction version: ${value}`);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.ErrTransactionVersionInvalid = ErrTransactionVersionInvalid;
|
|
128
|
+
/**
|
|
129
|
+
* Signals an invalid value for transaction options.
|
|
130
|
+
*/
|
|
131
|
+
class ErrTransactionOptionsInvalid extends Err {
|
|
132
|
+
constructor(value) {
|
|
133
|
+
super(`Invalid transaction options: ${value}`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.ErrTransactionOptionsInvalid = ErrTransactionOptionsInvalid;
|
|
137
|
+
/**
|
|
138
|
+
* Signals an error related to signing a message (a transaction).
|
|
139
|
+
*/
|
|
140
|
+
class ErrSignatureCannotCreate extends Err {
|
|
141
|
+
constructor(input, inner) {
|
|
142
|
+
const message = `Cannot create signature from: ${input}`;
|
|
143
|
+
super(message, inner);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.ErrSignatureCannotCreate = ErrSignatureCannotCreate;
|
|
147
|
+
/**
|
|
148
|
+
* Signals an invalid value for the name of a {@link ContractFunction}.
|
|
149
|
+
*/
|
|
150
|
+
class ErrInvalidFunctionName extends Err {
|
|
151
|
+
constructor() {
|
|
152
|
+
super(`Invalid function name`);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.ErrInvalidFunctionName = ErrInvalidFunctionName;
|
|
156
|
+
/**
|
|
157
|
+
* Signals a failed operation, since the Timer is already running.
|
|
158
|
+
*/
|
|
159
|
+
class ErrAsyncTimerAlreadyRunning extends Err {
|
|
160
|
+
constructor() {
|
|
161
|
+
super("Async timer already running");
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.ErrAsyncTimerAlreadyRunning = ErrAsyncTimerAlreadyRunning;
|
|
165
|
+
/**
|
|
166
|
+
* Signals a failed operation, since the Timer has been aborted.
|
|
167
|
+
*/
|
|
168
|
+
class ErrAsyncTimerAborted extends Err {
|
|
169
|
+
constructor() {
|
|
170
|
+
super("Async timer aborted");
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.ErrAsyncTimerAborted = ErrAsyncTimerAborted;
|
|
174
|
+
/**
|
|
175
|
+
* Signals a timout for a {@link TransactionWatcher}.
|
|
176
|
+
*/
|
|
177
|
+
class ErrTransactionWatcherTimeout extends Err {
|
|
178
|
+
constructor() {
|
|
179
|
+
super(`TransactionWatcher has timed out`);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
exports.ErrTransactionWatcherTimeout = ErrTransactionWatcherTimeout;
|
|
183
|
+
/**
|
|
184
|
+
* Signals an issue related to waiting for a specific transaction status.
|
|
185
|
+
*/
|
|
186
|
+
class ErrExpectedTransactionStatusNotReached extends Err {
|
|
187
|
+
constructor() {
|
|
188
|
+
super(`Expected transaction status not reached`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.ErrExpectedTransactionStatusNotReached = ErrExpectedTransactionStatusNotReached;
|
|
192
|
+
/**
|
|
193
|
+
* Signals an issue related to waiting for specific transaction events.
|
|
194
|
+
*/
|
|
195
|
+
class ErrExpectedTransactionEventsNotFound extends Err {
|
|
196
|
+
constructor() {
|
|
197
|
+
super(`Expected transaction events not found`);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
exports.ErrExpectedTransactionEventsNotFound = ErrExpectedTransactionEventsNotFound;
|
|
201
|
+
/**
|
|
202
|
+
* Signals a generic error in the context of Smart Contracts.
|
|
203
|
+
*/
|
|
204
|
+
class ErrContract extends Err {
|
|
205
|
+
constructor(message) {
|
|
206
|
+
super(message);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.ErrContract = ErrContract;
|
|
210
|
+
class ErrContractHasNoAddress extends ErrContract {
|
|
211
|
+
constructor() {
|
|
212
|
+
super(`
|
|
213
|
+
The smart contract has no address set. Make sure you provide the address in the constructor, or call setAddress() appropriately.
|
|
214
|
+
If you need to recompute the address of the contract, make use of SmartContract.computeAddress() (static method).
|
|
215
|
+
`);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
exports.ErrContractHasNoAddress = ErrContractHasNoAddress;
|
|
219
|
+
/**
|
|
220
|
+
* Signals an error thrown by the mock-like test objects.
|
|
221
|
+
*/
|
|
222
|
+
class ErrMock extends Err {
|
|
223
|
+
constructor(message) {
|
|
224
|
+
super(message);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.ErrMock = ErrMock;
|
|
228
|
+
/**
|
|
229
|
+
* Signals a generic type error.
|
|
230
|
+
*/
|
|
231
|
+
class ErrTypingSystem extends Err {
|
|
232
|
+
constructor(message) {
|
|
233
|
+
super(message);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
exports.ErrTypingSystem = ErrTypingSystem;
|
|
237
|
+
/**
|
|
238
|
+
* Signals a missing field on a struct.
|
|
239
|
+
*/
|
|
240
|
+
class ErrMissingFieldOnStruct extends Err {
|
|
241
|
+
constructor(fieldName, structName) {
|
|
242
|
+
super(`field ${fieldName} does not exist on struct ${structName}`);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
exports.ErrMissingFieldOnStruct = ErrMissingFieldOnStruct;
|
|
246
|
+
/**
|
|
247
|
+
* Signals a missing field on an enum.
|
|
248
|
+
*/
|
|
249
|
+
class ErrMissingFieldOnEnum extends Err {
|
|
250
|
+
constructor(fieldName, enumName) {
|
|
251
|
+
super(`field ${fieldName} does not exist on enum ${enumName}`);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
exports.ErrMissingFieldOnEnum = ErrMissingFieldOnEnum;
|
|
255
|
+
/**
|
|
256
|
+
* Signals an error when parsing the contract results.
|
|
257
|
+
*/
|
|
258
|
+
class ErrCannotParseContractResults extends Err {
|
|
259
|
+
constructor(details) {
|
|
260
|
+
super(`cannot parse contract results: ${details}`);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
exports.ErrCannotParseContractResults = ErrCannotParseContractResults;
|
|
264
|
+
/**
|
|
265
|
+
* Signals an error when parsing the outcome of a transaction (results and logs).
|
|
266
|
+
*/
|
|
267
|
+
class ErrCannotParseTransactionOutcome extends Err {
|
|
268
|
+
constructor(transactionHash, message) {
|
|
269
|
+
super(`cannot parse outcome of transaction ${transactionHash}: ${message}`);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
exports.ErrCannotParseTransactionOutcome = ErrCannotParseTransactionOutcome;
|
|
273
|
+
/**
|
|
274
|
+
* Signals a generic codec (encode / decode) error.
|
|
275
|
+
*/
|
|
276
|
+
class ErrCodec extends Err {
|
|
277
|
+
constructor(message) {
|
|
278
|
+
super(message);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
exports.ErrCodec = ErrCodec;
|
|
282
|
+
/**
|
|
283
|
+
* Signals a generic contract interaction error.
|
|
284
|
+
*/
|
|
285
|
+
class ErrContractInteraction extends Err {
|
|
286
|
+
constructor(message) {
|
|
287
|
+
super(message);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
exports.ErrContractInteraction = ErrContractInteraction;
|
|
291
|
+
/**
|
|
292
|
+
* Signals that a method is not yet implemented
|
|
293
|
+
*/
|
|
294
|
+
class ErrNotImplemented extends Err {
|
|
295
|
+
constructor() {
|
|
296
|
+
super("Method not yet implemented");
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
exports.ErrNotImplemented = ErrNotImplemented;
|
|
300
|
+
/**
|
|
301
|
+
* Signals that the `isCompleted` property is missing on the transaction obect and is needed for the Transaction Watcher
|
|
302
|
+
*/
|
|
303
|
+
class ErrIsCompletedFieldIsMissingOnTransaction extends Err {
|
|
304
|
+
constructor() {
|
|
305
|
+
super("The transaction watcher requires the `isCompleted` property to be defined on the transaction object. Perhaps you've used the sdk-network-provider's `ProxyNetworkProvider.getTransaction()` and in that case you should also pass `withProcessStatus=true`.");
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
exports.ErrIsCompletedFieldIsMissingOnTransaction = ErrIsCompletedFieldIsMissingOnTransaction;
|
|
309
|
+
/**
|
|
310
|
+
* Signals that the provided token identifier is not valid
|
|
311
|
+
*/
|
|
312
|
+
class ErrInvalidTokenIdentifier extends Err {
|
|
313
|
+
constructor(message) {
|
|
314
|
+
super(message);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
exports.ErrInvalidTokenIdentifier = ErrInvalidTokenIdentifier;
|
|
318
|
+
/**
|
|
319
|
+
* Signals a generic bad usage error
|
|
320
|
+
*/
|
|
321
|
+
class ErrBadUsage extends Err {
|
|
322
|
+
constructor(message) {
|
|
323
|
+
super(message);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
exports.ErrBadUsage = ErrBadUsage;
|
|
327
|
+
/**
|
|
328
|
+
* Signals an invalid inner transaction for relayed transactions
|
|
329
|
+
*/
|
|
330
|
+
class ErrInvalidInnerTransaction extends Err {
|
|
331
|
+
constructor(message) {
|
|
332
|
+
super(message);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
exports.ErrInvalidInnerTransaction = ErrInvalidInnerTransaction;
|
|
336
|
+
/**
|
|
337
|
+
* Signals an error when parsing the logs of a transaction.
|
|
338
|
+
*/
|
|
339
|
+
class ErrParseTransactionOutcome extends Err {
|
|
340
|
+
constructor(message) {
|
|
341
|
+
super(message);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
exports.ErrParseTransactionOutcome = ErrParseTransactionOutcome;
|
|
345
|
+
/**
|
|
346
|
+
* Signals an error when querying a smart contract.
|
|
347
|
+
*/
|
|
348
|
+
class ErrSmartContractQuery extends Err {
|
|
349
|
+
constructor(returnCode, message) {
|
|
350
|
+
super(message);
|
|
351
|
+
this.returnCode = returnCode;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
exports.ErrSmartContractQuery = ErrSmartContractQuery;
|
|
355
|
+
/**
|
|
356
|
+
* Signals a wrong mnemonic format.
|
|
357
|
+
*/
|
|
358
|
+
class ErrWrongMnemonic extends Err {
|
|
359
|
+
constructor() {
|
|
360
|
+
super("Wrong mnemonic format");
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
exports.ErrWrongMnemonic = ErrWrongMnemonic;
|
|
364
|
+
/**
|
|
365
|
+
* Signals a bad mnemonic entropy.
|
|
366
|
+
*/
|
|
367
|
+
class ErrBadMnemonicEntropy extends Err {
|
|
368
|
+
constructor(inner) {
|
|
369
|
+
super("Bad mnemonic entropy", inner);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
exports.ErrBadMnemonicEntropy = ErrBadMnemonicEntropy;
|
|
373
|
+
/**
|
|
374
|
+
* Signals a bad PEM file.
|
|
375
|
+
*/
|
|
376
|
+
class ErrBadPEM extends Err {
|
|
377
|
+
constructor(message) {
|
|
378
|
+
super(message ? `Bad PEM: ${message}` : `Bad PEM`);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
exports.ErrBadPEM = ErrBadPEM;
|
|
382
|
+
/**
|
|
383
|
+
* Signals an error related to signing a message (a transaction).
|
|
384
|
+
*/
|
|
385
|
+
class ErrSignerCannotSign extends Err {
|
|
386
|
+
constructor(inner) {
|
|
387
|
+
super(`Cannot sign`, inner);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
exports.ErrSignerCannotSign = ErrSignerCannotSign;
|
|
391
|
+
/**
|
|
392
|
+
* Signals a bad address.
|
|
393
|
+
*/
|
|
394
|
+
class ErrBadAddress extends Err {
|
|
395
|
+
constructor(value, inner) {
|
|
396
|
+
super(`Bad address: ${value}`, inner);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
exports.ErrBadAddress = ErrBadAddress;
|
|
400
|
+
/**
|
|
401
|
+
* Signals an error that happened during a request against the Network.
|
|
402
|
+
*/
|
|
403
|
+
class ErrNetworkProvider extends Err {
|
|
404
|
+
constructor(url, error, inner) {
|
|
405
|
+
const message = `Request error on url [${url}]: [${error}]`;
|
|
406
|
+
super(message, inner);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
exports.ErrNetworkProvider = ErrNetworkProvider;
|
|
410
|
+
/**
|
|
411
|
+
* Signals a generic error in the context of querying Smart Contracts.
|
|
412
|
+
*/
|
|
413
|
+
class ErrContractQuery extends Err {
|
|
414
|
+
constructor(originalError) {
|
|
415
|
+
super(originalError.message.replace("executeQuery:", ""));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
exports.ErrContractQuery = ErrContractQuery;
|
|
419
|
+
/**
|
|
420
|
+
* Signals that the network provider provided is not valid
|
|
421
|
+
*/
|
|
422
|
+
class ErrInvalidNetworkProviderKind extends Err {
|
|
423
|
+
constructor() {
|
|
424
|
+
super("Invalid network provider kind. Choose between `api` and `proxy`.");
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
exports.ErrInvalidNetworkProviderKind = ErrInvalidNetworkProviderKind;
|
|
428
|
+
/**
|
|
429
|
+
* Signals that the account condition was not reached
|
|
430
|
+
*/
|
|
431
|
+
class ExpectedAccountConditionNotReachedError extends Err {
|
|
432
|
+
constructor() {
|
|
433
|
+
super("The expected account condition was not reached.");
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
exports.ExpectedAccountConditionNotReachedError = ExpectedAccountConditionNotReachedError;
|
|
437
|
+
//# sourceMappingURL=errors.js.map
|