@polymeshassociation/polymesh-types 7.7.0 → 7.9.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/.yarn/install-state.gz +0 -0
- 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 +15 -2
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +139 -31
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +162 -2
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +175 -40
- 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 +532 -54
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +857 -364
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +893 -374
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/registry.d.ts +29 -1
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/types-lookup.d.ts +799 -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;
|
|
@@ -2038,15 +2040,31 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2038
2040
|
/**
|
|
2039
2041
|
* Create a settlement with batched leg affirmations.
|
|
2040
2042
|
*
|
|
2043
|
+
* All proofs in the batch are verified with a context derived from the signing account,
|
|
2044
|
+
* so another account cannot extract and submit a subset of the batch. Clients must
|
|
2045
|
+
* generate the proofs with [`non_relayer_batch_proof_context`] for that account.
|
|
2046
|
+
*
|
|
2041
2047
|
* # Arguments
|
|
2042
2048
|
* * `origin` - The origin of the call.
|
|
2043
2049
|
* * `proof` - The settlement proof with batched leg affirmations.
|
|
2044
2050
|
*
|
|
2045
2051
|
* # Errors
|
|
2046
2052
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2047
|
-
* * `
|
|
2053
|
+
* * `BatchedSettlementInvalidLegRefs` if an included affirmation references a different
|
|
2054
|
+
* settlement or leg.
|
|
2048
2055
|
* * `SettlementMissingLegs` if the settlement has no legs.
|
|
2049
2056
|
* * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
|
|
2057
|
+
* * `SettlementAlreadyExists` if this settlement reference has already been created.
|
|
2058
|
+
* * `AssetMissing` if a revealed asset or a leg's asset keys are missing.
|
|
2059
|
+
* * `AssetIsFrozen` if a revealed asset is frozen.
|
|
2060
|
+
* * `CurveTreeRootNotFound` if an asset or account curve-tree root is missing or expired.
|
|
2061
|
+
* * `CurveTreeError` if a leg's mediator count cannot be derived.
|
|
2062
|
+
* * `NullifierAlreadyUsed` if an included affirmation's account state nullifier has
|
|
2063
|
+
* already been used.
|
|
2064
|
+
* * `SettlementNotPending`, `LegNotFound`, `AlreadyRejected`, `AlreadyFinalized`,
|
|
2065
|
+
* `InvalidAffirmationStatusTransition`, or `NoPendingAffirmations` if an included
|
|
2066
|
+
* sender/receiver affirmation is invalid.
|
|
2067
|
+
* * `InvalidProof` if the settlement or an included affirmation proof is invalid.
|
|
2050
2068
|
**/
|
|
2051
2069
|
batchedSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegProofsBatchedSettlementProof | {
|
|
2052
2070
|
settlement?: any;
|
|
@@ -2055,15 +2073,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2055
2073
|
PolymeshDartBpLegProofsBatchedSettlementProof
|
|
2056
2074
|
]>;
|
|
2057
2075
|
/**
|
|
2058
|
-
* Create a new Confidential
|
|
2076
|
+
* Create a new Confidential asset.
|
|
2059
2077
|
*
|
|
2060
2078
|
* # Arguments
|
|
2061
|
-
* * `
|
|
2062
|
-
*
|
|
2063
|
-
*
|
|
2064
|
-
* * `
|
|
2065
|
-
* * `
|
|
2066
|
-
* * `
|
|
2079
|
+
* * `origin` - The origin of the call.
|
|
2080
|
+
* * `name` - Asset name.
|
|
2081
|
+
* * `symbol` - Asset symbol.
|
|
2082
|
+
* * `decimals` - Asset decimals.
|
|
2083
|
+
* * `mediators` - Mediator account and encryption keys.
|
|
2084
|
+
* * `auditors` - Auditor encryption keys.
|
|
2085
|
+
* * `data` - Extra asset metadata.
|
|
2086
|
+
*
|
|
2087
|
+
* # Errors
|
|
2088
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2089
|
+
* * `InvalidAssetName` if `name` is empty.
|
|
2090
|
+
* * `NameTooLong` if `name` exceeds `MAX_NAME_LEN`.
|
|
2091
|
+
* * `SymbolTooLong` if `symbol` exceeds `MAX_SYMBOL_LEN`.
|
|
2092
|
+
* * `TooManyDecimals` if `decimals` exceeds `MAX_DECIMALS`.
|
|
2093
|
+
* * `MissingRequiredClaim` if the caller lacks the asset-creator claim, or a selected
|
|
2094
|
+
* auditor/mediator lacks the required role claim.
|
|
2095
|
+
* * `AccountMissing` if a mediator Confidential account is not registered.
|
|
2096
|
+
* * `EncryptionKeyMissing` if an auditor/mediator encryption key is not registered.
|
|
2097
|
+
* * `EncryptionKeyNotShared` if a mediator key was neither the account's own key nor
|
|
2098
|
+
* shared with it.
|
|
2099
|
+
* * `NoAuditorsOrMediators` if neither auditors nor mediators are provided.
|
|
2100
|
+
* * `AssetStateInvalid` if the asset keys or asset state cannot be built/committed.
|
|
2101
|
+
* * `AssetIdOverflow` if no more asset IDs are available.
|
|
2067
2102
|
**/
|
|
2068
2103
|
createAsset: AugmentedSubmittable<(name: Text | string, symbol: Text | string, decimals: u8 | AnyNumber | Uint8Array, mediators: BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>, auditors: BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2069
2104
|
Text,
|
|
@@ -2082,9 +2117,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2082
2117
|
*
|
|
2083
2118
|
* # Errors
|
|
2084
2119
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2085
|
-
* * `InvalidProof` if the proof is invalid.
|
|
2086
2120
|
* * `SettlementMissingLegs` if the settlement has no legs.
|
|
2087
2121
|
* * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
|
|
2122
|
+
* * `SettlementAlreadyExists` if this settlement reference has already been created.
|
|
2123
|
+
* * `AssetMissing` if a revealed asset or a leg's asset keys are missing.
|
|
2124
|
+
* * `AssetIsFrozen` if a revealed asset is frozen.
|
|
2125
|
+
* * `CurveTreeRootNotFound` if the asset curve-tree root is missing or expired.
|
|
2126
|
+
* * `CurveTreeError` if a leg's mediator count cannot be derived.
|
|
2127
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2088
2128
|
**/
|
|
2089
2129
|
createSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegSettlementProof | {
|
|
2090
2130
|
memo?: any;
|
|
@@ -2093,18 +2133,65 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2093
2133
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2094
2134
|
PolymeshDartBpLegSettlementProof
|
|
2095
2135
|
]>;
|
|
2136
|
+
/**
|
|
2137
|
+
* Register a new shared encryption key and distribute it to registered encryption keys.
|
|
2138
|
+
*
|
|
2139
|
+
* The shared key is linked to the caller's DID (normally the asset issuer). It can then
|
|
2140
|
+
* be used as an asset auditor key, or as a mediator key by the owner of a Confidential
|
|
2141
|
+
* account whose encryption key it was distributed to.
|
|
2142
|
+
*
|
|
2143
|
+
* # Arguments
|
|
2144
|
+
* * `origin` - The origin of the call (must meet the auditor requirements).
|
|
2145
|
+
* * `proof` - The key distribution proof.
|
|
2146
|
+
*
|
|
2147
|
+
* # Errors
|
|
2148
|
+
* * `BadOrigin` if `origin` isn't signed.
|
|
2149
|
+
* * `MissingRequiredClaim` if the caller doesn't meet the auditor requirements, or a
|
|
2150
|
+
* recipient's DID doesn't meet the auditor requirements.
|
|
2151
|
+
* * `EncryptionKeyAlreadyRegistered` if the shared key is already registered.
|
|
2152
|
+
* * `EncryptionKeyMissing` if a recipient key isn't registered.
|
|
2153
|
+
* * `NoKeyRecipients` if the proof has no recipients.
|
|
2154
|
+
* * `TooManySharedKeyRecipients` if the proof exceeds `MaxSharedKeyRecipients`.
|
|
2155
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2156
|
+
**/
|
|
2157
|
+
distributeEncryptionKey: AugmentedSubmittable<(proof: PolymeshDartBpKeyDistributionProof | {
|
|
2158
|
+
publicKey?: any;
|
|
2159
|
+
recipientPks?: any;
|
|
2160
|
+
inner?: any;
|
|
2161
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2162
|
+
PolymeshDartBpKeyDistributionProof
|
|
2163
|
+
]>;
|
|
2096
2164
|
/**
|
|
2097
2165
|
* Create and execute an instant settlement.
|
|
2098
2166
|
*
|
|
2167
|
+
* All proofs in the instant settlement are verified with a context derived from the
|
|
2168
|
+
* signing account, so another account cannot extract and submit a subset of the batch.
|
|
2169
|
+
* Clients must generate the proofs with [`non_relayer_batch_proof_context`] for that
|
|
2170
|
+
* account.
|
|
2171
|
+
*
|
|
2099
2172
|
* # Arguments
|
|
2100
2173
|
* * `origin` - The origin of the call.
|
|
2101
2174
|
* * `proof` - The settlement proof with batched leg affirmations.
|
|
2102
2175
|
*
|
|
2103
2176
|
* # Errors
|
|
2104
2177
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2105
|
-
* * `
|
|
2178
|
+
* * `BatchedSettlementInvalidLegRefs` if the leg affirmations do not match the settlement
|
|
2179
|
+
* legs or a mediator rejected.
|
|
2106
2180
|
* * `SettlementMissingLegs` if the settlement has no legs.
|
|
2107
2181
|
* * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
|
|
2182
|
+
* * `SettlementAlreadyExists` if this settlement reference has already been created.
|
|
2183
|
+
* * `AssetMissing` if a revealed asset or a leg's asset keys are missing.
|
|
2184
|
+
* * `AssetIsFrozen` if a revealed asset is frozen.
|
|
2185
|
+
* * `CurveTreeRootNotFound` if an asset or account curve-tree root is missing or expired.
|
|
2186
|
+
* * `CurveTreeError` if a leg's mediator count cannot be derived.
|
|
2187
|
+
* * `NullifierAlreadyUsed` if an included affirmation's account state nullifier has
|
|
2188
|
+
* already been used.
|
|
2189
|
+
* * `SettlementNotPending`, `LegNotFound`, `WrongMediatorId`, `MissingLegMediators`,
|
|
2190
|
+
* `AlreadyAffirmed`, `AlreadyRejected`, `AlreadyFinalized`,
|
|
2191
|
+
* `InvalidAffirmationStatusTransition`, or `NoPendingAffirmations` if an included
|
|
2192
|
+
* affirmation is invalid.
|
|
2193
|
+
* * `SettlementNotExecuted` if the settlement did not finalize successfully.
|
|
2194
|
+
* * `InvalidProof` if the settlement or an included affirmation proof is invalid.
|
|
2108
2195
|
**/
|
|
2109
2196
|
executeInstantSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegInstantInstantSettlementProof | {
|
|
2110
2197
|
settlement?: any;
|
|
@@ -2123,11 +2210,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2123
2210
|
*
|
|
2124
2211
|
* # Errors
|
|
2125
2212
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2126
|
-
* * `
|
|
2213
|
+
* * `NotLastPendingAffirmation` if this is not the settlement's last pending affirmation.
|
|
2214
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2215
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2127
2216
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2217
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2128
2218
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2129
|
-
* * `
|
|
2130
|
-
* * `
|
|
2219
|
+
* * `AlreadyRejected` if the receiver has already rejected the leg.
|
|
2220
|
+
* * `AlreadyFinalized` if the receiver has already finalized the leg.
|
|
2221
|
+
* * `InvalidAffirmationStatusTransition` if the receiver has already affirmed or the
|
|
2222
|
+
* status transition is otherwise invalid.
|
|
2223
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2224
|
+
* zero.
|
|
2225
|
+
* * `SettlementNotExecuted` if the settlement did not execute after the affirmation.
|
|
2226
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2131
2227
|
**/
|
|
2132
2228
|
instantReceiverAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsInstantReceiverAffirmationProof | {
|
|
2133
2229
|
legRef?: any;
|
|
@@ -2149,11 +2245,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2149
2245
|
*
|
|
2150
2246
|
* # Errors
|
|
2151
2247
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2152
|
-
* * `
|
|
2248
|
+
* * `NotLastPendingAffirmation` if this is not the settlement's last pending affirmation.
|
|
2249
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2250
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2153
2251
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2252
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2154
2253
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2155
|
-
* * `
|
|
2156
|
-
* * `
|
|
2254
|
+
* * `AlreadyRejected` if the sender has already rejected the leg.
|
|
2255
|
+
* * `AlreadyFinalized` if the sender has already finalized the leg.
|
|
2256
|
+
* * `InvalidAffirmationStatusTransition` if the sender has already affirmed or the status
|
|
2257
|
+
* transition is otherwise invalid.
|
|
2258
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2259
|
+
* zero.
|
|
2260
|
+
* * `SettlementNotExecuted` if the settlement did not execute after the affirmation.
|
|
2261
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2157
2262
|
**/
|
|
2158
2263
|
instantSenderAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsInstantSenderAffirmationProof | {
|
|
2159
2264
|
legRef?: any;
|
|
@@ -2173,11 +2278,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2173
2278
|
*
|
|
2174
2279
|
* # Errors
|
|
2175
2280
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2176
|
-
* * `SettlementNotPending` if the settlement is not pending.
|
|
2177
2281
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2282
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2178
2283
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2179
|
-
* * `
|
|
2180
|
-
* * `
|
|
2284
|
+
* * `WrongMediatorId` if the mediator index is not valid for the leg.
|
|
2285
|
+
* * `MissingLegMediators` if the revealed leg has no stored mediator keys.
|
|
2286
|
+
* * `AlreadyAffirmed` if the mediator has already affirmed the leg.
|
|
2287
|
+
* * `AlreadyRejected` if the mediator has already rejected the leg.
|
|
2288
|
+
* * `AlreadyFinalized` if the mediator has already finalized the leg.
|
|
2289
|
+
* * `InvalidAffirmationStatusTransition` if the requested status transition is invalid.
|
|
2290
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2291
|
+
* zero.
|
|
2292
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2181
2293
|
**/
|
|
2182
2294
|
mediatorAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpLegProofsMediatorAffirmationProof | {
|
|
2183
2295
|
legRef?: any;
|
|
@@ -2195,14 +2307,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2195
2307
|
* * `proof` - The minting proof.
|
|
2196
2308
|
*
|
|
2197
2309
|
* # Errors
|
|
2198
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2310
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2199
2311
|
* * `AccountMissing` if the Confidential account is not registered.
|
|
2200
|
-
* * `
|
|
2312
|
+
* * `EncryptionKeyMissing` if the account's encryption key is missing.
|
|
2313
|
+
* * `EncryptionKeyMismatch` if the proof encryption key doesn't match the account's key.
|
|
2201
2314
|
* * `NotAccountOwner` if the caller is not the owner of the Confidential account.
|
|
2202
|
-
* * `
|
|
2315
|
+
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2203
2316
|
* * `NotAssetOwner` if the caller is not the owner of the Confidential asset.
|
|
2204
|
-
* * `MaxTotalSupplyExceeded` if the total supply
|
|
2205
|
-
* * `NullifierAlreadyUsed` if the
|
|
2317
|
+
* * `MaxTotalSupplyExceeded` if the new total supply would exceed the configured maximum.
|
|
2318
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2319
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2320
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2206
2321
|
**/
|
|
2207
2322
|
mintAsset: AugmentedSubmittable<(proof: PolymeshDartBpAssetAssetMintingProof | {
|
|
2208
2323
|
pk?: any;
|
|
@@ -2225,10 +2340,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2225
2340
|
*
|
|
2226
2341
|
* # Errors
|
|
2227
2342
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2228
|
-
* * `
|
|
2343
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2344
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2229
2345
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2346
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2230
2347
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2231
|
-
* * `
|
|
2348
|
+
* * `AlreadyRejected` if the receiver has already rejected the leg.
|
|
2349
|
+
* * `AlreadyFinalized` if the receiver has already finalized the leg.
|
|
2350
|
+
* * `InvalidAffirmationStatusTransition` if the receiver has already affirmed or the
|
|
2351
|
+
* status transition is otherwise invalid.
|
|
2352
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2353
|
+
* zero.
|
|
2354
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2232
2355
|
**/
|
|
2233
2356
|
receiverAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverAffirmationProof | {
|
|
2234
2357
|
legRef?: any;
|
|
@@ -2248,9 +2371,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2248
2371
|
*
|
|
2249
2372
|
* # Errors
|
|
2250
2373
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2251
|
-
* * `
|
|
2374
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2375
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2252
2376
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2377
|
+
* * `SettlementNotExecuted` if the settlement has not been executed.
|
|
2253
2378
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2379
|
+
* * `AlreadyRejected` if the receiver has already rejected the leg.
|
|
2380
|
+
* * `AlreadyFinalized` if the receiver has already finalized the leg.
|
|
2381
|
+
* * `InvalidAffirmationStatusTransition` if the receiver has not affirmed the leg or the
|
|
2382
|
+
* status transition is otherwise invalid.
|
|
2383
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2254
2384
|
**/
|
|
2255
2385
|
receiverClaim: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverClaimProof | {
|
|
2256
2386
|
legRef?: any;
|
|
@@ -2270,9 +2400,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2270
2400
|
*
|
|
2271
2401
|
* # Errors
|
|
2272
2402
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2273
|
-
* * `
|
|
2403
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2404
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2274
2405
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2406
|
+
* * `SettlementAlreadyExecuted` if the settlement has already been executed.
|
|
2275
2407
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2408
|
+
* * `AlreadyRejected` if the receiver has already rejected the leg.
|
|
2409
|
+
* * `AlreadyFinalized` if the receiver has already finalized the leg.
|
|
2410
|
+
* * `InvalidAffirmationStatusTransition` if the receiver has not affirmed the leg or the
|
|
2411
|
+
* status transition is otherwise invalid.
|
|
2412
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2276
2413
|
**/
|
|
2277
2414
|
receiverRevertAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverRevertAffirmationProof | {
|
|
2278
2415
|
legRef?: any;
|
|
@@ -2293,10 +2430,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2293
2430
|
* * `proof` - The Batched Account asset registration proof.
|
|
2294
2431
|
*
|
|
2295
2432
|
* # Errors
|
|
2296
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2433
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2434
|
+
* * `TooManyProofs` if the proof exceeds `MaxAccountAssetRegProofs`.
|
|
2297
2435
|
* * `AccountMissing` if the Confidential account is not registered.
|
|
2436
|
+
* * `EncryptionKeyMissing` if the account's encryption key is missing.
|
|
2437
|
+
* * `EncryptionKeyMismatch` if the proof key doesn't match the account's registered key.
|
|
2298
2438
|
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2299
|
-
* * `AccountAssetAlreadyRegistered` if the Confidential account has already registered the
|
|
2439
|
+
* * `AccountAssetAlreadyRegistered` if the Confidential account has already registered the
|
|
2440
|
+
* Confidential asset.
|
|
2300
2441
|
* * `NotAccountOwner` if the caller is not the owner of the Confidential account.
|
|
2301
2442
|
* * `InvalidProof` if the proof is invalid.
|
|
2302
2443
|
**/
|
|
@@ -2306,15 +2447,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2306
2447
|
PolymeshDartBpAccountBatchedAccountAssetRegistrationProof
|
|
2307
2448
|
]>;
|
|
2308
2449
|
/**
|
|
2309
|
-
* Register
|
|
2450
|
+
* Register Confidential accounts and their encryption keys.
|
|
2310
2451
|
*
|
|
2311
2452
|
* # Arguments
|
|
2312
|
-
* * `
|
|
2313
|
-
* * `
|
|
2453
|
+
* * `origin` - The origin of the call.
|
|
2454
|
+
* * `proof` - The account registration proof.
|
|
2314
2455
|
*
|
|
2315
2456
|
* # Errors
|
|
2316
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2317
|
-
* * `
|
|
2457
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2458
|
+
* * `TooManyProofs` if the proof exceeds `MaxKeysPerRegProof`.
|
|
2459
|
+
* * `AccountAlreadyCreated` if a Confidential account is already registered.
|
|
2460
|
+
* * `EncryptionKeyAlreadyRegistered` if an encryption key is already registered.
|
|
2461
|
+
* * `NotAccountOwner` if an account key is already registered to another identity as a fee
|
|
2462
|
+
* account.
|
|
2463
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2318
2464
|
**/
|
|
2319
2465
|
registerAccounts: AugmentedSubmittable<(proof: PolymeshDartBpKeysAccountRegistrationProof | {
|
|
2320
2466
|
accounts?: any;
|
|
@@ -2330,8 +2476,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2330
2476
|
* * `proof` - The auditor/mediator encryption registration proof.
|
|
2331
2477
|
*
|
|
2332
2478
|
* # Errors
|
|
2333
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2334
|
-
* * `
|
|
2479
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2480
|
+
* * `TooManyProofs` if the proof exceeds `MaxKeysPerRegProof`.
|
|
2481
|
+
* * `EncryptionKeyAlreadyRegistered` if an encryption key is already registered.
|
|
2335
2482
|
* * `InvalidProof` if the proof is invalid.
|
|
2336
2483
|
**/
|
|
2337
2484
|
registerEncryptionKeys: AugmentedSubmittable<(proof: PolymeshDartBpKeysEncryptionKeyRegistrationProof | {
|
|
@@ -2350,12 +2497,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2350
2497
|
* * `proof` - The batched fee account registration proof.
|
|
2351
2498
|
*
|
|
2352
2499
|
* # Errors
|
|
2353
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2354
|
-
* * `
|
|
2355
|
-
* * `
|
|
2500
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2501
|
+
* * `TooManyProofs` if the proof exceeds `MaxFeeAccountRegProofs`.
|
|
2502
|
+
* * `NotAccountOwner` if the account key is already registered to another identity as a
|
|
2503
|
+
* Confidential account.
|
|
2504
|
+
* * `FeeAccountAlreadyRegistered` if a fee account is already registered.
|
|
2356
2505
|
* * `InvalidFeeAssetId` if the fee asset ID is invalid.
|
|
2506
|
+
* * `AmountOverflow` if an amount does not fit the pallet balance type.
|
|
2357
2507
|
* * `InvalidProof` if the proof is invalid.
|
|
2358
|
-
* * `InsufficientBalance` if the caller
|
|
2508
|
+
* * `InsufficientBalance` if the caller cannot fund the total fee-account deposit.
|
|
2359
2509
|
**/
|
|
2360
2510
|
registerFeeAccounts: AugmentedSubmittable<(proof: PolymeshDartBpFeeBatchedFeeAccountRegistrationProof | {
|
|
2361
2511
|
proofs?: any;
|
|
@@ -2370,8 +2520,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2370
2520
|
*
|
|
2371
2521
|
* Relayers can charge a commission fee on top of the transaction fee (i.e. `commission fee + transaction fee = fee amount`).
|
|
2372
2522
|
*
|
|
2373
|
-
*
|
|
2374
|
-
*
|
|
2523
|
+
* Every proof in the batch is verified with a context derived from the fee payment's
|
|
2524
|
+
* one-time nullifier. The fee payment itself commits to the complete ordered batch and,
|
|
2525
|
+
* unless broadcast, the submitting relayer.
|
|
2526
|
+
*
|
|
2527
|
+
* Relayers are responsible for checking the fee payment terms and the fee and batch proofs before submission.
|
|
2528
|
+
* The signed extension checks whether the fee nullifier is already spent; a concurrent spend can still make
|
|
2529
|
+
* that check stale before inclusion. Fee-payment roots are checked against the shorter relayer root-age limit
|
|
2530
|
+
* during dispatch, so relayers should submit with enough time remaining for inclusion. If the batch proofs
|
|
2531
|
+
* are invalid, the user is still responsible for paying the fee to the relayer.
|
|
2375
2532
|
*
|
|
2376
2533
|
* # Arguments
|
|
2377
2534
|
* * `origin` - The origin of the call. This is the relayer.
|
|
@@ -2379,15 +2536,43 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2379
2536
|
*
|
|
2380
2537
|
* # Errors
|
|
2381
2538
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2539
|
+
* * `NullifierAlreadyUsed` if the fee-payment nullifier has already been spent.
|
|
2540
|
+
* * `RelayerCallMustBeTopLevel` if this call is nested or the signed extension did not run.
|
|
2541
|
+
* * `TooManyProofs` if the batch exceeds `MaxBatchedProofs`.
|
|
2542
|
+
* * `EmptyBatchedProofs` if the batch contains no proofs.
|
|
2543
|
+
* * `AmountOverflow` if the fee amount does not fit the pallet balance type.
|
|
2544
|
+
* * `InvalidFeeAssetId` if the fee asset ID is invalid.
|
|
2545
|
+
* * `CurveTreeRootNotFound` if the fee-payment root is missing or too old.
|
|
2382
2546
|
* * `InvalidFeePaymentProof` if the fee payment proof is invalid.
|
|
2383
|
-
* * `
|
|
2547
|
+
* * `InsufficientBalance` if the fee pool cannot reimburse the relayer.
|
|
2548
|
+
*
|
|
2549
|
+
* Errors from processing the batched Confidential proofs do not fail this extrinsic.
|
|
2550
|
+
* They are reported in the `RelayerBatchedProofs.batch_result` event after the fee payment
|
|
2551
|
+
* has been verified and charged.
|
|
2384
2552
|
**/
|
|
2385
2553
|
relayerSubmitBatchedProofs: AugmentedSubmittable<(proof: PolymeshDartBpFeeFeePaymentWithBatchedProofs | {
|
|
2386
2554
|
feePayment?: any;
|
|
2387
2555
|
batchedProofs?: any;
|
|
2556
|
+
isBroadcast?: any;
|
|
2388
2557
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2389
2558
|
PolymeshDartBpFeeFeePaymentWithBatchedProofs
|
|
2390
2559
|
]>;
|
|
2560
|
+
/**
|
|
2561
|
+
* Remove the required claim for a gated role (Root only).
|
|
2562
|
+
*
|
|
2563
|
+
* The role becomes permissionless again (mediators keep falling back to the
|
|
2564
|
+
* auditor spec while that one is set).
|
|
2565
|
+
*
|
|
2566
|
+
* # Arguments
|
|
2567
|
+
* * `origin` - The origin of the call (must be Root).
|
|
2568
|
+
* * `role` - The gated role.
|
|
2569
|
+
*
|
|
2570
|
+
* # Errors
|
|
2571
|
+
* * `BadOrigin` if `origin` isn't Root.
|
|
2572
|
+
**/
|
|
2573
|
+
removeRequiredClaim: AugmentedSubmittable<(role: PalletConfidentialAssetsRoleKind | 'AssetCreator' | 'Auditor' | 'Mediator' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2574
|
+
PalletConfidentialAssetsRoleKind
|
|
2575
|
+
]>;
|
|
2391
2576
|
/**
|
|
2392
2577
|
* Sender affirms a settlement leg.
|
|
2393
2578
|
*
|
|
@@ -2397,10 +2582,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2397
2582
|
*
|
|
2398
2583
|
* # Errors
|
|
2399
2584
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2400
|
-
* * `
|
|
2585
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2586
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2401
2587
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2588
|
+
* * `SettlementNotPending` if the settlement is not pending.
|
|
2402
2589
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2403
|
-
* * `
|
|
2590
|
+
* * `AlreadyRejected` if the sender has already rejected the leg.
|
|
2591
|
+
* * `AlreadyFinalized` if the sender has already finalized the leg.
|
|
2592
|
+
* * `InvalidAffirmationStatusTransition` if the sender has already affirmed or the status
|
|
2593
|
+
* transition is otherwise invalid.
|
|
2594
|
+
* * `NoPendingAffirmations` if the settlement's pending-affirmation counter is already
|
|
2595
|
+
* zero.
|
|
2596
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2404
2597
|
**/
|
|
2405
2598
|
senderAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderAffirmationProof | {
|
|
2406
2599
|
legRef?: any;
|
|
@@ -2420,9 +2613,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2420
2613
|
*
|
|
2421
2614
|
* # Errors
|
|
2422
2615
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2423
|
-
* * `
|
|
2616
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2617
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2424
2618
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2619
|
+
* * `SettlementAlreadyExecuted` if the settlement has already been executed.
|
|
2425
2620
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2621
|
+
* * `AlreadyRejected` if the sender has already rejected the leg.
|
|
2622
|
+
* * `AlreadyFinalized` if the sender has already finalized the leg.
|
|
2623
|
+
* * `InvalidAffirmationStatusTransition` if the sender has not affirmed the leg or the
|
|
2624
|
+
* status transition is otherwise invalid.
|
|
2625
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2426
2626
|
**/
|
|
2427
2627
|
senderRevertAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderRevertAffirmationProof | {
|
|
2428
2628
|
legRef?: any;
|
|
@@ -2442,9 +2642,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2442
2642
|
*
|
|
2443
2643
|
* # Errors
|
|
2444
2644
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2445
|
-
* * `
|
|
2645
|
+
* * `NullifierAlreadyUsed` if the account state nullifier has already been used.
|
|
2646
|
+
* * `CurveTreeRootNotFound` if the account curve-tree root is missing or expired.
|
|
2446
2647
|
* * `SettlementNotFound` if the settlement is not found.
|
|
2648
|
+
* * `SettlementNotExecuted` if the settlement has not been executed.
|
|
2447
2649
|
* * `LegNotFound` if the leg is not found in the settlement.
|
|
2650
|
+
* * `AlreadyRejected` if the sender has already rejected the leg.
|
|
2651
|
+
* * `AlreadyFinalized` if the sender has already finalized the leg.
|
|
2652
|
+
* * `InvalidAffirmationStatusTransition` if the leg is still pending or the status
|
|
2653
|
+
* transition is otherwise invalid.
|
|
2654
|
+
* * `InvalidProof` if the proof is invalid.
|
|
2448
2655
|
**/
|
|
2449
2656
|
senderUpdateCounter: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderCounterUpdateProof | {
|
|
2450
2657
|
legRef?: any;
|
|
@@ -2455,16 +2662,93 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2455
2662
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2456
2663
|
PolymeshDartBpAffirmationProofsSenderCounterUpdateProof
|
|
2457
2664
|
]>;
|
|
2665
|
+
/**
|
|
2666
|
+
* Set the freeze state as the issuer or Root. Only Root may change a Root freeze.
|
|
2667
|
+
*
|
|
2668
|
+
* # Arguments
|
|
2669
|
+
* * `origin` - The origin of the call (asset issuer or Root).
|
|
2670
|
+
* * `asset_id` - Confidential asset ID.
|
|
2671
|
+
* * `frozen` - Whether the asset should be frozen.
|
|
2672
|
+
*
|
|
2673
|
+
* # Errors
|
|
2674
|
+
* * `BadOrigin` if `origin` isn't Root, signed, or permitted to act for the asset owner.
|
|
2675
|
+
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2676
|
+
* * `NotAssetOwner` if a signed caller is not the owner of the Confidential asset.
|
|
2677
|
+
* * `AssetFrozenByRoot` if a non-Root caller tries to change or clear a Root freeze.
|
|
2678
|
+
* * `AssetStateInvalid` if the updated asset state cannot be committed.
|
|
2679
|
+
**/
|
|
2680
|
+
setAssetFrozen: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, frozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2681
|
+
u32,
|
|
2682
|
+
bool
|
|
2683
|
+
]>;
|
|
2684
|
+
/**
|
|
2685
|
+
* Set the required claim for a gated role (Root only).
|
|
2686
|
+
*
|
|
2687
|
+
* While a spec is set, a DID acting in that role must hold a live
|
|
2688
|
+
* (unexpired) claim equal to `claim` from one of `trusted_issuers`.
|
|
2689
|
+
* An empty issuer list blocks the role entirely (deny-all); remove the spec
|
|
2690
|
+
* (see `remove_required_claim`) to restore permissionless behavior.
|
|
2691
|
+
* Mediators fall back to the auditor spec when no mediator spec is set.
|
|
2692
|
+
*
|
|
2693
|
+
* # Arguments
|
|
2694
|
+
* * `origin` - The origin of the call (must be Root).
|
|
2695
|
+
* * `role` - The gated role.
|
|
2696
|
+
* * `claim` - The required claim (type, scope and value).
|
|
2697
|
+
* * `trusted_issuers` - DIDs trusted to issue the required claim.
|
|
2698
|
+
*
|
|
2699
|
+
* # Errors
|
|
2700
|
+
* * `BadOrigin` if `origin` isn't Root.
|
|
2701
|
+
**/
|
|
2702
|
+
setRequiredClaim: AugmentedSubmittable<(role: PalletConfidentialAssetsRoleKind | 'AssetCreator' | 'Auditor' | 'Mediator' | number | Uint8Array, claim: PolymeshPrimitivesIdentityClaimClaim | {
|
|
2703
|
+
Accredited: any;
|
|
2704
|
+
} | {
|
|
2705
|
+
Affiliate: any;
|
|
2706
|
+
} | {
|
|
2707
|
+
BuyLockup: any;
|
|
2708
|
+
} | {
|
|
2709
|
+
SellLockup: any;
|
|
2710
|
+
} | {
|
|
2711
|
+
CustomerDueDiligence: any;
|
|
2712
|
+
} | {
|
|
2713
|
+
KnowYourCustomer: any;
|
|
2714
|
+
} | {
|
|
2715
|
+
Jurisdiction: any;
|
|
2716
|
+
} | {
|
|
2717
|
+
Exempted: any;
|
|
2718
|
+
} | {
|
|
2719
|
+
Blocked: any;
|
|
2720
|
+
} | {
|
|
2721
|
+
Custom: any;
|
|
2722
|
+
} | string | Uint8Array, trustedIssuers: Vec<PolymeshPrimitivesIdentityId> | (PolymeshPrimitivesIdentityId | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
2723
|
+
PalletConfidentialAssetsRoleKind,
|
|
2724
|
+
PolymeshPrimitivesIdentityClaimClaim,
|
|
2725
|
+
Vec<PolymeshPrimitivesIdentityId>
|
|
2726
|
+
]>;
|
|
2458
2727
|
/**
|
|
2459
2728
|
* Submit a batch of proofs.
|
|
2460
2729
|
*
|
|
2730
|
+
* All proofs in the batch are verified with a context derived from the signing account,
|
|
2731
|
+
* so another account cannot extract and submit a subset of the batch. Clients must
|
|
2732
|
+
* generate the proofs with [`non_relayer_batch_proof_context`] for that account.
|
|
2733
|
+
*
|
|
2461
2734
|
* # Arguments
|
|
2462
2735
|
* * `origin` - The origin of the call.
|
|
2463
2736
|
* * `proof` - The batched proofs.
|
|
2464
2737
|
*
|
|
2465
2738
|
* # Errors
|
|
2466
2739
|
* * `BadOrigin` if `origin` isn't signed.
|
|
2467
|
-
* * `
|
|
2740
|
+
* * `TooManyProofs` if the batch exceeds `MaxBatchedProofs`.
|
|
2741
|
+
* * `InvalidProof` if any included proof is invalid.
|
|
2742
|
+
* * `SettlementMissingLegs`, `SettlementTooManyLegs`, `SettlementAlreadyExists`,
|
|
2743
|
+
* `AssetMissing`, `AssetIsFrozen`, `CurveTreeRootNotFound`, `CurveTreeError`, or
|
|
2744
|
+
* `BatchedSettlementInvalidLegRefs` for an included settlement or instant-settlement
|
|
2745
|
+
* proof.
|
|
2746
|
+
* * `NullifierAlreadyUsed`, `SettlementNotFound`, `SettlementNotPending`,
|
|
2747
|
+
* `SettlementNotExecuted`, `SettlementAlreadyExecuted`, `NotLastPendingAffirmation`,
|
|
2748
|
+
* `LegNotFound`, `AlreadyAffirmed`, `AlreadyRejected`, `AlreadyFinalized`,
|
|
2749
|
+
* `InvalidAffirmationStatusTransition`, `NoPendingAffirmations`, `WrongMediatorId`,
|
|
2750
|
+
* `MissingLegMediators`, or `SettlementLegCountMismatch` for an included affirmation,
|
|
2751
|
+
* counter update, revert, claim, or instant affirmation proof.
|
|
2468
2752
|
**/
|
|
2469
2753
|
submitBatchedProofs: AugmentedSubmittable<(proof: PolymeshDartBpBatchedBatchedProofs | {
|
|
2470
2754
|
proofs?: any;
|
|
@@ -2472,18 +2756,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2472
2756
|
PolymeshDartBpBatchedBatchedProofs
|
|
2473
2757
|
]>;
|
|
2474
2758
|
/**
|
|
2475
|
-
*
|
|
2759
|
+
* Top up a batch of fee accounts.
|
|
2476
2760
|
*
|
|
2477
2761
|
* # Arguments
|
|
2478
2762
|
* * `origin` - The origin of the call.
|
|
2479
2763
|
* * `proof` - The batched fee account topup proof.
|
|
2480
2764
|
*
|
|
2481
2765
|
* # Errors
|
|
2482
|
-
* * `BadOrigin` if `origin` isn't signed.
|
|
2483
|
-
* * `
|
|
2766
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2767
|
+
* * `TooManyProofs` if the proof exceeds `MaxFeeAccountTopupProofs`.
|
|
2768
|
+
* * `FeeAccountMissing` if a fee account is not registered.
|
|
2769
|
+
* * `NotAccountOwner` if the caller does not own a fee account.
|
|
2484
2770
|
* * `InvalidFeeAssetId` if the fee asset ID is invalid.
|
|
2771
|
+
* * `NullifierAlreadyUsed` if a nullifier is repeated in the batch or has already been
|
|
2772
|
+
* used on-chain.
|
|
2773
|
+
* * `AmountOverflow` if an amount does not fit the pallet balance type.
|
|
2774
|
+
* * `CurveTreeRootNotFound` if the fee-account curve-tree root is missing or expired.
|
|
2485
2775
|
* * `InvalidProof` if the proof is invalid.
|
|
2486
|
-
* * `InsufficientBalance` if the caller
|
|
2776
|
+
* * `InsufficientBalance` if the caller cannot fund the total top-up.
|
|
2487
2777
|
**/
|
|
2488
2778
|
topupFeeAccounts: AugmentedSubmittable<(proof: PolymeshDartBpFeeBatchedFeeAccountTopupProof | {
|
|
2489
2779
|
rootBlock?: any;
|
|
@@ -2491,6 +2781,35 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2491
2781
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2492
2782
|
PolymeshDartBpFeeBatchedFeeAccountTopupProof
|
|
2493
2783
|
]>;
|
|
2784
|
+
/**
|
|
2785
|
+
* Update the auditor and mediator encryption keys for an asset.
|
|
2786
|
+
*
|
|
2787
|
+
* The asset owner must retain the required live claims for every selected auditor and
|
|
2788
|
+
* mediator. Existing settlements keep their creation-time encrypted legs and mediator set.
|
|
2789
|
+
*
|
|
2790
|
+
* # Arguments
|
|
2791
|
+
* * `origin` - The origin of the call.
|
|
2792
|
+
* * `asset_id` - Confidential asset ID.
|
|
2793
|
+
* * `mediators` - New mediator account and encryption keys.
|
|
2794
|
+
* * `auditors` - New auditor encryption keys.
|
|
2795
|
+
*
|
|
2796
|
+
* # Errors
|
|
2797
|
+
* * `BadOrigin` if `origin` isn't signed or lacks call permissions.
|
|
2798
|
+
* * `AssetMissing` if the Confidential asset is not registered.
|
|
2799
|
+
* * `NotAssetOwner` if the caller is not the owner of the Confidential asset.
|
|
2800
|
+
* * `AccountMissing` if a mediator Confidential account is not registered.
|
|
2801
|
+
* * `EncryptionKeyMissing` if an auditor/mediator encryption key is not registered.
|
|
2802
|
+
* * `EncryptionKeyNotShared` if a mediator key was neither the account's own key nor
|
|
2803
|
+
* shared with it.
|
|
2804
|
+
* * `MissingRequiredClaim` if a selected auditor/mediator lacks the required role claim.
|
|
2805
|
+
* * `NoAuditorsOrMediators` if neither auditors nor mediators are provided.
|
|
2806
|
+
* * `AssetStateInvalid` if the asset keys or asset state cannot be built/committed.
|
|
2807
|
+
**/
|
|
2808
|
+
updateAssetKeys: AugmentedSubmittable<(assetId: u32 | AnyNumber | Uint8Array, mediators: BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>, auditors: BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>) => SubmittableExtrinsic<ApiType>, [
|
|
2809
|
+
u32,
|
|
2810
|
+
BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>,
|
|
2811
|
+
BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>
|
|
2812
|
+
]>;
|
|
2494
2813
|
};
|
|
2495
2814
|
corporateAction: {
|
|
2496
2815
|
/**
|
|
@@ -3952,6 +4271,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3952
4271
|
*
|
|
3953
4272
|
* # Arguments
|
|
3954
4273
|
* * `signers` - Signers of the multisig (They need to accept authorization before they are actually added).
|
|
4274
|
+
* Must not contain duplicates.
|
|
3955
4275
|
* * `sigs_required` - Number of sigs required to process a multi-sig tx.
|
|
3956
4276
|
* * `permissions` - optional custom permissions. Only the primary key can provide custom permissions.
|
|
3957
4277
|
**/
|
|
@@ -4250,6 +4570,41 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4250
4570
|
AccountId32,
|
|
4251
4571
|
bool
|
|
4252
4572
|
]>;
|
|
4573
|
+
/**
|
|
4574
|
+
* Freezes or unfreezes `nfts` for `holder`.
|
|
4575
|
+
*
|
|
4576
|
+
* A frozen NFT can't be transferred, moved between portfolios, redeemed or locked in a
|
|
4577
|
+
* settlement instruction while `holder` holds it. Controller transfers are exempt and
|
|
4578
|
+
* unfreeze the NFTs they take. The freeze is per holder, as in ERC-7943: it can be set
|
|
4579
|
+
* for a holder that doesn't hold the NFT yet, and applies if the NFT arrives.
|
|
4580
|
+
*
|
|
4581
|
+
* # Arguments
|
|
4582
|
+
* * `origin` - is a signer that has permissions to act as an agent of the collection.
|
|
4583
|
+
* * `holder` - the [`AssetHolder`] the freeze applies to.
|
|
4584
|
+
* * `nfts` - the [`NFTs`] to freeze or unfreeze.
|
|
4585
|
+
* * `frozen` - `true` to freeze, `false` to unfreeze.
|
|
4586
|
+
*
|
|
4587
|
+
* ## Errors
|
|
4588
|
+
* - `CollectionNotFound` - if the collection does not exist.
|
|
4589
|
+
* - `ZeroCount`, `MaxNumberOfNFTsPerLegExceeded`, `DuplicatedNFTId` - if `nfts` is empty,
|
|
4590
|
+
* too large or has duplicate ids.
|
|
4591
|
+
* - `NFTNotFound` - if freezing and any of the NFTs does not exist.
|
|
4592
|
+
*
|
|
4593
|
+
* # Permissions
|
|
4594
|
+
* * Asset
|
|
4595
|
+
**/
|
|
4596
|
+
setNftsFrozen: AugmentedSubmittable<(holder: PolymeshPrimitivesAssetAssetHolder | {
|
|
4597
|
+
Portfolio: any;
|
|
4598
|
+
} | {
|
|
4599
|
+
Account: any;
|
|
4600
|
+
} | string | Uint8Array, nfts: PolymeshPrimitivesNftNfTs | {
|
|
4601
|
+
assetId?: any;
|
|
4602
|
+
ids?: any;
|
|
4603
|
+
} | string | Uint8Array, frozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4604
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
4605
|
+
PolymeshPrimitivesNftNfTs,
|
|
4606
|
+
bool
|
|
4607
|
+
]>;
|
|
4253
4608
|
/**
|
|
4254
4609
|
* Transfer NFTs from the caller's account to another account.
|
|
4255
4610
|
*
|
|
@@ -7631,6 +7986,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7631
7986
|
* # Arguments
|
|
7632
7987
|
* * origin Required origin for removing a potential validator.
|
|
7633
7988
|
* * identity Validator's IdentityId.
|
|
7989
|
+
*
|
|
7990
|
+
* All stashes of `identity` that are still validating are chilled.
|
|
7991
|
+
*
|
|
7992
|
+
* The worst-case weight is charged up front and refunded down to the number of stashes
|
|
7993
|
+
* actually chilled.
|
|
7634
7994
|
**/
|
|
7635
7995
|
removePermissionedValidator: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7636
7996
|
PolymeshPrimitivesIdentityId
|
|
@@ -7653,6 +8013,124 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7653
8013
|
u32
|
|
7654
8014
|
]>;
|
|
7655
8015
|
};
|
|
8016
|
+
workerModules: {
|
|
8017
|
+
/**
|
|
8018
|
+
* Register a new protocol.
|
|
8019
|
+
*
|
|
8020
|
+
* # Arguments
|
|
8021
|
+
* * `origin` - The origin of the call, must be root.
|
|
8022
|
+
* * `protocol_id` - The ID of the protocol to register.
|
|
8023
|
+
* * `metadata` - The metadata of the protocol to register.
|
|
8024
|
+
*
|
|
8025
|
+
* # Errors
|
|
8026
|
+
* * `DispatchError::BadOrigin` - If the origin is not root.
|
|
8027
|
+
* * `Error::<T>::ProtocolAlreadyRegistered` - If the protocol is already registered.
|
|
8028
|
+
* * `Error::<T>::InvalidProtocolMetadata` - If the protocol metadata is invalid.
|
|
8029
|
+
**/
|
|
8030
|
+
registerProtocol: AugmentedSubmittable<(protocolId: u16 | AnyNumber | Uint8Array, metadata: PalletWorkerModulesProtocolMetadata | {
|
|
8031
|
+
protocolName?: any;
|
|
8032
|
+
protocolDescription?: any;
|
|
8033
|
+
protocolVersion?: any;
|
|
8034
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
8035
|
+
u16,
|
|
8036
|
+
PalletWorkerModulesProtocolMetadata
|
|
8037
|
+
]>;
|
|
8038
|
+
/**
|
|
8039
|
+
* Upload protocol module code.
|
|
8040
|
+
*
|
|
8041
|
+
* # Arguments
|
|
8042
|
+
* * `origin` - The origin of the call, must be root.
|
|
8043
|
+
* * `protocol` - The protocol to upload the module code for.
|
|
8044
|
+
* * `code` - The module code to upload.
|
|
8045
|
+
* * `module_version` - The version of the module being uploaded.
|
|
8046
|
+
*
|
|
8047
|
+
* # Errors
|
|
8048
|
+
* * `DispatchError::BadOrigin` - If the origin is not root.
|
|
8049
|
+
* * `Error::<T>::ProtocolNotRegistered` - If the protocol is not registered.
|
|
8050
|
+
* * `Error::<T>::ProtocolModuleCodeAlreadyExists` - If the protocol module code already exists.
|
|
8051
|
+
**/
|
|
8052
|
+
uploadProtocolModuleCode: AugmentedSubmittable<(protocol: PolymeshWorkerCommonProtocol | {
|
|
8053
|
+
id?: any;
|
|
8054
|
+
version?: any;
|
|
8055
|
+
} | string | Uint8Array, code: Bytes | string | Uint8Array, moduleVersion: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
8056
|
+
PolymeshWorkerCommonProtocol,
|
|
8057
|
+
Bytes,
|
|
8058
|
+
u32
|
|
8059
|
+
]>;
|
|
8060
|
+
/**
|
|
8061
|
+
* Upload protocol module config.
|
|
8062
|
+
*
|
|
8063
|
+
* # Arguments
|
|
8064
|
+
* * `origin` - The origin of the call, must be root.
|
|
8065
|
+
* * `config` - The module config to upload.
|
|
8066
|
+
*
|
|
8067
|
+
* # Errors
|
|
8068
|
+
* * `DispatchError::BadOrigin` - If the origin is not root.
|
|
8069
|
+
* * `Error::<T>::ProtocolNotRegistered` - If the protocol is not registered.
|
|
8070
|
+
* * `Error::<T>::ProtocolModuleConfigAlreadyExists` - If the protocol module config already exists.
|
|
8071
|
+
**/
|
|
8072
|
+
uploadProtocolModuleConfig: AugmentedSubmittable<(config: PalletWorkerModulesProtocolModuleConfig | {
|
|
8073
|
+
protocol?: any;
|
|
8074
|
+
initializationMethod?: any;
|
|
8075
|
+
modules?: any;
|
|
8076
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
8077
|
+
PalletWorkerModulesProtocolModuleConfig
|
|
8078
|
+
]>;
|
|
8079
|
+
/**
|
|
8080
|
+
* Upload protocol module context.
|
|
8081
|
+
*
|
|
8082
|
+
* # Arguments
|
|
8083
|
+
* * `origin` - The origin of the call, must be root.
|
|
8084
|
+
* * `protocol` - The protocol to upload the module context for.
|
|
8085
|
+
* * `context` - The module context to upload.
|
|
8086
|
+
*
|
|
8087
|
+
* # Errors
|
|
8088
|
+
* * `DispatchError::BadOrigin` - If the origin is not root.
|
|
8089
|
+
* * `Error::<T>::ProtocolNotRegistered` - If the protocol is not registered.
|
|
8090
|
+
* * `Error::<T>::ProtocolModuleContextAlreadyExists` - If the protocol module context already exists.
|
|
8091
|
+
**/
|
|
8092
|
+
uploadProtocolModuleContext: AugmentedSubmittable<(protocol: PolymeshWorkerCommonProtocol | {
|
|
8093
|
+
id?: any;
|
|
8094
|
+
version?: any;
|
|
8095
|
+
} | string | Uint8Array, context: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
8096
|
+
PolymeshWorkerCommonProtocol,
|
|
8097
|
+
Bytes
|
|
8098
|
+
]>;
|
|
8099
|
+
};
|
|
8100
|
+
workerTesting: {
|
|
8101
|
+
/**
|
|
8102
|
+
* Set whether to enable work session per block. This is used for testing purpose only.
|
|
8103
|
+
**/
|
|
8104
|
+
setEnableWorkSession: AugmentedSubmittable<(enable: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
8105
|
+
bool
|
|
8106
|
+
]>;
|
|
8107
|
+
/**
|
|
8108
|
+
* Set what version of the testing protocol.
|
|
8109
|
+
**/
|
|
8110
|
+
setProtocolVersion: AugmentedSubmittable<(protocol: PolymeshWorkerCommonProtocol | {
|
|
8111
|
+
id?: any;
|
|
8112
|
+
version?: any;
|
|
8113
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
8114
|
+
PolymeshWorkerCommonProtocol
|
|
8115
|
+
]>;
|
|
8116
|
+
/**
|
|
8117
|
+
* Submit a work request to the worker session.
|
|
8118
|
+
**/
|
|
8119
|
+
submitWorkRequest: AugmentedSubmittable<(request: PolymeshWorkerProtocolTestingTestWorkRequest | {
|
|
8120
|
+
VerifyVersion: any;
|
|
8121
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
8122
|
+
PolymeshWorkerProtocolTestingTestWorkRequest
|
|
8123
|
+
]>;
|
|
8124
|
+
/**
|
|
8125
|
+
* Test the protocol version in the `Testing` protocol module.
|
|
8126
|
+
**/
|
|
8127
|
+
testVersion: AugmentedSubmittable<(protocol: PolymeshWorkerCommonProtocol | {
|
|
8128
|
+
id?: any;
|
|
8129
|
+
version?: any;
|
|
8130
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
8131
|
+
PolymeshWorkerCommonProtocol
|
|
8132
|
+
]>;
|
|
8133
|
+
};
|
|
7656
8134
|
}
|
|
7657
8135
|
}
|
|
7658
8136
|
//# sourceMappingURL=augment-api-tx.d.ts.map
|