@sravankumar02/sdk-core 2.0.1 → 15.4.1
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 +0 -0
- package/README.md +5 -5
- package/out/abi/argSerializer.d.ts +0 -0
- package/out/abi/argSerializer.js +0 -0
- package/out/abi/argSerializer.js.map +0 -0
- package/out/abi/argumentErrorContext.d.ts +0 -0
- package/out/abi/argumentErrorContext.js +0 -0
- package/out/abi/argumentErrorContext.js.map +0 -0
- package/out/abi/codec/address.d.ts +0 -0
- package/out/abi/codec/address.js +0 -0
- package/out/abi/codec/address.js.map +0 -0
- package/out/abi/codec/arrayVec.d.ts +0 -0
- package/out/abi/codec/arrayVec.js +0 -0
- package/out/abi/codec/arrayVec.js.map +0 -0
- package/out/abi/codec/binary.d.ts +0 -0
- package/out/abi/codec/binary.js +0 -0
- package/out/abi/codec/binary.js.map +1 -1
- package/out/abi/codec/binaryCodecUtils.d.ts +0 -0
- package/out/abi/codec/binaryCodecUtils.js +0 -0
- package/out/abi/codec/binaryCodecUtils.js.map +0 -0
- package/out/abi/codec/boolean.d.ts +0 -0
- package/out/abi/codec/boolean.js +0 -0
- package/out/abi/codec/boolean.js.map +0 -0
- package/out/abi/codec/bytes.d.ts +0 -0
- package/out/abi/codec/bytes.js +0 -0
- package/out/abi/codec/bytes.js.map +0 -0
- package/out/abi/codec/codemetadata.d.ts +0 -0
- package/out/abi/codec/codemetadata.js +0 -0
- package/out/abi/codec/codemetadata.js.map +0 -0
- package/out/abi/codec/constants.d.ts +0 -0
- package/out/abi/codec/constants.js +0 -0
- package/out/abi/codec/constants.js.map +0 -0
- package/out/abi/codec/enum.d.ts +0 -0
- package/out/abi/codec/enum.js +0 -0
- package/out/abi/codec/enum.js.map +0 -0
- package/out/abi/codec/explicit-enum.d.ts +0 -0
- package/out/abi/codec/explicit-enum.js +0 -0
- package/out/abi/codec/explicit-enum.js.map +0 -0
- package/out/abi/codec/fields.d.ts +0 -0
- package/out/abi/codec/fields.js +0 -0
- package/out/abi/codec/fields.js.map +0 -0
- package/out/abi/codec/h256.d.ts +0 -0
- package/out/abi/codec/h256.js +0 -0
- package/out/abi/codec/h256.js.map +0 -0
- package/out/abi/codec/index.d.ts +0 -0
- package/out/abi/codec/index.js +0 -0
- package/out/abi/codec/index.js.map +0 -0
- package/out/abi/codec/list.d.ts +0 -0
- package/out/abi/codec/list.js +0 -0
- package/out/abi/codec/list.js.map +0 -0
- package/out/abi/codec/managedDecimal.d.ts +0 -0
- package/out/abi/codec/managedDecimal.js +0 -0
- package/out/abi/codec/managedDecimal.js.map +0 -0
- package/out/abi/codec/managedDecimalSigned.d.ts +0 -0
- package/out/abi/codec/managedDecimalSigned.js +0 -0
- package/out/abi/codec/managedDecimalSigned.js.map +0 -0
- package/out/abi/codec/nothing.d.ts +0 -0
- package/out/abi/codec/nothing.js +0 -0
- package/out/abi/codec/nothing.js.map +0 -0
- package/out/abi/codec/numerical.d.ts +0 -0
- package/out/abi/codec/numerical.js +3 -3
- package/out/abi/codec/numerical.js.map +1 -1
- package/out/abi/codec/option.d.ts +0 -0
- package/out/abi/codec/option.js +0 -0
- package/out/abi/codec/option.js.map +0 -0
- package/out/abi/codec/primitive.d.ts +0 -0
- package/out/abi/codec/primitive.js +0 -0
- package/out/abi/codec/primitive.js.map +0 -0
- package/out/abi/codec/string.d.ts +0 -0
- package/out/abi/codec/string.js +0 -0
- package/out/abi/codec/string.js.map +0 -0
- package/out/abi/codec/struct.d.ts +0 -0
- package/out/abi/codec/struct.js +0 -0
- package/out/abi/codec/struct.js.map +0 -0
- package/out/abi/codec/tokenIdentifier.d.ts +0 -0
- package/out/abi/codec/tokenIdentifier.js +0 -0
- package/out/abi/codec/tokenIdentifier.js.map +0 -0
- package/out/abi/codec/tuple.d.ts +0 -0
- package/out/abi/codec/tuple.js +0 -0
- package/out/abi/codec/tuple.js.map +0 -0
- package/out/abi/codec/utils.d.ts +0 -0
- package/out/abi/codec/utils.js +0 -0
- package/out/abi/codec/utils.js.map +0 -0
- package/out/abi/function.d.ts +0 -0
- package/out/abi/function.js +0 -0
- package/out/abi/function.js.map +0 -0
- package/out/abi/index.d.ts +0 -0
- package/out/abi/index.js +0 -0
- package/out/abi/index.js.map +0 -0
- package/out/abi/interface.d.ts +0 -0
- package/out/abi/interface.js +0 -0
- package/out/abi/interface.js.map +0 -0
- package/out/abi/nativeSerializer.d.ts +0 -0
- package/out/abi/nativeSerializer.js +0 -0
- package/out/abi/nativeSerializer.js.map +0 -0
- package/out/abi/query.d.ts +0 -0
- package/out/abi/query.js +0 -0
- package/out/abi/query.js.map +0 -0
- package/out/abi/returnCode.d.ts +1 -1
- package/out/abi/returnCode.js +1 -1
- package/out/abi/returnCode.js.map +0 -0
- package/out/abi/typeFormula.d.ts +0 -0
- package/out/abi/typeFormula.js +0 -0
- package/out/abi/typeFormula.js.map +0 -0
- package/out/abi/typeFormulaParser.d.ts +0 -0
- package/out/abi/typeFormulaParser.js +0 -0
- package/out/abi/typeFormulaParser.js.map +0 -0
- package/out/abi/typesystem/abi.d.ts +0 -0
- package/out/abi/typesystem/abi.js +0 -0
- package/out/abi/typesystem/abi.js.map +0 -0
- package/out/abi/typesystem/address.d.ts +0 -0
- package/out/abi/typesystem/address.js +0 -0
- package/out/abi/typesystem/address.js.map +0 -0
- package/out/abi/typesystem/algebraic.d.ts +0 -0
- package/out/abi/typesystem/algebraic.js +0 -0
- package/out/abi/typesystem/algebraic.js.map +0 -0
- package/out/abi/typesystem/boolean.d.ts +0 -0
- package/out/abi/typesystem/boolean.js +0 -0
- package/out/abi/typesystem/boolean.js.map +0 -0
- package/out/abi/typesystem/bytes.d.ts +0 -0
- package/out/abi/typesystem/bytes.js +0 -0
- package/out/abi/typesystem/bytes.js.map +0 -0
- package/out/abi/typesystem/codeMetadata.d.ts +0 -0
- package/out/abi/typesystem/codeMetadata.js +0 -0
- package/out/abi/typesystem/codeMetadata.js.map +0 -0
- package/out/abi/typesystem/collections.d.ts +0 -0
- package/out/abi/typesystem/collections.js +0 -0
- package/out/abi/typesystem/collections.js.map +0 -0
- package/out/abi/typesystem/composite.d.ts +0 -0
- package/out/abi/typesystem/composite.js +0 -0
- package/out/abi/typesystem/composite.js.map +0 -0
- package/out/abi/typesystem/endpoint.d.ts +0 -0
- package/out/abi/typesystem/endpoint.js +0 -0
- package/out/abi/typesystem/endpoint.js.map +0 -0
- package/out/abi/typesystem/enum.d.ts +0 -0
- package/out/abi/typesystem/enum.js +0 -0
- package/out/abi/typesystem/enum.js.map +0 -0
- package/out/abi/typesystem/event.d.ts +0 -0
- package/out/abi/typesystem/event.js +0 -0
- package/out/abi/typesystem/event.js.map +0 -0
- package/out/abi/typesystem/explicit-enum.d.ts +0 -0
- package/out/abi/typesystem/explicit-enum.js +0 -0
- package/out/abi/typesystem/explicit-enum.js.map +0 -0
- package/out/abi/typesystem/factory.d.ts +0 -0
- package/out/abi/typesystem/factory.js +0 -0
- package/out/abi/typesystem/factory.js.map +0 -0
- package/out/abi/typesystem/fields.d.ts +0 -0
- package/out/abi/typesystem/fields.js +0 -0
- package/out/abi/typesystem/fields.js.map +0 -0
- package/out/abi/typesystem/generic.d.ts +0 -0
- package/out/abi/typesystem/generic.js +0 -0
- package/out/abi/typesystem/generic.js.map +0 -0
- package/out/abi/typesystem/genericArray.d.ts +0 -0
- package/out/abi/typesystem/genericArray.js +0 -0
- package/out/abi/typesystem/genericArray.js.map +0 -0
- package/out/abi/typesystem/h256.d.ts +0 -0
- package/out/abi/typesystem/h256.js +0 -0
- package/out/abi/typesystem/h256.js.map +0 -0
- package/out/abi/typesystem/index.d.ts +0 -0
- package/out/abi/typesystem/index.js +0 -0
- package/out/abi/typesystem/index.js.map +0 -0
- package/out/abi/typesystem/managedDecimal.d.ts +0 -0
- package/out/abi/typesystem/managedDecimal.js +0 -0
- package/out/abi/typesystem/managedDecimal.js.map +0 -0
- package/out/abi/typesystem/managedDecimalSigned.d.ts +0 -0
- package/out/abi/typesystem/managedDecimalSigned.js +0 -0
- package/out/abi/typesystem/managedDecimalSigned.js.map +0 -0
- package/out/abi/typesystem/matchers.d.ts +0 -0
- package/out/abi/typesystem/matchers.js +0 -0
- package/out/abi/typesystem/matchers.js.map +0 -0
- package/out/abi/typesystem/nothing.d.ts +0 -0
- package/out/abi/typesystem/nothing.js +0 -0
- package/out/abi/typesystem/nothing.js.map +0 -0
- package/out/abi/typesystem/numerical.d.ts +0 -0
- package/out/abi/typesystem/numerical.js +0 -0
- package/out/abi/typesystem/numerical.js.map +0 -0
- package/out/abi/typesystem/string.d.ts +0 -0
- package/out/abi/typesystem/string.js +0 -0
- package/out/abi/typesystem/string.js.map +0 -0
- package/out/abi/typesystem/struct.d.ts +0 -0
- package/out/abi/typesystem/struct.js +0 -0
- package/out/abi/typesystem/struct.js.map +0 -0
- package/out/abi/typesystem/tokenIdentifier.d.ts +0 -0
- package/out/abi/typesystem/tokenIdentifier.js +0 -0
- package/out/abi/typesystem/tokenIdentifier.js.map +0 -0
- package/out/abi/typesystem/tuple.d.ts +0 -0
- package/out/abi/typesystem/tuple.js +0 -0
- package/out/abi/typesystem/tuple.js.map +0 -0
- package/out/abi/typesystem/typeExpressionParser.d.ts +0 -0
- package/out/abi/typesystem/typeExpressionParser.js +0 -0
- package/out/abi/typesystem/typeExpressionParser.js.map +0 -0
- package/out/abi/typesystem/typeMapper.d.ts +0 -0
- package/out/abi/typesystem/typeMapper.js +0 -0
- package/out/abi/typesystem/typeMapper.js.map +0 -0
- package/out/abi/typesystem/types.d.ts +0 -0
- package/out/abi/typesystem/types.js +0 -0
- package/out/abi/typesystem/types.js.map +0 -0
- package/out/abi/typesystem/variadic.d.ts +0 -0
- package/out/abi/typesystem/variadic.js +0 -0
- package/out/abi/typesystem/variadic.js.map +0 -0
- package/out/accountManagement/accountController.d.ts +0 -0
- package/out/accountManagement/accountController.js +0 -0
- package/out/accountManagement/accountController.js.map +0 -0
- package/out/accountManagement/accountTransactionsFactory.d.ts +0 -0
- package/out/accountManagement/accountTransactionsFactory.js +0 -0
- package/out/accountManagement/accountTransactionsFactory.js.map +0 -0
- package/out/accountManagement/index.d.ts +0 -0
- package/out/accountManagement/index.js +0 -0
- package/out/accountManagement/index.js.map +0 -0
- package/out/accountManagement/resources.d.ts +0 -0
- package/out/accountManagement/resources.js +0 -0
- package/out/accountManagement/resources.js.map +0 -0
- package/out/accounts/account.d.ts +0 -0
- package/out/accounts/account.js +0 -0
- package/out/accounts/account.js.map +0 -0
- package/out/accounts/index.d.ts +0 -0
- package/out/accounts/index.js +0 -0
- package/out/accounts/index.js.map +0 -0
- package/out/core/address.d.ts +0 -0
- package/out/core/address.js +0 -0
- package/out/core/address.js.map +0 -0
- package/out/core/asyncTimer.d.ts +0 -0
- package/out/core/asyncTimer.js +0 -0
- package/out/core/asyncTimer.js.map +0 -0
- package/out/core/baseController.d.ts +0 -0
- package/out/core/baseController.js +0 -0
- package/out/core/baseController.js.map +0 -0
- package/out/core/baseFactory.d.ts +0 -0
- package/out/core/baseFactory.js +0 -0
- package/out/core/baseFactory.js.map +0 -0
- package/out/core/codeMetadata.d.ts +0 -0
- package/out/core/codeMetadata.js +0 -0
- package/out/core/codeMetadata.js.map +0 -0
- package/out/core/compatibility.d.ts +0 -0
- package/out/core/compatibility.js +0 -0
- package/out/core/compatibility.js.map +0 -0
- package/out/core/config.d.ts +0 -0
- package/out/core/config.js +0 -0
- package/out/core/config.js.map +0 -0
- package/out/core/constants.d.ts +3 -0
- package/out/core/constants.js +4 -1
- package/out/core/constants.js.map +1 -1
- package/out/core/errors.d.ts +0 -0
- package/out/core/errors.js +0 -0
- package/out/core/errors.js.map +0 -0
- package/out/core/globals.d.ts +0 -0
- package/out/core/globals.js +0 -0
- package/out/core/globals.js.map +0 -0
- package/out/core/index.d.ts +0 -0
- package/out/core/index.js +0 -0
- package/out/core/index.js.map +0 -0
- package/out/core/interfaces.d.ts +0 -0
- package/out/core/interfaces.js +0 -0
- package/out/core/interfaces.js.map +0 -0
- package/out/core/logger.d.ts +0 -0
- package/out/core/logger.js +0 -0
- package/out/core/logger.js.map +0 -0
- package/out/core/message.d.ts +0 -0
- package/out/core/message.js +0 -0
- package/out/core/message.js.map +0 -0
- package/out/core/networkParams.d.ts +0 -0
- package/out/core/networkParams.js +0 -0
- package/out/core/networkParams.js.map +0 -0
- package/out/core/reflection.d.ts +0 -0
- package/out/core/reflection.js +0 -0
- package/out/core/reflection.js.map +0 -0
- package/out/core/signature.d.ts +0 -0
- package/out/core/signature.js +0 -0
- package/out/core/signature.js.map +0 -0
- package/out/core/smartContractQuery.d.ts +0 -0
- package/out/core/smartContractQuery.js +0 -0
- package/out/core/smartContractQuery.js.map +0 -0
- package/out/core/tokenTransfersDataBuilder.d.ts +0 -0
- package/out/core/tokenTransfersDataBuilder.js +0 -0
- package/out/core/tokenTransfersDataBuilder.js.map +0 -0
- package/out/core/tokens.d.ts +0 -0
- package/out/core/tokens.js +0 -0
- package/out/core/tokens.js.map +0 -0
- package/out/core/transaction.d.ts +0 -0
- package/out/core/transaction.js +0 -0
- package/out/core/transaction.js.map +0 -0
- package/out/core/transactionComputer.d.ts +0 -0
- package/out/core/transactionComputer.js +0 -0
- package/out/core/transactionComputer.js.map +0 -0
- package/out/core/transactionEvents.d.ts +0 -0
- package/out/core/transactionEvents.js +0 -0
- package/out/core/transactionEvents.js.map +0 -0
- package/out/core/transactionLogs.d.ts +0 -0
- package/out/core/transactionLogs.js +0 -0
- package/out/core/transactionLogs.js.map +0 -0
- package/out/core/transactionOnNetwork.d.ts +0 -0
- package/out/core/transactionOnNetwork.js +0 -0
- package/out/core/transactionOnNetwork.js.map +0 -0
- package/out/core/transactionStatus.d.ts +5 -1
- package/out/core/transactionStatus.js +7 -1
- package/out/core/transactionStatus.js.map +1 -1
- package/out/core/transactionWatcher.d.ts +0 -0
- package/out/core/transactionWatcher.js +4 -3
- package/out/core/transactionWatcher.js.map +1 -1
- package/out/core/transactionsFactoryConfig.d.ts +0 -0
- package/out/core/transactionsFactoryConfig.js +0 -0
- package/out/core/transactionsFactoryConfig.js.map +0 -0
- package/out/core/utils.codec.d.ts +0 -0
- package/out/core/utils.codec.js +0 -0
- package/out/core/utils.codec.js.map +0 -0
- package/out/core/utils.d.ts +0 -0
- package/out/core/utils.js +0 -0
- package/out/core/utils.js.map +0 -0
- package/out/delegation/delegationController.d.ts +0 -0
- package/out/delegation/delegationController.js +0 -0
- package/out/delegation/delegationController.js.map +0 -0
- package/out/delegation/delegationTransactionsFactory.d.ts +0 -0
- package/out/delegation/delegationTransactionsFactory.js +0 -0
- package/out/delegation/delegationTransactionsFactory.js.map +0 -0
- package/out/delegation/delegationTransactionsOutcomeParser.d.ts +13 -0
- package/out/delegation/delegationTransactionsOutcomeParser.js +25 -0
- package/out/delegation/delegationTransactionsOutcomeParser.js.map +1 -1
- package/out/delegation/index.d.ts +0 -0
- package/out/delegation/index.js +0 -0
- package/out/delegation/index.js.map +0 -0
- package/out/delegation/resources.d.ts +0 -0
- package/out/delegation/resources.js +0 -0
- package/out/delegation/resources.js.map +0 -0
- package/out/entrypoints/config.d.ts +0 -0
- package/out/entrypoints/config.js +0 -0
- package/out/entrypoints/config.js.map +0 -0
- package/out/entrypoints/entrypoints.d.ts +0 -0
- package/out/entrypoints/entrypoints.js +0 -0
- package/out/entrypoints/entrypoints.js.map +0 -0
- package/out/entrypoints/index.d.ts +0 -0
- package/out/entrypoints/index.js +0 -0
- package/out/entrypoints/index.js.map +0 -0
- package/out/gasEstimator/gasLimitEstimator.d.ts +0 -0
- package/out/gasEstimator/gasLimitEstimator.js +0 -0
- package/out/gasEstimator/gasLimitEstimator.js.map +0 -0
- package/out/gasEstimator/index.d.ts +0 -0
- package/out/gasEstimator/index.js +0 -0
- package/out/gasEstimator/index.js.map +0 -0
- package/out/governance/governanceController.d.ts +0 -0
- package/out/governance/governanceController.js +0 -0
- package/out/governance/governanceController.js.map +0 -0
- package/out/governance/governanceTransactionsFactory.d.ts +0 -0
- package/out/governance/governanceTransactionsFactory.js +0 -0
- package/out/governance/governanceTransactionsFactory.js.map +0 -0
- package/out/governance/governanceTransactionsOutcomeParser.d.ts +0 -0
- package/out/governance/governanceTransactionsOutcomeParser.js +0 -0
- package/out/governance/governanceTransactionsOutcomeParser.js.map +0 -0
- package/out/governance/index.d.ts +0 -0
- package/out/governance/index.js +0 -0
- package/out/governance/index.js.map +0 -0
- package/out/governance/resources.d.ts +0 -0
- package/out/governance/resources.js +0 -0
- package/out/governance/resources.js.map +0 -0
- package/out/index.d.ts +0 -0
- package/out/index.js +0 -0
- package/out/index.js.map +0 -0
- package/out/multisig/index.d.ts +0 -0
- package/out/multisig/index.js +0 -0
- package/out/multisig/index.js.map +0 -0
- package/out/multisig/multisigController.d.ts +0 -0
- package/out/multisig/multisigController.js +0 -0
- package/out/multisig/multisigController.js.map +0 -0
- package/out/multisig/multisigTransactionsFactory.d.ts +0 -0
- package/out/multisig/multisigTransactionsFactory.js +0 -0
- package/out/multisig/multisigTransactionsFactory.js.map +0 -0
- package/out/multisig/multisigTransactionsOutcomeParser.d.ts +0 -0
- package/out/multisig/multisigTransactionsOutcomeParser.js +0 -0
- package/out/multisig/multisigTransactionsOutcomeParser.js.map +0 -0
- package/out/multisig/proposeTransferExecuteContractInput.d.ts +0 -0
- package/out/multisig/proposeTransferExecuteContractInput.js +0 -0
- package/out/multisig/proposeTransferExecuteContractInput.js.map +0 -0
- package/out/multisig/resources.d.ts +0 -0
- package/out/multisig/resources.js +0 -0
- package/out/multisig/resources.js.map +0 -0
- package/out/networkProviders/accountAwaiter.d.ts +0 -0
- package/out/networkProviders/accountAwaiter.js +0 -0
- package/out/networkProviders/accountAwaiter.js.map +0 -0
- package/out/networkProviders/accounts.d.ts +0 -0
- package/out/networkProviders/accounts.js +0 -0
- package/out/networkProviders/accounts.js.map +0 -0
- package/out/networkProviders/apiNetworkProvider.d.ts +0 -0
- package/out/networkProviders/apiNetworkProvider.js +0 -0
- package/out/networkProviders/apiNetworkProvider.js.map +0 -0
- package/out/networkProviders/blocks.d.ts +0 -0
- package/out/networkProviders/blocks.js +0 -0
- package/out/networkProviders/blocks.js.map +0 -0
- package/out/networkProviders/config.d.ts +0 -0
- package/out/networkProviders/config.js +0 -0
- package/out/networkProviders/config.js.map +0 -0
- package/out/networkProviders/constants.d.ts +1 -1
- package/out/networkProviders/constants.js +1 -1
- package/out/networkProviders/constants.js.map +1 -1
- package/out/networkProviders/contractQueryRequest.d.ts +0 -0
- package/out/networkProviders/contractQueryRequest.js +0 -0
- package/out/networkProviders/contractQueryRequest.js.map +0 -0
- package/out/networkProviders/index.d.ts +0 -0
- package/out/networkProviders/index.js +0 -0
- package/out/networkProviders/index.js.map +0 -0
- package/out/networkProviders/interface.d.ts +0 -0
- package/out/networkProviders/interface.js +0 -0
- package/out/networkProviders/interface.js.map +0 -0
- package/out/networkProviders/networkConfig.d.ts +0 -0
- package/out/networkProviders/networkConfig.js +0 -0
- package/out/networkProviders/networkConfig.js.map +0 -0
- package/out/networkProviders/networkProviderConfig.d.ts +0 -0
- package/out/networkProviders/networkProviderConfig.js +0 -0
- package/out/networkProviders/networkProviderConfig.js.map +0 -0
- package/out/networkProviders/networkStatus.d.ts +4 -0
- package/out/networkProviders/networkStatus.js +2 -0
- package/out/networkProviders/networkStatus.js.map +1 -1
- package/out/networkProviders/proxyNetworkProvider.d.ts +0 -0
- package/out/networkProviders/proxyNetworkProvider.js +0 -0
- package/out/networkProviders/proxyNetworkProvider.js.map +0 -0
- package/out/networkProviders/resources.d.ts +0 -0
- package/out/networkProviders/resources.js +0 -0
- package/out/networkProviders/resources.js.map +0 -0
- package/out/networkProviders/tokenDefinitions.d.ts +2 -2
- package/out/networkProviders/tokenDefinitions.js +2 -2
- package/out/networkProviders/tokenDefinitions.js.map +0 -0
- package/out/networkProviders/tokens.d.ts +1 -1
- package/out/networkProviders/tokens.js +11 -14
- package/out/networkProviders/tokens.js.map +1 -1
- package/out/networkProviders/userAgent.d.ts +0 -0
- package/out/networkProviders/userAgent.js +0 -0
- package/out/networkProviders/userAgent.js.map +0 -0
- package/out/proto/compiled.d.ts +0 -0
- package/out/proto/compiled.js +0 -0
- package/out/proto/compiled.js.map +0 -0
- package/out/proto/index.d.ts +0 -0
- package/out/proto/index.js +0 -0
- package/out/proto/index.js.map +0 -0
- package/out/proto/serializer.d.ts +0 -0
- package/out/proto/serializer.js +0 -0
- package/out/proto/serializer.js.map +0 -0
- package/out/smartContracts/index.d.ts +0 -0
- package/out/smartContracts/index.js +0 -0
- package/out/smartContracts/index.js.map +0 -0
- package/out/smartContracts/resources.d.ts +0 -0
- package/out/smartContracts/resources.js +0 -0
- package/out/smartContracts/resources.js.map +0 -0
- package/out/smartContracts/smartContractController.d.ts +0 -0
- package/out/smartContracts/smartContractController.js +0 -0
- package/out/smartContracts/smartContractController.js.map +0 -0
- package/out/smartContracts/smartContractTransactionsFactory.d.ts +0 -0
- package/out/smartContracts/smartContractTransactionsFactory.js +0 -0
- package/out/smartContracts/smartContractTransactionsFactory.js.map +0 -0
- package/out/smartContracts/smartContractTransactionsOutcomeParser.d.ts +0 -0
- package/out/smartContracts/smartContractTransactionsOutcomeParser.js +0 -0
- package/out/smartContracts/smartContractTransactionsOutcomeParser.js.map +0 -0
- package/out/tokenManagement/index.d.ts +0 -0
- package/out/tokenManagement/index.js +0 -0
- package/out/tokenManagement/index.js.map +0 -0
- package/out/tokenManagement/resources.d.ts +0 -0
- package/out/tokenManagement/resources.js +0 -0
- package/out/tokenManagement/resources.js.map +0 -0
- package/out/tokenManagement/tokenManagementController.d.ts +0 -0
- package/out/tokenManagement/tokenManagementController.js +0 -0
- package/out/tokenManagement/tokenManagementController.js.map +0 -0
- package/out/tokenManagement/tokenManagementTransactionsFactory.d.ts +0 -0
- package/out/tokenManagement/tokenManagementTransactionsFactory.js +0 -0
- package/out/tokenManagement/tokenManagementTransactionsFactory.js.map +0 -0
- package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.d.ts +0 -0
- package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.js +0 -0
- package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.js.map +0 -0
- package/out/tokenOperations/codec.d.ts +0 -0
- package/out/tokenOperations/codec.js +0 -0
- package/out/tokenOperations/codec.js.map +0 -0
- package/out/transactionsOutcomeParsers/index.d.ts +0 -0
- package/out/transactionsOutcomeParsers/index.js +0 -0
- package/out/transactionsOutcomeParsers/index.js.map +0 -0
- package/out/transactionsOutcomeParsers/resources.d.ts +0 -0
- package/out/transactionsOutcomeParsers/resources.js +0 -0
- package/out/transactionsOutcomeParsers/resources.js.map +0 -0
- package/out/transactionsOutcomeParsers/transactionEventsParser.d.ts +0 -0
- package/out/transactionsOutcomeParsers/transactionEventsParser.js +2 -2
- package/out/transactionsOutcomeParsers/transactionEventsParser.js.map +1 -1
- package/out/transfers/index.d.ts +0 -0
- package/out/transfers/index.js +0 -0
- package/out/transfers/index.js.map +0 -0
- package/out/transfers/resources.d.ts +0 -0
- package/out/transfers/resources.js +0 -0
- package/out/transfers/resources.js.map +0 -0
- package/out/transfers/transferTransactionsFactory.d.ts +0 -0
- package/out/transfers/transferTransactionsFactory.js +0 -0
- package/out/transfers/transferTransactionsFactory.js.map +0 -0
- package/out/transfers/transfersControllers.d.ts +0 -0
- package/out/transfers/transfersControllers.js +0 -0
- package/out/transfers/transfersControllers.js.map +0 -0
- package/out/validators/index.d.ts +0 -0
- package/out/validators/index.js +0 -0
- package/out/validators/index.js.map +0 -0
- package/out/validators/resources.d.ts +0 -0
- package/out/validators/resources.js +0 -0
- package/out/validators/resources.js.map +0 -0
- package/out/validators/validatorsController.d.ts +0 -0
- package/out/validators/validatorsController.js +0 -0
- package/out/validators/validatorsController.js.map +0 -0
- package/out/validators/validatorsSigner.d.ts +0 -0
- package/out/validators/validatorsSigner.js +0 -0
- package/out/validators/validatorsSigner.js.map +0 -0
- package/out/validators/validatorsTransactionsFactory.d.ts +0 -0
- package/out/validators/validatorsTransactionsFactory.js +0 -0
- package/out/validators/validatorsTransactionsFactory.js.map +0 -0
- package/out/wallet/assertions.d.ts +0 -0
- package/out/wallet/assertions.js +0 -0
- package/out/wallet/assertions.js.map +0 -0
- package/out/wallet/crypto/constants.d.ts +0 -0
- package/out/wallet/crypto/constants.js +0 -0
- package/out/wallet/crypto/constants.js.map +0 -0
- package/out/wallet/crypto/decryptor.d.ts +0 -0
- package/out/wallet/crypto/decryptor.js +0 -0
- package/out/wallet/crypto/decryptor.js.map +0 -0
- package/out/wallet/crypto/derivationParams.d.ts +0 -0
- package/out/wallet/crypto/derivationParams.js +0 -0
- package/out/wallet/crypto/derivationParams.js.map +0 -0
- package/out/wallet/crypto/encryptedData.d.ts +0 -0
- package/out/wallet/crypto/encryptedData.js +0 -0
- package/out/wallet/crypto/encryptedData.js.map +0 -0
- package/out/wallet/crypto/encryptor.d.ts +0 -0
- package/out/wallet/crypto/encryptor.js +0 -0
- package/out/wallet/crypto/encryptor.js.map +0 -0
- package/out/wallet/crypto/index.d.ts +0 -0
- package/out/wallet/crypto/index.js +0 -0
- package/out/wallet/crypto/index.js.map +0 -0
- package/out/wallet/crypto/pubkeyDecryptor.d.ts +0 -0
- package/out/wallet/crypto/pubkeyDecryptor.js +0 -0
- package/out/wallet/crypto/pubkeyDecryptor.js.map +0 -0
- package/out/wallet/crypto/pubkeyEncryptor.d.ts +0 -0
- package/out/wallet/crypto/pubkeyEncryptor.js +0 -0
- package/out/wallet/crypto/pubkeyEncryptor.js.map +0 -0
- package/out/wallet/crypto/randomness.d.ts +0 -0
- package/out/wallet/crypto/randomness.js +0 -0
- package/out/wallet/crypto/randomness.js.map +0 -0
- package/out/wallet/crypto/x25519EncryptedData.d.ts +0 -0
- package/out/wallet/crypto/x25519EncryptedData.js +0 -0
- package/out/wallet/crypto/x25519EncryptedData.js.map +0 -0
- package/out/wallet/index.d.ts +0 -0
- package/out/wallet/index.js +0 -0
- package/out/wallet/index.js.map +0 -0
- package/out/wallet/keypair.d.ts +0 -0
- package/out/wallet/keypair.js +0 -0
- package/out/wallet/keypair.js.map +0 -0
- package/out/wallet/mnemonic.d.ts +0 -0
- package/out/wallet/mnemonic.js +0 -0
- package/out/wallet/mnemonic.js.map +0 -0
- package/out/wallet/pem.d.ts +0 -0
- package/out/wallet/pem.js +0 -0
- package/out/wallet/pem.js.map +0 -0
- package/out/wallet/pemEntry.d.ts +0 -0
- package/out/wallet/pemEntry.js +0 -0
- package/out/wallet/pemEntry.js.map +0 -0
- package/out/wallet/userKeys.d.ts +0 -0
- package/out/wallet/userKeys.js +0 -0
- package/out/wallet/userKeys.js.map +0 -0
- package/out/wallet/userPem.d.ts +0 -0
- package/out/wallet/userPem.js +0 -0
- package/out/wallet/userPem.js.map +0 -0
- package/out/wallet/userSigner.d.ts +0 -0
- package/out/wallet/userSigner.js +0 -0
- package/out/wallet/userSigner.js.map +0 -0
- package/out/wallet/userVerifier.d.ts +0 -0
- package/out/wallet/userVerifier.js +0 -0
- package/out/wallet/userVerifier.js.map +0 -0
- package/out/wallet/userWallet.d.ts +1 -1
- package/out/wallet/userWallet.js +1 -1
- package/out/wallet/userWallet.js.map +0 -0
- package/out/wallet/validatorKeys.d.ts +0 -0
- package/out/wallet/validatorKeys.js +2 -2
- package/out/wallet/validatorKeys.js.map +1 -1
- package/out/wallet/validatorPem.d.ts +0 -0
- package/out/wallet/validatorPem.js +0 -0
- package/out/wallet/validatorPem.js.map +0 -0
- package/out/wallet/validatorSigner.d.ts +0 -0
- package/out/wallet/validatorSigner.js +0 -0
- package/out/wallet/validatorSigner.js.map +0 -0
- package/package.json +13 -14
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/accounts/account.js
CHANGED
|
File without changes
|
|
File without changes
|
package/out/accounts/index.d.ts
CHANGED
|
File without changes
|
package/out/accounts/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/out/core/address.d.ts
CHANGED
|
File without changes
|
package/out/core/address.js
CHANGED
|
File without changes
|
package/out/core/address.js.map
CHANGED
|
File without changes
|
package/out/core/asyncTimer.d.ts
CHANGED
|
File without changes
|
package/out/core/asyncTimer.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/core/baseFactory.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/core/codeMetadata.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/core/config.d.ts
CHANGED
|
File without changes
|
package/out/core/config.js
CHANGED
|
File without changes
|
package/out/core/config.js.map
CHANGED
|
File without changes
|
package/out/core/constants.d.ts
CHANGED
|
@@ -27,3 +27,6 @@ export declare const UNKNOWN_SIGNER = "unknown";
|
|
|
27
27
|
export declare const REWA_IDENTIFIER_FOR_MULTI_DCDTNFT_TRANSFER = "REWA-000000";
|
|
28
28
|
export declare const EXTRA_GAS_LIMIT_FOR_GUARDED_TRANSACTIONS = 50000;
|
|
29
29
|
export declare const EXTRA_GAS_LIMIT_FOR_RELAYED_TRANSACTIONS = 50000;
|
|
30
|
+
export declare const DEFAULT_TRANSACTION_AWAITING_POLLING_TIMEOUT_IN_MILLISECONDS = 600;
|
|
31
|
+
export declare const DEFAULT_TRANSACTION_AWAITING_TIMEOUT_IN_MILLISECONDS: number;
|
|
32
|
+
export declare const DEFAULT_TRANSACTION_AWAITING_PATIENCE_IN_MILLISECONDS = 0;
|
package/out/core/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EXTRA_GAS_LIMIT_FOR_RELAYED_TRANSACTIONS = exports.EXTRA_GAS_LIMIT_FOR_GUARDED_TRANSACTIONS = exports.REWA_IDENTIFIER_FOR_MULTI_DCDTNFT_TRANSFER = exports.UNKNOWN_SIGNER = exports.SDK_JS_SIGNER = exports.METACHAIN_ID = exports.WasmVirtualMachine = exports.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META = exports.HEX_TRANSACTION_HASH_LENGTH = exports.MESSAGE_PREFIX = exports.DEFAULT_MESSAGE_VERSION = exports.STAKING_SMART_CONTRACT_ADDRESS_HEX = exports.GOVERNANCE_CONTRACT_ADDRESS_HEX = exports.DCDT_CONTRACT_ADDRESS_HEX = exports.DELEGATION_MANAGER_SC_ADDRESS_HEX = exports.CONTRACT_DEPLOY_ADDRESS_HEX = exports.VM_TYPE_WASM_VM = exports.ARGUMENTS_SEPARATOR = exports.DCDT_TRANSFER_VALUE = exports.MULTI_DCDTNFT_TRANSFER_FUNCTION_NAME = exports.DCDTNFT_TRANSFER_FUNCTION_NAME = exports.DCDT_TRANSFER_FUNCTION_NAME = exports.DCDT_TRANSFER_GAS_LIMIT = exports.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS = exports.TRANSACTION_VERSION_DEFAULT = exports.TRANSACTION_OPTIONS_TX_GUARDED = exports.TRANSACTION_OPTIONS_TX_HASH_SIGN = exports.TRANSACTION_OPTIONS_DEFAULT = exports.TRANSACTION_MIN_GAS_PRICE = void 0;
|
|
3
|
+
exports.DEFAULT_TRANSACTION_AWAITING_PATIENCE_IN_MILLISECONDS = exports.DEFAULT_TRANSACTION_AWAITING_TIMEOUT_IN_MILLISECONDS = exports.DEFAULT_TRANSACTION_AWAITING_POLLING_TIMEOUT_IN_MILLISECONDS = exports.EXTRA_GAS_LIMIT_FOR_RELAYED_TRANSACTIONS = exports.EXTRA_GAS_LIMIT_FOR_GUARDED_TRANSACTIONS = exports.REWA_IDENTIFIER_FOR_MULTI_DCDTNFT_TRANSFER = exports.UNKNOWN_SIGNER = exports.SDK_JS_SIGNER = exports.METACHAIN_ID = exports.WasmVirtualMachine = exports.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META = exports.HEX_TRANSACTION_HASH_LENGTH = exports.MESSAGE_PREFIX = exports.DEFAULT_MESSAGE_VERSION = exports.STAKING_SMART_CONTRACT_ADDRESS_HEX = exports.GOVERNANCE_CONTRACT_ADDRESS_HEX = exports.DCDT_CONTRACT_ADDRESS_HEX = exports.DELEGATION_MANAGER_SC_ADDRESS_HEX = exports.CONTRACT_DEPLOY_ADDRESS_HEX = exports.VM_TYPE_WASM_VM = exports.ARGUMENTS_SEPARATOR = exports.DCDT_TRANSFER_VALUE = exports.MULTI_DCDTNFT_TRANSFER_FUNCTION_NAME = exports.DCDTNFT_TRANSFER_FUNCTION_NAME = exports.DCDT_TRANSFER_FUNCTION_NAME = exports.DCDT_TRANSFER_GAS_LIMIT = exports.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS = exports.TRANSACTION_VERSION_DEFAULT = exports.TRANSACTION_OPTIONS_TX_GUARDED = exports.TRANSACTION_OPTIONS_TX_HASH_SIGN = exports.TRANSACTION_OPTIONS_DEFAULT = exports.TRANSACTION_MIN_GAS_PRICE = void 0;
|
|
4
4
|
exports.TRANSACTION_MIN_GAS_PRICE = 1000000000;
|
|
5
5
|
exports.TRANSACTION_OPTIONS_DEFAULT = 0;
|
|
6
6
|
exports.TRANSACTION_OPTIONS_TX_HASH_SIGN = 0b0001;
|
|
@@ -30,4 +30,7 @@ exports.UNKNOWN_SIGNER = "unknown";
|
|
|
30
30
|
exports.REWA_IDENTIFIER_FOR_MULTI_DCDTNFT_TRANSFER = "REWA-000000";
|
|
31
31
|
exports.EXTRA_GAS_LIMIT_FOR_GUARDED_TRANSACTIONS = 50000;
|
|
32
32
|
exports.EXTRA_GAS_LIMIT_FOR_RELAYED_TRANSACTIONS = 50000;
|
|
33
|
+
exports.DEFAULT_TRANSACTION_AWAITING_POLLING_TIMEOUT_IN_MILLISECONDS = 600;
|
|
34
|
+
exports.DEFAULT_TRANSACTION_AWAITING_TIMEOUT_IN_MILLISECONDS = 15 * exports.DEFAULT_TRANSACTION_AWAITING_POLLING_TIMEOUT_IN_MILLISECONDS;
|
|
35
|
+
exports.DEFAULT_TRANSACTION_AWAITING_PATIENCE_IN_MILLISECONDS = 0;
|
|
33
36
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/core/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,UAAU,CAAC;AACvC,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAChC,QAAA,gCAAgC,GAAG,MAAM,CAAC;AAC1C,QAAA,8BAA8B,GAAG,MAAM,CAAC;AACxC,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAChC,QAAA,6CAA6C,GAAG,CAAC,CAAC;AAClD,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,2BAA2B,GAAG,cAAc,CAAC;AAC7C,QAAA,8BAA8B,GAAG,iBAAiB,CAAC;AACnD,QAAA,oCAAoC,GAAG,sBAAsB,CAAC;AAC9D,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAC1B,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAC1B,QAAA,eAAe,GAAG,IAAI,UAAU,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAC/C,QAAA,2BAA2B,GAAG,kEAAkE,CAAC;AACjG,QAAA,iCAAiC,GAAG,kEAAkE,CAAC;AACvG,QAAA,yBAAyB,GAAG,kEAAkE,CAAC;AAC/F,QAAA,+BAA+B,GAAG,kEAAkE,CAAC;AACrG,QAAA,kCAAkC,GAAG,kEAAkE,CAAC;AAExG,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAC5B,QAAA,cAAc,GAAG,8BAA8B,CAAC;AAChD,QAAA,2BAA2B,GAAG,EAAE,CAAC;AAEjC,QAAA,qCAAqC,GAAG,CAAC,CAAC;AAC1C,QAAA,kBAAkB,GAAG,MAA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CAAC;AAC1C,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,YAAY,GAAG,UAAU,CAAC;AAC1B,QAAA,aAAa,GAAG,QAAQ,CAAC;AACzB,QAAA,cAAc,GAAG,SAAS,CAAC;AAE3B,QAAA,0CAA0C,GAAG,aAAa,CAAC;AAC3D,QAAA,wCAAwC,GAAG,KAAM,CAAC;AAClD,QAAA,wCAAwC,GAAG,KAAM,CAAC;AAElD,QAAA,4DAA4D,GAAG,GAAG,CAAC;AACnE,QAAA,oDAAoD,GAC7D,EAAE,GAAG,oEAA4D,CAAC;AACzD,QAAA,qDAAqD,GAAG,CAAC,CAAC"}
|
package/out/core/errors.d.ts
CHANGED
|
File without changes
|
package/out/core/errors.js
CHANGED
|
File without changes
|
package/out/core/errors.js.map
CHANGED
|
File without changes
|
package/out/core/globals.d.ts
CHANGED
|
File without changes
|
package/out/core/globals.js
CHANGED
|
File without changes
|
package/out/core/globals.js.map
CHANGED
|
File without changes
|
package/out/core/index.d.ts
CHANGED
|
File without changes
|
package/out/core/index.js
CHANGED
|
File without changes
|
package/out/core/index.js.map
CHANGED
|
File without changes
|
package/out/core/interfaces.d.ts
CHANGED
|
File without changes
|
package/out/core/interfaces.js
CHANGED
|
File without changes
|
|
File without changes
|
package/out/core/logger.d.ts
CHANGED
|
File without changes
|
package/out/core/logger.js
CHANGED
|
File without changes
|
package/out/core/logger.js.map
CHANGED
|
File without changes
|
package/out/core/message.d.ts
CHANGED
|
File without changes
|
package/out/core/message.js
CHANGED
|
File without changes
|
package/out/core/message.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/core/reflection.d.ts
CHANGED
|
File without changes
|
package/out/core/reflection.js
CHANGED
|
File without changes
|
|
File without changes
|
package/out/core/signature.d.ts
CHANGED
|
File without changes
|
package/out/core/signature.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/core/tokens.d.ts
CHANGED
|
File without changes
|
package/out/core/tokens.js
CHANGED
|
File without changes
|
package/out/core/tokens.js.map
CHANGED
|
File without changes
|
|
File without changes
|
package/out/core/transaction.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -19,7 +19,7 @@ export declare class TransactionStatus {
|
|
|
19
19
|
*/
|
|
20
20
|
isPending(): boolean;
|
|
21
21
|
/**
|
|
22
|
-
* Returns whether the transaction has been
|
|
22
|
+
* Returns whether the transaction has been completed (not necessarily with success).
|
|
23
23
|
*/
|
|
24
24
|
isCompleted(): boolean;
|
|
25
25
|
/**
|
|
@@ -34,6 +34,10 @@ export declare class TransactionStatus {
|
|
|
34
34
|
* Returns whether the transaction has been executed, but marked as invalid (e.g. due to "insufficient funds").
|
|
35
35
|
*/
|
|
36
36
|
isInvalid(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Returns whether the transaction cannot be executed in the current block.
|
|
39
|
+
*/
|
|
40
|
+
isNotExecutableInBlock(): boolean;
|
|
37
41
|
toString(): string;
|
|
38
42
|
valueOf(): string;
|
|
39
43
|
equals(other: TransactionStatus): boolean;
|
|
@@ -24,7 +24,7 @@ class TransactionStatus {
|
|
|
24
24
|
return this.status == "received" || this.status == "pending";
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* Returns whether the transaction has been
|
|
27
|
+
* Returns whether the transaction has been completed (not necessarily with success).
|
|
28
28
|
*/
|
|
29
29
|
isCompleted() {
|
|
30
30
|
return this.isSuccessful() || this.isFailed() || this.isInvalid();
|
|
@@ -47,6 +47,12 @@ class TransactionStatus {
|
|
|
47
47
|
isInvalid() {
|
|
48
48
|
return this.status == "invalid";
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns whether the transaction cannot be executed in the current block.
|
|
52
|
+
*/
|
|
53
|
+
isNotExecutableInBlock() {
|
|
54
|
+
return this.status == "not-executable-in-block";
|
|
55
|
+
}
|
|
50
56
|
toString() {
|
|
51
57
|
return this.status;
|
|
52
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionStatus.js","sourceRoot":"","sources":["../../src/core/transactionStatus.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,iBAAiB;IAM1B;;OAEG;IACH,YAAY,MAAc;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,aAAa;QAChB,OAAO,IAAI,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,IAAI,UAAU,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,WAAW;QACP,OAAO,IAAI,CAAC,YAAY,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,YAAY;QACR,OAAO,IAAI,CAAC,MAAM,IAAI,UAAU,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,IAAI,IAAI,CAAC,MAAM,IAAI,YAAY,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,MAAM,IAAI,MAAM,IAAI,IAAI,CAAC,MAAM,IAAI,QAAQ,IAAI,IAAI,CAAC,MAAM,IAAI,cAAc,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IACjH,CAAC;IAED;;OAEG;IACH,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC;IACpC,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,KAAwB;QAC3B,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC;IACvC,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"transactionStatus.js","sourceRoot":"","sources":["../../src/core/transactionStatus.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,iBAAiB;IAM1B;;OAEG;IACH,YAAY,MAAc;QACtB,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,aAAa;QAChB,OAAO,IAAI,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,IAAI,UAAU,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,WAAW;QACP,OAAO,IAAI,CAAC,YAAY,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,YAAY;QACR,OAAO,IAAI,CAAC,MAAM,IAAI,UAAU,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,IAAI,IAAI,CAAC,MAAM,IAAI,YAAY,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,MAAM,IAAI,MAAM,IAAI,IAAI,CAAC,MAAM,IAAI,QAAQ,IAAI,IAAI,CAAC,MAAM,IAAI,cAAc,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IACjH,CAAC;IAED;;OAEG;IACH,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,sBAAsB;QAClB,OAAO,IAAI,CAAC,MAAM,IAAI,yBAAyB,CAAC;IACpD,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,KAAwB;QAC3B,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC;IACvC,CAAC;CACJ;AA7ED,8CA6EC"}
|
|
File without changes
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionWatcher = void 0;
|
|
4
4
|
const asyncTimer_1 = require("./asyncTimer");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
5
6
|
const errors_1 = require("./errors");
|
|
6
7
|
const logger_1 = require("./logger");
|
|
7
8
|
/**
|
|
@@ -132,9 +133,9 @@ class TransactionWatcher {
|
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
135
|
exports.TransactionWatcher = TransactionWatcher;
|
|
135
|
-
TransactionWatcher.DefaultPollingInterval =
|
|
136
|
-
TransactionWatcher.DefaultTimeout =
|
|
137
|
-
TransactionWatcher.DefaultPatience =
|
|
136
|
+
TransactionWatcher.DefaultPollingInterval = constants_1.DEFAULT_TRANSACTION_AWAITING_POLLING_TIMEOUT_IN_MILLISECONDS;
|
|
137
|
+
TransactionWatcher.DefaultTimeout = constants_1.DEFAULT_TRANSACTION_AWAITING_TIMEOUT_IN_MILLISECONDS;
|
|
138
|
+
TransactionWatcher.DefaultPatience = constants_1.DEFAULT_TRANSACTION_AWAITING_PATIENCE_IN_MILLISECONDS;
|
|
138
139
|
TransactionWatcher.NoopOnStatusReceived = (_) => { };
|
|
139
140
|
class TransactionFetcherWithTracing {
|
|
140
141
|
constructor(fetcher) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionWatcher.js","sourceRoot":"","sources":["../../src/core/transactionWatcher.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,qCAKkB;AAElB,qCAAkC;AAOlC;;GAEG;AACH,MAAa,kBAAkB;IAY3B;;;;;;;;OAQG;IACH,YACI,OAA4B,EAC5B,UAII,EAAE;QAEN,IAAI,CAAC,OAAO,GAAG,IAAI,6BAA6B,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,CAAC,2BAA2B;YAC5B,OAAO,CAAC,2BAA2B,IAAI,kBAAkB,CAAC,sBAAsB,CAAC;QACrF,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,IAAI,kBAAkB,CAAC,cAAc,CAAC;QAC5F,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,IAAI,kBAAkB,CAAC,eAAe,CAAC;IACnG,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,YAAY,CAAC,MAAc;QACpC,MAAM,SAAS,GAAG,CAAC,WAAiC,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QACxF,MAAM,OAAO,GAAG,KAAK,IAAI,EAAE;YACvB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,CAAC;QACF,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,IAAI,+CAAsC,EAAE,CAAC;QAEzE,OAAO,IAAI,CAAC,kBAAkB,CAAuB,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC5F,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,cAAc,CAAC,MAAc;QACtC,MAAM,WAAW,GAAG,CAAC,oBAA0C,EAAE,EAAE;YAC/D,OAAO,oBAAoB,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QACrD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AAE;YACvD,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SAC3C;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;;AAjLL,gDAkLC;AAjLkB,yCAAsB,GAAW,wEAA4D,CAAC;AAC9F,iCAAc,GAAW,gEAAoD,CAAC;AAC9E,kCAAe,GAAW,iEAAqD,CAAC;AAExF,uCAAoB,GAAG,CAAC,CAAoB,EAAE,EAAE,GAAE,CAAC,CAAC;AA+K/D,MAAM,6BAA6B;IAG/B,YAAY,OAA4B;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,MAAc;QAC/B,eAAM,CAAC,KAAK,CAAC,sCAAsC,MAAM,GAAG,CAAC,CAAC;QAC9D,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;CACJ"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/core/utils.codec.js
CHANGED
|
File without changes
|
|
File without changes
|
package/out/core/utils.d.ts
CHANGED
|
File without changes
|
package/out/core/utils.js
CHANGED
|
File without changes
|
package/out/core/utils.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,20 @@ export declare class DelegationTransactionsOutcomeParser {
|
|
|
4
4
|
parseCreateNewDelegationContract(transaction: TransactionOnNetwork): {
|
|
5
5
|
contractAddress: string;
|
|
6
6
|
}[];
|
|
7
|
+
parseClaimRewards(transaction: TransactionOnNetwork): {
|
|
8
|
+
amount: bigint;
|
|
9
|
+
}[];
|
|
10
|
+
parseDelegate(transaction: TransactionOnNetwork): {
|
|
11
|
+
amount: bigint;
|
|
12
|
+
}[];
|
|
13
|
+
parseUndelegate(transaction: TransactionOnNetwork): {
|
|
14
|
+
amount: bigint;
|
|
15
|
+
}[];
|
|
16
|
+
parseRedelegateRewards(transaction: TransactionOnNetwork): {
|
|
17
|
+
amount: bigint;
|
|
18
|
+
}[];
|
|
7
19
|
private ensureNoError;
|
|
8
20
|
private extractContractAddress;
|
|
9
21
|
private decodeTopicAsString;
|
|
22
|
+
private extractAmount;
|
|
10
23
|
}
|
|
@@ -11,6 +11,24 @@ class DelegationTransactionsOutcomeParser {
|
|
|
11
11
|
const events = resources_1.findEventsByIdentifier(transaction, "SCDeploy");
|
|
12
12
|
return events.map((event) => ({ contractAddress: this.extractContractAddress(event) }));
|
|
13
13
|
}
|
|
14
|
+
parseClaimRewards(transaction) {
|
|
15
|
+
this.ensureNoError(transaction.logs.events);
|
|
16
|
+
const events = resources_1.findEventsByIdentifier(transaction, "claimRewards");
|
|
17
|
+
return events.map((event) => ({ amount: this.extractAmount(event) }));
|
|
18
|
+
}
|
|
19
|
+
parseDelegate(transaction) {
|
|
20
|
+
this.ensureNoError(transaction.logs.events);
|
|
21
|
+
const events = resources_1.findEventsByIdentifier(transaction, "delegate");
|
|
22
|
+
return events.map((event) => ({ amount: this.extractAmount(event) }));
|
|
23
|
+
}
|
|
24
|
+
parseUndelegate(transaction) {
|
|
25
|
+
this.ensureNoError(transaction.logs.events);
|
|
26
|
+
const events = resources_1.findEventsByIdentifier(transaction, "unDelegate");
|
|
27
|
+
return events.map((event) => ({ amount: this.extractAmount(event) }));
|
|
28
|
+
}
|
|
29
|
+
parseRedelegateRewards(transaction) {
|
|
30
|
+
return this.parseDelegate(transaction);
|
|
31
|
+
}
|
|
14
32
|
ensureNoError(transactionEvents) {
|
|
15
33
|
for (const event of transactionEvents) {
|
|
16
34
|
if (event.identifier == "signalError") {
|
|
@@ -30,6 +48,13 @@ class DelegationTransactionsOutcomeParser {
|
|
|
30
48
|
decodeTopicAsString(topic) {
|
|
31
49
|
return Buffer.from(topic).toString();
|
|
32
50
|
}
|
|
51
|
+
extractAmount(event) {
|
|
52
|
+
if (!event.topics[0]?.length) {
|
|
53
|
+
return 0n;
|
|
54
|
+
}
|
|
55
|
+
const amount = Buffer.from(event.topics[0]);
|
|
56
|
+
return BigInt("0x" + amount.toString("hex"));
|
|
57
|
+
}
|
|
33
58
|
}
|
|
34
59
|
exports.DelegationTransactionsOutcomeParser = DelegationTransactionsOutcomeParser;
|
|
35
60
|
//# sourceMappingURL=delegationTransactionsOutcomeParser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegationTransactionsOutcomeParser.js","sourceRoot":"","sources":["../../src/delegation/delegationTransactionsOutcomeParser.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,2CAA4D;AAG5D,uEAAiF;AAEjF,MAAa,mCAAmC;IAC5C,gBAAe,CAAC;IAEhB,gCAAgC,CAAC,WAAiC;QAC9D,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,kCAAsB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAE/D,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5F,CAAC;IAEO,aAAa,CAAC,iBAAqC;QACvD,KAAK,MAAM,KAAK,IAAI,iBAAiB,EAAE;YACnC,IAAI,KAAK,CAAC,UAAU,IAAI,aAAa,EAAE;gBACnC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;gBACxF,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE1D,MAAM,IAAI,mCAA0B,CAChC,4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IAAI,EAAE,CAAC;gBACxF,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE1D,MAAM,IAAI,mCAA0B,CAChC,4BAA4B,OAAO,KAAK,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,QAAQ,EAAE,GAAG,CACjF,CAAC;aACL;SACJ;IACL,CAAC;IAEO,sBAAsB,CAAC,KAAuB;QAClD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE;YAC1B,OAAO,EAAE,CAAC;SACb;QACD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7C,OAAO,IAAI,iBAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC3C,CAAC;IAEO,mBAAmB,CAAC,KAAiB;QACzC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;IAEO,aAAa,CAAC,KAAuB;QACzC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE;YAC1B,OAAO,EAAE,CAAC;SACb;QAED,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5C,OAAO,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;CACJ;AAxED,kFAwEC"}
|
|
File without changes
|
package/out/delegation/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/entrypoints/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/out/governance/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|