@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,719 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
|
|
3
|
+
(function (global, factory) {
|
|
4
|
+
/* AMD */ if (typeof define === 'function' && define.amd)
|
|
5
|
+
define(["protobufjs/minimal"], factory);
|
|
6
|
+
/* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
|
|
7
|
+
module.exports = factory(require("protobufjs/minimal"));
|
|
8
|
+
})(this, function ($protobuf) {
|
|
9
|
+
"use strict";
|
|
10
|
+
// Common aliases
|
|
11
|
+
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
|
|
12
|
+
// Exported root namespace
|
|
13
|
+
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
|
|
14
|
+
$root.proto = (function () {
|
|
15
|
+
/**
|
|
16
|
+
* Namespace proto.
|
|
17
|
+
* @exports proto
|
|
18
|
+
* @namespace
|
|
19
|
+
*/
|
|
20
|
+
var proto = {};
|
|
21
|
+
proto.Transaction = (function () {
|
|
22
|
+
/**
|
|
23
|
+
* Properties of a Transaction.
|
|
24
|
+
* @memberof proto
|
|
25
|
+
* @interface ITransaction
|
|
26
|
+
* @property {number|Long|null} [Nonce] Transaction Nonce
|
|
27
|
+
* @property {Uint8Array|null} [Value] Transaction Value
|
|
28
|
+
* @property {Uint8Array|null} [RcvAddr] Transaction RcvAddr
|
|
29
|
+
* @property {Uint8Array|null} [RcvUserName] Transaction RcvUserName
|
|
30
|
+
* @property {Uint8Array|null} [SndAddr] Transaction SndAddr
|
|
31
|
+
* @property {Uint8Array|null} [SndUserName] Transaction SndUserName
|
|
32
|
+
* @property {number|Long|null} [GasPrice] Transaction GasPrice
|
|
33
|
+
* @property {number|Long|null} [GasLimit] Transaction GasLimit
|
|
34
|
+
* @property {Uint8Array|null} [Data] Transaction Data
|
|
35
|
+
* @property {Uint8Array|null} [ChainID] Transaction ChainID
|
|
36
|
+
* @property {number|null} [Version] Transaction Version
|
|
37
|
+
* @property {Uint8Array|null} [Signature] Transaction Signature
|
|
38
|
+
* @property {number|null} [Options] Transaction Options
|
|
39
|
+
* @property {Uint8Array|null} [GuardianAddr] Transaction GuardianAddr
|
|
40
|
+
* @property {Uint8Array|null} [GuardianSignature] Transaction GuardianSignature
|
|
41
|
+
* @property {Uint8Array|null} [Relayer] Transaction Relayer
|
|
42
|
+
* @property {Uint8Array|null} [RelayerSignature] Transaction RelayerSignature
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* Constructs a new Transaction.
|
|
46
|
+
* @memberof proto
|
|
47
|
+
* @classdesc Represents a Transaction.
|
|
48
|
+
* @implements ITransaction
|
|
49
|
+
* @constructor
|
|
50
|
+
* @param {proto.ITransaction=} [properties] Properties to set
|
|
51
|
+
*/
|
|
52
|
+
function Transaction(properties) {
|
|
53
|
+
if (properties)
|
|
54
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55
|
+
if (properties[keys[i]] != null)
|
|
56
|
+
this[keys[i]] = properties[keys[i]];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Transaction Nonce.
|
|
60
|
+
* @member {number|Long} Nonce
|
|
61
|
+
* @memberof proto.Transaction
|
|
62
|
+
* @instance
|
|
63
|
+
*/
|
|
64
|
+
Transaction.prototype.Nonce = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
65
|
+
/**
|
|
66
|
+
* Transaction Value.
|
|
67
|
+
* @member {Uint8Array} Value
|
|
68
|
+
* @memberof proto.Transaction
|
|
69
|
+
* @instance
|
|
70
|
+
*/
|
|
71
|
+
Transaction.prototype.Value = $util.newBuffer([]);
|
|
72
|
+
/**
|
|
73
|
+
* Transaction RcvAddr.
|
|
74
|
+
* @member {Uint8Array} RcvAddr
|
|
75
|
+
* @memberof proto.Transaction
|
|
76
|
+
* @instance
|
|
77
|
+
*/
|
|
78
|
+
Transaction.prototype.RcvAddr = $util.newBuffer([]);
|
|
79
|
+
/**
|
|
80
|
+
* Transaction RcvUserName.
|
|
81
|
+
* @member {Uint8Array} RcvUserName
|
|
82
|
+
* @memberof proto.Transaction
|
|
83
|
+
* @instance
|
|
84
|
+
*/
|
|
85
|
+
Transaction.prototype.RcvUserName = $util.newBuffer([]);
|
|
86
|
+
/**
|
|
87
|
+
* Transaction SndAddr.
|
|
88
|
+
* @member {Uint8Array} SndAddr
|
|
89
|
+
* @memberof proto.Transaction
|
|
90
|
+
* @instance
|
|
91
|
+
*/
|
|
92
|
+
Transaction.prototype.SndAddr = $util.newBuffer([]);
|
|
93
|
+
/**
|
|
94
|
+
* Transaction SndUserName.
|
|
95
|
+
* @member {Uint8Array} SndUserName
|
|
96
|
+
* @memberof proto.Transaction
|
|
97
|
+
* @instance
|
|
98
|
+
*/
|
|
99
|
+
Transaction.prototype.SndUserName = $util.newBuffer([]);
|
|
100
|
+
/**
|
|
101
|
+
* Transaction GasPrice.
|
|
102
|
+
* @member {number|Long} GasPrice
|
|
103
|
+
* @memberof proto.Transaction
|
|
104
|
+
* @instance
|
|
105
|
+
*/
|
|
106
|
+
Transaction.prototype.GasPrice = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
107
|
+
/**
|
|
108
|
+
* Transaction GasLimit.
|
|
109
|
+
* @member {number|Long} GasLimit
|
|
110
|
+
* @memberof proto.Transaction
|
|
111
|
+
* @instance
|
|
112
|
+
*/
|
|
113
|
+
Transaction.prototype.GasLimit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
114
|
+
/**
|
|
115
|
+
* Transaction Data.
|
|
116
|
+
* @member {Uint8Array} Data
|
|
117
|
+
* @memberof proto.Transaction
|
|
118
|
+
* @instance
|
|
119
|
+
*/
|
|
120
|
+
Transaction.prototype.Data = $util.newBuffer([]);
|
|
121
|
+
/**
|
|
122
|
+
* Transaction ChainID.
|
|
123
|
+
* @member {Uint8Array} ChainID
|
|
124
|
+
* @memberof proto.Transaction
|
|
125
|
+
* @instance
|
|
126
|
+
*/
|
|
127
|
+
Transaction.prototype.ChainID = $util.newBuffer([]);
|
|
128
|
+
/**
|
|
129
|
+
* Transaction Version.
|
|
130
|
+
* @member {number} Version
|
|
131
|
+
* @memberof proto.Transaction
|
|
132
|
+
* @instance
|
|
133
|
+
*/
|
|
134
|
+
Transaction.prototype.Version = 0;
|
|
135
|
+
/**
|
|
136
|
+
* Transaction Signature.
|
|
137
|
+
* @member {Uint8Array} Signature
|
|
138
|
+
* @memberof proto.Transaction
|
|
139
|
+
* @instance
|
|
140
|
+
*/
|
|
141
|
+
Transaction.prototype.Signature = $util.newBuffer([]);
|
|
142
|
+
/**
|
|
143
|
+
* Transaction Options.
|
|
144
|
+
* @member {number} Options
|
|
145
|
+
* @memberof proto.Transaction
|
|
146
|
+
* @instance
|
|
147
|
+
*/
|
|
148
|
+
Transaction.prototype.Options = 0;
|
|
149
|
+
/**
|
|
150
|
+
* Transaction GuardianAddr.
|
|
151
|
+
* @member {Uint8Array} GuardianAddr
|
|
152
|
+
* @memberof proto.Transaction
|
|
153
|
+
* @instance
|
|
154
|
+
*/
|
|
155
|
+
Transaction.prototype.GuardianAddr = $util.newBuffer([]);
|
|
156
|
+
/**
|
|
157
|
+
* Transaction GuardianSignature.
|
|
158
|
+
* @member {Uint8Array} GuardianSignature
|
|
159
|
+
* @memberof proto.Transaction
|
|
160
|
+
* @instance
|
|
161
|
+
*/
|
|
162
|
+
Transaction.prototype.GuardianSignature = $util.newBuffer([]);
|
|
163
|
+
/**
|
|
164
|
+
* Transaction Relayer.
|
|
165
|
+
* @member {Uint8Array} Relayer
|
|
166
|
+
* @memberof proto.Transaction
|
|
167
|
+
* @instance
|
|
168
|
+
*/
|
|
169
|
+
Transaction.prototype.Relayer = $util.newBuffer([]);
|
|
170
|
+
/**
|
|
171
|
+
* Transaction RelayerSignature.
|
|
172
|
+
* @member {Uint8Array} RelayerSignature
|
|
173
|
+
* @memberof proto.Transaction
|
|
174
|
+
* @instance
|
|
175
|
+
*/
|
|
176
|
+
Transaction.prototype.RelayerSignature = $util.newBuffer([]);
|
|
177
|
+
/**
|
|
178
|
+
* Creates a new Transaction instance using the specified properties.
|
|
179
|
+
* @function create
|
|
180
|
+
* @memberof proto.Transaction
|
|
181
|
+
* @static
|
|
182
|
+
* @param {proto.ITransaction=} [properties] Properties to set
|
|
183
|
+
* @returns {proto.Transaction} Transaction instance
|
|
184
|
+
*/
|
|
185
|
+
Transaction.create = function create(properties) {
|
|
186
|
+
return new Transaction(properties);
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Encodes the specified Transaction message. Does not implicitly {@link proto.Transaction.verify|verify} messages.
|
|
190
|
+
* @function encode
|
|
191
|
+
* @memberof proto.Transaction
|
|
192
|
+
* @static
|
|
193
|
+
* @param {proto.ITransaction} message Transaction message or plain object to encode
|
|
194
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
195
|
+
* @returns {$protobuf.Writer} Writer
|
|
196
|
+
*/
|
|
197
|
+
Transaction.encode = function encode(message, writer) {
|
|
198
|
+
if (!writer)
|
|
199
|
+
writer = $Writer.create();
|
|
200
|
+
if (message.Nonce != null && Object.hasOwnProperty.call(message, "Nonce"))
|
|
201
|
+
writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.Nonce);
|
|
202
|
+
if (message.Value != null && Object.hasOwnProperty.call(message, "Value"))
|
|
203
|
+
writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.Value);
|
|
204
|
+
if (message.RcvAddr != null && Object.hasOwnProperty.call(message, "RcvAddr"))
|
|
205
|
+
writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.RcvAddr);
|
|
206
|
+
if (message.RcvUserName != null && Object.hasOwnProperty.call(message, "RcvUserName"))
|
|
207
|
+
writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.RcvUserName);
|
|
208
|
+
if (message.SndAddr != null && Object.hasOwnProperty.call(message, "SndAddr"))
|
|
209
|
+
writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.SndAddr);
|
|
210
|
+
if (message.SndUserName != null && Object.hasOwnProperty.call(message, "SndUserName"))
|
|
211
|
+
writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.SndUserName);
|
|
212
|
+
if (message.GasPrice != null && Object.hasOwnProperty.call(message, "GasPrice"))
|
|
213
|
+
writer.uint32(/* id 7, wireType 0 =*/ 56).uint64(message.GasPrice);
|
|
214
|
+
if (message.GasLimit != null && Object.hasOwnProperty.call(message, "GasLimit"))
|
|
215
|
+
writer.uint32(/* id 8, wireType 0 =*/ 64).uint64(message.GasLimit);
|
|
216
|
+
if (message.Data != null && Object.hasOwnProperty.call(message, "Data"))
|
|
217
|
+
writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.Data);
|
|
218
|
+
if (message.ChainID != null && Object.hasOwnProperty.call(message, "ChainID"))
|
|
219
|
+
writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.ChainID);
|
|
220
|
+
if (message.Version != null && Object.hasOwnProperty.call(message, "Version"))
|
|
221
|
+
writer.uint32(/* id 11, wireType 0 =*/ 88).uint32(message.Version);
|
|
222
|
+
if (message.Signature != null && Object.hasOwnProperty.call(message, "Signature"))
|
|
223
|
+
writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.Signature);
|
|
224
|
+
if (message.Options != null && Object.hasOwnProperty.call(message, "Options"))
|
|
225
|
+
writer.uint32(/* id 13, wireType 0 =*/ 104).uint32(message.Options);
|
|
226
|
+
if (message.GuardianAddr != null && Object.hasOwnProperty.call(message, "GuardianAddr"))
|
|
227
|
+
writer.uint32(/* id 14, wireType 2 =*/ 114).bytes(message.GuardianAddr);
|
|
228
|
+
if (message.GuardianSignature != null && Object.hasOwnProperty.call(message, "GuardianSignature"))
|
|
229
|
+
writer.uint32(/* id 15, wireType 2 =*/ 122).bytes(message.GuardianSignature);
|
|
230
|
+
if (message.Relayer != null && Object.hasOwnProperty.call(message, "Relayer"))
|
|
231
|
+
writer.uint32(/* id 16, wireType 2 =*/ 130).bytes(message.Relayer);
|
|
232
|
+
if (message.RelayerSignature != null && Object.hasOwnProperty.call(message, "RelayerSignature"))
|
|
233
|
+
writer.uint32(/* id 17, wireType 2 =*/ 138).bytes(message.RelayerSignature);
|
|
234
|
+
return writer;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Encodes the specified Transaction message, length delimited. Does not implicitly {@link proto.Transaction.verify|verify} messages.
|
|
238
|
+
* @function encodeDelimited
|
|
239
|
+
* @memberof proto.Transaction
|
|
240
|
+
* @static
|
|
241
|
+
* @param {proto.ITransaction} message Transaction message or plain object to encode
|
|
242
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
243
|
+
* @returns {$protobuf.Writer} Writer
|
|
244
|
+
*/
|
|
245
|
+
Transaction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
246
|
+
return this.encode(message, writer).ldelim();
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Decodes a Transaction message from the specified reader or buffer.
|
|
250
|
+
* @function decode
|
|
251
|
+
* @memberof proto.Transaction
|
|
252
|
+
* @static
|
|
253
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
254
|
+
* @param {number} [length] Message length if known beforehand
|
|
255
|
+
* @returns {proto.Transaction} Transaction
|
|
256
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
257
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
258
|
+
*/
|
|
259
|
+
Transaction.decode = function decode(reader, length) {
|
|
260
|
+
if (!(reader instanceof $Reader))
|
|
261
|
+
reader = $Reader.create(reader);
|
|
262
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.Transaction();
|
|
263
|
+
while (reader.pos < end) {
|
|
264
|
+
var tag = reader.uint32();
|
|
265
|
+
switch (tag >>> 3) {
|
|
266
|
+
case 1: {
|
|
267
|
+
message.Nonce = reader.uint64();
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
case 2: {
|
|
271
|
+
message.Value = reader.bytes();
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
case 3: {
|
|
275
|
+
message.RcvAddr = reader.bytes();
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
case 4: {
|
|
279
|
+
message.RcvUserName = reader.bytes();
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
case 5: {
|
|
283
|
+
message.SndAddr = reader.bytes();
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
case 6: {
|
|
287
|
+
message.SndUserName = reader.bytes();
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
case 7: {
|
|
291
|
+
message.GasPrice = reader.uint64();
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
case 8: {
|
|
295
|
+
message.GasLimit = reader.uint64();
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
case 9: {
|
|
299
|
+
message.Data = reader.bytes();
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
case 10: {
|
|
303
|
+
message.ChainID = reader.bytes();
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
case 11: {
|
|
307
|
+
message.Version = reader.uint32();
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
case 12: {
|
|
311
|
+
message.Signature = reader.bytes();
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
case 13: {
|
|
315
|
+
message.Options = reader.uint32();
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
case 14: {
|
|
319
|
+
message.GuardianAddr = reader.bytes();
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
case 15: {
|
|
323
|
+
message.GuardianSignature = reader.bytes();
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
case 16: {
|
|
327
|
+
message.Relayer = reader.bytes();
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
case 17: {
|
|
331
|
+
message.RelayerSignature = reader.bytes();
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
default:
|
|
335
|
+
reader.skipType(tag & 7);
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return message;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Decodes a Transaction message from the specified reader or buffer, length delimited.
|
|
343
|
+
* @function decodeDelimited
|
|
344
|
+
* @memberof proto.Transaction
|
|
345
|
+
* @static
|
|
346
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
347
|
+
* @returns {proto.Transaction} Transaction
|
|
348
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
349
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
350
|
+
*/
|
|
351
|
+
Transaction.decodeDelimited = function decodeDelimited(reader) {
|
|
352
|
+
if (!(reader instanceof $Reader))
|
|
353
|
+
reader = new $Reader(reader);
|
|
354
|
+
return this.decode(reader, reader.uint32());
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Verifies a Transaction message.
|
|
358
|
+
* @function verify
|
|
359
|
+
* @memberof proto.Transaction
|
|
360
|
+
* @static
|
|
361
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
362
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
363
|
+
*/
|
|
364
|
+
Transaction.verify = function verify(message) {
|
|
365
|
+
if (typeof message !== "object" || message === null)
|
|
366
|
+
return "object expected";
|
|
367
|
+
if (message.Nonce != null && message.hasOwnProperty("Nonce"))
|
|
368
|
+
if (!$util.isInteger(message.Nonce) && !(message.Nonce && $util.isInteger(message.Nonce.low) && $util.isInteger(message.Nonce.high)))
|
|
369
|
+
return "Nonce: integer|Long expected";
|
|
370
|
+
if (message.Value != null && message.hasOwnProperty("Value"))
|
|
371
|
+
if (!(message.Value && typeof message.Value.length === "number" || $util.isString(message.Value)))
|
|
372
|
+
return "Value: buffer expected";
|
|
373
|
+
if (message.RcvAddr != null && message.hasOwnProperty("RcvAddr"))
|
|
374
|
+
if (!(message.RcvAddr && typeof message.RcvAddr.length === "number" || $util.isString(message.RcvAddr)))
|
|
375
|
+
return "RcvAddr: buffer expected";
|
|
376
|
+
if (message.RcvUserName != null && message.hasOwnProperty("RcvUserName"))
|
|
377
|
+
if (!(message.RcvUserName && typeof message.RcvUserName.length === "number" || $util.isString(message.RcvUserName)))
|
|
378
|
+
return "RcvUserName: buffer expected";
|
|
379
|
+
if (message.SndAddr != null && message.hasOwnProperty("SndAddr"))
|
|
380
|
+
if (!(message.SndAddr && typeof message.SndAddr.length === "number" || $util.isString(message.SndAddr)))
|
|
381
|
+
return "SndAddr: buffer expected";
|
|
382
|
+
if (message.SndUserName != null && message.hasOwnProperty("SndUserName"))
|
|
383
|
+
if (!(message.SndUserName && typeof message.SndUserName.length === "number" || $util.isString(message.SndUserName)))
|
|
384
|
+
return "SndUserName: buffer expected";
|
|
385
|
+
if (message.GasPrice != null && message.hasOwnProperty("GasPrice"))
|
|
386
|
+
if (!$util.isInteger(message.GasPrice) && !(message.GasPrice && $util.isInteger(message.GasPrice.low) && $util.isInteger(message.GasPrice.high)))
|
|
387
|
+
return "GasPrice: integer|Long expected";
|
|
388
|
+
if (message.GasLimit != null && message.hasOwnProperty("GasLimit"))
|
|
389
|
+
if (!$util.isInteger(message.GasLimit) && !(message.GasLimit && $util.isInteger(message.GasLimit.low) && $util.isInteger(message.GasLimit.high)))
|
|
390
|
+
return "GasLimit: integer|Long expected";
|
|
391
|
+
if (message.Data != null && message.hasOwnProperty("Data"))
|
|
392
|
+
if (!(message.Data && typeof message.Data.length === "number" || $util.isString(message.Data)))
|
|
393
|
+
return "Data: buffer expected";
|
|
394
|
+
if (message.ChainID != null && message.hasOwnProperty("ChainID"))
|
|
395
|
+
if (!(message.ChainID && typeof message.ChainID.length === "number" || $util.isString(message.ChainID)))
|
|
396
|
+
return "ChainID: buffer expected";
|
|
397
|
+
if (message.Version != null && message.hasOwnProperty("Version"))
|
|
398
|
+
if (!$util.isInteger(message.Version))
|
|
399
|
+
return "Version: integer expected";
|
|
400
|
+
if (message.Signature != null && message.hasOwnProperty("Signature"))
|
|
401
|
+
if (!(message.Signature && typeof message.Signature.length === "number" || $util.isString(message.Signature)))
|
|
402
|
+
return "Signature: buffer expected";
|
|
403
|
+
if (message.Options != null && message.hasOwnProperty("Options"))
|
|
404
|
+
if (!$util.isInteger(message.Options))
|
|
405
|
+
return "Options: integer expected";
|
|
406
|
+
if (message.GuardianAddr != null && message.hasOwnProperty("GuardianAddr"))
|
|
407
|
+
if (!(message.GuardianAddr && typeof message.GuardianAddr.length === "number" || $util.isString(message.GuardianAddr)))
|
|
408
|
+
return "GuardianAddr: buffer expected";
|
|
409
|
+
if (message.GuardianSignature != null && message.hasOwnProperty("GuardianSignature"))
|
|
410
|
+
if (!(message.GuardianSignature && typeof message.GuardianSignature.length === "number" || $util.isString(message.GuardianSignature)))
|
|
411
|
+
return "GuardianSignature: buffer expected";
|
|
412
|
+
if (message.Relayer != null && message.hasOwnProperty("Relayer"))
|
|
413
|
+
if (!(message.Relayer && typeof message.Relayer.length === "number" || $util.isString(message.Relayer)))
|
|
414
|
+
return "Relayer: buffer expected";
|
|
415
|
+
if (message.RelayerSignature != null && message.hasOwnProperty("RelayerSignature"))
|
|
416
|
+
if (!(message.RelayerSignature && typeof message.RelayerSignature.length === "number" || $util.isString(message.RelayerSignature)))
|
|
417
|
+
return "RelayerSignature: buffer expected";
|
|
418
|
+
return null;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Creates a Transaction message from a plain object. Also converts values to their respective internal types.
|
|
422
|
+
* @function fromObject
|
|
423
|
+
* @memberof proto.Transaction
|
|
424
|
+
* @static
|
|
425
|
+
* @param {Object.<string,*>} object Plain object
|
|
426
|
+
* @returns {proto.Transaction} Transaction
|
|
427
|
+
*/
|
|
428
|
+
Transaction.fromObject = function fromObject(object) {
|
|
429
|
+
if (object instanceof $root.proto.Transaction)
|
|
430
|
+
return object;
|
|
431
|
+
var message = new $root.proto.Transaction();
|
|
432
|
+
if (object.Nonce != null)
|
|
433
|
+
if ($util.Long)
|
|
434
|
+
(message.Nonce = $util.Long.fromValue(object.Nonce)).unsigned = true;
|
|
435
|
+
else if (typeof object.Nonce === "string")
|
|
436
|
+
message.Nonce = parseInt(object.Nonce, 10);
|
|
437
|
+
else if (typeof object.Nonce === "number")
|
|
438
|
+
message.Nonce = object.Nonce;
|
|
439
|
+
else if (typeof object.Nonce === "object")
|
|
440
|
+
message.Nonce = new $util.LongBits(object.Nonce.low >>> 0, object.Nonce.high >>> 0).toNumber(true);
|
|
441
|
+
if (object.Value != null)
|
|
442
|
+
if (typeof object.Value === "string")
|
|
443
|
+
$util.base64.decode(object.Value, message.Value = $util.newBuffer($util.base64.length(object.Value)), 0);
|
|
444
|
+
else if (object.Value.length >= 0)
|
|
445
|
+
message.Value = object.Value;
|
|
446
|
+
if (object.RcvAddr != null)
|
|
447
|
+
if (typeof object.RcvAddr === "string")
|
|
448
|
+
$util.base64.decode(object.RcvAddr, message.RcvAddr = $util.newBuffer($util.base64.length(object.RcvAddr)), 0);
|
|
449
|
+
else if (object.RcvAddr.length >= 0)
|
|
450
|
+
message.RcvAddr = object.RcvAddr;
|
|
451
|
+
if (object.RcvUserName != null)
|
|
452
|
+
if (typeof object.RcvUserName === "string")
|
|
453
|
+
$util.base64.decode(object.RcvUserName, message.RcvUserName = $util.newBuffer($util.base64.length(object.RcvUserName)), 0);
|
|
454
|
+
else if (object.RcvUserName.length >= 0)
|
|
455
|
+
message.RcvUserName = object.RcvUserName;
|
|
456
|
+
if (object.SndAddr != null)
|
|
457
|
+
if (typeof object.SndAddr === "string")
|
|
458
|
+
$util.base64.decode(object.SndAddr, message.SndAddr = $util.newBuffer($util.base64.length(object.SndAddr)), 0);
|
|
459
|
+
else if (object.SndAddr.length >= 0)
|
|
460
|
+
message.SndAddr = object.SndAddr;
|
|
461
|
+
if (object.SndUserName != null)
|
|
462
|
+
if (typeof object.SndUserName === "string")
|
|
463
|
+
$util.base64.decode(object.SndUserName, message.SndUserName = $util.newBuffer($util.base64.length(object.SndUserName)), 0);
|
|
464
|
+
else if (object.SndUserName.length >= 0)
|
|
465
|
+
message.SndUserName = object.SndUserName;
|
|
466
|
+
if (object.GasPrice != null)
|
|
467
|
+
if ($util.Long)
|
|
468
|
+
(message.GasPrice = $util.Long.fromValue(object.GasPrice)).unsigned = true;
|
|
469
|
+
else if (typeof object.GasPrice === "string")
|
|
470
|
+
message.GasPrice = parseInt(object.GasPrice, 10);
|
|
471
|
+
else if (typeof object.GasPrice === "number")
|
|
472
|
+
message.GasPrice = object.GasPrice;
|
|
473
|
+
else if (typeof object.GasPrice === "object")
|
|
474
|
+
message.GasPrice = new $util.LongBits(object.GasPrice.low >>> 0, object.GasPrice.high >>> 0).toNumber(true);
|
|
475
|
+
if (object.GasLimit != null)
|
|
476
|
+
if ($util.Long)
|
|
477
|
+
(message.GasLimit = $util.Long.fromValue(object.GasLimit)).unsigned = true;
|
|
478
|
+
else if (typeof object.GasLimit === "string")
|
|
479
|
+
message.GasLimit = parseInt(object.GasLimit, 10);
|
|
480
|
+
else if (typeof object.GasLimit === "number")
|
|
481
|
+
message.GasLimit = object.GasLimit;
|
|
482
|
+
else if (typeof object.GasLimit === "object")
|
|
483
|
+
message.GasLimit = new $util.LongBits(object.GasLimit.low >>> 0, object.GasLimit.high >>> 0).toNumber(true);
|
|
484
|
+
if (object.Data != null)
|
|
485
|
+
if (typeof object.Data === "string")
|
|
486
|
+
$util.base64.decode(object.Data, message.Data = $util.newBuffer($util.base64.length(object.Data)), 0);
|
|
487
|
+
else if (object.Data.length >= 0)
|
|
488
|
+
message.Data = object.Data;
|
|
489
|
+
if (object.ChainID != null)
|
|
490
|
+
if (typeof object.ChainID === "string")
|
|
491
|
+
$util.base64.decode(object.ChainID, message.ChainID = $util.newBuffer($util.base64.length(object.ChainID)), 0);
|
|
492
|
+
else if (object.ChainID.length >= 0)
|
|
493
|
+
message.ChainID = object.ChainID;
|
|
494
|
+
if (object.Version != null)
|
|
495
|
+
message.Version = object.Version >>> 0;
|
|
496
|
+
if (object.Signature != null)
|
|
497
|
+
if (typeof object.Signature === "string")
|
|
498
|
+
$util.base64.decode(object.Signature, message.Signature = $util.newBuffer($util.base64.length(object.Signature)), 0);
|
|
499
|
+
else if (object.Signature.length >= 0)
|
|
500
|
+
message.Signature = object.Signature;
|
|
501
|
+
if (object.Options != null)
|
|
502
|
+
message.Options = object.Options >>> 0;
|
|
503
|
+
if (object.GuardianAddr != null)
|
|
504
|
+
if (typeof object.GuardianAddr === "string")
|
|
505
|
+
$util.base64.decode(object.GuardianAddr, message.GuardianAddr = $util.newBuffer($util.base64.length(object.GuardianAddr)), 0);
|
|
506
|
+
else if (object.GuardianAddr.length >= 0)
|
|
507
|
+
message.GuardianAddr = object.GuardianAddr;
|
|
508
|
+
if (object.GuardianSignature != null)
|
|
509
|
+
if (typeof object.GuardianSignature === "string")
|
|
510
|
+
$util.base64.decode(object.GuardianSignature, message.GuardianSignature = $util.newBuffer($util.base64.length(object.GuardianSignature)), 0);
|
|
511
|
+
else if (object.GuardianSignature.length >= 0)
|
|
512
|
+
message.GuardianSignature = object.GuardianSignature;
|
|
513
|
+
if (object.Relayer != null)
|
|
514
|
+
if (typeof object.Relayer === "string")
|
|
515
|
+
$util.base64.decode(object.Relayer, message.Relayer = $util.newBuffer($util.base64.length(object.Relayer)), 0);
|
|
516
|
+
else if (object.Relayer.length >= 0)
|
|
517
|
+
message.Relayer = object.Relayer;
|
|
518
|
+
if (object.RelayerSignature != null)
|
|
519
|
+
if (typeof object.RelayerSignature === "string")
|
|
520
|
+
$util.base64.decode(object.RelayerSignature, message.RelayerSignature = $util.newBuffer($util.base64.length(object.RelayerSignature)), 0);
|
|
521
|
+
else if (object.RelayerSignature.length >= 0)
|
|
522
|
+
message.RelayerSignature = object.RelayerSignature;
|
|
523
|
+
return message;
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Creates a plain object from a Transaction message. Also converts values to other types if specified.
|
|
527
|
+
* @function toObject
|
|
528
|
+
* @memberof proto.Transaction
|
|
529
|
+
* @static
|
|
530
|
+
* @param {proto.Transaction} message Transaction
|
|
531
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
532
|
+
* @returns {Object.<string,*>} Plain object
|
|
533
|
+
*/
|
|
534
|
+
Transaction.toObject = function toObject(message, options) {
|
|
535
|
+
if (!options)
|
|
536
|
+
options = {};
|
|
537
|
+
var object = {};
|
|
538
|
+
if (options.defaults) {
|
|
539
|
+
if ($util.Long) {
|
|
540
|
+
var long = new $util.Long(0, 0, true);
|
|
541
|
+
object.Nonce = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
542
|
+
}
|
|
543
|
+
else
|
|
544
|
+
object.Nonce = options.longs === String ? "0" : 0;
|
|
545
|
+
if (options.bytes === String)
|
|
546
|
+
object.Value = "";
|
|
547
|
+
else {
|
|
548
|
+
object.Value = [];
|
|
549
|
+
if (options.bytes !== Array)
|
|
550
|
+
object.Value = $util.newBuffer(object.Value);
|
|
551
|
+
}
|
|
552
|
+
if (options.bytes === String)
|
|
553
|
+
object.RcvAddr = "";
|
|
554
|
+
else {
|
|
555
|
+
object.RcvAddr = [];
|
|
556
|
+
if (options.bytes !== Array)
|
|
557
|
+
object.RcvAddr = $util.newBuffer(object.RcvAddr);
|
|
558
|
+
}
|
|
559
|
+
if (options.bytes === String)
|
|
560
|
+
object.RcvUserName = "";
|
|
561
|
+
else {
|
|
562
|
+
object.RcvUserName = [];
|
|
563
|
+
if (options.bytes !== Array)
|
|
564
|
+
object.RcvUserName = $util.newBuffer(object.RcvUserName);
|
|
565
|
+
}
|
|
566
|
+
if (options.bytes === String)
|
|
567
|
+
object.SndAddr = "";
|
|
568
|
+
else {
|
|
569
|
+
object.SndAddr = [];
|
|
570
|
+
if (options.bytes !== Array)
|
|
571
|
+
object.SndAddr = $util.newBuffer(object.SndAddr);
|
|
572
|
+
}
|
|
573
|
+
if (options.bytes === String)
|
|
574
|
+
object.SndUserName = "";
|
|
575
|
+
else {
|
|
576
|
+
object.SndUserName = [];
|
|
577
|
+
if (options.bytes !== Array)
|
|
578
|
+
object.SndUserName = $util.newBuffer(object.SndUserName);
|
|
579
|
+
}
|
|
580
|
+
if ($util.Long) {
|
|
581
|
+
var long = new $util.Long(0, 0, true);
|
|
582
|
+
object.GasPrice = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
583
|
+
}
|
|
584
|
+
else
|
|
585
|
+
object.GasPrice = options.longs === String ? "0" : 0;
|
|
586
|
+
if ($util.Long) {
|
|
587
|
+
var long = new $util.Long(0, 0, true);
|
|
588
|
+
object.GasLimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
589
|
+
}
|
|
590
|
+
else
|
|
591
|
+
object.GasLimit = options.longs === String ? "0" : 0;
|
|
592
|
+
if (options.bytes === String)
|
|
593
|
+
object.Data = "";
|
|
594
|
+
else {
|
|
595
|
+
object.Data = [];
|
|
596
|
+
if (options.bytes !== Array)
|
|
597
|
+
object.Data = $util.newBuffer(object.Data);
|
|
598
|
+
}
|
|
599
|
+
if (options.bytes === String)
|
|
600
|
+
object.ChainID = "";
|
|
601
|
+
else {
|
|
602
|
+
object.ChainID = [];
|
|
603
|
+
if (options.bytes !== Array)
|
|
604
|
+
object.ChainID = $util.newBuffer(object.ChainID);
|
|
605
|
+
}
|
|
606
|
+
object.Version = 0;
|
|
607
|
+
if (options.bytes === String)
|
|
608
|
+
object.Signature = "";
|
|
609
|
+
else {
|
|
610
|
+
object.Signature = [];
|
|
611
|
+
if (options.bytes !== Array)
|
|
612
|
+
object.Signature = $util.newBuffer(object.Signature);
|
|
613
|
+
}
|
|
614
|
+
object.Options = 0;
|
|
615
|
+
if (options.bytes === String)
|
|
616
|
+
object.GuardianAddr = "";
|
|
617
|
+
else {
|
|
618
|
+
object.GuardianAddr = [];
|
|
619
|
+
if (options.bytes !== Array)
|
|
620
|
+
object.GuardianAddr = $util.newBuffer(object.GuardianAddr);
|
|
621
|
+
}
|
|
622
|
+
if (options.bytes === String)
|
|
623
|
+
object.GuardianSignature = "";
|
|
624
|
+
else {
|
|
625
|
+
object.GuardianSignature = [];
|
|
626
|
+
if (options.bytes !== Array)
|
|
627
|
+
object.GuardianSignature = $util.newBuffer(object.GuardianSignature);
|
|
628
|
+
}
|
|
629
|
+
if (options.bytes === String)
|
|
630
|
+
object.Relayer = "";
|
|
631
|
+
else {
|
|
632
|
+
object.Relayer = [];
|
|
633
|
+
if (options.bytes !== Array)
|
|
634
|
+
object.Relayer = $util.newBuffer(object.Relayer);
|
|
635
|
+
}
|
|
636
|
+
if (options.bytes === String)
|
|
637
|
+
object.RelayerSignature = "";
|
|
638
|
+
else {
|
|
639
|
+
object.RelayerSignature = [];
|
|
640
|
+
if (options.bytes !== Array)
|
|
641
|
+
object.RelayerSignature = $util.newBuffer(object.RelayerSignature);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
if (message.Nonce != null && message.hasOwnProperty("Nonce"))
|
|
645
|
+
if (typeof message.Nonce === "number")
|
|
646
|
+
object.Nonce = options.longs === String ? String(message.Nonce) : message.Nonce;
|
|
647
|
+
else
|
|
648
|
+
object.Nonce = options.longs === String ? $util.Long.prototype.toString.call(message.Nonce) : options.longs === Number ? new $util.LongBits(message.Nonce.low >>> 0, message.Nonce.high >>> 0).toNumber(true) : message.Nonce;
|
|
649
|
+
if (message.Value != null && message.hasOwnProperty("Value"))
|
|
650
|
+
object.Value = options.bytes === String ? $util.base64.encode(message.Value, 0, message.Value.length) : options.bytes === Array ? Array.prototype.slice.call(message.Value) : message.Value;
|
|
651
|
+
if (message.RcvAddr != null && message.hasOwnProperty("RcvAddr"))
|
|
652
|
+
object.RcvAddr = options.bytes === String ? $util.base64.encode(message.RcvAddr, 0, message.RcvAddr.length) : options.bytes === Array ? Array.prototype.slice.call(message.RcvAddr) : message.RcvAddr;
|
|
653
|
+
if (message.RcvUserName != null && message.hasOwnProperty("RcvUserName"))
|
|
654
|
+
object.RcvUserName = options.bytes === String ? $util.base64.encode(message.RcvUserName, 0, message.RcvUserName.length) : options.bytes === Array ? Array.prototype.slice.call(message.RcvUserName) : message.RcvUserName;
|
|
655
|
+
if (message.SndAddr != null && message.hasOwnProperty("SndAddr"))
|
|
656
|
+
object.SndAddr = options.bytes === String ? $util.base64.encode(message.SndAddr, 0, message.SndAddr.length) : options.bytes === Array ? Array.prototype.slice.call(message.SndAddr) : message.SndAddr;
|
|
657
|
+
if (message.SndUserName != null && message.hasOwnProperty("SndUserName"))
|
|
658
|
+
object.SndUserName = options.bytes === String ? $util.base64.encode(message.SndUserName, 0, message.SndUserName.length) : options.bytes === Array ? Array.prototype.slice.call(message.SndUserName) : message.SndUserName;
|
|
659
|
+
if (message.GasPrice != null && message.hasOwnProperty("GasPrice"))
|
|
660
|
+
if (typeof message.GasPrice === "number")
|
|
661
|
+
object.GasPrice = options.longs === String ? String(message.GasPrice) : message.GasPrice;
|
|
662
|
+
else
|
|
663
|
+
object.GasPrice = options.longs === String ? $util.Long.prototype.toString.call(message.GasPrice) : options.longs === Number ? new $util.LongBits(message.GasPrice.low >>> 0, message.GasPrice.high >>> 0).toNumber(true) : message.GasPrice;
|
|
664
|
+
if (message.GasLimit != null && message.hasOwnProperty("GasLimit"))
|
|
665
|
+
if (typeof message.GasLimit === "number")
|
|
666
|
+
object.GasLimit = options.longs === String ? String(message.GasLimit) : message.GasLimit;
|
|
667
|
+
else
|
|
668
|
+
object.GasLimit = options.longs === String ? $util.Long.prototype.toString.call(message.GasLimit) : options.longs === Number ? new $util.LongBits(message.GasLimit.low >>> 0, message.GasLimit.high >>> 0).toNumber(true) : message.GasLimit;
|
|
669
|
+
if (message.Data != null && message.hasOwnProperty("Data"))
|
|
670
|
+
object.Data = options.bytes === String ? $util.base64.encode(message.Data, 0, message.Data.length) : options.bytes === Array ? Array.prototype.slice.call(message.Data) : message.Data;
|
|
671
|
+
if (message.ChainID != null && message.hasOwnProperty("ChainID"))
|
|
672
|
+
object.ChainID = options.bytes === String ? $util.base64.encode(message.ChainID, 0, message.ChainID.length) : options.bytes === Array ? Array.prototype.slice.call(message.ChainID) : message.ChainID;
|
|
673
|
+
if (message.Version != null && message.hasOwnProperty("Version"))
|
|
674
|
+
object.Version = message.Version;
|
|
675
|
+
if (message.Signature != null && message.hasOwnProperty("Signature"))
|
|
676
|
+
object.Signature = options.bytes === String ? $util.base64.encode(message.Signature, 0, message.Signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.Signature) : message.Signature;
|
|
677
|
+
if (message.Options != null && message.hasOwnProperty("Options"))
|
|
678
|
+
object.Options = message.Options;
|
|
679
|
+
if (message.GuardianAddr != null && message.hasOwnProperty("GuardianAddr"))
|
|
680
|
+
object.GuardianAddr = options.bytes === String ? $util.base64.encode(message.GuardianAddr, 0, message.GuardianAddr.length) : options.bytes === Array ? Array.prototype.slice.call(message.GuardianAddr) : message.GuardianAddr;
|
|
681
|
+
if (message.GuardianSignature != null && message.hasOwnProperty("GuardianSignature"))
|
|
682
|
+
object.GuardianSignature = options.bytes === String ? $util.base64.encode(message.GuardianSignature, 0, message.GuardianSignature.length) : options.bytes === Array ? Array.prototype.slice.call(message.GuardianSignature) : message.GuardianSignature;
|
|
683
|
+
if (message.Relayer != null && message.hasOwnProperty("Relayer"))
|
|
684
|
+
object.Relayer = options.bytes === String ? $util.base64.encode(message.Relayer, 0, message.Relayer.length) : options.bytes === Array ? Array.prototype.slice.call(message.Relayer) : message.Relayer;
|
|
685
|
+
if (message.RelayerSignature != null && message.hasOwnProperty("RelayerSignature"))
|
|
686
|
+
object.RelayerSignature = options.bytes === String ? $util.base64.encode(message.RelayerSignature, 0, message.RelayerSignature.length) : options.bytes === Array ? Array.prototype.slice.call(message.RelayerSignature) : message.RelayerSignature;
|
|
687
|
+
return object;
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* Converts this Transaction to JSON.
|
|
691
|
+
* @function toJSON
|
|
692
|
+
* @memberof proto.Transaction
|
|
693
|
+
* @instance
|
|
694
|
+
* @returns {Object.<string,*>} JSON object
|
|
695
|
+
*/
|
|
696
|
+
Transaction.prototype.toJSON = function toJSON() {
|
|
697
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* Gets the default type url for Transaction
|
|
701
|
+
* @function getTypeUrl
|
|
702
|
+
* @memberof proto.Transaction
|
|
703
|
+
* @static
|
|
704
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
705
|
+
* @returns {string} The default type url
|
|
706
|
+
*/
|
|
707
|
+
Transaction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
708
|
+
if (typeUrlPrefix === undefined) {
|
|
709
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
710
|
+
}
|
|
711
|
+
return typeUrlPrefix + "/proto.Transaction";
|
|
712
|
+
};
|
|
713
|
+
return Transaction;
|
|
714
|
+
})();
|
|
715
|
+
return proto;
|
|
716
|
+
})();
|
|
717
|
+
return $root;
|
|
718
|
+
});
|
|
719
|
+
//# sourceMappingURL=compiled.js.map
|