@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,285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NullType = exports.TypePlaceholder = exports.isTyped = exports.PrimitiveValue = exports.TypedValue = exports.CustomType = exports.PrimitiveType = exports.TypeCardinality = exports.Type = void 0;
|
|
4
|
+
const reflection_1 = require("../../core/reflection");
|
|
5
|
+
const utils_1 = require("../../core/utils");
|
|
6
|
+
/**
|
|
7
|
+
* An abstraction that represents a Type. Handles both generic and non-generic types.
|
|
8
|
+
* Once instantiated as a Type, a generic type is "closed" (as opposed to "open").
|
|
9
|
+
*/
|
|
10
|
+
class Type {
|
|
11
|
+
constructor(name, typeParameters = [], cardinality = TypeCardinality.fixed(1), metadata) {
|
|
12
|
+
utils_1.guardValueIsSet("name", name);
|
|
13
|
+
this.name = name;
|
|
14
|
+
this.typeParameters = typeParameters;
|
|
15
|
+
this.cardinality = cardinality;
|
|
16
|
+
this.metadata = metadata;
|
|
17
|
+
}
|
|
18
|
+
getName() {
|
|
19
|
+
return this.name;
|
|
20
|
+
}
|
|
21
|
+
getClassName() {
|
|
22
|
+
return Type.ClassName;
|
|
23
|
+
}
|
|
24
|
+
getClassHierarchy() {
|
|
25
|
+
let prototypes = reflection_1.getJavascriptPrototypesInHierarchy(this, (prototype) => prototype.belongsToTypesystem);
|
|
26
|
+
let classNames = prototypes.map((prototype) => prototype.getClassName()).reverse();
|
|
27
|
+
return classNames;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Gets the fully qualified name of the type, to allow for better (efficient and non-ambiguous) type comparison within the custom typesystem.
|
|
31
|
+
*/
|
|
32
|
+
getFullyQualifiedName() {
|
|
33
|
+
return this.isGenericType() || this.hasMetadata()
|
|
34
|
+
? this.getFullNameForGeneric()
|
|
35
|
+
: `dharitri:types:${this.getName()}`;
|
|
36
|
+
}
|
|
37
|
+
getFullNameForGeneric() {
|
|
38
|
+
const hasTypeParameters = this.getTypeParameters().length > 0;
|
|
39
|
+
const joinedTypeParameters = hasTypeParameters
|
|
40
|
+
? `${this.getTypeParameters()
|
|
41
|
+
.map((type) => type.getFullyQualifiedName())
|
|
42
|
+
.join(", ")}`
|
|
43
|
+
: "";
|
|
44
|
+
let baseName = `dharitri:types:${this.getName()}`;
|
|
45
|
+
if (hasTypeParameters) {
|
|
46
|
+
baseName = `${baseName}<${joinedTypeParameters}>`;
|
|
47
|
+
}
|
|
48
|
+
if (this.metadata !== undefined) {
|
|
49
|
+
baseName = `${baseName}*${this.metadata}*`;
|
|
50
|
+
}
|
|
51
|
+
return baseName;
|
|
52
|
+
}
|
|
53
|
+
hasExactClass(className) {
|
|
54
|
+
return this.getClassName() == className;
|
|
55
|
+
}
|
|
56
|
+
hasClassOrSuperclass(className) {
|
|
57
|
+
let hierarchy = this.getClassHierarchy();
|
|
58
|
+
return hierarchy.includes(className);
|
|
59
|
+
}
|
|
60
|
+
getTypeParameters() {
|
|
61
|
+
return this.typeParameters;
|
|
62
|
+
}
|
|
63
|
+
getMetadata() {
|
|
64
|
+
return this.metadata;
|
|
65
|
+
}
|
|
66
|
+
isGenericType() {
|
|
67
|
+
return this.typeParameters.length > 0;
|
|
68
|
+
}
|
|
69
|
+
hasMetadata() {
|
|
70
|
+
return !!this.metadata;
|
|
71
|
+
}
|
|
72
|
+
getFirstTypeParameter() {
|
|
73
|
+
utils_1.guardTrue(this.typeParameters.length > 0, "type parameters length > 0");
|
|
74
|
+
return this.typeParameters[0];
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Generates type expressions similar to drt-rs-sdk.
|
|
78
|
+
*/
|
|
79
|
+
toString() {
|
|
80
|
+
let typeParameters = this.getTypeParameters()
|
|
81
|
+
.map((type) => type.toString())
|
|
82
|
+
.join(", ");
|
|
83
|
+
let typeParametersExpression = typeParameters ? `<${typeParameters}>` : "";
|
|
84
|
+
return `${this.name}${typeParametersExpression}`;
|
|
85
|
+
}
|
|
86
|
+
equals(other) {
|
|
87
|
+
return Type.equals(this, other);
|
|
88
|
+
}
|
|
89
|
+
static equals(a, b) {
|
|
90
|
+
return a.getFullyQualifiedName() == b.getFullyQualifiedName();
|
|
91
|
+
}
|
|
92
|
+
static equalsMany(a, b) {
|
|
93
|
+
return a.every((type, i) => type.equals(b[i]));
|
|
94
|
+
}
|
|
95
|
+
static isAssignableFromMany(a, b) {
|
|
96
|
+
return a.every((type, i) => type.isAssignableFrom(b[i]));
|
|
97
|
+
}
|
|
98
|
+
differs(other) {
|
|
99
|
+
return !this.equals(other);
|
|
100
|
+
}
|
|
101
|
+
valueOf() {
|
|
102
|
+
return this.name;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Inspired from: https://docs.microsoft.com/en-us/dotnet/api/system.type.isassignablefrom
|
|
106
|
+
* For (most) generics, type invariance is expected (assumed) - neither covariance, nor contravariance are supported yet (will be supported in a next release).
|
|
107
|
+
*
|
|
108
|
+
* One exception though: for {@link OptionType}, we simulate covariance for missing (not provided) values.
|
|
109
|
+
* For example, Option<u32> is assignable from Option<?>.
|
|
110
|
+
* For more details, see the implementation of {@link OptionType} and @{@link OptionalType}.
|
|
111
|
+
*
|
|
112
|
+
* Also see:
|
|
113
|
+
* - https://en.wikipedia.org/wiki/Covariance_and_contravariance_(computer_science)
|
|
114
|
+
* - https://docs.microsoft.com/en-us/dotnet/standard/generics/covariance-and-contravariance
|
|
115
|
+
*/
|
|
116
|
+
isAssignableFrom(other) {
|
|
117
|
+
let invariantTypeParameters = Type.equalsMany(this.getTypeParameters(), other.getTypeParameters());
|
|
118
|
+
if (!invariantTypeParameters) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
let fullyQualifiedNameOfThis = this.getFullyQualifiedName();
|
|
122
|
+
let fullyQualifiedNamesInHierarchyOfOther = Type.getFullyQualifiedNamesInHierarchy(other);
|
|
123
|
+
if (fullyQualifiedNamesInHierarchyOfOther.includes(fullyQualifiedNameOfThis)) {
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
return other.hasClassOrSuperclass(this.getClassName());
|
|
127
|
+
}
|
|
128
|
+
static getFullyQualifiedNamesInHierarchy(type) {
|
|
129
|
+
let prototypes = reflection_1.getJavascriptPrototypesInHierarchy(type, (prototype) => prototype.belongsToTypesystem);
|
|
130
|
+
let fullyQualifiedNames = prototypes.map((prototype) => prototype.getFullyQualifiedName.call(type));
|
|
131
|
+
return fullyQualifiedNames;
|
|
132
|
+
}
|
|
133
|
+
getNamesOfDependencies() {
|
|
134
|
+
const dependencies = [];
|
|
135
|
+
for (const type of this.typeParameters) {
|
|
136
|
+
dependencies.push(type.getName());
|
|
137
|
+
dependencies.push(...type.getNamesOfDependencies());
|
|
138
|
+
}
|
|
139
|
+
return [...new Set(dependencies)];
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Converts the account to a pretty, plain JavaScript object.
|
|
143
|
+
*/
|
|
144
|
+
toJSON() {
|
|
145
|
+
return {
|
|
146
|
+
name: this.name,
|
|
147
|
+
typeParameters: this.typeParameters.map((item) => item.toJSON()),
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
getCardinality() {
|
|
151
|
+
return this.cardinality;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* A special marker for types within the custom typesystem.
|
|
155
|
+
*/
|
|
156
|
+
belongsToTypesystem() { }
|
|
157
|
+
}
|
|
158
|
+
exports.Type = Type;
|
|
159
|
+
Type.ClassName = "Type";
|
|
160
|
+
/**
|
|
161
|
+
* TODO: Simplify this class, keep only what is needed.
|
|
162
|
+
*
|
|
163
|
+
* An abstraction for defining and operating with the cardinality of a (composite or simple) type.
|
|
164
|
+
*
|
|
165
|
+
* Simple types (the ones that are directly encodable) have a fixed cardinality: [lower = 1, upper = 1].
|
|
166
|
+
* Composite types (not directly encodable) do not follow this constraint. For example:
|
|
167
|
+
* - VarArgs: [lower = 0, upper = *]
|
|
168
|
+
* - OptionalResult: [lower = 0, upper = 1]
|
|
169
|
+
*/
|
|
170
|
+
class TypeCardinality {
|
|
171
|
+
constructor(lowerBound, upperBound) {
|
|
172
|
+
this.lowerBound = lowerBound;
|
|
173
|
+
this.upperBound = upperBound;
|
|
174
|
+
}
|
|
175
|
+
static fixed(value) {
|
|
176
|
+
return new TypeCardinality(value, value);
|
|
177
|
+
}
|
|
178
|
+
static variable(value) {
|
|
179
|
+
return new TypeCardinality(0, value);
|
|
180
|
+
}
|
|
181
|
+
isSingular() {
|
|
182
|
+
return this.lowerBound == 1 && this.upperBound == 1;
|
|
183
|
+
}
|
|
184
|
+
isSingularOrNone() {
|
|
185
|
+
return this.lowerBound == 0 && this.upperBound == 1;
|
|
186
|
+
}
|
|
187
|
+
isComposite() {
|
|
188
|
+
return this.upperBound != 1;
|
|
189
|
+
}
|
|
190
|
+
isFixed() {
|
|
191
|
+
return this.lowerBound == this.upperBound;
|
|
192
|
+
}
|
|
193
|
+
getLowerBound() {
|
|
194
|
+
return this.lowerBound;
|
|
195
|
+
}
|
|
196
|
+
getUpperBound() {
|
|
197
|
+
return this.upperBound || TypeCardinality.MaxCardinality;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
exports.TypeCardinality = TypeCardinality;
|
|
201
|
+
/**
|
|
202
|
+
* An arbitrarily chosen, reasonably large number.
|
|
203
|
+
*/
|
|
204
|
+
TypeCardinality.MaxCardinality = 4096;
|
|
205
|
+
class PrimitiveType extends Type {
|
|
206
|
+
constructor(name) {
|
|
207
|
+
super(name);
|
|
208
|
+
}
|
|
209
|
+
getClassName() {
|
|
210
|
+
return PrimitiveType.ClassName;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
exports.PrimitiveType = PrimitiveType;
|
|
214
|
+
PrimitiveType.ClassName = "PrimitiveType";
|
|
215
|
+
class CustomType extends Type {
|
|
216
|
+
getClassName() {
|
|
217
|
+
return CustomType.ClassName;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
exports.CustomType = CustomType;
|
|
221
|
+
CustomType.ClassName = "CustomType";
|
|
222
|
+
class TypedValue {
|
|
223
|
+
constructor(type) {
|
|
224
|
+
this.type = type;
|
|
225
|
+
}
|
|
226
|
+
getClassName() {
|
|
227
|
+
return TypedValue.ClassName;
|
|
228
|
+
}
|
|
229
|
+
getClassHierarchy() {
|
|
230
|
+
let prototypes = reflection_1.getJavascriptPrototypesInHierarchy(this, (prototype) => prototype.belongsToTypesystem);
|
|
231
|
+
let classNames = prototypes.map((prototype) => prototype.getClassName()).reverse();
|
|
232
|
+
return classNames;
|
|
233
|
+
}
|
|
234
|
+
getType() {
|
|
235
|
+
return this.type;
|
|
236
|
+
}
|
|
237
|
+
hasExactClass(className) {
|
|
238
|
+
return this.getClassName() == className;
|
|
239
|
+
}
|
|
240
|
+
hasClassOrSuperclass(className) {
|
|
241
|
+
let hierarchy = this.getClassHierarchy();
|
|
242
|
+
return hierarchy.includes(className);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* A special marker for values within the custom typesystem.
|
|
246
|
+
*/
|
|
247
|
+
belongsToTypesystem() { }
|
|
248
|
+
}
|
|
249
|
+
exports.TypedValue = TypedValue;
|
|
250
|
+
TypedValue.ClassName = "TypedValue";
|
|
251
|
+
class PrimitiveValue extends TypedValue {
|
|
252
|
+
constructor(type) {
|
|
253
|
+
super(type);
|
|
254
|
+
}
|
|
255
|
+
getClassName() {
|
|
256
|
+
return PrimitiveValue.ClassName;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
exports.PrimitiveValue = PrimitiveValue;
|
|
260
|
+
PrimitiveValue.ClassName = "PrimitiveValue";
|
|
261
|
+
function isTyped(value) {
|
|
262
|
+
return value.belongsToTypesystem !== undefined;
|
|
263
|
+
}
|
|
264
|
+
exports.isTyped = isTyped;
|
|
265
|
+
class TypePlaceholder extends Type {
|
|
266
|
+
constructor() {
|
|
267
|
+
super("...");
|
|
268
|
+
}
|
|
269
|
+
getClassName() {
|
|
270
|
+
return TypePlaceholder.ClassName;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
exports.TypePlaceholder = TypePlaceholder;
|
|
274
|
+
TypePlaceholder.ClassName = "TypePlaceholder";
|
|
275
|
+
class NullType extends Type {
|
|
276
|
+
constructor() {
|
|
277
|
+
super("?");
|
|
278
|
+
}
|
|
279
|
+
getClassName() {
|
|
280
|
+
return NullType.ClassName;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
exports.NullType = NullType;
|
|
284
|
+
NullType.ClassName = "NullType";
|
|
285
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/abi/typesystem/types.ts"],"names":[],"mappings":";;;AAAA,sDAA2E;AAC3E,4CAA8D;AAE9D;;;GAGG;AACH,MAAa,IAAI;IAQb,YACI,IAAY,EACZ,iBAAyB,EAAE,EAC3B,cAA+B,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,EACvD,QAAc;QAEd,uBAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC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AWzC,MAAa,QAAS,SAAQ,IAAI;IAG9B;QACI,KAAK,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;IAED,YAAY;QACR,OAAO,QAAQ,CAAC,SAAS,CAAC;IAC9B,CAAC;;AATL,4BAUC;AATU,kBAAS,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Type, TypedValue } from "./types";
|
|
2
|
+
export declare class VariadicType extends Type {
|
|
3
|
+
static ClassName: string;
|
|
4
|
+
readonly isCounted: boolean;
|
|
5
|
+
constructor(typeParameter: Type, isCounted?: boolean);
|
|
6
|
+
getClassName(): string;
|
|
7
|
+
}
|
|
8
|
+
export declare class CountedVariadicType extends Type {
|
|
9
|
+
static ClassName: string;
|
|
10
|
+
constructor(typeParameter: Type);
|
|
11
|
+
getClassName(): string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* An abstraction that represents a sequence of values held under the umbrella of a variadic input / output parameter.
|
|
15
|
+
*
|
|
16
|
+
* Since at the time of constructing input parameters or decoding output parameters, the length is known,
|
|
17
|
+
* this TypedValue behaves similar to a List.
|
|
18
|
+
*/
|
|
19
|
+
export declare class VariadicValue extends TypedValue {
|
|
20
|
+
static ClassName: string;
|
|
21
|
+
private readonly items;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param type the type of this TypedValue (an instance of VariadicType), not the type parameter of the VariadicType
|
|
25
|
+
* @param items the items, having the type type.getFirstTypeParameter()
|
|
26
|
+
*/
|
|
27
|
+
constructor(type: VariadicType, items: TypedValue[]);
|
|
28
|
+
getClassName(): string;
|
|
29
|
+
static fromItems(...items: TypedValue[]): VariadicValue;
|
|
30
|
+
static fromItemsCounted(...items: TypedValue[]): VariadicValue;
|
|
31
|
+
private static createFromItems;
|
|
32
|
+
getItems(): ReadonlyArray<TypedValue>;
|
|
33
|
+
valueOf(): any[];
|
|
34
|
+
equals(other: VariadicValue): boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VariadicValue = exports.CountedVariadicType = exports.VariadicType = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
class VariadicType extends types_1.Type {
|
|
6
|
+
constructor(typeParameter, isCounted = false) {
|
|
7
|
+
super("Variadic", [typeParameter], types_1.TypeCardinality.variable());
|
|
8
|
+
this.isCounted = isCounted;
|
|
9
|
+
}
|
|
10
|
+
getClassName() {
|
|
11
|
+
return VariadicType.ClassName;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.VariadicType = VariadicType;
|
|
15
|
+
VariadicType.ClassName = "VariadicType";
|
|
16
|
+
class CountedVariadicType extends types_1.Type {
|
|
17
|
+
constructor(typeParameter) {
|
|
18
|
+
super("Variadic", [typeParameter], types_1.TypeCardinality.variable());
|
|
19
|
+
}
|
|
20
|
+
getClassName() {
|
|
21
|
+
return VariadicType.ClassName;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CountedVariadicType = CountedVariadicType;
|
|
25
|
+
CountedVariadicType.ClassName = "VariadicType";
|
|
26
|
+
/**
|
|
27
|
+
* An abstraction that represents a sequence of values held under the umbrella of a variadic input / output parameter.
|
|
28
|
+
*
|
|
29
|
+
* Since at the time of constructing input parameters or decoding output parameters, the length is known,
|
|
30
|
+
* this TypedValue behaves similar to a List.
|
|
31
|
+
*/
|
|
32
|
+
class VariadicValue extends types_1.TypedValue {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param type the type of this TypedValue (an instance of VariadicType), not the type parameter of the VariadicType
|
|
36
|
+
* @param items the items, having the type type.getFirstTypeParameter()
|
|
37
|
+
*/
|
|
38
|
+
constructor(type, items) {
|
|
39
|
+
super(type);
|
|
40
|
+
// TODO: assert items are of type type.getFirstTypeParameter()
|
|
41
|
+
this.items = items;
|
|
42
|
+
}
|
|
43
|
+
getClassName() {
|
|
44
|
+
return VariadicValue.ClassName;
|
|
45
|
+
}
|
|
46
|
+
static fromItems(...items) {
|
|
47
|
+
return this.createFromItems(items, false);
|
|
48
|
+
}
|
|
49
|
+
static fromItemsCounted(...items) {
|
|
50
|
+
return this.createFromItems(items, true);
|
|
51
|
+
}
|
|
52
|
+
static createFromItems(items, isCounted) {
|
|
53
|
+
if (items.length == 0) {
|
|
54
|
+
return new VariadicValue(new VariadicType(new types_1.TypePlaceholder(), isCounted), []);
|
|
55
|
+
}
|
|
56
|
+
const typeParameter = items[0].getType();
|
|
57
|
+
return new VariadicValue(new VariadicType(typeParameter, isCounted), items);
|
|
58
|
+
}
|
|
59
|
+
getItems() {
|
|
60
|
+
return this.items;
|
|
61
|
+
}
|
|
62
|
+
valueOf() {
|
|
63
|
+
return this.items.map((item) => item.valueOf());
|
|
64
|
+
}
|
|
65
|
+
equals(other) {
|
|
66
|
+
if (this.getType().differs(other.getType())) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
for (let i = 0; i < this.items.length; i++) {
|
|
70
|
+
let selfItem = this.items[i];
|
|
71
|
+
let otherItem = other.items[i];
|
|
72
|
+
if (!selfItem.equals(otherItem)) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.VariadicValue = VariadicValue;
|
|
80
|
+
VariadicValue.ClassName = "VariadicValue";
|
|
81
|
+
//# sourceMappingURL=variadic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variadic.js","sourceRoot":"","sources":["../../../src/abi/typesystem/variadic.ts"],"names":[],"mappings":";;;AAAA,mCAA6E;AAE7E,MAAa,YAAa,SAAQ,YAAI;IAIlC,YAAY,aAAmB,EAAE,YAAqB,KAAK;QACvD,KAAK,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,EAAE,uBAAe,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC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AAa,CAAC,IAAI,YAAY,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,CAAC;IAChF,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,CAAC,KAAoB;QACvB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,EAAE;YACzC,OAAO,KAAK,CAAC;SAChB;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACxC,IAAI,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAI,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;gBAC7B,OAAO,KAAK,CAAC;aAChB;SACJ;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;;AA7DL,sCA8DC;AA7DU,uBAAS,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Address, BaseController, BaseControllerInput } from "../core";
|
|
2
|
+
import { IAccount } from "../core/interfaces";
|
|
3
|
+
import { Transaction } from "../core/transaction";
|
|
4
|
+
import { SaveKeyValueInput, SetGuardianInput } from "./resources";
|
|
5
|
+
export declare class AccountController extends BaseController {
|
|
6
|
+
private factory;
|
|
7
|
+
constructor(options: {
|
|
8
|
+
chainID: string;
|
|
9
|
+
});
|
|
10
|
+
createTransactionForSavingKeyValue(sender: IAccount, nonce: bigint, options: SaveKeyValueInput & BaseControllerInput): Promise<Transaction>;
|
|
11
|
+
createTransactionForSettingGuardian(sender: IAccount, nonce: bigint, options: SetGuardianInput & BaseControllerInput): Promise<Transaction>;
|
|
12
|
+
createTransactionForGuardingAccount(sender: IAccount, nonce: bigint, options: {
|
|
13
|
+
relayer?: Address;
|
|
14
|
+
gasPrice?: bigint;
|
|
15
|
+
gasLimit?: bigint;
|
|
16
|
+
}): Promise<Transaction>;
|
|
17
|
+
createTransactionForUnguardingAccount(sender: IAccount, nonce: bigint, options: BaseControllerInput): Promise<Transaction>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountController = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const transactionsFactoryConfig_1 = require("../core/transactionsFactoryConfig");
|
|
6
|
+
const accountTransactionsFactory_1 = require("./accountTransactionsFactory");
|
|
7
|
+
class AccountController extends core_1.BaseController {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
super();
|
|
10
|
+
this.factory = new accountTransactionsFactory_1.AccountTransactionsFactory({
|
|
11
|
+
config: new transactionsFactoryConfig_1.TransactionsFactoryConfig(options),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
async createTransactionForSavingKeyValue(sender, nonce, options) {
|
|
15
|
+
const transaction = this.factory.createTransactionForSavingKeyValue(sender.address, options);
|
|
16
|
+
transaction.guardian = options.guardian ?? core_1.Address.empty();
|
|
17
|
+
transaction.relayer = options.relayer ?? core_1.Address.empty();
|
|
18
|
+
transaction.nonce = nonce;
|
|
19
|
+
this.setTransactionGasOptions(transaction, options);
|
|
20
|
+
this.setVersionAndOptionsForGuardian(transaction);
|
|
21
|
+
transaction.signature = await sender.signTransaction(transaction);
|
|
22
|
+
return transaction;
|
|
23
|
+
}
|
|
24
|
+
async createTransactionForSettingGuardian(sender, nonce, options) {
|
|
25
|
+
const transaction = this.factory.createTransactionForSettingGuardian(sender.address, options);
|
|
26
|
+
transaction.guardian = options.guardian ?? core_1.Address.empty();
|
|
27
|
+
transaction.relayer = options.relayer ?? core_1.Address.empty();
|
|
28
|
+
transaction.nonce = nonce;
|
|
29
|
+
this.setTransactionGasOptions(transaction, options);
|
|
30
|
+
this.setVersionAndOptionsForGuardian(transaction);
|
|
31
|
+
transaction.signature = await sender.signTransaction(transaction);
|
|
32
|
+
return transaction;
|
|
33
|
+
}
|
|
34
|
+
async createTransactionForGuardingAccount(sender, nonce, options) {
|
|
35
|
+
const transaction = this.factory.createTransactionForGuardingAccount(sender.address);
|
|
36
|
+
transaction.relayer = options.relayer ?? core_1.Address.empty();
|
|
37
|
+
transaction.nonce = nonce;
|
|
38
|
+
this.setTransactionGasOptions(transaction, options);
|
|
39
|
+
transaction.signature = await sender.signTransaction(transaction);
|
|
40
|
+
return transaction;
|
|
41
|
+
}
|
|
42
|
+
async createTransactionForUnguardingAccount(sender, nonce, options) {
|
|
43
|
+
const transaction = this.factory.createTransactionForUnguardingAccount(sender.address);
|
|
44
|
+
transaction.guardian = options.guardian ?? core_1.Address.empty();
|
|
45
|
+
transaction.relayer = options.relayer ?? core_1.Address.empty();
|
|
46
|
+
transaction.nonce = nonce;
|
|
47
|
+
this.setTransactionGasOptions(transaction, options);
|
|
48
|
+
this.setVersionAndOptionsForGuardian(transaction);
|
|
49
|
+
transaction.signature = await sender.signTransaction(transaction);
|
|
50
|
+
return transaction;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.AccountController = AccountController;
|
|
54
|
+
//# sourceMappingURL=accountController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountController.js","sourceRoot":"","sources":["../../src/accountManagement/accountController.ts"],"names":[],"mappings":";;;AAAA,kCAAuE;AAGvE,iFAA8E;AAC9E,6EAA0E;AAG1E,MAAa,iBAAkB,SAAQ,qBAAc;IAGjD,YAAY,OAA4B;QACpC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,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../core/address";
|
|
2
|
+
import { Transaction } from "../core/transaction";
|
|
3
|
+
import { SaveKeyValueInput, SetGuardianInput } from "./resources";
|
|
4
|
+
interface IConfig {
|
|
5
|
+
chainID: string;
|
|
6
|
+
minGasLimit: bigint;
|
|
7
|
+
gasLimitPerByte: bigint;
|
|
8
|
+
gasLimitSaveKeyValue: bigint;
|
|
9
|
+
gasLimitPersistPerByte: bigint;
|
|
10
|
+
gasLimitStorePerByte: bigint;
|
|
11
|
+
gasLimitSetGuardian: bigint;
|
|
12
|
+
gasLimitGuardAccount: bigint;
|
|
13
|
+
gasLimitUnguardAccount: bigint;
|
|
14
|
+
}
|
|
15
|
+
export declare class AccountTransactionsFactory {
|
|
16
|
+
private readonly config;
|
|
17
|
+
constructor(options: {
|
|
18
|
+
config: IConfig;
|
|
19
|
+
});
|
|
20
|
+
createTransactionForSavingKeyValue(sender: Address, options: SaveKeyValueInput): Transaction;
|
|
21
|
+
private computeExtraGasForSavingKeyValue;
|
|
22
|
+
private computeDataPartsForSavingKeyValue;
|
|
23
|
+
createTransactionForSettingGuardian(sender: Address, options: SetGuardianInput): Transaction;
|
|
24
|
+
createTransactionForGuardingAccount(sender: Address): Transaction;
|
|
25
|
+
createTransactionForUnguardingAccount(sender: Address): Transaction;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountTransactionsFactory = void 0;
|
|
4
|
+
const transactionBuilder_1 = require("../core/transactionBuilder");
|
|
5
|
+
class AccountTransactionsFactory {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
this.config = options.config;
|
|
8
|
+
}
|
|
9
|
+
createTransactionForSavingKeyValue(sender, options) {
|
|
10
|
+
const functionName = "SaveKeyValue";
|
|
11
|
+
const keyValueParts = this.computeDataPartsForSavingKeyValue(options.keyValuePairs);
|
|
12
|
+
const dataParts = [functionName, ...keyValueParts];
|
|
13
|
+
const extraGas = this.computeExtraGasForSavingKeyValue(options.keyValuePairs);
|
|
14
|
+
return new transactionBuilder_1.TransactionBuilder({
|
|
15
|
+
config: this.config,
|
|
16
|
+
sender: sender,
|
|
17
|
+
receiver: sender,
|
|
18
|
+
dataParts: dataParts,
|
|
19
|
+
gasLimit: extraGas,
|
|
20
|
+
addDataMovementGas: true,
|
|
21
|
+
}).build();
|
|
22
|
+
}
|
|
23
|
+
computeExtraGasForSavingKeyValue(keyValuePairs) {
|
|
24
|
+
let extraGas = 0n;
|
|
25
|
+
keyValuePairs.forEach((value, key) => {
|
|
26
|
+
extraGas +=
|
|
27
|
+
this.config.gasLimitPersistPerByte * BigInt(key.length + value.length) +
|
|
28
|
+
this.config.gasLimitStorePerByte * BigInt(value.length);
|
|
29
|
+
});
|
|
30
|
+
return extraGas + this.config.gasLimitSaveKeyValue;
|
|
31
|
+
}
|
|
32
|
+
computeDataPartsForSavingKeyValue(keyValuePairs) {
|
|
33
|
+
const dataParts = [];
|
|
34
|
+
keyValuePairs.forEach((value, key) => {
|
|
35
|
+
dataParts.push(...[Buffer.from(key).toString("hex"), Buffer.from(value).toString("hex")]);
|
|
36
|
+
});
|
|
37
|
+
return dataParts;
|
|
38
|
+
}
|
|
39
|
+
createTransactionForSettingGuardian(sender, options) {
|
|
40
|
+
const dataParts = [
|
|
41
|
+
"SetGuardian",
|
|
42
|
+
options.guardianAddress.toHex(),
|
|
43
|
+
Buffer.from(options.serviceID).toString("hex"),
|
|
44
|
+
];
|
|
45
|
+
return new transactionBuilder_1.TransactionBuilder({
|
|
46
|
+
config: this.config,
|
|
47
|
+
sender: sender,
|
|
48
|
+
receiver: sender,
|
|
49
|
+
dataParts: dataParts,
|
|
50
|
+
gasLimit: this.config.gasLimitSetGuardian,
|
|
51
|
+
addDataMovementGas: true,
|
|
52
|
+
}).build();
|
|
53
|
+
}
|
|
54
|
+
createTransactionForGuardingAccount(sender) {
|
|
55
|
+
const dataParts = ["GuardAccount"];
|
|
56
|
+
return new transactionBuilder_1.TransactionBuilder({
|
|
57
|
+
config: this.config,
|
|
58
|
+
sender: sender,
|
|
59
|
+
receiver: sender,
|
|
60
|
+
dataParts: dataParts,
|
|
61
|
+
gasLimit: this.config.gasLimitGuardAccount,
|
|
62
|
+
addDataMovementGas: true,
|
|
63
|
+
}).build();
|
|
64
|
+
}
|
|
65
|
+
createTransactionForUnguardingAccount(sender) {
|
|
66
|
+
const dataParts = ["UnGuardAccount"];
|
|
67
|
+
return new transactionBuilder_1.TransactionBuilder({
|
|
68
|
+
config: this.config,
|
|
69
|
+
sender: sender,
|
|
70
|
+
receiver: sender,
|
|
71
|
+
dataParts: dataParts,
|
|
72
|
+
gasLimit: this.config.gasLimitUnguardAccount,
|
|
73
|
+
addDataMovementGas: true,
|
|
74
|
+
}).build();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.AccountTransactionsFactory = AccountTransactionsFactory;
|
|
78
|
+
//# sourceMappingURL=accountTransactionsFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountTransactionsFactory.js","sourceRoot":"","sources":["../../src/accountManagement/accountTransactionsFactory.ts"],"names":[],"mappings":";;;AAEA,mEAAgE;AAehE,MAAa,0BAA0B;IAGnC,YAAY,OAA4B;QACpC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IACjC,CAAC;IAED,kCAAkC,CAAC,MAAe,EAAE,OAA0B;QAC1E,MAAM,YAAY,GAAG,cAAc,CAAC;QACpC,MAAM,aAAa,GAAG,IAAI,CAAC,iCAAiC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACpF,MAAM,SAAS,GAAG,CAAC,YAAY,EAAE,GAAG,aAAa,CAAC,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,gCAAgC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAE9E,OAAO,IAAI,uCAAkB,CAAC;YAC1B,MAAM,EAAE,IA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AC;QAEF,OAAO,IAAI,uCAAkB,CAAC;YAC1B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB;YACzC,kBAAkB,EAAE,IAAI;SAC3B,CAAC,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,mCAAmC,CAAC,MAAe;QAC/C,MAAM,SAAS,GAAG,CAAC,cAAc,CAAC,CAAC;QAEnC,OAAO,IAAI,uCAAkB,CAAC;YAC1B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB;YAC1C,kBAAkB,EAAE,IAAI;SAC3B,CAAC,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,qCAAqC,CAAC,MAAe;QACjD,MAAM,SAAS,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAErC,OAAO,IAAI,uCAAkB,CAAC;YAC1B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB;YAC5C,kBAAkB,EAAE,IAAI;SAC3B,CAAC,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;CACJ;AAvFD,gEAuFC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./accountController"), exports);
|
|
14
|
+
__exportStar(require("./accountTransactionsFactory"), exports);
|
|
15
|
+
__exportStar(require("./resources"), exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accountManagement/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,+DAA6C;AAC7C,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../src/accountManagement/resources.ts"],"names":[],"mappings":""}
|