@polymeshassociation/polymesh-sdk 15.0.0-alpha.14 → 15.0.0-alpha.17
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 +2 -2
- package/README.md +109 -0
- package/api/client/Assets.d.ts +7 -1
- package/api/client/Assets.d.ts.map +1 -1
- package/api/client/Assets.js +18 -0
- package/api/client/Assets.js.map +1 -1
- package/api/client/Claims.d.ts +60 -1
- package/api/client/Claims.d.ts.map +1 -1
- package/api/client/Claims.js +130 -3
- package/api/client/Claims.js.map +1 -1
- package/api/client/Identities.d.ts +7 -1
- package/api/client/Identities.d.ts.map +1 -1
- package/api/client/Identities.js +13 -1
- package/api/client/Identities.js.map +1 -1
- package/api/client/Network.d.ts +54 -3
- package/api/client/Network.d.ts.map +1 -1
- package/api/client/Network.js +114 -4
- package/api/client/Network.js.map +1 -1
- package/api/client/Polymesh.d.ts +39 -4
- package/api/client/Polymesh.d.ts.map +1 -1
- package/api/client/Polymesh.js +37 -31
- package/api/client/Polymesh.js.map +1 -1
- package/api/entities/Account.d.ts +26 -0
- package/api/entities/Account.d.ts.map +1 -1
- package/api/entities/Account.js +81 -5
- package/api/entities/Account.js.map +1 -1
- package/api/entities/Asset/Checkpoints/Schedules.d.ts +1 -1
- package/api/entities/Asset/Settlements.d.ts +2 -2
- package/api/entities/Asset/Settlements.js +2 -2
- package/api/entities/Asset/TransferRestrictions/ClaimCount.d.ts +61 -0
- package/api/entities/Asset/TransferRestrictions/ClaimCount.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/ClaimCount.js +16 -0
- package/api/entities/Asset/TransferRestrictions/ClaimCount.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/ClaimPercentage.d.ts +52 -0
- package/api/entities/Asset/TransferRestrictions/ClaimPercentage.d.ts.map +1 -0
- package/api/entities/Asset/TransferRestrictions/ClaimPercentage.js +16 -0
- package/api/entities/Asset/TransferRestrictions/ClaimPercentage.js.map +1 -0
- package/api/entities/Asset/TransferRestrictions/Count.d.ts +41 -4
- package/api/entities/Asset/TransferRestrictions/Count.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Count.js +6 -2
- package/api/entities/Asset/TransferRestrictions/Count.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/Percentage.d.ts +17 -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 +15 -1
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js +39 -4
- package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js.map +1 -1
- package/api/entities/Asset/TransferRestrictions/index.d.ts +4 -0
- package/api/entities/Asset/TransferRestrictions/index.d.ts.map +1 -1
- package/api/entities/Asset/TransferRestrictions/index.js +4 -0
- package/api/entities/Asset/TransferRestrictions/index.js.map +1 -1
- package/api/entities/Asset/index.d.ts +15 -0
- package/api/entities/Asset/index.d.ts.map +1 -1
- package/api/entities/Asset/index.js +38 -0
- package/api/entities/Asset/index.js.map +1 -1
- package/api/entities/CorporateActionBase/index.js +1 -1
- package/api/entities/CorporateActionBase/index.js.map +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.d.ts +7 -0
- package/api/entities/DefaultTrustedClaimIssuer.d.ts.map +1 -1
- package/api/entities/DefaultTrustedClaimIssuer.js +17 -0
- package/api/entities/DefaultTrustedClaimIssuer.js.map +1 -1
- package/api/entities/DividendDistribution/index.d.ts +16 -0
- package/api/entities/DividendDistribution/index.d.ts.map +1 -1
- package/api/entities/DividendDistribution/index.js +71 -2
- package/api/entities/DividendDistribution/index.js.map +1 -1
- package/api/entities/Identity/AssetPermissions.d.ts +29 -0
- package/api/entities/Identity/AssetPermissions.d.ts.map +1 -1
- package/api/entities/Identity/AssetPermissions.js +53 -1
- package/api/entities/Identity/AssetPermissions.js.map +1 -1
- package/api/entities/Identity/index.d.ts +23 -4
- package/api/entities/Identity/index.d.ts.map +1 -1
- package/api/entities/Identity/index.js +68 -23
- package/api/entities/Identity/index.js.map +1 -1
- package/api/entities/Instruction/index.d.ts +11 -0
- package/api/entities/Instruction/index.d.ts.map +1 -1
- package/api/entities/Instruction/index.js +51 -0
- package/api/entities/Instruction/index.js.map +1 -1
- package/api/entities/NumberedPortfolio.d.ts +7 -0
- package/api/entities/NumberedPortfolio.d.ts.map +1 -1
- package/api/entities/NumberedPortfolio.js +17 -0
- package/api/entities/NumberedPortfolio.js.map +1 -1
- package/api/entities/Offering/index.d.ts +13 -0
- package/api/entities/Offering/index.d.ts.map +1 -1
- package/api/entities/Offering/index.js +32 -0
- package/api/entities/Offering/index.js.map +1 -1
- package/api/entities/Portfolio/index.d.ts +12 -0
- package/api/entities/Portfolio/index.d.ts.map +1 -1
- package/api/entities/Portfolio/index.js +94 -5
- package/api/entities/Portfolio/index.js.map +1 -1
- package/api/entities/Venue/index.d.ts +5 -1
- package/api/entities/Venue/index.d.ts.map +1 -1
- package/api/entities/Venue/index.js +8 -1
- package/api/entities/Venue/index.js.map +1 -1
- package/api/procedures/addAssetRequirement.d.ts +2 -2
- package/api/procedures/addAssetRequirement.d.ts.map +1 -1
- package/api/procedures/addAssetRequirement.js +3 -3
- package/api/procedures/addAssetRequirement.js.map +1 -1
- package/api/procedures/addAssetStat.d.ts +16 -0
- package/api/procedures/addAssetStat.d.ts.map +1 -0
- package/api/procedures/addAssetStat.js +91 -0
- package/api/procedures/addAssetStat.js.map +1 -0
- package/api/procedures/addInstruction.d.ts +4 -4
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +4 -8
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/addInvestorUniquenessClaim.d.ts +2 -2
- package/api/procedures/addInvestorUniquenessClaim.d.ts.map +1 -1
- package/api/procedures/addInvestorUniquenessClaim.js +6 -4
- package/api/procedures/addInvestorUniquenessClaim.js.map +1 -1
- package/api/procedures/addTransferRestriction.d.ts +6 -17
- package/api/procedures/addTransferRestriction.d.ts.map +1 -1
- package/api/procedures/addTransferRestriction.js +43 -71
- package/api/procedures/addTransferRestriction.js.map +1 -1
- package/api/procedures/claimClassicTicker.d.ts +2 -1
- package/api/procedures/claimClassicTicker.d.ts.map +1 -1
- package/api/procedures/claimClassicTicker.js +3 -3
- package/api/procedures/claimClassicTicker.js.map +1 -1
- package/api/procedures/claimDividends.d.ts +2 -1
- package/api/procedures/claimDividends.d.ts.map +1 -1
- package/api/procedures/claimDividends.js +3 -2
- package/api/procedures/claimDividends.js.map +1 -1
- package/api/procedures/closeOffering.d.ts +2 -2
- package/api/procedures/closeOffering.d.ts.map +1 -1
- package/api/procedures/closeOffering.js +3 -2
- package/api/procedures/closeOffering.js.map +1 -1
- package/api/procedures/configureDividendDistribution.d.ts +3 -3
- package/api/procedures/configureDividendDistribution.d.ts.map +1 -1
- package/api/procedures/configureDividendDistribution.js +3 -4
- package/api/procedures/configureDividendDistribution.js.map +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts +2 -2
- package/api/procedures/consumeAddMultiSigSignerAuthorization.d.ts.map +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js +3 -4
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js.map +1 -1
- package/api/procedures/consumeAuthorizationRequests.d.ts +2 -2
- package/api/procedures/consumeAuthorizationRequests.d.ts.map +1 -1
- package/api/procedures/consumeAuthorizationRequests.js +8 -4
- package/api/procedures/consumeAuthorizationRequests.js.map +1 -1
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts +2 -2
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts.map +1 -1
- package/api/procedures/consumeJoinOrRotateAuthorization.js +8 -7
- package/api/procedures/consumeJoinOrRotateAuthorization.js.map +1 -1
- package/api/procedures/controllerTransfer.d.ts +2 -2
- package/api/procedures/controllerTransfer.d.ts.map +1 -1
- package/api/procedures/controllerTransfer.js +3 -2
- package/api/procedures/controllerTransfer.js.map +1 -1
- package/api/procedures/createAsset.d.ts +3 -3
- package/api/procedures/createAsset.d.ts.map +1 -1
- package/api/procedures/createAsset.js +50 -45
- package/api/procedures/createAsset.js.map +1 -1
- package/api/procedures/createCheckpoint.d.ts +3 -3
- package/api/procedures/createCheckpoint.d.ts.map +1 -1
- package/api/procedures/createCheckpoint.js +3 -4
- package/api/procedures/createCheckpoint.js.map +1 -1
- package/api/procedures/createCheckpointSchedule.d.ts +3 -3
- package/api/procedures/createCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/createCheckpointSchedule.js +3 -4
- package/api/procedures/createCheckpointSchedule.js.map +1 -1
- package/api/procedures/createGroup.d.ts +3 -3
- package/api/procedures/createGroup.d.ts.map +1 -1
- package/api/procedures/createGroup.js +3 -4
- package/api/procedures/createGroup.js.map +1 -1
- package/api/procedures/createPortfolios.d.ts +22 -0
- package/api/procedures/createPortfolios.d.ts.map +1 -0
- package/api/procedures/createPortfolios.js +77 -0
- package/api/procedures/createPortfolios.js.map +1 -0
- package/api/procedures/createTransactionBatch.d.ts +25 -0
- package/api/procedures/createTransactionBatch.d.ts.map +1 -0
- package/api/procedures/createTransactionBatch.js +118 -0
- package/api/procedures/createTransactionBatch.js.map +1 -0
- package/api/procedures/createVenue.d.ts +3 -2
- package/api/procedures/createVenue.d.ts.map +1 -1
- package/api/procedures/createVenue.js +3 -4
- package/api/procedures/createVenue.js.map +1 -1
- package/api/procedures/deletePortfolio.d.ts +2 -2
- package/api/procedures/deletePortfolio.d.ts.map +1 -1
- package/api/procedures/deletePortfolio.js +3 -2
- package/api/procedures/deletePortfolio.js.map +1 -1
- package/api/procedures/investInOffering.d.ts +2 -2
- package/api/procedures/investInOffering.d.ts.map +1 -1
- package/api/procedures/investInOffering.js +3 -2
- package/api/procedures/investInOffering.js.map +1 -1
- package/api/procedures/inviteAccount.d.ts +3 -2
- package/api/procedures/inviteAccount.d.ts.map +1 -1
- package/api/procedures/inviteAccount.js +3 -4
- package/api/procedures/inviteAccount.js.map +1 -1
- package/api/procedures/inviteExternalAgent.d.ts +3 -3
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +6 -10
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/api/procedures/issueTokens.d.ts +2 -2
- package/api/procedures/issueTokens.d.ts.map +1 -1
- package/api/procedures/issueTokens.js +3 -3
- package/api/procedures/issueTokens.js.map +1 -1
- package/api/procedures/launchOffering.d.ts +3 -3
- package/api/procedures/launchOffering.d.ts.map +1 -1
- package/api/procedures/launchOffering.js +3 -4
- package/api/procedures/launchOffering.js.map +1 -1
- package/api/procedures/leaveIdentity.d.ts +2 -1
- package/api/procedures/leaveIdentity.d.ts.map +1 -1
- package/api/procedures/leaveIdentity.js +7 -3
- package/api/procedures/leaveIdentity.js.map +1 -1
- package/api/procedures/linkCaDocs.d.ts +2 -2
- package/api/procedures/linkCaDocs.d.ts.map +1 -1
- package/api/procedures/linkCaDocs.js +3 -2
- package/api/procedures/linkCaDocs.js.map +1 -1
- package/api/procedures/modifyAllowance.d.ts +2 -2
- package/api/procedures/modifyAllowance.d.ts.map +1 -1
- package/api/procedures/modifyAllowance.js +3 -2
- package/api/procedures/modifyAllowance.js.map +1 -1
- package/api/procedures/modifyAsset.d.ts +2 -2
- package/api/procedures/modifyAsset.d.ts.map +1 -1
- package/api/procedures/modifyAsset.js +1 -2
- package/api/procedures/modifyAsset.js.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts +2 -2
- package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts.map +1 -1
- package/api/procedures/modifyAssetTrustedClaimIssuers.js +1 -2
- package/api/procedures/modifyAssetTrustedClaimIssuers.js.map +1 -1
- package/api/procedures/modifyCaCheckpoint.d.ts +2 -2
- package/api/procedures/modifyCaCheckpoint.d.ts.map +1 -1
- package/api/procedures/modifyCaCheckpoint.js +19 -3
- package/api/procedures/modifyCaCheckpoint.js.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.d.ts +2 -2
- package/api/procedures/modifyCaDefaultConfig.d.ts.map +1 -1
- package/api/procedures/modifyCaDefaultConfig.js +1 -1
- package/api/procedures/modifyCaDefaultConfig.js.map +1 -1
- package/api/procedures/modifyClaims.d.ts +2 -2
- package/api/procedures/modifyClaims.d.ts.map +1 -1
- package/api/procedures/modifyClaims.js +2 -3
- package/api/procedures/modifyClaims.js.map +1 -1
- package/api/procedures/modifyComplianceRequirement.d.ts +2 -2
- package/api/procedures/modifyComplianceRequirement.d.ts.map +1 -1
- package/api/procedures/modifyComplianceRequirement.js +3 -2
- package/api/procedures/modifyComplianceRequirement.js.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.d.ts +2 -2
- package/api/procedures/modifyCorporateActionsAgent.d.ts.map +1 -1
- package/api/procedures/modifyCorporateActionsAgent.js +3 -2
- package/api/procedures/modifyCorporateActionsAgent.js.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts +2 -2
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.js +9 -10
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -1
- package/api/procedures/modifyOfferingTimes.d.ts +2 -2
- package/api/procedures/modifyOfferingTimes.d.ts.map +1 -1
- package/api/procedures/modifyOfferingTimes.js +3 -2
- package/api/procedures/modifyOfferingTimes.js.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts +2 -2
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.js +3 -2
- package/api/procedures/modifyPrimaryIssuanceAgent.js.map +1 -1
- package/api/procedures/modifySignerPermissions.d.ts +2 -2
- package/api/procedures/modifySignerPermissions.d.ts.map +1 -1
- package/api/procedures/modifySignerPermissions.js +7 -4
- package/api/procedures/modifySignerPermissions.js.map +1 -1
- package/api/procedures/modifyVenue.d.ts +2 -2
- 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 +2 -2
- package/api/procedures/moveFunds.d.ts.map +1 -1
- package/api/procedures/moveFunds.js +3 -2
- package/api/procedures/moveFunds.js.map +1 -1
- package/api/procedures/payDividends.d.ts +2 -2
- package/api/procedures/payDividends.d.ts.map +1 -1
- package/api/procedures/payDividends.js +3 -2
- package/api/procedures/payDividends.js.map +1 -1
- package/api/procedures/quitCustody.d.ts +2 -2
- package/api/procedures/quitCustody.d.ts.map +1 -1
- package/api/procedures/quitCustody.js +3 -2
- package/api/procedures/quitCustody.js.map +1 -1
- package/api/procedures/quitSubsidy.d.ts +2 -2
- package/api/procedures/quitSubsidy.d.ts.map +1 -1
- package/api/procedures/quitSubsidy.js +3 -2
- package/api/procedures/quitSubsidy.js.map +1 -1
- package/api/procedures/reclaimDividendDistributionFunds.d.ts +2 -2
- package/api/procedures/reclaimDividendDistributionFunds.d.ts.map +1 -1
- package/api/procedures/reclaimDividendDistributionFunds.js +3 -2
- package/api/procedures/reclaimDividendDistributionFunds.js.map +1 -1
- package/api/procedures/redeemTokens.d.ts +2 -2
- package/api/procedures/redeemTokens.d.ts.map +1 -1
- package/api/procedures/redeemTokens.js +3 -2
- package/api/procedures/redeemTokens.js.map +1 -1
- package/api/procedures/registerIdentity.d.ts +3 -2
- package/api/procedures/registerIdentity.d.ts.map +1 -1
- package/api/procedures/registerIdentity.js +3 -4
- package/api/procedures/registerIdentity.js.map +1 -1
- package/api/procedures/removeAssetRequirement.d.ts +2 -2
- package/api/procedures/removeAssetRequirement.d.ts.map +1 -1
- package/api/procedures/removeAssetRequirement.js +4 -4
- package/api/procedures/removeAssetRequirement.js.map +1 -1
- package/api/procedures/removeAssetStat.d.ts +16 -0
- package/api/procedures/removeAssetStat.d.ts.map +1 -0
- package/api/procedures/removeAssetStat.js +89 -0
- package/api/procedures/removeAssetStat.js.map +1 -0
- package/api/procedures/removeCheckpointSchedule.d.ts +2 -2
- package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -1
- package/api/procedures/removeCheckpointSchedule.js +3 -2
- package/api/procedures/removeCheckpointSchedule.js.map +1 -1
- package/api/procedures/removeCorporateAction.d.ts +2 -2
- package/api/procedures/removeCorporateAction.d.ts.map +1 -1
- package/api/procedures/removeCorporateAction.js +3 -2
- package/api/procedures/removeCorporateAction.js.map +1 -1
- package/api/procedures/removeCorporateActionsAgent.d.ts +2 -2
- package/api/procedures/removeCorporateActionsAgent.d.ts.map +1 -1
- package/api/procedures/removeCorporateActionsAgent.js +3 -2
- package/api/procedures/removeCorporateActionsAgent.js.map +1 -1
- package/api/procedures/removeExternalAgent.d.ts +2 -2
- package/api/procedures/removeExternalAgent.d.ts.map +1 -1
- package/api/procedures/removeExternalAgent.js +3 -2
- package/api/procedures/removeExternalAgent.js.map +1 -1
- package/api/procedures/removePrimaryIssuanceAgent.d.ts +2 -2
- package/api/procedures/removePrimaryIssuanceAgent.d.ts.map +1 -1
- package/api/procedures/removePrimaryIssuanceAgent.js +3 -2
- package/api/procedures/removePrimaryIssuanceAgent.js.map +1 -1
- package/api/procedures/removeSecondaryAccounts.d.ts +2 -1
- package/api/procedures/removeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/removeSecondaryAccounts.js +6 -5
- package/api/procedures/removeSecondaryAccounts.js.map +1 -1
- package/api/procedures/renamePortfolio.d.ts +2 -2
- package/api/procedures/renamePortfolio.d.ts.map +1 -1
- package/api/procedures/renamePortfolio.js +4 -4
- package/api/procedures/renamePortfolio.js.map +1 -1
- package/api/procedures/rescheduleInstruction.d.ts +2 -1
- package/api/procedures/rescheduleInstruction.d.ts.map +1 -1
- package/api/procedures/rescheduleInstruction.js +3 -3
- package/api/procedures/rescheduleInstruction.js.map +1 -1
- package/api/procedures/reserveTicker.d.ts +3 -3
- package/api/procedures/reserveTicker.d.ts.map +1 -1
- package/api/procedures/reserveTicker.js +3 -4
- package/api/procedures/reserveTicker.js.map +1 -1
- package/api/procedures/setAssetDocuments.d.ts +2 -2
- package/api/procedures/setAssetDocuments.d.ts.map +1 -1
- package/api/procedures/setAssetDocuments.js +1 -2
- package/api/procedures/setAssetDocuments.js.map +1 -1
- package/api/procedures/setAssetRequirements.d.ts +2 -2
- package/api/procedures/setAssetRequirements.d.ts.map +1 -1
- package/api/procedures/setAssetRequirements.js +9 -10
- package/api/procedures/setAssetRequirements.js.map +1 -1
- package/api/procedures/setCustodian.d.ts +3 -3
- package/api/procedures/setCustodian.d.ts.map +1 -1
- package/api/procedures/setCustodian.js +3 -6
- package/api/procedures/setCustodian.js.map +1 -1
- package/api/procedures/setGroupPermissions.d.ts +2 -2
- package/api/procedures/setGroupPermissions.d.ts.map +1 -1
- package/api/procedures/setGroupPermissions.js +3 -2
- package/api/procedures/setGroupPermissions.js.map +1 -1
- package/api/procedures/setPermissionGroup.d.ts +2 -2
- package/api/procedures/setPermissionGroup.d.ts.map +1 -1
- package/api/procedures/setPermissionGroup.js +6 -7
- package/api/procedures/setPermissionGroup.js.map +1 -1
- package/api/procedures/setTransferRestrictions.d.ts +3 -10
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -1
- package/api/procedures/setTransferRestrictions.js +54 -65
- package/api/procedures/setTransferRestrictions.js.map +1 -1
- package/api/procedures/subsidizeAccount.d.ts +3 -2
- package/api/procedures/subsidizeAccount.d.ts.map +1 -1
- package/api/procedures/subsidizeAccount.js +3 -4
- package/api/procedures/subsidizeAccount.js.map +1 -1
- package/api/procedures/toggleFreezeOffering.d.ts +2 -2
- package/api/procedures/toggleFreezeOffering.d.ts.map +1 -1
- package/api/procedures/toggleFreezeOffering.js +17 -18
- package/api/procedures/toggleFreezeOffering.js.map +1 -1
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts +2 -2
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/toggleFreezeSecondaryAccounts.js +7 -9
- package/api/procedures/toggleFreezeSecondaryAccounts.js.map +1 -1
- package/api/procedures/toggleFreezeTransfers.d.ts +2 -2
- package/api/procedures/toggleFreezeTransfers.d.ts.map +1 -1
- package/api/procedures/toggleFreezeTransfers.js +12 -13
- package/api/procedures/toggleFreezeTransfers.js.map +1 -1
- package/api/procedures/togglePauseRequirements.d.ts +2 -2
- package/api/procedures/togglePauseRequirements.d.ts.map +1 -1
- package/api/procedures/togglePauseRequirements.js +3 -3
- package/api/procedures/togglePauseRequirements.js.map +1 -1
- package/api/procedures/transferAssetOwnership.d.ts +3 -3
- package/api/procedures/transferAssetOwnership.d.ts.map +1 -1
- package/api/procedures/transferAssetOwnership.js +3 -4
- package/api/procedures/transferAssetOwnership.js.map +1 -1
- package/api/procedures/transferPolyx.d.ts +2 -2
- package/api/procedures/transferPolyx.d.ts.map +1 -1
- package/api/procedures/transferPolyx.js +8 -8
- package/api/procedures/transferPolyx.js.map +1 -1
- package/api/procedures/transferTickerOwnership.d.ts +3 -3
- package/api/procedures/transferTickerOwnership.d.ts.map +1 -1
- package/api/procedures/transferTickerOwnership.js +3 -4
- package/api/procedures/transferTickerOwnership.js.map +1 -1
- package/api/procedures/types.d.ts +105 -9
- package/api/procedures/types.d.ts.map +1 -1
- package/api/procedures/types.js +25 -1
- package/api/procedures/types.js.map +1 -1
- package/api/procedures/utils.d.ts +1 -2
- package/api/procedures/utils.d.ts.map +1 -1
- package/api/procedures/utils.js +4 -15
- package/api/procedures/utils.js.map +1 -1
- package/api/procedures/waivePermissions.d.ts +2 -2
- package/api/procedures/waivePermissions.d.ts.map +1 -1
- package/api/procedures/waivePermissions.js +3 -2
- package/api/procedures/waivePermissions.js.map +1 -1
- package/base/Context.d.ts +77 -3
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +187 -8
- package/base/Context.js.map +1 -1
- package/base/PolymeshError.js +1 -1
- package/base/PolymeshError.js.map +1 -1
- package/base/PolymeshTransaction.d.ts +20 -19
- package/base/PolymeshTransaction.d.ts.map +1 -1
- package/base/PolymeshTransaction.js +19 -12
- package/base/PolymeshTransaction.js.map +1 -1
- package/base/PolymeshTransactionBase.d.ts +70 -35
- package/base/PolymeshTransactionBase.d.ts.map +1 -1
- package/base/PolymeshTransactionBase.js +237 -68
- package/base/PolymeshTransactionBase.js.map +1 -1
- package/base/PolymeshTransactionBatch.d.ts +46 -15
- package/base/PolymeshTransactionBatch.d.ts.map +1 -1
- package/base/PolymeshTransactionBatch.js +107 -18
- package/base/PolymeshTransactionBatch.js.map +1 -1
- package/base/Procedure.d.ts +10 -35
- package/base/Procedure.d.ts.map +1 -1
- package/base/Procedure.js +28 -93
- package/base/Procedure.js.map +1 -1
- package/base/types.d.ts +2 -4
- package/base/types.d.ts.map +1 -1
- package/generated/utils.js +1 -1
- package/generated/utils.js.map +1 -1
- package/internal.d.ts +7 -6
- package/internal.d.ts.map +1 -1
- package/internal.js +11 -11
- package/internal.js.map +1 -1
- package/middleware/queriesV2.d.ts +142 -0
- package/middleware/queriesV2.d.ts.map +1 -0
- package/middleware/queriesV2.js +772 -0
- package/middleware/queriesV2.js.map +1 -0
- package/middleware/typesV2.d.ts +26467 -0
- package/middleware/typesV2.d.ts.map +1 -0
- package/middleware/typesV2.js +2697 -0
- package/middleware/typesV2.js.map +1 -0
- package/npm-package/polymeshassociation-polymesh-sdk-15.0.0-alpha.17.tgz +0 -0
- package/package.json +4 -8
- package/types/index.d.ts +185 -66
- package/types/index.d.ts.map +1 -1
- package/types/index.js +17 -27
- package/types/index.js.map +1 -1
- package/types/internal.d.ts +71 -102
- package/types/internal.d.ts.map +1 -1
- package/types/internal.js +11 -1
- package/types/internal.js.map +1 -1
- package/types/utils/index.d.ts +10 -0
- package/types/utils/index.d.ts.map +1 -1
- package/types/utils/index.js.map +1 -1
- package/utils/constants.d.ts +2 -2
- package/utils/constants.js +2 -2
- package/utils/conversion.d.ts +91 -14
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +393 -22
- package/utils/conversion.js.map +1 -1
- package/utils/internal.d.ts +80 -18
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +344 -43
- package/utils/internal.js.map +1 -1
- package/utils/typeguards.d.ts +2 -2
- package/utils/typeguards.d.ts.map +1 -1
- package/utils/typeguards.js.map +1 -1
- package/api/procedures/createPortfolio.d.ts +0 -21
- package/api/procedures/createPortfolio.d.ts.map +0 -1
- package/api/procedures/createPortfolio.js +0 -64
- package/api/procedures/createPortfolio.js.map +0 -1
- package/api/procedures/modifyDistributionCheckpoint.d.ts +0 -25
- package/api/procedures/modifyDistributionCheckpoint.d.ts.map +0 -1
- package/api/procedures/modifyDistributionCheckpoint.js +0 -60
- package/api/procedures/modifyDistributionCheckpoint.js.map +0 -1
- package/base/PostTransactionValue.d.ts +0 -45
- package/base/PostTransactionValue.d.ts.map +0 -1
- package/base/PostTransactionValue.js +0 -108
- package/base/PostTransactionValue.js.map +0 -1
- package/base/TransactionQueue.d.ts +0 -142
- package/base/TransactionQueue.d.ts.map +0 -1
- package/base/TransactionQueue.js +0 -420
- package/base/TransactionQueue.js.map +0 -1
- package/npm-package/polymeshassociation-polymesh-sdk-15.0.0-alpha.14.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# [15.0.0-alpha.
|
|
1
|
+
# [15.0.0-alpha.17](https://github.com/PolymeshAssociation/polymesh-sdk/compare/v15.0.0-alpha.16...v15.0.0-alpha.17) (2022-08-24)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* 🎸
|
|
6
|
+
* 🎸 release elimination of transaction queues ([#828](https://github.com/PolymeshAssociation/polymesh-sdk/issues/828)) ([7d5a11b](https://github.com/PolymeshAssociation/polymesh-sdk/commit/7d5a11b55124374bd78890bcbc7df0c5d013bae2)), closes [#785](https://github.com/PolymeshAssociation/polymesh-sdk/issues/785)
|
package/README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
[](https://github.com/semantic-release/semantic-release)
|
|
2
|
+
[](https://github.com/standard/semistandard)
|
|
3
|
+
[](https://)
|
|
4
|
+
[](https://www.npmjs.com/package/@polymeshassociation/polymesh-sdk)
|
|
5
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
6
|
+
[](https://sonarcloud.io/dashboard?id=PolymathNetwork_polymesh-sdk)
|
|
7
|
+
[](https://github.com/PolymeshAssociation/polymesh-sdk/actions)
|
|
8
|
+
[](https://sonarcloud.io/dashboard?id=PolymathNetwork_polymesh-sdk)
|
|
9
|
+
[](https://github.com/PolymeshAssociation/polymesh-sdk/issues)
|
|
10
|
+
|
|
11
|
+
## @polymeshassociation/polymesh-sdk
|
|
12
|
+
|
|
13
|
+
<!--- This section is autogenerated, do not modify --->
|
|
14
|
+
|
|
15
|
+
## Polymesh version
|
|
16
|
+
|
|
17
|
+
This release is compatible with Polymesh v5.0
|
|
18
|
+
|
|
19
|
+
<!--- End of section --->
|
|
20
|
+
|
|
21
|
+
## Getting Started
|
|
22
|
+
|
|
23
|
+
### Purpose
|
|
24
|
+
|
|
25
|
+
The Polymesh SDK's main goal is to provide external developers with a set of tools that will allow them to build powerful applications that interact with the Polymesh protocol. It focuses on abstracting away all the complexities of the Polymesh blockchain and expose a simple but complete interface. The result is a feature-rich, user-friendly node.js library.
|
|
26
|
+
|
|
27
|
+
### Before moving on
|
|
28
|
+
|
|
29
|
+
This document assumes you are already familiar with [Security Tokens](https://thesecuritytokenstandard.org/) in general and [Polymath](https://www.polymath.network/) as well as [Polymesh](https://polymath.network/polymesh) in particular.
|
|
30
|
+
|
|
31
|
+
### Technical Pre-requisites
|
|
32
|
+
|
|
33
|
+
In order to use the Polymath SDK, you must install [node](https://nodejs.org/) \(version 14\) and [npm](https://www.npmjs.com/). The library is written in [typescript](https://www.typescriptlang.org/), but can also be used in plain javascript. This document will assume you are using typescript, but the translation to javascript is very simple.
|
|
34
|
+
|
|
35
|
+
### Documentation
|
|
36
|
+
|
|
37
|
+
Token Studio SDK Walkthrough:
|
|
38
|
+
|
|
39
|
+
https://developers.polymath.network/token-studio-api-walkthrough/
|
|
40
|
+
|
|
41
|
+
Polymesh SDK API Reference:
|
|
42
|
+
|
|
43
|
+
https://github.com/PolymeshAssociation/polymesh-sdk/wiki
|
|
44
|
+
|
|
45
|
+
### How to use
|
|
46
|
+
|
|
47
|
+
#### Installation
|
|
48
|
+
|
|
49
|
+
`npm i @polymeshassociation/polymesh-sdk --save`
|
|
50
|
+
|
|
51
|
+
Or, if you're using yarn
|
|
52
|
+
|
|
53
|
+
`yarn add @polymeshassociation/polymesh-sdk`
|
|
54
|
+
|
|
55
|
+
Or, if using pnpm
|
|
56
|
+
|
|
57
|
+
`pnpm add @polymeshassociation/polymesh-sdk`
|
|
58
|
+
|
|
59
|
+
**NOTE** it is _highly_ recommended that you use one of these three package managers. This project uses package resolutions/overrides to pin certain problematic dependencies, and these are only supported by the aforementioned package managers. Using a different package manager may result in unexpected behavior
|
|
60
|
+
|
|
61
|
+
**NOTE** if using TypeScript the compiler option "skipLibCheck" should be set to true in your tsconfig.json file
|
|
62
|
+
|
|
63
|
+
#### Initializing the client
|
|
64
|
+
|
|
65
|
+
Before you can start registering Tickers and creating Assets, you have to connect the Polymesh SDK client to a Polymesh node. This is a pretty straightforward process:
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { Polymesh } from '@polymeshassociation/polymesh-sdk';
|
|
69
|
+
import { LocalSigningManager } from '@polymeshassociation/local-signing-manager';
|
|
70
|
+
|
|
71
|
+
async function run() {
|
|
72
|
+
const signingManager = await LocalSigningManager.create({
|
|
73
|
+
accounts: [
|
|
74
|
+
{
|
|
75
|
+
seed: 'YOU_WISH',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
});
|
|
79
|
+
const polyClient = await Polymesh.connect({
|
|
80
|
+
nodeUrl: 'wss://some-node-url.com',
|
|
81
|
+
signingManager,
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// do stuff with the client
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Here is an overview of the parameters passed to the `connect` function:
|
|
89
|
+
|
|
90
|
+
- `nodeUrl` is a URL that points to a running Polymesh node
|
|
91
|
+
- `signingManager` is an object that complies with the `SigningManager` interface. It holds the Accounts capable of signing transactions, and the signing logic itself. In this example, `LocalSigningManager` is a simple signing manager that holds private keys in memory and signs with them
|
|
92
|
+
|
|
93
|
+
**NOTE:** if using the SDK on a browser environment \(i.e. with the Polymesh wallet browser extension\), you would use the `BrowserExtensionSigningManager` provided by `@polymeshassociation/browser-extension-signing-manager`
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
import { Polymesh } from '@polymeshassociation/polymesh-sdk';
|
|
97
|
+
import { BrowserExtensionSigningManager } from '@polymeshassociation/browser-extension-signing-manager';
|
|
98
|
+
|
|
99
|
+
async function run() {
|
|
100
|
+
const signingManager = await BrowserExtensionSigningManager.create('MY_APP_NAME'); // The Polymesh wallet extension will ask the user to authorize MY_APP_NAME for access
|
|
101
|
+
|
|
102
|
+
const polyClient = await Polymesh.connect({
|
|
103
|
+
nodeUrl: 'wss://some-node-url.com',
|
|
104
|
+
signingManager,
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
// do stuff with the client
|
|
108
|
+
}
|
|
109
|
+
```
|
package/api/client/Assets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Asset, Context, Identity, TickerReservation } from "../../internal";
|
|
2
|
-
import { ClaimClassicTickerParams, CreateAssetWithTickerParams, ProcedureMethod, ReserveTickerParams, SubCallback, UnsubCallback } from "../../types";
|
|
2
|
+
import { ClaimClassicTickerParams, CreateAssetWithTickerParams, PaginationOptions, ProcedureMethod, ReserveTickerParams, ResultSet, SubCallback, UnsubCallback } from "../../types";
|
|
3
3
|
/**
|
|
4
4
|
* Handles all Asset related functionality
|
|
5
5
|
*/
|
|
@@ -75,5 +75,11 @@ export declare class Assets {
|
|
|
75
75
|
getAsset(args: {
|
|
76
76
|
ticker: string;
|
|
77
77
|
}): Promise<Asset>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieve all the Assets on chain
|
|
80
|
+
*
|
|
81
|
+
* @note supports pagination
|
|
82
|
+
*/
|
|
83
|
+
get(paginationOpts?: PaginationOptions): Promise<ResultSet<Asset>>;
|
|
78
84
|
}
|
|
79
85
|
//# sourceMappingURL=Assets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Assets.d.ts","sourceRoot":"","sources":["../../../src/api/client/Assets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAEL,OAAO,EAEP,QAAQ,EAGR,iBAAiB,EAClB,uBAAmB;AACpB,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAE3B,eAAe,EACf,mBAAmB,EACnB,WAAW,EAEX,aAAa,EACd,oBAAgB;
|
|
1
|
+
{"version":3,"file":"Assets.d.ts","sourceRoot":"","sources":["../../../src/api/client/Assets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAEL,OAAO,EAEP,QAAQ,EAGR,iBAAiB,EAClB,uBAAmB;AACpB,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAE3B,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,WAAW,EAEX,aAAa,EACd,oBAAgB;AASjB;;GAEG;AACH,qBAAa,MAAM;IACjB,OAAO,CAAC,OAAO,CAAU;IAEzB;;OAEG;gBACS,OAAO,EAAE,OAAO;IAyB5B;;;OAGG;IACI,aAAa,EAAE,eAAe,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,CAAC;IAE9E;;;;OAIG;IACI,kBAAkB,EAAE,eAAe,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,CAAC;IAExF;;;;;OAKG;IACI,WAAW,EAAE,eAAe,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAExE;;;;OAIG;IACI,iBAAiB,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAC7D,iBAAiB,CACtB,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EACxB,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,GAC7B,OAAO,CAAC,aAAa,CAAC;IAoBzB;;;;;;;OAOG;IACU,qBAAqB,CAAC,IAAI,CAAC,EAAE;QACxC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;KAC1B,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IA2BhC;;;;OAIG;IACI,oBAAoB,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,iBAAiB;IAOxE;;;;;;OAMG;IACU,SAAS,CAAC,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IA2B7E;;;;OAIG;IACU,QAAQ,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,CAAC;IAgB/D;;;;OAIG;IACU,GAAG,CAAC,cAAc,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;CA6BhF"}
|
package/api/client/Assets.js
CHANGED
|
@@ -123,6 +123,24 @@ class Assets {
|
|
|
123
123
|
return asset;
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Retrieve all the Assets on chain
|
|
128
|
+
*
|
|
129
|
+
* @note supports pagination
|
|
130
|
+
*/
|
|
131
|
+
get(paginationOpts) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const { context: { polymeshApi: { query: { asset: { assetNames }, }, }, }, context, } = this;
|
|
134
|
+
const { entries, lastKey: next } = yield (0, internal_2.requestPaginated)(assetNames, {
|
|
135
|
+
paginationOpts,
|
|
136
|
+
});
|
|
137
|
+
const data = entries.map(([{ args: [rawTicker], },]) => new internal_1.Asset({ ticker: (0, conversion_1.tickerToString)(rawTicker) }, context));
|
|
138
|
+
return {
|
|
139
|
+
data,
|
|
140
|
+
next,
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
}
|
|
126
144
|
}
|
|
127
145
|
exports.Assets = Assets;
|
|
128
146
|
//# sourceMappingURL=Assets.js.map
|
package/api/client/Assets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Assets.js","sourceRoot":"","sources":["../../../src/api/client/Assets.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CASoB;AACpB,
|
|
1
|
+
{"version":3,"file":"Assets.js","sourceRoot":"","sources":["../../../src/api/client/Assets.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CASoB;AACpB,uCAWiB;AACjB,uDAAwE;AACxE,mDAK0B;AAE1B;;GAEG;AACH,MAAa,MAAM;IAGjB;;OAEG;IACH,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,aAAa,GAAG,IAAA,gCAAqB,EACxC;YACE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,wBAAa,EAAE,IAAI,CAAC;SACnD,EACD,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,kBAAkB,GAAG,IAAA,gCAAqB,EAC7C;YACE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,6BAAkB,EAAE,IAAI,CAAC;SACxD,EACD,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAA,gCAAqB,EACtC;YACE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,sBAAW,kBAAI,mBAAmB,EAAE,KAAK,IAAK,IAAI,EAAG;SACpF,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAkCD,yCAAyC;I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
|
|
52
52
|
}): Promise<ResultSet<ClaimData>>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve all claims issued by an Identity
|
|
55
|
+
*
|
|
56
|
+
* @param opts.target - Identity (optional, defaults to the signing Identity)
|
|
57
|
+
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
58
|
+
*
|
|
59
|
+
* @note supports pagination
|
|
60
|
+
* @note uses the middlewareV2
|
|
61
|
+
*/
|
|
62
|
+
getIssuedClaimsV2(opts?: {
|
|
63
|
+
target?: string | Identity;
|
|
64
|
+
includeExpired?: boolean;
|
|
65
|
+
size?: BigNumber;
|
|
66
|
+
start?: BigNumber;
|
|
67
|
+
}): Promise<ResultSet<ClaimData>>;
|
|
53
68
|
/**
|
|
54
69
|
* Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
|
|
55
70
|
*
|
|
56
|
-
* @param opts.targets - Identities (or Identity IDs) for which to fetch claims
|
|
71
|
+
* @param opts.targets - Identities (or Identity IDs) for which to fetch targeting claims. Defaults to all targets
|
|
57
72
|
* @param opts.trustedClaimIssuers - Identity IDs of claim issuers. Defaults to all claim issuers
|
|
58
73
|
* @param opts.scope - scope of the claims to fetch. Defaults to any scope
|
|
59
74
|
* @param opts.claimTypes - types of the claims to fetch. Defaults to any type
|
|
@@ -73,6 +88,29 @@ export declare class Claims {
|
|
|
73
88
|
size?: BigNumber;
|
|
74
89
|
start?: BigNumber;
|
|
75
90
|
}): Promise<ResultSet<IdentityWithClaims>>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
|
|
93
|
+
*
|
|
94
|
+
* @param opts.targets - Identities (or Identity IDs) for which to fetch targeting claims. Defaults to all targets
|
|
95
|
+
* @param opts.trustedClaimIssuers - Identity IDs of claim issuers. Defaults to all claim issuers
|
|
96
|
+
* @param opts.scope - scope of the claims to fetch. Defaults to any scope
|
|
97
|
+
* @param opts.claimTypes - types of the claims to fetch. Defaults to any type
|
|
98
|
+
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
99
|
+
* @param opts.size - page size
|
|
100
|
+
* @param opts.start - page offset
|
|
101
|
+
*
|
|
102
|
+
* @note supports pagination
|
|
103
|
+
* @note uses the middleware V2
|
|
104
|
+
*/
|
|
105
|
+
getIdentitiesWithClaimsV2(opts?: {
|
|
106
|
+
targets?: (string | Identity)[];
|
|
107
|
+
trustedClaimIssuers?: (string | Identity)[];
|
|
108
|
+
scope?: Scope;
|
|
109
|
+
claimTypes?: Exclude<ClaimType, ClaimType.InvestorUniquenessV2>[];
|
|
110
|
+
includeExpired?: boolean;
|
|
111
|
+
size?: BigNumber;
|
|
112
|
+
start?: BigNumber;
|
|
113
|
+
}): Promise<ResultSet<IdentityWithClaims>>;
|
|
76
114
|
/**
|
|
77
115
|
* Retrieve all scopes in which claims have been made for the target Identity.
|
|
78
116
|
* If the scope is an asset DID, the corresponding ticker is returned as well
|
|
@@ -119,5 +157,26 @@ export declare class Claims {
|
|
|
119
157
|
size?: BigNumber;
|
|
120
158
|
start?: BigNumber;
|
|
121
159
|
}): Promise<ResultSet<IdentityWithClaims>>;
|
|
160
|
+
/**
|
|
161
|
+
* @hidden
|
|
162
|
+
*/
|
|
163
|
+
private getClaimsFromChain;
|
|
164
|
+
/**
|
|
165
|
+
* Retrieve all claims issued about an Identity, grouped by claim issuer
|
|
166
|
+
*
|
|
167
|
+
* @param opts.target - Identity for which to fetch targeting claims (optional, defaults to the signing Identity)
|
|
168
|
+
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
169
|
+
*
|
|
170
|
+
* @note supports pagination
|
|
171
|
+
* @note uses the middlewareV2 (optional)
|
|
172
|
+
*/
|
|
173
|
+
getTargetingClaimsV2(opts?: {
|
|
174
|
+
target?: string | Identity;
|
|
175
|
+
scope?: Scope;
|
|
176
|
+
trustedClaimIssuers?: (string | Identity)[];
|
|
177
|
+
includeExpired?: boolean;
|
|
178
|
+
size?: BigNumber;
|
|
179
|
+
start?: BigNumber;
|
|
180
|
+
}): Promise<ResultSet<IdentityWithClaims>>;
|
|
122
181
|
}
|
|
123
182
|
//# sourceMappingURL=Claims.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Claims.d.ts","sourceRoot":"","sources":["../../../src/api/client/Claims.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,OAAO,EAA8B,OAAO,EAAE,QAAQ,EAAgB,uBAAmB;
|
|
1
|
+
{"version":3,"file":"Claims.d.ts","sourceRoot":"","sources":["../../../src/api/client/Claims.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,OAAO,EAA8B,OAAO,EAAE,QAAQ,EAAgB,uBAAmB;AAUzF,OAAO,EACL,gCAAgC,EAChC,QAAQ,EACR,SAAS,EAET,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,KAAK,EAGN,oBAAgB;AAWjB;;GAEG;AACH,qBAAa,MAAM;IACjB,OAAO,CAAC,OAAO,CAAU;IAEzB;;OAEG;gBACS,OAAO,EAAE,OAAO;IA4D5B;;OAEG;IACI,0BAA0B,EAAE,eAAe,CAAC,gCAAgC,EAAE,IAAI,CAAC,CAAC;IAE3F;;;;;OAKG;IACI,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;IAE5E;;;;;OAKG;IAEI,UAAU,EAAE,eAAe,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;IAE7E;;;;;OAKG;IACI,YAAY,EAAE,eAAe,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;IAE/E;;;;;;;;OAQG;IACU,eAAe,CAC1B,IAAI,GAAE;QACJ,MAAM,CAAC,EAAE,MAAM,GAAG,Q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K,CAAC;QACd,mBAAmB,CAAC,EAAE,CAAC,MAAM,GAAG,QAAQ,CAAC,EAAE,CAAC;QAC5C,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,KAAK,CAAC,EAAE,SAAS,CAAC;KACd,GACL,OAAO,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;CAoE1C"}
|
package/api/client/Claims.js
CHANGED
|
@@ -17,8 +17,11 @@ const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
|
17
17
|
const lodash_1 = require("lodash");
|
|
18
18
|
const internal_1 = require("../../internal");
|
|
19
19
|
const queries_1 = require("../../middleware/queries");
|
|
20
|
+
const queriesV2_1 = require("../../middleware/queriesV2");
|
|
20
21
|
const types_1 = require("../../middleware/types");
|
|
22
|
+
const typesV2_1 = require("../../middleware/typesV2");
|
|
21
23
|
const types_2 = require("../../types");
|
|
24
|
+
const constants_1 = require("../../utils/constants");
|
|
22
25
|
const conversion_1 = require("../../utils/conversion");
|
|
23
26
|
const internal_2 = require("../../utils/internal");
|
|
24
27
|
/**
|
|
@@ -72,10 +75,32 @@ class Claims {
|
|
|
72
75
|
});
|
|
73
76
|
});
|
|
74
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Retrieve all claims issued by an Identity
|
|
80
|
+
*
|
|
81
|
+
* @param opts.target - Identity (optional, defaults to the signing Identity)
|
|
82
|
+
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
83
|
+
*
|
|
84
|
+
* @note supports pagination
|
|
85
|
+
* @note uses the middlewareV2
|
|
86
|
+
*/
|
|
87
|
+
getIssuedClaimsV2(opts = {}) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const { context } = this;
|
|
90
|
+
const { target, includeExpired = true, size, start } = opts;
|
|
91
|
+
const did = yield (0, internal_2.getDid)(target, context);
|
|
92
|
+
return context.getIdentityClaimsFromMiddlewareV2({
|
|
93
|
+
trustedClaimIssuers: [did],
|
|
94
|
+
includeExpired,
|
|
95
|
+
size,
|
|
96
|
+
start,
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
}
|
|
75
100
|
/**
|
|
76
101
|
* Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
|
|
77
102
|
*
|
|
78
|
-
* @param opts.targets - Identities (or Identity IDs) for which to fetch claims
|
|
103
|
+
* @param opts.targets - Identities (or Identity IDs) for which to fetch targeting claims. Defaults to all targets
|
|
79
104
|
* @param opts.trustedClaimIssuers - Identity IDs of claim issuers. Defaults to all claim issuers
|
|
80
105
|
* @param opts.scope - scope of the claims to fetch. Defaults to any scope
|
|
81
106
|
* @param opts.claimTypes - types of the claims to fetch. Defaults to any type
|
|
@@ -110,6 +135,54 @@ class Claims {
|
|
|
110
135
|
};
|
|
111
136
|
});
|
|
112
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
|
|
140
|
+
*
|
|
141
|
+
* @param opts.targets - Identities (or Identity IDs) for which to fetch targeting claims. Defaults to all targets
|
|
142
|
+
* @param opts.trustedClaimIssuers - Identity IDs of claim issuers. Defaults to all claim issuers
|
|
143
|
+
* @param opts.scope - scope of the claims to fetch. Defaults to any scope
|
|
144
|
+
* @param opts.claimTypes - types of the claims to fetch. Defaults to any type
|
|
145
|
+
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
146
|
+
* @param opts.size - page size
|
|
147
|
+
* @param opts.start - page offset
|
|
148
|
+
*
|
|
149
|
+
* @note supports pagination
|
|
150
|
+
* @note uses the middleware V2
|
|
151
|
+
*/
|
|
152
|
+
getIdentitiesWithClaimsV2(opts = {}) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const { context } = this;
|
|
155
|
+
const { targets, trustedClaimIssuers, scope, claimTypes, includeExpired = true, size = new bignumber_js_1.default(constants_1.DEFAULT_GQL_PAGE_SIZE), start = new bignumber_js_1.default(0), } = opts;
|
|
156
|
+
let targetIssuers;
|
|
157
|
+
const filters = {
|
|
158
|
+
scope: scope ? (0, conversion_1.scopeToMiddlewareScope)(scope, false) : undefined,
|
|
159
|
+
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(trustedClaimIssuer => (0, conversion_1.signerToString)(trustedClaimIssuer)),
|
|
160
|
+
claimTypes: claimTypes === null || claimTypes === void 0 ? void 0 : claimTypes.map(ct => typesV2_1.ClaimTypeEnum[ct]),
|
|
161
|
+
includeExpired,
|
|
162
|
+
};
|
|
163
|
+
if (!targets) {
|
|
164
|
+
const { data: { claims: { groupedAggregates: groupedTargets }, }, } = yield context.queryMiddlewareV2((0, queriesV2_1.claimsGroupingQuery)(Object.assign({}, filters)));
|
|
165
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
166
|
+
targetIssuers = (0, lodash_1.flatten)(groupedTargets.map(groupedTarget => groupedTarget.keys));
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
targetIssuers = targets.map(target => (0, conversion_1.signerToString)(target));
|
|
170
|
+
}
|
|
171
|
+
// note: pagination count is based on the target issuers and not the claims count
|
|
172
|
+
const count = new bignumber_js_1.default(targetIssuers.length);
|
|
173
|
+
// tooling-gql does pagination based on sorted target issuers, hence the explicit `sort()` function (as graphql doesn't sort the final data)
|
|
174
|
+
targetIssuers.sort();
|
|
175
|
+
targetIssuers = targetIssuers.slice(start.toNumber(), size.plus(start).toNumber());
|
|
176
|
+
const { data: { claims: { nodes }, }, } = yield context.queryMiddlewareV2((0, queriesV2_1.claimsQuery)(Object.assign({ dids: targetIssuers }, filters)));
|
|
177
|
+
const data = (0, conversion_1.toIdentityWithClaimsArrayV2)(nodes, context, 'targetId');
|
|
178
|
+
const next = (0, internal_2.calculateNextKey)(count, size, start);
|
|
179
|
+
return {
|
|
180
|
+
data,
|
|
181
|
+
next,
|
|
182
|
+
count,
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
}
|
|
113
186
|
/**
|
|
114
187
|
* Retrieve all scopes in which claims have been made for the target Identity.
|
|
115
188
|
* If the scope is an asset DID, the corresponding ticker is returned as well
|
|
@@ -207,7 +280,7 @@ class Claims {
|
|
|
207
280
|
const result = yield context.queryMiddleware((0, queries_1.issuerDidsWithClaimsByTarget)({
|
|
208
281
|
target: did,
|
|
209
282
|
scope: scope ? (0, conversion_1.scopeToMiddlewareScope)(scope) : undefined,
|
|
210
|
-
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(
|
|
283
|
+
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(conversion_1.signerToString),
|
|
211
284
|
includeExpired,
|
|
212
285
|
count: size === null || size === void 0 ? void 0 : size.toNumber(),
|
|
213
286
|
skip: start === null || start === void 0 ? void 0 : start.toNumber(),
|
|
@@ -222,9 +295,17 @@ class Claims {
|
|
|
222
295
|
count,
|
|
223
296
|
};
|
|
224
297
|
}
|
|
298
|
+
return this.getClaimsFromChain(context, did, trustedClaimIssuers, includeExpired);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* @hidden
|
|
303
|
+
*/
|
|
304
|
+
getClaimsFromChain(context, did, trustedClaimIssuers, includeExpired) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
306
|
const identityClaimsFromChain = yield context.getIdentityClaimsFromChain({
|
|
226
307
|
targets: [did],
|
|
227
|
-
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(
|
|
308
|
+
trustedClaimIssuers: trustedClaimIssuers === null || trustedClaimIssuers === void 0 ? void 0 : trustedClaimIssuers.map(conversion_1.signerToString),
|
|
228
309
|
includeExpired,
|
|
229
310
|
});
|
|
230
311
|
const issuers = (0, lodash_1.uniqBy)(identityClaimsFromChain.map(i => i.issuer), identity => identity.did);
|
|
@@ -241,6 +322,52 @@ class Claims {
|
|
|
241
322
|
};
|
|
242
323
|
});
|
|
243
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
* Retrieve all claims issued about an Identity, grouped by claim issuer
|
|
327
|
+
*
|
|
328
|
+
* @param opts.target - Identity for which to fetch targeting claims (optional, defaults to the signing Identity)
|
|
329
|
+
* @param opts.includeExpired - whether to include expired claims. Defaults to true
|
|
330
|
+
*
|
|
331
|
+
* @note supports pagination
|
|
332
|
+
* @note uses the middlewareV2 (optional)
|
|
333
|
+
*/
|
|
334
|
+
getTargetingClaimsV2(opts = {}) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
const { context } = this;
|
|
337
|
+
const { target, trustedClaimIssuers, scope, includeExpired = true, size = new bignumber_js_1.default(constants_1.DEFAULT_GQL_PAGE_SIZE), start = new bignumber_js_1.default(0), } = opts;
|
|
338
|
+
const did = yield (0, internal_2.getDid)(target, context);
|
|
339
|
+
const isMiddlewareV2Available = yield context.isMiddlewareV2Available();
|
|
340
|
+
if (isMiddlewareV2Available) {
|
|
341
|
+
const filters = {
|
|
342
|
+
dids: [did],
|
|
343
|
+
scope: scope ? (0, conversion_1.scopeToMiddlewareScope)(scope, false) : undefined,
|
|
344
|
+
includeExpired,
|
|
345
|
+
};
|
|
346
|
+
let claimIssuers;
|
|
347
|
+
if (!trustedClaimIssuers) {
|
|
348
|
+
const { data: { claims: { groupedAggregates: groupedIssuers }, }, } = yield context.queryMiddlewareV2((0, queriesV2_1.claimsGroupingQuery)(filters, typesV2_1.ClaimsOrderBy.IssuerIdAsc, typesV2_1.ClaimsGroupBy.IssuerId));
|
|
349
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
350
|
+
claimIssuers = (0, lodash_1.flatten)(groupedIssuers.map(groupedAggregate => groupedAggregate.keys));
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
claimIssuers = trustedClaimIssuers.map(conversion_1.signerToString);
|
|
354
|
+
}
|
|
355
|
+
// note: pagination count is based on the claim issuers and not the claims count
|
|
356
|
+
const count = new bignumber_js_1.default(claimIssuers.length);
|
|
357
|
+
claimIssuers.sort();
|
|
358
|
+
claimIssuers = claimIssuers.slice(start.toNumber(), size.plus(start).toNumber());
|
|
359
|
+
const { data: { claims: { nodes }, }, } = yield context.queryMiddlewareV2((0, queriesV2_1.claimsQuery)(Object.assign({ trustedClaimIssuers: claimIssuers }, filters)));
|
|
360
|
+
const data = (0, conversion_1.toIdentityWithClaimsArrayV2)(nodes, context, 'issuerId');
|
|
361
|
+
const next = (0, internal_2.calculateNextKey)(count, size, start);
|
|
362
|
+
return {
|
|
363
|
+
data,
|
|
364
|
+
next,
|
|
365
|
+
count,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
return this.getClaimsFromChain(context, did, trustedClaimIssuers, includeExpired);
|
|
369
|
+
});
|
|
370
|
+
}
|
|
244
371
|
}
|
|
245
372
|
exports.Claims = Claims;
|
|
246
373
|
//# sourceMappingURL=Claims.js.map
|
package/api/client/Claims.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Claims.js","sourceRoot":"","sources":["../../../src/api/client/Claims.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,mCAA2D;AAE3D,6CAAyF;AACzF,sDAAoF;AACpF,kDAA0D;AAC1D,uCAeiB;AAEjB,uDAI4B;AAC5B,mDAAkG;AAElG;;GAEG;AACH,MAAa,MAAM;IAGjB;;OAEG;IACH,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,SAAS,GAAG,IAAA,gCAAqB,EAKpC;YACE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC;gBAC3B,uBAAY;gBACZ,gCACK,IAAI,KACP,SAAS,EAAE,sBAAc,CAAC,GAAG,GACR;aACxB;SACF,EACD,OAAO,CACR,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B,CAAC,OAAO,EAAE,GAAG,EAAE,mBAAmB,EAAE,cAAc,CAAC,CAAC;QACpF,CAAC;KAAA;CACF;AAllBD,wBAklBC"}
|
|
@@ -26,7 +26,13 @@ export declare class Identities {
|
|
|
26
26
|
*/
|
|
27
27
|
createPortfolio: ProcedureMethod<{
|
|
28
28
|
name: string;
|
|
29
|
-
}, NumberedPortfolio>;
|
|
29
|
+
}, NumberedPortfolio[], NumberedPortfolio>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a set of new Portfolios under the ownership of the signing Identity
|
|
32
|
+
*/
|
|
33
|
+
createPortfolios: ProcedureMethod<{
|
|
34
|
+
names: string[];
|
|
35
|
+
}, NumberedPortfolio[]>;
|
|
30
36
|
/**
|
|
31
37
|
* Create an Identity instance from a DID
|
|
32
38
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identities.d.ts","sourceRoot":"","sources":["../../../src/api/client/Identities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Identities.d.ts","sourceRoot":"","sources":["../../../src/api/client/Identities.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EAEP,QAAQ,EACR,iBAAiB,EAElB,uBAAmB;AACpB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAgB;AAGlE;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAAU;IAEzB;;OAEG;gBACS,OAAO,EAAE,OAAO;IAkC5B;;;;;;;;;;OAUG;IACI,gBAAgB,EAAE,eAAe,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;IAE3E;;OAEG;IACI,eAAe,EAAE,eAAe,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,iBAAiB,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAElG;;OAEG;IACI,gBAAgB,EAAE,eAAe,CAAC;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAEnF;;;;OAIG;IACI,WAAW,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI5D;;OAEG;IACI,eAAe,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAGhF"}
|
package/api/client/Identities.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Identities = void 0;
|
|
4
|
+
const Venue_1 = require("../entities/Venue");
|
|
4
5
|
const internal_1 = require("../../internal");
|
|
5
6
|
const internal_2 = require("../../utils/internal");
|
|
6
7
|
/**
|
|
@@ -13,7 +14,18 @@ class Identities {
|
|
|
13
14
|
constructor(context) {
|
|
14
15
|
this.context = context;
|
|
15
16
|
this.registerIdentity = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: args => [internal_1.registerIdentity, args] }, context);
|
|
16
|
-
this.createPortfolio = (0, internal_2.createProcedureMethod)({
|
|
17
|
+
this.createPortfolio = (0, internal_2.createProcedureMethod)({
|
|
18
|
+
getProcedureAndArgs: args => [
|
|
19
|
+
internal_1.createPortfolios,
|
|
20
|
+
{
|
|
21
|
+
names: [args.name],
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
transformer: Venue_1.createPortfolioTransformer,
|
|
25
|
+
}, context);
|
|
26
|
+
this.createPortfolios = (0, internal_2.createProcedureMethod)({
|
|
27
|
+
getProcedureAndArgs: args => [internal_1.createPortfolios, args],
|
|
28
|
+
}, context);
|
|
17
29
|
}
|
|
18
30
|
/**
|
|
19
31
|
* Create an Identity instance from a DID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identities.js","sourceRoot":"","sources":["../../../src/api/client/Identities.ts"],"names":[],"mappings":";;;AAAA,6CAMoB;AAEp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