@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 @@
|
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/core/address.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,gEAAqC;AACrC,oDAA0D;AAC1D,qCAAyC;AACzC,2CAAsG;AACtG,iDAAmC;AACnC,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,aAAa,GAAG,EAAE,CAAC;AAEzB,MAAM,gCAAgC,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAExD;;GAEG;AACH,MAAa,OAAO;IAIhB;;OAEG;IACH,YAAmB,KAAoC,EAAE,GAAY;QACjE,eAAe;QACf,IAAI,CAAC,KAAK,EAAE;YACR,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,sBAAa,CAAC,iBAAiB,CAAC;YAElD,OAAO;SACV;QAED,4CAA4C;QAC5C,IAAI,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YAC3B,IAAI,KAAK,CAAC,MAAM,IAAI,aAAa,EAAE;gBAC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AO,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAErC,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;QACrB,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;KACzD;IAAC,OAAO,GAAQ,EAAE;QACf,MAAM,IAAI,MAAM,CAAC,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;KACvD;IAED,6EAA6E;IAC7E,+HAA+H;IAC/H,IAAI,CAAC,cAAc,IAAI,GAAG,IAAI,sBAAa,CAAC,iBAAiB,EAAE;QAC3D,MAAM,IAAI,MAAM,CAAC,gBAAgB,CAAC,sBAAa,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;KAC3E;IAED,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class AsyncTimer {
|
|
2
|
+
private readonly name;
|
|
3
|
+
private timeoutHandle;
|
|
4
|
+
private rejectionFunc;
|
|
5
|
+
private correlationTag;
|
|
6
|
+
/**
|
|
7
|
+
* Creates an AsyncTimer.
|
|
8
|
+
*/
|
|
9
|
+
constructor(name: string);
|
|
10
|
+
/**
|
|
11
|
+
* Starts the timer.
|
|
12
|
+
* @param timeout The time (in milliseconds) to wait until resolving the promise.
|
|
13
|
+
*/
|
|
14
|
+
start(timeout: number): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Aborts the timer: rejects the promise (if any) and stops the timer.
|
|
17
|
+
*/
|
|
18
|
+
abort(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Stops the timer.
|
|
21
|
+
*/
|
|
22
|
+
stop(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Returns whether the timer is stopped.
|
|
25
|
+
*/
|
|
26
|
+
isStopped(): boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.AsyncTimer = void 0;
|
|
23
|
+
const errors = __importStar(require("./errors"));
|
|
24
|
+
const errors_1 = require("./errors");
|
|
25
|
+
const logger_1 = require("./logger");
|
|
26
|
+
/*
|
|
27
|
+
* AsyncTimer is an async-friendly abstraction that wraps JavaScript's setTimeout() and clearTimeout().
|
|
28
|
+
*/
|
|
29
|
+
class AsyncTimer {
|
|
30
|
+
/**
|
|
31
|
+
* Creates an AsyncTimer.
|
|
32
|
+
*/
|
|
33
|
+
constructor(name) {
|
|
34
|
+
this.timeoutHandle = null;
|
|
35
|
+
this.rejectionFunc = null;
|
|
36
|
+
this.name = name;
|
|
37
|
+
this.correlationTag = 0;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Starts the timer.
|
|
41
|
+
* @param timeout The time (in milliseconds) to wait until resolving the promise.
|
|
42
|
+
*/
|
|
43
|
+
start(timeout) {
|
|
44
|
+
if (this.timeoutHandle) {
|
|
45
|
+
throw new errors.ErrAsyncTimerAlreadyRunning();
|
|
46
|
+
}
|
|
47
|
+
this.correlationTag++;
|
|
48
|
+
logger_1.Logger.trace(`AsyncTimer[${this.name}'${this.correlationTag}].start()`);
|
|
49
|
+
return new Promise((resolve, reject) => {
|
|
50
|
+
this.rejectionFunc = reject;
|
|
51
|
+
let timeoutCallback = () => {
|
|
52
|
+
this.rejectionFunc = null;
|
|
53
|
+
this.stop();
|
|
54
|
+
resolve();
|
|
55
|
+
};
|
|
56
|
+
this.timeoutHandle = setTimeout(timeoutCallback, timeout);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Aborts the timer: rejects the promise (if any) and stops the timer.
|
|
61
|
+
*/
|
|
62
|
+
abort() {
|
|
63
|
+
logger_1.Logger.trace(`AsyncTimer[${this.name}'${this.correlationTag}].abort()`);
|
|
64
|
+
if (this.rejectionFunc) {
|
|
65
|
+
this.rejectionFunc(new errors_1.ErrAsyncTimerAborted());
|
|
66
|
+
this.rejectionFunc = null;
|
|
67
|
+
}
|
|
68
|
+
this.stop();
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Stops the timer.
|
|
72
|
+
*/
|
|
73
|
+
stop() {
|
|
74
|
+
if (this.isStopped()) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
logger_1.Logger.trace(`AsyncTimer[${this.name}'${this.correlationTag}].stop()`);
|
|
78
|
+
if (this.timeoutHandle) {
|
|
79
|
+
clearTimeout(this.timeoutHandle);
|
|
80
|
+
this.timeoutHandle = null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns whether the timer is stopped.
|
|
85
|
+
*/
|
|
86
|
+
isStopped() {
|
|
87
|
+
return this.timeoutHandle ? false : true;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.AsyncTimer = AsyncTimer;
|
|
91
|
+
//# sourceMappingURL=asyncTimer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncTimer.js","sourceRoot":"","sources":["../../src/core/asyncTimer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AACnC,qCAAgD;AAChD,qCAAkC;AAElC;;GAEG;AACH,MAAa,UAAU;IAMnB;;OAEG;IACH,YAAY,IAAY;QAPhB,kBAAa,GAAQ,IAAI,CAAC;QAC1B,kBAAa,GAAQ,IAAI,CAAC;QAO9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,OAAe;QACxB,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,MAAM,IAAI,MAAM,CAAC,2BAA2B,EAAE,CAAC;SAClD;QAED,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,eAAM,CAAC,KAAK,CAAC,cAAc,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,WAAW,CAAC,CAAC;QAExE,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACzC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC;YAE5B,IAAI,eAAe,GAAG,GAAG,EAAE;gBACvB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;gBAC1B,IAAI,CAAC,IAAI,EAAE,CAAC;gBACZ,OAAO,EAAE,CAAC;YACd,CAAC,CAAC;YAEF,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACI,KAAK;QACR,eAAM,CAAC,KAAK,CAAC,cAAc,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,WAAW,CAAC,CAAC;QAExE,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAoB,EAAE,CAAC,CAAC;YAC/C,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;SAC7B;QAED,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAED;;OAEG;IACI,IAAI;QACP,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE;YAClB,OAAO;SACV;QAED,eAAM,CAAC,KAAK,CAAC,cAAc,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,UAAU,CAAC,CAAC;QAEvE,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACjC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;SAC7B;IACL,CAAC;IAED;;OAEG;IACI,SAAS;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7C,CAAC;CACJ;AA3ED,gCA2EC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Address } from "./address";
|
|
2
|
+
import { Transaction } from "./transaction";
|
|
3
|
+
export declare type BaseControllerInput = {
|
|
4
|
+
guardian?: Address;
|
|
5
|
+
relayer?: Address;
|
|
6
|
+
gasPrice?: bigint;
|
|
7
|
+
gasLimit?: bigint;
|
|
8
|
+
};
|
|
9
|
+
export declare class BaseController {
|
|
10
|
+
protected setTransactionGasOptions(transaction: Transaction, options: {
|
|
11
|
+
gasLimit?: bigint;
|
|
12
|
+
gasPrice?: bigint;
|
|
13
|
+
}): void;
|
|
14
|
+
protected addExtraGasLimitIfRequired(transaction: Transaction): void;
|
|
15
|
+
protected setVersionAndOptionsForGuardian(transaction: Transaction): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseController = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
const transactionComputer_1 = require("./transactionComputer");
|
|
6
|
+
class BaseController {
|
|
7
|
+
setTransactionGasOptions(transaction, options) {
|
|
8
|
+
if (options.gasLimit) {
|
|
9
|
+
transaction.gasLimit = options.gasLimit;
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
this.addExtraGasLimitIfRequired(transaction);
|
|
13
|
+
}
|
|
14
|
+
if (options.gasPrice) {
|
|
15
|
+
transaction.gasPrice = options.gasPrice;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
addExtraGasLimitIfRequired(transaction) {
|
|
19
|
+
if (transaction.guardian && !transaction.guardian.isEmpty()) {
|
|
20
|
+
transaction.gasLimit += BigInt(constants_1.EXTRA_GAS_LIMIT_FOR_GUARDED_TRANSACTIONS);
|
|
21
|
+
}
|
|
22
|
+
if (transaction.relayer && !transaction.relayer.isEmpty()) {
|
|
23
|
+
transaction.gasLimit += BigInt(constants_1.EXTRA_GAS_LIMIT_FOR_RELAYED_TRANSACTIONS);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
setVersionAndOptionsForGuardian(transaction) {
|
|
27
|
+
if (transaction.guardian && !transaction.guardian.isEmpty()) {
|
|
28
|
+
const txComputer = new transactionComputer_1.TransactionComputer();
|
|
29
|
+
txComputer.applyGuardian(transaction, transaction.guardian);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.BaseController = BaseController;
|
|
34
|
+
//# sourceMappingURL=baseController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseController.js","sourceRoot":"","sources":["../../src/core/baseController.ts"],"names":[],"mappings":";;;AACA,2CAAiH;AAEjH,+DAA4D;AAS5D,MAAa,cAAc;IACb,wBAAwB,CAAC,WAAwB,EAAE,OAAiD;QAC1G,IAAI,OAAO,CAAC,QAAQ,EAAE;YAClB,WAAW,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;SAC3C;aAAM;YACH,IAAI,CAAC,0BAA0B,CAAC,WAAW,CAAC,CAAC;SAChD;QACD,IAAI,OAAO,CAAC,QAAQ,EAAE;YAClB,WAAW,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;SAC3C;IACL,CAAC;IAES,0BAA0B,CAAC,WAAwB;QACzD,IAAI,WAAW,CAAC,QAAQ,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE;YACzD,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,oDAAwC,CAAC,CAAC;SAC5E;QAED,IAAI,WAAW,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE;YACvD,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,oDAAwC,CAAC,CAAC;SAC5E;IACL,CAAC;IAES,+BAA+B,CAAC,WAAwB;QAC9D,IAAI,WAAW,CAAC,QAAQ,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE;YACzD,MAAM,UAAU,GAAG,IAAI,yCAAmB,EAAE,CAAC;YAC7C,UAAU,CAAC,aAAa,CAAC,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;SAC/D;IACL,CAAC;CACJ;AA5BD,wCA4BC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export declare const CodeMetadataLength = 2;
|
|
3
|
+
/**
|
|
4
|
+
* The metadata of a Smart Contract, as an abstraction.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CodeMetadata {
|
|
7
|
+
upgradeable: boolean;
|
|
8
|
+
readable: boolean;
|
|
9
|
+
payable: boolean;
|
|
10
|
+
payableBySc: boolean;
|
|
11
|
+
static ByteZero: {
|
|
12
|
+
Upgradeable: number;
|
|
13
|
+
Reserved2: number;
|
|
14
|
+
Readable: number;
|
|
15
|
+
};
|
|
16
|
+
static ByteOne: {
|
|
17
|
+
Reserved1: number;
|
|
18
|
+
Payable: number;
|
|
19
|
+
PayableBySc: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Creates a metadata object. By default, set the `upgradeable` attribute, and uset all others.
|
|
23
|
+
*
|
|
24
|
+
* @param upgradeable Whether the contract is upgradeable
|
|
25
|
+
* @param readable Whether other contracts can read this contract's data (without calling one of its pure functions)
|
|
26
|
+
* @param payable Whether the contract is payable
|
|
27
|
+
* @param payableBySc Whether the contract is payable by other smart contracts
|
|
28
|
+
*/
|
|
29
|
+
constructor(upgradeable?: boolean, readable?: boolean, payable?: boolean, payableBySc?: boolean);
|
|
30
|
+
/**
|
|
31
|
+
* Named constructor
|
|
32
|
+
* Creates a metadata object from a buffer.
|
|
33
|
+
* Also checks that data has correct length (2 bytes)
|
|
34
|
+
*/
|
|
35
|
+
static newFromBytes(bytes: Uint8Array): CodeMetadata;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated Use {@link newFromBytes} instead.
|
|
38
|
+
* Creates a metadata object from a buffer.
|
|
39
|
+
*/
|
|
40
|
+
static newFromBuffer(buffer: Buffer): CodeMetadata;
|
|
41
|
+
/**
|
|
42
|
+
* Converts the metadata to the protocol-friendly representation.
|
|
43
|
+
*/
|
|
44
|
+
toBytes(): Uint8Array;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Use {@link toBytes} instead.
|
|
47
|
+
*/
|
|
48
|
+
toBuffer(): Buffer;
|
|
49
|
+
/**
|
|
50
|
+
* Converts the metadata to a hex-encoded string.
|
|
51
|
+
*/
|
|
52
|
+
toString(): string;
|
|
53
|
+
/**
|
|
54
|
+
* Adjust the metadata (the `upgradeable` attribute), when preparing the deployment transaction.
|
|
55
|
+
*/
|
|
56
|
+
toggleUpgradeable(value: boolean): void;
|
|
57
|
+
/**
|
|
58
|
+
* Adjust the metadata (the `readable` attribute), when preparing the deployment transaction.
|
|
59
|
+
*/
|
|
60
|
+
toggleReadable(value: boolean): void;
|
|
61
|
+
/**
|
|
62
|
+
* Adjust the metadata (the `payable` attribute), when preparing the deployment transaction.
|
|
63
|
+
*/
|
|
64
|
+
togglePayable(value: boolean): void;
|
|
65
|
+
/**
|
|
66
|
+
* Adjust the metadata (the `payableBySc` attribute), when preparing the deployment transaction.
|
|
67
|
+
*/
|
|
68
|
+
togglePayableBySc(value: boolean): void;
|
|
69
|
+
/**
|
|
70
|
+
* Converts the metadata to a pretty, plain JavaScript object.
|
|
71
|
+
*/
|
|
72
|
+
toJSON(): object;
|
|
73
|
+
equals(other: CodeMetadata): boolean;
|
|
74
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CodeMetadata = exports.CodeMetadataLength = void 0;
|
|
4
|
+
exports.CodeMetadataLength = 2;
|
|
5
|
+
/**
|
|
6
|
+
* The metadata of a Smart Contract, as an abstraction.
|
|
7
|
+
*/
|
|
8
|
+
class CodeMetadata {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a metadata object. By default, set the `upgradeable` attribute, and uset all others.
|
|
11
|
+
*
|
|
12
|
+
* @param upgradeable Whether the contract is upgradeable
|
|
13
|
+
* @param readable Whether other contracts can read this contract's data (without calling one of its pure functions)
|
|
14
|
+
* @param payable Whether the contract is payable
|
|
15
|
+
* @param payableBySc Whether the contract is payable by other smart contracts
|
|
16
|
+
*/
|
|
17
|
+
constructor(upgradeable = true, readable = false, payable = false, payableBySc = false) {
|
|
18
|
+
this.upgradeable = upgradeable;
|
|
19
|
+
this.readable = readable;
|
|
20
|
+
this.payable = payable;
|
|
21
|
+
this.payableBySc = payableBySc;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Named constructor
|
|
25
|
+
* Creates a metadata object from a buffer.
|
|
26
|
+
* Also checks that data has correct length (2 bytes)
|
|
27
|
+
*/
|
|
28
|
+
static newFromBytes(bytes) {
|
|
29
|
+
if (bytes.length != exports.CodeMetadataLength) {
|
|
30
|
+
throw new Error(`code metadata buffer has length ${bytes.length}, expected ${exports.CodeMetadataLength}`);
|
|
31
|
+
}
|
|
32
|
+
const byteZero = bytes[0];
|
|
33
|
+
const byteOne = bytes[1];
|
|
34
|
+
const upgradeable = (byteZero & CodeMetadata.ByteZero.Upgradeable) !== 0;
|
|
35
|
+
const readable = (byteZero & CodeMetadata.ByteZero.Readable) !== 0;
|
|
36
|
+
const payable = (byteOne & CodeMetadata.ByteOne.Payable) !== 0;
|
|
37
|
+
const payableBySc = (byteOne & CodeMetadata.ByteOne.PayableBySc) !== 0;
|
|
38
|
+
return new CodeMetadata(upgradeable, readable, payable, payableBySc);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Use {@link newFromBytes} instead.
|
|
42
|
+
* Creates a metadata object from a buffer.
|
|
43
|
+
*/
|
|
44
|
+
static newFromBuffer(buffer) {
|
|
45
|
+
return this.newFromBytes(buffer);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Converts the metadata to the protocol-friendly representation.
|
|
49
|
+
*/
|
|
50
|
+
toBytes() {
|
|
51
|
+
let byteZero = 0;
|
|
52
|
+
let byteOne = 0;
|
|
53
|
+
if (this.upgradeable) {
|
|
54
|
+
byteZero |= CodeMetadata.ByteZero.Upgradeable;
|
|
55
|
+
}
|
|
56
|
+
if (this.readable) {
|
|
57
|
+
byteZero |= CodeMetadata.ByteZero.Readable;
|
|
58
|
+
}
|
|
59
|
+
if (this.payable) {
|
|
60
|
+
byteOne |= CodeMetadata.ByteOne.Payable;
|
|
61
|
+
}
|
|
62
|
+
if (this.payableBySc) {
|
|
63
|
+
byteOne |= CodeMetadata.ByteOne.PayableBySc;
|
|
64
|
+
}
|
|
65
|
+
return new Uint8Array(Buffer.from([byteZero, byteOne]));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use {@link toBytes} instead.
|
|
69
|
+
*/
|
|
70
|
+
toBuffer() {
|
|
71
|
+
let byteZero = 0;
|
|
72
|
+
let byteOne = 0;
|
|
73
|
+
if (this.upgradeable) {
|
|
74
|
+
byteZero |= CodeMetadata.ByteZero.Upgradeable;
|
|
75
|
+
}
|
|
76
|
+
if (this.readable) {
|
|
77
|
+
byteZero |= CodeMetadata.ByteZero.Readable;
|
|
78
|
+
}
|
|
79
|
+
if (this.payable) {
|
|
80
|
+
byteOne |= CodeMetadata.ByteOne.Payable;
|
|
81
|
+
}
|
|
82
|
+
if (this.payableBySc) {
|
|
83
|
+
byteOne |= CodeMetadata.ByteOne.PayableBySc;
|
|
84
|
+
}
|
|
85
|
+
return Buffer.from([byteZero, byteOne]);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Converts the metadata to a hex-encoded string.
|
|
89
|
+
*/
|
|
90
|
+
toString() {
|
|
91
|
+
return Buffer.from(this.toBytes()).toString("hex");
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Adjust the metadata (the `upgradeable` attribute), when preparing the deployment transaction.
|
|
95
|
+
*/
|
|
96
|
+
toggleUpgradeable(value) {
|
|
97
|
+
this.upgradeable = value;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Adjust the metadata (the `readable` attribute), when preparing the deployment transaction.
|
|
101
|
+
*/
|
|
102
|
+
toggleReadable(value) {
|
|
103
|
+
this.readable = value;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Adjust the metadata (the `payable` attribute), when preparing the deployment transaction.
|
|
107
|
+
*/
|
|
108
|
+
togglePayable(value) {
|
|
109
|
+
this.payable = value;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Adjust the metadata (the `payableBySc` attribute), when preparing the deployment transaction.
|
|
113
|
+
*/
|
|
114
|
+
togglePayableBySc(value) {
|
|
115
|
+
this.payableBySc = value;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Converts the metadata to a pretty, plain JavaScript object.
|
|
119
|
+
*/
|
|
120
|
+
toJSON() {
|
|
121
|
+
return {
|
|
122
|
+
upgradeable: this.upgradeable,
|
|
123
|
+
readable: this.readable,
|
|
124
|
+
payable: this.payable,
|
|
125
|
+
payableBySc: this.payableBySc,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
equals(other) {
|
|
129
|
+
return (this.upgradeable == other.upgradeable &&
|
|
130
|
+
this.readable == other.readable &&
|
|
131
|
+
this.payable == other.payable &&
|
|
132
|
+
this.payableBySc == other.payableBySc);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.CodeMetadata = CodeMetadata;
|
|
136
|
+
CodeMetadata.ByteZero = {
|
|
137
|
+
Upgradeable: 1,
|
|
138
|
+
Reserved2: 2,
|
|
139
|
+
Readable: 4,
|
|
140
|
+
};
|
|
141
|
+
CodeMetadata.ByteOne = {
|
|
142
|
+
Reserved1: 1,
|
|
143
|
+
Payable: 2,
|
|
144
|
+
PayableBySc: 4,
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=codeMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codeMetadata.js","sourceRoot":"","sources":["../../src/core/codeMetadata.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,CAAC,CAAC;AAEpC;;GAEG;AACH,MAAa,YAAY;IAkBrB;;;;;;;OAOG;IACH,YACI,cAAuB,IAAI,EAC3B,WAAoB,KAAK,EACzB,UAAmB,KAAK,EACxB,cAAuB,KAAK;QAE5B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,KAAiB;QACjC,IAAI,KAAK,CAAC,MAAM,IAAI,0BAAkB,EA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AAC,WAAW,GAAG,KAAK,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,MAAM;QACF,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,IAAI,CAAC,WAAW;SAChC,CAAC;IACN,CAAC;IAED,MAAM,CAAC,KAAmB;QACtB,OAAO,CACH,IAAI,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW;YACrC,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ;YAC/B,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO;YAC7B,IAAI,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,CACxC,CAAC;IACN,CAAC;;AAvKL,oCAwKC;AAlKU,qBAAQ,GAAG;IACd,WAAW,EAAE,CAAC;IACd,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC;CACd,CAAC;AAEK,oBAAO,GAAG;IACb,SAAS,EAAE,CAAC;IACZ,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,CAAC;CACjB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Address } from "./address";
|
|
2
|
+
/**
|
|
3
|
+
* For internal use only.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Compatibility {
|
|
6
|
+
/**
|
|
7
|
+
* For internal use only.
|
|
8
|
+
*/
|
|
9
|
+
static guardAddressIsSetAndNonZero(address: Address | undefined, context: string, resolution: string): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Compatibility = void 0;
|
|
4
|
+
const address_1 = require("./address");
|
|
5
|
+
/**
|
|
6
|
+
* For internal use only.
|
|
7
|
+
*/
|
|
8
|
+
class Compatibility {
|
|
9
|
+
/**
|
|
10
|
+
* For internal use only.
|
|
11
|
+
*/
|
|
12
|
+
static guardAddressIsSetAndNonZero(address, context, resolution) {
|
|
13
|
+
if (!address || address.toBech32() == "") {
|
|
14
|
+
console.warn(`${context}: address should be set; ${resolution}. In the future, this will throw an exception instead of emitting a WARN.`);
|
|
15
|
+
}
|
|
16
|
+
else if (address.toBech32() == address_1.Address.Zero().toBech32()) {
|
|
17
|
+
console.warn(`${context}: address should not be the 'zero' address (also known as the 'contracts deployment address'); ${resolution}. In the future, this will throw an exception instead of emitting a WARN.`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Compatibility = Compatibility;
|
|
22
|
+
//# sourceMappingURL=compatibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatibility.js","sourceRoot":"","sources":["../../src/core/compatibility.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC;;GAEG;AACH,MAAa,aAAa;IACtB;;OAEG;IACH,MAAM,CAAC,2BAA2B,CAAC,OAA4B,EAAE,OAAe,EAAE,UAAkB;QAChG,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE;YACtC,OAAO,CAAC,IAAI,CACR,GAAG,OAAO,4BAA4B,UAAU,2EAA2E,CAC9H,CAAC;SACL;aAAM,IAAI,OAAO,CAAC,QAAQ,EAAE,IAAI,iBAAO,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE;YACxD,OAAO,CAAC,IAAI,CACR,GAAG,OAAO,kGAAkG,UAAU,2EAA2E,CACpM,CAAC;SACL;IACL,CAAC;CACJ;AAfD,sCAeC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global configuration of the library.
|
|
3
|
+
*
|
|
4
|
+
* Generally speaking, this configuration should only be altered on exotic use cases;
|
|
5
|
+
* it can be seen as a collection of constants (or, to be more precise, rarely changed variables) that are used throughout the library.
|
|
6
|
+
*
|
|
7
|
+
* Never alter the configuration within a library!
|
|
8
|
+
* Only alter the configuration (if needed) within an (end) application that uses this library.
|
|
9
|
+
*/
|
|
10
|
+
export declare class LibraryConfig {
|
|
11
|
+
/**
|
|
12
|
+
* The human-readable-part of the bech32 addresses.
|
|
13
|
+
*/
|
|
14
|
+
static DefaultAddressHrp: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LibraryConfig = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Global configuration of the library.
|
|
6
|
+
*
|
|
7
|
+
* Generally speaking, this configuration should only be altered on exotic use cases;
|
|
8
|
+
* it can be seen as a collection of constants (or, to be more precise, rarely changed variables) that are used throughout the library.
|
|
9
|
+
*
|
|
10
|
+
* Never alter the configuration within a library!
|
|
11
|
+
* Only alter the configuration (if needed) within an (end) application that uses this library.
|
|
12
|
+
*/
|
|
13
|
+
class LibraryConfig {
|
|
14
|
+
}
|
|
15
|
+
exports.LibraryConfig = LibraryConfig;
|
|
16
|
+
/**
|
|
17
|
+
* The human-readable-part of the bech32 addresses.
|
|
18
|
+
*/
|
|
19
|
+
LibraryConfig.DefaultAddressHrp = "drt";
|
|
20
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/core/config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACH,MAAa,aAAa;;AAA1B,sCAKC;AAJG;;GAEG;AACW,+BAAiB,GAAW,KAAK,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const TRANSACTION_MIN_GAS_PRICE = 1000000000;
|
|
2
|
+
export declare const TRANSACTION_OPTIONS_DEFAULT = 0;
|
|
3
|
+
export declare const TRANSACTION_OPTIONS_TX_HASH_SIGN = 1;
|
|
4
|
+
export declare const TRANSACTION_OPTIONS_TX_GUARDED = 2;
|
|
5
|
+
export declare const TRANSACTION_VERSION_DEFAULT = 2;
|
|
6
|
+
export declare const MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS = 2;
|
|
7
|
+
export declare const DCDT_TRANSFER_GAS_LIMIT = 500000;
|
|
8
|
+
export declare const DCDT_TRANSFER_FUNCTION_NAME = "DCDTTransfer";
|
|
9
|
+
export declare const DCDTNFT_TRANSFER_FUNCTION_NAME = "DCDTNFTTransfer";
|
|
10
|
+
export declare const MULTI_DCDTNFT_TRANSFER_FUNCTION_NAME = "MultiDCDTNFTTransfer";
|
|
11
|
+
export declare const DCDT_TRANSFER_VALUE = "0";
|
|
12
|
+
export declare const ARGUMENTS_SEPARATOR = "@";
|
|
13
|
+
export declare const VM_TYPE_WASM_VM: Uint8Array;
|
|
14
|
+
export declare const CONTRACT_DEPLOY_ADDRESS_HEX = "0000000000000000000000000000000000000000000000000000000000000000";
|
|
15
|
+
export declare const DELEGATION_MANAGER_SC_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000004ffff";
|
|
16
|
+
export declare const DCDT_CONTRACT_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000002ffff";
|
|
17
|
+
export declare const GOVERNANCE_CONTRACT_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000003ffff";
|
|
18
|
+
export declare const DEFAULT_MESSAGE_VERSION = 1;
|
|
19
|
+
export declare const MESSAGE_PREFIX = "\u0017Numbat Signed Message:\n";
|
|
20
|
+
export declare const HEX_TRANSACTION_HASH_LENGTH = 64;
|
|
21
|
+
export declare const CURRENT_NUMBER_OF_SHARDS_WITHOUT_META = 3;
|
|
22
|
+
export declare const WasmVirtualMachine = "0500";
|
|
23
|
+
export declare const METACHAIN_ID = 4294967295;
|
|
24
|
+
export declare const SDK_JS_SIGNER = "sdk-js";
|
|
25
|
+
export declare const UNKNOWN_SIGNER = "unknown";
|
|
26
|
+
export declare const REWA_IDENTIFIER_FOR_MULTI_DCDTNFT_TRANSFER = "REWA-000000";
|
|
27
|
+
export declare const EXTRA_GAS_LIMIT_FOR_GUARDED_TRANSACTIONS = 50000;
|
|
28
|
+
export declare const EXTRA_GAS_LIMIT_FOR_RELAYED_TRANSACTIONS = 50000;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
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.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
|
+
exports.TRANSACTION_MIN_GAS_PRICE = 1000000000;
|
|
5
|
+
exports.TRANSACTION_OPTIONS_DEFAULT = 0;
|
|
6
|
+
exports.TRANSACTION_OPTIONS_TX_HASH_SIGN = 0b0001;
|
|
7
|
+
exports.TRANSACTION_OPTIONS_TX_GUARDED = 0b0010;
|
|
8
|
+
exports.TRANSACTION_VERSION_DEFAULT = 2;
|
|
9
|
+
exports.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS = 2;
|
|
10
|
+
exports.DCDT_TRANSFER_GAS_LIMIT = 500000;
|
|
11
|
+
exports.DCDT_TRANSFER_FUNCTION_NAME = "DCDTTransfer";
|
|
12
|
+
exports.DCDTNFT_TRANSFER_FUNCTION_NAME = "DCDTNFTTransfer";
|
|
13
|
+
exports.MULTI_DCDTNFT_TRANSFER_FUNCTION_NAME = "MultiDCDTNFTTransfer";
|
|
14
|
+
exports.DCDT_TRANSFER_VALUE = "0";
|
|
15
|
+
exports.ARGUMENTS_SEPARATOR = "@";
|
|
16
|
+
exports.VM_TYPE_WASM_VM = new Uint8Array([0x05, 0x00]);
|
|
17
|
+
exports.CONTRACT_DEPLOY_ADDRESS_HEX = "0000000000000000000000000000000000000000000000000000000000000000";
|
|
18
|
+
exports.DELEGATION_MANAGER_SC_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000004ffff";
|
|
19
|
+
exports.DCDT_CONTRACT_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000002ffff";
|
|
20
|
+
exports.GOVERNANCE_CONTRACT_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000003ffff";
|
|
21
|
+
exports.DEFAULT_MESSAGE_VERSION = 1;
|
|
22
|
+
exports.MESSAGE_PREFIX = "\x17Numbat Signed Message:\n";
|
|
23
|
+
exports.HEX_TRANSACTION_HASH_LENGTH = 64;
|
|
24
|
+
exports.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META = 3;
|
|
25
|
+
exports.WasmVirtualMachine = "0500";
|
|
26
|
+
exports.METACHAIN_ID = 4294967295;
|
|
27
|
+
exports.SDK_JS_SIGNER = "sdk-js";
|
|
28
|
+
exports.UNKNOWN_SIGNER = "unknown";
|
|
29
|
+
exports.REWA_IDENTIFIER_FOR_MULTI_DCDTNFT_TRANSFER = "REWA-000000";
|
|
30
|
+
exports.EXTRA_GAS_LIMIT_FOR_GUARDED_TRANSACTIONS = 50000;
|
|
31
|
+
exports.EXTRA_GAS_LIMIT_FOR_RELAYED_TRANSACTIONS = 50000;
|
|
32
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +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;AAErG,QAAA,uBAAuB,GAAG,CAAC,CAAC;AAC5B,QAAA,cAAc,GAAG,8BAA8B,CAAC;AAChD,QAAA,2BAA2B,GAAG,EAAE,CAAC;AAEjC,QAAA,qCAAqC,GAAG,CAAC,CAAC;AA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