@polymeshassociation/polymesh-sdk 14.0.0-beta.12 → 15.0.0-alpha.13
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/CHANGELOG.md +9 -6
- package/{AccountManagement.d.ts → api/client/AccountManagement.d.ts} +8 -8
- package/api/client/AccountManagement.d.ts.map +1 -0
- package/{AccountManagement.js → api/client/AccountManagement.js} +3 -3
- package/api/client/AccountManagement.js.map +1 -0
- package/{Assets.d.ts → api/client/Assets.d.ts} +13 -2
- package/api/client/Assets.d.ts.map +1 -0
- package/{Assets.js → api/client/Assets.js} +18 -4
- package/api/client/Assets.js.map +1 -0
- package/{Claims.d.ts → api/client/Claims.d.ts} +3 -62
- package/api/client/Claims.d.ts.map +1 -0
- package/{Claims.js → api/client/Claims.js} +24 -152
- package/api/client/Claims.js.map +1 -0
- package/{Identities.d.ts → api/client/Identities.d.ts} +5 -5
- package/api/client/Identities.d.ts.map +1 -0
- package/{Identities.js → api/client/Identities.js} +2 -2
- package/api/client/Identities.js.map +1 -0
- package/{Network.d.ts → api/client/Network.d.ts} +3 -53
- package/api/client/Network.d.ts.map +1 -0
- package/{Network.js → api/client/Network.js} +5 -111
- package/api/client/Network.js.map +1 -0
- package/{Polymesh.d.ts → api/client/Polymesh.d.ts} +7 -9
- package/api/client/Polymesh.d.ts.map +1 -0
- package/{Polymesh.js → api/client/Polymesh.js} +37 -50
- package/api/client/Polymesh.js.map +1 -0
- package/{Settlements.d.ts → api/client/Settlements.d.ts} +4 -6
- package/api/client/Settlements.d.ts.map +1 -0
- package/{Settlements.js → api/client/Settlements.js} +10 -11
- package/api/client/Settlements.js.map +1 -0
- package/api/entities/Account.d.ts +2 -22
- package/api/entities/Account.d.ts.map +1 -1
- package/api/entities/Account.js +18 -69
- package/api/entities/Account.js.map +1 -1
- package/api/entities/Asset/Checkpoints/Schedules.d.ts +2 -2
- package/api/entities/Asset/Checkpoints/Schedules.d.ts.map +1 -1
- package/api/entities/Asset/Checkpoints/Schedules.js.map +1 -1
- package/api/entities/Asset/Checkpoints/index.d.ts.map +1 -1
- package/api/entities/Asset/Checkpoints/index.js.map +1 -1
- package/api/entities/Asset/Checkpoints/types.d.ts +1 -1
- package/api/entities/Asset/Checkpoints/types.d.ts.map +1 -1
- package/api/entities/Asset/Compliance/Requirements.d.ts +2 -2
- package/api/entities/Asset/Compliance/Requirements.d.ts.map +1 -1
- package/api/entities/Asset/Compliance/Requirements.js.map +1 -1
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts +2 -2
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts.map +1 -1
- package/api/entities/Asset/Compliance/TrustedClaimIssuers.js.map +1 -1
- package/api/entities/Asset/CorporateActions/Distributions.d.ts +2 -2
- package/api/entities/Asset/CorporateActions/Distributions.d.ts.map +1 -1
- package/api/entities/Asset/CorporateActions/Distributions.js.map +1 -1
- package/api/entities/Asset/CorporateActions/index.d.ts +5 -5
- package/api/entities/Asset/CorporateActions/index.d.ts.map +1 -1
- package/api/entities/Asset/CorporateActions/index.js +1 -1
- package/api/entities/Asset/CorporateActions/index.js.map +1 -1
- package/api/entities/Asset/Documents.d.ts +2 -2
- package/api/entities/Asset/Documents.d.ts.map +1 -1
- package/api/entities/Asset/Documents.js.map +1 -1
- package/api/entities/Asset/Offerings.d.ts +2 -2
- package/api/entities/Asset/Offerings.d.ts.map +1 -1
- package/api/entities/Asset/Offerings.js.map +1 -1
- package/api/entities/Asset/Permissions.d.ts +5 -5
- package/api/entities/Asset/Permissions.d.ts.map +1 -1
- package/api/entities/Asset/Permissions.js.map +1 -1
- package/api/entities/Asset/Settlements.d.ts.map +1 -1
- package/api/entities/Asset/Settlements.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Count.d.ts +2 -2
- package/api/entities/Asset/TransferRestrictions/Count.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Count.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts +2 -2
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Percentage.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts +3 -7
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js +10 -10
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js.map +1 -1
- package/api/entities/Asset/index.d.ts +8 -23
- package/api/entities/Asset/index.d.ts.map +1 -1
- package/api/entities/Asset/index.js +7 -47
- package/api/entities/Asset/index.js.map +1 -1
- package/api/entities/AuthorizationRequest.d.ts +1 -2
- package/api/entities/AuthorizationRequest.d.ts.map +1 -1
- package/api/entities/Checkpoint.d.ts +1 -2
- package/api/entities/Checkpoint.d.ts.map +1 -1
- package/api/entities/Checkpoint.js.map +1 -1
- package/api/entities/CheckpointSchedule/index.d.ts +2 -3
- package/api/entities/CheckpointSchedule/index.d.ts.map +1 -1
- package/api/entities/CorporateAction.d.ts +2 -2
- package/api/entities/CorporateAction.d.ts.map +1 -1
- package/api/entities/CorporateAction.js.map +1 -1
- package/api/entities/CorporateActionBase/index.d.ts +2 -2
- package/api/entities/CorporateActionBase/index.d.ts.map +1 -1
- package/api/entities/CorporateActionBase/index.js +2 -2
- package/api/entities/CorporateActionBase/index.js.map +1 -1
- package/api/entities/CustomPermissionGroup.d.ts +2 -2
- package/api/entities/CustomPermissionGroup.d.ts.map +1 -1
- package/api/entities/CustomPermissionGroup.js.map +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.d.ts +0 -7
- package/api/entities/DefaultTrustedClaimIssuer.d.ts.map +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.js +0 -17
- package/api/entities/DefaultTrustedClaimIssuer.js.map +1 -1
- package/api/entities/DividendDistribution/index.d.ts +3 -20
- package/api/entities/DividendDistribution/index.d.ts.map +1 -1
- package/api/entities/DividendDistribution/index.js +0 -69
- package/api/entities/DividendDistribution/index.js.map +1 -1
- package/api/entities/Identity/AssetPermissions.d.ts +2 -30
- package/api/entities/Identity/AssetPermissions.d.ts.map +1 -1
- package/api/entities/Identity/AssetPermissions.js +3 -55
- package/api/entities/Identity/AssetPermissions.js.map +1 -1
- package/api/entities/Identity/index.d.ts +7 -20
- package/api/entities/Identity/index.d.ts.map +1 -1
- package/api/entities/Identity/index.js +43 -52
- package/api/entities/Identity/index.js.map +1 -1
- package/api/entities/Instruction/index.d.ts +0 -11
- package/api/entities/Instruction/index.d.ts.map +1 -1
- package/api/entities/Instruction/index.js +4 -54
- package/api/entities/Instruction/index.js.map +1 -1
- package/api/entities/NumberedPortfolio.d.ts +2 -9
- package/api/entities/NumberedPortfolio.d.ts.map +1 -1
- package/api/entities/NumberedPortfolio.js +1 -18
- package/api/entities/NumberedPortfolio.js.map +1 -1
- package/api/entities/Offering/index.d.ts +4 -18
- package/api/entities/Offering/index.d.ts.map +1 -1
- package/api/entities/Offering/index.js +1 -33
- package/api/entities/Offering/index.js.map +1 -1
- package/api/entities/Portfolio/index.d.ts +6 -19
- package/api/entities/Portfolio/index.d.ts.map +1 -1
- package/api/entities/Portfolio/index.js +5 -94
- package/api/entities/Portfolio/index.js.map +1 -1
- package/api/entities/Subsidy/index.d.ts +2 -2
- package/api/entities/Subsidy/index.d.ts.map +1 -1
- package/api/entities/Subsidy/index.js +9 -10
- package/api/entities/Subsidy/index.js.map +1 -1
- package/api/entities/TickerReservation/index.d.ts +5 -5
- package/api/entities/TickerReservation/index.d.ts.map +1 -1
- package/api/entities/TickerReservation/index.js +1 -1
- package/api/entities/TickerReservation/index.js.map +1 -1
- package/api/entities/Venue/index.d.ts +2 -2
- package/api/entities/Venue/index.d.ts.map +1 -1
- package/api/entities/Venue/index.js +2 -2
- package/api/entities/Venue/index.js.map +1 -1
- package/api/entities/common/namespaces/Authorizations.d.ts +2 -2
- package/api/entities/common/namespaces/Authorizations.d.ts.map +1 -1
- package/api/entities/common/namespaces/Authorizations.js +1 -1
- package/api/entities/common/namespaces/Authorizations.js.map +1 -1
- package/api/procedures/addAssetRequirement.d.ts +1 -9
- package/api/procedures/addAssetRequirement.d.ts.map +1 -1
- package/api/procedures/addAssetRequirement.js +1 -1
- package/api/procedures/addAssetRequirement.js.map +1 -1
- package/api/procedures/addInstruction.d.ts +2 -34
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +9 -10
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/addInvestorUniquenessClaim.d.ts +2 -9
- package/api/procedures/addInvestorUniquenessClaim.d.ts.map +1 -1
- package/api/procedures/addInvestorUniquenessClaim.js +1 -1
- package/api/procedures/addInvestorUniquenessClaim.js.map +1 -1
- package/api/procedures/addTransferRestriction.d.ts +14 -10
- package/api/procedures/addTransferRestriction.d.ts.map +1 -1
- package/api/procedures/addTransferRestriction.js +98 -30
- package/api/procedures/addTransferRestriction.js.map +1 -1
- package/api/procedures/claimClassicTicker.d.ts +1 -12
- package/api/procedures/claimClassicTicker.d.ts.map +1 -1
- package/api/procedures/claimClassicTicker.js +1 -1
- package/api/procedures/claimClassicTicker.js.map +1 -1
- package/api/procedures/configureDividendDistribution.d.ts +2 -34
- package/api/procedures/configureDividendDistribution.d.ts.map +1 -1
- package/api/procedures/configureDividendDistribution.js +31 -17
- package/api/procedures/configureDividendDistribution.js.map +1 -1
- package/api/procedures/controllerTransfer.d.ts +1 -12
- package/api/procedures/controllerTransfer.d.ts.map +1 -1
- package/api/procedures/controllerTransfer.js.map +1 -1
- package/api/procedures/createAsset.d.ts +3 -43
- package/api/procedures/createAsset.d.ts.map +1 -1
- package/api/procedures/createAsset.js +114 -54
- package/api/procedures/createAsset.js.map +1 -1
- package/api/procedures/createCheckpointSchedule.d.ts +1 -17
- package/api/procedures/createCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/createCheckpointSchedule.js.map +1 -1
- package/api/procedures/createGroup.d.ts +2 -14
- package/api/procedures/createGroup.d.ts.map +1 -1
- package/api/procedures/createGroup.js +4 -28
- package/api/procedures/createGroup.js.map +1 -1
- package/api/procedures/createPortfolio.js +1 -1
- package/api/procedures/createPortfolio.js.map +1 -1
- package/api/procedures/createVenue.d.ts +1 -5
- package/api/procedures/createVenue.d.ts.map +1 -1
- package/api/procedures/createVenue.js +1 -1
- package/api/procedures/createVenue.js.map +1 -1
- package/api/procedures/investInOffering.d.ts +2 -20
- package/api/procedures/investInOffering.d.ts.map +1 -1
- package/api/procedures/investInOffering.js.map +1 -1
- package/api/procedures/inviteAccount.d.ts +2 -7
- package/api/procedures/inviteAccount.d.ts.map +1 -1
- package/api/procedures/inviteAccount.js.map +1 -1
- package/api/procedures/inviteExternalAgent.d.ts +4 -16
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +33 -13
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/api/procedures/launchOffering.d.ts +3 -46
- package/api/procedures/launchOffering.d.ts.map +1 -1
- package/api/procedures/launchOffering.js +1 -1
- package/api/procedures/launchOffering.js.map +1 -1
- package/api/procedures/leaveIdentity.d.ts.map +1 -1
- package/api/procedures/leaveIdentity.js +3 -4
- package/api/procedures/leaveIdentity.js.map +1 -1
- package/api/procedures/linkCaDocs.d.ts +1 -7
- package/api/procedures/linkCaDocs.d.ts.map +1 -1
- package/api/procedures/linkCaDocs.js.map +1 -1
- package/api/procedures/modifyAllowance.d.ts +2 -23
- package/api/procedures/modifyAllowance.d.ts.map +1 -1
- package/api/procedures/modifyAllowance.js +5 -6
- package/api/procedures/modifyAllowance.js.map +1 -1
- package/api/procedures/modifyAsset.d.ts +1 -25
- package/api/procedures/modifyAsset.d.ts.map +1 -1
- package/api/procedures/modifyAsset.js +4 -2
- package/api/procedures/modifyAsset.js.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts +2 -11
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.js.map +1 -1
- package/api/procedures/modifyCaCheckpoint.d.ts +1 -7
- package/api/procedures/modifyCaCheckpoint.d.ts.map +1 -1
- package/api/procedures/modifyCaCheckpoint.js.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.d.ts +1 -15
- package/api/procedures/modifyCaDefaultConfig.d.ts.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.js +8 -10
- package/api/procedures/modifyCaDefaultConfig.js.map +1 -1
- package/api/procedures/modifyClaims.d.ts +2 -25
- package/api/procedures/modifyClaims.d.ts.map +1 -1
- package/api/procedures/modifyClaims.js +8 -9
- package/api/procedures/modifyClaims.js.map +1 -1
- package/api/procedures/modifyComplianceRequirement.d.ts +1 -14
- package/api/procedures/modifyComplianceRequirement.d.ts.map +1 -1
- package/api/procedures/modifyComplianceRequirement.js.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.d.ts +2 -11
- package/api/procedures/modifyCorporateActionsAgent.d.ts.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.js.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts +2 -9
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.js +5 -6
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -1
- package/api/procedures/modifyOfferingTimes.d.ts +1 -16
- package/api/procedures/modifyOfferingTimes.d.ts.map +1 -1
- package/api/procedures/modifyOfferingTimes.js.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts +2 -11
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.js.map +1 -1
- package/api/procedures/modifySignerPermissions.d.ts +1 -10
- package/api/procedures/modifySignerPermissions.d.ts.map +1 -1
- package/api/procedures/modifySignerPermissions.js.map +1 -1
- package/api/procedures/modifyVenue.d.ts +1 -11
- package/api/procedures/modifyVenue.d.ts.map +1 -1
- package/api/procedures/modifyVenue.js +1 -1
- package/api/procedures/modifyVenue.js.map +1 -1
- package/api/procedures/moveFunds.d.ts +1 -12
- package/api/procedures/moveFunds.d.ts.map +1 -1
- package/api/procedures/moveFunds.js.map +1 -1
- package/api/procedures/payDividends.d.ts +2 -4
- package/api/procedures/payDividends.d.ts.map +1 -1
- package/api/procedures/payDividends.js.map +1 -1
- package/api/procedures/quitCustody.d.ts +2 -1
- package/api/procedures/quitCustody.d.ts.map +1 -1
- package/api/procedures/quitCustody.js.map +1 -1
- package/api/procedures/redeemTokens.d.ts +1 -4
- package/api/procedures/redeemTokens.d.ts.map +1 -1
- package/api/procedures/redeemTokens.js.map +1 -1
- package/api/procedures/registerIdentity.d.ts +2 -9
- package/api/procedures/registerIdentity.d.ts.map +1 -1
- package/api/procedures/registerIdentity.js.map +1 -1
- package/api/procedures/removeAssetRequirement.d.ts +1 -5
- package/api/procedures/removeAssetRequirement.d.ts.map +1 -1
- package/api/procedures/removeAssetRequirement.js.map +1 -1
- package/api/procedures/removeCheckpointSchedule.d.ts +2 -8
- package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/removeCheckpointSchedule.js.map +1 -1
- package/api/procedures/removeCorporateAction.d.ts +2 -5
- package/api/procedures/removeCorporateAction.d.ts.map +1 -1
- package/api/procedures/removeCorporateAction.js +1 -1
- package/api/procedures/removeCorporateAction.js.map +1 -1
- package/api/procedures/removeExternalAgent.d.ts +2 -4
- package/api/procedures/removeExternalAgent.d.ts.map +1 -1
- package/api/procedures/removeExternalAgent.js.map +1 -1
- package/api/procedures/removeSecondaryAccounts.d.ts +1 -4
- package/api/procedures/removeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/removeSecondaryAccounts.js +1 -1
- package/api/procedures/removeSecondaryAccounts.js.map +1 -1
- package/api/procedures/renamePortfolio.d.ts +1 -3
- package/api/procedures/renamePortfolio.d.ts.map +1 -1
- package/api/procedures/renamePortfolio.js +1 -1
- package/api/procedures/renamePortfolio.js.map +1 -1
- package/api/procedures/reserveTicker.d.ts +1 -7
- package/api/procedures/reserveTicker.d.ts.map +1 -1
- package/api/procedures/reserveTicker.js.map +1 -1
- package/api/procedures/setAssetDocuments.d.ts +1 -7
- package/api/procedures/setAssetDocuments.d.ts.map +1 -1
- package/api/procedures/setAssetDocuments.js.map +1 -1
- package/api/procedures/setAssetRequirements.d.ts +1 -8
- package/api/procedures/setAssetRequirements.d.ts.map +1 -1
- package/api/procedures/setAssetRequirements.js.map +1 -1
- package/api/procedures/setCustodian.d.ts +2 -5
- package/api/procedures/setCustodian.d.ts.map +1 -1
- package/api/procedures/setCustodian.js.map +1 -1
- package/api/procedures/setGroupPermissions.d.ts +1 -8
- package/api/procedures/setGroupPermissions.d.ts.map +1 -1
- package/api/procedures/setGroupPermissions.js.map +1 -1
- package/api/procedures/setPermissionGroup.d.ts +1 -26
- package/api/procedures/setPermissionGroup.d.ts.map +1 -1
- package/api/procedures/setPermissionGroup.js +42 -23
- package/api/procedures/setPermissionGroup.js.map +1 -1
- package/api/procedures/setTransferRestrictions.d.ts +7 -22
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -1
- package/api/procedures/setTransferRestrictions.js +133 -122
- package/api/procedures/setTransferRestrictions.js.map +1 -1
- package/api/procedures/subsidizeAccount.d.ts +2 -12
- package/api/procedures/subsidizeAccount.d.ts.map +1 -1
- package/api/procedures/subsidizeAccount.js.map +1 -1
- package/api/procedures/transferAssetOwnership.d.ts +2 -8
- package/api/procedures/transferAssetOwnership.d.ts.map +1 -1
- package/api/procedures/transferAssetOwnership.js.map +1 -1
- package/api/procedures/transferPolyx.d.ts +2 -16
- package/api/procedures/transferPolyx.d.ts.map +1 -1
- package/api/procedures/transferPolyx.js.map +1 -1
- package/api/procedures/transferTickerOwnership.d.ts +2 -8
- package/api/procedures/transferTickerOwnership.d.ts.map +1 -1
- package/api/procedures/transferTickerOwnership.js.map +1 -1
- package/api/procedures/types.d.ts +648 -0
- package/api/procedures/types.d.ts.map +1 -0
- package/api/procedures/types.js +27 -0
- package/api/procedures/types.js.map +1 -0
- package/api/procedures/utils.d.ts +21 -7
- package/api/procedures/utils.d.ts.map +1 -1
- package/api/procedures/utils.js +59 -28
- package/api/procedures/utils.js.map +1 -1
- package/api/procedures/waivePermissions.d.ts +1 -3
- package/api/procedures/waivePermissions.d.ts.map +1 -1
- package/api/procedures/waivePermissions.js.map +1 -1
- package/base/Context.d.ts +3 -69
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +44 -207
- package/base/Context.js.map +1 -1
- package/base/PolymeshTransactionBase.d.ts +4 -0
- package/base/PolymeshTransactionBase.d.ts.map +1 -1
- package/base/PolymeshTransactionBase.js +7 -0
- package/base/PolymeshTransactionBase.js.map +1 -1
- package/generated/types.d.ts +512 -0
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +557 -1
- package/generated/types.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/internal.d.ts +51 -52
- package/internal.d.ts.map +1 -1
- package/internal.js +3 -5
- package/internal.js.map +1 -1
- package/middleware/types.d.ts +1 -0
- package/middleware/types.d.ts.map +1 -1
- package/middleware/types.js +1 -0
- package/middleware/types.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-15.0.0-alpha.13.tgz +0 -0
- package/package.json +72 -14
- package/polkadot/asset/definitions.js +12 -12
- package/polkadot/asset/definitions.js.map +1 -1
- package/polkadot/augment-api-consts.d.ts +127 -43
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +286 -16
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +1102 -465
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +746 -545
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +50 -17
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +1445 -1003
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-api.d.ts +0 -1
- package/polkadot/augment-api.d.ts.map +1 -1
- package/polkadot/augment-api.js +0 -1
- package/polkadot/augment-api.js.map +1 -1
- package/polkadot/augment-types.d.ts +213 -2220
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/compliance/definitions.js +2 -2
- package/polkadot/compliance/definitions.js.map +1 -1
- package/polkadot/identity/definitions.js +4 -4
- package/polkadot/identity/definitions.js.map +1 -1
- package/polkadot/lookup.d.ts +4439 -0
- package/polkadot/lookup.d.ts.map +1 -0
- package/polkadot/lookup.js +5125 -0
- package/polkadot/lookup.js.map +1 -0
- package/polkadot/polymesh/definitions.d.ts +106 -36
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +111 -41
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +216 -61
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +385 -0
- package/polkadot/registry.d.ts.map +1 -0
- package/polkadot/registry.js +5 -0
- package/polkadot/registry.js.map +1 -0
- package/polkadot/schema.d.ts +106 -36
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +129 -59
- package/polkadot/schema.js.map +1 -1
- package/polkadot/types-lookup.d.ts +5578 -0
- package/polkadot/types-lookup.d.ts.map +1 -0
- package/polkadot/types-lookup.js +4 -0
- package/polkadot/types-lookup.js.map +1 -0
- package/polkadot/types.d.ts +0 -464
- package/polkadot/types.d.ts.map +1 -1
- package/polkadot/types.js +0 -505
- package/polkadot/types.js.map +1 -1
- package/types/index.d.ts +31 -36
- package/types/index.d.ts.map +1 -1
- package/types/index.js +11 -7
- package/types/index.js.map +1 -1
- package/types/internal.d.ts +13 -28
- package/types/internal.d.ts.map +1 -1
- package/types/internal.js +6 -19
- package/types/internal.js.map +1 -1
- package/types/utils/index.d.ts +11 -10
- package/types/utils/index.d.ts.map +1 -1
- package/types/utils/index.js +2 -0
- package/types/utils/index.js.map +1 -1
- package/utils/constants.d.ts +13 -2
- package/utils/constants.d.ts.map +1 -1
- package/utils/constants.js +14 -3
- package/utils/constants.js.map +1 -1
- package/utils/conversion.d.ts +112 -94
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +572 -525
- package/utils/conversion.js.map +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +2 -1
- package/utils/index.js.map +1 -1
- package/utils/internal.d.ts +4 -4
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +90 -15
- package/utils/internal.js.map +1 -1
- package/utils/typeguards.d.ts.map +1 -1
- package/utils/typeguards.js +1 -0
- package/utils/typeguards.js.map +1 -1
- package/AccountManagement.d.ts.map +0 -1
- package/AccountManagement.js.map +0 -1
- package/Assets.d.ts.map +0 -1
- package/Assets.js.map +0 -1
- package/Claims.d.ts.map +0 -1
- package/Claims.js.map +0 -1
- package/Identities.d.ts.map +0 -1
- package/Identities.js.map +0 -1
- package/Network.d.ts.map +0 -1
- package/Network.js.map +0 -1
- package/Polymesh.d.ts.map +0 -1
- package/Polymesh.js.map +0 -1
- package/Settlements.d.ts.map +0 -1
- package/Settlements.js.map +0 -1
- package/api/procedures/initiateCorporateAction.d.ts +0 -60
- package/api/procedures/initiateCorporateAction.d.ts.map +0 -1
- package/api/procedures/initiateCorporateAction.js +0 -107
- package/api/procedures/initiateCorporateAction.js.map +0 -1
- package/middleware/queriesV2.d.ts +0 -143
- package/middleware/queriesV2.d.ts.map +0 -1
- package/middleware/queriesV2.js +0 -798
- package/middleware/queriesV2.js.map +0 -1
- package/middleware/typesV2.d.ts +0 -25495
- package/middleware/typesV2.d.ts.map +0 -1
- package/middleware/typesV2.js +0 -2013
- package/middleware/typesV2.js.map +0 -1
- package/npm-package/polymeshassociation-polymesh-sdk-14.0.0-beta.12.tgz +0 -0
|
@@ -14,59 +14,127 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.setTransferRestrictions = exports.prepareStorage = exports.getAuthorization = exports.prepareSetTransferRestrictions = void 0;
|
|
16
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
17
|
-
const bluebird_1 = __importDefault(require("bluebird"));
|
|
18
|
-
const lodash_1 = require("lodash");
|
|
19
17
|
const internal_1 = require("../../internal");
|
|
20
18
|
const types_1 = require("../../types");
|
|
21
|
-
const
|
|
19
|
+
const internal_2 = require("../../types/internal");
|
|
22
20
|
const conversion_1 = require("../../utils/conversion");
|
|
23
|
-
const
|
|
21
|
+
const internal_3 = require("../../utils/internal");
|
|
24
22
|
/**
|
|
25
23
|
* @hidden
|
|
26
24
|
*/
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
function isSameCondition(transferCondition, inputValue, type) {
|
|
26
|
+
if (transferCondition.isMaxInvestorCount && type === types_1.TransferRestrictionType.Count) {
|
|
27
|
+
const currentCount = (0, conversion_1.u64ToBigNumber)(transferCondition.asMaxInvestorCount);
|
|
28
|
+
return currentCount.eq(inputValue);
|
|
29
|
+
}
|
|
30
|
+
else if (transferCondition.isMaxInvestorOwnership &&
|
|
31
|
+
type === types_1.TransferRestrictionType.Percentage) {
|
|
32
|
+
const currentOwnership = (0, conversion_1.permillToBigNumber)(transferCondition.asMaxInvestorOwnership);
|
|
33
|
+
return currentOwnership.eq(inputValue);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
function transformRestrictions(restrictions, currentRestrictions, type, context) {
|
|
43
|
+
const exemptions = [];
|
|
44
|
+
let someDifference = restrictions.length !== currentRestrictions.length;
|
|
45
|
+
const conditions = [];
|
|
46
|
+
restrictions.forEach(r => {
|
|
47
|
+
let value;
|
|
48
|
+
if ('count' in r) {
|
|
49
|
+
value = r.count;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
value = r.percentage;
|
|
53
|
+
}
|
|
54
|
+
const compareConditions = (transferCondition) => isSameCondition(transferCondition, value, type);
|
|
55
|
+
if (!someDifference) {
|
|
56
|
+
someDifference = !currentRestrictions.find(compareConditions);
|
|
57
|
+
}
|
|
58
|
+
const condition = { type, value };
|
|
59
|
+
const rawCondition = (0, conversion_1.transferRestrictionToPolymeshTransferCondition)(condition, context);
|
|
60
|
+
if (r.exemptedIdentities) {
|
|
61
|
+
r.exemptedIdentities.forEach(e => {
|
|
62
|
+
exemptions.push(e);
|
|
44
63
|
});
|
|
45
64
|
}
|
|
46
|
-
|
|
65
|
+
conditions.push(rawCondition);
|
|
66
|
+
});
|
|
67
|
+
if (!someDifference) {
|
|
68
|
+
throw new internal_1.PolymeshError({
|
|
69
|
+
code: types_1.ErrorCode.NoDataChange,
|
|
70
|
+
message: restrictions.length
|
|
71
|
+
? 'The supplied restrictions are already in place'
|
|
72
|
+
: 'There are no restrictions to remove',
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return [conditions, exemptions];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
function prepareSetTransferRestrictions(args) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const { context: { polymeshApi: { tx: { statistics }, query, consts, }, }, storage: { currentRestrictions, occupiedSlots, needStat, currentStats }, context, } = this;
|
|
83
|
+
const { restrictions: { length: newRestrictionAmount }, restrictions, type, ticker, } = args;
|
|
84
|
+
const tickerKey = (0, conversion_1.stringToTickerKey)(ticker, context);
|
|
85
|
+
const [conditions, exemptions] = transformRestrictions(restrictions, currentRestrictions, type, context);
|
|
86
|
+
const maxTransferConditions = (0, conversion_1.u32ToBigNumber)(consts.statistics.maxTransferConditionsPerAsset);
|
|
47
87
|
const finalCount = occupiedSlots.plus(newRestrictionAmount);
|
|
48
|
-
if (finalCount.gte(
|
|
88
|
+
if (finalCount.gte(maxTransferConditions)) {
|
|
49
89
|
throw new internal_1.PolymeshError({
|
|
50
90
|
code: types_1.ErrorCode.LimitExceeded,
|
|
51
91
|
message: 'Cannot set more Transfer Restrictions than there are slots available',
|
|
52
92
|
data: {
|
|
53
|
-
availableSlots:
|
|
93
|
+
availableSlots: maxTransferConditions.minus(occupiedSlots),
|
|
54
94
|
},
|
|
55
95
|
});
|
|
56
96
|
}
|
|
57
|
-
const transactions =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
97
|
+
const transactions = [];
|
|
98
|
+
const op = type === types_1.TransferRestrictionType.Count
|
|
99
|
+
? (0, conversion_1.statisticsOpTypeToStatOpType)(internal_2.StatisticsOpType.Count, context)
|
|
100
|
+
: (0, conversion_1.statisticsOpTypeToStatOpType)(internal_2.StatisticsOpType.Balance, context);
|
|
101
|
+
if (needStat) {
|
|
102
|
+
const newStat = (0, conversion_1.statisticsOpTypeToStatType)(op, context);
|
|
103
|
+
currentStats.push(newStat);
|
|
104
|
+
currentStats.sort().reverse();
|
|
105
|
+
transactions.push((0, internal_3.checkTxType)({
|
|
106
|
+
transaction: statistics.setActiveAssetStats,
|
|
107
|
+
args: [tickerKey, currentStats],
|
|
108
|
+
}));
|
|
109
|
+
// Count stats need to be initialized manually
|
|
110
|
+
if (type === types_1.TransferRestrictionType.Count) {
|
|
111
|
+
const { Ticker: rawTicker } = tickerKey;
|
|
112
|
+
const holders = yield query.asset.balanceOf.entries(rawTicker);
|
|
113
|
+
const holderCount = new bignumber_js_1.default(holders.length);
|
|
114
|
+
const secondKey = (0, conversion_1.createStat2ndKey)(context);
|
|
115
|
+
const stat = (0, conversion_1.statUpdate)(secondKey, (0, conversion_1.bigNumberToU128)(holderCount, context), context);
|
|
116
|
+
const statValue = (0, conversion_1.statUpdatesToBtreeStatUpdate)([stat], context);
|
|
117
|
+
transactions.push((0, internal_3.checkTxType)({
|
|
118
|
+
transaction: statistics.batchUpdateAssetStats,
|
|
119
|
+
args: [tickerKey, newStat, statValue],
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
transactions.push((0, internal_3.checkTxType)({
|
|
124
|
+
transaction: statistics.setAssetTransferCompliance,
|
|
125
|
+
args: [tickerKey, (0, conversion_1.complianceConditionsToBtreeSet)(conditions, context)],
|
|
69
126
|
}));
|
|
127
|
+
if (exemptions.length) {
|
|
128
|
+
const exemptedIds = yield (0, internal_3.getExemptedIds)(exemptions, context, ticker);
|
|
129
|
+
const exemptedScopeIds = exemptedIds.map(entityId => (0, conversion_1.stringToIdentityId)(entityId, context));
|
|
130
|
+
const btreeIds = (0, conversion_1.scopeIdsToBtreeSetIdentityId)(exemptedScopeIds, context);
|
|
131
|
+
const exemptKey = (0, conversion_1.toExemptKey)(tickerKey, op);
|
|
132
|
+
transactions.push((0, internal_3.checkTxType)({
|
|
133
|
+
transaction: statistics.setEntitiesExempt,
|
|
134
|
+
feeMultiplier: new bignumber_js_1.default(exemptions.length),
|
|
135
|
+
args: [true, exemptKey, btreeIds],
|
|
136
|
+
}));
|
|
137
|
+
}
|
|
70
138
|
this.addBatchTransaction({ transactions });
|
|
71
139
|
return finalCount;
|
|
72
140
|
});
|
|
@@ -75,20 +143,15 @@ exports.prepareSetTransferRestrictions = prepareSetTransferRestrictions;
|
|
|
75
143
|
/**
|
|
76
144
|
* @hidden
|
|
77
145
|
*/
|
|
78
|
-
function getAuthorization({ ticker }) {
|
|
79
|
-
const {
|
|
80
|
-
const transactions = [];
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (restrictionsToRemove.length) {
|
|
85
|
-
transactions.push(types_1.TxTags.statistics.RemoveTransferManager);
|
|
86
|
-
}
|
|
87
|
-
if (exemptionsToAdd.length) {
|
|
88
|
-
transactions.push(types_1.TxTags.statistics.AddExemptedEntities);
|
|
146
|
+
function getAuthorization({ ticker, restrictions }) {
|
|
147
|
+
const { needStat } = this.storage;
|
|
148
|
+
const transactions = [types_1.TxTags.statistics.SetAssetTransferCompliance];
|
|
149
|
+
const needExemptionsPermission = restrictions.some(r => { var _a; return (_a = r.exemptedIdentities) === null || _a === void 0 ? void 0 : _a.length; });
|
|
150
|
+
if (needExemptionsPermission) {
|
|
151
|
+
transactions.push(types_1.TxTags.statistics.SetEntitiesExempt);
|
|
89
152
|
}
|
|
90
|
-
if (
|
|
91
|
-
transactions.push(types_1.TxTags.statistics.
|
|
153
|
+
if (needStat) {
|
|
154
|
+
transactions.push(types_1.TxTags.statistics.SetActiveAssetStats);
|
|
92
155
|
}
|
|
93
156
|
return {
|
|
94
157
|
permissions: {
|
|
@@ -104,94 +167,42 @@ exports.getAuthorization = getAuthorization;
|
|
|
104
167
|
*/
|
|
105
168
|
function prepareStorage(args) {
|
|
106
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
const { context } = this;
|
|
108
|
-
const { ticker, type
|
|
109
|
-
const
|
|
170
|
+
const { context, context: { polymeshApi: { query: { statistics }, }, }, } = this;
|
|
171
|
+
const { ticker, type } = args;
|
|
172
|
+
const tickerKey = (0, conversion_1.stringToTickerKey)(ticker, context);
|
|
173
|
+
const currentStats = yield statistics.activeAssetStats(tickerKey);
|
|
174
|
+
const needStat = !currentStats.find(s => {
|
|
175
|
+
const stat = (0, conversion_1.meshStatToStatisticsOpType)(s);
|
|
176
|
+
const cmpStat = stat === internal_2.StatisticsOpType.Balance
|
|
177
|
+
? types_1.TransferRestrictionType.Percentage
|
|
178
|
+
: types_1.TransferRestrictionType.Count;
|
|
179
|
+
return cmpStat === type;
|
|
180
|
+
});
|
|
110
181
|
const { transferRestrictions: { count, percentage }, } = new internal_1.Asset({ ticker }, context);
|
|
111
182
|
const [{ restrictions: currentCountRestrictions }, { restrictions: currentPercentageRestrictions },] = yield Promise.all([count.get(), percentage.get()]);
|
|
112
183
|
const currentRestrictions = [];
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
/*
|
|
118
|
-
* we're using `defusePromise` here because we KNOW the exempted ID promises are being
|
|
119
|
-
* awaited later and errors WILL be caught
|
|
120
|
-
*/
|
|
184
|
+
// take the count of the type of restrictions not being changed
|
|
185
|
+
const occupiedSlots = type === types_1.TransferRestrictionType.Percentage
|
|
186
|
+
? currentCountRestrictions.length
|
|
187
|
+
: currentPercentageRestrictions.length;
|
|
121
188
|
if (type === types_1.TransferRestrictionType.Count) {
|
|
122
|
-
|
|
123
|
-
const restriction = { type: types_1.TransferRestrictionType.Count, value };
|
|
124
|
-
toAddRestrictions.push(restriction);
|
|
125
|
-
toAddExemptionPromises.push((0, utils_1.tuple)(restriction, (0, internal_2.defusePromise)((0, internal_2.getExemptedIds)(exemptedIdentities, context, ticker))));
|
|
126
|
-
});
|
|
127
|
-
currentCountRestrictions.forEach(({ exemptedIds = [], count: value }) => {
|
|
189
|
+
currentCountRestrictions.forEach(({ count: value }) => {
|
|
128
190
|
const restriction = { type: types_1.TransferRestrictionType.Count, value };
|
|
129
191
|
currentRestrictions.push(restriction);
|
|
130
|
-
currentExemptions.push((0, utils_1.tuple)(restriction, exemptedIds));
|
|
131
192
|
});
|
|
132
193
|
}
|
|
133
194
|
else {
|
|
134
|
-
|
|
135
|
-
const restriction = { type: types_1.TransferRestrictionType.Percentage, value };
|
|
136
|
-
toAddRestrictions.push(restriction);
|
|
137
|
-
toAddExemptionPromises.push((0, utils_1.tuple)(restriction, (0, internal_2.defusePromise)((0, internal_2.getExemptedIds)(exemptedIdentities, context, ticker))));
|
|
138
|
-
});
|
|
139
|
-
currentPercentageRestrictions.forEach(({ exemptedIds = [], percentage: value }) => {
|
|
195
|
+
currentPercentageRestrictions.forEach(({ percentage: value }) => {
|
|
140
196
|
const restriction = { type: types_1.TransferRestrictionType.Percentage, value };
|
|
141
197
|
currentRestrictions.push(restriction);
|
|
142
|
-
currentExemptions.push((0, utils_1.tuple)(restriction, exemptedIds));
|
|
143
198
|
});
|
|
144
199
|
}
|
|
145
|
-
const
|
|
146
|
-
const exempted = yield exemptedPromise;
|
|
147
|
-
return (0, utils_1.tuple)(restriction, exempted);
|
|
148
|
-
}));
|
|
149
|
-
const newRestrictions = (0, lodash_1.differenceWith)(toAddRestrictions, currentRestrictions, lodash_1.isEqual);
|
|
150
|
-
const toRemoveRestrictions = (0, lodash_1.differenceWith)(currentRestrictions, toAddRestrictions, lodash_1.isEqual);
|
|
151
|
-
const transformRestriction = (restriction) => (0, utils_1.tuple)(rawTicker, (0, conversion_1.transferRestrictionToTransferManager)(restriction, context));
|
|
152
|
-
const restrictionsToRemove = toRemoveRestrictions.map(transformRestriction);
|
|
153
|
-
const restrictionsToAdd = newRestrictions.map(transformRestriction);
|
|
154
|
-
occupiedSlots -= currentRestrictions.length;
|
|
155
|
-
const newExemptions = [];
|
|
156
|
-
const toRemoveExemptions = [];
|
|
157
|
-
toAddExemptions.forEach(exemption => {
|
|
158
|
-
const [restriction, exempted] = exemption;
|
|
159
|
-
if (newRestrictions.find(res => (0, lodash_1.isEqual)(restriction, res)) && exempted.length) {
|
|
160
|
-
newExemptions.push(exemption);
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
const currentExemption = currentExemptions.find(([res]) => (0, lodash_1.isEqual)(res, restriction));
|
|
164
|
-
const currentExempted = (currentExemption === null || currentExemption === void 0 ? void 0 : currentExemption[1]) || [];
|
|
165
|
-
// Scope/Identity IDs that weren't exempted before for that restriction
|
|
166
|
-
const newExempted = (0, lodash_1.difference)(exempted, currentExempted);
|
|
167
|
-
if (newExempted.length) {
|
|
168
|
-
newExemptions.push((0, utils_1.tuple)(restriction, newExempted));
|
|
169
|
-
}
|
|
170
|
-
// Scope/Identity IDs that will no longer be exempted for that restriction
|
|
171
|
-
const toRemoveExempted = (0, lodash_1.difference)(currentExempted, exempted);
|
|
172
|
-
if (toRemoveExempted.length) {
|
|
173
|
-
toRemoveExemptions.push((0, utils_1.tuple)(restriction, toRemoveExempted));
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
// also remove all exemptions of the restrictions that will be removed
|
|
177
|
-
toRemoveRestrictions.forEach(restriction => {
|
|
178
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
179
|
-
const [, currentExempted] = currentExemptions.find(([res]) => (0, lodash_1.isEqual)(res, restriction));
|
|
180
|
-
if (currentExempted.length) {
|
|
181
|
-
toRemoveExemptions.push((0, utils_1.tuple)(restriction, currentExempted));
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
const transformExemptions = ([restriction, entityIds]) => (0, utils_1.tuple)(rawTicker, (0, conversion_1.transferRestrictionToTransferManager)(restriction, context),
|
|
185
|
-
// we use `stringToScopeId` because both `ScopeId` and `IdentityId` are aliases for `U8aFixed`
|
|
186
|
-
entityIds.map(entityId => (0, conversion_1.stringToScopeId)(entityId, context)));
|
|
187
|
-
const exemptionsToAdd = newExemptions.map(transformExemptions);
|
|
188
|
-
const exemptionsToRemove = toRemoveExemptions.map(transformExemptions);
|
|
200
|
+
const transformRestriction = (restriction) => (0, conversion_1.transferRestrictionToPolymeshTransferCondition)(restriction, context);
|
|
189
201
|
return {
|
|
190
|
-
restrictionsToRemove,
|
|
191
|
-
restrictionsToAdd,
|
|
192
|
-
exemptionsToAdd,
|
|
193
|
-
exemptionsToRemove,
|
|
194
202
|
occupiedSlots: new bignumber_js_1.default(occupiedSlots),
|
|
203
|
+
currentRestrictions: currentRestrictions.map(transformRestriction),
|
|
204
|
+
needStat,
|
|
205
|
+
currentStats,
|
|
195
206
|
};
|
|
196
207
|
});
|
|
197
208
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setTransferRestrictions.js","sourceRoot":"","sources":["../../../src/api/procedures/setTransferRestrictions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"setTransferRestrictions.js","sourceRoot":"","sources":["../../../src/api/procedures/setTransferRestrictions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA,gEAAqC;AAGrC,6CAAgF;AAChF,uCAUiB;AACjB,mDAA4E;AAC5E,uDAiB4B;AAC5B,mDAA+D;AAiB/D;;GAEG;AACH,SAAS,eAAe,CACtB,iBAAoC,EACpC,UAAqB,EACrB,IAA6B;IAE7B,IAAI,iBAAiB,CAAC,kBAAkB,IAAI,IAAI,KAAK,+BAAuB,CAAC,KAAK,EAAE;QAClF,MAAM,YAAY,GAAG,IAAA,2BAAc,EAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;QAC1E,OAAO,YAAY,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;KACpC;SAAM,IACL,iBAAiB,CAAC,sBAAsB;QACxC,IAAI,KAAK,+BAAuB,CAAC,UAAU,EAC3C;QACA,MAAM,gBAAgB,GAAG,IAAA,+BAAkB,EAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;QACtF,OAAO,gBAAgB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;KACxC;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAED;;GAEG;AACH,SAAS,qBAAqB,CAC5B,YAAoF,EACpF,mBAAwC,EACxC,IAA6B,EAC7B,OAAgB;IAEhB,MAAM,UAAU,GAA0B,EAAE,CAAC;IAE7C,IAAI,cAAc,GAAG,YAAY,CAAC,MAAM,KAAK,mBAAmB,CAAC,MAAM,CAAC;IACxE,MAAM,UAAU,GAA4D,EAAE,CAAC;IAC/E,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QAC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AAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAJxE,QAAA,uBAAuB,2BAIiD"}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export interface SubsidizeAccountParams {
|
|
4
|
-
/**
|
|
5
|
-
* Account to subsidize
|
|
6
|
-
*/
|
|
7
|
-
beneficiary: string | Account;
|
|
8
|
-
/**
|
|
9
|
-
* amount of POLYX to be subsidized. This can be increased/decreased later on
|
|
10
|
-
*/
|
|
11
|
-
allowance: BigNumber;
|
|
12
|
-
}
|
|
1
|
+
import { AuthorizationRequest, PostTransactionValue, Procedure } from "../../internal";
|
|
2
|
+
import { SubsidizeAccountParams } from "../../types";
|
|
13
3
|
/**
|
|
14
4
|
* @hidden
|
|
15
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsidizeAccount.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/subsidizeAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subsidizeAccount.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/subsidizeAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,oBAAoB,EAEpB,oBAAoB,EACpB,SAAS,EACV,uBAAmB;AACpB,OAAO,EAIL,sBAAsB,EAEvB,oBAAgB;AAGjB;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,SAAS,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,EAC7D,IAAI,EAAE,sBAAsB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAC,CA+DrD;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,UAAU,sBAAsB,EAAE,oBAAoB,CAOtF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subsidizeAccount.js","sourceRoot":"","sources":["../../../src/api/procedures/subsidizeAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|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AClB,MAAM,IAAI,wBAAa,CAAC;gBACtB,IAAI,EAAE,iBAAS,CAAC,YAAY;gBAC5B,OAAO,EACL,sHAAsH;aACzH,CAAC,CAAC;SACJ;QAED,MAAM,cAAc,GAAG,IAAA,8BAAiB,EAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;QAEtE,MAAM,YAAY,GAAG,IAAA,+BAAkB,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE5D,MAAM,WAAW,GAAyC;YACxD,IAAI,EAAE,yBAAiB,CAAC,mBAAmB;YAC3C,KAAK,EAAE;gBACL,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE,OAAO,CAAC,iBAAiB,EAAE;gBACvC,SAAS;aACV;SACF,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;YACjC,WAAW,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY;YACpC,SAAS,EAAE,CAAC,IAAA,mCAA2B,EAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;YACvF,IAAI,EAAE,CAAC,cAAc,EAAE,YAAY,CAAC;SACrC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAlED,0DAkEC;AAED;;GAEG;AACI,MAAM,gBAAgB,GAAG,GAA4D,EAAE,CAC5F,IAAI,oBAAS,CAAC,uBAAuB,EAAE;IACrC,WAAW,EAAE;QACX,YAAY,EAAE,CAAC,cAAM,CAAC,OAAO,CAAC,YAAY,CAAC;QAC3C,MAAM,EAAE,EAAE;QACV,UAAU,EAAE,EAAE;KACf;CACF,CAAC,CAAC;AAPQ,QAAA,gBAAgB,oBAOxB"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { AuthorizationRequest,
|
|
1
|
+
import { AuthorizationRequest, PostTransactionValue, Procedure } from "../../internal";
|
|
2
|
+
import { TransferAssetOwnershipParams } from "../../types";
|
|
2
3
|
import { ProcedureAuthorization } from "../../types/internal";
|
|
3
|
-
export interface TransferAssetOwnershipParams {
|
|
4
|
-
target: string | Identity;
|
|
5
|
-
/**
|
|
6
|
-
* date at which the authorization request for transfer expires (optional)
|
|
7
|
-
*/
|
|
8
|
-
expiry?: Date;
|
|
9
|
-
}
|
|
10
4
|
/**
|
|
11
5
|
* @hidden
|
|
12
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferAssetOwnership.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferAssetOwnership.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"transferAssetOwnership.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferAssetOwnership.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,oBAAoB,EAAE,oBAAoB,EAAE,SAAS,EAAE,uBAAmB;AAC1F,OAAO,EAIL,4BAA4B,EAE7B,oBAAgB;AACjB,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAS1D;;GAEG;AACH,oBAAY,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,4BAA4B,CAAC;AAEvE;;GAEG;AACH,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAC,CA8BrD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,EAAE,MAAM,EAAE,EAAE,MAAM,GACjB,sBAAsB,CAQxB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAO,UAAU,MAAM,EAAE,oBAAoB,CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferAssetOwnership.js","sourceRoot":"","sources":["../../../src/api/procedures/transferAssetOwnership.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"transferAssetOwnership.js","sourceRoot":"","sources":["../../../src/api/procedures/transferAssetOwnership.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAqE;AACrE,6CAA0F;AAC1F,uCAMiB;AAEjB,uDAK4B;AAC5B,mDAA6C;AAO7C;;GAEG;AACH,SAAsB,6BAA6B,CAEjD,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;QAC/C,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAClD,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAEzD,MAAM,YAAY,GAAG,IAAA,mCAAsB,EACzC,EAAE,IAAI,EAAE,kBAAU,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAA,2BAAc,EAAC,MAAM,CAAC,EAAE,EAC5D,OAAO,CACR,CAAC;QAEF,MAAM,WAAW,GAAkB;YACjC,IAAI,EAAE,yBAAiB,CAAC,sBAAsB;YAC9C,KAAK,EAAE,MAAM;SACd,CAAC;QACF,MAAM,oBAAoB,GAAG,IAAA,6CAAgC,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACpF,MAAM,SAAS,GAAG,IAAA,oBAAS,EAAC,yBAAY,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE3D,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;YACjC,WAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,gBAAgB;YACzC,SAAS,EAAE,CAAC,IAAA,mCAA2B,EAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YAC9F,IAAI,EAAE,CAAC,YAAY,EAAE,oBAAoB,EAAE,SAAS,CAAC;SACtD,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAjCD,sEAiCC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAE9B,EAAE,MAAM,EAAU;IAElB,OAAO;QACL,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,IAAI,gBAAK,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,YAAY,EAAE,CAAC,cAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAChD,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC;AAXD,4CAWC;AAED;;GAEG;AACI,MAAM,sBAAsB,GAAG,GAA4C,EAAE,CAClF,IAAI,oBAAS,CAAC,6BAA6B,EAAE,gBAAgB,CAAC,CAAC;AADpD,QAAA,sBAAsB,0BAC8B"}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { Procedure } from "../../internal";
|
|
2
|
+
import { TransferPolyxParams } from "../../types";
|
|
3
3
|
import { ProcedureAuthorization } from "../../types/internal";
|
|
4
|
-
export interface TransferPolyxParams {
|
|
5
|
-
/**
|
|
6
|
-
* Account that will receive the POLYX
|
|
7
|
-
*/
|
|
8
|
-
to: string | Account;
|
|
9
|
-
/**
|
|
10
|
-
* amount of POLYX to be transferred
|
|
11
|
-
*/
|
|
12
|
-
amount: BigNumber;
|
|
13
|
-
/**
|
|
14
|
-
* identifier string to help differentiate transfers
|
|
15
|
-
*/
|
|
16
|
-
memo?: string;
|
|
17
|
-
}
|
|
18
4
|
/**
|
|
19
5
|
* @hidden
|
|
20
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferPolyx.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferPolyx.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"transferPolyx.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferPolyx.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,SAAS,EAAE,uBAAmB;AAC/D,OAAO,EAAa,mBAAmB,EAAU,oBAAgB;AACjE,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAQ1D;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,SAAS,CAAC,mBAAmB,CAAC,EACpC,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,IAAI,CAAC,CA4Ef;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE,mBAAmB,GAAG,sBAAsB,CAQtF;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,QAAO,UAAU,mBAAmB,CACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferPolyx.js","sourceRoot":"","sources":["../../../src/api/procedures/transferPolyx.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"transferPolyx.js","sourceRoot":"","sources":["../../../src/api/procedures/transferPolyx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA+D;AAC/D,uCAAiE;AAEjE,uDAK4B;AAE5B;;GAEG;AACH,SAAsB,oBAAoB,CAExC,IAAyB;;QAEzB,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,GACR,GAAG,IAAI,CAAC;QAET,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QAElC,IAAI,SAAkB,CAAC;QAEvB,IAAI,EAAE,YAAY,kBAAO,EAAE;YACzB,SAAS,GAAG,EAAE,CAAC;SAChB;aAAM;YACL,SAAS,GAAG,IAAI,kBAAO,CAAC,EAAE,OAAO,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;QAED,MAAM,SAAS,GAAG,IAAA,+BAAkB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAEtD,IAAI,IAAI,EAAE;YACR,IAAI,CAAC,cAAc,CAAC;gBAClB,WAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,gBAAgB;gBACzC,IAAI,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,IAAA,yBAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;aAC7D,CAAC,CAAC;SACJ;aAAM;YACL,IAAI,CAAC,cAAc,CAAC;gBAClB,WAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ;gBACjC,IAAI,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;aAChC,CAAC,CAAC;SACJ;IACH,CAAC;CAAA;AA/ED,oDA+EC;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAuB;IAC5D,OAAO;QACL,WAAW,EAAE;YACX,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,cAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC,cAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAClF,MAAM,EAAE,EAAE;YACV,UAAU,EAAE,EAAE;SACf;KACF,CAAC;AACJ,CAAC;AARD,4CAQC;AAED;;GAEG;AACI,MAAM,aAAa,GAAG,GAAmC,EAAE,CAChE,IAAI,oBAAS,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAD3C,QAAA,aAAa,iBAC8B"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { AuthorizationRequest,
|
|
1
|
+
import { AuthorizationRequest, PostTransactionValue, Procedure } from "../../internal";
|
|
2
|
+
import { TransferTickerOwnershipParams } from "../../types";
|
|
2
3
|
import { ProcedureAuthorization } from "../../types/internal";
|
|
3
|
-
export interface TransferTickerOwnershipParams {
|
|
4
|
-
target: string | Identity;
|
|
5
|
-
/**
|
|
6
|
-
* date at which the authorization request for transfer expires (optional)
|
|
7
|
-
*/
|
|
8
|
-
expiry?: Date;
|
|
9
|
-
}
|
|
10
4
|
/**
|
|
11
5
|
* @hidden
|
|
12
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferTickerOwnership.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferTickerOwnership.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,
|
|
1
|
+
{"version":3,"file":"transferTickerOwnership.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferTickerOwnership.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EAEpB,oBAAoB,EACpB,SAAS,EAEV,uBAAmB;AACpB,OAAO,EAOL,6BAA6B,EAE9B,oBAAgB;AACjB,OAAO,EAAE,sBAAsB,EAAE,6BAAyB;AAS1D;;GAEG;AACH,oBAAY,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,6BAA6B,CAAC;AAExE;;GAEG;AACH,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAC,CAwCrD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,EAAE,MAAM,EAAE,EAAE,MAAM,GACjB,sBAAsB,CASxB;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,UAAU,MAAM,EAAE,oBAAoB,CAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferTickerOwnership.js","sourceRoot":"","sources":["../../../src/api/procedures/transferTickerOwnership.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"transferTickerOwnership.js","sourceRoot":"","sources":["../../../src/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