@polymeshassociation/polymesh-types 7.7.0 → 7.8.0
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 -3
- package/generated/types.d.ts +26 -4
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +25 -1
- package/generated/types.js.map +1 -1
- package/package.json +1 -1
- package/polkadot/augment-api-consts.d.ts +12 -0
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +112 -4
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +124 -2
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +138 -11
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-runtime.d.ts +10 -1
- package/polkadot/augment-api-runtime.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +279 -4
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +774 -364
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +810 -374
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/registry.d.ts +27 -1
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/types-lookup.d.ts +707 -385
- package/polkadot/types-lookup.d.ts.map +1 -1
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
3
|
import type { BTreeMap, BTreeSet, Bytes, Compact, Option, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { PalletBalancesAdjustmentDirection, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletPipsSnapshotResult, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStoFundingMethod, PalletStoPriceTier, PalletValidatorsSlashingSwitch, PolymeshDartBpAccountBatchedAccountAssetRegistrationProof, PolymeshDartBpAffirmationProofsInstantReceiverAffirmationProof, PolymeshDartBpAffirmationProofsInstantSenderAffirmationProof, PolymeshDartBpAffirmationProofsReceiverAffirmationProof, PolymeshDartBpAffirmationProofsReceiverClaimProof, PolymeshDartBpAffirmationProofsReceiverRevertAffirmationProof, PolymeshDartBpAffirmationProofsSenderAffirmationProof, PolymeshDartBpAffirmationProofsSenderCounterUpdateProof, PolymeshDartBpAffirmationProofsSenderRevertAffirmationProof, PolymeshDartBpAssetAssetMintingProof, PolymeshDartBpBatchedBatchedProofs, PolymeshDartBpFeeBatchedFeeAccountRegistrationProof, PolymeshDartBpFeeBatchedFeeAccountTopupProof, PolymeshDartBpFeeFeePaymentWithBatchedProofs, PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysAccountRegistrationProof, PolymeshDartBpKeysEncryptionKeyRegistrationProof, PolymeshDartBpKeysEncryptionPublicKey, PolymeshDartBpLegInstantInstantSettlementProof, PolymeshDartBpLegProofsBatchedSettlementProof, PolymeshDartBpLegProofsMediatorAffirmationProof, PolymeshDartBpLegSettlementProof, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetHolder, PolymeshPrimitivesAssetAssetHolderKind, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCheckpointScheduleCheckpoints, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentitySecondaryKeyWithAuth, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesProtocolFeeProtocolOp, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAffirmationRequirement, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
6
|
+
import type { PalletBalancesAdjustmentDirection, PalletConfidentialAssetsRoleKind, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletPipsSnapshotResult, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStoFundingMethod, PalletStoPriceTier, PalletValidatorsSlashingSwitch, PalletWorkerModulesProtocolMetadata, PalletWorkerModulesProtocolModuleConfig, PolymeshDartBpAccountBatchedAccountAssetRegistrationProof, PolymeshDartBpAffirmationProofsInstantReceiverAffirmationProof, PolymeshDartBpAffirmationProofsInstantSenderAffirmationProof, PolymeshDartBpAffirmationProofsReceiverAffirmationProof, PolymeshDartBpAffirmationProofsReceiverClaimProof, PolymeshDartBpAffirmationProofsReceiverRevertAffirmationProof, PolymeshDartBpAffirmationProofsSenderAffirmationProof, PolymeshDartBpAffirmationProofsSenderCounterUpdateProof, PolymeshDartBpAffirmationProofsSenderRevertAffirmationProof, PolymeshDartBpAssetAssetMintingProof, PolymeshDartBpBatchedBatchedProofs, PolymeshDartBpFeeBatchedFeeAccountRegistrationProof, PolymeshDartBpFeeBatchedFeeAccountTopupProof, PolymeshDartBpFeeFeePaymentWithBatchedProofs, PolymeshDartBpKeyDistributionProof, PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysAccountRegistrationProof, PolymeshDartBpKeysEncryptionKeyRegistrationProof, PolymeshDartBpKeysEncryptionPublicKey, PolymeshDartBpLegInstantInstantSettlementProof, PolymeshDartBpLegProofsBatchedSettlementProof, PolymeshDartBpLegProofsMediatorAffirmationProof, PolymeshDartBpLegSettlementProof, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetHolder, PolymeshPrimitivesAssetAssetHolderKind, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCheckpointScheduleCheckpoints, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentitySecondaryKeyWithAuth, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesProtocolFeeProtocolOp, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAffirmationRequirement, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, PolymeshWorkerCommonProtocol, PolymeshWorkerProtocolTestingTestWorkRequest, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
8
8
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
9
9
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -542,6 +542,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
542
542
|
* * `AssetMetadataLocalKeyAlreadyExists` - If the local metadata key already exists.
|
|
543
543
|
* * `AssetMetadataValueIsLocked` - If the metadata value is locked.
|
|
544
544
|
* * `AssetMetadataValueMaxLengthExceeded` - If the metadata value length exceeds the maximum allowed length.
|
|
545
|
+
* * `AssetMetadataValueIsEmpty` - If `details` lock an empty metadata value.
|
|
545
546
|
**/
|
|
546
547
|
registerAndSetLocalAssetMetadata: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, name: Bytes | string | Uint8Array, spec: PolymeshPrimitivesAssetMetadataAssetMetadataSpec | {
|
|
547
548
|
url?: any;
|
|
@@ -845,6 +846,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
845
846
|
* * `AssetMetadataKeyIsMissing` - If the metadata key is missing.
|
|
846
847
|
* * `AssetMetadataValueIsLocked` - If the metadata value is locked.
|
|
847
848
|
* * `AssetMetadataValueMaxLengthExceeded` - If the metadata value length exceeds the maximum allowed length.
|
|
849
|
+
* * `AssetMetadataValueIsEmpty` - If `details` lock an empty metadata value.
|
|
848
850
|
**/
|
|
849
851
|
setAssetMetadata: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, key: PolymeshPrimitivesAssetMetadataAssetMetadataKey | {
|
|
850
852
|
Global: any;
|
|
@@ -2093,6 +2095,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2093
2095
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2094
2096
|
PolymeshDartBpLegSettlementProof
|
|
2095
2097
|
]>;
|
|
2098
|
+
/**
|
|
2099
|
+
* Register a new shared encryption key and distribute it to registered encryption keys.
|
|
2100
|
+
*
|
|
2101
|
+
* The shared key is linked to the caller's DID (normally the asset issuer). It can then
|
|
2102
|
+
* be used as an asset auditor key, or as a mediator key by the owner of a Confidential
|
|
2103
|
+
* account whose encryption key it was distributed to.
|
|
2104
|
+
*
|
|
2105
|
+
* # Arguments
|
|
2106
|
+
* * `origin` - The origin of the call (must meet the auditor requirements).
|
|
2107
|
+
* * `proof` - The key distribution proof.
|
|
2108
|
+
*
|
|
2109
|
+
* # Errors
|
|
2110
|
+
* * `BadOrigin` if `origin` isn't signed.
|
|
2111
|
+
* * `MissingRequiredClaim` if the caller doesn't meet the auditor requirements, or a
|
|
2112
|
+
* recipient's DID doesn't meet the auditor requirements.
|
|
2113
|
+
* * `EncryptionKeyAlreadyRegistered` if the shared key is already registered.
|
|
2114
|
+
* * `EncryptionKeyMissing` if a recipient key isn't registered.
|
|
2115
|
+
* * `NoKeyRecipients` if the proof has no recipients.
|
|
2116
|
+
* * `TooManySharedKeyRecipients` if the proof exceeds `MaxSharedKeyRecipients`.
|
|
2117
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2118
|
+
**/
|
|
2119
|
+
distributeEncryptionKey: AugmentedSubmittable<(proof: PolymeshDartBpKeyDistributionProof | {
|
|
2120
|
+
publicKey?: any;
|
|
2121
|
+
recipientPks?: any;
|
|
2122
|
+
inner?: any;
|
|
2123
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2124
|
+
PolymeshDartBpKeyDistributionProof
|
|
2125
|
+
]>;
|
|
2096
2126
|
/**
|
|
2097
2127
|
* Create and execute an instant settlement.
|
|
2098
2128
|
*
|
|
@@ -2298,6 +2328,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2298
2328
|
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2299
2329
|
* * `AccountAssetAlreadyRegistered` if the Confidential account has already registered the Confidential asset.
|
|
2300
2330
|
* * `NotAccountOwner` if the caller is not the owner of the Confidential account.
|
|
2331
|
+
* * `EncryptionKeyMismatch` if the proof key doesn't match the account's registered key.
|
|
2301
2332
|
* * `InvalidProof` if the proof is invalid.
|
|
2302
2333
|
**/
|
|
2303
2334
|
registerAccountAssets: AugmentedSubmittable<(proof: PolymeshDartBpAccountBatchedAccountAssetRegistrationProof | {
|
|
@@ -2315,6 +2346,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2315
2346
|
* # Errors
|
|
2316
2347
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2317
2348
|
* * `AccountAlreadyCreated` if the dart account or encryption key is already registered.
|
|
2349
|
+
* * `NotAccountOwner` if the account key is registered to another identity as a fee account.
|
|
2318
2350
|
**/
|
|
2319
2351
|
registerAccounts: AugmentedSubmittable<(proof: PolymeshDartBpKeysAccountRegistrationProof | {
|
|
2320
2352
|
accounts?: any;
|
|
@@ -2352,6 +2384,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2352
2384
|
* # Errors
|
|
2353
2385
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2354
2386
|
* * `FeeAccountAlreadyRegistered` if the fee account or encryption key is already registered.
|
|
2387
|
+
* * `NotAccountOwner` if the account key is registered to another identity as an asset account.
|
|
2355
2388
|
* * `NullifierAlreadyUsed` if the nullifier for the fee account state commitment has already been used.
|
|
2356
2389
|
* * `InvalidFeeAssetId` if the fee asset ID is invalid.
|
|
2357
2390
|
* * `InvalidProof` if the proof is invalid.
|
|
@@ -2370,8 +2403,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2370
2403
|
*
|
|
2371
2404
|
* Relayers can charge a commission fee on top of the transaction fee (i.e. `commission fee + transaction fee = fee amount`).
|
|
2372
2405
|
*
|
|
2373
|
-
* Relayers
|
|
2374
|
-
*
|
|
2406
|
+
* Relayers are responsible for checking the fee payment terms and the fee and batch proofs before submission.
|
|
2407
|
+
* The signed extension checks whether the fee nullifier is already spent; a concurrent spend can still make
|
|
2408
|
+
* that check stale before inclusion. Fee-payment roots are checked against the shorter relayer root-age limit
|
|
2409
|
+
* during dispatch, so relayers should submit with enough time remaining for inclusion. If the batch proofs
|
|
2410
|
+
* are invalid, the user is still responsible for paying the fee to the relayer.
|
|
2375
2411
|
*
|
|
2376
2412
|
* # Arguments
|
|
2377
2413
|
* * `origin` - The origin of the call. This is the relayer.
|
|
@@ -2380,14 +2416,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2380
2416
|
* # Errors
|
|
2381
2417
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2382
2418
|
* * `InvalidFeePaymentProof` if the fee payment proof is invalid.
|
|
2383
|
-
* * `
|
|
2419
|
+
* * `CurveTreeRootNotFound` if the fee payment root is missing or too old.
|
|
2420
|
+
* * `RelayerCallMustBeTopLevel` if this call is nested or the signed extension did not run.
|
|
2384
2421
|
**/
|
|
2385
2422
|
relayerSubmitBatchedProofs: AugmentedSubmittable<(proof: PolymeshDartBpFeeFeePaymentWithBatchedProofs | {
|
|
2386
2423
|
feePayment?: any;
|
|
2387
2424
|
batchedProofs?: any;
|
|
2425
|
+
isBroadcast?: any;
|
|
2388
2426
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2389
2427
|
PolymeshDartBpFeeFeePaymentWithBatchedProofs
|
|
2390
2428
|
]>;
|
|
2429
|
+
/**
|
|
2430
|
+
* Remove the required claim for a gated role (Root only).
|
|
2431
|
+
*
|
|
2432
|
+
* The role becomes permissionless again (mediators keep falling back to the
|
|
2433
|
+
* auditor spec while that one is set).
|
|
2434
|
+
*
|
|
2435
|
+
* # Arguments
|
|
2436
|
+
* * `origin` - The origin of the call (must be Root).
|
|
2437
|
+
* * `role` - The gated role.
|
|
2438
|
+
*
|
|
2439
|
+
* # Errors
|
|
2440
|
+
* * `BadOrigin` if `origin` isn't Root.
|
|
2441
|
+
**/
|
|
2442
|
+
removeRequiredClaim: AugmentedSubmittable<(role: PalletConfidentialAssetsRoleKind | 'AssetCreator' | 'Auditor' | 'Mediator' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2443
|
+
PalletConfidentialAssetsRoleKind
|
|
2444
|
+
]>;
|
|
2391
2445
|
/**
|
|
2392
2446
|
* Sender affirms a settlement leg.
|
|
2393
2447
|
*
|
|
@@ -2455,6 +2509,56 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2455
2509
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2456
2510
|
PolymeshDartBpAffirmationProofsSenderCounterUpdateProof
|
|
2457
2511
|
]>;
|
|
2512
|
+
/**
|
|
2513
|
+
* Set the freeze state as the issuer or Root. Only Root may change a Root freeze.
|
|
2514
|
+
**/
|
|
2515
|
+
setAssetFrozen: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, frozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2516
|
+
u32,
|
|
2517
|
+
bool
|
|
2518
|
+
]>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Set the required claim for a gated role (Root only).
|
|
2521
|
+
*
|
|
2522
|
+
* While a spec is set, a DID acting in that role must hold a live
|
|
2523
|
+
* (unexpired) claim equal to `claim` from one of `trusted_issuers`.
|
|
2524
|
+
* An empty issuer list blocks the role entirely (deny-all); remove the spec
|
|
2525
|
+
* (see `remove_required_claim`) to restore permissionless behavior.
|
|
2526
|
+
* Mediators fall back to the auditor spec when no mediator spec is set.
|
|
2527
|
+
*
|
|
2528
|
+
* # Arguments
|
|
2529
|
+
* * `origin` - The origin of the call (must be Root).
|
|
2530
|
+
* * `role` - The gated role.
|
|
2531
|
+
* * `claim` - The required claim (type, scope and value).
|
|
2532
|
+
* * `trusted_issuers` - DIDs trusted to issue the required claim.
|
|
2533
|
+
*
|
|
2534
|
+
* # Errors
|
|
2535
|
+
* * `BadOrigin` if `origin` isn't Root.
|
|
2536
|
+
**/
|
|
2537
|
+
setRequiredClaim: AugmentedSubmittable<(role: PalletConfidentialAssetsRoleKind | 'AssetCreator' | 'Auditor' | 'Mediator' | number | Uint8Array, claim: PolymeshPrimitivesIdentityClaimClaim | {
|
|
2538
|
+
Accredited: any;
|
|
2539
|
+
} | {
|
|
2540
|
+
Affiliate: any;
|
|
2541
|
+
} | {
|
|
2542
|
+
BuyLockup: any;
|
|
2543
|
+
} | {
|
|
2544
|
+
SellLockup: any;
|
|
2545
|
+
} | {
|
|
2546
|
+
CustomerDueDiligence: any;
|
|
2547
|
+
} | {
|
|
2548
|
+
KnowYourCustomer: any;
|
|
2549
|
+
} | {
|
|
2550
|
+
Jurisdiction: any;
|
|
2551
|
+
} | {
|
|
2552
|
+
Exempted: any;
|
|
2553
|
+
} | {
|
|
2554
|
+
Blocked: any;
|
|
2555
|
+
} | {
|
|
2556
|
+
Custom: any;
|
|
2557
|
+
} | string | Uint8Array, trustedIssuers: Vec<PolymeshPrimitivesIdentityId> | (PolymeshPrimitivesIdentityId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
2558
|
+
PalletConfidentialAssetsRoleKind,
|
|
2559
|
+
PolymeshPrimitivesIdentityClaimClaim,
|
|
2560
|
+
Vec<PolymeshPrimitivesIdentityId>
|
|
2561
|
+
]>;
|
|
2458
2562
|
/**
|
|
2459
2563
|
* Submit a batch of proofs.
|
|
2460
2564
|
*
|
|
@@ -2481,6 +2585,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2481
2585
|
* # Errors
|
|
2482
2586
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2483
2587
|
* * `FeeAccountMissing` if the fee account is not registered.
|
|
2588
|
+
* * `NotAccountOwner` if the caller does not own the fee account.
|
|
2484
2589
|
* * `InvalidFeeAssetId` if the fee asset ID is invalid.
|
|
2485
2590
|
* * `InvalidProof` if the proof is invalid.
|
|
2486
2591
|
* * `InsufficientBalance` if the caller has insufficient balance to pay the deposit.
|
|
@@ -2491,6 +2596,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2491
2596
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2492
2597
|
PolymeshDartBpFeeBatchedFeeAccountTopupProof
|
|
2493
2598
|
]>;
|
|
2599
|
+
/**
|
|
2600
|
+
* Update the auditor and mediator encryption keys for an asset.
|
|
2601
|
+
*
|
|
2602
|
+
* The asset owner must retain the required live claims for every selected auditor and
|
|
2603
|
+
* mediator. Existing settlements keep their creation-time encrypted legs and mediator set.
|
|
2604
|
+
**/
|
|
2605
|
+
updateAssetKeys: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, mediators: BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>, auditors: BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>) => SubmittableExtrinsic<ApiType>, [
|
|
2606
|
+
u32,
|
|
2607
|
+
BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>,
|
|
2608
|
+
BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>
|
|
2609
|
+
]>;
|
|
2494
2610
|
};
|
|
2495
2611
|
corporateAction: {
|
|
2496
2612
|
/**
|
|
@@ -3952,6 +4068,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3952
4068
|
*
|
|
3953
4069
|
* # Arguments
|
|
3954
4070
|
* * `signers` - Signers of the multisig (They need to accept authorization before they are actually added).
|
|
4071
|
+
* Must not contain duplicates.
|
|
3955
4072
|
* * `sigs_required` - Number of sigs required to process a multi-sig tx.
|
|
3956
4073
|
* * `permissions` - optional custom permissions. Only the primary key can provide custom permissions.
|
|
3957
4074
|
**/
|
|
@@ -4250,6 +4367,41 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4250
4367
|
AccountId32,
|
|
4251
4368
|
bool
|
|
4252
4369
|
]>;
|
|
4370
|
+
/**
|
|
4371
|
+
* Freezes or unfreezes `nfts` for `holder`.
|
|
4372
|
+
*
|
|
4373
|
+
* A frozen NFT can't be transferred, moved between portfolios, redeemed or locked in a
|
|
4374
|
+
* settlement instruction while `holder` holds it. Controller transfers are exempt and
|
|
4375
|
+
* unfreeze the NFTs they take. The freeze is per holder, as in ERC-7943: it can be set
|
|
4376
|
+
* for a holder that doesn't hold the NFT yet, and applies if the NFT arrives.
|
|
4377
|
+
*
|
|
4378
|
+
* # Arguments
|
|
4379
|
+
* * `origin` - is a signer that has permissions to act as an agent of the collection.
|
|
4380
|
+
* * `holder` - the [`AssetHolder`] the freeze applies to.
|
|
4381
|
+
* * `nfts` - the [`NFTs`] to freeze or unfreeze.
|
|
4382
|
+
* * `frozen` - `true` to freeze, `false` to unfreeze.
|
|
4383
|
+
*
|
|
4384
|
+
* ## Errors
|
|
4385
|
+
* - `CollectionNotFound` - if the collection does not exist.
|
|
4386
|
+
* - `ZeroCount`, `MaxNumberOfNFTsPerLegExceeded`, `DuplicatedNFTId` - if `nfts` is empty,
|
|
4387
|
+
* too large or has duplicate ids.
|
|
4388
|
+
* - `NFTNotFound` - if freezing and any of the NFTs does not exist.
|
|
4389
|
+
*
|
|
4390
|
+
* # Permissions
|
|
4391
|
+
* * Asset
|
|
4392
|
+
**/
|
|
4393
|
+
setNftsFrozen: AugmentedSubmittable<(holder: PolymeshPrimitivesAssetAssetHolder | {
|
|
4394
|
+
Portfolio: any;
|
|
4395
|
+
} | {
|
|
4396
|
+
Account: any;
|
|
4397
|
+
} | string | Uint8Array, nfts: PolymeshPrimitivesNftNfTs | {
|
|
4398
|
+
assetId?: any;
|
|
4399
|
+
ids?: any;
|
|
4400
|
+
} | string | Uint8Array, frozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4401
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
4402
|
+
PolymeshPrimitivesNftNfTs,
|
|
4403
|
+
bool
|
|
4404
|
+
]>;
|
|
4253
4405
|
/**
|
|
4254
4406
|
* Transfer NFTs from the caller's account to another account.
|
|
4255
4407
|
*
|
|
@@ -7631,6 +7783,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7631
7783
|
* # Arguments
|
|
7632
7784
|
* * origin Required origin for removing a potential validator.
|
|
7633
7785
|
* * identity Validator's IdentityId.
|
|
7786
|
+
*
|
|
7787
|
+
* All stashes of `identity` that are still validating are chilled.
|
|
7788
|
+
*
|
|
7789
|
+
* The worst-case weight is charged up front and refunded down to the number of stashes
|
|
7790
|
+
* actually chilled.
|
|
7634
7791
|
**/
|
|
7635
7792
|
removePermissionedValidator: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7636
7793
|
PolymeshPrimitivesIdentityId
|
|
@@ -7653,6 +7810,124 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7653
7810
|
u32
|
|
7654
7811
|
]>;
|
|
7655
7812
|
};
|
|
7813
|
+
workerModules: {
|
|
7814
|
+
/**
|
|
7815
|
+
* Register a new protocol.
|
|
7816
|
+
*
|
|
7817
|
+
* # Arguments
|
|
7818
|
+
* * `origin` - The origin of the call, must be root.
|
|
7819
|
+
* * `protocol_id` - The ID of the protocol to register.
|
|
7820
|
+
* * `metadata` - The metadata of the protocol to register.
|
|
7821
|
+
*
|
|
7822
|
+
* # Errors
|
|
7823
|
+
* * `DispatchError::BadOrigin` - If the origin is not root.
|
|
7824
|
+
* * `Error::<T>::ProtocolAlreadyRegistered` - If the protocol is already registered.
|
|
7825
|
+
* * `Error::<T>::InvalidProtocolMetadata` - If the protocol metadata is invalid.
|
|
7826
|
+
**/
|
|
7827
|
+
registerProtocol: AugmentedSubmittable<(protocolId: u16 | AnyNumber | Uint8Array, metadata: PalletWorkerModulesProtocolMetadata | {
|
|
7828
|
+
protocolName?: any;
|
|
7829
|
+
protocolDescription?: any;
|
|
7830
|
+
protocolVersion?: any;
|
|
7831
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7832
|
+
u16,
|
|
7833
|
+
PalletWorkerModulesProtocolMetadata
|
|
7834
|
+
]>;
|
|
7835
|
+
/**
|
|
7836
|
+
* Upload protocol module code.
|
|
7837
|
+
*
|
|
7838
|
+
* # Arguments
|
|
7839
|
+
* * `origin` - The origin of the call, must be root.
|
|
7840
|
+
* * `protocol` - The protocol to upload the module code for.
|
|
7841
|
+
* * `code` - The module code to upload.
|
|
7842
|
+
* * `module_version` - The version of the module being uploaded.
|
|
7843
|
+
*
|
|
7844
|
+
* # Errors
|
|
7845
|
+
* * `DispatchError::BadOrigin` - If the origin is not root.
|
|
7846
|
+
* * `Error::<T>::ProtocolNotRegistered` - If the protocol is not registered.
|
|
7847
|
+
* * `Error::<T>::ProtocolModuleCodeAlreadyExists` - If the protocol module code already exists.
|
|
7848
|
+
**/
|
|
7849
|
+
uploadProtocolModuleCode: AugmentedSubmittable<(protocol: PolymeshWorkerCommonProtocol | {
|
|
7850
|
+
id?: any;
|
|
7851
|
+
version?: any;
|
|
7852
|
+
} | string | Uint8Array, code: Bytes | string | Uint8Array, moduleVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7853
|
+
PolymeshWorkerCommonProtocol,
|
|
7854
|
+
Bytes,
|
|
7855
|
+
u32
|
|
7856
|
+
]>;
|
|
7857
|
+
/**
|
|
7858
|
+
* Upload protocol module config.
|
|
7859
|
+
*
|
|
7860
|
+
* # Arguments
|
|
7861
|
+
* * `origin` - The origin of the call, must be root.
|
|
7862
|
+
* * `config` - The module config to upload.
|
|
7863
|
+
*
|
|
7864
|
+
* # Errors
|
|
7865
|
+
* * `DispatchError::BadOrigin` - If the origin is not root.
|
|
7866
|
+
* * `Error::<T>::ProtocolNotRegistered` - If the protocol is not registered.
|
|
7867
|
+
* * `Error::<T>::ProtocolModuleConfigAlreadyExists` - If the protocol module config already exists.
|
|
7868
|
+
**/
|
|
7869
|
+
uploadProtocolModuleConfig: AugmentedSubmittable<(config: PalletWorkerModulesProtocolModuleConfig | {
|
|
7870
|
+
protocol?: any;
|
|
7871
|
+
initializationMethod?: any;
|
|
7872
|
+
modules?: any;
|
|
7873
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7874
|
+
PalletWorkerModulesProtocolModuleConfig
|
|
7875
|
+
]>;
|
|
7876
|
+
/**
|
|
7877
|
+
* Upload protocol module context.
|
|
7878
|
+
*
|
|
7879
|
+
* # Arguments
|
|
7880
|
+
* * `origin` - The origin of the call, must be root.
|
|
7881
|
+
* * `protocol` - The protocol to upload the module context for.
|
|
7882
|
+
* * `context` - The module context to upload.
|
|
7883
|
+
*
|
|
7884
|
+
* # Errors
|
|
7885
|
+
* * `DispatchError::BadOrigin` - If the origin is not root.
|
|
7886
|
+
* * `Error::<T>::ProtocolNotRegistered` - If the protocol is not registered.
|
|
7887
|
+
* * `Error::<T>::ProtocolModuleContextAlreadyExists` - If the protocol module context already exists.
|
|
7888
|
+
**/
|
|
7889
|
+
uploadProtocolModuleContext: AugmentedSubmittable<(protocol: PolymeshWorkerCommonProtocol | {
|
|
7890
|
+
id?: any;
|
|
7891
|
+
version?: any;
|
|
7892
|
+
} | string | Uint8Array, context: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7893
|
+
PolymeshWorkerCommonProtocol,
|
|
7894
|
+
Bytes
|
|
7895
|
+
]>;
|
|
7896
|
+
};
|
|
7897
|
+
workerTesting: {
|
|
7898
|
+
/**
|
|
7899
|
+
* Set whether to enable work session per block. This is used for testing purpose only.
|
|
7900
|
+
**/
|
|
7901
|
+
setEnableWorkSession: AugmentedSubmittable<(enable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7902
|
+
bool
|
|
7903
|
+
]>;
|
|
7904
|
+
/**
|
|
7905
|
+
* Set what version of the testing protocol.
|
|
7906
|
+
**/
|
|
7907
|
+
setProtocolVersion: AugmentedSubmittable<(protocol: PolymeshWorkerCommonProtocol | {
|
|
7908
|
+
id?: any;
|
|
7909
|
+
version?: any;
|
|
7910
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7911
|
+
PolymeshWorkerCommonProtocol
|
|
7912
|
+
]>;
|
|
7913
|
+
/**
|
|
7914
|
+
* Submit a work request to the worker session.
|
|
7915
|
+
**/
|
|
7916
|
+
submitWorkRequest: AugmentedSubmittable<(request: PolymeshWorkerProtocolTestingTestWorkRequest | {
|
|
7917
|
+
VerifyVersion: any;
|
|
7918
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7919
|
+
PolymeshWorkerProtocolTestingTestWorkRequest
|
|
7920
|
+
]>;
|
|
7921
|
+
/**
|
|
7922
|
+
* Test the protocol version in the `Testing` protocol module.
|
|
7923
|
+
**/
|
|
7924
|
+
testVersion: AugmentedSubmittable<(protocol: PolymeshWorkerCommonProtocol | {
|
|
7925
|
+
id?: any;
|
|
7926
|
+
version?: any;
|
|
7927
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7928
|
+
PolymeshWorkerCommonProtocol
|
|
7929
|
+
]>;
|
|
7930
|
+
};
|
|
7656
7931
|
}
|
|
7657
7932
|
}
|
|
7658
7933
|
//# sourceMappingURL=augment-api-tx.d.ts.map
|