@polymeshassociation/polymesh-sdk 27.7.0-beta.2 → 27.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -3
- package/api/client/AccountManagement.d.ts.map +1 -1
- package/api/client/AccountManagement.js +7 -1
- package/api/client/AccountManagement.js.map +1 -1
- package/api/client/Claims.d.ts.map +1 -1
- package/api/client/Claims.js +1 -1
- package/api/client/Claims.js.map +1 -1
- package/api/client/Polymesh.d.ts.map +1 -1
- package/api/client/Polymesh.js +1 -1
- package/api/client/Polymesh.js.map +1 -1
- package/api/entities/Asset/Base/Settlements/index.d.ts.map +1 -1
- package/api/entities/Asset/Base/Settlements/index.js.map +1 -1
- package/api/entities/Identity/index.d.ts.map +1 -1
- package/api/entities/Identity/index.js.map +1 -1
- package/api/entities/Instruction/index.d.ts +4 -0
- package/api/entities/Instruction/index.d.ts.map +1 -1
- package/api/entities/Instruction/index.js +23 -1
- package/api/entities/Instruction/index.js.map +1 -1
- package/api/entities/Instruction/types.d.ts +6 -2
- package/api/entities/Instruction/types.d.ts.map +1 -1
- package/api/entities/Instruction/types.js +2 -0
- package/api/entities/Instruction/types.js.map +1 -1
- package/api/entities/NumberedPortfolio.d.ts +12 -1
- package/api/entities/NumberedPortfolio.d.ts.map +1 -1
- package/api/entities/NumberedPortfolio.js +1 -0
- package/api/entities/NumberedPortfolio.js.map +1 -1
- package/api/entities/Offering/index.js +1 -1
- package/api/entities/Offering/index.js.map +1 -1
- package/api/entities/Portfolio/index.d.ts +2 -13
- package/api/entities/Portfolio/index.d.ts.map +1 -1
- package/api/entities/Portfolio/index.js +0 -1
- package/api/entities/Portfolio/index.js.map +1 -1
- package/api/entities/common/namespaces/Authorizations.d.ts +1 -1
- package/api/entities/common/namespaces/Authorizations.d.ts.map +1 -1
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +3 -0
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/executeManualInstruction.d.ts.map +1 -1
- package/api/procedures/executeManualInstruction.js +2 -2
- package/api/procedures/executeManualInstruction.js.map +1 -1
- package/api/procedures/investInOffering.d.ts.map +1 -1
- package/api/procedures/investInOffering.js +6 -3
- package/api/procedures/investInOffering.js.map +1 -1
- package/api/procedures/launchOffering.js +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.js +2 -2
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -1
- package/api/procedures/nominateValidators.d.ts.map +1 -1
- package/api/procedures/nominateValidators.js +1 -5
- package/api/procedures/nominateValidators.js.map +1 -1
- package/api/procedures/removeMultiSigPayer.d.ts.map +1 -1
- package/api/procedures/removeMultiSigPayer.js +1 -4
- package/api/procedures/removeMultiSigPayer.js.map +1 -1
- package/api/procedures/setCustodian.d.ts +1 -1
- package/api/procedures/setCustodian.d.ts.map +1 -1
- package/api/procedures/setTransferRestrictions.d.ts +1 -1
- package/api/procedures/setTransferRestrictions.d.ts.map +1 -1
- package/api/procedures/subsidizeAccount.d.ts.map +1 -1
- package/api/procedures/subsidizeAccount.js +1 -5
- package/api/procedures/subsidizeAccount.js.map +1 -1
- package/api/procedures/transferPolyx.d.ts +1 -1
- package/api/procedures/transferPolyx.d.ts.map +1 -1
- package/api/procedures/transferPolyx.js +3 -35
- package/api/procedures/transferPolyx.js.map +1 -1
- package/api/procedures/types.d.ts +9 -0
- package/api/procedures/types.d.ts.map +1 -1
- package/api/procedures/types.js.map +1 -1
- package/api/procedures/withdrawUnbondedPolyx.d.ts +1 -1
- package/api/procedures/withdrawUnbondedPolyx.d.ts.map +1 -1
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +1 -2
- package/base/Context.js.map +1 -1
- package/base/utils.d.ts +1 -1
- package/base/utils.d.ts.map +1 -1
- package/base/utils.js +1 -1
- package/base/utils.js.map +1 -1
- package/generated/utils.d.ts +2 -2
- package/generated/utils.d.ts.map +1 -1
- package/generated/utils.js +1 -1
- package/generated/utils.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/middleware/queries/stos.d.ts +1 -1
- package/middleware/queries/stos.d.ts.map +1 -1
- package/middleware/queries/stos.js +5 -2
- package/middleware/queries/stos.js.map +1 -1
- package/middleware/types.d.ts +42 -1
- package/middleware/types.d.ts.map +1 -1
- package/middleware/types.js +24 -1
- package/middleware/types.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-27.8.0-beta.1.tgz +0 -0
- package/package.json +3 -3
- package/types/index.d.ts +2 -2
- package/types/index.d.ts.map +1 -1
- package/types/index.js +2 -2
- package/types/index.js.map +1 -1
- package/types/internal.d.ts +3 -2
- package/types/internal.d.ts.map +1 -1
- package/types/internal.js +1 -0
- package/types/internal.js.map +1 -1
- package/utils/constants.d.ts +2 -2
- package/utils/constants.d.ts.map +1 -1
- package/utils/constants.js +2 -2
- package/utils/constants.js.map +1 -1
- package/utils/conversion.d.ts +10 -2
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +51 -26
- package/utils/conversion.js.map +1 -1
- package/utils/internal.d.ts +1 -1
- package/utils/internal.d.ts.map +1 -1
- package/generated/types.d.ts +0 -895
- package/generated/types.d.ts.map +0 -1
- package/generated/types.js +0 -948
- package/generated/types.js.map +0 -1
- package/npm-package/polymeshassociation-polymesh-sdk-27.7.0-beta.2.tgz +0 -0
- package/polkadot/asset/definitions.d.ts +0 -16
- package/polkadot/asset/definitions.d.ts.map +0 -1
- package/polkadot/asset/definitions.js +0 -45
- package/polkadot/asset/definitions.js.map +0 -1
- package/polkadot/asset/index.d.ts +0 -2
- package/polkadot/asset/index.d.ts.map +0 -1
- package/polkadot/asset/index.js +0 -20
- package/polkadot/asset/index.js.map +0 -1
- package/polkadot/asset/types.d.ts +0 -2
- package/polkadot/asset/types.d.ts.map +0 -1
- package/polkadot/asset/types.js +0 -5
- package/polkadot/asset/types.js.map +0 -1
- package/polkadot/augment-api-consts.d.ts +0 -505
- package/polkadot/augment-api-consts.d.ts.map +0 -1
- package/polkadot/augment-api-consts.js +0 -8
- package/polkadot/augment-api-consts.js.map +0 -1
- package/polkadot/augment-api-errors.d.ts +0 -2191
- package/polkadot/augment-api-errors.d.ts.map +0 -1
- package/polkadot/augment-api-errors.js +0 -8
- package/polkadot/augment-api-errors.js.map +0 -1
- package/polkadot/augment-api-events.d.ts +0 -2991
- package/polkadot/augment-api-events.d.ts.map +0 -1
- package/polkadot/augment-api-events.js +0 -8
- package/polkadot/augment-api-events.js.map +0 -1
- package/polkadot/augment-api-query.d.ts +0 -2580
- package/polkadot/augment-api-query.d.ts.map +0 -1
- package/polkadot/augment-api-query.js +0 -8
- package/polkadot/augment-api-query.js.map +0 -1
- package/polkadot/augment-api-rpc.d.ts +0 -808
- package/polkadot/augment-api-rpc.d.ts.map +0 -1
- package/polkadot/augment-api-rpc.js +0 -6
- package/polkadot/augment-api-rpc.js.map +0 -1
- package/polkadot/augment-api-runtime.d.ts +0 -380
- package/polkadot/augment-api-runtime.d.ts.map +0 -1
- package/polkadot/augment-api-runtime.js +0 -8
- package/polkadot/augment-api-runtime.js.map +0 -1
- package/polkadot/augment-api-tx.d.ts +0 -6408
- package/polkadot/augment-api-tx.d.ts.map +0 -1
- package/polkadot/augment-api-tx.js +0 -8
- package/polkadot/augment-api-tx.js.map +0 -1
- package/polkadot/augment-api.d.ts +0 -8
- package/polkadot/augment-api.d.ts.map +0 -1
- package/polkadot/augment-api.js +0 -12
- package/polkadot/augment-api.js.map +0 -1
- package/polkadot/augment-types.d.ts +0 -1238
- package/polkadot/augment-types.d.ts.map +0 -1
- package/polkadot/augment-types.js +0 -8
- package/polkadot/augment-types.js.map +0 -1
- package/polkadot/compliance/definitions.d.ts +0 -15
- package/polkadot/compliance/definitions.d.ts.map +0 -1
- package/polkadot/compliance/definitions.js +0 -27
- package/polkadot/compliance/definitions.js.map +0 -1
- package/polkadot/compliance/index.d.ts +0 -2
- package/polkadot/compliance/index.d.ts.map +0 -1
- package/polkadot/compliance/index.js +0 -20
- package/polkadot/compliance/index.js.map +0 -1
- package/polkadot/compliance/types.d.ts +0 -2
- package/polkadot/compliance/types.d.ts.map +0 -1
- package/polkadot/compliance/types.js +0 -5
- package/polkadot/compliance/types.js.map +0 -1
- package/polkadot/definitions.d.ts +0 -11
- package/polkadot/definitions.d.ts.map +0 -1
- package/polkadot/definitions.js +0 -28
- package/polkadot/definitions.js.map +0 -1
- package/polkadot/group/definitions.d.ts +0 -25
- package/polkadot/group/definitions.d.ts.map +0 -1
- package/polkadot/group/definitions.js +0 -31
- package/polkadot/group/definitions.js.map +0 -1
- package/polkadot/group/index.d.ts +0 -2
- package/polkadot/group/index.d.ts.map +0 -1
- package/polkadot/group/index.js +0 -20
- package/polkadot/group/index.js.map +0 -1
- package/polkadot/group/types.d.ts +0 -2
- package/polkadot/group/types.d.ts.map +0 -1
- package/polkadot/group/types.js +0 -5
- package/polkadot/group/types.js.map +0 -1
- package/polkadot/identity/definitions.d.ts +0 -61
- package/polkadot/identity/definitions.d.ts.map +0 -1
- package/polkadot/identity/definitions.js +0 -125
- package/polkadot/identity/definitions.js.map +0 -1
- package/polkadot/identity/index.d.ts +0 -2
- package/polkadot/identity/index.d.ts.map +0 -1
- package/polkadot/identity/index.js +0 -20
- package/polkadot/identity/index.js.map +0 -1
- package/polkadot/identity/types.d.ts +0 -2
- package/polkadot/identity/types.d.ts.map +0 -1
- package/polkadot/identity/types.js +0 -5
- package/polkadot/identity/types.js.map +0 -1
- package/polkadot/index.d.ts +0 -2
- package/polkadot/index.d.ts.map +0 -1
- package/polkadot/index.js +0 -20
- package/polkadot/index.js.map +0 -1
- package/polkadot/lookup.d.ts +0 -4733
- package/polkadot/lookup.d.ts.map +0 -1
- package/polkadot/lookup.js +0 -5493
- package/polkadot/lookup.js.map +0 -1
- package/polkadot/nft/definitions.d.ts +0 -16
- package/polkadot/nft/definitions.d.ts.map +0 -1
- package/polkadot/nft/definitions.js +0 -40
- package/polkadot/nft/definitions.js.map +0 -1
- package/polkadot/nft/index.d.ts +0 -2
- package/polkadot/nft/index.d.ts.map +0 -1
- package/polkadot/nft/index.js +0 -20
- package/polkadot/nft/index.js.map +0 -1
- package/polkadot/nft/types.d.ts +0 -2
- package/polkadot/nft/types.d.ts.map +0 -1
- package/polkadot/nft/types.js +0 -5
- package/polkadot/nft/types.js.map +0 -1
- package/polkadot/pips/definitions.d.ts +0 -34
- package/polkadot/pips/definitions.d.ts.map +0 -1
- package/polkadot/pips/definitions.js +0 -57
- package/polkadot/pips/definitions.js.map +0 -1
- package/polkadot/pips/index.d.ts +0 -2
- package/polkadot/pips/index.d.ts.map +0 -1
- package/polkadot/pips/index.js +0 -20
- package/polkadot/pips/index.js.map +0 -1
- package/polkadot/pips/types.d.ts +0 -2
- package/polkadot/pips/types.d.ts.map +0 -1
- package/polkadot/pips/types.js +0 -5
- package/polkadot/pips/types.js.map +0 -1
- package/polkadot/polymesh/definitions.d.ts +0 -674
- package/polkadot/polymesh/definitions.d.ts.map +0 -1
- package/polkadot/polymesh/definitions.js +0 -1208
- package/polkadot/polymesh/definitions.js.map +0 -1
- package/polkadot/polymesh/index.d.ts +0 -2
- package/polkadot/polymesh/index.d.ts.map +0 -1
- package/polkadot/polymesh/index.js +0 -20
- package/polkadot/polymesh/index.js.map +0 -1
- package/polkadot/polymesh/types.d.ts +0 -755
- package/polkadot/polymesh/types.d.ts.map +0 -1
- package/polkadot/polymesh/types.js +0 -5
- package/polkadot/polymesh/types.js.map +0 -1
- package/polkadot/protocolFee/definitions.d.ts +0 -16
- package/polkadot/protocolFee/definitions.d.ts.map +0 -1
- package/polkadot/protocolFee/definitions.js +0 -25
- package/polkadot/protocolFee/definitions.js.map +0 -1
- package/polkadot/protocolFee/index.d.ts +0 -2
- package/polkadot/protocolFee/index.d.ts.map +0 -1
- package/polkadot/protocolFee/index.js +0 -20
- package/polkadot/protocolFee/index.js.map +0 -1
- package/polkadot/protocolFee/types.d.ts +0 -2
- package/polkadot/protocolFee/types.d.ts.map +0 -1
- package/polkadot/protocolFee/types.js +0 -5
- package/polkadot/protocolFee/types.js.map +0 -1
- package/polkadot/registry.d.ts +0 -365
- package/polkadot/registry.d.ts.map +0 -1
- package/polkadot/registry.js +0 -8
- package/polkadot/registry.js.map +0 -1
- package/polkadot/schema.d.ts +0 -870
- package/polkadot/schema.d.ts.map +0 -1
- package/polkadot/schema.js +0 -1586
- package/polkadot/schema.js.map +0 -1
- package/polkadot/settlement/definitions.d.ts +0 -41
- package/polkadot/settlement/definitions.d.ts.map +0 -1
- package/polkadot/settlement/definitions.js +0 -70
- package/polkadot/settlement/definitions.js.map +0 -1
- package/polkadot/settlement/index.d.ts +0 -2
- package/polkadot/settlement/index.d.ts.map +0 -1
- package/polkadot/settlement/index.js +0 -20
- package/polkadot/settlement/index.js.map +0 -1
- package/polkadot/settlement/types.d.ts +0 -2
- package/polkadot/settlement/types.d.ts.map +0 -1
- package/polkadot/settlement/types.js +0 -5
- package/polkadot/settlement/types.js.map +0 -1
- package/polkadot/staking/definitions.d.ts +0 -16
- package/polkadot/staking/definitions.d.ts.map +0 -1
- package/polkadot/staking/definitions.js +0 -20
- package/polkadot/staking/definitions.js.map +0 -1
- package/polkadot/staking/index.d.ts +0 -2
- package/polkadot/staking/index.d.ts.map +0 -1
- package/polkadot/staking/index.js +0 -20
- package/polkadot/staking/index.js.map +0 -1
- package/polkadot/staking/types.d.ts +0 -2
- package/polkadot/staking/types.d.ts.map +0 -1
- package/polkadot/staking/types.js +0 -5
- package/polkadot/staking/types.js.map +0 -1
- package/polkadot/types-lookup.d.ts +0 -5881
- package/polkadot/types-lookup.d.ts.map +0 -1
- package/polkadot/types-lookup.js +0 -8
- package/polkadot/types-lookup.js.map +0 -1
- package/polkadot/types.d.ts +0 -11
- package/polkadot/types.d.ts.map +0 -1
- package/polkadot/types.js +0 -29
- package/polkadot/types.js.map +0 -1
|
@@ -1,2580 +0,0 @@
|
|
|
1
|
-
import '@polkadot/api-base/types/storage';
|
|
2
|
-
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
|
-
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
|
-
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
|
-
import type { AccountId32, Call, H256, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetAssetDetails, PalletAssetTickerRegistration, PalletAssetTickerRegistrationConfig, PalletBalancesBalanceLock, PalletBridgeBridgeTxDetail, PalletCommitteePolymeshVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, PalletCorporateActionsDistribution, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityClaim1stKey, PalletIdentityClaim2ndKey, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletPipsDepositInfo, PalletPipsPip, PalletPipsPipsMetadata, PalletPipsProposalState, PalletPipsSnapshotMetadata, PalletPipsSnapshottedPip, PalletPipsVote, PalletPipsVotingResult, PalletPreimageRequestStatus, PalletRelayerSubsidy, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingPermissionedIdentityPrefs, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingSlashingSwitch, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStoFundraiser, PalletTransactionPaymentReleases, PolymeshCommonUtilitiesCheckpointNextCheckpoints, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsApiCodeHash, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorization, PolymeshPrimitivesComplianceManagerAssetCompliance, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesGroupInactiveMember, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityDidRecord, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesMultisigProposalState, PolymeshPrimitivesMultisigProposalVoteCount, PolymeshPrimitivesNftNftCollection, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyKeyRecord, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationStatus, PolymeshPrimitivesSettlementInstruction, PolymeshPrimitivesSettlementInstructionStatus, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementLegStatus, PolymeshPrimitivesSettlementMediatorAffirmationStatus, PolymeshPrimitivesSettlementVenue, PolymeshPrimitivesStatisticsStat1stKey, PolymeshPrimitivesStatisticsStat2ndKey, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesSubsetSubsetRestrictionAssetId, PolymeshPrimitivesSubsetSubsetRestrictionPortfolioId, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceAssetTransferCompliance, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from "./types-lookup.ts";
|
|
7
|
-
import type { Observable } from '@polkadot/types/types';
|
|
8
|
-
export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
9
|
-
export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
10
|
-
declare module '@polkadot/api-base/types/storage' {
|
|
11
|
-
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
12
|
-
asset: {
|
|
13
|
-
/**
|
|
14
|
-
* All [`Document`] attached to an asset.
|
|
15
|
-
**/
|
|
16
|
-
assetDocuments: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesDocument>>, [
|
|
17
|
-
PolymeshPrimitivesAssetAssetId,
|
|
18
|
-
u32
|
|
19
|
-
]>;
|
|
20
|
-
/**
|
|
21
|
-
* [`DocumentId`] counter per [`AssetId`].
|
|
22
|
-
**/
|
|
23
|
-
assetDocumentsIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u32>, [
|
|
24
|
-
PolymeshPrimitivesAssetAssetId
|
|
25
|
-
]>;
|
|
26
|
-
/**
|
|
27
|
-
* Maps each [`AssetId`] to its asset identifiers ([`AssetIdentifier`]).
|
|
28
|
-
**/
|
|
29
|
-
assetIdentifiers: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Vec<PolymeshPrimitivesAssetIdentifier>>, [
|
|
30
|
-
PolymeshPrimitivesAssetAssetId
|
|
31
|
-
]>;
|
|
32
|
-
/**
|
|
33
|
-
* Maps all [`AssetId`] that are mapped to a [`Ticker`].
|
|
34
|
-
**/
|
|
35
|
-
assetIdTicker: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<PolymeshPrimitivesTicker>>, [
|
|
36
|
-
PolymeshPrimitivesAssetAssetId
|
|
37
|
-
]>;
|
|
38
|
-
/**
|
|
39
|
-
* Asset Metadata Global Key -> Name.
|
|
40
|
-
**/
|
|
41
|
-
assetMetadataGlobalKeyToName: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
|
|
42
|
-
u64
|
|
43
|
-
]>;
|
|
44
|
-
/**
|
|
45
|
-
* Asset Metadata Global Name -> Key.
|
|
46
|
-
**/
|
|
47
|
-
assetMetadataGlobalNameToKey: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<u64>>, [
|
|
48
|
-
Bytes
|
|
49
|
-
]>;
|
|
50
|
-
/**
|
|
51
|
-
* Asset Metadata Global Key specs.
|
|
52
|
-
**/
|
|
53
|
-
assetMetadataGlobalSpecs: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesAssetMetadataAssetMetadataSpec>>, [
|
|
54
|
-
u64
|
|
55
|
-
]>;
|
|
56
|
-
/**
|
|
57
|
-
* Asset Metadata Local Key -> Name.
|
|
58
|
-
**/
|
|
59
|
-
assetMetadataLocalKeyToName: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
|
|
60
|
-
PolymeshPrimitivesAssetAssetId,
|
|
61
|
-
u64
|
|
62
|
-
]>;
|
|
63
|
-
/**
|
|
64
|
-
* Asset Metadata Local Name -> Key.
|
|
65
|
-
**/
|
|
66
|
-
assetMetadataLocalNameToKey: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Option<u64>>, [
|
|
67
|
-
PolymeshPrimitivesAssetAssetId,
|
|
68
|
-
Bytes
|
|
69
|
-
]>;
|
|
70
|
-
/**
|
|
71
|
-
* Asset Metadata Local Key specs.
|
|
72
|
-
**/
|
|
73
|
-
assetMetadataLocalSpecs: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesAssetMetadataAssetMetadataSpec>>, [
|
|
74
|
-
PolymeshPrimitivesAssetAssetId,
|
|
75
|
-
u64
|
|
76
|
-
]>;
|
|
77
|
-
/**
|
|
78
|
-
* Details for an asset's Metadata values.
|
|
79
|
-
**/
|
|
80
|
-
assetMetadataValueDetails: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesAssetMetadataAssetMetadataKey | {
|
|
81
|
-
Global: any;
|
|
82
|
-
} | {
|
|
83
|
-
Local: any;
|
|
84
|
-
} | string | Uint8Array) => Observable<Option<PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail>>, [
|
|
85
|
-
PolymeshPrimitivesAssetAssetId,
|
|
86
|
-
PolymeshPrimitivesAssetMetadataAssetMetadataKey
|
|
87
|
-
]>;
|
|
88
|
-
/**
|
|
89
|
-
* Metatdata values for an asset.
|
|
90
|
-
**/
|
|
91
|
-
assetMetadataValues: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesAssetMetadataAssetMetadataKey | {
|
|
92
|
-
Global: any;
|
|
93
|
-
} | {
|
|
94
|
-
Local: any;
|
|
95
|
-
} | string | Uint8Array) => Observable<Option<Bytes>>, [
|
|
96
|
-
PolymeshPrimitivesAssetAssetId,
|
|
97
|
-
PolymeshPrimitivesAssetMetadataAssetMetadataKey
|
|
98
|
-
]>;
|
|
99
|
-
/**
|
|
100
|
-
* Maps each [`AssetId`] to its underling [`AssetName`].
|
|
101
|
-
**/
|
|
102
|
-
assetNames: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<Bytes>>, [
|
|
103
|
-
PolymeshPrimitivesAssetAssetId
|
|
104
|
-
]>;
|
|
105
|
-
/**
|
|
106
|
-
* A per account nonce that is used for generating an [`AssetId`].
|
|
107
|
-
**/
|
|
108
|
-
assetNonce: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
|
|
109
|
-
AccountId32
|
|
110
|
-
]>;
|
|
111
|
-
/**
|
|
112
|
-
* Maps each [`AssetId`] to its underling [`AssetDetails`].
|
|
113
|
-
**/
|
|
114
|
-
assets: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<PalletAssetAssetDetails>>, [
|
|
115
|
-
PolymeshPrimitivesAssetAssetId
|
|
116
|
-
]>;
|
|
117
|
-
/**
|
|
118
|
-
* A list of assets that exempt all users from affirming its receivement.
|
|
119
|
-
**/
|
|
120
|
-
assetsExemptFromAffirmation: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
|
|
121
|
-
PolymeshPrimitivesAssetAssetId
|
|
122
|
-
]>;
|
|
123
|
-
/**
|
|
124
|
-
* Tracks the total [`Balance`] for each [`AssetId`] per [`IdentityId`].
|
|
125
|
-
**/
|
|
126
|
-
balanceOf: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u128>, [
|
|
127
|
-
PolymeshPrimitivesAssetAssetId,
|
|
128
|
-
PolymeshPrimitivesIdentityId
|
|
129
|
-
]>;
|
|
130
|
-
/**
|
|
131
|
-
* The last [`AssetMetadataGlobalKey`] used for a global key.
|
|
132
|
-
**/
|
|
133
|
-
currentAssetMetadataGlobalKey: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
134
|
-
/**
|
|
135
|
-
* The last [`AssetMetadataLocalKey`] used for [`AssetId`].
|
|
136
|
-
**/
|
|
137
|
-
currentAssetMetadataLocalKey: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<u64>>, [
|
|
138
|
-
PolymeshPrimitivesAssetAssetId
|
|
139
|
-
]>;
|
|
140
|
-
/**
|
|
141
|
-
* The next `AssetType::Custom` ID in the sequence.
|
|
142
|
-
*
|
|
143
|
-
* Numbers in the sequence start from 1 rather than 0.
|
|
144
|
-
**/
|
|
145
|
-
customTypeIdSequence: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
146
|
-
/**
|
|
147
|
-
* Maps custom asset type ids to the registered string contents.
|
|
148
|
-
**/
|
|
149
|
-
customTypes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
|
|
150
|
-
u32
|
|
151
|
-
]>;
|
|
152
|
-
/**
|
|
153
|
-
* Inverse map of `CustomTypes`, from registered string contents to custom asset type ids.
|
|
154
|
-
**/
|
|
155
|
-
customTypesInverse: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<u32>>, [
|
|
156
|
-
Bytes
|
|
157
|
-
]>;
|
|
158
|
-
/**
|
|
159
|
-
* Returns `true` if transfers for the asset are frozen. Otherwise, returns `false`.
|
|
160
|
-
**/
|
|
161
|
-
frozen: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
|
|
162
|
-
PolymeshPrimitivesAssetAssetId
|
|
163
|
-
]>;
|
|
164
|
-
/**
|
|
165
|
-
* Maps each [`AssetId`] to the name of its founding round ([`FundingRoundName`]).
|
|
166
|
-
**/
|
|
167
|
-
fundingRound: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Bytes>, [
|
|
168
|
-
PolymeshPrimitivesAssetAssetId
|
|
169
|
-
]>;
|
|
170
|
-
/**
|
|
171
|
-
* The total [`Balance`] of tokens issued in all recorded funding rounds ([`FundingRoundName`]).
|
|
172
|
-
**/
|
|
173
|
-
issuedInFundingRound: AugmentedQuery<ApiType, (arg: ITuple<[PolymeshPrimitivesAssetAssetId, Bytes]> | [PolymeshPrimitivesAssetAssetId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<u128>, [
|
|
174
|
-
ITuple<[PolymeshPrimitivesAssetAssetId, Bytes]>
|
|
175
|
-
]>;
|
|
176
|
-
/**
|
|
177
|
-
* The list of mandatory mediators for every ticker.
|
|
178
|
-
**/
|
|
179
|
-
mandatoryMediators: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<BTreeSet<PolymeshPrimitivesIdentityId>>, [
|
|
180
|
-
PolymeshPrimitivesAssetAssetId
|
|
181
|
-
]>;
|
|
182
|
-
/**
|
|
183
|
-
* All assets that don't need an affirmation to be received by an identity.
|
|
184
|
-
**/
|
|
185
|
-
preApprovedAsset: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
|
|
186
|
-
PolymeshPrimitivesIdentityId,
|
|
187
|
-
PolymeshPrimitivesAssetAssetId
|
|
188
|
-
]>;
|
|
189
|
-
/**
|
|
190
|
-
* All assets owned by a user.
|
|
191
|
-
**/
|
|
192
|
-
securityTokensOwnedByUser: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
|
|
193
|
-
PolymeshPrimitivesIdentityId,
|
|
194
|
-
PolymeshPrimitivesAssetAssetId
|
|
195
|
-
]>;
|
|
196
|
-
/**
|
|
197
|
-
* Storage version.
|
|
198
|
-
**/
|
|
199
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
200
|
-
/**
|
|
201
|
-
* Maps all [`Ticker`] that are linked to an [`AssetId`].
|
|
202
|
-
**/
|
|
203
|
-
tickerAssetId: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesTicker | string | Uint8Array) => Observable<Option<PolymeshPrimitivesAssetAssetId>>, [
|
|
204
|
-
PolymeshPrimitivesTicker
|
|
205
|
-
]>;
|
|
206
|
-
/**
|
|
207
|
-
* Returns [`TickerRegistrationConfig`] for assessing if a ticker is valid.
|
|
208
|
-
**/
|
|
209
|
-
tickerConfig: AugmentedQuery<ApiType, () => Observable<PalletAssetTickerRegistrationConfig>, [
|
|
210
|
-
]>;
|
|
211
|
-
/**
|
|
212
|
-
* All tickers owned by a user.
|
|
213
|
-
**/
|
|
214
|
-
tickersOwnedByUser: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesTicker | string | Uint8Array) => Observable<bool>, [
|
|
215
|
-
PolymeshPrimitivesIdentityId,
|
|
216
|
-
PolymeshPrimitivesTicker
|
|
217
|
-
]>;
|
|
218
|
-
/**
|
|
219
|
-
* Map each [`Ticker`] to its registration details ([`TickerRegistration`]).
|
|
220
|
-
**/
|
|
221
|
-
uniqueTickerRegistration: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesTicker | string | Uint8Array) => Observable<Option<PalletAssetTickerRegistration>>, [
|
|
222
|
-
PolymeshPrimitivesTicker
|
|
223
|
-
]>;
|
|
224
|
-
};
|
|
225
|
-
authorship: {
|
|
226
|
-
/**
|
|
227
|
-
* Author of current block.
|
|
228
|
-
**/
|
|
229
|
-
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
230
|
-
};
|
|
231
|
-
babe: {
|
|
232
|
-
/**
|
|
233
|
-
* Current epoch authorities.
|
|
234
|
-
**/
|
|
235
|
-
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, [
|
|
236
|
-
]>;
|
|
237
|
-
/**
|
|
238
|
-
* This field should always be populated during block processing unless
|
|
239
|
-
* secondary plain slots are enabled (which don't contain a VRF output).
|
|
240
|
-
*
|
|
241
|
-
* It is set in `on_finalize`, before it will contain the value from the last block.
|
|
242
|
-
**/
|
|
243
|
-
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []>;
|
|
244
|
-
/**
|
|
245
|
-
* Current slot number.
|
|
246
|
-
**/
|
|
247
|
-
currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
248
|
-
/**
|
|
249
|
-
* The configuration for the current epoch. Should never be `None` as it is initialized in
|
|
250
|
-
* genesis.
|
|
251
|
-
**/
|
|
252
|
-
epochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, [
|
|
253
|
-
]>;
|
|
254
|
-
/**
|
|
255
|
-
* Current epoch index.
|
|
256
|
-
**/
|
|
257
|
-
epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
258
|
-
/**
|
|
259
|
-
* The block numbers when the last and current epoch have started, respectively `N-1` and
|
|
260
|
-
* `N`.
|
|
261
|
-
* NOTE: We track this is in order to annotate the block number when a given pool of
|
|
262
|
-
* entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
|
|
263
|
-
* slots, which may be skipped, the block numbers may not line up with the slot numbers.
|
|
264
|
-
**/
|
|
265
|
-
epochStart: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
|
|
266
|
-
/**
|
|
267
|
-
* The slot at which the first epoch actually started. This is 0
|
|
268
|
-
* until the first block of the chain.
|
|
269
|
-
**/
|
|
270
|
-
genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
271
|
-
/**
|
|
272
|
-
* Temporary value (cleared at block finalization) which is `Some`
|
|
273
|
-
* if per-block initialization has already been called for current block.
|
|
274
|
-
**/
|
|
275
|
-
initialized: AugmentedQuery<ApiType, () => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>, [
|
|
276
|
-
]>;
|
|
277
|
-
/**
|
|
278
|
-
* How late the current block is compared to its parent.
|
|
279
|
-
*
|
|
280
|
-
* This entry is populated as part of block execution and is cleaned up
|
|
281
|
-
* on block finalization. Querying this storage entry outside of block
|
|
282
|
-
* execution context should always yield zero.
|
|
283
|
-
**/
|
|
284
|
-
lateness: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
285
|
-
/**
|
|
286
|
-
* Next epoch authorities.
|
|
287
|
-
**/
|
|
288
|
-
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>, [
|
|
289
|
-
]>;
|
|
290
|
-
/**
|
|
291
|
-
* The configuration for the next epoch, `None` if the config will not change
|
|
292
|
-
* (you can fallback to `EpochConfig` instead in that case).
|
|
293
|
-
**/
|
|
294
|
-
nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>, [
|
|
295
|
-
]>;
|
|
296
|
-
/**
|
|
297
|
-
* Next epoch randomness.
|
|
298
|
-
**/
|
|
299
|
-
nextRandomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []>;
|
|
300
|
-
/**
|
|
301
|
-
* Pending epoch configuration change that will be applied when the next epoch is enacted.
|
|
302
|
-
**/
|
|
303
|
-
pendingEpochConfigChange: AugmentedQuery<ApiType, () => Observable<Option<SpConsensusBabeDigestsNextConfigDescriptor>>, [
|
|
304
|
-
]>;
|
|
305
|
-
/**
|
|
306
|
-
* The epoch randomness for the *current* epoch.
|
|
307
|
-
*
|
|
308
|
-
* # Security
|
|
309
|
-
*
|
|
310
|
-
* This MUST NOT be used for gambling, as it can be influenced by a
|
|
311
|
-
* malicious validator in the short term. It MAY be used in many
|
|
312
|
-
* cryptographic protocols, however, so long as one remembers that this
|
|
313
|
-
* (like everything else on-chain) it is public. For example, it can be
|
|
314
|
-
* used where a number is needed that cannot have been chosen by an
|
|
315
|
-
* adversary, for purposes such as public-coin zero-knowledge proofs.
|
|
316
|
-
**/
|
|
317
|
-
randomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []>;
|
|
318
|
-
/**
|
|
319
|
-
* Randomness under construction.
|
|
320
|
-
*
|
|
321
|
-
* We make a trade-off between storage accesses and list length.
|
|
322
|
-
* We store the under-construction randomness in segments of up to
|
|
323
|
-
* `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
|
|
324
|
-
*
|
|
325
|
-
* Once a segment reaches this length, we begin the next one.
|
|
326
|
-
* We reset all segments and return to `0` at the beginning of every
|
|
327
|
-
* epoch.
|
|
328
|
-
**/
|
|
329
|
-
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
330
|
-
/**
|
|
331
|
-
* A list of the last 100 skipped epochs and the corresponding session index
|
|
332
|
-
* when the epoch was skipped.
|
|
333
|
-
*
|
|
334
|
-
* This is only used for validating equivocation proofs. An equivocation proof
|
|
335
|
-
* must contains a key-ownership proof for a given session, therefore we need a
|
|
336
|
-
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
337
|
-
* a validator was the owner of a given key on a given session, and what the
|
|
338
|
-
* active epoch index was during that session.
|
|
339
|
-
**/
|
|
340
|
-
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []>;
|
|
341
|
-
/**
|
|
342
|
-
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
343
|
-
**/
|
|
344
|
-
underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>, [
|
|
345
|
-
u32
|
|
346
|
-
]>;
|
|
347
|
-
};
|
|
348
|
-
balances: {
|
|
349
|
-
/**
|
|
350
|
-
* Any liquidity locks on some account balances.
|
|
351
|
-
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
352
|
-
**/
|
|
353
|
-
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [
|
|
354
|
-
AccountId32
|
|
355
|
-
]>;
|
|
356
|
-
/**
|
|
357
|
-
* The total units issued in the system.
|
|
358
|
-
**/
|
|
359
|
-
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
360
|
-
};
|
|
361
|
-
bridge: {
|
|
362
|
-
/**
|
|
363
|
-
* The admin key.
|
|
364
|
-
**/
|
|
365
|
-
admin: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
366
|
-
/**
|
|
367
|
-
* The maximum number of bridged POLYX per identity within a set interval of
|
|
368
|
-
* blocks. Fields: POLYX amount and the block interval duration.
|
|
369
|
-
**/
|
|
370
|
-
bridgeLimit: AugmentedQuery<ApiType, () => Observable<ITuple<[u128, u32]>>, []>;
|
|
371
|
-
/**
|
|
372
|
-
* Identities not constrained by the bridge limit.
|
|
373
|
-
**/
|
|
374
|
-
bridgeLimitExempted: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
|
|
375
|
-
PolymeshPrimitivesIdentityId
|
|
376
|
-
]>;
|
|
377
|
-
/**
|
|
378
|
-
* Details of bridge transactions identified with pairs of the recipient account and the
|
|
379
|
-
* bridge transaction nonce.
|
|
380
|
-
**/
|
|
381
|
-
bridgeTxDetails: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<PalletBridgeBridgeTxDetail>, [
|
|
382
|
-
AccountId32,
|
|
383
|
-
u32
|
|
384
|
-
]>;
|
|
385
|
-
/**
|
|
386
|
-
* The multisig account of the bridge controller. The genesis signers accept their
|
|
387
|
-
* authorizations and are able to get their proposals delivered. The bridge creator
|
|
388
|
-
* transfers some POLY to their identity.
|
|
389
|
-
**/
|
|
390
|
-
controller: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
391
|
-
/**
|
|
392
|
-
* Freeze bridge admins. These accounts can only freeze the bridge.
|
|
393
|
-
**/
|
|
394
|
-
freezeAdmins: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<bool>, [
|
|
395
|
-
AccountId32
|
|
396
|
-
]>;
|
|
397
|
-
/**
|
|
398
|
-
* Whether or not the bridge operation is frozen.
|
|
399
|
-
**/
|
|
400
|
-
frozen: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
401
|
-
/**
|
|
402
|
-
* Amount of POLYX bridged by the identity in last block interval. Fields: the bridged
|
|
403
|
-
* amount and the last interval number.
|
|
404
|
-
**/
|
|
405
|
-
polyxBridged: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<ITuple<[u128, u32]>>, [
|
|
406
|
-
PolymeshPrimitivesIdentityId
|
|
407
|
-
]>;
|
|
408
|
-
/**
|
|
409
|
-
* Storage version.
|
|
410
|
-
**/
|
|
411
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
412
|
-
/**
|
|
413
|
-
* The bridge transaction timelock period, in blocks, since the acceptance of the
|
|
414
|
-
* transaction proposal during which the admin key can freeze the transaction.
|
|
415
|
-
**/
|
|
416
|
-
timelock: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
417
|
-
};
|
|
418
|
-
capitalDistribution: {
|
|
419
|
-
/**
|
|
420
|
-
* All capital distributions, tied to their respective corporate actions (CAs).
|
|
421
|
-
*
|
|
422
|
-
* (CAId) => Distribution
|
|
423
|
-
**/
|
|
424
|
-
distributions: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
|
|
425
|
-
assetId?: any;
|
|
426
|
-
localId?: any;
|
|
427
|
-
} | string | Uint8Array) => Observable<Option<PalletCorporateActionsDistribution>>, [
|
|
428
|
-
PalletCorporateActionsCaId
|
|
429
|
-
]>;
|
|
430
|
-
/**
|
|
431
|
-
* Has an asset holder been paid yet?
|
|
432
|
-
*
|
|
433
|
-
* (CAId, DID) -> Was DID paid in the CAId?
|
|
434
|
-
**/
|
|
435
|
-
holderPaid: AugmentedQuery<ApiType, (arg: ITuple<[PalletCorporateActionsCaId, PolymeshPrimitivesIdentityId]> | [
|
|
436
|
-
PalletCorporateActionsCaId | {
|
|
437
|
-
assetId?: any;
|
|
438
|
-
localId?: any;
|
|
439
|
-
} | string | Uint8Array,
|
|
440
|
-
PolymeshPrimitivesIdentityId | string | Uint8Array
|
|
441
|
-
]) => Observable<bool>, [
|
|
442
|
-
ITuple<[PalletCorporateActionsCaId, PolymeshPrimitivesIdentityId]>
|
|
443
|
-
]>;
|
|
444
|
-
/**
|
|
445
|
-
* Storage version.
|
|
446
|
-
**/
|
|
447
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
448
|
-
};
|
|
449
|
-
cddServiceProviders: {
|
|
450
|
-
/**
|
|
451
|
-
* The current "active" membership, stored as an ordered Vec.
|
|
452
|
-
**/
|
|
453
|
-
activeMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, [
|
|
454
|
-
]>;
|
|
455
|
-
/**
|
|
456
|
-
* Limit of how many "active" members there can be.
|
|
457
|
-
**/
|
|
458
|
-
activeMembersLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
459
|
-
/**
|
|
460
|
-
* The current "inactive" membership, stored as an ordered Vec.
|
|
461
|
-
**/
|
|
462
|
-
inactiveMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesGroupInactiveMember>>, [
|
|
463
|
-
]>;
|
|
464
|
-
};
|
|
465
|
-
checkpoint: {
|
|
466
|
-
/**
|
|
467
|
-
* Balance of a DID at a checkpoint.
|
|
468
|
-
*
|
|
469
|
-
* ([`AssetId`], did, checkpoint ID) -> Balance of a DID at a checkpoint
|
|
470
|
-
**/
|
|
471
|
-
balance: AugmentedQuery<ApiType, (arg1: ITuple<[PolymeshPrimitivesAssetAssetId, u64]> | [PolymeshPrimitivesAssetAssetId | string | Uint8Array, u64 | AnyNumber | Uint8Array], arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u128>, [
|
|
472
|
-
ITuple<[PolymeshPrimitivesAssetAssetId, u64]>,
|
|
473
|
-
PolymeshPrimitivesIdentityId
|
|
474
|
-
]>;
|
|
475
|
-
/**
|
|
476
|
-
* Checkpoints where a DID's balance was updated.
|
|
477
|
-
* ([`AssetId`], did) -> [checkpoint ID where user balance changed]
|
|
478
|
-
**/
|
|
479
|
-
balanceUpdates: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Vec<u64>>, [
|
|
480
|
-
PolymeshPrimitivesAssetAssetId,
|
|
481
|
-
PolymeshPrimitivesIdentityId
|
|
482
|
-
]>;
|
|
483
|
-
/**
|
|
484
|
-
* Cached next checkpoint for each schedule.
|
|
485
|
-
*
|
|
486
|
-
* This is used to quickly find the next checkpoint from a asset's schedules.
|
|
487
|
-
*
|
|
488
|
-
* ([`AssetId`]) -> next checkpoints
|
|
489
|
-
**/
|
|
490
|
-
cachedNextCheckpoints: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Option<PolymeshCommonUtilitiesCheckpointNextCheckpoints>>, [
|
|
491
|
-
PolymeshPrimitivesAssetAssetId
|
|
492
|
-
]>;
|
|
493
|
-
/**
|
|
494
|
-
* Checkpoints ID generator sequence.
|
|
495
|
-
* ID of first checkpoint is 1 instead of 0.
|
|
496
|
-
*
|
|
497
|
-
* ([`AssetId`]) -> no. of checkpoints
|
|
498
|
-
**/
|
|
499
|
-
checkpointIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
|
|
500
|
-
PolymeshPrimitivesAssetAssetId
|
|
501
|
-
]>;
|
|
502
|
-
/**
|
|
503
|
-
* Scheduled checkpoints.
|
|
504
|
-
*
|
|
505
|
-
* ([`AssetId`], schedule ID) -> schedule checkpoints
|
|
506
|
-
**/
|
|
507
|
-
scheduledCheckpoints: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshCommonUtilitiesCheckpointScheduleCheckpoints>>, [
|
|
508
|
-
PolymeshPrimitivesAssetAssetId,
|
|
509
|
-
u64
|
|
510
|
-
]>;
|
|
511
|
-
/**
|
|
512
|
-
* Checkpoint schedule ID sequence for assets.
|
|
513
|
-
*
|
|
514
|
-
* ([`AssetId`]) -> schedule ID
|
|
515
|
-
**/
|
|
516
|
-
scheduleIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
|
|
517
|
-
PolymeshPrimitivesAssetAssetId
|
|
518
|
-
]>;
|
|
519
|
-
/**
|
|
520
|
-
* All the checkpoints a given schedule originated.
|
|
521
|
-
*
|
|
522
|
-
* ([`AssetId`], schedule ID) -> [checkpoint ID]
|
|
523
|
-
**/
|
|
524
|
-
schedulePoints: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [
|
|
525
|
-
PolymeshPrimitivesAssetAssetId,
|
|
526
|
-
u64
|
|
527
|
-
]>;
|
|
528
|
-
/**
|
|
529
|
-
* How many "strong" references are there to a given `ScheduleId`?
|
|
530
|
-
*
|
|
531
|
-
* The presence of a "strong" reference, in the sense of `Rc<T>`,
|
|
532
|
-
* entails that the referenced schedule cannot be removed.
|
|
533
|
-
* Thus, as long as `strong_ref_count(schedule_id) > 0`,
|
|
534
|
-
* `remove_schedule(schedule_id)` will error.
|
|
535
|
-
*
|
|
536
|
-
* ([`AssetId`], schedule ID) -> strong ref count
|
|
537
|
-
**/
|
|
538
|
-
scheduleRefCount: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<u32>, [
|
|
539
|
-
PolymeshPrimitivesAssetAssetId,
|
|
540
|
-
u64
|
|
541
|
-
]>;
|
|
542
|
-
/**
|
|
543
|
-
* The maximum complexity allowed for an asset's schedules.
|
|
544
|
-
**/
|
|
545
|
-
schedulesMaxComplexity: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
546
|
-
/**
|
|
547
|
-
* Storage version.
|
|
548
|
-
**/
|
|
549
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
550
|
-
/**
|
|
551
|
-
* Checkpoint timestamps.
|
|
552
|
-
*
|
|
553
|
-
* Every schedule-originated checkpoint maps its ID to its due time.
|
|
554
|
-
* Every checkpoint manually created maps its ID to the time of recording.
|
|
555
|
-
*
|
|
556
|
-
* ([`AssetId`]) -> (checkpoint ID) -> checkpoint timestamp
|
|
557
|
-
**/
|
|
558
|
-
timestamps: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<u64>, [
|
|
559
|
-
PolymeshPrimitivesAssetAssetId,
|
|
560
|
-
u64
|
|
561
|
-
]>;
|
|
562
|
-
/**
|
|
563
|
-
* Total supply of the token at the checkpoint.
|
|
564
|
-
*
|
|
565
|
-
* ([`AssetId`], checkpointId) -> total supply at given checkpoint
|
|
566
|
-
**/
|
|
567
|
-
totalSupply: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<u128>, [
|
|
568
|
-
PolymeshPrimitivesAssetAssetId,
|
|
569
|
-
u64
|
|
570
|
-
]>;
|
|
571
|
-
};
|
|
572
|
-
committeeMembership: {
|
|
573
|
-
/**
|
|
574
|
-
* The current "active" membership, stored as an ordered Vec.
|
|
575
|
-
**/
|
|
576
|
-
activeMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, [
|
|
577
|
-
]>;
|
|
578
|
-
/**
|
|
579
|
-
* Limit of how many "active" members there can be.
|
|
580
|
-
**/
|
|
581
|
-
activeMembersLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
582
|
-
/**
|
|
583
|
-
* The current "inactive" membership, stored as an ordered Vec.
|
|
584
|
-
**/
|
|
585
|
-
inactiveMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesGroupInactiveMember>>, [
|
|
586
|
-
]>;
|
|
587
|
-
};
|
|
588
|
-
complianceManager: {
|
|
589
|
-
/**
|
|
590
|
-
* Compliance for an asset ([`AssetId`] -> [`AssetCompliance`])
|
|
591
|
-
**/
|
|
592
|
-
assetCompliances: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<PolymeshPrimitivesComplianceManagerAssetCompliance>, [
|
|
593
|
-
PolymeshPrimitivesAssetAssetId
|
|
594
|
-
]>;
|
|
595
|
-
/**
|
|
596
|
-
* Storage version.
|
|
597
|
-
**/
|
|
598
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
599
|
-
/**
|
|
600
|
-
* List of trusted claim issuer [`AssetId`] -> Issuer Identity
|
|
601
|
-
**/
|
|
602
|
-
trustedClaimIssuer: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Vec<PolymeshPrimitivesConditionTrustedIssuer>>, [
|
|
603
|
-
PolymeshPrimitivesAssetAssetId
|
|
604
|
-
]>;
|
|
605
|
-
};
|
|
606
|
-
contracts: {
|
|
607
|
-
/**
|
|
608
|
-
* A mapping between an original code hash and instrumented wasm code, ready for execution.
|
|
609
|
-
**/
|
|
610
|
-
codeStorage: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmPrefabWasmModule>>, [
|
|
611
|
-
H256
|
|
612
|
-
]>;
|
|
613
|
-
/**
|
|
614
|
-
* The code associated with a given account.
|
|
615
|
-
*
|
|
616
|
-
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
617
|
-
**/
|
|
618
|
-
contractInfoOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletContractsStorageContractInfo>>, [
|
|
619
|
-
AccountId32
|
|
620
|
-
]>;
|
|
621
|
-
/**
|
|
622
|
-
* Evicted contracts that await child trie deletion.
|
|
623
|
-
*
|
|
624
|
-
* Child trie deletion is a heavy operation depending on the amount of storage items
|
|
625
|
-
* stored in said trie. Therefore this operation is performed lazily in `on_initialize`.
|
|
626
|
-
**/
|
|
627
|
-
deletionQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletContractsStorageDeletedContract>>, [
|
|
628
|
-
]>;
|
|
629
|
-
/**
|
|
630
|
-
* This is a **monotonic** counter incremented on contract instantiation.
|
|
631
|
-
*
|
|
632
|
-
* This is used in order to generate unique trie ids for contracts.
|
|
633
|
-
* The trie id of a new contract is calculated from hash(account_id, nonce).
|
|
634
|
-
* The nonce is required because otherwise the following sequence would lead to
|
|
635
|
-
* a possible collision of storage:
|
|
636
|
-
*
|
|
637
|
-
* 1. Create a new contract.
|
|
638
|
-
* 2. Terminate the contract.
|
|
639
|
-
* 3. Immediately recreate the contract with the same account_id.
|
|
640
|
-
*
|
|
641
|
-
* This is bad because the contents of a trie are deleted lazily and there might be
|
|
642
|
-
* storage of the old instantiation still in it when the new contract is created. Please
|
|
643
|
-
* note that we can't replace the counter by the block number because the sequence above
|
|
644
|
-
* can happen in the same block. We also can't keep the account counter in memory only
|
|
645
|
-
* because storage is the only way to communicate across different extrinsics in the
|
|
646
|
-
* same block.
|
|
647
|
-
*
|
|
648
|
-
* # Note
|
|
649
|
-
*
|
|
650
|
-
* Do not use it to determine the number of contracts. It won't be decremented if
|
|
651
|
-
* a contract is destroyed.
|
|
652
|
-
**/
|
|
653
|
-
nonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
654
|
-
/**
|
|
655
|
-
* A mapping between an original code hash and its owner information.
|
|
656
|
-
**/
|
|
657
|
-
ownerInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmOwnerInfo>>, [
|
|
658
|
-
H256
|
|
659
|
-
]>;
|
|
660
|
-
/**
|
|
661
|
-
* A mapping from an original code hash to the original code, untouched by instrumentation.
|
|
662
|
-
**/
|
|
663
|
-
pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [
|
|
664
|
-
H256
|
|
665
|
-
]>;
|
|
666
|
-
};
|
|
667
|
-
corporateAction: {
|
|
668
|
-
/**
|
|
669
|
-
* Associations from CAs to `Document`s via their IDs.
|
|
670
|
-
* (CAId => [DocumentId])
|
|
671
|
-
*
|
|
672
|
-
* The `CorporateActions` map stores `AssetId => LocalId => The CA`,
|
|
673
|
-
* so we can infer `AssetId => CAId`. Therefore, we don't need a double map.
|
|
674
|
-
**/
|
|
675
|
-
caDocLink: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
|
|
676
|
-
assetId?: any;
|
|
677
|
-
localId?: any;
|
|
678
|
-
} | string | Uint8Array) => Observable<Vec<u32>>, [
|
|
679
|
-
PalletCorporateActionsCaId
|
|
680
|
-
]>;
|
|
681
|
-
/**
|
|
682
|
-
* The next per-`AssetId` CA ID in the sequence.
|
|
683
|
-
* The full ID is defined as a combination of `AssetId` and a number in this sequence.
|
|
684
|
-
**/
|
|
685
|
-
caIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u32>, [
|
|
686
|
-
PolymeshPrimitivesAssetAssetId
|
|
687
|
-
]>;
|
|
688
|
-
/**
|
|
689
|
-
* All recorded CAs thus far.
|
|
690
|
-
* Only generic information is stored here.
|
|
691
|
-
* Specific `CAKind`s, e.g., benefits and corporate ballots, may use additional on-chain storage.
|
|
692
|
-
*
|
|
693
|
-
* (AssetId => local ID => the corporate action)
|
|
694
|
-
**/
|
|
695
|
-
corporateActions: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletCorporateActionsCorporateAction>>, [
|
|
696
|
-
PolymeshPrimitivesAssetAssetId,
|
|
697
|
-
u32
|
|
698
|
-
]>;
|
|
699
|
-
/**
|
|
700
|
-
* The identities targeted by default for CAs for this asset,
|
|
701
|
-
* either to be excluded or included.
|
|
702
|
-
*
|
|
703
|
-
* (AssetId => target identities)
|
|
704
|
-
**/
|
|
705
|
-
defaultTargetIdentities: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<PalletCorporateActionsTargetIdentities>, [
|
|
706
|
-
PolymeshPrimitivesAssetAssetId
|
|
707
|
-
]>;
|
|
708
|
-
/**
|
|
709
|
-
* The default amount of tax to withhold ("withholding tax", WT) for this asset when distributing dividends.
|
|
710
|
-
*
|
|
711
|
-
* To understand withholding tax, e.g., let's assume that you hold ACME shares.
|
|
712
|
-
* ACME now decides to distribute 100 SEK to Alice.
|
|
713
|
-
* Alice lives in Sweden, so Skatteverket (the Swedish tax authority) wants 30% of that.
|
|
714
|
-
* Then those 100 * 30% are withheld from Alice, and ACME will send them to Skatteverket.
|
|
715
|
-
*
|
|
716
|
-
* (AssetId => % to withhold)
|
|
717
|
-
**/
|
|
718
|
-
defaultWithholdingTax: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Permill>, [
|
|
719
|
-
PolymeshPrimitivesAssetAssetId
|
|
720
|
-
]>;
|
|
721
|
-
/**
|
|
722
|
-
* Associates details in free-form text with a CA by its ID.
|
|
723
|
-
* (CAId => CADetails)
|
|
724
|
-
**/
|
|
725
|
-
details: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
|
|
726
|
-
assetId?: any;
|
|
727
|
-
localId?: any;
|
|
728
|
-
} | string | Uint8Array) => Observable<Bytes>, [
|
|
729
|
-
PalletCorporateActionsCaId
|
|
730
|
-
]>;
|
|
731
|
-
/**
|
|
732
|
-
* The amount of tax to withhold ("withholding tax", WT) for a certain AssetId x DID.
|
|
733
|
-
* If an entry exists for a certain DID, it overrides the default in `DefaultWithholdingTax`.
|
|
734
|
-
*
|
|
735
|
-
* (AssetId => [(did, % to withhold)]
|
|
736
|
-
**/
|
|
737
|
-
didWithholdingTax: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Vec<ITuple<[PolymeshPrimitivesIdentityId, Permill]>>>, [
|
|
738
|
-
PolymeshPrimitivesAssetAssetId
|
|
739
|
-
]>;
|
|
740
|
-
/**
|
|
741
|
-
* Determines the maximum number of bytes that the free-form `details` of a CA can store.
|
|
742
|
-
*
|
|
743
|
-
* Note that this is not the number of `char`s or the number of [graphemes].
|
|
744
|
-
* While this may be unnatural in terms of human understanding of a text's length,
|
|
745
|
-
* it more closely reflects actual storage costs (`'a'` is cheaper to store than an emoji).
|
|
746
|
-
*
|
|
747
|
-
* [graphemes]: https://en.wikipedia.org/wiki/Grapheme
|
|
748
|
-
**/
|
|
749
|
-
maxDetailsLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
750
|
-
/**
|
|
751
|
-
* Storage version.
|
|
752
|
-
**/
|
|
753
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
754
|
-
};
|
|
755
|
-
corporateBallot: {
|
|
756
|
-
/**
|
|
757
|
-
* Metadata of a corporate ballot.
|
|
758
|
-
*
|
|
759
|
-
* (CAId) => BallotMeta
|
|
760
|
-
**/
|
|
761
|
-
metas: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
|
|
762
|
-
assetId?: any;
|
|
763
|
-
localId?: any;
|
|
764
|
-
} | string | Uint8Array) => Observable<Option<PalletCorporateActionsBallotBallotMeta>>, [
|
|
765
|
-
PalletCorporateActionsCaId
|
|
766
|
-
]>;
|
|
767
|
-
/**
|
|
768
|
-
* Stores how many choices there are in each motion.
|
|
769
|
-
*
|
|
770
|
-
* At all times, the invariant holds that `motion_choices[idx]` is equal to
|
|
771
|
-
* `metas.unwrap().motions[idx].choices.len()`. That is, this is just a cache,
|
|
772
|
-
* used to avoid fetching all the motions with their associated texts.
|
|
773
|
-
*
|
|
774
|
-
* `u16` choices should be more than enough to fit real use cases.
|
|
775
|
-
*
|
|
776
|
-
* (CAId) => Number of choices in each motion.
|
|
777
|
-
**/
|
|
778
|
-
motionNumChoices: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
|
|
779
|
-
assetId?: any;
|
|
780
|
-
localId?: any;
|
|
781
|
-
} | string | Uint8Array) => Observable<Vec<u16>>, [
|
|
782
|
-
PalletCorporateActionsCaId
|
|
783
|
-
]>;
|
|
784
|
-
/**
|
|
785
|
-
* Is ranked choice voting (RCV) enabled for this ballot?
|
|
786
|
-
* For an understanding of how RCV is handled, see note on `BallotVote`'s `fallback` field.
|
|
787
|
-
*
|
|
788
|
-
* (CAId) => bool
|
|
789
|
-
**/
|
|
790
|
-
rcv: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
|
|
791
|
-
assetId?: any;
|
|
792
|
-
localId?: any;
|
|
793
|
-
} | string | Uint8Array) => Observable<bool>, [
|
|
794
|
-
PalletCorporateActionsCaId
|
|
795
|
-
]>;
|
|
796
|
-
/**
|
|
797
|
-
* Stores the total vote tally on each choice.
|
|
798
|
-
*
|
|
799
|
-
* RCV is not accounted for,
|
|
800
|
-
* as there are too many wants to interpret the graph,
|
|
801
|
-
* and because it would not be efficient.
|
|
802
|
-
*
|
|
803
|
-
* (CAId) => [current vote weights]
|
|
804
|
-
**/
|
|
805
|
-
results: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
|
|
806
|
-
assetId?: any;
|
|
807
|
-
localId?: any;
|
|
808
|
-
} | string | Uint8Array) => Observable<Vec<u128>>, [
|
|
809
|
-
PalletCorporateActionsCaId
|
|
810
|
-
]>;
|
|
811
|
-
/**
|
|
812
|
-
* Storage version.
|
|
813
|
-
**/
|
|
814
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
815
|
-
/**
|
|
816
|
-
* Time details of a corporate ballot associated with a CA.
|
|
817
|
-
* The timestamps denote when voting starts and stops.
|
|
818
|
-
*
|
|
819
|
-
* (CAId) => BallotTimeRange
|
|
820
|
-
**/
|
|
821
|
-
timeRanges: AugmentedQuery<ApiType, (arg: PalletCorporateActionsCaId | {
|
|
822
|
-
assetId?: any;
|
|
823
|
-
localId?: any;
|
|
824
|
-
} | string | Uint8Array) => Observable<Option<PalletCorporateActionsBallotBallotTimeRange>>, [
|
|
825
|
-
PalletCorporateActionsCaId
|
|
826
|
-
]>;
|
|
827
|
-
/**
|
|
828
|
-
* Stores each DID's votes in a given ballot.
|
|
829
|
-
* See the documentation of `BallotVote` for notes on semantics.
|
|
830
|
-
*
|
|
831
|
-
* (CAId) => (DID) => [vote weight]
|
|
832
|
-
*
|
|
833
|
-
* User must enter 0 vote weight if they don't want to vote for a choice.
|
|
834
|
-
**/
|
|
835
|
-
votes: AugmentedQuery<ApiType, (arg1: PalletCorporateActionsCaId | {
|
|
836
|
-
assetId?: any;
|
|
837
|
-
localId?: any;
|
|
838
|
-
} | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Vec<PalletCorporateActionsBallotBallotVote>>, [
|
|
839
|
-
PalletCorporateActionsCaId,
|
|
840
|
-
PolymeshPrimitivesIdentityId
|
|
841
|
-
]>;
|
|
842
|
-
};
|
|
843
|
-
electionProviderMultiPhase: {
|
|
844
|
-
/**
|
|
845
|
-
* Current phase.
|
|
846
|
-
**/
|
|
847
|
-
currentPhase: AugmentedQuery<ApiType, () => Observable<PalletElectionProviderMultiPhasePhase>, [
|
|
848
|
-
]>;
|
|
849
|
-
/**
|
|
850
|
-
* Desired number of targets to elect for this round.
|
|
851
|
-
*
|
|
852
|
-
* Only exists when [`Snapshot`] is present.
|
|
853
|
-
**/
|
|
854
|
-
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
855
|
-
/**
|
|
856
|
-
* The minimum score that each 'untrusted' solution must attain in order to be considered
|
|
857
|
-
* feasible.
|
|
858
|
-
*
|
|
859
|
-
* Can be set via `set_minimum_untrusted_score`.
|
|
860
|
-
**/
|
|
861
|
-
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, [
|
|
862
|
-
]>;
|
|
863
|
-
/**
|
|
864
|
-
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
|
865
|
-
**/
|
|
866
|
-
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, [
|
|
867
|
-
]>;
|
|
868
|
-
/**
|
|
869
|
-
* Internal counter for the number of rounds.
|
|
870
|
-
*
|
|
871
|
-
* This is useful for de-duplication of transactions submitted to the pool, and general
|
|
872
|
-
* diagnostics of the pallet.
|
|
873
|
-
*
|
|
874
|
-
* This is merely incremented once per every time that an upstream `elect` is called.
|
|
875
|
-
**/
|
|
876
|
-
round: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
877
|
-
/**
|
|
878
|
-
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
|
879
|
-
* value in `SignedSubmissions`.
|
|
880
|
-
*
|
|
881
|
-
* We never need to process more than a single signed submission at a time. Signed submissions
|
|
882
|
-
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
|
883
|
-
* them one at a time instead of reading and decoding all of them at once.
|
|
884
|
-
**/
|
|
885
|
-
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, [
|
|
886
|
-
]>;
|
|
887
|
-
/**
|
|
888
|
-
* The next index to be assigned to an incoming signed submission.
|
|
889
|
-
*
|
|
890
|
-
* Every accepted submission is assigned a unique index; that index is bound to that particular
|
|
891
|
-
* submission for the duration of the election. On election finalization, the next index is
|
|
892
|
-
* reset to 0.
|
|
893
|
-
*
|
|
894
|
-
* We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
|
|
895
|
-
* capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
|
|
896
|
-
* because iteration is slow. Instead, we store the value here.
|
|
897
|
-
**/
|
|
898
|
-
signedSubmissionNextIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
899
|
-
/**
|
|
900
|
-
* Unchecked, signed solutions.
|
|
901
|
-
*
|
|
902
|
-
* Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
|
|
903
|
-
* allowing us to keep only a single one in memory at a time.
|
|
904
|
-
*
|
|
905
|
-
* Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
|
|
906
|
-
* affect; we shouldn't need a cryptographically secure hasher.
|
|
907
|
-
**/
|
|
908
|
-
signedSubmissionsMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletElectionProviderMultiPhaseSignedSignedSubmission>>, [
|
|
909
|
-
u32
|
|
910
|
-
]>;
|
|
911
|
-
/**
|
|
912
|
-
* Snapshot data of the round.
|
|
913
|
-
*
|
|
914
|
-
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
|
915
|
-
**/
|
|
916
|
-
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, [
|
|
917
|
-
]>;
|
|
918
|
-
/**
|
|
919
|
-
* The metadata of the [`RoundSnapshot`]
|
|
920
|
-
*
|
|
921
|
-
* Only exists when [`Snapshot`] is present.
|
|
922
|
-
**/
|
|
923
|
-
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, [
|
|
924
|
-
]>;
|
|
925
|
-
};
|
|
926
|
-
externalAgents: {
|
|
927
|
-
/**
|
|
928
|
-
* Maps an agent (`IdentityId`) to all assets they belong to, if any.
|
|
929
|
-
**/
|
|
930
|
-
agentOf: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<Null>, [
|
|
931
|
-
PolymeshPrimitivesIdentityId,
|
|
932
|
-
PolymeshPrimitivesAssetAssetId
|
|
933
|
-
]>;
|
|
934
|
-
/**
|
|
935
|
-
* The next per-asset AG ID in the sequence.
|
|
936
|
-
*
|
|
937
|
-
* The full ID is defined as a combination of `AssetId` and a number in this sequence,
|
|
938
|
-
* which starts from 1, rather than 0.
|
|
939
|
-
**/
|
|
940
|
-
agIdSequence: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u32>, [
|
|
941
|
-
PolymeshPrimitivesAssetAssetId
|
|
942
|
-
]>;
|
|
943
|
-
/**
|
|
944
|
-
* Maps agents (`IdentityId`) for an `AssetId` to what AG they belong to, if any.
|
|
945
|
-
**/
|
|
946
|
-
groupOfAgent: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PolymeshPrimitivesAgentAgentGroup>>, [
|
|
947
|
-
PolymeshPrimitivesAssetAssetId,
|
|
948
|
-
PolymeshPrimitivesIdentityId
|
|
949
|
-
]>;
|
|
950
|
-
/**
|
|
951
|
-
* For custom AGs of an `AssetId`, maps to what permissions an agent in that AG would have.
|
|
952
|
-
**/
|
|
953
|
-
groupPermissions: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesSecondaryKeyExtrinsicPermissions>>, [
|
|
954
|
-
PolymeshPrimitivesAssetAssetId,
|
|
955
|
-
u32
|
|
956
|
-
]>;
|
|
957
|
-
/**
|
|
958
|
-
* Maps an `AssetId` to the number of `Full` agents for it.
|
|
959
|
-
**/
|
|
960
|
-
numFullAgents: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u32>, [
|
|
961
|
-
PolymeshPrimitivesAssetAssetId
|
|
962
|
-
]>;
|
|
963
|
-
/**
|
|
964
|
-
* Storage version.
|
|
965
|
-
**/
|
|
966
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
967
|
-
};
|
|
968
|
-
grandpa: {
|
|
969
|
-
/**
|
|
970
|
-
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
971
|
-
* in the "set" of Grandpa validators from genesis.
|
|
972
|
-
**/
|
|
973
|
-
currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
974
|
-
/**
|
|
975
|
-
* next block number where we can force a change.
|
|
976
|
-
**/
|
|
977
|
-
nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
978
|
-
/**
|
|
979
|
-
* Pending change: (signaled at, scheduled change).
|
|
980
|
-
**/
|
|
981
|
-
pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, [
|
|
982
|
-
]>;
|
|
983
|
-
/**
|
|
984
|
-
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
985
|
-
* members were responsible.
|
|
986
|
-
*
|
|
987
|
-
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
988
|
-
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
989
|
-
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
990
|
-
* was the owner of a given key on a given session, and what the active set ID was
|
|
991
|
-
* during that session.
|
|
992
|
-
*
|
|
993
|
-
* TWOX-NOTE: `SetId` is not under user control.
|
|
994
|
-
**/
|
|
995
|
-
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
|
|
996
|
-
u64
|
|
997
|
-
]>;
|
|
998
|
-
/**
|
|
999
|
-
* `true` if we are currently stalled.
|
|
1000
|
-
**/
|
|
1001
|
-
stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []>;
|
|
1002
|
-
/**
|
|
1003
|
-
* State of the current authority set.
|
|
1004
|
-
**/
|
|
1005
|
-
state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []>;
|
|
1006
|
-
};
|
|
1007
|
-
identity: {
|
|
1008
|
-
/**
|
|
1009
|
-
* How many "strong" references to the account key.
|
|
1010
|
-
*
|
|
1011
|
-
* Strong references will block a key from leaving it's identity.
|
|
1012
|
-
*
|
|
1013
|
-
* Pallets using "strong" references to account keys:
|
|
1014
|
-
* * Relayer: For `user_key` and `paying_key`
|
|
1015
|
-
*
|
|
1016
|
-
**/
|
|
1017
|
-
accountKeyRefCount: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
|
|
1018
|
-
AccountId32
|
|
1019
|
-
]>;
|
|
1020
|
-
/**
|
|
1021
|
-
* All authorizations that an identity/key has
|
|
1022
|
-
**/
|
|
1023
|
-
authorizations: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesSecondaryKeySignatory | {
|
|
1024
|
-
Identity: any;
|
|
1025
|
-
} | {
|
|
1026
|
-
Account: any;
|
|
1027
|
-
} | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesAuthorization>>, [
|
|
1028
|
-
PolymeshPrimitivesSecondaryKeySignatory,
|
|
1029
|
-
u64
|
|
1030
|
-
]>;
|
|
1031
|
-
/**
|
|
1032
|
-
* All authorizations that an identity has given. (Authorizer, auth_id -> authorized)
|
|
1033
|
-
**/
|
|
1034
|
-
authorizationsGiven: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSecondaryKeySignatory>, [
|
|
1035
|
-
PolymeshPrimitivesIdentityId,
|
|
1036
|
-
u64
|
|
1037
|
-
]>;
|
|
1038
|
-
/**
|
|
1039
|
-
* A config flag that, if set, instructs an authorization from a CDD provider in order to
|
|
1040
|
-
* change the primary key of an identity.
|
|
1041
|
-
**/
|
|
1042
|
-
cddAuthForPrimaryKeyRotation: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1043
|
-
/**
|
|
1044
|
-
* All child identities of a parent (i.e ParentDID, ChildDID, true)
|
|
1045
|
-
**/
|
|
1046
|
-
childDid: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
|
|
1047
|
-
PolymeshPrimitivesIdentityId,
|
|
1048
|
-
PolymeshPrimitivesIdentityId
|
|
1049
|
-
]>;
|
|
1050
|
-
/**
|
|
1051
|
-
* (Target ID, claim type) (issuer,scope) -> Associated claims
|
|
1052
|
-
**/
|
|
1053
|
-
claims: AugmentedQuery<ApiType, (arg1: PalletIdentityClaim1stKey | {
|
|
1054
|
-
target?: any;
|
|
1055
|
-
claimType?: any;
|
|
1056
|
-
} | string | Uint8Array, arg2: PalletIdentityClaim2ndKey | {
|
|
1057
|
-
issuer?: any;
|
|
1058
|
-
scope?: any;
|
|
1059
|
-
} | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityClaim>>, [
|
|
1060
|
-
PalletIdentityClaim1stKey,
|
|
1061
|
-
PalletIdentityClaim2ndKey
|
|
1062
|
-
]>;
|
|
1063
|
-
/**
|
|
1064
|
-
* Controls the authorization id.
|
|
1065
|
-
**/
|
|
1066
|
-
currentAuthId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1067
|
-
/**
|
|
1068
|
-
* It stores the current gas fee payer for the current transaction.
|
|
1069
|
-
**/
|
|
1070
|
-
currentPayer: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
1071
|
-
/**
|
|
1072
|
-
* The next `CustomClaimTypeId`.
|
|
1073
|
-
**/
|
|
1074
|
-
customClaimIdSequence: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1075
|
-
/**
|
|
1076
|
-
* CusotmClaimTypeId -> String constant
|
|
1077
|
-
**/
|
|
1078
|
-
customClaims: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
|
|
1079
|
-
u32
|
|
1080
|
-
]>;
|
|
1081
|
-
/**
|
|
1082
|
-
* String constant -> CustomClaimTypeId
|
|
1083
|
-
**/
|
|
1084
|
-
customClaimsInverse: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<u32>>, [
|
|
1085
|
-
Bytes
|
|
1086
|
-
]>;
|
|
1087
|
-
/**
|
|
1088
|
-
* A reverse double map to allow finding all keys for an identity.
|
|
1089
|
-
**/
|
|
1090
|
-
didKeys: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<bool>, [
|
|
1091
|
-
PolymeshPrimitivesIdentityId,
|
|
1092
|
-
AccountId32
|
|
1093
|
-
]>;
|
|
1094
|
-
/**
|
|
1095
|
-
* DID -> identity info
|
|
1096
|
-
**/
|
|
1097
|
-
didRecords: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityDidRecord>>, [
|
|
1098
|
-
PolymeshPrimitivesIdentityId
|
|
1099
|
-
]>;
|
|
1100
|
-
/**
|
|
1101
|
-
* DID -> bool that indicates if secondary keys are frozen.
|
|
1102
|
-
**/
|
|
1103
|
-
isDidFrozen: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
|
|
1104
|
-
PolymeshPrimitivesIdentityId
|
|
1105
|
-
]>;
|
|
1106
|
-
/**
|
|
1107
|
-
* A secondary key's asset permissions.
|
|
1108
|
-
**/
|
|
1109
|
-
keyAssetPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesSubsetSubsetRestrictionAssetId>>, [
|
|
1110
|
-
AccountId32
|
|
1111
|
-
]>;
|
|
1112
|
-
/**
|
|
1113
|
-
* A secondary key's extrinsic permissions.
|
|
1114
|
-
**/
|
|
1115
|
-
keyExtrinsicPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesSecondaryKeyExtrinsicPermissions>>, [
|
|
1116
|
-
AccountId32
|
|
1117
|
-
]>;
|
|
1118
|
-
/**
|
|
1119
|
-
* A secondary key's portfolio permissions.
|
|
1120
|
-
**/
|
|
1121
|
-
keyPortfolioPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesSubsetSubsetRestrictionPortfolioId>>, [
|
|
1122
|
-
AccountId32
|
|
1123
|
-
]>;
|
|
1124
|
-
/**
|
|
1125
|
-
* Map from AccountId to `KeyRecord` that holds the key's type and identity.
|
|
1126
|
-
**/
|
|
1127
|
-
keyRecords: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesSecondaryKeyKeyRecord>>, [
|
|
1128
|
-
AccountId32
|
|
1129
|
-
]>;
|
|
1130
|
-
/**
|
|
1131
|
-
* Nonce to ensure unique actions. starts from 1.
|
|
1132
|
-
**/
|
|
1133
|
-
multiPurposeNonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1134
|
-
/**
|
|
1135
|
-
* Track the number of authorizations given by each identity.
|
|
1136
|
-
**/
|
|
1137
|
-
numberOfGivenAuths: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u32>, [
|
|
1138
|
-
PolymeshPrimitivesIdentityId
|
|
1139
|
-
]>;
|
|
1140
|
-
/**
|
|
1141
|
-
* Authorization nonce per Identity. Initially is 0.
|
|
1142
|
-
**/
|
|
1143
|
-
offChainAuthorizationNonce: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u64>, [
|
|
1144
|
-
PolymeshPrimitivesIdentityId
|
|
1145
|
-
]>;
|
|
1146
|
-
/**
|
|
1147
|
-
* Tracks all authorizations that must be deleted
|
|
1148
|
-
**/
|
|
1149
|
-
outdatedAuthorizations: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesSecondaryKeySignatory | {
|
|
1150
|
-
Identity: any;
|
|
1151
|
-
} | {
|
|
1152
|
-
Account: any;
|
|
1153
|
-
} | string | Uint8Array) => Observable<Option<u64>>, [
|
|
1154
|
-
PolymeshPrimitivesSecondaryKeySignatory
|
|
1155
|
-
]>;
|
|
1156
|
-
/**
|
|
1157
|
-
* Parent identity if the DID is a child Identity.
|
|
1158
|
-
**/
|
|
1159
|
-
parentDid: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
|
|
1160
|
-
PolymeshPrimitivesIdentityId
|
|
1161
|
-
]>;
|
|
1162
|
-
/**
|
|
1163
|
-
* Storage version.
|
|
1164
|
-
**/
|
|
1165
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
1166
|
-
};
|
|
1167
|
-
imOnline: {
|
|
1168
|
-
/**
|
|
1169
|
-
* For each session index, we keep a mapping of `ValidatorId<T>` to the
|
|
1170
|
-
* number of blocks authored by the given authority.
|
|
1171
|
-
**/
|
|
1172
|
-
authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [
|
|
1173
|
-
u32,
|
|
1174
|
-
AccountId32
|
|
1175
|
-
]>;
|
|
1176
|
-
/**
|
|
1177
|
-
* The block number after which it's ok to send heartbeats in the current
|
|
1178
|
-
* session.
|
|
1179
|
-
*
|
|
1180
|
-
* At the beginning of each session we set this to a value that should fall
|
|
1181
|
-
* roughly in the middle of the session duration. The idea is to first wait for
|
|
1182
|
-
* the validators to produce a block in the current session, so that the
|
|
1183
|
-
* heartbeat later on will not be necessary.
|
|
1184
|
-
*
|
|
1185
|
-
* This value will only be used as a fallback if we fail to get a proper session
|
|
1186
|
-
* progress estimate from `NextSessionRotation`, as those estimates should be
|
|
1187
|
-
* more accurate then the value we calculate for `HeartbeatAfter`.
|
|
1188
|
-
**/
|
|
1189
|
-
heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1190
|
-
/**
|
|
1191
|
-
* The current set of keys that may issue a heartbeat.
|
|
1192
|
-
**/
|
|
1193
|
-
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, [
|
|
1194
|
-
]>;
|
|
1195
|
-
/**
|
|
1196
|
-
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to
|
|
1197
|
-
* `WrapperOpaque<BoundedOpaqueNetworkState>`.
|
|
1198
|
-
**/
|
|
1199
|
-
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [
|
|
1200
|
-
u32,
|
|
1201
|
-
u32
|
|
1202
|
-
]>;
|
|
1203
|
-
};
|
|
1204
|
-
indices: {
|
|
1205
|
-
/**
|
|
1206
|
-
* The lookup from index to account.
|
|
1207
|
-
**/
|
|
1208
|
-
accounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128, bool]>>>, [
|
|
1209
|
-
u32
|
|
1210
|
-
]>;
|
|
1211
|
-
};
|
|
1212
|
-
multiSig: {
|
|
1213
|
-
/**
|
|
1214
|
-
* The multisig's admin identity. The primary key of this identity
|
|
1215
|
-
* has admin control over the multisig.
|
|
1216
|
-
*
|
|
1217
|
-
* multisig -> Option<IdentityId>.
|
|
1218
|
-
**/
|
|
1219
|
-
adminDid: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
|
|
1220
|
-
AccountId32
|
|
1221
|
-
]>;
|
|
1222
|
-
/**
|
|
1223
|
-
* Pending join identity authorization proposals.
|
|
1224
|
-
*
|
|
1225
|
-
* multisig -> auth id => Option<proposal id>.
|
|
1226
|
-
**/
|
|
1227
|
-
authToProposalId: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [
|
|
1228
|
-
AccountId32,
|
|
1229
|
-
u64
|
|
1230
|
-
]>;
|
|
1231
|
-
/**
|
|
1232
|
-
* Proposal execution reentry guard.
|
|
1233
|
-
**/
|
|
1234
|
-
executionReentry: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1235
|
-
/**
|
|
1236
|
-
* The last proposal id before the multisig changed signers or signatures required.
|
|
1237
|
-
*
|
|
1238
|
-
* multisig => Option<proposal id>
|
|
1239
|
-
**/
|
|
1240
|
-
lastInvalidProposal: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u64>>, [
|
|
1241
|
-
AccountId32
|
|
1242
|
-
]>;
|
|
1243
|
-
/**
|
|
1244
|
-
* Nonce to ensure unique MultiSig addresses are generated; starts from 1.
|
|
1245
|
-
**/
|
|
1246
|
-
multiSigNonce: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1247
|
-
/**
|
|
1248
|
-
* Signers of a multisig. (multisig, signer) => bool.
|
|
1249
|
-
**/
|
|
1250
|
-
multiSigSigners: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<bool>, [
|
|
1251
|
-
AccountId32,
|
|
1252
|
-
AccountId32
|
|
1253
|
-
]>;
|
|
1254
|
-
/**
|
|
1255
|
-
* Confirmations required before processing a multisig tx.
|
|
1256
|
-
**/
|
|
1257
|
-
multiSigSignsRequired: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
|
|
1258
|
-
AccountId32
|
|
1259
|
-
]>;
|
|
1260
|
-
/**
|
|
1261
|
-
* Next proposal id for a multisig. Starts from 0.
|
|
1262
|
-
*
|
|
1263
|
-
* multisig => next proposal id
|
|
1264
|
-
**/
|
|
1265
|
-
nextProposalId: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
|
|
1266
|
-
AccountId32
|
|
1267
|
-
]>;
|
|
1268
|
-
/**
|
|
1269
|
-
* Number of approved/accepted signers of a multisig.
|
|
1270
|
-
**/
|
|
1271
|
-
numberOfSigners: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
|
|
1272
|
-
AccountId32
|
|
1273
|
-
]>;
|
|
1274
|
-
/**
|
|
1275
|
-
* The multisig's paying identity. The primary key of this identity
|
|
1276
|
-
* pays the transaction/protocal fees of the multisig proposals.
|
|
1277
|
-
*
|
|
1278
|
-
* multisig -> Option<IdentityId>.
|
|
1279
|
-
**/
|
|
1280
|
-
payingDid: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
|
|
1281
|
-
AccountId32
|
|
1282
|
-
]>;
|
|
1283
|
-
/**
|
|
1284
|
-
* Proposals presented for voting to a multisig.
|
|
1285
|
-
*
|
|
1286
|
-
* multisig -> proposal id => Option<Proposal>.
|
|
1287
|
-
**/
|
|
1288
|
-
proposals: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Call>>, [
|
|
1289
|
-
AccountId32,
|
|
1290
|
-
u64
|
|
1291
|
-
]>;
|
|
1292
|
-
/**
|
|
1293
|
-
* The state of a multisig proposal
|
|
1294
|
-
*
|
|
1295
|
-
* multisig -> proposal id => Option<ProposalState>.
|
|
1296
|
-
**/
|
|
1297
|
-
proposalStates: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesMultisigProposalState>>, [
|
|
1298
|
-
AccountId32,
|
|
1299
|
-
u64
|
|
1300
|
-
]>;
|
|
1301
|
-
/**
|
|
1302
|
-
* The count of approvals/rejections of a multisig proposal.
|
|
1303
|
-
*
|
|
1304
|
-
* multisig -> proposal id => Option<ProposalVoteCount>.
|
|
1305
|
-
**/
|
|
1306
|
-
proposalVoteCounts: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesMultisigProposalVoteCount>>, [
|
|
1307
|
-
AccountId32,
|
|
1308
|
-
u64
|
|
1309
|
-
]>;
|
|
1310
|
-
/**
|
|
1311
|
-
* Storage version.
|
|
1312
|
-
**/
|
|
1313
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
1314
|
-
/**
|
|
1315
|
-
* The last transaction version, used for `on_runtime_upgrade`.
|
|
1316
|
-
**/
|
|
1317
|
-
transactionVersion: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1318
|
-
/**
|
|
1319
|
-
* Individual multisig signer votes.
|
|
1320
|
-
*
|
|
1321
|
-
* (multisig, proposal_id) -> signer => vote.
|
|
1322
|
-
**/
|
|
1323
|
-
votes: AugmentedQuery<ApiType, (arg1: ITuple<[AccountId32, u64]> | [AccountId32 | string | Uint8Array, u64 | AnyNumber | Uint8Array], arg2: AccountId32 | string | Uint8Array) => Observable<bool>, [
|
|
1324
|
-
ITuple<[AccountId32, u64]>,
|
|
1325
|
-
AccountId32
|
|
1326
|
-
]>;
|
|
1327
|
-
};
|
|
1328
|
-
nft: {
|
|
1329
|
-
/**
|
|
1330
|
-
* All collection details for a given collection id.
|
|
1331
|
-
**/
|
|
1332
|
-
collection: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesNftNftCollection>, [
|
|
1333
|
-
u64
|
|
1334
|
-
]>;
|
|
1335
|
-
/**
|
|
1336
|
-
* The collection id corresponding to each asset.
|
|
1337
|
-
**/
|
|
1338
|
-
collectionAsset: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
|
|
1339
|
-
PolymeshPrimitivesAssetAssetId
|
|
1340
|
-
]>;
|
|
1341
|
-
/**
|
|
1342
|
-
* All mandatory metadata keys for a given collection.
|
|
1343
|
-
**/
|
|
1344
|
-
collectionKeys: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<BTreeSet<PolymeshPrimitivesAssetMetadataAssetMetadataKey>>, [
|
|
1345
|
-
u64
|
|
1346
|
-
]>;
|
|
1347
|
-
/**
|
|
1348
|
-
* The last `NFTCollectionId` used for a collection.
|
|
1349
|
-
**/
|
|
1350
|
-
currentCollectionId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
1351
|
-
/**
|
|
1352
|
-
* The last `NFTId` used for an NFT.
|
|
1353
|
-
**/
|
|
1354
|
-
currentNFTId: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u64>>, [
|
|
1355
|
-
u64
|
|
1356
|
-
]>;
|
|
1357
|
-
/**
|
|
1358
|
-
* The metadata value of an nft given its collection id, token id and metadata key.
|
|
1359
|
-
**/
|
|
1360
|
-
metadataValue: AugmentedQuery<ApiType, (arg1: ITuple<[u64, u64]> | [u64 | AnyNumber | Uint8Array, u64 | AnyNumber | Uint8Array], arg2: PolymeshPrimitivesAssetMetadataAssetMetadataKey | {
|
|
1361
|
-
Global: any;
|
|
1362
|
-
} | {
|
|
1363
|
-
Local: any;
|
|
1364
|
-
} | string | Uint8Array) => Observable<Bytes>, [
|
|
1365
|
-
ITuple<[u64, u64]>,
|
|
1366
|
-
PolymeshPrimitivesAssetMetadataAssetMetadataKey
|
|
1367
|
-
]>;
|
|
1368
|
-
/**
|
|
1369
|
-
* Tracks the owner of an NFT
|
|
1370
|
-
**/
|
|
1371
|
-
nftOwner: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityIdPortfolioId>>, [
|
|
1372
|
-
PolymeshPrimitivesAssetAssetId,
|
|
1373
|
-
u64
|
|
1374
|
-
]>;
|
|
1375
|
-
/**
|
|
1376
|
-
* The total number of NFTs in a collection.
|
|
1377
|
-
**/
|
|
1378
|
-
nfTsInCollection: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
|
|
1379
|
-
PolymeshPrimitivesAssetAssetId
|
|
1380
|
-
]>;
|
|
1381
|
-
/**
|
|
1382
|
-
* The total number of NFTs per identity.
|
|
1383
|
-
**/
|
|
1384
|
-
numberOfNFTs: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u64>, [
|
|
1385
|
-
PolymeshPrimitivesAssetAssetId,
|
|
1386
|
-
PolymeshPrimitivesIdentityId
|
|
1387
|
-
]>;
|
|
1388
|
-
};
|
|
1389
|
-
offences: {
|
|
1390
|
-
/**
|
|
1391
|
-
* A vector of reports of the same kind that happened at the same time slot.
|
|
1392
|
-
**/
|
|
1393
|
-
concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: U8aFixed | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Vec<H256>>, [
|
|
1394
|
-
U8aFixed,
|
|
1395
|
-
Bytes
|
|
1396
|
-
]>;
|
|
1397
|
-
/**
|
|
1398
|
-
* The primary structure that holds all offence records keyed by report identifiers.
|
|
1399
|
-
**/
|
|
1400
|
-
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [
|
|
1401
|
-
H256
|
|
1402
|
-
]>;
|
|
1403
|
-
/**
|
|
1404
|
-
* Enumerates all reports of a kind along with the time they happened.
|
|
1405
|
-
*
|
|
1406
|
-
* All reports are sorted by the time of offence.
|
|
1407
|
-
*
|
|
1408
|
-
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
|
1409
|
-
* different types are not supported at the moment so we are doing the manual serialization.
|
|
1410
|
-
**/
|
|
1411
|
-
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [
|
|
1412
|
-
U8aFixed
|
|
1413
|
-
]>;
|
|
1414
|
-
};
|
|
1415
|
-
pips: {
|
|
1416
|
-
/**
|
|
1417
|
-
* Total count of pending or scheduled PIPs.
|
|
1418
|
-
**/
|
|
1419
|
-
activePipCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1420
|
-
/**
|
|
1421
|
-
* The maximum allowed number for active PIPs. Once reached, new PIPs cannot be proposed by community members.
|
|
1422
|
-
**/
|
|
1423
|
-
activePipLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1424
|
-
/**
|
|
1425
|
-
* All existing PIPs where the proposer is a committee.
|
|
1426
|
-
* This list is a cache of all ids in `Proposals` with `Proposer::Committee(_)`.
|
|
1427
|
-
**/
|
|
1428
|
-
committeePips: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
|
|
1429
|
-
/**
|
|
1430
|
-
* Default enactment period that will be use after a proposal is accepted by GC.
|
|
1431
|
-
**/
|
|
1432
|
-
defaultEnactmentPeriod: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1433
|
-
/**
|
|
1434
|
-
* All locked [`DepositInfo`] per [`PipId`] for each account.
|
|
1435
|
-
**/
|
|
1436
|
-
deposits: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletPipsDepositInfo>>, [
|
|
1437
|
-
u32,
|
|
1438
|
-
AccountId32
|
|
1439
|
-
]>;
|
|
1440
|
-
/**
|
|
1441
|
-
* A live priority queue (lowest priority at index 0)
|
|
1442
|
-
* of pending PIPs up to the active limit.
|
|
1443
|
-
* Priority is defined by the `weight` in the `SnapshottedPip`.
|
|
1444
|
-
*
|
|
1445
|
-
* Unlike `SnapshotQueue`, this queue is live, getting updated with each vote cast.
|
|
1446
|
-
* The snapshot is therefore essentially a point-in-time clone of this queue.
|
|
1447
|
-
**/
|
|
1448
|
-
liveQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletPipsSnapshottedPip>>, []>;
|
|
1449
|
-
/**
|
|
1450
|
-
* Maximum times a PIP can be skipped before triggering `CannotSkipPip` in `enact_snapshot_results`.
|
|
1451
|
-
**/
|
|
1452
|
-
maxPipSkipCount: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
1453
|
-
/**
|
|
1454
|
-
* The minimum amount to be used as a deposit for community PIP creation.
|
|
1455
|
-
**/
|
|
1456
|
-
minimumProposalDeposit: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
1457
|
-
/**
|
|
1458
|
-
* Number of blocks it will take, after a `Pending` PIP expires, assuming it has not transitioned to another `ProposalState`.
|
|
1459
|
-
**/
|
|
1460
|
-
pendingPipExpiry: AugmentedQuery<ApiType, () => Observable<PolymeshPrimitivesMaybeBlock>, []>;
|
|
1461
|
-
/**
|
|
1462
|
-
* All PIPs that still require refunds.
|
|
1463
|
-
**/
|
|
1464
|
-
pendingRefunds: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [
|
|
1465
|
-
u32
|
|
1466
|
-
]>;
|
|
1467
|
-
/**
|
|
1468
|
-
* Proposal's identifier.
|
|
1469
|
-
**/
|
|
1470
|
-
pipIdSequence: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1471
|
-
/**
|
|
1472
|
-
* The number of times a certain PIP has been skipped.
|
|
1473
|
-
* Once a (configurable) threshhold is exceeded, a PIP cannot be skipped again.
|
|
1474
|
-
**/
|
|
1475
|
-
pipSkipCount: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u8>, [
|
|
1476
|
-
u32
|
|
1477
|
-
]>;
|
|
1478
|
-
/**
|
|
1479
|
-
* Maps PIPs to the block at which they will be executed.
|
|
1480
|
-
**/
|
|
1481
|
-
pipToSchedule: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
|
|
1482
|
-
u32
|
|
1483
|
-
]>;
|
|
1484
|
-
/**
|
|
1485
|
-
* The [`PipsMetadata`] for each proposal ([`PipId`]).
|
|
1486
|
-
**/
|
|
1487
|
-
proposalMetadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletPipsPipsMetadata>>, [
|
|
1488
|
-
u32
|
|
1489
|
-
]>;
|
|
1490
|
-
/**
|
|
1491
|
-
* The [`VotingResult`] for each proposal ([`PipId`]).
|
|
1492
|
-
**/
|
|
1493
|
-
proposalResult: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletPipsVotingResult>, [
|
|
1494
|
-
u32
|
|
1495
|
-
]>;
|
|
1496
|
-
/**
|
|
1497
|
-
* The [`Pip`] for each proposal ([`PipId`]).
|
|
1498
|
-
**/
|
|
1499
|
-
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletPipsPip>>, [
|
|
1500
|
-
u32
|
|
1501
|
-
]>;
|
|
1502
|
-
/**
|
|
1503
|
-
* The ([`ProposalState`]) of a given PIP ([`PipId`]).
|
|
1504
|
-
**/
|
|
1505
|
-
proposalStates: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletPipsProposalState>>, [
|
|
1506
|
-
u32
|
|
1507
|
-
]>;
|
|
1508
|
-
/**
|
|
1509
|
-
* The Votes ([`Vote`]) for each proposal ([`PipId`]) per account.
|
|
1510
|
-
**/
|
|
1511
|
-
proposalVotes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletPipsVote>>, [
|
|
1512
|
-
u32,
|
|
1513
|
-
AccountId32
|
|
1514
|
-
]>;
|
|
1515
|
-
/**
|
|
1516
|
-
* Set to `true` if historical PIPs data must be removed.
|
|
1517
|
-
**/
|
|
1518
|
-
pruneHistoricalPips: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1519
|
-
/**
|
|
1520
|
-
* Snaphot's identifier.
|
|
1521
|
-
**/
|
|
1522
|
-
snapshotIdSequence: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1523
|
-
/**
|
|
1524
|
-
* The [`SnapshotMetadata`].
|
|
1525
|
-
**/
|
|
1526
|
-
snapshotMeta: AugmentedQuery<ApiType, () => Observable<Option<PalletPipsSnapshotMetadata>>, [
|
|
1527
|
-
]>;
|
|
1528
|
-
/**
|
|
1529
|
-
* The priority queue (lowest priority at index 0) of PIPs at the point of snapshotting.
|
|
1530
|
-
* Priority is defined by the `weight` in the `SnapshottedPip`.
|
|
1531
|
-
*
|
|
1532
|
-
* A queued PIP can be skipped. Doing so bumps the `pip_skip_count`.
|
|
1533
|
-
* Once a (configurable) threshhold is exceeded, a PIP cannot be skipped again.
|
|
1534
|
-
**/
|
|
1535
|
-
snapshotQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletPipsSnapshottedPip>>, []>;
|
|
1536
|
-
/**
|
|
1537
|
-
* Storage version.
|
|
1538
|
-
**/
|
|
1539
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
1540
|
-
/**
|
|
1541
|
-
* All PIPs that still require votes to be pruned.
|
|
1542
|
-
**/
|
|
1543
|
-
votesToBePruned: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [
|
|
1544
|
-
u32
|
|
1545
|
-
]>;
|
|
1546
|
-
};
|
|
1547
|
-
polymeshCommittee: {
|
|
1548
|
-
/**
|
|
1549
|
-
* Time after which a proposal will expire.
|
|
1550
|
-
**/
|
|
1551
|
-
expiresAfter: AugmentedQuery<ApiType, () => Observable<PolymeshPrimitivesMaybeBlock>, []>;
|
|
1552
|
-
/**
|
|
1553
|
-
* The current members of the committee.
|
|
1554
|
-
**/
|
|
1555
|
-
members: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, []>;
|
|
1556
|
-
/**
|
|
1557
|
-
* Proposals so far.
|
|
1558
|
-
**/
|
|
1559
|
-
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1560
|
-
/**
|
|
1561
|
-
* Actual proposal for a given hash.
|
|
1562
|
-
**/
|
|
1563
|
-
proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [
|
|
1564
|
-
H256
|
|
1565
|
-
]>;
|
|
1566
|
-
/**
|
|
1567
|
-
* The hashes of the active proposals.
|
|
1568
|
-
**/
|
|
1569
|
-
proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
|
|
1570
|
-
/**
|
|
1571
|
-
* Release cooridinator.
|
|
1572
|
-
**/
|
|
1573
|
-
releaseCoordinator: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []>;
|
|
1574
|
-
/**
|
|
1575
|
-
* Vote threshold for an approval.
|
|
1576
|
-
**/
|
|
1577
|
-
voteThreshold: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
|
|
1578
|
-
/**
|
|
1579
|
-
* PolymeshVotes on a given proposal, if it is ongoing.
|
|
1580
|
-
**/
|
|
1581
|
-
voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCommitteePolymeshVotes>>, [
|
|
1582
|
-
H256
|
|
1583
|
-
]>;
|
|
1584
|
-
};
|
|
1585
|
-
polymeshContracts: {
|
|
1586
|
-
/**
|
|
1587
|
-
* Stores the chain version and code hash for the next chain upgrade.
|
|
1588
|
-
**/
|
|
1589
|
-
apiNextUpgrade: AugmentedQuery<ApiType, (arg: PolymeshContractsApi | {
|
|
1590
|
-
desc?: any;
|
|
1591
|
-
major?: any;
|
|
1592
|
-
} | string | Uint8Array) => Observable<Option<PolymeshContractsNextUpgrade>>, [
|
|
1593
|
-
PolymeshContractsApi
|
|
1594
|
-
]>;
|
|
1595
|
-
/**
|
|
1596
|
-
* Whitelist of extrinsics allowed to be called from contracts.
|
|
1597
|
-
**/
|
|
1598
|
-
callRuntimeWhitelist: AugmentedQuery<ApiType, (arg: PolymeshContractsChainExtensionExtrinsicId) => Observable<bool>, [
|
|
1599
|
-
PolymeshContractsChainExtensionExtrinsicId
|
|
1600
|
-
]>;
|
|
1601
|
-
/**
|
|
1602
|
-
* Stores the code hash for the current api.
|
|
1603
|
-
**/
|
|
1604
|
-
currentApiHash: AugmentedQuery<ApiType, (arg: PolymeshContractsApi | {
|
|
1605
|
-
desc?: any;
|
|
1606
|
-
major?: any;
|
|
1607
|
-
} | string | Uint8Array) => Observable<Option<PolymeshContractsApiCodeHash>>, [
|
|
1608
|
-
PolymeshContractsApi
|
|
1609
|
-
]>;
|
|
1610
|
-
/**
|
|
1611
|
-
* Storage version.
|
|
1612
|
-
**/
|
|
1613
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
1614
|
-
};
|
|
1615
|
-
portfolio: {
|
|
1616
|
-
/**
|
|
1617
|
-
* Custodians allowed to create and take custody of portfolios on an id's behalf.
|
|
1618
|
-
**/
|
|
1619
|
-
allowedCustodians: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
|
|
1620
|
-
PolymeshPrimitivesIdentityId,
|
|
1621
|
-
PolymeshPrimitivesIdentityId
|
|
1622
|
-
]>;
|
|
1623
|
-
/**
|
|
1624
|
-
* Inverse map of `Portfolios` used to ensure bijectivitiy,
|
|
1625
|
-
* and uniqueness of names in `Portfolios`.
|
|
1626
|
-
**/
|
|
1627
|
-
nameToNumber: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Option<u64>>, [
|
|
1628
|
-
PolymeshPrimitivesIdentityId,
|
|
1629
|
-
Bytes
|
|
1630
|
-
]>;
|
|
1631
|
-
/**
|
|
1632
|
-
* The next portfolio sequence number of an identity.
|
|
1633
|
-
**/
|
|
1634
|
-
nextPortfolioNumber: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<u64>, [
|
|
1635
|
-
PolymeshPrimitivesIdentityId
|
|
1636
|
-
]>;
|
|
1637
|
-
/**
|
|
1638
|
-
* The asset balances of portfolios.
|
|
1639
|
-
**/
|
|
1640
|
-
portfolioAssetBalances: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1641
|
-
did?: any;
|
|
1642
|
-
kind?: any;
|
|
1643
|
-
} | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u128>, [
|
|
1644
|
-
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
1645
|
-
PolymeshPrimitivesAssetAssetId
|
|
1646
|
-
]>;
|
|
1647
|
-
/**
|
|
1648
|
-
* How many assets with non-zero balance this portfolio contains.
|
|
1649
|
-
**/
|
|
1650
|
-
portfolioAssetCount: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1651
|
-
did?: any;
|
|
1652
|
-
kind?: any;
|
|
1653
|
-
} | string | Uint8Array) => Observable<u64>, [
|
|
1654
|
-
PolymeshPrimitivesIdentityIdPortfolioId
|
|
1655
|
-
]>;
|
|
1656
|
-
/**
|
|
1657
|
-
* The custodian of a particular portfolio. None implies that the identity owner is the custodian.
|
|
1658
|
-
**/
|
|
1659
|
-
portfolioCustodian: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1660
|
-
did?: any;
|
|
1661
|
-
kind?: any;
|
|
1662
|
-
} | string | Uint8Array) => Observable<Option<PolymeshPrimitivesIdentityId>>, [
|
|
1663
|
-
PolymeshPrimitivesIdentityIdPortfolioId
|
|
1664
|
-
]>;
|
|
1665
|
-
/**
|
|
1666
|
-
* Amount of assets locked in a portfolio.
|
|
1667
|
-
* These assets show up in portfolio balance but can not be transferred away.
|
|
1668
|
-
**/
|
|
1669
|
-
portfolioLockedAssets: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1670
|
-
did?: any;
|
|
1671
|
-
kind?: any;
|
|
1672
|
-
} | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u128>, [
|
|
1673
|
-
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
1674
|
-
PolymeshPrimitivesAssetAssetId
|
|
1675
|
-
]>;
|
|
1676
|
-
/**
|
|
1677
|
-
* All locked nft for a given portfolio.
|
|
1678
|
-
**/
|
|
1679
|
-
portfolioLockedNFT: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1680
|
-
did?: any;
|
|
1681
|
-
kind?: any;
|
|
1682
|
-
} | string | Uint8Array, arg2: ITuple<[PolymeshPrimitivesAssetAssetId, u64]> | [PolymeshPrimitivesAssetAssetId | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable<bool>, [
|
|
1683
|
-
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
1684
|
-
ITuple<[PolymeshPrimitivesAssetAssetId, u64]>
|
|
1685
|
-
]>;
|
|
1686
|
-
/**
|
|
1687
|
-
* The nft associated to the portfolio.
|
|
1688
|
-
**/
|
|
1689
|
-
portfolioNFT: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1690
|
-
did?: any;
|
|
1691
|
-
kind?: any;
|
|
1692
|
-
} | string | Uint8Array, arg2: ITuple<[PolymeshPrimitivesAssetAssetId, u64]> | [PolymeshPrimitivesAssetAssetId | string | Uint8Array, u64 | AnyNumber | Uint8Array]) => Observable<bool>, [
|
|
1693
|
-
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
1694
|
-
ITuple<[PolymeshPrimitivesAssetAssetId, u64]>
|
|
1695
|
-
]>;
|
|
1696
|
-
/**
|
|
1697
|
-
* The set of existing portfolios with their names. If a certain pair of a DID and
|
|
1698
|
-
* portfolio number maps to `None` then such a portfolio doesn't exist. Conversely, if a
|
|
1699
|
-
* pair maps to `Some(name)` then such a portfolio exists and is called `name`.
|
|
1700
|
-
**/
|
|
1701
|
-
portfolios: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
|
|
1702
|
-
PolymeshPrimitivesIdentityId,
|
|
1703
|
-
u64
|
|
1704
|
-
]>;
|
|
1705
|
-
/**
|
|
1706
|
-
* Tracks all the portfolios in custody of a particular identity. Only used by the UIs.
|
|
1707
|
-
* When `true` is stored as the value for a given `(did, pid)`, it means that `pid` is in custody of `did`.
|
|
1708
|
-
* `false` values are never explicitly stored in the map, and are instead inferred by the absence of a key.
|
|
1709
|
-
**/
|
|
1710
|
-
portfoliosInCustody: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1711
|
-
did?: any;
|
|
1712
|
-
kind?: any;
|
|
1713
|
-
} | string | Uint8Array) => Observable<bool>, [
|
|
1714
|
-
PolymeshPrimitivesIdentityId,
|
|
1715
|
-
PolymeshPrimitivesIdentityIdPortfolioId
|
|
1716
|
-
]>;
|
|
1717
|
-
/**
|
|
1718
|
-
* All portfolios that don't need to affirm the receivement of a given [`AssetId`].
|
|
1719
|
-
**/
|
|
1720
|
-
preApprovedPortfolios: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1721
|
-
did?: any;
|
|
1722
|
-
kind?: any;
|
|
1723
|
-
} | string | Uint8Array, arg2: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
|
|
1724
|
-
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
1725
|
-
PolymeshPrimitivesAssetAssetId
|
|
1726
|
-
]>;
|
|
1727
|
-
/**
|
|
1728
|
-
* Storage version.
|
|
1729
|
-
**/
|
|
1730
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
1731
|
-
};
|
|
1732
|
-
preimage: {
|
|
1733
|
-
preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [
|
|
1734
|
-
ITuple<[H256, u32]>
|
|
1735
|
-
]>;
|
|
1736
|
-
/**
|
|
1737
|
-
* The request status of a given hash.
|
|
1738
|
-
**/
|
|
1739
|
-
statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [
|
|
1740
|
-
H256
|
|
1741
|
-
]>;
|
|
1742
|
-
};
|
|
1743
|
-
protocolFee: {
|
|
1744
|
-
/**
|
|
1745
|
-
* The mapping of operation names to the base fees of those operations.
|
|
1746
|
-
**/
|
|
1747
|
-
baseFees: AugmentedQuery<ApiType, (arg: PolymeshCommonUtilitiesProtocolFeeProtocolOp | 'AssetRegisterTicker' | 'AssetIssue' | 'AssetAddDocuments' | 'AssetCreateAsset' | 'CheckpointCreateSchedule' | 'ComplianceManagerAddComplianceRequirement' | 'IdentityCddRegisterDid' | 'IdentityAddClaim' | 'IdentityAddSecondaryKeysWithAuthorization' | 'PipsPropose' | 'ContractsPutCode' | 'CorporateBallotAttachBallot' | 'CapitalDistributionDistribute' | 'NFTCreateCollection' | 'NFTMint' | 'IdentityCreateChildIdentity' | number | Uint8Array) => Observable<u128>, [
|
|
1748
|
-
PolymeshCommonUtilitiesProtocolFeeProtocolOp
|
|
1749
|
-
]>;
|
|
1750
|
-
/**
|
|
1751
|
-
* The fee coefficient as a positive rational (numerator, denominator).
|
|
1752
|
-
**/
|
|
1753
|
-
coefficient: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
|
|
1754
|
-
};
|
|
1755
|
-
randomnessCollectiveFlip: {
|
|
1756
|
-
/**
|
|
1757
|
-
* Series of block headers from the last 81 blocks that acts as random seed material. This
|
|
1758
|
-
* is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
|
|
1759
|
-
* the oldest hash.
|
|
1760
|
-
**/
|
|
1761
|
-
randomMaterial: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
|
|
1762
|
-
};
|
|
1763
|
-
relayer: {
|
|
1764
|
-
/**
|
|
1765
|
-
* The subsidy for a `user_key` if they are being subsidised,
|
|
1766
|
-
* as a map `user_key` => `Subsidy`.
|
|
1767
|
-
*
|
|
1768
|
-
* A key can only have one subsidy at a time. To change subsidisers
|
|
1769
|
-
* a key needs to call `remove_paying_key` to remove the current subsidy,
|
|
1770
|
-
* before they can accept a new subsidiser.
|
|
1771
|
-
**/
|
|
1772
|
-
subsidies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRelayerSubsidy>>, [
|
|
1773
|
-
AccountId32
|
|
1774
|
-
]>;
|
|
1775
|
-
};
|
|
1776
|
-
scheduler: {
|
|
1777
|
-
/**
|
|
1778
|
-
* Items to be executed, indexed by the block number that they should be executed on.
|
|
1779
|
-
**/
|
|
1780
|
-
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [
|
|
1781
|
-
u32
|
|
1782
|
-
]>;
|
|
1783
|
-
incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
1784
|
-
/**
|
|
1785
|
-
* Lookup from a name to the block number and index of the task.
|
|
1786
|
-
*
|
|
1787
|
-
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
|
1788
|
-
* identities.
|
|
1789
|
-
**/
|
|
1790
|
-
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [
|
|
1791
|
-
U8aFixed
|
|
1792
|
-
]>;
|
|
1793
|
-
};
|
|
1794
|
-
session: {
|
|
1795
|
-
/**
|
|
1796
|
-
* Current index of the session.
|
|
1797
|
-
**/
|
|
1798
|
-
currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1799
|
-
/**
|
|
1800
|
-
* Indices of disabled validators.
|
|
1801
|
-
*
|
|
1802
|
-
* The vec is always kept sorted so that we can find whether a given validator is
|
|
1803
|
-
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
1804
|
-
* a new set of identities.
|
|
1805
|
-
**/
|
|
1806
|
-
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
|
|
1807
|
-
/**
|
|
1808
|
-
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
1809
|
-
**/
|
|
1810
|
-
keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [
|
|
1811
|
-
ITuple<[SpCoreCryptoKeyTypeId, Bytes]>
|
|
1812
|
-
]>;
|
|
1813
|
-
/**
|
|
1814
|
-
* The next session keys for a validator.
|
|
1815
|
-
**/
|
|
1816
|
-
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PolymeshRuntimeDevelopRuntimeSessionKeys>>, [
|
|
1817
|
-
AccountId32
|
|
1818
|
-
]>;
|
|
1819
|
-
/**
|
|
1820
|
-
* True if the underlying economic identities or weighting behind the validators
|
|
1821
|
-
* has changed in the queued validator set.
|
|
1822
|
-
**/
|
|
1823
|
-
queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
1824
|
-
/**
|
|
1825
|
-
* The queued keys for the next session. When the next session begins, these keys
|
|
1826
|
-
* will be used to determine the validator's session keys.
|
|
1827
|
-
**/
|
|
1828
|
-
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, PolymeshRuntimeDevelopRuntimeSessionKeys]>>>, [
|
|
1829
|
-
]>;
|
|
1830
|
-
/**
|
|
1831
|
-
* The current set of validators.
|
|
1832
|
-
**/
|
|
1833
|
-
validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []>;
|
|
1834
|
-
};
|
|
1835
|
-
settlement: {
|
|
1836
|
-
/**
|
|
1837
|
-
* Tracks affirmations received for an instruction. (instruction_id, counter_party) -> AffirmationStatus
|
|
1838
|
-
**/
|
|
1839
|
-
affirmsReceived: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1840
|
-
did?: any;
|
|
1841
|
-
kind?: any;
|
|
1842
|
-
} | string | Uint8Array) => Observable<PolymeshPrimitivesSettlementAffirmationStatus>, [
|
|
1843
|
-
u64,
|
|
1844
|
-
PolymeshPrimitivesIdentityIdPortfolioId
|
|
1845
|
-
]>;
|
|
1846
|
-
/**
|
|
1847
|
-
* Free-form text about a venue. venue_id -> `VenueDetails`
|
|
1848
|
-
* Only needed for the UI.
|
|
1849
|
-
**/
|
|
1850
|
-
details: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Bytes>, [
|
|
1851
|
-
u64
|
|
1852
|
-
]>;
|
|
1853
|
-
/**
|
|
1854
|
-
* Number of affirmations pending before instruction is executed. instruction_id -> affirm_pending
|
|
1855
|
-
**/
|
|
1856
|
-
instructionAffirmsPending: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<u64>, [
|
|
1857
|
-
u64
|
|
1858
|
-
]>;
|
|
1859
|
-
/**
|
|
1860
|
-
* Number of instructions in the system (It's one more than the actual number)
|
|
1861
|
-
**/
|
|
1862
|
-
instructionCounter: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1863
|
-
/**
|
|
1864
|
-
* Details about an instruction. instruction_id -> instruction_details
|
|
1865
|
-
**/
|
|
1866
|
-
instructionDetails: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementInstruction>, [
|
|
1867
|
-
u64
|
|
1868
|
-
]>;
|
|
1869
|
-
/**
|
|
1870
|
-
* Legs under an instruction. (instruction_id, leg_id) -> Leg
|
|
1871
|
-
**/
|
|
1872
|
-
instructionLegs: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesSettlementLeg>>, [
|
|
1873
|
-
u64,
|
|
1874
|
-
u64
|
|
1875
|
-
]>;
|
|
1876
|
-
/**
|
|
1877
|
-
* Status of a leg under an instruction. (instruction_id, leg_id) -> LegStatus
|
|
1878
|
-
**/
|
|
1879
|
-
instructionLegStatus: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementLegStatus>, [
|
|
1880
|
-
u64,
|
|
1881
|
-
u64
|
|
1882
|
-
]>;
|
|
1883
|
-
/**
|
|
1884
|
-
* The status for the mediators affirmation.
|
|
1885
|
-
**/
|
|
1886
|
-
instructionMediatorsAffirmations: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<PolymeshPrimitivesSettlementMediatorAffirmationStatus>, [
|
|
1887
|
-
u64,
|
|
1888
|
-
PolymeshPrimitivesIdentityId
|
|
1889
|
-
]>;
|
|
1890
|
-
/**
|
|
1891
|
-
* Instruction memo
|
|
1892
|
-
**/
|
|
1893
|
-
instructionMemos: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesMemo>>, [
|
|
1894
|
-
u64
|
|
1895
|
-
]>;
|
|
1896
|
-
/**
|
|
1897
|
-
* Instruction statuses. instruction_id -> InstructionStatus
|
|
1898
|
-
**/
|
|
1899
|
-
instructionStatuses: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementInstructionStatus>, [
|
|
1900
|
-
u64
|
|
1901
|
-
]>;
|
|
1902
|
-
/**
|
|
1903
|
-
* Tracks the number of signers each venue has.
|
|
1904
|
-
**/
|
|
1905
|
-
numberOfVenueSigners: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<u32>, [
|
|
1906
|
-
u64
|
|
1907
|
-
]>;
|
|
1908
|
-
/**
|
|
1909
|
-
* Tracks the affirmation status for offchain legs in a instruction. [`(InstructionId, LegId)`] -> [`AffirmationStatus`]
|
|
1910
|
-
**/
|
|
1911
|
-
offChainAffirmations: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementAffirmationStatus>, [
|
|
1912
|
-
u64,
|
|
1913
|
-
u64
|
|
1914
|
-
]>;
|
|
1915
|
-
/**
|
|
1916
|
-
* Tracks redemption of receipts. (signer, receipt_uid) -> receipt_used
|
|
1917
|
-
**/
|
|
1918
|
-
receiptsUsed: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<bool>, [
|
|
1919
|
-
AccountId32,
|
|
1920
|
-
u64
|
|
1921
|
-
]>;
|
|
1922
|
-
/**
|
|
1923
|
-
* Storage version.
|
|
1924
|
-
**/
|
|
1925
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
1926
|
-
/**
|
|
1927
|
-
* Helps a user track their pending instructions and affirmations (only needed for UI).
|
|
1928
|
-
* (counter_party, instruction_id) -> AffirmationStatus
|
|
1929
|
-
**/
|
|
1930
|
-
userAffirmations: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
1931
|
-
did?: any;
|
|
1932
|
-
kind?: any;
|
|
1933
|
-
} | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<PolymeshPrimitivesSettlementAffirmationStatus>, [
|
|
1934
|
-
PolymeshPrimitivesIdentityIdPortfolioId,
|
|
1935
|
-
u64
|
|
1936
|
-
]>;
|
|
1937
|
-
/**
|
|
1938
|
-
* Venues create by an identity.
|
|
1939
|
-
* Only needed for the UI.
|
|
1940
|
-
*
|
|
1941
|
-
* identity -> venue_id -> ()
|
|
1942
|
-
**/
|
|
1943
|
-
userVenues: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesIdentityId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Null>, [
|
|
1944
|
-
PolymeshPrimitivesIdentityId,
|
|
1945
|
-
u64
|
|
1946
|
-
]>;
|
|
1947
|
-
/**
|
|
1948
|
-
* Venues that are allowed to create instructions involving a particular asset. Only used if filtering is enabled.
|
|
1949
|
-
* ([`AssetId`], venue_id) -> allowed
|
|
1950
|
-
**/
|
|
1951
|
-
venueAllowList: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<bool>, [
|
|
1952
|
-
PolymeshPrimitivesAssetAssetId,
|
|
1953
|
-
u64
|
|
1954
|
-
]>;
|
|
1955
|
-
/**
|
|
1956
|
-
* Number of venues in the system (It's one more than the actual number)
|
|
1957
|
-
**/
|
|
1958
|
-
venueCounter: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
1959
|
-
/**
|
|
1960
|
-
* Tracks if a token has enabled filtering venues that can create instructions involving their token. AssetId -> filtering_enabled
|
|
1961
|
-
**/
|
|
1962
|
-
venueFiltering: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<bool>, [
|
|
1963
|
-
PolymeshPrimitivesAssetAssetId
|
|
1964
|
-
]>;
|
|
1965
|
-
/**
|
|
1966
|
-
* Info about a venue. venue_id -> venue
|
|
1967
|
-
**/
|
|
1968
|
-
venueInfo: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PolymeshPrimitivesSettlementVenue>>, [
|
|
1969
|
-
u64
|
|
1970
|
-
]>;
|
|
1971
|
-
/**
|
|
1972
|
-
* Instructions under a venue.
|
|
1973
|
-
* Only needed for the UI.
|
|
1974
|
-
*
|
|
1975
|
-
* venue_id -> instruction_id -> ()
|
|
1976
|
-
**/
|
|
1977
|
-
venueInstructions: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Null>, [
|
|
1978
|
-
u64,
|
|
1979
|
-
u64
|
|
1980
|
-
]>;
|
|
1981
|
-
/**
|
|
1982
|
-
* Signers allowed by the venue. (venue_id, signer) -> bool
|
|
1983
|
-
**/
|
|
1984
|
-
venueSigners: AugmentedQuery<ApiType, (arg1: u64 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<bool>, [
|
|
1985
|
-
u64,
|
|
1986
|
-
AccountId32
|
|
1987
|
-
]>;
|
|
1988
|
-
};
|
|
1989
|
-
staking: {
|
|
1990
|
-
/**
|
|
1991
|
-
* The active era information, it holds index and start.
|
|
1992
|
-
*
|
|
1993
|
-
* The active era is the era being currently rewarded. Validator set of this era must be
|
|
1994
|
-
* equal to [`SessionInterface::validators`].
|
|
1995
|
-
**/
|
|
1996
|
-
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []>;
|
|
1997
|
-
/**
|
|
1998
|
-
* Map from all locked "stash" accounts to the controller account.
|
|
1999
|
-
*
|
|
2000
|
-
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
2001
|
-
**/
|
|
2002
|
-
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [
|
|
2003
|
-
AccountId32
|
|
2004
|
-
]>;
|
|
2005
|
-
/**
|
|
2006
|
-
* A mapping from still-bonded eras to the first session index of that era.
|
|
2007
|
-
*
|
|
2008
|
-
* Must contains information for eras for the range:
|
|
2009
|
-
* `[active_era - bounding_duration; active_era]`
|
|
2010
|
-
**/
|
|
2011
|
-
bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []>;
|
|
2012
|
-
/**
|
|
2013
|
-
* The amount of currency given to reporters of a slash event which was
|
|
2014
|
-
* canceled by extraordinary circumstances (e.g. governance).
|
|
2015
|
-
**/
|
|
2016
|
-
canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
2017
|
-
/**
|
|
2018
|
-
* The threshold for when users can start calling `chill_other` for other validators /
|
|
2019
|
-
* nominators. The threshold is compared to the actual number of validators / nominators
|
|
2020
|
-
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
|
2021
|
-
**/
|
|
2022
|
-
chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []>;
|
|
2023
|
-
/**
|
|
2024
|
-
* Counter for the related counted storage map
|
|
2025
|
-
**/
|
|
2026
|
-
counterForNominators: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2027
|
-
/**
|
|
2028
|
-
* Counter for the related counted storage map
|
|
2029
|
-
**/
|
|
2030
|
-
counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2031
|
-
/**
|
|
2032
|
-
* The current era index.
|
|
2033
|
-
*
|
|
2034
|
-
* This is the latest planned era, depending on how the Session pallet queues the validator
|
|
2035
|
-
* set, it might be active or not.
|
|
2036
|
-
**/
|
|
2037
|
-
currentEra: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
2038
|
-
/**
|
|
2039
|
-
* The last planned session scheduled by the session pallet.
|
|
2040
|
-
*
|
|
2041
|
-
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
|
2042
|
-
**/
|
|
2043
|
-
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2044
|
-
/**
|
|
2045
|
-
* Rewards for the last `HISTORY_DEPTH` eras.
|
|
2046
|
-
* If reward hasn't been set or has been removed then 0 reward is returned.
|
|
2047
|
-
**/
|
|
2048
|
-
erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [
|
|
2049
|
-
u32
|
|
2050
|
-
]>;
|
|
2051
|
-
/**
|
|
2052
|
-
* Exposure of validator at era.
|
|
2053
|
-
*
|
|
2054
|
-
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
2055
|
-
*
|
|
2056
|
-
* Is it removed after `HISTORY_DEPTH` eras.
|
|
2057
|
-
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
2058
|
-
**/
|
|
2059
|
-
erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [
|
|
2060
|
-
u32,
|
|
2061
|
-
AccountId32
|
|
2062
|
-
]>;
|
|
2063
|
-
/**
|
|
2064
|
-
* Clipped Exposure of validator at era.
|
|
2065
|
-
*
|
|
2066
|
-
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
|
2067
|
-
* `T::MaxNominatorRewardedPerValidator` biggest stakers.
|
|
2068
|
-
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
|
2069
|
-
* This is used to limit the i/o cost for the nominator payout.
|
|
2070
|
-
*
|
|
2071
|
-
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
|
2072
|
-
*
|
|
2073
|
-
* Is it removed after `HISTORY_DEPTH` eras.
|
|
2074
|
-
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
2075
|
-
**/
|
|
2076
|
-
erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [
|
|
2077
|
-
u32,
|
|
2078
|
-
AccountId32
|
|
2079
|
-
]>;
|
|
2080
|
-
/**
|
|
2081
|
-
* The session index at which the era start for the last `HISTORY_DEPTH` eras.
|
|
2082
|
-
*
|
|
2083
|
-
* Note: This tracks the starting session (i.e. session index when era start being active)
|
|
2084
|
-
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
|
2085
|
-
**/
|
|
2086
|
-
erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [
|
|
2087
|
-
u32
|
|
2088
|
-
]>;
|
|
2089
|
-
/**
|
|
2090
|
-
* The total amount staked for the last `HISTORY_DEPTH` eras.
|
|
2091
|
-
* If total hasn't been set or has been removed then 0 stake is returned.
|
|
2092
|
-
**/
|
|
2093
|
-
erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [
|
|
2094
|
-
u32
|
|
2095
|
-
]>;
|
|
2096
|
-
/**
|
|
2097
|
-
* Similar to `ErasStakers`, this holds the preferences of validators.
|
|
2098
|
-
*
|
|
2099
|
-
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
2100
|
-
*
|
|
2101
|
-
* Is it removed after `HISTORY_DEPTH` eras.
|
|
2102
|
-
**/
|
|
2103
|
-
erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [
|
|
2104
|
-
u32,
|
|
2105
|
-
AccountId32
|
|
2106
|
-
]>;
|
|
2107
|
-
/**
|
|
2108
|
-
* The total validator era payout for the last `HISTORY_DEPTH` eras.
|
|
2109
|
-
*
|
|
2110
|
-
* Eras that haven't finished yet or has been removed doesn't have reward.
|
|
2111
|
-
**/
|
|
2112
|
-
erasValidatorReward: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [
|
|
2113
|
-
u32
|
|
2114
|
-
]>;
|
|
2115
|
-
/**
|
|
2116
|
-
* Mode of era forcing.
|
|
2117
|
-
**/
|
|
2118
|
-
forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []>;
|
|
2119
|
-
/**
|
|
2120
|
-
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
2121
|
-
* easy to initialize and the performance hit is minimal (we expect no more than four
|
|
2122
|
-
* invulnerables) and restricted to testnets.
|
|
2123
|
-
**/
|
|
2124
|
-
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []>;
|
|
2125
|
-
/**
|
|
2126
|
-
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
2127
|
-
**/
|
|
2128
|
-
ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [
|
|
2129
|
-
AccountId32
|
|
2130
|
-
]>;
|
|
2131
|
-
/**
|
|
2132
|
-
* The maximum nominator count before we stop allowing new validators to join.
|
|
2133
|
-
*
|
|
2134
|
-
* When this value is not set, no limits are enforced.
|
|
2135
|
-
**/
|
|
2136
|
-
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
2137
|
-
/**
|
|
2138
|
-
* The maximum validator count before we stop allowing new validators to join.
|
|
2139
|
-
*
|
|
2140
|
-
* When this value is not set, no limits are enforced.
|
|
2141
|
-
**/
|
|
2142
|
-
maxValidatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
2143
|
-
/**
|
|
2144
|
-
* The minimum amount of commission that validators can set.
|
|
2145
|
-
*
|
|
2146
|
-
* If set to `0`, no limit exists.
|
|
2147
|
-
**/
|
|
2148
|
-
minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
|
|
2149
|
-
/**
|
|
2150
|
-
* The minimum active nominator stake of the last successful election.
|
|
2151
|
-
**/
|
|
2152
|
-
minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
2153
|
-
/**
|
|
2154
|
-
* Minimum number of staking participants before emergency conditions are imposed.
|
|
2155
|
-
**/
|
|
2156
|
-
minimumValidatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2157
|
-
/**
|
|
2158
|
-
* The minimum active bond to become and maintain the role of a nominator.
|
|
2159
|
-
**/
|
|
2160
|
-
minNominatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
2161
|
-
/**
|
|
2162
|
-
* The minimum active bond to become and maintain the role of a validator.
|
|
2163
|
-
**/
|
|
2164
|
-
minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
2165
|
-
/**
|
|
2166
|
-
* The map from nominator stash key to their nomination preferences, namely the validators that
|
|
2167
|
-
* they wish to support.
|
|
2168
|
-
*
|
|
2169
|
-
* Note that the keys of this storage map might become non-decodable in case the
|
|
2170
|
-
* [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
|
|
2171
|
-
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
|
2172
|
-
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
|
2173
|
-
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
|
2174
|
-
* is within the bounds of the newly set `Config::MaxNominations`.
|
|
2175
|
-
*
|
|
2176
|
-
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
|
2177
|
-
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
|
2178
|
-
* number of keys that exist.
|
|
2179
|
-
*
|
|
2180
|
-
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
|
2181
|
-
* [`Call::chill_other`] dispatchable by anyone.
|
|
2182
|
-
*
|
|
2183
|
-
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
2184
|
-
**/
|
|
2185
|
-
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [
|
|
2186
|
-
AccountId32
|
|
2187
|
-
]>;
|
|
2188
|
-
/**
|
|
2189
|
-
* All slashing events on nominators, mapped by era to the highest slash value of the era.
|
|
2190
|
-
**/
|
|
2191
|
-
nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [
|
|
2192
|
-
u32,
|
|
2193
|
-
AccountId32
|
|
2194
|
-
]>;
|
|
2195
|
-
/**
|
|
2196
|
-
* Indices of validators that have offended in the active era and whether they are currently
|
|
2197
|
-
* disabled.
|
|
2198
|
-
*
|
|
2199
|
-
* This value should be a superset of disabled validators since not all offences lead to the
|
|
2200
|
-
* validator being disabled (if there was no slash). This is needed to track the percentage of
|
|
2201
|
-
* validators that have offended in the current era, ensuring a new era is forced if
|
|
2202
|
-
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
|
2203
|
-
* whether a given validator has previously offended using binary search. It gets cleared when
|
|
2204
|
-
* the era ends.
|
|
2205
|
-
**/
|
|
2206
|
-
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []>;
|
|
2207
|
-
/**
|
|
2208
|
-
* Where the reward payment should be made. Keyed by stash.
|
|
2209
|
-
*
|
|
2210
|
-
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
2211
|
-
**/
|
|
2212
|
-
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [
|
|
2213
|
-
AccountId32
|
|
2214
|
-
]>;
|
|
2215
|
-
/**
|
|
2216
|
-
* Entities that are allowed to run operator/validator nodes.
|
|
2217
|
-
**/
|
|
2218
|
-
permissionedIdentity: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<Option<PalletStakingPermissionedIdentityPrefs>>, [
|
|
2219
|
-
PolymeshPrimitivesIdentityId
|
|
2220
|
-
]>;
|
|
2221
|
-
polymeshStorageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
2222
|
-
/**
|
|
2223
|
-
* Slashing switch for validators & Nominators.
|
|
2224
|
-
**/
|
|
2225
|
-
slashingAllowedFor: AugmentedQuery<ApiType, () => Observable<PalletStakingSlashingSwitch>, [
|
|
2226
|
-
]>;
|
|
2227
|
-
/**
|
|
2228
|
-
* Slashing spans for stash accounts.
|
|
2229
|
-
**/
|
|
2230
|
-
slashingSpans: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingSlashingSlashingSpans>>, [
|
|
2231
|
-
AccountId32
|
|
2232
|
-
]>;
|
|
2233
|
-
/**
|
|
2234
|
-
* The percentage of the slash that is distributed to reporters.
|
|
2235
|
-
*
|
|
2236
|
-
* The rest of the slashed value is handled by the `Slash`.
|
|
2237
|
-
**/
|
|
2238
|
-
slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
|
|
2239
|
-
/**
|
|
2240
|
-
* Records information about the maximum slash of a stash within a slashing span,
|
|
2241
|
-
* as well as how much reward has been paid out.
|
|
2242
|
-
**/
|
|
2243
|
-
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PalletStakingSlashingSpanRecord>, [
|
|
2244
|
-
ITuple<[AccountId32, u32]>
|
|
2245
|
-
]>;
|
|
2246
|
-
/**
|
|
2247
|
-
* All unapplied slashes that are queued for later.
|
|
2248
|
-
**/
|
|
2249
|
-
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [
|
|
2250
|
-
u32
|
|
2251
|
-
]>;
|
|
2252
|
-
/**
|
|
2253
|
-
* Allows flexibility in commission. Every validator has commission that should be in the range [0, Cap].
|
|
2254
|
-
**/
|
|
2255
|
-
validatorCommissionCap: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
|
|
2256
|
-
/**
|
|
2257
|
-
* The ideal number of active validators.
|
|
2258
|
-
**/
|
|
2259
|
-
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2260
|
-
/**
|
|
2261
|
-
* The map from (wannabe) validator stash key to the preferences of that validator.
|
|
2262
|
-
*
|
|
2263
|
-
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
2264
|
-
**/
|
|
2265
|
-
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [
|
|
2266
|
-
AccountId32
|
|
2267
|
-
]>;
|
|
2268
|
-
/**
|
|
2269
|
-
* All slashing events on validators, mapped by era to the highest slash proportion
|
|
2270
|
-
* and slash value of the era.
|
|
2271
|
-
**/
|
|
2272
|
-
validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [
|
|
2273
|
-
u32,
|
|
2274
|
-
AccountId32
|
|
2275
|
-
]>;
|
|
2276
|
-
};
|
|
2277
|
-
statistics: {
|
|
2278
|
-
/**
|
|
2279
|
-
* Maps a set of [`StatType`] for each [`AssetId`].
|
|
2280
|
-
**/
|
|
2281
|
-
activeAssetStats: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<BTreeSet<PolymeshPrimitivesStatisticsStatType>>, [
|
|
2282
|
-
PolymeshPrimitivesAssetAssetId
|
|
2283
|
-
]>;
|
|
2284
|
-
/**
|
|
2285
|
-
* Asset stats.
|
|
2286
|
-
**/
|
|
2287
|
-
assetStats: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesStatisticsStat1stKey | {
|
|
2288
|
-
assetId?: any;
|
|
2289
|
-
statType?: any;
|
|
2290
|
-
} | string | Uint8Array, arg2: PolymeshPrimitivesStatisticsStat2ndKey | {
|
|
2291
|
-
NoClaimStat: any;
|
|
2292
|
-
} | {
|
|
2293
|
-
Claim: any;
|
|
2294
|
-
} | string | Uint8Array) => Observable<u128>, [
|
|
2295
|
-
PolymeshPrimitivesStatisticsStat1stKey,
|
|
2296
|
-
PolymeshPrimitivesStatisticsStat2ndKey
|
|
2297
|
-
]>;
|
|
2298
|
-
/**
|
|
2299
|
-
* The [`AssetTransferCompliance`] for each [`AssetId`].
|
|
2300
|
-
**/
|
|
2301
|
-
assetTransferCompliances: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<PolymeshPrimitivesTransferComplianceAssetTransferCompliance>, [
|
|
2302
|
-
PolymeshPrimitivesAssetAssetId
|
|
2303
|
-
]>;
|
|
2304
|
-
/**
|
|
2305
|
-
* Storage migration version.
|
|
2306
|
-
**/
|
|
2307
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
2308
|
-
/**
|
|
2309
|
-
* Entities exempt from a Transfer Compliance rule.
|
|
2310
|
-
**/
|
|
2311
|
-
transferConditionExemptEntities: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesTransferComplianceTransferConditionExemptKey | {
|
|
2312
|
-
assetId?: any;
|
|
2313
|
-
op?: any;
|
|
2314
|
-
claimType?: any;
|
|
2315
|
-
} | string | Uint8Array, arg2: PolymeshPrimitivesIdentityId | string | Uint8Array) => Observable<bool>, [
|
|
2316
|
-
PolymeshPrimitivesTransferComplianceTransferConditionExemptKey,
|
|
2317
|
-
PolymeshPrimitivesIdentityId
|
|
2318
|
-
]>;
|
|
2319
|
-
};
|
|
2320
|
-
sto: {
|
|
2321
|
-
/**
|
|
2322
|
-
* Total fundraisers created for a token.
|
|
2323
|
-
**/
|
|
2324
|
-
fundraiserCount: AugmentedQuery<ApiType, (arg: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => Observable<u64>, [
|
|
2325
|
-
PolymeshPrimitivesAssetAssetId
|
|
2326
|
-
]>;
|
|
2327
|
-
/**
|
|
2328
|
-
* Name for the Fundraiser. Only used offchain.
|
|
2329
|
-
* (AssetId, fundraiser_id) -> Fundraiser name
|
|
2330
|
-
**/
|
|
2331
|
-
fundraiserNames: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [
|
|
2332
|
-
PolymeshPrimitivesAssetAssetId,
|
|
2333
|
-
u64
|
|
2334
|
-
]>;
|
|
2335
|
-
/**
|
|
2336
|
-
* All fundraisers that are currently running.
|
|
2337
|
-
* (AssetId, fundraiser_id) -> Fundraiser
|
|
2338
|
-
**/
|
|
2339
|
-
fundraisers: AugmentedQuery<ApiType, (arg1: PolymeshPrimitivesAssetAssetId | string | Uint8Array, arg2: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletStoFundraiser>>, [
|
|
2340
|
-
PolymeshPrimitivesAssetAssetId,
|
|
2341
|
-
u64
|
|
2342
|
-
]>;
|
|
2343
|
-
/**
|
|
2344
|
-
* Storage migration version.
|
|
2345
|
-
**/
|
|
2346
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<u8>, []>;
|
|
2347
|
-
};
|
|
2348
|
-
sudo: {
|
|
2349
|
-
/**
|
|
2350
|
-
* The `AccountId` of the sudo key.
|
|
2351
|
-
**/
|
|
2352
|
-
key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
2353
|
-
};
|
|
2354
|
-
system: {
|
|
2355
|
-
/**
|
|
2356
|
-
* The full account information for a particular account ID.
|
|
2357
|
-
**/
|
|
2358
|
-
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [
|
|
2359
|
-
AccountId32
|
|
2360
|
-
]>;
|
|
2361
|
-
/**
|
|
2362
|
-
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
2363
|
-
**/
|
|
2364
|
-
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
2365
|
-
/**
|
|
2366
|
-
* Map of block numbers to block hashes.
|
|
2367
|
-
**/
|
|
2368
|
-
blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [
|
|
2369
|
-
u32
|
|
2370
|
-
]>;
|
|
2371
|
-
/**
|
|
2372
|
-
* The current weight for the block.
|
|
2373
|
-
**/
|
|
2374
|
-
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, [
|
|
2375
|
-
]>;
|
|
2376
|
-
/**
|
|
2377
|
-
* Digest of the current block, also part of the block header.
|
|
2378
|
-
**/
|
|
2379
|
-
digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []>;
|
|
2380
|
-
/**
|
|
2381
|
-
* The number of events in the `Events<T>` list.
|
|
2382
|
-
**/
|
|
2383
|
-
eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2384
|
-
/**
|
|
2385
|
-
* Events deposited for the current block.
|
|
2386
|
-
*
|
|
2387
|
-
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
2388
|
-
* It could otherwise inflate the PoV size of a block.
|
|
2389
|
-
*
|
|
2390
|
-
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
2391
|
-
* just in case someone still reads them from within the runtime.
|
|
2392
|
-
**/
|
|
2393
|
-
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []>;
|
|
2394
|
-
/**
|
|
2395
|
-
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
2396
|
-
* of events in the `<Events<T>>` list.
|
|
2397
|
-
*
|
|
2398
|
-
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
2399
|
-
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
2400
|
-
* in case of changes fetch the list of events of interest.
|
|
2401
|
-
*
|
|
2402
|
-
* The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
|
|
2403
|
-
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
2404
|
-
* no notification will be triggered thus the event might be lost.
|
|
2405
|
-
**/
|
|
2406
|
-
eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [
|
|
2407
|
-
H256
|
|
2408
|
-
]>;
|
|
2409
|
-
/**
|
|
2410
|
-
* The execution phase of the block.
|
|
2411
|
-
**/
|
|
2412
|
-
executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []>;
|
|
2413
|
-
/**
|
|
2414
|
-
* Total extrinsics count for the current block.
|
|
2415
|
-
**/
|
|
2416
|
-
extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
2417
|
-
/**
|
|
2418
|
-
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
2419
|
-
**/
|
|
2420
|
-
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
|
|
2421
|
-
u32
|
|
2422
|
-
]>;
|
|
2423
|
-
/**
|
|
2424
|
-
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
2425
|
-
**/
|
|
2426
|
-
lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, [
|
|
2427
|
-
]>;
|
|
2428
|
-
/**
|
|
2429
|
-
* The current block number being processed. Set by `execute_block`.
|
|
2430
|
-
**/
|
|
2431
|
-
number: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2432
|
-
/**
|
|
2433
|
-
* Hash of the previous block.
|
|
2434
|
-
**/
|
|
2435
|
-
parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []>;
|
|
2436
|
-
/**
|
|
2437
|
-
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
2438
|
-
* (default) if not.
|
|
2439
|
-
**/
|
|
2440
|
-
upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
2441
|
-
/**
|
|
2442
|
-
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
2443
|
-
**/
|
|
2444
|
-
upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
2445
|
-
};
|
|
2446
|
-
technicalCommittee: {
|
|
2447
|
-
/**
|
|
2448
|
-
* Time after which a proposal will expire.
|
|
2449
|
-
**/
|
|
2450
|
-
expiresAfter: AugmentedQuery<ApiType, () => Observable<PolymeshPrimitivesMaybeBlock>, []>;
|
|
2451
|
-
/**
|
|
2452
|
-
* The current members of the committee.
|
|
2453
|
-
**/
|
|
2454
|
-
members: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, []>;
|
|
2455
|
-
/**
|
|
2456
|
-
* Proposals so far.
|
|
2457
|
-
**/
|
|
2458
|
-
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2459
|
-
/**
|
|
2460
|
-
* Actual proposal for a given hash.
|
|
2461
|
-
**/
|
|
2462
|
-
proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [
|
|
2463
|
-
H256
|
|
2464
|
-
]>;
|
|
2465
|
-
/**
|
|
2466
|
-
* The hashes of the active proposals.
|
|
2467
|
-
**/
|
|
2468
|
-
proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
|
|
2469
|
-
/**
|
|
2470
|
-
* Release cooridinator.
|
|
2471
|
-
**/
|
|
2472
|
-
releaseCoordinator: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []>;
|
|
2473
|
-
/**
|
|
2474
|
-
* Vote threshold for an approval.
|
|
2475
|
-
**/
|
|
2476
|
-
voteThreshold: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
|
|
2477
|
-
/**
|
|
2478
|
-
* PolymeshVotes on a given proposal, if it is ongoing.
|
|
2479
|
-
**/
|
|
2480
|
-
voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCommitteePolymeshVotes>>, [
|
|
2481
|
-
H256
|
|
2482
|
-
]>;
|
|
2483
|
-
};
|
|
2484
|
-
technicalCommitteeMembership: {
|
|
2485
|
-
/**
|
|
2486
|
-
* The current "active" membership, stored as an ordered Vec.
|
|
2487
|
-
**/
|
|
2488
|
-
activeMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, [
|
|
2489
|
-
]>;
|
|
2490
|
-
/**
|
|
2491
|
-
* Limit of how many "active" members there can be.
|
|
2492
|
-
**/
|
|
2493
|
-
activeMembersLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2494
|
-
/**
|
|
2495
|
-
* The current "inactive" membership, stored as an ordered Vec.
|
|
2496
|
-
**/
|
|
2497
|
-
inactiveMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesGroupInactiveMember>>, [
|
|
2498
|
-
]>;
|
|
2499
|
-
};
|
|
2500
|
-
timestamp: {
|
|
2501
|
-
/**
|
|
2502
|
-
* Did the timestamp get updated in this block?
|
|
2503
|
-
**/
|
|
2504
|
-
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
2505
|
-
/**
|
|
2506
|
-
* Current time for the current block.
|
|
2507
|
-
**/
|
|
2508
|
-
now: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
2509
|
-
};
|
|
2510
|
-
transactionPayment: {
|
|
2511
|
-
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
2512
|
-
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, [
|
|
2513
|
-
]>;
|
|
2514
|
-
};
|
|
2515
|
-
upgradeCommittee: {
|
|
2516
|
-
/**
|
|
2517
|
-
* Time after which a proposal will expire.
|
|
2518
|
-
**/
|
|
2519
|
-
expiresAfter: AugmentedQuery<ApiType, () => Observable<PolymeshPrimitivesMaybeBlock>, []>;
|
|
2520
|
-
/**
|
|
2521
|
-
* The current members of the committee.
|
|
2522
|
-
**/
|
|
2523
|
-
members: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, []>;
|
|
2524
|
-
/**
|
|
2525
|
-
* Proposals so far.
|
|
2526
|
-
**/
|
|
2527
|
-
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2528
|
-
/**
|
|
2529
|
-
* Actual proposal for a given hash.
|
|
2530
|
-
**/
|
|
2531
|
-
proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [
|
|
2532
|
-
H256
|
|
2533
|
-
]>;
|
|
2534
|
-
/**
|
|
2535
|
-
* The hashes of the active proposals.
|
|
2536
|
-
**/
|
|
2537
|
-
proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []>;
|
|
2538
|
-
/**
|
|
2539
|
-
* Release cooridinator.
|
|
2540
|
-
**/
|
|
2541
|
-
releaseCoordinator: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []>;
|
|
2542
|
-
/**
|
|
2543
|
-
* Vote threshold for an approval.
|
|
2544
|
-
**/
|
|
2545
|
-
voteThreshold: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []>;
|
|
2546
|
-
/**
|
|
2547
|
-
* PolymeshVotes on a given proposal, if it is ongoing.
|
|
2548
|
-
**/
|
|
2549
|
-
voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCommitteePolymeshVotes>>, [
|
|
2550
|
-
H256
|
|
2551
|
-
]>;
|
|
2552
|
-
};
|
|
2553
|
-
upgradeCommitteeMembership: {
|
|
2554
|
-
/**
|
|
2555
|
-
* The current "active" membership, stored as an ordered Vec.
|
|
2556
|
-
**/
|
|
2557
|
-
activeMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesIdentityId>>, [
|
|
2558
|
-
]>;
|
|
2559
|
-
/**
|
|
2560
|
-
* Limit of how many "active" members there can be.
|
|
2561
|
-
**/
|
|
2562
|
-
activeMembersLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
2563
|
-
/**
|
|
2564
|
-
* The current "inactive" membership, stored as an ordered Vec.
|
|
2565
|
-
**/
|
|
2566
|
-
inactiveMembers: AugmentedQuery<ApiType, () => Observable<Vec<PolymeshPrimitivesGroupInactiveMember>>, [
|
|
2567
|
-
]>;
|
|
2568
|
-
};
|
|
2569
|
-
utility: {
|
|
2570
|
-
/**
|
|
2571
|
-
* Nonce for `relay_tx`.
|
|
2572
|
-
* POLYMESH: added.
|
|
2573
|
-
**/
|
|
2574
|
-
nonces: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u64>, [
|
|
2575
|
-
AccountId32
|
|
2576
|
-
]>;
|
|
2577
|
-
};
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
//# sourceMappingURL=augment-api-query.d.ts.map
|