Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fe02a1434 | ||
|
|
ac25d0704d | ||
|
|
82d0bfc51b | ||
|
|
8e514ad511 | ||
|
|
abb45e5fcf | ||
|
|
71273dbce3 | ||
|
|
3d5b69d6e6 | ||
|
|
d51ddc70f9 | ||
|
|
9052f16e0f | ||
|
|
dd19d17b60 | ||
|
|
58ba63069a | ||
|
|
6206569e5b | ||
|
|
c3bb18fbaf | ||
|
|
186cfc93b5 | ||
|
|
9a92089810 | ||
|
|
211c487297 | ||
|
|
3f3c5a753f | ||
|
|
d1d0168793 | ||
|
|
a1f6e207f4 | ||
|
|
de4e56ace0 | ||
|
|
6c5ca7ebec | ||
|
|
d9f3d319fb | ||
|
|
4fd3289739 | ||
|
|
1a267c58f3 | ||
|
|
745a1b7838 | ||
|
|
7e62e08b5d | ||
|
|
2328bf8779 | ||
|
|
1fb35ae110 | ||
|
|
91278f67ac | ||
|
|
f8121e364d | ||
|
|
5c0ff26585 | ||
|
|
7366fc201d | ||
|
|
6ce7deb1df | ||
|
|
b80a28f65d | ||
|
|
4f7f7769be | ||
|
|
a79dcca89f | ||
|
|
17a7427e04 | ||
|
|
43abd5f525 | ||
|
|
660fe4e087 | ||
|
|
3b9d03bb2e | ||
|
|
1cbbe3bb12 | ||
|
|
a79e9f56a1 | ||
|
|
3b39de3852 | ||
|
|
0526b8dbfc | ||
|
|
3aeca2942b | ||
|
|
591b96206d |
@@ -13,13 +13,13 @@ jobs:
|
||||
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836
|
||||
with:
|
||||
github-token: ${{ secrets.GH_PAT_BOT }}
|
||||
issue-lock-inactive-days: '7'
|
||||
issue-lock-comment: >
|
||||
issue-inactive-days: '7'
|
||||
issue-comment: >
|
||||
This thread has been automatically locked since there has not been
|
||||
any recent activity after it was closed. Please open a new issue
|
||||
if you think you have a related problem or query.
|
||||
pr-lock-inactive-days: '2'
|
||||
pr-lock-comment: >
|
||||
pr-inactive-days: '2'
|
||||
pr-comment: >
|
||||
This pull request has been automatically locked since there
|
||||
has not been any recent activity after it was closed.
|
||||
Please open a new issue for related bugs.
|
||||
|
||||
@@ -1,5 +1,52 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 10.3.2 Apr 10, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Revert throw on MSB BitVec (`toHuman()` output is still incorrect)
|
||||
|
||||
|
||||
## 10.3.1 Apr 9, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Add `BitVec.toBoolArray()` helper function
|
||||
- Tie down `BitVec` from metadata to only allow (default) Lsb
|
||||
- Support for `TransactionPaymentApi/4`
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.2.2 Apr 1, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Support expanded Nimbus lookups to Collators (Thanks to https://github.com/grenade)
|
||||
|
||||
Changes:
|
||||
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.2.1 Mar 25, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Add support for new Frontier `AccountId20` mapping (Thanks to https://github.com/koushiro)
|
||||
- Adjust MMR RPCs & runtime calls to align with latest (Thanks to https://github.com/Lederstrumpf)
|
||||
|
||||
Changes:
|
||||
|
||||
- Use Promise resolve/reject to track state in typegen on-chain metadata retrievals
|
||||
- Adjust signing header retrieval, catering for discarded state fallbacks
|
||||
- Add support for `ParachainHost v4` runtime calls
|
||||
- Basic support for markdown generation for different chains (only Kusama & Polkadot currently added)
|
||||
- Add not-to-be-used `ISize` type support (same as `USize`, throwing on use - added for completeness)
|
||||
- Ensure `AccountId20.eq` does not fail on null/undefined inputs
|
||||
- Expand tests around `toU8a()` where the `isBare` flag is is being used
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.1.4 Mar 19, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
+4
-1
@@ -1,4 +1,4 @@
|
||||
3409 Jaco 10.1.4 (#5550)
|
||||
3429 Jaco 10.3.2 (#5589)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
@@ -95,9 +95,12 @@
|
||||
1 Paul M Fox Basic BTreeMaps codec support (#1474)
|
||||
1 philipstanislaus Update types for centrifuge chain v1.2.0 (#2424)
|
||||
1 Pierre Krieger Update substrate/connect to 0.7.6 (#4940)
|
||||
1 Qinxuan Chen Add fp_account::AccountId20 mapping (#5551)
|
||||
1 qiuhao update DeriveCustom type (#2581)
|
||||
1 r0t0r-r0t0r Fix memory leak on raw rpc call (#4505)
|
||||
1 Raphael Flechtner fix: typegen disconnect ws on success (#4901)
|
||||
1 rob thijssen support manta author lookup (#5561)
|
||||
1 Robert Hambrock update MMR API (#5479)
|
||||
1 Rocco Musolino remove broken link (#2671)
|
||||
1 sander2 fix: type generation for nested tuples (#5395)
|
||||
1 satellitex Add BTreeSet<V> Codec (#1639)
|
||||
|
||||
+8
-8
@@ -2,7 +2,7 @@
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=18.14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
@@ -14,17 +14,17 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"versions": {
|
||||
"git": "10.1.4",
|
||||
"npm": "10.1.4"
|
||||
"git": "10.3.2",
|
||||
"npm": "10.3.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "yarn build:interfaces && polkadot-dev-build-ts",
|
||||
"build:before": "(cd packages/typegen && polkadot-dev-copy-dir scripts build/scripts)",
|
||||
"build:before": "polkadot-dev-copy-dir --cd packages/typegen scripts build",
|
||||
"build:interfaces": "node --loader @polkadot/dev-ts packages/typegen/scripts/polkadot-types-internal-interfaces.mjs",
|
||||
"build:metadata": "yarn build:interfaces && polkadot-dev-run-test packages/types/src/metadata/v14",
|
||||
"build:release": "polkadot-ci-ghact-build",
|
||||
@@ -40,11 +40,11 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.72.15",
|
||||
"@polkadot/dev": "^0.72.39",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^18.15.3"
|
||||
"@types/node": "^18.15.11"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^5.0.2"
|
||||
"typescript": "^5.0.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.1.4",
|
||||
"@polkadot/rpc-augment": "10.1.4",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-augment": "10.1.4",
|
||||
"@polkadot/types-codec": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/api-base": "10.3.2",
|
||||
"@polkadot/rpc-augment": "10.3.2",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-augment": "10.3.2",
|
||||
"@polkadot/types-codec": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
import '@polkadot/api-base/types/consts';
|
||||
|
||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, KusamaRuntimeHoldReason, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
|
||||
@@ -59,9 +59,24 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* The minimum amount required to keep an account open.
|
||||
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
||||
*
|
||||
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
||||
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
||||
* In case you have multiple sources of provider references, you may also get unexpected
|
||||
* behaviour if you set this to zero.
|
||||
*
|
||||
* Bottom line: Do yourself a favour and make it at least one!
|
||||
**/
|
||||
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of individual freeze locks that can exist on an account at any time.
|
||||
**/
|
||||
maxFreezes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of holds that can exist on an account at any time.
|
||||
**/
|
||||
maxHolds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of locks that should exist on an account.
|
||||
* Not strictly enforced, but used for weight estimation.
|
||||
@@ -183,72 +198,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
||||
**/
|
||||
cooloffPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The period between a proposal being approved and enacted.
|
||||
*
|
||||
* It should generally be a little more than the unstake period to ensure that
|
||||
* voting stakers have an opportunity to remove themselves from the system in the case
|
||||
* where they are on the losing side of a vote.
|
||||
**/
|
||||
enactmentPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum voting period allowed for a fast-track referendum.
|
||||
**/
|
||||
fastTrackVotingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Indicator for whether an emergency origin is even allowed to happen. Some chains may
|
||||
* want to set this permanently to `false`, others may want to condition it on things such
|
||||
* as an upgrade having happened recently.
|
||||
**/
|
||||
instantAllowed: bool & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* How often (in blocks) new public referenda are launched.
|
||||
**/
|
||||
launchPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of items which can be blacklisted.
|
||||
**/
|
||||
maxBlacklisted: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of deposits a public proposal may have at any time.
|
||||
**/
|
||||
maxDeposits: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of public proposals that can exist at any time.
|
||||
**/
|
||||
maxProposals: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of votes for an account.
|
||||
*
|
||||
* Also used to compute weight, an overly big value can
|
||||
* lead to extrinsic with very big weight: see `delegate` for instance.
|
||||
**/
|
||||
maxVotes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount to be used as a deposit for a public referendum proposal.
|
||||
**/
|
||||
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum period of vote locking.
|
||||
*
|
||||
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
||||
* those successful voters are locked into the consequences that their votes entail.
|
||||
**/
|
||||
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* How often (in blocks) to check for new votes.
|
||||
**/
|
||||
votingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
@@ -280,6 +229,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
minerMaxWinners: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||
**/
|
||||
@@ -495,6 +445,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Must be no greater than `MaxQueueLen`.
|
||||
**/
|
||||
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The identifier of the hold reason.
|
||||
**/
|
||||
holdReason: KusamaRuntimeHoldReason & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
||||
*
|
||||
@@ -537,10 +491,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* this value multiplied by `Period`.
|
||||
**/
|
||||
queueCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The name for the reserve ID.
|
||||
**/
|
||||
reserveId: U8aFixed & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum proportion which may be thawed and the period over which it is reset.
|
||||
**/
|
||||
@@ -552,9 +502,24 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
nisCounterpartBalances: {
|
||||
/**
|
||||
* The minimum amount required to keep an account open.
|
||||
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
||||
*
|
||||
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
||||
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
||||
* In case you have multiple sources of provider references, you may also get unexpected
|
||||
* behaviour if you set this to zero.
|
||||
*
|
||||
* Bottom line: Do yourself a favour and make it at least one!
|
||||
**/
|
||||
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of individual freeze locks that can exist on an account at any time.
|
||||
**/
|
||||
maxFreezes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of holds that can exist on an account at any time.
|
||||
**/
|
||||
maxHolds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of locks that should exist on an account.
|
||||
* Not strictly enforced, but used for weight estimation.
|
||||
@@ -601,70 +566,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
phragmenElection: {
|
||||
/**
|
||||
* How much should be locked up in order to submit one's candidacy.
|
||||
**/
|
||||
candidacyBond: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Number of members to elect.
|
||||
**/
|
||||
desiredMembers: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Number of runners_up to keep.
|
||||
**/
|
||||
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of candidates in a phragmen election.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When this limit is reached no more candidates are accepted in the election.
|
||||
**/
|
||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of voters to allow in a phragmen election.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
*
|
||||
* When the limit is reached the new voters are ignored.
|
||||
**/
|
||||
maxVoters: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum numbers of votes per voter.
|
||||
*
|
||||
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
||||
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
||||
**/
|
||||
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Identifier for the elections-phragmen pallet's lock
|
||||
**/
|
||||
palletId: U8aFixed & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* How long each seat is kept. This defines the next block number at which an election
|
||||
* round will happen. If set to zero, no elections are ever triggered and the module will
|
||||
* be in passive mode.
|
||||
**/
|
||||
termDuration: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Base deposit associated with voting.
|
||||
*
|
||||
* This should be sensibly high to economically ensure the pallet cannot be attacked by
|
||||
* creating a gigantic number of votes.
|
||||
**/
|
||||
votingBondBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of bond that need to be locked for each vote (32 bytes).
|
||||
**/
|
||||
votingBondFactor: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
proxy: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating an announcement.
|
||||
@@ -799,6 +700,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of scheduled calls in the queue for a single block.
|
||||
*
|
||||
* NOTE:
|
||||
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
||||
* higher limit under `runtime-benchmarks` feature.
|
||||
**/
|
||||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -979,34 +884,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
tips: {
|
||||
/**
|
||||
* The amount held on deposit per byte within the tip report reason or bounty description.
|
||||
**/
|
||||
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum acceptable reason length.
|
||||
*
|
||||
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
||||
**/
|
||||
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The period for which a tip remains open after is has achieved threshold tippers.
|
||||
**/
|
||||
tipCountdown: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The percent of the final tip which goes to the original reporter of the tip.
|
||||
**/
|
||||
tipFindersFee: Percent & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount held on deposit for placing a tip report.
|
||||
**/
|
||||
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
||||
|
||||
@@ -69,35 +69,43 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* Beneficiary account must pre-exist
|
||||
* Beneficiary account must pre-exist.
|
||||
**/
|
||||
DeadAccount: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Value too low to create account due to existential deposit
|
||||
* Value too low to create account due to existential deposit.
|
||||
**/
|
||||
ExistentialDeposit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A vesting schedule already exists for this account
|
||||
* A vesting schedule already exists for this account.
|
||||
**/
|
||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Transfer/payment would kill account.
|
||||
**/
|
||||
Expendability: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Balance too low to send value.
|
||||
**/
|
||||
InsufficientBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Transfer/payment would kill account
|
||||
**/
|
||||
KeepAlive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account liquidity restrictions prevent withdrawal
|
||||
* Account liquidity restrictions prevent withdrawal.
|
||||
**/
|
||||
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of named reserves exceed MaxReserves
|
||||
* Number of freezes exceed `MaxFreezes`.
|
||||
**/
|
||||
TooManyFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of holds exceed `MaxHolds`.
|
||||
**/
|
||||
TooManyHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of named reserves exceed `MaxReserves`.
|
||||
**/
|
||||
TooManyReserves: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Vesting balance too high to send value
|
||||
* Vesting balance too high to send value.
|
||||
**/
|
||||
VestingBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -270,52 +278,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* Members are already initialized!
|
||||
**/
|
||||
AlreadyInitialized: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate proposals not allowed
|
||||
**/
|
||||
DuplicateProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate vote ignored
|
||||
**/
|
||||
DuplicateVote: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account is not a member
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal must exist
|
||||
**/
|
||||
ProposalMissing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The close call was made too early, before the end of the voting.
|
||||
**/
|
||||
TooEarly: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There can only be a maximum of `MaxProposals` active proposals.
|
||||
**/
|
||||
TooManyProposals: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Mismatched index
|
||||
**/
|
||||
WrongIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given length bound for the proposal was too low.
|
||||
**/
|
||||
WrongProposalLength: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given weight bound for the proposal was too low.
|
||||
**/
|
||||
WrongProposalWeight: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The fund is already in `NewRaise`
|
||||
@@ -414,109 +376,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* Cannot cancel the same proposal twice
|
||||
**/
|
||||
AlreadyCanceled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account is already delegating.
|
||||
**/
|
||||
AlreadyDelegating: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Identity may not veto a proposal twice
|
||||
**/
|
||||
AlreadyVetoed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal already made
|
||||
**/
|
||||
DuplicateProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The instant referendum origin is currently disallowed.
|
||||
**/
|
||||
InstantNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too high a balance was provided that the account cannot afford.
|
||||
**/
|
||||
InsufficientFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid hash
|
||||
**/
|
||||
InvalidHash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Maximum number of votes reached.
|
||||
**/
|
||||
MaxVotesReached: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No proposals waiting
|
||||
**/
|
||||
NoneWaiting: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Delegation to oneself makes no sense.
|
||||
**/
|
||||
Nonsense: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The actor has no permission to conduct the action.
|
||||
**/
|
||||
NoPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No external proposal
|
||||
**/
|
||||
NoProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account is not currently delegating.
|
||||
**/
|
||||
NotDelegating: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Next external proposal not simple majority
|
||||
**/
|
||||
NotSimpleMajority: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given account did not vote on the referendum.
|
||||
**/
|
||||
NotVoter: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal still blacklisted
|
||||
**/
|
||||
ProposalBlacklisted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal does not exist
|
||||
**/
|
||||
ProposalMissing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Vote given for invalid referendum
|
||||
**/
|
||||
ReferendumInvalid: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Maximum number of items reached.
|
||||
**/
|
||||
TooMany: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Value too low
|
||||
**/
|
||||
ValueLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account currently has votes attached to it and the operation cannot succeed until
|
||||
* these are removed, either through `unvote` or `reap_vote`.
|
||||
**/
|
||||
VotesExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Voting period too low
|
||||
**/
|
||||
VotingPeriodLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid upper bound.
|
||||
**/
|
||||
WrongUpperBound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* Some bound not met
|
||||
@@ -1078,35 +937,43 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
nisCounterpartBalances: {
|
||||
/**
|
||||
* Beneficiary account must pre-exist
|
||||
* Beneficiary account must pre-exist.
|
||||
**/
|
||||
DeadAccount: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Value too low to create account due to existential deposit
|
||||
* Value too low to create account due to existential deposit.
|
||||
**/
|
||||
ExistentialDeposit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A vesting schedule already exists for this account
|
||||
* A vesting schedule already exists for this account.
|
||||
**/
|
||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Transfer/payment would kill account.
|
||||
**/
|
||||
Expendability: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Balance too low to send value.
|
||||
**/
|
||||
InsufficientBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Transfer/payment would kill account
|
||||
**/
|
||||
KeepAlive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account liquidity restrictions prevent withdrawal
|
||||
* Account liquidity restrictions prevent withdrawal.
|
||||
**/
|
||||
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of named reserves exceed MaxReserves
|
||||
* Number of freezes exceed `MaxFreezes`.
|
||||
**/
|
||||
TooManyFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of holds exceed `MaxHolds`.
|
||||
**/
|
||||
TooManyHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of named reserves exceed `MaxReserves`.
|
||||
**/
|
||||
TooManyReserves: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Vesting balance too high to send value
|
||||
* Vesting balance too high to send value.
|
||||
**/
|
||||
VestingBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1132,6 +999,18 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
||||
**/
|
||||
CannotWithdrawAny: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The submitted changes to commission change rate are not allowed.
|
||||
**/
|
||||
CommissionChangeRateNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not enough blocks have surpassed since the last commission update.
|
||||
**/
|
||||
CommissionChangeThrottled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The supplied commission exceeds the max allowed commission.
|
||||
**/
|
||||
CommissionExceedsMaximum: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Some error occurred that should never happen. This should be reported to the
|
||||
* maintainers.
|
||||
@@ -1150,6 +1029,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Pool id provided is not correct/usable.
|
||||
**/
|
||||
InvalidPoolId: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool's max commission cannot be set higher than the existing value.
|
||||
**/
|
||||
MaxCommissionRestricted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many members in the pool or system.
|
||||
**/
|
||||
@@ -1174,6 +1057,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
||||
**/
|
||||
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No commission current has been set.
|
||||
**/
|
||||
NoCommissionCurrentSet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is no pending commission to claim.
|
||||
**/
|
||||
NoPendingCommission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
||||
* other members to be permissionlessly unbonded.
|
||||
@@ -1481,75 +1372,32 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
parasSlashing: {
|
||||
/**
|
||||
* Duplicated candidate submission.
|
||||
* The given slashing report is valid but already previously reported.
|
||||
**/
|
||||
DuplicatedCandidate: AugmentedError<ApiType>;
|
||||
DuplicateSlashingReport: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Candidate does not have enough funds.
|
||||
* The candidate hash is invalid.
|
||||
**/
|
||||
InsufficientCandidateFunds: AugmentedError<ApiType>;
|
||||
InvalidCandidateHash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The renouncing origin presented a wrong `Renouncing` parameter.
|
||||
* The key ownership proof is invalid.
|
||||
**/
|
||||
InvalidRenouncing: AugmentedError<ApiType>;
|
||||
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Prediction regarding replacement after member removal is wrong.
|
||||
* The session index is too old or invalid.
|
||||
**/
|
||||
InvalidReplacement: AugmentedError<ApiType>;
|
||||
InvalidSessionIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided count of number of votes is incorrect.
|
||||
* There is no pending slash for the given validator index and time
|
||||
* slot.
|
||||
**/
|
||||
InvalidVoteCount: AugmentedError<ApiType>;
|
||||
InvalidValidatorIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The provided count of number of candidates is incorrect.
|
||||
* The validator index does not match the validator id.
|
||||
**/
|
||||
InvalidWitnessData: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot vote with stake less than minimum balance.
|
||||
**/
|
||||
LowBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot vote more than maximum allowed.
|
||||
**/
|
||||
MaximumVotesExceeded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Member cannot re-submit candidacy.
|
||||
**/
|
||||
MemberSubmit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Must be a voter.
|
||||
**/
|
||||
MustBeVoter: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not a member.
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Must vote for at least one candidate.
|
||||
**/
|
||||
NoVotes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Runner cannot re-submit candidacy.
|
||||
**/
|
||||
RunnerUpSubmit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many candidates have been created.
|
||||
**/
|
||||
TooManyCandidates: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot vote more than candidates.
|
||||
**/
|
||||
TooManyVotes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Voter can not pay voting bond.
|
||||
**/
|
||||
UnableToPayBond: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot vote when no candidates or members exist.
|
||||
**/
|
||||
UnableToVote: AugmentedError<ApiType>;
|
||||
ValidatorIndexIdMismatch: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
@@ -2102,100 +1950,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* Members are already initialized!
|
||||
**/
|
||||
AlreadyInitialized: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate proposals not allowed
|
||||
**/
|
||||
DuplicateProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Duplicate vote ignored
|
||||
**/
|
||||
DuplicateVote: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account is not a member
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal must exist
|
||||
**/
|
||||
ProposalMissing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The close call was made too early, before the end of the voting.
|
||||
**/
|
||||
TooEarly: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There can only be a maximum of `MaxProposals` active proposals.
|
||||
**/
|
||||
TooManyProposals: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Mismatched index
|
||||
**/
|
||||
WrongIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given length bound for the proposal was too low.
|
||||
**/
|
||||
WrongProposalLength: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given weight bound for the proposal was too low.
|
||||
**/
|
||||
WrongProposalWeight: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
technicalMembership: {
|
||||
/**
|
||||
* Already a member.
|
||||
**/
|
||||
AlreadyMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not a member.
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many members.
|
||||
**/
|
||||
TooManyMembers: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
tips: {
|
||||
/**
|
||||
* The tip was already found/started.
|
||||
**/
|
||||
AlreadyKnown: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account attempting to retract the tip is not the finder of the tip.
|
||||
**/
|
||||
NotFinder: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The tip cannot be claimed/closed because it's still in the countdown period.
|
||||
**/
|
||||
Premature: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The reason given is just too big.
|
||||
**/
|
||||
ReasonTooBig: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The tip cannot be claimed/closed because there are not enough tippers yet.
|
||||
**/
|
||||
StillOpen: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The tip hash is unknown.
|
||||
**/
|
||||
UnknownTip: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
treasury: {
|
||||
/**
|
||||
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -57,7 +57,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A balance was set by root.
|
||||
**/
|
||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128], { who: AccountId32, free: u128 }>;
|
||||
/**
|
||||
* Some amount was burned from an account.
|
||||
**/
|
||||
Burned: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was deposited (e.g. for transaction fees).
|
||||
**/
|
||||
@@ -71,6 +75,22 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account was created with some free balance.
|
||||
**/
|
||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||
/**
|
||||
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||
**/
|
||||
Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||
/**
|
||||
* Some balance was locked.
|
||||
**/
|
||||
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was minted into an account.
|
||||
**/
|
||||
Minted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Total issuance was decreased by `amount`, creating a debt to be balanced.
|
||||
**/
|
||||
Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||
/**
|
||||
* Some balance was reserved (moved from free to reserved).
|
||||
**/
|
||||
@@ -80,18 +100,34 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Final argument indicates the destination balance type.
|
||||
**/
|
||||
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
||||
/**
|
||||
* Some amount was restored into an account.
|
||||
**/
|
||||
Restored: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was removed from the account (e.g. for misbehavior).
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was suspended from an account (it can be restored later).
|
||||
**/
|
||||
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Transfer succeeded.
|
||||
**/
|
||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was unlocked.
|
||||
**/
|
||||
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was unreserved (moved from reserved to free).
|
||||
**/
|
||||
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An account was upgraded.
|
||||
**/
|
||||
Upgraded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||
**/
|
||||
@@ -181,42 +217,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* A motion was approved by the required threshold.
|
||||
**/
|
||||
Approved: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A proposal was closed because its threshold was reached or after its duration was up.
|
||||
**/
|
||||
Closed: AugmentedEvent<ApiType, [proposalHash: H256, yes: u32, no: u32], { proposalHash: H256, yes: u32, no: u32 }>;
|
||||
/**
|
||||
* A motion was not approved by the required threshold.
|
||||
**/
|
||||
Disapproved: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A motion was executed; result will be `Ok` if it returned without error.
|
||||
**/
|
||||
Executed: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], { proposalHash: H256, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A single member did some action; result will be `Ok` if it returned without error.
|
||||
**/
|
||||
MemberExecuted: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], { proposalHash: H256, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A motion (given hash) has been proposed (by given account) with a threshold (given
|
||||
* `MemberCount`).
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], { account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32 }>;
|
||||
/**
|
||||
* A motion (given hash) has been voted on by given account, leaving
|
||||
* a tally (yes votes and no votes given respectively as `MemberCount`).
|
||||
**/
|
||||
Voted: AugmentedEvent<ApiType, [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], { account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* A parachain has been moved to `NewRaise`
|
||||
@@ -264,80 +264,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* A proposal_hash has been blacklisted permanently.
|
||||
**/
|
||||
Blacklisted: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A referendum has been cancelled.
|
||||
**/
|
||||
Cancelled: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
||||
/**
|
||||
* An account has delegated their vote to another account.
|
||||
**/
|
||||
Delegated: AugmentedEvent<ApiType, [who: AccountId32, target: AccountId32], { who: AccountId32, target: AccountId32 }>;
|
||||
/**
|
||||
* An external proposal has been tabled.
|
||||
**/
|
||||
ExternalTabled: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a proposal or a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], { owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata has been transferred to new owner.
|
||||
**/
|
||||
MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], { prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
NotPassed: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
||||
/**
|
||||
* A proposal has been approved by referendum.
|
||||
**/
|
||||
Passed: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
||||
/**
|
||||
* A proposal got canceled.
|
||||
**/
|
||||
ProposalCanceled: AugmentedEvent<ApiType, [propIndex: u32], { propIndex: u32 }>;
|
||||
/**
|
||||
* A motion has been proposed by a public account.
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
|
||||
/**
|
||||
* An account has secconded a proposal
|
||||
**/
|
||||
Seconded: AugmentedEvent<ApiType, [seconder: AccountId32, propIndex: u32], { seconder: AccountId32, propIndex: u32 }>;
|
||||
/**
|
||||
* A referendum has begun.
|
||||
**/
|
||||
Started: AugmentedEvent<ApiType, [refIndex: u32, threshold: PalletDemocracyVoteThreshold], { refIndex: u32, threshold: PalletDemocracyVoteThreshold }>;
|
||||
/**
|
||||
* A public proposal has been tabled for referendum vote.
|
||||
**/
|
||||
Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
|
||||
/**
|
||||
* An account has cancelled a previous delegation operation.
|
||||
**/
|
||||
Undelegated: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
|
||||
/**
|
||||
* An external proposal has been vetoed.
|
||||
**/
|
||||
Vetoed: AugmentedEvent<ApiType, [who: AccountId32, proposalHash: H256, until: u32], { who: AccountId32, proposalHash: H256, until: u32 }>;
|
||||
/**
|
||||
* An account has voted in a referendum
|
||||
**/
|
||||
Voted: AugmentedEvent<ApiType, [voter: AccountId32, refIndex: u32, vote: PalletDemocracyVoteAccountVote], { voter: AccountId32, refIndex: u32, vote: PalletDemocracyVoteAccountVote }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* An election failed.
|
||||
@@ -682,7 +608,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A balance was set by root.
|
||||
**/
|
||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128], { who: AccountId32, free: u128 }>;
|
||||
/**
|
||||
* Some amount was burned from an account.
|
||||
**/
|
||||
Burned: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was deposited (e.g. for transaction fees).
|
||||
**/
|
||||
@@ -696,6 +626,22 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account was created with some free balance.
|
||||
**/
|
||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||
/**
|
||||
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||
**/
|
||||
Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||
/**
|
||||
* Some balance was locked.
|
||||
**/
|
||||
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was minted into an account.
|
||||
**/
|
||||
Minted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Total issuance was decreased by `amount`, creating a debt to be balanced.
|
||||
**/
|
||||
Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||
/**
|
||||
* Some balance was reserved (moved from free to reserved).
|
||||
**/
|
||||
@@ -705,18 +651,34 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Final argument indicates the destination balance type.
|
||||
**/
|
||||
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
||||
/**
|
||||
* Some amount was restored into an account.
|
||||
**/
|
||||
Restored: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was removed from the account (e.g. for misbehavior).
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was suspended from an account (it can be restored later).
|
||||
**/
|
||||
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Transfer succeeded.
|
||||
**/
|
||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was unlocked.
|
||||
**/
|
||||
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was unreserved (moved from reserved to free).
|
||||
**/
|
||||
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An account was upgraded.
|
||||
**/
|
||||
Upgraded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||
**/
|
||||
@@ -749,6 +711,22 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A payout has been made to a member.
|
||||
**/
|
||||
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
||||
/**
|
||||
* A pool's commission `change_rate` has been changed.
|
||||
**/
|
||||
PoolCommissionChangeRateUpdated: AugmentedEvent<ApiType, [poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate], { poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate }>;
|
||||
/**
|
||||
* Pool commission has been claimed.
|
||||
**/
|
||||
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
|
||||
/**
|
||||
* A pool's commission setting has been changed.
|
||||
**/
|
||||
PoolCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>>], { poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>> }>;
|
||||
/**
|
||||
* A pool's maximum commission setting has been changed.
|
||||
**/
|
||||
PoolMaxCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, maxCommission: Perbill], { poolId: u32, maxCommission: Perbill }>;
|
||||
/**
|
||||
* The active balance of pool `pool_id` has been slashed to `balance`.
|
||||
**/
|
||||
@@ -810,15 +788,15 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A candidate was backed. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate was included. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate timed out. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32]>;
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -875,11 +853,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A dispute has been initiated. \[candidate hash, dispute location\]
|
||||
**/
|
||||
DisputeInitiated: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
||||
/**
|
||||
* A dispute has timed out due to insufficient participation.
|
||||
* `\[para id, candidate hash\]`
|
||||
**/
|
||||
DisputeTimedOut: AugmentedEvent<ApiType, [H256]>;
|
||||
/**
|
||||
* A dispute has concluded with supermajority against a candidate.
|
||||
* Block authors should no longer build on top of this head and should
|
||||
@@ -892,49 +865,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
/**
|
||||
* A candidate was slashed by amount due to failing to obtain a seat as member or
|
||||
* runner-up.
|
||||
*
|
||||
* Note that old members and runners-up are also candidates.
|
||||
**/
|
||||
CandidateSlashed: AugmentedEvent<ApiType, [candidate: AccountId32, amount: u128], { candidate: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Internal error happened while trying to perform election.
|
||||
**/
|
||||
ElectionError: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* No (or not enough) candidates existed for this round. This is different from
|
||||
* `NewTerm(\[\])`. See the description of `NewTerm`.
|
||||
**/
|
||||
EmptyTerm: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* A member has been removed. This should always be followed by either `NewTerm` or
|
||||
* `EmptyTerm`.
|
||||
**/
|
||||
MemberKicked: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||
/**
|
||||
* A new term with new_members. This indicates that enough candidates existed to run
|
||||
* the election, not that enough have has been elected. The inner value must be examined
|
||||
* for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
|
||||
* slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
|
||||
* begin with.
|
||||
**/
|
||||
NewTerm: AugmentedEvent<ApiType, [newMembers: Vec<ITuple<[AccountId32, u128]>>], { newMembers: Vec<ITuple<[AccountId32, u128]>> }>;
|
||||
/**
|
||||
* Someone has renounced their candidacy.
|
||||
**/
|
||||
Renounced: AugmentedEvent<ApiType, [candidate: AccountId32], { candidate: AccountId32 }>;
|
||||
/**
|
||||
* A seat holder was slashed by amount by being forcefully removed from the set.
|
||||
**/
|
||||
SeatHolderSlashed: AugmentedEvent<ApiType, [seatHolder: AccountId32, amount: u128], { seatHolder: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
preimage: {
|
||||
/**
|
||||
* A preimage has ben cleared.
|
||||
@@ -1320,98 +1250,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* A motion was approved by the required threshold.
|
||||
**/
|
||||
Approved: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A proposal was closed because its threshold was reached or after its duration was up.
|
||||
**/
|
||||
Closed: AugmentedEvent<ApiType, [proposalHash: H256, yes: u32, no: u32], { proposalHash: H256, yes: u32, no: u32 }>;
|
||||
/**
|
||||
* A motion was not approved by the required threshold.
|
||||
**/
|
||||
Disapproved: AugmentedEvent<ApiType, [proposalHash: H256], { proposalHash: H256 }>;
|
||||
/**
|
||||
* A motion was executed; result will be `Ok` if it returned without error.
|
||||
**/
|
||||
Executed: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], { proposalHash: H256, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A single member did some action; result will be `Ok` if it returned without error.
|
||||
**/
|
||||
MemberExecuted: AugmentedEvent<ApiType, [proposalHash: H256, result: Result<Null, SpRuntimeDispatchError>], { proposalHash: H256, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* A motion (given hash) has been proposed (by given account) with a threshold (given
|
||||
* `MemberCount`).
|
||||
**/
|
||||
Proposed: AugmentedEvent<ApiType, [account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32], { account: AccountId32, proposalIndex: u32, proposalHash: H256, threshold: u32 }>;
|
||||
/**
|
||||
* A motion (given hash) has been voted on by given account, leaving
|
||||
* a tally (yes votes and no votes given respectively as `MemberCount`).
|
||||
**/
|
||||
Voted: AugmentedEvent<ApiType, [account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32], { account: AccountId32, proposalHash: H256, voted: bool, yes: u32, no: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
technicalMembership: {
|
||||
/**
|
||||
* Phantom member, never used.
|
||||
**/
|
||||
Dummy: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* One of the members' keys changed.
|
||||
**/
|
||||
KeyChanged: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* The given member was added; see the transaction for who.
|
||||
**/
|
||||
MemberAdded: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* The given member was removed; see the transaction for who.
|
||||
**/
|
||||
MemberRemoved: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* The membership was reset; see the transaction for who the new set is.
|
||||
**/
|
||||
MembersReset: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Two members were swapped; see the transaction for who.
|
||||
**/
|
||||
MembersSwapped: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
tips: {
|
||||
/**
|
||||
* A new tip suggestion has been opened.
|
||||
**/
|
||||
NewTip: AugmentedEvent<ApiType, [tipHash: H256], { tipHash: H256 }>;
|
||||
/**
|
||||
* A tip suggestion has been closed.
|
||||
**/
|
||||
TipClosed: AugmentedEvent<ApiType, [tipHash: H256, who: AccountId32, payout: u128], { tipHash: H256, who: AccountId32, payout: u128 }>;
|
||||
/**
|
||||
* A tip suggestion has reached threshold and is closing.
|
||||
**/
|
||||
TipClosing: AugmentedEvent<ApiType, [tipHash: H256], { tipHash: H256 }>;
|
||||
/**
|
||||
* A tip suggestion has been retracted.
|
||||
**/
|
||||
TipRetracted: AugmentedEvent<ApiType, [tipHash: H256], { tipHash: H256 }>;
|
||||
/**
|
||||
* A tip suggestion has been slashed.
|
||||
**/
|
||||
TipSlashed: AugmentedEvent<ApiType, [tipHash: H256, finder: AccountId32, deposit: u128], { tipHash: H256, finder: AccountId32, deposit: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
transactionPayment: {
|
||||
/**
|
||||
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|
||||
|
||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4AssignmentAppPublic, PolkadotPrimitivesV4CandidateCommitments, PolkadotPrimitivesV4CoreOccupied, PolkadotPrimitivesV4DisputeState, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4ScrapedOnChainVotes, PolkadotPrimitivesV4SessionInfo, PolkadotPrimitivesV4UpgradeGoAhead, PolkadotPrimitivesV4UpgradeRestriction, PolkadotPrimitivesV4ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsDisputesSlashingPendingSlashes, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -199,6 +199,17 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||
**/
|
||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Freeze locks on account balances.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
||||
readonly id: KusamaRuntimeHoldReason;
|
||||
readonly amount: u128;
|
||||
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -335,36 +346,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* The current members of the collective. This is stored sorted (just by value).
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The prime member that helps determine the default vote behavior in case of absentations.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Proposals so far.
|
||||
**/
|
||||
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Actual proposal for a given hash, if it's current.
|
||||
**/
|
||||
proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* The hashes of the active proposals.
|
||||
**/
|
||||
proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Votes on a given proposal, if it is ongoing.
|
||||
**/
|
||||
voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The number of auctions that have entered into their ending period so far.
|
||||
@@ -388,78 +369,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* A record of who vetoed what. Maps proposal hash to a possible existent block number
|
||||
* (until when it may not be resubmitted) and who vetoed it.
|
||||
**/
|
||||
blacklist: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<ITuple<[u32, Vec<AccountId32>]>>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Record of all proposals that have been subject to emergency cancellation.
|
||||
**/
|
||||
cancellations: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<bool>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Those who have locked a deposit.
|
||||
*
|
||||
* TWOX-NOTE: Safe, as increasing integer keys are safe.
|
||||
**/
|
||||
depositOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[Vec<AccountId32>, u128]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* True if the last referendum tabled was submitted externally. False if it was a public
|
||||
* proposal.
|
||||
**/
|
||||
lastTabledWasExternal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The lowest referendum index representing an unbaked referendum. Equal to
|
||||
* `ReferendumCount` if there isn't a unbaked referendum.
|
||||
**/
|
||||
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* General information concerning any proposal or referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | { External: any } | { Proposal: any } | { Referendum: any } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
|
||||
/**
|
||||
* The referendum to be tabled whenever it would be valid to table an external proposal.
|
||||
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
||||
* - `LastTabledWasExternal` is `false`; or
|
||||
* - `PublicProps` is empty.
|
||||
**/
|
||||
nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The number of (public) proposals that have been made so far.
|
||||
**/
|
||||
publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The public proposals. Unsorted. The second item is the proposal.
|
||||
**/
|
||||
publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, FrameSupportPreimagesBounded, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The next free referendum index, aka the number of referenda started so far.
|
||||
**/
|
||||
referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Information concerning any given referendum.
|
||||
*
|
||||
* TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
|
||||
**/
|
||||
referendumInfoOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletDemocracyReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* All votes for a particular voter. We store the balance for the number of votes that we
|
||||
* have recorded. The second item is the total amount of delegations, that will be added.
|
||||
*
|
||||
* TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
|
||||
**/
|
||||
votingOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletDemocracyVoteVoting>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
dmp: {
|
||||
/**
|
||||
* A mapping that stores the downward message queue MQC head for each para.
|
||||
@@ -942,6 +851,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||
**/
|
||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Freeze locks on account balances.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -997,6 +914,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
||||
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
||||
* `GlobalMaxCommission` is lower than some current pool commissions.
|
||||
**/
|
||||
globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Ever increasing number of all pools created so far.
|
||||
**/
|
||||
@@ -1048,13 +971,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout
|
||||
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
**/
|
||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
||||
* hence the name sub-pools. Keyed by the bonded pools account.
|
||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
||||
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
||||
**/
|
||||
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
@@ -1097,7 +1020,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The commitments of candidates pending availability, by `ParaId`.
|
||||
**/
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1116,7 +1039,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
||||
**/
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV4ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1234,7 +1157,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* This is used by the relay-chain to communicate that there are restrictions for performing
|
||||
* an upgrade for this parachain.
|
||||
@@ -1246,7 +1169,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1263,7 +1186,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* * The number of parachains and parathread multiplexers
|
||||
* * The number of validators divided by `configuration.max_validators_per_core`.
|
||||
**/
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV2CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV4CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* An index used to ensure that only one claim on a parathread exists in the queue or is
|
||||
* currently being handled by an occupied core.
|
||||
@@ -1319,7 +1242,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* All ongoing or concluded disputes for the last several sessions.
|
||||
**/
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV2DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV4DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
||||
* the chain will not accept any new parachain blocks for backing or inclusion,
|
||||
@@ -1352,7 +1275,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
||||
* When in doubt, use `Sessions` API instead.
|
||||
**/
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The earliest session for which previous session info is stored.
|
||||
**/
|
||||
@@ -1360,13 +1283,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Executor parameter set for a given session index
|
||||
**/
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Session information in a rolling window.
|
||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||
* Does not have any entries before the session index in the first session change notification.
|
||||
**/
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1382,7 +1305,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
||||
* This should be the same length as `ActiveValidatorIndices`.
|
||||
**/
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current session index.
|
||||
**/
|
||||
@@ -1392,39 +1315,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
parasSlashing: {
|
||||
/**
|
||||
* The present candidate list. A current member or runner-up can never enter this vector
|
||||
* and is always implicitly assumed to be a candidate.
|
||||
*
|
||||
* Second element is the deposit.
|
||||
*
|
||||
* Invariant: Always sorted based on account id.
|
||||
* Validators pending dispute slashes.
|
||||
**/
|
||||
candidates: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsDisputesSlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* The total number of vote rounds that have happened, excluding the upcoming one.
|
||||
* `ValidatorSetCount` per session.
|
||||
**/
|
||||
electionRounds: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current elected members.
|
||||
*
|
||||
* Invariant: Always sorted based on account id.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current reserved runners-up.
|
||||
*
|
||||
* Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
|
||||
* last (i.e. _best_) runner-up will be replaced.
|
||||
**/
|
||||
runnersUp: AugmentedQuery<ApiType, () => Observable<Vec<PalletElectionsPhragmenSeatHolder>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Votes and locked stake of a particular voter.
|
||||
*
|
||||
* TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
|
||||
**/
|
||||
voting: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletElectionsPhragmenVoter>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
validatorSetCounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -2011,50 +1910,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
technicalCommittee: {
|
||||
/**
|
||||
* The current members of the collective. This is stored sorted (just by value).
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The prime member that helps determine the default vote behavior in case of absentations.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Proposals so far.
|
||||
**/
|
||||
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Actual proposal for a given hash, if it's current.
|
||||
**/
|
||||
proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* The hashes of the active proposals.
|
||||
**/
|
||||
proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Votes on a given proposal, if it is ongoing.
|
||||
**/
|
||||
voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
technicalMembership: {
|
||||
/**
|
||||
* The current membership, stored as an ordered Vec.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current prime member, if one exists.
|
||||
**/
|
||||
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
timestamp: {
|
||||
/**
|
||||
* Did the timestamp get updated in this block?
|
||||
@@ -2069,23 +1924,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
tips: {
|
||||
/**
|
||||
* Simple preimage lookup from the reason's hash to the original data. Again, has an
|
||||
* insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
|
||||
**/
|
||||
reasons: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
|
||||
* This has the insecure enumerable hash function since the key itself is already
|
||||
* guaranteed to be a secure hash.
|
||||
**/
|
||||
tips: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletTipsOpenTip>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
transactionPayment: {
|
||||
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
|
||||
@@ -16,9 +16,9 @@ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
@@ -173,12 +173,20 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37e397fc7c91f5e4/1 */
|
||||
/** 0x37e397fc7c91f5e4/2 */
|
||||
metadata: {
|
||||
/**
|
||||
* Returns the metadata of a runtime
|
||||
**/
|
||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||
/**
|
||||
* Returns the metadata at a given version.
|
||||
**/
|
||||
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||
/**
|
||||
* Returns the supported metadata versions.
|
||||
**/
|
||||
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -187,33 +195,21 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
/** 0x91d5df18b0d2cf58/2 */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for a series of leaves under given indices.
|
||||
* Generate MMR proof for the given block numbers.
|
||||
**/
|
||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Generate MMR proof for a leaf under given index.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
||||
**/
|
||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash or a batch of leaves.
|
||||
**/
|
||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -249,7 +245,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xaf2c0297a23e6d3d/2 */
|
||||
/** 0xaf2c0297a23e6d3d/4 */
|
||||
parachainHost: {
|
||||
/**
|
||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||
@@ -271,6 +267,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Checks if the given validation outputs pass the acceptance criteria.
|
||||
**/
|
||||
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns all onchain disputes.
|
||||
**/
|
||||
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
|
||||
/**
|
||||
* Get all the pending inbound messages in the downward message queue for a para.
|
||||
**/
|
||||
@@ -291,6 +291,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
||||
**/
|
||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
||||
/**
|
||||
* Returns execution parameters for the session.
|
||||
**/
|
||||
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
|
||||
/**
|
||||
* Returns the session index expected at a child of the block.
|
||||
**/
|
||||
@@ -365,7 +369,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/3 */
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -7,9 +7,9 @@ import '@polkadot/api-base/types/consts';
|
||||
|
||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec } from '@polkadot/types-codec/types';
|
||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
|
||||
@@ -59,9 +59,24 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* The minimum amount required to keep an account open.
|
||||
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
||||
*
|
||||
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
||||
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
||||
* In case you have multiple sources of provider references, you may also get unexpected
|
||||
* behaviour if you set this to zero.
|
||||
*
|
||||
* Bottom line: Do yourself a favour and make it at least one!
|
||||
**/
|
||||
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of individual freeze locks that can exist on an account at any time.
|
||||
**/
|
||||
maxFreezes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of holds that can exist on an account at any time.
|
||||
**/
|
||||
maxHolds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of locks that should exist on an account.
|
||||
* Not strictly enforced, but used for weight estimation.
|
||||
@@ -144,6 +159,26 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
convictionVoting: {
|
||||
/**
|
||||
* The maximum number of concurrent votes an account may have.
|
||||
*
|
||||
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
||||
* weight estimation: see `delegate` for instance.
|
||||
**/
|
||||
maxVotes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum period of vote locking.
|
||||
*
|
||||
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
||||
* those successful voters are locked into the consequences that their votes entail.
|
||||
**/
|
||||
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
crowdloan: {
|
||||
/**
|
||||
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
||||
@@ -260,6 +295,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
minerMaxWinners: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||
**/
|
||||
@@ -573,6 +609,35 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
referenda: {
|
||||
/**
|
||||
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
||||
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
||||
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
||||
**/
|
||||
alarmInterval: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum size of the referendum queue for a single track.
|
||||
**/
|
||||
maxQueued: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount to be used as a deposit for a public referendum proposal.
|
||||
**/
|
||||
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Information concerning the different referendum tracks.
|
||||
**/
|
||||
tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks after submission that a referendum must begin being decided by.
|
||||
* Once this passes, then anyone may cancel the referendum.
|
||||
**/
|
||||
undecidingTimeout: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
registrar: {
|
||||
/**
|
||||
* The deposit to be paid per byte stored on chain.
|
||||
@@ -595,6 +660,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of scheduled calls in the queue for a single block.
|
||||
*
|
||||
* NOTE:
|
||||
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
||||
* higher limit under `runtime-benchmarks` feature.
|
||||
**/
|
||||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -69,35 +69,43 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* Beneficiary account must pre-exist
|
||||
* Beneficiary account must pre-exist.
|
||||
**/
|
||||
DeadAccount: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Value too low to create account due to existential deposit
|
||||
* Value too low to create account due to existential deposit.
|
||||
**/
|
||||
ExistentialDeposit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A vesting schedule already exists for this account
|
||||
* A vesting schedule already exists for this account.
|
||||
**/
|
||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Transfer/payment would kill account.
|
||||
**/
|
||||
Expendability: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Balance too low to send value.
|
||||
**/
|
||||
InsufficientBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Transfer/payment would kill account
|
||||
**/
|
||||
KeepAlive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account liquidity restrictions prevent withdrawal
|
||||
* Account liquidity restrictions prevent withdrawal.
|
||||
**/
|
||||
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of named reserves exceed MaxReserves
|
||||
* Number of freezes exceed `MaxFreezes`.
|
||||
**/
|
||||
TooManyFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of holds exceed `MaxHolds`.
|
||||
**/
|
||||
TooManyHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of named reserves exceed `MaxReserves`.
|
||||
**/
|
||||
TooManyReserves: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Vesting balance too high to send value
|
||||
* Vesting balance too high to send value.
|
||||
**/
|
||||
VestingBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -215,6 +223,61 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
convictionVoting: {
|
||||
/**
|
||||
* The account is already delegating.
|
||||
**/
|
||||
AlreadyDelegating: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account currently has votes attached to it and the operation cannot succeed until
|
||||
* these are removed, either through `unvote` or `reap_vote`.
|
||||
**/
|
||||
AlreadyVoting: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The class ID supplied is invalid.
|
||||
**/
|
||||
BadClass: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The class must be supplied since it is not easily determinable from the state.
|
||||
**/
|
||||
ClassNeeded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too high a balance was provided that the account cannot afford.
|
||||
**/
|
||||
InsufficientFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Maximum number of votes reached.
|
||||
**/
|
||||
MaxVotesReached: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Delegation to oneself makes no sense.
|
||||
**/
|
||||
Nonsense: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The actor has no permission to conduct the action.
|
||||
**/
|
||||
NoPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The actor has no permission to conduct the action right now but will do in the future.
|
||||
**/
|
||||
NoPermissionYet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account is not currently delegating.
|
||||
**/
|
||||
NotDelegating: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Poll is not ongoing.
|
||||
**/
|
||||
NotOngoing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given account did not vote on the poll.
|
||||
**/
|
||||
NotVoter: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* Members are already initialized!
|
||||
@@ -872,6 +935,18 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
||||
**/
|
||||
CannotWithdrawAny: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The submitted changes to commission change rate are not allowed.
|
||||
**/
|
||||
CommissionChangeRateNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not enough blocks have surpassed since the last commission update.
|
||||
**/
|
||||
CommissionChangeThrottled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The supplied commission exceeds the max allowed commission.
|
||||
**/
|
||||
CommissionExceedsMaximum: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Some error occurred that should never happen. This should be reported to the
|
||||
* maintainers.
|
||||
@@ -890,6 +965,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Pool id provided is not correct/usable.
|
||||
**/
|
||||
InvalidPoolId: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool's max commission cannot be set higher than the existing value.
|
||||
**/
|
||||
MaxCommissionRestricted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many members in the pool or system.
|
||||
**/
|
||||
@@ -914,6 +993,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
||||
**/
|
||||
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No commission current has been set.
|
||||
**/
|
||||
NoCommissionCurrentSet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is no pending commission to claim.
|
||||
**/
|
||||
NoPendingCommission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
||||
* other members to be permissionlessly unbonded.
|
||||
@@ -1363,6 +1450,64 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
referenda: {
|
||||
/**
|
||||
* The referendum index provided is invalid in this context.
|
||||
**/
|
||||
BadReferendum: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The referendum status is invalid for this operation.
|
||||
**/
|
||||
BadStatus: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The track identifier given was invalid.
|
||||
**/
|
||||
BadTrack: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There are already a full complement of referenda in progress for this track.
|
||||
**/
|
||||
Full: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Referendum's decision deposit is already paid.
|
||||
**/
|
||||
HasDeposit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The deposit cannot be refunded since none was made.
|
||||
**/
|
||||
NoDeposit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The deposit refunder is not the depositor.
|
||||
**/
|
||||
NoPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There was nothing to do in the advancement.
|
||||
**/
|
||||
NothingToDo: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Referendum is not ongoing.
|
||||
**/
|
||||
NotOngoing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No track exists for the proposal origin.
|
||||
**/
|
||||
NoTrack: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage does not exist.
|
||||
**/
|
||||
PreimageNotExist: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The queue of the track is empty.
|
||||
**/
|
||||
QueueEmpty: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Any deposit cannot be refunded until after the decision is over.
|
||||
**/
|
||||
Unfinished: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
registrar: {
|
||||
/**
|
||||
* The ID is already registered.
|
||||
@@ -1818,6 +1963,32 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
whitelist: {
|
||||
/**
|
||||
* The call was already whitelisted; No-Op.
|
||||
**/
|
||||
CallAlreadyWhitelisted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The call was not whitelisted.
|
||||
**/
|
||||
CallIsNotWhitelisted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The weight of the decoded call was higher than the witness.
|
||||
**/
|
||||
InvalidCallWeightWitness: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The preimage of the call hash could not be loaded.
|
||||
**/
|
||||
UnavailablePreImage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The call could not be decoded.
|
||||
**/
|
||||
UndecodableCall: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
xcmPallet: {
|
||||
/**
|
||||
* The given account is not an identifiable sovereign account for any location.
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -57,7 +57,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A balance was set by root.
|
||||
**/
|
||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128], { who: AccountId32, free: u128 }>;
|
||||
/**
|
||||
* Some amount was burned from an account.
|
||||
**/
|
||||
Burned: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was deposited (e.g. for transaction fees).
|
||||
**/
|
||||
@@ -71,6 +75,22 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account was created with some free balance.
|
||||
**/
|
||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||
/**
|
||||
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||
**/
|
||||
Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||
/**
|
||||
* Some balance was locked.
|
||||
**/
|
||||
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was minted into an account.
|
||||
**/
|
||||
Minted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Total issuance was decreased by `amount`, creating a debt to be balanced.
|
||||
**/
|
||||
Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||
/**
|
||||
* Some balance was reserved (moved from free to reserved).
|
||||
**/
|
||||
@@ -80,18 +100,34 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Final argument indicates the destination balance type.
|
||||
**/
|
||||
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
||||
/**
|
||||
* Some amount was restored into an account.
|
||||
**/
|
||||
Restored: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was removed from the account (e.g. for misbehavior).
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was suspended from an account (it can be restored later).
|
||||
**/
|
||||
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Transfer succeeded.
|
||||
**/
|
||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was unlocked.
|
||||
**/
|
||||
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was unreserved (moved from reserved to free).
|
||||
**/
|
||||
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An account was upgraded.
|
||||
**/
|
||||
Upgraded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||
**/
|
||||
@@ -167,6 +203,20 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
convictionVoting: {
|
||||
/**
|
||||
* An account has delegated their vote to another account. \[who, target\]
|
||||
**/
|
||||
Delegated: AugmentedEvent<ApiType, [AccountId32, AccountId32]>;
|
||||
/**
|
||||
* An \[account\] has cancelled a previous delegation operation.
|
||||
**/
|
||||
Undelegated: AugmentedEvent<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* A motion was approved by the required threshold.
|
||||
@@ -566,6 +616,22 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A payout has been made to a member.
|
||||
**/
|
||||
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
||||
/**
|
||||
* A pool's commission `change_rate` has been changed.
|
||||
**/
|
||||
PoolCommissionChangeRateUpdated: AugmentedEvent<ApiType, [poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate], { poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate }>;
|
||||
/**
|
||||
* Pool commission has been claimed.
|
||||
**/
|
||||
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
|
||||
/**
|
||||
* A pool's commission setting has been changed.
|
||||
**/
|
||||
PoolCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>>], { poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>> }>;
|
||||
/**
|
||||
* A pool's maximum commission setting has been changed.
|
||||
**/
|
||||
PoolMaxCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, maxCommission: Perbill], { poolId: u32, maxCommission: Perbill }>;
|
||||
/**
|
||||
* The active balance of pool `pool_id` has been slashed to `balance`.
|
||||
**/
|
||||
@@ -627,15 +693,15 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A candidate was backed. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate was included. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32, u32]>;
|
||||
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
/**
|
||||
* A candidate timed out. `[candidate, head_data]`
|
||||
**/
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV2CandidateReceipt, Bytes, u32]>;
|
||||
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV4CandidateReceipt, Bytes, u32]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -692,11 +758,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A dispute has been initiated. \[candidate hash, dispute location\]
|
||||
**/
|
||||
DisputeInitiated: AugmentedEvent<ApiType, [H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
||||
/**
|
||||
* A dispute has timed out due to insufficient participation.
|
||||
* `\[para id, candidate hash\]`
|
||||
**/
|
||||
DisputeTimedOut: AugmentedEvent<ApiType, [H256]>;
|
||||
/**
|
||||
* A dispute has concluded with supermajority against a candidate.
|
||||
* Block authors should no longer build on top of this head and should
|
||||
@@ -797,6 +858,70 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
referenda: {
|
||||
/**
|
||||
* A referendum has been approved and its proposal has been scheduled.
|
||||
**/
|
||||
Approved: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* A referendum has been cancelled.
|
||||
**/
|
||||
Cancelled: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||
ConfirmAborted: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* A referendum has ended its confirmation phase and is ready for approval.
|
||||
**/
|
||||
Confirmed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||
ConfirmStarted: AugmentedEvent<ApiType, [index: u32], { index: u32 }>;
|
||||
/**
|
||||
* The decision deposit has been placed.
|
||||
**/
|
||||
DecisionDepositPlaced: AugmentedEvent<ApiType, [index: u32, who: AccountId32, amount: u128], { index: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* The decision deposit has been refunded.
|
||||
**/
|
||||
DecisionDepositRefunded: AugmentedEvent<ApiType, [index: u32, who: AccountId32, amount: u128], { index: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* A referendum has moved into the deciding phase.
|
||||
**/
|
||||
DecisionStarted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* A deposit has been slashaed.
|
||||
**/
|
||||
DepositSlashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* A referendum has been killed.
|
||||
**/
|
||||
Killed: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* Metadata for a referendum has been cleared.
|
||||
**/
|
||||
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* Metadata for a referendum has been set.
|
||||
**/
|
||||
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], { index: u32, hash_: H256 }>;
|
||||
/**
|
||||
* A proposal has been rejected by referendum.
|
||||
**/
|
||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* The submission deposit has been refunded.
|
||||
**/
|
||||
SubmissionDepositRefunded: AugmentedEvent<ApiType, [index: u32, who: AccountId32, amount: u128], { index: u32, who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* A referendum has been submitted.
|
||||
**/
|
||||
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded }>;
|
||||
/**
|
||||
* A referendum has been timed out without being decided.
|
||||
**/
|
||||
TimedOut: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
registrar: {
|
||||
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
||||
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
||||
@@ -1218,6 +1343,15 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
whitelist: {
|
||||
CallWhitelisted: AugmentedEvent<ApiType, [callHash: H256], { callHash: H256 }>;
|
||||
WhitelistedCallDispatched: AugmentedEvent<ApiType, [callHash: H256, result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>], { callHash: H256, result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }>;
|
||||
WhitelistedCallRemoved: AugmentedEvent<ApiType, [callHash: H256], { callHash: H256 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
xcmPallet: {
|
||||
/**
|
||||
* Some assets have been claimed from an asset trap
|
||||
|
||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4AssignmentAppPublic, PolkadotPrimitivesV4CandidateCommitments, PolkadotPrimitivesV4CoreOccupied, PolkadotPrimitivesV4DisputeState, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4ScrapedOnChainVotes, PolkadotPrimitivesV4SessionInfo, PolkadotPrimitivesV4UpgradeGoAhead, PolkadotPrimitivesV4UpgradeRestriction, PolkadotPrimitivesV4ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -199,6 +199,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||
**/
|
||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Freeze locks on account balances.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -318,6 +326,23 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
convictionVoting: {
|
||||
/**
|
||||
* The voting classes which have a non-zero lock requirement and the lock amounts which they
|
||||
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
||||
* this list.
|
||||
**/
|
||||
classLocksFor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u16, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* All voting for a particular voter in a particular voting class. We store the balance for the
|
||||
* number of votes that we have recorded.
|
||||
**/
|
||||
votingFor: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable<PalletConvictionVotingVoteVoting>, [AccountId32, u16]> & QueryableStorageEntry<ApiType, [AccountId32, u16]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* The current members of the collective. This is stored sorted (just by value).
|
||||
@@ -841,6 +866,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
||||
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
||||
* `GlobalMaxCommission` is lower than some current pool commissions.
|
||||
**/
|
||||
globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Ever increasing number of all pools created so far.
|
||||
**/
|
||||
@@ -892,13 +923,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout
|
||||
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
**/
|
||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
||||
* hence the name sub-pools. Keyed by the bonded pools account.
|
||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
||||
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
||||
**/
|
||||
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
@@ -941,7 +972,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* The commitments of candidates pending availability, by `ParaId`.
|
||||
**/
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -960,7 +991,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
||||
**/
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV2ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV4ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1078,7 +1109,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* This is used by the relay-chain to communicate that there are restrictions for performing
|
||||
* an upgrade for this parachain.
|
||||
@@ -1090,7 +1121,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
||||
* the format will require migration of parachains.
|
||||
**/
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1107,7 +1138,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* * The number of parachains and parathread multiplexers
|
||||
* * The number of validators divided by `configuration.max_validators_per_core`.
|
||||
**/
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV2CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<Option<PolkadotPrimitivesV4CoreOccupied>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* An index used to ensure that only one claim on a parathread exists in the queue or is
|
||||
* currently being handled by an occupied core.
|
||||
@@ -1163,7 +1194,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* All ongoing or concluded disputes for the last several sessions.
|
||||
**/
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV2DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV4DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
||||
* the chain will not accept any new parachain blocks for backing or inclusion,
|
||||
@@ -1196,7 +1227,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
||||
* When in doubt, use `Sessions` API instead.
|
||||
**/
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The earliest session for which previous session info is stored.
|
||||
**/
|
||||
@@ -1204,13 +1235,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Executor parameter set for a given session index
|
||||
**/
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesVstagingExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Session information in a rolling window.
|
||||
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
||||
* Does not have any entries before the session index in the first session change notification.
|
||||
**/
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV2SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV4SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1226,7 +1257,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The parachain attestation keys of the validators actively participating in parachain consensus.
|
||||
* This should be the same length as `ActiveValidatorIndices`.
|
||||
**/
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV2ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV4ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current session index.
|
||||
**/
|
||||
@@ -1300,6 +1331,40 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
referenda: {
|
||||
/**
|
||||
* The number of referenda being decided currently.
|
||||
**/
|
||||
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* The metadata is a general information concerning the referendum.
|
||||
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
||||
* dump or IPFS hash of a JSON file.
|
||||
*
|
||||
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
||||
* large preimages.
|
||||
**/
|
||||
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The next free referendum index, aka the number of referenda started so far.
|
||||
**/
|
||||
referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Information concerning any given referendum.
|
||||
**/
|
||||
referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
||||
* conviction-weighted approvals.
|
||||
*
|
||||
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
||||
**/
|
||||
trackQueue: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
registrar: {
|
||||
/**
|
||||
* The next free `ParaId`.
|
||||
@@ -1930,6 +1995,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
whitelist: {
|
||||
whitelistedCall: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
xcmPallet: {
|
||||
/**
|
||||
* The existing asset traps.
|
||||
|
||||
@@ -16,9 +16,9 @@ import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
@@ -173,12 +173,20 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37e397fc7c91f5e4/1 */
|
||||
/** 0x37e397fc7c91f5e4/2 */
|
||||
metadata: {
|
||||
/**
|
||||
* Returns the metadata of a runtime
|
||||
**/
|
||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||
/**
|
||||
* Returns the metadata at a given version.
|
||||
**/
|
||||
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||
/**
|
||||
* Returns the supported metadata versions.
|
||||
**/
|
||||
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -187,33 +195,21 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
/** 0x91d5df18b0d2cf58/2 */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for a series of leaves under given indices.
|
||||
* Generate MMR proof for the given block numbers.
|
||||
**/
|
||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Generate MMR proof for a leaf under given index.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
||||
**/
|
||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash or a batch of leaves.
|
||||
**/
|
||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -249,7 +245,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xaf2c0297a23e6d3d/2 */
|
||||
/** 0xaf2c0297a23e6d3d/4 */
|
||||
parachainHost: {
|
||||
/**
|
||||
* Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
|
||||
@@ -271,6 +267,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Checks if the given validation outputs pass the acceptance criteria.
|
||||
**/
|
||||
checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | { upwardMessages?: any; horizontalMessages?: any; newValidationCode?: any; headData?: any; processedDownwardMessages?: any; hrmpWatermark?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns all onchain disputes.
|
||||
**/
|
||||
disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
|
||||
/**
|
||||
* Get all the pending inbound messages in the downward message queue for a para.
|
||||
**/
|
||||
@@ -291,6 +291,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns code hashes of PVFs that require pre-checking by validators in the active set.
|
||||
**/
|
||||
pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
|
||||
/**
|
||||
* Returns execution parameters for the session.
|
||||
**/
|
||||
sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
|
||||
/**
|
||||
* Returns the session index expected at a child of the block.
|
||||
**/
|
||||
@@ -365,7 +369,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/3 */
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -91,11 +91,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* Exactly as `transfer`, except the origin must be root and the source account may be
|
||||
* specified.
|
||||
* ## Complexity
|
||||
* - Same as transfer, but additional read and write because the source account is not
|
||||
* assumed to be in the overlay.
|
||||
* Set the regular balance of a given account.
|
||||
*
|
||||
* The dispatch origin for this call is `root`.
|
||||
**/
|
||||
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
||||
* may be specified.
|
||||
**/
|
||||
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
@@ -105,39 +108,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
||||
/**
|
||||
* Set the balances of a given account.
|
||||
*
|
||||
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
||||
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
||||
* If the new free or reserved balance is below the existential deposit,
|
||||
* it will reset the account nonce (`frame_system::AccountNonce`).
|
||||
* Set the regular balance of a given account; it also takes a reserved balance but this
|
||||
* must be the same as the account's current reserved balance.
|
||||
*
|
||||
* The dispatch origin for this call is `root`.
|
||||
*
|
||||
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
||||
**/
|
||||
setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
||||
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
||||
/**
|
||||
* Transfer some liquid free balance to another account.
|
||||
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
||||
*
|
||||
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
||||
* If the sender's account is below the existential deposit as a result
|
||||
* of the transfer, the account will be reaped.
|
||||
*
|
||||
* The dispatch origin for this call must be `Signed` by the transactor.
|
||||
*
|
||||
* ## Complexity
|
||||
* - Dependent on arguments but not critical, given proper implementations for input config
|
||||
* types. See related functions below.
|
||||
* - It contains a limited number of reads and writes internally and no complex
|
||||
* computation.
|
||||
*
|
||||
* Related functions:
|
||||
*
|
||||
* - `ensure_can_withdraw` is always called internally but has a bounded complexity.
|
||||
* - Transferring balances to accounts that did not exist before will cause
|
||||
* `T::OnNewAccount::on_new_account` to be called.
|
||||
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
||||
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
||||
* that the transfer will not kill the origin account.
|
||||
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
||||
**/
|
||||
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
@@ -155,19 +137,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
||||
* of the funds the account has, causing the sender account to be killed (false), or
|
||||
* transfer everything except at least the existential deposit, which will guarantee to
|
||||
* keep the sender account alive (true). ## Complexity
|
||||
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
||||
* keep the sender account alive (true).
|
||||
**/
|
||||
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
||||
/**
|
||||
* Same as the [`transfer`] call, but with a check that the transfer will not kill the
|
||||
* origin account.
|
||||
* Transfer some liquid free balance to another account.
|
||||
*
|
||||
* 99% of the time you want [`transfer`] instead.
|
||||
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
||||
* If the sender's account is below the existential deposit as a result
|
||||
* of the transfer, the account will be reaped.
|
||||
*
|
||||
* [`transfer`]: struct.Pallet.html#method.transfer
|
||||
* The dispatch origin for this call must be `Signed` by the transactor.
|
||||
**/
|
||||
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
||||
* kill the origin account.
|
||||
*
|
||||
* 99% of the time you want [`transfer_allow_death`] instead.
|
||||
*
|
||||
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
||||
**/
|
||||
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Upgrade a specified account.
|
||||
*
|
||||
* - `origin`: Must be `Signed`.
|
||||
* - `who`: The account to be upgraded.
|
||||
*
|
||||
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
||||
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||
* possibililty of churn).
|
||||
**/
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -562,6 +564,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
configuration: {
|
||||
/**
|
||||
* Set the asynchronous backing parameters.
|
||||
**/
|
||||
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesVstagingAsyncBackingParams | { maxCandidateDepth?: any; allowedAncestryLen?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesVstagingAsyncBackingParams]>;
|
||||
/**
|
||||
* Setting this to true will disable consistency checks for the configuration setters.
|
||||
* Use with caution.
|
||||
@@ -575,10 +581,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Set the acceptance period for an included candidate.
|
||||
**/
|
||||
setCodeRetentionPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Set the dispute conclusion by time out period.
|
||||
**/
|
||||
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Set the dispute period, in number of sessions to keep for disputes.
|
||||
**/
|
||||
@@ -749,6 +751,130 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
convictionVoting: {
|
||||
/**
|
||||
* Delegate the voting power (with some given conviction) of the sending account for a
|
||||
* particular class of polls.
|
||||
*
|
||||
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
||||
* time appropriate for the conviction's lock period.
|
||||
*
|
||||
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
||||
* - be delegating already; or
|
||||
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
||||
* through `reap_vote` or `unvote`).
|
||||
*
|
||||
* - `to`: The account whose voting the `target` account's voting power will follow.
|
||||
* - `class`: The class of polls to delegate. To delegate multiple classes, multiple calls
|
||||
* to this function are required.
|
||||
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
||||
* account is undelegated, the funds will be locked for the corresponding period.
|
||||
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
||||
* be more than the account's current balance.
|
||||
*
|
||||
* Emits `Delegated`.
|
||||
*
|
||||
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
||||
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
||||
**/
|
||||
delegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, to: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, conviction: PalletConvictionVotingConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress, PalletConvictionVotingConviction, u128]>;
|
||||
/**
|
||||
* Remove a vote for a poll.
|
||||
*
|
||||
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
||||
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
||||
* either because the poll was cancelled, because the voter lost the poll or
|
||||
* because the conviction period is over.
|
||||
*
|
||||
* The dispatch origin of this call must be _Signed_.
|
||||
*
|
||||
* - `target`: The account of the vote to be removed; this account must have voted for poll
|
||||
* `index`.
|
||||
* - `index`: The index of poll of the vote to be removed.
|
||||
* - `class`: The class of the poll.
|
||||
*
|
||||
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
||||
* Weight is calculated for the maximum number of vote.
|
||||
**/
|
||||
removeOtherVote: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, clazz: u16 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u16, u32]>;
|
||||
/**
|
||||
* Remove a vote for a poll.
|
||||
*
|
||||
* If:
|
||||
* - the poll was cancelled, or
|
||||
* - the poll is ongoing, or
|
||||
* - the poll has ended such that
|
||||
* - the vote of the account was in opposition to the result; or
|
||||
* - there was no conviction to the account's vote; or
|
||||
* - the account made a split vote
|
||||
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
||||
* funds being available.
|
||||
*
|
||||
* If, however, the poll has ended and:
|
||||
* - it finished corresponding to the vote of the account, and
|
||||
* - the account made a standard vote with conviction, and
|
||||
* - the lock period of the conviction is not over
|
||||
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
||||
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
||||
* of both the amount locked and the time is it locked for).
|
||||
*
|
||||
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
||||
* registered for poll `index`.
|
||||
*
|
||||
* - `index`: The index of poll of the vote to be removed.
|
||||
* - `class`: Optional parameter, if given it indicates the class of the poll. For polls
|
||||
* which have finished or are cancelled, this must be `Some`.
|
||||
*
|
||||
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
||||
* Weight is calculated for the maximum number of vote.
|
||||
**/
|
||||
removeVote: AugmentedSubmittable<(clazz: Option<u16> | null | Uint8Array | u16 | AnyNumber, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32]>;
|
||||
/**
|
||||
* Undelegate the voting power of the sending account for a particular class of polls.
|
||||
*
|
||||
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
||||
* of the conviction with which the delegation was issued has passed.
|
||||
*
|
||||
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
||||
* currently delegating.
|
||||
*
|
||||
* - `class`: The class of polls to remove the delegation from.
|
||||
*
|
||||
* Emits `Undelegated`.
|
||||
*
|
||||
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
||||
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
||||
**/
|
||||
undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
||||
/**
|
||||
* Remove the lock caused by prior voting/delegating which has expired within a particular
|
||||
* class.
|
||||
*
|
||||
* The dispatch origin of this call must be _Signed_.
|
||||
*
|
||||
* - `class`: The class of polls to unlock.
|
||||
* - `target`: The account to remove the lock on.
|
||||
*
|
||||
* Weight: `O(R)` with R number of vote of target.
|
||||
**/
|
||||
unlock: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, MultiAddress]>;
|
||||
/**
|
||||
* Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;
|
||||
* otherwise it is a vote to keep the status quo.
|
||||
*
|
||||
* The dispatch origin of this call must be _Signed_.
|
||||
*
|
||||
* - `poll_index`: The index of the poll to vote for.
|
||||
* - `vote`: The vote configuration.
|
||||
*
|
||||
* Weight: `O(R)` where R is the number of polls the voter has voted on.
|
||||
**/
|
||||
vote: AugmentedSubmittable<(pollIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletConvictionVotingVoteAccountVote | { Standard: any } | { Split: any } | { SplitAbstain: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletConvictionVotingVoteAccountVote]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||
@@ -777,33 +903,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||
*
|
||||
* May be called by any signed account in order to finish voting and close the proposal.
|
||||
*
|
||||
* If called before the end of the voting period it will only close the vote if it is
|
||||
* has enough votes to be approved or disapproved.
|
||||
*
|
||||
* If called after the end of the voting period abstentions are counted as rejections
|
||||
* unless there is a prime member set and the prime member cast an approval.
|
||||
*
|
||||
* If the close operation completes successfully with disapproval, the transaction fee will
|
||||
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
||||
*
|
||||
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
||||
* proposal.
|
||||
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
||||
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(B + M + P1 + P2)` where:
|
||||
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
||||
* - `M` is members-count (code- and governance-bounded)
|
||||
* - `P1` is the complexity of `proposal` preimage.
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
||||
/**
|
||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||
* state.
|
||||
@@ -1966,9 +2065,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* account.
|
||||
**/
|
||||
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Claim pending commission.
|
||||
*
|
||||
* The dispatch origin of this call must be signed by the `root` role of the pool. Pending
|
||||
* commission is paid out and added to total claimed commission`. Total pending commission
|
||||
* is reset to zero. the current.
|
||||
**/
|
||||
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* A bonded member can use this to claim their payout based on the rewards that the pool
|
||||
* has accumulated since their last claimed payout (OR since joining if this is there first
|
||||
* has accumulated since their last claimed payout (OR since joining if this is their first
|
||||
* time claiming rewards). The payout will be transferred to the member's account.
|
||||
*
|
||||
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||
@@ -2060,6 +2167,29 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* * `actor` - Account to claim reward. // improve this
|
||||
**/
|
||||
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
||||
/**
|
||||
* Set the commission of a pool.
|
||||
* Both a commission percentage and a commission payee must be provided in the `current`
|
||||
* tuple. Where a `current` of `None` is provided, any current commission will be removed.
|
||||
*
|
||||
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||
**/
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
/**
|
||||
* Set the commission change rate for a pool.
|
||||
*
|
||||
* Initial change rate is not bounded, whereas subsequent updates can only be more
|
||||
* restrictive than the current.
|
||||
**/
|
||||
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | { maxIncrease?: any; minDelay?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
|
||||
/**
|
||||
* Set the maximum commission of a pool.
|
||||
*
|
||||
* - Initial max can be set to any `Perbill`, and only smaller values thereafter.
|
||||
* - Current commission will be lowered in the event it is higher than a new max
|
||||
* commission.
|
||||
**/
|
||||
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
|
||||
/**
|
||||
* Update configurations for the nomination pools. The origin for this call must be
|
||||
* Root.
|
||||
@@ -2071,13 +2201,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* * `max_pools` - Set [`MaxPools`].
|
||||
* * `max_members` - Set [`MaxPoolMembers`].
|
||||
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
||||
* * `global_max_commission` - Set [`GlobalMaxCommission`].
|
||||
**/
|
||||
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
|
||||
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, globalMaxCommission: PalletNominationPoolsConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpPerbill]>;
|
||||
/**
|
||||
* Set a new metadata for the pool.
|
||||
*
|
||||
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
||||
* of the pool.
|
||||
* The dispatch origin of this call must be signed by the bouncer, or the root role of the
|
||||
* pool.
|
||||
**/
|
||||
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||
/**
|
||||
@@ -2174,7 +2305,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Enter the paras inherent. This will process bitfields and backed candidates.
|
||||
**/
|
||||
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV2InherentData | { bitfields?: any; backedCandidates?: any; disputes?: any; parentHeader?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2InherentData]>;
|
||||
enter: AugmentedSubmittable<(data: PolkadotPrimitivesV4InherentData | { bitfields?: any; backedCandidates?: any; disputes?: any; parentHeader?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4InherentData]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -2223,7 +2354,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
||||
* enacts the results if that was the last vote before achieving the supermajority.
|
||||
**/
|
||||
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV2PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV2ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature]>;
|
||||
includePvfCheckStatement: AugmentedSubmittable<(stmt: PolkadotPrimitivesV4PvfCheckStatement | { accept?: any; subject?: any; sessionIndex?: any; validatorIndex?: any } | string | Uint8Array, signature: PolkadotPrimitivesV4ValidatorAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature]>;
|
||||
/**
|
||||
* Remove the validation code from the storage iff the reference count is 0.
|
||||
*
|
||||
@@ -2405,7 +2536,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
||||
* zero.
|
||||
**/
|
||||
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
||||
addProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* Publish the hash of a proxy-call that will be made in the future.
|
||||
*
|
||||
@@ -2444,7 +2575,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Fails if there are insufficient funds to pay for deposit.
|
||||
**/
|
||||
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
||||
createPure: AugmentedSubmittable<(proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeProxyType, u32, u16]>;
|
||||
/**
|
||||
* Removes a previously spawned pure proxy.
|
||||
*
|
||||
@@ -2463,7 +2594,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Fails with `NoPermission` in case the caller is not a previously created pure
|
||||
* account whose `pure` call has corresponding parameters.
|
||||
**/
|
||||
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||
/**
|
||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||
* `add_proxy`.
|
||||
@@ -2475,7 +2606,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
||||
* - `call`: The call to be made by the `real` account.
|
||||
**/
|
||||
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||
proxy: AugmentedSubmittable<(real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||
/**
|
||||
* Dispatch the given `call` from an account that the sender is authorized for through
|
||||
* `add_proxy`.
|
||||
@@ -2489,7 +2620,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
||||
* - `call`: The call to be made by the `real` account.
|
||||
**/
|
||||
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||
proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, real: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
|
||||
/**
|
||||
* Remove the given announcement of a delegate.
|
||||
*
|
||||
@@ -2534,7 +2665,103 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `proxy`: The account that the `caller` would like to remove as a proxy.
|
||||
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
||||
**/
|
||||
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
||||
removeProxy: AugmentedSubmittable<(delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
referenda: {
|
||||
/**
|
||||
* Cancel an ongoing referendum.
|
||||
*
|
||||
* - `origin`: must be the `CancelOrigin`.
|
||||
* - `index`: The index of the referendum to be cancelled.
|
||||
*
|
||||
* Emits `Cancelled`.
|
||||
**/
|
||||
cancel: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Cancel an ongoing referendum and slash the deposits.
|
||||
*
|
||||
* - `origin`: must be the `KillOrigin`.
|
||||
* - `index`: The index of the referendum to be cancelled.
|
||||
*
|
||||
* Emits `Killed` and `DepositSlashed`.
|
||||
**/
|
||||
kill: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Advance a referendum onto its next logical state. Only used internally.
|
||||
*
|
||||
* - `origin`: must be `Root`.
|
||||
* - `index`: the referendum to be advanced.
|
||||
**/
|
||||
nudgeReferendum: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Advance a track onto its next logical state. Only used internally.
|
||||
*
|
||||
* - `origin`: must be `Root`.
|
||||
* - `track`: the track to be advanced.
|
||||
*
|
||||
* Action item for when there is now one fewer referendum in the deciding phase and the
|
||||
* `DecidingCount` is not yet updated. This means that we should either:
|
||||
* - begin deciding another referendum (and leave `DecidingCount` alone); or
|
||||
* - decrement `DecidingCount`.
|
||||
**/
|
||||
oneFewerDeciding: AugmentedSubmittable<(track: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
||||
/**
|
||||
* Post the Decision Deposit for a referendum.
|
||||
*
|
||||
* - `origin`: must be `Signed` and the account must have funds available for the
|
||||
* referendum's track's Decision Deposit.
|
||||
* - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
|
||||
* posted.
|
||||
*
|
||||
* Emits `DecisionDepositPlaced`.
|
||||
**/
|
||||
placeDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Refund the Decision Deposit for a closed referendum back to the depositor.
|
||||
*
|
||||
* - `origin`: must be `Signed` or `Root`.
|
||||
* - `index`: The index of a closed referendum whose Decision Deposit has not yet been
|
||||
* refunded.
|
||||
*
|
||||
* Emits `DecisionDepositRefunded`.
|
||||
**/
|
||||
refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Refund the Submission Deposit for a closed referendum back to the depositor.
|
||||
*
|
||||
* - `origin`: must be `Signed` or `Root`.
|
||||
* - `index`: The index of a closed referendum whose Submission Deposit has not yet been
|
||||
* refunded.
|
||||
*
|
||||
* Emits `SubmissionDepositRefunded`.
|
||||
**/
|
||||
refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Set or clear metadata of a referendum.
|
||||
*
|
||||
* Parameters:
|
||||
* - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
|
||||
* metadata of a finished referendum.
|
||||
* - `index`: The index of a referendum to set or clear metadata for.
|
||||
* - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
|
||||
**/
|
||||
setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
|
||||
/**
|
||||
* Propose a referendum on a privileged action.
|
||||
*
|
||||
* - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
|
||||
* available.
|
||||
* - `proposal_origin`: The origin from which the proposal should be executed.
|
||||
* - `proposal`: The proposal.
|
||||
* - `enactment_moment`: The moment that the proposal should be enacted.
|
||||
*
|
||||
* Emits `Submitted`.
|
||||
**/
|
||||
submit: AugmentedSubmittable<(proposalOrigin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -3157,33 +3384,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||
*
|
||||
* May be called by any signed account in order to finish voting and close the proposal.
|
||||
*
|
||||
* If called before the end of the voting period it will only close the vote if it is
|
||||
* has enough votes to be approved or disapproved.
|
||||
*
|
||||
* If called after the end of the voting period abstentions are counted as rejections
|
||||
* unless there is a prime member set and the prime member cast an approval.
|
||||
*
|
||||
* If the close operation completes successfully with disapproval, the transaction fee will
|
||||
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
||||
*
|
||||
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
||||
* proposal.
|
||||
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
||||
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(B + M + P1 + P2)` where:
|
||||
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
||||
* - `M` is members-count (code- and governance-bounded)
|
||||
* - `P1` is the complexity of `proposal` preimage.
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
||||
/**
|
||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||
* state.
|
||||
@@ -3610,7 +3810,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* ## Complexity
|
||||
* - O(1).
|
||||
**/
|
||||
dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
||||
dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
||||
/**
|
||||
* Send a batch of dispatch calls.
|
||||
* Unlike `batch`, it allows errors and won't interrupt.
|
||||
@@ -3760,6 +3960,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
whitelist: {
|
||||
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callEncodedLen: u32 | AnyNumber | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, SpWeightsWeightV2Weight]>;
|
||||
dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
||||
removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||
whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
xcmPallet: {
|
||||
/**
|
||||
* Execute an XCM message from a local, signed, origin.
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, KitchensinkRuntimeHoldReason, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
|
||||
@@ -105,9 +105,24 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* The minimum amount required to keep an account open.
|
||||
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
||||
*
|
||||
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
||||
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
||||
* In case you have multiple sources of provider references, you may also get unexpected
|
||||
* behaviour if you set this to zero.
|
||||
*
|
||||
* Bottom line: Do yourself a favour and make it at least one!
|
||||
**/
|
||||
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of individual freeze locks that can exist on an account at any time.
|
||||
**/
|
||||
maxFreezes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of holds that can exist on an account at any time.
|
||||
**/
|
||||
maxHolds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of locks that should exist on an account.
|
||||
* Not strictly enforced, but used for weight estimation.
|
||||
@@ -184,33 +199,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
contracts: {
|
||||
/**
|
||||
* The maximum number of contracts that can be pending for deletion.
|
||||
*
|
||||
* When a contract is deleted by calling `seal_terminate` it becomes inaccessible
|
||||
* immediately, but the deletion of the storage items it has accumulated is performed
|
||||
* later. The contract is put into the deletion queue. This defines how many
|
||||
* contracts can be queued up at the same time. If that limit is reached `seal_terminate`
|
||||
* will fail. The action must be retried in a later block in that case.
|
||||
*
|
||||
* The reasons for limiting the queue depth are:
|
||||
*
|
||||
* 1. The queue is in storage in order to be persistent between blocks. We want to limit
|
||||
* the amount of storage that can be consumed.
|
||||
* 2. The queue is stored in a vector and needs to be decoded as a whole when reading
|
||||
* it at the end of each block. Longer queues take more weight to decode and hence
|
||||
* limit the amount of items that can be deleted per block.
|
||||
**/
|
||||
deletionQueueDepth: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of weight that can be consumed per block for lazy trie removal.
|
||||
*
|
||||
* The amount of weight that is dedicated per block to work on the deletion queue. Larger
|
||||
* values allow more trie keys to be deleted in each block but reduce the amount of
|
||||
* weight that is left for transactions. See [`Self::DeletionQueueDepth`] for more
|
||||
* information about the deletion queue.
|
||||
**/
|
||||
deletionWeightLimit: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of balance a caller has to pay for each byte of storage.
|
||||
*
|
||||
@@ -286,6 +274,16 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
coreFellowship: {
|
||||
/**
|
||||
* The maximum size in bytes submitted evidence is allowed to be.
|
||||
**/
|
||||
evidenceSize: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
||||
@@ -383,6 +381,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
minerMaxWinners: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||
**/
|
||||
@@ -744,6 +743,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Must be no greater than `MaxQueueLen`.
|
||||
**/
|
||||
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The identifier of the hold reason.
|
||||
**/
|
||||
holdReason: KitchensinkRuntimeHoldReason & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
||||
*
|
||||
@@ -786,10 +789,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* this value multiplied by `Period`.
|
||||
**/
|
||||
queueCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The name for the reserve ID.
|
||||
**/
|
||||
reserveId: U8aFixed & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum proportion which may be thawed and the period over which it is reset.
|
||||
**/
|
||||
@@ -999,6 +998,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of scheduled calls in the queue for a single block.
|
||||
*
|
||||
* NOTE:
|
||||
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
||||
* higher limit under `runtime-benchmarks` feature.
|
||||
**/
|
||||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -181,6 +181,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Account balance must be greater than or equal to the transfer amount.
|
||||
**/
|
||||
BalanceLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Callback action resulted in error
|
||||
**/
|
||||
CallbackFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The origin account is frozen.
|
||||
**/
|
||||
@@ -214,12 +218,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The signing account has no permission to do the operation.
|
||||
**/
|
||||
NoPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Unable to increment the consumer reference counters on the account. Either no provider
|
||||
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or the
|
||||
* maximum number of consumers has been reached.
|
||||
**/
|
||||
NoProvider: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset should be frozen before the given operation.
|
||||
**/
|
||||
@@ -228,6 +226,12 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No approval exists that would allow the transfer.
|
||||
**/
|
||||
Unapproved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Unable to increment the consumer reference counters on the account. Either no provider
|
||||
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
||||
* fewer then the maximum number of consumers has been reached.
|
||||
**/
|
||||
UnavailableConsumer: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given asset ID is unknown.
|
||||
**/
|
||||
@@ -269,35 +273,43 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* Beneficiary account must pre-exist
|
||||
* Beneficiary account must pre-exist.
|
||||
**/
|
||||
DeadAccount: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Value too low to create account due to existential deposit
|
||||
* Value too low to create account due to existential deposit.
|
||||
**/
|
||||
ExistentialDeposit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A vesting schedule already exists for this account
|
||||
* A vesting schedule already exists for this account.
|
||||
**/
|
||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Transfer/payment would kill account.
|
||||
**/
|
||||
Expendability: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Balance too low to send value.
|
||||
**/
|
||||
InsufficientBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Transfer/payment would kill account
|
||||
**/
|
||||
KeepAlive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account liquidity restrictions prevent withdrawal
|
||||
* Account liquidity restrictions prevent withdrawal.
|
||||
**/
|
||||
LiquidityRestrictions: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of named reserves exceed MaxReserves
|
||||
* Number of freezes exceed `MaxFreezes`.
|
||||
**/
|
||||
TooManyFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of holds exceed `MaxHolds`.
|
||||
**/
|
||||
TooManyHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of named reserves exceed `MaxReserves`.
|
||||
**/
|
||||
TooManyReserves: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Vesting balance too high to send value
|
||||
* Vesting balance too high to send value.
|
||||
**/
|
||||
VestingBalance: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -387,7 +399,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The contract's code was found to be invalid during validation or instrumentation.
|
||||
*
|
||||
* The most likely cause of this is that an API was used which is not supported by the
|
||||
* node. This hapens if an older node is used with a new version of ink!. Try updating
|
||||
* node. This happens if an older node is used with a new version of ink!. Try updating
|
||||
* your node to the newest available version.
|
||||
*
|
||||
* A more detailed error can be found on the node console if debug messages are enabled
|
||||
@@ -418,14 +430,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Input passed to a contract API function failed to decode as expected type.
|
||||
**/
|
||||
DecodingFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Removal of a contract failed because the deletion queue is full.
|
||||
*
|
||||
* This can happen when calling `seal_terminate`.
|
||||
* The queue is filled by deleting contracts and emptied by a fixed amount each block.
|
||||
* Trying again during another block is the only way to resolve this issue.
|
||||
**/
|
||||
DeletionQueueFull: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract with the same AccountId already exists.
|
||||
**/
|
||||
@@ -572,6 +576,50 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
coreFellowship: {
|
||||
/**
|
||||
* The candidate has already been inducted. This should never happen since it would
|
||||
* require a candidate (rank 0) to already be tracked in the pallet.
|
||||
**/
|
||||
AlreadyInducted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given rank is invalid - this generally means it's not between 1 and `RANK_COUNT`.
|
||||
**/
|
||||
InvalidRank: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The origin does not have enough permission to do this operation.
|
||||
**/
|
||||
NoPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No work needs to be done at present for this member.
|
||||
**/
|
||||
NothingDoing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidate has not been inducted, so cannot be offboarded from this pallet.
|
||||
**/
|
||||
NotTracked: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Member's rank is not zero.
|
||||
**/
|
||||
Ranked: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Operation cannot be done yet since not enough time has passed.
|
||||
**/
|
||||
TooSoon: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Member's rank is not as expected - generally means that the rank provided to the call
|
||||
* does not agree with the state of the system.
|
||||
**/
|
||||
UnexpectedRank: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Member's rank is too low.
|
||||
**/
|
||||
Unranked: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* Members are already initialized!
|
||||
@@ -1218,6 +1266,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Collection ID is already taken.
|
||||
**/
|
||||
CollectionIdInUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Can't delete non-empty collections.
|
||||
**/
|
||||
CollectionNotEmpty: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The deadline has already expired.
|
||||
**/
|
||||
@@ -1452,6 +1504,18 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
||||
**/
|
||||
CannotWithdrawAny: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The submitted changes to commission change rate are not allowed.
|
||||
**/
|
||||
CommissionChangeRateNotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not enough blocks have surpassed since the last commission update.
|
||||
**/
|
||||
CommissionChangeThrottled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The supplied commission exceeds the max allowed commission.
|
||||
**/
|
||||
CommissionExceedsMaximum: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Some error occurred that should never happen. This should be reported to the
|
||||
* maintainers.
|
||||
@@ -1470,6 +1534,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Pool id provided is not correct/usable.
|
||||
**/
|
||||
InvalidPoolId: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool's max commission cannot be set higher than the existing value.
|
||||
**/
|
||||
MaxCommissionRestricted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many members in the pool or system.
|
||||
**/
|
||||
@@ -1494,6 +1562,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
||||
**/
|
||||
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No commission current has been set.
|
||||
**/
|
||||
NoCommissionCurrentSet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is no pending commission to claim.
|
||||
**/
|
||||
NoPendingCommission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
||||
* other members to be permissionlessly unbonded.
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -219,7 +219,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* A balance was set by root.
|
||||
**/
|
||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128, reserved: u128], { who: AccountId32, free: u128, reserved: u128 }>;
|
||||
BalanceSet: AugmentedEvent<ApiType, [who: AccountId32, free: u128], { who: AccountId32, free: u128 }>;
|
||||
/**
|
||||
* Some amount was burned from an account.
|
||||
**/
|
||||
Burned: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was deposited (e.g. for transaction fees).
|
||||
**/
|
||||
@@ -233,6 +237,22 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An account was created with some free balance.
|
||||
**/
|
||||
Endowed: AugmentedEvent<ApiType, [account: AccountId32, freeBalance: u128], { account: AccountId32, freeBalance: u128 }>;
|
||||
/**
|
||||
* Total issuance was increased by `amount`, creating a credit to be balanced.
|
||||
**/
|
||||
Issued: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||
/**
|
||||
* Some balance was locked.
|
||||
**/
|
||||
Locked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was minted into an account.
|
||||
**/
|
||||
Minted: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Total issuance was decreased by `amount`, creating a debt to be balanced.
|
||||
**/
|
||||
Rescinded: AugmentedEvent<ApiType, [amount: u128], { amount: u128 }>;
|
||||
/**
|
||||
* Some balance was reserved (moved from free to reserved).
|
||||
**/
|
||||
@@ -242,18 +262,34 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Final argument indicates the destination balance type.
|
||||
**/
|
||||
ReserveRepatriated: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus], { from: AccountId32, to: AccountId32, amount: u128, destinationStatus: FrameSupportTokensMiscBalanceStatus }>;
|
||||
/**
|
||||
* Some amount was restored into an account.
|
||||
**/
|
||||
Restored: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was removed from the account (e.g. for misbehavior).
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some amount was suspended from an account (it can be restored later).
|
||||
**/
|
||||
Suspended: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Transfer succeeded.
|
||||
**/
|
||||
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was unlocked.
|
||||
**/
|
||||
Unlocked: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some balance was unreserved (moved from reserved to free).
|
||||
**/
|
||||
Unreserved: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], { who: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* An account was upgraded.
|
||||
**/
|
||||
Upgraded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* Some amount was withdrawn from the account (e.g. for transaction fees).
|
||||
**/
|
||||
@@ -388,6 +424,54 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
coreFellowship: {
|
||||
/**
|
||||
* Member activity flag has been set.
|
||||
**/
|
||||
ActiveChanged: AugmentedEvent<ApiType, [who: AccountId32, isActive: bool], { who: AccountId32, isActive: bool }>;
|
||||
/**
|
||||
* Member has been demoted to the given (non-zero) rank.
|
||||
**/
|
||||
Demoted: AugmentedEvent<ApiType, [who: AccountId32, toRank: u16], { who: AccountId32, toRank: u16 }>;
|
||||
/**
|
||||
* Some submitted evidence was judged and removed. There may or may not have been a change
|
||||
* to the rank, but in any case, `last_proof` is reset.
|
||||
**/
|
||||
EvidenceJudged: AugmentedEvent<ApiType, [who: AccountId32, wish: PalletCoreFellowshipWish, evidence: Bytes, oldRank: u16, newRank: Option<u16>], { who: AccountId32, wish: PalletCoreFellowshipWish, evidence: Bytes, oldRank: u16, newRank: Option<u16> }>;
|
||||
/**
|
||||
* Pre-ranked account has been inducted at their current rank.
|
||||
**/
|
||||
Imported: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
||||
/**
|
||||
* Member has begun being tracked in this pallet.
|
||||
**/
|
||||
Inducted: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* Member has been removed from being tracked in this pallet (i.e. because rank is now
|
||||
* zero).
|
||||
**/
|
||||
Offboarded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||
/**
|
||||
* Parameters for the pallet have changed.
|
||||
**/
|
||||
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsType], { params: PalletCoreFellowshipParamsType }>;
|
||||
/**
|
||||
* Member has been promoted to the given rank.
|
||||
**/
|
||||
Promoted: AugmentedEvent<ApiType, [who: AccountId32, toRank: u16], { who: AccountId32, toRank: u16 }>;
|
||||
/**
|
||||
* Member has been proven at their current rank, postponing auto-demotion.
|
||||
**/
|
||||
Proven: AugmentedEvent<ApiType, [who: AccountId32, atRank: u16], { who: AccountId32, atRank: u16 }>;
|
||||
/**
|
||||
* Member has stated evidence of their efforts their request for rank.
|
||||
**/
|
||||
Requested: AugmentedEvent<ApiType, [who: AccountId32, wish: PalletCoreFellowshipWish], { who: AccountId32, wish: PalletCoreFellowshipWish }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* A motion was approved by the required threshold.
|
||||
@@ -940,7 +1024,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* The management team changed.
|
||||
**/
|
||||
TeamChanged: AugmentedEvent<ApiType, [collection: u32, issuer: AccountId32, admin: AccountId32, freezer: AccountId32], { collection: u32, issuer: AccountId32, admin: AccountId32, freezer: AccountId32 }>;
|
||||
TeamChanged: AugmentedEvent<ApiType, [collection: u32, issuer: Option<AccountId32>, admin: Option<AccountId32>, freezer: Option<AccountId32>], { collection: u32, issuer: Option<AccountId32>, admin: Option<AccountId32>, freezer: Option<AccountId32> }>;
|
||||
/**
|
||||
* A tip was sent.
|
||||
**/
|
||||
@@ -1016,6 +1100,22 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A payout has been made to a member.
|
||||
**/
|
||||
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
|
||||
/**
|
||||
* A pool's commission `change_rate` has been changed.
|
||||
**/
|
||||
PoolCommissionChangeRateUpdated: AugmentedEvent<ApiType, [poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate], { poolId: u32, changeRate: PalletNominationPoolsCommissionChangeRate }>;
|
||||
/**
|
||||
* Pool commission has been claimed.
|
||||
**/
|
||||
PoolCommissionClaimed: AugmentedEvent<ApiType, [poolId: u32, commission: u128], { poolId: u32, commission: u128 }>;
|
||||
/**
|
||||
* A pool's commission setting has been changed.
|
||||
**/
|
||||
PoolCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>>], { poolId: u32, current: Option<ITuple<[Perbill, AccountId32]>> }>;
|
||||
/**
|
||||
* A pool's maximum commission setting has been changed.
|
||||
**/
|
||||
PoolMaxCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, maxCommission: Perbill], { poolId: u32, maxCommission: Perbill }>;
|
||||
/**
|
||||
* The active balance of pool `pool_id` has been slashed to `balance`.
|
||||
**/
|
||||
|
||||
@@ -7,10 +7,10 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, 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, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, 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';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeHoldReason, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, 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, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, 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';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -274,6 +274,17 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||
**/
|
||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Freeze locks on account balances.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Holds on account balances.
|
||||
**/
|
||||
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
||||
readonly id: KitchensinkRuntimeHoldReason;
|
||||
readonly amount: u128;
|
||||
} & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
@@ -360,9 +371,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Evicted contracts that await child trie deletion.
|
||||
*
|
||||
* Child trie deletion is a heavy operation depending on the amount of storage items
|
||||
* stored in said trie. Therefore this operation is performed lazily in `on_initialize`.
|
||||
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
||||
**/
|
||||
deletionQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletContractsStorageDeletedContract>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* A pair of monotonic counters used to track the latest contract marked for deletion
|
||||
* and the latest deleted contract in queue.
|
||||
**/
|
||||
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletContractsStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* This is a **monotonic** counter incremented on contract instantiation.
|
||||
*
|
||||
@@ -418,6 +434,24 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
coreFellowship: {
|
||||
/**
|
||||
* The status of a claimant.
|
||||
**/
|
||||
member: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletCoreFellowshipMemberStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Some evidence together with the desired outcome for which it was presented.
|
||||
**/
|
||||
memberEvidence: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletCoreFellowshipWish, Bytes]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The overall status of the system.
|
||||
**/
|
||||
params: AugmentedQuery<ApiType, () => Observable<PalletCoreFellowshipParamsType>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* The current members of the collective. This is stored sorted (just by value).
|
||||
@@ -1024,6 +1058,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
||||
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
||||
* `GlobalMaxCommission` is lower than some current pool commissions.
|
||||
**/
|
||||
globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Ever increasing number of all pools created so far.
|
||||
**/
|
||||
@@ -1075,13 +1115,13 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout
|
||||
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
||||
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
**/
|
||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
||||
* hence the name sub-pools. Keyed by the bonded pools account.
|
||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
||||
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
||||
**/
|
||||
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
|
||||
@@ -17,11 +17,11 @@ import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstanti
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||
@@ -184,12 +184,20 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37e397fc7c91f5e4/1 */
|
||||
/** 0x37e397fc7c91f5e4/2 */
|
||||
metadata: {
|
||||
/**
|
||||
* Returns the metadata of a runtime
|
||||
**/
|
||||
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
||||
/**
|
||||
* Returns the metadata at a given version.
|
||||
**/
|
||||
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
||||
/**
|
||||
* Returns the supported metadata versions.
|
||||
**/
|
||||
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -198,33 +206,21 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
/** 0x91d5df18b0d2cf58/2 */
|
||||
mmrApi: {
|
||||
/**
|
||||
* Generate MMR proof for a series of leaves under given indices.
|
||||
* Generate MMR proof for the given block numbers.
|
||||
**/
|
||||
generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Generate MMR proof for a leaf under given index.
|
||||
**/
|
||||
generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
|
||||
generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
|
||||
/**
|
||||
* Return the on-chain MMR root hash.
|
||||
**/
|
||||
mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR for a batch of leaves.
|
||||
**/
|
||||
verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash or a batch of leaves.
|
||||
**/
|
||||
verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against on-chain MMR.
|
||||
**/
|
||||
verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Verify MMR proof against given root hash.
|
||||
**/
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | { leafIndex?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | { leafIndices?: any; leafCount?: any; items?: any } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -328,7 +324,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x37c8bb1350a9a2a8/3 */
|
||||
/** 0x37c8bb1350a9a2a8/4 */
|
||||
transactionPaymentApi: {
|
||||
/**
|
||||
* The transaction fee details
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -39,12 +39,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Must be called by a Fellow.
|
||||
**/
|
||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
||||
*
|
||||
* Must be called by a Fellow.
|
||||
**/
|
||||
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
||||
/**
|
||||
* Disband the Alliance, remove all active members and unreserve deposits.
|
||||
*
|
||||
@@ -145,33 +139,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||
*
|
||||
* May be called by any signed account in order to finish voting and close the proposal.
|
||||
*
|
||||
* If called before the end of the voting period it will only close the vote if it is
|
||||
* has enough votes to be approved or disapproved.
|
||||
*
|
||||
* If called after the end of the voting period abstentions are counted as rejections
|
||||
* unless there is a prime member set and the prime member cast an approval.
|
||||
*
|
||||
* If the close operation completes successfully with disapproval, the transaction fee will
|
||||
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
||||
*
|
||||
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
||||
* proposal.
|
||||
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
||||
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(B + M + P1 + P2)` where:
|
||||
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
||||
* - `M` is members-count (code- and governance-bounded)
|
||||
* - `P1` is the complexity of `proposal` preimage.
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
||||
/**
|
||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||
* state.
|
||||
@@ -776,11 +743,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* Exactly as `transfer`, except the origin must be root and the source account may be
|
||||
* specified.
|
||||
* ## Complexity
|
||||
* - Same as transfer, but additional read and write because the source account is not
|
||||
* assumed to be in the overlay.
|
||||
* Set the regular balance of a given account.
|
||||
*
|
||||
* The dispatch origin for this call is `root`.
|
||||
**/
|
||||
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
||||
* may be specified.
|
||||
**/
|
||||
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
@@ -790,39 +760,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
||||
/**
|
||||
* Set the balances of a given account.
|
||||
*
|
||||
* This will alter `FreeBalance` and `ReservedBalance` in storage. it will
|
||||
* also alter the total issuance of the system (`TotalIssuance`) appropriately.
|
||||
* If the new free or reserved balance is below the existential deposit,
|
||||
* it will reset the account nonce (`frame_system::AccountNonce`).
|
||||
* Set the regular balance of a given account; it also takes a reserved balance but this
|
||||
* must be the same as the account's current reserved balance.
|
||||
*
|
||||
* The dispatch origin for this call is `root`.
|
||||
*
|
||||
* WARNING: This call is DEPRECATED! Use `force_set_balance` instead.
|
||||
**/
|
||||
setBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
||||
setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
|
||||
/**
|
||||
* Transfer some liquid free balance to another account.
|
||||
* Alias for `transfer_allow_death`, provided only for name-wise compatibility.
|
||||
*
|
||||
* `transfer` will set the `FreeBalance` of the sender and receiver.
|
||||
* If the sender's account is below the existential deposit as a result
|
||||
* of the transfer, the account will be reaped.
|
||||
*
|
||||
* The dispatch origin for this call must be `Signed` by the transactor.
|
||||
*
|
||||
* ## Complexity
|
||||
* - Dependent on arguments but not critical, given proper implementations for input config
|
||||
* types. See related functions below.
|
||||
* - It contains a limited number of reads and writes internally and no complex
|
||||
* computation.
|
||||
*
|
||||
* Related functions:
|
||||
*
|
||||
* - `ensure_can_withdraw` is always called internally but has a bounded complexity.
|
||||
* - Transferring balances to accounts that did not exist before will cause
|
||||
* `T::OnNewAccount::on_new_account` to be called.
|
||||
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
||||
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
||||
* that the transfer will not kill the origin account.
|
||||
* WARNING: DEPRECATED! Will be released in approximately 3 months.
|
||||
**/
|
||||
transfer: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
@@ -840,19 +789,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
||||
* of the funds the account has, causing the sender account to be killed (false), or
|
||||
* transfer everything except at least the existential deposit, which will guarantee to
|
||||
* keep the sender account alive (true). ## Complexity
|
||||
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
||||
* keep the sender account alive (true).
|
||||
**/
|
||||
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
||||
/**
|
||||
* Same as the [`transfer`] call, but with a check that the transfer will not kill the
|
||||
* origin account.
|
||||
* Transfer some liquid free balance to another account.
|
||||
*
|
||||
* 99% of the time you want [`transfer`] instead.
|
||||
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
||||
* If the sender's account is below the existential deposit as a result
|
||||
* of the transfer, the account will be reaped.
|
||||
*
|
||||
* [`transfer`]: struct.Pallet.html#method.transfer
|
||||
* The dispatch origin for this call must be `Signed` by the transactor.
|
||||
**/
|
||||
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
||||
* kill the origin account.
|
||||
*
|
||||
* 99% of the time you want [`transfer_allow_death`] instead.
|
||||
*
|
||||
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
||||
**/
|
||||
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Upgrade a specified account.
|
||||
*
|
||||
* - `origin`: Must be `Signed`.
|
||||
* - `who`: The account to be upgraded.
|
||||
*
|
||||
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
||||
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||
* possibililty of churn).
|
||||
**/
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1245,9 +1214,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* the in storage version to the current
|
||||
* [`InstructionWeights::version`](InstructionWeights).
|
||||
*
|
||||
* - `determinism`: If this is set to any other value but [`Determinism::Deterministic`]
|
||||
* then the only way to use this code is to delegate call into it from an offchain
|
||||
* execution. Set to [`Determinism::Deterministic`] if in doubt.
|
||||
* - `determinism`: If this is set to any other value but [`Determinism::Enforced`] then
|
||||
* the only way to use this code is to delegate call into it from an offchain execution.
|
||||
* Set to [`Determinism::Enforced`] if in doubt.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
@@ -1256,7 +1225,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* only be instantiated by permissioned entities. The same is true when uploading
|
||||
* through [`Self::instantiate_with_code`].
|
||||
**/
|
||||
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Deterministic' | 'AllowIndeterminism' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>, PalletContractsWasmDeterminism]>;
|
||||
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>, PalletContractsWasmDeterminism]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1386,6 +1355,96 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
coreFellowship: {
|
||||
/**
|
||||
* Approve a member to continue at their rank.
|
||||
*
|
||||
* This resets `last_proof` to the current block, thereby delaying any automatic demotion.
|
||||
*
|
||||
* If `who` is not already tracked by this pallet, then it will become tracked.
|
||||
* `last_promotion` will be set to zero.
|
||||
*
|
||||
* - `origin`: An origin which satisfies `ApproveOrigin` or root.
|
||||
* - `who`: A member (i.e. of non-zero rank).
|
||||
* - `at_rank`: The rank of member.
|
||||
**/
|
||||
approve: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, atRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
|
||||
/**
|
||||
* Bump the state of a member.
|
||||
*
|
||||
* This will demote a member whose `last_proof` is now beyond their rank's
|
||||
* `demotion_period`.
|
||||
*
|
||||
* - `origin`: A `Signed` origin of an account.
|
||||
* - `who`: A member account whose state is to be updated.
|
||||
**/
|
||||
bump: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
* Introduce an already-ranked individual of the collective into this pallet. The rank may
|
||||
* still be zero.
|
||||
*
|
||||
* This resets `last_proof` to the current block and `last_promotion` will be set to zero,
|
||||
* thereby delaying any automatic demotion but allowing immediate promotion.
|
||||
*
|
||||
* - `origin`: A signed origin of a ranked, but not tracked, account.
|
||||
**/
|
||||
import: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Introduce a new and unranked candidate (rank zero).
|
||||
*
|
||||
* - `origin`: An origin which satisfies `InductOrigin` or root.
|
||||
* - `who`: The account ID of the candidate to be inducted and become a member.
|
||||
**/
|
||||
induct: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
* Stop tracking a prior member who is now not a ranked member of the collective.
|
||||
*
|
||||
* - `origin`: A `Signed` origin of an account.
|
||||
* - `who`: The ID of an account which was tracked in this pallet but which is now not a
|
||||
* ranked member of the collective.
|
||||
**/
|
||||
offboard: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
* Increment the rank of a ranked and tracked account.
|
||||
*
|
||||
* - `origin`: An origin which satisfies `PromoteOrigin` with a `Success` result of
|
||||
* `to_rank` or more or root.
|
||||
* - `who`: The account ID of the member to be promoted to `to_rank`.
|
||||
* - `to_rank`: One more than the current rank of `who`.
|
||||
**/
|
||||
promote: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, toRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
|
||||
/**
|
||||
* Set whether a member is active or not.
|
||||
*
|
||||
* - `origin`: A `Signed` origin of a member's account.
|
||||
* - `is_active`: `true` iff the member is active.
|
||||
**/
|
||||
setActive: AugmentedSubmittable<(isActive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
||||
/**
|
||||
* Set the parameters.
|
||||
*
|
||||
* - `origin`: A origin complying with `ParamsOrigin` or root.
|
||||
* - `params`: The new parameters for the pallet.
|
||||
**/
|
||||
setParams: AugmentedSubmittable<(params: PalletCoreFellowshipParamsType | { activeSalary?: any; passiveSalary?: any; demotionPeriod?: any; minPromotionPeriod?: any; offboardTimeout?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsType]>;
|
||||
/**
|
||||
* Provide evidence that a rank is deserved.
|
||||
*
|
||||
* This is free as long as no evidence for the forthcoming judgement is already submitted.
|
||||
* Evidence is cleared after an outcome (either demotion, promotion of approval).
|
||||
*
|
||||
* - `origin`: A `Signed` origin of an inducted and ranked account.
|
||||
* - `wish`: The stated desire of the member.
|
||||
* - `evidence`: A dump of evidence to be considered. This should generally be either a
|
||||
* Markdown-encoded document or a series of 32-byte hashes which can be found on a
|
||||
* decentralised content-based-indexing system such as IPFS.
|
||||
**/
|
||||
submitEvidence: AugmentedSubmittable<(wish: PalletCoreFellowshipWish | 'Retention' | 'Promotion' | number | Uint8Array, evidence: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipWish, Bytes]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
council: {
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||
@@ -1414,33 +1473,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||
*
|
||||
* May be called by any signed account in order to finish voting and close the proposal.
|
||||
*
|
||||
* If called before the end of the voting period it will only close the vote if it is
|
||||
* has enough votes to be approved or disapproved.
|
||||
*
|
||||
* If called after the end of the voting period abstentions are counted as rejections
|
||||
* unless there is a prime member set and the prime member cast an approval.
|
||||
*
|
||||
* If the close operation completes successfully with disapproval, the transaction fee will
|
||||
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
||||
*
|
||||
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
||||
* proposal.
|
||||
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
||||
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(B + M + P1 + P2)` where:
|
||||
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
||||
* - `M` is members-count (code- and governance-bounded)
|
||||
* - `P1` is the complexity of `proposal` preimage.
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
||||
/**
|
||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||
* state.
|
||||
@@ -2641,21 +2673,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Destroy a single item.
|
||||
*
|
||||
* Origin must be Signed and the signing account must be either:
|
||||
* - the Admin of the `collection`;
|
||||
* - the Owner of the `item`;
|
||||
* The origin must conform to `ForceOrigin` or must be Signed and the signing account must
|
||||
* be the owner of the `item`.
|
||||
*
|
||||
* - `collection`: The collection of the item to be burned.
|
||||
* - `item`: The item to be burned.
|
||||
* - `check_owner`: If `Some` then the operation will fail with `WrongOwner` unless the
|
||||
* item is owned by this value.
|
||||
*
|
||||
* Emits `Burned` with the actual amount burned.
|
||||
* Emits `Burned`.
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
* Modes: `check_owner.is_some()`.
|
||||
**/
|
||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||
/**
|
||||
* Allows to buy an item if it's up for sale.
|
||||
*
|
||||
@@ -2673,7 +2701,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Origin must be either:
|
||||
* - the `Force` origin;
|
||||
* - `Signed` with the signer being the Admin of the `collection`;
|
||||
* - `Signed` with the signer being the Owner of the `item`;
|
||||
*
|
||||
* Arguments:
|
||||
@@ -2731,7 +2758,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Origin must be either:
|
||||
* - the `Force` origin;
|
||||
* - `Signed` with the signer being the Admin of the `collection`;
|
||||
* - `Signed` with the signer being the Owner of the `item`;
|
||||
*
|
||||
* Arguments:
|
||||
@@ -2764,7 +2790,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Clear the metadata for a collection.
|
||||
*
|
||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
|
||||
* the `collection`.
|
||||
*
|
||||
* Any deposit is freed for the collection's owner.
|
||||
@@ -2779,7 +2805,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Clear the metadata for an item.
|
||||
*
|
||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the
|
||||
* `collection`.
|
||||
*
|
||||
* Any deposit is freed for the collection's owner.
|
||||
@@ -2835,18 +2861,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* The origin must conform to `ForceOrigin` or must be `Signed` and the sender must be the
|
||||
* owner of the `collection`.
|
||||
*
|
||||
* NOTE: The collection must have 0 items to be destroyed.
|
||||
*
|
||||
* - `collection`: The identifier of the collection to be destroyed.
|
||||
* - `witness`: Information on the items minted in the collection. This must be
|
||||
* correct.
|
||||
*
|
||||
* Emits `Destroyed` event when successful.
|
||||
*
|
||||
* Weight: `O(n + m)` where:
|
||||
* - `n = witness.items`
|
||||
* Weight: `O(m + c + a)` where:
|
||||
* - `m = witness.item_metadatas`
|
||||
* - `c = witness.item_configs`
|
||||
* - `a = witness.attributes`
|
||||
**/
|
||||
destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletNftsDestroyWitness | { items?: any; itemMetadatas?: any; attributes?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNftsDestroyWitness]>;
|
||||
destroy: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, witness: PalletNftsDestroyWitness | { itemMetadatas?: any; itemConfigs?: any; attributes?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNftsDestroyWitness]>;
|
||||
/**
|
||||
* Change the config of a collection.
|
||||
*
|
||||
@@ -2930,12 +2958,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Disallows specified settings for the whole collection.
|
||||
*
|
||||
* Origin must be Signed and the sender should be the Freezer of the `collection`.
|
||||
* Origin must be Signed and the sender should be the Owner of the `collection`.
|
||||
*
|
||||
* - `collection`: The collection to be locked.
|
||||
* - `lock_settings`: The settings to be locked.
|
||||
*
|
||||
* Note: it's possible to only lock(set) the setting, but not to unset it.
|
||||
*
|
||||
* Emits `CollectionLocked`.
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
@@ -2944,8 +2973,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Disallows changing the metadata or attributes of the item.
|
||||
*
|
||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
||||
* `collection`.
|
||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Admin
|
||||
* of the `collection`.
|
||||
*
|
||||
* - `collection`: The collection if the `item`.
|
||||
* - `item`: An item to be locked.
|
||||
@@ -2953,8 +2982,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `lock_attributes`: Specifies whether the attributes in the `CollectionOwner` namespace
|
||||
* should be locked.
|
||||
*
|
||||
* Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace
|
||||
* only. When the metadata or attributes are locked, it won't be possible the unlock them.
|
||||
* Note: `lock_attributes` affects the attributes in the `CollectionOwner` namespace only.
|
||||
* When the metadata or attributes are locked, it won't be possible the unlock them.
|
||||
*
|
||||
* Emits `ItemPropertiesLocked`.
|
||||
*
|
||||
@@ -2977,7 +3006,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Mint an item of a particular collection.
|
||||
*
|
||||
* The origin must be Signed and the sender must be the Issuer of the `collection`.
|
||||
* The origin must be Signed and the sender must comply with the `mint_settings` rules.
|
||||
*
|
||||
* - `collection`: The collection of the item to be minted.
|
||||
* - `item`: An identifier of the new item.
|
||||
@@ -3001,7 +3030,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* its metadata, attributes, who can mint it (`None` for anyone) and until what block
|
||||
* number.
|
||||
* - `signature`: The signature of the `data` object.
|
||||
* - `signer`: The `data` object's signer. Should be an owner of the collection.
|
||||
* - `signer`: The `data` object's signer. Should be an Issuer of the collection.
|
||||
*
|
||||
* Emits `Issued` on success.
|
||||
* Emits `AttributeSet` if the attributes were provided.
|
||||
@@ -3055,7 +3084,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Set an attribute for a collection or item.
|
||||
*
|
||||
* Origin must be Signed and must conform to the namespace ruleset:
|
||||
* - `CollectionOwner` namespace could be modified by the `collection` owner only;
|
||||
* - `CollectionOwner` namespace could be modified by the `collection` Admin only;
|
||||
* - `ItemOwner` namespace could be modified by the `maybe_item` owner only. `maybe_item`
|
||||
* should be set in that case;
|
||||
* - `Account(AccountId)` namespace could be modified only when the `origin` was given a
|
||||
@@ -3084,7 +3113,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `data`: The pre-signed approval that consists of the information about the item,
|
||||
* attributes to update and until what block number.
|
||||
* - `signature`: The signature of the `data` object.
|
||||
* - `signer`: The `data` object's signer. Should be an owner of the collection for the
|
||||
* - `signer`: The `data` object's signer. Should be an Admin of the collection for the
|
||||
* `CollectionOwner` namespace.
|
||||
*
|
||||
* Emits `AttributeSet` for each provided attribute.
|
||||
@@ -3107,7 +3136,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Set the metadata for a collection.
|
||||
*
|
||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
|
||||
* the `collection`.
|
||||
*
|
||||
* If the origin is `Signed`, then funds of signer are reserved according to the formula:
|
||||
@@ -3125,7 +3154,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Set the metadata for an item.
|
||||
*
|
||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Admin of the
|
||||
* `collection`.
|
||||
*
|
||||
* If the origin is Signed, then funds of signer are reserved according to the formula:
|
||||
@@ -3144,7 +3173,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Set (or reset) the price for an item.
|
||||
*
|
||||
* Origin must be Signed and must be the owner of the asset `item`.
|
||||
* Origin must be Signed and must be the owner of the `item`.
|
||||
*
|
||||
* - `collection`: The collection of the item.
|
||||
* - `item`: The item to set the price for.
|
||||
@@ -3161,6 +3190,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
||||
* `collection`.
|
||||
*
|
||||
* Note: by setting the role to `None` only the `ForceOrigin` will be able to change it
|
||||
* after to `Some(account)`.
|
||||
*
|
||||
* - `collection`: The collection whose team should be changed.
|
||||
* - `issuer`: The new Issuer of this collection.
|
||||
* - `admin`: The new Admin of this collection.
|
||||
@@ -3170,12 +3202,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress, MultiAddress, MultiAddress]>;
|
||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string, admin: Option<MultiAddress> | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string, freezer: Option<MultiAddress> | null | Uint8Array | MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string) => SubmittableExtrinsic<ApiType>, [u32, Option<MultiAddress>, Option<MultiAddress>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Move an item from the sender account to another.
|
||||
*
|
||||
* Origin must be Signed and the signing account must be either:
|
||||
* - the Admin of the `collection`;
|
||||
* - the Owner of the `item`;
|
||||
* - the approved delegate for the `item` (in this case, the approval is reset).
|
||||
*
|
||||
@@ -3219,8 +3250,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Update mint settings.
|
||||
*
|
||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Owner of
|
||||
* the `collection`.
|
||||
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Issuer
|
||||
* of the `collection`.
|
||||
*
|
||||
* - `collection`: The identifier of the collection to change.
|
||||
* - `mint_settings`: The new mint settings.
|
||||
@@ -3330,9 +3361,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* account.
|
||||
**/
|
||||
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Claim pending commission.
|
||||
*
|
||||
* The dispatch origin of this call must be signed by the `root` role of the pool. Pending
|
||||
* commission is paid out and added to total claimed commission`. Total pending commission
|
||||
* is reset to zero. the current.
|
||||
**/
|
||||
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* A bonded member can use this to claim their payout based on the rewards that the pool
|
||||
* has accumulated since their last claimed payout (OR since joining if this is there first
|
||||
* has accumulated since their last claimed payout (OR since joining if this is their first
|
||||
* time claiming rewards). The payout will be transferred to the member's account.
|
||||
*
|
||||
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||
@@ -3424,6 +3463,29 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* * `actor` - Account to claim reward. // improve this
|
||||
**/
|
||||
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
||||
/**
|
||||
* Set the commission of a pool.
|
||||
* Both a commission percentage and a commission payee must be provided in the `current`
|
||||
* tuple. Where a `current` of `None` is provided, any current commission will be removed.
|
||||
*
|
||||
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||
**/
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
/**
|
||||
* Set the commission change rate for a pool.
|
||||
*
|
||||
* Initial change rate is not bounded, whereas subsequent updates can only be more
|
||||
* restrictive than the current.
|
||||
**/
|
||||
setCommissionChangeRate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, changeRate: PalletNominationPoolsCommissionChangeRate | { maxIncrease?: any; minDelay?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
|
||||
/**
|
||||
* Set the maximum commission of a pool.
|
||||
*
|
||||
* - Initial max can be set to any `Perbill`, and only smaller values thereafter.
|
||||
* - Current commission will be lowered in the event it is higher than a new max
|
||||
* commission.
|
||||
**/
|
||||
setCommissionMax: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, maxCommission: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Perbill]>;
|
||||
/**
|
||||
* Update configurations for the nomination pools. The origin for this call must be
|
||||
* Root.
|
||||
@@ -3435,13 +3497,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* * `max_pools` - Set [`MaxPools`].
|
||||
* * `max_members` - Set [`MaxPoolMembers`].
|
||||
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
||||
* * `global_max_commission` - Set [`GlobalMaxCommission`].
|
||||
**/
|
||||
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
|
||||
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, globalMaxCommission: PalletNominationPoolsConfigOpPerbill | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpPerbill]>;
|
||||
/**
|
||||
* Set a new metadata for the pool.
|
||||
*
|
||||
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
||||
* of the pool.
|
||||
* The dispatch origin of this call must be signed by the bouncer, or the root role of the
|
||||
* pool.
|
||||
**/
|
||||
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||
/**
|
||||
@@ -5016,33 +5079,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||
*
|
||||
* May be called by any signed account in order to finish voting and close the proposal.
|
||||
*
|
||||
* If called before the end of the voting period it will only close the vote if it is
|
||||
* has enough votes to be approved or disapproved.
|
||||
*
|
||||
* If called after the end of the voting period abstentions are counted as rejections
|
||||
* unless there is a prime member set and the prime member cast an approval.
|
||||
*
|
||||
* If the close operation completes successfully with disapproval, the transaction fee will
|
||||
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
||||
*
|
||||
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
||||
* proposal.
|
||||
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
||||
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(B + M + P1 + P2)` where:
|
||||
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
||||
* - `M` is members-count (code- and governance-bounded)
|
||||
* - `P1` is the complexity of `proposal` preimage.
|
||||
* - `P2` is proposal-count (code-bounded)
|
||||
**/
|
||||
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
||||
/**
|
||||
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||
* state.
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.1.4",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/rpc-core": "10.3.2",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
||||
|
||||
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base.js';
|
||||
import type { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base.js';
|
||||
|
||||
export type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
||||
|
||||
|
||||
@@ -18,20 +18,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.1.4",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-codec": "10.1.4",
|
||||
"@polkadot/types-create": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/util-crypto": "^11.1.1",
|
||||
"@polkadot/api": "10.3.2",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-codec": "10.3.2",
|
||||
"@polkadot/types-create": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.1.4",
|
||||
"@polkadot/keyring": "^11.1.1"
|
||||
"@polkadot/api-augment": "10.3.2",
|
||||
"@polkadot/keyring": "^11.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,10 +93,13 @@ describe('Abi', (): void => {
|
||||
const abi = new Abi(abiJson);
|
||||
const registryJson = stringifyJson(abi.registry);
|
||||
const cmpFile = path.join(cmpPath, `${abiName}.test.json`);
|
||||
const cmpText = fs.readFileSync(cmpFile, 'utf-8');
|
||||
|
||||
try {
|
||||
expect(JSON.parse(registryJson)).toEqual(JSON.parse(cmpText));
|
||||
expect(
|
||||
JSON.parse(registryJson)
|
||||
).toEqual(
|
||||
JSON.parse(fs.readFileSync(cmpFile, 'utf-8'))
|
||||
);
|
||||
} catch (error) {
|
||||
if (process.env.GITHUB_REPOSITORY) {
|
||||
console.error(registryJson);
|
||||
|
||||
@@ -27,10 +27,10 @@ export function v4ToLatest (_registry: Registry, v4: ContractMetadataV4): Contra
|
||||
return v4;
|
||||
}
|
||||
|
||||
export const v3ToLatest = createConverter(v4ToLatest, v3ToV4);
|
||||
export const v2ToLatest = createConverter(v3ToLatest, v2ToV3);
|
||||
export const v1ToLatest = createConverter(v2ToLatest, v1ToV2);
|
||||
export const v0ToLatest = createConverter(v1ToLatest, v0ToV1);
|
||||
export const v3ToLatest = /*#__PURE__*/ createConverter(v4ToLatest, v3ToV4);
|
||||
export const v2ToLatest = /*#__PURE__*/ createConverter(v3ToLatest, v2ToV3);
|
||||
export const v1ToLatest = /*#__PURE__*/ createConverter(v2ToLatest, v1ToV2);
|
||||
export const v0ToLatest = /*#__PURE__*/ createConverter(v1ToLatest, v0ToV1);
|
||||
|
||||
export const convertVersions: [Versions, Converter][] = [
|
||||
['V4', v4ToLatest],
|
||||
|
||||
@@ -31,7 +31,7 @@ describe('Code', (): void => {
|
||||
).not.toThrow();
|
||||
});
|
||||
|
||||
it.only('can construct with an .contract ABI (v1)', (): void => {
|
||||
it('can construct with an .contract ABI (v1)', (): void => {
|
||||
expect(
|
||||
() => new Code(mockApi, v1contractFlipper as Record<string, unknown>, null, toPromiseMethod)
|
||||
).not.toThrow();
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
|
||||
import '@polkadot/api-augment';
|
||||
|
||||
import type { TestKeyringMap } from '@polkadot/keyring/testingPairs';
|
||||
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import { BlueprintPromise, ContractPromise } from '@polkadot/api-contract';
|
||||
import { createTestPairs, TestKeyringMap } from '@polkadot/keyring/testingPairs';
|
||||
import { createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
|
||||
import abiIncrementer from './test/contracts/ink/v0/incrementer.json' assert { type: 'json' };
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,5 +4,6 @@
|
||||
import { createVersionedExport } from '../util.js';
|
||||
import * as v0 from './v0/index.js';
|
||||
import * as v3 from './v3/index.js';
|
||||
import * as v4 from './v4/index.js';
|
||||
|
||||
export default createVersionedExport({ v0, v3 });
|
||||
export default createVersionedExport({ v0, v3, v4 });
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as events } from './events.contract.json' assert { type: 'json' };
|
||||
@@ -18,25 +18,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.1.4",
|
||||
"@polkadot/api-augment": "10.1.4",
|
||||
"@polkadot/api-base": "10.1.4",
|
||||
"@polkadot/rpc-core": "10.1.4",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-codec": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/util-crypto": "^11.1.1",
|
||||
"@polkadot/api": "10.3.2",
|
||||
"@polkadot/api-augment": "10.3.2",
|
||||
"@polkadot/api-base": "10.3.2",
|
||||
"@polkadot/rpc-core": "10.3.2",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-codec": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.1.4",
|
||||
"@polkadot/api-augment": "10.1.4",
|
||||
"@polkadot/rpc-augment": "10.1.4",
|
||||
"@polkadot/rpc-provider": "10.1.4",
|
||||
"@polkadot/types-support": "10.1.4"
|
||||
"@polkadot/api": "10.3.2",
|
||||
"@polkadot/api-augment": "10.3.2",
|
||||
"@polkadot/rpc-augment": "10.3.2",
|
||||
"@polkadot/rpc-provider": "10.3.2",
|
||||
"@polkadot/types-support": "10.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,4 @@ export * from './votingBalances.js';
|
||||
|
||||
const votingBalance = all;
|
||||
|
||||
export {
|
||||
all,
|
||||
votingBalance
|
||||
};
|
||||
export { all, votingBalance };
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { QueryableStorage } from '@polkadot/api-base/types';
|
||||
import type { Compact, Vec } from '@polkadot/types';
|
||||
import type { AccountId, BlockNumber, Header } from '@polkadot/types/interfaces';
|
||||
import type { AccountId, Address, BlockNumber, Header } from '@polkadot/types/interfaces';
|
||||
import type { Codec, IOption } from '@polkadot/types/types';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
@@ -24,23 +24,36 @@ export function createBlockNumberDerive <T extends { number: Compact<BlockNumber
|
||||
}
|
||||
|
||||
export function getAuthorDetails (header: Header, queryAt: QueryableStorage<'rxjs'>): Observable<[Header, Vec<AccountId> | null, AccountId | null]> {
|
||||
// this is Moonbeam specific
|
||||
if (queryAt.authorMapping && queryAt.authorMapping.mappingWithDeposit) {
|
||||
const mapId = header.digest.logs[0] && (
|
||||
(header.digest.logs[0].isConsensus && header.digest.logs[0].asConsensus[1]) ||
|
||||
(header.digest.logs[0].isPreRuntime && header.digest.logs[0].asPreRuntime[1])
|
||||
);
|
||||
const validators = queryAt.session
|
||||
? queryAt.session.validators()
|
||||
: of(null);
|
||||
|
||||
if (mapId) {
|
||||
// nimbus consensus stores the session key of the block author in header logs
|
||||
const { logs: [log] } = header.digest;
|
||||
const loggedAuthor = (log && (
|
||||
(log.isConsensus && log.asConsensus[0].isNimbus && log.asConsensus[1]) ||
|
||||
(log.isPreRuntime && log.asPreRuntime[0].isNimbus && log.asPreRuntime[1])
|
||||
));
|
||||
|
||||
if (loggedAuthor) {
|
||||
// use the author mapping pallet, if available (ie: moonbeam, moonriver), to map session (nimbus) key to author (collator/validator) key
|
||||
if (queryAt.authorMapping && queryAt.authorMapping.mappingWithDeposit) {
|
||||
return combineLatest([
|
||||
of(header),
|
||||
queryAt.session
|
||||
? queryAt.session.validators()
|
||||
: of(null),
|
||||
queryAt.authorMapping.mappingWithDeposit<IOption<{ account: AccountId } & Codec>>(mapId).pipe(
|
||||
map((opt) =>
|
||||
opt.unwrapOr({ account: null }).account
|
||||
)
|
||||
validators,
|
||||
queryAt.authorMapping.mappingWithDeposit<IOption<{ account: AccountId } & Codec>>(loggedAuthor)
|
||||
.pipe(map((opt) => opt.unwrapOr({ account: null }).account))
|
||||
]);
|
||||
}
|
||||
|
||||
// fall back to session pallet, if available (ie: manta, calamari), to map session (nimbus) key to author (collator/validator) key
|
||||
if (queryAt.session && queryAt.session.queuedKeys) {
|
||||
return combineLatest([
|
||||
of(header),
|
||||
validators,
|
||||
queryAt.session.queuedKeys<[AccountId, { nimbus: Address }][]>().pipe(
|
||||
map((queuedKeys) => queuedKeys.find((sessionKey) => sessionKey[1].nimbus.toHex() === loggedAuthor.toHex())),
|
||||
map((sessionKey) => (sessionKey) ? sessionKey[0] : null)
|
||||
)
|
||||
]);
|
||||
}
|
||||
@@ -49,9 +62,7 @@ export function getAuthorDetails (header: Header, queryAt: QueryableStorage<'rxj
|
||||
// normal operation, non-mapping
|
||||
return combineLatest([
|
||||
of(header),
|
||||
queryAt.session
|
||||
? queryAt.session.validators()
|
||||
: of(null),
|
||||
validators,
|
||||
of(null)
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
||||
|
||||
import type { ExactDerive } from './index.js';
|
||||
|
||||
import { from, Observable } from 'rxjs';
|
||||
|
||||
import { ApiRx } from '@polkadot/api';
|
||||
import { MockProvider } from '@polkadot/rpc-provider/mock';
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
import { ExactDerive } from './index.js';
|
||||
|
||||
const testFunction = (api: ApiRx): any => {
|
||||
return <S extends keyof ExactDerive, M extends keyof (typeof api.derive[S])>(section: S, method: M, inputs: any[]): void => {
|
||||
describe(`derive.${section}.${method as string}`, (): void => {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Bounty, BountyIndex } from '@polkadot/types/interfaces';
|
||||
import type { Codec, Constructor, InterfaceTypes, Registry } from '@polkadot/types/types';
|
||||
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import { Option, StorageKey } from '@polkadot/types';
|
||||
import { Bounty, BountyIndex } from '@polkadot/types/interfaces';
|
||||
import { Codec, Constructor, InterfaceTypes, Registry } from '@polkadot/types/types';
|
||||
|
||||
export class BountyFactory {
|
||||
readonly #api: ApiPromise;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { Bytes } from '@polkadot/types';
|
||||
import { Registry } from '@polkadot/types/types';
|
||||
import type { Bytes } from '@polkadot/types';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
|
||||
export class BytesFactory {
|
||||
#registry: Registry;
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { SubmittableExtrinsic } from '@polkadot/api-base/types';
|
||||
|
||||
import { Proposal, ProposalIndex } from '@polkadot/types/interfaces';
|
||||
import { Registry } from '@polkadot/types/types';
|
||||
import type { Proposal, ProposalIndex } from '@polkadot/types/interfaces';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
|
||||
export class ProposalFactory {
|
||||
readonly #api: ApiPromise;
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Header, Index } from '@polkadot/types/interfaces';
|
||||
import type { AnyNumber, Codec, IExtrinsicEra } from '@polkadot/types/types';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||
import { catchError, combineLatest, map, of, switchMap } from 'rxjs';
|
||||
|
||||
import { isNumber, isUndefined } from '@polkadot/util';
|
||||
|
||||
@@ -41,18 +41,22 @@ function signingHeader (api: DeriveApi): Observable<Header> {
|
||||
? of(header)
|
||||
// in the case of the current block, we use the parent to minimize the
|
||||
// impact of forks on the system, but not completely remove it
|
||||
: api.rpc.chain.getHeader(header.parentHash)
|
||||
: api.rpc.chain.getHeader(header.parentHash).pipe(
|
||||
catchError(() => of(header))
|
||||
)
|
||||
)
|
||||
),
|
||||
api.rpc.chain.getFinalizedHead().pipe(
|
||||
switchMap((hash) =>
|
||||
api.rpc.chain.getHeader(hash)
|
||||
api.rpc.chain.getHeader(hash).pipe(
|
||||
catchError(() => of(null))
|
||||
)
|
||||
)
|
||||
)
|
||||
]).pipe(
|
||||
map(([current, finalized]) =>
|
||||
// determine the hash to use, current when lag > max, else finalized
|
||||
unwrapBlockNumber(current).sub(unwrapBlockNumber(finalized)).gt(MAX_FINALITY_LAG)
|
||||
!finalized || unwrapBlockNumber(current).sub(unwrapBlockNumber(finalized)).gt(MAX_FINALITY_LAG)
|
||||
? current
|
||||
: finalized
|
||||
)
|
||||
|
||||
+17
-17
@@ -18,29 +18,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "10.1.4",
|
||||
"@polkadot/api-base": "10.1.4",
|
||||
"@polkadot/api-derive": "10.1.4",
|
||||
"@polkadot/keyring": "^11.1.1",
|
||||
"@polkadot/rpc-augment": "10.1.4",
|
||||
"@polkadot/rpc-core": "10.1.4",
|
||||
"@polkadot/rpc-provider": "10.1.4",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-augment": "10.1.4",
|
||||
"@polkadot/types-codec": "10.1.4",
|
||||
"@polkadot/types-create": "10.1.4",
|
||||
"@polkadot/types-known": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/util-crypto": "^11.1.1",
|
||||
"@polkadot/api-augment": "10.3.2",
|
||||
"@polkadot/api-base": "10.3.2",
|
||||
"@polkadot/api-derive": "10.3.2",
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/rpc-augment": "10.3.2",
|
||||
"@polkadot/rpc-core": "10.3.2",
|
||||
"@polkadot/rpc-provider": "10.3.2",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-augment": "10.3.2",
|
||||
"@polkadot/types-codec": "10.3.2",
|
||||
"@polkadot/types-create": "10.3.2",
|
||||
"@polkadot/types-known": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.1.4",
|
||||
"@polkadot/types-support": "10.1.4"
|
||||
"@polkadot/api-augment": "10.3.2",
|
||||
"@polkadot/types-support": "10.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import type { AnyFunction, AnyJson, AnyTuple, CallFunction, Codec, DefinitionCal
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { SubmittableExtrinsic } from '../submittable/types.js';
|
||||
import type { ApiDecoration, ApiInterfaceRx, ApiOptions, ApiTypes, AugmentedQuery, DecoratedErrors, DecoratedEvents, DecoratedRpc, DecorateMethod, GenericStorageEntryFunction, PaginationOptions, QueryableConsts, QueryableStorage, QueryableStorageEntry, QueryableStorageEntryAt, QueryableStorageMulti, QueryableStorageMultiArg, SubmittableExtrinsicFunction, SubmittableExtrinsics } from '../types/index.js';
|
||||
import type { AllDerives } from '../util/decorate.js';
|
||||
import type { VersionedRegistry } from './types.js';
|
||||
|
||||
import { BehaviorSubject, combineLatest, from, map, of, switchMap, tap, toArray } from 'rxjs';
|
||||
@@ -26,7 +27,7 @@ import { blake2AsHex } from '@polkadot/util-crypto';
|
||||
|
||||
import { createSubmittable } from '../submittable/index.js';
|
||||
import { augmentObject } from '../util/augmentObject.js';
|
||||
import { AllDerives, decorateDeriveSections } from '../util/decorate.js';
|
||||
import { decorateDeriveSections } from '../util/decorate.js';
|
||||
import { extractStorageArgs } from '../util/validate.js';
|
||||
import { Events } from './Events.js';
|
||||
import { findCall, findError } from './find.js';
|
||||
|
||||
@@ -6,13 +6,14 @@
|
||||
import '@polkadot/api-augment';
|
||||
|
||||
import type { HeaderExtended } from '@polkadot/api-derive/types';
|
||||
import type { TestKeyringMap } from '@polkadot/keyring/testingPairs';
|
||||
import type { StorageKey } from '@polkadot/types';
|
||||
import type { AccountId, Balance, DispatchErrorModule, Event, Header, Index } from '@polkadot/types/interfaces';
|
||||
import type { FrameSystemAccountInfo } from '@polkadot/types/lookup';
|
||||
import type { AnyTuple, IExtrinsic, IMethod } from '@polkadot/types/types';
|
||||
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import { createTestPairs, TestKeyringMap } from '@polkadot/keyring/testingPairs';
|
||||
import { createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
import { createTypeUnsafe, TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
import { SubmittableResult } from './index.js';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiOptions, UnsubscribePromise } from '../types/index.js';
|
||||
import type { CombinatorCallback, CombinatorFunction } from './Combinator.js';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { ApiBase } from '../base/index.js';
|
||||
import { Combinator, CombinatorCallback, CombinatorFunction } from './Combinator.js';
|
||||
import { Combinator } from './Combinator.js';
|
||||
import { promiseTracker, toPromiseMethod } from './decorateMethod.js';
|
||||
|
||||
/**
|
||||
|
||||
@@ -41,7 +41,7 @@ describe('ApiPromise', (): void => {
|
||||
|
||||
const signer = new SingleAccountSigner(registry, aliceEd);
|
||||
const api = await ApiPromise.create({ provider, registry, signer, throwOnConnect: true });
|
||||
const transfer = api.tx.balances.transfer(keyring.getPair('0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e').address, 321564789876512345n);
|
||||
const transfer = api.tx.balances.transferAllowDeath(keyring.getPair('0xe659a7a1628cdd93febc04a4e0646ea20e9f5f0ce097d9a05290d4a9e054df4e').address, 321564789876512345n);
|
||||
|
||||
return { api, transfer: await transfer.signAsync(aliceEd.address, {}) };
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
import { logger } from '@polkadot/util';
|
||||
|
||||
export const l = logger('api/util');
|
||||
export const l = /*#__PURE__*/ logger('api/util');
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.1.4",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-codec": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/rpc-core": "10.3.2",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-codec": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
||||
import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
||||
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||
@@ -373,13 +373,21 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
||||
};
|
||||
mmr: {
|
||||
/**
|
||||
* Generate MMR proof for the given leaf indices.
|
||||
* Generate MMR proof for the given block numbers.
|
||||
**/
|
||||
generateBatchProof: AugmentedRpc<(leafIndices: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], at?: BlockHash | string | Uint8Array) => Observable<MmrLeafProof>>;
|
||||
generateProof: AugmentedRpc<(blockNumbers: Vec<u64> | (u64 | AnyNumber | Uint8Array)[], bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
|
||||
/**
|
||||
* Generate MMR proof for given leaf index.
|
||||
* Get the MMR root hash for the current best block.
|
||||
**/
|
||||
generateProof: AugmentedRpc<(leafIndex: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrLeafBatchProof>>;
|
||||
root: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<MmrHash>>;
|
||||
/**
|
||||
* Verify an MMR proof
|
||||
**/
|
||||
verifyProof: AugmentedRpc<(proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Verify an MMR proof statelessly given an mmr_root
|
||||
**/
|
||||
verifyProofStateless: AugmentedRpc<(root: MmrHash | string | Uint8Array, proof: MmrLeafBatchProof | { blockHash?: any; leaves?: any; proof?: any } | string | Uint8Array) => Observable<bool>>;
|
||||
};
|
||||
net: {
|
||||
/**
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "10.1.4",
|
||||
"@polkadot/rpc-provider": "10.1.4",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/rpc-augment": "10.3.2",
|
||||
"@polkadot/rpc-provider": "10.3.2",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^11.1.1",
|
||||
"@polkadot/rpc-augment": "10.1.4"
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/rpc-augment": "10.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -18,26 +18,26 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^11.1.1",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-support": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/util-crypto": "^11.1.1",
|
||||
"@polkadot/x-fetch": "^11.1.1",
|
||||
"@polkadot/x-global": "^11.1.1",
|
||||
"@polkadot/x-ws": "^11.1.1",
|
||||
"@polkadot/keyring": "^11.1.3",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-support": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/x-fetch": "^11.1.3",
|
||||
"@polkadot/x-global": "^11.1.3",
|
||||
"@polkadot/x-ws": "^11.1.3",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"mock-socket": "^9.2.1",
|
||||
"nock": "^13.3.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@substrate/connect": "0.7.21"
|
||||
"@substrate/connect": "0.7.23"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@substrate/connect": "0.7.21"
|
||||
"@substrate/connect": "0.7.23"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { isFunction } from '@polkadot/util';
|
||||
import type { RpcErrorInterface } from '../types.js';
|
||||
|
||||
import { RpcErrorInterface } from '../types.js';
|
||||
import { isFunction } from '@polkadot/util';
|
||||
|
||||
const UNKNOWN = -99999;
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
|
||||
import type { Request } from '../mock/mockWs.js';
|
||||
import type { Global, Mock } from '../mock/types.js';
|
||||
|
||||
import { mockWs } from '../mock/mockWs.js';
|
||||
import { Global, Mock } from '../mock/types.js';
|
||||
import { WsProvider } from './index.js';
|
||||
|
||||
declare const global: Global;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,24 +28,24 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.1.4",
|
||||
"@polkadot/api-augment": "10.1.4",
|
||||
"@polkadot/rpc-augment": "10.1.4",
|
||||
"@polkadot/rpc-provider": "10.1.4",
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-augment": "10.1.4",
|
||||
"@polkadot/types-codec": "10.1.4",
|
||||
"@polkadot/types-create": "10.1.4",
|
||||
"@polkadot/types-support": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/util-crypto": "^11.1.1",
|
||||
"@polkadot/x-ws": "^11.1.1",
|
||||
"@polkadot/api": "10.3.2",
|
||||
"@polkadot/api-augment": "10.3.2",
|
||||
"@polkadot/rpc-augment": "10.3.2",
|
||||
"@polkadot/rpc-provider": "10.3.2",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-augment": "10.3.2",
|
||||
"@polkadot/types-codec": "10.3.2",
|
||||
"@polkadot/types-create": "10.3.2",
|
||||
"@polkadot/types-support": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/util-crypto": "^11.1.3",
|
||||
"@polkadot/x-ws": "^11.1.3",
|
||||
"handlebars": "^4.7.7",
|
||||
"tslib": "^2.5.0",
|
||||
"yargs": "^17.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/websocket": "^1.0.5",
|
||||
"@types/yargs": "^17.0.22"
|
||||
"@types/yargs": "^17.0.24"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/typegen authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Definitions, DefinitionsTypes } from '@polkadot/types/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
import fs from 'node:fs';
|
||||
@@ -8,7 +9,6 @@ import path from 'node:path';
|
||||
import yargs from 'yargs';
|
||||
import { hideBin } from 'yargs/helpers';
|
||||
|
||||
import { Definitions, DefinitionsTypes } from '@polkadot/types/types';
|
||||
import { formatNumber, isHex } from '@polkadot/util';
|
||||
|
||||
import { generateDefaultConsts, generateDefaultErrors, generateDefaultEvents, generateDefaultQuery, generateDefaultRpc, generateDefaultRuntime, generateDefaultTx } from './generate/index.js';
|
||||
@@ -94,23 +94,23 @@ async function mainPromise (): Promise<void> {
|
||||
}
|
||||
}).argv as ArgV;
|
||||
|
||||
let metadata: HexString;
|
||||
let metaHex: HexString;
|
||||
|
||||
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
||||
metadata = await getMetadataViaWs(endpoint);
|
||||
metaHex = await getMetadataViaWs(endpoint);
|
||||
} else {
|
||||
metadata = (
|
||||
metaHex = (
|
||||
JSON.parse(
|
||||
fs.readFileSync(assertFile(path.join(process.cwd(), endpoint)), 'utf-8')
|
||||
) as { result: HexString }
|
||||
).result;
|
||||
|
||||
if (!isHex(metadata)) {
|
||||
if (!isHex(metaHex)) {
|
||||
throw new Error('Invalid metadata file');
|
||||
}
|
||||
}
|
||||
|
||||
await generate(metadata, pkg, output, isStrict);
|
||||
await generate(metaHex, pkg, output, isStrict);
|
||||
}
|
||||
|
||||
export function main (): void {
|
||||
|
||||
@@ -76,23 +76,23 @@ async function mainPromise (): Promise<void> {
|
||||
generateInterfaceTypes(allDefs, path.join(inputPath, 'augment-types.ts'));
|
||||
|
||||
if (endpoint) {
|
||||
let metadata: HexString;
|
||||
let metaHex: HexString;
|
||||
|
||||
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
||||
metadata = await getMetadataViaWs(endpoint);
|
||||
metaHex = await getMetadataViaWs(endpoint);
|
||||
} else {
|
||||
metadata = (
|
||||
metaHex = (
|
||||
JSON.parse(
|
||||
fs.readFileSync(assertFile(path.join(process.cwd(), endpoint)), 'utf-8')
|
||||
) as { result: HexString }
|
||||
).result;
|
||||
|
||||
if (!isHex(metadata)) {
|
||||
if (!isHex(metaHex)) {
|
||||
throw new Error('Invalid metadata file');
|
||||
}
|
||||
}
|
||||
|
||||
generateDefaultLookup(inputPath, metadata);
|
||||
generateDefaultLookup(inputPath, metaHex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Metadata } from '@polkadot/types/metadata/Metadata';
|
||||
import type { Definitions } from '@polkadot/types/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ExtraTypes } from './types.js';
|
||||
|
||||
import Handlebars from 'handlebars';
|
||||
|
||||
import * as defaultDefs from '@polkadot/types/interfaces/definitions';
|
||||
import { Definitions } from '@polkadot/types/types';
|
||||
import lookupDefinitions from '@polkadot/types-augment/lookup/definitions';
|
||||
import { stringCamelCase } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Metadata } from '@polkadot/types/metadata/Metadata';
|
||||
import type { Definitions } from '@polkadot/types/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ExtraTypes } from './types.js';
|
||||
|
||||
import Handlebars from 'handlebars';
|
||||
|
||||
import * as defaultDefs from '@polkadot/types/interfaces/definitions';
|
||||
import { Definitions } from '@polkadot/types/types';
|
||||
import lookupDefinitions from '@polkadot/types-augment/lookup/definitions';
|
||||
import { stringCamelCase } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/typegen authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ModuleTypes } from '../util/imports.js';
|
||||
|
||||
import Handlebars from 'handlebars';
|
||||
|
||||
import { Json, Raw } from '@polkadot/types/codec';
|
||||
@@ -8,7 +10,6 @@ import { TypeRegistry } from '@polkadot/types/create';
|
||||
import * as defaultDefinitions from '@polkadot/types/interfaces/definitions';
|
||||
import * as defaultPrimitives from '@polkadot/types/primitive';
|
||||
|
||||
import { ModuleTypes } from '../util/imports.js';
|
||||
import { createImports, readTemplate, setImports, writeFile } from '../util/index.js';
|
||||
|
||||
const primitiveClasses = {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
import type { PortableType, SiLookupTypeId, SiPath, SiTypeParameter } from '@polkadot/types/interfaces';
|
||||
import type { PortableRegistry } from '@polkadot/types/metadata';
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
import type { TypeDef } from '@polkadot/types-create/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
@@ -10,7 +11,6 @@ import Handlebars from 'handlebars';
|
||||
import path from 'path';
|
||||
|
||||
import * as defaultDefinitions from '@polkadot/types/interfaces/definitions';
|
||||
import { Registry } from '@polkadot/types/types';
|
||||
import staticKusama from '@polkadot/types-support/metadata/static-kusama';
|
||||
import staticPolkadot from '@polkadot/types-support/metadata/static-polkadot';
|
||||
import staticSubstrate from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
@@ -5,6 +5,8 @@ import type { StorageEntryMetadataLatest } from '@polkadot/types/interfaces';
|
||||
import type { Metadata, PortableRegistry } from '@polkadot/types/metadata';
|
||||
import type { Definitions, Registry } from '@polkadot/types/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ModuleTypes } from '../util/imports.js';
|
||||
import type { TypeImports } from '../util/index.js';
|
||||
import type { ExtraTypes } from './types.js';
|
||||
|
||||
import Handlebars from 'handlebars';
|
||||
@@ -14,8 +16,7 @@ import { unwrapStorageSi } from '@polkadot/types/primitive/StorageKey';
|
||||
import lookupDefinitions from '@polkadot/types-augment/lookup/definitions';
|
||||
import { stringCamelCase } from '@polkadot/util';
|
||||
|
||||
import { ModuleTypes } from '../util/imports.js';
|
||||
import { compareName, createImports, formatType, getSimilarTypes, initMeta, readTemplate, setImports, TypeImports, writeFile } from '../util/index.js';
|
||||
import { compareName, createImports, formatType, getSimilarTypes, initMeta, readTemplate, setImports, writeFile } from '../util/index.js';
|
||||
|
||||
const generateForMetaTemplate = Handlebars.compile(readTemplate('query'));
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
import type { TypeDef } from '@polkadot/types-create/types';
|
||||
import type { ModuleTypes } from '../util/imports.js';
|
||||
import type { TypeImports } from '../util/index.js';
|
||||
|
||||
import Handlebars from 'handlebars';
|
||||
import path from 'path';
|
||||
@@ -13,7 +14,7 @@ import * as defaultDefinitions from '@polkadot/types/interfaces/definitions';
|
||||
import { getTypeDef, TypeDefInfo } from '@polkadot/types-create';
|
||||
import { assert, isString, stringify, stringPascalCase } from '@polkadot/util';
|
||||
|
||||
import { createImports, exportInterface, formatType, readTemplate, setImports, TypeImports, writeFile } from '../util/index.js';
|
||||
import { createImports, exportInterface, formatType, readTemplate, setImports, writeFile } from '../util/index.js';
|
||||
|
||||
interface Imports extends TypeImports {
|
||||
interfaces: [string, string][];
|
||||
|
||||
@@ -4,18 +4,27 @@
|
||||
import type { MetadataLatest, SiLookupTypeId } from '@polkadot/types/interfaces';
|
||||
import type { PortableRegistry } from '@polkadot/types/metadata';
|
||||
import type { Codec, DefinitionRpcParam } from '@polkadot/types/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import yargs from 'yargs';
|
||||
import { hideBin } from 'yargs/helpers';
|
||||
|
||||
import { Metadata, TypeRegistry, Vec } from '@polkadot/types';
|
||||
import * as definitions from '@polkadot/types/interfaces/definitions';
|
||||
import { getStorage as getSubstrateStorage } from '@polkadot/types/metadata/decorate/storage/getStorage';
|
||||
import { Text } from '@polkadot/types/primitive';
|
||||
import { unwrapStorageType } from '@polkadot/types/primitive/StorageKey';
|
||||
import rpcdata from '@polkadot/types-support/metadata/static-substrate';
|
||||
import { stringCamelCase, stringLowerFirst } from '@polkadot/util';
|
||||
import kusamaMeta, { rpc as kusamaRpc, version as kusamaVer } from '@polkadot/types-support/metadata/static-kusama';
|
||||
import polkadotMeta, { rpc as polkadotRpc, version as polkadotVer } from '@polkadot/types-support/metadata/static-polkadot';
|
||||
import substrateMeta from '@polkadot/types-support/metadata/static-substrate';
|
||||
import { isHex, stringCamelCase, stringLowerFirst } from '@polkadot/util';
|
||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||
|
||||
import { assertFile, getMetadataViaWs } from './util/index.js';
|
||||
|
||||
interface SectionItem {
|
||||
link?: string;
|
||||
name: string;
|
||||
@@ -35,8 +44,32 @@ interface Page {
|
||||
sections: Section[];
|
||||
}
|
||||
|
||||
type ApiDef = [apiHash: string, apiVersion: number];
|
||||
|
||||
interface StaticDef {
|
||||
meta: HexString;
|
||||
rpc?: { methods: string[] };
|
||||
ver?: { apis: ApiDef[] }
|
||||
}
|
||||
|
||||
const headerFn = (runtimeDesc: string) => `\n\n(NOTE: These were generated from a static/snapshot view of a recent ${runtimeDesc}. Some items may not be available in older nodes, or in any customized implementations.)`;
|
||||
|
||||
const ALL_STATIC: Record<string, StaticDef> = {
|
||||
kusama: {
|
||||
meta: kusamaMeta,
|
||||
rpc: kusamaRpc,
|
||||
ver: kusamaVer as unknown as { apis: ApiDef[] }
|
||||
},
|
||||
polkadot: {
|
||||
meta: polkadotMeta,
|
||||
rpc: polkadotRpc,
|
||||
ver: polkadotVer as unknown as { apis: ApiDef[] }
|
||||
},
|
||||
substrate: {
|
||||
meta: substrateMeta
|
||||
}
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
function docsVecToMarkdown (docLines: Vec<Text>, indent = 0): string {
|
||||
const md = docLines
|
||||
@@ -180,7 +213,7 @@ function addRpc (_runtimeDesc: string, rpcMethods?: string[]): string {
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
function addRuntime (_runtimeDesc: string, apis?: [apiHash: string, apiVersion: number][]): string {
|
||||
function addRuntime (_runtimeDesc: string, apis?: ApiDef[]): string {
|
||||
return renderPage({
|
||||
description: 'The following section contains known runtime calls that may be available on specific runtimes (depending on configuration and available pallets). These call directly into the WASM runtime for queries and operations.',
|
||||
sections: Object
|
||||
@@ -422,27 +455,63 @@ function writeFile (name: string, ...chunks: any[]): void {
|
||||
writeStream.end();
|
||||
}
|
||||
|
||||
export function main (): void {
|
||||
type ArgV = { chain?: string; endpoint?: string; };
|
||||
|
||||
async function mainPromise (): Promise<void> {
|
||||
const { chain, endpoint } = yargs(hideBin(process.argv)).strict().options({
|
||||
chain: {
|
||||
description: 'The chain name to use for the output (defaults to "Substrate")',
|
||||
type: 'string'
|
||||
},
|
||||
endpoint: {
|
||||
description: 'The endpoint to connect to (e.g. wss://kusama-rpc.polkadot.io) or relative path to a file containing the JSON output of an RPC state_getMetadata call',
|
||||
type: 'string'
|
||||
}
|
||||
}).argv as ArgV;
|
||||
|
||||
const chainName = chain || 'Substrate';
|
||||
let metaHex: HexString;
|
||||
let rpcMethods: string[] | undefined;
|
||||
let runtimeApis: ApiDef[] | undefined;
|
||||
|
||||
if (endpoint) {
|
||||
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
||||
metaHex = await getMetadataViaWs(endpoint);
|
||||
} else {
|
||||
metaHex = (
|
||||
JSON.parse(
|
||||
fs.readFileSync(assertFile(path.join(process.cwd(), endpoint)), 'utf-8')
|
||||
) as { result: HexString }
|
||||
).result;
|
||||
|
||||
if (!isHex(metaHex)) {
|
||||
throw new Error('Invalid metadata file');
|
||||
}
|
||||
}
|
||||
} else if (ALL_STATIC[chainName.toLowerCase()]) {
|
||||
metaHex = ALL_STATIC[chainName.toLowerCase()].meta;
|
||||
rpcMethods = ALL_STATIC[chainName.toLowerCase()].rpc?.methods;
|
||||
runtimeApis = ALL_STATIC[chainName.toLowerCase()].ver?.apis;
|
||||
} else {
|
||||
metaHex = substrateMeta;
|
||||
}
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, rpcdata);
|
||||
const metadata = new Metadata(registry, metaHex);
|
||||
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
const latest = metadata.asLatest;
|
||||
|
||||
// TODO Make can make this a variable passed in via args if we want to generate
|
||||
// for different chain types
|
||||
const chainName = 'Substrate';
|
||||
const runtimeDesc = `default ${chainName} runtime`;
|
||||
const docRoot = `docs/${chainName.toLowerCase()}`;
|
||||
|
||||
// TODO Pass the result from `rpc_methods` (done via util/wsMeta.ts -> getRpcMethodsViaWs)
|
||||
// into here if we want to have a per-chain overview
|
||||
writeFile(`${docRoot}/rpc.md`, addRpc(runtimeDesc));
|
||||
// into here if we want to have a per-chain overview (via args)
|
||||
writeFile(`${docRoot}/rpc.md`, addRpc(runtimeDesc, rpcMethods));
|
||||
|
||||
// TODO Pass the result from `state_getRuntimeVersion` (done via util/wsMeta.ts -> getRuntimeVersionViaWs)
|
||||
// into here if we want to have a per-chain overview
|
||||
writeFile(`${docRoot}/runtime.md`, addRuntime(runtimeDesc));
|
||||
// into here if we want to have a per-chain overview (via args)
|
||||
writeFile(`${docRoot}/runtime.md`, addRuntime(runtimeDesc, runtimeApis));
|
||||
|
||||
writeFile(`${docRoot}/constants.md`, addConstants(runtimeDesc, latest));
|
||||
writeFile(`${docRoot}/storage.md`, addStorage(runtimeDesc, latest));
|
||||
@@ -450,3 +519,12 @@ export function main (): void {
|
||||
writeFile(`${docRoot}/events.md`, addEvents(runtimeDesc, latest));
|
||||
writeFile(`${docRoot}/errors.md`, addErrors(runtimeDesc, latest));
|
||||
}
|
||||
|
||||
export function main (): void {
|
||||
mainPromise().catch((error) => {
|
||||
console.error();
|
||||
console.error(error);
|
||||
console.error();
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
import type { Constructor, Registry } from '@polkadot/types/types';
|
||||
import type { TypeDef } from '@polkadot/types-create/types';
|
||||
import type { ModuleTypes, TypeImports } from './imports.js';
|
||||
|
||||
import { GenericAccountId, GenericCall, GenericLookupSource, GenericVote } from '@polkadot/types/generic';
|
||||
import { AllConvictions } from '@polkadot/types/interfaces/democracy/definitions';
|
||||
@@ -11,7 +12,7 @@ import { getTypeDef, TypeDefInfo } from '@polkadot/types-create';
|
||||
import { isChildClass, stringify } from '@polkadot/util';
|
||||
|
||||
import { formatType } from './formatting.js';
|
||||
import { ModuleTypes, setImports, TypeImports } from './imports.js';
|
||||
import { setImports } from './imports.js';
|
||||
|
||||
function arrayToStrType (arr: string[]): string {
|
||||
return `${arr.map((c) => `'${c}'`).join(' | ')}`;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import type { AnyString, Registry } from '@polkadot/types/types';
|
||||
import type { LookupString } from '@polkadot/types-codec/types';
|
||||
import type { TypeDef } from '@polkadot/types-create/types';
|
||||
import type { ModuleTypes, TypeImports } from './imports.js';
|
||||
|
||||
import Handlebars from 'handlebars';
|
||||
|
||||
@@ -12,7 +13,7 @@ import { getTypeDef, paramsNotation, TypeDefInfo } from '@polkadot/types-create'
|
||||
import { isString, stringify } from '@polkadot/util';
|
||||
|
||||
import { readTemplate } from './file.js';
|
||||
import { ModuleTypes, setImports, TypeImports } from './imports.js';
|
||||
import { setImports } from './imports.js';
|
||||
|
||||
interface ImportDef {
|
||||
file: string;
|
||||
|
||||
@@ -3,27 +3,24 @@
|
||||
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
import { promiseTracker } from '@polkadot/api/promise/decorateMethod';
|
||||
import { WebSocket } from '@polkadot/x-ws';
|
||||
|
||||
async function getWsData <T> (endpoint: string, method: 'rpc_methods' | 'state_getMetadata' | 'state_getRuntimeVersion'): Promise<T> {
|
||||
return new Promise((resolve): void => {
|
||||
return new Promise((resolve, reject): void => {
|
||||
const tracker = promiseTracker<T>(resolve, reject);
|
||||
|
||||
try {
|
||||
const websocket = new WebSocket(endpoint);
|
||||
|
||||
websocket.onclose = (event: { code: number; reason: string }): void => {
|
||||
const msg = `disconnected, code: '${event.code}' reason: '${event.reason}'`;
|
||||
|
||||
if (event.code === 1000) {
|
||||
console.log(msg);
|
||||
} else {
|
||||
console.error(msg);
|
||||
process.exit(1);
|
||||
if (event.code !== 1000) {
|
||||
tracker.reject(new Error(`disconnected, code: '${event.code}' reason: '${event.reason}'`));
|
||||
}
|
||||
};
|
||||
|
||||
websocket.onerror = (event: unknown): void => {
|
||||
console.error(event);
|
||||
process.exit(1);
|
||||
tracker.reject(new Error(`WebSocket error:: ${JSON.stringify(event)}`));
|
||||
};
|
||||
|
||||
websocket.onopen = (): void => {
|
||||
@@ -32,14 +29,16 @@ async function getWsData <T> (endpoint: string, method: 'rpc_methods' | 'state_g
|
||||
};
|
||||
|
||||
websocket.onmessage = (message: { data: string }): void => {
|
||||
resolve((JSON.parse(message.data) as { result: T }).result);
|
||||
try {
|
||||
tracker.resolve((JSON.parse(message.data) as { result: T }).result);
|
||||
} catch (error) {
|
||||
tracker.reject(error as Error);
|
||||
}
|
||||
|
||||
websocket.close();
|
||||
};
|
||||
} catch (error) {
|
||||
console.error();
|
||||
console.error(error);
|
||||
console.error();
|
||||
process.exit(1);
|
||||
tracker.reject(error as Error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-codec": "10.1.4",
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-codec": "10.3.2",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,18 +5,18 @@
|
||||
|
||||
export default {
|
||||
/**
|
||||
* Lookup107: kusama_runtime::SessionKeys
|
||||
* Lookup96: kusama_runtime::SessionKeys
|
||||
**/
|
||||
KusamaRuntimeSessionKeys: {
|
||||
grandpa: 'SpConsensusGrandpaAppPublic',
|
||||
babe: 'SpConsensusBabeAppPublic',
|
||||
imOnline: 'PalletImOnlineSr25519AppSr25519Public',
|
||||
paraValidator: 'PolkadotPrimitivesV2ValidatorAppPublic',
|
||||
paraAssignment: 'PolkadotPrimitivesV2AssignmentAppPublic',
|
||||
paraValidator: 'PolkadotPrimitivesV4ValidatorAppPublic',
|
||||
paraAssignment: 'PolkadotPrimitivesV4AssignmentAppPublic',
|
||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup150: kusama_runtime::OriginCaller
|
||||
* Lookup127: kusama_runtime::OriginCaller
|
||||
**/
|
||||
KusamaRuntimeOriginCaller: {
|
||||
_enum: {
|
||||
@@ -24,9 +24,9 @@ export default {
|
||||
__Unused1: 'Null',
|
||||
__Unused2: 'Null',
|
||||
__Unused3: 'Null',
|
||||
__Unused4: 'Null',
|
||||
__Unused5: 'Null',
|
||||
Void: 'SpCoreVoid',
|
||||
__Unused5: 'Null',
|
||||
__Unused6: 'Null',
|
||||
__Unused7: 'Null',
|
||||
__Unused8: 'Null',
|
||||
__Unused9: 'Null',
|
||||
@@ -34,8 +34,8 @@ export default {
|
||||
__Unused11: 'Null',
|
||||
__Unused12: 'Null',
|
||||
__Unused13: 'Null',
|
||||
Council: 'PalletCollectiveRawOrigin',
|
||||
TechnicalCommittee: 'PalletCollectiveRawOrigin',
|
||||
__Unused14: 'Null',
|
||||
__Unused15: 'Null',
|
||||
__Unused16: 'Null',
|
||||
__Unused17: 'Null',
|
||||
__Unused18: 'Null',
|
||||
@@ -123,19 +123,19 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup154: kusama_runtime::governance::origins::pallet_custom_origins::Origin
|
||||
* Lookup129: kusama_runtime::governance::origins::pallet_custom_origins::Origin
|
||||
**/
|
||||
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: {
|
||||
_enum: ['StakingAdmin', 'Treasurer', 'FellowshipAdmin', 'GeneralAdmin', 'AuctionAdmin', 'LeaseAdmin', 'ReferendumCanceller', 'ReferendumKiller', 'SmallTipper', 'BigTipper', 'SmallSpender', 'MediumSpender', 'BigSpender', 'WhitelistedCaller', 'FellowshipInitiates', 'Fellows', 'FellowshipExperts', 'FellowshipMasters', 'Fellowship1Dan', 'Fellowship2Dan', 'Fellowship3Dan', 'Fellowship4Dan', 'Fellowship5Dan', 'Fellowship6Dan', 'Fellowship7Dan', 'Fellowship8Dan', 'Fellowship9Dan']
|
||||
},
|
||||
/**
|
||||
* Lookup231: kusama_runtime::ProxyType
|
||||
* Lookup208: kusama_runtime::ProxyType
|
||||
**/
|
||||
KusamaRuntimeProxyType: {
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society', 'NominationPools']
|
||||
},
|
||||
/**
|
||||
* Lookup241: kusama_runtime::NposCompactSolution24
|
||||
* Lookup217: kusama_runtime::NposCompactSolution24
|
||||
**/
|
||||
KusamaRuntimeNposCompactSolution24: {
|
||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||
@@ -164,7 +164,108 @@ export default {
|
||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||
},
|
||||
/**
|
||||
* Lookup882: kusama_runtime::Runtime
|
||||
* Lookup364: polkadot_runtime_parachains::disputes::slashing::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletCall: {
|
||||
_enum: {
|
||||
report_dispute_lost_unsigned: {
|
||||
disputeProof: 'PolkadotRuntimeParachainsDisputesSlashingDisputeProof',
|
||||
keyOwnerProof: 'SpSessionMembershipProof'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup365: polkadot_runtime_parachains::disputes::slashing::DisputeProof
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputeProof: {
|
||||
timeSlot: 'PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot',
|
||||
kind: 'PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind',
|
||||
validatorIndex: 'u32',
|
||||
validatorId: 'PolkadotPrimitivesV4ValidatorAppPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup366: polkadot_runtime_parachains::disputes::slashing::DisputesTimeSlot
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot: {
|
||||
sessionIndex: 'u32',
|
||||
candidateHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup367: polkadot_runtime_parachains::disputes::slashing::SlashingOffenceKind
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind: {
|
||||
_enum: ['ForInvalid', 'AgainstValid']
|
||||
},
|
||||
/**
|
||||
* Lookup535: kusama_runtime::HoldReason
|
||||
**/
|
||||
KusamaRuntimeHoldReason: {
|
||||
_enum: {
|
||||
__Unused0: 'Null',
|
||||
__Unused1: 'Null',
|
||||
__Unused2: 'Null',
|
||||
__Unused3: 'Null',
|
||||
__Unused4: 'Null',
|
||||
__Unused5: 'Null',
|
||||
__Unused6: 'Null',
|
||||
__Unused7: 'Null',
|
||||
__Unused8: 'Null',
|
||||
__Unused9: 'Null',
|
||||
__Unused10: 'Null',
|
||||
__Unused11: 'Null',
|
||||
__Unused12: 'Null',
|
||||
__Unused13: 'Null',
|
||||
__Unused14: 'Null',
|
||||
__Unused15: 'Null',
|
||||
__Unused16: 'Null',
|
||||
__Unused17: 'Null',
|
||||
__Unused18: 'Null',
|
||||
__Unused19: 'Null',
|
||||
__Unused20: 'Null',
|
||||
__Unused21: 'Null',
|
||||
__Unused22: 'Null',
|
||||
__Unused23: 'Null',
|
||||
__Unused24: 'Null',
|
||||
__Unused25: 'Null',
|
||||
__Unused26: 'Null',
|
||||
__Unused27: 'Null',
|
||||
__Unused28: 'Null',
|
||||
__Unused29: 'Null',
|
||||
__Unused30: 'Null',
|
||||
__Unused31: 'Null',
|
||||
__Unused32: 'Null',
|
||||
__Unused33: 'Null',
|
||||
__Unused34: 'Null',
|
||||
__Unused35: 'Null',
|
||||
__Unused36: 'Null',
|
||||
__Unused37: 'Null',
|
||||
Nis: 'KusamaRuntimeHoldReasonNis'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup536: kusama_runtime::HoldReasonNis
|
||||
**/
|
||||
KusamaRuntimeHoldReasonNis: {
|
||||
_enum: ['NftReceipt']
|
||||
},
|
||||
/**
|
||||
* Lookup810: polkadot_runtime_parachains::disputes::slashing::PendingSlashes
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPendingSlashes: {
|
||||
_alias: {
|
||||
keys_: 'keys'
|
||||
},
|
||||
keys_: 'BTreeMap<u32, PolkadotPrimitivesV4ValidatorAppPublic>',
|
||||
kind: 'PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind'
|
||||
},
|
||||
/**
|
||||
* Lookup814: polkadot_runtime_parachains::disputes::slashing::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletError: {
|
||||
_enum: ['InvalidKeyOwnershipProof', 'InvalidSessionIndex', 'InvalidCandidateHash', 'InvalidValidatorIndex', 'ValidatorIndexIdMismatch', 'DuplicateSlashingReport']
|
||||
},
|
||||
/**
|
||||
* Lookup857: kusama_runtime::Runtime
|
||||
**/
|
||||
KusamaRuntimeRuntime: 'Null'
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -5,40 +5,36 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/lookup';
|
||||
|
||||
import type { Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { BTreeMap, Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name KusamaRuntimeSessionKeys (107) */
|
||||
/** @name KusamaRuntimeSessionKeys (96) */
|
||||
interface KusamaRuntimeSessionKeys extends Struct {
|
||||
readonly grandpa: SpConsensusGrandpaAppPublic;
|
||||
readonly babe: SpConsensusBabeAppPublic;
|
||||
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
|
||||
readonly paraValidator: PolkadotPrimitivesV2ValidatorAppPublic;
|
||||
readonly paraAssignment: PolkadotPrimitivesV2AssignmentAppPublic;
|
||||
readonly paraValidator: PolkadotPrimitivesV4ValidatorAppPublic;
|
||||
readonly paraAssignment: PolkadotPrimitivesV4AssignmentAppPublic;
|
||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeOriginCaller (150) */
|
||||
/** @name KusamaRuntimeOriginCaller (127) */
|
||||
interface KusamaRuntimeOriginCaller extends Enum {
|
||||
readonly isSystem: boolean;
|
||||
readonly asSystem: FrameSupportDispatchRawOrigin;
|
||||
readonly isVoid: boolean;
|
||||
readonly isCouncil: boolean;
|
||||
readonly asCouncil: PalletCollectiveRawOrigin;
|
||||
readonly isTechnicalCommittee: boolean;
|
||||
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
|
||||
readonly isOrigins: boolean;
|
||||
readonly asOrigins: KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
|
||||
readonly isParachainsOrigin: boolean;
|
||||
readonly asParachainsOrigin: PolkadotRuntimeParachainsOriginPalletOrigin;
|
||||
readonly isXcmPallet: boolean;
|
||||
readonly asXcmPallet: PalletXcmOrigin;
|
||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
|
||||
readonly type: 'System' | 'Void' | 'Origins' | 'ParachainsOrigin' | 'XcmPallet';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (154) */
|
||||
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (129) */
|
||||
interface KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
|
||||
readonly isStakingAdmin: boolean;
|
||||
readonly isTreasurer: boolean;
|
||||
@@ -70,7 +66,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'StakingAdmin' | 'Treasurer' | 'FellowshipAdmin' | 'GeneralAdmin' | 'AuctionAdmin' | 'LeaseAdmin' | 'ReferendumCanceller' | 'ReferendumKiller' | 'SmallTipper' | 'BigTipper' | 'SmallSpender' | 'MediumSpender' | 'BigSpender' | 'WhitelistedCaller' | 'FellowshipInitiates' | 'Fellows' | 'FellowshipExperts' | 'FellowshipMasters' | 'Fellowship1Dan' | 'Fellowship2Dan' | 'Fellowship3Dan' | 'Fellowship4Dan' | 'Fellowship5Dan' | 'Fellowship6Dan' | 'Fellowship7Dan' | 'Fellowship8Dan' | 'Fellowship9Dan';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeProxyType (231) */
|
||||
/** @name KusamaRuntimeProxyType (208) */
|
||||
interface KusamaRuntimeProxyType extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNonTransfer: boolean;
|
||||
@@ -80,10 +76,11 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isCancelProxy: boolean;
|
||||
readonly isAuction: boolean;
|
||||
readonly isSociety: boolean;
|
||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
||||
readonly isNominationPools: boolean;
|
||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeNposCompactSolution24 (241) */
|
||||
/** @name KusamaRuntimeNposCompactSolution24 (217) */
|
||||
interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||
@@ -111,7 +108,68 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeRuntime (882) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPalletCall (364) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPalletCall extends Enum {
|
||||
readonly isReportDisputeLostUnsigned: boolean;
|
||||
readonly asReportDisputeLostUnsigned: {
|
||||
readonly disputeProof: PolkadotRuntimeParachainsDisputesSlashingDisputeProof;
|
||||
readonly keyOwnerProof: SpSessionMembershipProof;
|
||||
} & Struct;
|
||||
readonly type: 'ReportDisputeLostUnsigned';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingDisputeProof (365) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingDisputeProof extends Struct {
|
||||
readonly timeSlot: PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot;
|
||||
readonly kind: PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind;
|
||||
readonly validatorIndex: u32;
|
||||
readonly validatorId: PolkadotPrimitivesV4ValidatorAppPublic;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot (366) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot extends Struct {
|
||||
readonly sessionIndex: u32;
|
||||
readonly candidateHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind (367) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind extends Enum {
|
||||
readonly isForInvalid: boolean;
|
||||
readonly isAgainstValid: boolean;
|
||||
readonly type: 'ForInvalid' | 'AgainstValid';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeHoldReason (535) */
|
||||
interface KusamaRuntimeHoldReason extends Enum {
|
||||
readonly isNis: boolean;
|
||||
readonly asNis: KusamaRuntimeHoldReasonNis;
|
||||
readonly type: 'Nis';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeHoldReasonNis (536) */
|
||||
interface KusamaRuntimeHoldReasonNis extends Enum {
|
||||
readonly isNftReceipt: boolean;
|
||||
readonly type: 'NftReceipt';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPendingSlashes (810) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPendingSlashes extends Struct {
|
||||
readonly keys_: BTreeMap<u32, PolkadotPrimitivesV4ValidatorAppPublic>;
|
||||
readonly kind: PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPalletError (814) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPalletError extends Enum {
|
||||
readonly isInvalidKeyOwnershipProof: boolean;
|
||||
readonly isInvalidSessionIndex: boolean;
|
||||
readonly isInvalidCandidateHash: boolean;
|
||||
readonly isInvalidValidatorIndex: boolean;
|
||||
readonly isValidatorIndexIdMismatch: boolean;
|
||||
readonly isDuplicateSlashingReport: boolean;
|
||||
readonly type: 'InvalidKeyOwnershipProof' | 'InvalidSessionIndex' | 'InvalidCandidateHash' | 'InvalidValidatorIndex' | 'ValidatorIndexIdMismatch' | 'DuplicateSlashingReport';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeRuntime (857) */
|
||||
type KusamaRuntimeRuntime = Null;
|
||||
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.1.4' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.3.2' };
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import '@polkadot/types/types/registry';
|
||||
|
||||
import type { Data, StorageKey } from '@polkadot/types';
|
||||
import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';
|
||||
import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, ISize, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, isize, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';
|
||||
import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
|
||||
import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
|
||||
import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
|
||||
@@ -41,12 +41,12 @@ import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfo
|
||||
import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';
|
||||
import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';
|
||||
import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, OpaqueMetadata, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrHash, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||
import type { NpApiError, NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateEvent, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, CoreState, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, GroupRotationInfo, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OccupiedCore, OccupiedCoreAssumption, OldV1SessionInfo, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, PvfCheckStatement, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, ScheduledCore, Scheduling, ScrapedOnChainVotes, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateEvent, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, CoreState, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExecutorParam, ExecutorParams, ExecutorParamsHash, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, GroupRotationInfo, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OccupiedCore, OccupiedCoreAssumption, OldV1SessionInfo, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, PvfCheckStatement, PvfExecTimeoutKind, PvfPrepTimeoutKind, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, ScheduledCore, Scheduling, ScrapedOnChainVotes, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, InclusionFee, RuntimeDispatchInfo, RuntimeDispatchInfoV1, RuntimeDispatchInfoV2 } from '@polkadot/types/interfaces/payment';
|
||||
import type { Approvals } from '@polkadot/types/interfaces/poll';
|
||||
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
|
||||
@@ -441,6 +441,9 @@ declare module '@polkadot/types/types/registry' {
|
||||
EvmLog: EvmLog;
|
||||
EvmVicinity: EvmVicinity;
|
||||
ExecReturnValue: ExecReturnValue;
|
||||
ExecutorParam: ExecutorParam;
|
||||
ExecutorParams: ExecutorParams;
|
||||
ExecutorParamsHash: ExecutorParamsHash;
|
||||
ExitError: ExitError;
|
||||
ExitFatal: ExitFatal;
|
||||
ExitReason: ExitReason;
|
||||
@@ -588,6 +591,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
InteriorMultiLocation: InteriorMultiLocation;
|
||||
InvalidDisputeStatementKind: InvalidDisputeStatementKind;
|
||||
InvalidTransaction: InvalidTransaction;
|
||||
isize: isize;
|
||||
ISize: ISize;
|
||||
Json: Json;
|
||||
Junction: Junction;
|
||||
Junctions: Junctions;
|
||||
@@ -646,6 +651,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
MmrBatchProof: MmrBatchProof;
|
||||
MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;
|
||||
MmrError: MmrError;
|
||||
MmrHash: MmrHash;
|
||||
MmrLeafBatchProof: MmrLeafBatchProof;
|
||||
MmrLeafIndex: MmrLeafIndex;
|
||||
MmrLeafProof: MmrLeafProof;
|
||||
@@ -816,6 +822,8 @@ declare module '@polkadot/types/types/registry' {
|
||||
ProxyState: ProxyState;
|
||||
ProxyType: ProxyType;
|
||||
PvfCheckStatement: PvfCheckStatement;
|
||||
PvfExecTimeoutKind: PvfExecTimeoutKind;
|
||||
PvfPrepTimeoutKind: PvfPrepTimeoutKind;
|
||||
QueryId: QueryId;
|
||||
QueryStatus: QueryStatus;
|
||||
QueueConfigData: QueueConfigData;
|
||||
|
||||
@@ -5,15 +5,23 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/types/registry';
|
||||
|
||||
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeHoldReason, KusamaRuntimeHoldReasonNis, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeSessionKeys, PolkadotRuntimeParachainsDisputesSlashingDisputeProof, PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot, PolkadotRuntimeParachainsDisputesSlashingPalletCall, PolkadotRuntimeParachainsDisputesSlashingPalletError, PolkadotRuntimeParachainsDisputesSlashingPendingSlashes, PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
|
||||
KusamaRuntimeHoldReason: KusamaRuntimeHoldReason;
|
||||
KusamaRuntimeHoldReasonNis: KusamaRuntimeHoldReasonNis;
|
||||
KusamaRuntimeNposCompactSolution24: KusamaRuntimeNposCompactSolution24;
|
||||
KusamaRuntimeOriginCaller: KusamaRuntimeOriginCaller;
|
||||
KusamaRuntimeProxyType: KusamaRuntimeProxyType;
|
||||
KusamaRuntimeRuntime: KusamaRuntimeRuntime;
|
||||
KusamaRuntimeSessionKeys: KusamaRuntimeSessionKeys;
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputeProof: PolkadotRuntimeParachainsDisputesSlashingDisputeProof;
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot: PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot;
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletCall: PolkadotRuntimeParachainsDisputesSlashingPalletCall;
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletError: PolkadotRuntimeParachainsDisputesSlashingPalletError;
|
||||
PolkadotRuntimeParachainsDisputesSlashingPendingSlashes: PolkadotRuntimeParachainsDisputesSlashingPendingSlashes;
|
||||
PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind: PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind;
|
||||
} // InterfaceTypes
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -18,17 +18,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.4",
|
||||
"version": "10.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^11.1.1",
|
||||
"@polkadot/x-bigint": "^11.1.1",
|
||||
"@polkadot/util": "^11.1.3",
|
||||
"@polkadot/x-bigint": "^11.1.3",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.1.4",
|
||||
"@polkadot/types-augment": "10.1.4",
|
||||
"@polkadot/types-support": "10.1.4",
|
||||
"@polkadot/util-crypto": "^11.1.1"
|
||||
"@polkadot/types": "10.3.2",
|
||||
"@polkadot/types-augment": "10.3.2",
|
||||
"@polkadot/types-support": "10.3.2",
|
||||
"@polkadot/util-crypto": "^11.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,6 +90,10 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @description Internal per-item inspection of internal values
|
||||
*/
|
||||
public inspectInner (): Inspect[] {
|
||||
const inner = new Array<Inspect>(this.length);
|
||||
|
||||
@@ -185,6 +189,11 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
: u8aConcatStrict([compactToU8a(this.length), ...encoded]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @description Internal per-item SCALE encoding of contained values
|
||||
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
||||
*/
|
||||
public toU8aInner (isBare?: boolean): Uint8Array[] {
|
||||
const encoded = new Array<Uint8Array>(this.length);
|
||||
|
||||
|
||||
@@ -260,7 +260,6 @@ export abstract class AbstractInt extends BN implements INumber {
|
||||
|
||||
/**
|
||||
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
||||
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
||||
*/
|
||||
public toU8a (_isBare?: boolean): Uint8Array {
|
||||
return bnToU8a(this, {
|
||||
|
||||
@@ -193,7 +193,6 @@ export class Compact<T extends INumber> implements ICompact<T> {
|
||||
|
||||
/**
|
||||
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
||||
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
||||
*/
|
||||
public toU8a (_isBare?: boolean): Uint8Array {
|
||||
return compactToU8a(this.#raw.toBn());
|
||||
|
||||
@@ -53,38 +53,65 @@ export class DoNotConstruct implements Codec {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
eq (): boolean {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
public inspect (): Inspect {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
toHex (): HexString {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
toHuman (): AnyJson {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
toJSON (): AnyJson {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
toPrimitive (): AnyJson {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
toRawType (): string {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
toString (): string {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Unimplemented
|
||||
*/
|
||||
toU8a (): Uint8Array {
|
||||
throw this.#neverError;
|
||||
}
|
||||
|
||||
@@ -460,5 +460,28 @@ describe('Enum', (): void => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('toU8a', (): void => {
|
||||
const Test = Enum.with({
|
||||
A: Text,
|
||||
B: U32
|
||||
});
|
||||
|
||||
it('has a correct toU8a() output', (): void => {
|
||||
expect(
|
||||
new Test(registry, { B: 69 }).toU8a()
|
||||
).toEqual(
|
||||
new Uint8Array([1, 69, 0, 0, 0])
|
||||
);
|
||||
});
|
||||
|
||||
it('has a correct toU8a(true) output', (): void => {
|
||||
expect(
|
||||
new Test(registry, { B: 69 }).toU8a(true)
|
||||
).toEqual(
|
||||
new Uint8Array([69, 0, 0, 0])
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
perf('Enum', 20_000, [[new Uint8Array([0, 31, 32, 33, 34])]], (v: Uint8Array) => new PEnum(registry, v));
|
||||
});
|
||||
|
||||
@@ -89,7 +89,6 @@ export class Null implements Codec {
|
||||
|
||||
/**
|
||||
* @description Encodes the value as a Uint8Array as per the SCALE specifications
|
||||
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
||||
*/
|
||||
public toU8a (_isBare?: boolean): Uint8Array {
|
||||
return new Uint8Array();
|
||||
|
||||
@@ -147,6 +147,12 @@ describe('Option', (): void => {
|
||||
).toEqual(new Uint8Array([1, 4 << 2, 49, 50, 51, 52]));
|
||||
});
|
||||
|
||||
it('allows bare specifiers on toU8a', (): void => {
|
||||
expect(
|
||||
new Option(registry, Text, '1234').toU8a(true)
|
||||
).toEqual(new Uint8Array([49, 50, 51, 52]));
|
||||
});
|
||||
|
||||
it('converts toU8a() without', (): void => {
|
||||
expect(
|
||||
new Option(registry, Text).toU8a()
|
||||
|
||||
@@ -86,7 +86,7 @@ describe('Vec', (): void => {
|
||||
expect(vector.toString()).toEqual('[1, 23, 345, 4567, 56789]');
|
||||
});
|
||||
|
||||
it('encodes with length prefix', (): void => {
|
||||
it('encodes with length prefix on toU8a()', (): void => {
|
||||
expect(vector.toU8a()).toEqual(new Uint8Array([
|
||||
5 << 2,
|
||||
1 << 2, 49,
|
||||
@@ -97,6 +97,16 @@ describe('Vec', (): void => {
|
||||
]));
|
||||
});
|
||||
|
||||
it('encodes without length prefix on toU8a(true)', (): void => {
|
||||
expect(vector.toU8a(true)).toEqual(new Uint8Array([
|
||||
1 << 2, 49,
|
||||
2 << 2, 50, 51,
|
||||
3 << 2, 51, 52, 53,
|
||||
4 << 2, 52, 53, 54, 55,
|
||||
5 << 2, 53, 54, 55, 56, 57
|
||||
]));
|
||||
});
|
||||
|
||||
it('exposes the type', (): void => {
|
||||
expect(vector.Type).toEqual('Text');
|
||||
});
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
||||
|
||||
import type { CodecClass, CodecTo } from '@polkadot/types-codec/types';
|
||||
import type { ITuple } from '../types/interfaces.js';
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { BTreeSet, Enum, I32, Struct, Text, Tuple, U32 } from '@polkadot/types-codec';
|
||||
|
||||
import { ITuple } from '../types/interfaces.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
class U32TextTuple extends (Tuple.with([U32, Text]) as unknown as CodecClass<ITuple<[U32, Text]>>) {}
|
||||
|
||||
@@ -48,6 +48,44 @@ describe('BitVec', (): void => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('toBoolArray() ordering', (): void => {
|
||||
it('defaults to Lsb', (): void => {
|
||||
expect(
|
||||
new BitVec(registry, '0x0100010500').toBoolArray()
|
||||
).toEqual([
|
||||
true, false, false, false, false, false, false, false,
|
||||
false, false, false, false, false, false, false, false,
|
||||
true, false, false, false, false, false, false, false,
|
||||
true, false, true, false, false, false, false, false,
|
||||
false, false, false, false, false, false, false, false
|
||||
]);
|
||||
});
|
||||
|
||||
it('can output to Msb', (): void => {
|
||||
expect(
|
||||
new BitVec(registry, '0x0100010500', true).toBoolArray()
|
||||
).toEqual([
|
||||
false, false, false, false, false, false, false, true,
|
||||
false, false, false, false, false, false, false, false,
|
||||
false, false, false, false, false, false, false, true,
|
||||
false, false, false, false, false, true, false, true,
|
||||
false, false, false, false, false, false, false, false
|
||||
]);
|
||||
});
|
||||
|
||||
it('outputs all LSB bits', (): void => {
|
||||
expect(
|
||||
new BitVec(registry, '0x01000105ff').toBoolArray()
|
||||
).toEqual([
|
||||
true, false, false, false, false, false, false, false,
|
||||
false, false, false, false, false, false, false, false,
|
||||
true, false, false, false, false, false, false, false,
|
||||
true, false, true, false, false, false, false, false,
|
||||
true, true, true, true, true, true, true, true
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
it('has a sane inspect', (): void => {
|
||||
expect(
|
||||
new BitVec(registry, '0x0837').inspect()
|
||||
|
||||
@@ -73,6 +73,39 @@ export class BitVec extends Raw {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Creates a boolean array of the bit values
|
||||
*/
|
||||
public toBoolArray (): boolean[] {
|
||||
const map = [...this.toU8a(true)].map((v) => [
|
||||
!!(v & 0b1000_0000),
|
||||
!!(v & 0b0100_0000),
|
||||
!!(v & 0b0010_0000),
|
||||
!!(v & 0b0001_0000),
|
||||
!!(v & 0b0000_1000),
|
||||
!!(v & 0b0000_0100),
|
||||
!!(v & 0b0000_0010),
|
||||
!!(v & 0b0000_0001)
|
||||
]);
|
||||
const result = new Array<boolean>(8 * map.length);
|
||||
|
||||
for (let i = 0; i < map.length; i++) {
|
||||
const off = i * 8;
|
||||
const v = map[i];
|
||||
|
||||
for (let j = 0; j < 8; j++) {
|
||||
result[off + j] = this.#isMsb
|
||||
? v[j]
|
||||
: v[7 - j];
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public override toHuman (): string {
|
||||
return `0b${
|
||||
[...this.toU8a(true)]
|
||||
@@ -94,7 +127,7 @@ export class BitVec extends Raw {
|
||||
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
||||
*/
|
||||
public override toU8a (isBare?: boolean): Uint8Array {
|
||||
const bitVec = super.toU8a();
|
||||
const bitVec = super.toU8a(isBare);
|
||||
|
||||
return isBare
|
||||
? bitVec
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user