@polymeshassociation/polymesh-sdk 25.1.1 → 26.0.0-alpha.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 +32 -4
- package/api/client/Assets.d.ts +15 -1
- package/api/client/Assets.d.ts.map +1 -1
- package/api/client/Assets.js +118 -52
- package/api/client/Assets.js.map +1 -1
- package/api/client/Claims.d.ts +1 -1
- package/api/client/Claims.d.ts.map +1 -1
- package/api/client/Claims.js +7 -5
- package/api/client/Claims.js.map +1 -1
- package/api/client/Network.d.ts +2 -2
- package/api/client/Network.d.ts.map +1 -1
- package/api/client/Network.js +4 -3
- package/api/client/Network.js.map +1 -1
- package/api/client/Polymesh.d.ts.map +1 -1
- package/api/client/Polymesh.js +5 -3
- package/api/client/Polymesh.js.map +1 -1
- package/api/client/types.d.ts +2 -0
- package/api/client/types.d.ts.map +1 -1
- package/api/client/types.js.map +1 -1
- package/api/entities/Account/MultiSig/index.d.ts +26 -2
- package/api/entities/Account/MultiSig/index.d.ts.map +1 -1
- package/api/entities/Account/MultiSig/index.js +97 -18
- package/api/entities/Account/MultiSig/index.js.map +1 -1
- package/api/entities/Account/MultiSig/types.d.ts +2 -0
- package/api/entities/Account/MultiSig/types.d.ts.map +1 -1
- package/api/entities/Account/index.d.ts +4 -0
- package/api/entities/Account/index.d.ts.map +1 -1
- package/api/entities/Account/index.js +17 -0
- package/api/entities/Account/index.js.map +1 -1
- package/api/entities/Asset/Base/BaseAsset.d.ts +17 -4
- package/api/entities/Asset/Base/BaseAsset.d.ts.map +1 -1
- package/api/entities/Asset/Base/BaseAsset.js +79 -43
- package/api/entities/Asset/Base/BaseAsset.js.map +1 -1
- package/api/entities/Asset/Base/Compliance/Requirements.d.ts.map +1 -1
- package/api/entities/Asset/Base/Compliance/Requirements.js +16 -17
- package/api/entities/Asset/Base/Compliance/Requirements.js.map +1 -1
- package/api/entities/Asset/Base/Compliance/TrustedClaimIssuers.d.ts.map +1 -1
- package/api/entities/Asset/Base/Compliance/TrustedClaimIssuers.js +8 -9
- package/api/entities/Asset/Base/Compliance/TrustedClaimIssuers.js.map +1 -1
- package/api/entities/Asset/Base/Documents/index.d.ts.map +1 -1
- package/api/entities/Asset/Base/Documents/index.js +4 -4
- package/api/entities/Asset/Base/Documents/index.js.map +1 -1
- package/api/entities/Asset/Base/Metadata/index.d.ts.map +1 -1
- package/api/entities/Asset/Base/Metadata/index.js +25 -21
- package/api/entities/Asset/Base/Metadata/index.js.map +1 -1
- package/api/entities/Asset/Base/Permissions/index.d.ts.map +1 -1
- package/api/entities/Asset/Base/Permissions/index.js +15 -14
- package/api/entities/Asset/Base/Permissions/index.js.map +1 -1
- package/api/entities/Asset/Base/Settlements/index.d.ts.map +1 -1
- package/api/entities/Asset/Base/Settlements/index.js +42 -23
- package/api/entities/Asset/Base/Settlements/index.js.map +1 -1
- package/api/entities/Asset/Fungible/AssetHolders/index.js +3 -3
- package/api/entities/Asset/Fungible/AssetHolders/index.js.map +1 -1
- package/api/entities/Asset/Fungible/Checkpoints/Schedules.d.ts.map +1 -1
- package/api/entities/Asset/Fungible/Checkpoints/Schedules.js +8 -9
- package/api/entities/Asset/Fungible/Checkpoints/Schedules.js.map +1 -1
- package/api/entities/Asset/Fungible/Checkpoints/index.d.ts.map +1 -1
- package/api/entities/Asset/Fungible/Checkpoints/index.js +8 -9
- package/api/entities/Asset/Fungible/Checkpoints/index.js.map +1 -1
- package/api/entities/Asset/Fungible/CorporateActions/Distributions.d.ts.map +1 -1
- package/api/entities/Asset/Fungible/CorporateActions/Distributions.js +6 -8
- package/api/entities/Asset/Fungible/CorporateActions/Distributions.js.map +1 -1
- package/api/entities/Asset/Fungible/CorporateActions/index.d.ts.map +1 -1
- package/api/entities/Asset/Fungible/CorporateActions/index.js +10 -10
- package/api/entities/Asset/Fungible/CorporateActions/index.js.map +1 -1
- package/api/entities/Asset/Fungible/Issuance/index.d.ts.map +1 -1
- package/api/entities/Asset/Fungible/Issuance/index.js +1 -2
- package/api/entities/Asset/Fungible/Issuance/index.js.map +1 -1
- package/api/entities/Asset/Fungible/Offerings/index.d.ts.map +1 -1
- package/api/entities/Asset/Fungible/Offerings/index.js +8 -9
- package/api/entities/Asset/Fungible/Offerings/index.js.map +1 -1
- package/api/entities/Asset/Fungible/TransferRestrictions/TransferRestrictionBase.d.ts +1 -1
- package/api/entities/Asset/Fungible/TransferRestrictions/TransferRestrictionBase.d.ts.map +1 -1
- package/api/entities/Asset/Fungible/TransferRestrictions/TransferRestrictionBase.js +22 -28
- package/api/entities/Asset/Fungible/TransferRestrictions/TransferRestrictionBase.js.map +1 -1
- package/api/entities/Asset/Fungible/index.d.ts.map +1 -1
- package/api/entities/Asset/Fungible/index.js +30 -22
- package/api/entities/Asset/Fungible/index.js.map +1 -1
- package/api/entities/Asset/NonFungible/AssetHolders/index.js +3 -3
- package/api/entities/Asset/NonFungible/AssetHolders/index.js.map +1 -1
- package/api/entities/Asset/NonFungible/Nft.d.ts +1 -1
- package/api/entities/Asset/NonFungible/Nft.d.ts.map +1 -1
- package/api/entities/Asset/NonFungible/Nft.js +25 -19
- package/api/entities/Asset/NonFungible/Nft.js.map +1 -1
- package/api/entities/Asset/NonFungible/NftCollection.d.ts.map +1 -1
- package/api/entities/Asset/NonFungible/NftCollection.js +43 -30
- package/api/entities/Asset/NonFungible/NftCollection.js.map +1 -1
- package/api/entities/Asset/types.d.ts +13 -5
- package/api/entities/Asset/types.d.ts.map +1 -1
- package/api/entities/Asset/types.js +4 -0
- package/api/entities/Asset/types.js.map +1 -1
- package/api/entities/Checkpoint.d.ts +5 -1
- package/api/entities/Checkpoint.d.ts.map +1 -1
- package/api/entities/Checkpoint.js +24 -20
- package/api/entities/Checkpoint.js.map +1 -1
- package/api/entities/CheckpointSchedule/index.d.ts +5 -1
- package/api/entities/CheckpointSchedule/index.d.ts.map +1 -1
- package/api/entities/CheckpointSchedule/index.js +12 -11
- package/api/entities/CheckpointSchedule/index.js.map +1 -1
- package/api/entities/CorporateAction.d.ts +5 -1
- package/api/entities/CorporateAction.d.ts.map +1 -1
- package/api/entities/CorporateAction.js.map +1 -1
- package/api/entities/CorporateActionBase/index.d.ts +5 -1
- package/api/entities/CorporateActionBase/index.d.ts.map +1 -1
- package/api/entities/CorporateActionBase/index.js +21 -15
- package/api/entities/CorporateActionBase/index.js.map +1 -1
- package/api/entities/CustomPermissionGroup.d.ts +5 -1
- package/api/entities/CustomPermissionGroup.d.ts.map +1 -1
- package/api/entities/CustomPermissionGroup.js +10 -8
- package/api/entities/CustomPermissionGroup.js.map +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.d.ts +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.d.ts.map +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.js +9 -9
- package/api/entities/DefaultTrustedClaimIssuer.js.map +1 -1
- package/api/entities/DividendDistribution/index.d.ts +1 -1
- package/api/entities/DividendDistribution/index.d.ts.map +1 -1
- package/api/entities/DividendDistribution/index.js +10 -10
- package/api/entities/DividendDistribution/index.js.map +1 -1
- package/api/entities/Identity/AssetPermissions.d.ts.map +1 -1
- package/api/entities/Identity/AssetPermissions.js +11 -11
- package/api/entities/Identity/AssetPermissions.js.map +1 -1
- package/api/entities/Identity/Portfolios.d.ts +4 -0
- package/api/entities/Identity/Portfolios.d.ts.map +1 -1
- package/api/entities/Identity/Portfolios.js +4 -24
- package/api/entities/Identity/Portfolios.js.map +1 -1
- package/api/entities/Identity/index.d.ts +10 -1
- package/api/entities/Identity/index.d.ts.map +1 -1
- package/api/entities/Identity/index.js +111 -55
- package/api/entities/Identity/index.js.map +1 -1
- package/api/entities/Instruction/index.d.ts.map +1 -1
- package/api/entities/Instruction/index.js +9 -24
- package/api/entities/Instruction/index.js.map +1 -1
- package/api/entities/Instruction/types.d.ts +5 -2
- package/api/entities/Instruction/types.d.ts.map +1 -1
- package/api/entities/Instruction/types.js.map +1 -1
- package/api/entities/KnownPermissionGroup.d.ts +5 -1
- package/api/entities/KnownPermissionGroup.d.ts.map +1 -1
- package/api/entities/KnownPermissionGroup.js +3 -2
- package/api/entities/KnownPermissionGroup.js.map +1 -1
- package/api/entities/MetadataEntry/index.d.ts +5 -1
- package/api/entities/MetadataEntry/index.d.ts.map +1 -1
- package/api/entities/MetadataEntry/index.js +16 -15
- package/api/entities/MetadataEntry/index.js.map +1 -1
- package/api/entities/MultiSigProposal/index.d.ts.map +1 -1
- package/api/entities/MultiSigProposal/index.js +87 -35
- package/api/entities/MultiSigProposal/index.js.map +1 -1
- package/api/entities/Offering/index.d.ts +5 -1
- package/api/entities/Offering/index.d.ts.map +1 -1
- package/api/entities/Offering/index.js +24 -18
- package/api/entities/Offering/index.js.map +1 -1
- package/api/entities/PermissionGroup.d.ts +3 -3
- package/api/entities/PermissionGroup.d.ts.map +1 -1
- package/api/entities/PermissionGroup.js +2 -2
- package/api/entities/PermissionGroup.js.map +1 -1
- package/api/entities/Portfolio/index.d.ts +4 -0
- package/api/entities/Portfolio/index.d.ts.map +1 -1
- package/api/entities/Portfolio/index.js +30 -55
- package/api/entities/Portfolio/index.js.map +1 -1
- package/api/entities/TickerReservation/index.d.ts +1 -2
- package/api/entities/TickerReservation/index.d.ts.map +1 -1
- package/api/entities/TickerReservation/index.js +43 -12
- package/api/entities/TickerReservation/index.js.map +1 -1
- package/api/entities/TickerReservation/types.d.ts +10 -3
- package/api/entities/TickerReservation/types.d.ts.map +1 -1
- package/api/entities/Venue/index.d.ts.map +1 -1
- package/api/entities/Venue/index.js +5 -28
- package/api/entities/Venue/index.js.map +1 -1
- package/api/entities/types.d.ts +4 -0
- package/api/entities/types.d.ts.map +1 -1
- package/api/entities/types.js +4 -0
- package/api/entities/types.js.map +1 -1
- package/api/procedures/addAssetMediators.d.ts.map +1 -1
- package/api/procedures/addAssetMediators.js +4 -4
- package/api/procedures/addAssetMediators.js.map +1 -1
- package/api/procedures/addAssetRequirement.d.ts +3 -3
- package/api/procedures/addAssetRequirement.d.ts.map +1 -1
- package/api/procedures/addAssetRequirement.js +6 -7
- package/api/procedures/addAssetRequirement.js.map +1 -1
- package/api/procedures/addAssetStat.d.ts +1 -1
- package/api/procedures/addAssetStat.d.ts.map +1 -1
- package/api/procedures/addAssetStat.js +14 -11
- package/api/procedures/addAssetStat.js.map +1 -1
- package/api/procedures/addInstruction.d.ts +1 -1
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +65 -31
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/addTransferRestriction.d.ts +3 -3
- package/api/procedures/addTransferRestriction.d.ts.map +1 -1
- package/api/procedures/addTransferRestriction.js +12 -9
- package/api/procedures/addTransferRestriction.js.map +1 -1
- package/api/procedures/claimDividends.d.ts.map +1 -1
- package/api/procedures/claimDividends.js +2 -2
- package/api/procedures/claimDividends.js.map +1 -1
- package/api/procedures/clearMetadata.d.ts +1 -1
- package/api/procedures/clearMetadata.d.ts.map +1 -1
- package/api/procedures/clearMetadata.js +5 -7
- package/api/procedures/clearMetadata.js.map +1 -1
- package/api/procedures/closeOffering.d.ts +3 -3
- package/api/procedures/closeOffering.d.ts.map +1 -1
- package/api/procedures/closeOffering.js +6 -7
- 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 +14 -11
- package/api/procedures/configureDividendDistribution.js.map +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts.map +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js +14 -4
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js.map +1 -1
- package/api/procedures/controllerTransfer.d.ts +3 -3
- package/api/procedures/controllerTransfer.d.ts.map +1 -1
- package/api/procedures/controllerTransfer.js +4 -5
- package/api/procedures/controllerTransfer.js.map +1 -1
- package/api/procedures/createAsset.d.ts.map +1 -1
- package/api/procedures/createAsset.js +127 -41
- package/api/procedures/createAsset.js.map +1 -1
- package/api/procedures/createCheckpoint.d.ts +4 -4
- package/api/procedures/createCheckpoint.d.ts.map +1 -1
- package/api/procedures/createCheckpoint.js +8 -8
- package/api/procedures/createCheckpoint.js.map +1 -1
- package/api/procedures/createCheckpointSchedule.d.ts +4 -4
- package/api/procedures/createCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/createCheckpointSchedule.js +8 -9
- package/api/procedures/createCheckpointSchedule.js.map +1 -1
- package/api/procedures/createGroup.d.ts +5 -9
- package/api/procedures/createGroup.d.ts.map +1 -1
- package/api/procedures/createGroup.js +7 -18
- package/api/procedures/createGroup.js.map +1 -1
- package/api/procedures/createMultiSig.d.ts.map +1 -1
- package/api/procedures/createMultiSig.js +46 -14
- package/api/procedures/createMultiSig.js.map +1 -1
- package/api/procedures/createNftCollection.d.ts +8 -4
- package/api/procedures/createNftCollection.d.ts.map +1 -1
- package/api/procedures/createNftCollection.js +167 -64
- package/api/procedures/createNftCollection.js.map +1 -1
- package/api/procedures/evaluateMultiSigProposal.d.ts +1 -1
- package/api/procedures/evaluateMultiSigProposal.d.ts.map +1 -1
- package/api/procedures/evaluateMultiSigProposal.js +48 -15
- package/api/procedures/evaluateMultiSigProposal.js.map +1 -1
- package/api/procedures/executeManualInstruction.d.ts.map +1 -1
- package/api/procedures/executeManualInstruction.js +14 -3
- package/api/procedures/executeManualInstruction.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 +4 -3
- package/api/procedures/investInOffering.js.map +1 -1
- package/api/procedures/inviteExternalAgent.d.ts +4 -14
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +7 -18
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/api/procedures/issueNft.d.ts +4 -11
- package/api/procedures/issueNft.d.ts.map +1 -1
- package/api/procedures/issueNft.js +10 -21
- package/api/procedures/issueNft.js.map +1 -1
- package/api/procedures/issueTokens.d.ts +4 -11
- package/api/procedures/issueTokens.d.ts.map +1 -1
- package/api/procedures/issueTokens.js +8 -19
- package/api/procedures/issueTokens.js.map +1 -1
- package/api/procedures/joinCreator.d.ts +41 -2
- package/api/procedures/joinCreator.d.ts.map +1 -1
- package/api/procedures/joinCreator.js +11 -1
- package/api/procedures/joinCreator.js.map +1 -1
- package/api/procedures/launchOffering.d.ts +4 -4
- package/api/procedures/launchOffering.d.ts.map +1 -1
- package/api/procedures/launchOffering.js +11 -9
- package/api/procedures/launchOffering.js.map +1 -1
- package/api/procedures/linkCaDocs.d.ts +3 -3
- package/api/procedures/linkCaDocs.d.ts.map +1 -1
- package/api/procedures/linkCaDocs.js +6 -5
- package/api/procedures/linkCaDocs.js.map +1 -1
- package/api/procedures/linkTickerToAsset.d.ts +29 -0
- package/api/procedures/linkTickerToAsset.d.ts.map +1 -0
- package/api/procedures/linkTickerToAsset.js +107 -0
- package/api/procedures/linkTickerToAsset.js.map +1 -0
- package/api/procedures/modifyAsset.d.ts +3 -3
- package/api/procedures/modifyAsset.d.ts.map +1 -1
- package/api/procedures/modifyAsset.js +9 -10
- package/api/procedures/modifyAsset.js.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts +3 -3
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.js +8 -8
- package/api/procedures/modifyAssetTrustedClaimIssuers.js.map +1 -1
- package/api/procedures/modifyCaCheckpoint.d.ts +1 -1
- package/api/procedures/modifyCaCheckpoint.d.ts.map +1 -1
- package/api/procedures/modifyCaCheckpoint.js +5 -6
- package/api/procedures/modifyCaCheckpoint.js.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.d.ts +3 -3
- package/api/procedures/modifyCaDefaultConfig.d.ts.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.js +7 -8
- package/api/procedures/modifyCaDefaultConfig.js.map +1 -1
- package/api/procedures/modifyClaims.d.ts.map +1 -1
- package/api/procedures/modifyClaims.js +16 -13
- package/api/procedures/modifyClaims.js.map +1 -1
- package/api/procedures/modifyComplianceRequirement.d.ts +3 -3
- package/api/procedures/modifyComplianceRequirement.d.ts.map +1 -1
- package/api/procedures/modifyComplianceRequirement.js +7 -8
- package/api/procedures/modifyComplianceRequirement.js.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.d.ts +3 -3
- package/api/procedures/modifyCorporateActionsAgent.d.ts.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.js +4 -5
- package/api/procedures/modifyCorporateActionsAgent.js.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.js +14 -3
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -1
- package/api/procedures/modifyMultiSig.d.ts.map +1 -1
- package/api/procedures/modifyMultiSig.js +24 -10
- package/api/procedures/modifyMultiSig.js.map +1 -1
- package/api/procedures/modifyOfferingTimes.d.ts +3 -3
- package/api/procedures/modifyOfferingTimes.d.ts.map +1 -1
- package/api/procedures/modifyOfferingTimes.js +6 -7
- package/api/procedures/modifyOfferingTimes.js.map +1 -1
- package/api/procedures/moveFunds.d.ts.map +1 -1
- package/api/procedures/moveFunds.js +24 -21
- package/api/procedures/moveFunds.js.map +1 -1
- package/api/procedures/nftControllerTransfer.d.ts +3 -3
- package/api/procedures/nftControllerTransfer.d.ts.map +1 -1
- package/api/procedures/nftControllerTransfer.js +22 -10
- package/api/procedures/nftControllerTransfer.js.map +1 -1
- package/api/procedures/payDividends.js +2 -2
- package/api/procedures/payDividends.js.map +1 -1
- package/api/procedures/reclaimDividendDistributionFunds.d.ts +1 -1
- package/api/procedures/reclaimDividendDistributionFunds.d.ts.map +1 -1
- package/api/procedures/reclaimDividendDistributionFunds.js +4 -5
- package/api/procedures/reclaimDividendDistributionFunds.js.map +1 -1
- package/api/procedures/redeemNft.d.ts +3 -3
- package/api/procedures/redeemNft.d.ts.map +1 -1
- package/api/procedures/redeemNft.js +19 -9
- package/api/procedures/redeemNft.js.map +1 -1
- package/api/procedures/redeemTokens.d.ts +4 -4
- package/api/procedures/redeemTokens.d.ts.map +1 -1
- package/api/procedures/redeemTokens.js +14 -16
- package/api/procedures/redeemTokens.js.map +1 -1
- package/api/procedures/registerMetadata.d.ts +3 -3
- package/api/procedures/registerMetadata.d.ts.map +1 -1
- package/api/procedures/registerMetadata.js +9 -11
- package/api/procedures/registerMetadata.js.map +1 -1
- package/api/procedures/removeAssetMediators.d.ts.map +1 -1
- package/api/procedures/removeAssetMediators.js +4 -4
- package/api/procedures/removeAssetMediators.js.map +1 -1
- package/api/procedures/removeAssetRequirement.d.ts +3 -3
- package/api/procedures/removeAssetRequirement.d.ts.map +1 -1
- package/api/procedures/removeAssetRequirement.js +6 -6
- package/api/procedures/removeAssetRequirement.js.map +1 -1
- package/api/procedures/removeAssetStat.d.ts +1 -1
- package/api/procedures/removeAssetStat.d.ts.map +1 -1
- package/api/procedures/removeAssetStat.js +10 -8
- package/api/procedures/removeAssetStat.js.map +1 -1
- package/api/procedures/removeCheckpointSchedule.d.ts +3 -3
- package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/removeCheckpointSchedule.js +10 -13
- package/api/procedures/removeCheckpointSchedule.js.map +1 -1
- package/api/procedures/removeCorporateAction.d.ts +3 -3
- package/api/procedures/removeCorporateAction.d.ts.map +1 -1
- package/api/procedures/removeCorporateAction.js +7 -7
- package/api/procedures/removeCorporateAction.js.map +1 -1
- package/api/procedures/removeExternalAgent.d.ts +5 -15
- package/api/procedures/removeExternalAgent.d.ts.map +1 -1
- package/api/procedures/removeExternalAgent.js +7 -18
- package/api/procedures/removeExternalAgent.js.map +1 -1
- package/api/procedures/removeLocalMetadata.d.ts.map +1 -1
- package/api/procedures/removeLocalMetadata.js +16 -10
- package/api/procedures/removeLocalMetadata.js.map +1 -1
- package/api/procedures/removeMultiSigPayer.d.ts +31 -0
- package/api/procedures/removeMultiSigPayer.d.ts.map +1 -0
- package/api/procedures/removeMultiSigPayer.js +108 -0
- package/api/procedures/removeMultiSigPayer.js.map +1 -0
- package/api/procedures/reserveTicker.d.ts +1 -1
- package/api/procedures/reserveTicker.d.ts.map +1 -1
- package/api/procedures/reserveTicker.js +9 -3
- package/api/procedures/reserveTicker.js.map +1 -1
- package/api/procedures/setAssetDocuments.d.ts +4 -4
- package/api/procedures/setAssetDocuments.d.ts.map +1 -1
- package/api/procedures/setAssetDocuments.js +11 -10
- package/api/procedures/setAssetDocuments.js.map +1 -1
- package/api/procedures/setAssetRequirements.d.ts +3 -3
- package/api/procedures/setAssetRequirements.d.ts.map +1 -1
- package/api/procedures/setAssetRequirements.js +7 -8
- package/api/procedures/setAssetRequirements.js.map +1 -1
- package/api/procedures/setGroupPermissions.d.ts.map +1 -1
- package/api/procedures/setGroupPermissions.js +3 -3
- package/api/procedures/setGroupPermissions.js.map +1 -1
- package/api/procedures/setMetadata.d.ts.map +1 -1
- package/api/procedures/setMetadata.js +6 -7
- package/api/procedures/setMetadata.js.map +1 -1
- package/api/procedures/setMultiSigAdmin.d.ts +22 -0
- package/api/procedures/setMultiSigAdmin.d.ts.map +1 -0
- package/api/procedures/setMultiSigAdmin.js +114 -0
- package/api/procedures/setMultiSigAdmin.js.map +1 -0
- package/api/procedures/setPermissionGroup.d.ts +1 -1
- package/api/procedures/setPermissionGroup.d.ts.map +1 -1
- package/api/procedures/setPermissionGroup.js +9 -8
- package/api/procedures/setPermissionGroup.js.map +1 -1
- package/api/procedures/setTransferRestrictions.d.ts +1 -1
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -1
- package/api/procedures/setTransferRestrictions.js +14 -16
- package/api/procedures/setTransferRestrictions.js.map +1 -1
- package/api/procedures/setVenueFiltering.d.ts +3 -3
- package/api/procedures/setVenueFiltering.d.ts.map +1 -1
- package/api/procedures/setVenueFiltering.js +8 -9
- package/api/procedures/setVenueFiltering.js.map +1 -1
- package/api/procedures/toggleAssetPreApproval.d.ts +22 -0
- package/api/procedures/toggleAssetPreApproval.d.ts.map +1 -0
- package/api/procedures/{toggleTickerPreApproval.js → toggleAssetPreApproval.js} +21 -13
- package/api/procedures/toggleAssetPreApproval.js.map +1 -0
- package/api/procedures/toggleFreezeOffering.d.ts +3 -3
- package/api/procedures/toggleFreezeOffering.d.ts.map +1 -1
- package/api/procedures/toggleFreezeOffering.js +7 -7
- package/api/procedures/toggleFreezeOffering.js.map +1 -1
- package/api/procedures/toggleFreezeTransfers.d.ts +3 -3
- package/api/procedures/toggleFreezeTransfers.d.ts.map +1 -1
- package/api/procedures/toggleFreezeTransfers.js +7 -8
- package/api/procedures/toggleFreezeTransfers.js.map +1 -1
- package/api/procedures/togglePauseRequirements.d.ts +3 -3
- package/api/procedures/togglePauseRequirements.d.ts.map +1 -1
- package/api/procedures/togglePauseRequirements.js +6 -6
- 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 -4
- package/api/procedures/transferAssetOwnership.js.map +1 -1
- package/api/procedures/types.d.ts +37 -6
- package/api/procedures/types.d.ts.map +1 -1
- package/api/procedures/types.js.map +1 -1
- package/api/procedures/utils.d.ts +2 -2
- package/api/procedures/utils.d.ts.map +1 -1
- package/api/procedures/utils.js +2 -2
- package/api/procedures/utils.js.map +1 -1
- package/api/procedures/waivePermissions.d.ts +1 -1
- package/api/procedures/waivePermissions.d.ts.map +1 -1
- package/api/procedures/waivePermissions.js +8 -6
- package/api/procedures/waivePermissions.js.map +1 -1
- package/base/Context.d.ts +5 -4
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +26 -13
- package/base/Context.js.map +1 -1
- package/base/PolymeshTransactionBase.d.ts.map +1 -1
- package/base/PolymeshTransactionBase.js +23 -8
- package/base/PolymeshTransactionBase.js.map +1 -1
- package/base/utils.d.ts.map +1 -1
- package/base/utils.js +6 -1
- package/base/utils.js.map +1 -1
- package/generated/types.d.ts +40 -5
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +37 -1
- package/generated/types.js.map +1 -1
- package/internal.d.ts +4 -1
- package/internal.d.ts.map +1 -1
- package/internal.js +10 -4
- package/internal.js.map +1 -1
- package/middleware/queries/assets.d.ts +1 -1
- package/middleware/queries/assets.d.ts.map +1 -1
- package/middleware/queries/assets.js +5 -5
- package/middleware/queries/assets.js.map +1 -1
- package/middleware/queries/claims.js +1 -1
- package/middleware/typesV1.d.ts +5 -2
- package/middleware/typesV1.d.ts.map +1 -1
- package/middleware/typesV1.js +4 -1
- package/middleware/typesV1.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-26.0.0-alpha.1.tgz +0 -0
- package/package.json +2 -2
- package/polkadot/asset/definitions.d.ts +1 -1
- package/polkadot/asset/definitions.d.ts.map +1 -1
- package/polkadot/asset/definitions.js +12 -17
- package/polkadot/asset/definitions.js.map +1 -1
- package/polkadot/augment-api-consts.d.ts +118 -50
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +158 -238
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +565 -420
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +420 -334
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +20 -17
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-runtime.d.ts +3 -140
- package/polkadot/augment-api-runtime.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +761 -1206
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +4 -140
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/compliance/definitions.d.ts +15 -0
- package/polkadot/compliance/definitions.d.ts.map +1 -0
- package/polkadot/compliance/definitions.js +27 -0
- package/polkadot/compliance/definitions.js.map +1 -0
- package/polkadot/compliance/index.d.ts +2 -0
- package/polkadot/compliance/index.d.ts.map +1 -0
- package/polkadot/compliance/index.js +20 -0
- package/polkadot/compliance/index.js.map +1 -0
- package/polkadot/compliance/types.d.ts +2 -0
- package/polkadot/compliance/types.d.ts.map +1 -0
- package/polkadot/compliance/types.js +5 -0
- package/polkadot/compliance/types.js.map +1 -0
- package/polkadot/definitions.d.ts +1 -0
- package/polkadot/definitions.d.ts.map +1 -1
- package/polkadot/definitions.js +3 -1
- package/polkadot/definitions.js.map +1 -1
- package/polkadot/identity/definitions.d.ts +0 -9
- package/polkadot/identity/definitions.d.ts.map +1 -1
- package/polkadot/identity/definitions.js +3 -19
- package/polkadot/identity/definitions.js.map +1 -1
- package/polkadot/lookup.d.ts +793 -771
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +952 -946
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/nft/definitions.d.ts +1 -1
- package/polkadot/nft/definitions.d.ts.map +1 -1
- package/polkadot/nft/definitions.js +8 -3
- package/polkadot/nft/definitions.js.map +1 -1
- package/polkadot/polymesh/definitions.d.ts +44 -924
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +53 -1198
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +69 -914
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +25 -27
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +276 -649
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +491 -748
- package/polkadot/schema.js.map +1 -1
- package/polkadot/settlement/definitions.d.ts +2 -2
- package/polkadot/settlement/definitions.js +12 -12
- package/polkadot/settlement/definitions.js.map +1 -1
- package/polkadot/types-lookup.d.ts +1032 -1118
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/polkadot/types.d.ts +1 -0
- package/polkadot/types.d.ts.map +1 -1
- package/polkadot/types.js +1 -0
- package/polkadot/types.js.map +1 -1
- package/types/index.d.ts +3 -2
- package/types/index.d.ts.map +1 -1
- package/types/index.js +15 -15
- package/types/index.js.map +1 -1
- package/types/internal.d.ts +27 -12
- package/types/internal.d.ts.map +1 -1
- package/types/internal.js.map +1 -1
- package/utils/constants.d.ts +8 -4
- package/utils/constants.d.ts.map +1 -1
- package/utils/constants.js +9 -5
- package/utils/constants.js.map +1 -1
- package/utils/conversion.d.ts +84 -40
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +614 -344
- package/utils/conversion.js.map +1 -1
- package/utils/internal.d.ts +38 -21
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +247 -109
- package/utils/internal.js.map +1 -1
- package/utils/typeguards.d.ts.map +1 -1
- package/utils/typeguards.js +4 -2
- package/utils/typeguards.js.map +1 -1
- package/api/procedures/toggleTickerPreApproval.d.ts +0 -22
- package/api/procedures/toggleTickerPreApproval.d.ts.map +0 -1
- package/api/procedures/toggleTickerPreApproval.js.map +0 -1
- package/middleware/queries/settlementsOld.d.ts +0 -41
- package/middleware/queries/settlementsOld.d.ts.map +0 -1
- package/middleware/queries/settlementsOld.js +0 -228
- package/middleware/queries/settlementsOld.js.map +0 -1
- package/middleware/typesV6.d.ts +0 -47356
- package/middleware/typesV6.d.ts.map +0 -1
- package/middleware/typesV6.js +0 -4200
- package/middleware/typesV6.js.map +0 -1
- package/npm-package/polymeshassociation-polymesh-sdk-25.1.1.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISubmittableResult } from '@polkadot/types/types';
|
|
2
|
-
import { Context, DefaultPortfolio, DividendDistribution, NumberedPortfolio, Procedure } from "../../internal";
|
|
2
|
+
import { Context, DefaultPortfolio, DividendDistribution, FungibleAsset, NumberedPortfolio, Procedure } from "../../internal";
|
|
3
3
|
import { ConfigureDividendDistributionParams } from "../../types";
|
|
4
4
|
import { ExtrinsicParams, ProcedureAuthorization, TransactionSpec } from "../../types/internal";
|
|
5
5
|
/**
|
|
@@ -10,7 +10,7 @@ export declare const createDividendDistributionResolver: (context: Context) => (
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
export declare type Params = ConfigureDividendDistributionParams & {
|
|
13
|
-
|
|
13
|
+
asset: FungibleAsset;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* @hidden
|
|
@@ -25,7 +25,7 @@ export declare function prepareConfigureDividendDistribution(this: Procedure<Par
|
|
|
25
25
|
/**
|
|
26
26
|
* @hidden
|
|
27
27
|
*/
|
|
28
|
-
export declare function getAuthorization(this: Procedure<Params, DividendDistribution, Storage>, {
|
|
28
|
+
export declare function getAuthorization(this: Procedure<Params, DividendDistribution, Storage>, { asset }: Params): ProcedureAuthorization;
|
|
29
29
|
/**
|
|
30
30
|
* @hidden
|
|
31
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configureDividendDistribution.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/configureDividendDistribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3D,OAAO,
|
|
1
|
+
{"version":3,"file":"configureDividendDistribution.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/configureDividendDistribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3D,OAAO,EAGL,OAAO,EACP,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EAEjB,SAAS,EACV,uBAAmB;AACpB,OAAO,EACL,mCAAmC,EAKpC,oBAAgB;AACjB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,6BAAyB;AAe5F;;GAEG;AACH,eAAO,MAAM,kCAAkC,YACnC,OAAO,eACD,kBAAkB,KAAG,QAAQ,oBAAoB,CAyBhE,CAAC;AAEJ;;GAEG;AACH,oBAAY,MAAM,GAAG,mCAAmC,GAAG;IACzD,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;CACjD;AAED;;GAEG;AACH,wBAAsB,oCAAoC,CACxD,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EACtD,IAAI,EAAE,MAAM,GACX,OAAO,CACR,eAAe,CACb,oBAAoB,EACpB,eAAe,CAAC,iBAAiB,EAAE,sCAAsC,CAAC,CAC3E,CACF,CAoIA;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EACtD,EAAE,KAAK,EAAE,EAAE,MAAM,GAChB,sBAAsB,CAaxB;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EACtD,EAAE,eAAe,EAAE,EAAE,MAAM,GAC1B,OAAO,CAAC,OAAO,CAAC,CAclB;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,QAAO,UAAU,MAAM,EAAE,oBAAoB,EAAE,OAAO,CACT,CAAC"}
|
|
@@ -25,13 +25,16 @@ const internal_2 = require("../../utils/internal");
|
|
|
25
25
|
const createDividendDistributionResolver = (context) => (receipt) => __awaiter(void 0, void 0, void 0, function* () {
|
|
26
26
|
const [{ data }] = (0, internal_2.filterEventRecords)(receipt, 'capitalDistribution', 'Created');
|
|
27
27
|
const [, caId, distribution] = data;
|
|
28
|
-
const {
|
|
28
|
+
const { localId } = caId;
|
|
29
|
+
/* istanbul ignore next: this will be removed after dual version support for v6-v7 */
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
|
+
const assetId = context.isV6 ? caId.ticker : caId.assetId; // NOSONAR
|
|
29
32
|
const { corporateAction } = context.polymeshApi.query;
|
|
30
33
|
const [corpAction, details] = yield Promise.all([
|
|
31
|
-
corporateAction.corporateActions(
|
|
34
|
+
corporateAction.corporateActions(assetId, localId),
|
|
32
35
|
corporateAction.details(caId),
|
|
33
36
|
]);
|
|
34
|
-
return new internal_1.DividendDistribution(Object.assign(Object.assign({
|
|
37
|
+
return new internal_1.DividendDistribution(Object.assign(Object.assign({ assetId: (0, conversion_1.meshAssetToAssetId)(assetId, context), id: (0, conversion_1.u32ToBigNumber)(localId) }, (0, conversion_1.meshCorporateActionToCorporateActionParams)(corpAction.unwrap(), details, context)), (0, conversion_1.distributionToDividendDistributionParams)(distribution, context)), context);
|
|
35
38
|
});
|
|
36
39
|
exports.createDividendDistributionResolver = createDividendDistributionResolver;
|
|
37
40
|
/**
|
|
@@ -40,8 +43,8 @@ exports.createDividendDistributionResolver = createDividendDistributionResolver;
|
|
|
40
43
|
function prepareConfigureDividendDistribution(args) {
|
|
41
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
45
|
const { context: { polymeshApi: { tx, query }, }, context, storage: { portfolio }, } = this;
|
|
43
|
-
const {
|
|
44
|
-
if (currency ===
|
|
46
|
+
const { asset, originPortfolio = null, currency, perShare, maxAmount, paymentDate, expiryDate = null, checkpoint, targets = null, description, declarationDate = new Date(), defaultTaxWithholding = null, taxWithholdings = null, } = args;
|
|
47
|
+
if (currency === asset.id) {
|
|
45
48
|
throw new internal_1.PolymeshError({
|
|
46
49
|
code: types_1.ErrorCode.ValidationError,
|
|
47
50
|
message: 'Cannot distribute Dividends using the Asset as currency',
|
|
@@ -76,7 +79,7 @@ function prepareConfigureDividendDistribution(args) {
|
|
|
76
79
|
},
|
|
77
80
|
});
|
|
78
81
|
}
|
|
79
|
-
const checkpointValue = yield (0, internal_2.getCheckpointValue)(checkpoint,
|
|
82
|
+
const checkpointValue = yield (0, internal_2.getCheckpointValue)(checkpoint, asset, context);
|
|
80
83
|
if (!(checkpointValue instanceof internal_1.Checkpoint)) {
|
|
81
84
|
yield (0, utils_1.assertDistributionDatesValid)(checkpointValue, paymentDate, expiryDate);
|
|
82
85
|
}
|
|
@@ -101,7 +104,7 @@ function prepareConfigureDividendDistribution(args) {
|
|
|
101
104
|
}
|
|
102
105
|
const rawPortfolioNumber = originPortfolio &&
|
|
103
106
|
(0, internal_2.optionize)(conversion_1.bigNumberToU64)(originPortfolio instanceof bignumber_js_1.default ? originPortfolio : originPortfolio.id, context);
|
|
104
|
-
const rawCurrency = (0, conversion_1.
|
|
107
|
+
const rawCurrency = (0, conversion_1.assetToMeshAssetId)(new internal_1.BaseAsset({ assetId: currency }, context), context);
|
|
105
108
|
const rawPerShare = (0, conversion_1.bigNumberToBalance)(perShare, context);
|
|
106
109
|
const rawAmount = (0, conversion_1.bigNumberToBalance)(maxAmount, context);
|
|
107
110
|
const rawPaymentAt = (0, conversion_1.dateToMoment)(paymentDate, context);
|
|
@@ -111,7 +114,7 @@ function prepareConfigureDividendDistribution(args) {
|
|
|
111
114
|
resolver: (0, exports.createDividendDistributionResolver)(context),
|
|
112
115
|
args: [
|
|
113
116
|
(0, conversion_1.corporateActionParamsToMeshCorporateActionArgs)({
|
|
114
|
-
|
|
117
|
+
asset,
|
|
115
118
|
kind: types_1.CorporateActionKind.UnpredictableBenefit,
|
|
116
119
|
declarationDate,
|
|
117
120
|
checkpoint: checkpointValue,
|
|
@@ -134,13 +137,13 @@ exports.prepareConfigureDividendDistribution = prepareConfigureDividendDistribut
|
|
|
134
137
|
/**
|
|
135
138
|
* @hidden
|
|
136
139
|
*/
|
|
137
|
-
function getAuthorization({
|
|
138
|
-
const { storage: { portfolio },
|
|
140
|
+
function getAuthorization({ asset }) {
|
|
141
|
+
const { storage: { portfolio }, } = this;
|
|
139
142
|
return {
|
|
140
143
|
roles: [{ type: types_1.RoleType.PortfolioCustodian, portfolioId: (0, conversion_1.portfolioToPortfolioId)(portfolio) }],
|
|
141
144
|
permissions: {
|
|
142
145
|
transactions: [types_1.TxTags.capitalDistribution.Distribute],
|
|
143
|
-
assets: [
|
|
146
|
+
assets: [asset],
|
|
144
147
|
portfolios: [portfolio],
|
|
145
148
|
},
|
|
146
149
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configureDividendDistribution.js","sourceRoot":"","sources":["../../../src/api/procedures/configureDividendDistribution.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gEAAqC;AAErC,mCAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"configureDividendDistribution.js","sourceRoot":"","sources":["../../../src/api/procedures/configureDividendDistribution.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gEAAqC;AAErC,mCAAsE;AACtE,6CAUoB;AACpB,uCAMiB;AAEjB,uDAW4B;AAC5B,mDAAqF;AAErF;;GAEG;AACI,MAAM,kCAAkC,GAC7C,CAAC,OAAgB,EAAE,EAAE,CACrB,CAAO,OAA2B,EAAiC,EAAE;IACnE,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAA,6BAAkB,EAAC,OAAO,EAAE,qBAAqB,EAAE,SAAS,CAAC,CAAC;IACjF,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC;IACpC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEzB,qFAAqF;IACrF,8DAA8D;IAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAE,IAAY,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,UAAU;IAE9E,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC;IAEtD,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC9C,eAAe,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC;QAClD,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC;KAC9B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AAE,cAAc,CAAC,CAAC;AAD3E,QAAA,6BAA6B,iCAC8C"}
|
|
@@ -10,7 +10,7 @@ export interface ConsumeAddMultiSigSignerAuthorizationParams {
|
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
|
-
export declare function prepareConsumeAddMultiSigSignerAuthorization(this: Procedure<ConsumeAddMultiSigSignerAuthorizationParams>, args: ConsumeAddMultiSigSignerAuthorizationParams): Promise<TransactionSpec<void, ExtrinsicParams<'identity', 'removeAuthorization'>> | TransactionSpec<void, ExtrinsicParams<'multiSig', '
|
|
13
|
+
export declare function prepareConsumeAddMultiSigSignerAuthorization(this: Procedure<ConsumeAddMultiSigSignerAuthorizationParams>, args: ConsumeAddMultiSigSignerAuthorizationParams): Promise<TransactionSpec<void, ExtrinsicParams<'identity', 'removeAuthorization'>> | TransactionSpec<void, ExtrinsicParams<'multiSig', 'acceptMultisigSigner'>>>;
|
|
14
14
|
/**
|
|
15
15
|
* @hidden
|
|
16
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumeAddMultiSigSignerAuthorization.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/consumeAddMultiSigSignerAuthorization.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,oBAAoB,EAAY,SAAS,EAAE,uBAAmB;AAEhF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,6BAAyB;AAS5F;;GAEG;AACH,MAAM,WAAW,2CAA2C;IAC1D,WAAW,EAAE,oBAAoB,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,4CAA4C,CAChE,IAAI,EAAE,SAAS,CAAC,2CAA2C,CAAC,EAC5D,IAAI,EAAE,2CAA2C,GAChD,OAAO,CACN,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAC,GACzE,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"consumeAddMultiSigSignerAuthorization.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/consumeAddMultiSigSignerAuthorization.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,oBAAoB,EAAY,SAAS,EAAE,uBAAmB;AAEhF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,6BAAyB;AAS5F;;GAEG;AACH,MAAM,WAAW,2CAA2C;IAC1D,WAAW,EAAE,oBAAoB,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,4CAA4C,CAChE,IAAI,EAAE,SAAS,CAAC,2CAA2C,CAAC,EAC5D,IAAI,EAAE,2CAA2C,GAChD,OAAO,CACN,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAC,GACzE,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAC,CAC7E,CAsDA;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,SAAS,CAAC,2CAA2C,CAAC,EAC5D,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,2CAA2C,GACnE,OAAO,CAAC,sBAAsB,CAAC,CAoDjC;AAED;;GAEG;AACH,eAAO,MAAM,qCAAqC,QAC5C,UAAU,2CAA2C,CACsB,CAAC"}
|
|
@@ -19,7 +19,7 @@ const conversion_1 = require("../../utils/conversion");
|
|
|
19
19
|
*/
|
|
20
20
|
function prepareConsumeAddMultiSigSignerAuthorization(args) {
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const { context: { polymeshApi: { tx: { identity, multiSig }, }, }, context, } = this;
|
|
22
|
+
const { context: { isV6, polymeshApi: { tx: { identity, multiSig }, }, }, context, } = this;
|
|
23
23
|
const { authRequest, accept } = args;
|
|
24
24
|
const { target, authId, issuer } = authRequest;
|
|
25
25
|
const rawAuthId = (0, conversion_1.bigNumberToU64)(authId, context);
|
|
@@ -37,9 +37,19 @@ function prepareConsumeAddMultiSigSignerAuthorization(args) {
|
|
|
37
37
|
], resolver: undefined });
|
|
38
38
|
}
|
|
39
39
|
yield (0, utils_1.assertAuthorizationRequestValid)(authRequest, context);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
let transaction;
|
|
41
|
+
/* istanbul ignore if: this will be removed after dual version support for v6-v7 */
|
|
42
|
+
if (isV6) {
|
|
43
|
+
transaction =
|
|
44
|
+
target instanceof internal_1.Account
|
|
45
|
+
? // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
46
|
+
multiSig.acceptMultisigSignerAsKey // NOSONAR
|
|
47
|
+
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
|
+
multiSig.acceptMultisigSignerAsIdentity; // NOSONAR
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
transaction = multiSig.acceptMultisigSigner;
|
|
52
|
+
}
|
|
43
53
|
return { transaction, paidForBy: issuer, args: [rawAuthId], resolver: undefined };
|
|
44
54
|
});
|
|
45
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumeAddMultiSigSignerAuthorization.js","sourceRoot":"","sources":["../../../src/api/procedures/consumeAddMultiSigSignerAuthorization.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyE;AACzE,6CAAgF;AAChF,uCAAiC;AAEjC,uDAM4B;AAU5B;;GAEG;AACH,SAAsB,4CAA4C,CAEhE,IAAiD;;
|
|
1
|
+
{"version":3,"file":"consumeAddMultiSigSignerAuthorization.js","sourceRoot":"","sources":["../../../src/api/procedures/consumeAddMultiSigSignerAuthorization.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyE;AACzE,6CAAgF;AAChF,uCAAiC;AAEjC,uDAM4B;AAU5B;;GAEG;AACH,SAAsB,4CAA4C,CAEhE,IAAiD;;QAKjD,MAA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B,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;SACH;QAED,sEAAsE;QACtE,QAAQ,GAAG,QAAQ,IAAI,CAAC,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC,MAAM,CAAC,CAAA,CAAC;QAEnD,OAAO;YACL,KAAK,EACH,QAAQ;gBACR,4GAA4G;YAC9G,WAAW,EAAE,EAAE,YAAY,EAAE;SAC9B,CAAC;IACJ,CAAC;CAAA;AAvDD,4CAuDC;AAED;;GAEG;AACI,MAAM,qCAAqC,GAChD,GAA2D,EAAE,CAC3D,IAAI,oBAAS,CAAC,4CAA4C,EAAE,gBAAgB,CAAC,CAAC;AAFrE,QAAA,qCAAqC,yCAEgC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Procedure } from "../../internal";
|
|
1
|
+
import { FungibleAsset, Procedure } from "../../internal";
|
|
2
2
|
import { ControllerTransferParams } from "../../types";
|
|
3
3
|
import { ExtrinsicParams, ProcedureAuthorization, TransactionSpec } from "../../types/internal";
|
|
4
4
|
export interface Storage {
|
|
@@ -8,7 +8,7 @@ export interface Storage {
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export declare type Params = {
|
|
11
|
-
|
|
11
|
+
asset: FungibleAsset;
|
|
12
12
|
} & ControllerTransferParams;
|
|
13
13
|
/**
|
|
14
14
|
* @hidden
|
|
@@ -17,7 +17,7 @@ export declare function prepareControllerTransfer(this: Procedure<Params, void,
|
|
|
17
17
|
/**
|
|
18
18
|
* @hidden
|
|
19
19
|
*/
|
|
20
|
-
export declare function getAuthorization(this: Procedure<Params, void, Storage>, {
|
|
20
|
+
export declare function getAuthorization(this: Procedure<Params, void, Storage>, { asset }: Params): Promise<ProcedureAuthorization>;
|
|
21
21
|
/**
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllerTransfer.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/controllerTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"controllerTransfer.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/controllerTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,aAAa,EAAiB,SAAS,EAAE,uBAAmB;AACvF,OAAO,EAAE,wBAAwB,EAA+B,oBAAgB;AAChF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,6BAAyB;AAS5F,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,oBAAY,MAAM,GAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAAE,GAAG,wBAAwB,CAAC;AAEzE;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,EACtC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,CA4ChF;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,EACtC,EAAE,KAAK,EAAE,EAAE,MAAM,GAChB,OAAO,CAAC,sBAAsB,CAAC,CAgBjC;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ7F;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAO,UAAU,MAAM,EAAE,IAAI,EAAE,OAAO,CACO,CAAC"}
|
|
@@ -19,8 +19,7 @@ const conversion_1 = require("../../utils/conversion");
|
|
|
19
19
|
function prepareControllerTransfer(args) {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
const { context: { polymeshApi: { tx }, }, storage: { did }, context, } = this;
|
|
22
|
-
const {
|
|
23
|
-
const asset = new internal_1.FungibleAsset({ ticker }, context);
|
|
22
|
+
const { asset, originPortfolio, amount } = args;
|
|
24
23
|
const originPortfolioId = (0, conversion_1.portfolioLikeToPortfolioId)(originPortfolio);
|
|
25
24
|
if (did === originPortfolioId.did) {
|
|
26
25
|
throw new internal_1.PolymeshError({
|
|
@@ -39,10 +38,11 @@ function prepareControllerTransfer(args) {
|
|
|
39
38
|
data: { free },
|
|
40
39
|
});
|
|
41
40
|
}
|
|
41
|
+
const rawAssetId = (0, conversion_1.assetToMeshAssetId)(asset, context);
|
|
42
42
|
return {
|
|
43
43
|
transaction: tx.asset.controllerTransfer,
|
|
44
44
|
args: [
|
|
45
|
-
|
|
45
|
+
rawAssetId,
|
|
46
46
|
(0, conversion_1.bigNumberToBalance)(amount, context),
|
|
47
47
|
(0, conversion_1.portfolioIdToMeshPortfolioId)(originPortfolioId, context),
|
|
48
48
|
],
|
|
@@ -54,10 +54,9 @@ exports.prepareControllerTransfer = prepareControllerTransfer;
|
|
|
54
54
|
/**
|
|
55
55
|
* @hidden
|
|
56
56
|
*/
|
|
57
|
-
function getAuthorization({
|
|
57
|
+
function getAuthorization({ asset }) {
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
59
|
const { context, storage: { did }, } = this;
|
|
60
|
-
const asset = new internal_1.FungibleAsset({ ticker }, context);
|
|
61
60
|
const portfolioId = { did };
|
|
62
61
|
return {
|
|
63
62
|
roles: [{ type: types_1.RoleType.PortfolioCustodian, portfolioId }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllerTransfer.js","sourceRoot":"","sources":["../../../src/api/procedures/controllerTransfer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuF;AACvF,uCAAgF;AAEhF,uDAM4B;AAW5B;;GAEG;AACH,SAAsB,yBAAyB,CAE7C,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,EAAE,EAAE,GAAG,EAAE,EAChB,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"controllerTransfer.js","sourceRoot":"","sources":["../../../src/api/procedures/controllerTransfer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuF;AACvF,uCAAgF;AAEhF,uDAM4B;AAW5B;;GAEG;AACH,SAAsB,yBAAyB,CAE7C,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,EAAE,EAAE,GAAG,EAAE,EAChB,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAEhD,MAAM,iBAAiB,GAAG,IAAA,uCAA0B,EAAC,eAAe,CAAC,CAAC;QAEtE,IAAI,GAAG,KAAK,iBAAiB,CAAC,GAAG,EAAE;YACjC,MAAM,IAAI,wBAAa,CAAC;gBACtB,IAAI,EAAE,iBAAS,CAAC,iBAAiB;gBACjC,OAAO,EAAE,8CAA8C;aACxD,CAAC,CAAC;SACJ;QAED,MAAM,aAAa,GAAG,IAAA,mCAAsB,EAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAEzE,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,MAAM,aAAa,CAAC,gBAAgB,CAAC;YACtD,MAAM,EAAE,CAAC,KAAK,CAAC;SAChB,CAAC,CAAC;QAEH,IAAI,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACnB,MAAM,IAAI,wBAAa,CAAC;gBACtB,IAAI,EAAE,iBAAS,CAAC,mBAAmB;gBACnC,OAAO,EAAE,0EAA0E;gBACnF,IAAI,EAAE,EAAE,IAAI,EAAE;aACf,CAAC,CAAC;SACJ;QA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CAAC;AADhE,QAAA,kBAAkB,sBAC8C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAsset.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/createAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"createAsset.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/createAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAEL,aAAa,EACb,QAAQ,EAER,SAAS,EAEV,uBAAmB;AACpB,OAAO,EAEL,2BAA2B,EAK3B,uBAAuB,EAExB,oBAAgB;AACjB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAc,6BAAyB;AAkB5F;;GAEG;AACH,oBAAY,MAAM,GAAG,2BAA2B,GAAG;IACjD,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,CAAC;QACR,QAAQ,EAAE,KAAK,CAAC;KACjB,GAAG,IAAI,CAAC;IAET,MAAM,EAAE,uBAAuB,CAAC;IAEhC,eAAe,EAAE,QAAQ,CAAC;CAC3B;AA6LD;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAC/C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,oBAAoB,CAAC,aAAa,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CA2E3D;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAC/C,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,MAAM,GAC/C,OAAO,CAAC,sBAAsB,CAAC,CA4CjC;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAC/C,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,MAAM,GAC5B,OAAO,CAAC,OAAO,CAAC,CAgClB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,QAAO,UAAU,MAAM,EAAE,aAAa,EAAE,OAAO,CACF,CAAC"}
|
|
@@ -45,70 +45,92 @@ function assertTickerAvailable(ticker, status, reservationRequired) {
|
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* @hidden
|
|
48
|
+
* - if the passed Asset type isn't one of the fixed ones (custom),
|
|
49
|
+
* we check if there is already an on-chain custom Asset type with that name:
|
|
50
|
+
* - if not, we create it together with the Asset
|
|
51
|
+
* - otherwise, we create the asset with the id of the existing custom asset type
|
|
52
|
+
* - if the passed Asset type is a fixed one, we create the asset using that Asset type
|
|
48
53
|
*/
|
|
49
|
-
function
|
|
54
|
+
function getCreateAssetTransaction(customTypeData, context, fee, args) {
|
|
50
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
const {
|
|
52
|
-
const { ticker, name,
|
|
53
|
-
assertTickerAvailable(ticker, status, reservationRequired);
|
|
56
|
+
const { polymeshApi: { tx }, isV6, } = context;
|
|
57
|
+
const { ticker, name, isDivisible, assetType, securityIdentifiers = [], fundingRound } = args;
|
|
54
58
|
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
55
59
|
const rawName = (0, conversion_1.nameToAssetName)(name, context);
|
|
60
|
+
/* istanbul ignore next: this will be removed after dual version support for v6-v7 */
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
62
|
+
const rawNameTickerArgs = isV6 ? [rawName, rawTicker] : [rawName];
|
|
56
63
|
const rawIsDivisible = (0, conversion_1.booleanToBool)(isDivisible, context);
|
|
57
64
|
const rawIdentifiers = securityIdentifiers.map(identifier => (0, conversion_1.securityIdentifierToAssetIdentifier)(identifier, context));
|
|
58
65
|
const rawFundingRound = (0, internal_2.optionize)(conversion_1.fundingRoundToAssetFundingRound)(fundingRound, context);
|
|
59
|
-
const newAsset = new internal_1.FungibleAsset({ ticker }, context);
|
|
60
|
-
const transactions = [];
|
|
61
|
-
let fee;
|
|
62
|
-
if (status === types_1.TickerReservationStatus.Free) {
|
|
63
|
-
fee = yield (0, utils_1.addManualFees)(new bignumber_js_1.default(0), [types_1.TxTags.asset.RegisterTicker, types_1.TxTags.asset.CreateAsset], context);
|
|
64
|
-
}
|
|
65
|
-
/*
|
|
66
|
-
* - if the passed Asset type isn't one of the fixed ones (custom), we check if there is already
|
|
67
|
-
* an on-chain custom Asset type with that name:
|
|
68
|
-
* - if not, we create it together with the Asset
|
|
69
|
-
* - otherwise, we create the asset with the id of the existing custom asset type
|
|
70
|
-
* - if the passed Asset type is a fixed one, we create the asset using that Asset type
|
|
71
|
-
*/
|
|
72
66
|
if (customTypeData) {
|
|
73
|
-
const { rawValue, id } = customTypeData;
|
|
74
|
-
/*
|
|
75
|
-
* We add the fee for registering a custom asset type in case we're calculating
|
|
76
|
-
* the Asset creation fees manually
|
|
77
|
-
*/
|
|
78
|
-
fee = yield (0, utils_1.addManualFees)(fee, [types_1.TxTags.asset.RegisterCustomAssetType], context);
|
|
67
|
+
const { rawValue: rawAssetType, id } = customTypeData;
|
|
79
68
|
if (id.isEmpty) {
|
|
80
|
-
|
|
69
|
+
/*
|
|
70
|
+
* We add the fee for registering a custom asset type in case we're calculating
|
|
71
|
+
* the Asset creation fees manually
|
|
72
|
+
*/
|
|
73
|
+
fee = yield (0, utils_1.addManualFees)(fee, [types_1.TxTags.asset.RegisterCustomAssetType], context);
|
|
74
|
+
return (0, internal_2.checkTxType)({
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
81
76
|
transaction: tx.asset.createAssetWithCustomType,
|
|
82
77
|
fee,
|
|
83
|
-
args: [
|
|
84
|
-
})
|
|
78
|
+
args: [...rawNameTickerArgs, rawIsDivisible, rawAssetType, rawIdentifiers, rawFundingRound],
|
|
79
|
+
});
|
|
85
80
|
}
|
|
86
81
|
else {
|
|
87
82
|
const rawType = (0, conversion_1.internalAssetTypeToAssetType)({ Custom: id }, context);
|
|
88
|
-
|
|
83
|
+
return (0, internal_2.checkTxType)({
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89
85
|
transaction: tx.asset.createAsset,
|
|
90
86
|
fee,
|
|
91
|
-
args: [
|
|
92
|
-
})
|
|
87
|
+
args: [...rawNameTickerArgs, rawIsDivisible, rawType, rawIdentifiers, rawFundingRound],
|
|
88
|
+
});
|
|
93
89
|
}
|
|
94
90
|
}
|
|
95
91
|
else {
|
|
96
92
|
const rawType = (0, conversion_1.internalAssetTypeToAssetType)(assetType, context);
|
|
97
|
-
|
|
93
|
+
return (0, internal_2.checkTxType)({
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
98
95
|
transaction: tx.asset.createAsset,
|
|
99
96
|
fee,
|
|
100
|
-
args: [
|
|
97
|
+
args: [...rawNameTickerArgs, rawIsDivisible, rawType, rawIdentifiers, rawFundingRound],
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*
|
|
105
|
+
* since 7.x, we need to separately register ticker first if ticker does not exists and then link to asset
|
|
106
|
+
*/
|
|
107
|
+
function getTickerTransactions(rawTicker, rawAssetId, context, status) {
|
|
108
|
+
const { polymeshApi: { tx }, isV6, } = context;
|
|
109
|
+
const transactions = [];
|
|
110
|
+
if (!isV6) {
|
|
111
|
+
if (status === types_1.TickerReservationStatus.Free) {
|
|
112
|
+
transactions.push((0, internal_2.checkTxType)({
|
|
113
|
+
transaction: tx.asset.registerUniqueTicker,
|
|
114
|
+
args: [rawTicker],
|
|
101
115
|
}));
|
|
102
116
|
}
|
|
103
|
-
if (
|
|
104
|
-
const tickerKey = (0, conversion_1.stringToTickerKey)(ticker, context);
|
|
105
|
-
const rawStats = initialStatistics.map(i => (0, conversion_1.inputStatTypeToMeshStatType)(i, context));
|
|
106
|
-
const bTreeStats = (0, conversion_1.statisticStatTypesToBtreeStatType)(rawStats, context);
|
|
117
|
+
if (status !== types_1.TickerReservationStatus.AssetCreated) {
|
|
107
118
|
transactions.push((0, internal_2.checkTxType)({
|
|
108
|
-
transaction: tx.
|
|
109
|
-
args: [
|
|
119
|
+
transaction: tx.asset.linkTickerToAssetId,
|
|
120
|
+
args: [rawTicker, rawAssetId],
|
|
110
121
|
}));
|
|
111
122
|
}
|
|
123
|
+
}
|
|
124
|
+
return transactions;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @hidden
|
|
128
|
+
*/
|
|
129
|
+
function getDocumentsAndIssueTransaction(args, rawAssetId, context, signingIdentity) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const { polymeshApi: { tx }, } = context;
|
|
132
|
+
const { initialSupply, portfolioId, isDivisible, documents } = args;
|
|
133
|
+
const transactions = [];
|
|
112
134
|
if (initialSupply === null || initialSupply === void 0 ? void 0 : initialSupply.gt(0)) {
|
|
113
135
|
const rawInitialSupply = (0, conversion_1.bigNumberToBalance)(initialSupply, context, isDivisible);
|
|
114
136
|
const portfolio = portfolioId
|
|
@@ -117,7 +139,7 @@ function prepareCreateAsset(args) {
|
|
|
117
139
|
const rawPortfolio = (0, conversion_1.portfolioToPortfolioKind)(portfolio, context);
|
|
118
140
|
transactions.push((0, internal_2.checkTxType)({
|
|
119
141
|
transaction: tx.asset.issue,
|
|
120
|
-
args: [
|
|
142
|
+
args: [rawAssetId, rawInitialSupply, rawPortfolio],
|
|
121
143
|
}));
|
|
122
144
|
}
|
|
123
145
|
if (documents === null || documents === void 0 ? void 0 : documents.length) {
|
|
@@ -126,12 +148,68 @@ function prepareCreateAsset(args) {
|
|
|
126
148
|
transactions.push((0, internal_2.checkTxType)({
|
|
127
149
|
transaction: tx.asset.addDocuments,
|
|
128
150
|
feeMultiplier,
|
|
129
|
-
args: [rawDocuments,
|
|
151
|
+
args: [rawDocuments, rawAssetId],
|
|
130
152
|
}));
|
|
131
153
|
}
|
|
154
|
+
return transactions;
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
function prepareCreateAsset(args) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
const { context: { polymeshApi: { tx }, isV6, }, context, storage: { customTypeData, status, signingIdentity }, } = this;
|
|
163
|
+
const { ticker, reservationRequired, initialStatistics } = args;
|
|
164
|
+
// to be used as ticker for 6.x chain and next asset id for 7.x chain
|
|
165
|
+
let rawAssetId;
|
|
166
|
+
let assetId;
|
|
167
|
+
assertTickerAvailable(ticker, status, reservationRequired);
|
|
168
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
169
|
+
/* istanbul ignore if: this will be removed after dual version support for v6-v7 */
|
|
170
|
+
if (isV6) {
|
|
171
|
+
rawAssetId = rawTicker;
|
|
172
|
+
assetId = ticker;
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
assetId = yield context.getSigningAccount().getNextAssetId();
|
|
176
|
+
rawAssetId = (0, conversion_1.stringToAssetId)(assetId, context);
|
|
177
|
+
}
|
|
178
|
+
let transactions = [];
|
|
179
|
+
let fee;
|
|
180
|
+
if (status === types_1.TickerReservationStatus.Free) {
|
|
181
|
+
/* istanbul ignore if: this will be removed after dual version support for v6-v7 */
|
|
182
|
+
if (isV6) {
|
|
183
|
+
fee = yield (0, utils_1.addManualFees)(new bignumber_js_1.default(0), [types_1.TxTags.asset.RegisterTicker, types_1.TxTags.asset.CreateAsset], context);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
fee = yield (0, utils_1.addManualFees)(new bignumber_js_1.default(0), [types_1.TxTags.asset.CreateAsset], context);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
transactions.push(yield getCreateAssetTransaction(customTypeData, context, fee, args));
|
|
190
|
+
// since 7.x, we need to separately register ticker first if ticker does not exists and then link to asset
|
|
191
|
+
transactions = [
|
|
192
|
+
...transactions,
|
|
193
|
+
...getTickerTransactions(rawTicker, rawAssetId, context, status),
|
|
194
|
+
];
|
|
195
|
+
if (initialStatistics === null || initialStatistics === void 0 ? void 0 : initialStatistics.length) {
|
|
196
|
+
const rawStats = initialStatistics.map(i => (0, conversion_1.inputStatTypeToMeshStatType)(i, context));
|
|
197
|
+
const bTreeStats = (0, conversion_1.statisticStatTypesToBtreeStatType)(rawStats, context);
|
|
198
|
+
/* istanbul ignore next: this will be removed after dual version support for v6-v7 */
|
|
199
|
+
const rawAssetIdValue = isV6 ? { Ticker: rawAssetId } : rawAssetId;
|
|
200
|
+
transactions.push((0, internal_2.checkTxType)({
|
|
201
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
202
|
+
transaction: tx.statistics.setActiveAssetStats,
|
|
203
|
+
args: [rawAssetIdValue, bTreeStats],
|
|
204
|
+
}));
|
|
205
|
+
}
|
|
206
|
+
transactions = [
|
|
207
|
+
...transactions,
|
|
208
|
+
...(yield getDocumentsAndIssueTransaction(args, rawAssetId, context, signingIdentity)),
|
|
209
|
+
];
|
|
132
210
|
return {
|
|
133
211
|
transactions,
|
|
134
|
-
resolver:
|
|
212
|
+
resolver: new internal_1.FungibleAsset({ assetId }, context),
|
|
135
213
|
};
|
|
136
214
|
});
|
|
137
215
|
}
|
|
@@ -141,8 +219,16 @@ exports.prepareCreateAsset = prepareCreateAsset;
|
|
|
141
219
|
*/
|
|
142
220
|
function getAuthorization({ ticker, documents, initialStatistics }) {
|
|
143
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
const { storage: { customTypeData, status }, } = this;
|
|
222
|
+
const { storage: { customTypeData, status }, context: { isV6 }, } = this;
|
|
145
223
|
const transactions = [types_1.TxTags.asset.CreateAsset];
|
|
224
|
+
if (!isV6) {
|
|
225
|
+
if (status === types_1.TickerReservationStatus.Free) {
|
|
226
|
+
transactions.push(types_1.TxTags.asset.RegisterUniqueTicker);
|
|
227
|
+
}
|
|
228
|
+
if (status !== types_1.TickerReservationStatus.AssetCreated) {
|
|
229
|
+
transactions.push(types_1.TxTags.asset.LinkTickerToAssetId);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
146
232
|
if (documents === null || documents === void 0 ? void 0 : documents.length) {
|
|
147
233
|
transactions.push(types_1.TxTags.asset.AddDocuments);
|
|
148
234
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAsset.js","sourceRoot":"","sources":["../../../src/api/procedures/createAsset.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createAsset.js","sourceRoot":"","sources":["../../../src/api/procedures/createAsset.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,gEAAqC;AACrC,mCAAgC;AAEhC,mCAAuD;AACvD,6CAOoB;AACpB,uCASiB;AAEjB,uDAc4B;AAC5B,mDAA+E;AA2B/E;;GAEG;AACH,SAAS,qBAAqB,CAC5B,MAAc,EACd,MAA+B,EAC/B,mBAA4B;IAE5B,IAAI,MAAM,KAAK,+BAAuB,CAAC,YAAY,EAAE;QACnD,MAAM,IAAI,wBAAa,CAAC;YACtB,IAAI,EAAE,iBAAS,CAAC,iBAAiB;YACjC,OAAO,EAAE,yBAAyB,MAAM,kBAAkB;SAC3D,CAAC,CAAC;KACJ;IAED,IAAI,MAAM,KAAK,+BAAuB,CAAC,IAAI,IAAI,mBAAmB,EAAE;QAClE,MAAM,IAAI,wBAAa,CAAC;YACtB,IAAI,EAAE,iBAAS,CAAC,iBAAiB;YACjC,OAAO,EAAE,kCAAkC,MAAM,uCAAuC;SACzF,CAAC,CAAC;KACJ;IAED,IAAI,CA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B,MAAM,QAAQ,GAAG,IAAA,0BAAa,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YACnD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YAEjF,MAAM,EAAE,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;YAEnC,OAAO;gBACL,cAAc,EAAE;oBACd,EAAE;oBACF,QAAQ;iBACT;gBACD,MAAM;gBACN,eAAe;aAChB,CAAC;SACH;QAED,OAAO;YACL,cAAc,EAAE,IAAI;YACpB,MAAM;YACN,eAAe;SAChB,CAAC;IACJ,CAAC;CAAA;AAnCD,wCAmCC;AAED;;GAEG;AACI,MAAM,WAAW,GAAG,GAA8C,EAAE,CACzE,IAAI,oBAAS,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AADzD,QAAA,WAAW,eAC8C"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ISubmittableResult } from '@polkadot/types/types';
|
|
2
|
-
import { Checkpoint, Context, Procedure } from "../../internal";
|
|
2
|
+
import { Checkpoint, Context, FungibleAsset, Procedure } from "../../internal";
|
|
3
3
|
import { ExtrinsicParams, ProcedureAuthorization, TransactionSpec } from "../../types/internal";
|
|
4
4
|
/**
|
|
5
5
|
* @hidden
|
|
6
6
|
*/
|
|
7
7
|
export interface Params {
|
|
8
|
-
|
|
8
|
+
asset: FungibleAsset;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
|
-
export declare const createCheckpointResolver: (
|
|
13
|
+
export declare const createCheckpointResolver: (assetId: string, context: Context) => (receipt: ISubmittableResult) => Checkpoint;
|
|
14
14
|
/**
|
|
15
15
|
* @hidden
|
|
16
16
|
*/
|
|
@@ -18,7 +18,7 @@ export declare function prepareCreateCheckpoint(this: Procedure<Params, Checkpoi
|
|
|
18
18
|
/**
|
|
19
19
|
* @hidden
|
|
20
20
|
*/
|
|
21
|
-
export declare function getAuthorization(this: Procedure<Params, Checkpoint>, {
|
|
21
|
+
export declare function getAuthorization(this: Procedure<Params, Checkpoint>, { asset }: Params): ProcedureAuthorization;
|
|
22
22
|
/**
|
|
23
23
|
* @hidden
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCheckpoint.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/createCheckpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"createCheckpoint.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/createCheckpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,uBAAmB;AAE3E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,6BAAyB;AAI5F;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,aAAa,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,YACzB,MAAM,WAAW,OAAO,eACxB,kBAAkB,KAAG,UAK9B,CAAC;AAEJ;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,EACnC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,UAAU,EAAE,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAWzF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,EACnC,EAAE,KAAK,EAAE,EAAE,MAAM,GAChB,sBAAsB,CAQxB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,UAAU,MAAM,EAAE,UAAU,CACN,CAAC"}
|