@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,130 @@
|
|
|
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.modifyAsset = exports.getAuthorization = exports.prepareModifyAsset = 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
|
+
function prepareModifyAsset(args) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const { context: { polymeshApi: { tx }, }, context, } = this;
|
|
23
|
+
const { ticker, makeDivisible, name: newName, fundingRound: newFundingRound, identifiers: newIdentifiers, } = args;
|
|
24
|
+
const noArguments = makeDivisible === undefined &&
|
|
25
|
+
newName === undefined &&
|
|
26
|
+
newFundingRound === undefined &&
|
|
27
|
+
newIdentifiers === undefined;
|
|
28
|
+
if (noArguments) {
|
|
29
|
+
throw new internal_1.PolymeshError({
|
|
30
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
31
|
+
message: 'Nothing to modify',
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
35
|
+
const asset = new internal_1.Asset({ ticker }, context);
|
|
36
|
+
const [{ isDivisible, name }, fundingRound, identifiers] = yield Promise.all([
|
|
37
|
+
asset.details(),
|
|
38
|
+
asset.currentFundingRound(),
|
|
39
|
+
asset.getIdentifiers(),
|
|
40
|
+
]);
|
|
41
|
+
const transactions = [];
|
|
42
|
+
if (makeDivisible) {
|
|
43
|
+
if (isDivisible) {
|
|
44
|
+
throw new internal_1.PolymeshError({
|
|
45
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
46
|
+
message: 'The Asset is already divisible',
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
transactions.push((0, internal_2.checkTxType)({
|
|
50
|
+
transaction: tx.asset.makeDivisible,
|
|
51
|
+
args: [rawTicker],
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
if (newName) {
|
|
55
|
+
if (newName === name) {
|
|
56
|
+
throw new internal_1.PolymeshError({
|
|
57
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
58
|
+
message: 'New name is the same as current name',
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
transactions.push((0, internal_2.checkTxType)({
|
|
62
|
+
transaction: tx.asset.renameAsset,
|
|
63
|
+
args: [rawTicker, (0, conversion_1.stringToAssetName)(newName, context)],
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
if (newFundingRound) {
|
|
67
|
+
if (newFundingRound === fundingRound) {
|
|
68
|
+
throw new internal_1.PolymeshError({
|
|
69
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
70
|
+
message: 'New funding round name is the same as current funding round',
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
transactions.push((0, internal_2.checkTxType)({
|
|
74
|
+
transaction: tx.asset.setFundingRound,
|
|
75
|
+
args: [rawTicker, (0, conversion_1.stringToFundingRoundName)(newFundingRound, context)],
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
if (newIdentifiers) {
|
|
79
|
+
const identifiersAreEqual = (0, internal_2.hasSameElements)(identifiers, newIdentifiers);
|
|
80
|
+
if (identifiersAreEqual) {
|
|
81
|
+
throw new internal_1.PolymeshError({
|
|
82
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
83
|
+
message: 'New identifiers are the same as current identifiers',
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
transactions.push((0, internal_2.checkTxType)({
|
|
87
|
+
transaction: tx.asset.updateIdentifiers,
|
|
88
|
+
args: [
|
|
89
|
+
rawTicker,
|
|
90
|
+
newIdentifiers.map(newIdentifier => (0, conversion_1.securityIdentifierToAssetIdentifier)(newIdentifier, context)),
|
|
91
|
+
],
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
this.addBatchTransaction({ transactions });
|
|
95
|
+
return asset;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
exports.prepareModifyAsset = prepareModifyAsset;
|
|
99
|
+
/**
|
|
100
|
+
* @hidden
|
|
101
|
+
*/
|
|
102
|
+
function getAuthorization({ ticker, makeDivisible, name, fundingRound, identifiers }) {
|
|
103
|
+
const transactions = [];
|
|
104
|
+
if (makeDivisible !== undefined) {
|
|
105
|
+
transactions.push(types_1.TxTags.asset.MakeDivisible);
|
|
106
|
+
}
|
|
107
|
+
if (name) {
|
|
108
|
+
transactions.push(types_1.TxTags.asset.RenameAsset);
|
|
109
|
+
}
|
|
110
|
+
if (fundingRound) {
|
|
111
|
+
transactions.push(types_1.TxTags.asset.SetFundingRound);
|
|
112
|
+
}
|
|
113
|
+
if (identifiers) {
|
|
114
|
+
transactions.push(types_1.TxTags.asset.UpdateIdentifiers);
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
permissions: {
|
|
118
|
+
transactions,
|
|
119
|
+
portfolios: [],
|
|
120
|
+
assets: [new internal_1.Asset({ ticker }, this.context)],
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
exports.getAuthorization = getAuthorization;
|
|
125
|
+
/**
|
|
126
|
+
* @hidden
|
|
127
|
+
*/
|
|
128
|
+
const modifyAsset = () => new internal_1.Procedure(prepareModifyAsset, getAuthorization);
|
|
129
|
+
exports.modifyAsset = modifyAsset;
|
|
130
|
+
//# sourceMappingURL=modifyAsset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifyAsset.js","sourceRoot":"","sources":["../../../src/api/procedures/modifyAsset.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6D;AAC7D,uCAAgE;AAEhE,uDAK4B;AAC5B,mDAAgE;AAoChE;;GAEG;AACH,SAAsB,kBAAkB,CAEtC,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EACJ,MAAM,EACN,aAAa,EACb,IAAI,EAAE,OAAO,EACb,YAAY,EAAE,eAAe,EAC7B,WAAW,EAAE,cAAc,GAC5B,GAAG,IAAI,CAAC;QAET,MAAM,WAAW,GACf,aAAa,KAAK,SAAS;YAC3B,OAAO,KAAK,SAAS;YACrB,eAAe,KAAK,SAAS;YAC7B,cAAc,KAAK,SAAS,CAAC;QAE/B,IAAI,WAAW,EAAE;YACf,MAAM,IAAI,wBAAa,CAAC;gBACtB,IAAI,EAAE,iBAAS,CAAC,YAAY;gBAC5B,OAAO,EAAE,mBAAmB;aAC7B,CAAC,CAAC;SACJ;QAED,MAAM,SAAS,GAAG,IAAA,2BAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAElD,MAAM,KAAK,GAAG,IAAI,gBAAK,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;QAE7C,MAAM,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC3E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;IAED,OAAO;QACL,WAAW,EAAE;YACX,YAAY;YACZ,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,CAAC,IAAI,gBAAK,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SAC9C;KACF,CAAC;AACJ,CAAC;AA7BD,4CA6BC;AAED;;GAEG;AACI,MAAM,WAAW,GAAG,GAA6B,EAAE,CACxD,IAAI,oBAAS,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;AADzC,QAAA,WAAW,eAC8B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Asset, Identity, Procedure } from "../../internal";
|
|
2
|
+
import { InputTrustedClaimIssuer } from "../../types";
|
|
3
|
+
import { ProcedureAuthorization, TrustedClaimIssuerOperation } from "../../types/internal";
|
|
4
|
+
export interface ModifyAssetTrustedClaimIssuersAddSetParams {
|
|
5
|
+
claimIssuers: InputTrustedClaimIssuer[];
|
|
6
|
+
}
|
|
7
|
+
export interface ModifyAssetTrustedClaimIssuersRemoveParams {
|
|
8
|
+
/**
|
|
9
|
+
* array of Identities (or DIDs) of the default claim issuers
|
|
10
|
+
*/
|
|
11
|
+
claimIssuers: (string | Identity)[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare type Params = {
|
|
17
|
+
ticker: string;
|
|
18
|
+
} & ((ModifyAssetTrustedClaimIssuersAddSetParams & {
|
|
19
|
+
operation: TrustedClaimIssuerOperation.Add | TrustedClaimIssuerOperation.Set;
|
|
20
|
+
}) | (ModifyAssetTrustedClaimIssuersRemoveParams & {
|
|
21
|
+
operation: TrustedClaimIssuerOperation.Remove;
|
|
22
|
+
}));
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare function prepareModifyAssetTrustedClaimIssuers(this: Procedure<Params, Asset>, args: Params): Promise<Asset>;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare function getAuthorization(this: Procedure<Params, Asset>, { ticker, operation }: Params): ProcedureAuthorization;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export declare const modifyAssetTrustedClaimIssuers: () => Procedure<Params, Asset>;
|
|
35
|
+
//# sourceMappingURL=modifyAssetTrustedClaimIssuers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifyAssetTrustedClaimIssuers.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/modifyAssetTrustedClaimIssuers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAW,QAAQ,EAAiB,SAAS,EAAE,uBAAmB;AAChF,OAAO,EAAa,uBAAuB,EAA8B,oBAAgB;AACzF,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,6BAAyB;AAWvF,MAAM,WAAW,0CAA0C;IACzD,YAAY,EAAE,uBAAuB,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,0CAA0C;IACzD;;OAEG;IACH,YAAY,EAAE,CAAC,MAAM,GAAG,QAAQ,CAAC,EAAE,CAAC;CACrC;AAED;;GAEG;AACH,oBAAY,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,CACtC,CAAC,0CAA0C,GAAG;IAC5C,SAAS,EAAE,2BAA2B,CAAC,GAAG,GAAG,2BAA2B,CAAC,GAAG,CAAC;CAC9E,CAAC,GACF,CAAC,0CAA0C,GAAG;IAC5C,SAAS,EAAE,2BAA2B,CAAC,MAAM,CAAC;CAC/C,CAAC,CACL,CAAC;AA8CF;;GAEG;AACH,wBAAsB,qCAAqC,CACzD,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,EAC9B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,CAAC,CAsGhB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,EAC9B,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,MAAM,GAC5B,sBAAsB,CAgBxB;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,QAAO,UAAU,MAAM,EAAE,KAAK,CACD,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
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.modifyAssetTrustedClaimIssuers = exports.getAuthorization = exports.prepareModifyAssetTrustedClaimIssuers = void 0;
|
|
13
|
+
const lodash_1 = require("lodash");
|
|
14
|
+
const internal_1 = require("../../internal");
|
|
15
|
+
const types_1 = require("../../types");
|
|
16
|
+
const internal_2 = require("../../types/internal");
|
|
17
|
+
const utils_1 = require("../../types/utils");
|
|
18
|
+
const conversion_1 = require("../../utils/conversion");
|
|
19
|
+
const internal_3 = require("../../utils/internal");
|
|
20
|
+
const convertArgsToRaw = (claimIssuers, rawTicker, context) => {
|
|
21
|
+
const claimIssuersToAdd = [];
|
|
22
|
+
const inputDids = [];
|
|
23
|
+
claimIssuers.forEach(({ identity, trustedFor }) => {
|
|
24
|
+
const issuerIdentity = (0, internal_3.asIdentity)(identity, context);
|
|
25
|
+
claimIssuersToAdd.push((0, utils_1.tuple)(rawTicker, (0, conversion_1.trustedClaimIssuerToTrustedIssuer)({ identity: issuerIdentity, trustedFor }, context)));
|
|
26
|
+
inputDids.push(issuerIdentity.did);
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
claimIssuersToAdd,
|
|
30
|
+
inputDids,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
const areSameClaimIssuers = (currentClaimIssuers, claimIssuers) => (0, internal_3.hasSameElements)(currentClaimIssuers, claimIssuers, ({ identity: aIdentity, trustedFor: aTrustedFor }, { identity: bIdentity, trustedFor: bTrustedFor }) => {
|
|
34
|
+
const sameClaimTypes = (aTrustedFor === null && bTrustedFor === null) ||
|
|
35
|
+
(aTrustedFor && bTrustedFor && (0, lodash_1.isEqual)((0, lodash_1.sortBy)(aTrustedFor), (0, lodash_1.sortBy)(bTrustedFor)));
|
|
36
|
+
return (0, conversion_1.signerToString)(aIdentity) === (0, conversion_1.signerToString)(bIdentity) && !!sameClaimTypes;
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
function prepareModifyAssetTrustedClaimIssuers(args) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
const { context: { polymeshApi: { query, tx }, }, context, } = this;
|
|
44
|
+
const { ticker } = args;
|
|
45
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
46
|
+
let claimIssuersToDelete = [];
|
|
47
|
+
let claimIssuersToAdd = [];
|
|
48
|
+
let inputDids;
|
|
49
|
+
const rawCurrentClaimIssuers = yield query.complianceManager.trustedClaimIssuer(rawTicker);
|
|
50
|
+
const currentClaimIssuers = rawCurrentClaimIssuers.map(issuer => (0, conversion_1.trustedIssuerToTrustedClaimIssuer)(issuer, context));
|
|
51
|
+
const currentClaimIssuerDids = currentClaimIssuers.map(({ identity }) => (0, conversion_1.signerToString)(identity));
|
|
52
|
+
if (args.operation === internal_2.TrustedClaimIssuerOperation.Remove) {
|
|
53
|
+
inputDids = args.claimIssuers.map(conversion_1.signerToString);
|
|
54
|
+
const notPresent = (0, lodash_1.difference)(inputDids, currentClaimIssuerDids);
|
|
55
|
+
if (notPresent.length) {
|
|
56
|
+
throw new internal_1.PolymeshError({
|
|
57
|
+
code: types_1.ErrorCode.UnmetPrerequisite,
|
|
58
|
+
message: 'One or more of the supplied Identities are not Trusted Claim Issuers',
|
|
59
|
+
data: {
|
|
60
|
+
notPresent,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
claimIssuersToDelete = currentClaimIssuers
|
|
65
|
+
.filter(({ identity }) => inputDids.includes((0, conversion_1.signerToString)(identity)))
|
|
66
|
+
.map(({ identity }) => (0, utils_1.tuple)(rawTicker, (0, conversion_1.stringToIdentityId)((0, conversion_1.signerToString)(identity), context)));
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
({ claimIssuersToAdd, inputDids } = convertArgsToRaw(args.claimIssuers, rawTicker, context));
|
|
70
|
+
}
|
|
71
|
+
if (args.operation === internal_2.TrustedClaimIssuerOperation.Set) {
|
|
72
|
+
claimIssuersToDelete = rawCurrentClaimIssuers.map(({ issuer }) => [rawTicker, issuer]);
|
|
73
|
+
if (areSameClaimIssuers(currentClaimIssuers, args.claimIssuers)) {
|
|
74
|
+
throw new internal_1.PolymeshError({
|
|
75
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
76
|
+
message: 'The supplied claim issuer list is equal to the current one',
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (args.operation === internal_2.TrustedClaimIssuerOperation.Add) {
|
|
81
|
+
const present = (0, lodash_1.intersection)(inputDids, currentClaimIssuerDids);
|
|
82
|
+
if (present.length) {
|
|
83
|
+
throw new internal_1.PolymeshError({
|
|
84
|
+
code: types_1.ErrorCode.UnmetPrerequisite,
|
|
85
|
+
message: 'One or more of the supplied Identities already are Trusted Claim Issuers',
|
|
86
|
+
data: {
|
|
87
|
+
present,
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const nonExistentDids = yield context.getInvalidDids(inputDids);
|
|
93
|
+
if (nonExistentDids.length) {
|
|
94
|
+
throw new internal_1.PolymeshError({
|
|
95
|
+
code: types_1.ErrorCode.DataUnavailable,
|
|
96
|
+
message: 'Some of the supplied Identities do not exist',
|
|
97
|
+
data: {
|
|
98
|
+
nonExistentDids,
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
const transactions = (0, internal_3.assembleBatchTransactions)((0, utils_1.tuple)({
|
|
103
|
+
transaction: tx.complianceManager.removeDefaultTrustedClaimIssuer,
|
|
104
|
+
argsArray: claimIssuersToDelete,
|
|
105
|
+
}, {
|
|
106
|
+
transaction: tx.complianceManager.addDefaultTrustedClaimIssuer,
|
|
107
|
+
argsArray: claimIssuersToAdd,
|
|
108
|
+
}));
|
|
109
|
+
this.addBatchTransaction({ transactions });
|
|
110
|
+
return new internal_1.Asset({ ticker }, context);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
exports.prepareModifyAssetTrustedClaimIssuers = prepareModifyAssetTrustedClaimIssuers;
|
|
114
|
+
/**
|
|
115
|
+
* @hidden
|
|
116
|
+
*/
|
|
117
|
+
function getAuthorization({ ticker, operation }) {
|
|
118
|
+
const transactions = [];
|
|
119
|
+
if (operation !== internal_2.TrustedClaimIssuerOperation.Add) {
|
|
120
|
+
transactions.push(types_1.TxTags.complianceManager.RemoveDefaultTrustedClaimIssuer);
|
|
121
|
+
}
|
|
122
|
+
if (operation !== internal_2.TrustedClaimIssuerOperation.Remove) {
|
|
123
|
+
transactions.push(types_1.TxTags.complianceManager.AddDefaultTrustedClaimIssuer);
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
permissions: {
|
|
127
|
+
transactions,
|
|
128
|
+
assets: [new internal_1.Asset({ ticker }, this.context)],
|
|
129
|
+
portfolios: [],
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
exports.getAuthorization = getAuthorization;
|
|
134
|
+
/**
|
|
135
|
+
* @hidden
|
|
136
|
+
*/
|
|
137
|
+
const modifyAssetTrustedClaimIssuers = () => new internal_1.Procedure(prepareModifyAssetTrustedClaimIssuers, getAuthorization);
|
|
138
|
+
exports.modifyAssetTrustedClaimIssuers = modifyAssetTrustedClaimIssuers;
|
|
139
|
+
//# sourceMappingURL=modifyAssetTrustedClaimIssuers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifyAssetTrustedClaimIssuers.js","sourceRoot":"","sources":["../../../src/api/procedures/modifyAssetTrustedClaimIssuers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAmE;AAGnE,6CAAgF;AAChF,uCAAyF;AACzF,mDAAuF;AACvF,6CAAsC;AACtC,uDAM4B;AAC5B,mDAA0F;AAyB1F,MAAM,gBAAgB,GAAG,CACvB,YAAwE,EACxE,SAAiB,EACjB,OAAgB,EACuD,EAAE;IACzE,MAAM,iBAAiB,GAA8B,EAAE,CAAC;IACxD,MAAM,SAAS,GAAa,EAAE,CAAC;IAC/B,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;QAChD,MAAM,cAAc,GAAG,IAAA,qBAAU,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAErD,iBAAiB,CAAC,IAAI,CACpB,IAAA,aAAK,EACH,SAAS,EACT,IAAA,8CAAiC,EAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,CACrF,CACF,CAAC;QACF,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,iBAAiB;QACjB,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAC1B,mBAAyC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AAE,MAAM,EAAE,SAAS,EAAU;IAE7B,MAAM,YAAY,GAAG,EAAE,CAAC;IACxB,IAAI,SAAS,KAAK,sCAA2B,CAAC,GAAG,EAAE;QACjD,YAAY,CAAC,IAAI,CAAC,cAAM,CAAC,iBAAiB,CAAC,+BAA+B,CAAC,CAAC;KAC7E;IACD,IAAI,SAAS,KAAK,sCAA2B,CAAC,MAAM,EAAE;QACpD,YAAY,CAAC,IAAI,CAAC,cAAM,CAAC,iBAAiB,CAAC,4BAA4B,CAAC,CAAC;KAC1E;IAED,OAAO;QACL,WAAW,EAAE;YACX,YAAY;YACZ,MAAM,EAAE,CAAC,IAAI,gBAAK,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC;AAnBD,4CAmBC;AAED;;GAEG;AACI,MAAM,8BAA8B,GAAG,GAA6B,EAAE,CAC3E,IAAI,oBAAS,CAAC,qCAAqC,EAAE,gBAAgB,CAAC,CAAC;AAD5D,QAAA,8BAA8B,kCAC8B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CorporateActionBase, Procedure } from "../../internal";
|
|
2
|
+
import { InputCaCheckpoint } from "../../types";
|
|
3
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
4
|
+
/**
|
|
5
|
+
* @hidden
|
|
6
|
+
*/
|
|
7
|
+
export interface ModifyCaCheckpointParams {
|
|
8
|
+
checkpoint: InputCaCheckpoint | null;
|
|
9
|
+
}
|
|
10
|
+
export declare type Params = ModifyCaCheckpointParams & {
|
|
11
|
+
corporateAction: CorporateActionBase;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare function prepareModifyCaCheckpoint(this: Procedure<Params, void>, args: Params): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare function getAuthorization(this: Procedure<Params, void>, { corporateAction: { asset: { ticker }, }, }: Params): ProcedureAuthorization;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const modifyCaCheckpoint: () => Procedure<Params, void>;
|
|
25
|
+
//# sourceMappingURL=modifyCaCheckpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifyCaCheckpoint.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/modifyCaCheckpoint.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,mBAAmB,EAAE,SAAS,EAAE,uBAAmB;AACnE,OAAO,EAAE,iBAAiB,EAAU,oBAAgB;AACpD,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAI1D;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACtC;AAED,oBAAY,MAAM,GAAG,wBAAwB,GAAG;IAC9C,eAAe,EAAE,mBAAmB,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,EAC7B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,EAC7B,EACE,eAAe,EAAE,EACf,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,GACF,EAAE,MAAM,GACR,sBAAsB,CAUxB;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAO,UAAU,MAAM,EAAE,IAAI,CACA,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.modifyCaCheckpoint = exports.getAuthorization = exports.prepareModifyCaCheckpoint = void 0;
|
|
13
|
+
const utils_1 = require("./utils");
|
|
14
|
+
const internal_1 = require("../../internal");
|
|
15
|
+
const types_1 = require("../../types");
|
|
16
|
+
const conversion_1 = require("../../utils/conversion");
|
|
17
|
+
const internal_2 = require("../../utils/internal");
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
function prepareModifyCaCheckpoint(args) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const { context: { polymeshApi: { tx }, }, context, } = this;
|
|
24
|
+
const { checkpoint, corporateAction: { id: localId, asset: { ticker }, }, } = args;
|
|
25
|
+
let checkpointValue;
|
|
26
|
+
if (checkpoint) {
|
|
27
|
+
checkpointValue = yield (0, internal_2.getCheckpointValue)(checkpoint, ticker, context);
|
|
28
|
+
yield (0, utils_1.assertCaCheckpointValid)(checkpointValue);
|
|
29
|
+
}
|
|
30
|
+
const rawCaId = (0, conversion_1.corporateActionIdentifierToCaId)({ ticker, localId }, context);
|
|
31
|
+
const rawRecordDateSpec = (0, internal_2.optionize)(conversion_1.checkpointToRecordDateSpec)(checkpointValue, context);
|
|
32
|
+
this.addTransaction({
|
|
33
|
+
transaction: tx.corporateAction.changeRecordDate,
|
|
34
|
+
args: [rawCaId, rawRecordDateSpec],
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
exports.prepareModifyCaCheckpoint = prepareModifyCaCheckpoint;
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
function getAuthorization({ corporateAction: { asset: { ticker }, }, }) {
|
|
43
|
+
const { context } = this;
|
|
44
|
+
return {
|
|
45
|
+
permissions: {
|
|
46
|
+
transactions: [types_1.TxTags.corporateAction.ChangeRecordDate],
|
|
47
|
+
assets: [new internal_1.Asset({ ticker }, context)],
|
|
48
|
+
portfolios: [],
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.getAuthorization = getAuthorization;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
const modifyCaCheckpoint = () => new internal_1.Procedure(prepareModifyCaCheckpoint, getAuthorization);
|
|
57
|
+
exports.modifyCaCheckpoint = modifyCaCheckpoint;
|
|
58
|
+
//# sourceMappingURL=modifyCaCheckpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifyCaCheckpoint.js","sourceRoot":"","sources":["../../../src/api/procedures/modifyCaCheckpoint.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAiE;AACjE,6CAAmE;AACnE,uCAAoD;AAEpD,uDAAiG;AACjG,mDAAiE;AAajE;;GAEG;AACH,SAAsB,yBAAyB,CAE7C,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EACJ,UAAU,EACV,eAAe,EAAE,EACf,EAAE,EAAE,OAAO,EACX,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,GACF,GAAG,IAAI,CAAC;QACT,IAAI,eAAe,CAAC;QACpB,IAAI,UAAU,EAAE;YACd,eAAe,GAAG,MAAM,IAAA,6BAAkB,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YACxE,MAAM,IAAA,+BAAuB,EAAC,eAAe,CAAC,CAAC;SAChD;QAED,MAAM,OAAO,GAAG,IAAA,4CAA+B,EAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;QAC9E,MAAM,iBAAiB,GAAG,IAAA,oBAAS,EAAC,uCAA0B,CAAC,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QAE1F,IAAI,CAAC,cAAc,CAAC;YAClB,WAAW,EAAE,EAAE,CAAC,eAAe,CAAC,gBAAgB;YAChD,IAAI,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;CAAA;AA9BD,8DA8BC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAE9B,EACE,eAAe,EAAE,EACf,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,GACM;IAET,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEzB,OAAO;QACL,WAAW,EAAE;YACX,YAAY,EAAE,CAAC,cAAM,CAAC,eAAe,CAAC,gBAAgB,CAAC;YACvD,MAAM,EAAE,CAAC,IAAI,gBAAK,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;YACxC,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC;AAjBD,4CAiBC;AAED;;GAEG;AACI,MAAM,kBAAkB,GAAG,GAA4B,EAAE,CAC9D,IAAI,oBAAS,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,CAAC;AADhD,QAAA,kBAAkB,sBAC8B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { Procedure } from "../../internal";
|
|
3
|
+
import { InputTargets, InputTaxWithholding } from "../../types";
|
|
4
|
+
import { ProcedureAuthorization } from "../../types/internal";
|
|
5
|
+
export declare type ModifyCaDefaultConfigParams = {
|
|
6
|
+
targets?: InputTargets;
|
|
7
|
+
defaultTaxWithholding: BigNumber;
|
|
8
|
+
taxWithholdings?: InputTaxWithholding[];
|
|
9
|
+
} | {
|
|
10
|
+
targets: InputTargets;
|
|
11
|
+
defaultTaxWithholding?: BigNumber;
|
|
12
|
+
taxWithholdings?: InputTaxWithholding[];
|
|
13
|
+
} | {
|
|
14
|
+
targets?: InputTargets;
|
|
15
|
+
defaultTaxWithholding?: BigNumber;
|
|
16
|
+
taxWithholdings: InputTaxWithholding[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare type Params = {
|
|
22
|
+
ticker: string;
|
|
23
|
+
} & ModifyCaDefaultConfigParams;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare function prepareModifyCaDefaultConfig(this: Procedure<Params, void>, args: Params): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare function getAuthorization(this: Procedure<Params, void>, { ticker, targets, defaultTaxWithholding, taxWithholdings }: Params): ProcedureAuthorization;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const modifyCaDefaultConfig: () => Procedure<Params, void>;
|
|
36
|
+
//# sourceMappingURL=modifyCaDefaultConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifyCaDefaultConfig.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/modifyCaDefaultConfig.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,OAAO,EAAwB,SAAS,EAAE,uBAAmB;AAC7D,OAAO,EAGL,YAAY,EACZ,mBAAmB,EAEpB,oBAAgB;AACjB,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAW1D,oBAAY,2BAA2B,GACnC;IACE,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,qBAAqB,EAAE,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACzC,GACD;IACE,OAAO,EAAE,YAAY,CAAC;IACtB,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,eAAe,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACzC,GACD;IACE,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,eAAe,EAAE,mBAAmB,EAAE,CAAC;CACxC,CAAC;AAEN;;GAEG;AACH,oBAAY,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,2BAA2B,CAAC;AAetE;;GAEG;AACH,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,EAC7B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAoGf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,EAC7B,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,EAAE,MAAM,GAClE,sBAAsB,CAsBxB;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAO,UAAU,MAAM,EAAE,IAAI,CACA,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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.modifyCaDefaultConfig = exports.getAuthorization = exports.prepareModifyCaDefaultConfig = void 0;
|
|
13
|
+
const utils_1 = require("./utils");
|
|
14
|
+
const internal_1 = require("../../internal");
|
|
15
|
+
const types_1 = require("../../types");
|
|
16
|
+
const utils_2 = require("../../types/utils");
|
|
17
|
+
const conversion_1 = require("../../utils/conversion");
|
|
18
|
+
const internal_2 = require("../../utils/internal");
|
|
19
|
+
const areSameTargets = (targets, newTargets) => {
|
|
20
|
+
const { identities: newIdentities, treatment: newTreatment } = newTargets;
|
|
21
|
+
const { identities, treatment } = targets;
|
|
22
|
+
return ((0, internal_2.hasSameElements)(identities, newIdentities, (identity, newIdentity) => (0, conversion_1.signerToString)(identity) === (0, conversion_1.signerToString)(newIdentity)) && treatment === newTreatment);
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
function prepareModifyCaDefaultConfig(args) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const { context: { polymeshApi: { tx }, }, context, } = this;
|
|
30
|
+
const { ticker, targets: newTargets, defaultTaxWithholding: newDefaultTaxWithholding, taxWithholdings: newTaxWithholdings, } = args;
|
|
31
|
+
const noArguments = newTargets === undefined &&
|
|
32
|
+
newDefaultTaxWithholding === undefined &&
|
|
33
|
+
newTaxWithholdings === undefined;
|
|
34
|
+
if (noArguments) {
|
|
35
|
+
throw new internal_1.PolymeshError({
|
|
36
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
37
|
+
message: 'Nothing to modify',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (newTargets) {
|
|
41
|
+
(0, utils_1.assertCaTargetsValid)(newTargets, context);
|
|
42
|
+
}
|
|
43
|
+
if (newTaxWithholdings) {
|
|
44
|
+
(0, utils_1.assertCaTaxWithholdingsValid)(newTaxWithholdings, context);
|
|
45
|
+
}
|
|
46
|
+
const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
|
|
47
|
+
const asset = new internal_1.Asset({ ticker }, context);
|
|
48
|
+
const { targets, defaultTaxWithholding, taxWithholdings } = yield asset.corporateActions.getDefaultConfig();
|
|
49
|
+
if (newTargets) {
|
|
50
|
+
if (areSameTargets(targets, newTargets)) {
|
|
51
|
+
throw new internal_1.PolymeshError({
|
|
52
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
53
|
+
message: 'New targets are the same as the current ones',
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
this.addTransaction({
|
|
57
|
+
transaction: tx.corporateAction.setDefaultTargets,
|
|
58
|
+
args: [rawTicker, (0, conversion_1.targetsToTargetIdentities)(newTargets, context)],
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (newDefaultTaxWithholding) {
|
|
62
|
+
if (newDefaultTaxWithholding.eq(defaultTaxWithholding)) {
|
|
63
|
+
throw new internal_1.PolymeshError({
|
|
64
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
65
|
+
message: 'New default tax withholding is the same as the current one',
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
this.addTransaction({
|
|
69
|
+
transaction: tx.corporateAction.setDefaultWithholdingTax,
|
|
70
|
+
args: [rawTicker, (0, conversion_1.percentageToPermill)(newDefaultTaxWithholding, context)],
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
if (newTaxWithholdings) {
|
|
74
|
+
const areSameWithholdings = (0, internal_2.hasSameElements)(taxWithholdings, newTaxWithholdings, ({ identity, percentage }, { identity: newIdentity, percentage: newPercentage }) => (0, conversion_1.signerToString)(identity) === (0, conversion_1.signerToString)(newIdentity) && percentage.eq(newPercentage));
|
|
75
|
+
if (areSameWithholdings) {
|
|
76
|
+
throw new internal_1.PolymeshError({
|
|
77
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
78
|
+
message: 'New per-Identity tax withholding percentages are the same as current ones',
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
const transaction = tx.corporateAction.setDidWithholdingTax;
|
|
82
|
+
const transactions = (0, internal_2.assembleBatchTransactions)((0, utils_2.tuple)({
|
|
83
|
+
transaction,
|
|
84
|
+
argsArray: newTaxWithholdings.map(({ identity, percentage }) => (0, utils_2.tuple)(rawTicker, (0, conversion_1.stringToIdentityId)((0, conversion_1.signerToString)(identity), context), (0, conversion_1.percentageToPermill)(percentage, context))),
|
|
85
|
+
}));
|
|
86
|
+
this.addBatchTransaction({ transactions });
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
exports.prepareModifyCaDefaultConfig = prepareModifyCaDefaultConfig;
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
94
|
+
function getAuthorization({ ticker, targets, defaultTaxWithholding, taxWithholdings }) {
|
|
95
|
+
const transactions = [];
|
|
96
|
+
if (targets) {
|
|
97
|
+
transactions.push(types_1.TxTags.corporateAction.SetDefaultTargets);
|
|
98
|
+
}
|
|
99
|
+
if (defaultTaxWithholding) {
|
|
100
|
+
transactions.push(types_1.TxTags.corporateAction.SetDefaultWithholdingTax);
|
|
101
|
+
}
|
|
102
|
+
if (taxWithholdings) {
|
|
103
|
+
transactions.push(types_1.TxTags.corporateAction.SetDidWithholdingTax);
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
permissions: {
|
|
107
|
+
transactions,
|
|
108
|
+
portfolios: [],
|
|
109
|
+
assets: [new internal_1.Asset({ ticker }, this.context)],
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
exports.getAuthorization = getAuthorization;
|
|
114
|
+
/**
|
|
115
|
+
* @hidden
|
|
116
|
+
*/
|
|
117
|
+
const modifyCaDefaultConfig = () => new internal_1.Procedure(prepareModifyCaDefaultConfig, getAuthorization);
|
|
118
|
+
exports.modifyCaDefaultConfig = modifyCaDefaultConfig;
|
|
119
|
+
//# sourceMappingURL=modifyCaDefaultConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifyCaDefaultConfig.js","sourceRoot":"","sources":["../../../src/api/procedures/modifyCaDefaultConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,mCAA4F;AAC5F,6CAA6D;AAC7D,uCAMiB;AAEjB,6CAAsC;AACtC,uDAM4B;AAC5B,mDAA8E;AAwB9E,MAAM,cAAc,GAAG,CAAC,OAA+B,EAAE,UAAwB,EAAW,EAAE;IAC5F,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC;IAC1E,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAE1C,OAAO,CACL,IAAA,0BAAe,EACb,UAAU,EACV,aAAa,EACb,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,CAAC,IAAA,2BAAc,EAAC,QAAQ,CAAC,KAAK,IAAA,2BAAc,EAAC,WAAW,CAAC,CACpF,IAAI,SAAS,KAAK,YAAY,CAChC,CAAC;AACJ,CAAC,CAAC;AAEF;;GAEG;AACH,SAAsB,4BAA4B,CAEhD,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EACJ,MAAM,EACN,OAAO,EAAE,UAAU,EACnB,qBAAqB,EAAE,wBAAwB,EAC/C,eAAe,EAAE,kBAAkB,GACpC,GAAG,IAAI,CAAC;QAET,MAAM,WAAW,GACf,UAAU,KAAK,SAAS;YACxB,wBAAwB,KAAK,SAAS;YACtC,kBAAkB,KAAK,SAAS,CAAC;QAEnC,IAAI,WAAW,EAAE;YACf,MAAM,IAAI,wBAAa,CAAC;gBACtB,IAAI,EAAE,iBAAS,CAAC,YAAY;gBAC5B,OAAO,EAAE,mBA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,CAAC,IAAI,CAAC,cAAM,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;KAC7D;IAED,IAAI,qBAAqB,EAAE;QACzB,YAAY,CAAC,IAAI,CAAC,cAAM,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC;KACpE;IAED,IAAI,eAAe,EAAE;QACnB,YAAY,CAAC,IAAI,CAAC,cAAM,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;KAChE;IAED,OAAO;QACL,WAAW,EAAE;YACX,YAAY;YACZ,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,CAAC,IAAI,gBAAK,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SAC9C;KACF,CAAC;AACJ,CAAC;AAzBD,4CAyBC;AAED;;GAEG;AACI,MAAM,qBAAqB,GAAG,GAA4B,EAAE,CACjE,IAAI,oBAAS,CAAC,4BAA4B,EAAE,gBAAgB,CAAC,CAAC;AADnD,QAAA,qBAAqB,yBAC8B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Procedure } from "../../internal";
|
|
2
|
+
import { ClaimTarget } from "../../types";
|
|
3
|
+
import { ClaimOperation, ProcedureAuthorization } from "../../types/internal";
|
|
4
|
+
interface AddClaimsParams {
|
|
5
|
+
/**
|
|
6
|
+
* array of claims to be added
|
|
7
|
+
*/
|
|
8
|
+
claims: ClaimTarget[];
|
|
9
|
+
operation: ClaimOperation.Add;
|
|
10
|
+
}
|
|
11
|
+
interface EditClaimsParams {
|
|
12
|
+
/**
|
|
13
|
+
* array of claims to be edited
|
|
14
|
+
*/
|
|
15
|
+
claims: ClaimTarget[];
|
|
16
|
+
operation: ClaimOperation.Edit;
|
|
17
|
+
}
|
|
18
|
+
interface RevokeClaimsParams {
|
|
19
|
+
/**
|
|
20
|
+
* array of claims to be revoked
|
|
21
|
+
*/
|
|
22
|
+
claims: Omit<ClaimTarget, 'expiry'>[];
|
|
23
|
+
operation: ClaimOperation.Revoke;
|
|
24
|
+
}
|
|
25
|
+
export declare type ModifyClaimsParams = AddClaimsParams | EditClaimsParams | RevokeClaimsParams;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export declare function prepareModifyClaims(this: Procedure<ModifyClaimsParams, void>, args: ModifyClaimsParams): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare function getAuthorization({ claims, operation, }: ModifyClaimsParams): ProcedureAuthorization;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
export declare const modifyClaims: () => Procedure<ModifyClaimsParams, void>;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=modifyClaims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifyClaims.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/modifyClaims.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoC,SAAS,EAAE,uBAAmB;AAGzE,OAAO,EAAmB,WAAW,EAA0C,oBAAgB;AAC/F,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,6BAAyB;AAgB1E,UAAU,eAAe;IACvB;;OAEG;IACH,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,SAAS,EAAE,cAAc,CAAC,GAAG,CAAC;CAC/B;AAED,UAAU,gBAAgB;IACxB;;OAEG;IACH,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC;CAChC;AAED,UAAU,kBAAkB;IAC1B;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC;IACtC,SAAS,EAAE,cAAc,CAAC,MAAM,CAAC;CAClC;AAED,oBAAY,kBAAkB,GAAG,eAAe,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;AAmGzF;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,SAAS,CAAC,kBAAkB,EAAE,IAAI,CAAC,EACzC,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,IAAI,CAAC,CAqIf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,SAAS,GACV,EAAE,kBAAkB,GAAG,sBAAsB,CAiB7C;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,QAAO,UAAU,kBAAkB,EAAE,IAAI,CACZ,CAAC"}
|