@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,306 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Asset = void 0;
|
|
16
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
17
|
+
const lodash_1 = require("lodash");
|
|
18
|
+
const internal_1 = require("../../../internal");
|
|
19
|
+
const queries_1 = require("../../../middleware/queries");
|
|
20
|
+
const types_1 = require("../../../middleware/types");
|
|
21
|
+
const constants_1 = require("../../../utils/constants");
|
|
22
|
+
const conversion_1 = require("../../../utils/conversion");
|
|
23
|
+
const internal_2 = require("../../../utils/internal");
|
|
24
|
+
const AssetHolders_1 = require("./AssetHolders");
|
|
25
|
+
const Checkpoints_1 = require("./Checkpoints");
|
|
26
|
+
const Compliance_1 = require("./Compliance");
|
|
27
|
+
const CorporateActions_1 = require("./CorporateActions");
|
|
28
|
+
const Documents_1 = require("./Documents");
|
|
29
|
+
const Issuance_1 = require("./Issuance");
|
|
30
|
+
const Offerings_1 = require("./Offerings");
|
|
31
|
+
const Permissions_1 = require("./Permissions");
|
|
32
|
+
const Settlements_1 = require("./Settlements");
|
|
33
|
+
const TransferRestrictions_1 = require("./TransferRestrictions");
|
|
34
|
+
/**
|
|
35
|
+
* Class used to manage all Asset functionality
|
|
36
|
+
*/
|
|
37
|
+
class Asset extends internal_1.Entity {
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
constructor(identifiers, context) {
|
|
42
|
+
super(identifiers, context);
|
|
43
|
+
const { ticker } = identifiers;
|
|
44
|
+
this.ticker = ticker;
|
|
45
|
+
this.did = (0, conversion_1.tickerToDid)(ticker);
|
|
46
|
+
this.documents = new Documents_1.Documents(this, context);
|
|
47
|
+
this.settlements = new Settlements_1.Settlements(this, context);
|
|
48
|
+
this.assetHolders = new AssetHolders_1.AssetHolders(this, context);
|
|
49
|
+
this.issuance = new Issuance_1.Issuance(this, context);
|
|
50
|
+
this.compliance = new Compliance_1.Compliance(this, context);
|
|
51
|
+
this.transferRestrictions = new TransferRestrictions_1.TransferRestrictions(this, context);
|
|
52
|
+
this.offerings = new Offerings_1.Offerings(this, context);
|
|
53
|
+
this.checkpoints = new Checkpoints_1.Checkpoints(this, context);
|
|
54
|
+
this.corporateActions = new CorporateActions_1.CorporateActions(this, context);
|
|
55
|
+
this.permissions = new Permissions_1.Permissions(this, context);
|
|
56
|
+
this.transferOwnership = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: args => [internal_1.transferAssetOwnership, Object.assign({ ticker }, args)] }, context);
|
|
57
|
+
this.modify = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: args => [internal_1.modifyAsset, Object.assign({ ticker }, args)] }, context);
|
|
58
|
+
this.freeze = (0, internal_2.createProcedureMethod)({
|
|
59
|
+
getProcedureAndArgs: () => [internal_1.toggleFreezeTransfers, { ticker, freeze: true }],
|
|
60
|
+
voidArgs: true,
|
|
61
|
+
}, context);
|
|
62
|
+
this.unfreeze = (0, internal_2.createProcedureMethod)({
|
|
63
|
+
getProcedureAndArgs: () => [internal_1.toggleFreezeTransfers, { ticker, freeze: false }],
|
|
64
|
+
voidArgs: true,
|
|
65
|
+
}, context);
|
|
66
|
+
this.modifyPrimaryIssuanceAgent = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: args => [internal_1.modifyPrimaryIssuanceAgent, Object.assign({ ticker }, args)] }, context);
|
|
67
|
+
this.removePrimaryIssuanceAgent = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: () => [internal_1.removePrimaryIssuanceAgent, { ticker }], voidArgs: true }, context);
|
|
68
|
+
this.redeem = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: args => [internal_1.redeemTokens, Object.assign({ ticker }, args)] }, context);
|
|
69
|
+
this.controllerTransfer = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: args => [internal_1.controllerTransfer, Object.assign({ ticker }, args)] }, context);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
* Check if a value is of type {@link UniqueIdentifiers}
|
|
74
|
+
*/
|
|
75
|
+
static isUniqueIdentifiers(identifier) {
|
|
76
|
+
const { ticker } = identifier;
|
|
77
|
+
return typeof ticker === 'string';
|
|
78
|
+
}
|
|
79
|
+
// eslint-disable-next-line require-jsdoc
|
|
80
|
+
details(callback) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const { context: { polymeshApi: { query: { asset, externalAgents }, }, }, ticker, context, } = this;
|
|
83
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
84
|
+
const assembleResult = ({ total_supply, divisible, owner_did, asset_type }, agentGroups, assetName, iuDisabled) => __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const primaryIssuanceAgents = [];
|
|
86
|
+
const fullAgents = [];
|
|
87
|
+
agentGroups.forEach(([storageKey, agentGroup]) => {
|
|
88
|
+
const rawAgentGroup = agentGroup.unwrap();
|
|
89
|
+
if (rawAgentGroup.isPolymeshV1Pia) {
|
|
90
|
+
primaryIssuanceAgents.push(new internal_1.Identity({ did: (0, conversion_1.identityIdToString)(storageKey.args[1]) }, context));
|
|
91
|
+
}
|
|
92
|
+
else if (rawAgentGroup.isFull) {
|
|
93
|
+
fullAgents.push(new internal_1.Identity({ did: (0, conversion_1.identityIdToString)(storageKey.args[1]) }, context));
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const owner = new internal_1.Identity({ did: (0, conversion_1.identityIdToString)(owner_did) }, context);
|
|
97
|
+
const type = (0, conversion_1.assetTypeToKnownOrId)(asset_type);
|
|
98
|
+
let assetType;
|
|
99
|
+
if (typeof type === 'string') {
|
|
100
|
+
assetType = type;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
const customType = yield asset.customTypes((0, conversion_1.bigNumberToU32)(type, context));
|
|
104
|
+
assetType = (0, conversion_1.bytesToString)(customType);
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
assetType,
|
|
108
|
+
isDivisible: (0, conversion_1.boolToBoolean)(divisible),
|
|
109
|
+
name: (0, conversion_1.textToString)(assetName),
|
|
110
|
+
owner,
|
|
111
|
+
totalSupply: (0, conversion_1.balanceToBigNumber)(total_supply),
|
|
112
|
+
primaryIssuanceAgents,
|
|
113
|
+
fullAgents,
|
|
114
|
+
requiresInvestorUniqueness: !(0, conversion_1.boolToBoolean)(iuDisabled),
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
118
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
119
|
+
const groupOfAgentPromise = externalAgents.groupOfAgent.entries(rawTicker);
|
|
120
|
+
const namePromise = asset.assetNames(rawTicker);
|
|
121
|
+
const disabledIuPromise = asset.disableInvestorUniqueness(rawTicker);
|
|
122
|
+
if (callback) {
|
|
123
|
+
const groupEntries = yield groupOfAgentPromise;
|
|
124
|
+
const assetName = yield namePromise;
|
|
125
|
+
const disabledInvestorUniqueness = yield disabledIuPromise;
|
|
126
|
+
return asset.tokens(rawTicker, (securityToken) => __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const result = yield assembleResult(securityToken, groupEntries, assetName, disabledInvestorUniqueness);
|
|
128
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- callback errors should be handled by the caller
|
|
129
|
+
callback(result);
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
const [token, groups, name, disabledIu] = yield Promise.all([
|
|
133
|
+
asset.tokens(rawTicker),
|
|
134
|
+
groupOfAgentPromise,
|
|
135
|
+
namePromise,
|
|
136
|
+
disabledIuPromise,
|
|
137
|
+
]);
|
|
138
|
+
return assembleResult(token, groups, name, disabledIu);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
// eslint-disable-next-line require-jsdoc
|
|
142
|
+
currentFundingRound(callback) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
const { context: { polymeshApi: { query: { asset }, }, }, ticker, context, } = this;
|
|
145
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
146
|
+
const assembleResult = (roundName) => (0, conversion_1.fundingRoundNameToString)(roundName) || null;
|
|
147
|
+
if (callback) {
|
|
148
|
+
return asset.fundingRound(rawTicker, round => {
|
|
149
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- callback errors should be handled by the caller
|
|
150
|
+
callback(assembleResult(round));
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
const fundingRound = yield asset.fundingRound(rawTicker);
|
|
154
|
+
return assembleResult(fundingRound);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
// eslint-disable-next-line require-jsdoc
|
|
158
|
+
getIdentifiers(callback) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
const { context: { polymeshApi: { query: { asset }, }, }, ticker, context, } = this;
|
|
161
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
162
|
+
if (callback) {
|
|
163
|
+
return asset.identifiers(rawTicker, identifiers => {
|
|
164
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- callback errors should be handled by the caller
|
|
165
|
+
callback(identifiers.map(conversion_1.assetIdentifierToSecurityIdentifier));
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
const assetIdentifiers = yield asset.identifiers(rawTicker);
|
|
169
|
+
return assetIdentifiers.map(conversion_1.assetIdentifierToSecurityIdentifier);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created
|
|
174
|
+
*
|
|
175
|
+
* @note uses the middleware
|
|
176
|
+
* @note there is a possibility that the data is not ready by the time it is requested. In that case, `null` is returned
|
|
177
|
+
*/
|
|
178
|
+
createdAt() {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
const { ticker, context } = this;
|
|
181
|
+
const { data: { eventByIndexedArgs: event }, } = yield context.queryMiddleware((0, queries_1.eventByIndexedArgs)({
|
|
182
|
+
moduleId: types_1.ModuleIdEnum.Asset,
|
|
183
|
+
eventId: types_1.EventIdEnum.AssetCreated,
|
|
184
|
+
eventArg1: (0, internal_2.padString)(ticker, constants_1.MAX_TICKER_LENGTH),
|
|
185
|
+
}));
|
|
186
|
+
return (0, internal_2.optionize)(conversion_1.middlewareEventToEventIdentifier)(event);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
// eslint-disable-next-line require-jsdoc
|
|
190
|
+
isFrozen(callback) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
const { ticker, context: { polymeshApi: { query: { asset }, }, }, context, } = this;
|
|
193
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
194
|
+
if (callback) {
|
|
195
|
+
return asset.frozen(rawTicker, frozen => {
|
|
196
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- callback errors should be handled by the caller
|
|
197
|
+
callback((0, conversion_1.boolToBoolean)(frozen));
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
const result = yield asset.frozen(rawTicker);
|
|
201
|
+
return (0, conversion_1.boolToBoolean)(result);
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Retrieve the amount of unique investors that hold this Asset
|
|
206
|
+
*
|
|
207
|
+
* @note this takes into account the Scope ID of Investor Uniqueness Claims. If an investor holds balances
|
|
208
|
+
* of this Asset in two or more different Identities, but they all have Investor Uniqueness Claims with the same
|
|
209
|
+
* Scope ID, then they will only be counted once for the purposes of this result
|
|
210
|
+
*/
|
|
211
|
+
investorCount() {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
const { context: { polymeshApi: { query: { asset: { disableInvestorUniqueness, scopeIdOf, balanceOfAtScope, balanceOf }, }, }, }, context, ticker, } = this;
|
|
214
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
215
|
+
const iuDisabled = yield disableInvestorUniqueness(rawTicker);
|
|
216
|
+
if ((0, conversion_1.boolToBoolean)(iuDisabled)) {
|
|
217
|
+
const balanceEntries = yield balanceOf.entries(rawTicker);
|
|
218
|
+
const assetBalances = balanceEntries.filter(([, balance]) => !(0, conversion_1.balanceToBigNumber)(balance).isZero());
|
|
219
|
+
return new bignumber_js_1.default(assetBalances.length);
|
|
220
|
+
}
|
|
221
|
+
const scopeIdEntries = yield scopeIdOf.entries(rawTicker);
|
|
222
|
+
const scopeBalanceEntries = yield Promise.all(scopeIdEntries.map(([, scopeId]) => balanceOfAtScope.entries(scopeId)));
|
|
223
|
+
const assetHolders = new Set();
|
|
224
|
+
(0, lodash_1.flatten)(scopeBalanceEntries).forEach(([{ args: [scopeId], }, balance,]) => {
|
|
225
|
+
if (!(0, conversion_1.balanceToBigNumber)(balance).isZero()) {
|
|
226
|
+
assetHolders.add((0, conversion_1.scopeIdToString)(scopeId));
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
return new bignumber_js_1.default(assetHolders.size);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Retrieve this Asset's Operation History
|
|
234
|
+
*
|
|
235
|
+
* @note Operations are grouped by the agent Identity who performed them
|
|
236
|
+
*
|
|
237
|
+
* @note uses the middleware
|
|
238
|
+
*/
|
|
239
|
+
getOperationHistory() {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
const { context: { polymeshApi: { query: { system }, }, }, context, ticker, } = this;
|
|
242
|
+
const { data: { tickerExternalAgentHistory: tickerExternalAgentHistoryResult }, } = yield context.queryMiddleware((0, queries_1.tickerExternalAgentHistory)({
|
|
243
|
+
ticker,
|
|
244
|
+
}));
|
|
245
|
+
const multiParams = [];
|
|
246
|
+
const results = [];
|
|
247
|
+
tickerExternalAgentHistoryResult.forEach(({ did, history }) => {
|
|
248
|
+
const historyResult = [];
|
|
249
|
+
history.forEach(({ block_id: blockId, datetime, event_idx: eventIndex }) => {
|
|
250
|
+
const blockNumber = new bignumber_js_1.default(blockId);
|
|
251
|
+
multiParams.push((0, conversion_1.bigNumberToU32)(blockNumber, context));
|
|
252
|
+
historyResult.push({
|
|
253
|
+
blockNumber,
|
|
254
|
+
blockDate: new Date(datetime),
|
|
255
|
+
eventIndex: new bignumber_js_1.default(eventIndex),
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
results.push({
|
|
259
|
+
identity: new internal_1.Identity({ did }, context),
|
|
260
|
+
history: historyResult,
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
let hashes = [];
|
|
264
|
+
if (multiParams.length) {
|
|
265
|
+
hashes = yield system.blockHash.multi(multiParams);
|
|
266
|
+
}
|
|
267
|
+
const finalResults = [];
|
|
268
|
+
results.forEach(({ identity, history }) => {
|
|
269
|
+
const historyWithHashes = [];
|
|
270
|
+
history.forEach(event => {
|
|
271
|
+
/*
|
|
272
|
+
* Since we filled the params array in the order in which the events appeared and this is being done
|
|
273
|
+
* synchronously, the order and amount of results should be the same and the array should never be empty
|
|
274
|
+
* until all the data is in place
|
|
275
|
+
*/
|
|
276
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
277
|
+
const blockHash = (0, conversion_1.hashToString)(hashes.shift());
|
|
278
|
+
historyWithHashes.push(Object.assign(Object.assign({}, event), { blockHash }));
|
|
279
|
+
});
|
|
280
|
+
finalResults.push({
|
|
281
|
+
identity,
|
|
282
|
+
history: historyWithHashes,
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
return finalResults;
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Determine whether this Asset exists on chain
|
|
290
|
+
*/
|
|
291
|
+
exists() {
|
|
292
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
293
|
+
const { ticker, context } = this;
|
|
294
|
+
const tokenSize = yield context.polymeshApi.query.asset.tokens.size((0, conversion_1.stringToTicker)(ticker, context));
|
|
295
|
+
return !tokenSize.isZero();
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Return the Asset's ticker
|
|
300
|
+
*/
|
|
301
|
+
toHuman() {
|
|
302
|
+
return this.ticker;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
exports.Asset = Asset;
|
|
306
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/entities/Asset/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,gEAAqC;AACrC,mCAAiC;AAUjC,gDAiBoB;AACpB,yDAAsF;AACtF,qDAAsE;AAWtE,wDAAsD;AACtD,0DAe4B;AAC5B,sDAA+E;AAE/E,iDAA8C;AAC9C,+CAA4C;AAC5C,6CAA0C;AAC1C,yDAAsD;AACtD,2CAAwC;AACxC,yCAAsC;AACtC,2CAAwC;AACxC,+CAA4C;AAC5C,+CAA4C;AAC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AK,KACR,SAAS,IACT,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,YAAY,CAAC,IAAI,CAAC;oBAChB,QAAQ;oBACR,OAAO,EAAE,iBAAiB;iBAC3B,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,OAAO,YAAY,CAAC;QACtB,CAAC;KAAA;IAED;;OAEG;IACU,MAAM;;YACjB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;YAEjC,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CACjE,IAAA,2BAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAChC,CAAC;YAEF,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QAC7B,CAAC;KAAA;IAED;;OAEG;IACI,OAAO;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF;AAjiBD,sBAiiBC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { CustomPermissionGroup, Identity, KnownPermissionGroup } from "../../../internal";
|
|
3
|
+
import { Compliance, TransferError, TransferRestriction } from "../../../types";
|
|
4
|
+
export interface AssetDetails {
|
|
5
|
+
assetType: string;
|
|
6
|
+
isDivisible: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
owner: Identity;
|
|
9
|
+
totalSupply: BigNumber;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
primaryIssuanceAgents: Identity[];
|
|
14
|
+
fullAgents: Identity[];
|
|
15
|
+
requiresInvestorUniqueness: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents the balance of an Asset Holder
|
|
19
|
+
*/
|
|
20
|
+
export interface IdentityBalance {
|
|
21
|
+
identity: Identity;
|
|
22
|
+
balance: BigNumber;
|
|
23
|
+
}
|
|
24
|
+
export interface TransferRestrictionResult {
|
|
25
|
+
restriction: TransferRestriction;
|
|
26
|
+
result: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Object containing every reason why a specific Asset transfer would fail
|
|
30
|
+
*/
|
|
31
|
+
export interface TransferBreakdown {
|
|
32
|
+
/**
|
|
33
|
+
* list of general transfer errors
|
|
34
|
+
*/
|
|
35
|
+
general: TransferError[];
|
|
36
|
+
/**
|
|
37
|
+
* how the transfer adheres to the asset's compliance rules
|
|
38
|
+
*/
|
|
39
|
+
compliance: Compliance;
|
|
40
|
+
/**
|
|
41
|
+
* list of transfer restrictions and whether the transfer satisfies each one
|
|
42
|
+
*/
|
|
43
|
+
restrictions: TransferRestrictionResult[];
|
|
44
|
+
/**
|
|
45
|
+
* true if the transfer is possible
|
|
46
|
+
*/
|
|
47
|
+
result: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface AgentWithGroup {
|
|
50
|
+
agent: Identity;
|
|
51
|
+
group: KnownPermissionGroup | CustomPermissionGroup;
|
|
52
|
+
}
|
|
53
|
+
export * from './CorporateActions/types';
|
|
54
|
+
export * from './Checkpoints/types';
|
|
55
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/Asset/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,0BAAmB;AACnF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,mBAAmB,EAAE,uBAAgB;AAEzE,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,qBAAqB,EAAE,QAAQ,EAAE,CAAC;IAClC,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,0BAA0B,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,mBAAmB,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,yBAAyB,EAAE,CAAC;IAC1C;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,oBAAoB,GAAG,qBAAqB,CAAC;CACrD;AAED,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CorporateActions/types"), exports);
|
|
18
|
+
__exportStar(require("./Checkpoints/types"), exports);
|
|
19
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/api/entities/Asset/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2DA,2DAAyC;AACzC,sDAAoC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { Context, Entity, Identity } from "../../internal";
|
|
3
|
+
import { Authorization, NoArgsProcedureMethod, Signer, SignerValue } from "../../types";
|
|
4
|
+
import { HumanReadableType } from "../../types/utils";
|
|
5
|
+
export interface UniqueIdentifiers {
|
|
6
|
+
authId: BigNumber;
|
|
7
|
+
}
|
|
8
|
+
interface HumanReadable {
|
|
9
|
+
issuer: HumanReadableType<Identity>;
|
|
10
|
+
expiry: string | null;
|
|
11
|
+
target: SignerValue;
|
|
12
|
+
data: HumanReadableType<Authorization>;
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Params {
|
|
16
|
+
target: Signer;
|
|
17
|
+
issuer: Identity;
|
|
18
|
+
expiry: Date | null;
|
|
19
|
+
data: Authorization;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents a request made by an Identity to another Identity (or Account) for some sort of authorization. This has multiple uses. For example, if Alice
|
|
23
|
+
* wants to transfer ownership of one of her Assets to Bob, this method emits an authorization request for Bob,
|
|
24
|
+
* who then has to accept it in order to complete the ownership transfer
|
|
25
|
+
*/
|
|
26
|
+
export declare class AuthorizationRequest extends Entity<UniqueIdentifiers, HumanReadable> {
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
* Check if a value is of type {@link UniqueIdentifiers}
|
|
30
|
+
*/
|
|
31
|
+
static isUniqueIdentifiers(identifier: unknown): identifier is UniqueIdentifiers;
|
|
32
|
+
/**
|
|
33
|
+
* Identity or Account to which the request was emitted
|
|
34
|
+
*/
|
|
35
|
+
target: Signer;
|
|
36
|
+
/**
|
|
37
|
+
* Identity that emitted the request
|
|
38
|
+
*/
|
|
39
|
+
issuer: Identity;
|
|
40
|
+
/**
|
|
41
|
+
* Authorization Request data corresponding to type of Authorization
|
|
42
|
+
*
|
|
43
|
+
* | Type | Data |
|
|
44
|
+
* |---------------------------------|---------------------------------|
|
|
45
|
+
* | Add Relayer Paying Key | Beneficiary, Relayer, Allowance |
|
|
46
|
+
* | Become Agent | Permission Group |
|
|
47
|
+
* | Attest Primary Key Rotation | DID |
|
|
48
|
+
* | Rotate Primary Key | N/A |
|
|
49
|
+
* | Rotate Primary Key to Secondary | Permissions |
|
|
50
|
+
* | Transfer Ticker | Ticker |
|
|
51
|
+
* | Add MultiSig Signer | Account |
|
|
52
|
+
* | Transfer Asset Ownership | Ticker |
|
|
53
|
+
* | Join Identity | Permissions |
|
|
54
|
+
* | Portfolio Custody | Portfolio |
|
|
55
|
+
*/
|
|
56
|
+
data: Authorization;
|
|
57
|
+
/**
|
|
58
|
+
* date at which the Authorization Request expires and can no longer be accepted.
|
|
59
|
+
* At this point, a new Authorization Request must be emitted. Null if the Request never expires
|
|
60
|
+
*/
|
|
61
|
+
expiry: Date | null;
|
|
62
|
+
/**
|
|
63
|
+
* internal identifier for the Request (used to accept/reject/cancel)
|
|
64
|
+
*/
|
|
65
|
+
authId: BigNumber;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
constructor(args: UniqueIdentifiers & Params, context: Context);
|
|
70
|
+
/**
|
|
71
|
+
* Accept the Authorization Request. You must be the target of the Request to be able to accept it
|
|
72
|
+
*/
|
|
73
|
+
accept: NoArgsProcedureMethod<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Remove the Authorization Request
|
|
76
|
+
*
|
|
77
|
+
* - If you are the Request issuer, this will cancel the Authorization
|
|
78
|
+
* - If you are the Request target, this will reject the Authorization
|
|
79
|
+
*/
|
|
80
|
+
remove: NoArgsProcedureMethod<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns whether the Authorization Request has expired
|
|
83
|
+
*/
|
|
84
|
+
isExpired(): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Determine whether this Authorization Request exists on chain
|
|
87
|
+
*/
|
|
88
|
+
exists(): Promise<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Return the Authorization's static data
|
|
91
|
+
*/
|
|
92
|
+
toHuman(): HumanReadable;
|
|
93
|
+
}
|
|
94
|
+
export {};
|
|
95
|
+
//# sourceMappingURL=AuthorizationRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthorizationRequest.d.ts","sourceRoot":"","sources":["../../../src/api/entities/AuthorizationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAOL,OAAO,EACP,MAAM,EACN,QAAQ,EACT,uBAAmB;AACpB,OAAO,EACL,aAAa,EAEb,qBAAqB,EACrB,MAAM,EACN,WAAW,EACZ,oBAAgB;AACjB,OAAO,EAAE,iBAAiB,EAAE,0BAAsB;AAIlD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,iBAAiB,CAAC,aAAa,CAAC,CAAC;IACvC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,iBAAiB,EAAE,aAAa,CAAC;IAChF;;;OAGG;WACoB,mBAAmB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,iBAAiB;IAMhG;;OAEG;IACI,MAAM,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACI,MAAM,EAAE,QAAQ,CAAC;IAExB;;;;;;;;;;;;;;;OAeG;IACI,IAAI,EAAE,aAAa,CAAC;IAE3B;;;OAGG;IACI,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACI,MAAM,EAAE,SAAS,CAAC;IAEzB;;OAEG;gBACgB,IAAI,EAAE,iBAAiB,GAAG,MAAM,EAAE,OAAO,EAAE,OAAO;IAyErE;;OAEG;IACI,MAAM,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAE3C;;;;;OAKG;IACI,MAAM,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAE3C;;OAEG;IACI,SAAS,IAAI,OAAO;IAM3B;;OAEG;IACU,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;IAWvC;;OAEG;IACI,OAAO,IAAI,aAAa;CAWhC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
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.AuthorizationRequest = void 0;
|
|
27
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
28
|
+
const internal_1 = require("../../internal");
|
|
29
|
+
const types_1 = require("../../types");
|
|
30
|
+
const conversion_1 = require("../../utils/conversion");
|
|
31
|
+
const internal_2 = require("../../utils/internal");
|
|
32
|
+
/**
|
|
33
|
+
* Represents a request made by an Identity to another Identity (or Account) for some sort of authorization. This has multiple uses. For example, if Alice
|
|
34
|
+
* wants to transfer ownership of one of her Assets to Bob, this method emits an authorization request for Bob,
|
|
35
|
+
* who then has to accept it in order to complete the ownership transfer
|
|
36
|
+
*/
|
|
37
|
+
class AuthorizationRequest extends internal_1.Entity {
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
constructor(args, context) {
|
|
42
|
+
const { target, issuer, expiry, data } = args, identifiers = __rest(args, ["target", "issuer", "expiry", "data"]);
|
|
43
|
+
super(identifiers, context);
|
|
44
|
+
const { authId } = identifiers;
|
|
45
|
+
this.target = target;
|
|
46
|
+
this.issuer = issuer;
|
|
47
|
+
this.authId = authId;
|
|
48
|
+
this.expiry = expiry;
|
|
49
|
+
this.data = data;
|
|
50
|
+
this.accept = (0, internal_2.createProcedureMethod)({
|
|
51
|
+
getProcedureAndArgs: () => {
|
|
52
|
+
switch (this.data.type) {
|
|
53
|
+
case types_1.AuthorizationType.JoinIdentity:
|
|
54
|
+
case types_1.AuthorizationType.RotatePrimaryKey:
|
|
55
|
+
case types_1.AuthorizationType.RotatePrimaryKeyToSecondary: {
|
|
56
|
+
return [internal_1.consumeJoinOrRotateAuthorization, { authRequest: this, accept: true }];
|
|
57
|
+
}
|
|
58
|
+
case types_1.AuthorizationType.AddMultiSigSigner: {
|
|
59
|
+
return [internal_1.consumeAddMultiSigSignerAuthorization, { authRequest: this, accept: true }];
|
|
60
|
+
}
|
|
61
|
+
default: {
|
|
62
|
+
return [internal_1.consumeAuthorizationRequests, { authRequests: [this], accept: true }];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
voidArgs: true,
|
|
67
|
+
}, context);
|
|
68
|
+
this.remove = (0, internal_2.createProcedureMethod)({
|
|
69
|
+
getProcedureAndArgs: () => {
|
|
70
|
+
switch (this.data.type) {
|
|
71
|
+
case types_1.AuthorizationType.JoinIdentity: {
|
|
72
|
+
return [internal_1.consumeJoinOrRotateAuthorization, { authRequest: this, accept: false }];
|
|
73
|
+
}
|
|
74
|
+
case types_1.AuthorizationType.RotatePrimaryKeyToSecondary: {
|
|
75
|
+
return [internal_1.consumeJoinOrRotateAuthorization, { authRequest: this, accept: false }];
|
|
76
|
+
}
|
|
77
|
+
case types_1.AuthorizationType.AddMultiSigSigner: {
|
|
78
|
+
return [internal_1.consumeAddMultiSigSignerAuthorization, { authRequest: this, accept: false }];
|
|
79
|
+
}
|
|
80
|
+
default: {
|
|
81
|
+
return [internal_1.consumeAuthorizationRequests, { authRequests: [this], accept: false }];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
voidArgs: true,
|
|
86
|
+
}, context);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
* Check if a value is of type {@link UniqueIdentifiers}
|
|
91
|
+
*/
|
|
92
|
+
static isUniqueIdentifiers(identifier) {
|
|
93
|
+
const { authId } = identifier;
|
|
94
|
+
return authId instanceof bignumber_js_1.default;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Returns whether the Authorization Request has expired
|
|
98
|
+
*/
|
|
99
|
+
isExpired() {
|
|
100
|
+
const { expiry } = this;
|
|
101
|
+
return expiry !== null && expiry < new Date();
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Determine whether this Authorization Request exists on chain
|
|
105
|
+
*/
|
|
106
|
+
exists() {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const { authId, target, context } = this;
|
|
109
|
+
const auth = yield context.polymeshApi.query.identity.authorizations((0, conversion_1.signerValueToSignatory)((0, conversion_1.signerToSignerValue)(target), context), (0, conversion_1.bigNumberToU64)(authId, context));
|
|
110
|
+
return auth.isSome;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Return the Authorization's static data
|
|
115
|
+
*/
|
|
116
|
+
toHuman() {
|
|
117
|
+
const { data, issuer, target, expiry, authId } = this;
|
|
118
|
+
return (0, internal_2.toHumanReadable)({
|
|
119
|
+
id: authId,
|
|
120
|
+
expiry,
|
|
121
|
+
data,
|
|
122
|
+
issuer,
|
|
123
|
+
target: (0, conversion_1.signerToSignerValue)(target),
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.AuthorizationRequest = AuthorizationRequest;
|
|
128
|
+
//# sourceMappingURL=AuthorizationRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthorizationRequest.js","sourceRoot":"","sources":["../../../src/api/entities/AuthorizationRequest.ts"],"names":[],"mappings":";;;;;;;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