@polymeshassociation/polymesh-sdk 16.0.0-alpha.1 → 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -6
- package/README.md +3 -3
- package/api/client/AccountManagement.d.ts +12 -3
- package/api/client/AccountManagement.d.ts.map +1 -1
- package/api/client/AccountManagement.js +14 -3
- package/api/client/AccountManagement.js.map +1 -1
- package/api/client/Network.d.ts +3 -3
- package/api/client/Network.d.ts.map +1 -1
- package/api/client/Network.js +7 -11
- package/api/client/Network.js.map +1 -1
- package/api/client/Polymesh.d.ts +3 -37
- package/api/client/Polymesh.d.ts.map +1 -1
- package/api/client/Polymesh.js +3 -4
- package/api/client/Polymesh.js.map +1 -1
- package/api/entities/Account.d.ts +5 -5
- package/api/entities/Account.d.ts.map +1 -1
- package/api/entities/Account.js +18 -10
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +10 -11
- 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/entities/MultiSig/index.d.ts +26 -0
- package/api/entities/MultiSig/index.d.ts.map +1 -0
- package/api/entities/MultiSig/index.js +75 -0
- package/api/entities/MultiSig/index.js.map +1 -0
- package/api/entities/MultiSig/types.d.ts +7 -0
- package/api/entities/MultiSig/types.d.ts.map +1 -0
- package/api/entities/MultiSig/types.js +3 -0
- package/api/entities/MultiSig/types.js.map +1 -0
- package/api/entities/MultiSigProposal/index.d.ts +36 -0
- package/api/entities/MultiSigProposal/index.d.ts.map +1 -0
- package/api/entities/MultiSigProposal/index.js +93 -0
- package/api/entities/MultiSigProposal/index.js.map +1 -0
- package/api/entities/MultiSigProposal/types.d.ts +41 -0
- package/api/entities/MultiSigProposal/types.d.ts.map +1 -0
- package/api/entities/MultiSigProposal/types.js +13 -0
- package/api/entities/MultiSigProposal/types.js.map +1 -0
- package/api/entities/types.d.ts +4 -1
- package/api/entities/types.d.ts.map +1 -1
- package/api/entities/types.js +2 -0
- package/api/entities/types.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 +8 -6
- 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 +8 -4
- 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 +4 -6
- 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 +19 -16
- package/api/procedures/addTransferRestriction.js.map +1 -1
- package/api/procedures/claimClassicTicker.d.ts +1 -2
- 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 +1 -2
- package/api/procedures/claimDividends.d.ts.map +1 -1
- package/api/procedures/claimDividends.js +2 -3
- 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 +2 -3
- 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 +4 -3
- 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 +4 -3
- 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 +4 -8
- 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 +7 -8
- 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 +2 -3
- 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 +41 -21
- 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 +4 -3
- 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 +4 -3
- 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 +4 -3
- package/api/procedures/createGroup.js.map +1 -1
- package/api/procedures/createMultiSig.d.ts +13 -0
- package/api/procedures/createMultiSig.d.ts.map +1 -0
- package/api/procedures/createMultiSig.js +56 -0
- package/api/procedures/createMultiSig.js.map +1 -0
- package/api/procedures/createPortfolios.d.ts +2 -3
- package/api/procedures/createPortfolios.d.ts.map +1 -1
- package/api/procedures/createPortfolios.js +6 -4
- package/api/procedures/createPortfolios.js.map +1 -1
- package/api/procedures/createVenue.d.ts +2 -3
- package/api/procedures/createVenue.d.ts.map +1 -1
- package/api/procedures/createVenue.js +4 -3
- 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 +2 -3
- 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 +2 -3
- package/api/procedures/investInOffering.js.map +1 -1
- package/api/procedures/inviteAccount.d.ts +2 -3
- package/api/procedures/inviteAccount.d.ts.map +1 -1
- package/api/procedures/inviteAccount.js +4 -3
- 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 +10 -6
- 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 +4 -3
- package/api/procedures/launchOffering.js.map +1 -1
- package/api/procedures/leaveIdentity.d.ts +1 -2
- 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 +2 -3
- 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 +2 -3
- 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 +4 -3
- 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 +2 -1
- 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 +3 -19
- 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 +1 -1
- 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 +3 -2
- 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 +2 -3
- 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 +2 -3
- package/api/procedures/modifyCorporateActionsAgent.js.map +1 -1
- package/api/procedures/modifyDistributionCheckpoint.d.ts +25 -0
- package/api/procedures/modifyDistributionCheckpoint.d.ts.map +1 -0
- package/api/procedures/modifyDistributionCheckpoint.js +60 -0
- package/api/procedures/modifyDistributionCheckpoint.js.map +1 -0
- package/api/procedures/modifyInstructionAffirmation.d.ts +2 -2
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.js +10 -9
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- package/api/procedures/redeemTokens.js.map +1 -1
- package/api/procedures/registerIdentity.d.ts +2 -3
- package/api/procedures/registerIdentity.d.ts.map +1 -1
- package/api/procedures/registerIdentity.js +4 -3
- 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 +5 -7
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- package/api/procedures/removePrimaryIssuanceAgent.js.map +1 -1
- package/api/procedures/removeSecondaryAccounts.d.ts +1 -2
- package/api/procedures/removeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/removeSecondaryAccounts.js +2 -3
- 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 +1 -2
- 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 +4 -3
- 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 +2 -1
- 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 +10 -9
- 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 +6 -3
- 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 +2 -3
- 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 +7 -6
- package/api/procedures/setPermissionGroup.js.map +1 -1
- package/api/procedures/setTransferRestrictions.d.ts +3 -8
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -1
- package/api/procedures/setTransferRestrictions.js +45 -118
- package/api/procedures/setTransferRestrictions.js.map +1 -1
- package/api/procedures/subsidizeAccount.d.ts +2 -3
- package/api/procedures/subsidizeAccount.d.ts.map +1 -1
- package/api/procedures/subsidizeAccount.js +4 -3
- 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 +18 -17
- 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 +9 -7
- 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 +13 -12
- 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 +4 -3
- 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 +4 -3
- package/api/procedures/transferTickerOwnership.js.map +1 -1
- package/api/procedures/types.d.ts +33 -12
- package/api/procedures/types.d.ts.map +1 -1
- package/api/procedures/types.js +23 -1
- package/api/procedures/types.js.map +1 -1
- package/api/procedures/utils.d.ts +2 -1
- package/api/procedures/utils.d.ts.map +1 -1
- package/api/procedures/utils.js +8 -1
- 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 +2 -3
- package/api/procedures/waivePermissions.js.map +1 -1
- package/base/Context.d.ts +2 -15
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +3 -37
- 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 +19 -20
- package/base/PolymeshTransaction.d.ts.map +1 -1
- package/base/PolymeshTransaction.js +12 -19
- package/base/PolymeshTransaction.js.map +1 -1
- package/base/PolymeshTransactionBase.d.ts +35 -70
- package/base/PolymeshTransactionBase.d.ts.map +1 -1
- package/base/PolymeshTransactionBase.js +68 -237
- package/base/PolymeshTransactionBase.js.map +1 -1
- package/base/PolymeshTransactionBatch.d.ts +15 -43
- package/base/PolymeshTransactionBatch.d.ts.map +1 -1
- package/base/PolymeshTransactionBatch.js +18 -107
- package/base/PolymeshTransactionBatch.js.map +1 -1
- package/base/PostTransactionValue.d.ts +45 -0
- package/base/PostTransactionValue.d.ts.map +1 -0
- package/base/PostTransactionValue.js +108 -0
- package/base/PostTransactionValue.js.map +1 -0
- package/base/Procedure.d.ts +35 -10
- package/base/Procedure.d.ts.map +1 -1
- package/base/Procedure.js +92 -27
- package/base/Procedure.js.map +1 -1
- package/base/TransactionQueue.d.ts +142 -0
- package/base/TransactionQueue.d.ts.map +1 -0
- package/base/TransactionQueue.js +420 -0
- package/base/TransactionQueue.js.map +1 -0
- package/base/types.d.ts +4 -2
- package/base/types.d.ts.map +1 -1
- package/internal.d.ts +6 -1
- package/internal.d.ts.map +1 -1
- package/internal.js +15 -5
- package/internal.js.map +1 -1
- package/middleware/queriesV2.d.ts.map +1 -1
- package/middleware/queriesV2.js +11 -7
- package/middleware/queriesV2.js.map +1 -1
- package/middleware/types.d.ts +524 -484
- package/middleware/types.d.ts.map +1 -1
- package/middleware/types.js +499 -459
- package/middleware/types.js.map +1 -1
- package/middleware/typesV2.d.ts +20 -4
- package/middleware/typesV2.d.ts.map +1 -1
- package/middleware/typesV2.js +9 -2
- package/middleware/typesV2.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-16.0.0-beta.1.tgz +0 -0
- package/package.json +6 -6
- package/types/index.d.ts +66 -75
- package/types/index.d.ts.map +1 -1
- package/types/index.js +25 -8
- package/types/index.js.map +1 -1
- package/types/internal.d.ts +104 -73
- package/types/internal.d.ts.map +1 -1
- package/types/internal.js +8 -27
- package/types/internal.js.map +1 -1
- package/utils/conversion.d.ts +24 -8
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +99 -36
- package/utils/conversion.js.map +1 -1
- package/utils/internal.d.ts +14 -32
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +53 -121
- 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/createTransactionBatch.d.ts +0 -25
- package/api/procedures/createTransactionBatch.d.ts.map +0 -1
- package/api/procedures/createTransactionBatch.js +0 -118
- package/api/procedures/createTransactionBatch.js.map +0 -1
- package/npm-package/polymeshassociation-polymesh-sdk-16.0.0-alpha.1.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setGroupPermissions.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/setGroupPermissions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAiB,SAAS,EAAE,uBAAmB;AAC7E,OAAO,EAAa,yBAAyB,EAAU,oBAAgB;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"setGroupPermissions.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/setGroupPermissions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAiB,SAAS,EAAE,uBAAmB;AAC7E,OAAO,EAAa,yBAAyB,EAAU,oBAAgB;AACvE,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAQ1D;;GAEG;AACH,oBAAY,MAAM,GAAG;IAAE,KAAK,EAAE,qBAAqB,CAAA;CAAE,GAAG,yBAAyB,CAAC;AAElF;;GAEG;AACH,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,EAC7B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAqCf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,EACvB,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,GAC3B,sBAAsB,CAQxB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAO,UAAU,MAAM,EAAE,IAAI,CACA,CAAC"}
|
|
@@ -33,11 +33,10 @@ function prepareSetGroupPermissions(args) {
|
|
|
33
33
|
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
34
34
|
const rawAgId = (0, conversion_1.bigNumberToU32)(id, context);
|
|
35
35
|
const rawExtrinsicPermissions = (0, conversion_1.transactionPermissionsToExtrinsicPermissions)(transactions, context);
|
|
36
|
-
|
|
36
|
+
this.addTransaction({
|
|
37
37
|
transaction: externalAgents.setGroupPermissions,
|
|
38
38
|
args: [rawTicker, rawAgId, rawExtrinsicPermissions],
|
|
39
|
-
|
|
40
|
-
};
|
|
39
|
+
});
|
|
41
40
|
});
|
|
42
41
|
}
|
|
43
42
|
exports.prepareSetGroupPermissions = prepareSetGroupPermissions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setGroupPermissions.js","sourceRoot":"","sources":["../../../src/api/procedures/setGroupPermissions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAiC;AAEjC,6CAA6E;AAC7E,uCAAuE;AAEvE,uDAK4B;AAO5B;;GAEG;AACH,SAAsB,0BAA0B,CAE9C,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EACX,EA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,mBAAmB,uBAC8B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Asset, CustomPermissionGroup, KnownPermissionGroup, Procedure } from "../../internal";
|
|
2
2
|
import { Identity, SetPermissionGroupParams } from "../../types";
|
|
3
|
-
import {
|
|
3
|
+
import { MaybePostTransactionValue, ProcedureAuthorization } from "../../types/internal";
|
|
4
4
|
/**
|
|
5
5
|
* @hidden
|
|
6
6
|
*/
|
|
@@ -16,7 +16,7 @@ export interface Storage {
|
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
|
-
export declare function prepareSetPermissionGroup(this: Procedure<Params, CustomPermissionGroup | KnownPermissionGroup, Storage>, args: Params): Promise<
|
|
19
|
+
export declare function prepareSetPermissionGroup(this: Procedure<Params, CustomPermissionGroup | KnownPermissionGroup, Storage>, args: Params): Promise<MaybePostTransactionValue<CustomPermissionGroup | KnownPermissionGroup>>;
|
|
20
20
|
/**
|
|
21
21
|
* @hidden
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setPermissionGroup.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/setPermissionGroup.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,EACL,qBAAqB,EACrB,oBAAoB,EAEpB,SAAS,EACV,uBAAmB;AACpB,OAAO,EAEL,QAAQ,EACR,wBAAwB,EAGzB,oBAAgB;AACjB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"setPermissionGroup.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/setPermissionGroup.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,EACL,qBAAqB,EACrB,oBAAoB,EAEpB,SAAS,EACV,uBAAmB;AACpB,OAAO,EAEL,QAAQ,EACR,wBAAwB,EAGzB,oBAAgB;AACjB,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,6BAAyB;AAWrF;;GAEG;AACH,oBAAY,MAAM,GAAG,wBAAwB,GAAG;IAC9C,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,KAAK,CAAC;CACd;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,qBAAqB,GAAG,oBAAoB,EAAE,OAAO,CAAC,EAC9E,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,yBAAyB,CAAC,qBAAqB,GAAG,oBAAoB,CAAC,CAAC,CAiGlF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,qBAAqB,GAAG,oBAAoB,EAAE,OAAO,CAAC,GAC7E,sBAAsB,CAWxB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,qBAAqB,GAAG,oBAAoB,EAAE,OAAO,CAAC,EAC9E,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,GAC3B,OAAO,CAMT;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAO,UACpC,MAAM,EACN,qBAAqB,GAAG,oBAAoB,EAC5C,OAAO,CACsE,CAAC"}
|
|
@@ -60,15 +60,16 @@ function prepareSetPermissionGroup(args) {
|
|
|
60
60
|
}
|
|
61
61
|
existingGroup = yield (0, utils_1.getGroupFromPermissions)(asset, transactions);
|
|
62
62
|
if (!existingGroup) {
|
|
63
|
-
|
|
63
|
+
const [newGroup] = this.addTransaction({
|
|
64
64
|
transaction: externalAgents.createAndChangeCustomGroup,
|
|
65
|
+
resolvers: [(0, utils_1.createCreateGroupResolver)(context)],
|
|
65
66
|
args: [
|
|
66
67
|
rawTicker,
|
|
67
68
|
(0, conversion_1.transactionPermissionsToExtrinsicPermissions)(transactions, context),
|
|
68
69
|
rawIdentityId,
|
|
69
70
|
],
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
});
|
|
72
|
+
return newGroup;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
else {
|
|
@@ -80,7 +81,7 @@ function prepareSetPermissionGroup(args) {
|
|
|
80
81
|
message: 'The Agent is already part of this permission group',
|
|
81
82
|
});
|
|
82
83
|
}
|
|
83
|
-
|
|
84
|
+
this.addTransaction({
|
|
84
85
|
transaction: externalAgents.changeGroup,
|
|
85
86
|
args: [
|
|
86
87
|
rawTicker,
|
|
@@ -89,8 +90,8 @@ function prepareSetPermissionGroup(args) {
|
|
|
89
90
|
? { custom: existingGroup.id }
|
|
90
91
|
: existingGroup.type, context),
|
|
91
92
|
],
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
});
|
|
94
|
+
return existingGroup;
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
97
|
exports.prepareSetPermissionGroup = prepareSetPermissionGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setPermissionGroup.js","sourceRoot":"","sources":["../../../src/api/procedures/setPermissionGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAIgC;AAChC,6CAMoB;AACpB,uCAMiB;AAEjB,uCAAmC;AACnC,uDAM4B;AAC5B,mDAA2C;AAgB3C;;GAEG;AACH,SAAsB,yBAAyB,CAE7C,IAAY;;
|
|
1
|
+
{"version":3,"file":"setPermissionGroup.js","sourceRoot":"","sources":["../../../src/api/procedures/setPermissionGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAIgC;AAChC,6CAMoB;AACpB,uCAMiB;AAEjB,uCAAmC;AACnC,uDAM4B;AAC5B,mDAA2C;AAgB3C;;GAEG;AACH,SAAsB,yBAAyB,CAE7C,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EACX,EAAE,EAAE,EAAE,cAAc,EAAE,GACvB,GACF,EACD,OAAO,EACP,OAAO,EAAE,EAAE,KAAK,EAAE,GACnB,GAAG,IAAI,CAAC;QAET,MAAM,E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AAgB;IAG9B,MAAM,EACJ,OAAO,EAAE,EAAE,KAAK,EAAE,GACnB,GAAG,IAAI,CAAC;IACT,OAAO;QACL,WAAW,EAAE;YACX,YAAY,EAAE,CAAC,cAAM,CAAC,cAAc,CAAC,WAAW,CAAC;YACjD,MAAM,EAAE,CAAC,KAAK,CAAC;YACf,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC;AAbD,4CAaC;AAED;;GAEG;AACH,SAAgB,cAAc,CAE5B,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAU;IAE5B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEzB,OAAO;QACL,KAAK,EAAE,IAAA,kBAAO,EAAC,KAAK,EAAE,OAAO,CAAC;KAC/B,CAAC;AACJ,CAAC;AATD,wCASC;AAED;;GAEG;AACI,MAAM,kBAAkB,GAAG,GAIhC,EAAE,CAAC,IAAI,oBAAS,CAAC,yBAAyB,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAJnE,QAAA,kBAAkB,sBAIiD"}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
2
|
import { TransferCondition } from "../../polkadot/types";
|
|
3
3
|
import { SetTransferRestrictionsParams } from "../entities/Asset/TransferRestrictions/TransferRestrictionBase";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { BatchTransactionSpec, ProcedureAuthorization } from "../../types/internal";
|
|
4
|
+
import { Procedure } from "../../internal";
|
|
5
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
7
6
|
/**
|
|
8
7
|
* @hidden
|
|
9
8
|
*/
|
|
10
|
-
declare type ClaimKey = StatClaimType | 'None';
|
|
11
|
-
declare type ExemptionRecords = Record<ClaimKey, Identity[]>;
|
|
12
9
|
export interface Storage {
|
|
13
10
|
currentRestrictions: TransferCondition[];
|
|
14
|
-
currentExemptions: ExemptionRecords;
|
|
15
11
|
occupiedSlots: BigNumber;
|
|
16
12
|
}
|
|
17
13
|
/**
|
|
18
14
|
* @hidden
|
|
19
15
|
*/
|
|
20
|
-
export declare function prepareSetTransferRestrictions(this: Procedure<SetTransferRestrictionsParams, BigNumber, Storage>, args: SetTransferRestrictionsParams): Promise<
|
|
16
|
+
export declare function prepareSetTransferRestrictions(this: Procedure<SetTransferRestrictionsParams, BigNumber, Storage>, args: SetTransferRestrictionsParams): Promise<BigNumber>;
|
|
21
17
|
/**
|
|
22
18
|
* @hidden
|
|
23
19
|
*/
|
|
@@ -30,5 +26,4 @@ export declare function prepareStorage(this: Procedure<SetTransferRestrictionsPa
|
|
|
30
26
|
* @hidden
|
|
31
27
|
*/
|
|
32
28
|
export declare const setTransferRestrictions: () => Procedure<SetTransferRestrictionsParams, BigNumber, Storage>;
|
|
33
|
-
export {};
|
|
34
29
|
//# sourceMappingURL=setTransferRestrictions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setTransferRestrictions.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/setTransferRestrictions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setTransferRestrictions.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/setTransferRestrictions.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,6BAA6B;AAEzD,OAAO,EAAE,6BAA6B,EAAE,uEAA0E;AAClH,OAAO,EAA2C,SAAS,EAAE,uBAAmB;AAehF,OAAO,EAAE,sBAAsB,EAAoB,6BAAyB;AAmB5E;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;IACzC,aAAa,EAAE,SAAS,CAAC;CAC1B;AA2DD;;GAEG;AACH,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,SAAS,CAAC,6BAA6B,EAAE,SAAS,EAAE,OAAO,CAAC,EAClE,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,SAAS,CAAC,CAkEpB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,6BAA6B,EAAE,SAAS,EAAE,OAAO,CAAC,EAClE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,6BAA6B,GACtD,sBAAsB,CAexB;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,SAAS,CAAC,6BAA6B,EAAE,SAAS,EAAE,OAAO,CAAC,EAClE,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,OAAO,CAAC,CA0FlB;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,UACzC,6BAA6B,EAC7B,SAAS,EACT,OAAO,CAC2E,CAAC"}
|
|
@@ -14,106 +14,61 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.setTransferRestrictions = exports.prepareStorage = exports.getAuthorization = exports.prepareSetTransferRestrictions = void 0;
|
|
16
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
17
|
-
const lodash_1 = require("lodash");
|
|
18
17
|
const internal_1 = require("../../internal");
|
|
19
18
|
const types_1 = require("../../types");
|
|
19
|
+
const internal_2 = require("../../types/internal");
|
|
20
20
|
const conversion_1 = require("../../utils/conversion");
|
|
21
|
-
const
|
|
22
|
-
const newExemptionRecord = () => ({
|
|
23
|
-
Accredited: [],
|
|
24
|
-
Affiliate: [],
|
|
25
|
-
Jurisdiction: [],
|
|
26
|
-
None: [],
|
|
27
|
-
});
|
|
21
|
+
const internal_3 = require("../../utils/internal");
|
|
28
22
|
/**
|
|
29
23
|
* @hidden
|
|
30
|
-
* @param toInsertId - Identity to insert into the exemption records
|
|
31
|
-
* @param exemptionRecords - records that will be mutated if the Identity should be added
|
|
32
|
-
* @param claimType - type of Claim the Identity is exempt from
|
|
33
|
-
* @param filterSet - set of Identities that should not be added into exemption records if given
|
|
34
24
|
*/
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
exemptionRecords[claimType].push(toInsertId);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*
|
|
44
|
-
* Calculates the smallest change needed to get to the requested state from the current state.
|
|
45
|
-
* While clearing and building the restrictions would be simpler, it would be inefficient use of gas fees
|
|
46
|
-
*/
|
|
47
|
-
function transformInput(inputRestrictions, currentRestrictions, currentExemptions, type, context) {
|
|
48
|
-
const toSetExemptions = newExemptionRecord();
|
|
49
|
-
const toRemoveExemptions = newExemptionRecord();
|
|
50
|
-
let needDifferentConditions = inputRestrictions.length !== currentRestrictions.length;
|
|
25
|
+
function transformRestrictions(restrictions, currentRestrictions, type, context) {
|
|
26
|
+
const exemptions = [];
|
|
27
|
+
let someDifference = restrictions.length !== currentRestrictions.length;
|
|
51
28
|
const conditions = [];
|
|
52
|
-
|
|
53
|
-
// for each restriction check if we need to make a condition and track all exemptions
|
|
54
|
-
inputRestrictions.forEach(restriction => {
|
|
55
|
-
var _a;
|
|
29
|
+
restrictions.forEach(r => {
|
|
56
30
|
let value;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
value = restriction.count;
|
|
31
|
+
if ('count' in r) {
|
|
32
|
+
value = r.count;
|
|
60
33
|
}
|
|
61
|
-
else if ('percentage' in
|
|
62
|
-
value =
|
|
34
|
+
else if ('percentage' in r) {
|
|
35
|
+
value = r.percentage;
|
|
63
36
|
}
|
|
64
37
|
else {
|
|
65
|
-
value =
|
|
66
|
-
claimType = restriction.claim.type;
|
|
38
|
+
value = r;
|
|
67
39
|
}
|
|
68
40
|
const condition = { type, value };
|
|
69
|
-
const compareConditions = (transferCondition) => (0,
|
|
70
|
-
if (!
|
|
71
|
-
|
|
41
|
+
const compareConditions = (transferCondition) => (0, internal_3.compareTransferRestrictionToInput)(transferCondition, condition);
|
|
42
|
+
if (!someDifference) {
|
|
43
|
+
someDifference = ![...currentRestrictions].find(compareConditions);
|
|
72
44
|
}
|
|
73
45
|
const rawCondition = (0, conversion_1.transferRestrictionToPolymeshTransferCondition)(condition, context);
|
|
46
|
+
if (r.exemptedIdentities) {
|
|
47
|
+
r.exemptedIdentities.forEach(e => {
|
|
48
|
+
exemptions.push(e);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
74
51
|
conditions.push(rawCondition);
|
|
75
|
-
(_a = restriction.exemptedIdentities) === null || _a === void 0 ? void 0 : _a.forEach(exemption => {
|
|
76
|
-
const key = claimType || 'None';
|
|
77
|
-
console.log('claimType in exempted loop', claimType, 'key: ', key);
|
|
78
|
-
const id = (0, internal_2.asIdentity)(exemption, context);
|
|
79
|
-
addExemptionIfNotPresent(id, inputExemptions, key);
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
// calculate exemptions to add — for each input exemption check if it already exists
|
|
83
|
-
(0, lodash_1.forEach)(inputExemptions, (toAddIds, cType) => {
|
|
84
|
-
const key = cType;
|
|
85
|
-
const currentIds = currentExemptions[key];
|
|
86
|
-
toAddIds.forEach(id => {
|
|
87
|
-
addExemptionIfNotPresent(id, toSetExemptions, key, currentIds);
|
|
88
|
-
});
|
|
89
52
|
});
|
|
90
|
-
|
|
91
|
-
(0, lodash_1.forEach)(currentExemptions, (currentIds, cType) => {
|
|
92
|
-
const key = cType;
|
|
93
|
-
const given = inputExemptions[key];
|
|
94
|
-
currentIds.forEach(id => {
|
|
95
|
-
addExemptionIfNotPresent(id, toRemoveExemptions, key, given);
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
const sizeOf = (obj) => (0, lodash_1.flatten)((0, lodash_1.entries)(obj).map(([, identities]) => identities)).length;
|
|
99
|
-
const needDifferentExemptions = sizeOf(toSetExemptions) > 0 || sizeOf(toRemoveExemptions) > 0;
|
|
100
|
-
if (!needDifferentConditions && !needDifferentExemptions) {
|
|
53
|
+
if (!someDifference) {
|
|
101
54
|
throw new internal_1.PolymeshError({
|
|
102
55
|
code: types_1.ErrorCode.NoDataChange,
|
|
103
|
-
message:
|
|
56
|
+
message: restrictions.length
|
|
57
|
+
? 'The supplied restrictions are already in place'
|
|
58
|
+
: 'There are no restrictions to remove',
|
|
104
59
|
});
|
|
105
60
|
}
|
|
106
|
-
return
|
|
61
|
+
return [conditions, exemptions];
|
|
107
62
|
}
|
|
108
63
|
/**
|
|
109
64
|
* @hidden
|
|
110
65
|
*/
|
|
111
66
|
function prepareSetTransferRestrictions(args) {
|
|
112
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
-
const { context: { polymeshApi: { tx: { statistics }, consts, }, }, storage: { currentRestrictions, occupiedSlots
|
|
68
|
+
const { context: { polymeshApi: { tx: { statistics }, consts, }, }, storage: { currentRestrictions, occupiedSlots }, context, } = this;
|
|
114
69
|
const { restrictions: { length: newRestrictionAmount }, restrictions, type, ticker, } = args;
|
|
115
70
|
const tickerKey = (0, conversion_1.stringToTickerKey)(ticker, context);
|
|
116
|
-
const
|
|
71
|
+
const [conditions, exemptions] = transformRestrictions(restrictions, currentRestrictions, type, context);
|
|
117
72
|
const maxTransferConditions = (0, conversion_1.u32ToBigNumber)(consts.statistics.maxTransferConditionsPerAsset);
|
|
118
73
|
const finalCount = occupiedSlots.plus(newRestrictionAmount);
|
|
119
74
|
if (finalCount.gte(maxTransferConditions)) {
|
|
@@ -126,30 +81,26 @@ function prepareSetTransferRestrictions(args) {
|
|
|
126
81
|
});
|
|
127
82
|
}
|
|
128
83
|
const transactions = [];
|
|
129
|
-
const op =
|
|
130
|
-
|
|
84
|
+
const op = type === types_1.TransferRestrictionType.Count
|
|
85
|
+
? (0, conversion_1.statisticsOpTypeToStatOpType)(internal_2.StatisticsOpType.Count, context)
|
|
86
|
+
: (0, conversion_1.statisticsOpTypeToStatOpType)(internal_2.StatisticsOpType.Balance, context);
|
|
87
|
+
transactions.push((0, internal_3.checkTxType)({
|
|
131
88
|
transaction: statistics.setAssetTransferCompliance,
|
|
132
89
|
args: [tickerKey, (0, conversion_1.complianceConditionsToBtreeSet)(conditions, context)],
|
|
133
90
|
}));
|
|
134
|
-
|
|
135
|
-
(0,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}));
|
|
148
|
-
});
|
|
149
|
-
};
|
|
150
|
-
pushExemptions(toSetExemptions, true);
|
|
151
|
-
pushExemptions(toRemoveExemptions, false);
|
|
152
|
-
return { transactions, resolver: finalCount };
|
|
91
|
+
if (exemptions.length) {
|
|
92
|
+
const exemptedIds = yield (0, internal_3.getExemptedIds)(exemptions, context, ticker);
|
|
93
|
+
const exemptedScopeIds = exemptedIds.map(entityId => (0, conversion_1.stringToIdentityId)(entityId, context));
|
|
94
|
+
const btreeIds = (0, conversion_1.scopeIdsToBtreeSetIdentityId)(exemptedScopeIds, context);
|
|
95
|
+
const exemptKey = (0, conversion_1.toExemptKey)(tickerKey, op);
|
|
96
|
+
transactions.push((0, internal_3.checkTxType)({
|
|
97
|
+
transaction: statistics.setEntitiesExempt,
|
|
98
|
+
feeMultiplier: new bignumber_js_1.default(exemptions.length),
|
|
99
|
+
args: [true, exemptKey, btreeIds],
|
|
100
|
+
}));
|
|
101
|
+
}
|
|
102
|
+
this.addBatchTransaction({ transactions });
|
|
103
|
+
return finalCount;
|
|
153
104
|
});
|
|
154
105
|
}
|
|
155
106
|
exports.prepareSetTransferRestrictions = prepareSetTransferRestrictions;
|
|
@@ -187,8 +138,8 @@ function prepareStorage(args) {
|
|
|
187
138
|
const { claim: { type: claimType }, issuer, } = restriction;
|
|
188
139
|
claimIssuer = { claimType, issuer };
|
|
189
140
|
}
|
|
190
|
-
const neededStat = (0,
|
|
191
|
-
(0,
|
|
141
|
+
const neededStat = (0, internal_3.neededStatTypeForRestrictionInput)({ type, claimIssuer }, context);
|
|
142
|
+
(0, internal_3.assertStatIsSet)(currentStats, neededStat);
|
|
192
143
|
});
|
|
193
144
|
const { transferRestrictions: { count, percentage, claimCount, claimPercentage }, } = new internal_1.Asset({ ticker }, context);
|
|
194
145
|
const [{ restrictions: currentCountRestrictions }, { restrictions: currentPercentageRestrictions }, { restrictions: currentClaimCountRestrictions }, { restrictions: currentClaimPercentageRestrictions },] = yield Promise.all([count.get(), percentage.get(), claimCount.get(), claimPercentage.get()]);
|
|
@@ -233,36 +184,12 @@ function prepareStorage(args) {
|
|
|
233
184
|
currentRestrictions.push(restriction);
|
|
234
185
|
});
|
|
235
186
|
}
|
|
236
|
-
const op = (0, conversion_1.transferRestrictionTypeToStatOpType)(type, context);
|
|
237
|
-
const claimTypes = type === types_1.TransferRestrictionType.Count || type === types_1.TransferRestrictionType.Percentage
|
|
238
|
-
? [undefined]
|
|
239
|
-
: [types_1.ClaimType.Accredited, types_1.ClaimType.Affiliate, types_1.ClaimType.Jurisdiction];
|
|
240
|
-
const exemptionFetchers = [];
|
|
241
|
-
claimTypes.forEach(claimType => {
|
|
242
|
-
exemptionFetchers.push(statistics.transferConditionExemptEntities.entries({
|
|
243
|
-
asset: tickerKey,
|
|
244
|
-
op,
|
|
245
|
-
claimType,
|
|
246
|
-
}));
|
|
247
|
-
});
|
|
248
|
-
const rawCurrentExemptions = (0, lodash_1.flatten)(yield Promise.all(exemptionFetchers));
|
|
249
|
-
const currentExemptions = newExemptionRecord();
|
|
250
|
-
rawCurrentExemptions.forEach(([{ args: [{ claimType: rawClaimType }, rawDid], },]) => {
|
|
251
|
-
const did = (0, conversion_1.identityIdToString)(rawDid);
|
|
252
|
-
let claimType = 'None';
|
|
253
|
-
if (rawClaimType.isSome) {
|
|
254
|
-
claimType = (0, conversion_1.meshClaimTypeToClaimType)(rawClaimType.unwrap());
|
|
255
|
-
}
|
|
256
|
-
const identity = new internal_1.Identity({ did }, context);
|
|
257
|
-
addExemptionIfNotPresent(identity, currentExemptions, claimType);
|
|
258
|
-
});
|
|
259
187
|
const transformRestriction = (restriction) => {
|
|
260
188
|
return (0, conversion_1.transferRestrictionToPolymeshTransferCondition)(restriction, context);
|
|
261
189
|
};
|
|
262
190
|
return {
|
|
263
191
|
occupiedSlots: new bignumber_js_1.default(occupiedSlots),
|
|
264
192
|
currentRestrictions: currentRestrictions.map(transformRestriction),
|
|
265
|
-
currentExemptions,
|
|
266
193
|
};
|
|
267
194
|
});
|
|
268
195
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setTransferRestrictions.js","sourceRoot":"","sources":["../../../src/api/procedures/setTransferRestrictions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"setTransferRestrictions.js","sourceRoot":"","sources":["../../../src/api/procedures/setTransferRestrictions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gEAAqC;AAIrC,6CAAgF;AAChF,uCAaiB;AACjB,mDAA4E;AAC5E,uDAS4B;AAC5B,mDAM0B;AAU1B;;GAEG;AACH,SAAS,qBAAqB,CAC5B,YAI6C,EAC7C,mBAAwC,EACxC,IAA6B,EAC7B,OAAgB;IAEhB,MAAM,UAAU,GAA0B,EAAE,CAAC;IAE7C,IAAI,cAAc,GAAG,YAAY,CAAC,MAAM,KAAK,mBAAmB,CAAC,MAAM,CAAC;IACxE,MAAM,UAAU,GAA4D,EAAE,CAAC;IAC/E,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QACvB,IAAI,KAAkF,CAAC;QACvF,IAAI,OAAO,IAAI,CAAC,EAAE;YAChB,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;SACjB;aAAM,IAAI,YAAY,IAAI,CAAC,EAAE;YAC5B,KAAK,GAAG,CAAC,CAAC,UAAU,CAAC;SACtB;aAAM;YACL,KAAK,GAAG,CAAC,CAAC;SACX;QAED,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,KAAK,EAAyB,CAAC;QAEzD,MAAM,iBAAiB,GAAG,CAAC,iBAAoC,EAAW,EAAE,CAC1E,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C,UAAU,EAAE;YACtD,6BAA6B,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;gBACpE,MAAM,WAAW,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC;gBACjE,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACxC,CAAC,CAAC,CAAC;SACJ;aAAM;YACL,kCAAkC,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;gBACzE,MAAM,WAAW,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC;gBACjE,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACxC,CAAC,CAAC,CAAC;SACJ;QAED,MAAM,oBAAoB,GAAG,CAC3B,WAAgC,EACuB,EAAE;YACzD,OAAO,IAAA,2DAA8C,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC9E,CAAC,CAAC;QACF,OAAO;YACL,aAAa,EAAE,IAAI,sBAAS,CAAC,aAAa,CAAC;YAC3C,mBAAmB,EAAE,mBAAmB,CAAC,GAAG,CAAC,oBAAoB,CAAC;SACnE,CAAC;IACJ,CAAC;CAAA;AA7FD,wCA6FC;AAED;;GAEG;AACI,MAAM,uBAAuB,GAAG,GAIrC,EAAE,CAAC,IAAI,oBAAS,CAAC,8BAA8B,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAJxE,QAAA,uBAAuB,2BAIiD"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { AuthorizationRequest, Procedure } from "../../internal";
|
|
1
|
+
import { AuthorizationRequest, PostTransactionValue, Procedure } from "../../internal";
|
|
2
2
|
import { SubsidizeAccountParams } from "../../types";
|
|
3
|
-
import { ExtrinsicParams, TransactionSpec } from "../../types/internal";
|
|
4
3
|
/**
|
|
5
4
|
* @hidden
|
|
6
5
|
*/
|
|
7
|
-
export declare function prepareSubsidizeAccount(this: Procedure<SubsidizeAccountParams, AuthorizationRequest>, args: SubsidizeAccountParams): Promise<
|
|
6
|
+
export declare function prepareSubsidizeAccount(this: Procedure<SubsidizeAccountParams, AuthorizationRequest>, args: SubsidizeAccountParams): Promise<PostTransactionValue<AuthorizationRequest>>;
|
|
8
7
|
/**
|
|
9
8
|
* @hidden
|
|
10
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsidizeAccount.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/subsidizeAccount.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"subsidizeAccount.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/subsidizeAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,oBAAoB,EAEpB,oBAAoB,EACpB,SAAS,EACV,uBAAmB;AACpB,OAAO,EAIL,sBAAsB,EAEvB,oBAAgB;AAGjB;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,SAAS,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,EAC7D,IAAI,EAAE,sBAAsB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAC,CA+DrD;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,UAAU,sBAAsB,EAAE,oBAAoB,CAOtF,CAAC"}
|
|
@@ -54,11 +54,12 @@ function prepareSubsidizeAccount(args) {
|
|
|
54
54
|
allowance,
|
|
55
55
|
},
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
const [auth] = this.addTransaction({
|
|
58
58
|
transaction: tx.relayer.setPayingKey,
|
|
59
|
-
|
|
59
|
+
resolvers: [(0, utils_1.createAuthorizationResolver)(authRequest, identity, account, null, context)],
|
|
60
60
|
args: [rawBeneficiary, rawAllowance],
|
|
61
|
-
};
|
|
61
|
+
});
|
|
62
|
+
return auth;
|
|
62
63
|
});
|
|
63
64
|
}
|
|
64
65
|
exports.prepareSubsidizeAccount = prepareSubsidizeAccount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsidizeAccount.js","sourceRoot":"","sources":["../../../src/api/procedures/subsidizeAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"subsidizeAccount.js","sourceRoot":"","sources":["../../../src/api/procedures/subsidizeAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAqE;AACrE,6CAMoB;AACpB,uCAMiB;AACjB,uDAA2F;AAE3F;;GAEG;AACH,SAAsB,uBAAuB,CAE3C,IAA4B;;QAE5B,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,GACR,GAAG,IAAI,CAAC;QAET,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAExC,IAAI,OAAgB,CAAC;QAErB,IAAI,WAAW,YAAY,kBAAO,EAAE;YAClC,OAAO,GAAG,WAAW,CAAC;SACvB;aAAM;YACL,OAAO,GAAG,IAAI,kBAAO,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;SAC1D;QAED,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;QAEhD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAEpD,MAAM,qBAAqB,GAAG,MAAM,QAAQ,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;QAEtE,MAAM,cAAc,GAAG,CAAC,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE;YAC9E,MAAM,EAAE,MAAM,EAAE,IA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YAAY,EAAE,CAAC,cAAM,CAAC,OAAO,CAAC,YAAY,CAAC;QAC3C,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,EAAE;KACf;CACF,CAAC,CAAC;AAPQ,QAAA,gBAAgB,oBAOxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
2
|
import { Offering, Procedure } from "../../internal";
|
|
3
|
-
import {
|
|
3
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
4
4
|
export interface ToggleFreezeOfferingParams {
|
|
5
5
|
id: BigNumber;
|
|
6
6
|
freeze: boolean;
|
|
@@ -9,7 +9,7 @@ export interface ToggleFreezeOfferingParams {
|
|
|
9
9
|
/**
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
|
-
export declare function prepareToggleFreezeOffering(this: Procedure<ToggleFreezeOfferingParams, Offering>, args: ToggleFreezeOfferingParams): Promise<
|
|
12
|
+
export declare function prepareToggleFreezeOffering(this: Procedure<ToggleFreezeOfferingParams, Offering>, args: ToggleFreezeOfferingParams): Promise<Offering>;
|
|
13
13
|
/**
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggleFreezeOffering.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/toggleFreezeOffering.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAAS,QAAQ,EAAiB,SAAS,EAAE,uBAAmB;AAEvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"toggleFreezeOffering.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/toggleFreezeOffering.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAAS,QAAQ,EAAiB,SAAS,EAAE,uBAAmB;AAEvE,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAG1D,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,SAAS,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,SAAS,CAAC,0BAA0B,EAAE,QAAQ,CAAC,EACrD,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,QAAQ,CAAC,CA6DnB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,0BAA0B,EAAE,QAAQ,CAAC,EACrD,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,0BAA0B,GAC7C,sBAAsB,CAQxB;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAO,UAAU,0BAA0B,EAAE,QAAQ,CACxB,CAAC"}
|
|
@@ -37,29 +37,30 @@ function prepareToggleFreezeOffering(args) {
|
|
|
37
37
|
message: 'The Offering is already frozen',
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
this.addTransaction({
|
|
41
41
|
transaction: txSto.freezeFundraiser,
|
|
42
42
|
args: [rawTicker, rawId],
|
|
43
|
-
resolver: offering,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
if ([types_1.OfferingSaleStatus.Closed, types_1.OfferingSaleStatus.ClosedEarly].includes(sale)) {
|
|
47
|
-
throw new internal_1.PolymeshError({
|
|
48
|
-
code: types_1.ErrorCode.UnmetPrerequisite,
|
|
49
|
-
message: 'The Offering is already closed',
|
|
50
43
|
});
|
|
51
44
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
else {
|
|
46
|
+
if ([types_1.OfferingSaleStatus.Closed, types_1.OfferingSaleStatus.ClosedEarly].includes(sale)) {
|
|
47
|
+
throw new internal_1.PolymeshError({
|
|
48
|
+
code: types_1.ErrorCode.UnmetPrerequisite,
|
|
49
|
+
message: 'The Offering is already closed',
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (sale !== types_1.OfferingSaleStatus.Frozen) {
|
|
53
|
+
throw new internal_1.PolymeshError({
|
|
54
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
55
|
+
message: 'The Offering is already unfrozen',
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
this.addTransaction({
|
|
59
|
+
transaction: txSto.unfreezeFundraiser,
|
|
60
|
+
args: [rawTicker, rawId],
|
|
56
61
|
});
|
|
57
62
|
}
|
|
58
|
-
return
|
|
59
|
-
transaction: txSto.unfreezeFundraiser,
|
|
60
|
-
args: [rawTicker, rawId],
|
|
61
|
-
resolver: offering,
|
|
62
|
-
};
|
|
63
|
+
return offering;
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
66
|
exports.prepareToggleFreezeOffering = prepareToggleFreezeOffering;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggleFreezeOffering.js","sourceRoot":"","sources":["../../../src/api/procedures/toggleFreezeOffering.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,6CAAuE;AACvE,uCAAsF;AAEtF,uDAAoE;AAQpE;;GAEG;AACH,SAAsB,2BAA2B,CAE/C,IAAgC;;
|
|
1
|
+
{"version":3,"file":"toggleFreezeOffering.js","sourceRoot":"","sources":["../../../src/api/procedures/toggleFreezeOffering.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,6CAAuE;AACvE,uCAAsF;AAEtF,uDAAoE;AAQpE;;GAEG;AACH,SAAsB,2BAA2B,CAE/C,IAAgC;;QAEhC,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EACX,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,GACnB,GACF,EACD,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAEpC,MAAM,SAAS,GAAG,IAAA,2BAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC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,CAAC,cAAc,CAAC;gBAClB,WAAW,EAAE,KAAK,CAAC,kBAAkB;gBACrC,IAAI,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;aACzB,CAAC,CAAC;SACJ;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AAhED,kEAgEC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAE9B,EAAE,MAAM,EAAE,MAAM,EAA8B;IAE9C,OAAO;QACL,WAAW,EAAE;YACX,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,cAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,cAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC;YACpF,MAAM,EAAE,CAAC,IAAI,gBAAK,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC;AAXD,4CAWC;AAED;;GAEG;AACI,MAAM,oBAAoB,GAAG,GAAoD,EAAE,CACxF,IAAI,oBAAS,CAAC,2BAA2B,EAAE,gBAAgB,CAAC,CAAC;AADlD,QAAA,oBAAoB,wBAC8B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Procedure } from "../../internal";
|
|
2
|
-
import {
|
|
2
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
3
3
|
export interface ToggleFreezeSecondaryAccountsParams {
|
|
4
4
|
freeze: boolean;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
|
-
export declare function prepareToggleFreezeSecondaryAccounts(this: Procedure<ToggleFreezeSecondaryAccountsParams, void>, args: ToggleFreezeSecondaryAccountsParams): Promise<
|
|
9
|
+
export declare function prepareToggleFreezeSecondaryAccounts(this: Procedure<ToggleFreezeSecondaryAccountsParams, void>, args: ToggleFreezeSecondaryAccountsParams): Promise<void>;
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggleFreezeSecondaryAccounts.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/toggleFreezeSecondaryAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,uBAAmB;AAEtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"toggleFreezeSecondaryAccounts.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/toggleFreezeSecondaryAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,uBAAmB;AAEtD,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAE1D,MAAM,WAAW,mCAAmC;IAClD,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,oCAAoC,CACxD,IAAI,EAAE,SAAS,CAAC,mCAAmC,EAAE,IAAI,CAAC,EAC1D,IAAI,EAAE,mCAAmC,GACxC,OAAO,CAAC,IAAI,CAAC,CAkCf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,mCAAmC,EAAE,IAAI,CAAC,EAC1D,EAAE,MAAM,EAAE,EAAE,mCAAmC,GAC9C,sBAAsB,CAUxB;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,QAAO,UAC/C,mCAAmC,EACnC,IAAI,CACoE,CAAC"}
|