@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 @@
|
|
|
1
|
+
{"version":3,"file":"Settlements.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/Asset/Settlements.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAIrC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,0BAAmB;AAC9C,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,uBAAgB;AAc3E;;GAEG;AACH,qBAAa,WAAY,SAAQ,SAAS,CAAC,KAAK,CAAC;IAC/C;;;;;;;;;;;;;OAaG;IACU,SAAS,CAAC,IAAI,EAAE;QAC3B,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,EAAE,EAAE,aAAa,CAAC;QAClB,MAAM,EAAE,SAAS,CAAC;KACnB,GAAG,OAAO,CAAC,cAAc,CAAC;IAkD3B;;;;;;;;;;;;;;OAcG;IACU,WAAW,CAAC,IAAI,EAAE;QAC7B,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,EAAE,EAAE,aAAa,CAAC;QAClB,MAAM,EAAE,SAAS,CAAC;KACnB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CA2C/B"}
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Settlements = void 0;
|
|
13
|
+
const utils_1 = require("../../procedures/utils");
|
|
14
|
+
const internal_1 = require("../../../internal");
|
|
15
|
+
const constants_1 = require("../../../utils/constants");
|
|
16
|
+
const conversion_1 = require("../../../utils/conversion");
|
|
17
|
+
/**
|
|
18
|
+
* Handles all Asset Settlements related functionality
|
|
19
|
+
*/
|
|
20
|
+
class Settlements extends internal_1.Namespace {
|
|
21
|
+
/**
|
|
22
|
+
* Check whether it is possible to create a settlement Instruction to transfer a certain amount of this Asset's tokens between two Portfolios.
|
|
23
|
+
*
|
|
24
|
+
* @note this takes locked tokens into account. For example, if portfolio A has 1000 tokens and this function is called to check if 700 of them can be
|
|
25
|
+
* transferred to portfolio B (assuming everything else checks out) the result will be success. If an instruction is created and authorized to transfer those 700 tokens,
|
|
26
|
+
* they would become locked. From that point, further calls to this function would yield failed results because of the funds being locked, even though they haven't been
|
|
27
|
+
* transferred yet
|
|
28
|
+
*
|
|
29
|
+
* @param args.from - sender Portfolio (optional, defaults to the signing Identity's Default Portfolio)
|
|
30
|
+
* @param args.to - receiver Portfolio
|
|
31
|
+
* @param args.amount - amount of tokens to transfer
|
|
32
|
+
*
|
|
33
|
+
* @deprecated in favor of {@link canTransfer}
|
|
34
|
+
*/
|
|
35
|
+
canSettle(args) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const { parent: { ticker }, context: { polymeshApi: { rpc }, }, context, parent, } = this;
|
|
38
|
+
const { to, amount } = args;
|
|
39
|
+
let { from } = args;
|
|
40
|
+
let isDivisible;
|
|
41
|
+
if (!from) {
|
|
42
|
+
[{ isDivisible }, from] = yield Promise.all([parent.details(), context.getSigningIdentity()]);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
({ isDivisible } = yield parent.details());
|
|
46
|
+
}
|
|
47
|
+
/*
|
|
48
|
+
* The RPC requires a sender Account ID (although it's not being used at the moment). We use a dummy Account (Alice's in testnet)
|
|
49
|
+
*/
|
|
50
|
+
const senderAddress = constants_1.DUMMY_ACCOUNT_ID;
|
|
51
|
+
const fromPortfolioId = (0, conversion_1.portfolioLikeToPortfolioId)(from);
|
|
52
|
+
const toPortfolioId = (0, conversion_1.portfolioLikeToPortfolioId)(to);
|
|
53
|
+
const fromPortfolio = (0, conversion_1.portfolioIdToPortfolio)(fromPortfolioId, context);
|
|
54
|
+
const toPortfolio = (0, conversion_1.portfolioIdToPortfolio)(toPortfolioId, context);
|
|
55
|
+
const [, , fromCustodian, toCustodian] = yield Promise.all([
|
|
56
|
+
(0, utils_1.assertPortfolioExists)(fromPortfolioId, context),
|
|
57
|
+
(0, utils_1.assertPortfolioExists)(toPortfolioId, context),
|
|
58
|
+
fromPortfolio.getCustodian(),
|
|
59
|
+
toPortfolio.getCustodian(),
|
|
60
|
+
]);
|
|
61
|
+
const res = yield rpc.asset.canTransfer((0, conversion_1.stringToAccountId)(senderAddress, context), (0, conversion_1.stringToIdentityId)(fromCustodian.did, context), (0, conversion_1.portfolioIdToMeshPortfolioId)(fromPortfolioId, context), (0, conversion_1.stringToIdentityId)(toCustodian.did, context), (0, conversion_1.portfolioIdToMeshPortfolioId)(toPortfolioId, context), (0, conversion_1.stringToTicker)(ticker, context), (0, conversion_1.bigNumberToBalance)(amount, context, isDivisible));
|
|
62
|
+
return (0, conversion_1.canTransferResultToTransferStatus)(res);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check whether it is possible to create a settlement instruction to transfer a certain amount of this asset between two Portfolios. Returns a breakdown of
|
|
67
|
+
* the transaction containing general errors (such as insufficient balance or invalid receiver), any broken transfer restrictions, and any compliance
|
|
68
|
+
* failures
|
|
69
|
+
*
|
|
70
|
+
* @note this takes locked tokens into account. For example, if portfolio A has 1000 tokens and this function is called to check if 700 of them can be
|
|
71
|
+
* transferred to portfolio B (assuming everything else checks out) the result will be success. If an instruction is created and authorized to transfer those 700 tokens,
|
|
72
|
+
* they would become locked. From that point, further calls to this function would yield failed results because of the funds being locked, even though they haven't been
|
|
73
|
+
* transferred yet
|
|
74
|
+
*
|
|
75
|
+
* @param args.from - sender Portfolio (optional, defaults to the signing Identity's Default Portfolio)
|
|
76
|
+
* @param args.to - receiver Portfolio
|
|
77
|
+
* @param args.amount - amount of tokens to transfer
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
canTransfer(args) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const { parent: { ticker }, context: { polymeshApi: { rpc }, }, context, parent, } = this;
|
|
83
|
+
const { to, amount } = args;
|
|
84
|
+
let { from } = args;
|
|
85
|
+
let isDivisible;
|
|
86
|
+
if (!from) {
|
|
87
|
+
[{ isDivisible }, from] = yield Promise.all([parent.details(), context.getSigningIdentity()]);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
({ isDivisible } = yield parent.details());
|
|
91
|
+
}
|
|
92
|
+
const fromPortfolioId = (0, conversion_1.portfolioLikeToPortfolioId)(from);
|
|
93
|
+
const toPortfolioId = (0, conversion_1.portfolioLikeToPortfolioId)(to);
|
|
94
|
+
const fromPortfolio = (0, conversion_1.portfolioIdToPortfolio)(fromPortfolioId, context);
|
|
95
|
+
const toPortfolio = (0, conversion_1.portfolioIdToPortfolio)(toPortfolioId, context);
|
|
96
|
+
const [, , fromCustodian, toCustodian] = yield Promise.all([
|
|
97
|
+
(0, utils_1.assertPortfolioExists)(fromPortfolioId, context),
|
|
98
|
+
(0, utils_1.assertPortfolioExists)(toPortfolioId, context),
|
|
99
|
+
fromPortfolio.getCustodian(),
|
|
100
|
+
toPortfolio.getCustodian(),
|
|
101
|
+
]);
|
|
102
|
+
const res = yield rpc.asset.canTransferGranular((0, conversion_1.stringToIdentityId)(fromCustodian.did, context), (0, conversion_1.portfolioIdToMeshPortfolioId)(fromPortfolioId, context), (0, conversion_1.stringToIdentityId)(toCustodian.did, context), (0, conversion_1.portfolioIdToMeshPortfolioId)(toPortfolioId, context), (0, conversion_1.stringToTicker)(ticker, context), (0, conversion_1.bigNumberToBalance)(amount, context, isDivisible));
|
|
103
|
+
return (0, conversion_1.granularCanTransferResultToTransferBreakdown)(res, context);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.Settlements = Settlements;
|
|
108
|
+
//# sourceMappingURL=Settlements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settlements.js","sourceRoot":"","sources":["../../../../src/api/entities/Asset/Settlements.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,kDAA+D;AAC/D,gDAA8C;AAE9C,wDAAqD;AACrD,0DAU4B;AAE5B;;GAEG;AACH,MAAa,WAAY,SAAQ,oBAAgB;IAC/C;;;;;;;;;;;;;OAaG;IACU,SAAS,CAAC,IAItB;;YACC,MAAM,EACJ,MAAM,EAAE,EAAE,MAAM,EAAE,EAClB,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,GAAG,EAAE,GACrB,EACD,OAAO,EACP,MAAM,GACP,GAAG,IAAI,CAAC;YAET,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YAC5B,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;YACpB,IAAI,WAAW,CAAC;YAEhB,IAAI,CAAC,IAAI,EAAE;gBACT,CAAC,EAAE,WAAW,EAAE,EAAE,IAAI,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;aAC/F;iBAAM;gBACL,CAAC,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;aAC5C;YAED;;eAEG;YACH,MAAM,aAAa,GAAG,4BAAgB,CAAC;YAEvC,MAAM,eAAe,GAAG,IAAA,uCAA0B,EAAC,I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AE,OAAO,CAAC,EAC5C,IAAA,yCAA4B,EAAC,aAAa,EAAE,OAAO,CAAC,EACpD,IAAA,2BAAc,EAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,IAAA,+BAAkB,EAAC,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CACjD,CAAC;YAEF,OAAO,IAAA,yDAA4C,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACpE,CAAC;KAAA;CACF;AAnID,kCAmIC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { AddCountTransferRestrictionParams, SetCountTransferRestrictionsParams, TransferRestrictionBase } from "../../../../internal";
|
|
3
|
+
import { ActiveTransferRestrictions, CountTransferRestriction, NoArgsProcedureMethod, ProcedureMethod, TransferRestrictionType } from "../../../../types";
|
|
4
|
+
/**
|
|
5
|
+
* Handles all Count Transfer Restriction related functionality
|
|
6
|
+
*/
|
|
7
|
+
export declare class Count extends TransferRestrictionBase<TransferRestrictionType.Count> {
|
|
8
|
+
protected type: TransferRestrictionType.Count;
|
|
9
|
+
/**
|
|
10
|
+
* Add a Count Transfer Restriction to this Asset
|
|
11
|
+
*
|
|
12
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
13
|
+
*/
|
|
14
|
+
addRestriction: ProcedureMethod<Omit<AddCountTransferRestrictionParams, 'type'>, BigNumber>;
|
|
15
|
+
/**
|
|
16
|
+
* Sets all Count Transfer Restrictions on this Asset
|
|
17
|
+
*
|
|
18
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
19
|
+
*/
|
|
20
|
+
setRestrictions: ProcedureMethod<Omit<SetCountTransferRestrictionsParams, 'type'>, BigNumber>;
|
|
21
|
+
/**
|
|
22
|
+
* Removes all Count Transfer Restrictions from this Asset
|
|
23
|
+
*
|
|
24
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
25
|
+
*/
|
|
26
|
+
removeRestrictions: NoArgsProcedureMethod<BigNumber>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve all active Count Transfer Restrictions
|
|
29
|
+
*
|
|
30
|
+
* @note there is a maximum number of restrictions allowed across all types.
|
|
31
|
+
* The `availableSlots` property of the result represents how many more restrictions can be added
|
|
32
|
+
* before reaching that limit
|
|
33
|
+
*/
|
|
34
|
+
get: () => Promise<ActiveTransferRestrictions<CountTransferRestriction>>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=Count.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Count.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/TransferRestrictions/Count.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EACL,iCAAiC,EACjC,kCAAkC,EAClC,uBAAuB,EACxB,6BAAmB;AACpB,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACxB,0BAAgB;AAEjB;;GAEG;AACH,qBAAa,KAAM,SAAQ,uBAAuB,CAAC,uBAAuB,CAAC,KAAK,CAAC;IAC/E,SAAS,CAAC,IAAI,gCAA0C;IAExD;;;;OAIG;IACY,cAAc,EAAE,eAAe,CAC5C,IAAI,CAAC,iCAAiC,EAAE,MAAM,CAAC,EAC/C,SAAS,CACV,CAAC;IAEF;;;;OAIG;IACY,eAAe,EAAE,eAAe,CAC7C,IAAI,CAAC,kCAAkC,EAAE,MAAM,CAAC,EAChD,SAAS,CACV,CAAC;IAEF;;;;OAIG;IACY,kBAAkB,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAEpE;;;;;;OAMG;IACY,GAAG,EAAE,MAAM,OAAO,CAAC,0BAA0B,CAAC,wBAAwB,CAAC,CAAC,CAAC;CACzF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Count = void 0;
|
|
4
|
+
const internal_1 = require("../../../../internal");
|
|
5
|
+
const types_1 = require("../../../../types");
|
|
6
|
+
/**
|
|
7
|
+
* Handles all Count Transfer Restriction related functionality
|
|
8
|
+
*/
|
|
9
|
+
class Count extends internal_1.TransferRestrictionBase {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.type = types_1.TransferRestrictionType.Count;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Count = Count;
|
|
16
|
+
//# sourceMappingURL=Count.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Count.js","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/TransferRestrictions/Count.ts"],"names":[],"mappings":";;;AAEA,mDAIoB;AACpB,6CAMiB;AAEjB;;GAEG;AACH,MAAa,KAAM,SAAQ,kCAAsD;IAAjF;;QACY,SAAI,GAAG,+BAAuB,CAAC,KAAc,CAAC;IAqC1D,CAAC;CAAA;AAtCD,sBAsCC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { AddPercentageTransferRestrictionParams, SetPercentageTransferRestrictionsParams, TransferRestrictionBase } from "../../../../internal";
|
|
3
|
+
import { ActiveTransferRestrictions, NoArgsProcedureMethod, PercentageTransferRestriction, ProcedureMethod, TransferRestrictionType } from "../../../../types";
|
|
4
|
+
/**
|
|
5
|
+
* Handles all Percentage Transfer Restriction related functionality
|
|
6
|
+
*/
|
|
7
|
+
export declare class Percentage extends TransferRestrictionBase<TransferRestrictionType.Percentage> {
|
|
8
|
+
protected type: TransferRestrictionType.Percentage;
|
|
9
|
+
/**
|
|
10
|
+
* Add a Percentage Transfer Restriction to this Asset
|
|
11
|
+
*
|
|
12
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
13
|
+
*/
|
|
14
|
+
addRestriction: ProcedureMethod<Omit<AddPercentageTransferRestrictionParams, 'type'>, BigNumber>;
|
|
15
|
+
/**
|
|
16
|
+
* Sets all Percentage Transfer Restrictions on this Asset
|
|
17
|
+
*
|
|
18
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
19
|
+
*/
|
|
20
|
+
setRestrictions: ProcedureMethod<Omit<SetPercentageTransferRestrictionsParams, 'type'>, BigNumber>;
|
|
21
|
+
/**
|
|
22
|
+
* Removes all Percentage Transfer Restrictions from this Asset
|
|
23
|
+
*
|
|
24
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
25
|
+
*/
|
|
26
|
+
removeRestrictions: NoArgsProcedureMethod<BigNumber>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve all active Percentage Transfer Restrictions
|
|
29
|
+
*
|
|
30
|
+
* @note there is a maximum number of restrictions allowed across all types.
|
|
31
|
+
* The `availableSlots` property of the result represents how many more restrictions can be added
|
|
32
|
+
* before reaching that limit
|
|
33
|
+
*/
|
|
34
|
+
get: () => Promise<ActiveTransferRestrictions<PercentageTransferRestriction>>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=Percentage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Percentage.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/TransferRestrictions/Percentage.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EACL,sCAAsC,EACtC,uCAAuC,EACvC,uBAAuB,EACxB,6BAAmB;AACpB,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EACf,uBAAuB,EACxB,0BAAgB;AAEjB;;GAEG;AACH,qBAAa,UAAW,SAAQ,uBAAuB,CAAC,uBAAuB,CAAC,UAAU,CAAC;IACzF,SAAS,CAAC,IAAI,qCAA+C;IAE7D;;;;OAIG;IACY,cAAc,EAAE,eAAe,CAC5C,IAAI,CAAC,sCAAsC,EAAE,MAAM,CAAC,EACpD,SAAS,CACV,CAAC;IAEF;;;;OAIG;IACY,eAAe,EAAE,eAAe,CAC7C,IAAI,CAAC,uCAAuC,EAAE,MAAM,CAAC,EACrD,SAAS,CACV,CAAC;IAEF;;;;OAIG;IACY,kBAAkB,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAEpE;;;;;;OAMG;IACY,GAAG,EAAE,MAAM,OAAO,CAAC,0BAA0B,CAAC,6BAA6B,CAAC,CAAC,CAAC;CAC9F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Percentage = void 0;
|
|
4
|
+
const internal_1 = require("../../../../internal");
|
|
5
|
+
const types_1 = require("../../../../types");
|
|
6
|
+
/**
|
|
7
|
+
* Handles all Percentage Transfer Restriction related functionality
|
|
8
|
+
*/
|
|
9
|
+
class Percentage extends internal_1.TransferRestrictionBase {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.type = types_1.TransferRestrictionType.Percentage;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Percentage = Percentage;
|
|
16
|
+
//# sourceMappingURL=Percentage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Percentage.js","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/TransferRestrictions/Percentage.ts"],"names":[],"mappings":";;;AAEA,mDAIoB;AACpB,6CAMiB;AAEjB;;GAEG;AACH,MAAa,UAAW,SAAQ,kCAA2D;IAA3F;;QACY,SAAI,GAAG,+BAAuB,CAAC,UAAmB,CAAC;IAqC/D,CAAC;CAAA;AAtCD,gCAsCC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { AddCountTransferRestrictionParams, AddPercentageTransferRestrictionParams, Asset, Context, Namespace, SetCountTransferRestrictionsParams, SetPercentageTransferRestrictionsParams } from "../../../../internal";
|
|
3
|
+
import { ActiveTransferRestrictions, CountTransferRestriction, NoArgsProcedureMethod, PercentageTransferRestriction, ProcedureMethod, TransferRestrictionType } from "../../../../types";
|
|
4
|
+
declare type AddRestrictionParams<T> = Omit<T extends TransferRestrictionType.Count ? AddCountTransferRestrictionParams : AddPercentageTransferRestrictionParams, 'type'>;
|
|
5
|
+
declare type SetRestrictionsParams<T> = Omit<T extends TransferRestrictionType.Count ? SetCountTransferRestrictionsParams : SetPercentageTransferRestrictionsParams, 'type'>;
|
|
6
|
+
declare type GetReturnType<T> = ActiveTransferRestrictions<T extends TransferRestrictionType.Count ? CountTransferRestriction : PercentageTransferRestriction>;
|
|
7
|
+
/**
|
|
8
|
+
* Base class for managing Transfer Restrictions
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class TransferRestrictionBase<T extends TransferRestrictionType> extends Namespace<Asset> {
|
|
11
|
+
protected abstract type: T;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
constructor(parent: Asset, context: Context);
|
|
16
|
+
/**
|
|
17
|
+
* Add a Transfer Restriction of the corresponding type to this Asset
|
|
18
|
+
*
|
|
19
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
20
|
+
*/
|
|
21
|
+
addRestriction: ProcedureMethod<AddRestrictionParams<T>, BigNumber>;
|
|
22
|
+
/**
|
|
23
|
+
* Sets all Transfer Restrictions of the corresponding type on this Asset
|
|
24
|
+
*
|
|
25
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
26
|
+
*/
|
|
27
|
+
setRestrictions: ProcedureMethod<SetRestrictionsParams<T>, BigNumber>;
|
|
28
|
+
/**
|
|
29
|
+
* Removes all Transfer Restrictions of the corresponding type from this Asset
|
|
30
|
+
*
|
|
31
|
+
* @note the result is the total amount of restrictions after the procedure has run
|
|
32
|
+
*/
|
|
33
|
+
removeRestrictions: NoArgsProcedureMethod<BigNumber>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve all active Transfer Restrictions of the corresponding type
|
|
36
|
+
*
|
|
37
|
+
* @note there is a maximum number of restrictions allowed across all types.
|
|
38
|
+
* The `availableSlots` property of the result represents how many more restrictions can be added
|
|
39
|
+
* before reaching that limit
|
|
40
|
+
*/
|
|
41
|
+
get(): Promise<GetReturnType<T>>;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=TransferRestrictionBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransferRestrictionBase.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EACL,iCAAiC,EACjC,sCAAsC,EAGtC,KAAK,EACL,OAAO,EACP,SAAS,EACT,kCAAkC,EAClC,uCAAuC,EAIxC,6BAAmB;AACpB,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EACf,uBAAuB,EACxB,0BAAgB;AASjB,aAAK,oBAAoB,CAAC,CAAC,IAAI,IAAI,CACjC,CAAC,SAAS,uBAAuB,CAAC,KAAK,GACnC,iCAAiC,GACjC,sCAAsC,EAC1C,MAAM,CACP,CAAC;AAEF,aAAK,qBAAqB,CAAC,CAAC,IAAI,IAAI,CAClC,CAAC,SAAS,uBAAuB,CAAC,KAAK,GACnC,kCAAkC,GAClC,uCAAuC,EAC3C,MAAM,CACP,CAAC;AAEF,aAAK,aAAa,CAAC,CAAC,IAAI,0BAA0B,CAChD,CAAC,SAAS,uBAAuB,CAAC,KAAK,GAAG,wBAAwB,GAAG,6BAA6B,CACnG,CAAC;AAEF;;GAEG;AACH,8BAAsB,uBAAuB,CAC3C,CAAC,SAAS,uBAAuB,CACjC,SAAQ,SAAS,CAAC,KAAK,CAAC;IACxB,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAE3B;;OAEG;gBACS,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO;IAsD3C;;;;OAIG;IACI,cAAc,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;IAE3E;;;;OAIG;IACI,eAAe,EAAE,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;IAE7E;;;;OAIG;IACI,kBAAkB,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAE5D;;;;;;OAMG;IACU,GAAG,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAgE9C"}
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TransferRestrictionBase = void 0;
|
|
13
|
+
const internal_1 = require("../../../../internal");
|
|
14
|
+
const types_1 = require("../../../../types");
|
|
15
|
+
const conversion_1 = require("../../../../utils/conversion");
|
|
16
|
+
const internal_2 = require("../../../../utils/internal");
|
|
17
|
+
/**
|
|
18
|
+
* Base class for managing Transfer Restrictions
|
|
19
|
+
*/
|
|
20
|
+
class TransferRestrictionBase extends internal_1.Namespace {
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
constructor(parent, context) {
|
|
25
|
+
super(parent, context);
|
|
26
|
+
const { ticker } = parent;
|
|
27
|
+
this.addRestriction = (0, internal_2.createProcedureMethod)({
|
|
28
|
+
getProcedureAndArgs: args => [
|
|
29
|
+
internal_1.addTransferRestriction,
|
|
30
|
+
Object.assign(Object.assign({}, args), { type: this.type, ticker }),
|
|
31
|
+
],
|
|
32
|
+
}, context);
|
|
33
|
+
this.setRestrictions = (0, internal_2.createProcedureMethod)({
|
|
34
|
+
getProcedureAndArgs: args => [
|
|
35
|
+
internal_1.setTransferRestrictions,
|
|
36
|
+
Object.assign(Object.assign({}, args), { type: this.type, ticker }),
|
|
37
|
+
],
|
|
38
|
+
}, context);
|
|
39
|
+
this.removeRestrictions = (0, internal_2.createProcedureMethod)({
|
|
40
|
+
getProcedureAndArgs: () => [
|
|
41
|
+
internal_1.setTransferRestrictions,
|
|
42
|
+
{
|
|
43
|
+
restrictions: [],
|
|
44
|
+
type: this.type,
|
|
45
|
+
ticker,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
voidArgs: true,
|
|
49
|
+
}, context);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve all active Transfer Restrictions of the corresponding type
|
|
53
|
+
*
|
|
54
|
+
* @note there is a maximum number of restrictions allowed across all types.
|
|
55
|
+
* The `availableSlots` property of the result represents how many more restrictions can be added
|
|
56
|
+
* before reaching that limit
|
|
57
|
+
*/
|
|
58
|
+
get() {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const { parent: { ticker }, context: { polymeshApi: { query: { statistics }, consts, }, }, context, type, } = this;
|
|
61
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
62
|
+
const activeTms = yield statistics.activeTransferManagers(rawTicker);
|
|
63
|
+
const filteredTms = activeTms.filter(tm => {
|
|
64
|
+
if (type === types_1.TransferRestrictionType.Count) {
|
|
65
|
+
return tm.isCountTransferManager;
|
|
66
|
+
}
|
|
67
|
+
return tm.isPercentageTransferManager;
|
|
68
|
+
});
|
|
69
|
+
const rawExemptedLists = yield Promise.all(filteredTms.map(tm => statistics.exemptEntities.entries([rawTicker, tm])));
|
|
70
|
+
const restrictions = rawExemptedLists.map((list, index) => {
|
|
71
|
+
const exemptedIds = list.map(([{ args: [, scopeId], },]) => (0, conversion_1.scopeIdToString)(scopeId) // `ScopeId` and `IdentityId` are the same type, so this is fine
|
|
72
|
+
);
|
|
73
|
+
const { value } = (0, conversion_1.transferManagerToTransferRestriction)(filteredTms[index]);
|
|
74
|
+
let restriction;
|
|
75
|
+
if (type === types_1.TransferRestrictionType.Count) {
|
|
76
|
+
restriction = {
|
|
77
|
+
count: value,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
restriction = {
|
|
82
|
+
percentage: value,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
if (exemptedIds.length) {
|
|
86
|
+
return Object.assign(Object.assign({}, restriction), { exemptedIds });
|
|
87
|
+
}
|
|
88
|
+
return restriction;
|
|
89
|
+
});
|
|
90
|
+
const maxTransferManagers = (0, conversion_1.u32ToBigNumber)(consts.statistics.maxTransferManagersPerAsset);
|
|
91
|
+
return {
|
|
92
|
+
restrictions,
|
|
93
|
+
availableSlots: maxTransferManagers.minus(activeTms.length),
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.TransferRestrictionBase = TransferRestrictionBase;
|
|
99
|
+
//# sourceMappingURL=TransferRestrictionBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransferRestrictionBase.js","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,mDAaoB;AACpB,6CAOiB;AACjB,6DAK4B;AAC5B,yDAAyD;AAoBzD;;GAEG;AACH,MAAsB,uBAEpB,SAAQ,oBAAgB;IAGxB;;OAEG;IACH,YAAY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C,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;aACxC,CAAC;QACxB,CAAC;KAAA;CACF;AA1JD,0DA0JC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Asset, Context, Namespace } from "../../../../internal";
|
|
2
|
+
import { Count } from './Count';
|
|
3
|
+
import { Percentage } from './Percentage';
|
|
4
|
+
/**
|
|
5
|
+
* Handles all Asset Transfer Restrictions related functionality
|
|
6
|
+
*/
|
|
7
|
+
export declare class TransferRestrictions extends Namespace<Asset> {
|
|
8
|
+
count: Count;
|
|
9
|
+
percentage: Percentage;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(parent: Asset, context: Context);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/TransferRestrictions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,6BAAmB;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,SAAS,CAAC,KAAK,CAAC;IACjD,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,EAAE,UAAU,CAAC;IAE9B;;OAEG;gBACS,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO;CAM5C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferRestrictions = void 0;
|
|
4
|
+
const internal_1 = require("../../../../internal");
|
|
5
|
+
const Count_1 = require("./Count");
|
|
6
|
+
const Percentage_1 = require("./Percentage");
|
|
7
|
+
/**
|
|
8
|
+
* Handles all Asset Transfer Restrictions related functionality
|
|
9
|
+
*/
|
|
10
|
+
class TransferRestrictions extends internal_1.Namespace {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(parent, context) {
|
|
15
|
+
super(parent, context);
|
|
16
|
+
this.count = new Count_1.Count(parent, context);
|
|
17
|
+
this.percentage = new Percentage_1.Percentage(parent, context);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.TransferRestrictions = TransferRestrictions;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/TransferRestrictions/index.ts"],"names":[],"mappings":";;;AAAA,mDAAuD;AAEvD,mCAAgC;AAChC,6CAA0C;AAE1C;;GAEG;AACH,MAAa,oBAAqB,SAAQ,oBAAgB;IAIxD;;OAEG;IACH,YAAY,MAAa,EAAE,OAAgB;QACzC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAEvB,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAbD,oDAaC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { AuthorizationRequest, Context, ControllerTransferParams, Entity, ModifyAssetParams, ModifyPrimaryIssuanceAgentParams, RedeemTokensParams, TransferAssetOwnershipParams } from "../../../internal";
|
|
3
|
+
import { EventIdentifier, HistoricAgentOperation, NoArgsProcedureMethod, ProcedureMethod, SecurityIdentifier, SubCallback, UnsubCallback } from "../../../types";
|
|
4
|
+
import { AssetHolders } from './AssetHolders';
|
|
5
|
+
import { Checkpoints } from './Checkpoints';
|
|
6
|
+
import { Compliance } from './Compliance';
|
|
7
|
+
import { CorporateActions } from './CorporateActions';
|
|
8
|
+
import { Documents } from './Documents';
|
|
9
|
+
import { Issuance } from './Issuance';
|
|
10
|
+
import { Offerings } from './Offerings';
|
|
11
|
+
import { Permissions } from './Permissions';
|
|
12
|
+
import { Settlements } from './Settlements';
|
|
13
|
+
import { TransferRestrictions } from './TransferRestrictions';
|
|
14
|
+
import { AssetDetails } from './types';
|
|
15
|
+
/**
|
|
16
|
+
* Properties that uniquely identify an Asset
|
|
17
|
+
*/
|
|
18
|
+
export interface UniqueIdentifiers {
|
|
19
|
+
/**
|
|
20
|
+
* ticker of the Asset
|
|
21
|
+
*/
|
|
22
|
+
ticker: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Class used to manage all Asset functionality
|
|
26
|
+
*/
|
|
27
|
+
export declare class Asset extends Entity<UniqueIdentifiers, string> {
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
* Check if a value is of type {@link UniqueIdentifiers}
|
|
31
|
+
*/
|
|
32
|
+
static isUniqueIdentifiers(identifier: unknown): identifier is UniqueIdentifiers;
|
|
33
|
+
/**
|
|
34
|
+
* Identity ID of the Asset (used for Claims)
|
|
35
|
+
*/
|
|
36
|
+
did: string;
|
|
37
|
+
/**
|
|
38
|
+
* ticker of the Asset
|
|
39
|
+
*/
|
|
40
|
+
ticker: string;
|
|
41
|
+
documents: Documents;
|
|
42
|
+
settlements: Settlements;
|
|
43
|
+
assetHolders: AssetHolders;
|
|
44
|
+
issuance: Issuance;
|
|
45
|
+
compliance: Compliance;
|
|
46
|
+
transferRestrictions: TransferRestrictions;
|
|
47
|
+
offerings: Offerings;
|
|
48
|
+
checkpoints: Checkpoints;
|
|
49
|
+
corporateActions: CorporateActions;
|
|
50
|
+
permissions: Permissions;
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
constructor(identifiers: UniqueIdentifiers, context: Context);
|
|
55
|
+
/**
|
|
56
|
+
* Transfer ownership of the Asset to another Identity. This generates an authorization request that must be accepted
|
|
57
|
+
* by the recipient
|
|
58
|
+
*
|
|
59
|
+
* @note this will create {@link AuthorizationRequest | Authorization Request} which has to be accepted by the `target` Identity.
|
|
60
|
+
* An {@link Account} or {@link Identity} can fetch its pending Authorization Requests by calling {@link Authorizations.getReceived | authorizations.getReceived}.
|
|
61
|
+
* Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link Authorizations.getOne | authorizations.getOne}
|
|
62
|
+
*/
|
|
63
|
+
transferOwnership: ProcedureMethod<TransferAssetOwnershipParams, AuthorizationRequest>;
|
|
64
|
+
/**
|
|
65
|
+
* Modify some properties of the Asset
|
|
66
|
+
*
|
|
67
|
+
* @throws if the passed values result in no changes being made to the Asset
|
|
68
|
+
*/
|
|
69
|
+
modify: ProcedureMethod<ModifyAssetParams, Asset>;
|
|
70
|
+
/**
|
|
71
|
+
* Retrieve the Asset's data
|
|
72
|
+
*
|
|
73
|
+
* @note can be subscribed to
|
|
74
|
+
*/
|
|
75
|
+
details(): Promise<AssetDetails>;
|
|
76
|
+
details(callback: SubCallback<AssetDetails>): Promise<UnsubCallback>;
|
|
77
|
+
/**
|
|
78
|
+
* Retrieve the Asset's funding round
|
|
79
|
+
*
|
|
80
|
+
* @note can be subscribed to
|
|
81
|
+
*/
|
|
82
|
+
currentFundingRound(): Promise<string | null>;
|
|
83
|
+
currentFundingRound(callback: SubCallback<string | null>): Promise<UnsubCallback>;
|
|
84
|
+
/**
|
|
85
|
+
* Retrieve the Asset's identifiers list
|
|
86
|
+
*
|
|
87
|
+
* @note can be subscribed to
|
|
88
|
+
*/
|
|
89
|
+
getIdentifiers(): Promise<SecurityIdentifier[]>;
|
|
90
|
+
getIdentifiers(callback?: SubCallback<SecurityIdentifier[]>): Promise<UnsubCallback>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created
|
|
93
|
+
*
|
|
94
|
+
* @note uses the middleware
|
|
95
|
+
* @note there is a possibility that the data is not ready by the time it is requested. In that case, `null` is returned
|
|
96
|
+
*/
|
|
97
|
+
createdAt(): Promise<EventIdentifier | null>;
|
|
98
|
+
/**
|
|
99
|
+
* Freeze transfers of the Asset
|
|
100
|
+
*/
|
|
101
|
+
freeze: NoArgsProcedureMethod<Asset>;
|
|
102
|
+
/**
|
|
103
|
+
* Unfreeze transfers of the Asset
|
|
104
|
+
*/
|
|
105
|
+
unfreeze: NoArgsProcedureMethod<Asset>;
|
|
106
|
+
/**
|
|
107
|
+
* Check whether transfers are frozen for the Asset
|
|
108
|
+
*
|
|
109
|
+
* @note can be subscribed to
|
|
110
|
+
*/
|
|
111
|
+
isFrozen(): Promise<boolean>;
|
|
112
|
+
isFrozen(callback: SubCallback<boolean>): Promise<UnsubCallback>;
|
|
113
|
+
/**
|
|
114
|
+
* Assign a new primary issuance agent for the Asset
|
|
115
|
+
*
|
|
116
|
+
* @note this will create an {@link AuthorizationRequest | Authorization Request} which has to be accepted by the `target` Identity.
|
|
117
|
+
* An {@link Account} or {@link Identity} can fetch its pending Authorization Requests by calling {@link Authorizations.getReceived | authorizations.getReceived}.
|
|
118
|
+
* Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link Authorizations.getOne | authorizations.getOne}
|
|
119
|
+
*
|
|
120
|
+
* @deprecated in favor of `inviteAgent`
|
|
121
|
+
*/
|
|
122
|
+
modifyPrimaryIssuanceAgent: ProcedureMethod<ModifyPrimaryIssuanceAgentParams, void>;
|
|
123
|
+
/**
|
|
124
|
+
* Remove the primary issuance agent of the Asset
|
|
125
|
+
*
|
|
126
|
+
* @note if primary issuance agent is not set, Asset owner would be used by default
|
|
127
|
+
*
|
|
128
|
+
* @deprecated
|
|
129
|
+
*/
|
|
130
|
+
removePrimaryIssuanceAgent: NoArgsProcedureMethod<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Redeem (burn) an amount of this Asset's tokens
|
|
133
|
+
*
|
|
134
|
+
* @note tokens are removed from the caller's Default Portfolio
|
|
135
|
+
*/
|
|
136
|
+
redeem: ProcedureMethod<RedeemTokensParams, void>;
|
|
137
|
+
/**
|
|
138
|
+
* Retrieve the amount of unique investors that hold this Asset
|
|
139
|
+
*
|
|
140
|
+
* @note this takes into account the Scope ID of Investor Uniqueness Claims. If an investor holds balances
|
|
141
|
+
* of this Asset in two or more different Identities, but they all have Investor Uniqueness Claims with the same
|
|
142
|
+
* Scope ID, then they will only be counted once for the purposes of this result
|
|
143
|
+
*/
|
|
144
|
+
investorCount(): Promise<BigNumber>;
|
|
145
|
+
/**
|
|
146
|
+
* Force a transfer from a given Portfolio to the caller’s default Portfolio
|
|
147
|
+
*/
|
|
148
|
+
controllerTransfer: ProcedureMethod<ControllerTransferParams, void>;
|
|
149
|
+
/**
|
|
150
|
+
* Retrieve this Asset's Operation History
|
|
151
|
+
*
|
|
152
|
+
* @note Operations are grouped by the agent Identity who performed them
|
|
153
|
+
*
|
|
154
|
+
* @note uses the middleware
|
|
155
|
+
*/
|
|
156
|
+
getOperationHistory(): Promise<HistoricAgentOperation[]>;
|
|
157
|
+
/**
|
|
158
|
+
* Determine whether this Asset exists on chain
|
|
159
|
+
*/
|
|
160
|
+
exists(): Promise<boolean>;
|
|
161
|
+
/**
|
|
162
|
+
* Return the Asset's ticker
|
|
163
|
+
*/
|
|
164
|
+
toHuman(): string;
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/Asset/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AAWrC,OAAO,EACL,oBAAoB,EACpB,OAAO,EAEP,wBAAwB,EACxB,MAAM,EAGN,iBAAiB,EAEjB,gCAAgC,EAEhC,kBAAkB,EAIlB,4BAA4B,EAC7B,0BAAmB;AAGpB,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB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