@polkadot/api-augment 10.8.1 → 10.10.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/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +82 -34
- package/kusama/errors.d.ts +150 -26
- package/kusama/events.d.ts +66 -19
- package/kusama/query.d.ts +206 -87
- package/kusama/runtime.d.ts +36 -4
- package/kusama/tx.d.ts +192 -53
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +15 -198
- package/polkadot/errors.d.ts +37 -340
- package/polkadot/events.d.ts +24 -376
- package/polkadot/query.d.ts +63 -272
- package/polkadot/runtime.d.ts +20 -3
- package/polkadot/tx.d.ts +62 -441
- package/substrate/consts.d.ts +118 -34
- package/substrate/errors.d.ts +303 -8
- package/substrate/events.d.ts +379 -25
- package/substrate/query.d.ts +160 -44
- package/substrate/runtime.d.ts +21 -1
- package/substrate/tx.d.ts +252 -29
package/substrate/query.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/storage';
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Data } from '@polkadot/types';
|
|
4
|
-
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec,
|
|
4
|
+
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeHoldReason, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionNativeOrAssetId, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeHoldReason, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionNativeOrAssetId, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
9
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -105,7 +105,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
105
105
|
/**
|
|
106
106
|
* Maps an asset to its fixed point representation in the native balance.
|
|
107
107
|
*
|
|
108
|
-
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(
|
|
108
|
+
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
|
109
109
|
**/
|
|
110
110
|
conversionRateToNative: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
111
111
|
/**
|
|
@@ -357,6 +357,71 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
357
357
|
**/
|
|
358
358
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
359
359
|
};
|
|
360
|
+
broker: {
|
|
361
|
+
/**
|
|
362
|
+
* Records of allowed renewals.
|
|
363
|
+
**/
|
|
364
|
+
allowedRenewals: AugmentedQuery<ApiType, (arg: PalletBrokerAllowedRenewalId | {
|
|
365
|
+
core?: any;
|
|
366
|
+
when?: any;
|
|
367
|
+
} | string | Uint8Array) => Observable<Option<PalletBrokerAllowedRenewalRecord>>, [PalletBrokerAllowedRenewalId]> & QueryableStorageEntry<ApiType, [PalletBrokerAllowedRenewalId]>;
|
|
368
|
+
/**
|
|
369
|
+
* The current configuration of this pallet.
|
|
370
|
+
**/
|
|
371
|
+
configuration: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerConfigRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
372
|
+
/**
|
|
373
|
+
* Record of a single contribution to the Instantaneous Coretime Pool.
|
|
374
|
+
**/
|
|
375
|
+
instaPoolContribution: AugmentedQuery<ApiType, (arg: PalletBrokerRegionId | {
|
|
376
|
+
begin?: any;
|
|
377
|
+
core?: any;
|
|
378
|
+
mask?: any;
|
|
379
|
+
} | string | Uint8Array) => Observable<Option<PalletBrokerContributionRecord>>, [PalletBrokerRegionId]> & QueryableStorageEntry<ApiType, [PalletBrokerRegionId]>;
|
|
380
|
+
/**
|
|
381
|
+
* Total InstaPool rewards for each Timeslice and the number of core parts which contributed.
|
|
382
|
+
**/
|
|
383
|
+
instaPoolHistory: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletBrokerInstaPoolHistoryRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
384
|
+
/**
|
|
385
|
+
* Record of Coretime entering or leaving the Instantaneous Coretime Pool.
|
|
386
|
+
**/
|
|
387
|
+
instaPoolIo: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletBrokerPoolIoRecord>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
388
|
+
/**
|
|
389
|
+
* The Polkadot Core legacy leases.
|
|
390
|
+
**/
|
|
391
|
+
leases: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerLeaseRecordItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
392
|
+
/**
|
|
393
|
+
* The current (unassigned) Regions.
|
|
394
|
+
**/
|
|
395
|
+
regions: AugmentedQuery<ApiType, (arg: PalletBrokerRegionId | {
|
|
396
|
+
begin?: any;
|
|
397
|
+
core?: any;
|
|
398
|
+
mask?: any;
|
|
399
|
+
} | string | Uint8Array) => Observable<Option<PalletBrokerRegionRecord>>, [PalletBrokerRegionId]> & QueryableStorageEntry<ApiType, [PalletBrokerRegionId]>;
|
|
400
|
+
/**
|
|
401
|
+
* The Polkadot Core reservations (generally tasked with the maintenance of System Chains).
|
|
402
|
+
**/
|
|
403
|
+
reservations: AugmentedQuery<ApiType, () => Observable<Vec<Vec<PalletBrokerScheduleItem>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
404
|
+
/**
|
|
405
|
+
* The details of the current sale, including its properties and status.
|
|
406
|
+
**/
|
|
407
|
+
saleInfo: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerSaleInfoRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
408
|
+
/**
|
|
409
|
+
* The current status of miscellaneous subsystems of this pallet.
|
|
410
|
+
**/
|
|
411
|
+
status: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerStatusRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
412
|
+
/**
|
|
413
|
+
* The current workload of each core. This gets updated with workplan as timeslices pass.
|
|
414
|
+
**/
|
|
415
|
+
workload: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<PalletBrokerScheduleItem>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
416
|
+
/**
|
|
417
|
+
* The work we plan on having each core do at a particular time in the future.
|
|
418
|
+
**/
|
|
419
|
+
workplan: AugmentedQuery<ApiType, (arg: ITuple<[u32, u16]> | [u32 | AnyNumber | Uint8Array, u16 | AnyNumber | Uint8Array]) => Observable<Option<Vec<PalletBrokerScheduleItem>>>, [ITuple<[u32, u16]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u16]>]>;
|
|
420
|
+
/**
|
|
421
|
+
* Generic query
|
|
422
|
+
**/
|
|
423
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
424
|
+
};
|
|
360
425
|
childBounties: {
|
|
361
426
|
/**
|
|
362
427
|
* Child bounties that have been added.
|
|
@@ -386,9 +451,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
386
451
|
};
|
|
387
452
|
contracts: {
|
|
388
453
|
/**
|
|
389
|
-
* A mapping
|
|
454
|
+
* A mapping from a contract's code hash to its code info.
|
|
390
455
|
**/
|
|
391
|
-
|
|
456
|
+
codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmCodeInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
392
457
|
/**
|
|
393
458
|
* The code associated with a given account.
|
|
394
459
|
*
|
|
@@ -407,6 +472,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
407
472
|
* and the latest deleted contract in queue.
|
|
408
473
|
**/
|
|
409
474
|
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletContractsStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
|
|
475
|
+
/**
|
|
476
|
+
* A migration can span across multiple blocks. This storage defines a cursor to track the
|
|
477
|
+
* progress of the migration, enabling us to resume from the last completed position.
|
|
478
|
+
**/
|
|
410
479
|
migrationInProgress: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
411
480
|
/**
|
|
412
481
|
* This is a **monotonic** counter incremented on contract instantiation.
|
|
@@ -434,11 +503,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
434
503
|
**/
|
|
435
504
|
nonce: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
436
505
|
/**
|
|
437
|
-
* A mapping
|
|
438
|
-
**/
|
|
439
|
-
ownerInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletContractsWasmOwnerInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
440
|
-
/**
|
|
441
|
-
* A mapping from an original code hash to the original code, untouched by instrumentation.
|
|
506
|
+
* A mapping from a contract's code hash to its code.
|
|
442
507
|
**/
|
|
443
508
|
pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
444
509
|
/**
|
|
@@ -743,15 +808,19 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
743
808
|
};
|
|
744
809
|
glutton: {
|
|
745
810
|
/**
|
|
746
|
-
*
|
|
747
|
-
*
|
|
811
|
+
* The proportion of the remaining `ref_time` to consume during `on_idle`.
|
|
812
|
+
*
|
|
813
|
+
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
|
814
|
+
* over `1.0` could stall the chain.
|
|
748
815
|
**/
|
|
749
|
-
compute: AugmentedQuery<ApiType, () => Observable<
|
|
816
|
+
compute: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
750
817
|
/**
|
|
751
|
-
*
|
|
752
|
-
*
|
|
818
|
+
* The proportion of the remaining `proof_size` to consume during `on_idle`.
|
|
819
|
+
*
|
|
820
|
+
* `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
|
|
821
|
+
* over `1.0` could stall the chain.
|
|
753
822
|
**/
|
|
754
|
-
storage: AugmentedQuery<ApiType, () => Observable<
|
|
823
|
+
storage: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
755
824
|
/**
|
|
756
825
|
* Storage map used for wasting proof size.
|
|
757
826
|
*
|
|
@@ -869,10 +938,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
869
938
|
**/
|
|
870
939
|
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
871
940
|
/**
|
|
872
|
-
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex
|
|
873
|
-
* `WrapperOpaque<BoundedOpaqueNetworkState>`.
|
|
941
|
+
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
|
874
942
|
**/
|
|
875
|
-
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
943
|
+
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
876
944
|
/**
|
|
877
945
|
* Generic query
|
|
878
946
|
**/
|
|
@@ -1415,6 +1483,27 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1415
1483
|
**/
|
|
1416
1484
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1417
1485
|
};
|
|
1486
|
+
safeMode: {
|
|
1487
|
+
/**
|
|
1488
|
+
* Holds the reserve that was taken from an account at a specific block number.
|
|
1489
|
+
*
|
|
1490
|
+
* This helps governance to have an overview of outstanding deposits that should be returned or
|
|
1491
|
+
* slashed.
|
|
1492
|
+
**/
|
|
1493
|
+
deposits: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
|
|
1494
|
+
/**
|
|
1495
|
+
* Contains the last block number that the safe-mode will remain entered in.
|
|
1496
|
+
*
|
|
1497
|
+
* Set to `None` when safe-mode is exited.
|
|
1498
|
+
*
|
|
1499
|
+
* Safe-mode is automatically exited when the current block number exceeds this value.
|
|
1500
|
+
**/
|
|
1501
|
+
enteredUntil: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1502
|
+
/**
|
|
1503
|
+
* Generic query
|
|
1504
|
+
**/
|
|
1505
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1506
|
+
};
|
|
1418
1507
|
salary: {
|
|
1419
1508
|
/**
|
|
1420
1509
|
* The status of a claimant.
|
|
@@ -1492,67 +1581,83 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1492
1581
|
* The current bids, stored ordered by the value of the bid.
|
|
1493
1582
|
**/
|
|
1494
1583
|
bids: AugmentedQuery<ApiType, () => Observable<Vec<PalletSocietyBid>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1584
|
+
candidates: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyCandidacy>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1495
1585
|
/**
|
|
1496
|
-
* The
|
|
1586
|
+
* The number of challenge rounds there have been. Used to identify stale DefenderVotes.
|
|
1497
1587
|
**/
|
|
1498
|
-
|
|
1588
|
+
challengeRoundCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1499
1589
|
/**
|
|
1500
|
-
*
|
|
1590
|
+
* Votes for the defender, keyed by challenge round.
|
|
1501
1591
|
**/
|
|
1502
|
-
|
|
1592
|
+
defenderVotes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1503
1593
|
/**
|
|
1504
|
-
*
|
|
1594
|
+
* The defending member currently being challenged, along with a running tally of votes.
|
|
1505
1595
|
**/
|
|
1506
|
-
|
|
1596
|
+
defending: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[AccountId32, AccountId32, PalletSocietyTally]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1507
1597
|
/**
|
|
1508
1598
|
* The first member.
|
|
1509
1599
|
**/
|
|
1510
1600
|
founder: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1511
1601
|
/**
|
|
1512
|
-
* The most primary from the most recently approved members.
|
|
1602
|
+
* The most primary from the most recently approved rank 0 members in the society.
|
|
1513
1603
|
**/
|
|
1514
1604
|
head: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1515
1605
|
/**
|
|
1516
|
-
* The
|
|
1606
|
+
* The current items in `Members` keyed by their unique index. Keys are densely populated
|
|
1607
|
+
* `0..MemberCount` (does not include `MemberCount`).
|
|
1517
1608
|
**/
|
|
1518
|
-
|
|
1609
|
+
memberByIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1519
1610
|
/**
|
|
1520
|
-
* The
|
|
1611
|
+
* The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)
|
|
1521
1612
|
**/
|
|
1522
|
-
|
|
1613
|
+
memberCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1614
|
+
/**
|
|
1615
|
+
* The current members and their rank. Doesn't include `SuspendedMembers`.
|
|
1616
|
+
**/
|
|
1617
|
+
members: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1523
1618
|
/**
|
|
1524
|
-
*
|
|
1619
|
+
* At the end of the claim period, this contains the most recently approved members (along with
|
|
1620
|
+
* their bid and round ID) who is from the most recent round with the lowest bid. They will
|
|
1621
|
+
* become the new `Head`.
|
|
1525
1622
|
**/
|
|
1526
|
-
|
|
1623
|
+
nextHead: AugmentedQuery<ApiType, () => Observable<Option<PalletSocietyIntakeRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1624
|
+
/**
|
|
1625
|
+
* The max number of members for the society at one time.
|
|
1626
|
+
**/
|
|
1627
|
+
parameters: AugmentedQuery<ApiType, () => Observable<Option<PalletSocietyGroupParams>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1628
|
+
/**
|
|
1629
|
+
* Information regarding rank-0 payouts, past and future.
|
|
1630
|
+
**/
|
|
1631
|
+
payouts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletSocietyPayoutRecord>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1527
1632
|
/**
|
|
1528
1633
|
* Amount of our account balance that is specifically for the next round's bid(s).
|
|
1529
1634
|
**/
|
|
1530
1635
|
pot: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1636
|
+
/**
|
|
1637
|
+
* The number of rounds which have passed.
|
|
1638
|
+
**/
|
|
1639
|
+
roundCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1531
1640
|
/**
|
|
1532
1641
|
* A hash of the rules of this society concerning membership. Can only be set once and
|
|
1533
1642
|
* only by the founder.
|
|
1534
1643
|
**/
|
|
1535
1644
|
rules: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1536
1645
|
/**
|
|
1537
|
-
* The
|
|
1646
|
+
* The current skeptic.
|
|
1538
1647
|
**/
|
|
1539
|
-
|
|
1648
|
+
skeptic: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1540
1649
|
/**
|
|
1541
|
-
* The set of suspended
|
|
1650
|
+
* The set of suspended members, with their old membership record.
|
|
1542
1651
|
**/
|
|
1543
|
-
|
|
1652
|
+
suspendedMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1544
1653
|
/**
|
|
1545
|
-
*
|
|
1654
|
+
* Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor.
|
|
1546
1655
|
**/
|
|
1547
|
-
|
|
1656
|
+
voteClearCursor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Bytes>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1548
1657
|
/**
|
|
1549
1658
|
* Double map from Candidate -> Voter -> (Maybe) Vote.
|
|
1550
1659
|
**/
|
|
1551
1660
|
votes: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVote>>, [AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32, AccountId32]>;
|
|
1552
|
-
/**
|
|
1553
|
-
* Members currently vouching or banned from vouching again
|
|
1554
|
-
**/
|
|
1555
|
-
vouching: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSocietyVouchingStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1556
1661
|
/**
|
|
1557
1662
|
* Generic query
|
|
1558
1663
|
**/
|
|
@@ -1718,7 +1823,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1718
1823
|
* they wish to support.
|
|
1719
1824
|
*
|
|
1720
1825
|
* Note that the keys of this storage map might become non-decodable in case the
|
|
1721
|
-
* [`
|
|
1826
|
+
* account's [`NominationsQuota::MaxNominations`] configuration is decreased.
|
|
1827
|
+
* In this rare case, these nominators
|
|
1722
1828
|
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
|
1723
1829
|
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
|
1724
1830
|
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
|
@@ -1873,7 +1979,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1873
1979
|
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
1874
1980
|
* in case of changes fetch the list of events of interest.
|
|
1875
1981
|
*
|
|
1876
|
-
* The value has the type `(T
|
|
1982
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
1877
1983
|
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
1878
1984
|
* no notification will be triggered thus the event might be lost.
|
|
1879
1985
|
**/
|
|
@@ -2053,6 +2159,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2053
2159
|
**/
|
|
2054
2160
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2055
2161
|
};
|
|
2162
|
+
txPause: {
|
|
2163
|
+
/**
|
|
2164
|
+
* The set of calls that are explicitly paused.
|
|
2165
|
+
**/
|
|
2166
|
+
pausedCalls: AugmentedQuery<ApiType, (arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<Null>>, [ITuple<[Bytes, Bytes]>]> & QueryableStorageEntry<ApiType, [ITuple<[Bytes, Bytes]>]>;
|
|
2167
|
+
/**
|
|
2168
|
+
* Generic query
|
|
2169
|
+
**/
|
|
2170
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2171
|
+
};
|
|
2056
2172
|
uniques: {
|
|
2057
2173
|
/**
|
|
2058
2174
|
* The items held by any given account; set out this way so that items owned by a single
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/calls';
|
|
2
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
3
|
-
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
|
6
6
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
@@ -19,6 +19,7 @@ import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index,
|
|
|
19
19
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
20
20
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
21
21
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
22
|
+
import type { XcmV3MultiLocation } from '@polkadot/types/lookup';
|
|
22
23
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
23
24
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
24
25
|
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
@@ -35,6 +36,25 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
35
36
|
**/
|
|
36
37
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
37
38
|
};
|
|
39
|
+
/** 0x8a8047a53a8277ec/1 */
|
|
40
|
+
assetConversionApi: {
|
|
41
|
+
/**
|
|
42
|
+
* Get pool reserves
|
|
43
|
+
**/
|
|
44
|
+
getReserves: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation) => Observable<Option<ITuple<[Balance, Balance]>>>>;
|
|
45
|
+
/**
|
|
46
|
+
* Quote price: exact tokens for tokens
|
|
47
|
+
**/
|
|
48
|
+
quotePriceExactTokensForTokens: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
|
|
49
|
+
/**
|
|
50
|
+
* Quote price: tokens for exact tokens
|
|
51
|
+
**/
|
|
52
|
+
quotePriceTokensForExactTokens: AugmentedCall<ApiType, (asset1: XcmV3MultiLocation, asset2: XcmV3MultiLocation, amount: u128 | AnyNumber | Uint8Array, include_fee: bool | boolean | Uint8Array) => Observable<Option<Balance>>>;
|
|
53
|
+
/**
|
|
54
|
+
* Generic call
|
|
55
|
+
**/
|
|
56
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
57
|
+
};
|
|
38
58
|
/** 0x8453b50b22293977/1 */
|
|
39
59
|
assetsApi: {
|
|
40
60
|
/**
|