@polymeshassociation/polymesh-types 7.3.0 → 7.5.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.
@@ -1,9 +1,9 @@
1
1
  import '@polkadot/api-base/types/storage';
2
2
  import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
3
- import type { BTreeSet, Bytes, Null, Option, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
+ import type { BTreeSet, Bytes, Compact, Null, Option, Struct, Text, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, Call, H160, H256, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensFungibleImbalance, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetAssetDetails, PalletAssetTickerRegistration, PalletAssetTickerRegistrationConfig, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCommitteePolymeshVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, PalletCorporateActionsDistribution, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityClaim1stKey, PalletIdentityClaim2ndKey, PalletImOnlineSr25519AppSr25519Public, PalletPipsDepositInfo, PalletPipsPip, PalletPipsPipsMetadata, PalletPipsProposalState, PalletPipsSnapshotMetadata, PalletPipsSnapshottedPip, PalletPipsVote, PalletPipsVotingResult, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletRelayerSubsidy, PalletReviveDebugDebugSettings, PalletReviveEvmApiRpcTypesGenBlock, PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR, PalletReviveEvmBlockHashReceiptGasInfo, PalletReviveStorageAccountInfo, PalletReviveStorageDeletionQueueManager, PalletReviveVmCodeInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStoFundraiser, PalletTransactionPaymentReleases, PalletValidatorsPermissionedIdentityPrefs, PalletValidatorsSlashingSwitch, PolymeshContractsApi, PolymeshContractsApiCodeHash, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetHolder, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorization, PolymeshPrimitivesCheckpointNextCheckpoints, PolymeshPrimitivesCheckpointScheduleCheckpoints, PolymeshPrimitivesComplianceManagerAssetCompliance, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesGroupInactiveMember, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityDidRecord, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesMultisigProposalState, PolymeshPrimitivesMultisigProposalVoteCount, PolymeshPrimitivesNftNftCollection, PolymeshPrimitivesNftNftOwnerStatus, PolymeshPrimitivesProtocolFeeProtocolOp, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyKeyRecord, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationStatus, PolymeshPrimitivesSettlementInstruction, PolymeshPrimitivesSettlementInstructionStatus, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementLegStatus, PolymeshPrimitivesSettlementMediatorAffirmationStatus, PolymeshPrimitivesSettlementVenue, PolymeshPrimitivesStatisticsStat1stKey, PolymeshPrimitivesStatisticsStat2ndKey, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesSubsetSubsetRestrictionAssetId, PolymeshPrimitivesSubsetSubsetRestrictionPortfolioId, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceAssetTransferCompliance, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeRuntimeHoldReason, PolymeshRuntimeDevelopRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
6
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensFungibleImbalance, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetAssetDetails, PalletAssetTickerRegistration, PalletAssetTickerRegistrationConfig, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCommitteePolymeshVotes, PalletConfidentialAssetsAssetDetails, PalletConfidentialAssetsCurveTreeCurveTreeTimestamp, PalletConfidentialAssetsCurveTreeTimestampedTreeRoot, PalletConfidentialAssetsSettlementAffirmationStatus, PalletConfidentialAssetsSettlementLegAffirmParty, PalletConfidentialAssetsSettlementSettlementStatus, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, PalletCorporateActionsDistribution, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityClaim1stKey, PalletIdentityClaim2ndKey, PalletImOnlineSr25519AppSr25519Public, PalletMigrationsMigrationCursor, PalletPipsDepositInfo, PalletPipsPip, PalletPipsPipsMetadata, PalletPipsProposalState, PalletPipsSnapshotMetadata, PalletPipsSnapshottedPip, PalletPipsVote, PalletPipsVotingResult, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletRelayerSubsidy, PalletReviveDebugDebugSettings, PalletReviveEvmApiRpcTypesGenBlock, PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR, PalletReviveEvmBlockHashReceiptGasInfo, PalletReviveStorageAccountInfo, PalletReviveStorageDeletionQueueManager, PalletReviveVmCodeInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStoFundraiser, PalletTransactionPaymentReleases, PalletValidatorsPermissionedIdentityPrefs, PalletValidatorsSlashingSwitch, PolymeshDartBpAccountAccountStateCommitment, PolymeshDartBpAccountAccountStateNullifier, PolymeshDartBpAssetAssetKeys, PolymeshDartBpFeeFeeAccountStateCommitment, PolymeshDartBpFeeFeeAccountStateNullifier, PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey, PolymeshDartBpLegSettlementRef, PolymeshDartCurveTreeCommonCompressedInner, PolymeshDartCurveTreeCommonCompressedLeafValue, PolymeshDartCurveTreeCommonNodeLocation, PolymeshDartCurveTreeCompressedCurveTreeRoot, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetHolder, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorization, PolymeshPrimitivesCheckpointNextCheckpoints, PolymeshPrimitivesCheckpointScheduleCheckpoints, PolymeshPrimitivesComplianceManagerAssetCompliance, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesGroupInactiveMember, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityDidRecord, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesMultisigProposalState, PolymeshPrimitivesMultisigProposalVoteCount, PolymeshPrimitivesNftNftCollection, PolymeshPrimitivesNftNftOwnerStatus, PolymeshPrimitivesProtocolFeeProtocolOp, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyKeyRecord, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationStatus, PolymeshPrimitivesSettlementInstruction, PolymeshPrimitivesSettlementInstructionStatus, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementLegStatus, PolymeshPrimitivesSettlementMediatorAffirmationStatus, PolymeshPrimitivesSettlementVenue, PolymeshPrimitivesStatisticsStat1stKey, PolymeshPrimitivesStatisticsStat2ndKey, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesSubsetSubsetRestrictionAssetId, PolymeshPrimitivesSubsetSubsetRestrictionPortfolioId, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceAssetTransferCompliance, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeRuntimeHoldReason, PolymeshRuntimeDevelopRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
7
  import type { Observable } from '@polkadot/types/types';
8
8
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
9
9
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -664,71 +664,379 @@ declare module '@polkadot/api-base/types/storage' {
664
664
  PolymeshPrimitivesAssetAssetId
665
665
  ]>;
666
666
  };
667
- contracts: {
667
+ confidentialAssets: {
668
668
  /**
669
- * A mapping from a contract's code hash to its code info.
669
+ * Confidential account asset registrations.
670
+ *
671
+ * The chain must prevent the same account from registering the same asset multiple times.
672
+ *
673
+ * This is a double map where the first key is the account public key and the second key is the asset ID.
670
674
  **/
671
- codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmCodeInfo>>, [
672
- H256
675
+ accountAssetRegistrations: AugmentedQuery<ApiType, (arg1: PolymeshDartBpKeysAccountPublicKey | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<bool>, [
676
+ PolymeshDartBpKeysAccountPublicKey,
677
+ u32
678
+ ]>;
679
+ /**
680
+ * The current CurveTree Root for Confidential accounts curve tree.
681
+ **/
682
+ accountCurveTreeCurrentRoot: AugmentedQuery<ApiType, () => Observable<Option<{
683
+ readonly root: PolymeshDartCurveTreeCompressedCurveTreeRoot;
684
+ readonly timestamp: PalletConfidentialAssetsCurveTreeCurveTreeTimestamp;
685
+ } & Struct>>, [
673
686
  ]>;
674
687
  /**
675
- * The code associated with a given account.
688
+ * The height of the accounts curve tree.
689
+ **/
690
+ accountCurveTreeHeight: AugmentedQuery<ApiType, () => Observable<u8>, []>;
691
+ /**
692
+ * The block number of the last account curve tree root pruned.
676
693
  *
677
- * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
694
+ * For keeping track of the current pruning point of the account curve tree roots.
678
695
  **/
679
- contractInfoOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletContractsStorageContractInfo>>, [
680
- AccountId32
696
+ accountCurveTreeLastPruned: AugmentedQuery<ApiType, () => Observable<u32>, []>;
697
+ /**
698
+ * The block number of the last account curve tree root update.
699
+ *
700
+ * This is used to track the last time the account curve tree was updated.
701
+ **/
702
+ accountCurveTreeLastUpdate: AugmentedQuery<ApiType, () => Observable<PalletConfidentialAssetsCurveTreeCurveTreeTimestamp>, [
681
703
  ]>;
682
704
  /**
683
- * Evicted contracts that await child trie deletion.
705
+ * CurveTree Roots for Confidential accounts curve tree.
684
706
  *
685
- * Child trie deletion is a heavy operation depending on the amount of storage items
686
- * stored in said trie. Therefore this operation is performed lazily in `on_idle`.
707
+ * At the end of each block we will store the root of the accounts curve tree.
708
+ * The map key is the block number and the value is the root of the accounts curve tree.
687
709
  **/
688
- deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
710
+ accountCurveTreeRoots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<{
711
+ readonly root: PolymeshDartCurveTreeCompressedCurveTreeRoot;
712
+ readonly timestamp: PalletConfidentialAssetsCurveTreeCurveTreeTimestamp;
713
+ } & Struct>>, [
689
714
  u32
690
715
  ]>;
691
716
  /**
692
- * A pair of monotonic counters used to track the latest contract marked for deletion
693
- * and the latest deleted contract in queue.
717
+ * Confidential account to identity mapping.
694
718
  **/
695
- deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletContractsStorageDeletionQueueManager>, [
719
+ accountDid: AugmentedQuery<ApiType, (arg: PolymeshDartBpKeysAccountPublicKey | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
720
+ PolymeshDartBpKeysAccountPublicKey
696
721
  ]>;
697
722
  /**
698
- * A migration can span across multiple blocks. This storage defines a cursor to track the
699
- * progress of the migration, enabling us to resume from the last completed position.
723
+ * Mapping of Confidential account public keys to their encryption keys.
700
724
  **/
701
- migrationInProgress: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []>;
725
+ accountEncryptionKey: AugmentedQuery<ApiType, (arg: PolymeshDartBpKeysAccountPublicKey | string | Uint8Array) => Observable<Option<PolymeshDartBpKeysEncryptionPublicKey>>, [
726
+ PolymeshDartBpKeysAccountPublicKey
727
+ ]>;
702
728
  /**
703
- * This is a **monotonic** counter incremented on contract instantiation.
729
+ * Inner node storage for Confidential accounts curve tree.
730
+ **/
731
+ accountInnerNodes: AugmentedQuery<ApiType, (arg: PolymeshDartCurveTreeCommonNodeLocation | {
732
+ Leaf: any;
733
+ } | {
734
+ Odd: any;
735
+ } | {
736
+ Even: any;
737
+ } | string | Uint8Array) => Observable<Option<PolymeshDartCurveTreeCommonCompressedInner>>, [
738
+ PolymeshDartCurveTreeCommonNodeLocation
739
+ ]>;
740
+ /**
741
+ * Leaf storage for Confidential accounts curve tree.
704
742
  *
705
- * This is used in order to generate unique trie ids for contracts.
706
- * The trie id of a new contract is calculated from hash(account_id, nonce).
707
- * The nonce is required because otherwise the following sequence would lead to
708
- * a possible collision of storage:
743
+ * The leaves are immutable, so we use a simple storage map.
744
+ **/
745
+ accountLeaves: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshDartBpAccountAccountStateCommitment>>, [
746
+ u64
747
+ ]>;
748
+ /**
749
+ * Nullifiers for Confidential account state commitments.
709
750
  *
710
- * 1. Create a new contract.
711
- * 2. Terminate the contract.
712
- * 3. Immediately recreate the contract with the same account_id.
751
+ * This is used to ensure that the same account state commitment cannot be used twice.
752
+ **/
753
+ accountStateCommitmentNullifiers: AugmentedQuery<ApiType, (arg: PolymeshDartBpAccountAccountStateNullifier | string | Uint8Array) => Observable<Option<Null>>, [
754
+ PolymeshDartBpAccountAccountStateNullifier
755
+ ]>;
756
+ /**
757
+ * The current CurveTree Root for Confidential assets curve tree.
758
+ **/
759
+ assetCurveTreeCurrentRoot: AugmentedQuery<ApiType, () => Observable<Option<{
760
+ readonly root: PolymeshDartCurveTreeCompressedCurveTreeRoot;
761
+ readonly timestamp: PalletConfidentialAssetsCurveTreeCurveTreeTimestamp;
762
+ } & Struct>>, [
763
+ ]>;
764
+ /**
765
+ * The height of the assets curve tree.
766
+ **/
767
+ assetCurveTreeHeight: AugmentedQuery<ApiType, () => Observable<u8>, []>;
768
+ /**
769
+ * The block number of the last asset curve tree root pruned.
713
770
  *
714
- * This is bad because the contents of a trie are deleted lazily and there might be
715
- * storage of the old instantiation still in it when the new contract is created. Please
716
- * note that we can't replace the counter by the block number because the sequence above
717
- * can happen in the same block. We also can't keep the account counter in memory only
718
- * because storage is the only way to communicate across different extrinsics in the
719
- * same block.
771
+ * For keeping track of the current pruning point of the asset curve tree roots.
772
+ **/
773
+ assetCurveTreeLastPruned: AugmentedQuery<ApiType, () => Observable<u32>, []>;
774
+ /**
775
+ * The block number of the last asset curve tree root update.
720
776
  *
721
- * # Note
777
+ * This is used to track the last time the asset curve tree was updated.
778
+ **/
779
+ assetCurveTreeLastUpdate: AugmentedQuery<ApiType, () => Observable<PalletConfidentialAssetsCurveTreeCurveTreeTimestamp>, [
780
+ ]>;
781
+ /**
782
+ * CurveTree Roots for Confidential assets curve tree.
722
783
  *
723
- * Do not use it to determine the number of contracts. It won't be decremented if
724
- * a contract is destroyed.
784
+ * At the end of each block we will store the root of the assets curve tree.
785
+ * The map key is the block number and the value is the root of the assets curve tree.
725
786
  **/
726
- nonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
787
+ assetCurveTreeRoots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<{
788
+ readonly root: PolymeshDartCurveTreeCompressedCurveTreeRoot;
789
+ readonly timestamp: PalletConfidentialAssetsCurveTreeCurveTreeTimestamp;
790
+ } & Struct>>, [
791
+ u32
792
+ ]>;
727
793
  /**
728
- * A mapping from a contract's code hash to its code.
794
+ * Inner node storage for Confidential assets curve tree.
729
795
  **/
730
- pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [
731
- H256
796
+ assetInnerNodes: AugmentedQuery<ApiType, (arg: PolymeshDartCurveTreeCommonNodeLocation | {
797
+ Leaf: any;
798
+ } | {
799
+ Odd: any;
800
+ } | {
801
+ Even: any;
802
+ } | string | Uint8Array) => Observable<Option<PolymeshDartCurveTreeCommonCompressedInner>>, [
803
+ PolymeshDartCurveTreeCommonNodeLocation
804
+ ]>;
805
+ /**
806
+ * Leaf storage for Confidential assets curve tree.
807
+ *
808
+ * A counted map is used since we need to support updating the leaves in the tree.
809
+ **/
810
+ assetLeaves: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshDartCurveTreeCommonCompressedLeafValue>>, [
811
+ u64
812
+ ]>;
813
+ /**
814
+ * Cache DART parameters.
815
+ **/
816
+ cachedDartParameters: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []>;
817
+ /**
818
+ * Counter for the related counted storage map
819
+ **/
820
+ counterForAssetLeaves: AugmentedQuery<ApiType, () => Observable<u32>, []>;
821
+ /**
822
+ * The WorkerSessionId for the current block.
823
+ **/
824
+ currentWorkerSessionId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
825
+ /**
826
+ * A Confidential assets token decimals.
827
+ **/
828
+ decimals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u8>>, [
829
+ u32
830
+ ]>;
831
+ /**
832
+ * Mapping of Confidential Asset ID to its details.
833
+ **/
834
+ details: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletConfidentialAssetsAssetDetails>>, [
835
+ u32
836
+ ]>;
837
+ /**
838
+ * Mapping of identity to their Confidential accounts.
839
+ **/
840
+ didAccounts: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshDartBpKeysAccountPublicKey | string | Uint8Array) => Observable<Option<Null>>, [
841
+ PolymeshPrimitivesIdentityId,
842
+ PolymeshDartBpKeysAccountPublicKey
843
+ ]>;
844
+ /**
845
+ * Mapping of Confidential encryption keys to their public keys.
846
+ **/
847
+ encryptionKeyAccount: AugmentedQuery<ApiType, (arg: PolymeshDartBpKeysEncryptionPublicKey | string | Uint8Array) => Observable<Option<PolymeshDartBpKeysAccountPublicKey>>, [
848
+ PolymeshDartBpKeysEncryptionPublicKey
849
+ ]>;
850
+ /**
851
+ * Encryption key to identity mapping.
852
+ *
853
+ * This is used for the auditor and mediator encryption keys.
854
+ **/
855
+ encryptionKeyDid: AugmentedQuery<ApiType, (arg: PolymeshDartBpKeysEncryptionPublicKey | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
856
+ PolymeshDartBpKeysEncryptionPublicKey
857
+ ]>;
858
+ /**
859
+ * The current CurveTree Root for Confidential fee accounts curve tree.
860
+ **/
861
+ feeAccountCurveTreeCurrentRoot: AugmentedQuery<ApiType, () => Observable<Option<PalletConfidentialAssetsCurveTreeTimestampedTreeRoot>>, [
862
+ ]>;
863
+ /**
864
+ * The height of the fee accounts curve tree.
865
+ **/
866
+ feeAccountCurveTreeHeight: AugmentedQuery<ApiType, () => Observable<u8>, []>;
867
+ /**
868
+ * The block number of the last fee account curve tree root pruned.
869
+ *
870
+ * For keeping track of the current pruning point of the fee account curve tree roots.
871
+ **/
872
+ feeAccountCurveTreeLastPruned: AugmentedQuery<ApiType, () => Observable<u32>, []>;
873
+ /**
874
+ * The block number of the last fee account curve tree root update.
875
+ *
876
+ * This is used to track the last time the fee account curve tree was updated.
877
+ **/
878
+ feeAccountCurveTreeLastUpdate: AugmentedQuery<ApiType, () => Observable<PalletConfidentialAssetsCurveTreeCurveTreeTimestamp>, [
879
+ ]>;
880
+ /**
881
+ * CurveTree Roots for Confidential fee accounts curve tree.
882
+ *
883
+ * At the end of each block we will store the root of the fee accounts curve tree.
884
+ * The map key is the block number and the value is the root of the fee accounts curve tree.
885
+ **/
886
+ feeAccountCurveTreeRoots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletConfidentialAssetsCurveTreeTimestampedTreeRoot>>, [
887
+ u32
888
+ ]>;
889
+ /**
890
+ * Confidential fee account to identity mapping.
891
+ **/
892
+ feeAccountDid: AugmentedQuery<ApiType, (arg: PolymeshDartBpKeysAccountPublicKey | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
893
+ PolymeshDartBpKeysAccountPublicKey
894
+ ]>;
895
+ /**
896
+ * Inner node storage for Confidential fee accounts curve tree.
897
+ **/
898
+ feeAccountInnerNodes: AugmentedQuery<ApiType, (arg: PolymeshDartCurveTreeCommonNodeLocation | {
899
+ Leaf: any;
900
+ } | {
901
+ Odd: any;
902
+ } | {
903
+ Even: any;
904
+ } | string | Uint8Array) => Observable<Option<PolymeshDartCurveTreeCommonCompressedInner>>, [
905
+ PolymeshDartCurveTreeCommonNodeLocation
906
+ ]>;
907
+ /**
908
+ * Leaf storage for Confidential fee accounts curve tree.
909
+ *
910
+ * The leaves are immutable, so we use a simple storage map.
911
+ **/
912
+ feeAccountLeaves: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshDartBpFeeFeeAccountStateCommitment>>, [
913
+ u64
914
+ ]>;
915
+ /**
916
+ * Confidential fee account egistrations.
917
+ *
918
+ * The chain must prevent the same account from registering the multiple times.
919
+ **/
920
+ feeAccountRegistrations: AugmentedQuery<ApiType, (arg: PolymeshDartBpKeysAccountPublicKey | string | Uint8Array) => Observable<bool>, [
921
+ PolymeshDartBpKeysAccountPublicKey
922
+ ]>;
923
+ /**
924
+ * Nullifiers for Confidential fee account state commitments.
925
+ *
926
+ * This is used to ensure that the same fee account state commitment cannot be used twice.
927
+ **/
928
+ feeAccountStateCommitmentNullifiers: AugmentedQuery<ApiType, (arg: PolymeshDartBpFeeFeeAccountStateNullifier | string | Uint8Array) => Observable<Option<Null>>, [
929
+ PolymeshDartBpFeeFeeAccountStateNullifier
930
+ ]>;
931
+ /**
932
+ * Mapping of Confidential Asset ID to its auditor and mediator keys.
933
+ **/
934
+ keys: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolymeshDartBpAssetAssetKeys>>, [
935
+ u32
936
+ ]>;
937
+ /**
938
+ * The last committed leaf index for Confidential accounts curve tree.
939
+ *
940
+ * This is used to do batched inserts into the tree.
941
+ **/
942
+ lastCommittedAccountLeafIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
943
+ /**
944
+ * The last committed leaf index for Confidential fee accounts curve tree.
945
+ *
946
+ * This is used to do batched inserts into the tree.
947
+ **/
948
+ lastCommittedFeeAccountLeafIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
949
+ /**
950
+ * The affirmation status of each party in a settlement leg.
951
+ * This is a triple map where the first key is the settlement ID, the second key is the leg ID, and the third key is the party (sender, receiver, mediator).
952
+ **/
953
+ legAffirmationStatus: AugmentedQuery<ApiType, (arg1: PolymeshDartBpLegSettlementRef | string | Uint8Array, arg2: u8 | AnyNumber | Uint8Array, arg3: PalletConfidentialAssetsSettlementLegAffirmParty | {
954
+ Sender: any;
955
+ } | {
956
+ Receiver: any;
957
+ } | {
958
+ Mediator: any;
959
+ } | string | Uint8Array) => Observable<Option<PalletConfidentialAssetsSettlementAffirmationStatus>>, [
960
+ PolymeshDartBpLegSettlementRef,
961
+ u8,
962
+ PalletConfidentialAssetsSettlementLegAffirmParty
963
+ ]>;
964
+ /**
965
+ * A Confidential assets token name.
966
+ **/
967
+ names: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Text>>, [
968
+ u32
969
+ ]>;
970
+ /**
971
+ * Next leaf index for Confidential accounts curve tree.
972
+ *
973
+ * This is used to allocate new leaves in the tree.
974
+ **/
975
+ nextAccountLeafIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
976
+ /**
977
+ * Next Asset ID to be used for Confidential assets.
978
+ **/
979
+ nextAssetId: AugmentedQuery<ApiType, () => Observable<u32>, []>;
980
+ /**
981
+ * Next leaf index for Confidential fee accounts curve tree.
982
+ *
983
+ * This is used to allocate new leaves in the tree.
984
+ **/
985
+ nextFeeAccountLeafIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
986
+ /**
987
+ * Mapping of asset owner to their assets.
988
+ **/
989
+ ownerAssets: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [
990
+ PolymeshPrimitivesIdentityId,
991
+ u32
992
+ ]>;
993
+ /**
994
+ * The number of legs in each settlement.
995
+ **/
996
+ settlementLegCount: AugmentedQuery<ApiType, (arg: PolymeshDartBpLegSettlementRef | string | Uint8Array) => Observable<Option<Compact<u32>>>, [
997
+ PolymeshDartBpLegSettlementRef
998
+ ]>;
999
+ /**
1000
+ * The settlement legs.
1001
+ *
1002
+ * This is a double map where the first key is the settlement ID and the second key is the leg ID.
1003
+ * The value is the DartSettlementLeg.
1004
+ **/
1005
+ settlementLegs: AugmentedQuery<ApiType, (arg1: PolymeshDartBpLegSettlementRef | string | Uint8Array, arg2: u8 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
1006
+ PolymeshDartBpLegSettlementRef,
1007
+ u8
1008
+ ]>;
1009
+ /**
1010
+ * The settlement memo.
1011
+ **/
1012
+ settlementMemo: AugmentedQuery<ApiType, (arg: PolymeshDartBpLegSettlementRef | string | Uint8Array) => Observable<Option<Bytes>>, [
1013
+ PolymeshDartBpLegSettlementRef
1014
+ ]>;
1015
+ /**
1016
+ * The number of pending affirmations for a settlement.
1017
+ * This is used to track when a settlement can be executed.
1018
+ **/
1019
+ settlementPendingAffirmations: AugmentedQuery<ApiType, (arg: PolymeshDartBpLegSettlementRef | string | Uint8Array) => Observable<u32>, [
1020
+ PolymeshDartBpLegSettlementRef
1021
+ ]>;
1022
+ /**
1023
+ * The number of pending finalizations for a settlement.
1024
+ * This is used to track when a settlement can be finalized and all storage can be cleaned up.
1025
+ **/
1026
+ settlementPendingFinalizations: AugmentedQuery<ApiType, (arg: PolymeshDartBpLegSettlementRef | string | Uint8Array) => Observable<u32>, [
1027
+ PolymeshDartBpLegSettlementRef
1028
+ ]>;
1029
+ /**
1030
+ * The settlement status.
1031
+ **/
1032
+ settlementState: AugmentedQuery<ApiType, (arg: PolymeshDartBpLegSettlementRef | string | Uint8Array) => Observable<Option<PalletConfidentialAssetsSettlementSettlementStatus>>, [
1033
+ PolymeshDartBpLegSettlementRef
1034
+ ]>;
1035
+ /**
1036
+ * A Confidential assets token symbol.
1037
+ **/
1038
+ symbols: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Text>>, [
1039
+ u32
732
1040
  ]>;
733
1041
  };
734
1042
  corporateAction: {
@@ -1321,6 +1629,24 @@ declare module '@polkadot/api-base/types/storage' {
1321
1629
  beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, [
1322
1630
  ]>;
1323
1631
  };
1632
+ multiBlockMigrations: {
1633
+ /**
1634
+ * The currently active migration to run and its cursor.
1635
+ *
1636
+ * `None` indicates that no migration is running.
1637
+ **/
1638
+ cursor: AugmentedQuery<ApiType, () => Observable<Option<PalletMigrationsMigrationCursor>>, [
1639
+ ]>;
1640
+ /**
1641
+ * Set of all successfully executed migrations.
1642
+ *
1643
+ * This is used as blacklist, to not re-execute migrations that have not been removed from the
1644
+ * codebase yet. Governance can regularly clear this out via `clear_historic`.
1645
+ **/
1646
+ historic: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<Null>>, [
1647
+ Bytes
1648
+ ]>;
1649
+ };
1324
1650
  multiSig: {
1325
1651
  /**
1326
1652
  * The multisig's admin identity. The primary key of this identity
@@ -1701,36 +2027,6 @@ declare module '@polkadot/api-base/types/storage' {
1701
2027
  H256
1702
2028
  ]>;
1703
2029
  };
1704
- polymeshContracts: {
1705
- /**
1706
- * Stores the chain version and code hash for the next chain upgrade.
1707
- **/
1708
- apiNextUpgrade: AugmentedQuery<ApiType, (arg: PolymeshContractsApi | {
1709
- desc?: any;
1710
- major?: any;
1711
- } | string | Uint8Array) => Observable<Option<PolymeshContractsNextUpgrade>>, [
1712
- PolymeshContractsApi
1713
- ]>;
1714
- /**
1715
- * Whitelist of extrinsics allowed to be called from contracts.
1716
- **/
1717
- callRuntimeWhitelist: AugmentedQuery<ApiType, (arg: PolymeshContractsChainExtensionExtrinsicId) => Observable<bool>, [
1718
- PolymeshContractsChainExtensionExtrinsicId
1719
- ]>;
1720
- /**
1721
- * Stores the code hash for the current api.
1722
- **/
1723
- currentApiHash: AugmentedQuery<ApiType, (arg: PolymeshContractsApi | {
1724
- desc?: any;
1725
- major?: any;
1726
- } | string | Uint8Array) => Observable<Option<PolymeshContractsApiCodeHash>>, [
1727
- PolymeshContractsApi
1728
- ]>;
1729
- /**
1730
- * Storage version.
1731
- **/
1732
- storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
1733
- };
1734
2030
  polymeshTransactionPayment: {
1735
2031
  /**
1736
2032
  * It stores the current gas fee payer for the current transaction.
@@ -2940,6 +3236,16 @@ declare module '@polkadot/api-base/types/storage' {
2940
3236
  ]>;
2941
3237
  };
2942
3238
  validators: {
3239
+ /**
3240
+ * Current payout era index.
3241
+ **/
3242
+ currentPayoutEra: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
3243
+ /**
3244
+ * Validators that are awaiting payout for a given era.
3245
+ **/
3246
+ pendingPayouts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>, [
3247
+ u32
3248
+ ]>;
2943
3249
  /**
2944
3250
  * Entities that are allowed to run operator/validator nodes.
2945
3251
  **/