@polymeshassociation/polymesh-sdk 15.1.1-beta.1 → 16.0.0-alpha.2
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/CHANGELOG.md +7 -1
- package/README.md +1 -1
- package/api/client/Network.d.ts +3 -3
- package/api/client/Network.d.ts.map +1 -1
- package/api/client/Network.js +11 -7
- package/api/client/Network.js.map +1 -1
- package/api/client/Polymesh.d.ts +37 -3
- package/api/client/Polymesh.d.ts.map +1 -1
- package/api/client/Polymesh.js +4 -3
- package/api/client/Polymesh.js.map +1 -1
- package/api/entities/Account.d.ts +4 -0
- package/api/entities/Account.d.ts.map +1 -1
- package/api/entities/Account.js +10 -0
- package/api/entities/Account.js.map +1 -1
- package/api/entities/Asset/Checkpoints/Schedules.d.ts +1 -1
- package/api/entities/Asset/Settlements.d.ts +2 -2
- package/api/entities/Asset/Settlements.js +2 -2
- package/api/entities/Asset/TransferRestrictions/ClaimCount.d.ts +3 -0
- package/api/entities/Asset/TransferRestrictions/ClaimCount.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/ClaimCount.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/ClaimPercentage.d.ts +3 -0
- package/api/entities/Asset/TransferRestrictions/ClaimPercentage.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/ClaimPercentage.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Count.d.ts +3 -0
- package/api/entities/Asset/TransferRestrictions/Count.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Count.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts +3 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Percentage.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js +11 -10
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js.map +1 -1
- package/api/entities/DividendDistribution/index.d.ts.map +1 -1
- package/api/entities/DividendDistribution/index.js +2 -2
- package/api/entities/DividendDistribution/index.js.map +1 -1
- package/api/procedures/addAssetRequirement.d.ts +2 -2
- package/api/procedures/addAssetRequirement.d.ts.map +1 -1
- package/api/procedures/addAssetRequirement.js +3 -3
- package/api/procedures/addAssetRequirement.js.map +1 -1
- package/api/procedures/addAssetStat.d.ts +2 -2
- package/api/procedures/addAssetStat.d.ts.map +1 -1
- package/api/procedures/addAssetStat.js +6 -8
- package/api/procedures/addAssetStat.js.map +1 -1
- package/api/procedures/addInstruction.d.ts +4 -4
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +14 -16
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/addInvestorUniquenessClaim.d.ts +2 -2
- package/api/procedures/addInvestorUniquenessClaim.d.ts.map +1 -1
- package/api/procedures/addInvestorUniquenessClaim.js +6 -4
- package/api/procedures/addInvestorUniquenessClaim.js.map +1 -1
- package/api/procedures/addTransferRestriction.d.ts +2 -2
- package/api/procedures/addTransferRestriction.d.ts.map +1 -1
- package/api/procedures/addTransferRestriction.js +16 -19
- package/api/procedures/addTransferRestriction.js.map +1 -1
- package/api/procedures/claimClassicTicker.d.ts +2 -1
- package/api/procedures/claimClassicTicker.d.ts.map +1 -1
- package/api/procedures/claimClassicTicker.js +3 -3
- package/api/procedures/claimClassicTicker.js.map +1 -1
- package/api/procedures/claimDividends.d.ts +2 -1
- package/api/procedures/claimDividends.d.ts.map +1 -1
- package/api/procedures/claimDividends.js +3 -2
- package/api/procedures/claimDividends.js.map +1 -1
- package/api/procedures/closeOffering.d.ts +2 -2
- package/api/procedures/closeOffering.d.ts.map +1 -1
- package/api/procedures/closeOffering.js +3 -2
- package/api/procedures/closeOffering.js.map +1 -1
- package/api/procedures/configureDividendDistribution.d.ts +3 -3
- package/api/procedures/configureDividendDistribution.d.ts.map +1 -1
- package/api/procedures/configureDividendDistribution.js +3 -4
- package/api/procedures/configureDividendDistribution.js.map +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts +2 -2
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts.map +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js +3 -4
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js.map +1 -1
- package/api/procedures/consumeAuthorizationRequests.d.ts +2 -2
- package/api/procedures/consumeAuthorizationRequests.d.ts.map +1 -1
- package/api/procedures/consumeAuthorizationRequests.js +18 -10
- package/api/procedures/consumeAuthorizationRequests.js.map +1 -1
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts +2 -2
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts.map +1 -1
- package/api/procedures/consumeJoinOrRotateAuthorization.js +8 -7
- package/api/procedures/consumeJoinOrRotateAuthorization.js.map +1 -1
- package/api/procedures/controllerTransfer.d.ts +2 -2
- package/api/procedures/controllerTransfer.d.ts.map +1 -1
- package/api/procedures/controllerTransfer.js +3 -2
- package/api/procedures/controllerTransfer.js.map +1 -1
- package/api/procedures/createAsset.d.ts +2 -2
- package/api/procedures/createAsset.d.ts.map +1 -1
- package/api/procedures/createAsset.js +21 -41
- package/api/procedures/createAsset.js.map +1 -1
- package/api/procedures/createCheckpoint.d.ts +3 -3
- package/api/procedures/createCheckpoint.d.ts.map +1 -1
- package/api/procedures/createCheckpoint.js +3 -4
- package/api/procedures/createCheckpoint.js.map +1 -1
- package/api/procedures/createCheckpointSchedule.d.ts +3 -3
- package/api/procedures/createCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/createCheckpointSchedule.js +3 -4
- package/api/procedures/createCheckpointSchedule.js.map +1 -1
- package/api/procedures/createGroup.d.ts +3 -3
- package/api/procedures/createGroup.d.ts.map +1 -1
- package/api/procedures/createGroup.js +3 -4
- package/api/procedures/createGroup.js.map +1 -1
- package/api/procedures/createPortfolios.d.ts +3 -2
- package/api/procedures/createPortfolios.d.ts.map +1 -1
- package/api/procedures/createPortfolios.js +4 -6
- package/api/procedures/createPortfolios.js.map +1 -1
- package/api/procedures/createTransactionBatch.d.ts +25 -0
- package/api/procedures/createTransactionBatch.d.ts.map +1 -0
- package/api/procedures/createTransactionBatch.js +118 -0
- package/api/procedures/createTransactionBatch.js.map +1 -0
- package/api/procedures/createVenue.d.ts +3 -2
- package/api/procedures/createVenue.d.ts.map +1 -1
- package/api/procedures/createVenue.js +3 -4
- package/api/procedures/createVenue.js.map +1 -1
- package/api/procedures/deletePortfolio.d.ts +2 -2
- package/api/procedures/deletePortfolio.d.ts.map +1 -1
- package/api/procedures/deletePortfolio.js +3 -2
- package/api/procedures/deletePortfolio.js.map +1 -1
- package/api/procedures/investInOffering.d.ts +2 -2
- package/api/procedures/investInOffering.d.ts.map +1 -1
- package/api/procedures/investInOffering.js +3 -2
- package/api/procedures/investInOffering.js.map +1 -1
- package/api/procedures/inviteAccount.d.ts +3 -2
- package/api/procedures/inviteAccount.d.ts.map +1 -1
- package/api/procedures/inviteAccount.js +3 -4
- package/api/procedures/inviteAccount.js.map +1 -1
- package/api/procedures/inviteExternalAgent.d.ts +3 -3
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +6 -10
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/api/procedures/issueTokens.d.ts +2 -2
- package/api/procedures/issueTokens.d.ts.map +1 -1
- package/api/procedures/issueTokens.js +3 -3
- package/api/procedures/issueTokens.js.map +1 -1
- package/api/procedures/launchOffering.d.ts +3 -3
- package/api/procedures/launchOffering.d.ts.map +1 -1
- package/api/procedures/launchOffering.js +3 -4
- package/api/procedures/launchOffering.js.map +1 -1
- package/api/procedures/leaveIdentity.d.ts +2 -1
- package/api/procedures/leaveIdentity.d.ts.map +1 -1
- package/api/procedures/leaveIdentity.js +1 -1
- package/api/procedures/leaveIdentity.js.map +1 -1
- package/api/procedures/linkCaDocs.d.ts +2 -2
- package/api/procedures/linkCaDocs.d.ts.map +1 -1
- package/api/procedures/linkCaDocs.js +3 -2
- package/api/procedures/linkCaDocs.js.map +1 -1
- package/api/procedures/modifyAllowance.d.ts +2 -2
- package/api/procedures/modifyAllowance.d.ts.map +1 -1
- package/api/procedures/modifyAllowance.js +3 -2
- package/api/procedures/modifyAllowance.js.map +1 -1
- package/api/procedures/modifyAsset.d.ts +2 -2
- package/api/procedures/modifyAsset.d.ts.map +1 -1
- package/api/procedures/modifyAsset.js +3 -4
- package/api/procedures/modifyAsset.js.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts +2 -2
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.js +11 -9
- package/api/procedures/modifyAssetTrustedClaimIssuers.js.map +1 -1
- package/api/procedures/modifyCaCheckpoint.d.ts +2 -2
- package/api/procedures/modifyCaCheckpoint.d.ts.map +1 -1
- package/api/procedures/modifyCaCheckpoint.js +19 -3
- package/api/procedures/modifyCaCheckpoint.js.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.d.ts +2 -2
- package/api/procedures/modifyCaDefaultConfig.d.ts.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.js +12 -6
- package/api/procedures/modifyCaDefaultConfig.js.map +1 -1
- package/api/procedures/modifyClaims.d.ts +2 -2
- package/api/procedures/modifyClaims.d.ts.map +1 -1
- package/api/procedures/modifyClaims.js +15 -11
- package/api/procedures/modifyClaims.js.map +1 -1
- package/api/procedures/modifyComplianceRequirement.d.ts +2 -2
- package/api/procedures/modifyComplianceRequirement.d.ts.map +1 -1
- package/api/procedures/modifyComplianceRequirement.js +3 -2
- package/api/procedures/modifyComplianceRequirement.js.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.d.ts +2 -2
- package/api/procedures/modifyCorporateActionsAgent.d.ts.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.js +3 -2
- package/api/procedures/modifyCorporateActionsAgent.js.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts +2 -2
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.js +9 -10
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -1
- package/api/procedures/modifyOfferingTimes.d.ts +2 -2
- package/api/procedures/modifyOfferingTimes.d.ts.map +1 -1
- package/api/procedures/modifyOfferingTimes.js +3 -2
- package/api/procedures/modifyOfferingTimes.js.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts +2 -2
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.js +3 -2
- package/api/procedures/modifyPrimaryIssuanceAgent.js.map +1 -1
- package/api/procedures/modifySignerPermissions.d.ts +2 -2
- package/api/procedures/modifySignerPermissions.d.ts.map +1 -1
- package/api/procedures/modifySignerPermissions.js +3 -2
- package/api/procedures/modifySignerPermissions.js.map +1 -1
- package/api/procedures/modifyVenue.d.ts +2 -2
- package/api/procedures/modifyVenue.d.ts.map +1 -1
- package/api/procedures/modifyVenue.js +1 -1
- package/api/procedures/modifyVenue.js.map +1 -1
- package/api/procedures/moveFunds.d.ts +2 -2
- package/api/procedures/moveFunds.d.ts.map +1 -1
- package/api/procedures/moveFunds.js +3 -2
- package/api/procedures/moveFunds.js.map +1 -1
- package/api/procedures/payDividends.d.ts +2 -2
- package/api/procedures/payDividends.d.ts.map +1 -1
- package/api/procedures/payDividends.js +3 -2
- package/api/procedures/payDividends.js.map +1 -1
- package/api/procedures/quitCustody.d.ts +2 -2
- package/api/procedures/quitCustody.d.ts.map +1 -1
- package/api/procedures/quitCustody.js +3 -2
- package/api/procedures/quitCustody.js.map +1 -1
- package/api/procedures/quitSubsidy.d.ts +2 -2
- package/api/procedures/quitSubsidy.d.ts.map +1 -1
- package/api/procedures/quitSubsidy.js +3 -2
- package/api/procedures/quitSubsidy.js.map +1 -1
- package/api/procedures/reclaimDividendDistributionFunds.d.ts +2 -2
- package/api/procedures/reclaimDividendDistributionFunds.d.ts.map +1 -1
- package/api/procedures/reclaimDividendDistributionFunds.js +3 -2
- package/api/procedures/reclaimDividendDistributionFunds.js.map +1 -1
- package/api/procedures/redeemTokens.d.ts +2 -2
- package/api/procedures/redeemTokens.d.ts.map +1 -1
- package/api/procedures/redeemTokens.js +3 -2
- package/api/procedures/redeemTokens.js.map +1 -1
- package/api/procedures/registerIdentity.d.ts +3 -2
- package/api/procedures/registerIdentity.d.ts.map +1 -1
- package/api/procedures/registerIdentity.js +3 -4
- package/api/procedures/registerIdentity.js.map +1 -1
- package/api/procedures/removeAssetRequirement.d.ts +2 -2
- package/api/procedures/removeAssetRequirement.d.ts.map +1 -1
- package/api/procedures/removeAssetRequirement.js +3 -3
- package/api/procedures/removeAssetRequirement.js.map +1 -1
- package/api/procedures/removeAssetStat.d.ts +2 -2
- package/api/procedures/removeAssetStat.d.ts.map +1 -1
- package/api/procedures/removeAssetStat.js +7 -5
- package/api/procedures/removeAssetStat.js.map +1 -1
- package/api/procedures/removeCheckpointSchedule.d.ts +2 -2
- package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/removeCheckpointSchedule.js +3 -2
- package/api/procedures/removeCheckpointSchedule.js.map +1 -1
- package/api/procedures/removeCorporateAction.d.ts +2 -2
- package/api/procedures/removeCorporateAction.d.ts.map +1 -1
- package/api/procedures/removeCorporateAction.js +3 -2
- package/api/procedures/removeCorporateAction.js.map +1 -1
- package/api/procedures/removeCorporateActionsAgent.d.ts +2 -2
- package/api/procedures/removeCorporateActionsAgent.d.ts.map +1 -1
- package/api/procedures/removeCorporateActionsAgent.js +3 -2
- package/api/procedures/removeCorporateActionsAgent.js.map +1 -1
- package/api/procedures/removeExternalAgent.d.ts +2 -2
- package/api/procedures/removeExternalAgent.d.ts.map +1 -1
- package/api/procedures/removeExternalAgent.js +3 -2
- package/api/procedures/removeExternalAgent.js.map +1 -1
- package/api/procedures/removePrimaryIssuanceAgent.d.ts +2 -2
- package/api/procedures/removePrimaryIssuanceAgent.d.ts.map +1 -1
- package/api/procedures/removePrimaryIssuanceAgent.js +3 -2
- package/api/procedures/removePrimaryIssuanceAgent.js.map +1 -1
- package/api/procedures/removeSecondaryAccounts.d.ts +2 -1
- package/api/procedures/removeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/removeSecondaryAccounts.js +3 -2
- package/api/procedures/removeSecondaryAccounts.js.map +1 -1
- package/api/procedures/renamePortfolio.d.ts +2 -2
- package/api/procedures/renamePortfolio.d.ts.map +1 -1
- package/api/procedures/renamePortfolio.js +3 -3
- package/api/procedures/renamePortfolio.js.map +1 -1
- package/api/procedures/rescheduleInstruction.d.ts +2 -1
- package/api/procedures/rescheduleInstruction.d.ts.map +1 -1
- package/api/procedures/rescheduleInstruction.js +3 -3
- package/api/procedures/rescheduleInstruction.js.map +1 -1
- package/api/procedures/reserveTicker.d.ts +3 -3
- package/api/procedures/reserveTicker.d.ts.map +1 -1
- package/api/procedures/reserveTicker.js +3 -4
- package/api/procedures/reserveTicker.js.map +1 -1
- package/api/procedures/setAssetDocuments.d.ts +2 -2
- package/api/procedures/setAssetDocuments.d.ts.map +1 -1
- package/api/procedures/setAssetDocuments.js +1 -2
- package/api/procedures/setAssetDocuments.js.map +1 -1
- package/api/procedures/setAssetRequirements.d.ts +2 -2
- package/api/procedures/setAssetRequirements.d.ts.map +1 -1
- package/api/procedures/setAssetRequirements.js +9 -10
- package/api/procedures/setAssetRequirements.js.map +1 -1
- package/api/procedures/setCustodian.d.ts +3 -3
- package/api/procedures/setCustodian.d.ts.map +1 -1
- package/api/procedures/setCustodian.js +3 -6
- package/api/procedures/setCustodian.js.map +1 -1
- package/api/procedures/setGroupPermissions.d.ts +2 -2
- package/api/procedures/setGroupPermissions.d.ts.map +1 -1
- package/api/procedures/setGroupPermissions.js +3 -2
- package/api/procedures/setGroupPermissions.js.map +1 -1
- package/api/procedures/setPermissionGroup.d.ts +2 -2
- package/api/procedures/setPermissionGroup.d.ts.map +1 -1
- package/api/procedures/setPermissionGroup.js +6 -7
- package/api/procedures/setPermissionGroup.js.map +1 -1
- package/api/procedures/setTransferRestrictions.d.ts +8 -3
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -1
- package/api/procedures/setTransferRestrictions.js +118 -45
- package/api/procedures/setTransferRestrictions.js.map +1 -1
- package/api/procedures/subsidizeAccount.d.ts +3 -2
- package/api/procedures/subsidizeAccount.d.ts.map +1 -1
- package/api/procedures/subsidizeAccount.js +3 -4
- package/api/procedures/subsidizeAccount.js.map +1 -1
- package/api/procedures/toggleFreezeOffering.d.ts +2 -2
- package/api/procedures/toggleFreezeOffering.d.ts.map +1 -1
- package/api/procedures/toggleFreezeOffering.js +17 -18
- package/api/procedures/toggleFreezeOffering.js.map +1 -1
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts +2 -2
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/toggleFreezeSecondaryAccounts.js +7 -9
- package/api/procedures/toggleFreezeSecondaryAccounts.js.map +1 -1
- package/api/procedures/toggleFreezeTransfers.d.ts +2 -2
- package/api/procedures/toggleFreezeTransfers.d.ts.map +1 -1
- package/api/procedures/toggleFreezeTransfers.js +12 -13
- package/api/procedures/toggleFreezeTransfers.js.map +1 -1
- package/api/procedures/togglePauseRequirements.d.ts +2 -2
- package/api/procedures/togglePauseRequirements.d.ts.map +1 -1
- package/api/procedures/togglePauseRequirements.js +3 -3
- package/api/procedures/togglePauseRequirements.js.map +1 -1
- package/api/procedures/transferAssetOwnership.d.ts +3 -3
- package/api/procedures/transferAssetOwnership.d.ts.map +1 -1
- package/api/procedures/transferAssetOwnership.js +3 -4
- package/api/procedures/transferAssetOwnership.js.map +1 -1
- package/api/procedures/transferPolyx.d.ts +2 -2
- package/api/procedures/transferPolyx.d.ts.map +1 -1
- package/api/procedures/transferPolyx.js +8 -8
- package/api/procedures/transferPolyx.js.map +1 -1
- package/api/procedures/transferTickerOwnership.d.ts +3 -3
- package/api/procedures/transferTickerOwnership.d.ts.map +1 -1
- package/api/procedures/transferTickerOwnership.js +3 -4
- package/api/procedures/transferTickerOwnership.js.map +1 -1
- package/api/procedures/types.d.ts +13 -30
- package/api/procedures/types.d.ts.map +1 -1
- package/api/procedures/types.js +1 -23
- package/api/procedures/types.js.map +1 -1
- package/api/procedures/utils.d.ts +1 -2
- package/api/procedures/utils.d.ts.map +1 -1
- package/api/procedures/utils.js +1 -8
- package/api/procedures/utils.js.map +1 -1
- package/api/procedures/waivePermissions.d.ts +2 -2
- package/api/procedures/waivePermissions.d.ts.map +1 -1
- package/api/procedures/waivePermissions.js +3 -2
- package/api/procedures/waivePermissions.js.map +1 -1
- package/base/Context.d.ts +15 -2
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +37 -3
- package/base/Context.js.map +1 -1
- package/base/PolymeshError.js +1 -1
- package/base/PolymeshError.js.map +1 -1
- package/base/PolymeshTransaction.d.ts +20 -19
- package/base/PolymeshTransaction.d.ts.map +1 -1
- package/base/PolymeshTransaction.js +19 -12
- package/base/PolymeshTransaction.js.map +1 -1
- package/base/PolymeshTransactionBase.d.ts +70 -35
- package/base/PolymeshTransactionBase.d.ts.map +1 -1
- package/base/PolymeshTransactionBase.js +237 -68
- package/base/PolymeshTransactionBase.js.map +1 -1
- package/base/PolymeshTransactionBatch.d.ts +43 -15
- package/base/PolymeshTransactionBatch.d.ts.map +1 -1
- package/base/PolymeshTransactionBatch.js +107 -18
- package/base/PolymeshTransactionBatch.js.map +1 -1
- package/base/Procedure.d.ts +10 -35
- package/base/Procedure.d.ts.map +1 -1
- package/base/Procedure.js +27 -92
- package/base/Procedure.js.map +1 -1
- package/base/types.d.ts +2 -4
- package/base/types.d.ts.map +1 -1
- package/internal.d.ts +1 -3
- package/internal.d.ts.map +1 -1
- package/internal.js +5 -9
- package/internal.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-16.0.0-alpha.2.tgz +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +75 -66
- package/types/index.d.ts.map +1 -1
- package/types/index.js +8 -25
- package/types/index.js.map +1 -1
- package/types/internal.d.ts +74 -105
- package/types/internal.d.ts.map +1 -1
- package/types/internal.js +27 -8
- package/types/internal.js.map +1 -1
- package/utils/conversion.d.ts +15 -7
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +70 -28
- package/utils/conversion.js.map +1 -1
- package/utils/internal.d.ts +37 -19
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +123 -55
- package/utils/internal.js.map +1 -1
- package/utils/typeguards.d.ts +2 -2
- package/utils/typeguards.d.ts.map +1 -1
- package/utils/typeguards.js.map +1 -1
- package/api/procedures/modifyDistributionCheckpoint.d.ts +0 -25
- package/api/procedures/modifyDistributionCheckpoint.d.ts.map +0 -1
- package/api/procedures/modifyDistributionCheckpoint.js +0 -60
- package/api/procedures/modifyDistributionCheckpoint.js.map +0 -1
- package/base/PostTransactionValue.d.ts +0 -45
- package/base/PostTransactionValue.d.ts.map +0 -1
- package/base/PostTransactionValue.js +0 -108
- package/base/PostTransactionValue.js.map +0 -1
- package/base/TransactionQueue.d.ts +0 -142
- package/base/TransactionQueue.d.ts.map +0 -1
- package/base/TransactionQueue.js +0 -420
- package/base/TransactionQueue.js.map +0 -1
- package/npm-package/polymeshassociation-polymesh-sdk-15.1.1-beta.1.tgz +0 -0
|
@@ -27,8 +27,10 @@ exports.PolymeshTransactionBatch = void 0;
|
|
|
27
27
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
28
28
|
const bluebird_1 = __importDefault(require("bluebird"));
|
|
29
29
|
const internal_1 = require("../internal");
|
|
30
|
+
const types_1 = require("../types");
|
|
31
|
+
const internal_2 = require("../types/internal");
|
|
30
32
|
const conversion_1 = require("../utils/conversion");
|
|
31
|
-
const
|
|
33
|
+
const internal_3 = require("../utils/internal");
|
|
32
34
|
/**
|
|
33
35
|
* Wrapper class for a batch of Polymesh Transactions
|
|
34
36
|
*/
|
|
@@ -39,27 +41,32 @@ class PolymeshTransactionBatch extends internal_1.PolymeshTransactionBase {
|
|
|
39
41
|
constructor(transactionSpec, context) {
|
|
40
42
|
const { transactions } = transactionSpec, rest = __rest(transactionSpec, ["transactions"]);
|
|
41
43
|
super(rest, context);
|
|
42
|
-
this.
|
|
44
|
+
this.transactionData = transactions.map(({ transaction, args, feeMultiplier, fee }) => ({
|
|
45
|
+
tag: (0, conversion_1.transactionToTxTag)(transaction),
|
|
46
|
+
args,
|
|
47
|
+
feeMultiplier,
|
|
48
|
+
transaction,
|
|
49
|
+
fee,
|
|
50
|
+
}));
|
|
43
51
|
}
|
|
44
52
|
/**
|
|
45
53
|
* @hidden
|
|
46
54
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
args: (0, internal_2.unwrapValues)(args),
|
|
52
|
-
feeMultiplier,
|
|
55
|
+
static toTransactionSpec(inputTransaction) {
|
|
56
|
+
const spec = internal_1.PolymeshTransactionBase.toTransactionSpec(inputTransaction);
|
|
57
|
+
const { transactionData } = inputTransaction;
|
|
58
|
+
return Object.assign(Object.assign({}, spec), { transactions: transactionData.map(({ transaction, args, fee, feeMultiplier }) => ({
|
|
53
59
|
transaction,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
args,
|
|
61
|
+
fee,
|
|
62
|
+
feeMultiplier,
|
|
63
|
+
})) });
|
|
57
64
|
}
|
|
58
65
|
/**
|
|
59
66
|
* transactions in the batch with their respective arguments
|
|
60
67
|
*/
|
|
61
68
|
get transactions() {
|
|
62
|
-
return this.
|
|
69
|
+
return this.transactionData.map(({ tag, args }) => ({
|
|
63
70
|
tag,
|
|
64
71
|
args,
|
|
65
72
|
}));
|
|
@@ -69,31 +76,113 @@ class PolymeshTransactionBatch extends internal_1.PolymeshTransactionBase {
|
|
|
69
76
|
*/
|
|
70
77
|
composeTx() {
|
|
71
78
|
const { context: { polymeshApi: { tx: { utility }, }, }, } = this;
|
|
72
|
-
return utility.batchAtomic(this.
|
|
79
|
+
return utility.batchAtomic(this.transactionData.map(({ transaction, args }) => transaction(...args)));
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
75
82
|
* @hidden
|
|
76
83
|
*/
|
|
77
84
|
getProtocolFees() {
|
|
78
|
-
return bluebird_1.default.reduce(this.
|
|
79
|
-
|
|
85
|
+
return bluebird_1.default.reduce(this.transactionData, (total, { tag, feeMultiplier = new bignumber_js_1.default(1), fee }) => __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
let fees = fee;
|
|
87
|
+
if (!fees) {
|
|
88
|
+
[{ fees }] = yield this.context.getProtocolFees({ tags: [tag] });
|
|
89
|
+
}
|
|
80
90
|
return total.plus(fees.multipliedBy(feeMultiplier));
|
|
81
91
|
}), new bignumber_js_1.default(0));
|
|
82
92
|
}
|
|
83
93
|
/**
|
|
84
|
-
* @note batches can't be subsidized
|
|
94
|
+
* @note batches can't be subsidized. If the caller is subsidized, they should use `splitTransactions` and
|
|
95
|
+
* run each transaction separately
|
|
85
96
|
*/
|
|
86
97
|
supportsSubsidy() {
|
|
87
98
|
return false;
|
|
88
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Splits this batch into its individual transactions to be run separately. This is useful if the caller is being subsidized,
|
|
102
|
+
* since batches cannot be run by subsidized Accounts
|
|
103
|
+
*
|
|
104
|
+
* @note the transactions returned by this method must be run in the same order they appear in the array to guarantee the same behavior. If run out of order,
|
|
105
|
+
* an error will be thrown. The result that would be obtained by running the batch is returned by running the last transaction in the array
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
*
|
|
109
|
+
* ```typescript
|
|
110
|
+
* const createAssetTx = await sdk.assets.createAsset(...);
|
|
111
|
+
*
|
|
112
|
+
* let ticker: string;
|
|
113
|
+
*
|
|
114
|
+
* if (isPolymeshTransactionBatch<Asset>(createAssetTx)) {
|
|
115
|
+
* const transactions = createAssetTx.splitTransactions();
|
|
116
|
+
*
|
|
117
|
+
* for (let i = 0; i < length; i += 1) {
|
|
118
|
+
* const result = await transactions[i].run();
|
|
119
|
+
*
|
|
120
|
+
* if (isAsset(result)) {
|
|
121
|
+
* ({ticker} = result)
|
|
122
|
+
* }
|
|
123
|
+
* }
|
|
124
|
+
* } else {
|
|
125
|
+
* ({ ticker } = await createAssetTx.run());
|
|
126
|
+
* }
|
|
127
|
+
*
|
|
128
|
+
* console.log(`New Asset created! Ticker: ${ticker}`);
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
splitTransactions() {
|
|
132
|
+
const { signingAddress, signer, context } = this;
|
|
133
|
+
const { transactions, resolver, transformer } = PolymeshTransactionBatch.toTransactionSpec(this);
|
|
134
|
+
const receipts = [];
|
|
135
|
+
const processedIndexes = [];
|
|
136
|
+
return transactions.map(({ transaction, args }, index) => {
|
|
137
|
+
const isLast = index === transactions.length - 1;
|
|
138
|
+
const spec = {
|
|
139
|
+
signer,
|
|
140
|
+
signingAddress,
|
|
141
|
+
transaction,
|
|
142
|
+
args,
|
|
143
|
+
};
|
|
144
|
+
let newTransaction;
|
|
145
|
+
/*
|
|
146
|
+
* the last transaction's resolver will pass the merged receipt with all events to the batch's original resolver.
|
|
147
|
+
* Other transactions will just add their receipts to the list to be merged
|
|
148
|
+
*/
|
|
149
|
+
if (isLast) {
|
|
150
|
+
newTransaction = new internal_1.PolymeshTransaction(Object.assign(Object.assign({}, spec), { resolver: (receipt) => {
|
|
151
|
+
if ((0, internal_2.isResolverFunction)(resolver)) {
|
|
152
|
+
return resolver((0, internal_3.mergeReceipts)([...receipts, receipt], context));
|
|
153
|
+
}
|
|
154
|
+
return resolver;
|
|
155
|
+
}, transformer }), context);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
newTransaction = new internal_1.PolymeshTransaction(Object.assign(Object.assign({}, spec), { resolver: (receipt) => {
|
|
159
|
+
processedIndexes.push(index);
|
|
160
|
+
receipts.push(receipt);
|
|
161
|
+
} }), context);
|
|
162
|
+
}
|
|
163
|
+
const originalRun = newTransaction.run.bind(newTransaction);
|
|
164
|
+
newTransaction.run = (() => {
|
|
165
|
+
const expectedIndex = index - 1;
|
|
166
|
+
// we throw an error if the transactions aren't being run in order
|
|
167
|
+
if (expectedIndex >= 0 && processedIndexes[expectedIndex] !== expectedIndex) {
|
|
168
|
+
throw new internal_1.PolymeshError({
|
|
169
|
+
code: types_1.ErrorCode.General,
|
|
170
|
+
message: 'Transactions resulting from splitting a batch must be run in order',
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
return originalRun();
|
|
174
|
+
});
|
|
175
|
+
return newTransaction;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
89
178
|
/**
|
|
90
179
|
* @hidden
|
|
91
180
|
*/
|
|
92
181
|
handleExtrinsicSuccess(resolve, reject, receipt) {
|
|
93
182
|
// If one of the transactions in the batch fails, this event gets emitted
|
|
94
|
-
const failed =
|
|
183
|
+
const [failed] = (0, internal_3.filterEventRecords)(receipt, 'utility', 'BatchInterrupted', true);
|
|
95
184
|
if (failed) {
|
|
96
|
-
const {
|
|
185
|
+
const { data: [, failedData], } = failed;
|
|
97
186
|
const failedIndex = (0, conversion_1.u32ToBigNumber)(failedData[0]).toNumber();
|
|
98
187
|
const dispatchError = failedData[1];
|
|
99
188
|
this.handleExtrinsicFailure(resolve, reject, dispatchError, { failedIndex });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolymeshTransactionBatch.js","sourceRoot":"","sources":["../../src/base/PolymeshTransactionBatch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PolymeshTransactionBatch.js","sourceRoot":"","sources":["../../src/base/PolymeshTransactionBatch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,gEAAqC;AACrC,wDAAyB;AAEzB,0CAAkG;AAClG,oCAA+C;AAC/C,gDAM0B;AAC1B,oDAAwE;AACxE,gDAAqE;AAErE;;G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W,EAAE,CAAC;YACvB,CAAC,CAAoE,CAAC;YAEtE,OAAO,cAAc,CAAC;QACxB,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACgB,sBAAsB,CACvC,OAA8E,EAC9E,MAAkC,EAClC,OAA2B;QAE3B,yEAAyE;QACzE,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,6BAAkB,EAAC,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;QAElF,IAAI,MAAM,EAAE;YACV,MAAM,EACJ,IAAI,EAAE,CAAC,EAAE,UAAU,CAAC,GACrB,GAAG,MAAM,CAAC;YAEX,MAAM,WAAW,GAAG,IAAA,2BAAc,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;YAC7D,MAAM,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;YAEpC,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;SAC9E;aAAM;YACL,OAAO,CAAC,OAAO,CAAC,CAAC;SAClB;IACH,CAAC;CACF;AA7OD,4DA6OC"}
|
package/base/Procedure.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Context
|
|
2
|
-
import { ProcedureAuthorizationStatus, ProcedureOpts } from "../types";
|
|
3
|
-
import {
|
|
1
|
+
import { Context } from "../internal";
|
|
2
|
+
import { GenericPolymeshTransaction, ProcedureAuthorizationStatus, ProcedureOpts } from "../types";
|
|
3
|
+
import { BaseTransactionSpec, ProcedureAuthorization } from "../types/internal";
|
|
4
4
|
/**
|
|
5
5
|
* @hidden
|
|
6
6
|
*
|
|
7
7
|
* Represents an operation performed on the Polymesh blockchain.
|
|
8
|
-
* A Procedure can be prepared to
|
|
8
|
+
* A Procedure can be prepared to return a promise that resolves
|
|
9
|
+
* to a {@link PolymeshTransaction} (or {@link PolymeshTransactionBatch}) that can be run
|
|
9
10
|
*/
|
|
10
11
|
export declare class Procedure<Args = void, ReturnValue = void, Storage = Record<string, unknown>> {
|
|
11
12
|
private prepareTransactions;
|
|
12
13
|
private getAuthorization;
|
|
13
14
|
private prepareStorage;
|
|
14
|
-
private transactions;
|
|
15
15
|
private _storage;
|
|
16
16
|
private _context;
|
|
17
17
|
/**
|
|
@@ -20,7 +20,7 @@ export declare class Procedure<Args = void, ReturnValue = void, Storage = Record
|
|
|
20
20
|
* @param prepareTransactions - function that prepares the transaction queue
|
|
21
21
|
* @param getAuthorization - can be a ProcedureAuthorization object or a function that returns a ProcedureAuthorization object
|
|
22
22
|
*/
|
|
23
|
-
constructor(prepareTransactions: (this: Procedure<Args, ReturnValue, Storage>, args: Args) => Promise<
|
|
23
|
+
constructor(prepareTransactions: (this: Procedure<Args, ReturnValue, Storage>, args: Args) => Promise<BaseTransactionSpec<ReturnValue>>, getAuthorization?: ProcedureAuthorization | ((this: Procedure<Args, ReturnValue, Storage>, args: Args) => Promise<ProcedureAuthorization> | ProcedureAuthorization), prepareStorage?: (this: Procedure<Args, ReturnValue, Storage>, args: Args) => Promise<Storage> | Storage);
|
|
24
24
|
/**
|
|
25
25
|
* @hidden
|
|
26
26
|
* Set the context and storage (if not already set), return the Context
|
|
@@ -42,42 +42,17 @@ export declare class Procedure<Args = void, ReturnValue = void, Storage = Record
|
|
|
42
42
|
*/
|
|
43
43
|
checkAuthorization(args: Args, context: Context, opts?: ProcedureOpts): Promise<ProcedureAuthorizationStatus>;
|
|
44
44
|
/**
|
|
45
|
-
* Build a {@link
|
|
45
|
+
* Build a {@link PolymeshTransaction} or {@link PolymeshTransactionBatch} that can be run
|
|
46
46
|
*
|
|
47
47
|
* @param args.args - arguments required to prepare the queue
|
|
48
48
|
* @param args.transformer - optional function that transforms the Procedure result
|
|
49
49
|
* @param context - context in which the resulting queue will run
|
|
50
50
|
* @param opts.signer - address that will be used as a signer for this procedure
|
|
51
51
|
*/
|
|
52
|
-
prepare<
|
|
52
|
+
prepare<TransformedReturnValue>(args: {
|
|
53
53
|
args: Args;
|
|
54
|
-
transformer?: (value: ReturnValue) =>
|
|
55
|
-
}, context: Context, opts?: ProcedureOpts): Promise<
|
|
56
|
-
/**
|
|
57
|
-
* Appends a transaction into this Procedure's queue. This defines
|
|
58
|
-
* what will be run by the TransactionQueue when it is started
|
|
59
|
-
*
|
|
60
|
-
* @returns an array of {@link PostTransactionValue}. Each element corresponds to whatever is returned by one of the resolver functions passed as options
|
|
61
|
-
*/
|
|
62
|
-
addTransaction<TxArgs extends unknown[] | [], Values extends unknown[] = []>(args: AddTransactionArgs<TxArgs, Values>): PostTransactionValueArray<Values>;
|
|
63
|
-
/**
|
|
64
|
-
* Appends a Procedure into this Procedure's queue. This defines
|
|
65
|
-
* what will be run by the TransactionQueue when it is started
|
|
66
|
-
*
|
|
67
|
-
* @param proc - a Procedure that will be run as part of this Procedure's Transaction Queue
|
|
68
|
-
* @param args - arguments to be passed to the procedure
|
|
69
|
-
*
|
|
70
|
-
* @returns whichever value is returned by the passed Procedure
|
|
71
|
-
*/
|
|
72
|
-
addProcedure<ProcArgs, R, S>(procedure: Procedure<ProcArgs, R, S>, args: ProcArgs): Promise<MaybePostTransactionValue<R>>;
|
|
73
|
-
addProcedure<R, S>(procedure: Procedure<void, R, S>): Promise<MaybePostTransactionValue<R>>;
|
|
74
|
-
/**
|
|
75
|
-
* Appends a batch of transactions into this Procedure's queue. This defines
|
|
76
|
-
* what will be run by the TransactionQueue when it is started
|
|
77
|
-
*
|
|
78
|
-
* @returns an array of {@link PostTransactionValue}. Each element corresponds to whatever is returned by one of the resolver functions passed as options
|
|
79
|
-
*/
|
|
80
|
-
addBatchTransaction<ArgsArray extends (unknown[] | [])[], Values extends unknown[] = []>(args: AddBatchTransactionArgs<Values, ArgsArray>): PostTransactionValueArray<Values>;
|
|
54
|
+
transformer?: (value: ReturnValue) => TransformedReturnValue | Promise<TransformedReturnValue>;
|
|
55
|
+
}, context: Context, opts?: ProcedureOpts): Promise<GenericPolymeshTransaction<ReturnValue, TransformedReturnValue>>;
|
|
81
56
|
/**
|
|
82
57
|
* internal data container. Used to store common fetched/processed data that is
|
|
83
58
|
* used by both `prepareTransactions` and `checkAuthorization`
|
package/base/Procedure.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Procedure.d.ts","sourceRoot":"","sources":["../../src/base/Procedure.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,
|
|
1
|
+
{"version":3,"file":"Procedure.d.ts","sourceRoot":"","sources":["../../src/base/Procedure.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EAIR,oBAAmB;AACpB,OAAO,EAIL,0BAA0B,EAE1B,4BAA4B,EAC5B,aAAa,EAGd,iBAAgB;AACjB,OAAO,EACL,mBAAmB,EAEnB,sBAAsB,EACvB,0BAAyB;AAgC1B;;;;;;GAMG;AACH,qBAAa,SAAS,CAAC,IAAI,GAAG,IAAI,EAAE,WAAW,GAAG,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvF,OAAO,CAAC,mBAAmB,CAGuB;IAElD,OAAO,CAAC,gBAAgB,CAGsC;IAE9D,OAAO,CAAC,cAAc,CAGU;IAEhC,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,QAAQ,CAAwB;IAExC;;;;;OAKG;gBAED,mBAAmB,EAAE,CACnB,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAC3C,IAAI,EAAE,IAAI,KACP,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC,EAC9C,gBAAgB,GACZ,sBAAsB,GACtB,CAAC,CACC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAC3C,IAAI,EAAE,IAAI,KAER,OAAO,CAAC,sBAAsB,CAAC,GAC/B,sBAAsB,CAAqD,EACnF,cAAc,GAAE,CACd,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAC3C,IAAI,EAAE,IAAI,KACP,OAAO,CAAC,OAAO,CAAC,GAAG,OAAuD;IAajF;;;OAGG;YACW,KAAK;IAyBnB;;;OAGG;IACH,OAAO,CAAC,OAAO;IAKf;;OAEG;YACW,mBAAmB;IAoFjC;;;;OAIG;IACU,kBAAkB,CAC7B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,4BAA4B,CAAC;IAQxC;;;;;;;OAOG;IACU,OAAO,CAAC,sBAAsB,EACzC,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI,CAAC;QACX,WAAW,CAAC,EAAE,CACZ,KAAK,EAAE,WAAW,KACf,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;KAC/D,EACD,OAAO,EAAE,OAAO,EAChB,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,0BAA0B,CAAC,WAAW,EAAE,sBAAsB,CAAC,CAAC;IAmG3E;;;OAGG;IACH,IAAW,OAAO,IAAI,OAAO,CAW5B;IAED;;;OAGG;IACH,IAAW,OAAO,IAAI,OAAO,CAW5B;CACF"}
|
package/base/Procedure.js
CHANGED
|
@@ -41,7 +41,8 @@ function getAgentPermissionsResult(identity, asset, transactions) {
|
|
|
41
41
|
* @hidden
|
|
42
42
|
*
|
|
43
43
|
* Represents an operation performed on the Polymesh blockchain.
|
|
44
|
-
* A Procedure can be prepared to
|
|
44
|
+
* A Procedure can be prepared to return a promise that resolves
|
|
45
|
+
* to a {@link PolymeshTransaction} (or {@link PolymeshTransactionBatch}) that can be run
|
|
45
46
|
*/
|
|
46
47
|
class Procedure {
|
|
47
48
|
/**
|
|
@@ -51,7 +52,6 @@ class Procedure {
|
|
|
51
52
|
* @param getAuthorization - can be a ProcedureAuthorization object or a function that returns a ProcedureAuthorization object
|
|
52
53
|
*/
|
|
53
54
|
constructor(prepareTransactions, getAuthorization = () => __awaiter(this, void 0, void 0, function* () { return ({}); }), prepareStorage = () => __awaiter(this, void 0, void 0, function* () { return ({}); })) {
|
|
54
|
-
this.transactions = [];
|
|
55
55
|
this._storage = null;
|
|
56
56
|
this._context = null;
|
|
57
57
|
this.prepareTransactions = prepareTransactions;
|
|
@@ -71,7 +71,13 @@ class Procedure {
|
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
if (!this._context) {
|
|
73
73
|
const ctx = context.clone();
|
|
74
|
-
const { signingAccount } = opts;
|
|
74
|
+
const { signingAccount, nonce } = opts;
|
|
75
|
+
if (typeof nonce === 'function') {
|
|
76
|
+
ctx.setNonce(yield nonce());
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
ctx.setNonce(yield nonce);
|
|
80
|
+
}
|
|
75
81
|
if (signingAccount) {
|
|
76
82
|
yield ctx.setSigningAddress((0, conversion_1.signerToString)(signingAccount));
|
|
77
83
|
}
|
|
@@ -88,7 +94,6 @@ class Procedure {
|
|
|
88
94
|
* Reset the procedure
|
|
89
95
|
*/
|
|
90
96
|
cleanup() {
|
|
91
|
-
this.transactions = [];
|
|
92
97
|
this._context = null;
|
|
93
98
|
this._storage = null;
|
|
94
99
|
}
|
|
@@ -175,7 +180,7 @@ class Procedure {
|
|
|
175
180
|
});
|
|
176
181
|
}
|
|
177
182
|
/**
|
|
178
|
-
* Build a {@link
|
|
183
|
+
* Build a {@link PolymeshTransaction} or {@link PolymeshTransactionBatch} that can be run
|
|
179
184
|
*
|
|
180
185
|
* @param args.args - arguments required to prepare the queue
|
|
181
186
|
* @param args.transformer - optional function that transforms the Procedure result
|
|
@@ -236,99 +241,29 @@ class Procedure {
|
|
|
236
241
|
});
|
|
237
242
|
}
|
|
238
243
|
const procedureResult = yield prepareTransactionsPromise;
|
|
239
|
-
|
|
244
|
+
const signingAddress = ctx.getSigningAddress();
|
|
245
|
+
const signer = ctx.getExternalSigner();
|
|
246
|
+
const spec = Object.assign(Object.assign({}, procedureResult), { signer,
|
|
247
|
+
signingAddress,
|
|
248
|
+
transformer });
|
|
249
|
+
if (!('transactions' in spec)) {
|
|
250
|
+
return new internal_1.PolymeshTransaction(spec, ctx);
|
|
251
|
+
}
|
|
252
|
+
else if (spec.transactions.length === 1) {
|
|
253
|
+
const [{ transaction, args: txArgs, fee, feeMultiplier }] = spec.transactions;
|
|
254
|
+
return new internal_1.PolymeshTransaction(Object.assign(Object.assign({}, spec), { transaction,
|
|
255
|
+
fee,
|
|
256
|
+
feeMultiplier, args: txArgs }), ctx);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return new internal_1.PolymeshTransactionBatch(spec, ctx);
|
|
260
|
+
}
|
|
240
261
|
}
|
|
241
262
|
finally {
|
|
242
263
|
this.cleanup();
|
|
243
264
|
}
|
|
244
265
|
});
|
|
245
266
|
}
|
|
246
|
-
/**
|
|
247
|
-
* Appends a transaction into this Procedure's queue. This defines
|
|
248
|
-
* what will be run by the TransactionQueue when it is started
|
|
249
|
-
*
|
|
250
|
-
* @returns an array of {@link PostTransactionValue}. Each element corresponds to whatever is returned by one of the resolver functions passed as options
|
|
251
|
-
*/
|
|
252
|
-
addTransaction(args) {
|
|
253
|
-
const { transaction, args: txArgs, fee, resolvers = [], isCritical = true, paidForBy, feeMultiplier, } = args;
|
|
254
|
-
const { context } = this;
|
|
255
|
-
const postTransactionValues = resolvers.map(resolver => new internal_1.PostTransactionValue(resolver));
|
|
256
|
-
const signingAddress = context.getSigningAddress();
|
|
257
|
-
const signer = context.getExternalSigner();
|
|
258
|
-
this.transactions.push(new internal_1.PolymeshTransaction({
|
|
259
|
-
transaction: transaction,
|
|
260
|
-
args: txArgs,
|
|
261
|
-
postTransactionValues,
|
|
262
|
-
isCritical,
|
|
263
|
-
signingAddress,
|
|
264
|
-
signer,
|
|
265
|
-
fee,
|
|
266
|
-
feeMultiplier,
|
|
267
|
-
paidForBy,
|
|
268
|
-
}, context));
|
|
269
|
-
return postTransactionValues;
|
|
270
|
-
}
|
|
271
|
-
// eslint-disable-next-line require-jsdoc
|
|
272
|
-
addProcedure(procedure, args = {}) {
|
|
273
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
-
try {
|
|
275
|
-
procedure._context = this.context;
|
|
276
|
-
const returnValue = yield procedure.prepareTransactions(args);
|
|
277
|
-
const { transactions } = procedure;
|
|
278
|
-
this.transactions = [...this.transactions, ...transactions];
|
|
279
|
-
return returnValue;
|
|
280
|
-
}
|
|
281
|
-
catch (err) {
|
|
282
|
-
throw new internal_1.PolymeshError({
|
|
283
|
-
code: err.code || types_1.ErrorCode.UnexpectedError,
|
|
284
|
-
message: err.message,
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
finally {
|
|
288
|
-
procedure.cleanup();
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Appends a batch of transactions into this Procedure's queue. This defines
|
|
294
|
-
* what will be run by the TransactionQueue when it is started
|
|
295
|
-
*
|
|
296
|
-
* @returns an array of {@link PostTransactionValue}. Each element corresponds to whatever is returned by one of the resolver functions passed as options
|
|
297
|
-
*/
|
|
298
|
-
addBatchTransaction(args) {
|
|
299
|
-
const { transactions, fee, resolvers = [], isCritical = true, paidForBy, } = args;
|
|
300
|
-
const { context } = this;
|
|
301
|
-
const postTransactionValues = resolvers.map(resolver => new internal_1.PostTransactionValue(resolver));
|
|
302
|
-
// if only a single transaction is added to the batch, we don't use a batch
|
|
303
|
-
if (transactions.length === 1) {
|
|
304
|
-
const [{ transaction, args: txArgs, feeMultiplier }] = transactions;
|
|
305
|
-
return this.addTransaction({
|
|
306
|
-
transaction: transaction,
|
|
307
|
-
args: txArgs,
|
|
308
|
-
feeMultiplier,
|
|
309
|
-
fee,
|
|
310
|
-
resolvers,
|
|
311
|
-
isCritical,
|
|
312
|
-
paidForBy,
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
const signingAddress = context.getSigningAddress();
|
|
316
|
-
const signer = context.getExternalSigner();
|
|
317
|
-
this.transactions.push(new internal_1.PolymeshTransactionBatch({
|
|
318
|
-
transactions: transactions.map(({ transaction, args: txArgs, feeMultiplier }) => ({
|
|
319
|
-
transaction,
|
|
320
|
-
args: txArgs,
|
|
321
|
-
feeMultiplier,
|
|
322
|
-
})),
|
|
323
|
-
postTransactionValues,
|
|
324
|
-
isCritical,
|
|
325
|
-
signingAddress,
|
|
326
|
-
signer,
|
|
327
|
-
fee,
|
|
328
|
-
paidForBy,
|
|
329
|
-
}, context));
|
|
330
|
-
return postTransactionValues;
|
|
331
|
-
}
|
|
332
267
|
/**
|
|
333
268
|
* internal data container. Used to store common fetched/processed data that is
|
|
334
269
|
* used by both `prepareTransactions` and `checkAuthorization`
|
package/base/Procedure.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Procedure.js","sourceRoot":"","sources":["../../src/base/Procedure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Procedure.js","sourceRoot":"","sources":["../../src/base/Procedure.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAMoB;AACpB,oCAUiB;AAMjB,oDAAoD;AAEpD;;GAEG;AACH,SAAS,kBAAkB,CAAC,MAAe;IACzC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACrB,MAAM,IAAI,wBAAa,CAAC;YACtB,IAAI,EAAE,iBAAS,CAAC,UAAU;YAC1B,OAAO,EACL,iGAAiG;SACpG,CAAC,CAAC;KACJ;AACH,CAAC;AAED;;GAEG;AACH,SAAe,yBAAyB,CACtC,QAAyB,EACzB,KAAY,EACZ,YAA4B;;QAE5B,OAAO,QAAQ;YACb,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;gBACzC,KAAK;gBACL,YAAY;aACb,CAAC;YACJ,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,E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C;SACJ;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAzVD,8BAyVC"}
|
package/base/types.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PolymeshError as PolymeshErrorClass } from './PolymeshError';
|
|
2
2
|
import { PolymeshTransaction as PolymeshTransactionClass } from './PolymeshTransaction';
|
|
3
3
|
import { PolymeshTransactionBatch as PolymeshTransactionBatchClass } from './PolymeshTransactionBatch';
|
|
4
|
-
|
|
5
|
-
export declare type
|
|
6
|
-
export declare type PolymeshTransactionBatch = PolymeshTransactionBatchClass;
|
|
7
|
-
export declare type TransactionQueue<ProcedureReturnType = void, ReturnType = ProcedureReturnType, TransactionArgs extends unknown[][] = unknown[][]> = TransactionQueueClass<ProcedureReturnType, ReturnType, TransactionArgs>;
|
|
4
|
+
export declare type PolymeshTransaction<ReturnValue = unknown, TransformedReturnValue = ReturnValue, Args extends unknown[] | [] = unknown[]> = PolymeshTransactionClass<ReturnValue, TransformedReturnValue, Args>;
|
|
5
|
+
export declare type PolymeshTransactionBatch<ReturnValue = unknown, TransformedReturnValue = ReturnValue, Args extends unknown[][] = unknown[][]> = PolymeshTransactionBatchClass<ReturnValue, TransformedReturnValue, Args>;
|
|
8
6
|
export declare type PolymeshError = PolymeshErrorClass;
|
|
9
7
|
//# sourceMappingURL=types.d.ts.map
|
package/base/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/base/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,mBAAmB,IAAI,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,wBAAwB,IAAI,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/base/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,mBAAmB,IAAI,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,wBAAwB,IAAI,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAEvG,oBAAY,mBAAmB,CAC7B,WAAW,GAAG,OAAO,EACrB,sBAAsB,GAAG,WAAW,EACpC,IAAI,SAAS,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,IACrC,wBAAwB,CAAC,WAAW,EAAE,sBAAsB,EAAE,IAAI,CAAC,CAAC;AACxE,oBAAY,wBAAwB,CAClC,WAAW,GAAG,OAAO,EACrB,sBAAsB,GAAG,WAAW,EACpC,IAAI,SAAS,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,EAAE,IACpC,6BAA6B,CAAC,WAAW,EAAE,sBAAsB,EAAE,IAAI,CAAC,CAAC;AAC7E,oBAAY,aAAa,GAAG,kBAAkB,CAAC"}
|
package/internal.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { PolymeshError } from "./base/PolymeshError";
|
|
2
|
-
export { PostTransactionValue } from "./base/PostTransactionValue";
|
|
3
2
|
export { Context } from "./base/Context";
|
|
4
3
|
export { PolymeshTransactionBase } from "./base/PolymeshTransactionBase";
|
|
5
4
|
export { PolymeshTransaction } from "./base/PolymeshTransaction";
|
|
@@ -66,7 +65,6 @@ export { Instruction } from "./api/entities/Instruction";
|
|
|
66
65
|
export { Portfolio } from "./api/entities/Portfolio";
|
|
67
66
|
export { DefaultPortfolio } from "./api/entities/DefaultPortfolio";
|
|
68
67
|
export { NumberedPortfolio } from "./api/entities/NumberedPortfolio";
|
|
69
|
-
export { TransactionQueue } from "./base/TransactionQueue";
|
|
70
68
|
export { Checkpoint } from "./api/entities/Checkpoint";
|
|
71
69
|
export { CheckpointSchedule } from "./api/entities/CheckpointSchedule";
|
|
72
70
|
export { PermissionGroup } from "./api/entities/PermissionGroup";
|
|
@@ -86,7 +84,6 @@ export { modifyCaCheckpoint } from "./api/procedures/modifyCaCheckpoint";
|
|
|
86
84
|
export { payDividends } from "./api/procedures/payDividends";
|
|
87
85
|
export { modifyCaDefaultConfig } from "./api/procedures/modifyCaDefaultConfig";
|
|
88
86
|
export { removeCorporateAction } from "./api/procedures/removeCorporateAction";
|
|
89
|
-
export { modifyDistributionCheckpoint, ModifyDistributionCheckpointParams, } from "./api/procedures/modifyDistributionCheckpoint";
|
|
90
87
|
export { reclaimDividendDistributionFunds } from "./api/procedures/reclaimDividendDistributionFunds";
|
|
91
88
|
export { transferTickerOwnership } from "./api/procedures/transferTickerOwnership";
|
|
92
89
|
export { toggleFreezeSecondaryAccounts } from "./api/procedures/toggleFreezeSecondaryAccounts";
|
|
@@ -103,6 +100,7 @@ export { removeExternalAgent } from "./api/procedures/removeExternalAgent";
|
|
|
103
100
|
export { waivePermissions } from "./api/procedures/waivePermissions";
|
|
104
101
|
export { quitSubsidy, QuitSubsidyParams } from "./api/procedures/quitSubsidy";
|
|
105
102
|
export { modifyAllowance, ModifyAllowanceParams } from "./api/procedures/modifyAllowance";
|
|
103
|
+
export { createTransactionBatch } from "./api/procedures/createTransactionBatch";
|
|
106
104
|
export { SetAllowanceParams, DecreaseAllowanceParams, IncreaseAllowanceParams, SetCountTransferRestrictionsParams, SetPercentageTransferRestrictionsParams, SetClaimCountTransferRestrictionsParams, SetClaimPercentageTransferRestrictionsParams, } from "./api/procedures/types";
|
|
107
105
|
export { addAssetStat } from "./api/procedures/addAssetStat";
|
|
108
106
|
export { removeAssetStat } from "./api/procedures/removeAssetStat";
|
package/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/intern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