@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
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,1164 @@
|
|
|
1
|
+
import { TypeDef } from '@polkadot/types/types';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { ModuleName, TxTag, TxTags } from "../polkadot/types";
|
|
4
|
+
import { DividendDistributionDetails, OfferingDetails, ScheduleDetails, SubsidyData } from "../api/entities/types";
|
|
5
|
+
import { CountryCode } from "../generated/types";
|
|
6
|
+
import { Account, Asset, Checkpoint, CheckpointSchedule, CustomPermissionGroup, DefaultPortfolio, DefaultTrustedClaimIssuer, DividendDistribution, Identity, Instruction, KnownPermissionGroup, NumberedPortfolio, Offering, TransactionQueue } from "../internal";
|
|
7
|
+
import { PortfolioId } from "./internal";
|
|
8
|
+
import { Modify } from "./utils";
|
|
9
|
+
export * from "../generated/types";
|
|
10
|
+
export declare enum TransactionStatus {
|
|
11
|
+
/**
|
|
12
|
+
* the transaction is prepped to run
|
|
13
|
+
*/
|
|
14
|
+
Idle = "Idle",
|
|
15
|
+
/**
|
|
16
|
+
* the transaction is waiting for the user's signature
|
|
17
|
+
*/
|
|
18
|
+
Unapproved = "Unapproved",
|
|
19
|
+
/**
|
|
20
|
+
* the transaction is being executed
|
|
21
|
+
*/
|
|
22
|
+
Running = "Running",
|
|
23
|
+
/**
|
|
24
|
+
* the transaction was rejected by the signer
|
|
25
|
+
*/
|
|
26
|
+
Rejected = "Rejected",
|
|
27
|
+
/**
|
|
28
|
+
* the transaction was run successfully
|
|
29
|
+
*/
|
|
30
|
+
Succeeded = "Succeeded",
|
|
31
|
+
/**
|
|
32
|
+
* the transaction's execution failed due to a revert
|
|
33
|
+
*/
|
|
34
|
+
Failed = "Failed",
|
|
35
|
+
/**
|
|
36
|
+
* the transaction couldn't be broadcast. It was either dropped, usurped or invalidated
|
|
37
|
+
* see https://github.com/paritytech/substrate/blob/master/primitives/transaction-pool/src/pool.rs#L58-L110
|
|
38
|
+
*/
|
|
39
|
+
Aborted = "Aborted"
|
|
40
|
+
}
|
|
41
|
+
export declare enum TransactionQueueStatus {
|
|
42
|
+
/**
|
|
43
|
+
* the queue is prepped to run
|
|
44
|
+
*/
|
|
45
|
+
Idle = "Idle",
|
|
46
|
+
/**
|
|
47
|
+
* transactions in the queue are being executed
|
|
48
|
+
*/
|
|
49
|
+
Running = "Running",
|
|
50
|
+
/**
|
|
51
|
+
* a critical transaction's execution failed.
|
|
52
|
+
* This might mean the transaction was rejected,
|
|
53
|
+
* failed due to a revert or never entered a block
|
|
54
|
+
*/
|
|
55
|
+
Failed = "Failed",
|
|
56
|
+
/**
|
|
57
|
+
* the queue finished running all of its transactions. Non-critical transactions
|
|
58
|
+
* might still have failed
|
|
59
|
+
*/
|
|
60
|
+
Succeeded = "Succeeded"
|
|
61
|
+
}
|
|
62
|
+
export declare enum RoleType {
|
|
63
|
+
TickerOwner = "TickerOwner",
|
|
64
|
+
CddProvider = "CddProvider",
|
|
65
|
+
VenueOwner = "VenueOwner",
|
|
66
|
+
PortfolioCustodian = "PortfolioCustodian",
|
|
67
|
+
CorporateActionsAgent = "CorporateActionsAgent",
|
|
68
|
+
Identity = "Identity"
|
|
69
|
+
}
|
|
70
|
+
export interface TickerOwnerRole {
|
|
71
|
+
type: RoleType.TickerOwner;
|
|
72
|
+
ticker: string;
|
|
73
|
+
}
|
|
74
|
+
export interface CddProviderRole {
|
|
75
|
+
type: RoleType.CddProvider;
|
|
76
|
+
}
|
|
77
|
+
export interface VenueOwnerRole {
|
|
78
|
+
type: RoleType.VenueOwner;
|
|
79
|
+
venueId: BigNumber;
|
|
80
|
+
}
|
|
81
|
+
export interface PortfolioCustodianRole {
|
|
82
|
+
type: RoleType.PortfolioCustodian;
|
|
83
|
+
portfolioId: PortfolioId;
|
|
84
|
+
}
|
|
85
|
+
export interface IdentityRole {
|
|
86
|
+
type: RoleType.Identity;
|
|
87
|
+
did: string;
|
|
88
|
+
}
|
|
89
|
+
export declare type Role = TickerOwnerRole | CddProviderRole | VenueOwnerRole | PortfolioCustodianRole | IdentityRole;
|
|
90
|
+
export declare enum KnownAssetType {
|
|
91
|
+
EquityCommon = "EquityCommon",
|
|
92
|
+
EquityPreferred = "EquityPreferred",
|
|
93
|
+
Commodity = "Commodity",
|
|
94
|
+
FixedIncome = "FixedIncome",
|
|
95
|
+
Reit = "Reit",
|
|
96
|
+
Fund = "Fund",
|
|
97
|
+
RevenueShareAgreement = "RevenueShareAgreement",
|
|
98
|
+
StructuredProduct = "StructuredProduct",
|
|
99
|
+
Derivative = "Derivative",
|
|
100
|
+
StableCoin = "StableCoin"
|
|
101
|
+
}
|
|
102
|
+
export declare enum SecurityIdentifierType {
|
|
103
|
+
Isin = "Isin",
|
|
104
|
+
Cusip = "Cusip",
|
|
105
|
+
Cins = "Cins",
|
|
106
|
+
Lei = "Lei"
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Alphanumeric standardized security identifier
|
|
110
|
+
*/
|
|
111
|
+
export interface SecurityIdentifier {
|
|
112
|
+
type: SecurityIdentifierType;
|
|
113
|
+
value: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Document attached to a token
|
|
117
|
+
*/
|
|
118
|
+
export interface AssetDocument {
|
|
119
|
+
name: string;
|
|
120
|
+
uri: string;
|
|
121
|
+
/**
|
|
122
|
+
* hex representation of the document (must be prefixed by "0x")
|
|
123
|
+
*/
|
|
124
|
+
contentHash?: string;
|
|
125
|
+
type?: string;
|
|
126
|
+
filedAt?: Date;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Type of Authorization Request
|
|
130
|
+
*/
|
|
131
|
+
export declare enum AuthorizationType {
|
|
132
|
+
AttestPrimaryKeyRotation = "AttestPrimaryKeyRotation",
|
|
133
|
+
RotatePrimaryKey = "RotatePrimaryKey",
|
|
134
|
+
TransferTicker = "TransferTicker",
|
|
135
|
+
AddMultiSigSigner = "AddMultiSigSigner",
|
|
136
|
+
TransferAssetOwnership = "TransferAssetOwnership",
|
|
137
|
+
JoinIdentity = "JoinIdentity",
|
|
138
|
+
PortfolioCustody = "PortfolioCustody",
|
|
139
|
+
BecomeAgent = "BecomeAgent",
|
|
140
|
+
AddRelayerPayingKey = "AddRelayerPayingKey",
|
|
141
|
+
RotatePrimaryKeyToSecondary = "RotatePrimaryKeyToSecondary"
|
|
142
|
+
}
|
|
143
|
+
export declare enum ConditionTarget {
|
|
144
|
+
Sender = "Sender",
|
|
145
|
+
Receiver = "Receiver",
|
|
146
|
+
Both = "Both"
|
|
147
|
+
}
|
|
148
|
+
export declare enum ScopeType {
|
|
149
|
+
Identity = "Identity",
|
|
150
|
+
Ticker = "Ticker",
|
|
151
|
+
Custom = "Custom"
|
|
152
|
+
}
|
|
153
|
+
export interface Scope {
|
|
154
|
+
type: ScopeType;
|
|
155
|
+
value: string;
|
|
156
|
+
}
|
|
157
|
+
export declare enum ClaimType {
|
|
158
|
+
Accredited = "Accredited",
|
|
159
|
+
Affiliate = "Affiliate",
|
|
160
|
+
BuyLockup = "BuyLockup",
|
|
161
|
+
SellLockup = "SellLockup",
|
|
162
|
+
CustomerDueDiligence = "CustomerDueDiligence",
|
|
163
|
+
KnowYourCustomer = "KnowYourCustomer",
|
|
164
|
+
Jurisdiction = "Jurisdiction",
|
|
165
|
+
Exempted = "Exempted",
|
|
166
|
+
Blocked = "Blocked",
|
|
167
|
+
InvestorUniqueness = "InvestorUniqueness",
|
|
168
|
+
NoData = "NoData",
|
|
169
|
+
InvestorUniquenessV2 = "InvestorUniquenessV2"
|
|
170
|
+
}
|
|
171
|
+
export interface AccreditedClaim {
|
|
172
|
+
type: ClaimType.Accredited;
|
|
173
|
+
scope: Scope;
|
|
174
|
+
}
|
|
175
|
+
export interface AffiliateClaim {
|
|
176
|
+
type: ClaimType.Affiliate;
|
|
177
|
+
scope: Scope;
|
|
178
|
+
}
|
|
179
|
+
export interface BuyLockupClaim {
|
|
180
|
+
type: ClaimType.BuyLockup;
|
|
181
|
+
scope: Scope;
|
|
182
|
+
}
|
|
183
|
+
export interface SellLockupClaim {
|
|
184
|
+
type: ClaimType.SellLockup;
|
|
185
|
+
scope: Scope;
|
|
186
|
+
}
|
|
187
|
+
export interface CddClaim {
|
|
188
|
+
type: ClaimType.CustomerDueDiligence;
|
|
189
|
+
id: string;
|
|
190
|
+
}
|
|
191
|
+
export interface KycClaim {
|
|
192
|
+
type: ClaimType.KnowYourCustomer;
|
|
193
|
+
scope: Scope;
|
|
194
|
+
}
|
|
195
|
+
export interface JurisdictionClaim {
|
|
196
|
+
type: ClaimType.Jurisdiction;
|
|
197
|
+
code: CountryCode;
|
|
198
|
+
scope: Scope;
|
|
199
|
+
}
|
|
200
|
+
export interface ExemptedClaim {
|
|
201
|
+
type: ClaimType.Exempted;
|
|
202
|
+
scope: Scope;
|
|
203
|
+
}
|
|
204
|
+
export interface BlockedClaim {
|
|
205
|
+
type: ClaimType.Blocked;
|
|
206
|
+
scope: Scope;
|
|
207
|
+
}
|
|
208
|
+
export interface InvestorUniquenessClaim {
|
|
209
|
+
type: ClaimType.InvestorUniqueness;
|
|
210
|
+
scope: Scope;
|
|
211
|
+
cddId: string;
|
|
212
|
+
scopeId: string;
|
|
213
|
+
}
|
|
214
|
+
export interface NoDataClaim {
|
|
215
|
+
type: ClaimType.NoData;
|
|
216
|
+
}
|
|
217
|
+
export interface InvestorUniquenessV2Claim {
|
|
218
|
+
type: ClaimType.InvestorUniquenessV2;
|
|
219
|
+
cddId: string;
|
|
220
|
+
}
|
|
221
|
+
export declare type ScopedClaim = JurisdictionClaim | InvestorUniquenessClaim | AccreditedClaim | AffiliateClaim | BuyLockupClaim | SellLockupClaim | KycClaim | ExemptedClaim | BlockedClaim;
|
|
222
|
+
export declare type UnscopedClaim = NoDataClaim | CddClaim | InvestorUniquenessV2Claim;
|
|
223
|
+
export declare type Claim = ScopedClaim | UnscopedClaim;
|
|
224
|
+
export interface ClaimData<ClaimType = Claim> {
|
|
225
|
+
target: Identity;
|
|
226
|
+
issuer: Identity;
|
|
227
|
+
issuedAt: Date;
|
|
228
|
+
expiry: Date | null;
|
|
229
|
+
claim: ClaimType;
|
|
230
|
+
}
|
|
231
|
+
export interface IdentityWithClaims {
|
|
232
|
+
identity: Identity;
|
|
233
|
+
claims: ClaimData[];
|
|
234
|
+
}
|
|
235
|
+
export interface ExtrinsicData {
|
|
236
|
+
blockHash: string;
|
|
237
|
+
blockNumber: BigNumber;
|
|
238
|
+
extrinsicIdx: BigNumber;
|
|
239
|
+
/**
|
|
240
|
+
* public key of the signer. Unsigned transactions have no signer, in which case this value is null (example: an enacted governance proposal)
|
|
241
|
+
*/
|
|
242
|
+
address: string | null;
|
|
243
|
+
/**
|
|
244
|
+
* nonce of the transaction. Null for unsigned transactions where address is null
|
|
245
|
+
*/
|
|
246
|
+
nonce: BigNumber | null;
|
|
247
|
+
txTag: TxTag;
|
|
248
|
+
params: Record<string, unknown>[];
|
|
249
|
+
success: boolean;
|
|
250
|
+
specVersionId: BigNumber;
|
|
251
|
+
extrinsicHash: string;
|
|
252
|
+
}
|
|
253
|
+
export interface ExtrinsicDataWithFees extends ExtrinsicData {
|
|
254
|
+
fee: Fees;
|
|
255
|
+
}
|
|
256
|
+
export interface ProtocolFees {
|
|
257
|
+
tag: TxTag;
|
|
258
|
+
fees: BigNumber;
|
|
259
|
+
}
|
|
260
|
+
export interface ClaimScope {
|
|
261
|
+
scope: Scope | null;
|
|
262
|
+
ticker?: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* @param IsDefault - whether the Identity is a default trusted claim issuer for an asset or just
|
|
266
|
+
* for a specific compliance condition. Defaults to false
|
|
267
|
+
*/
|
|
268
|
+
export interface TrustedClaimIssuer<IsDefault extends boolean = false> {
|
|
269
|
+
identity: IsDefault extends true ? DefaultTrustedClaimIssuer : Identity;
|
|
270
|
+
/**
|
|
271
|
+
* a null value means that the issuer is trusted for all claim types
|
|
272
|
+
*/
|
|
273
|
+
trustedFor: ClaimType[] | null;
|
|
274
|
+
}
|
|
275
|
+
export declare type InputTrustedClaimIssuer = Modify<TrustedClaimIssuer, {
|
|
276
|
+
identity: string | Identity;
|
|
277
|
+
}>;
|
|
278
|
+
export declare enum ConditionType {
|
|
279
|
+
IsPresent = "IsPresent",
|
|
280
|
+
IsAbsent = "IsAbsent",
|
|
281
|
+
IsAnyOf = "IsAnyOf",
|
|
282
|
+
IsNoneOf = "IsNoneOf",
|
|
283
|
+
IsExternalAgent = "IsExternalAgent",
|
|
284
|
+
IsIdentity = "IsIdentity"
|
|
285
|
+
}
|
|
286
|
+
export interface ConditionBase {
|
|
287
|
+
target: ConditionTarget;
|
|
288
|
+
/**
|
|
289
|
+
* if undefined, the default trusted claim issuers for the Asset are used
|
|
290
|
+
*/
|
|
291
|
+
trustedClaimIssuers?: TrustedClaimIssuer[];
|
|
292
|
+
}
|
|
293
|
+
export declare type InputConditionBase = Modify<ConditionBase, {
|
|
294
|
+
/**
|
|
295
|
+
* if undefined, the default trusted claim issuers for the Asset are used
|
|
296
|
+
*/
|
|
297
|
+
trustedClaimIssuers?: InputTrustedClaimIssuer[];
|
|
298
|
+
}>;
|
|
299
|
+
export interface SingleClaimCondition {
|
|
300
|
+
type: ConditionType.IsPresent | ConditionType.IsAbsent;
|
|
301
|
+
claim: Claim;
|
|
302
|
+
}
|
|
303
|
+
export interface MultiClaimCondition {
|
|
304
|
+
type: ConditionType.IsAnyOf | ConditionType.IsNoneOf;
|
|
305
|
+
claims: Claim[];
|
|
306
|
+
}
|
|
307
|
+
export interface IdentityCondition {
|
|
308
|
+
type: ConditionType.IsIdentity;
|
|
309
|
+
identity: Identity;
|
|
310
|
+
}
|
|
311
|
+
export interface ExternalAgentCondition {
|
|
312
|
+
type: ConditionType.IsExternalAgent;
|
|
313
|
+
}
|
|
314
|
+
export declare type Condition = (SingleClaimCondition | MultiClaimCondition | IdentityCondition | ExternalAgentCondition) & ConditionBase;
|
|
315
|
+
export declare type InputCondition = (SingleClaimCondition | MultiClaimCondition | Modify<IdentityCondition, {
|
|
316
|
+
identity: string | Identity;
|
|
317
|
+
}> | ExternalAgentCondition) & InputConditionBase;
|
|
318
|
+
export interface Requirement {
|
|
319
|
+
id: BigNumber;
|
|
320
|
+
conditions: Condition[];
|
|
321
|
+
}
|
|
322
|
+
export interface ComplianceRequirements {
|
|
323
|
+
requirements: Requirement[];
|
|
324
|
+
/**
|
|
325
|
+
* used for conditions where no trusted claim issuers were specified
|
|
326
|
+
*/
|
|
327
|
+
defaultTrustedClaimIssuers: TrustedClaimIssuer[];
|
|
328
|
+
}
|
|
329
|
+
export declare type InputRequirement = Modify<Requirement, {
|
|
330
|
+
conditions: InputCondition[];
|
|
331
|
+
}>;
|
|
332
|
+
export interface ConditionCompliance {
|
|
333
|
+
condition: Condition;
|
|
334
|
+
complies: boolean;
|
|
335
|
+
}
|
|
336
|
+
export interface RequirementCompliance {
|
|
337
|
+
id: BigNumber;
|
|
338
|
+
conditions: ConditionCompliance[];
|
|
339
|
+
complies: boolean;
|
|
340
|
+
}
|
|
341
|
+
export interface Compliance {
|
|
342
|
+
requirements: RequirementCompliance[];
|
|
343
|
+
complies: boolean;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Specifies possible types of errors in the SDK
|
|
347
|
+
*/
|
|
348
|
+
export declare enum ErrorCode {
|
|
349
|
+
/**
|
|
350
|
+
* transaction removed from the tx pool
|
|
351
|
+
*/
|
|
352
|
+
TransactionAborted = "TransactionAborted",
|
|
353
|
+
/**
|
|
354
|
+
* user rejected the transaction in their wallet
|
|
355
|
+
*/
|
|
356
|
+
TransactionRejectedByUser = "TransactionRejectedByUser",
|
|
357
|
+
/**
|
|
358
|
+
* transaction failed due to an on-chain error. This is a business logic error,
|
|
359
|
+
* and it should be caught by the SDK before being sent to the chain.
|
|
360
|
+
* Please report it to the Polymath team
|
|
361
|
+
*/
|
|
362
|
+
TransactionReverted = "TransactionReverted",
|
|
363
|
+
/**
|
|
364
|
+
* error that should cause termination of the calling application
|
|
365
|
+
*/
|
|
366
|
+
FatalError = "FatalError",
|
|
367
|
+
/**
|
|
368
|
+
* user input error. This means that one or more inputs passed by the user
|
|
369
|
+
* do not conform to expected value ranges or types
|
|
370
|
+
*/
|
|
371
|
+
ValidationError = "ValidationError",
|
|
372
|
+
/**
|
|
373
|
+
* user does not have the required roles/permissions to perform an operation
|
|
374
|
+
*/
|
|
375
|
+
NotAuthorized = "NotAuthorized",
|
|
376
|
+
/**
|
|
377
|
+
* errors encountered when interacting with the historic data middleware (GQL server)
|
|
378
|
+
*/
|
|
379
|
+
MiddlewareError = "MiddlewareError",
|
|
380
|
+
/**
|
|
381
|
+
* the data that is being fetched does not exist on-chain, or relies on non-existent data. There are
|
|
382
|
+
* some cases where the data did exist at some point, but has been deleted to save storage space
|
|
383
|
+
*/
|
|
384
|
+
DataUnavailable = "DataUnavailable",
|
|
385
|
+
/**
|
|
386
|
+
* the data that is being written to the chain is the same data that is already in place. This would result
|
|
387
|
+
* in a redundant/useless transaction being executed
|
|
388
|
+
*/
|
|
389
|
+
NoDataChange = "NoDataChange",
|
|
390
|
+
/**
|
|
391
|
+
* the data that is being written to the chain would result in some limit being exceeded. For example, adding a transfer
|
|
392
|
+
* restriction when the maximum possible amount has already been added
|
|
393
|
+
*/
|
|
394
|
+
LimitExceeded = "LimitExceeded",
|
|
395
|
+
/**
|
|
396
|
+
* one or more base prerequisites for a transaction to be successful haven't been met. For example, reserving a ticker requires
|
|
397
|
+
* said ticker to not be already reserved. Attempting to reserve a ticker without that prerequisite being met would result in this
|
|
398
|
+
* type of error. Attempting to create an entity that already exists would also fall into this category,
|
|
399
|
+
* if the entity in question is supposed to be unique
|
|
400
|
+
*/
|
|
401
|
+
UnmetPrerequisite = "UnmetPrerequisite",
|
|
402
|
+
/**
|
|
403
|
+
* this type of error is thrown when attempting to delete/modify an entity which has other entities depending on it. For example, deleting
|
|
404
|
+
* a Portfolio that still holds assets, or removing a Checkpoint Schedule that is being referenced by a Corporate Action
|
|
405
|
+
*/
|
|
406
|
+
EntityInUse = "EntityInUse",
|
|
407
|
+
/**
|
|
408
|
+
* one or more parties involved in the transaction do not have enough balance to perform it
|
|
409
|
+
*/
|
|
410
|
+
InsufficientBalance = "InsufficientBalance",
|
|
411
|
+
/**
|
|
412
|
+
* errors that are the result of something unforeseen.
|
|
413
|
+
* These should generally be reported to the Polymath team
|
|
414
|
+
*/
|
|
415
|
+
UnexpectedError = "UnexpectedError",
|
|
416
|
+
/**
|
|
417
|
+
* general purpose errors that don't fit well into the other categories
|
|
418
|
+
*/
|
|
419
|
+
General = "General"
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* ERC1400 compliant transfer status
|
|
423
|
+
*/
|
|
424
|
+
export declare enum TransferStatus {
|
|
425
|
+
Failure = "Failure",
|
|
426
|
+
Success = "Success",
|
|
427
|
+
InsufficientBalance = "InsufficientBalance",
|
|
428
|
+
InsufficientAllowance = "InsufficientAllowance",
|
|
429
|
+
TransfersHalted = "TransfersHalted",
|
|
430
|
+
FundsLocked = "FundsLocked",
|
|
431
|
+
InvalidSenderAddress = "InvalidSenderAddress",
|
|
432
|
+
InvalidReceiverAddress = "InvalidReceiverAddress",
|
|
433
|
+
InvalidOperator = "InvalidOperator",
|
|
434
|
+
InvalidSenderIdentity = "InvalidSenderIdentity",
|
|
435
|
+
InvalidReceiverIdentity = "InvalidReceiverIdentity",
|
|
436
|
+
ComplianceFailure = "ComplianceFailure",
|
|
437
|
+
SmartExtensionFailure = "SmartExtensionFailure",
|
|
438
|
+
InvalidGranularity = "InvalidGranularity",
|
|
439
|
+
VolumeLimitReached = "VolumeLimitReached",
|
|
440
|
+
BlockedTransaction = "BlockedTransaction",
|
|
441
|
+
FundsLimitReached = "FundsLimitReached",
|
|
442
|
+
PortfolioFailure = "PortfolioFailure",
|
|
443
|
+
CustodianError = "CustodianError",
|
|
444
|
+
ScopeClaimMissing = "ScopeClaimMissing",
|
|
445
|
+
TransferRestrictionFailure = "TransferRestrictionFailure"
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Akin to TransferStatus, these are a bit more granular and specific. Every TransferError translates to
|
|
449
|
+
* a {@link TransferStatus}, but two or more TransferErrors can represent the same TransferStatus, and
|
|
450
|
+
* not all Transfer Statuses are represented by a TransferError
|
|
451
|
+
*/
|
|
452
|
+
export declare enum TransferError {
|
|
453
|
+
/**
|
|
454
|
+
* translates to TransferStatus.InvalidGranularity
|
|
455
|
+
*
|
|
456
|
+
* occurs if attempting to transfer decimal amounts of a non-divisible token
|
|
457
|
+
*/
|
|
458
|
+
InvalidGranularity = "InvalidGranularity",
|
|
459
|
+
/**
|
|
460
|
+
* translates to TransferStatus.InvalidReceiverIdentity
|
|
461
|
+
*
|
|
462
|
+
* occurs if the origin and destination Identities are the same
|
|
463
|
+
*/
|
|
464
|
+
SelfTransfer = "SelfTransfer",
|
|
465
|
+
/**
|
|
466
|
+
* translates to TransferStatus.InvalidReceiverIdentity
|
|
467
|
+
*
|
|
468
|
+
* occurs if the receiver Identity doesn't have a valid CDD claim
|
|
469
|
+
*/
|
|
470
|
+
InvalidReceiverCdd = "InvalidReceiverCdd",
|
|
471
|
+
/**
|
|
472
|
+
* translates to TransferStatus.InvalidSenderIdentity
|
|
473
|
+
*
|
|
474
|
+
* occurs if the receiver Identity doesn't have a valid CDD claim
|
|
475
|
+
*/
|
|
476
|
+
InvalidSenderCdd = "InvalidSenderCdd",
|
|
477
|
+
/**
|
|
478
|
+
* translates to TransferStatus.ScopeClaimMissing
|
|
479
|
+
*
|
|
480
|
+
* occurs if one of the participants doesn't have a valid Investor Uniqueness Claim for
|
|
481
|
+
* the Asset
|
|
482
|
+
*/
|
|
483
|
+
ScopeClaimMissing = "ScopeClaimMissing",
|
|
484
|
+
/**
|
|
485
|
+
* translates to TransferStatus.InsufficientBalance
|
|
486
|
+
*
|
|
487
|
+
* occurs if the sender Identity does not have enough balance to cover the amount
|
|
488
|
+
*/
|
|
489
|
+
InsufficientBalance = "InsufficientBalance",
|
|
490
|
+
/**
|
|
491
|
+
* translates to TransferStatus.TransfersHalted
|
|
492
|
+
*
|
|
493
|
+
* occurs if the Asset's transfers are frozen
|
|
494
|
+
*/
|
|
495
|
+
TransfersFrozen = "TransfersFrozen",
|
|
496
|
+
/**
|
|
497
|
+
* translates to TransferStatus.PortfolioFailure
|
|
498
|
+
*
|
|
499
|
+
* occurs if the sender Portfolio doesn't exist
|
|
500
|
+
*/
|
|
501
|
+
InvalidSenderPortfolio = "InvalidSenderPortfolio",
|
|
502
|
+
/**
|
|
503
|
+
* translates to TransferStatus.PortfolioFailure
|
|
504
|
+
*
|
|
505
|
+
* occurs if the receiver Portfolio doesn't exist
|
|
506
|
+
*/
|
|
507
|
+
InvalidReceiverPortfolio = "InvalidReceiverPortfolio",
|
|
508
|
+
/**
|
|
509
|
+
* translates to TransferStatus.PortfolioFailure
|
|
510
|
+
*
|
|
511
|
+
* occurs if the sender Portfolio does not have enough balance to cover the amount
|
|
512
|
+
*/
|
|
513
|
+
InsufficientPortfolioBalance = "InsufficientPortfolioBalance"
|
|
514
|
+
}
|
|
515
|
+
export interface ClaimTarget {
|
|
516
|
+
target: string | Identity;
|
|
517
|
+
claim: Claim;
|
|
518
|
+
expiry?: Date;
|
|
519
|
+
}
|
|
520
|
+
export declare type SubCallback<T> = (result: T) => void | Promise<void>;
|
|
521
|
+
export declare type UnsubCallback = () => void;
|
|
522
|
+
export interface MiddlewareConfig {
|
|
523
|
+
link: string;
|
|
524
|
+
key: string;
|
|
525
|
+
}
|
|
526
|
+
export interface EventIdentifier {
|
|
527
|
+
blockNumber: BigNumber;
|
|
528
|
+
blockHash: string;
|
|
529
|
+
blockDate: Date;
|
|
530
|
+
eventIndex: BigNumber;
|
|
531
|
+
}
|
|
532
|
+
export interface Balance {
|
|
533
|
+
/**
|
|
534
|
+
* balance available for transferring and paying fees
|
|
535
|
+
*/
|
|
536
|
+
free: BigNumber;
|
|
537
|
+
/**
|
|
538
|
+
* unavailable balance, either bonded for staking or locked for some other purpose
|
|
539
|
+
*/
|
|
540
|
+
locked: BigNumber;
|
|
541
|
+
/**
|
|
542
|
+
* free + locked
|
|
543
|
+
*/
|
|
544
|
+
total: BigNumber;
|
|
545
|
+
}
|
|
546
|
+
export declare type AccountBalance = Balance;
|
|
547
|
+
export interface PaginationOptions {
|
|
548
|
+
size: BigNumber;
|
|
549
|
+
start?: string;
|
|
550
|
+
}
|
|
551
|
+
export declare type NextKey = string | BigNumber | null;
|
|
552
|
+
export interface ResultSet<T> {
|
|
553
|
+
data: T[];
|
|
554
|
+
next: NextKey;
|
|
555
|
+
count?: BigNumber;
|
|
556
|
+
}
|
|
557
|
+
export interface NetworkProperties {
|
|
558
|
+
name: string;
|
|
559
|
+
version: BigNumber;
|
|
560
|
+
}
|
|
561
|
+
export interface Fees {
|
|
562
|
+
/**
|
|
563
|
+
* bonus fee charged by certain transactions
|
|
564
|
+
*/
|
|
565
|
+
protocol: BigNumber;
|
|
566
|
+
/**
|
|
567
|
+
* regular network fee
|
|
568
|
+
*/
|
|
569
|
+
gas: BigNumber;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Type of relationship between a paying account and a beneficiary
|
|
573
|
+
*/
|
|
574
|
+
export declare enum PayingAccountType {
|
|
575
|
+
/**
|
|
576
|
+
* the paying Account is currently subsidizing the caller
|
|
577
|
+
*/
|
|
578
|
+
Subsidy = "Subsidy",
|
|
579
|
+
/**
|
|
580
|
+
* the paying Account is paying for a specific transaction because of
|
|
581
|
+
* chain-specific constraints (i.e. the caller is accepting an invitation to an Identity
|
|
582
|
+
* and cannot have any funds to pay for it by definition)
|
|
583
|
+
*/
|
|
584
|
+
Other = "Other"
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Represents a relationship in which a third party Account
|
|
588
|
+
* is paying for a transaction on behalf of the caller
|
|
589
|
+
*/
|
|
590
|
+
export interface PayingAccount {
|
|
591
|
+
type: PayingAccountType;
|
|
592
|
+
/**
|
|
593
|
+
* Account that pays for the transaction
|
|
594
|
+
*/
|
|
595
|
+
account: Account;
|
|
596
|
+
/**
|
|
597
|
+
* total amount that will be paid for
|
|
598
|
+
*/
|
|
599
|
+
allowance: BigNumber | null;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Breakdown of the fees that will be paid by a specific third party in a Transaction Queue
|
|
603
|
+
*/
|
|
604
|
+
export interface ThirdPartyFees extends PayingAccount {
|
|
605
|
+
/**
|
|
606
|
+
* fees that will be paid by the third party Account
|
|
607
|
+
*/
|
|
608
|
+
fees: Fees;
|
|
609
|
+
/**
|
|
610
|
+
* free balance of the third party Account
|
|
611
|
+
*/
|
|
612
|
+
balance: BigNumber;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Breakdown of transaction fees for a Transaction Queue. In most cases, the entirety of the Queue's fees
|
|
616
|
+
* will be paid by either the signing Account or a third party. In some rare cases,
|
|
617
|
+
* fees can be split between them (for example, if the signing Account is being subsidized, but one of the
|
|
618
|
+
* transactions in the queue terminates the subsidy, leaving the signing Account with the responsibility of
|
|
619
|
+
* paying for the rest of the transactions)
|
|
620
|
+
*/
|
|
621
|
+
export interface FeesBreakdown {
|
|
622
|
+
/**
|
|
623
|
+
* fees that will be paid by third parties. Each element in the array represents
|
|
624
|
+
* a different third party Account, their corresponding fees, allowances and balance
|
|
625
|
+
*/
|
|
626
|
+
thirdPartyFees: ThirdPartyFees[];
|
|
627
|
+
/**
|
|
628
|
+
* fees that must be paid by the caller Account
|
|
629
|
+
*/
|
|
630
|
+
accountFees: Fees;
|
|
631
|
+
/**
|
|
632
|
+
* free balance of the caller Account
|
|
633
|
+
*/
|
|
634
|
+
accountBalance: BigNumber;
|
|
635
|
+
}
|
|
636
|
+
export declare enum SignerType {
|
|
637
|
+
Identity = "Identity",
|
|
638
|
+
Account = "Account"
|
|
639
|
+
}
|
|
640
|
+
export interface SignerValue {
|
|
641
|
+
/**
|
|
642
|
+
* whether the signer is an Account or Identity
|
|
643
|
+
*/
|
|
644
|
+
type: SignerType;
|
|
645
|
+
/**
|
|
646
|
+
* address or DID (depending on whether the signer is an Account or Identity)
|
|
647
|
+
*/
|
|
648
|
+
value: string;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Transaction Groups (for permissions purposes)
|
|
652
|
+
*/
|
|
653
|
+
export declare enum TxGroup {
|
|
654
|
+
/**
|
|
655
|
+
* - TxTags.identity.AddInvestorUniquenessClaim
|
|
656
|
+
* - TxTags.portfolio.MovePortfolioFunds
|
|
657
|
+
* - TxTags.settlement.AddInstruction
|
|
658
|
+
* - TxTags.settlement.AddAndAffirmInstruction
|
|
659
|
+
* - TxTags.settlement.AffirmInstruction
|
|
660
|
+
* - TxTags.settlement.RejectInstruction
|
|
661
|
+
* - TxTags.settlement.CreateVenue
|
|
662
|
+
*/
|
|
663
|
+
PortfolioManagement = "PortfolioManagement",
|
|
664
|
+
/**
|
|
665
|
+
* - TxTags.asset.MakeDivisible
|
|
666
|
+
* - TxTags.asset.RenameAsset
|
|
667
|
+
* - TxTags.asset.SetFundingRound
|
|
668
|
+
* - TxTags.asset.AddDocuments
|
|
669
|
+
* - TxTags.asset.RemoveDocuments
|
|
670
|
+
*/
|
|
671
|
+
AssetManagement = "AssetManagement",
|
|
672
|
+
/**
|
|
673
|
+
* - TxTags.asset.Freeze
|
|
674
|
+
* - TxTags.asset.Unfreeze
|
|
675
|
+
* - TxTags.identity.AddAuthorization
|
|
676
|
+
* - TxTags.identity.RemoveAuthorization
|
|
677
|
+
*/
|
|
678
|
+
AdvancedAssetManagement = "AdvancedAssetManagement",
|
|
679
|
+
/**
|
|
680
|
+
* - TxTags.identity.AddInvestorUniquenessClaim
|
|
681
|
+
* - TxTags.settlement.CreateVenue
|
|
682
|
+
* - TxTags.settlement.AddInstruction
|
|
683
|
+
* - TxTags.settlement.AddAndAffirmInstruction
|
|
684
|
+
*/
|
|
685
|
+
Distribution = "Distribution",
|
|
686
|
+
/**
|
|
687
|
+
* - TxTags.asset.Issue
|
|
688
|
+
*/
|
|
689
|
+
Issuance = "Issuance",
|
|
690
|
+
/**
|
|
691
|
+
* - TxTags.complianceManager.AddDefaultTrustedClaimIssuer
|
|
692
|
+
* - TxTags.complianceManager.RemoveDefaultTrustedClaimIssuer
|
|
693
|
+
*/
|
|
694
|
+
TrustedClaimIssuersManagement = "TrustedClaimIssuersManagement",
|
|
695
|
+
/**
|
|
696
|
+
* - TxTags.identity.AddClaim
|
|
697
|
+
* - TxTags.identity.RevokeClaim
|
|
698
|
+
*/
|
|
699
|
+
ClaimsManagement = "ClaimsManagement",
|
|
700
|
+
/**
|
|
701
|
+
* - TxTags.complianceManager.AddComplianceRequirement
|
|
702
|
+
* - TxTags.complianceManager.RemoveComplianceRequirement
|
|
703
|
+
* - TxTags.complianceManager.PauseAssetCompliance
|
|
704
|
+
* - TxTags.complianceManager.ResumeAssetCompliance
|
|
705
|
+
* - TxTags.complianceManager.ResetAssetCompliance
|
|
706
|
+
*/
|
|
707
|
+
ComplianceRequirementsManagement = "ComplianceRequirementsManagement",
|
|
708
|
+
/**
|
|
709
|
+
* - TxTags.checkpoint.CreateSchedule,
|
|
710
|
+
* - TxTags.checkpoint.RemoveSchedule,
|
|
711
|
+
* - TxTags.checkpoint.CreateCheckpoint,
|
|
712
|
+
* - TxTags.corporateAction.InitiateCorporateAction,
|
|
713
|
+
* - TxTags.capitalDistribution.Distribute,
|
|
714
|
+
* - TxTags.capitalDistribution.Claim,
|
|
715
|
+
* - TxTags.identity.AddInvestorUniquenessClaim,
|
|
716
|
+
*/
|
|
717
|
+
CorporateActionsManagement = "CorporateActionsManagement",
|
|
718
|
+
/**
|
|
719
|
+
* - TxTags.sto.CreateFundraiser,
|
|
720
|
+
* - TxTags.sto.FreezeFundraiser,
|
|
721
|
+
* - TxTags.sto.Invest,
|
|
722
|
+
* - TxTags.sto.ModifyFundraiserWindow,
|
|
723
|
+
* - TxTags.sto.Stop,
|
|
724
|
+
* - TxTags.sto.UnfreezeFundraiser,
|
|
725
|
+
* - TxTags.identity.AddInvestorUniquenessClaim,
|
|
726
|
+
* - TxTags.asset.Issue,
|
|
727
|
+
* - TxTags.settlement.CreateVenue
|
|
728
|
+
*/
|
|
729
|
+
StoManagement = "StoManagement"
|
|
730
|
+
}
|
|
731
|
+
export declare enum PermissionType {
|
|
732
|
+
Include = "Include",
|
|
733
|
+
Exclude = "Exclude"
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Signer/agent permissions for a specific type
|
|
737
|
+
*
|
|
738
|
+
* @param T - type of Permissions (Asset, Transaction, Portfolio, etc)
|
|
739
|
+
*/
|
|
740
|
+
export interface SectionPermissions<T> {
|
|
741
|
+
/**
|
|
742
|
+
* Values to be included/excluded
|
|
743
|
+
*/
|
|
744
|
+
values: T[];
|
|
745
|
+
/**
|
|
746
|
+
* Whether the permissions are inclusive or exclusive
|
|
747
|
+
*/
|
|
748
|
+
type: PermissionType;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Permissions related to Transactions. Can include/exclude individual transactions or entire modules
|
|
752
|
+
*/
|
|
753
|
+
export interface TransactionPermissions extends SectionPermissions<TxTag | ModuleName> {
|
|
754
|
+
/**
|
|
755
|
+
* Transactions to be exempted from inclusion/exclusion. This allows more granularity when
|
|
756
|
+
* setting permissions. For example, let's say we want to include only the `asset` and `staking` modules,
|
|
757
|
+
* but exclude the `asset.registerTicker` transaction. We could add both modules to `values`, and add
|
|
758
|
+
* `TxTags.asset.registerTicker` to `exceptions`
|
|
759
|
+
*/
|
|
760
|
+
exceptions?: TxTag[];
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* Permissions a Secondary Key has over the Identity. A null value means the key has
|
|
764
|
+
* all permissions of that type (i.e. if `assets` is null, the key has permissions over all
|
|
765
|
+
* of the Identity's Assets)
|
|
766
|
+
*/
|
|
767
|
+
export interface Permissions {
|
|
768
|
+
/**
|
|
769
|
+
* Assets over which this key has permissions
|
|
770
|
+
*/
|
|
771
|
+
assets: SectionPermissions<Asset> | null;
|
|
772
|
+
/**
|
|
773
|
+
* Transactions this key can execute
|
|
774
|
+
*/
|
|
775
|
+
transactions: TransactionPermissions | null;
|
|
776
|
+
/**
|
|
777
|
+
* list of Transaction Groups this key can execute. Having permissions over a TxGroup
|
|
778
|
+
* means having permissions over every TxTag in said group. Partial group permissions are not
|
|
779
|
+
* covered by this value. For a full picture of transaction permissions, see the `transactions` property
|
|
780
|
+
*
|
|
781
|
+
* NOTE: If transactions is null, ignore this value
|
|
782
|
+
*/
|
|
783
|
+
transactionGroups: TxGroup[];
|
|
784
|
+
portfolios: SectionPermissions<DefaultPortfolio | NumberedPortfolio> | null;
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Asset permissions shared by agents in a group
|
|
788
|
+
*/
|
|
789
|
+
export declare type GroupPermissions = Pick<Permissions, 'transactions' | 'transactionGroups'>;
|
|
790
|
+
/**
|
|
791
|
+
* All Permission Groups of a specific Asset, separated by `known` and `custom`
|
|
792
|
+
*/
|
|
793
|
+
export interface PermissionGroups {
|
|
794
|
+
known: KnownPermissionGroup[];
|
|
795
|
+
custom: CustomPermissionGroup[];
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* This represents positive permissions (i.e. only "includes"). It is used
|
|
799
|
+
* for specifying procedure requirements and querying if an Account has certain
|
|
800
|
+
* permissions. Null values represent full permissions in that category
|
|
801
|
+
*/
|
|
802
|
+
export interface SimplePermissions {
|
|
803
|
+
/**
|
|
804
|
+
* list of required Asset permissions
|
|
805
|
+
*/
|
|
806
|
+
assets?: Asset[] | null;
|
|
807
|
+
/**
|
|
808
|
+
* list of required Transaction permissions
|
|
809
|
+
*/
|
|
810
|
+
transactions?: TxTag[] | null;
|
|
811
|
+
portfolios?: (DefaultPortfolio | NumberedPortfolio)[] | null;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Result of a `checkRoles` call
|
|
815
|
+
*/
|
|
816
|
+
export interface CheckRolesResult {
|
|
817
|
+
/**
|
|
818
|
+
* required roles which the Identity *DOESN'T* have. Only present if `result` is `false`
|
|
819
|
+
*/
|
|
820
|
+
missingRoles?: Role[];
|
|
821
|
+
/**
|
|
822
|
+
* whether the signer possesses all the required roles or not
|
|
823
|
+
*/
|
|
824
|
+
result: boolean;
|
|
825
|
+
/**
|
|
826
|
+
* optional message explaining the reason for failure in special cases
|
|
827
|
+
*/
|
|
828
|
+
message?: string;
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* Result of a `checkPermissions` call. If `Type` is `Account`, represents whether the Account
|
|
832
|
+
* has all the necessary secondary key Permissions. If `Type` is `Identity`, represents whether the
|
|
833
|
+
* Identity has all the necessary external agent Permissions
|
|
834
|
+
*/
|
|
835
|
+
export interface CheckPermissionsResult<Type extends SignerType> {
|
|
836
|
+
/**
|
|
837
|
+
* required permissions which the signer *DOESN'T* have. Only present if `result` is `false`
|
|
838
|
+
*/
|
|
839
|
+
missingPermissions?: Type extends SignerType.Account ? SimplePermissions : TxTag[] | null;
|
|
840
|
+
/**
|
|
841
|
+
* whether the signer complies with the required permissions or not
|
|
842
|
+
*/
|
|
843
|
+
result: boolean;
|
|
844
|
+
/**
|
|
845
|
+
* optional message explaining the reason for failure in special cases
|
|
846
|
+
*/
|
|
847
|
+
message?: string;
|
|
848
|
+
}
|
|
849
|
+
export declare enum PermissionGroupType {
|
|
850
|
+
/**
|
|
851
|
+
* all transactions authorized
|
|
852
|
+
*/
|
|
853
|
+
Full = "Full",
|
|
854
|
+
/**
|
|
855
|
+
* not authorized:
|
|
856
|
+
* - externalAgents
|
|
857
|
+
*/
|
|
858
|
+
ExceptMeta = "ExceptMeta",
|
|
859
|
+
/**
|
|
860
|
+
* authorized:
|
|
861
|
+
* - corporateAction
|
|
862
|
+
* - corporateBallot
|
|
863
|
+
* - capitalDistribution
|
|
864
|
+
*/
|
|
865
|
+
PolymeshV1Caa = "PolymeshV1Caa",
|
|
866
|
+
/**
|
|
867
|
+
* authorized:
|
|
868
|
+
* - asset.issue
|
|
869
|
+
* - asset.redeem
|
|
870
|
+
* - asset.controllerTransfer
|
|
871
|
+
* - sto (except for sto.invest)
|
|
872
|
+
*/
|
|
873
|
+
PolymeshV1Pia = "PolymeshV1Pia"
|
|
874
|
+
}
|
|
875
|
+
export declare type RotatePrimaryKeyAuthorizationData = {
|
|
876
|
+
type: AuthorizationType.RotatePrimaryKey;
|
|
877
|
+
};
|
|
878
|
+
export declare type RotatePrimaryKeyToSecondaryData = {
|
|
879
|
+
type: AuthorizationType.RotatePrimaryKeyToSecondary;
|
|
880
|
+
value: Permissions;
|
|
881
|
+
};
|
|
882
|
+
export declare type JoinIdentityAuthorizationData = {
|
|
883
|
+
type: AuthorizationType.JoinIdentity;
|
|
884
|
+
value: Permissions;
|
|
885
|
+
};
|
|
886
|
+
export declare type PortfolioCustodyAuthorizationData = {
|
|
887
|
+
type: AuthorizationType.PortfolioCustody;
|
|
888
|
+
value: NumberedPortfolio | DefaultPortfolio;
|
|
889
|
+
};
|
|
890
|
+
export declare type BecomeAgentAuthorizationData = {
|
|
891
|
+
type: AuthorizationType.BecomeAgent;
|
|
892
|
+
value: KnownPermissionGroup | CustomPermissionGroup;
|
|
893
|
+
};
|
|
894
|
+
export declare type AddRelayerPayingKeyAuthorizationData = {
|
|
895
|
+
type: AuthorizationType.AddRelayerPayingKey;
|
|
896
|
+
value: SubsidyData;
|
|
897
|
+
};
|
|
898
|
+
export declare type GenericAuthorizationData = {
|
|
899
|
+
type: Exclude<AuthorizationType, AuthorizationType.RotatePrimaryKey | AuthorizationType.JoinIdentity | AuthorizationType.PortfolioCustody | AuthorizationType.BecomeAgent | AuthorizationType.AddRelayerPayingKey | AuthorizationType.RotatePrimaryKeyToSecondary>;
|
|
900
|
+
value: string;
|
|
901
|
+
};
|
|
902
|
+
/**
|
|
903
|
+
* Authorization request data corresponding to type
|
|
904
|
+
*/
|
|
905
|
+
export declare type Authorization = RotatePrimaryKeyAuthorizationData | JoinIdentityAuthorizationData | PortfolioCustodyAuthorizationData | BecomeAgentAuthorizationData | AddRelayerPayingKeyAuthorizationData | RotatePrimaryKeyToSecondaryData | GenericAuthorizationData;
|
|
906
|
+
export declare enum TransactionArgumentType {
|
|
907
|
+
Did = "Did",
|
|
908
|
+
Address = "Address",
|
|
909
|
+
Text = "Text",
|
|
910
|
+
Boolean = "Boolean",
|
|
911
|
+
Number = "Number",
|
|
912
|
+
Balance = "Balance",
|
|
913
|
+
Date = "Date",
|
|
914
|
+
Array = "Array",
|
|
915
|
+
Tuple = "Tuple",
|
|
916
|
+
SimpleEnum = "SimpleEnum",
|
|
917
|
+
RichEnum = "RichEnum",
|
|
918
|
+
Object = "Object",
|
|
919
|
+
Unknown = "Unknown",
|
|
920
|
+
Null = "Null"
|
|
921
|
+
}
|
|
922
|
+
export interface PlainTransactionArgument {
|
|
923
|
+
type: Exclude<TransactionArgumentType, TransactionArgumentType.Array | TransactionArgumentType.Tuple | TransactionArgumentType.SimpleEnum | TransactionArgumentType.RichEnum | TransactionArgumentType.Object>;
|
|
924
|
+
}
|
|
925
|
+
export interface ArrayTransactionArgument {
|
|
926
|
+
type: TransactionArgumentType.Array;
|
|
927
|
+
internal: TransactionArgument;
|
|
928
|
+
}
|
|
929
|
+
export interface SimpleEnumTransactionArgument {
|
|
930
|
+
type: TransactionArgumentType.SimpleEnum;
|
|
931
|
+
internal: string[];
|
|
932
|
+
}
|
|
933
|
+
export interface ComplexTransactionArgument {
|
|
934
|
+
type: TransactionArgumentType.RichEnum | TransactionArgumentType.Object | TransactionArgumentType.Tuple;
|
|
935
|
+
internal: TransactionArgument[];
|
|
936
|
+
}
|
|
937
|
+
export declare type TransactionArgument = {
|
|
938
|
+
name: string;
|
|
939
|
+
optional: boolean;
|
|
940
|
+
_rawType: TypeDef;
|
|
941
|
+
} & (PlainTransactionArgument | ArrayTransactionArgument | SimpleEnumTransactionArgument | ComplexTransactionArgument);
|
|
942
|
+
export declare type Signer = Identity | Account;
|
|
943
|
+
export interface OfferingWithDetails {
|
|
944
|
+
offering: Offering;
|
|
945
|
+
details: OfferingDetails;
|
|
946
|
+
}
|
|
947
|
+
export interface CheckpointWithData {
|
|
948
|
+
checkpoint: Checkpoint;
|
|
949
|
+
createdAt: Date;
|
|
950
|
+
totalSupply: BigNumber;
|
|
951
|
+
}
|
|
952
|
+
export interface PermissionedAccount {
|
|
953
|
+
account: Account;
|
|
954
|
+
permissions: Permissions;
|
|
955
|
+
}
|
|
956
|
+
export declare type PortfolioLike = string | Identity | NumberedPortfolio | DefaultPortfolio | {
|
|
957
|
+
identity: string | Identity;
|
|
958
|
+
id: BigNumber;
|
|
959
|
+
};
|
|
960
|
+
/**
|
|
961
|
+
* Permissions to grant to a Signer over an Identity
|
|
962
|
+
*
|
|
963
|
+
* {@link Permissions}
|
|
964
|
+
*
|
|
965
|
+
* @note TxGroups in the `transactionGroups` array will be transformed into their corresponding `TxTag`s
|
|
966
|
+
*/
|
|
967
|
+
export declare type PermissionsLike = {
|
|
968
|
+
/**
|
|
969
|
+
* Assets on which to grant permissions. A null value represents full permissions
|
|
970
|
+
*/
|
|
971
|
+
assets?: SectionPermissions<string | Asset> | null;
|
|
972
|
+
/**
|
|
973
|
+
* Portfolios on which to grant permissions. A null value represents full permissions
|
|
974
|
+
*/
|
|
975
|
+
portfolios?: SectionPermissions<PortfolioLike> | null;
|
|
976
|
+
} & ({
|
|
977
|
+
transactions?: TransactionPermissions | null;
|
|
978
|
+
} | {
|
|
979
|
+
transactionGroups?: TxGroup[];
|
|
980
|
+
});
|
|
981
|
+
export interface PortfolioMovement {
|
|
982
|
+
asset: string | Asset;
|
|
983
|
+
amount: BigNumber;
|
|
984
|
+
/**
|
|
985
|
+
* identifier string to help differentiate transfers
|
|
986
|
+
*/
|
|
987
|
+
memo?: string;
|
|
988
|
+
}
|
|
989
|
+
export interface ProcedureAuthorizationStatus {
|
|
990
|
+
/**
|
|
991
|
+
* whether the Identity complies with all required Agent permissions
|
|
992
|
+
*/
|
|
993
|
+
agentPermissions: CheckPermissionsResult<SignerType.Identity>;
|
|
994
|
+
/**
|
|
995
|
+
* whether the Account complies with all required Signer permissions
|
|
996
|
+
*/
|
|
997
|
+
signerPermissions: CheckPermissionsResult<SignerType.Account>;
|
|
998
|
+
/**
|
|
999
|
+
* whether the Identity complies with all required Roles
|
|
1000
|
+
*/
|
|
1001
|
+
roles: CheckRolesResult;
|
|
1002
|
+
/**
|
|
1003
|
+
* whether the Account is frozen (i.e. can't perform any transactions)
|
|
1004
|
+
*/
|
|
1005
|
+
accountFrozen: boolean;
|
|
1006
|
+
/**
|
|
1007
|
+
* true only if the Procedure requires an Identity but the signing Account
|
|
1008
|
+
* doesn't have one associated
|
|
1009
|
+
*/
|
|
1010
|
+
noIdentity: boolean;
|
|
1011
|
+
}
|
|
1012
|
+
interface TransferRestrictionBase {
|
|
1013
|
+
/**
|
|
1014
|
+
* array of Scope/Identity IDs that are exempted from the Restriction
|
|
1015
|
+
*
|
|
1016
|
+
* @note if the Asset requires investor uniqueness, Scope IDs are used. Otherwise, we use Identity IDs. More on Scope IDs and investor uniqueness
|
|
1017
|
+
* {@link https://developers.polymesh.network/introduction/identity#polymesh-unique-identity-system-puis | here} and
|
|
1018
|
+
* {@link https://developers.polymesh.network/polymesh-docs/primitives/confidential-identity | here}
|
|
1019
|
+
*/
|
|
1020
|
+
exemptedIds?: string[];
|
|
1021
|
+
}
|
|
1022
|
+
interface TransferRestrictionInputBase {
|
|
1023
|
+
/**
|
|
1024
|
+
* array of Identities (or DIDs) that are exempted from the Restriction
|
|
1025
|
+
*/
|
|
1026
|
+
exemptedIdentities?: (Identity | string)[];
|
|
1027
|
+
}
|
|
1028
|
+
export interface CountTransferRestriction extends TransferRestrictionBase {
|
|
1029
|
+
count: BigNumber;
|
|
1030
|
+
}
|
|
1031
|
+
export interface PercentageTransferRestriction extends TransferRestrictionBase {
|
|
1032
|
+
/**
|
|
1033
|
+
* maximum percentage (0-100) of the total supply of the Asset that can be held by a single investor at once
|
|
1034
|
+
*/
|
|
1035
|
+
percentage: BigNumber;
|
|
1036
|
+
}
|
|
1037
|
+
export interface CountTransferRestrictionInput extends TransferRestrictionInputBase {
|
|
1038
|
+
/**
|
|
1039
|
+
* limit on the amount of different (unique) investors that can hold the Asset at once
|
|
1040
|
+
*/
|
|
1041
|
+
count: BigNumber;
|
|
1042
|
+
}
|
|
1043
|
+
export interface PercentageTransferRestrictionInput extends TransferRestrictionInputBase {
|
|
1044
|
+
/**
|
|
1045
|
+
* maximum percentage (0-100) of the total supply of the Asset that can be held by a single investor at once
|
|
1046
|
+
*/
|
|
1047
|
+
percentage: BigNumber;
|
|
1048
|
+
}
|
|
1049
|
+
export interface ActiveTransferRestrictions<Restriction extends CountTransferRestriction | PercentageTransferRestriction> {
|
|
1050
|
+
restrictions: Restriction[];
|
|
1051
|
+
/**
|
|
1052
|
+
* amount of restrictions that can be added before reaching the shared limit
|
|
1053
|
+
*/
|
|
1054
|
+
availableSlots: BigNumber;
|
|
1055
|
+
}
|
|
1056
|
+
export declare enum TransferRestrictionType {
|
|
1057
|
+
Count = "Count",
|
|
1058
|
+
Percentage = "Percentage"
|
|
1059
|
+
}
|
|
1060
|
+
export interface TransferRestriction {
|
|
1061
|
+
type: TransferRestrictionType;
|
|
1062
|
+
value: BigNumber;
|
|
1063
|
+
}
|
|
1064
|
+
export declare enum CalendarUnit {
|
|
1065
|
+
Second = "second",
|
|
1066
|
+
Minute = "minute",
|
|
1067
|
+
Hour = "hour",
|
|
1068
|
+
Day = "day",
|
|
1069
|
+
Week = "week",
|
|
1070
|
+
Month = "month",
|
|
1071
|
+
Year = "year"
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* Represents a period of time measured in a specific unit (i.e. 20 days)
|
|
1075
|
+
*/
|
|
1076
|
+
export interface CalendarPeriod {
|
|
1077
|
+
unit: CalendarUnit;
|
|
1078
|
+
amount: BigNumber;
|
|
1079
|
+
}
|
|
1080
|
+
export interface ScheduleWithDetails {
|
|
1081
|
+
schedule: CheckpointSchedule;
|
|
1082
|
+
details: ScheduleDetails;
|
|
1083
|
+
}
|
|
1084
|
+
export interface DistributionWithDetails {
|
|
1085
|
+
distribution: DividendDistribution;
|
|
1086
|
+
details: DividendDistributionDetails;
|
|
1087
|
+
}
|
|
1088
|
+
export interface DistributionPayment {
|
|
1089
|
+
blockNumber: BigNumber;
|
|
1090
|
+
blockHash: string;
|
|
1091
|
+
date: Date;
|
|
1092
|
+
target: Identity;
|
|
1093
|
+
amount: BigNumber;
|
|
1094
|
+
/**
|
|
1095
|
+
* percentage (0-100) of tax withholding for the `target` identity
|
|
1096
|
+
*/
|
|
1097
|
+
withheldTax: BigNumber;
|
|
1098
|
+
}
|
|
1099
|
+
export interface ProcedureOpts {
|
|
1100
|
+
/**
|
|
1101
|
+
* Account or address of a signing key to replace the current one (for this procedure only)
|
|
1102
|
+
*/
|
|
1103
|
+
signingAccount?: string | Account;
|
|
1104
|
+
}
|
|
1105
|
+
export interface ProcedureMethod<MethodArgs, ProcedureReturnValue, ReturnValue = ProcedureReturnValue> {
|
|
1106
|
+
(args: MethodArgs, opts?: ProcedureOpts): Promise<TransactionQueue<ProcedureReturnValue, ReturnValue>>;
|
|
1107
|
+
checkAuthorization: (args: MethodArgs, opts?: ProcedureOpts) => Promise<ProcedureAuthorizationStatus>;
|
|
1108
|
+
}
|
|
1109
|
+
export interface NoArgsProcedureMethod<ProcedureReturnValue, ReturnValue = ProcedureReturnValue> {
|
|
1110
|
+
(opts?: ProcedureOpts): Promise<TransactionQueue<ProcedureReturnValue, ReturnValue>>;
|
|
1111
|
+
checkAuthorization: (opts?: ProcedureOpts) => Promise<ProcedureAuthorizationStatus>;
|
|
1112
|
+
}
|
|
1113
|
+
export interface GroupedInstructions {
|
|
1114
|
+
/**
|
|
1115
|
+
* Instructions that have already been affirmed by the Identity
|
|
1116
|
+
*/
|
|
1117
|
+
affirmed: Instruction[];
|
|
1118
|
+
/**
|
|
1119
|
+
* Instructions that still need to be affirmed/rejected by the Identity
|
|
1120
|
+
*/
|
|
1121
|
+
pending: Instruction[];
|
|
1122
|
+
/**
|
|
1123
|
+
* Instructions that failed in their execution (can be rescheduled).
|
|
1124
|
+
* This group supersedes the other three, so for example, a failed Instruction
|
|
1125
|
+
* might also belong in the `affirmed` group, but it will only be included in this one
|
|
1126
|
+
*/
|
|
1127
|
+
failed: Instruction[];
|
|
1128
|
+
}
|
|
1129
|
+
export interface AssetWithGroup {
|
|
1130
|
+
asset: Asset;
|
|
1131
|
+
group: KnownPermissionGroup | CustomPermissionGroup;
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Events triggered by transactions performed by an Agent Identity, related to the Token's configuration
|
|
1135
|
+
* For example: changing compliance requirements, inviting/removing agent Identities, freezing/unfreezing transfers
|
|
1136
|
+
*
|
|
1137
|
+
* Token transfers (settlements or movements between Portfolios) do not count as Operations
|
|
1138
|
+
*/
|
|
1139
|
+
export interface HistoricAgentOperation {
|
|
1140
|
+
/**
|
|
1141
|
+
* Agent Identity that performed the operations
|
|
1142
|
+
*/
|
|
1143
|
+
identity: Identity;
|
|
1144
|
+
/**
|
|
1145
|
+
* list of Token Operation Events that were triggered by the Agent Identity
|
|
1146
|
+
*/
|
|
1147
|
+
history: EventIdentifier[];
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* URI|mnemonic|hex representation of a private key
|
|
1151
|
+
*/
|
|
1152
|
+
export declare type PrivateKey = {
|
|
1153
|
+
uri: string;
|
|
1154
|
+
} | {
|
|
1155
|
+
mnemonic: string;
|
|
1156
|
+
} | {
|
|
1157
|
+
seed: string;
|
|
1158
|
+
};
|
|
1159
|
+
export { TxTags, TxTag, ModuleName };
|
|
1160
|
+
export { EventRecord } from '@polkadot/types/interfaces';
|
|
1161
|
+
export * from "../api/entities/types";
|
|
1162
|
+
export * from "../base/types";
|
|
1163
|
+
export { Order } from "../middleware/types";
|
|
1164
|
+
//# sourceMappingURL=index.d.ts.map
|