@polymeshassociation/polymesh-sdk 14.0.0-beta.11
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/AccountManagement.d.ts +89 -0
- package/AccountManagement.d.ts.map +1 -0
- package/AccountManagement.js +116 -0
- package/AccountManagement.js.map +1 -0
- package/Assets.d.ts +68 -0
- package/Assets.d.ts.map +1 -0
- package/Assets.js +114 -0
- package/Assets.js.map +1 -0
- package/CHANGELOG.md +6 -0
- package/Claims.d.ts +123 -0
- package/Claims.d.ts.map +1 -0
- package/Claims.js +247 -0
- package/Claims.js.map +1 -0
- package/Identities.d.ts +45 -0
- package/Identities.d.ts.map +1 -0
- package/Identities.js +34 -0
- package/Identities.js.map +1 -0
- package/Network.d.ts +104 -0
- package/Network.d.ts.map +1 -0
- package/Network.js +203 -0
- package/Network.js.map +1 -0
- package/Polymesh.d.ts +111 -0
- package/Polymesh.d.ts.map +1 -0
- package/Polymesh.js +219 -0
- package/Polymesh.js.map +1 -0
- package/Settlements.d.ts +44 -0
- package/Settlements.d.ts.map +1 -0
- package/Settlements.js +93 -0
- package/Settlements.js.map +1 -0
- package/api/entities/Account.d.ts +102 -0
- package/api/entities/Account.d.ts.map +1 -0
- package/api/entities/Account.js +375 -0
- package/api/entities/Account.js.map +1 -0
- package/api/entities/Asset/AssetHolders.d.ts +14 -0
- package/api/entities/Asset/AssetHolders.d.ts.map +1 -0
- package/api/entities/Asset/AssetHolders.js +45 -0
- package/api/entities/Asset/AssetHolders.js.map +1 -0
- package/api/entities/Asset/Checkpoints/Schedules.d.ts +50 -0
- package/api/entities/Asset/Checkpoints/Schedules.d.ts.map +1 -0
- package/api/entities/Asset/Checkpoints/Schedules.js +103 -0
- package/api/entities/Asset/Checkpoints/Schedules.js.map +1 -0
- package/api/entities/Asset/Checkpoints/index.d.ts +33 -0
- package/api/entities/Asset/Checkpoints/index.d.ts.map +1 -0
- package/api/entities/Asset/Checkpoints/index.js +90 -0
- package/api/entities/Asset/Checkpoints/index.js.map +1 -0
- package/api/entities/Asset/Checkpoints/types.d.ts +20 -0
- package/api/entities/Asset/Checkpoints/types.d.ts.map +1 -0
- package/api/entities/Asset/Checkpoints/types.js +9 -0
- package/api/entities/Asset/Checkpoints/types.js.map +1 -0
- package/api/entities/Asset/Compliance/Requirements.d.ts +68 -0
- package/api/entities/Asset/Compliance/Requirements.d.ts.map +1 -0
- package/api/entities/Asset/Compliance/Requirements.js +114 -0
- package/api/entities/Asset/Compliance/Requirements.js.map +1 -0
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts +33 -0
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts.map +1 -0
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.js +70 -0
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.js.map +1 -0
- package/api/entities/Asset/Compliance/index.d.ts +15 -0
- package/api/entities/Asset/Compliance/index.d.ts.map +1 -0
- package/api/entities/Asset/Compliance/index.js +21 -0
- package/api/entities/Asset/Compliance/index.js.map +1 -0
- package/api/entities/Asset/CorporateActions/Distributions.d.ts +32 -0
- package/api/entities/Asset/CorporateActions/Distributions.d.ts.map +1 -0
- package/api/entities/Asset/CorporateActions/Distributions.js +74 -0
- package/api/entities/Asset/CorporateActions/Distributions.js.map +1 -0
- package/api/entities/Asset/CorporateActions/index.d.ts +58 -0
- package/api/entities/Asset/CorporateActions/index.d.ts.map +1 -0
- package/api/entities/Asset/CorporateActions/index.js +85 -0
- package/api/entities/Asset/CorporateActions/index.js.map +1 -0
- package/api/entities/Asset/CorporateActions/types.d.ts +8 -0
- package/api/entities/Asset/CorporateActions/types.d.ts.map +1 -0
- package/api/entities/Asset/CorporateActions/types.js +3 -0
- package/api/entities/Asset/CorporateActions/types.js.map +1 -0
- package/api/entities/Asset/Documents.d.ts +24 -0
- package/api/entities/Asset/Documents.d.ts.map +1 -0
- package/api/entities/Asset/Documents.js +49 -0
- package/api/entities/Asset/Documents.js.map +1 -0
- package/api/entities/Asset/Issuance.d.ts +21 -0
- package/api/entities/Asset/Issuance.d.ts.map +1 -0
- package/api/entities/Asset/Issuance.js +20 -0
- package/api/entities/Asset/Issuance.js.map +1 -0
- package/api/entities/Asset/Offerings.d.ts +37 -0
- package/api/entities/Asset/Offerings.d.ts.map +1 -0
- package/api/entities/Asset/Offerings.js +79 -0
- package/api/entities/Asset/Offerings.js.map +1 -0
- package/api/entities/Asset/Permissions.d.ts +50 -0
- package/api/entities/Asset/Permissions.d.ts.map +1 -0
- package/api/entities/Asset/Permissions.js +83 -0
- package/api/entities/Asset/Permissions.js.map +1 -0
- package/api/entities/Asset/Settlements.d.ts +48 -0
- package/api/entities/Asset/Settlements.d.ts.map +1 -0
- package/api/entities/Asset/Settlements.js +108 -0
- package/api/entities/Asset/Settlements.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Count.d.ts +36 -0
- package/api/entities/Asset/TransferRestrictions/Count.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Count.js +16 -0
- package/api/entities/Asset/TransferRestrictions/Count.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts +36 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.js +16 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts +44 -0
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js +99 -0
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/index.d.ts +15 -0
- package/api/entities/Asset/TransferRestrictions/index.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/index.js +21 -0
- package/api/entities/Asset/TransferRestrictions/index.js.map +1 -0
- package/api/entities/Asset/index.d.ts +166 -0
- package/api/entities/Asset/index.d.ts.map +1 -0
- package/api/entities/Asset/index.js +306 -0
- package/api/entities/Asset/index.js.map +1 -0
- package/api/entities/Asset/types.d.ts +55 -0
- package/api/entities/Asset/types.d.ts.map +1 -0
- package/api/entities/Asset/types.js +19 -0
- package/api/entities/Asset/types.js.map +1 -0
- package/api/entities/AuthorizationRequest.d.ts +95 -0
- package/api/entities/AuthorizationRequest.d.ts.map +1 -0
- package/api/entities/AuthorizationRequest.js +128 -0
- package/api/entities/AuthorizationRequest.js.map +1 -0
- package/api/entities/Checkpoint.d.ts +71 -0
- package/api/entities/Checkpoint.d.ts.map +1 -0
- package/api/entities/Checkpoint.js +180 -0
- package/api/entities/Checkpoint.js.map +1 -0
- package/api/entities/CheckpointSchedule/index.d.ts +83 -0
- package/api/entities/CheckpointSchedule/index.d.ts.map +1 -0
- package/api/entities/CheckpointSchedule/index.js +137 -0
- package/api/entities/CheckpointSchedule/index.js.map +1 -0
- package/api/entities/CheckpointSchedule/types.d.ts +8 -0
- package/api/entities/CheckpointSchedule/types.d.ts.map +1 -0
- package/api/entities/CheckpointSchedule/types.js +3 -0
- package/api/entities/CheckpointSchedule/types.js.map +1 -0
- package/api/entities/CorporateAction.d.ts +40 -0
- package/api/entities/CorporateAction.d.ts.map +1 -0
- package/api/entities/CorporateAction.js +25 -0
- package/api/entities/CorporateAction.js.map +1 -0
- package/api/entities/CorporateActionBase/index.d.ts +106 -0
- package/api/entities/CorporateActionBase/index.d.ts.map +1 -0
- package/api/entities/CorporateActionBase/index.js +134 -0
- package/api/entities/CorporateActionBase/index.js.map +1 -0
- package/api/entities/CorporateActionBase/types.d.ts +30 -0
- package/api/entities/CorporateActionBase/types.d.ts.map +1 -0
- package/api/entities/CorporateActionBase/types.js +17 -0
- package/api/entities/CorporateActionBase/types.js.map +1 -0
- package/api/entities/CustomPermissionGroup.d.ts +43 -0
- package/api/entities/CustomPermissionGroup.d.ts.map +1 -0
- package/api/entities/CustomPermissionGroup.js +81 -0
- package/api/entities/CustomPermissionGroup.js.map +1 -0
- package/api/entities/DefaultPortfolio.d.ts +18 -0
- package/api/entities/DefaultPortfolio.d.ts.map +1 -0
- package/api/entities/DefaultPortfolio.js +35 -0
- package/api/entities/DefaultPortfolio.js.map +1 -0
- package/api/entities/DefaultTrustedClaimIssuer.d.ts +36 -0
- package/api/entities/DefaultTrustedClaimIssuer.d.ts.map +1 -0
- package/api/entities/DefaultTrustedClaimIssuer.js +88 -0
- package/api/entities/DefaultTrustedClaimIssuer.js.map +1 -0
- package/api/entities/DividendDistribution/index.d.ts +158 -0
- package/api/entities/DividendDistribution/index.d.ts.map +1 -0
- package/api/entities/DividendDistribution/index.js +346 -0
- package/api/entities/DividendDistribution/index.js.map +1 -0
- package/api/entities/DividendDistribution/types.d.ts +24 -0
- package/api/entities/DividendDistribution/types.d.ts.map +1 -0
- package/api/entities/DividendDistribution/types.js +3 -0
- package/api/entities/DividendDistribution/types.js.map +1 -0
- package/api/entities/Entity.d.ts +43 -0
- package/api/entities/Entity.d.ts.map +1 -0
- package/api/entities/Entity.js +58 -0
- package/api/entities/Entity.js.map +1 -0
- package/api/entities/Identity/AssetPermissions.d.ts +76 -0
- package/api/entities/Identity/AssetPermissions.d.ts.map +1 -0
- package/api/entities/Identity/AssetPermissions.js +284 -0
- package/api/entities/Identity/AssetPermissions.js.map +1 -0
- package/api/entities/Identity/IdentityAuthorizations.d.ts +23 -0
- package/api/entities/Identity/IdentityAuthorizations.d.ts.map +1 -0
- package/api/entities/Identity/IdentityAuthorizations.js +79 -0
- package/api/entities/Identity/IdentityAuthorizations.js.map +1 -0
- package/api/entities/Identity/Portfolios.d.ts +43 -0
- package/api/entities/Identity/Portfolios.d.ts.map +1 -0
- package/api/entities/Identity/Portfolios.js +107 -0
- package/api/entities/Identity/Portfolios.js.map +1 -0
- package/api/entities/Identity/index.d.ts +152 -0
- package/api/entities/Identity/index.d.ts.map +1 -0
- package/api/entities/Identity/index.js +430 -0
- package/api/entities/Identity/index.js.map +1 -0
- package/api/entities/Instruction/index.d.ts +91 -0
- package/api/entities/Instruction/index.d.ts.map +1 -0
- package/api/entities/Instruction/index.js +261 -0
- package/api/entities/Instruction/index.js.map +1 -0
- package/api/entities/Instruction/types.d.ts +52 -0
- package/api/entities/Instruction/types.d.ts.map +1 -0
- package/api/entities/Instruction/types.js +21 -0
- package/api/entities/Instruction/types.js.map +1 -0
- package/api/entities/KnownPermissionGroup.d.ts +38 -0
- package/api/entities/KnownPermissionGroup.d.ts.map +1 -0
- package/api/entities/KnownPermissionGroup.js +100 -0
- package/api/entities/KnownPermissionGroup.js.map +1 -0
- package/api/entities/Namespace.d.ts +15 -0
- package/api/entities/Namespace.d.ts.map +1 -0
- package/api/entities/Namespace.js +19 -0
- package/api/entities/Namespace.js.map +1 -0
- package/api/entities/NumberedPortfolio.d.ts +48 -0
- package/api/entities/NumberedPortfolio.d.ts.map +1 -0
- package/api/entities/NumberedPortfolio.js +95 -0
- package/api/entities/NumberedPortfolio.js.map +1 -0
- package/api/entities/Offering/index.d.ts +93 -0
- package/api/entities/Offering/index.d.ts.map +1 -0
- package/api/entities/Offering/index.js +135 -0
- package/api/entities/Offering/index.js.map +1 -0
- package/api/entities/Offering/types.d.ts +83 -0
- package/api/entities/Offering/types.d.ts.map +1 -0
- package/api/entities/Offering/types.js +55 -0
- package/api/entities/Offering/types.js.map +1 -0
- package/api/entities/PermissionGroup.d.ts +26 -0
- package/api/entities/PermissionGroup.d.ts.map +1 -0
- package/api/entities/PermissionGroup.js +19 -0
- package/api/entities/PermissionGroup.js.map +1 -0
- package/api/entities/Portfolio/index.d.ts +112 -0
- package/api/entities/Portfolio/index.d.ts.map +1 -0
- package/api/entities/Portfolio/index.js +246 -0
- package/api/entities/Portfolio/index.js.map +1 -0
- package/api/entities/Portfolio/types.d.ts +21 -0
- package/api/entities/Portfolio/types.d.ts.map +1 -0
- package/api/entities/Portfolio/types.js +3 -0
- package/api/entities/Portfolio/types.js.map +1 -0
- package/api/entities/Subsidy/index.d.ts +80 -0
- package/api/entities/Subsidy/index.d.ts.map +1 -0
- package/api/entities/Subsidy/index.js +97 -0
- package/api/entities/Subsidy/index.js.map +1 -0
- package/api/entities/Subsidy/types.d.ts +21 -0
- package/api/entities/Subsidy/types.d.ts.map +1 -0
- package/api/entities/Subsidy/types.js +3 -0
- package/api/entities/Subsidy/types.js.map +1 -0
- package/api/entities/TickerReservation/index.d.ts +72 -0
- package/api/entities/TickerReservation/index.d.ts.map +1 -0
- package/api/entities/TickerReservation/index.js +118 -0
- package/api/entities/TickerReservation/index.js.map +1 -0
- package/api/entities/TickerReservation/types.d.ts +27 -0
- package/api/entities/TickerReservation/types.d.ts.map +1 -0
- package/api/entities/TickerReservation/types.js +19 -0
- package/api/entities/TickerReservation/types.js.map +1 -0
- package/api/entities/Venue/index.d.ts +77 -0
- package/api/entities/Venue/index.d.ts.map +1 -0
- package/api/entities/Venue/index.js +139 -0
- package/api/entities/Venue/index.js.map +1 -0
- package/api/entities/Venue/types.d.ts +22 -0
- package/api/entities/Venue/types.d.ts.map +1 -0
- package/api/entities/Venue/types.js +20 -0
- package/api/entities/Venue/types.js.map +1 -0
- package/api/entities/common/namespaces/Authorizations.d.ts +37 -0
- package/api/entities/common/namespaces/Authorizations.d.ts.map +1 -0
- package/api/entities/common/namespaces/Authorizations.js +91 -0
- package/api/entities/common/namespaces/Authorizations.js.map +1 -0
- package/api/entities/types.d.ts +30 -0
- package/api/entities/types.d.ts.map +1 -0
- package/api/entities/types.js +27 -0
- package/api/entities/types.js.map +1 -0
- package/api/procedures/addAssetRequirement.d.ts +30 -0
- package/api/procedures/addAssetRequirement.d.ts.map +1 -0
- package/api/procedures/addAssetRequirement.js +70 -0
- package/api/procedures/addAssetRequirement.js.map +1 -0
- package/api/procedures/addInstruction.d.ts +70 -0
- package/api/procedures/addInstruction.d.ts.map +1 -0
- package/api/procedures/addInstruction.js +266 -0
- package/api/procedures/addInstruction.js.map +1 -0
- package/api/procedures/addInvestorUniquenessClaim.d.ts +23 -0
- package/api/procedures/addInvestorUniquenessClaim.d.ts.map +1 -0
- package/api/procedures/addInvestorUniquenessClaim.js +80 -0
- package/api/procedures/addInvestorUniquenessClaim.js.map +1 -0
- package/api/procedures/addTransferRestriction.d.ts +29 -0
- package/api/procedures/addTransferRestriction.d.ts.map +1 -0
- package/api/procedures/addTransferRestriction.js +102 -0
- package/api/procedures/addTransferRestriction.js.map +1 -0
- package/api/procedures/claimClassicTicker.d.ts +22 -0
- package/api/procedures/claimClassicTicker.d.ts.map +1 -0
- package/api/procedures/claimClassicTicker.js +112 -0
- package/api/procedures/claimClassicTicker.js.map +1 -0
- package/api/procedures/claimDividends.d.ts +16 -0
- package/api/procedures/claimDividends.d.ts.map +1 -0
- package/api/procedures/claimDividends.js +58 -0
- package/api/procedures/claimDividends.js.map +1 -0
- package/api/procedures/closeOffering.d.ts +23 -0
- package/api/procedures/closeOffering.d.ts.map +1 -0
- package/api/procedures/closeOffering.js +59 -0
- package/api/procedures/closeOffering.js.map +1 -0
- package/api/procedures/configureDividendDistribution.d.ts +69 -0
- package/api/procedures/configureDividendDistribution.d.ts.map +1 -0
- package/api/procedures/configureDividendDistribution.js +158 -0
- package/api/procedures/configureDividendDistribution.js.map +1 -0
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts +22 -0
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts.map +1 -0
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js +102 -0
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js.map +1 -0
- package/api/procedures/consumeAuthorizationRequests.d.ts +24 -0
- package/api/procedures/consumeAuthorizationRequests.d.ts.map +1 -0
- package/api/procedures/consumeAuthorizationRequests.js +124 -0
- package/api/procedures/consumeAuthorizationRequests.js.map +1 -0
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts +35 -0
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts.map +1 -0
- package/api/procedures/consumeJoinOrRotateAuthorization.js +136 -0
- package/api/procedures/consumeJoinOrRotateAuthorization.js.map +1 -0
- package/api/procedures/controllerTransfer.d.ts +40 -0
- package/api/procedures/controllerTransfer.d.ts.map +1 -0
- package/api/procedures/controllerTransfer.js +90 -0
- package/api/procedures/controllerTransfer.js.map +1 -0
- package/api/procedures/createAsset.d.ts +82 -0
- package/api/procedures/createAsset.d.ts.map +1 -0
- package/api/procedures/createAsset.js +178 -0
- package/api/procedures/createAsset.js.map +1 -0
- package/api/procedures/createCheckpoint.d.ts +26 -0
- package/api/procedures/createCheckpoint.d.ts.map +1 -0
- package/api/procedures/createCheckpoint.js +61 -0
- package/api/procedures/createCheckpoint.js.map +1 -0
- package/api/procedures/createCheckpointSchedule.d.ts +43 -0
- package/api/procedures/createCheckpointSchedule.d.ts.map +1 -0
- package/api/procedures/createCheckpointSchedule.js +70 -0
- package/api/procedures/createCheckpointSchedule.js.map +1 -0
- package/api/procedures/createGroup.d.ts +44 -0
- package/api/procedures/createGroup.d.ts.map +1 -0
- package/api/procedures/createGroup.js +90 -0
- package/api/procedures/createGroup.js.map +1 -0
- package/api/procedures/createPortfolio.d.ts +21 -0
- package/api/procedures/createPortfolio.d.ts.map +1 -0
- package/api/procedures/createPortfolio.js +64 -0
- package/api/procedures/createPortfolio.js.map +1 -0
- package/api/procedures/createVenue.d.ts +20 -0
- package/api/procedures/createVenue.d.ts.map +1 -0
- package/api/procedures/createVenue.js +56 -0
- package/api/procedures/createVenue.js.map +1 -0
- package/api/procedures/deletePortfolio.d.ts +20 -0
- package/api/procedures/deletePortfolio.d.ts.map +1 -0
- package/api/procedures/deletePortfolio.js +69 -0
- package/api/procedures/deletePortfolio.js.map +1 -0
- package/api/procedures/initiateCorporateAction.d.ts +60 -0
- package/api/procedures/initiateCorporateAction.d.ts.map +1 -0
- package/api/procedures/initiateCorporateAction.js +107 -0
- package/api/procedures/initiateCorporateAction.js.map +1 -0
- package/api/procedures/investInOffering.d.ts +66 -0
- package/api/procedures/investInOffering.d.ts.map +1 -0
- package/api/procedures/investInOffering.js +147 -0
- package/api/procedures/investInOffering.js.map +1 -0
- package/api/procedures/inviteAccount.d.ts +16 -0
- package/api/procedures/inviteAccount.d.ts.map +1 -0
- package/api/procedures/inviteAccount.js +92 -0
- package/api/procedures/inviteAccount.js.map +1 -0
- package/api/procedures/inviteExternalAgent.d.ts +46 -0
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -0
- package/api/procedures/inviteExternalAgent.js +97 -0
- package/api/procedures/inviteExternalAgent.js.map +1 -0
- package/api/procedures/issueTokens.d.ts +27 -0
- package/api/procedures/issueTokens.d.ts.map +1 -0
- package/api/procedures/issueTokens.js +75 -0
- package/api/procedures/issueTokens.js.map +1 -0
- package/api/procedures/launchOffering.d.ts +81 -0
- package/api/procedures/launchOffering.d.ts.map +1 -0
- package/api/procedures/launchOffering.js +139 -0
- package/api/procedures/launchOffering.js.map +1 -0
- package/api/procedures/leaveIdentity.d.ts +10 -0
- package/api/procedures/leaveIdentity.d.ts.map +1 -0
- package/api/procedures/leaveIdentity.js +53 -0
- package/api/procedures/leaveIdentity.js.map +1 -0
- package/api/procedures/linkCaDocs.d.ts +30 -0
- package/api/procedures/linkCaDocs.d.ts.map +1 -0
- package/api/procedures/linkCaDocs.js +69 -0
- package/api/procedures/linkCaDocs.js.map +1 -0
- package/api/procedures/modifyAllowance.d.ts +42 -0
- package/api/procedures/modifyAllowance.d.ts.map +1 -0
- package/api/procedures/modifyAllowance.js +87 -0
- package/api/procedures/modifyAllowance.js.map +1 -0
- package/api/procedures/modifyAsset.d.ts +46 -0
- package/api/procedures/modifyAsset.d.ts.map +1 -0
- package/api/procedures/modifyAsset.js +130 -0
- package/api/procedures/modifyAsset.js.map +1 -0
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts +35 -0
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts.map +1 -0
- package/api/procedures/modifyAssetTrustedClaimIssuers.js +139 -0
- package/api/procedures/modifyAssetTrustedClaimIssuers.js.map +1 -0
- package/api/procedures/modifyCaCheckpoint.d.ts +25 -0
- package/api/procedures/modifyCaCheckpoint.d.ts.map +1 -0
- package/api/procedures/modifyCaCheckpoint.js +58 -0
- package/api/procedures/modifyCaCheckpoint.js.map +1 -0
- package/api/procedures/modifyCaDefaultConfig.d.ts +36 -0
- package/api/procedures/modifyCaDefaultConfig.d.ts.map +1 -0
- package/api/procedures/modifyCaDefaultConfig.js +119 -0
- package/api/procedures/modifyCaDefaultConfig.js.map +1 -0
- package/api/procedures/modifyClaims.d.ts +39 -0
- package/api/procedures/modifyClaims.d.ts.map +1 -0
- package/api/procedures/modifyClaims.js +205 -0
- package/api/procedures/modifyClaims.js.map +1 -0
- package/api/procedures/modifyComplianceRequirement.d.ts +35 -0
- package/api/procedures/modifyComplianceRequirement.d.ts.map +1 -0
- package/api/procedures/modifyComplianceRequirement.js +75 -0
- package/api/procedures/modifyComplianceRequirement.js.map +1 -0
- package/api/procedures/modifyCorporateActionsAgent.d.ts +31 -0
- package/api/procedures/modifyCorporateActionsAgent.d.ts.map +1 -0
- package/api/procedures/modifyCorporateActionsAgent.js +83 -0
- package/api/procedures/modifyCorporateActionsAgent.js.map +1 -0
- 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 +33 -0
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -0
- package/api/procedures/modifyInstructionAffirmation.js +158 -0
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -0
- package/api/procedures/modifyOfferingTimes.d.ts +39 -0
- package/api/procedures/modifyOfferingTimes.d.ts.map +1 -0
- package/api/procedures/modifyOfferingTimes.js +103 -0
- package/api/procedures/modifyOfferingTimes.js.map +1 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts +33 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts.map +1 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.js +87 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.js.map +1 -0
- package/api/procedures/modifySignerPermissions.d.ts +35 -0
- package/api/procedures/modifySignerPermissions.d.ts.map +1 -0
- package/api/procedures/modifySignerPermissions.js +82 -0
- package/api/procedures/modifySignerPermissions.js.map +1 -0
- package/api/procedures/modifyVenue.d.ts +32 -0
- package/api/procedures/modifyVenue.d.ts.map +1 -0
- package/api/procedures/modifyVenue.js +81 -0
- package/api/procedures/modifyVenue.js.map +1 -0
- package/api/procedures/moveFunds.d.ts +33 -0
- package/api/procedures/moveFunds.d.ts.map +1 -0
- package/api/procedures/moveFunds.js +124 -0
- package/api/procedures/moveFunds.js.map +1 -0
- package/api/procedures/payDividends.d.ts +24 -0
- package/api/procedures/payDividends.d.ts.map +1 -0
- package/api/procedures/payDividends.js +90 -0
- package/api/procedures/payDividends.js.map +1 -0
- package/api/procedures/quitCustody.d.ts +28 -0
- package/api/procedures/quitCustody.d.ts.map +1 -0
- package/api/procedures/quitCustody.js +71 -0
- package/api/procedures/quitCustody.js.map +1 -0
- package/api/procedures/quitSubsidy.d.ts +20 -0
- package/api/procedures/quitSubsidy.d.ts.map +1 -0
- package/api/procedures/quitSubsidy.js +64 -0
- package/api/procedures/quitSubsidy.js.map +1 -0
- package/api/procedures/reclaimDividendDistributionFunds.d.ts +21 -0
- package/api/procedures/reclaimDividendDistributionFunds.d.ts.map +1 -0
- package/api/procedures/reclaimDividendDistributionFunds.js +69 -0
- package/api/procedures/reclaimDividendDistributionFunds.js.map +1 -0
- package/api/procedures/redeemTokens.d.ts +25 -0
- package/api/procedures/redeemTokens.d.ts.map +1 -0
- package/api/procedures/redeemTokens.js +70 -0
- package/api/procedures/redeemTokens.js.map +1 -0
- package/api/procedures/registerIdentity.d.ts +23 -0
- package/api/procedures/registerIdentity.d.ts.map +1 -0
- package/api/procedures/registerIdentity.js +70 -0
- package/api/procedures/registerIdentity.js.map +1 -0
- package/api/procedures/removeAssetRequirement.d.ts +26 -0
- package/api/procedures/removeAssetRequirement.d.ts.map +1 -0
- package/api/procedures/removeAssetRequirement.js +62 -0
- package/api/procedures/removeAssetRequirement.js.map +1 -0
- package/api/procedures/removeCheckpointSchedule.d.ts +28 -0
- package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -0
- package/api/procedures/removeCheckpointSchedule.js +75 -0
- package/api/procedures/removeCheckpointSchedule.js.map +1 -0
- package/api/procedures/removeCorporateAction.d.ts +25 -0
- package/api/procedures/removeCorporateAction.d.ts.map +1 -0
- package/api/procedures/removeCorporateAction.js +98 -0
- package/api/procedures/removeCorporateAction.js.map +1 -0
- package/api/procedures/removeCorporateActionsAgent.d.ts +23 -0
- package/api/procedures/removeCorporateActionsAgent.d.ts.map +1 -0
- package/api/procedures/removeCorporateActionsAgent.js +60 -0
- package/api/procedures/removeCorporateActionsAgent.js.map +1 -0
- package/api/procedures/removeExternalAgent.d.ts +34 -0
- package/api/procedures/removeExternalAgent.d.ts.map +1 -0
- package/api/procedures/removeExternalAgent.js +83 -0
- package/api/procedures/removeExternalAgent.js.map +1 -0
- package/api/procedures/removePrimaryIssuanceAgent.d.ts +21 -0
- package/api/procedures/removePrimaryIssuanceAgent.d.ts.map +1 -0
- package/api/procedures/removePrimaryIssuanceAgent.js +58 -0
- package/api/procedures/removePrimaryIssuanceAgent.js.map +1 -0
- package/api/procedures/removeSecondaryAccounts.d.ts +14 -0
- package/api/procedures/removeSecondaryAccounts.d.ts.map +1 -0
- package/api/procedures/removeSecondaryAccounts.js +61 -0
- package/api/procedures/removeSecondaryAccounts.js.map +1 -0
- package/api/procedures/renamePortfolio.d.ts +26 -0
- package/api/procedures/renamePortfolio.d.ts.map +1 -0
- package/api/procedures/renamePortfolio.js +69 -0
- package/api/procedures/renamePortfolio.js.map +1 -0
- package/api/procedures/rescheduleInstruction.d.ts +17 -0
- package/api/procedures/rescheduleInstruction.d.ts.map +1 -0
- package/api/procedures/rescheduleInstruction.js +52 -0
- package/api/procedures/rescheduleInstruction.js.map +1 -0
- package/api/procedures/reserveTicker.d.ts +29 -0
- package/api/procedures/reserveTicker.d.ts.map +1 -0
- package/api/procedures/reserveTicker.js +94 -0
- package/api/procedures/reserveTicker.js.map +1 -0
- package/api/procedures/setAssetDocuments.d.ts +37 -0
- package/api/procedures/setAssetDocuments.d.ts.map +1 -0
- package/api/procedures/setAssetDocuments.js +103 -0
- package/api/procedures/setAssetDocuments.js.map +1 -0
- package/api/procedures/setAssetRequirements.d.ts +29 -0
- package/api/procedures/setAssetRequirements.d.ts.map +1 -0
- package/api/procedures/setAssetRequirements.js +81 -0
- package/api/procedures/setAssetRequirements.js.map +1 -0
- package/api/procedures/setCustodian.d.ts +27 -0
- package/api/procedures/setCustodian.d.ts.map +1 -0
- package/api/procedures/setCustodian.js +86 -0
- package/api/procedures/setCustodian.js.map +1 -0
- package/api/procedures/setGroupPermissions.d.ts +29 -0
- package/api/procedures/setGroupPermissions.d.ts.map +1 -0
- package/api/procedures/setGroupPermissions.js +61 -0
- package/api/procedures/setGroupPermissions.js.map +1 -0
- package/api/procedures/setPermissionGroup.d.ts +57 -0
- package/api/procedures/setPermissionGroup.d.ts.map +1 -0
- package/api/procedures/setPermissionGroup.js +108 -0
- package/api/procedures/setPermissionGroup.js.map +1 -0
- package/api/procedures/setTransferRestrictions.d.ts +50 -0
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -0
- package/api/procedures/setTransferRestrictions.js +204 -0
- package/api/procedures/setTransferRestrictions.js.map +1 -0
- package/api/procedures/subsidizeAccount.d.ts +21 -0
- package/api/procedures/subsidizeAccount.d.ts.map +1 -0
- package/api/procedures/subsidizeAccount.js +77 -0
- package/api/procedures/subsidizeAccount.js.map +1 -0
- package/api/procedures/toggleFreezeOffering.d.ts +21 -0
- package/api/procedures/toggleFreezeOffering.d.ts.map +1 -0
- package/api/procedures/toggleFreezeOffering.js +85 -0
- package/api/procedures/toggleFreezeOffering.js.map +1 -0
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts +18 -0
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts.map +1 -0
- package/api/procedures/toggleFreezeSecondaryAccounts.js +65 -0
- package/api/procedures/toggleFreezeSecondaryAccounts.js.map +1 -0
- package/api/procedures/toggleFreezeTransfers.d.ts +24 -0
- package/api/procedures/toggleFreezeTransfers.d.ts.map +1 -0
- package/api/procedures/toggleFreezeTransfers.js +72 -0
- package/api/procedures/toggleFreezeTransfers.js.map +1 -0
- package/api/procedures/togglePauseRequirements.d.ts +24 -0
- package/api/procedures/togglePauseRequirements.d.ts.map +1 -0
- package/api/procedures/togglePauseRequirements.js +63 -0
- package/api/procedures/togglePauseRequirements.js.map +1 -0
- package/api/procedures/transferAssetOwnership.d.ts +28 -0
- package/api/procedures/transferAssetOwnership.d.ts.map +1 -0
- package/api/procedures/transferAssetOwnership.js +61 -0
- package/api/procedures/transferAssetOwnership.js.map +1 -0
- package/api/procedures/transferPolyx.d.ts +30 -0
- package/api/procedures/transferPolyx.d.ts.map +1 -0
- package/api/procedures/transferPolyx.js +101 -0
- package/api/procedures/transferPolyx.js.map +1 -0
- package/api/procedures/transferTickerOwnership.d.ts +28 -0
- package/api/procedures/transferTickerOwnership.d.ts.map +1 -0
- package/api/procedures/transferTickerOwnership.js +70 -0
- package/api/procedures/transferTickerOwnership.js.map +1 -0
- package/api/procedures/utils.d.ts +103 -0
- package/api/procedures/utils.d.ts.map +1 -0
- package/api/procedures/utils.js +537 -0
- package/api/procedures/utils.js.map +1 -0
- package/api/procedures/waivePermissions.d.ts +34 -0
- package/api/procedures/waivePermissions.d.ts.map +1 -0
- package/api/procedures/waivePermissions.js +70 -0
- package/api/procedures/waivePermissions.js.map +1 -0
- package/base/Context.d.ts +287 -0
- package/base/Context.d.ts.map +1 -0
- package/base/Context.js +838 -0
- package/base/Context.js.map +1 -0
- package/base/PolymeshError.d.ts +17 -0
- package/base/PolymeshError.d.ts.map +1 -0
- package/base/PolymeshError.js +24 -0
- package/base/PolymeshError.js.map +1 -0
- package/base/PolymeshTransaction.d.ts +54 -0
- package/base/PolymeshTransaction.d.ts.map +1 -0
- package/base/PolymeshTransaction.js +84 -0
- package/base/PolymeshTransaction.js.map +1 -0
- package/base/PolymeshTransactionBase.d.ts +163 -0
- package/base/PolymeshTransactionBase.d.ts.map +1 -0
- package/base/PolymeshTransactionBase.js +322 -0
- package/base/PolymeshTransactionBase.js.map +1 -0
- package/base/PolymeshTransactionBatch.d.ts +51 -0
- package/base/PolymeshTransactionBatch.d.ts.map +1 -0
- package/base/PolymeshTransactionBatch.js +107 -0
- package/base/PolymeshTransactionBatch.js.map +1 -0
- 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 +92 -0
- package/base/Procedure.d.ts.map +1 -0
- package/base/Procedure.js +362 -0
- package/base/Procedure.js.map +1 -0
- 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 +9 -0
- package/base/types.d.ts.map +1 -0
- package/base/types.js +4 -0
- package/base/types.js.map +1 -0
- package/generated/types.d.ts +253 -0
- package/generated/types.d.ts.map +1 -0
- package/generated/types.js +258 -0
- package/generated/types.js.map +1 -0
- package/generated/utils.d.ts +12 -0
- package/generated/utils.d.ts.map +1 -0
- package/generated/utils.js +767 -0
- package/generated/utils.js.map +1 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +12 -0
- package/index.js.map +1 -0
- package/internal.d.ts +107 -0
- package/internal.d.ts.map +1 -0
- package/internal.js +219 -0
- package/internal.js.map +1 -0
- package/middleware/queries.d.ts +129 -0
- package/middleware/queries.d.ts.map +1 -0
- package/middleware/queries.js +701 -0
- package/middleware/queries.js.map +1 -0
- package/middleware/types.d.ts +1624 -0
- package/middleware/types.d.ts.map +1 -0
- package/middleware/types.js +866 -0
- package/middleware/types.js.map +1 -0
- package/npm-package/polymeshassociation-polymesh-sdk-14.0.0-beta.11.tgz +0 -0
- package/package.json +131 -0
- package/polkadot/asset/definitions.d.ts +25 -0
- package/polkadot/asset/definitions.d.ts.map +1 -0
- package/polkadot/asset/definitions.js +96 -0
- package/polkadot/asset/definitions.js.map +1 -0
- package/polkadot/asset/index.d.ts +2 -0
- package/polkadot/asset/index.d.ts.map +1 -0
- package/polkadot/asset/index.js +20 -0
- package/polkadot/asset/index.js.map +1 -0
- package/polkadot/asset/types.d.ts +2 -0
- package/polkadot/asset/types.d.ts.map +1 -0
- package/polkadot/asset/types.js +5 -0
- package/polkadot/asset/types.js.map +1 -0
- package/polkadot/augment-api-consts.d.ts +178 -0
- package/polkadot/augment-api-consts.d.ts.map +1 -0
- package/polkadot/augment-api-consts.js +5 -0
- package/polkadot/augment-api-consts.js.map +1 -0
- package/polkadot/augment-api-errors.d.ts +1638 -0
- package/polkadot/augment-api-errors.d.ts.map +1 -0
- package/polkadot/augment-api-errors.js +5 -0
- package/polkadot/augment-api-errors.js.map +1 -0
- package/polkadot/augment-api-events.d.ts +1671 -0
- package/polkadot/augment-api-events.d.ts.map +1 -0
- package/polkadot/augment-api-events.js +5 -0
- package/polkadot/augment-api-events.js.map +1 -0
- package/polkadot/augment-api-query.d.ts +1993 -0
- package/polkadot/augment-api-query.d.ts.map +1 -0
- package/polkadot/augment-api-query.js +5 -0
- package/polkadot/augment-api-query.js.map +1 -0
- package/polkadot/augment-api-rpc.d.ts +695 -0
- package/polkadot/augment-api-rpc.d.ts.map +1 -0
- package/polkadot/augment-api-rpc.js +5 -0
- package/polkadot/augment-api-rpc.js.map +1 -0
- package/polkadot/augment-api-tx.d.ts +5464 -0
- package/polkadot/augment-api-tx.d.ts.map +1 -0
- package/polkadot/augment-api-tx.js +5 -0
- package/polkadot/augment-api-tx.js.map +1 -0
- package/polkadot/augment-api.d.ts +8 -0
- package/polkadot/augment-api.d.ts.map +1 -0
- package/polkadot/augment-api.js +12 -0
- package/polkadot/augment-api.js.map +1 -0
- package/polkadot/augment-types.d.ts +3243 -0
- package/polkadot/augment-types.d.ts.map +1 -0
- package/polkadot/augment-types.js +5 -0
- package/polkadot/augment-types.js.map +1 -0
- package/polkadot/compliance/definitions.d.ts +16 -0
- package/polkadot/compliance/definitions.d.ts.map +1 -0
- package/polkadot/compliance/definitions.js +35 -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 +8 -0
- package/polkadot/definitions.d.ts.map +1 -0
- package/polkadot/definitions.js +22 -0
- package/polkadot/definitions.js.map +1 -0
- package/polkadot/identity/definitions.d.ts +61 -0
- package/polkadot/identity/definitions.d.ts.map +1 -0
- package/polkadot/identity/definitions.js +120 -0
- package/polkadot/identity/definitions.js.map +1 -0
- package/polkadot/identity/index.d.ts +2 -0
- package/polkadot/identity/index.d.ts.map +1 -0
- package/polkadot/identity/index.js +20 -0
- package/polkadot/identity/index.js.map +1 -0
- package/polkadot/identity/types.d.ts +2 -0
- package/polkadot/identity/types.d.ts.map +1 -0
- package/polkadot/identity/types.js +5 -0
- package/polkadot/identity/types.js.map +1 -0
- package/polkadot/index.d.ts +2 -0
- package/polkadot/index.d.ts.map +1 -0
- package/polkadot/index.js +20 -0
- package/polkadot/index.js.map +1 -0
- package/polkadot/pips/definitions.d.ts +34 -0
- package/polkadot/pips/definitions.d.ts.map +1 -0
- package/polkadot/pips/definitions.js +57 -0
- package/polkadot/pips/definitions.js.map +1 -0
- package/polkadot/pips/index.d.ts +2 -0
- package/polkadot/pips/index.d.ts.map +1 -0
- package/polkadot/pips/index.js +20 -0
- package/polkadot/pips/index.js.map +1 -0
- package/polkadot/pips/types.d.ts +2 -0
- package/polkadot/pips/types.d.ts.map +1 -0
- package/polkadot/pips/types.js +5 -0
- package/polkadot/pips/types.js.map +1 -0
- package/polkadot/polymesh/definitions.d.ts +855 -0
- package/polkadot/polymesh/definitions.d.ts.map +1 -0
- package/polkadot/polymesh/definitions.js +1139 -0
- package/polkadot/polymesh/definitions.js.map +1 -0
- package/polkadot/polymesh/index.d.ts +2 -0
- package/polkadot/polymesh/index.d.ts.map +1 -0
- package/polkadot/polymesh/index.js +20 -0
- package/polkadot/polymesh/index.js.map +1 -0
- package/polkadot/polymesh/types.d.ts +1408 -0
- package/polkadot/polymesh/types.d.ts.map +1 -0
- package/polkadot/polymesh/types.js +5 -0
- package/polkadot/polymesh/types.js.map +1 -0
- package/polkadot/portfolio/definitions.d.ts +25 -0
- package/polkadot/portfolio/definitions.d.ts.map +1 -0
- package/polkadot/portfolio/definitions.js +31 -0
- package/polkadot/portfolio/definitions.js.map +1 -0
- package/polkadot/portfolio/index.d.ts +2 -0
- package/polkadot/portfolio/index.d.ts.map +1 -0
- package/polkadot/portfolio/index.js +20 -0
- package/polkadot/portfolio/index.js.map +1 -0
- package/polkadot/portfolio/types.d.ts +2 -0
- package/polkadot/portfolio/types.d.ts.map +1 -0
- package/polkadot/portfolio/types.js +5 -0
- package/polkadot/portfolio/types.js.map +1 -0
- package/polkadot/protocolFee/definitions.d.ts +16 -0
- package/polkadot/protocolFee/definitions.d.ts.map +1 -0
- package/polkadot/protocolFee/definitions.js +25 -0
- package/polkadot/protocolFee/definitions.js.map +1 -0
- package/polkadot/protocolFee/index.d.ts +2 -0
- package/polkadot/protocolFee/index.d.ts.map +1 -0
- package/polkadot/protocolFee/index.js +20 -0
- package/polkadot/protocolFee/index.js.map +1 -0
- package/polkadot/protocolFee/types.d.ts +2 -0
- package/polkadot/protocolFee/types.d.ts.map +1 -0
- package/polkadot/protocolFee/types.js +5 -0
- package/polkadot/protocolFee/types.js.map +1 -0
- package/polkadot/schema.d.ts +994 -0
- package/polkadot/schema.d.ts.map +1 -0
- package/polkadot/schema.js +1451 -0
- package/polkadot/schema.js.map +1 -0
- package/polkadot/staking/definitions.d.ts +16 -0
- package/polkadot/staking/definitions.d.ts.map +1 -0
- package/polkadot/staking/definitions.js +20 -0
- package/polkadot/staking/definitions.js.map +1 -0
- package/polkadot/staking/index.d.ts +2 -0
- package/polkadot/staking/index.d.ts.map +1 -0
- package/polkadot/staking/index.js +20 -0
- package/polkadot/staking/index.js.map +1 -0
- package/polkadot/staking/types.d.ts +2 -0
- package/polkadot/staking/types.d.ts.map +1 -0
- package/polkadot/staking/types.js +5 -0
- package/polkadot/staking/types.js.map +1 -0
- package/polkadot/types.d.ts +472 -0
- package/polkadot/types.d.ts.map +1 -0
- package/polkadot/types.js +531 -0
- package/polkadot/types.js.map +1 -0
- package/types/index.d.ts +1164 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +506 -0
- package/types/index.js.map +1 -0
- package/types/internal.d.ts +304 -0
- package/types/internal.d.ts.map +1 -0
- package/types/internal.js +34 -0
- package/types/internal.js.map +1 -0
- package/types/utils/index.d.ts +47 -0
- package/types/utils/index.d.ts.map +1 -0
- package/types/utils/index.js +11 -0
- package/types/utils/index.js.map +1 -0
- package/utils/constants.d.ts +63 -0
- package/utils/constants.d.ts.map +1 -0
- package/utils/constants.js +109 -0
- package/utils/constants.js.map +1 -0
- package/utils/conversion.d.ts +584 -0
- package/utils/conversion.d.ts.map +1 -0
- package/utils/conversion.js +2649 -0
- package/utils/conversion.js.map +1 -0
- package/utils/index.d.ts +4 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/index.js +28 -0
- package/utils/index.js.map +1 -0
- package/utils/internal.d.ts +296 -0
- package/utils/internal.d.ts.map +1 -0
- package/utils/internal.js +786 -0
- package/utils/internal.js.map +1 -0
- package/utils/typeguards.d.ts +175 -0
- package/utils/typeguards.d.ts.map +1 -0
- package/utils/typeguards.js +312 -0
- package/utils/typeguards.js.map +1 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { HumanReadable as CorporateActionHumanReadable, Params as CorporateActionParams, UniqueIdentifiers } from "../CorporateAction";
|
|
3
|
+
import { Checkpoint, CheckpointSchedule, Context, CorporateActionBase, DefaultPortfolio, Identity, ModifyCaCheckpointParams, NumberedPortfolio, PayDividendsParams } from "../../../internal";
|
|
4
|
+
import { CorporateActionKind, DistributionPayment, DividendDistributionDetails, InputCaCheckpoint, NoArgsProcedureMethod, ProcedureMethod, ResultSet } from "../../../types";
|
|
5
|
+
import { HumanReadableType, Modify } from "../../../types/utils";
|
|
6
|
+
import { DistributionParticipant } from './types';
|
|
7
|
+
interface HumanReadable extends CorporateActionHumanReadable {
|
|
8
|
+
origin: HumanReadableType<DefaultPortfolio | NumberedPortfolio>;
|
|
9
|
+
currency: string;
|
|
10
|
+
perShare: string;
|
|
11
|
+
maxAmount: string;
|
|
12
|
+
expiryDate: string | null;
|
|
13
|
+
paymentDate: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DividendDistributionParams {
|
|
16
|
+
origin: DefaultPortfolio | NumberedPortfolio;
|
|
17
|
+
currency: string;
|
|
18
|
+
perShare: BigNumber;
|
|
19
|
+
maxAmount: BigNumber;
|
|
20
|
+
expiryDate: null | Date;
|
|
21
|
+
paymentDate: Date;
|
|
22
|
+
}
|
|
23
|
+
export declare type Params = CorporateActionParams & DividendDistributionParams;
|
|
24
|
+
/**
|
|
25
|
+
* Represents a Corporate Action via which an Asset issuer wishes to distribute dividends
|
|
26
|
+
* between a subset of the Asset Holders (targets)
|
|
27
|
+
*/
|
|
28
|
+
export declare class DividendDistribution extends CorporateActionBase {
|
|
29
|
+
/**
|
|
30
|
+
* Portfolio from which the dividends will be distributed
|
|
31
|
+
*/
|
|
32
|
+
origin: DefaultPortfolio | NumberedPortfolio;
|
|
33
|
+
/**
|
|
34
|
+
* ticker of the currency in which dividends are being distributed
|
|
35
|
+
*/
|
|
36
|
+
currency: string;
|
|
37
|
+
/**
|
|
38
|
+
* amount of `currency` to pay for each share held by the Asset Holders
|
|
39
|
+
*/
|
|
40
|
+
perShare: BigNumber;
|
|
41
|
+
/**
|
|
42
|
+
* maximum amount of `currency` to be distributed. Distributions are "first come, first served", so funds can be depleted before
|
|
43
|
+
* every Asset Holder receives their corresponding amount
|
|
44
|
+
*/
|
|
45
|
+
maxAmount: BigNumber;
|
|
46
|
+
/**
|
|
47
|
+
* date after which dividends can no longer be paid/reclaimed. A null value means the distribution never expires
|
|
48
|
+
*/
|
|
49
|
+
expiryDate: null | Date;
|
|
50
|
+
/**
|
|
51
|
+
* date starting from which dividends can be paid/reclaimed
|
|
52
|
+
*/
|
|
53
|
+
paymentDate: Date;
|
|
54
|
+
/**
|
|
55
|
+
* type of dividend distribution being represented. The chain enforces it to be either PredictableBenefit or UnpredictableBenefit
|
|
56
|
+
*/
|
|
57
|
+
protected kind: CorporateActionKind.UnpredictableBenefit | CorporateActionKind.PredictableBenefit;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
constructor(args: UniqueIdentifiers & Params, context: Context);
|
|
62
|
+
/**
|
|
63
|
+
* Claim the Dividends corresponding to the signing Identity
|
|
64
|
+
*
|
|
65
|
+
* @note if `currency` is indivisible, the Identity's share will be rounded down to the nearest integer (after taxes are withheld)
|
|
66
|
+
*/
|
|
67
|
+
claim: NoArgsProcedureMethod<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Modify the Distribution's Checkpoint
|
|
70
|
+
*/
|
|
71
|
+
modifyCheckpoint: ProcedureMethod<Modify<ModifyCaCheckpointParams, {
|
|
72
|
+
checkpoint: InputCaCheckpoint;
|
|
73
|
+
}>, void>;
|
|
74
|
+
/**
|
|
75
|
+
* Transfer the corresponding share of the dividends to a list of Identities
|
|
76
|
+
*
|
|
77
|
+
* @note due to performance issues, we do not validate that the distribution has enough remaining funds to pay the corresponding amount to the supplied Identities
|
|
78
|
+
* @note if `currency` is indivisible, the Identity's share will be rounded down to the nearest integer (after taxes are withheld)
|
|
79
|
+
*/
|
|
80
|
+
pay: ProcedureMethod<PayDividendsParams, void>;
|
|
81
|
+
/**
|
|
82
|
+
* Reclaim any remaining funds back to the origin Portfolio. This can only be done after the Distribution has expired
|
|
83
|
+
*
|
|
84
|
+
* @note withheld taxes are also reclaimed in the same transaction
|
|
85
|
+
*
|
|
86
|
+
* @note required roles:
|
|
87
|
+
* - Origin Portfolio Custodian
|
|
88
|
+
*/
|
|
89
|
+
reclaimFunds: NoArgsProcedureMethod<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Retrieve the Checkpoint associated with this Dividend Distribution. If the Checkpoint is scheduled and has not been created yet,
|
|
92
|
+
* the corresponding CheckpointSchedule is returned instead
|
|
93
|
+
*/
|
|
94
|
+
checkpoint(): Promise<Checkpoint | CheckpointSchedule>;
|
|
95
|
+
/**
|
|
96
|
+
* Retrieve whether the Distribution exists
|
|
97
|
+
*/
|
|
98
|
+
exists(): Promise<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Retrieve details associated with this Dividend Distribution
|
|
101
|
+
*/
|
|
102
|
+
details(): Promise<DividendDistributionDetails>;
|
|
103
|
+
/**
|
|
104
|
+
* Retrieve a comprehensive list of all Identities that are entitled to dividends in this Distribution (participants),
|
|
105
|
+
* the amount they are entitled to and whether they have been paid or not
|
|
106
|
+
*
|
|
107
|
+
* @note this request can take a lot of time with large amounts of Asset Holders
|
|
108
|
+
* @note if the Distribution Checkpoint hasn't been created yet, the result will be an empty array.
|
|
109
|
+
* This is because the Distribution participants cannot be determined without a Checkpoint
|
|
110
|
+
*/
|
|
111
|
+
getParticipants(): Promise<DistributionParticipant[]>;
|
|
112
|
+
/**
|
|
113
|
+
* Retrieve an Identity that is entitled to dividends in this Distribution (participant),
|
|
114
|
+
* the amount it is entitled to and whether it has been paid or not
|
|
115
|
+
*
|
|
116
|
+
* @param args.identity - defaults to the signing Identity
|
|
117
|
+
*
|
|
118
|
+
* @note if the Distribution Checkpoint hasn't been created yet, the result will be null.
|
|
119
|
+
* This is because the Distribution participant's corresponding payment cannot be determined without a Checkpoint
|
|
120
|
+
*/
|
|
121
|
+
getParticipant(args?: {
|
|
122
|
+
identity: string | Identity;
|
|
123
|
+
}): Promise<DistributionParticipant | null>;
|
|
124
|
+
/**
|
|
125
|
+
* @hidden
|
|
126
|
+
*/
|
|
127
|
+
private assembleParticipant;
|
|
128
|
+
/**
|
|
129
|
+
* @hidden
|
|
130
|
+
*/
|
|
131
|
+
private fetchDistribution;
|
|
132
|
+
/**
|
|
133
|
+
* Retrieve the amount of taxes that have been withheld up to this point in this Distribution
|
|
134
|
+
*
|
|
135
|
+
* @note uses the middleware
|
|
136
|
+
*/
|
|
137
|
+
getWithheldTax(): Promise<BigNumber>;
|
|
138
|
+
/**
|
|
139
|
+
* Retrieve the payment history for this Distribution
|
|
140
|
+
*
|
|
141
|
+
* @note uses the middleware
|
|
142
|
+
* @note supports pagination
|
|
143
|
+
*/
|
|
144
|
+
getPaymentHistory(opts?: {
|
|
145
|
+
size?: BigNumber;
|
|
146
|
+
start?: BigNumber;
|
|
147
|
+
}): Promise<ResultSet<DistributionPayment>>;
|
|
148
|
+
/**
|
|
149
|
+
* @hidden
|
|
150
|
+
*/
|
|
151
|
+
private getParticipantStatuses;
|
|
152
|
+
/**
|
|
153
|
+
* Return the Dividend Distribution's static data
|
|
154
|
+
*/
|
|
155
|
+
toHuman(): HumanReadable;
|
|
156
|
+
}
|
|
157
|
+
export {};
|
|
158
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/DividendDistribution/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AAIrC,OAAO,EACL,aAAa,IAAI,4BAA4B,EAC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,IAAI,GAAE;QAAE,IAAI,CAAC,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAO,GACjD,OAAO,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IA8E1C;;OAEG;YACW,sBAAsB;IA4CpC;;OAEG;IACa,OAAO,IAAI,aAAa;CAUzC"}
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.DividendDistribution = void 0;
|
|
27
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
28
|
+
const bluebird_1 = __importDefault(require("bluebird"));
|
|
29
|
+
const lodash_1 = require("lodash");
|
|
30
|
+
const internal_1 = require("../../../internal");
|
|
31
|
+
const queries_1 = require("../../../middleware/queries");
|
|
32
|
+
const types_1 = require("../../../types");
|
|
33
|
+
const utils_1 = require("../../../types/utils");
|
|
34
|
+
const constants_1 = require("../../../utils/constants");
|
|
35
|
+
const conversion_1 = require("../../../utils/conversion");
|
|
36
|
+
const internal_2 = require("../../../utils/internal");
|
|
37
|
+
const notExistsMessage = 'The Dividend Distribution no longer exists';
|
|
38
|
+
/**
|
|
39
|
+
* Represents a Corporate Action via which an Asset issuer wishes to distribute dividends
|
|
40
|
+
* between a subset of the Asset Holders (targets)
|
|
41
|
+
*/
|
|
42
|
+
class DividendDistribution extends internal_1.CorporateActionBase {
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
constructor(args, context) {
|
|
47
|
+
const { origin, currency, perShare, maxAmount, expiryDate, paymentDate } = args, corporateActionArgs = __rest(args, ["origin", "currency", "perShare", "maxAmount", "expiryDate", "paymentDate"]);
|
|
48
|
+
super(Object.assign({}, corporateActionArgs), context);
|
|
49
|
+
this.origin = origin;
|
|
50
|
+
this.currency = currency;
|
|
51
|
+
this.perShare = perShare;
|
|
52
|
+
this.maxAmount = maxAmount;
|
|
53
|
+
this.expiryDate = expiryDate;
|
|
54
|
+
this.paymentDate = paymentDate;
|
|
55
|
+
this.pay = (0, internal_2.createProcedureMethod)({
|
|
56
|
+
getProcedureAndArgs: payDividendsArgs => [
|
|
57
|
+
internal_1.payDividends,
|
|
58
|
+
Object.assign(Object.assign({}, payDividendsArgs), { distribution: this }),
|
|
59
|
+
],
|
|
60
|
+
}, context);
|
|
61
|
+
this.claim = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: () => [internal_1.claimDividends, { distribution: this }], voidArgs: true }, context);
|
|
62
|
+
this.modifyCheckpoint = (0, internal_2.createProcedureMethod)({
|
|
63
|
+
getProcedureAndArgs: modifyCheckpointArgs => [
|
|
64
|
+
internal_1.modifyDistributionCheckpoint,
|
|
65
|
+
Object.assign({ distribution: this }, modifyCheckpointArgs),
|
|
66
|
+
],
|
|
67
|
+
}, context);
|
|
68
|
+
this.reclaimFunds = (0, internal_2.createProcedureMethod)({
|
|
69
|
+
getProcedureAndArgs: () => [internal_1.reclaimDividendDistributionFunds, { distribution: this }],
|
|
70
|
+
voidArgs: true,
|
|
71
|
+
}, context);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve the Checkpoint associated with this Dividend Distribution. If the Checkpoint is scheduled and has not been created yet,
|
|
75
|
+
* the corresponding CheckpointSchedule is returned instead
|
|
76
|
+
*/
|
|
77
|
+
checkpoint() {
|
|
78
|
+
const _super = Object.create(null, {
|
|
79
|
+
checkpoint: { get: () => super.checkpoint }
|
|
80
|
+
});
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const exists = yield this.exists();
|
|
83
|
+
if (!exists) {
|
|
84
|
+
throw new internal_1.PolymeshError({
|
|
85
|
+
code: types_1.ErrorCode.DataUnavailable,
|
|
86
|
+
message: notExistsMessage,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
const checkpoint = yield _super.checkpoint.call(this);
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
91
|
+
return checkpoint;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Retrieve whether the Distribution exists
|
|
96
|
+
*/
|
|
97
|
+
exists() {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
const distribution = yield this.fetchDistribution();
|
|
100
|
+
return distribution.isSome;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Retrieve details associated with this Dividend Distribution
|
|
105
|
+
*/
|
|
106
|
+
details() {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const distribution = yield this.fetchDistribution();
|
|
109
|
+
if (distribution.isNone) {
|
|
110
|
+
throw new internal_1.PolymeshError({
|
|
111
|
+
code: types_1.ErrorCode.DataUnavailable,
|
|
112
|
+
message: notExistsMessage,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
const { reclaimed, remaining } = distribution.unwrap();
|
|
116
|
+
return {
|
|
117
|
+
remainingFunds: (0, conversion_1.balanceToBigNumber)(remaining),
|
|
118
|
+
fundsReclaimed: (0, conversion_1.boolToBoolean)(reclaimed),
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Retrieve a comprehensive list of all Identities that are entitled to dividends in this Distribution (participants),
|
|
124
|
+
* the amount they are entitled to and whether they have been paid or not
|
|
125
|
+
*
|
|
126
|
+
* @note this request can take a lot of time with large amounts of Asset Holders
|
|
127
|
+
* @note if the Distribution Checkpoint hasn't been created yet, the result will be an empty array.
|
|
128
|
+
* This is because the Distribution participants cannot be determined without a Checkpoint
|
|
129
|
+
*/
|
|
130
|
+
getParticipants() {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
const { targets: { identities: targetIdentities, treatment }, paymentDate, } = this;
|
|
133
|
+
let balances = [];
|
|
134
|
+
const checkpoint = yield this.checkpoint();
|
|
135
|
+
if (checkpoint instanceof internal_1.CheckpointSchedule) {
|
|
136
|
+
return [];
|
|
137
|
+
}
|
|
138
|
+
let allFetched = false;
|
|
139
|
+
let start;
|
|
140
|
+
while (!allFetched) {
|
|
141
|
+
const { data, next } = yield checkpoint.allBalances({ size: constants_1.MAX_PAGE_SIZE, start });
|
|
142
|
+
start = next || undefined;
|
|
143
|
+
allFetched = !next;
|
|
144
|
+
balances = [...balances, ...data];
|
|
145
|
+
}
|
|
146
|
+
const isExclusion = treatment === types_1.TargetTreatment.Exclude;
|
|
147
|
+
const participants = [];
|
|
148
|
+
const clonedTargets = [...targetIdentities];
|
|
149
|
+
balances.forEach(({ identity, balance }) => {
|
|
150
|
+
const isTarget = !!(0, lodash_1.remove)(clonedTargets, target => identity.isEqual(target)).length;
|
|
151
|
+
if (balance.gt(0) && (0, internal_2.xor)(isTarget, isExclusion)) {
|
|
152
|
+
participants.push(this.assembleParticipant(identity, balance));
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
// participants can't be paid before the payment date
|
|
156
|
+
if (paymentDate < new Date()) {
|
|
157
|
+
return participants;
|
|
158
|
+
}
|
|
159
|
+
const paidStatuses = yield this.getParticipantStatuses(participants);
|
|
160
|
+
return paidStatuses.map((paid, index) => (Object.assign(Object.assign({}, participants[index]), { paid })));
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Retrieve an Identity that is entitled to dividends in this Distribution (participant),
|
|
165
|
+
* the amount it is entitled to and whether it has been paid or not
|
|
166
|
+
*
|
|
167
|
+
* @param args.identity - defaults to the signing Identity
|
|
168
|
+
*
|
|
169
|
+
* @note if the Distribution Checkpoint hasn't been created yet, the result will be null.
|
|
170
|
+
* This is because the Distribution participant's corresponding payment cannot be determined without a Checkpoint
|
|
171
|
+
*/
|
|
172
|
+
getParticipant(args) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
const { id: localId, asset: { ticker }, targets: { identities: targetIdentities, treatment }, paymentDate, context, context: { polymeshApi: { query }, }, } = this;
|
|
175
|
+
const checkpoint = yield this.checkpoint();
|
|
176
|
+
if (checkpoint instanceof internal_1.CheckpointSchedule) {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
const [identity, balance] = yield Promise.all([
|
|
180
|
+
(0, internal_2.getIdentity)(args === null || args === void 0 ? void 0 : args.identity, context),
|
|
181
|
+
checkpoint.balance(args),
|
|
182
|
+
]);
|
|
183
|
+
const isTarget = !!targetIdentities.find(target => identity.isEqual(target));
|
|
184
|
+
let participant;
|
|
185
|
+
const isExclusion = treatment === types_1.TargetTreatment.Exclude;
|
|
186
|
+
if (balance.gt(0) && (0, internal_2.xor)(isTarget, isExclusion)) {
|
|
187
|
+
participant = this.assembleParticipant(identity, balance);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
// participant can't be paid before the payment date
|
|
193
|
+
if (paymentDate < new Date()) {
|
|
194
|
+
return participant;
|
|
195
|
+
}
|
|
196
|
+
const rawDid = (0, conversion_1.stringToIdentityId)(identity.did, context);
|
|
197
|
+
const rawCaId = (0, conversion_1.corporateActionIdentifierToCaId)({ ticker, localId }, context);
|
|
198
|
+
const holderPaid = yield query.capitalDistribution.holderPaid([rawCaId, rawDid]);
|
|
199
|
+
const paid = (0, conversion_1.boolToBoolean)(holderPaid);
|
|
200
|
+
return Object.assign(Object.assign({}, participant), { paid });
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* @hidden
|
|
205
|
+
*/
|
|
206
|
+
assembleParticipant(identity, balance) {
|
|
207
|
+
const { defaultTaxWithholding, taxWithholdings, perShare } = this;
|
|
208
|
+
let taxWithholdingPercentage = defaultTaxWithholding;
|
|
209
|
+
const taxWithholding = taxWithholdings.find(({ identity: taxIdentity }) => identity.isEqual(taxIdentity));
|
|
210
|
+
if (taxWithholding) {
|
|
211
|
+
taxWithholdingPercentage = taxWithholding.percentage;
|
|
212
|
+
}
|
|
213
|
+
const amount = balance.multipliedBy(perShare);
|
|
214
|
+
const amountAfterTax = amount
|
|
215
|
+
.minus(amount.multipliedBy(taxWithholdingPercentage).dividedBy(100).decimalPlaces(constants_1.MAX_DECIMALS))
|
|
216
|
+
.decimalPlaces(constants_1.MAX_DECIMALS);
|
|
217
|
+
return {
|
|
218
|
+
identity,
|
|
219
|
+
amount,
|
|
220
|
+
taxWithholdingPercentage,
|
|
221
|
+
amountAfterTax,
|
|
222
|
+
paid: false,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @hidden
|
|
227
|
+
*/
|
|
228
|
+
fetchDistribution() {
|
|
229
|
+
const { asset: { ticker }, id, context, } = this;
|
|
230
|
+
return context.polymeshApi.query.capitalDistribution.distributions((0, conversion_1.corporateActionIdentifierToCaId)({ ticker, localId: id }, context));
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Retrieve the amount of taxes that have been withheld up to this point in this Distribution
|
|
234
|
+
*
|
|
235
|
+
* @note uses the middleware
|
|
236
|
+
*/
|
|
237
|
+
getWithheldTax() {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
const { id, asset: { ticker }, context, } = this;
|
|
240
|
+
const taxPromise = context.queryMiddleware((0, queries_1.getWithholdingTaxesOfCa)({
|
|
241
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
242
|
+
CAId: { ticker, localId: id.toNumber() },
|
|
243
|
+
}));
|
|
244
|
+
const [exists, result] = yield Promise.all([this.exists(), taxPromise]);
|
|
245
|
+
if (!exists) {
|
|
246
|
+
throw new internal_1.PolymeshError({
|
|
247
|
+
code: types_1.ErrorCode.DataUnavailable,
|
|
248
|
+
message: notExistsMessage,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
252
|
+
const { taxes } = result.data.getWithholdingTaxesOfCA;
|
|
253
|
+
return new bignumber_js_1.default(taxes);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Retrieve the payment history for this Distribution
|
|
258
|
+
*
|
|
259
|
+
* @note uses the middleware
|
|
260
|
+
* @note supports pagination
|
|
261
|
+
*/
|
|
262
|
+
getPaymentHistory(opts = {}) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
const { id, asset: { ticker }, context, context: { polymeshApi: { query: { system }, }, }, } = this;
|
|
265
|
+
const { size, start } = opts;
|
|
266
|
+
const paymentsPromise = context.queryMiddleware((0, queries_1.getHistoryOfPaymentEventsForCa)({
|
|
267
|
+
CAId: { ticker, localId: id.toNumber() },
|
|
268
|
+
fromDate: null,
|
|
269
|
+
toDate: null,
|
|
270
|
+
count: size === null || size === void 0 ? void 0 : size.toNumber(),
|
|
271
|
+
skip: start === null || start === void 0 ? void 0 : start.toNumber(),
|
|
272
|
+
}));
|
|
273
|
+
const [exists, result] = yield Promise.all([this.exists(), paymentsPromise]);
|
|
274
|
+
if (!exists) {
|
|
275
|
+
throw new internal_1.PolymeshError({
|
|
276
|
+
code: types_1.ErrorCode.DataUnavailable,
|
|
277
|
+
message: notExistsMessage,
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
const { data: { getHistoryOfPaymentEventsForCA: getHistoryOfPaymentEventsForCaResult }, } = result;
|
|
281
|
+
const { items, totalCount } = getHistoryOfPaymentEventsForCaResult;
|
|
282
|
+
const count = new bignumber_js_1.default(totalCount);
|
|
283
|
+
const data = [];
|
|
284
|
+
const multiParams = [];
|
|
285
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
286
|
+
items.forEach(item => {
|
|
287
|
+
const { blockId, datetime, eventDid: did, balance, tax } = item;
|
|
288
|
+
const blockNumber = new bignumber_js_1.default(blockId);
|
|
289
|
+
multiParams.push((0, conversion_1.bigNumberToU32)(blockNumber, context));
|
|
290
|
+
data.push({
|
|
291
|
+
blockNumber,
|
|
292
|
+
date: new Date(datetime),
|
|
293
|
+
target: new internal_1.Identity({ did }, context),
|
|
294
|
+
amount: new bignumber_js_1.default(balance).shiftedBy(-6),
|
|
295
|
+
withheldTax: new bignumber_js_1.default(tax).shiftedBy(-4),
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
/* eslint-enable @typescript-eslint/no-non-null-assertion */
|
|
299
|
+
const next = (0, internal_2.calculateNextKey)(count, size, start);
|
|
300
|
+
let hashes = [];
|
|
301
|
+
if (multiParams.length) {
|
|
302
|
+
hashes = yield system.blockHash.multi(multiParams);
|
|
303
|
+
}
|
|
304
|
+
return {
|
|
305
|
+
data: data.map((payment, index) => (Object.assign(Object.assign({}, payment), { blockHash: (0, conversion_1.hashToString)(hashes[index]) }))),
|
|
306
|
+
next,
|
|
307
|
+
count,
|
|
308
|
+
};
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* @hidden
|
|
313
|
+
*/
|
|
314
|
+
getParticipantStatuses(participants) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
+
const { asset: { ticker }, id: localId, context: { polymeshApi: { query: { capitalDistribution }, }, }, context, } = this;
|
|
317
|
+
/*
|
|
318
|
+
* For optimization, we separate the participants into chunks that can fit into one multi call
|
|
319
|
+
* and then sequentially perform bunches of said multi requests in parallel
|
|
320
|
+
*/
|
|
321
|
+
const participantChunks = (0, lodash_1.chunk)(participants, constants_1.MAX_PAGE_SIZE.toNumber());
|
|
322
|
+
const parallelCallChunks = (0, lodash_1.chunk)(participantChunks, constants_1.MAX_CONCURRENT_REQUESTS);
|
|
323
|
+
let paidStatuses = [];
|
|
324
|
+
const caId = (0, conversion_1.corporateActionIdentifierToCaId)({ localId, ticker }, context);
|
|
325
|
+
yield bluebird_1.default.each(parallelCallChunks, (callChunk) => __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
const parallelMultiCalls = callChunk.map(participantChunk => {
|
|
327
|
+
const multiParams = participantChunk.map(({ identity: { did } }) => (0, utils_1.tuple)(caId, (0, conversion_1.stringToIdentityId)(did, context)));
|
|
328
|
+
return capitalDistribution.holderPaid.multi(multiParams);
|
|
329
|
+
});
|
|
330
|
+
const results = yield Promise.all(parallelMultiCalls);
|
|
331
|
+
paidStatuses = [...paidStatuses, ...(0, lodash_1.flatten)(results).map(paid => (0, conversion_1.boolToBoolean)(paid))];
|
|
332
|
+
}));
|
|
333
|
+
return paidStatuses;
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Return the Dividend Distribution's static data
|
|
338
|
+
*/
|
|
339
|
+
toHuman() {
|
|
340
|
+
const { origin, currency, perShare, maxAmount, expiryDate, paymentDate } = this;
|
|
341
|
+
const parentReadable = super.toHuman();
|
|
342
|
+
return Object.assign(Object.assign({}, (0, internal_2.toHumanReadable)({ origin, currency, perShare, maxAmount, expiryDate, paymentDate })), parentReadable);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
exports.DividendDistribution = DividendDistribution;
|
|
346
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/entities/DividendDistribution/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,gEAAqC;AACrC,wDAAyB;AACzB,mCAAgD;AAOhD,gDAeoB;AACpB,yDAA+F;AAG/F,0CAWiB;AACjB,gDAA2F;AAC3F,wDAAyF;AACzF,0DAO4B;AAC5B,sDAM0B;AAwB1B,MAAM,gBAAgB,GAAG,4CAA4C,CAAC;AAEtE;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,8BAAmB;IAuC3D;;OAEG;IACH,YAAmB,IAAgC,EAAE,OAAgB;QACnE,MAAM,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,WAAW,KAET,IAAI,EADH,mBAAmB,UACpB,IAAI,EARF,4EAQL,CAAO,CAAC;QAET,KAAK,mBAAM,mBAAmB,GAAI,OAAO,CAAC,CAAC;QAE3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAA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interface DividendDistributionDetails {
|
|
4
|
+
remainingFunds: BigNumber;
|
|
5
|
+
/**
|
|
6
|
+
* whether the unclaimed funds have been reclaimed
|
|
7
|
+
*/
|
|
8
|
+
fundsReclaimed: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface DistributionParticipant {
|
|
11
|
+
identity: Identity;
|
|
12
|
+
amount: BigNumber;
|
|
13
|
+
/**
|
|
14
|
+
* percentage (0-100) of tax withholding for this participant
|
|
15
|
+
*/
|
|
16
|
+
taxWithholdingPercentage: BigNumber;
|
|
17
|
+
/**
|
|
18
|
+
* amount to be paid to the participant after tax deductions
|
|
19
|
+
*/
|
|
20
|
+
amountAfterTax: BigNumber;
|
|
21
|
+
paid: boolean;
|
|
22
|
+
}
|
|
23
|
+
export { DividendDistributionParams } from '.';
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/DividendDistribution/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,0BAAmB;AAEtC,MAAM,WAAW,2BAA2B;IAC1C,cAAc,EAAE,SAAS,CAAC;IAC1B;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,wBAAwB,EAAE,SAAS,CAAC;IACpC;;OAEG;IACH,cAAc,EAAE,SAAS,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;CACf;AAED,OAAO,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/api/entities/DividendDistribution/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Context } from "../../internal";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an object or resource in the Polymesh Ecosystem with its own set of properties and functionality
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class Entity<UniqueIdentifiers, HumanReadable> {
|
|
6
|
+
/**
|
|
7
|
+
* Generate the Entity's UUID from its identifying properties
|
|
8
|
+
*
|
|
9
|
+
* @param identifiers
|
|
10
|
+
*/
|
|
11
|
+
static generateUuid<Identifiers>(identifiers: Identifiers): string;
|
|
12
|
+
/**
|
|
13
|
+
* Unserialize a UUID into its Unique Identifiers
|
|
14
|
+
*
|
|
15
|
+
* @param serialized - UUID to unserialize
|
|
16
|
+
*/
|
|
17
|
+
static unserialize<Identifiers>(serialized: string): Identifiers;
|
|
18
|
+
/**
|
|
19
|
+
* Typeguard that checks whether the object passed corresponds to the unique identifiers of the class. Must be overridden
|
|
20
|
+
*
|
|
21
|
+
* @param identifiers - object to type check
|
|
22
|
+
*/
|
|
23
|
+
static isUniqueIdentifiers(identifiers: unknown): boolean;
|
|
24
|
+
uuid: string;
|
|
25
|
+
protected context: Context;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
constructor(identifiers: UniqueIdentifiers, context: Context);
|
|
30
|
+
/**
|
|
31
|
+
* Determine whether this Entity is the same as another one
|
|
32
|
+
*/
|
|
33
|
+
isEqual(entity: Entity<unknown, unknown>): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Determine whether this Entity exists on chain
|
|
36
|
+
*/
|
|
37
|
+
abstract exists(): Promise<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns Entity data in a human readable (JSON) format
|
|
40
|
+
*/
|
|
41
|
+
abstract toHuman(): HumanReadable;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=Entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../src/api/entities/Entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAiB,uBAAmB;AAIpD;;GAEG;AACH,8BAAsB,MAAM,CAAC,iBAAiB,EAAE,aAAa;IAC3D;;;;OAIG;WACW,YAAY,CAAC,WAAW,EAAE,WAAW,EAAE,WAAW,GAAG,MAAM;IAIzE;;;;OAIG;WACW,WAAW,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,GAAG,WAAW;IAcvE;;;;OAIG;WACW,mBAAmB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO;IAIzD,IAAI,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAE3B;;OAEG;gBACS,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO;IAK5D;;OAEG;IACI,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,OAAO;IAIzD;;OAEG;aACa,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;IAE1C;;OAEG;aACa,OAAO,IAAI,aAAa;CACzC"}
|