@polymeshassociation/polymesh-sdk 14.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccountManagement.d.ts +89 -0
- package/AccountManagement.d.ts.map +1 -0
- package/AccountManagement.js +116 -0
- package/AccountManagement.js.map +1 -0
- package/Assets.d.ts +68 -0
- package/Assets.d.ts.map +1 -0
- package/Assets.js +114 -0
- package/Assets.js.map +1 -0
- package/CHANGELOG.md +6 -0
- package/Claims.d.ts +123 -0
- package/Claims.d.ts.map +1 -0
- package/Claims.js +247 -0
- package/Claims.js.map +1 -0
- package/Identities.d.ts +45 -0
- package/Identities.d.ts.map +1 -0
- package/Identities.js +34 -0
- package/Identities.js.map +1 -0
- package/Network.d.ts +104 -0
- package/Network.d.ts.map +1 -0
- package/Network.js +203 -0
- package/Network.js.map +1 -0
- package/Polymesh.d.ts +111 -0
- package/Polymesh.d.ts.map +1 -0
- package/Polymesh.js +219 -0
- package/Polymesh.js.map +1 -0
- package/Settlements.d.ts +44 -0
- package/Settlements.d.ts.map +1 -0
- package/Settlements.js +93 -0
- package/Settlements.js.map +1 -0
- package/api/entities/Account.d.ts +102 -0
- package/api/entities/Account.d.ts.map +1 -0
- package/api/entities/Account.js +375 -0
- package/api/entities/Account.js.map +1 -0
- package/api/entities/Asset/AssetHolders.d.ts +14 -0
- package/api/entities/Asset/AssetHolders.d.ts.map +1 -0
- package/api/entities/Asset/AssetHolders.js +45 -0
- package/api/entities/Asset/AssetHolders.js.map +1 -0
- package/api/entities/Asset/Checkpoints/Schedules.d.ts +50 -0
- package/api/entities/Asset/Checkpoints/Schedules.d.ts.map +1 -0
- package/api/entities/Asset/Checkpoints/Schedules.js +103 -0
- package/api/entities/Asset/Checkpoints/Schedules.js.map +1 -0
- package/api/entities/Asset/Checkpoints/index.d.ts +33 -0
- package/api/entities/Asset/Checkpoints/index.d.ts.map +1 -0
- package/api/entities/Asset/Checkpoints/index.js +90 -0
- package/api/entities/Asset/Checkpoints/index.js.map +1 -0
- package/api/entities/Asset/Checkpoints/types.d.ts +20 -0
- package/api/entities/Asset/Checkpoints/types.d.ts.map +1 -0
- package/api/entities/Asset/Checkpoints/types.js +9 -0
- package/api/entities/Asset/Checkpoints/types.js.map +1 -0
- package/api/entities/Asset/Compliance/Requirements.d.ts +68 -0
- package/api/entities/Asset/Compliance/Requirements.d.ts.map +1 -0
- package/api/entities/Asset/Compliance/Requirements.js +114 -0
- package/api/entities/Asset/Compliance/Requirements.js.map +1 -0
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts +33 -0
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts.map +1 -0
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.js +70 -0
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.js.map +1 -0
- package/api/entities/Asset/Compliance/index.d.ts +15 -0
- package/api/entities/Asset/Compliance/index.d.ts.map +1 -0
- package/api/entities/Asset/Compliance/index.js +21 -0
- package/api/entities/Asset/Compliance/index.js.map +1 -0
- package/api/entities/Asset/CorporateActions/Distributions.d.ts +32 -0
- package/api/entities/Asset/CorporateActions/Distributions.d.ts.map +1 -0
- package/api/entities/Asset/CorporateActions/Distributions.js +74 -0
- package/api/entities/Asset/CorporateActions/Distributions.js.map +1 -0
- package/api/entities/Asset/CorporateActions/index.d.ts +58 -0
- package/api/entities/Asset/CorporateActions/index.d.ts.map +1 -0
- package/api/entities/Asset/CorporateActions/index.js +85 -0
- package/api/entities/Asset/CorporateActions/index.js.map +1 -0
- package/api/entities/Asset/CorporateActions/types.d.ts +8 -0
- package/api/entities/Asset/CorporateActions/types.d.ts.map +1 -0
- package/api/entities/Asset/CorporateActions/types.js +3 -0
- package/api/entities/Asset/CorporateActions/types.js.map +1 -0
- package/api/entities/Asset/Documents.d.ts +24 -0
- package/api/entities/Asset/Documents.d.ts.map +1 -0
- package/api/entities/Asset/Documents.js +49 -0
- package/api/entities/Asset/Documents.js.map +1 -0
- package/api/entities/Asset/Issuance.d.ts +21 -0
- package/api/entities/Asset/Issuance.d.ts.map +1 -0
- package/api/entities/Asset/Issuance.js +20 -0
- package/api/entities/Asset/Issuance.js.map +1 -0
- package/api/entities/Asset/Offerings.d.ts +37 -0
- package/api/entities/Asset/Offerings.d.ts.map +1 -0
- package/api/entities/Asset/Offerings.js +79 -0
- package/api/entities/Asset/Offerings.js.map +1 -0
- package/api/entities/Asset/Permissions.d.ts +50 -0
- package/api/entities/Asset/Permissions.d.ts.map +1 -0
- package/api/entities/Asset/Permissions.js +83 -0
- package/api/entities/Asset/Permissions.js.map +1 -0
- package/api/entities/Asset/Settlements.d.ts +48 -0
- package/api/entities/Asset/Settlements.d.ts.map +1 -0
- package/api/entities/Asset/Settlements.js +108 -0
- package/api/entities/Asset/Settlements.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Count.d.ts +36 -0
- package/api/entities/Asset/TransferRestrictions/Count.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Count.js +16 -0
- package/api/entities/Asset/TransferRestrictions/Count.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts +36 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.js +16 -0
- package/api/entities/Asset/TransferRestrictions/Percentage.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts +44 -0
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js +99 -0
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/index.d.ts +15 -0
- package/api/entities/Asset/TransferRestrictions/index.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/index.js +21 -0
- package/api/entities/Asset/TransferRestrictions/index.js.map +1 -0
- package/api/entities/Asset/index.d.ts +166 -0
- package/api/entities/Asset/index.d.ts.map +1 -0
- package/api/entities/Asset/index.js +306 -0
- package/api/entities/Asset/index.js.map +1 -0
- package/api/entities/Asset/types.d.ts +55 -0
- package/api/entities/Asset/types.d.ts.map +1 -0
- package/api/entities/Asset/types.js +19 -0
- package/api/entities/Asset/types.js.map +1 -0
- package/api/entities/AuthorizationRequest.d.ts +95 -0
- package/api/entities/AuthorizationRequest.d.ts.map +1 -0
- package/api/entities/AuthorizationRequest.js +128 -0
- package/api/entities/AuthorizationRequest.js.map +1 -0
- package/api/entities/Checkpoint.d.ts +71 -0
- package/api/entities/Checkpoint.d.ts.map +1 -0
- package/api/entities/Checkpoint.js +180 -0
- package/api/entities/Checkpoint.js.map +1 -0
- package/api/entities/CheckpointSchedule/index.d.ts +83 -0
- package/api/entities/CheckpointSchedule/index.d.ts.map +1 -0
- package/api/entities/CheckpointSchedule/index.js +137 -0
- package/api/entities/CheckpointSchedule/index.js.map +1 -0
- package/api/entities/CheckpointSchedule/types.d.ts +8 -0
- package/api/entities/CheckpointSchedule/types.d.ts.map +1 -0
- package/api/entities/CheckpointSchedule/types.js +3 -0
- package/api/entities/CheckpointSchedule/types.js.map +1 -0
- package/api/entities/CorporateAction.d.ts +40 -0
- package/api/entities/CorporateAction.d.ts.map +1 -0
- package/api/entities/CorporateAction.js +25 -0
- package/api/entities/CorporateAction.js.map +1 -0
- package/api/entities/CorporateActionBase/index.d.ts +106 -0
- package/api/entities/CorporateActionBase/index.d.ts.map +1 -0
- package/api/entities/CorporateActionBase/index.js +134 -0
- package/api/entities/CorporateActionBase/index.js.map +1 -0
- package/api/entities/CorporateActionBase/types.d.ts +30 -0
- package/api/entities/CorporateActionBase/types.d.ts.map +1 -0
- package/api/entities/CorporateActionBase/types.js +17 -0
- package/api/entities/CorporateActionBase/types.js.map +1 -0
- package/api/entities/CustomPermissionGroup.d.ts +43 -0
- package/api/entities/CustomPermissionGroup.d.ts.map +1 -0
- package/api/entities/CustomPermissionGroup.js +81 -0
- package/api/entities/CustomPermissionGroup.js.map +1 -0
- package/api/entities/DefaultPortfolio.d.ts +18 -0
- package/api/entities/DefaultPortfolio.d.ts.map +1 -0
- package/api/entities/DefaultPortfolio.js +35 -0
- package/api/entities/DefaultPortfolio.js.map +1 -0
- package/api/entities/DefaultTrustedClaimIssuer.d.ts +36 -0
- package/api/entities/DefaultTrustedClaimIssuer.d.ts.map +1 -0
- package/api/entities/DefaultTrustedClaimIssuer.js +88 -0
- package/api/entities/DefaultTrustedClaimIssuer.js.map +1 -0
- package/api/entities/DividendDistribution/index.d.ts +158 -0
- package/api/entities/DividendDistribution/index.d.ts.map +1 -0
- package/api/entities/DividendDistribution/index.js +346 -0
- package/api/entities/DividendDistribution/index.js.map +1 -0
- package/api/entities/DividendDistribution/types.d.ts +24 -0
- package/api/entities/DividendDistribution/types.d.ts.map +1 -0
- package/api/entities/DividendDistribution/types.js +3 -0
- package/api/entities/DividendDistribution/types.js.map +1 -0
- package/api/entities/Entity.d.ts +43 -0
- package/api/entities/Entity.d.ts.map +1 -0
- package/api/entities/Entity.js +58 -0
- package/api/entities/Entity.js.map +1 -0
- package/api/entities/Identity/AssetPermissions.d.ts +76 -0
- package/api/entities/Identity/AssetPermissions.d.ts.map +1 -0
- package/api/entities/Identity/AssetPermissions.js +284 -0
- package/api/entities/Identity/AssetPermissions.js.map +1 -0
- package/api/entities/Identity/IdentityAuthorizations.d.ts +23 -0
- package/api/entities/Identity/IdentityAuthorizations.d.ts.map +1 -0
- package/api/entities/Identity/IdentityAuthorizations.js +79 -0
- package/api/entities/Identity/IdentityAuthorizations.js.map +1 -0
- package/api/entities/Identity/Portfolios.d.ts +43 -0
- package/api/entities/Identity/Portfolios.d.ts.map +1 -0
- package/api/entities/Identity/Portfolios.js +107 -0
- package/api/entities/Identity/Portfolios.js.map +1 -0
- package/api/entities/Identity/index.d.ts +152 -0
- package/api/entities/Identity/index.d.ts.map +1 -0
- package/api/entities/Identity/index.js +430 -0
- package/api/entities/Identity/index.js.map +1 -0
- package/api/entities/Instruction/index.d.ts +91 -0
- package/api/entities/Instruction/index.d.ts.map +1 -0
- package/api/entities/Instruction/index.js +261 -0
- package/api/entities/Instruction/index.js.map +1 -0
- package/api/entities/Instruction/types.d.ts +52 -0
- package/api/entities/Instruction/types.d.ts.map +1 -0
- package/api/entities/Instruction/types.js +21 -0
- package/api/entities/Instruction/types.js.map +1 -0
- package/api/entities/KnownPermissionGroup.d.ts +38 -0
- package/api/entities/KnownPermissionGroup.d.ts.map +1 -0
- package/api/entities/KnownPermissionGroup.js +100 -0
- package/api/entities/KnownPermissionGroup.js.map +1 -0
- package/api/entities/Namespace.d.ts +15 -0
- package/api/entities/Namespace.d.ts.map +1 -0
- package/api/entities/Namespace.js +19 -0
- package/api/entities/Namespace.js.map +1 -0
- package/api/entities/NumberedPortfolio.d.ts +48 -0
- package/api/entities/NumberedPortfolio.d.ts.map +1 -0
- package/api/entities/NumberedPortfolio.js +95 -0
- package/api/entities/NumberedPortfolio.js.map +1 -0
- package/api/entities/Offering/index.d.ts +93 -0
- package/api/entities/Offering/index.d.ts.map +1 -0
- package/api/entities/Offering/index.js +135 -0
- package/api/entities/Offering/index.js.map +1 -0
- package/api/entities/Offering/types.d.ts +83 -0
- package/api/entities/Offering/types.d.ts.map +1 -0
- package/api/entities/Offering/types.js +55 -0
- package/api/entities/Offering/types.js.map +1 -0
- package/api/entities/PermissionGroup.d.ts +26 -0
- package/api/entities/PermissionGroup.d.ts.map +1 -0
- package/api/entities/PermissionGroup.js +19 -0
- package/api/entities/PermissionGroup.js.map +1 -0
- package/api/entities/Portfolio/index.d.ts +112 -0
- package/api/entities/Portfolio/index.d.ts.map +1 -0
- package/api/entities/Portfolio/index.js +246 -0
- package/api/entities/Portfolio/index.js.map +1 -0
- package/api/entities/Portfolio/types.d.ts +21 -0
- package/api/entities/Portfolio/types.d.ts.map +1 -0
- package/api/entities/Portfolio/types.js +3 -0
- package/api/entities/Portfolio/types.js.map +1 -0
- package/api/entities/Subsidy/index.d.ts +80 -0
- package/api/entities/Subsidy/index.d.ts.map +1 -0
- package/api/entities/Subsidy/index.js +97 -0
- package/api/entities/Subsidy/index.js.map +1 -0
- package/api/entities/Subsidy/types.d.ts +21 -0
- package/api/entities/Subsidy/types.d.ts.map +1 -0
- package/api/entities/Subsidy/types.js +3 -0
- package/api/entities/Subsidy/types.js.map +1 -0
- package/api/entities/TickerReservation/index.d.ts +72 -0
- package/api/entities/TickerReservation/index.d.ts.map +1 -0
- package/api/entities/TickerReservation/index.js +118 -0
- package/api/entities/TickerReservation/index.js.map +1 -0
- package/api/entities/TickerReservation/types.d.ts +27 -0
- package/api/entities/TickerReservation/types.d.ts.map +1 -0
- package/api/entities/TickerReservation/types.js +19 -0
- package/api/entities/TickerReservation/types.js.map +1 -0
- package/api/entities/Venue/index.d.ts +77 -0
- package/api/entities/Venue/index.d.ts.map +1 -0
- package/api/entities/Venue/index.js +139 -0
- package/api/entities/Venue/index.js.map +1 -0
- package/api/entities/Venue/types.d.ts +22 -0
- package/api/entities/Venue/types.d.ts.map +1 -0
- package/api/entities/Venue/types.js +20 -0
- package/api/entities/Venue/types.js.map +1 -0
- package/api/entities/common/namespaces/Authorizations.d.ts +37 -0
- package/api/entities/common/namespaces/Authorizations.d.ts.map +1 -0
- package/api/entities/common/namespaces/Authorizations.js +91 -0
- package/api/entities/common/namespaces/Authorizations.js.map +1 -0
- package/api/entities/types.d.ts +30 -0
- package/api/entities/types.d.ts.map +1 -0
- package/api/entities/types.js +27 -0
- package/api/entities/types.js.map +1 -0
- package/api/procedures/addAssetRequirement.d.ts +30 -0
- package/api/procedures/addAssetRequirement.d.ts.map +1 -0
- package/api/procedures/addAssetRequirement.js +70 -0
- package/api/procedures/addAssetRequirement.js.map +1 -0
- package/api/procedures/addInstruction.d.ts +70 -0
- package/api/procedures/addInstruction.d.ts.map +1 -0
- package/api/procedures/addInstruction.js +266 -0
- package/api/procedures/addInstruction.js.map +1 -0
- package/api/procedures/addInvestorUniquenessClaim.d.ts +23 -0
- package/api/procedures/addInvestorUniquenessClaim.d.ts.map +1 -0
- package/api/procedures/addInvestorUniquenessClaim.js +80 -0
- package/api/procedures/addInvestorUniquenessClaim.js.map +1 -0
- package/api/procedures/addTransferRestriction.d.ts +29 -0
- package/api/procedures/addTransferRestriction.d.ts.map +1 -0
- package/api/procedures/addTransferRestriction.js +102 -0
- package/api/procedures/addTransferRestriction.js.map +1 -0
- package/api/procedures/claimClassicTicker.d.ts +22 -0
- package/api/procedures/claimClassicTicker.d.ts.map +1 -0
- package/api/procedures/claimClassicTicker.js +112 -0
- package/api/procedures/claimClassicTicker.js.map +1 -0
- package/api/procedures/claimDividends.d.ts +16 -0
- package/api/procedures/claimDividends.d.ts.map +1 -0
- package/api/procedures/claimDividends.js +58 -0
- package/api/procedures/claimDividends.js.map +1 -0
- package/api/procedures/closeOffering.d.ts +23 -0
- package/api/procedures/closeOffering.d.ts.map +1 -0
- package/api/procedures/closeOffering.js +59 -0
- package/api/procedures/closeOffering.js.map +1 -0
- package/api/procedures/configureDividendDistribution.d.ts +69 -0
- package/api/procedures/configureDividendDistribution.d.ts.map +1 -0
- package/api/procedures/configureDividendDistribution.js +158 -0
- package/api/procedures/configureDividendDistribution.js.map +1 -0
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts +22 -0
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts.map +1 -0
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js +102 -0
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js.map +1 -0
- package/api/procedures/consumeAuthorizationRequests.d.ts +24 -0
- package/api/procedures/consumeAuthorizationRequests.d.ts.map +1 -0
- package/api/procedures/consumeAuthorizationRequests.js +124 -0
- package/api/procedures/consumeAuthorizationRequests.js.map +1 -0
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts +35 -0
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts.map +1 -0
- package/api/procedures/consumeJoinOrRotateAuthorization.js +136 -0
- package/api/procedures/consumeJoinOrRotateAuthorization.js.map +1 -0
- package/api/procedures/controllerTransfer.d.ts +40 -0
- package/api/procedures/controllerTransfer.d.ts.map +1 -0
- package/api/procedures/controllerTransfer.js +90 -0
- package/api/procedures/controllerTransfer.js.map +1 -0
- package/api/procedures/createAsset.d.ts +82 -0
- package/api/procedures/createAsset.d.ts.map +1 -0
- package/api/procedures/createAsset.js +178 -0
- package/api/procedures/createAsset.js.map +1 -0
- package/api/procedures/createCheckpoint.d.ts +26 -0
- package/api/procedures/createCheckpoint.d.ts.map +1 -0
- package/api/procedures/createCheckpoint.js +61 -0
- package/api/procedures/createCheckpoint.js.map +1 -0
- package/api/procedures/createCheckpointSchedule.d.ts +43 -0
- package/api/procedures/createCheckpointSchedule.d.ts.map +1 -0
- package/api/procedures/createCheckpointSchedule.js +70 -0
- package/api/procedures/createCheckpointSchedule.js.map +1 -0
- package/api/procedures/createGroup.d.ts +44 -0
- package/api/procedures/createGroup.d.ts.map +1 -0
- package/api/procedures/createGroup.js +90 -0
- package/api/procedures/createGroup.js.map +1 -0
- package/api/procedures/createPortfolio.d.ts +21 -0
- package/api/procedures/createPortfolio.d.ts.map +1 -0
- package/api/procedures/createPortfolio.js +64 -0
- package/api/procedures/createPortfolio.js.map +1 -0
- package/api/procedures/createVenue.d.ts +20 -0
- package/api/procedures/createVenue.d.ts.map +1 -0
- package/api/procedures/createVenue.js +56 -0
- package/api/procedures/createVenue.js.map +1 -0
- package/api/procedures/deletePortfolio.d.ts +20 -0
- package/api/procedures/deletePortfolio.d.ts.map +1 -0
- package/api/procedures/deletePortfolio.js +69 -0
- package/api/procedures/deletePortfolio.js.map +1 -0
- package/api/procedures/initiateCorporateAction.d.ts +60 -0
- package/api/procedures/initiateCorporateAction.d.ts.map +1 -0
- package/api/procedures/initiateCorporateAction.js +107 -0
- package/api/procedures/initiateCorporateAction.js.map +1 -0
- package/api/procedures/investInOffering.d.ts +66 -0
- package/api/procedures/investInOffering.d.ts.map +1 -0
- package/api/procedures/investInOffering.js +147 -0
- package/api/procedures/investInOffering.js.map +1 -0
- package/api/procedures/inviteAccount.d.ts +16 -0
- package/api/procedures/inviteAccount.d.ts.map +1 -0
- package/api/procedures/inviteAccount.js +92 -0
- package/api/procedures/inviteAccount.js.map +1 -0
- package/api/procedures/inviteExternalAgent.d.ts +46 -0
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -0
- package/api/procedures/inviteExternalAgent.js +97 -0
- package/api/procedures/inviteExternalAgent.js.map +1 -0
- package/api/procedures/issueTokens.d.ts +27 -0
- package/api/procedures/issueTokens.d.ts.map +1 -0
- package/api/procedures/issueTokens.js +75 -0
- package/api/procedures/issueTokens.js.map +1 -0
- package/api/procedures/launchOffering.d.ts +81 -0
- package/api/procedures/launchOffering.d.ts.map +1 -0
- package/api/procedures/launchOffering.js +139 -0
- package/api/procedures/launchOffering.js.map +1 -0
- package/api/procedures/leaveIdentity.d.ts +10 -0
- package/api/procedures/leaveIdentity.d.ts.map +1 -0
- package/api/procedures/leaveIdentity.js +53 -0
- package/api/procedures/leaveIdentity.js.map +1 -0
- package/api/procedures/linkCaDocs.d.ts +30 -0
- package/api/procedures/linkCaDocs.d.ts.map +1 -0
- package/api/procedures/linkCaDocs.js +69 -0
- package/api/procedures/linkCaDocs.js.map +1 -0
- package/api/procedures/modifyAllowance.d.ts +42 -0
- package/api/procedures/modifyAllowance.d.ts.map +1 -0
- package/api/procedures/modifyAllowance.js +87 -0
- package/api/procedures/modifyAllowance.js.map +1 -0
- package/api/procedures/modifyAsset.d.ts +46 -0
- package/api/procedures/modifyAsset.d.ts.map +1 -0
- package/api/procedures/modifyAsset.js +130 -0
- package/api/procedures/modifyAsset.js.map +1 -0
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts +35 -0
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts.map +1 -0
- package/api/procedures/modifyAssetTrustedClaimIssuers.js +139 -0
- package/api/procedures/modifyAssetTrustedClaimIssuers.js.map +1 -0
- package/api/procedures/modifyCaCheckpoint.d.ts +25 -0
- package/api/procedures/modifyCaCheckpoint.d.ts.map +1 -0
- package/api/procedures/modifyCaCheckpoint.js +58 -0
- package/api/procedures/modifyCaCheckpoint.js.map +1 -0
- package/api/procedures/modifyCaDefaultConfig.d.ts +36 -0
- package/api/procedures/modifyCaDefaultConfig.d.ts.map +1 -0
- package/api/procedures/modifyCaDefaultConfig.js +119 -0
- package/api/procedures/modifyCaDefaultConfig.js.map +1 -0
- package/api/procedures/modifyClaims.d.ts +39 -0
- package/api/procedures/modifyClaims.d.ts.map +1 -0
- package/api/procedures/modifyClaims.js +205 -0
- package/api/procedures/modifyClaims.js.map +1 -0
- package/api/procedures/modifyComplianceRequirement.d.ts +35 -0
- package/api/procedures/modifyComplianceRequirement.d.ts.map +1 -0
- package/api/procedures/modifyComplianceRequirement.js +75 -0
- package/api/procedures/modifyComplianceRequirement.js.map +1 -0
- package/api/procedures/modifyCorporateActionsAgent.d.ts +31 -0
- package/api/procedures/modifyCorporateActionsAgent.d.ts.map +1 -0
- package/api/procedures/modifyCorporateActionsAgent.js +83 -0
- package/api/procedures/modifyCorporateActionsAgent.js.map +1 -0
- package/api/procedures/modifyDistributionCheckpoint.d.ts +25 -0
- package/api/procedures/modifyDistributionCheckpoint.d.ts.map +1 -0
- package/api/procedures/modifyDistributionCheckpoint.js +60 -0
- package/api/procedures/modifyDistributionCheckpoint.js.map +1 -0
- package/api/procedures/modifyInstructionAffirmation.d.ts +33 -0
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -0
- package/api/procedures/modifyInstructionAffirmation.js +158 -0
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -0
- package/api/procedures/modifyOfferingTimes.d.ts +39 -0
- package/api/procedures/modifyOfferingTimes.d.ts.map +1 -0
- package/api/procedures/modifyOfferingTimes.js +103 -0
- package/api/procedures/modifyOfferingTimes.js.map +1 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts +33 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts.map +1 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.js +87 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.js.map +1 -0
- package/api/procedures/modifySignerPermissions.d.ts +35 -0
- package/api/procedures/modifySignerPermissions.d.ts.map +1 -0
- package/api/procedures/modifySignerPermissions.js +82 -0
- package/api/procedures/modifySignerPermissions.js.map +1 -0
- package/api/procedures/modifyVenue.d.ts +32 -0
- package/api/procedures/modifyVenue.d.ts.map +1 -0
- package/api/procedures/modifyVenue.js +81 -0
- package/api/procedures/modifyVenue.js.map +1 -0
- package/api/procedures/moveFunds.d.ts +33 -0
- package/api/procedures/moveFunds.d.ts.map +1 -0
- package/api/procedures/moveFunds.js +124 -0
- package/api/procedures/moveFunds.js.map +1 -0
- package/api/procedures/payDividends.d.ts +24 -0
- package/api/procedures/payDividends.d.ts.map +1 -0
- package/api/procedures/payDividends.js +90 -0
- package/api/procedures/payDividends.js.map +1 -0
- package/api/procedures/quitCustody.d.ts +28 -0
- package/api/procedures/quitCustody.d.ts.map +1 -0
- package/api/procedures/quitCustody.js +71 -0
- package/api/procedures/quitCustody.js.map +1 -0
- package/api/procedures/quitSubsidy.d.ts +20 -0
- package/api/procedures/quitSubsidy.d.ts.map +1 -0
- package/api/procedures/quitSubsidy.js +64 -0
- package/api/procedures/quitSubsidy.js.map +1 -0
- package/api/procedures/reclaimDividendDistributionFunds.d.ts +21 -0
- package/api/procedures/reclaimDividendDistributionFunds.d.ts.map +1 -0
- package/api/procedures/reclaimDividendDistributionFunds.js +69 -0
- package/api/procedures/reclaimDividendDistributionFunds.js.map +1 -0
- package/api/procedures/redeemTokens.d.ts +25 -0
- package/api/procedures/redeemTokens.d.ts.map +1 -0
- package/api/procedures/redeemTokens.js +70 -0
- package/api/procedures/redeemTokens.js.map +1 -0
- package/api/procedures/registerIdentity.d.ts +23 -0
- package/api/procedures/registerIdentity.d.ts.map +1 -0
- package/api/procedures/registerIdentity.js +70 -0
- package/api/procedures/registerIdentity.js.map +1 -0
- package/api/procedures/removeAssetRequirement.d.ts +26 -0
- package/api/procedures/removeAssetRequirement.d.ts.map +1 -0
- package/api/procedures/removeAssetRequirement.js +62 -0
- package/api/procedures/removeAssetRequirement.js.map +1 -0
- package/api/procedures/removeCheckpointSchedule.d.ts +28 -0
- package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -0
- package/api/procedures/removeCheckpointSchedule.js +75 -0
- package/api/procedures/removeCheckpointSchedule.js.map +1 -0
- package/api/procedures/removeCorporateAction.d.ts +25 -0
- package/api/procedures/removeCorporateAction.d.ts.map +1 -0
- package/api/procedures/removeCorporateAction.js +98 -0
- package/api/procedures/removeCorporateAction.js.map +1 -0
- package/api/procedures/removeCorporateActionsAgent.d.ts +23 -0
- package/api/procedures/removeCorporateActionsAgent.d.ts.map +1 -0
- package/api/procedures/removeCorporateActionsAgent.js +60 -0
- package/api/procedures/removeCorporateActionsAgent.js.map +1 -0
- package/api/procedures/removeExternalAgent.d.ts +34 -0
- package/api/procedures/removeExternalAgent.d.ts.map +1 -0
- package/api/procedures/removeExternalAgent.js +83 -0
- package/api/procedures/removeExternalAgent.js.map +1 -0
- package/api/procedures/removePrimaryIssuanceAgent.d.ts +21 -0
- package/api/procedures/removePrimaryIssuanceAgent.d.ts.map +1 -0
- package/api/procedures/removePrimaryIssuanceAgent.js +58 -0
- package/api/procedures/removePrimaryIssuanceAgent.js.map +1 -0
- package/api/procedures/removeSecondaryAccounts.d.ts +14 -0
- package/api/procedures/removeSecondaryAccounts.d.ts.map +1 -0
- package/api/procedures/removeSecondaryAccounts.js +61 -0
- package/api/procedures/removeSecondaryAccounts.js.map +1 -0
- package/api/procedures/renamePortfolio.d.ts +26 -0
- package/api/procedures/renamePortfolio.d.ts.map +1 -0
- package/api/procedures/renamePortfolio.js +69 -0
- package/api/procedures/renamePortfolio.js.map +1 -0
- package/api/procedures/rescheduleInstruction.d.ts +17 -0
- package/api/procedures/rescheduleInstruction.d.ts.map +1 -0
- package/api/procedures/rescheduleInstruction.js +52 -0
- package/api/procedures/rescheduleInstruction.js.map +1 -0
- package/api/procedures/reserveTicker.d.ts +29 -0
- package/api/procedures/reserveTicker.d.ts.map +1 -0
- package/api/procedures/reserveTicker.js +94 -0
- package/api/procedures/reserveTicker.js.map +1 -0
- package/api/procedures/setAssetDocuments.d.ts +37 -0
- package/api/procedures/setAssetDocuments.d.ts.map +1 -0
- package/api/procedures/setAssetDocuments.js +103 -0
- package/api/procedures/setAssetDocuments.js.map +1 -0
- package/api/procedures/setAssetRequirements.d.ts +29 -0
- package/api/procedures/setAssetRequirements.d.ts.map +1 -0
- package/api/procedures/setAssetRequirements.js +81 -0
- package/api/procedures/setAssetRequirements.js.map +1 -0
- package/api/procedures/setCustodian.d.ts +27 -0
- package/api/procedures/setCustodian.d.ts.map +1 -0
- package/api/procedures/setCustodian.js +86 -0
- package/api/procedures/setCustodian.js.map +1 -0
- package/api/procedures/setGroupPermissions.d.ts +29 -0
- package/api/procedures/setGroupPermissions.d.ts.map +1 -0
- package/api/procedures/setGroupPermissions.js +61 -0
- package/api/procedures/setGroupPermissions.js.map +1 -0
- package/api/procedures/setPermissionGroup.d.ts +57 -0
- package/api/procedures/setPermissionGroup.d.ts.map +1 -0
- package/api/procedures/setPermissionGroup.js +108 -0
- package/api/procedures/setPermissionGroup.js.map +1 -0
- package/api/procedures/setTransferRestrictions.d.ts +50 -0
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -0
- package/api/procedures/setTransferRestrictions.js +204 -0
- package/api/procedures/setTransferRestrictions.js.map +1 -0
- package/api/procedures/subsidizeAccount.d.ts +21 -0
- package/api/procedures/subsidizeAccount.d.ts.map +1 -0
- package/api/procedures/subsidizeAccount.js +77 -0
- package/api/procedures/subsidizeAccount.js.map +1 -0
- package/api/procedures/toggleFreezeOffering.d.ts +21 -0
- package/api/procedures/toggleFreezeOffering.d.ts.map +1 -0
- package/api/procedures/toggleFreezeOffering.js +85 -0
- package/api/procedures/toggleFreezeOffering.js.map +1 -0
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts +18 -0
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts.map +1 -0
- package/api/procedures/toggleFreezeSecondaryAccounts.js +65 -0
- package/api/procedures/toggleFreezeSecondaryAccounts.js.map +1 -0
- package/api/procedures/toggleFreezeTransfers.d.ts +24 -0
- package/api/procedures/toggleFreezeTransfers.d.ts.map +1 -0
- package/api/procedures/toggleFreezeTransfers.js +72 -0
- package/api/procedures/toggleFreezeTransfers.js.map +1 -0
- package/api/procedures/togglePauseRequirements.d.ts +24 -0
- package/api/procedures/togglePauseRequirements.d.ts.map +1 -0
- package/api/procedures/togglePauseRequirements.js +63 -0
- package/api/procedures/togglePauseRequirements.js.map +1 -0
- package/api/procedures/transferAssetOwnership.d.ts +28 -0
- package/api/procedures/transferAssetOwnership.d.ts.map +1 -0
- package/api/procedures/transferAssetOwnership.js +61 -0
- package/api/procedures/transferAssetOwnership.js.map +1 -0
- package/api/procedures/transferPolyx.d.ts +30 -0
- package/api/procedures/transferPolyx.d.ts.map +1 -0
- package/api/procedures/transferPolyx.js +101 -0
- package/api/procedures/transferPolyx.js.map +1 -0
- package/api/procedures/transferTickerOwnership.d.ts +28 -0
- package/api/procedures/transferTickerOwnership.d.ts.map +1 -0
- package/api/procedures/transferTickerOwnership.js +70 -0
- package/api/procedures/transferTickerOwnership.js.map +1 -0
- package/api/procedures/utils.d.ts +103 -0
- package/api/procedures/utils.d.ts.map +1 -0
- package/api/procedures/utils.js +537 -0
- package/api/procedures/utils.js.map +1 -0
- package/api/procedures/waivePermissions.d.ts +34 -0
- package/api/procedures/waivePermissions.d.ts.map +1 -0
- package/api/procedures/waivePermissions.js +70 -0
- package/api/procedures/waivePermissions.js.map +1 -0
- package/base/Context.d.ts +287 -0
- package/base/Context.d.ts.map +1 -0
- package/base/Context.js +838 -0
- package/base/Context.js.map +1 -0
- package/base/PolymeshError.d.ts +17 -0
- package/base/PolymeshError.d.ts.map +1 -0
- package/base/PolymeshError.js +24 -0
- package/base/PolymeshError.js.map +1 -0
- package/base/PolymeshTransaction.d.ts +54 -0
- package/base/PolymeshTransaction.d.ts.map +1 -0
- package/base/PolymeshTransaction.js +84 -0
- package/base/PolymeshTransaction.js.map +1 -0
- package/base/PolymeshTransactionBase.d.ts +163 -0
- package/base/PolymeshTransactionBase.d.ts.map +1 -0
- package/base/PolymeshTransactionBase.js +322 -0
- package/base/PolymeshTransactionBase.js.map +1 -0
- package/base/PolymeshTransactionBatch.d.ts +51 -0
- package/base/PolymeshTransactionBatch.d.ts.map +1 -0
- package/base/PolymeshTransactionBatch.js +107 -0
- package/base/PolymeshTransactionBatch.js.map +1 -0
- package/base/PostTransactionValue.d.ts +45 -0
- package/base/PostTransactionValue.d.ts.map +1 -0
- package/base/PostTransactionValue.js +108 -0
- package/base/PostTransactionValue.js.map +1 -0
- package/base/Procedure.d.ts +92 -0
- package/base/Procedure.d.ts.map +1 -0
- package/base/Procedure.js +362 -0
- package/base/Procedure.js.map +1 -0
- package/base/TransactionQueue.d.ts +142 -0
- package/base/TransactionQueue.d.ts.map +1 -0
- package/base/TransactionQueue.js +420 -0
- package/base/TransactionQueue.js.map +1 -0
- package/base/types.d.ts +9 -0
- package/base/types.d.ts.map +1 -0
- package/base/types.js +4 -0
- package/base/types.js.map +1 -0
- package/generated/types.d.ts +253 -0
- package/generated/types.d.ts.map +1 -0
- package/generated/types.js +258 -0
- package/generated/types.js.map +1 -0
- package/generated/utils.d.ts +12 -0
- package/generated/utils.d.ts.map +1 -0
- package/generated/utils.js +767 -0
- package/generated/utils.js.map +1 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +12 -0
- package/index.js.map +1 -0
- package/internal.d.ts +107 -0
- package/internal.d.ts.map +1 -0
- package/internal.js +219 -0
- package/internal.js.map +1 -0
- package/middleware/queries.d.ts +129 -0
- package/middleware/queries.d.ts.map +1 -0
- package/middleware/queries.js +701 -0
- package/middleware/queries.js.map +1 -0
- package/middleware/types.d.ts +1624 -0
- package/middleware/types.d.ts.map +1 -0
- package/middleware/types.js +866 -0
- package/middleware/types.js.map +1 -0
- package/npm-package/polymeshassociation-polymesh-sdk-14.0.0-beta.11.tgz +0 -0
- package/package.json +131 -0
- package/polkadot/asset/definitions.d.ts +25 -0
- package/polkadot/asset/definitions.d.ts.map +1 -0
- package/polkadot/asset/definitions.js +96 -0
- package/polkadot/asset/definitions.js.map +1 -0
- package/polkadot/asset/index.d.ts +2 -0
- package/polkadot/asset/index.d.ts.map +1 -0
- package/polkadot/asset/index.js +20 -0
- package/polkadot/asset/index.js.map +1 -0
- package/polkadot/asset/types.d.ts +2 -0
- package/polkadot/asset/types.d.ts.map +1 -0
- package/polkadot/asset/types.js +5 -0
- package/polkadot/asset/types.js.map +1 -0
- package/polkadot/augment-api-consts.d.ts +178 -0
- package/polkadot/augment-api-consts.d.ts.map +1 -0
- package/polkadot/augment-api-consts.js +5 -0
- package/polkadot/augment-api-consts.js.map +1 -0
- package/polkadot/augment-api-errors.d.ts +1638 -0
- package/polkadot/augment-api-errors.d.ts.map +1 -0
- package/polkadot/augment-api-errors.js +5 -0
- package/polkadot/augment-api-errors.js.map +1 -0
- package/polkadot/augment-api-events.d.ts +1671 -0
- package/polkadot/augment-api-events.d.ts.map +1 -0
- package/polkadot/augment-api-events.js +5 -0
- package/polkadot/augment-api-events.js.map +1 -0
- package/polkadot/augment-api-query.d.ts +1993 -0
- package/polkadot/augment-api-query.d.ts.map +1 -0
- package/polkadot/augment-api-query.js +5 -0
- package/polkadot/augment-api-query.js.map +1 -0
- package/polkadot/augment-api-rpc.d.ts +695 -0
- package/polkadot/augment-api-rpc.d.ts.map +1 -0
- package/polkadot/augment-api-rpc.js +5 -0
- package/polkadot/augment-api-rpc.js.map +1 -0
- package/polkadot/augment-api-tx.d.ts +5464 -0
- package/polkadot/augment-api-tx.d.ts.map +1 -0
- package/polkadot/augment-api-tx.js +5 -0
- package/polkadot/augment-api-tx.js.map +1 -0
- package/polkadot/augment-api.d.ts +8 -0
- package/polkadot/augment-api.d.ts.map +1 -0
- package/polkadot/augment-api.js +12 -0
- package/polkadot/augment-api.js.map +1 -0
- package/polkadot/augment-types.d.ts +3243 -0
- package/polkadot/augment-types.d.ts.map +1 -0
- package/polkadot/augment-types.js +5 -0
- package/polkadot/augment-types.js.map +1 -0
- package/polkadot/compliance/definitions.d.ts +16 -0
- package/polkadot/compliance/definitions.d.ts.map +1 -0
- package/polkadot/compliance/definitions.js +35 -0
- package/polkadot/compliance/definitions.js.map +1 -0
- package/polkadot/compliance/index.d.ts +2 -0
- package/polkadot/compliance/index.d.ts.map +1 -0
- package/polkadot/compliance/index.js +20 -0
- package/polkadot/compliance/index.js.map +1 -0
- package/polkadot/compliance/types.d.ts +2 -0
- package/polkadot/compliance/types.d.ts.map +1 -0
- package/polkadot/compliance/types.js +5 -0
- package/polkadot/compliance/types.js.map +1 -0
- package/polkadot/definitions.d.ts +8 -0
- package/polkadot/definitions.d.ts.map +1 -0
- package/polkadot/definitions.js +22 -0
- package/polkadot/definitions.js.map +1 -0
- package/polkadot/identity/definitions.d.ts +61 -0
- package/polkadot/identity/definitions.d.ts.map +1 -0
- package/polkadot/identity/definitions.js +120 -0
- package/polkadot/identity/definitions.js.map +1 -0
- package/polkadot/identity/index.d.ts +2 -0
- package/polkadot/identity/index.d.ts.map +1 -0
- package/polkadot/identity/index.js +20 -0
- package/polkadot/identity/index.js.map +1 -0
- package/polkadot/identity/types.d.ts +2 -0
- package/polkadot/identity/types.d.ts.map +1 -0
- package/polkadot/identity/types.js +5 -0
- package/polkadot/identity/types.js.map +1 -0
- package/polkadot/index.d.ts +2 -0
- package/polkadot/index.d.ts.map +1 -0
- package/polkadot/index.js +20 -0
- package/polkadot/index.js.map +1 -0
- package/polkadot/pips/definitions.d.ts +34 -0
- package/polkadot/pips/definitions.d.ts.map +1 -0
- package/polkadot/pips/definitions.js +57 -0
- package/polkadot/pips/definitions.js.map +1 -0
- package/polkadot/pips/index.d.ts +2 -0
- package/polkadot/pips/index.d.ts.map +1 -0
- package/polkadot/pips/index.js +20 -0
- package/polkadot/pips/index.js.map +1 -0
- package/polkadot/pips/types.d.ts +2 -0
- package/polkadot/pips/types.d.ts.map +1 -0
- package/polkadot/pips/types.js +5 -0
- package/polkadot/pips/types.js.map +1 -0
- package/polkadot/polymesh/definitions.d.ts +855 -0
- package/polkadot/polymesh/definitions.d.ts.map +1 -0
- package/polkadot/polymesh/definitions.js +1139 -0
- package/polkadot/polymesh/definitions.js.map +1 -0
- package/polkadot/polymesh/index.d.ts +2 -0
- package/polkadot/polymesh/index.d.ts.map +1 -0
- package/polkadot/polymesh/index.js +20 -0
- package/polkadot/polymesh/index.js.map +1 -0
- package/polkadot/polymesh/types.d.ts +1408 -0
- package/polkadot/polymesh/types.d.ts.map +1 -0
- package/polkadot/polymesh/types.js +5 -0
- package/polkadot/polymesh/types.js.map +1 -0
- package/polkadot/portfolio/definitions.d.ts +25 -0
- package/polkadot/portfolio/definitions.d.ts.map +1 -0
- package/polkadot/portfolio/definitions.js +31 -0
- package/polkadot/portfolio/definitions.js.map +1 -0
- package/polkadot/portfolio/index.d.ts +2 -0
- package/polkadot/portfolio/index.d.ts.map +1 -0
- package/polkadot/portfolio/index.js +20 -0
- package/polkadot/portfolio/index.js.map +1 -0
- package/polkadot/portfolio/types.d.ts +2 -0
- package/polkadot/portfolio/types.d.ts.map +1 -0
- package/polkadot/portfolio/types.js +5 -0
- package/polkadot/portfolio/types.js.map +1 -0
- package/polkadot/protocolFee/definitions.d.ts +16 -0
- package/polkadot/protocolFee/definitions.d.ts.map +1 -0
- package/polkadot/protocolFee/definitions.js +25 -0
- package/polkadot/protocolFee/definitions.js.map +1 -0
- package/polkadot/protocolFee/index.d.ts +2 -0
- package/polkadot/protocolFee/index.d.ts.map +1 -0
- package/polkadot/protocolFee/index.js +20 -0
- package/polkadot/protocolFee/index.js.map +1 -0
- package/polkadot/protocolFee/types.d.ts +2 -0
- package/polkadot/protocolFee/types.d.ts.map +1 -0
- package/polkadot/protocolFee/types.js +5 -0
- package/polkadot/protocolFee/types.js.map +1 -0
- package/polkadot/schema.d.ts +994 -0
- package/polkadot/schema.d.ts.map +1 -0
- package/polkadot/schema.js +1451 -0
- package/polkadot/schema.js.map +1 -0
- package/polkadot/staking/definitions.d.ts +16 -0
- package/polkadot/staking/definitions.d.ts.map +1 -0
- package/polkadot/staking/definitions.js +20 -0
- package/polkadot/staking/definitions.js.map +1 -0
- package/polkadot/staking/index.d.ts +2 -0
- package/polkadot/staking/index.d.ts.map +1 -0
- package/polkadot/staking/index.js +20 -0
- package/polkadot/staking/index.js.map +1 -0
- package/polkadot/staking/types.d.ts +2 -0
- package/polkadot/staking/types.d.ts.map +1 -0
- package/polkadot/staking/types.js +5 -0
- package/polkadot/staking/types.js.map +1 -0
- package/polkadot/types.d.ts +472 -0
- package/polkadot/types.d.ts.map +1 -0
- package/polkadot/types.js +531 -0
- package/polkadot/types.js.map +1 -0
- package/types/index.d.ts +1164 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +506 -0
- package/types/index.js.map +1 -0
- package/types/internal.d.ts +304 -0
- package/types/internal.d.ts.map +1 -0
- package/types/internal.js +34 -0
- package/types/internal.js.map +1 -0
- package/types/utils/index.d.ts +47 -0
- package/types/utils/index.d.ts.map +1 -0
- package/types/utils/index.js +11 -0
- package/types/utils/index.js.map +1 -0
- package/utils/constants.d.ts +63 -0
- package/utils/constants.d.ts.map +1 -0
- package/utils/constants.js +109 -0
- package/utils/constants.js.map +1 -0
- package/utils/conversion.d.ts +584 -0
- package/utils/conversion.d.ts.map +1 -0
- package/utils/conversion.js +2649 -0
- package/utils/conversion.js.map +1 -0
- package/utils/index.d.ts +4 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/index.js +28 -0
- package/utils/index.js.map +1 -0
- package/utils/internal.d.ts +296 -0
- package/utils/internal.d.ts.map +1 -0
- package/utils/internal.js +786 -0
- package/utils/internal.js.map +1 -0
- package/utils/typeguards.d.ts +175 -0
- package/utils/typeguards.d.ts.map +1 -0
- package/utils/typeguards.js +312 -0
- package/utils/typeguards.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumeJoinOrRotateAuthorization.js","sourceRoot":"","sources":["../../../src/api/procedures/consumeJoinOrRotateAuthorization.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyE;AACzE,6CAA+F;AAC/F,uCAA+D;AAE/D,uDAK4B;AAe5B;;;;GAIG;AACH,SAAsB,uCAAuC,CAE3D,IAA4C;;QAE5C,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EACX,EAAE,EAAE,EAAE,QAAQ,EAAE,GACjB,GACF,EACD,OAAO,EAAE,EAAE,cAAc,EAAE,EAC3B,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAErC,MAAM,EACJ,MAAM,EACN,MAAM,EACN,MAAM,EACN,IAAI,EAAE,EAAE,IAAI,EAAE,GACf,GAAG,WAAW,CAAC;QAEhB,IACE,CAAC;YACC,yBAAiB,CAAC,YAAY;YAC9B,yBAAiB,CAAC,2BAA2B;YAC7C,yBAAiB,CAAC,gBAAgB;SACnC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAChB;YACA,MAAM,IAAI,wBAAa,CAAC;gBACtB,IAAI,EAAE,iBAAS,CAAC,eAAe;gBAC/B,OAAO,EAAE,4BAA4B,IAAI,+CAA+C;aACzF,CAAC,CAAC;SACJ;QAED,MAAM,SAAS,GAAG,IAAA,2BAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAElD,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,QAAQ,GAA6B,EAAE,CAAC;YAE9C,IAAI,cAAc,EAAE;gBAClB,QAAQ,CAAC,SAAS,GAAG,MAAM,CAAC;aAC7B;YAED,IAAI,CAAC,cAAc,+BACjB,WAAW,EAAE,QAAQ,CAAC,mBAAmB,IACtC,QAAQ,KACX,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AAM,QAAQ,GAAG,MAAM,cAAc,CAAC,WAAW,EAAE,CAAC;QAEpD;;;WAGG;QACH,IAAI,cAAc,IAAI,CAAC,QAAQ,EAAE;YAC/B,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;SACH;QAED,sEAAsE;QACtE,QAAQ,GAAG,QAAQ,IAAI,CAAC,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC,MAAM,CAAC,CAAA,CAAC;QAEnD,OAAO;YACL,KAAK,EACH,QAAQ;gBACR,IAAI,IAAI,2FAA2F;YACrG,WAAW,EAAE;gBACX,YAAY,EAAE,CAAC,cAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC;aACpD;SACF,CAAC;IACJ,CAAC;CAAA;AA/CD,4CA+CC;AAED;;GAEG;AACH,SAAsB,cAAc,CAElC,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAA0C;;QAEnE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAEzB,uDAAuD;QACvD,MAAM,aAAa,GAAG,MAAiB,CAAC;QACxC,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;QACnD,MAAM,cAAc,GAAG,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAE7D,OAAO;YACL,cAAc;YACd,cAAc;SACf,CAAC;IACJ,CAAC;CAAA;AAfD,wCAeC;AAED;;GAEG;AACI,MAAM,gCAAgC,GAAG,GAI9C,EAAE,CAAC,IAAI,oBAAS,CAAC,uCAAuC,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAJjF,QAAA,gCAAgC,oCAIiD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { Procedure } from "../../internal";
|
|
3
|
+
import { PortfolioLike } from "../../types";
|
|
4
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
5
|
+
export interface ControllerTransferParams {
|
|
6
|
+
/**
|
|
7
|
+
* portfolio (or portfolio ID) from which Assets will be transferred
|
|
8
|
+
*/
|
|
9
|
+
originPortfolio: PortfolioLike;
|
|
10
|
+
/**
|
|
11
|
+
* amount of Asset tokens to transfer
|
|
12
|
+
*/
|
|
13
|
+
amount: BigNumber;
|
|
14
|
+
}
|
|
15
|
+
export interface Storage {
|
|
16
|
+
did: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare type Params = {
|
|
22
|
+
ticker: string;
|
|
23
|
+
} & ControllerTransferParams;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare function prepareControllerTransfer(this: Procedure<Params, void, Storage>, args: Params): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare function getAuthorization(this: Procedure<Params, void, Storage>, { ticker }: Params): Promise<ProcedureAuthorization>;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare function prepareStorage(this: Procedure<Params, void, Storage>): Promise<Storage>;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare const controllerTransfer: () => Procedure<Params, void, Storage>;
|
|
40
|
+
//# sourceMappingURL=controllerTransfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controllerTransfer.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/controllerTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAA0C,SAAS,EAAE,uBAAmB;AAC/E,OAAO,EAAa,aAAa,EAAoB,oBAAgB;AACrE,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAS1D,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,eAAe,EAAE,aAAa,CAAC;IAC/B;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,oBAAY,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,wBAAwB,CAAC;AAEnE;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,EACtC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CA2Cf;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,EACtC,EAAE,MAAM,EAAE,EAAE,MAAM,GACjB,OAAO,CAAC,sBAAsB,CAAC,CAkBjC;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ7F;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAO,UAAU,MAAM,EAAE,IAAI,EAAE,OAAO,CACO,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.controllerTransfer = exports.prepareStorage = exports.getAuthorization = exports.prepareControllerTransfer = void 0;
|
|
13
|
+
const internal_1 = require("../../internal");
|
|
14
|
+
const types_1 = require("../../types");
|
|
15
|
+
const conversion_1 = require("../../utils/conversion");
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
function prepareControllerTransfer(args) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const { context: { polymeshApi: { tx }, }, storage: { did }, context, } = this;
|
|
22
|
+
const { ticker, originPortfolio, amount } = args;
|
|
23
|
+
const asset = new internal_1.Asset({ ticker }, context);
|
|
24
|
+
const originPortfolioId = (0, conversion_1.portfolioLikeToPortfolioId)(originPortfolio);
|
|
25
|
+
if (did === originPortfolioId.did) {
|
|
26
|
+
throw new internal_1.PolymeshError({
|
|
27
|
+
code: types_1.ErrorCode.UnmetPrerequisite,
|
|
28
|
+
message: 'Controller transfers to self are not allowed',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
const fromPortfolio = (0, conversion_1.portfolioIdToPortfolio)(originPortfolioId, context);
|
|
32
|
+
const [{ free }] = yield fromPortfolio.getAssetBalances({
|
|
33
|
+
assets: [asset],
|
|
34
|
+
});
|
|
35
|
+
if (free.lt(amount)) {
|
|
36
|
+
throw new internal_1.PolymeshError({
|
|
37
|
+
code: types_1.ErrorCode.InsufficientBalance,
|
|
38
|
+
message: 'The origin Portfolio does not have enough free balance for this transfer',
|
|
39
|
+
data: { free },
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
this.addTransaction({
|
|
43
|
+
transaction: tx.asset.controllerTransfer,
|
|
44
|
+
args: [
|
|
45
|
+
(0, conversion_1.stringToTicker)(ticker, context),
|
|
46
|
+
(0, conversion_1.bigNumberToBalance)(amount, context),
|
|
47
|
+
(0, conversion_1.portfolioIdToMeshPortfolioId)(originPortfolioId, context),
|
|
48
|
+
],
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
exports.prepareControllerTransfer = prepareControllerTransfer;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
function getAuthorization({ ticker }) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const { context, storage: { did }, } = this;
|
|
59
|
+
const asset = new internal_1.Asset({ ticker }, context);
|
|
60
|
+
const portfolioId = { did };
|
|
61
|
+
return {
|
|
62
|
+
roles: [{ type: types_1.RoleType.PortfolioCustodian, portfolioId }],
|
|
63
|
+
permissions: {
|
|
64
|
+
assets: [asset],
|
|
65
|
+
transactions: [types_1.TxTags.asset.ControllerTransfer],
|
|
66
|
+
portfolios: [new internal_1.DefaultPortfolio({ did }, context)],
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
exports.getAuthorization = getAuthorization;
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
function prepareStorage() {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
const { context } = this;
|
|
78
|
+
const { did } = yield context.getSigningIdentity();
|
|
79
|
+
return {
|
|
80
|
+
did,
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
exports.prepareStorage = prepareStorage;
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
const controllerTransfer = () => new internal_1.Procedure(prepareControllerTransfer, getAuthorization, prepareStorage);
|
|
89
|
+
exports.controllerTransfer = controllerTransfer;
|
|
90
|
+
//# sourceMappingURL=controllerTransfer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controllerTransfer.js","sourceRoot":"","sources":["../../../src/api/procedures/controllerTransfer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,6CAA+E;AAC/E,uCAAqE;A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BigNumber from 'bignumber.js';
|
|
4
|
+
import { AssetType, CustomAssetTypeId } from "../../polkadot/types";
|
|
5
|
+
import { Asset, Context, Procedure } from "../../internal";
|
|
6
|
+
import { AssetDocument, SecurityIdentifier, TickerReservationStatus } from "../../types";
|
|
7
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const createRegisterCustomAssetTypeResolver: (context: Context) => (receipt: ISubmittableResult) => AssetType;
|
|
12
|
+
export interface CreateAssetParams {
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* amount of Asset tokens that will be minted on creation (optional, default doesn't mint)
|
|
16
|
+
*/
|
|
17
|
+
initialSupply?: BigNumber;
|
|
18
|
+
/**
|
|
19
|
+
* whether a single Asset token can be divided into decimal parts
|
|
20
|
+
*/
|
|
21
|
+
isDivisible: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* type of security that the Asset represents (i.e. Equity, Debt, Commodity, etc). Common values are included in the
|
|
24
|
+
* {@link KnownAssetType} enum, but custom values can be used as well. Custom values must be registered on-chain the first time
|
|
25
|
+
* they're used, requiring an additional transaction. They aren't tied to a specific Asset
|
|
26
|
+
*/
|
|
27
|
+
assetType: string;
|
|
28
|
+
/**
|
|
29
|
+
* array of domestic or international alphanumeric security identifiers for the Asset (ISIN, CUSIP, etc)
|
|
30
|
+
*/
|
|
31
|
+
securityIdentifiers?: SecurityIdentifier[];
|
|
32
|
+
/**
|
|
33
|
+
* (optional) funding round in which the Asset currently is (Series A, Series B, etc)
|
|
34
|
+
*/
|
|
35
|
+
fundingRound?: string;
|
|
36
|
+
documents?: AssetDocument[];
|
|
37
|
+
/**
|
|
38
|
+
* whether this asset requires investors to have a Investor Uniqueness Claim in order
|
|
39
|
+
* to hold it. More information about Investor Uniqueness and PUIS [here](https://developers.polymesh.live/introduction/identity#polymesh-unique-identity-system-puis)
|
|
40
|
+
*/
|
|
41
|
+
requireInvestorUniqueness: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface CreateAssetWithTickerParams extends CreateAssetParams {
|
|
44
|
+
ticker: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export declare type Params = CreateAssetWithTickerParams & {
|
|
50
|
+
reservationRequired: boolean;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
export interface Storage {
|
|
56
|
+
/**
|
|
57
|
+
* fetched custom asset type ID and raw value in bytes. If `id.isEmpty`, then the type should be registered. A
|
|
58
|
+
* null value means the type is not custom
|
|
59
|
+
*/
|
|
60
|
+
customTypeData: {
|
|
61
|
+
id: CustomAssetTypeId;
|
|
62
|
+
rawValue: Bytes;
|
|
63
|
+
} | null;
|
|
64
|
+
status: TickerReservationStatus;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
export declare function prepareCreateAsset(this: Procedure<Params, Asset, Storage>, args: Params): Promise<Asset>;
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
*/
|
|
73
|
+
export declare function getAuthorization(this: Procedure<Params, Asset, Storage>, { ticker, documents }: Params): Promise<ProcedureAuthorization>;
|
|
74
|
+
/**
|
|
75
|
+
* @hidden
|
|
76
|
+
*/
|
|
77
|
+
export declare function prepareStorage(this: Procedure<Params, Asset, Storage>, { ticker, assetType }: Params): Promise<Storage>;
|
|
78
|
+
/**
|
|
79
|
+
* @hidden
|
|
80
|
+
*/
|
|
81
|
+
export declare const createAsset: () => Procedure<Params, Asset, Storage>;
|
|
82
|
+
//# sourceMappingURL=createAsset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAsset.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/createAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MA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AAS,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EACvC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,CAAC,CAsHhB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EACvC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,MAAM,GAC5B,OAAO,CAAC,sBAAsB,CAAC,CA8BjC;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EACvC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,MAAM,GAC5B,OAAO,CAAC,OAAO,CAAC,CAyBlB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,QAAO,UAAU,MAAM,EAAE,KAAK,EAAE,OAAO,CACM,CAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
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.createAsset = exports.prepareStorage = exports.getAuthorization = exports.prepareCreateAsset = exports.createRegisterCustomAssetTypeResolver = 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 types_1 = require("../../types");
|
|
20
|
+
const conversion_1 = require("../../utils/conversion");
|
|
21
|
+
const internal_2 = require("../../utils/internal");
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
const createRegisterCustomAssetTypeResolver = (context) => (receipt) => {
|
|
26
|
+
const [{ data }] = (0, internal_2.filterEventRecords)(receipt, 'asset', 'CustomAssetTypeRegistered');
|
|
27
|
+
return (0, conversion_1.internalAssetTypeToAssetType)({ Custom: data[1] }, context);
|
|
28
|
+
};
|
|
29
|
+
exports.createRegisterCustomAssetTypeResolver = createRegisterCustomAssetTypeResolver;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
function prepareCreateAsset(args) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const { context: { polymeshApi: { tx, query: { asset }, }, }, context, storage: { customTypeData, status }, } = this;
|
|
36
|
+
const { ticker, name, initialSupply, isDivisible, assetType, securityIdentifiers = [], fundingRound, documents, requireInvestorUniqueness, reservationRequired, } = args;
|
|
37
|
+
if (status === types_1.TickerReservationStatus.AssetCreated) {
|
|
38
|
+
throw new internal_1.PolymeshError({
|
|
39
|
+
code: types_1.ErrorCode.UnmetPrerequisite,
|
|
40
|
+
message: `An Asset with ticker "${ticker}" already exists`,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
if (status === types_1.TickerReservationStatus.Free && reservationRequired) {
|
|
44
|
+
throw new internal_1.PolymeshError({
|
|
45
|
+
code: types_1.ErrorCode.UnmetPrerequisite,
|
|
46
|
+
message: `You must first reserve ticker "${ticker}" in order to create an Asset with it`,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
let rawType;
|
|
50
|
+
if (customTypeData) {
|
|
51
|
+
const { rawValue, id } = customTypeData;
|
|
52
|
+
if (id.isEmpty) {
|
|
53
|
+
// if the custom asset type doesn't exist, we create it
|
|
54
|
+
[rawType] = this.addTransaction({
|
|
55
|
+
transaction: tx.asset.registerCustomAssetType,
|
|
56
|
+
resolvers: [(0, exports.createRegisterCustomAssetTypeResolver)(context)],
|
|
57
|
+
args: [rawValue],
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
rawType = (0, conversion_1.internalAssetTypeToAssetType)({ Custom: id }, context);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
rawType = (0, conversion_1.internalAssetTypeToAssetType)(assetType, context);
|
|
66
|
+
}
|
|
67
|
+
const rawName = (0, conversion_1.stringToAssetName)(name, context);
|
|
68
|
+
const rawIsDivisible = (0, conversion_1.booleanToBool)(isDivisible, context);
|
|
69
|
+
const rawIdentifiers = securityIdentifiers.map(identifier => (0, conversion_1.securityIdentifierToAssetIdentifier)(identifier, context));
|
|
70
|
+
const rawFundingRound = fundingRound ? (0, conversion_1.stringToFundingRoundName)(fundingRound, context) : null;
|
|
71
|
+
const rawDisableIu = (0, conversion_1.booleanToBool)(!requireInvestorUniqueness, context);
|
|
72
|
+
let fee;
|
|
73
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
74
|
+
// we waive any protocol fees if the Asset is created in Ethereum. If not created and ticker is not yet reserved, we set the fee to the sum of protocol fees for ticker registration and Asset creation.
|
|
75
|
+
const classicTicker = yield asset.classicTickers(rawTicker);
|
|
76
|
+
const assetCreatedInEthereum = classicTicker.isSome && (0, conversion_1.boolToBoolean)(classicTicker.unwrap().is_created);
|
|
77
|
+
if (assetCreatedInEthereum) {
|
|
78
|
+
fee = new bignumber_js_1.default(0);
|
|
79
|
+
}
|
|
80
|
+
else if (status === types_1.TickerReservationStatus.Free) {
|
|
81
|
+
const [{ fees: registerTickerFee }, { fees: createAssetFee }] = yield context.getProtocolFees({
|
|
82
|
+
tags: [types_1.TxTags.asset.RegisterTicker, types_1.TxTags.asset.CreateAsset],
|
|
83
|
+
});
|
|
84
|
+
fee = registerTickerFee.plus(createAssetFee);
|
|
85
|
+
}
|
|
86
|
+
this.addTransaction({
|
|
87
|
+
transaction: tx.asset.createAsset,
|
|
88
|
+
fee,
|
|
89
|
+
args: [
|
|
90
|
+
rawName,
|
|
91
|
+
rawTicker,
|
|
92
|
+
rawIsDivisible,
|
|
93
|
+
rawType,
|
|
94
|
+
rawIdentifiers,
|
|
95
|
+
rawFundingRound,
|
|
96
|
+
rawDisableIu,
|
|
97
|
+
],
|
|
98
|
+
});
|
|
99
|
+
if (initialSupply && initialSupply.gt(0)) {
|
|
100
|
+
const rawInitialSupply = (0, conversion_1.bigNumberToBalance)(initialSupply, context, isDivisible);
|
|
101
|
+
this.addTransaction({
|
|
102
|
+
transaction: tx.asset.issue,
|
|
103
|
+
args: [rawTicker, rawInitialSupply],
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
if (documents === null || documents === void 0 ? void 0 : documents.length) {
|
|
107
|
+
const rawDocuments = documents.map(doc => (0, conversion_1.assetDocumentToDocument)(doc, context));
|
|
108
|
+
this.addTransaction({
|
|
109
|
+
transaction: tx.asset.addDocuments,
|
|
110
|
+
isCritical: false,
|
|
111
|
+
feeMultiplier: new bignumber_js_1.default(rawDocuments.length),
|
|
112
|
+
args: [rawDocuments, rawTicker],
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
return new internal_1.Asset({ ticker }, context);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
exports.prepareCreateAsset = prepareCreateAsset;
|
|
119
|
+
/**
|
|
120
|
+
* @hidden
|
|
121
|
+
*/
|
|
122
|
+
function getAuthorization({ ticker, documents }) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
const { storage: { customTypeData, status }, } = this;
|
|
125
|
+
const transactions = [types_1.TxTags.asset.CreateAsset];
|
|
126
|
+
if (documents === null || documents === void 0 ? void 0 : documents.length) {
|
|
127
|
+
transactions.push(types_1.TxTags.asset.AddDocuments);
|
|
128
|
+
}
|
|
129
|
+
if (customTypeData === null || customTypeData === void 0 ? void 0 : customTypeData.id.isEmpty) {
|
|
130
|
+
transactions.push(types_1.TxTags.asset.RegisterCustomAssetType);
|
|
131
|
+
}
|
|
132
|
+
const auth = {
|
|
133
|
+
permissions: {
|
|
134
|
+
transactions,
|
|
135
|
+
assets: [],
|
|
136
|
+
portfolios: [],
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
if (status !== types_1.TickerReservationStatus.Free) {
|
|
140
|
+
return Object.assign(Object.assign({}, auth), { roles: [{ type: types_1.RoleType.TickerOwner, ticker }] });
|
|
141
|
+
}
|
|
142
|
+
return auth;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
exports.getAuthorization = getAuthorization;
|
|
146
|
+
/**
|
|
147
|
+
* @hidden
|
|
148
|
+
*/
|
|
149
|
+
function prepareStorage({ ticker, assetType }) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const { context } = this;
|
|
152
|
+
const reservation = new internal_1.TickerReservation({ ticker }, context);
|
|
153
|
+
const { status } = yield reservation.details();
|
|
154
|
+
const isCustomType = !(0, lodash_1.values)(types_1.KnownAssetType).includes(assetType);
|
|
155
|
+
if (isCustomType) {
|
|
156
|
+
const rawValue = (0, conversion_1.stringToBytes)(assetType, context);
|
|
157
|
+
const id = yield context.polymeshApi.query.asset.customTypesInverse(rawValue);
|
|
158
|
+
return {
|
|
159
|
+
customTypeData: {
|
|
160
|
+
id,
|
|
161
|
+
rawValue,
|
|
162
|
+
},
|
|
163
|
+
status,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
return {
|
|
167
|
+
customTypeData: null,
|
|
168
|
+
status,
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
exports.prepareStorage = prepareStorage;
|
|
173
|
+
/**
|
|
174
|
+
* @hidden
|
|
175
|
+
*/
|
|
176
|
+
const createAsset = () => new internal_1.Procedure(prepareCreateAsset, getAuthorization, prepareStorage);
|
|
177
|
+
exports.createAsset = createAsset;
|
|
178
|
+
//# sourceMappingURL=createAsset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAsset.js","sourceRoot":"","sources":["../../../src/api/procedures/createAsset.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,gEAAqC;AACrC,mCAAgC;AAGhC,6CAAyF;AACzF,uCAQiB;AAEjB,uDAW4B;AAC5B,mDAAsD;AAEtD;;GAEG;AACI,MAAM,qCAAqC,GAChD,CAAC,OAAgB,EAAE,EAAE,CACrB,CAAC,OAA2B,EAAa,EAAE;IACzC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAA,6BAAkB,EAAC,OAAO,EAAE,OAAO,EAAE,2BAA2B,CAAC,CAAC;IAErF,OAAO,IAAA,yCAA4B,EAAC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;AACpE,CAAC,CAAC;AANS,QAAA,qCAAqC,yCAM9C;AA6DJ;;GAEG;AACH,SAAsB,kBAAkB,CAEtC,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EACX,EAAE,EACF,KAAK,EAAE,EAAE,KAAK,EAAE,GACjB,GACF,EACD,OAAO,EACP,OAAO,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,GACpC,GAAG,IAAI,CAAC;QACT,MAAM,EACJ,MAAM,EACN,IAAI,EACJ,aAAa,EACb,WAAW,EACX,SAAS,EACT,mBAAmB,GAAG,EAAE,EACxB,YAAY,EACZ,SAAS,EACT,yBAAyB,EACzB,mBAAmB,GACpB,GAAG,IAAI,CAAC;QAET,IAAI,MAAM,KAAK,+BAAuB,CAAC,YAAY,EAAE;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E,IAAI,oBAAS,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AADzD,QAAA,WAAW,eAC8C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ISubmittableResult } from '@polkadot/types/types';
|
|
2
|
+
import { Checkpoint, Context, PostTransactionValue, Procedure } from "../../internal";
|
|
3
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
4
|
+
/**
|
|
5
|
+
* @hidden
|
|
6
|
+
*/
|
|
7
|
+
export interface Params {
|
|
8
|
+
ticker: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const createCheckpointResolver: (ticker: string, context: Context) => (receipt: ISubmittableResult) => Checkpoint;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare function prepareCreateCheckpoint(this: Procedure<Params, Checkpoint>, args: Params): Promise<PostTransactionValue<Checkpoint>>;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare function getAuthorization(this: Procedure<Params, Checkpoint>, { ticker }: Params): ProcedureAuthorization;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare const createCheckpoint: () => Procedure<Params, Checkpoint>;
|
|
26
|
+
//# sourceMappingURL=createCheckpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCheckpoint.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/createCheckpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAS,UAAU,EAAE,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,uBAAmB;AAEzF,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAI1D;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,WAC1B,MAAM,WAAW,OAAO,eACvB,kBAAkB,KAAG,UAK9B,CAAC;AAEJ;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,EACnC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAa3C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,EACnC,EAAE,MAAM,EAAE,EAAE,MAAM,GACjB,sBAAsB,CAQxB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,UAAU,MAAM,EAAE,UAAU,CACN,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.createCheckpoint = exports.getAuthorization = exports.prepareCreateCheckpoint = exports.createCheckpointResolver = void 0;
|
|
13
|
+
const internal_1 = require("../../internal");
|
|
14
|
+
const types_1 = require("../../types");
|
|
15
|
+
const conversion_1 = require("../../utils/conversion");
|
|
16
|
+
const internal_2 = require("../../utils/internal");
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
const createCheckpointResolver = (ticker, context) => (receipt) => {
|
|
21
|
+
const [{ data }] = (0, internal_2.filterEventRecords)(receipt, 'checkpoint', 'CheckpointCreated');
|
|
22
|
+
const id = (0, conversion_1.u64ToBigNumber)(data[2]);
|
|
23
|
+
return new internal_1.Checkpoint({ ticker, id }, context);
|
|
24
|
+
};
|
|
25
|
+
exports.createCheckpointResolver = createCheckpointResolver;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
function prepareCreateCheckpoint(args) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const { context } = this;
|
|
32
|
+
const { ticker } = args;
|
|
33
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
34
|
+
const [checkpoint] = this.addTransaction({
|
|
35
|
+
transaction: context.polymeshApi.tx.checkpoint.createCheckpoint,
|
|
36
|
+
resolvers: [(0, exports.createCheckpointResolver)(ticker, context)],
|
|
37
|
+
args: [rawTicker],
|
|
38
|
+
});
|
|
39
|
+
return checkpoint;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
exports.prepareCreateCheckpoint = prepareCreateCheckpoint;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
function getAuthorization({ ticker }) {
|
|
47
|
+
return {
|
|
48
|
+
permissions: {
|
|
49
|
+
transactions: [types_1.TxTags.checkpoint.CreateCheckpoint],
|
|
50
|
+
assets: [new internal_1.Asset({ ticker }, this.context)],
|
|
51
|
+
portfolios: [],
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.getAuthorization = getAuthorization;
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
const createCheckpoint = () => new internal_1.Procedure(prepareCreateCheckpoint, getAuthorization);
|
|
60
|
+
exports.createCheckpoint = createCheckpoint;
|
|
61
|
+
//# sourceMappingURL=createCheckpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCheckpoint.js","sourceRoot":"","sources":["../../../src/api/procedures/createCheckpoint.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,6CAAyF;AACzF,uCAAiC;AAEjC,uDAAoE;AACpE,mDAAsD;AAStD;;GAEG;AACI,MAAM,wBAAwB,GACnC,CAAC,MAAc,EAAE,OAAgB,EAAE,EAAE,CACrC,CAAC,OAA2B,EAAc,EAAE;IAC1C,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAA,6BAAkB,EAAC,OAAO,EAAE,YAAY,EAAE,mBAAmB,CAAC,CAAC;IAClF,MAAM,EAAE,GAAG,IAAA,2BAAc,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnC,OAAO,IAAI,qBAAU,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC,CAAC;AAPS,QAAA,wBAAwB,4BAOjC;AAEJ;;GAEG;AACH,SAAsB,uBAAuB,CAE3C,IAAY;;QAEZ,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAExB,MAAM,SAAS,GAAG,IAAA,2BAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAElD,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;YACvC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,UAAU,CAAC,gBAAgB;YAC/D,SAAS,EAAE,CAAC,IAAA,gCAAwB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YACtD,IAAI,EAAE,CAAC,SAAS,CAAC;SAClB,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACpB,CAAC;CAAA;AAhBD,0DAgBC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAE9B,EAAE,MAAM,EAAU;IAElB,OAAO;QACL,WAAW,EAAE;YACX,YAAY,EAAE,CAAC,cAAM,CAAC,UAAU,CAAC,gBAAgB,CAAC;YAClD,MAAM,EAAE,CAAC,IAAI,gBAAK,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC;AAXD,4CAWC;AAED;;GAEG;AACI,MAAM,gBAAgB,GAAG,GAAkC,EAAE,CAClE,IAAI,oBAAS,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAAC;AAD9C,QAAA,gBAAgB,oBAC8B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ISubmittableResult } from '@polkadot/types/types';
|
|
2
|
+
import BigNumber from 'bignumber.js';
|
|
3
|
+
import { CheckpointSchedule, Context, PostTransactionValue, Procedure } from "../../internal";
|
|
4
|
+
import { CalendarPeriod } from "../../types";
|
|
5
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
6
|
+
export interface CreateCheckpointScheduleParams {
|
|
7
|
+
/**
|
|
8
|
+
* The date from which to begin creating snapshots. A null value indicates immediately
|
|
9
|
+
*/
|
|
10
|
+
start: Date | null;
|
|
11
|
+
/**
|
|
12
|
+
* The cadence with which to make Checkpoints.
|
|
13
|
+
* @note A null value indicates to create only one Checkpoint, regardless of repetitions specified. This can be used to schedule the creation of a Checkpoint in the future
|
|
14
|
+
*/
|
|
15
|
+
period: CalendarPeriod | null;
|
|
16
|
+
/**
|
|
17
|
+
* The number of snapshots to take. A null value indicates snapshots should be made indefinitely
|
|
18
|
+
*/
|
|
19
|
+
repetitions: BigNumber | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare type Params = CreateCheckpointScheduleParams & {
|
|
25
|
+
ticker: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare const createCheckpointScheduleResolver: (ticker: string, context: Context) => (receipt: ISubmittableResult) => CheckpointSchedule;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export declare function prepareCreateCheckpointSchedule(this: Procedure<Params, CheckpointSchedule>, args: Params): Promise<PostTransactionValue<CheckpointSchedule>>;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
export declare function getAuthorization(this: Procedure<Params, CheckpointSchedule>, { ticker }: Params): ProcedureAuthorization;
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
export declare const createCheckpointSchedule: () => Procedure<Params, CheckpointSchedule>;
|
|
43
|
+
//# sourceMappingURL=createCheckpointSchedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCheckpointSchedule.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/createCheckpointSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAEL,kBAAkB,EAClB,OAAO,EAEP,oBAAoB,EACpB,SAAS,EACV,uBAAmB;AACpB,OAAO,EAAE,cAAc,EAAqB,oBAAgB;AAC5D,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAQ1D,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,WAAW,EAAE,SAAS,GAAG,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,oBAAY,MAAM,GAAG,8BAA8B,GAAG;IACpD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,WAClC,MAAM,WAAW,OAAO,eACvB,kBAAkB,KAAG,kBAY9B,CAAC;AAEJ;;GAEG;AACH,wBAAsB,+BAA+B,CACnD,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,kBAAkB,CAAC,EAC3C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAsBnD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,kBAAkB,CAAC,EAC3C,EAAE,MAAM,EAAE,EAAE,MAAM,GACjB,sBAAsB,CASxB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,QAAO,UAAU,MAAM,EAAE,kBAAkB,CACd,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.createCheckpointSchedule = exports.getAuthorization = exports.prepareCreateCheckpointSchedule = exports.createCheckpointScheduleResolver = void 0;
|
|
13
|
+
const internal_1 = require("../../internal");
|
|
14
|
+
const types_1 = require("../../types");
|
|
15
|
+
const conversion_1 = require("../../utils/conversion");
|
|
16
|
+
const internal_2 = require("../../utils/internal");
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
const createCheckpointScheduleResolver = (ticker, context) => (receipt) => {
|
|
21
|
+
const [{ data }] = (0, internal_2.filterEventRecords)(receipt, 'checkpoint', 'ScheduleCreated');
|
|
22
|
+
const scheduleParams = (0, conversion_1.storedScheduleToCheckpointScheduleParams)(data[2]);
|
|
23
|
+
return new internal_1.CheckpointSchedule(Object.assign({ ticker }, scheduleParams), context);
|
|
24
|
+
};
|
|
25
|
+
exports.createCheckpointScheduleResolver = createCheckpointScheduleResolver;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
function prepareCreateCheckpointSchedule(args) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const { context } = this;
|
|
32
|
+
const { ticker, start, period, repetitions } = args;
|
|
33
|
+
const now = new Date();
|
|
34
|
+
if (start && start < now) {
|
|
35
|
+
throw new internal_1.PolymeshError({
|
|
36
|
+
code: types_1.ErrorCode.ValidationError,
|
|
37
|
+
message: 'Schedule start date must be in the future',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
41
|
+
const rawSchedule = (0, conversion_1.scheduleSpecToMeshScheduleSpec)({ start, period, repetitions }, context);
|
|
42
|
+
const [schedule] = this.addTransaction({
|
|
43
|
+
transaction: context.polymeshApi.tx.checkpoint.createSchedule,
|
|
44
|
+
resolvers: [(0, exports.createCheckpointScheduleResolver)(ticker, context)],
|
|
45
|
+
args: [rawTicker, rawSchedule],
|
|
46
|
+
});
|
|
47
|
+
return schedule;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
exports.prepareCreateCheckpointSchedule = prepareCreateCheckpointSchedule;
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
function getAuthorization({ ticker }) {
|
|
55
|
+
const { context } = this;
|
|
56
|
+
return {
|
|
57
|
+
permissions: {
|
|
58
|
+
transactions: [types_1.TxTags.checkpoint.CreateSchedule],
|
|
59
|
+
assets: [new internal_1.Asset({ ticker }, context)],
|
|
60
|
+
portfolios: [],
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.getAuthorization = getAuthorization;
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
const createCheckpointSchedule = () => new internal_1.Procedure(prepareCreateCheckpointSchedule, getAuthorization);
|
|
69
|
+
exports.createCheckpointSchedule = createCheckpointSchedule;
|
|
70
|
+
//# sourceMappingURL=createCheckpointSchedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCheckpointSchedule.js","sourceRoot":"","sources":["../../../src/api/procedures/createCheckpointSchedule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,6CAOoB;AACpB,uCAA4D;AAE5D,uDAI4B;AAC5B,mDAAsD;AAyBtD;;GAEG;AACI,MAAM,gCAAgC,GAC3C,CAAC,MAAc,EAAE,OAAgB,EAAE,EAAE,CACrC,CAAC,OAA2B,EAAsB,EAAE;IAClD,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAA,6BAAkB,EAAC,OAAO,EAAE,YAAY,EAAE,iBAAiB,CAAC,CAAC;IAEhF,MAAM,cAAc,GAAG,IAAA,qDAAwC,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzE,OAAO,IAAI,6BAAkB,iBAEzB,MAAM,IACH,cAAc,GAEnB,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAdS,QAAA,gCAAgC,oCAczC;AAEJ;;GAEG;AACH,SAAsB,+BAA+B,CAEnD,IAAY;;QAEZ,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAEpD,MAAM,GAAG,GAAG,I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