Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
603b762d0e | ||
|
|
8c43bcf405 | ||
|
|
a0e4fa0570 | ||
|
|
d7b4adc050 | ||
|
|
ef97ea7d00 | ||
|
|
af9e1931e6 | ||
|
|
576887d508 | ||
|
|
57e9857ed8 | ||
|
|
f59b5b8d92 | ||
|
|
4cb0281340 | ||
|
|
9c5ca08106 | ||
|
|
fde69670f1 | ||
|
|
2da085afb8 | ||
|
|
973cc13873 | ||
|
|
61e5f91e5b | ||
|
|
8c52f050fe | ||
|
|
d1bf4402cf | ||
|
|
d3eb1de49b | ||
|
|
46076c5595 | ||
|
|
ba4e74f67c | ||
|
|
d303f553a1 | ||
|
|
ad71405fd8 | ||
|
|
3f6127d854 | ||
|
|
9353536db0 | ||
|
|
dcc4583c32 | ||
|
|
2c96b71c30 | ||
|
|
9b3258a65a | ||
|
|
d191d07782 | ||
|
|
fe2103e5d4 | ||
|
|
ee42e3a86c | ||
|
|
12fd31def5 | ||
|
|
a3901ca7ad | ||
|
|
d22a2918ce | ||
|
|
62cbf7b8b6 | ||
|
|
c874a22c78 | ||
|
|
b21cc0ae06 | ||
|
|
cad2b0fefe | ||
|
|
dd6dd83af7 | ||
|
|
e0e86b1383 | ||
|
|
d8446d535a | ||
|
|
225ae80b95 | ||
|
|
71d3d10f0e | ||
|
|
aa82c74493 | ||
|
|
3cd75c74a7 | ||
|
|
b90a1e388f | ||
|
|
b2f67ffae1 | ||
|
|
9aa696dbb6 | ||
|
|
6b80d3415b | ||
|
|
e23401092f | ||
|
|
a34e14a89f | ||
|
|
8dd13e181a | ||
|
|
3525070d92 | ||
|
|
744a2f7325 | ||
|
|
135e2b2ccc | ||
|
|
521fa2026d | ||
|
|
5c81e4fd3b | ||
|
|
27d21ce117 | ||
|
|
417e46016b | ||
|
|
fc7bb681f5 | ||
|
|
a0592986fa | ||
|
|
d9aa61c786 | ||
|
|
8883d355ff | ||
|
|
2ca657257c | ||
|
|
482471b878 | ||
|
|
627f990166 | ||
|
|
a73603cf0a | ||
|
|
1744544552 | ||
|
|
408de16495 | ||
|
|
2822c43df3 | ||
|
|
4fd3ac4097 | ||
|
|
2c33d3d452 | ||
|
|
65c1b8b26d | ||
|
|
7c6012ab07 | ||
|
|
0da2c25abd | ||
|
|
2f0036e34a | ||
|
|
bf4cff113a | ||
|
|
3f3c51d652 |
@@ -1,5 +1,82 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 9.10.1 Dec 4, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust payloads to use `BlockHash` types (as applicable)
|
||||||
|
- Adjust type-only imports in `ScProvider`
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
- Update to `@polkadot/util` 10.2.1
|
||||||
|
|
||||||
|
|
||||||
|
## 9.9.4 Nov 28, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Fix dispatchQueue preimage retrieval in derives
|
||||||
|
- No change from incorrectly published 9.9.3
|
||||||
|
|
||||||
|
|
||||||
|
## 9.9.2 Nov 27, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.9.1 Nov 20, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
- Adjust code for latest Eslint & TS released versions
|
||||||
|
|
||||||
|
|
||||||
|
## 9.8.2 Nov 16, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust `api.rpc.payment.queryInfo` to always return `WeightV1` responses
|
||||||
|
- Mark `api.rpc.payment.queryInfo` as deprecated (will be in a future Substrate version)
|
||||||
|
|
||||||
|
|
||||||
|
## 9.8.1 Nov 13, 2022
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Params encoding fix for `api.rpc(...)` (Thanks to https://github.com/xlc)
|
||||||
|
- Support for `WeightV2` contract interfaces (Thanks to https://github.com/jasl)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Cater for `TransactionPaymentApi/2` runtime calls
|
||||||
|
- Add getters for `has{DryRun, PaymentInfo}` on submittables (feature detection)
|
||||||
|
- Polkadot 9300, Kusama 9300 & Westend 9310/9320 upgrade blocks
|
||||||
|
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.7.1 Nov 6, 2022
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Update `@substrate/connect` to latest (Thanks to https://github.com/wirednkod)
|
||||||
|
- Add `api.rpc(method, ...params)` support (Thanks to https://github.com/xlc)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Align `ScProvider` code structure with other providers
|
||||||
|
- Add `isClonable` getter on providers (some, e.g. sc doesn't support this)
|
||||||
|
- Update to latest Substrate metadata
|
||||||
|
|
||||||
|
|
||||||
|
## 9.6.2 Oct 30, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Adjust historic `DispatchError` type for `statemint/statemine`
|
||||||
|
|
||||||
|
|
||||||
## 9.6.1 Oct 23, 2022
|
## 9.6.1 Oct 23, 2022
|
||||||
|
|
||||||
Contributed:
|
Contributed:
|
||||||
|
|||||||
+4
-3
@@ -1,11 +1,11 @@
|
|||||||
3261 Jaco 9.6.1 (#5289)
|
3296 Jaco 9.10.1 (#5364)
|
||||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||||
37 Keith Ingram Update contract types and rpc (#4541)
|
37 Keith Ingram Update contract types and rpc (#4541)
|
||||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||||
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
|
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
|
||||||
16 Xiliang Chen implement entriesPaged and keysPages for query at (#4701)
|
18 Xiliang Chen fix unkown rpc (#5325)
|
||||||
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
||||||
13 Nikos Kontakis Bump Substrate connect to 0.7.15 (#5275)
|
14 Nikos Kontakis Bump substrate connect to 0.7.16 (#5307)
|
||||||
11 Ian He HttpProvider support clone() (#3949)
|
11 Ian He HttpProvider support clone() (#3949)
|
||||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||||
5 Chevdor Fix metadata package link (#3458)
|
5 Chevdor Fix metadata package link (#3458)
|
||||||
@@ -73,6 +73,7 @@
|
|||||||
1 Joey don't throw error at `onSocketClose` (#4363)
|
1 Joey don't throw error at `onSocketClose` (#4363)
|
||||||
1 Jordan Allow typegen for custom RPCs (#2876)
|
1 Jordan Allow typegen for custom RPCs (#2876)
|
||||||
1 JQQQ Allow rpc expose definition/ metadata (#3488)
|
1 JQQQ Allow rpc expose definition/ metadata (#3488)
|
||||||
|
1 Jun Jiang Update contract' gas to Weight type (#5324)
|
||||||
1 Kian Paimani Update definitions.ts (#2514)
|
1 Kian Paimani Update definitions.ts (#2514)
|
||||||
1 Krzysztof Jelski Derive for bounties and descriptions (#2925)
|
1 Krzysztof Jelski Derive for bounties and descriptions (#2925)
|
||||||
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
1 Lae Make sure awaiting on an api object won't stuck forever on error (#1763)
|
||||||
|
|||||||
+8
-8
@@ -11,10 +11,10 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "9.6.1",
|
"git": "9.10.1",
|
||||||
"npm": "9.6.1"
|
"npm": "9.10.1"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -36,15 +36,15 @@
|
|||||||
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.19.6",
|
"@babel/core": "^7.20.2",
|
||||||
"@babel/register": "^7.18.9",
|
"@babel/register": "^7.18.9",
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/dev": "^0.67.147",
|
"@polkadot/dev": "^0.67.167",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^29.2.0",
|
"@types/jest": "^29.2.3",
|
||||||
"copyfiles": "^2.4.1"
|
"copyfiles": "^2.4.1"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.8.4"
|
"typescript": "^4.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/api-base": "9.6.1",
|
"@polkadot/api-base": "9.10.1",
|
||||||
"@polkadot/rpc-augment": "9.6.1",
|
"@polkadot/rpc-augment": "9.10.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-augment": "9.6.1",
|
"@polkadot/types-augment": "9.10.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11"
|
"@polkadot/util": "^10.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types-support": "9.6.1"
|
"@polkadot/types-support": "9.10.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import '@polkadot/api-base/types/consts';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
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, 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, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } 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>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -156,6 +156,26 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[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: {
|
crowdloan: {
|
||||||
/**
|
/**
|
||||||
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
||||||
@@ -202,6 +222,14 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* How often (in blocks) new public referenda are launched.
|
* How often (in blocks) new public referenda are launched.
|
||||||
**/
|
**/
|
||||||
launchPeriod: u32 & AugmentedConst<ApiType>;
|
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.
|
* The maximum number of public proposals that can exist at any time.
|
||||||
**/
|
**/
|
||||||
@@ -217,10 +245,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The minimum amount to be used as a deposit for a public referendum proposal.
|
* The minimum amount to be used as a deposit for a public referendum proposal.
|
||||||
**/
|
**/
|
||||||
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
/**
|
|
||||||
* The amount of balance that must be deposited per byte of preimage stored.
|
|
||||||
**/
|
|
||||||
preimageByteDeposit: u128 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The minimum period of vote locking.
|
* The minimum period of vote locking.
|
||||||
*
|
*
|
||||||
@@ -258,9 +282,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* take place over multiple blocks.
|
* take place over multiple blocks.
|
||||||
**/
|
**/
|
||||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of winners that can be elected by this `ElectionProvider`
|
||||||
|
* implementation.
|
||||||
|
*
|
||||||
|
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
||||||
|
**/
|
||||||
|
maxWinners: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxWeight: Weight & AugmentedConst<ApiType>;
|
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||||
**/
|
**/
|
||||||
@@ -305,7 +336,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
||||||
* this value.
|
* this value.
|
||||||
**/
|
**/
|
||||||
signedMaxWeight: Weight & AugmentedConst<ApiType>;
|
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Duration of the signed phase.
|
* Duration of the signed phase.
|
||||||
**/
|
**/
|
||||||
@@ -323,6 +354,46 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
fastUnstake: {
|
||||||
|
/**
|
||||||
|
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
||||||
|
* the costs of resources on unsuccessful unstake.
|
||||||
|
**/
|
||||||
|
deposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
|
fellowshipReferenda: {
|
||||||
|
/**
|
||||||
|
* 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;
|
||||||
|
};
|
||||||
gilt: {
|
gilt: {
|
||||||
/**
|
/**
|
||||||
* Portion of the queue which is free from ordering and just a FIFO.
|
* Portion of the queue which is free from ordering and just a FIFO.
|
||||||
@@ -458,7 +529,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The maximum amount of signatories allowed in the multisig.
|
* The maximum amount of signatories allowed in the multisig.
|
||||||
**/
|
**/
|
||||||
maxSignatories: u16 & AugmentedConst<ApiType>;
|
maxSignatories: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -633,6 +704,35 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[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: {
|
registrar: {
|
||||||
/**
|
/**
|
||||||
* The deposit to be paid per byte stored on chain.
|
* The deposit to be paid per byte stored on chain.
|
||||||
@@ -650,13 +750,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
};
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* The maximum weight that may be scheduled per block for any dispatchables of less
|
* The maximum weight that may be scheduled per block for any dispatchables.
|
||||||
* priority than `schedule::HARD_DEADLINE`.
|
|
||||||
**/
|
**/
|
||||||
maximumWeight: Weight & AugmentedConst<ApiType>;
|
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of scheduled calls in the queue for a single block.
|
* The maximum number of scheduled calls in the queue for a single block.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
|
||||||
**/
|
**/
|
||||||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -249,6 +249,61 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[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: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* Members are already initialized!
|
* Members are already initialized!
|
||||||
@@ -406,18 +461,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Identity may not veto a proposal twice
|
* Identity may not veto a proposal twice
|
||||||
**/
|
**/
|
||||||
AlreadyVetoed: AugmentedError<ApiType>;
|
AlreadyVetoed: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Preimage already noted
|
|
||||||
**/
|
|
||||||
DuplicatePreimage: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Proposal already made
|
* Proposal already made
|
||||||
**/
|
**/
|
||||||
DuplicateProposal: AugmentedError<ApiType>;
|
DuplicateProposal: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Imminent
|
|
||||||
**/
|
|
||||||
Imminent: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The instant referendum origin is currently disallowed.
|
* The instant referendum origin is currently disallowed.
|
||||||
**/
|
**/
|
||||||
@@ -454,10 +501,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The account is not currently delegating.
|
* The account is not currently delegating.
|
||||||
**/
|
**/
|
||||||
NotDelegating: AugmentedError<ApiType>;
|
NotDelegating: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Not imminent
|
|
||||||
**/
|
|
||||||
NotImminent: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Next external proposal not simple majority
|
* Next external proposal not simple majority
|
||||||
**/
|
**/
|
||||||
@@ -466,14 +509,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The given account did not vote on the referendum.
|
* The given account did not vote on the referendum.
|
||||||
**/
|
**/
|
||||||
NotVoter: AugmentedError<ApiType>;
|
NotVoter: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Invalid preimage
|
|
||||||
**/
|
|
||||||
PreimageInvalid: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Preimage not found
|
|
||||||
**/
|
|
||||||
PreimageMissing: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Proposal still blacklisted
|
* Proposal still blacklisted
|
||||||
**/
|
**/
|
||||||
@@ -487,13 +522,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
ReferendumInvalid: AugmentedError<ApiType>;
|
ReferendumInvalid: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too early
|
* Maximum number of items reached.
|
||||||
**/
|
**/
|
||||||
TooEarly: AugmentedError<ApiType>;
|
TooMany: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Maximum number of proposals reached.
|
|
||||||
**/
|
|
||||||
TooManyProposals: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Value too low
|
* Value too low
|
||||||
**/
|
**/
|
||||||
@@ -517,6 +548,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
|
/**
|
||||||
|
* Some bound not met
|
||||||
|
**/
|
||||||
|
BoundNotMet: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The call is not allowed at this point.
|
* The call is not allowed at this point.
|
||||||
**/
|
**/
|
||||||
@@ -565,6 +600,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The signed submission consumes too much weight
|
* The signed submission consumes too much weight
|
||||||
**/
|
**/
|
||||||
SignedTooMuchWeight: AugmentedError<ApiType>;
|
SignedTooMuchWeight: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Submitted solution has too many winners
|
||||||
|
**/
|
||||||
|
TooManyWinners: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -602,6 +641,98 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
fellowshipCollective: {
|
||||||
|
/**
|
||||||
|
* Account is already a member.
|
||||||
|
**/
|
||||||
|
AlreadyMember: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Unexpected error in state.
|
||||||
|
**/
|
||||||
|
Corruption: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The information provided is incorrect.
|
||||||
|
**/
|
||||||
|
InvalidWitness: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* There are no further records to be removed.
|
||||||
|
**/
|
||||||
|
NoneRemaining: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The origin is not sufficiently privileged to do the operation.
|
||||||
|
**/
|
||||||
|
NoPermission: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Account is not a member.
|
||||||
|
**/
|
||||||
|
NotMember: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given poll index is unknown or has closed.
|
||||||
|
**/
|
||||||
|
NotPolling: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The given poll is still ongoing.
|
||||||
|
**/
|
||||||
|
Ongoing: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The member's rank is too low to vote.
|
||||||
|
**/
|
||||||
|
RankTooLow: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic error
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedError<ApiType>;
|
||||||
|
};
|
||||||
|
fellowshipReferenda: {
|
||||||
|
/**
|
||||||
|
* The referendum index provided is invalid in this context.
|
||||||
|
**/
|
||||||
|
BadReferendum: 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 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>;
|
||||||
|
};
|
||||||
gilt: {
|
gilt: {
|
||||||
/**
|
/**
|
||||||
* The amount of the bid is less than the minimum allowed.
|
* The amount of the bid is less than the minimum allowed.
|
||||||
@@ -792,6 +923,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Judgement given.
|
* Judgement given.
|
||||||
**/
|
**/
|
||||||
JudgementGiven: AugmentedError<ApiType>;
|
JudgementGiven: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Error that occurs when there is an issue paying for judgement.
|
||||||
|
**/
|
||||||
|
JudgementPaymentFailed: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* No identity found.
|
* No identity found.
|
||||||
**/
|
**/
|
||||||
@@ -963,6 +1098,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* anymore to, for example, collect rewards).
|
* anymore to, for example, collect rewards).
|
||||||
**/
|
**/
|
||||||
FullyUnbonding: AugmentedError<ApiType>;
|
FullyUnbonding: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Pool id provided is not correct/usable.
|
||||||
|
**/
|
||||||
|
InvalidPoolId: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too many members in the pool or system.
|
* Too many members in the pool or system.
|
||||||
**/
|
**/
|
||||||
@@ -1012,6 +1151,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Partial unbonding now allowed permissionlessly.
|
* Partial unbonding now allowed permissionlessly.
|
||||||
**/
|
**/
|
||||||
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Pool id currently in use.
|
||||||
|
**/
|
||||||
|
PoolIdInUse: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* An account is not a member.
|
* An account is not a member.
|
||||||
**/
|
**/
|
||||||
@@ -1206,6 +1349,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Para cannot be upgraded to a parachain.
|
* Para cannot be upgraded to a parachain.
|
||||||
**/
|
**/
|
||||||
CannotUpgrade: AugmentedError<ApiType>;
|
CannotUpgrade: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Parachain cannot currently schedule a code upgrade.
|
||||||
|
**/
|
||||||
|
CannotUpgradeCode: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Para is not registered in our system.
|
* Para is not registered in our system.
|
||||||
**/
|
**/
|
||||||
@@ -1376,7 +1523,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
/**
|
/**
|
||||||
* Preimage is too large to store on-chain.
|
* Preimage is too large to store on-chain.
|
||||||
**/
|
**/
|
||||||
TooLarge: AugmentedError<ApiType>;
|
TooBig: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1490,6 +1637,56 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
|
referenda: {
|
||||||
|
/**
|
||||||
|
* The referendum index provided is invalid in this context.
|
||||||
|
**/
|
||||||
|
BadReferendum: 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 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: {
|
registrar: {
|
||||||
/**
|
/**
|
||||||
* The ID is already registered.
|
* The ID is already registered.
|
||||||
@@ -1558,6 +1755,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Failed to schedule a call
|
* Failed to schedule a call
|
||||||
**/
|
**/
|
||||||
FailedToSchedule: AugmentedError<ApiType>;
|
FailedToSchedule: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Attempt to use a non-named function on a named task.
|
||||||
|
**/
|
||||||
|
Named: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Cannot find the scheduled call.
|
* Cannot find the scheduled call.
|
||||||
**/
|
**/
|
||||||
@@ -1794,8 +1995,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
TooManyTargets: AugmentedError<ApiType>;
|
TooManyTargets: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* There are too many validators in the system. Governance needs to adjust the staking
|
* There are too many validator candidates in the system. Governance needs to adjust the
|
||||||
* settings to keep things safe for the runtime.
|
* staking settings to keep things safe for the runtime.
|
||||||
**/
|
**/
|
||||||
TooManyValidators: AugmentedError<ApiType>;
|
TooManyValidators: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -2019,6 +2220,32 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedError<ApiType>;
|
[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: {
|
xcmPallet: {
|
||||||
/**
|
/**
|
||||||
* The location is invalid since it already has a subscription from us.
|
* The location is invalid since it already has a subscription from us.
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ 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 { 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 { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -167,6 +167,20 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[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: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* A motion was approved by the required threshold.
|
* A motion was approved by the required threshold.
|
||||||
@@ -263,10 +277,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An account has delegated their vote to another account.
|
* An account has delegated their vote to another account.
|
||||||
**/
|
**/
|
||||||
Delegated: AugmentedEvent<ApiType, [who: AccountId32, target: AccountId32], { who: AccountId32, target: AccountId32 }>;
|
Delegated: AugmentedEvent<ApiType, [who: AccountId32, target: AccountId32], { who: AccountId32, target: AccountId32 }>;
|
||||||
/**
|
|
||||||
* A proposal has been enacted.
|
|
||||||
**/
|
|
||||||
Executed: AugmentedEvent<ApiType, [refIndex: u32, result: Result<Null, SpRuntimeDispatchError>], { refIndex: u32, result: Result<Null, SpRuntimeDispatchError> }>;
|
|
||||||
/**
|
/**
|
||||||
* An external proposal has been tabled.
|
* An external proposal has been tabled.
|
||||||
**/
|
**/
|
||||||
@@ -279,26 +289,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A proposal has been approved by referendum.
|
* A proposal has been approved by referendum.
|
||||||
**/
|
**/
|
||||||
Passed: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
Passed: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
||||||
/**
|
|
||||||
* A proposal could not be executed because its preimage was invalid.
|
|
||||||
**/
|
|
||||||
PreimageInvalid: AugmentedEvent<ApiType, [proposalHash: H256, refIndex: u32], { proposalHash: H256, refIndex: u32 }>;
|
|
||||||
/**
|
|
||||||
* A proposal could not be executed because its preimage was missing.
|
|
||||||
**/
|
|
||||||
PreimageMissing: AugmentedEvent<ApiType, [proposalHash: H256, refIndex: u32], { proposalHash: H256, refIndex: u32 }>;
|
|
||||||
/**
|
|
||||||
* A proposal's preimage was noted, and the deposit taken.
|
|
||||||
**/
|
|
||||||
PreimageNoted: AugmentedEvent<ApiType, [proposalHash: H256, who: AccountId32, deposit: u128], { proposalHash: H256, who: AccountId32, deposit: u128 }>;
|
|
||||||
/**
|
|
||||||
* A registered preimage was removed and the deposit collected by the reaper.
|
|
||||||
**/
|
|
||||||
PreimageReaped: AugmentedEvent<ApiType, [proposalHash: H256, provider: AccountId32, deposit: u128, reaper: AccountId32], { proposalHash: H256, provider: AccountId32, deposit: u128, reaper: AccountId32 }>;
|
|
||||||
/**
|
|
||||||
* A proposal preimage was removed and used (the deposit was returned).
|
|
||||||
**/
|
|
||||||
PreimageUsed: AugmentedEvent<ApiType, [proposalHash: H256, provider: AccountId32, deposit: u128], { proposalHash: H256, provider: AccountId32, deposit: u128 }>;
|
|
||||||
/**
|
/**
|
||||||
* A proposal got canceled.
|
* A proposal got canceled.
|
||||||
**/
|
**/
|
||||||
@@ -318,7 +308,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A public proposal has been tabled for referendum vote.
|
* A public proposal has been tabled for referendum vote.
|
||||||
**/
|
**/
|
||||||
Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128, depositors: Vec<AccountId32>], { proposalIndex: u32, deposit: u128, depositors: Vec<AccountId32> }>;
|
Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
|
||||||
/**
|
/**
|
||||||
* An account has cancelled a previous delegation operation.
|
* An account has cancelled a previous delegation operation.
|
||||||
**/
|
**/
|
||||||
@@ -379,14 +369,16 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
};
|
};
|
||||||
fastUnstake: {
|
fastUnstake: {
|
||||||
/**
|
/**
|
||||||
* A staker was partially checked for the given eras, but the process did not finish.
|
* A batch was partially checked for the given eras, but the process did not finish.
|
||||||
**/
|
**/
|
||||||
Checking: AugmentedEvent<ApiType, [stash: AccountId32, eras: Vec<u32>], { stash: AccountId32, eras: Vec<u32> }>;
|
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
||||||
/**
|
/**
|
||||||
* Some internal error happened while migrating stash. They are removed as head as a
|
* A batch was terminated.
|
||||||
* consequence.
|
*
|
||||||
|
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
||||||
|
* of the batch. A new batch will be created upon next block.
|
||||||
**/
|
**/
|
||||||
Errored: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
BatchFinished: AugmentedEvent<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* An internal error happened. Operations will be paused now.
|
* An internal error happened. Operations will be paused now.
|
||||||
**/
|
**/
|
||||||
@@ -404,6 +396,81 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
fellowshipCollective: {
|
||||||
|
/**
|
||||||
|
* A member `who` has been added.
|
||||||
|
**/
|
||||||
|
MemberAdded: AugmentedEvent<ApiType, [who: AccountId32], { who: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* The member `who` of given `rank` has been removed from the collective.
|
||||||
|
**/
|
||||||
|
MemberRemoved: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
||||||
|
/**
|
||||||
|
* The member `who`se rank has been changed to the given `rank`.
|
||||||
|
**/
|
||||||
|
RankChanged: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
||||||
|
/**
|
||||||
|
* The member `who` has voted for the `poll` with the given `vote` leading to an updated
|
||||||
|
* `tally`.
|
||||||
|
**/
|
||||||
|
Voted: AugmentedEvent<ApiType, [who: AccountId32, poll: u32, vote: PalletRankedCollectiveVoteRecord, tally: PalletRankedCollectiveTally], { who: AccountId32, poll: u32, vote: PalletRankedCollectiveVoteRecord, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
|
fellowshipReferenda: {
|
||||||
|
/**
|
||||||
|
* 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: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
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: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
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: PalletRankedCollectiveTally], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* 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: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* A proposal has been rejected by referendum.
|
||||||
|
**/
|
||||||
|
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* 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: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
gilt: {
|
gilt: {
|
||||||
/**
|
/**
|
||||||
* A bid was successfully placed.
|
* A bid was successfully placed.
|
||||||
@@ -449,6 +516,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* HRMP channel closed. `[by_parachain, channel_id]`
|
* HRMP channel closed. `[by_parachain, channel_id]`
|
||||||
**/
|
**/
|
||||||
ChannelClosed: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
|
ChannelClosed: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
|
||||||
|
/**
|
||||||
|
* An HRMP channel was opened via Root origin.
|
||||||
|
* `[sender, recipient, proposed_max_capacity, proposed_max_message_size]`
|
||||||
|
**/
|
||||||
|
HrmpChannelForceOpened: AugmentedEvent<ApiType, [u32, u32, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Open HRMP channel accepted. `[sender, recipient]`
|
* Open HRMP channel accepted. `[sender, recipient]`
|
||||||
**/
|
**/
|
||||||
@@ -857,6 +929,58 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[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 }>;
|
||||||
|
/**
|
||||||
|
* A proposal has been rejected by referendum.
|
||||||
|
**/
|
||||||
|
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||||
|
/**
|
||||||
|
* 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: {
|
registrar: {
|
||||||
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
||||||
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
||||||
@@ -870,7 +994,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* The call for the provided hash was not found so the task has been aborted.
|
* The call for the provided hash was not found so the task has been aborted.
|
||||||
**/
|
**/
|
||||||
CallLookupFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<Bytes>, error: FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option<Bytes>, error: FrameSupportScheduleLookupError }>;
|
CallUnavailable: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
/**
|
/**
|
||||||
* Canceled some task.
|
* Canceled some task.
|
||||||
**/
|
**/
|
||||||
@@ -878,7 +1002,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Dispatched some task.
|
* Dispatched some task.
|
||||||
**/
|
**/
|
||||||
Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<Bytes>, result: Result<Null, SpRuntimeDispatchError>], { task: ITuple<[u32, u32]>, id: Option<Bytes>, result: Result<Null, SpRuntimeDispatchError> }>;
|
Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||||
|
/**
|
||||||
|
* The given task was unable to be renewed since the agenda is full at that block.
|
||||||
|
**/
|
||||||
|
PeriodicFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
|
/**
|
||||||
|
* The given task can never be executed since it is overweight.
|
||||||
|
**/
|
||||||
|
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
/**
|
/**
|
||||||
* Scheduled some task.
|
* Scheduled some task.
|
||||||
**/
|
**/
|
||||||
@@ -1242,14 +1374,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ para, id, overweight_index, required \]
|
* \[ para, id, overweight_index, required \]
|
||||||
**/
|
**/
|
||||||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, Weight]>;
|
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Upward message from the overweight queue was executed with the given actual weight
|
* Upward message from the overweight queue was executed with the given actual weight
|
||||||
* used.
|
* used.
|
||||||
*
|
*
|
||||||
* \[ overweight_index, used \]
|
* \[ overweight_index, used \]
|
||||||
**/
|
**/
|
||||||
OverweightServiced: AugmentedEvent<ApiType, [u64, Weight]>;
|
OverweightServiced: AugmentedEvent<ApiType, [u64, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Upward message is unsupported version of XCM.
|
* Upward message is unsupported version of XCM.
|
||||||
* \[ id \]
|
* \[ id \]
|
||||||
@@ -1264,7 +1396,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The weight limit for handling upward messages was reached.
|
* The weight limit for handling upward messages was reached.
|
||||||
* \[ id, remaining, required \]
|
* \[ id, remaining, required \]
|
||||||
**/
|
**/
|
||||||
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, Weight, Weight]>;
|
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1330,7 +1462,22 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[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: {
|
xcmPallet: {
|
||||||
|
/**
|
||||||
|
* Some assets have been claimed from an asset trap
|
||||||
|
*
|
||||||
|
* \[ hash, origin, assets \]
|
||||||
|
**/
|
||||||
|
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Some assets have been placed in an asset trap.
|
* Some assets have been placed in an asset trap.
|
||||||
*
|
*
|
||||||
@@ -1392,7 +1539,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
||||||
**/
|
**/
|
||||||
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, Weight, Weight]>;
|
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* A given location which had a version change subscription was dropped owing to an error
|
* A given location which had a version change subscription was dropped owing to an error
|
||||||
* migrating the location to our new XCM format.
|
* migrating the location to our new XCM format.
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
import type { 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 { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -317,6 +317,23 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[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: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* The current members of the collective. This is stored sorted (just by value).
|
* The current members of the collective. This is stored sorted (just by value).
|
||||||
@@ -402,20 +419,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* - `LastTabledWasExternal` is `false`; or
|
* - `LastTabledWasExternal` is `false`; or
|
||||||
* - `PublicProps` is empty.
|
* - `PublicProps` is empty.
|
||||||
**/
|
**/
|
||||||
nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[H256, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Map of hashes to the proposal preimage, along with who registered it and their deposit.
|
|
||||||
* The block number is the block at which it was deposited.
|
|
||||||
**/
|
|
||||||
preimages: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletDemocracyPreimageStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
||||||
/**
|
/**
|
||||||
* The number of (public) proposals that have been made so far.
|
* The number of (public) proposals that have been made so far.
|
||||||
**/
|
**/
|
||||||
publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The public proposals. Unsorted. The second item is the proposal's hash.
|
* The public proposals. Unsorted. The second item is the proposal.
|
||||||
**/
|
**/
|
||||||
publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, H256, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, FrameSupportPreimagesBounded, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The next free referendum index, aka the number of referenda started so far.
|
* The next free referendum index, aka the number of referenda started so far.
|
||||||
**/
|
**/
|
||||||
@@ -426,12 +438,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
|
* 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]>;
|
referendumInfoOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletDemocracyReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* New networks start with last version.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<Option<PalletDemocracyReleases>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* All votes for a particular voter. We store the balance for the number of votes that we
|
* 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.
|
* have recorded. The second item is the total amount of delegations, that will be added.
|
||||||
@@ -496,14 +502,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* A sorted, bounded set of `(score, index)`, where each `index` points to a value in
|
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
||||||
* `SignedSubmissions`.
|
* value in `SignedSubmissions`.
|
||||||
*
|
*
|
||||||
* We never need to process more than a single signed submission at a time. Signed submissions
|
* We never need to process more than a single signed submission at a time. Signed submissions
|
||||||
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
||||||
* them one at a time instead of reading and decoding all of them at once.
|
* them one at a time instead of reading and decoding all of them at once.
|
||||||
**/
|
**/
|
||||||
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<SpNposElectionsElectionScore, u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The next index to be assigned to an incoming signed submission.
|
* The next index to be assigned to an incoming signed submission.
|
||||||
*
|
*
|
||||||
@@ -572,6 +578,60 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
fellowshipCollective: {
|
||||||
|
/**
|
||||||
|
* The index of each ranks's member into the group of members who have at least that rank.
|
||||||
|
**/
|
||||||
|
idToIndex: AugmentedQuery<ApiType, (arg1: u16 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [u16, AccountId32]> & QueryableStorageEntry<ApiType, [u16, AccountId32]>;
|
||||||
|
/**
|
||||||
|
* The members in the collective by index. All indices in the range `0..MemberCount` will
|
||||||
|
* return `Some`, however a member's index is not guaranteed to remain unchanged over time.
|
||||||
|
**/
|
||||||
|
indexToId: AugmentedQuery<ApiType, (arg1: u16 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>, [u16, u32]> & QueryableStorageEntry<ApiType, [u16, u32]>;
|
||||||
|
/**
|
||||||
|
* The number of members in the collective who have at least the rank according to the index
|
||||||
|
* of the vec.
|
||||||
|
**/
|
||||||
|
memberCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||||
|
/**
|
||||||
|
* The current members of the collective.
|
||||||
|
**/
|
||||||
|
members: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRankedCollectiveMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Votes on a given proposal, if it is ongoing.
|
||||||
|
**/
|
||||||
|
voting: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletRankedCollectiveVoteRecord>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||||
|
votingCleanup: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
|
fellowshipReferenda: {
|
||||||
|
/**
|
||||||
|
* The number of referenda being decided currently.
|
||||||
|
**/
|
||||||
|
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||||
|
/**
|
||||||
|
* 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<PalletReferendaReferendumInfoRankedCollectiveTally>>, [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, u32]>>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
gilt: {
|
gilt: {
|
||||||
/**
|
/**
|
||||||
* The currently active gilts, indexed according to the order of creation.
|
* The currently active gilts, indexed according to the order of creation.
|
||||||
@@ -818,7 +878,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
multisig: {
|
multisig: {
|
||||||
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[WrapperKeepOpaque<Call>, AccountId32, u128]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
||||||
/**
|
/**
|
||||||
* The set of open multisig operations.
|
* The set of open multisig operations.
|
||||||
**/
|
**/
|
||||||
@@ -1038,7 +1097,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Past code of parachains. The parachains themselves may not be registered anymore,
|
* Past code of parachains. The parachains themselves may not be registered anymore,
|
||||||
* but we also keep their code on-chain for the same amount of time as outdated code
|
* but we also keep their code on-chain for the same amount of time as outdated code
|
||||||
* to keep it available for secondary checkers.
|
* to keep it available for approval checkers.
|
||||||
**/
|
**/
|
||||||
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1288,10 +1347,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
preimage: {
|
preimage: {
|
||||||
/**
|
preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
|
||||||
* The preimages stored by this pallet.
|
|
||||||
**/
|
|
||||||
preimageFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
||||||
/**
|
/**
|
||||||
* The request status of a given hash.
|
* The request status of a given hash.
|
||||||
**/
|
**/
|
||||||
@@ -1339,6 +1395,31 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[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 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<PalletReferendaReferendumInfoConvictionVotingTally>>, [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: {
|
registrar: {
|
||||||
/**
|
/**
|
||||||
* The next free `ParaId`.
|
* The next free `ParaId`.
|
||||||
@@ -1364,11 +1445,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Items to be executed, indexed by the block number that they should be executed on.
|
* Items to be executed, indexed by the block number that they should be executed on.
|
||||||
**/
|
**/
|
||||||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV3>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Lookup from identity to the block number and index of the task.
|
* Lookup from a name to the block number and index of the task.
|
||||||
|
*
|
||||||
|
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
||||||
|
* identities.
|
||||||
**/
|
**/
|
||||||
lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1725,7 +1810,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* The ideal number of staking participants.
|
* The ideal number of active validators.
|
||||||
**/
|
**/
|
||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -2023,6 +2108,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[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: {
|
xcmPallet: {
|
||||||
/**
|
/**
|
||||||
* The existing asset traps.
|
* The existing asset traps.
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37c8bb1350a9a2a8/1 */
|
/** 0x37c8bb1350a9a2a8/2 */
|
||||||
transactionPaymentApi: {
|
transactionPaymentApi: {
|
||||||
/**
|
/**
|
||||||
* The transaction fee details
|
* The transaction fee details
|
||||||
@@ -348,7 +348,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xf3ff14d5ab527059/1 */
|
/** 0xf3ff14d5ab527059/2 */
|
||||||
transactionPaymentCallApi: {
|
transactionPaymentCallApi: {
|
||||||
/**
|
/**
|
||||||
* The call fee details
|
* The call fee details
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/submittable';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
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 { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -754,11 +754,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Sets the maximum amount of weight any individual upward message may consume.
|
* Sets the maximum amount of weight any individual upward message may consume.
|
||||||
**/
|
**/
|
||||||
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
|
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
||||||
**/
|
**/
|
||||||
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
|
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Set the validation upgrade cooldown.
|
* Set the validation upgrade cooldown.
|
||||||
**/
|
**/
|
||||||
@@ -776,6 +776,130 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[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 } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletConvictionVotingVoteAccountVote]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
council: {
|
council: {
|
||||||
/**
|
/**
|
||||||
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
||||||
@@ -811,7 +935,42 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
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.
|
||||||
|
*
|
||||||
|
* # <weight>
|
||||||
|
* ## Weight
|
||||||
|
* - `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)
|
||||||
|
* - DB:
|
||||||
|
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
||||||
|
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
||||||
|
* `O(P2)`)
|
||||||
|
* - any mutations done while executing `proposal` (`P1`)
|
||||||
|
* - up to 3 events
|
||||||
|
* # </weight>
|
||||||
|
**/
|
||||||
|
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
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -1033,16 +1192,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
||||||
**/
|
**/
|
||||||
cancelProposal: AugmentedSubmittable<(propIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
cancelProposal: AugmentedSubmittable<(propIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
|
||||||
* Cancel a proposal queued for enactment.
|
|
||||||
*
|
|
||||||
* The dispatch origin of this call must be _Root_.
|
|
||||||
*
|
|
||||||
* - `which`: The index of the referendum to cancel.
|
|
||||||
*
|
|
||||||
* Weight: `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`.
|
|
||||||
**/
|
|
||||||
cancelQueued: AugmentedSubmittable<(which: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Remove a referendum.
|
* Remove a referendum.
|
||||||
*
|
*
|
||||||
@@ -1095,10 +1244,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(1)`.
|
* Weight: `O(1)`.
|
||||||
**/
|
**/
|
||||||
emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
|
||||||
* Enact a proposal from a referendum. For now we just make the weight be the maximum.
|
|
||||||
**/
|
|
||||||
enactProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Schedule a referendum to be tabled once it is legal to schedule an external
|
* Schedule a referendum to be tabled once it is legal to schedule an external
|
||||||
* referendum.
|
* referendum.
|
||||||
@@ -1106,11 +1251,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The dispatch origin of this call must be `ExternalOrigin`.
|
* The dispatch origin of this call must be `ExternalOrigin`.
|
||||||
*
|
*
|
||||||
* - `proposal_hash`: The preimage hash of the proposal.
|
* - `proposal_hash`: The preimage hash of the proposal.
|
||||||
*
|
|
||||||
* Weight: `O(V)` with V number of vetoers in the blacklist of proposal.
|
|
||||||
* Decoding vec of length V. Charged as maximum
|
|
||||||
**/
|
**/
|
||||||
externalPropose: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
externalPropose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
||||||
/**
|
/**
|
||||||
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
||||||
* schedule an external referendum.
|
* schedule an external referendum.
|
||||||
@@ -1124,7 +1266,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
externalProposeDefault: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
externalProposeDefault: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
||||||
/**
|
/**
|
||||||
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
||||||
* an external referendum.
|
* an external referendum.
|
||||||
@@ -1138,7 +1280,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
externalProposeMajority: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
externalProposeMajority: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
||||||
/**
|
/**
|
||||||
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
||||||
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
||||||
@@ -1147,7 +1289,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The dispatch of this call must be `FastTrackOrigin`.
|
* The dispatch of this call must be `FastTrackOrigin`.
|
||||||
*
|
*
|
||||||
* - `proposal_hash`: The hash of the current external proposal.
|
* - `proposal_hash`: The hash of the current external proposal.
|
||||||
* - `voting_period`: The period that is allowed for voting on this proposal.
|
* - `voting_period`: The period that is allowed for voting on this proposal. Increased to
|
||||||
* Must be always greater than zero.
|
* Must be always greater than zero.
|
||||||
* For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
|
* For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
|
||||||
* - `delay`: The number of block after voting has ended in approval and this should be
|
* - `delay`: The number of block after voting has ended in approval and this should be
|
||||||
@@ -1158,42 +1300,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, u32]>;
|
fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, u32]>;
|
||||||
/**
|
|
||||||
* Register the preimage for an upcoming proposal. This requires the proposal to be
|
|
||||||
* in the dispatch queue. No deposit is needed. When this call is successful, i.e.
|
|
||||||
* the preimage has not been uploaded before and matches some imminent proposal,
|
|
||||||
* no fee is paid.
|
|
||||||
*
|
|
||||||
* The dispatch origin of this call must be _Signed_.
|
|
||||||
*
|
|
||||||
* - `encoded_proposal`: The preimage of a proposal.
|
|
||||||
*
|
|
||||||
* Emits `PreimageNoted`.
|
|
||||||
*
|
|
||||||
* Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
|
|
||||||
**/
|
|
||||||
noteImminentPreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
||||||
/**
|
|
||||||
* Same as `note_imminent_preimage` but origin is `OperationalPreimageOrigin`.
|
|
||||||
**/
|
|
||||||
noteImminentPreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
||||||
/**
|
|
||||||
* Register the preimage for an upcoming proposal. This doesn't require the proposal to be
|
|
||||||
* in the dispatch queue but does require a deposit, returned once enacted.
|
|
||||||
*
|
|
||||||
* The dispatch origin of this call must be _Signed_.
|
|
||||||
*
|
|
||||||
* - `encoded_proposal`: The preimage of a proposal.
|
|
||||||
*
|
|
||||||
* Emits `PreimageNoted`.
|
|
||||||
*
|
|
||||||
* Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
|
|
||||||
**/
|
|
||||||
notePreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
||||||
/**
|
|
||||||
* Same as `note_preimage` but origin is `OperationalPreimageOrigin`.
|
|
||||||
**/
|
|
||||||
notePreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
||||||
/**
|
/**
|
||||||
* Propose a sensitive action to be taken.
|
* Propose a sensitive action to be taken.
|
||||||
*
|
*
|
||||||
@@ -1204,28 +1310,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
||||||
*
|
*
|
||||||
* Emits `Proposed`.
|
* Emits `Proposed`.
|
||||||
*
|
|
||||||
* Weight: `O(p)`
|
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
|
propose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded, Compact<u128>]>;
|
||||||
/**
|
|
||||||
* Remove an expired proposal preimage and collect the deposit.
|
|
||||||
*
|
|
||||||
* The dispatch origin of this call must be _Signed_.
|
|
||||||
*
|
|
||||||
* - `proposal_hash`: The preimage hash of a proposal.
|
|
||||||
* - `proposal_length_upper_bound`: an upper bound on length of the proposal. Extrinsic is
|
|
||||||
* weighted according to this value with no refund.
|
|
||||||
*
|
|
||||||
* This will only work after `VotingPeriod` blocks from the time that the preimage was
|
|
||||||
* noted, if it's the same account doing it. If it's a different account, then it'll only
|
|
||||||
* work an additional `EnactmentPeriod` later.
|
|
||||||
*
|
|
||||||
* Emits `PreimageReaped`.
|
|
||||||
*
|
|
||||||
* Weight: `O(D)` where D is length of proposal.
|
|
||||||
**/
|
|
||||||
reapPreimage: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, proposalLenUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>]>;
|
|
||||||
/**
|
/**
|
||||||
* Remove a vote for a referendum.
|
* Remove a vote for a referendum.
|
||||||
*
|
*
|
||||||
@@ -1281,12 +1367,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* must have funds to cover the deposit, equal to the original deposit.
|
* must have funds to cover the deposit, equal to the original deposit.
|
||||||
*
|
*
|
||||||
* - `proposal`: The index of the proposal to second.
|
* - `proposal`: The index of the proposal to second.
|
||||||
* - `seconds_upper_bound`: an upper bound on the current number of seconds on this
|
|
||||||
* proposal. Extrinsic is weighted according to this value with no refund.
|
|
||||||
*
|
|
||||||
* Weight: `O(S)` where S is the number of seconds a proposal already has.
|
|
||||||
**/
|
**/
|
||||||
second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array, secondsUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
|
second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Undelegate the voting power of the sending account.
|
* Undelegate the voting power of the sending account.
|
||||||
*
|
*
|
||||||
@@ -1332,8 +1414,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* - `ref_index`: The index of the referendum to vote for.
|
* - `ref_index`: The index of the referendum to vote for.
|
||||||
* - `vote`: The vote configuration.
|
* - `vote`: The vote configuration.
|
||||||
*
|
|
||||||
* Weight: `O(R)` where R is the number of referendums the voter has voted on.
|
|
||||||
**/
|
**/
|
||||||
vote: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletDemocracyVoteAccountVote]>;
|
vote: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletDemocracyVoteAccountVote]>;
|
||||||
/**
|
/**
|
||||||
@@ -1451,6 +1531,154 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
fellowshipCollective: {
|
||||||
|
/**
|
||||||
|
* Introduce a new member.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be the `AdminOrigin`.
|
||||||
|
* - `who`: Account of non-member which will become a member.
|
||||||
|
* - `rank`: The rank to give the new member.
|
||||||
|
*
|
||||||
|
* Weight: `O(1)`
|
||||||
|
**/
|
||||||
|
addMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Remove votes from the given poll. It must have ended.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be `Signed` by any account.
|
||||||
|
* - `poll_index`: Index of a poll which is completed and for which votes continue to
|
||||||
|
* exist.
|
||||||
|
* - `max`: Maximum number of vote items from remove in this call.
|
||||||
|
*
|
||||||
|
* Transaction fees are waived if the operation is successful.
|
||||||
|
*
|
||||||
|
* Weight `O(max)` (less if there are fewer items to remove than `max`).
|
||||||
|
**/
|
||||||
|
cleanupPoll: AugmentedSubmittable<(pollIndex: u32 | AnyNumber | Uint8Array, max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Decrement the rank of an existing member by one. If the member is already at rank zero,
|
||||||
|
* then they are removed entirely.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be the `AdminOrigin`.
|
||||||
|
* - `who`: Account of existing member of rank greater than zero.
|
||||||
|
*
|
||||||
|
* Weight: `O(1)`, less if the member's index is highest in its rank.
|
||||||
|
**/
|
||||||
|
demoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Increment the rank of an existing member by one.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be the `AdminOrigin`.
|
||||||
|
* - `who`: Account of existing member.
|
||||||
|
*
|
||||||
|
* Weight: `O(1)`
|
||||||
|
**/
|
||||||
|
promoteMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Remove the member entirely.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be the `AdminOrigin`.
|
||||||
|
* - `who`: Account of existing member of rank greater than zero.
|
||||||
|
* - `min_rank`: The rank of the member or greater.
|
||||||
|
*
|
||||||
|
* Weight: `O(min_rank)`.
|
||||||
|
**/
|
||||||
|
removeMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u16]>;
|
||||||
|
/**
|
||||||
|
* Add an aye or nay vote for the sender to the given proposal.
|
||||||
|
*
|
||||||
|
* - `origin`: Must be `Signed` by a member account.
|
||||||
|
* - `poll`: Index of a poll which is ongoing.
|
||||||
|
* - `aye`: `true` if the vote is to approve the proposal, `false` otherwise.
|
||||||
|
*
|
||||||
|
* Transaction fees are be waived if the member is voting on any particular proposal
|
||||||
|
* for the first time and the call is successful. Subsequent vote changes will charge a
|
||||||
|
* fee.
|
||||||
|
*
|
||||||
|
* Weight: `O(1)`, less if there was no previous vote on the poll by the member.
|
||||||
|
**/
|
||||||
|
vote: AugmentedSubmittable<(poll: u32 | AnyNumber | Uint8Array, aye: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
|
fellowshipReferenda: {
|
||||||
|
/**
|
||||||
|
* 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]>;
|
||||||
|
/**
|
||||||
|
* 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: KusamaRuntimeOriginCaller | { 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>, [KusamaRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
gilt: {
|
gilt: {
|
||||||
/**
|
/**
|
||||||
* Place a bid for a gilt to be issued.
|
* Place a bid for a gilt to be issued.
|
||||||
@@ -1553,6 +1781,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Number of inbound and outbound channels for `para` must be provided as witness data of weighing.
|
* Number of inbound and outbound channels for `para` must be provided as witness data of weighing.
|
||||||
**/
|
**/
|
||||||
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although
|
||||||
|
* opened by Root, the `max_capacity` and `max_message_size` are still subject to the Relay
|
||||||
|
* Chain's configured limits.
|
||||||
|
*
|
||||||
|
* Expected use is when one of the `ParaId`s involved in the channel is governed by the
|
||||||
|
* Relay Chain, e.g. a common good parachain.
|
||||||
|
**/
|
||||||
|
forceOpenHrmpChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array, recipient: u32 | AnyNumber | Uint8Array, maxCapacity: u32 | AnyNumber | Uint8Array, maxMessageSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Force process HRMP close channel requests.
|
* Force process HRMP close channel requests.
|
||||||
*
|
*
|
||||||
@@ -2065,7 +2302,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Write: Multisig Storage, [Caller Account]
|
* - Write: Multisig Storage, [Caller Account]
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, Weight]>;
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||||
@@ -2108,12 +2345,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||||
* -------------------------------
|
* -------------------------------
|
||||||
* - DB Weight:
|
* - DB Weight:
|
||||||
* - Reads: Multisig Storage, [Caller Account], Calls (if `store_call`)
|
* - Reads: Multisig Storage, [Caller Account]
|
||||||
* - Writes: Multisig Storage, [Caller Account], Calls (if `store_call`)
|
* - Writes: Multisig Storage, [Caller Account]
|
||||||
* - Plus Call Weight
|
* - Plus Call Weight
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, Weight]>;
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: Call | IMethod | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, Call, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||||
*
|
*
|
||||||
@@ -2157,8 +2394,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Storage: removes one item.
|
* - Storage: removes one item.
|
||||||
* ----------------------------------
|
* ----------------------------------
|
||||||
* - DB Weight:
|
* - DB Weight:
|
||||||
* - Read: Multisig Storage, [Caller Account], Refund Account, Calls
|
* - Read: Multisig Storage, [Caller Account], Refund Account
|
||||||
* - Write: Multisig Storage, [Caller Account], Refund Account, Calls
|
* - Write: Multisig Storage, [Caller Account], Refund Account
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
||||||
@@ -2216,6 +2453,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Create a new delegation pool with a previously used pool id
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* same as `create` with the inclusion of
|
||||||
|
* * `pool_id` - `A valid PoolId.
|
||||||
|
**/
|
||||||
|
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -2565,6 +2811,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
/**
|
/**
|
||||||
* Clear an unrequested preimage from the runtime storage.
|
* Clear an unrequested preimage from the runtime storage.
|
||||||
|
*
|
||||||
|
* If `len` is provided, then it will be a much cheaper operation.
|
||||||
|
*
|
||||||
|
* - `hash`: The hash of the preimage to be removed from the store.
|
||||||
|
* - `len`: The length of the preimage of `hash`.
|
||||||
**/
|
**/
|
||||||
unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
/**
|
/**
|
||||||
@@ -2853,7 +3104,90 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[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]>;
|
||||||
|
/**
|
||||||
|
* 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: KusamaRuntimeOriginCaller | { 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>, [KusamaRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
registrar: {
|
registrar: {
|
||||||
|
/**
|
||||||
|
* Add a manager lock from a para. This will prevent the manager of a
|
||||||
|
* para to deregister or swap a para.
|
||||||
|
*
|
||||||
|
* Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked.
|
||||||
|
**/
|
||||||
|
addLock: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Deregister a Para Id, freeing all data and returning any deposit.
|
* Deregister a Para Id, freeing all data and returning any deposit.
|
||||||
*
|
*
|
||||||
@@ -2869,13 +3203,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* can be registered, including sub-1000 IDs which are System Parachains.
|
* can be registered, including sub-1000 IDs which are System Parachains.
|
||||||
**/
|
**/
|
||||||
forceRegister: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, deposit: u128 | AnyNumber | Uint8Array, id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128, u32, Bytes, Bytes]>;
|
forceRegister: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, deposit: u128 | AnyNumber | Uint8Array, id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128, u32, Bytes, Bytes]>;
|
||||||
/**
|
|
||||||
* Remove a manager lock from a para. This will allow the manager of a
|
|
||||||
* previously locked para to deregister or swap a para without using governance.
|
|
||||||
*
|
|
||||||
* Can only be called by the Root origin.
|
|
||||||
**/
|
|
||||||
forceRemoveLock: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Register head data and validation code for a reserved Para Id.
|
* Register head data and validation code for a reserved Para Id.
|
||||||
*
|
*
|
||||||
@@ -2893,6 +3220,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The `Registered` event is emitted in case of success.
|
* The `Registered` event is emitted in case of success.
|
||||||
**/
|
**/
|
||||||
register: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes, Bytes]>;
|
register: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes, Bytes]>;
|
||||||
|
/**
|
||||||
|
* Remove a manager lock from a para. This will allow the manager of a
|
||||||
|
* previously locked para to deregister or swap a para without using governance.
|
||||||
|
*
|
||||||
|
* Can only be called by the Root origin or the parachain.
|
||||||
|
**/
|
||||||
|
removeLock: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Reserve a Para Id on the relay chain.
|
* Reserve a Para Id on the relay chain.
|
||||||
*
|
*
|
||||||
@@ -2910,6 +3244,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The `Reserved` event is emitted in case of success, which provides the ID reserved for use.
|
* The `Reserved` event is emitted in case of success, which provides the ID reserved for use.
|
||||||
**/
|
**/
|
||||||
reserve: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
reserve: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Schedule a parachain upgrade.
|
||||||
|
*
|
||||||
|
* Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked.
|
||||||
|
**/
|
||||||
|
scheduleCodeUpgrade: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, newCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
|
/**
|
||||||
|
* Set the parachain's current head.
|
||||||
|
*
|
||||||
|
* Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked.
|
||||||
|
**/
|
||||||
|
setCurrentHead: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, newHead: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Swap a parachain with another parachain or parathread.
|
* Swap a parachain with another parachain or parathread.
|
||||||
*
|
*
|
||||||
@@ -2937,11 +3283,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Cancel a named scheduled task.
|
* Cancel a named scheduled task.
|
||||||
**/
|
**/
|
||||||
cancelNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
|
||||||
/**
|
/**
|
||||||
* Anonymously schedule a task.
|
* Anonymously schedule a task.
|
||||||
**/
|
**/
|
||||||
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | { Value: any } | { Hash: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
/**
|
/**
|
||||||
* Anonymously schedule a task after a delay.
|
* Anonymously schedule a task after a delay.
|
||||||
*
|
*
|
||||||
@@ -2949,11 +3295,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Same as [`schedule`].
|
* Same as [`schedule`].
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | { Value: any } | { Hash: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
/**
|
/**
|
||||||
* Schedule a named task.
|
* Schedule a named task.
|
||||||
**/
|
**/
|
||||||
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | { Value: any } | { Hash: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
/**
|
/**
|
||||||
* Schedule a named task after a delay.
|
* Schedule a named task after a delay.
|
||||||
*
|
*
|
||||||
@@ -2961,7 +3307,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Same as [`schedule_named`](Self::schedule_named).
|
* Same as [`schedule_named`](Self::schedule_named).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | { Value: any } | { Hash: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3517,7 +3863,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Increments the ideal number of validators.
|
* Increments the ideal number of validators upto maximum of
|
||||||
|
* `ElectionProviderBase::MaxWinners`.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
*
|
||||||
@@ -3606,7 +3953,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Scale up the ideal number of validators by a factor.
|
* Scale up the ideal number of validators by a factor upto maximum of
|
||||||
|
* `ElectionProviderBase::MaxWinners`.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
*
|
||||||
@@ -3744,10 +4092,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
system: {
|
system: {
|
||||||
/**
|
|
||||||
* A dispatch that will fill the block weight up to the given ratio.
|
|
||||||
**/
|
|
||||||
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
||||||
/**
|
/**
|
||||||
* Kill all storage items with a key that starts with the given prefix.
|
* Kill all storage items with a key that starts with the given prefix.
|
||||||
*
|
*
|
||||||
@@ -3846,7 +4190,42 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
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.
|
||||||
|
*
|
||||||
|
* # <weight>
|
||||||
|
* ## Weight
|
||||||
|
* - `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)
|
||||||
|
* - DB:
|
||||||
|
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
||||||
|
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
||||||
|
* `O(P2)`)
|
||||||
|
* - any mutations done while executing `proposal` (`P1`)
|
||||||
|
* - up to 3 events
|
||||||
|
* # </weight>
|
||||||
|
**/
|
||||||
|
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
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -4267,7 +4646,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Events:
|
* Events:
|
||||||
* - `OverweightServiced`: On success.
|
* - `OverweightServiced`: On success.
|
||||||
**/
|
**/
|
||||||
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Weight]>;
|
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -4293,13 +4672,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
@@ -4316,13 +4695,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Send a batch of dispatch calls and atomically execute them.
|
* Send a batch of dispatch calls and atomically execute them.
|
||||||
* The whole transaction will rollback and fail if any of the calls failed.
|
* The whole transaction will rollback and fail if any of the calls failed.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
@@ -4341,18 +4720,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, Call]>;
|
dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { Origins: any } | { ParachainsOrigin: any } | { XcmPallet: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, Call]>;
|
||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
* Unlike `batch`, it allows errors and won't interrupt.
|
* Unlike `batch`, it allows errors and won't interrupt.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatch without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
@@ -4499,6 +4878,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
whitelist: {
|
||||||
|
dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, 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: {
|
xcmPallet: {
|
||||||
/**
|
/**
|
||||||
* Execute an XCM message from a local, signed, origin.
|
* Execute an XCM message from a local, signed, origin.
|
||||||
@@ -4513,7 +4902,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
||||||
* to completion; only that *some* of it was executed.
|
* to completion; only that *some* of it was executed.
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, Weight]>;
|
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
|
||||||
/**
|
/**
|
||||||
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
||||||
* version a destination can accept is unknown).
|
* version a destination can accept is unknown).
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import '@polkadot/api-base/types/consts';
|
|||||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
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, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { Perbill, Percent, Permill, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||||
|
|
||||||
@@ -202,6 +202,14 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* How often (in blocks) new public referenda are launched.
|
* How often (in blocks) new public referenda are launched.
|
||||||
**/
|
**/
|
||||||
launchPeriod: u32 & AugmentedConst<ApiType>;
|
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.
|
* The maximum number of public proposals that can exist at any time.
|
||||||
**/
|
**/
|
||||||
@@ -217,10 +225,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* The minimum amount to be used as a deposit for a public referendum proposal.
|
* The minimum amount to be used as a deposit for a public referendum proposal.
|
||||||
**/
|
**/
|
||||||
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
||||||
/**
|
|
||||||
* The amount of balance that must be deposited per byte of preimage stored.
|
|
||||||
**/
|
|
||||||
preimageByteDeposit: u128 & AugmentedConst<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The minimum period of vote locking.
|
* The minimum period of vote locking.
|
||||||
*
|
*
|
||||||
@@ -258,9 +262,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* take place over multiple blocks.
|
* take place over multiple blocks.
|
||||||
**/
|
**/
|
||||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of winners that can be elected by this `ElectionProvider`
|
||||||
|
* implementation.
|
||||||
|
*
|
||||||
|
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
||||||
|
**/
|
||||||
|
maxWinners: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxWeight: Weight & AugmentedConst<ApiType>;
|
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The priority of the unsigned transaction submitted in the unsigned-phase
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
||||||
**/
|
**/
|
||||||
@@ -305,7 +316,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
||||||
* this value.
|
* this value.
|
||||||
**/
|
**/
|
||||||
signedMaxWeight: Weight & AugmentedConst<ApiType>;
|
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Duration of the signed phase.
|
* Duration of the signed phase.
|
||||||
**/
|
**/
|
||||||
@@ -323,6 +334,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
fastUnstake: {
|
||||||
|
/**
|
||||||
|
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
||||||
|
* the costs of resources on unsuccessful unstake.
|
||||||
|
**/
|
||||||
|
deposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
grandpa: {
|
grandpa: {
|
||||||
/**
|
/**
|
||||||
* Max Authorities in use
|
* Max Authorities in use
|
||||||
@@ -409,7 +431,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The maximum amount of signatories allowed in the multisig.
|
* The maximum amount of signatories allowed in the multisig.
|
||||||
**/
|
**/
|
||||||
maxSignatories: u16 & AugmentedConst<ApiType>;
|
maxSignatories: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -561,13 +583,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
};
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* The maximum weight that may be scheduled per block for any dispatchables of less
|
* The maximum weight that may be scheduled per block for any dispatchables.
|
||||||
* priority than `schedule::HARD_DEADLINE`.
|
|
||||||
**/
|
**/
|
||||||
maximumWeight: Weight & AugmentedConst<ApiType>;
|
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of scheduled calls in the queue for a single block.
|
* The maximum number of scheduled calls in the queue for a single block.
|
||||||
* Not strictly enforced, but used for weight estimation.
|
|
||||||
**/
|
**/
|
||||||
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -406,18 +406,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Identity may not veto a proposal twice
|
* Identity may not veto a proposal twice
|
||||||
**/
|
**/
|
||||||
AlreadyVetoed: AugmentedError<ApiType>;
|
AlreadyVetoed: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Preimage already noted
|
|
||||||
**/
|
|
||||||
DuplicatePreimage: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Proposal already made
|
* Proposal already made
|
||||||
**/
|
**/
|
||||||
DuplicateProposal: AugmentedError<ApiType>;
|
DuplicateProposal: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Imminent
|
|
||||||
**/
|
|
||||||
Imminent: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* The instant referendum origin is currently disallowed.
|
* The instant referendum origin is currently disallowed.
|
||||||
**/
|
**/
|
||||||
@@ -454,10 +446,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The account is not currently delegating.
|
* The account is not currently delegating.
|
||||||
**/
|
**/
|
||||||
NotDelegating: AugmentedError<ApiType>;
|
NotDelegating: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Not imminent
|
|
||||||
**/
|
|
||||||
NotImminent: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Next external proposal not simple majority
|
* Next external proposal not simple majority
|
||||||
**/
|
**/
|
||||||
@@ -466,14 +454,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The given account did not vote on the referendum.
|
* The given account did not vote on the referendum.
|
||||||
**/
|
**/
|
||||||
NotVoter: AugmentedError<ApiType>;
|
NotVoter: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Invalid preimage
|
|
||||||
**/
|
|
||||||
PreimageInvalid: AugmentedError<ApiType>;
|
|
||||||
/**
|
|
||||||
* Preimage not found
|
|
||||||
**/
|
|
||||||
PreimageMissing: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Proposal still blacklisted
|
* Proposal still blacklisted
|
||||||
**/
|
**/
|
||||||
@@ -487,13 +467,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
ReferendumInvalid: AugmentedError<ApiType>;
|
ReferendumInvalid: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too early
|
* Maximum number of items reached.
|
||||||
**/
|
**/
|
||||||
TooEarly: AugmentedError<ApiType>;
|
TooMany: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Maximum number of proposals reached.
|
|
||||||
**/
|
|
||||||
TooManyProposals: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Value too low
|
* Value too low
|
||||||
**/
|
**/
|
||||||
@@ -517,6 +493,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
|
/**
|
||||||
|
* Some bound not met
|
||||||
|
**/
|
||||||
|
BoundNotMet: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The call is not allowed at this point.
|
* The call is not allowed at this point.
|
||||||
**/
|
**/
|
||||||
@@ -565,6 +545,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The signed submission consumes too much weight
|
* The signed submission consumes too much weight
|
||||||
**/
|
**/
|
||||||
SignedTooMuchWeight: AugmentedError<ApiType>;
|
SignedTooMuchWeight: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Submitted solution has too many winners
|
||||||
|
**/
|
||||||
|
TooManyWinners: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -753,6 +737,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Judgement given.
|
* Judgement given.
|
||||||
**/
|
**/
|
||||||
JudgementGiven: AugmentedError<ApiType>;
|
JudgementGiven: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Error that occurs when there is an issue paying for judgement.
|
||||||
|
**/
|
||||||
|
JudgementPaymentFailed: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* No identity found.
|
* No identity found.
|
||||||
**/
|
**/
|
||||||
@@ -924,6 +912,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* anymore to, for example, collect rewards).
|
* anymore to, for example, collect rewards).
|
||||||
**/
|
**/
|
||||||
FullyUnbonding: AugmentedError<ApiType>;
|
FullyUnbonding: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Pool id provided is not correct/usable.
|
||||||
|
**/
|
||||||
|
InvalidPoolId: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too many members in the pool or system.
|
* Too many members in the pool or system.
|
||||||
**/
|
**/
|
||||||
@@ -973,6 +965,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Partial unbonding now allowed permissionlessly.
|
* Partial unbonding now allowed permissionlessly.
|
||||||
**/
|
**/
|
||||||
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Pool id currently in use.
|
||||||
|
**/
|
||||||
|
PoolIdInUse: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* An account is not a member.
|
* An account is not a member.
|
||||||
**/
|
**/
|
||||||
@@ -1167,6 +1163,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Para cannot be upgraded to a parachain.
|
* Para cannot be upgraded to a parachain.
|
||||||
**/
|
**/
|
||||||
CannotUpgrade: AugmentedError<ApiType>;
|
CannotUpgrade: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Parachain cannot currently schedule a code upgrade.
|
||||||
|
**/
|
||||||
|
CannotUpgradeCode: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Para is not registered in our system.
|
* Para is not registered in our system.
|
||||||
**/
|
**/
|
||||||
@@ -1337,7 +1337,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
/**
|
/**
|
||||||
* Preimage is too large to store on-chain.
|
* Preimage is too large to store on-chain.
|
||||||
**/
|
**/
|
||||||
TooLarge: AugmentedError<ApiType>;
|
TooBig: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1449,6 +1449,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Failed to schedule a call
|
* Failed to schedule a call
|
||||||
**/
|
**/
|
||||||
FailedToSchedule: AugmentedError<ApiType>;
|
FailedToSchedule: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Attempt to use a non-named function on a named task.
|
||||||
|
**/
|
||||||
|
Named: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Cannot find the scheduled call.
|
* Cannot find the scheduled call.
|
||||||
**/
|
**/
|
||||||
@@ -1607,8 +1611,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
TooManyTargets: AugmentedError<ApiType>;
|
TooManyTargets: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* There are too many validators in the system. Governance needs to adjust the staking
|
* There are too many validator candidates in the system. Governance needs to adjust the
|
||||||
* settings to keep things safe for the runtime.
|
* staking settings to keep things safe for the runtime.
|
||||||
**/
|
**/
|
||||||
TooManyValidators: AugmentedError<ApiType>;
|
TooManyValidators: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ 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 { 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 { ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, H256, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||||
|
|
||||||
@@ -263,10 +263,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An account has delegated their vote to another account.
|
* An account has delegated their vote to another account.
|
||||||
**/
|
**/
|
||||||
Delegated: AugmentedEvent<ApiType, [who: AccountId32, target: AccountId32], { who: AccountId32, target: AccountId32 }>;
|
Delegated: AugmentedEvent<ApiType, [who: AccountId32, target: AccountId32], { who: AccountId32, target: AccountId32 }>;
|
||||||
/**
|
|
||||||
* A proposal has been enacted.
|
|
||||||
**/
|
|
||||||
Executed: AugmentedEvent<ApiType, [refIndex: u32, result: Result<Null, SpRuntimeDispatchError>], { refIndex: u32, result: Result<Null, SpRuntimeDispatchError> }>;
|
|
||||||
/**
|
/**
|
||||||
* An external proposal has been tabled.
|
* An external proposal has been tabled.
|
||||||
**/
|
**/
|
||||||
@@ -279,26 +275,6 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* A proposal has been approved by referendum.
|
* A proposal has been approved by referendum.
|
||||||
**/
|
**/
|
||||||
Passed: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
Passed: AugmentedEvent<ApiType, [refIndex: u32], { refIndex: u32 }>;
|
||||||
/**
|
|
||||||
* A proposal could not be executed because its preimage was invalid.
|
|
||||||
**/
|
|
||||||
PreimageInvalid: AugmentedEvent<ApiType, [proposalHash: H256, refIndex: u32], { proposalHash: H256, refIndex: u32 }>;
|
|
||||||
/**
|
|
||||||
* A proposal could not be executed because its preimage was missing.
|
|
||||||
**/
|
|
||||||
PreimageMissing: AugmentedEvent<ApiType, [proposalHash: H256, refIndex: u32], { proposalHash: H256, refIndex: u32 }>;
|
|
||||||
/**
|
|
||||||
* A proposal's preimage was noted, and the deposit taken.
|
|
||||||
**/
|
|
||||||
PreimageNoted: AugmentedEvent<ApiType, [proposalHash: H256, who: AccountId32, deposit: u128], { proposalHash: H256, who: AccountId32, deposit: u128 }>;
|
|
||||||
/**
|
|
||||||
* A registered preimage was removed and the deposit collected by the reaper.
|
|
||||||
**/
|
|
||||||
PreimageReaped: AugmentedEvent<ApiType, [proposalHash: H256, provider: AccountId32, deposit: u128, reaper: AccountId32], { proposalHash: H256, provider: AccountId32, deposit: u128, reaper: AccountId32 }>;
|
|
||||||
/**
|
|
||||||
* A proposal preimage was removed and used (the deposit was returned).
|
|
||||||
**/
|
|
||||||
PreimageUsed: AugmentedEvent<ApiType, [proposalHash: H256, provider: AccountId32, deposit: u128], { proposalHash: H256, provider: AccountId32, deposit: u128 }>;
|
|
||||||
/**
|
/**
|
||||||
* A proposal got canceled.
|
* A proposal got canceled.
|
||||||
**/
|
**/
|
||||||
@@ -318,7 +294,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* A public proposal has been tabled for referendum vote.
|
* A public proposal has been tabled for referendum vote.
|
||||||
**/
|
**/
|
||||||
Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128, depositors: Vec<AccountId32>], { proposalIndex: u32, deposit: u128, depositors: Vec<AccountId32> }>;
|
Tabled: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
|
||||||
/**
|
/**
|
||||||
* An account has cancelled a previous delegation operation.
|
* An account has cancelled a previous delegation operation.
|
||||||
**/
|
**/
|
||||||
@@ -379,14 +355,16 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
};
|
};
|
||||||
fastUnstake: {
|
fastUnstake: {
|
||||||
/**
|
/**
|
||||||
* A staker was partially checked for the given eras, but the process did not finish.
|
* A batch was partially checked for the given eras, but the process did not finish.
|
||||||
**/
|
**/
|
||||||
Checking: AugmentedEvent<ApiType, [stash: AccountId32, eras: Vec<u32>], { stash: AccountId32, eras: Vec<u32> }>;
|
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
||||||
/**
|
/**
|
||||||
* Some internal error happened while migrating stash. They are removed as head as a
|
* A batch was terminated.
|
||||||
* consequence.
|
*
|
||||||
|
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
||||||
|
* of the batch. A new batch will be created upon next block.
|
||||||
**/
|
**/
|
||||||
Errored: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
BatchFinished: AugmentedEvent<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* An internal error happened. Operations will be paused now.
|
* An internal error happened. Operations will be paused now.
|
||||||
**/
|
**/
|
||||||
@@ -427,6 +405,11 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* HRMP channel closed. `[by_parachain, channel_id]`
|
* HRMP channel closed. `[by_parachain, channel_id]`
|
||||||
**/
|
**/
|
||||||
ChannelClosed: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
|
ChannelClosed: AugmentedEvent<ApiType, [u32, PolkadotParachainPrimitivesHrmpChannelId]>;
|
||||||
|
/**
|
||||||
|
* An HRMP channel was opened via Root origin.
|
||||||
|
* `[sender, recipient, proposed_max_capacity, proposed_max_message_size]`
|
||||||
|
**/
|
||||||
|
HrmpChannelForceOpened: AugmentedEvent<ApiType, [u32, u32, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Open HRMP channel accepted. `[sender, recipient]`
|
* Open HRMP channel accepted. `[sender, recipient]`
|
||||||
**/
|
**/
|
||||||
@@ -818,7 +801,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* The call for the provided hash was not found so the task has been aborted.
|
* The call for the provided hash was not found so the task has been aborted.
|
||||||
**/
|
**/
|
||||||
CallLookupFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<Bytes>, error: FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option<Bytes>, error: FrameSupportScheduleLookupError }>;
|
CallUnavailable: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
/**
|
/**
|
||||||
* Canceled some task.
|
* Canceled some task.
|
||||||
**/
|
**/
|
||||||
@@ -826,7 +809,15 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Dispatched some task.
|
* Dispatched some task.
|
||||||
**/
|
**/
|
||||||
Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<Bytes>, result: Result<Null, SpRuntimeDispatchError>], { task: ITuple<[u32, u32]>, id: Option<Bytes>, result: Result<Null, SpRuntimeDispatchError> }>;
|
Dispatched: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed>, result: Result<Null, SpRuntimeDispatchError> }>;
|
||||||
|
/**
|
||||||
|
* The given task was unable to be renewed since the agenda is full at that block.
|
||||||
|
**/
|
||||||
|
PeriodicFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
|
/**
|
||||||
|
* The given task can never be executed since it is overweight.
|
||||||
|
**/
|
||||||
|
PermanentlyOverweight: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], { task: ITuple<[u32, u32]>, id: Option<U8aFixed> }>;
|
||||||
/**
|
/**
|
||||||
* Scheduled some task.
|
* Scheduled some task.
|
||||||
**/
|
**/
|
||||||
@@ -1117,14 +1108,14 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ para, id, overweight_index, required \]
|
* \[ para, id, overweight_index, required \]
|
||||||
**/
|
**/
|
||||||
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, Weight]>;
|
OverweightEnqueued: AugmentedEvent<ApiType, [u32, U8aFixed, u64, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Upward message from the overweight queue was executed with the given actual weight
|
* Upward message from the overweight queue was executed with the given actual weight
|
||||||
* used.
|
* used.
|
||||||
*
|
*
|
||||||
* \[ overweight_index, used \]
|
* \[ overweight_index, used \]
|
||||||
**/
|
**/
|
||||||
OverweightServiced: AugmentedEvent<ApiType, [u64, Weight]>;
|
OverweightServiced: AugmentedEvent<ApiType, [u64, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Upward message is unsupported version of XCM.
|
* Upward message is unsupported version of XCM.
|
||||||
* \[ id \]
|
* \[ id \]
|
||||||
@@ -1139,7 +1130,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* The weight limit for handling upward messages was reached.
|
* The weight limit for handling upward messages was reached.
|
||||||
* \[ id, remaining, required \]
|
* \[ id, remaining, required \]
|
||||||
**/
|
**/
|
||||||
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, Weight, Weight]>;
|
WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic event
|
* Generic event
|
||||||
**/
|
**/
|
||||||
@@ -1206,6 +1197,12 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
xcmPallet: {
|
xcmPallet: {
|
||||||
|
/**
|
||||||
|
* Some assets have been claimed from an asset trap
|
||||||
|
*
|
||||||
|
* \[ hash, origin, assets \]
|
||||||
|
**/
|
||||||
|
AssetsClaimed: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;
|
||||||
/**
|
/**
|
||||||
* Some assets have been placed in an asset trap.
|
* Some assets have been placed in an asset trap.
|
||||||
*
|
*
|
||||||
@@ -1267,7 +1264,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
*
|
*
|
||||||
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
|
||||||
**/
|
**/
|
||||||
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, Weight, Weight]>;
|
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, SpWeightsWeightV2Weight, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* A given location which had a version change subscription was dropped owing to an error
|
* A given location which had a version change subscription was dropped owing to an error
|
||||||
* migrating the location to our new XCM format.
|
* migrating the location to our new XCM format.
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/storage';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||||
import type { Observable } from '@polkadot/types/types';
|
import type { Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||||
@@ -402,20 +402,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* - `LastTabledWasExternal` is `false`; or
|
* - `LastTabledWasExternal` is `false`; or
|
||||||
* - `PublicProps` is empty.
|
* - `PublicProps` is empty.
|
||||||
**/
|
**/
|
||||||
nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[H256, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
nextExternal: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
|
||||||
* Map of hashes to the proposal preimage, along with who registered it and their deposit.
|
|
||||||
* The block number is the block at which it was deposited.
|
|
||||||
**/
|
|
||||||
preimages: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletDemocracyPreimageStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
||||||
/**
|
/**
|
||||||
* The number of (public) proposals that have been made so far.
|
* The number of (public) proposals that have been made so far.
|
||||||
**/
|
**/
|
||||||
publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
publicPropCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The public proposals. Unsorted. The second item is the proposal's hash.
|
* The public proposals. Unsorted. The second item is the proposal.
|
||||||
**/
|
**/
|
||||||
publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, H256, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
publicProps: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, FrameSupportPreimagesBounded, AccountId32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The next free referendum index, aka the number of referenda started so far.
|
* The next free referendum index, aka the number of referenda started so far.
|
||||||
**/
|
**/
|
||||||
@@ -426,12 +421,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
|
* 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]>;
|
referendumInfoOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletDemocracyReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
|
||||||
* Storage version of the pallet.
|
|
||||||
*
|
|
||||||
* New networks start with last version.
|
|
||||||
**/
|
|
||||||
storageVersion: AugmentedQuery<ApiType, () => Observable<Option<PalletDemocracyReleases>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
||||||
/**
|
/**
|
||||||
* All votes for a particular voter. We store the balance for the number of votes that we
|
* 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.
|
* have recorded. The second item is the total amount of delegations, that will be added.
|
||||||
@@ -496,14 +485,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* A sorted, bounded set of `(score, index)`, where each `index` points to a value in
|
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
||||||
* `SignedSubmissions`.
|
* value in `SignedSubmissions`.
|
||||||
*
|
*
|
||||||
* We never need to process more than a single signed submission at a time. Signed submissions
|
* We never need to process more than a single signed submission at a time. Signed submissions
|
||||||
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
||||||
* them one at a time instead of reading and decoding all of them at once.
|
* them one at a time instead of reading and decoding all of them at once.
|
||||||
**/
|
**/
|
||||||
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<SpNposElectionsElectionScore, u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The next index to be assigned to an incoming signed submission.
|
* The next index to be assigned to an incoming signed submission.
|
||||||
*
|
*
|
||||||
@@ -792,7 +781,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
multisig: {
|
multisig: {
|
||||||
calls: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[WrapperKeepOpaque<Call>, AccountId32, u128]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
||||||
/**
|
/**
|
||||||
* The set of open multisig operations.
|
* The set of open multisig operations.
|
||||||
**/
|
**/
|
||||||
@@ -1012,7 +1000,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Past code of parachains. The parachains themselves may not be registered anymore,
|
* Past code of parachains. The parachains themselves may not be registered anymore,
|
||||||
* but we also keep their code on-chain for the same amount of time as outdated code
|
* but we also keep their code on-chain for the same amount of time as outdated code
|
||||||
* to keep it available for secondary checkers.
|
* to keep it available for approval checkers.
|
||||||
**/
|
**/
|
||||||
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
@@ -1262,10 +1250,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
preimage: {
|
preimage: {
|
||||||
/**
|
preimageFor: AugmentedQuery<ApiType, (arg: ITuple<[H256, u32]> | [H256 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<Bytes>>, [ITuple<[H256, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[H256, u32]>]>;
|
||||||
* The preimages stored by this pallet.
|
|
||||||
**/
|
|
||||||
preimageFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
||||||
/**
|
/**
|
||||||
* The request status of a given hash.
|
* The request status of a given hash.
|
||||||
**/
|
**/
|
||||||
@@ -1315,11 +1300,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Items to be executed, indexed by the block number that they should be executed on.
|
* Items to be executed, indexed by the block number that they should be executed on.
|
||||||
**/
|
**/
|
||||||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduledV3>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
|
incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Lookup from identity to the block number and index of the task.
|
* Lookup from a name to the block number and index of the task.
|
||||||
|
*
|
||||||
|
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
||||||
|
* identities.
|
||||||
**/
|
**/
|
||||||
lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
@@ -1605,7 +1594,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* The ideal number of staking participants.
|
* The ideal number of active validators.
|
||||||
**/
|
**/
|
||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37c8bb1350a9a2a8/1 */
|
/** 0x37c8bb1350a9a2a8/2 */
|
||||||
transactionPaymentApi: {
|
transactionPaymentApi: {
|
||||||
/**
|
/**
|
||||||
* The transaction fee details
|
* The transaction fee details
|
||||||
@@ -348,7 +348,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xf3ff14d5ab527059/1 */
|
/** 0xf3ff14d5ab527059/2 */
|
||||||
transactionPaymentCallApi: {
|
transactionPaymentCallApi: {
|
||||||
/**
|
/**
|
||||||
* The call fee details
|
* The call fee details
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import '@polkadot/api-base/types/submittable';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
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 { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -754,11 +754,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Sets the maximum amount of weight any individual upward message may consume.
|
* Sets the maximum amount of weight any individual upward message may consume.
|
||||||
**/
|
**/
|
||||||
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
|
setUmpMaxIndividualWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
* Sets the soft limit for the phase of dispatching dispatchable upward messages.
|
||||||
**/
|
**/
|
||||||
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Weight]>;
|
setUmpServiceTotalWeight: AugmentedSubmittable<(updated: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Set the validation upgrade cooldown.
|
* Set the validation upgrade cooldown.
|
||||||
**/
|
**/
|
||||||
@@ -811,7 +811,42 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
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.
|
||||||
|
*
|
||||||
|
* # <weight>
|
||||||
|
* ## Weight
|
||||||
|
* - `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)
|
||||||
|
* - DB:
|
||||||
|
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
||||||
|
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
||||||
|
* `O(P2)`)
|
||||||
|
* - any mutations done while executing `proposal` (`P1`)
|
||||||
|
* - up to 3 events
|
||||||
|
* # </weight>
|
||||||
|
**/
|
||||||
|
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
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -1033,16 +1068,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
* Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
|
||||||
**/
|
**/
|
||||||
cancelProposal: AugmentedSubmittable<(propIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
cancelProposal: AugmentedSubmittable<(propIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
|
||||||
* Cancel a proposal queued for enactment.
|
|
||||||
*
|
|
||||||
* The dispatch origin of this call must be _Root_.
|
|
||||||
*
|
|
||||||
* - `which`: The index of the referendum to cancel.
|
|
||||||
*
|
|
||||||
* Weight: `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`.
|
|
||||||
**/
|
|
||||||
cancelQueued: AugmentedSubmittable<(which: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Remove a referendum.
|
* Remove a referendum.
|
||||||
*
|
*
|
||||||
@@ -1095,10 +1120,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(1)`.
|
* Weight: `O(1)`.
|
||||||
**/
|
**/
|
||||||
emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
|
||||||
* Enact a proposal from a referendum. For now we just make the weight be the maximum.
|
|
||||||
**/
|
|
||||||
enactProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Schedule a referendum to be tabled once it is legal to schedule an external
|
* Schedule a referendum to be tabled once it is legal to schedule an external
|
||||||
* referendum.
|
* referendum.
|
||||||
@@ -1106,11 +1127,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The dispatch origin of this call must be `ExternalOrigin`.
|
* The dispatch origin of this call must be `ExternalOrigin`.
|
||||||
*
|
*
|
||||||
* - `proposal_hash`: The preimage hash of the proposal.
|
* - `proposal_hash`: The preimage hash of the proposal.
|
||||||
*
|
|
||||||
* Weight: `O(V)` with V number of vetoers in the blacklist of proposal.
|
|
||||||
* Decoding vec of length V. Charged as maximum
|
|
||||||
**/
|
**/
|
||||||
externalPropose: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
externalPropose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
||||||
/**
|
/**
|
||||||
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
* Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
|
||||||
* schedule an external referendum.
|
* schedule an external referendum.
|
||||||
@@ -1124,7 +1142,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
externalProposeDefault: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
externalProposeDefault: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
||||||
/**
|
/**
|
||||||
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
* Schedule a majority-carries referendum to be tabled next once it is legal to schedule
|
||||||
* an external referendum.
|
* an external referendum.
|
||||||
@@ -1138,7 +1156,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
externalProposeMajority: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
externalProposeMajority: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
|
||||||
/**
|
/**
|
||||||
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
* Schedule the currently externally-proposed majority-carries referendum to be tabled
|
||||||
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
* immediately. If there is no externally-proposed referendum currently, or if there is one
|
||||||
@@ -1147,7 +1165,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The dispatch of this call must be `FastTrackOrigin`.
|
* The dispatch of this call must be `FastTrackOrigin`.
|
||||||
*
|
*
|
||||||
* - `proposal_hash`: The hash of the current external proposal.
|
* - `proposal_hash`: The hash of the current external proposal.
|
||||||
* - `voting_period`: The period that is allowed for voting on this proposal.
|
* - `voting_period`: The period that is allowed for voting on this proposal. Increased to
|
||||||
* Must be always greater than zero.
|
* Must be always greater than zero.
|
||||||
* For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
|
* For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
|
||||||
* - `delay`: The number of block after voting has ended in approval and this should be
|
* - `delay`: The number of block after voting has ended in approval and this should be
|
||||||
@@ -1158,42 +1176,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, u32]>;
|
fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, u32]>;
|
||||||
/**
|
|
||||||
* Register the preimage for an upcoming proposal. This requires the proposal to be
|
|
||||||
* in the dispatch queue. No deposit is needed. When this call is successful, i.e.
|
|
||||||
* the preimage has not been uploaded before and matches some imminent proposal,
|
|
||||||
* no fee is paid.
|
|
||||||
*
|
|
||||||
* The dispatch origin of this call must be _Signed_.
|
|
||||||
*
|
|
||||||
* - `encoded_proposal`: The preimage of a proposal.
|
|
||||||
*
|
|
||||||
* Emits `PreimageNoted`.
|
|
||||||
*
|
|
||||||
* Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
|
|
||||||
**/
|
|
||||||
noteImminentPreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
||||||
/**
|
|
||||||
* Same as `note_imminent_preimage` but origin is `OperationalPreimageOrigin`.
|
|
||||||
**/
|
|
||||||
noteImminentPreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
||||||
/**
|
|
||||||
* Register the preimage for an upcoming proposal. This doesn't require the proposal to be
|
|
||||||
* in the dispatch queue but does require a deposit, returned once enacted.
|
|
||||||
*
|
|
||||||
* The dispatch origin of this call must be _Signed_.
|
|
||||||
*
|
|
||||||
* - `encoded_proposal`: The preimage of a proposal.
|
|
||||||
*
|
|
||||||
* Emits `PreimageNoted`.
|
|
||||||
*
|
|
||||||
* Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
|
|
||||||
**/
|
|
||||||
notePreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
||||||
/**
|
|
||||||
* Same as `note_preimage` but origin is `OperationalPreimageOrigin`.
|
|
||||||
**/
|
|
||||||
notePreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
||||||
/**
|
/**
|
||||||
* Propose a sensitive action to be taken.
|
* Propose a sensitive action to be taken.
|
||||||
*
|
*
|
||||||
@@ -1204,28 +1186,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
* - `value`: The amount of deposit (must be at least `MinimumDeposit`).
|
||||||
*
|
*
|
||||||
* Emits `Proposed`.
|
* Emits `Proposed`.
|
||||||
*
|
|
||||||
* Weight: `O(p)`
|
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
|
propose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded, Compact<u128>]>;
|
||||||
/**
|
|
||||||
* Remove an expired proposal preimage and collect the deposit.
|
|
||||||
*
|
|
||||||
* The dispatch origin of this call must be _Signed_.
|
|
||||||
*
|
|
||||||
* - `proposal_hash`: The preimage hash of a proposal.
|
|
||||||
* - `proposal_length_upper_bound`: an upper bound on length of the proposal. Extrinsic is
|
|
||||||
* weighted according to this value with no refund.
|
|
||||||
*
|
|
||||||
* This will only work after `VotingPeriod` blocks from the time that the preimage was
|
|
||||||
* noted, if it's the same account doing it. If it's a different account, then it'll only
|
|
||||||
* work an additional `EnactmentPeriod` later.
|
|
||||||
*
|
|
||||||
* Emits `PreimageReaped`.
|
|
||||||
*
|
|
||||||
* Weight: `O(D)` where D is length of proposal.
|
|
||||||
**/
|
|
||||||
reapPreimage: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, proposalLenUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>]>;
|
|
||||||
/**
|
/**
|
||||||
* Remove a vote for a referendum.
|
* Remove a vote for a referendum.
|
||||||
*
|
*
|
||||||
@@ -1281,12 +1243,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* must have funds to cover the deposit, equal to the original deposit.
|
* must have funds to cover the deposit, equal to the original deposit.
|
||||||
*
|
*
|
||||||
* - `proposal`: The index of the proposal to second.
|
* - `proposal`: The index of the proposal to second.
|
||||||
* - `seconds_upper_bound`: an upper bound on the current number of seconds on this
|
|
||||||
* proposal. Extrinsic is weighted according to this value with no refund.
|
|
||||||
*
|
|
||||||
* Weight: `O(S)` where S is the number of seconds a proposal already has.
|
|
||||||
**/
|
**/
|
||||||
second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array, secondsUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
|
second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Undelegate the voting power of the sending account.
|
* Undelegate the voting power of the sending account.
|
||||||
*
|
*
|
||||||
@@ -1332,8 +1290,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* - `ref_index`: The index of the referendum to vote for.
|
* - `ref_index`: The index of the referendum to vote for.
|
||||||
* - `vote`: The vote configuration.
|
* - `vote`: The vote configuration.
|
||||||
*
|
|
||||||
* Weight: `O(R)` where R is the number of referendums the voter has voted on.
|
|
||||||
**/
|
**/
|
||||||
vote: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletDemocracyVoteAccountVote]>;
|
vote: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletDemocracyVoteAccountVote]>;
|
||||||
/**
|
/**
|
||||||
@@ -1502,6 +1458,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Number of inbound and outbound channels for `para` must be provided as witness data of weighing.
|
* Number of inbound and outbound channels for `para` must be provided as witness data of weighing.
|
||||||
**/
|
**/
|
||||||
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
forceCleanHrmp: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, inbound: u32 | AnyNumber | Uint8Array, outbound: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32]>;
|
||||||
|
/**
|
||||||
|
* Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although
|
||||||
|
* opened by Root, the `max_capacity` and `max_message_size` are still subject to the Relay
|
||||||
|
* Chain's configured limits.
|
||||||
|
*
|
||||||
|
* Expected use is when one of the `ParaId`s involved in the channel is governed by the
|
||||||
|
* Relay Chain, e.g. a common good parachain.
|
||||||
|
**/
|
||||||
|
forceOpenHrmpChannel: AugmentedSubmittable<(sender: u32 | AnyNumber | Uint8Array, recipient: u32 | AnyNumber | Uint8Array, maxCapacity: u32 | AnyNumber | Uint8Array, maxMessageSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Force process HRMP close channel requests.
|
* Force process HRMP close channel requests.
|
||||||
*
|
*
|
||||||
@@ -2014,7 +1979,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Write: Multisig Storage, [Caller Account]
|
* - Write: Multisig Storage, [Caller Account]
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, Weight]>;
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||||
@@ -2057,12 +2022,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||||
* -------------------------------
|
* -------------------------------
|
||||||
* - DB Weight:
|
* - DB Weight:
|
||||||
* - Reads: Multisig Storage, [Caller Account], Calls (if `store_call`)
|
* - Reads: Multisig Storage, [Caller Account]
|
||||||
* - Writes: Multisig Storage, [Caller Account], Calls (if `store_call`)
|
* - Writes: Multisig Storage, [Caller Account]
|
||||||
* - Plus Call Weight
|
* - Plus Call Weight
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, Weight]>;
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: Call | IMethod | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, Call, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||||
*
|
*
|
||||||
@@ -2106,8 +2071,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - Storage: removes one item.
|
* - Storage: removes one item.
|
||||||
* ----------------------------------
|
* ----------------------------------
|
||||||
* - DB Weight:
|
* - DB Weight:
|
||||||
* - Read: Multisig Storage, [Caller Account], Refund Account, Calls
|
* - Read: Multisig Storage, [Caller Account], Refund Account
|
||||||
* - Write: Multisig Storage, [Caller Account], Refund Account, Calls
|
* - Write: Multisig Storage, [Caller Account], Refund Account
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
||||||
@@ -2165,6 +2130,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Create a new delegation pool with a previously used pool id
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* same as `create` with the inclusion of
|
||||||
|
* * `pool_id` - `A valid PoolId.
|
||||||
|
**/
|
||||||
|
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -2514,6 +2488,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
/**
|
/**
|
||||||
* Clear an unrequested preimage from the runtime storage.
|
* Clear an unrequested preimage from the runtime storage.
|
||||||
|
*
|
||||||
|
* If `len` is provided, then it will be a much cheaper operation.
|
||||||
|
*
|
||||||
|
* - `hash`: The hash of the preimage to be removed from the store.
|
||||||
|
* - `len`: The length of the preimage of `hash`.
|
||||||
**/
|
**/
|
||||||
unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||||
/**
|
/**
|
||||||
@@ -2677,6 +2656,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
registrar: {
|
registrar: {
|
||||||
|
/**
|
||||||
|
* Add a manager lock from a para. This will prevent the manager of a
|
||||||
|
* para to deregister or swap a para.
|
||||||
|
*
|
||||||
|
* Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked.
|
||||||
|
**/
|
||||||
|
addLock: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Deregister a Para Id, freeing all data and returning any deposit.
|
* Deregister a Para Id, freeing all data and returning any deposit.
|
||||||
*
|
*
|
||||||
@@ -2692,13 +2678,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* can be registered, including sub-1000 IDs which are System Parachains.
|
* can be registered, including sub-1000 IDs which are System Parachains.
|
||||||
**/
|
**/
|
||||||
forceRegister: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, deposit: u128 | AnyNumber | Uint8Array, id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128, u32, Bytes, Bytes]>;
|
forceRegister: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, deposit: u128 | AnyNumber | Uint8Array, id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128, u32, Bytes, Bytes]>;
|
||||||
/**
|
|
||||||
* Remove a manager lock from a para. This will allow the manager of a
|
|
||||||
* previously locked para to deregister or swap a para without using governance.
|
|
||||||
*
|
|
||||||
* Can only be called by the Root origin.
|
|
||||||
**/
|
|
||||||
forceRemoveLock: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
||||||
/**
|
/**
|
||||||
* Register head data and validation code for a reserved Para Id.
|
* Register head data and validation code for a reserved Para Id.
|
||||||
*
|
*
|
||||||
@@ -2716,6 +2695,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The `Registered` event is emitted in case of success.
|
* The `Registered` event is emitted in case of success.
|
||||||
**/
|
**/
|
||||||
register: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes, Bytes]>;
|
register: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, genesisHead: Bytes | string | Uint8Array, validationCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes, Bytes]>;
|
||||||
|
/**
|
||||||
|
* Remove a manager lock from a para. This will allow the manager of a
|
||||||
|
* previously locked para to deregister or swap a para without using governance.
|
||||||
|
*
|
||||||
|
* Can only be called by the Root origin or the parachain.
|
||||||
|
**/
|
||||||
|
removeLock: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Reserve a Para Id on the relay chain.
|
* Reserve a Para Id on the relay chain.
|
||||||
*
|
*
|
||||||
@@ -2733,6 +2719,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* The `Reserved` event is emitted in case of success, which provides the ID reserved for use.
|
* The `Reserved` event is emitted in case of success, which provides the ID reserved for use.
|
||||||
**/
|
**/
|
||||||
reserve: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
reserve: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
|
/**
|
||||||
|
* Schedule a parachain upgrade.
|
||||||
|
*
|
||||||
|
* Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked.
|
||||||
|
**/
|
||||||
|
scheduleCodeUpgrade: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, newCode: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
|
/**
|
||||||
|
* Set the parachain's current head.
|
||||||
|
*
|
||||||
|
* Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked.
|
||||||
|
**/
|
||||||
|
setCurrentHead: AugmentedSubmittable<(para: u32 | AnyNumber | Uint8Array, newHead: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Swap a parachain with another parachain or parathread.
|
* Swap a parachain with another parachain or parathread.
|
||||||
*
|
*
|
||||||
@@ -2760,11 +2758,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Cancel a named scheduled task.
|
* Cancel a named scheduled task.
|
||||||
**/
|
**/
|
||||||
cancelNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
|
||||||
/**
|
/**
|
||||||
* Anonymously schedule a task.
|
* Anonymously schedule a task.
|
||||||
**/
|
**/
|
||||||
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | { Value: any } | { Hash: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
/**
|
/**
|
||||||
* Anonymously schedule a task after a delay.
|
* Anonymously schedule a task after a delay.
|
||||||
*
|
*
|
||||||
@@ -2772,11 +2770,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Same as [`schedule`].
|
* Same as [`schedule`].
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | { Value: any } | { Hash: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
/**
|
/**
|
||||||
* Schedule a named task.
|
* Schedule a named task.
|
||||||
**/
|
**/
|
||||||
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | { Value: any } | { Hash: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
/**
|
/**
|
||||||
* Schedule a named task after a delay.
|
* Schedule a named task after a delay.
|
||||||
*
|
*
|
||||||
@@ -2784,7 +2782,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Same as [`schedule_named`](Self::schedule_named).
|
* Same as [`schedule_named`](Self::schedule_named).
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | { Value: any } | { Hash: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
|
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3013,7 +3011,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Increments the ideal number of validators.
|
* Increments the ideal number of validators upto maximum of
|
||||||
|
* `ElectionProviderBase::MaxWinners`.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
*
|
||||||
@@ -3102,7 +3101,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Scale up the ideal number of validators by a factor.
|
* Scale up the ideal number of validators by a factor upto maximum of
|
||||||
|
* `ElectionProviderBase::MaxWinners`.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
*
|
||||||
@@ -3240,10 +3240,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
system: {
|
system: {
|
||||||
/**
|
|
||||||
* A dispatch that will fill the block weight up to the given ratio.
|
|
||||||
**/
|
|
||||||
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
||||||
/**
|
/**
|
||||||
* Kill all storage items with a key that starts with the given prefix.
|
* Kill all storage items with a key that starts with the given prefix.
|
||||||
*
|
*
|
||||||
@@ -3342,7 +3338,42 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* - up to 3 events
|
* - up to 3 events
|
||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<Weight> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<Weight>, Compact<u32>]>;
|
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.
|
||||||
|
*
|
||||||
|
* # <weight>
|
||||||
|
* ## Weight
|
||||||
|
* - `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)
|
||||||
|
* - DB:
|
||||||
|
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
||||||
|
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
||||||
|
* `O(P2)`)
|
||||||
|
* - any mutations done while executing `proposal` (`P1`)
|
||||||
|
* - up to 3 events
|
||||||
|
* # </weight>
|
||||||
|
**/
|
||||||
|
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
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
||||||
* state.
|
* state.
|
||||||
@@ -3763,7 +3794,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Events:
|
* Events:
|
||||||
* - `OverweightServiced`: On success.
|
* - `OverweightServiced`: On success.
|
||||||
**/
|
**/
|
||||||
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, Weight]>;
|
serviceOverweight: AugmentedSubmittable<(index: u64 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, SpWeightsWeightV2Weight]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -3789,13 +3820,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
@@ -3812,13 +3843,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Send a batch of dispatch calls and atomically execute them.
|
* Send a batch of dispatch calls and atomically execute them.
|
||||||
* The whole transaction will rollback and fail if any of the calls failed.
|
* The whole transaction will rollback and fail if any of the calls failed.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
@@ -3842,13 +3873,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
* Unlike `batch`, it allows errors and won't interrupt.
|
* Unlike `batch`, it allows errors and won't interrupt.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatch without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
@@ -4009,7 +4040,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
* NOTE: A successful return to this does *not* imply that the `msg` was executed successfully
|
||||||
* to completion; only that *some* of it was executed.
|
* to completion; only that *some* of it was executed.
|
||||||
**/
|
**/
|
||||||
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, Weight]>;
|
execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V0: any } | { V1: any } | { V2: any } | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedXcm, u64]>;
|
||||||
/**
|
/**
|
||||||
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
||||||
* version a destination can accept is unknown).
|
* version a destination can accept is unknown).
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
maxAnnouncementsCount: u32 & AugmentedConst<ApiType>;
|
maxAnnouncementsCount: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum number of members per member role. Should not exceed the sum of
|
* The maximum number of members per member role.
|
||||||
* `MaxFounders` and `MaxFellows`.
|
|
||||||
**/
|
**/
|
||||||
maxMembersCount: u32 & AugmentedConst<ApiType>;
|
maxMembersCount: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -65,6 +64,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* metadata.
|
* metadata.
|
||||||
**/
|
**/
|
||||||
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
|
||||||
|
*
|
||||||
|
* Must be configured to result in a weight that makes each call fit in a block.
|
||||||
|
**/
|
||||||
|
removeItemsLimit: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The maximum length of a name or symbol stored on-chain.
|
* The maximum length of a name or symbol stored on-chain.
|
||||||
**/
|
**/
|
||||||
@@ -234,10 +239,32 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* Changing this value for an existing chain might need a storage migration.
|
* Changing this value for an existing chain might need a storage migration.
|
||||||
**/
|
**/
|
||||||
depositPerItem: u128 & AugmentedConst<ApiType>;
|
depositPerItem: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
||||||
|
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
||||||
|
* a wasm binary below this maximum size.
|
||||||
|
**/
|
||||||
|
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum allowable length in bytes for storage keys.
|
||||||
|
**/
|
||||||
|
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Cost schedule and limits.
|
* Cost schedule and limits.
|
||||||
**/
|
**/
|
||||||
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
|
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Make contract callable functions marked as `#[unstable]` available.
|
||||||
|
*
|
||||||
|
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
||||||
|
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
||||||
|
* experiment with new features.
|
||||||
|
*
|
||||||
|
* # Warning
|
||||||
|
*
|
||||||
|
* Do **not** set to `true` on productions chains.
|
||||||
|
**/
|
||||||
|
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -247,8 +274,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The maximum number of concurrent votes an account may have.
|
* The maximum number of concurrent votes an account may have.
|
||||||
*
|
*
|
||||||
* Also used to compute weight, an overly large value can
|
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
||||||
* lead to extrinsic with large weight estimation: see `delegate` for instance.
|
* weight estimation: see `delegate` for instance.
|
||||||
**/
|
**/
|
||||||
maxVotes: u32 & AugmentedConst<ApiType>;
|
maxVotes: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -350,6 +377,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
* take place over multiple blocks.
|
* take place over multiple blocks.
|
||||||
**/
|
**/
|
||||||
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of winners that can be elected by this `ElectionProvider`
|
||||||
|
* implementation.
|
||||||
|
*
|
||||||
|
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
||||||
|
**/
|
||||||
|
maxWinners: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
||||||
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
||||||
@@ -469,6 +503,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
fastUnstake: {
|
||||||
|
/**
|
||||||
|
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
||||||
|
* the costs of resources on unsuccessful unstake.
|
||||||
|
**/
|
||||||
|
deposit: u128 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
gilt: {
|
gilt: {
|
||||||
/**
|
/**
|
||||||
* Portion of the queue which is free from ordering and just a FIFO.
|
* Portion of the queue which is free from ordering and just a FIFO.
|
||||||
@@ -624,7 +669,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|||||||
/**
|
/**
|
||||||
* The maximum amount of signatories allowed in the multisig.
|
* The maximum amount of signatories allowed in the multisig.
|
||||||
**/
|
**/
|
||||||
maxSignatories: u16 & AugmentedConst<ApiType>;
|
maxSignatories: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
BadWitness: AugmentedError<ApiType>;
|
BadWitness: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Founders must be provided to initialize the Alliance.
|
* Fellows must be provided to initialize the Alliance.
|
||||||
**/
|
**/
|
||||||
FoundersMissing: AugmentedError<ApiType>;
|
FellowsMissing: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance is insufficient for the required deposit.
|
* Balance is insufficient for the required deposit.
|
||||||
**/
|
**/
|
||||||
@@ -65,10 +65,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Account is not an ally.
|
* Account is not an ally.
|
||||||
**/
|
**/
|
||||||
NotAlly: AugmentedError<ApiType>;
|
NotAlly: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* Account is not a founder.
|
|
||||||
**/
|
|
||||||
NotFounder: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Item has not been deemed unscrupulous.
|
* Item has not been deemed unscrupulous.
|
||||||
**/
|
**/
|
||||||
@@ -77,10 +73,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Account is not a member.
|
* Account is not a member.
|
||||||
**/
|
**/
|
||||||
NotMember: AugmentedError<ApiType>;
|
NotMember: AugmentedError<ApiType>;
|
||||||
/**
|
|
||||||
* The proposal is not vetoable.
|
|
||||||
**/
|
|
||||||
NotVetoableProposal: AugmentedError<ApiType>;
|
|
||||||
/**
|
/**
|
||||||
* Account does not have voting rights.
|
* Account does not have voting rights.
|
||||||
**/
|
**/
|
||||||
@@ -173,6 +165,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The asset-account already exists.
|
* The asset-account already exists.
|
||||||
**/
|
**/
|
||||||
AlreadyExists: AugmentedError<ApiType>;
|
AlreadyExists: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset is not live, and likely being destroyed.
|
||||||
|
**/
|
||||||
|
AssetNotLive: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Invalid metadata given.
|
* Invalid metadata given.
|
||||||
**/
|
**/
|
||||||
@@ -189,10 +185,19 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The origin account is frozen.
|
* The origin account is frozen.
|
||||||
**/
|
**/
|
||||||
Frozen: AugmentedError<ApiType>;
|
Frozen: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset status is not the expected status.
|
||||||
|
**/
|
||||||
|
IncorrectStatus: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The asset ID is already taken.
|
* The asset ID is already taken.
|
||||||
**/
|
**/
|
||||||
InUse: AugmentedError<ApiType>;
|
InUse: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset is a live asset and is actively being used. Usually emit for operations such
|
||||||
|
* as `start_destroy` which require the asset to be in a destroying state.
|
||||||
|
**/
|
||||||
|
LiveAsset: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Minimum balance should be non-zero.
|
* Minimum balance should be non-zero.
|
||||||
**/
|
**/
|
||||||
@@ -215,6 +220,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* maximum number of consumers has been reached.
|
* maximum number of consumers has been reached.
|
||||||
**/
|
**/
|
||||||
NoProvider: AugmentedError<ApiType>;
|
NoProvider: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* The asset should be frozen before the given operation.
|
||||||
|
**/
|
||||||
|
NotFrozen: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* No approval exists that would allow the transfer.
|
* No approval exists that would allow the transfer.
|
||||||
**/
|
**/
|
||||||
@@ -306,7 +315,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
ExistingVestingSchedule: AugmentedError<ApiType>;
|
ExistingVestingSchedule: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Balance too low to send value
|
* Balance too low to send value.
|
||||||
**/
|
**/
|
||||||
InsufficientBalance: AugmentedError<ApiType>;
|
InsufficientBalance: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -410,8 +419,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
CodeNotFound: AugmentedError<ApiType>;
|
CodeNotFound: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The contract's code was found to be invalid during validation or instrumentation.
|
* 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
|
||||||
|
* your node to the newest available version.
|
||||||
|
*
|
||||||
* A more detailed error can be found on the node console if debug messages are enabled
|
* A more detailed error can be found on the node console if debug messages are enabled
|
||||||
* or in the debug buffer which is returned to RPC clients.
|
* by supplying `-lruntime::contracts=debug`.
|
||||||
**/
|
**/
|
||||||
CodeRejected: AugmentedError<ApiType>;
|
CodeRejected: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -458,6 +472,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The topics passed to `seal_deposit_events` contains at least one duplicate.
|
* The topics passed to `seal_deposit_events` contains at least one duplicate.
|
||||||
**/
|
**/
|
||||||
DuplicateTopics: AugmentedError<ApiType>;
|
DuplicateTopics: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* An indetermistic code was used in a context where this is not permitted.
|
||||||
|
**/
|
||||||
|
Indeterministic: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
||||||
**/
|
**/
|
||||||
@@ -739,6 +757,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
[key: string]: AugmentedError<ApiType>;
|
[key: string]: AugmentedError<ApiType>;
|
||||||
};
|
};
|
||||||
electionProviderMultiPhase: {
|
electionProviderMultiPhase: {
|
||||||
|
/**
|
||||||
|
* Some bound not met
|
||||||
|
**/
|
||||||
|
BoundNotMet: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The call is not allowed at this point.
|
* The call is not allowed at this point.
|
||||||
**/
|
**/
|
||||||
@@ -787,6 +809,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* The signed submission consumes too much weight
|
* The signed submission consumes too much weight
|
||||||
**/
|
**/
|
||||||
SignedTooMuchWeight: AugmentedError<ApiType>;
|
SignedTooMuchWeight: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Submitted solution has too many winners
|
||||||
|
**/
|
||||||
|
TooManyWinners: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic error
|
* Generic error
|
||||||
**/
|
**/
|
||||||
@@ -1006,6 +1032,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Judgement given.
|
* Judgement given.
|
||||||
**/
|
**/
|
||||||
JudgementGiven: AugmentedError<ApiType>;
|
JudgementGiven: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Error that occurs when there is an issue paying for judgement.
|
||||||
|
**/
|
||||||
|
JudgementPaymentFailed: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* No identity found.
|
* No identity found.
|
||||||
**/
|
**/
|
||||||
@@ -1211,6 +1241,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* anymore to, for example, collect rewards).
|
* anymore to, for example, collect rewards).
|
||||||
**/
|
**/
|
||||||
FullyUnbonding: AugmentedError<ApiType>;
|
FullyUnbonding: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Pool id provided is not correct/usable.
|
||||||
|
**/
|
||||||
|
InvalidPoolId: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Too many members in the pool or system.
|
* Too many members in the pool or system.
|
||||||
**/
|
**/
|
||||||
@@ -1260,6 +1294,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
* Partial unbonding now allowed permissionlessly.
|
* Partial unbonding now allowed permissionlessly.
|
||||||
**/
|
**/
|
||||||
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
||||||
|
/**
|
||||||
|
* Pool id currently in use.
|
||||||
|
**/
|
||||||
|
PoolIdInUse: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* An account is not a member.
|
* An account is not a member.
|
||||||
**/
|
**/
|
||||||
@@ -1401,7 +1439,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
BadTrack: AugmentedError<ApiType>;
|
BadTrack: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* There are already a full complement of referendums in progress for this track.
|
* There are already a full complement of referenda in progress for this track.
|
||||||
**/
|
**/
|
||||||
Full: AugmentedError<ApiType>;
|
Full: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -1521,7 +1559,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
BadTrack: AugmentedError<ApiType>;
|
BadTrack: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* There are already a full complement of referendums in progress for this track.
|
* There are already a full complement of referenda in progress for this track.
|
||||||
**/
|
**/
|
||||||
Full: AugmentedError<ApiType>;
|
Full: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -1806,8 +1844,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|||||||
**/
|
**/
|
||||||
TooManyTargets: AugmentedError<ApiType>;
|
TooManyTargets: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
* There are too many validators in the system. Governance needs to adjust the staking
|
* There are too many validator candidates in the system. Governance needs to adjust the
|
||||||
* settings to keep things safe for the runtime.
|
* staking settings to keep things safe for the runtime.
|
||||||
**/
|
**/
|
||||||
TooManyValidators: AugmentedError<ApiType>;
|
TooManyValidators: AugmentedError<ApiType>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
/**
|
/**
|
||||||
* Alliance disbanded. Includes number deleted members and unreserved deposits.
|
* Alliance disbanded. Includes number deleted members and unreserved deposits.
|
||||||
**/
|
**/
|
||||||
AllianceDisbanded: AugmentedEvent<ApiType, [votingMembers: u32, allyMembers: u32, unreserved: u32], { votingMembers: u32, allyMembers: u32, unreserved: u32 }>;
|
AllianceDisbanded: AugmentedEvent<ApiType, [fellowMembers: u32, allyMembers: u32, unreserved: u32], { fellowMembers: u32, allyMembers: u32, unreserved: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An ally has been elevated to Fellow.
|
* An ally has been elevated to Fellow.
|
||||||
**/
|
**/
|
||||||
@@ -32,6 +32,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An on-chain announcement has been removed.
|
* An on-chain announcement has been removed.
|
||||||
**/
|
**/
|
||||||
AnnouncementRemoved: AugmentedEvent<ApiType, [announcement: PalletAllianceCid], { announcement: PalletAllianceCid }>;
|
AnnouncementRemoved: AugmentedEvent<ApiType, [announcement: PalletAllianceCid], { announcement: PalletAllianceCid }>;
|
||||||
|
/**
|
||||||
|
* A Fellow abdicated their voting rights. They are now an Ally.
|
||||||
|
**/
|
||||||
|
FellowAbdicated: AugmentedEvent<ApiType, [fellow: AccountId32], { fellow: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* A member has been kicked out with its deposit slashed.
|
* A member has been kicked out with its deposit slashed.
|
||||||
**/
|
**/
|
||||||
@@ -45,9 +49,9 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
MemberRetirementPeriodStarted: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
MemberRetirementPeriodStarted: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||||
/**
|
/**
|
||||||
* Some accounts have been initialized as members (founders/fellows/allies).
|
* Some accounts have been initialized as members (fellows/allies).
|
||||||
**/
|
**/
|
||||||
MembersInitialized: AugmentedEvent<ApiType, [founders: Vec<AccountId32>, fellows: Vec<AccountId32>, allies: Vec<AccountId32>], { founders: Vec<AccountId32>, fellows: Vec<AccountId32>, allies: Vec<AccountId32> }>;
|
MembersInitialized: AugmentedEvent<ApiType, [fellows: Vec<AccountId32>, allies: Vec<AccountId32>], { fellows: Vec<AccountId32>, allies: Vec<AccountId32> }>;
|
||||||
/**
|
/**
|
||||||
* An account has been added as an Ally and reserved its deposit.
|
* An account has been added as an Ally and reserved its deposit.
|
||||||
**/
|
**/
|
||||||
@@ -106,10 +110,18 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
assets: {
|
assets: {
|
||||||
|
/**
|
||||||
|
* Accounts were destroyed for given asset.
|
||||||
|
**/
|
||||||
|
AccountsDestroyed: AugmentedEvent<ApiType, [assetId: u32, accountsDestroyed: u32, accountsRemaining: u32], { assetId: u32, accountsDestroyed: u32, accountsRemaining: u32 }>;
|
||||||
/**
|
/**
|
||||||
* An approval for account `delegate` was cancelled by `owner`.
|
* An approval for account `delegate` was cancelled by `owner`.
|
||||||
**/
|
**/
|
||||||
ApprovalCancelled: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32], { assetId: u32, owner: AccountId32, delegate: AccountId32 }>;
|
ApprovalCancelled: AugmentedEvent<ApiType, [assetId: u32, owner: AccountId32, delegate: AccountId32], { assetId: u32, owner: AccountId32, delegate: AccountId32 }>;
|
||||||
|
/**
|
||||||
|
* Approvals were destroyed for given asset.
|
||||||
|
**/
|
||||||
|
ApprovalsDestroyed: AugmentedEvent<ApiType, [assetId: u32, approvalsDestroyed: u32, approvalsRemaining: u32], { assetId: u32, approvalsDestroyed: u32, approvalsRemaining: u32 }>;
|
||||||
/**
|
/**
|
||||||
* (Additional) funds have been approved for transfer to a destination account.
|
* (Additional) funds have been approved for transfer to a destination account.
|
||||||
**/
|
**/
|
||||||
@@ -138,6 +150,10 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
* An asset class was destroyed.
|
* An asset class was destroyed.
|
||||||
**/
|
**/
|
||||||
Destroyed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
Destroyed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||||
|
/**
|
||||||
|
* An asset class is in the process of being destroyed.
|
||||||
|
**/
|
||||||
|
DestructionStarted: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||||
/**
|
/**
|
||||||
* Some asset class was force-created.
|
* Some asset class was force-created.
|
||||||
**/
|
**/
|
||||||
@@ -552,14 +568,16 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
};
|
};
|
||||||
fastUnstake: {
|
fastUnstake: {
|
||||||
/**
|
/**
|
||||||
* A staker was partially checked for the given eras, but the process did not finish.
|
* A batch was partially checked for the given eras, but the process did not finish.
|
||||||
**/
|
**/
|
||||||
Checking: AugmentedEvent<ApiType, [stash: AccountId32, eras: Vec<u32>], { stash: AccountId32, eras: Vec<u32> }>;
|
BatchChecked: AugmentedEvent<ApiType, [eras: Vec<u32>], { eras: Vec<u32> }>;
|
||||||
/**
|
/**
|
||||||
* Some internal error happened while migrating stash. They are removed as head as a
|
* A batch was terminated.
|
||||||
* consequence.
|
*
|
||||||
|
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
||||||
|
* of the batch. A new batch will be created upon next block.
|
||||||
**/
|
**/
|
||||||
Errored: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
|
BatchFinished: AugmentedEvent<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* An internal error happened. Operations will be paused now.
|
* An internal error happened. Operations will be paused now.
|
||||||
**/
|
**/
|
||||||
@@ -879,7 +897,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
MemberRemoved: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
MemberRemoved: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
||||||
/**
|
/**
|
||||||
* The member `who`'s rank has been changed to the given `rank`.
|
* The member `who`se rank has been changed to the given `rank`.
|
||||||
**/
|
**/
|
||||||
RankChanged: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
RankChanged: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
||||||
/**
|
/**
|
||||||
@@ -932,7 +950,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||||
/**
|
/**
|
||||||
* A referendum has being submitted.
|
* A referendum has been submitted.
|
||||||
**/
|
**/
|
||||||
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded }>;
|
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded }>;
|
||||||
/**
|
/**
|
||||||
@@ -1014,7 +1032,7 @@ declare module '@polkadot/api-base/types/events' {
|
|||||||
**/
|
**/
|
||||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||||
/**
|
/**
|
||||||
* A referendum has being submitted.
|
* A referendum has been submitted.
|
||||||
**/
|
**/
|
||||||
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded }>;
|
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded }>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import '@polkadot/api-base/types/storage';
|
|||||||
|
|
||||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||||
import type { Data } from '@polkadot/types';
|
import type { Data } from '@polkadot/types';
|
||||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
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, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, 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, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, 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';
|
||||||
@@ -30,7 +30,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
/**
|
/**
|
||||||
* Maps member type to members of each type.
|
* Maps member type to members of each type.
|
||||||
**/
|
**/
|
||||||
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
||||||
/**
|
/**
|
||||||
* A set of members who gave a retirement notice. They can retire after the end of retirement
|
* A set of members who gave a retirement notice. They can retire after the end of retirement
|
||||||
* period stored as a future block number.
|
* period stored as a future block number.
|
||||||
@@ -38,9 +38,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* The IPFS CID of the alliance rule.
|
* The IPFS CID of the alliance rule.
|
||||||
* Founders and fellows can propose a new rule with a super-majority.
|
* Fellows can propose a new rule with a super-majority.
|
||||||
*
|
|
||||||
* Any founder has a special one-vote veto right to the rule setting.
|
|
||||||
**/
|
**/
|
||||||
rule: AugmentedQuery<ApiType, () => Observable<Option<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
|
rule: AugmentedQuery<ApiType, () => Observable<Option<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -273,6 +271,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
* 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]>;
|
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* The total units of outstanding deactivated balance in the system.
|
||||||
|
**/
|
||||||
|
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Any liquidity locks on some account balances.
|
* Any liquidity locks on some account balances.
|
||||||
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||||
@@ -544,14 +546,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* A sorted, bounded set of `(score, index)`, where each `index` points to a value in
|
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
||||||
* `SignedSubmissions`.
|
* value in `SignedSubmissions`.
|
||||||
*
|
*
|
||||||
* We never need to process more than a single signed submission at a time. Signed submissions
|
* We never need to process more than a single signed submission at a time. Signed submissions
|
||||||
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
||||||
* them one at a time instead of reading and decoding all of them at once.
|
* them one at a time instead of reading and decoding all of them at once.
|
||||||
**/
|
**/
|
||||||
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<SpNposElectionsElectionScore, u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* The next index to be assigned to an incoming signed submission.
|
* The next index to be assigned to an incoming signed submission.
|
||||||
*
|
*
|
||||||
@@ -1455,7 +1457,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
**/
|
**/
|
||||||
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* The ideal number of staking participants.
|
* The ideal number of active validators.
|
||||||
**/
|
**/
|
||||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
@@ -1713,6 +1715,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|||||||
* Proposal indices that have been approved but not yet awarded.
|
* Proposal indices that have been approved but not yet awarded.
|
||||||
**/
|
**/
|
||||||
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* The amount which has been reported as inactive to Currency.
|
||||||
|
**/
|
||||||
|
inactive: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* Number of proposals that have been made.
|
* Number of proposals that have been made.
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import '@polkadot/api-base/types/calls';
|
import '@polkadot/api-base/types/calls';
|
||||||
|
|
||||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, Null, Option, Result, Vec, u32, u64 } from '@polkadot/types-codec';
|
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
||||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
||||||
@@ -18,7 +18,7 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t
|
|||||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
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, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||||
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
||||||
@@ -105,12 +105,12 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x68b66ba122c93fa7/1 */
|
/** 0x68b66ba122c93fa7/2 */
|
||||||
contractsApi: {
|
contractsApi: {
|
||||||
/**
|
/**
|
||||||
* Perform a call from a specified account to a given contract.
|
* Perform a call from a specified account to a given contract.
|
||||||
**/
|
**/
|
||||||
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
|
call: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, dest: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | { refTime?: any; proofSize?: any } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, inputData: Bytes | string | Uint8Array) => Observable<ContractExecResult>>;
|
||||||
/**
|
/**
|
||||||
* Query a given storage key in a given contract.
|
* Query a given storage key in a given contract.
|
||||||
**/
|
**/
|
||||||
@@ -118,7 +118,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
/**
|
/**
|
||||||
* Instantiate a new contract.
|
* Instantiate a new contract.
|
||||||
**/
|
**/
|
||||||
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: Option<WeightV2> | null | Uint8Array | WeightV2 | { refTime?: any; proofSize?: any } | string, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
||||||
/**
|
/**
|
||||||
* Upload new code without instantiating a contract from it.
|
* Upload new code without instantiating a contract from it.
|
||||||
**/
|
**/
|
||||||
@@ -264,7 +264,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0x37c8bb1350a9a2a8/1 */
|
/** 0x37c8bb1350a9a2a8/2 */
|
||||||
transactionPaymentApi: {
|
transactionPaymentApi: {
|
||||||
/**
|
/**
|
||||||
* The transaction fee details
|
* The transaction fee details
|
||||||
@@ -279,7 +279,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: DecoratedCallBase<ApiType>;
|
[key: string]: DecoratedCallBase<ApiType>;
|
||||||
};
|
};
|
||||||
/** 0xf3ff14d5ab527059/1 */
|
/** 0xf3ff14d5ab527059/2 */
|
||||||
transactionPaymentCallApi: {
|
transactionPaymentCallApi: {
|
||||||
/**
|
/**
|
||||||
* The call fee details
|
* The call 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 { 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 { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||||
@@ -19,6 +19,12 @@ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = Submittab
|
|||||||
declare module '@polkadot/api-base/types/submittable' {
|
declare module '@polkadot/api-base/types/submittable' {
|
||||||
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
||||||
alliance: {
|
alliance: {
|
||||||
|
/**
|
||||||
|
* Abdicate one's position as a voting member and just be an Ally. May be used by Fellows
|
||||||
|
* who do not want to leave the Alliance but do not have the capacity to participate
|
||||||
|
* operationally for some time.
|
||||||
|
**/
|
||||||
|
abdicateFellowStatus: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
/**
|
/**
|
||||||
* Add accounts or websites to the list of unscrupulous items.
|
* Add accounts or websites to the list of unscrupulous items.
|
||||||
**/
|
**/
|
||||||
@@ -30,13 +36,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
||||||
*
|
*
|
||||||
* Requires the sender to be a founder or fellow.
|
* 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: 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.
|
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
||||||
*
|
*
|
||||||
* Requires the sender to be a founder or fellow.
|
* 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>]>;
|
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>]>;
|
||||||
/**
|
/**
|
||||||
@@ -44,9 +50,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Witness data must be set.
|
* Witness data must be set.
|
||||||
**/
|
**/
|
||||||
disband: AugmentedSubmittable<(witness: PalletAllianceDisbandWitness | { votingMembers?: any; allyMembers?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceDisbandWitness]>;
|
disband: AugmentedSubmittable<(witness: PalletAllianceDisbandWitness | { fellowMembers?: any; allyMembers?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceDisbandWitness]>;
|
||||||
/**
|
/**
|
||||||
* Elevate an ally to fellow.
|
* Elevate an Ally to Fellow.
|
||||||
**/
|
**/
|
||||||
elevateAlly: AugmentedSubmittable<(ally: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
elevateAlly: AugmentedSubmittable<(ally: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
@@ -55,30 +61,30 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
giveRetirementNotice: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
giveRetirementNotice: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
/**
|
/**
|
||||||
* Initialize the Alliance, onboard founders, fellows, and allies.
|
* Initialize the Alliance, onboard fellows and allies.
|
||||||
|
*
|
||||||
|
* The Alliance must be empty, and the call must provide some founding members.
|
||||||
*
|
*
|
||||||
* Founders must be not empty.
|
|
||||||
* The Alliance must be empty.
|
|
||||||
* Must be called by the Root origin.
|
* Must be called by the Root origin.
|
||||||
**/
|
**/
|
||||||
initMembers: AugmentedSubmittable<(founders: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>, Vec<AccountId32>]>;
|
initMembers: AugmentedSubmittable<(fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>]>;
|
||||||
/**
|
/**
|
||||||
* Submit oneself for candidacy. A fixed deposit is reserved.
|
* Submit oneself for candidacy. A fixed deposit is reserved.
|
||||||
**/
|
**/
|
||||||
joinAlliance: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
joinAlliance: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
/**
|
/**
|
||||||
* Kick a member from the alliance and slash its deposit.
|
* Kick a member from the Alliance and slash its deposit.
|
||||||
**/
|
**/
|
||||||
kickMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
kickMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* A founder or fellow can nominate someone to join the alliance as an Ally.
|
* A Fellow can nominate someone to join the alliance as an Ally. There is no deposit
|
||||||
* There is no deposit required to the nominator or nominee.
|
* required from the nominator or nominee.
|
||||||
**/
|
**/
|
||||||
nominateAlly: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
nominateAlly: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||||
/**
|
/**
|
||||||
* Add a new proposal to be voted on.
|
* Add a new proposal to be voted on.
|
||||||
*
|
*
|
||||||
* Requires the sender to be a founder or fellow.
|
* Must be called by a Fellow.
|
||||||
**/
|
**/
|
||||||
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
@@ -86,29 +92,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
removeAnnouncement: AugmentedSubmittable<(announcement: PalletAllianceCid | { version?: any; codec?: any; hash_?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
|
removeAnnouncement: AugmentedSubmittable<(announcement: PalletAllianceCid | { version?: any; codec?: any; hash_?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
|
||||||
/**
|
/**
|
||||||
* Deem an item no longer unscrupulous.
|
* Deem some items no longer unscrupulous.
|
||||||
**/
|
**/
|
||||||
removeUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | { AccountId: any } | { Website: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
|
removeUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | { AccountId: any } | { Website: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
|
||||||
/**
|
/**
|
||||||
* As a member, retire from the alliance and unreserve the deposit.
|
* As a member, retire from the Alliance and unreserve the deposit.
|
||||||
* This can only be done once you have `give_retirement_notice` and it has expired.
|
*
|
||||||
|
* This can only be done once you have called `give_retirement_notice` and the
|
||||||
|
* `RetirementPeriod` has passed.
|
||||||
**/
|
**/
|
||||||
retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||||
/**
|
/**
|
||||||
* Set a new IPFS CID to the alliance rule.
|
* Set a new IPFS CID to the alliance rule.
|
||||||
**/
|
**/
|
||||||
setRule: AugmentedSubmittable<(rule: PalletAllianceCid | { version?: any; codec?: any; hash_?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
|
setRule: AugmentedSubmittable<(rule: PalletAllianceCid | { version?: any; codec?: any; hash_?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
|
||||||
/**
|
|
||||||
* Veto a proposal about `set_rule` and `elevate_ally`, close, and remove it from the
|
|
||||||
* system, regardless of its current state.
|
|
||||||
*
|
|
||||||
* Must be called by a founder.
|
|
||||||
**/
|
|
||||||
veto: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
||||||
/**
|
/**
|
||||||
* Add an aye or nay vote for the sender to the given proposal.
|
* Add an aye or nay vote for the sender to the given proposal.
|
||||||
*
|
*
|
||||||
* Requires the sender to be a founder or fellow.
|
* Must be called by a Fellow.
|
||||||
**/
|
**/
|
||||||
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
||||||
/**
|
/**
|
||||||
@@ -383,7 +384,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* This new asset class has no assets initially and its owner is the origin.
|
* This new asset class has no assets initially and its owner is the origin.
|
||||||
*
|
*
|
||||||
* The origin must be Signed and the sender must have sufficient funds free.
|
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
||||||
*
|
*
|
||||||
* Funds of sender are reserved by `AssetDeposit`.
|
* Funds of sender are reserved by `AssetDeposit`.
|
||||||
*
|
*
|
||||||
@@ -401,26 +402,48 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, u128]>;
|
create: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, u128]>;
|
||||||
/**
|
/**
|
||||||
* Destroy a class of fungible assets.
|
* Destroy all accounts associated with a given asset.
|
||||||
*
|
*
|
||||||
* The origin must conform to `ForceOrigin` or must be Signed and the sender must be the
|
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
||||||
* owner of the asset `id`.
|
* asset is in a `Destroying` state.
|
||||||
|
*
|
||||||
|
* Due to weight restrictions, this function may need to be called multiple times to fully
|
||||||
|
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
|
||||||
*
|
*
|
||||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||||
* asset.
|
* asset.
|
||||||
*
|
*
|
||||||
* Emits `Destroyed` event when successful.
|
* Each call emits the `Event::DestroyedAccounts` event.
|
||||||
*
|
|
||||||
* NOTE: It can be helpful to first freeze an asset before destroying it so that you
|
|
||||||
* can provide accurate witness information and prevent users from manipulating state
|
|
||||||
* in a way that can make it harder to destroy.
|
|
||||||
*
|
|
||||||
* Weight: `O(c + p + a)` where:
|
|
||||||
* - `c = (witness.accounts - witness.sufficients)`
|
|
||||||
* - `s = witness.sufficients`
|
|
||||||
* - `a = witness.approvals`
|
|
||||||
**/
|
**/
|
||||||
destroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, witness: PalletAssetsDestroyWitness | { accounts?: any; sufficients?: any; approvals?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletAssetsDestroyWitness]>;
|
destroyAccounts: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
|
/**
|
||||||
|
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
|
||||||
|
*
|
||||||
|
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
||||||
|
* asset is in a `Destroying` state.
|
||||||
|
*
|
||||||
|
* Due to weight restrictions, this function may need to be called multiple times to fully
|
||||||
|
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
|
||||||
|
*
|
||||||
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||||
|
* asset.
|
||||||
|
*
|
||||||
|
* Each call emits the `Event::DestroyedApprovals` event.
|
||||||
|
**/
|
||||||
|
destroyApprovals: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
|
/**
|
||||||
|
* Complete destroying asset and unreserve currency.
|
||||||
|
*
|
||||||
|
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
||||||
|
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
||||||
|
* hand.
|
||||||
|
*
|
||||||
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||||
|
* asset.
|
||||||
|
*
|
||||||
|
* Each successful call emits the `Event::Destroyed` event.
|
||||||
|
**/
|
||||||
|
finishDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Alter the attributes of a given asset.
|
* Alter the attributes of a given asset.
|
||||||
*
|
*
|
||||||
@@ -622,6 +645,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Weight: `O(1)`
|
* Weight: `O(1)`
|
||||||
**/
|
**/
|
||||||
setTeam: AugmentedSubmittable<(id: Compact<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>, [Compact<u32>, MultiAddress, MultiAddress, MultiAddress]>;
|
setTeam: AugmentedSubmittable<(id: Compact<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>, [Compact<u32>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Start the process of destroying a fungible asset class.
|
||||||
|
*
|
||||||
|
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
|
||||||
|
* destruction of an asset class.
|
||||||
|
*
|
||||||
|
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
|
||||||
|
*
|
||||||
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||||
|
* asset.
|
||||||
|
*
|
||||||
|
* The asset class must be frozen before calling `start_destroy`.
|
||||||
|
**/
|
||||||
|
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Allow unprivileged transfers from an account again.
|
* Allow unprivileged transfers from an account again.
|
||||||
*
|
*
|
||||||
@@ -1265,6 +1302,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* the in storage version to the current
|
* the in storage version to the current
|
||||||
* [`InstructionWeights::version`](InstructionWeights).
|
* [`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.
|
||||||
|
*
|
||||||
* # Note
|
* # Note
|
||||||
*
|
*
|
||||||
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
||||||
@@ -1272,7 +1313,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* only be instantiated by permissioned entities. The same is true when uploading
|
* only be instantiated by permissioned entities. The same is true when uploading
|
||||||
* through [`Self::instantiate_with_code`].
|
* through [`Self::instantiate_with_code`].
|
||||||
**/
|
**/
|
||||||
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>]>;
|
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]>;
|
||||||
/**
|
/**
|
||||||
* Generic tx
|
* Generic tx
|
||||||
**/
|
**/
|
||||||
@@ -1360,7 +1401,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Undelegate the voting power of the sending account for a particular class of polls.
|
* 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
|
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
||||||
* of the conviction with which the delegation was issued.
|
* 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
|
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
||||||
* currently delegating.
|
* currently delegating.
|
||||||
@@ -1374,7 +1415,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
||||||
/**
|
/**
|
||||||
* Remove the lock caused prior voting/delegating which has expired within a particluar
|
* Remove the lock caused by prior voting/delegating which has expired within a particular
|
||||||
* class.
|
* class.
|
||||||
*
|
*
|
||||||
* The dispatch origin of this call must be _Signed_.
|
* The dispatch origin of this call must be _Signed_.
|
||||||
@@ -2798,6 +2839,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* needs at have at least `amount + existential_deposit` transferrable.
|
* needs at have at least `amount + existential_deposit` transferrable.
|
||||||
**/
|
**/
|
||||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||||
|
/**
|
||||||
|
* Create a new delegation pool with a previously used pool id
|
||||||
|
*
|
||||||
|
* # Arguments
|
||||||
|
*
|
||||||
|
* same as `create` with the inclusion of
|
||||||
|
* * `pool_id` - `A valid PoolId.
|
||||||
|
**/
|
||||||
|
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||||
/**
|
/**
|
||||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||||
* pools account and immediately increases the pools bond.
|
* pools account and immediately increases the pools bond.
|
||||||
@@ -3475,6 +3525,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
rootTesting: {
|
||||||
|
/**
|
||||||
|
* A dispatch that will fill the block weight up to the given ratio.
|
||||||
|
**/
|
||||||
|
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
scheduler: {
|
scheduler: {
|
||||||
/**
|
/**
|
||||||
* Cancel an anonymously scheduled task.
|
* Cancel an anonymously scheduled task.
|
||||||
@@ -4034,7 +4094,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Increments the ideal number of validators.
|
* Increments the ideal number of validators upto maximum of
|
||||||
|
* `ElectionProviderBase::MaxWinners`.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
*
|
||||||
@@ -4123,7 +4184,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
||||||
/**
|
/**
|
||||||
* Scale up the ideal number of validators by a factor.
|
* Scale up the ideal number of validators by a factor upto maximum of
|
||||||
|
* `ElectionProviderBase::MaxWinners`.
|
||||||
*
|
*
|
||||||
* The dispatch origin must be Root.
|
* The dispatch origin must be Root.
|
||||||
*
|
*
|
||||||
@@ -4388,10 +4450,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
system: {
|
system: {
|
||||||
/**
|
|
||||||
* A dispatch that will fill the block weight up to the given ratio.
|
|
||||||
**/
|
|
||||||
fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
||||||
/**
|
/**
|
||||||
* Kill all storage items with a key that starts with the given prefix.
|
* Kill all storage items with a key that starts with the given prefix.
|
||||||
*
|
*
|
||||||
@@ -5085,7 +5143,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
*
|
*
|
||||||
* This new collection has no items initially and its owner is the origin.
|
* This new collection has no items initially and its owner is the origin.
|
||||||
*
|
*
|
||||||
* The origin must be Signed and the sender must have sufficient funds free.
|
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
||||||
*
|
*
|
||||||
* `ItemDeposit` funds of sender are reserved.
|
* `ItemDeposit` funds of sender are reserved.
|
||||||
*
|
*
|
||||||
@@ -5414,13 +5472,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
@@ -5437,13 +5495,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Send a batch of dispatch calls and atomically execute them.
|
* Send a batch of dispatch calls and atomically execute them.
|
||||||
* The whole transaction will rollback and fail if any of the calls failed.
|
* The whole transaction will rollback and fail if any of the calls failed.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
@@ -5467,13 +5525,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|||||||
* Send a batch of dispatch calls.
|
* Send a batch of dispatch calls.
|
||||||
* Unlike `batch`, it allows errors and won't interrupt.
|
* Unlike `batch`, it allows errors and won't interrupt.
|
||||||
*
|
*
|
||||||
* May be called from any origin.
|
* May be called from any origin except `None`.
|
||||||
*
|
*
|
||||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||||
*
|
*
|
||||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
* If origin is root then the calls are dispatch without checking origin filter. (This
|
||||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/rpc-core": "9.6.1",
|
"@polkadot/rpc-core": "9.10.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11",
|
"@polkadot/util": "^10.2.1",
|
||||||
"rxjs": "^7.5.7"
|
"rxjs": "^7.5.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2022 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2022 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
|
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2022 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './detectPackage';
|
import './detectPackage';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2022 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2022 @polkadot/api-base authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './index';
|
export * from './index';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -11,8 +11,10 @@ export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction =
|
|||||||
: <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
|
: <T extends Codec | any = ReturnCodec<F>> (...args: Parameters<F>) => Promise<T>;
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
|
export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
|
||||||
DecoratedCallBase<ApiType, F> & { meta: DefinitionCallNamed };
|
/** The metadata/description/definition for this method */
|
||||||
|
meta: DefinitionCallNamed
|
||||||
|
};
|
||||||
|
|
||||||
// augmented interfaces
|
// augmented interfaces
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AnyFunction, Callback, DefinitionRpc } from '@polkadot/types/types';
|
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
||||||
|
|
||||||
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base';
|
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base';
|
||||||
|
|
||||||
@@ -29,6 +29,8 @@ export type DecoratedRpcSection<ApiType extends ApiTypes, Section> = {
|
|||||||
: never
|
: never
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type RawRpcType<ApiType extends ApiTypes> = (method: string, ...params: unknown[]) => ApiType extends 'rxjs' ? Observable<AnyJson> : Promise<AnyJson>;
|
||||||
|
|
||||||
export type DecoratedRpc<ApiType extends ApiTypes, AllSections> = {
|
export type DecoratedRpc<ApiType extends ApiTypes, AllSections> = {
|
||||||
[S in keyof AllSections]: DecoratedRpcSection<ApiType, AllSections[S]>
|
[S in keyof AllSections]: DecoratedRpcSection<ApiType, AllSections[S]>
|
||||||
}
|
} & RawRpcType<ApiType>
|
||||||
|
|||||||
@@ -50,6 +50,11 @@ export interface SubmittableResultValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmittableResult = ISubmittableResult> extends Extrinsic {
|
export interface SubmittableExtrinsic<ApiType extends ApiTypes, R extends ISubmittableResult = ISubmittableResult> extends Extrinsic {
|
||||||
|
/** true if api.rpc.system.dryRun is available, enabling dryRun(...) */
|
||||||
|
hasDryRun: boolean;
|
||||||
|
/** true if api.call.transactionPaymentApi.queryInfo is available, enabling paymentInfo(...) */
|
||||||
|
hasPaymentInfo: boolean;
|
||||||
|
|
||||||
dryRun (account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableDryRunResult<ApiType>;
|
dryRun (account: AddressOrPair, options?: Partial<SignerOptions>): SubmittableDryRunResult<ApiType>;
|
||||||
|
|
||||||
paymentInfo (account: AddressOrPair, options?: Partial<SignerOptions>): SubmittablePaymentResult<ApiType>;
|
paymentInfo (account: AddressOrPair, options?: Partial<SignerOptions>): SubmittablePaymentResult<ApiType>;
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/api": "9.6.1",
|
"@polkadot/api": "9.10.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/types-create": "9.6.1",
|
"@polkadot/types-create": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11",
|
"@polkadot/util": "^10.2.1",
|
||||||
"@polkadot/util-crypto": "^10.1.11",
|
"@polkadot/util-crypto": "^10.2.1",
|
||||||
"rxjs": "^7.5.7"
|
"rxjs": "^7.5.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.6.1",
|
"@polkadot/api-augment": "9.10.1",
|
||||||
"@polkadot/keyring": "^10.1.11"
|
"@polkadot/keyring": "^10.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||||
import type { INumber, Registry } from '@polkadot/types/types';
|
import type { WeightV2 } from '@polkadot/types/interfaces';
|
||||||
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
import { ApiBase } from '@polkadot/api/base';
|
import { ApiBase } from '@polkadot/api/base';
|
||||||
import { isFunction } from '@polkadot/util';
|
import { isFunction } from '@polkadot/util';
|
||||||
@@ -16,7 +17,7 @@ export abstract class Base<ApiType extends ApiTypes> {
|
|||||||
|
|
||||||
protected readonly _decorateMethod: DecorateMethod<ApiType>;
|
protected readonly _decorateMethod: DecorateMethod<ApiType>;
|
||||||
|
|
||||||
protected readonly _isOldWeight: boolean;
|
protected readonly _isWeightV1: boolean;
|
||||||
|
|
||||||
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, decorateMethod: DecorateMethod<ApiType>) {
|
constructor (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, decorateMethod: DecorateMethod<ApiType>) {
|
||||||
if (!api || !api.isConnected || !api.tx) {
|
if (!api || !api.isConnected || !api.tx) {
|
||||||
@@ -32,7 +33,7 @@ export abstract class Base<ApiType extends ApiTypes> {
|
|||||||
: new Abi(abi, api.registry.getChainProperties());
|
: new Abi(abi, api.registry.getChainProperties());
|
||||||
this.api = api;
|
this.api = api;
|
||||||
this._decorateMethod = decorateMethod;
|
this._decorateMethod = decorateMethod;
|
||||||
this._isOldWeight = isFunction(api.registry.createType<INumber>('Weight').toBn);
|
this._isWeightV1 = !api.registry.createType<WeightV2>('Weight').proofSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get registry (): Registry {
|
public get registry (): Registry {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { SubmittableExtrinsic } from '@polkadot/api/submittable/types';
|
|||||||
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
||||||
import type { AccountId, EventRecord, Hash } from '@polkadot/types/interfaces';
|
import type { AccountId, EventRecord, Hash } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { AbiConstructor, BlueprintOptions, WeightAll } from '../types';
|
import type { AbiConstructor, BlueprintOptions } from '../types';
|
||||||
import type { MapConstructorExec } from './types';
|
import type { MapConstructorExec } from './types';
|
||||||
|
|
||||||
import { SubmittableResult } from '@polkadot/api';
|
import { SubmittableResult } from '@polkadot/api';
|
||||||
@@ -59,9 +59,10 @@ export class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
#deploy = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, storageDepositLimit = null, value = BN_ZERO }: BlueprintOptions, params: unknown[]): SubmittableExtrinsic<ApiType, BlueprintSubmittableResult<ApiType>> => {
|
#deploy = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, storageDepositLimit = null, value = BN_ZERO }: BlueprintOptions, params: unknown[]): SubmittableExtrinsic<ApiType, BlueprintSubmittableResult<ApiType>> => {
|
||||||
return this.api.tx.contracts.instantiate(
|
return this.api.tx.contracts.instantiate(
|
||||||
value,
|
value,
|
||||||
this._isOldWeight
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// jiggle v1 weights, metadata points to latest
|
// @ts-ignore jiggle v1 weights, metadata points to latest
|
||||||
? convertWeight(gasLimit).v1Weight as unknown as WeightAll['v2Weight']
|
this._isWeightV1
|
||||||
|
? convertWeight(gasLimit).v1Weight
|
||||||
: convertWeight(gasLimit).v2Weight,
|
: convertWeight(gasLimit).v2Weight,
|
||||||
storageDepositLimit,
|
storageDepositLimit,
|
||||||
this.codeHash,
|
this.codeHash,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { ApiTypes, DecorateMethod } from '@polkadot/api/types';
|
|||||||
import type { AccountId, EventRecord } from '@polkadot/types/interfaces';
|
import type { AccountId, EventRecord } from '@polkadot/types/interfaces';
|
||||||
import type { ISubmittableResult } from '@polkadot/types/types';
|
import type { ISubmittableResult } from '@polkadot/types/types';
|
||||||
import type { Codec } from '@polkadot/types-codec/types';
|
import type { Codec } from '@polkadot/types-codec/types';
|
||||||
import type { AbiConstructor, BlueprintOptions, WeightAll } from '../types';
|
import type { AbiConstructor, BlueprintOptions } from '../types';
|
||||||
import type { MapConstructorExec } from './types';
|
import type { MapConstructorExec } from './types';
|
||||||
|
|
||||||
import { SubmittableResult } from '@polkadot/api';
|
import { SubmittableResult } from '@polkadot/api';
|
||||||
@@ -66,9 +66,10 @@ export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
#instantiate = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, storageDepositLimit = null, value = BN_ZERO }: BlueprintOptions, params: unknown[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
#instantiate = (constructorOrId: AbiConstructor | string | number, { gasLimit = BN_ZERO, salt, storageDepositLimit = null, value = BN_ZERO }: BlueprintOptions, params: unknown[]): SubmittableExtrinsic<ApiType, CodeSubmittableResult<ApiType>> => {
|
||||||
return this.api.tx.contracts.instantiateWithCode(
|
return this.api.tx.contracts.instantiateWithCode(
|
||||||
value,
|
value,
|
||||||
this._isOldWeight
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// jiggle v1 weights, metadata points to latest
|
// @ts-ignore jiggle v1 weights, metadata points to latest
|
||||||
? convertWeight(gasLimit).v1Weight as unknown as WeightAll['v2Weight']
|
this._isWeightV1
|
||||||
|
? convertWeight(gasLimit).v1Weight
|
||||||
: convertWeight(gasLimit).v2Weight,
|
: convertWeight(gasLimit).v2Weight,
|
||||||
storageDepositLimit,
|
storageDepositLimit,
|
||||||
compactAddLength(this.code),
|
compactAddLength(this.code),
|
||||||
|
|||||||
@@ -107,9 +107,10 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
return this.api.tx.contracts.call(
|
return this.api.tx.contracts.call(
|
||||||
this.address,
|
this.address,
|
||||||
value,
|
value,
|
||||||
this._isOldWeight
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// jiggle v1 weights, metadata points to latest
|
// @ts-ignore jiggle v1 weights, metadata points to latest
|
||||||
? convertWeight(gasLimit).v1Weight as unknown as WeightAll['v2Weight']
|
this._isWeightV1
|
||||||
|
? convertWeight(gasLimit).v1Weight
|
||||||
: convertWeight(gasLimit).v2Weight,
|
: convertWeight(gasLimit).v2Weight,
|
||||||
storageDepositLimit,
|
storageDepositLimit,
|
||||||
this.abi.findMessage(messageOrId).toU8a(params)
|
this.abi.findMessage(messageOrId).toU8a(params)
|
||||||
@@ -141,15 +142,18 @@ export class Contract<ApiType extends ApiTypes> extends Base<ApiType> {
|
|||||||
origin,
|
origin,
|
||||||
this.address,
|
this.address,
|
||||||
value,
|
value,
|
||||||
// the runtime interface still used u64 inputs
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
this.#getGas(gasLimit, true).v1Weight,
|
// @ts-ignore jiggle v1 weights, metadata points to latest
|
||||||
|
this._isWeightV1
|
||||||
|
? this.#getGas(gasLimit, true).v1Weight
|
||||||
|
: this.#getGas(gasLimit, true).v2Weight,
|
||||||
storageDepositLimit,
|
storageDepositLimit,
|
||||||
message.toU8a(params)
|
message.toU8a(params)
|
||||||
).pipe(
|
).pipe(
|
||||||
map(({ debugMessage, gasConsumed, gasRequired, result, storageDeposit }): ContractCallOutcome => ({
|
map(({ debugMessage, gasConsumed, gasRequired, result, storageDeposit }): ContractCallOutcome => ({
|
||||||
debugMessage,
|
debugMessage,
|
||||||
gasConsumed,
|
gasConsumed,
|
||||||
gasRequired: gasRequired && !gasRequired.isZero()
|
gasRequired: gasRequired && !convertWeight(gasRequired).v1Weight.isZero()
|
||||||
? gasRequired
|
? gasRequired
|
||||||
: gasConsumed,
|
: gasConsumed,
|
||||||
output: result.isOk && message.returnType
|
output: result.isOk && message.returnType
|
||||||
|
|||||||
@@ -40,13 +40,17 @@ export function encodeSalt (salt: Uint8Array | string | null = randomAsU8a()): U
|
|||||||
: EMPTY_SALT;
|
: EMPTY_SALT;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function convertWeight (orig: WeightV1 | WeightV2 | bigint | string | number | BN): WeightAll {
|
export function convertWeight (weight: WeightV1 | WeightV2 | bigint | string | number | BN): WeightAll {
|
||||||
const refTime = (orig as WeightV2).proofSize
|
const [refTime, proofSize] = isWeightV2(weight)
|
||||||
? (orig as WeightV2).refTime.toBn()
|
? [weight.refTime.toBn(), weight.proofSize.toBn()]
|
||||||
: bnToBn(orig as BN);
|
: [bnToBn(weight), undefined];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
v1Weight: refTime,
|
v1Weight: refTime,
|
||||||
v2Weight: { refTime }
|
v2Weight: { proofSize, refTime }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function isWeightV2 (weight: WeightV1 | WeightV2 | bigint | string | number | BN): weight is WeightV2 {
|
||||||
|
return !!(weight as WeightV2).proofSize;
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
import type { ApiBase } from '@polkadot/api/base';
|
import type { ApiBase } from '@polkadot/api/base';
|
||||||
import type { ApiTypes } from '@polkadot/api/types';
|
import type { ApiTypes } from '@polkadot/api/types';
|
||||||
import type { Text, u64 } from '@polkadot/types';
|
import type { Text } from '@polkadot/types';
|
||||||
import type { ContractExecResultResult, ContractSelector, StorageDeposit, WeightV2 } from '@polkadot/types/interfaces';
|
import type { ContractExecResultResult, ContractSelector, StorageDeposit, Weight, WeightV2 } from '@polkadot/types/interfaces';
|
||||||
import type { Codec, TypeDef } from '@polkadot/types/types';
|
import type { Codec, TypeDef } from '@polkadot/types/types';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { Abi } from '.';
|
import type { Abi } from '.';
|
||||||
@@ -55,8 +55,8 @@ export interface InterfaceContractCalls {
|
|||||||
|
|
||||||
export interface ContractCallOutcome {
|
export interface ContractCallOutcome {
|
||||||
debugMessage: Text;
|
debugMessage: Text;
|
||||||
gasConsumed: u64;
|
gasConsumed: Weight;
|
||||||
gasRequired: u64;
|
gasRequired: Weight;
|
||||||
output: Codec | null;
|
output: Codec | null;
|
||||||
result: ContractExecResultResult;
|
result: ContractExecResultResult;
|
||||||
storageDeposit: StorageDeposit;
|
storageDeposit: StorageDeposit;
|
||||||
@@ -86,5 +86,6 @@ export interface WeightAll {
|
|||||||
v1Weight: BN;
|
v1Weight: BN;
|
||||||
v2Weight: {
|
v2Weight: {
|
||||||
refTime: BN;
|
refTime: BN;
|
||||||
|
proofSize?: BN;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,25 +20,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/api": "9.6.1",
|
"@polkadot/api": "9.10.1",
|
||||||
"@polkadot/api-augment": "9.6.1",
|
"@polkadot/api-augment": "9.10.1",
|
||||||
"@polkadot/api-base": "9.6.1",
|
"@polkadot/api-base": "9.10.1",
|
||||||
"@polkadot/rpc-core": "9.6.1",
|
"@polkadot/rpc-core": "9.10.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11",
|
"@polkadot/util": "^10.2.1",
|
||||||
"@polkadot/util-crypto": "^10.1.11",
|
"@polkadot/util-crypto": "^10.2.1",
|
||||||
"rxjs": "^7.5.7"
|
"rxjs": "^7.5.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "9.6.1",
|
"@polkadot/api": "9.10.1",
|
||||||
"@polkadot/api-augment": "9.6.1",
|
"@polkadot/api-augment": "9.10.1",
|
||||||
"@polkadot/rpc-augment": "9.6.1",
|
"@polkadot/rpc-augment": "9.10.1",
|
||||||
"@polkadot/rpc-provider": "9.6.1",
|
"@polkadot/rpc-provider": "9.10.1",
|
||||||
"@polkadot/types-support": "9.6.1"
|
"@polkadot/types-support": "9.10.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { Option, Vec } from '@polkadot/types';
|
import type { Bytes, Option, u8, u32, Vec } from '@polkadot/types';
|
||||||
import type { BlockNumber, Call, Hash, ReferendumIndex, Scheduled } from '@polkadot/types/interfaces';
|
import type { BlockNumber, Call, Hash, ReferendumIndex, Scheduled } from '@polkadot/types/interfaces';
|
||||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleMaybeHashed, PalletSchedulerScheduled, PalletSchedulerScheduledV3 } from '@polkadot/types/lookup';
|
import type { FrameSupportPreimagesBounded, PalletSchedulerScheduled } from '@polkadot/types/lookup';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { Codec, ITuple } from '@polkadot/types/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { DeriveApi, DeriveDispatch, DeriveProposalImage } from '../types';
|
import type { DeriveApi, DeriveDispatch, DeriveProposalImage } from '../types';
|
||||||
|
|
||||||
@@ -19,6 +19,23 @@ import { getImageHashBounded } from './util';
|
|||||||
|
|
||||||
const DEMOCRACY_ID = stringToHex('democrac');
|
const DEMOCRACY_ID = stringToHex('democrac');
|
||||||
|
|
||||||
|
// included here for backwards compat
|
||||||
|
interface PalletSchedulerScheduledV3 extends Codec {
|
||||||
|
maybeId: Option<Bytes>;
|
||||||
|
priority: u8;
|
||||||
|
call: FrameSupportScheduleMaybeHashed;
|
||||||
|
maybePeriodic: Option<ITuple<[u32, u32]>>;
|
||||||
|
origin: Codec;
|
||||||
|
}
|
||||||
|
|
||||||
|
// included here for backwards compat
|
||||||
|
interface FrameSupportScheduleMaybeHashed extends Codec {
|
||||||
|
isHash: boolean;
|
||||||
|
isValue: boolean;
|
||||||
|
asValue: Call;
|
||||||
|
asHash: Hash;
|
||||||
|
}
|
||||||
|
|
||||||
interface SchedulerInfo {
|
interface SchedulerInfo {
|
||||||
at: BlockNumber;
|
at: BlockNumber;
|
||||||
imageHash: HexString;
|
imageHash: HexString;
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ function getDemocracyImages (api: DeriveApi, hashes: (Hash | Uint8Array | string
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getImages (api: DeriveApi, bounded: FrameSupportPreimagesBounded[]): Observable<(DeriveProposalImage | undefined)[]> {
|
function getImages (api: DeriveApi, bounded: (FrameSupportPreimagesBounded | Uint8Array | string)[]): Observable<(DeriveProposalImage | undefined)[]> {
|
||||||
const hashes = bounded.map((b) => getImageHashBounded(b));
|
const hashes = bounded.map((b) => getImageHashBounded(b));
|
||||||
|
|
||||||
return api.query.preimage.statusFor.multi(hashes).pipe(
|
return api.query.preimage.statusFor.multi(hashes).pipe(
|
||||||
@@ -123,7 +123,7 @@ export function preimages (instanceId: string, api: DeriveApi): (hashes: (Hash |
|
|||||||
? isFunction(api.query.democracy.preimages)
|
? isFunction(api.query.democracy.preimages)
|
||||||
? getDemocracyImages(api, hashes as string[])
|
? getDemocracyImages(api, hashes as string[])
|
||||||
: isFunction(api.query.preimage.preimageFor)
|
: isFunction(api.query.preimage.preimageFor)
|
||||||
? getImages(api, hashes as FrameSupportPreimagesBounded[])
|
? getImages(api, hashes)
|
||||||
: of([])
|
: of([])
|
||||||
: of([])
|
: of([])
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { Option } from '@polkadot/types-codec';
|
|||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { DeriveReferendum, DeriveReferendumVote, DeriveReferendumVotes, DeriveReferendumVoteState } from '../types';
|
import type { DeriveReferendum, DeriveReferendumVote, DeriveReferendumVotes, DeriveReferendumVoteState } from '../types';
|
||||||
|
|
||||||
import { BN, bnSqrt, objectSpread } from '@polkadot/util';
|
import { BN, bnSqrt, isHex, isString, isU8a, objectSpread, stringToHex, u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
interface ApproxState {
|
interface ApproxState {
|
||||||
votedAye: BN;
|
votedAye: BN;
|
||||||
@@ -141,7 +141,7 @@ export function getStatus (info: Option<PalletDemocracyReferendumInfo | Referend
|
|||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getImageHashBounded (hash: Hash | FrameSupportPreimagesBounded): HexString {
|
export function getImageHashBounded (hash: Uint8Array | string | Hash | FrameSupportPreimagesBounded): HexString {
|
||||||
return (hash as FrameSupportPreimagesBounded).isLegacy
|
return (hash as FrameSupportPreimagesBounded).isLegacy
|
||||||
? (hash as FrameSupportPreimagesBounded).asLegacy.hash_.toHex()
|
? (hash as FrameSupportPreimagesBounded).asLegacy.hash_.toHex()
|
||||||
: (hash as FrameSupportPreimagesBounded).isLookup
|
: (hash as FrameSupportPreimagesBounded).isLookup
|
||||||
@@ -149,7 +149,13 @@ export function getImageHashBounded (hash: Hash | FrameSupportPreimagesBounded):
|
|||||||
// for inline, use the actual Bytes hash
|
// for inline, use the actual Bytes hash
|
||||||
: (hash as FrameSupportPreimagesBounded).isInline
|
: (hash as FrameSupportPreimagesBounded).isInline
|
||||||
? (hash as FrameSupportPreimagesBounded).asInline.hash.toHex()
|
? (hash as FrameSupportPreimagesBounded).asInline.hash.toHex()
|
||||||
: hash.toHex();
|
: isString(hash)
|
||||||
|
? isHex(hash)
|
||||||
|
? hash
|
||||||
|
: stringToHex(hash)
|
||||||
|
: isU8a(hash)
|
||||||
|
? u8aToHex(hash)
|
||||||
|
: hash.toHex();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getImageHash (status: PalletDemocracyReferendumStatus | ReferendumInfoTo239): HexString {
|
export function getImageHash (status: PalletDemocracyReferendumStatus | ReferendumInfoTo239): HexString {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
+18
-18
@@ -20,29 +20,29 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/api-augment": "9.6.1",
|
"@polkadot/api-augment": "9.10.1",
|
||||||
"@polkadot/api-base": "9.6.1",
|
"@polkadot/api-base": "9.10.1",
|
||||||
"@polkadot/api-derive": "9.6.1",
|
"@polkadot/api-derive": "9.10.1",
|
||||||
"@polkadot/keyring": "^10.1.11",
|
"@polkadot/keyring": "^10.2.1",
|
||||||
"@polkadot/rpc-augment": "9.6.1",
|
"@polkadot/rpc-augment": "9.10.1",
|
||||||
"@polkadot/rpc-core": "9.6.1",
|
"@polkadot/rpc-core": "9.10.1",
|
||||||
"@polkadot/rpc-provider": "9.6.1",
|
"@polkadot/rpc-provider": "9.10.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-augment": "9.6.1",
|
"@polkadot/types-augment": "9.10.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/types-create": "9.6.1",
|
"@polkadot/types-create": "9.10.1",
|
||||||
"@polkadot/types-known": "9.6.1",
|
"@polkadot/types-known": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11",
|
"@polkadot/util": "^10.2.1",
|
||||||
"@polkadot/util-crypto": "^10.1.11",
|
"@polkadot/util-crypto": "^10.2.1",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"rxjs": "^7.5.7"
|
"rxjs": "^7.5.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "9.6.1",
|
"@polkadot/api-augment": "9.10.1",
|
||||||
"@polkadot/types-support": "9.6.1"
|
"@polkadot/types-support": "9.10.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type { StorageKey, Text, u64 } from '@polkadot/types';
|
|||||||
import type { Call, Hash, RuntimeVersion } from '@polkadot/types/interfaces';
|
import type { Call, Hash, RuntimeVersion } from '@polkadot/types/interfaces';
|
||||||
import type { DecoratedMeta } from '@polkadot/types/metadata/decorate/types';
|
import type { DecoratedMeta } from '@polkadot/types/metadata/decorate/types';
|
||||||
import type { StorageEntry } from '@polkadot/types/primitive/types';
|
import type { StorageEntry } from '@polkadot/types/primitive/types';
|
||||||
import type { AnyFunction, AnyTuple, CallFunction, Codec, DefinitionCallNamed, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, DefinitionsCallEntry, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
|
import type { AnyFunction, AnyJson, AnyTuple, CallFunction, Codec, DefinitionCallNamed, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, DefinitionsCallEntry, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { SubmittableExtrinsic } from '../submittable/types';
|
import type { SubmittableExtrinsic } from '../submittable/types';
|
||||||
import type { ApiDecoration, ApiInterfaceRx, ApiOptions, ApiTypes, AugmentedQuery, DecoratedErrors, DecoratedEvents, DecoratedRpc, DecorateMethod, GenericStorageEntryFunction, PaginationOptions, QueryableConsts, QueryableStorage, QueryableStorageEntry, QueryableStorageEntryAt, QueryableStorageMulti, QueryableStorageMultiArg, SubmittableExtrinsicFunction, SubmittableExtrinsics } from '../types';
|
import type { ApiDecoration, ApiInterfaceRx, ApiOptions, ApiTypes, AugmentedQuery, DecoratedErrors, DecoratedEvents, DecoratedRpc, DecorateMethod, GenericStorageEntryFunction, PaginationOptions, QueryableConsts, QueryableStorage, QueryableStorageEntry, QueryableStorageEntryAt, QueryableStorageMulti, QueryableStorageMultiArg, SubmittableExtrinsicFunction, SubmittableExtrinsics } from '../types';
|
||||||
@@ -167,7 +167,9 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
this._rx.registry = this.#registry;
|
this._rx.registry = this.#registry;
|
||||||
|
|
||||||
const thisProvider = options.source
|
const thisProvider = options.source
|
||||||
? options.source._rpcCore.provider.clone()
|
? options.source._rpcCore.provider.isClonable
|
||||||
|
? options.source._rpcCore.provider.clone()
|
||||||
|
: options.source._rpcCore.provider
|
||||||
: (options.provider || new WsProvider());
|
: (options.provider || new WsProvider());
|
||||||
|
|
||||||
this._decorateMethod = decorateMethod;
|
this._decorateMethod = decorateMethod;
|
||||||
@@ -401,15 +403,23 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
const [k, { method, section }] = allKnown[i];
|
const [k, { method, section }] = allKnown[i];
|
||||||
|
|
||||||
if (hasResults && !exposed.includes(k) && k !== 'rpc_methods') {
|
if (hasResults && !exposed.includes(k) && k !== 'rpc_methods') {
|
||||||
if ((this._rpc as Record<string, Record<string, unknown>>)[section]) {
|
if ((this._rpc as unknown as Record<string, Record<string, unknown>>)[section]) {
|
||||||
delete (this._rpc as Record<string, Record<string, unknown>>)[section][method];
|
delete (this._rpc as unknown as Record<string, Record<string, unknown>>)[section][method];
|
||||||
delete (this._rx.rpc as Record<string, Record<string, unknown>>)[section][method];
|
delete (this._rx.rpc as unknown as Record<string, Record<string, unknown>>)[section][method];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected _decorateRpc<ApiType extends ApiTypes> (rpc: RpcCore & RpcInterface, decorateMethod: DecorateMethod<ApiType>, input: Partial<DecoratedRpc<ApiType, RpcInterface>> = {}): DecoratedRpc<ApiType, RpcInterface> {
|
private _rpcSubmitter<ApiType extends ApiTypes> (decorateMethod: DecorateMethod<ApiType>): DecoratedRpc<ApiType, RpcInterface> {
|
||||||
|
const method = (method: string, ...params: any[]) => {
|
||||||
|
return from(this._rpcCore.provider.send<AnyJson>(method, params));
|
||||||
|
};
|
||||||
|
|
||||||
|
return decorateMethod(method) as DecoratedRpc<ApiType, RpcInterface>;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected _decorateRpc<ApiType extends ApiTypes> (rpc: RpcCore & RpcInterface, decorateMethod: DecorateMethod<ApiType>, input: Partial<DecoratedRpc<ApiType, RpcInterface>> = this._rpcSubmitter(decorateMethod)): DecoratedRpc<ApiType, RpcInterface> {
|
||||||
const out: Record<string, Record<string, unknown>> = input;
|
const out: Record<string, Record<string, unknown>> = input;
|
||||||
|
|
||||||
const decorateFn = (section: string, method: string): unknown => {
|
const decorateFn = (section: string, method: string): unknown => {
|
||||||
@@ -446,7 +456,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return out as DecoratedRpc<ApiType, RpcInterface>;
|
return out as unknown as DecoratedRpc<ApiType, RpcInterface>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add all definition entries
|
// add all definition entries
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
|||||||
|
|
||||||
for (let s = 0; s < sections.length; s++) {
|
for (let s = 0; s < sections.length; s++) {
|
||||||
const section = sections[s];
|
const section = sections[s];
|
||||||
const methods = Object.keys((source.rpc as Record<string, Record<string, unknown>>)[section]);
|
const methods = Object.keys((source.rpc as unknown as Record<string, Record<string, unknown>>)[section]);
|
||||||
|
|
||||||
for (let m = 0; m < methods.length; m++) {
|
for (let m = 0; m < methods.length; m++) {
|
||||||
rpcs.push(`${section}_${methods[m]}`);
|
rpcs.push(`${section}_${methods[m]}`);
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -155,4 +155,14 @@ describe('ApiPromise', (): void => {
|
|||||||
await api.disconnect();
|
await api.disconnect();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('api.rpc(...)', (): void => {
|
||||||
|
it('allows sending rpc call', async (): Promise<void> => {
|
||||||
|
const { api } = await createTransfer();
|
||||||
|
|
||||||
|
expect(await api.rpc('dev_echo', 'hello', 'world')).toEqual(['hello', 'world']);
|
||||||
|
|
||||||
|
await api.disconnect();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -100,9 +100,17 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
|||||||
this.#ignoreStatusCb = apiType === 'rxjs';
|
this.#ignoreStatusCb = apiType === 'rxjs';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get hasDryRun (): boolean {
|
||||||
|
return isFunction(api.rpc.system?.dryRun);
|
||||||
|
}
|
||||||
|
|
||||||
|
public get hasPaymentInfo (): boolean {
|
||||||
|
return isFunction(api.call.transactionPaymentApi?.queryInfo);
|
||||||
|
}
|
||||||
|
|
||||||
// dry run an extrinsic
|
// dry run an extrinsic
|
||||||
public dryRun (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittableDryRunResult<ApiType> {
|
public dryRun (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittableDryRunResult<ApiType> {
|
||||||
if (!api.rpc.system?.dryRun) {
|
if (!this.hasDryRun) {
|
||||||
throw new Error('The system.dryRun RPC call is not available in your environment');
|
throw new Error('The system.dryRun RPC call is not available in your environment');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +132,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
|||||||
|
|
||||||
// calculate the payment info for this transaction (if signed and submitted)
|
// calculate the payment info for this transaction (if signed and submitted)
|
||||||
public paymentInfo (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittablePaymentResult<ApiType> {
|
public paymentInfo (account: AddressOrPair, optionsOrHash?: Partial<SignerOptions> | Uint8Array | string): SubmittablePaymentResult<ApiType> {
|
||||||
if (!api.call.transactionPaymentApi?.queryInfo) {
|
if (!this.hasPaymentInfo) {
|
||||||
throw new Error('The transactionPaymentApi.queryInfo runtime call is not available in your environment');
|
throw new Error('The transactionPaymentApi.queryInfo runtime call is not available in your environment');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# @polkadot/api-augment
|
# @polkadot/rpc-augment
|
||||||
|
|
||||||
Generated augmentation.
|
Generated augmentation.
|
||||||
|
|||||||
@@ -20,13 +20,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/rpc-core": "9.6.1",
|
"@polkadot/rpc-core": "9.10.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11"
|
"@polkadot/util": "^10.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
|
|||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
||||||
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
|
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequestV1 } from '@polkadot/types/interfaces/contracts';
|
||||||
import type { BlockStats } from '@polkadot/types/interfaces/dev';
|
import type { BlockStats } from '@polkadot/types/interfaces/dev';
|
||||||
import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
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 { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
||||||
@@ -23,7 +23,7 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|||||||
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
|
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
|
||||||
import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
|
import type { MmrLeafBatchProof, MmrLeafProof } from '@polkadot/types/interfaces/mmr';
|
||||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
||||||
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||||
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
|
import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from '@polkadot/types/interfaces/state';
|
||||||
@@ -155,7 +155,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|||||||
* @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
|
* @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
|
||||||
* Instantiate a new contract
|
* Instantiate a new contract
|
||||||
**/
|
**/
|
||||||
instantiate: AugmentedRpc<(request: InstantiateRequest | { origin?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
instantiate: AugmentedRpc<(request: InstantiateRequestV1 | { origin?: any; value?: any; gasLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
||||||
/**
|
/**
|
||||||
* @deprecated Not available in newer versions of the contracts interfaces
|
* @deprecated Not available in newer versions of the contracts interfaces
|
||||||
* Returns the projected time a given contract will be able to sustain paying its rent
|
* Returns the projected time a given contract will be able to sustain paying its rent
|
||||||
@@ -407,13 +407,15 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|||||||
};
|
};
|
||||||
payment: {
|
payment: {
|
||||||
/**
|
/**
|
||||||
|
* @deprecated Use `api.call.transactionPaymentApi.queryFeeDetails` instead
|
||||||
* Query the detailed fee of a given encoded extrinsic
|
* Query the detailed fee of a given encoded extrinsic
|
||||||
**/
|
**/
|
||||||
queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
|
queryFeeDetails: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<FeeDetails>>;
|
||||||
/**
|
/**
|
||||||
|
* @deprecated Use `api.call.transactionPaymentApi.queryInfo` instead
|
||||||
* Retrieves the fee information for an encoded extrinsic
|
* Retrieves the fee information for an encoded extrinsic
|
||||||
**/
|
**/
|
||||||
queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfo>>;
|
queryInfo: AugmentedRpc<(extrinsic: Bytes | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<RuntimeDispatchInfoV1>>;
|
||||||
};
|
};
|
||||||
rpc: {
|
rpc: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -20,18 +20,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/rpc-augment": "9.6.1",
|
"@polkadot/rpc-augment": "9.10.1",
|
||||||
"@polkadot/rpc-provider": "9.6.1",
|
"@polkadot/rpc-provider": "9.10.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11",
|
"@polkadot/util": "^10.2.1",
|
||||||
"rxjs": "^7.5.7"
|
"rxjs": "^7.5.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^10.1.11",
|
"@polkadot/keyring": "^10.2.1",
|
||||||
"@polkadot/rpc-augment": "9.6.1"
|
"@polkadot/rpc-augment": "9.10.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -20,19 +20,19 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/keyring": "^10.1.11",
|
"@polkadot/keyring": "^10.2.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-support": "9.6.1",
|
"@polkadot/types-support": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11",
|
"@polkadot/util": "^10.2.1",
|
||||||
"@polkadot/util-crypto": "^10.1.11",
|
"@polkadot/util-crypto": "^10.2.1",
|
||||||
"@polkadot/x-fetch": "^10.1.11",
|
"@polkadot/x-fetch": "^10.2.1",
|
||||||
"@polkadot/x-global": "^10.1.11",
|
"@polkadot/x-global": "^10.2.1",
|
||||||
"@polkadot/x-ws": "^10.1.11",
|
"@polkadot/x-ws": "^10.2.1",
|
||||||
"@substrate/connect": "0.7.15",
|
"@substrate/connect": "0.7.17",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"mock-socket": "^9.1.5",
|
"mock-socket": "^9.1.5",
|
||||||
"nock": "^13.2.9"
|
"nock": "^13.2.9"
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
|
|
||||||
export { HttpProvider } from './http';
|
export { HttpProvider } from './http';
|
||||||
export { packageInfo } from './packageInfo';
|
export { packageInfo } from './packageInfo';
|
||||||
export { WsProvider } from './ws';
|
|
||||||
export { ScProvider } from './substrate-connect';
|
export { ScProvider } from './substrate-connect';
|
||||||
|
export { WsProvider } from './ws';
|
||||||
|
|||||||
@@ -97,6 +97,13 @@ export class HttpProvider implements ProviderInterface {
|
|||||||
return this.#stats;
|
return this.#stats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary `true` when this provider supports clone()
|
||||||
|
*/
|
||||||
|
public get isClonable (): boolean {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @summary Whether the node is connected or not.
|
* @summary Whether the node is connected or not.
|
||||||
* @return {boolean} true if connected
|
* @return {boolean} true if connected
|
||||||
|
|||||||
@@ -72,7 +72,9 @@ export class MockProvider implements ProviderInterface {
|
|||||||
system_name: () => 'mockClient',
|
system_name: () => 'mockClient',
|
||||||
system_properties: () => ({ ss58Format: 42 }),
|
system_properties: () => ({ ss58Format: 42 }),
|
||||||
system_upgradedToTripleRefCount: () => this.registry.createType('bool', true),
|
system_upgradedToTripleRefCount: () => this.registry.createType('bool', true),
|
||||||
system_version: () => '9.8.7'
|
system_version: () => '9.8.7',
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, sort-keys
|
||||||
|
dev_echo: (_, params: any) => params
|
||||||
};
|
};
|
||||||
|
|
||||||
public subscriptions: MockStateSubscriptions = SUBSCRIPTIONS.reduce((subs, name): MockStateSubscriptions => {
|
public subscriptions: MockStateSubscriptions = SUBSCRIPTIONS.reduce((subs, name): MockStateSubscriptions => {
|
||||||
@@ -114,6 +116,10 @@ export class MockProvider implements ProviderInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get isClonable (): boolean {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public get isConnected (): boolean {
|
public get isConnected (): boolean {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { stringify } from '@polkadot/util';
|
||||||
|
|
||||||
export interface SmoldotHealth {
|
export interface SmoldotHealth {
|
||||||
isSyncing: boolean
|
isSyncing: boolean
|
||||||
peers: number
|
peers: number
|
||||||
@@ -15,6 +17,13 @@ export interface HealthChecker {
|
|||||||
responsePassThrough(response: string): string | null
|
responsePassThrough(response: string): string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface JSONRequest {
|
||||||
|
id: string;
|
||||||
|
jsonrpc: '2.0',
|
||||||
|
method: string;
|
||||||
|
params: unknown[];
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Creates a new health checker.
|
* Creates a new health checker.
|
||||||
*
|
*
|
||||||
@@ -101,42 +110,39 @@ class InnerChecker {
|
|||||||
#currentHealthTimeout: ReturnType<typeof setTimeout> | null = null;
|
#currentHealthTimeout: ReturnType<typeof setTimeout> | null = null;
|
||||||
#currentSubunsubRequestId: string | null = null;
|
#currentSubunsubRequestId: string | null = null;
|
||||||
#currentSubscriptionId: string | null = null;
|
#currentSubscriptionId: string | null = null;
|
||||||
#requestToSmoldot: (request: string) => void;
|
#requestToSmoldot: (request: JSONRequest) => void;
|
||||||
#isSyncing = false;
|
#isSyncing = false;
|
||||||
#nextRequestId = 0;
|
#nextRequestId = 0;
|
||||||
|
|
||||||
constructor (
|
constructor (healthCallback: (health: SmoldotHealth) => void, requestToSmoldot: (request: string) => void) {
|
||||||
healthCallback: (health: SmoldotHealth) => void,
|
|
||||||
requestToSmoldot: (request: string) => void
|
|
||||||
) {
|
|
||||||
this.#healthCallback = healthCallback;
|
this.#healthCallback = healthCallback;
|
||||||
this.#requestToSmoldot = requestToSmoldot;
|
this.#requestToSmoldot = (request: JSONRequest) => requestToSmoldot(stringify(request));
|
||||||
}
|
}
|
||||||
|
|
||||||
sendJsonRpc = (request: string): void => {
|
sendJsonRpc = (request: string): void => {
|
||||||
// Replace the `id` in the request to prefix the request ID with `extern:`.
|
// Replace the `id` in the request to prefix the request ID with `extern:`.
|
||||||
let parsedRequest: {id: string | number};
|
let parsedRequest: JSONRequest;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
parsedRequest = JSON.parse(request) as {id: string | number};
|
parsedRequest = JSON.parse(request) as JSONRequest;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parsedRequest.id) {
|
if (parsedRequest.id) {
|
||||||
const newId = 'extern:' + JSON.stringify(parsedRequest.id);
|
const newId = 'extern:' + stringify(parsedRequest.id);
|
||||||
|
|
||||||
parsedRequest.id = newId;
|
parsedRequest.id = newId;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.#requestToSmoldot(JSON.stringify(parsedRequest));
|
this.#requestToSmoldot(parsedRequest);
|
||||||
};
|
};
|
||||||
|
|
||||||
responsePassThrough = (jsonRpcResponse: string): string | null => {
|
responsePassThrough = (jsonRpcResponse: string): string | null => {
|
||||||
let parsedResponse: {id: string, result?: SmoldotHealth, params?: { subscription: string }};
|
let parsedResponse: {id: string, result?: SmoldotHealth, params?: { subscription: string }};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
parsedResponse = JSON.parse(jsonRpcResponse) as {id: string, result: undefined | SmoldotHealth};
|
parsedResponse = JSON.parse(jsonRpcResponse) as { id: string, result: undefined | SmoldotHealth };
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return jsonRpcResponse;
|
return jsonRpcResponse;
|
||||||
}
|
}
|
||||||
@@ -220,7 +226,7 @@ class InnerChecker {
|
|||||||
parsedResponse.id = newId;
|
parsedResponse.id = newId;
|
||||||
}
|
}
|
||||||
|
|
||||||
return JSON.stringify(parsedResponse);
|
return stringify(parsedResponse);
|
||||||
};
|
};
|
||||||
|
|
||||||
update = (startNow: boolean): void => {
|
update = (startNow: boolean): void => {
|
||||||
@@ -241,18 +247,15 @@ class InnerChecker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Actual request starting.
|
// Actual request starting.
|
||||||
this.#currentHealthCheckId = 'health-checker:'.concat(
|
this.#currentHealthCheckId = `health-checker:${this.#nextRequestId}`;
|
||||||
this.#nextRequestId.toString()
|
|
||||||
);
|
|
||||||
this.#nextRequestId += 1;
|
this.#nextRequestId += 1;
|
||||||
this.#requestToSmoldot(
|
|
||||||
JSON.stringify({
|
this.#requestToSmoldot({
|
||||||
id: this.#currentHealthCheckId,
|
id: this.#currentHealthCheckId,
|
||||||
jsonrpc: '2.0',
|
jsonrpc: '2.0',
|
||||||
method: 'system_health',
|
method: 'system_health',
|
||||||
params: []
|
params: []
|
||||||
})
|
});
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (startNow) {
|
if (startNow) {
|
||||||
@@ -284,18 +287,15 @@ class InnerChecker {
|
|||||||
throw new Error('Internal error in health checker');
|
throw new Error('Internal error in health checker');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.#currentSubunsubRequestId = 'health-checker:'.concat(
|
this.#currentSubunsubRequestId = `health-checker:${this.#nextRequestId}`;
|
||||||
this.#nextRequestId.toString()
|
|
||||||
);
|
|
||||||
this.#nextRequestId += 1;
|
this.#nextRequestId += 1;
|
||||||
this.#requestToSmoldot(
|
|
||||||
JSON.stringify({
|
this.#requestToSmoldot({
|
||||||
id: this.#currentSubunsubRequestId,
|
id: this.#currentSubunsubRequestId,
|
||||||
jsonrpc: '2.0',
|
jsonrpc: '2.0',
|
||||||
method: 'chain_subscribeNewHeads',
|
method: 'chain_subscribeNewHeads',
|
||||||
params: []
|
params: []
|
||||||
})
|
});
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
endSubscription = (): void => {
|
endSubscription = (): void => {
|
||||||
@@ -303,18 +303,15 @@ class InnerChecker {
|
|||||||
throw new Error('Internal error in health checker');
|
throw new Error('Internal error in health checker');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.#currentSubunsubRequestId = 'health-checker:'.concat(
|
this.#currentSubunsubRequestId = `health-checker:${this.#nextRequestId}`;
|
||||||
this.#nextRequestId.toString()
|
|
||||||
);
|
|
||||||
this.#nextRequestId += 1;
|
this.#nextRequestId += 1;
|
||||||
this.#requestToSmoldot(
|
|
||||||
JSON.stringify({
|
this.#requestToSmoldot({
|
||||||
id: this.#currentSubunsubRequestId,
|
id: this.#currentSubunsubRequestId,
|
||||||
jsonrpc: '2.0',
|
jsonrpc: '2.0',
|
||||||
method: 'chain_unsubscribeNewHeads',
|
method: 'chain_unsubscribeNewHeads',
|
||||||
params: [this.#currentSubscriptionId]
|
params: [this.#currentSubscriptionId]
|
||||||
})
|
});
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
destroy = (): void => {
|
destroy = (): void => {
|
||||||
@@ -332,11 +329,9 @@ export class HealthCheckError extends Error {
|
|||||||
return this.#cause;
|
return this.#cause;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor (
|
constructor (response: unknown, message = 'Got error response asking for system health') {
|
||||||
response: unknown,
|
|
||||||
message = 'Got error response asking for system health'
|
|
||||||
) {
|
|
||||||
super(message);
|
super(message);
|
||||||
|
|
||||||
this.#cause = response;
|
this.#cause = response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,394 +0,0 @@
|
|||||||
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
import type { Config as ScConfig } from '@substrate/connect';
|
|
||||||
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '../types';
|
|
||||||
|
|
||||||
import { Chain, createScClient, ScClient, WellKnownChain } from '@substrate/connect';
|
|
||||||
import EventEmitter from 'eventemitter3';
|
|
||||||
|
|
||||||
import { isError, logger, objectSpread } from '@polkadot/util';
|
|
||||||
|
|
||||||
import { RpcCoder } from '../coder';
|
|
||||||
import { healthChecker } from './Health';
|
|
||||||
|
|
||||||
type ResponseCallback = (response: string | Error) => void
|
|
||||||
|
|
||||||
const l = logger('api-substrate-connect');
|
|
||||||
|
|
||||||
// These methods have been taken from:
|
|
||||||
// https://github.com/paritytech/smoldot/blob/17425040ddda47d539556eeaf62b88c4240d1d42/src/json_rpc/methods.rs#L338-L462
|
|
||||||
// It's important to take into account that smoldot is adding support to the new
|
|
||||||
// json-rpc-interface https://paritytech.github.io/json-rpc-interface-spec/
|
|
||||||
// However, at the moment this list only includes methods that belong to the "old" API
|
|
||||||
const subscriptionUnsubscriptionMethods = new Map<string, string>([
|
|
||||||
['author_submitAndWatchExtrinsic', 'author_unwatchExtrinsic'],
|
|
||||||
['chain_subscribeAllHeads', 'chain_unsubscribeAllHeads'],
|
|
||||||
['chain_subscribeFinalizedHeads', 'chain_unsubscribeFinalizedHeads'],
|
|
||||||
['chain_subscribeFinalisedHeads', 'chain_subscribeFinalisedHeads'],
|
|
||||||
['chain_subscribeNewHeads', 'chain_unsubscribeNewHeads'],
|
|
||||||
['chain_subscribeNewHead', 'chain_unsubscribeNewHead'],
|
|
||||||
['chain_subscribeRuntimeVersion', 'chain_unsubscribeRuntimeVersion'],
|
|
||||||
['subscribe_newHead', 'unsubscribe_newHead'],
|
|
||||||
['state_subscribeRuntimeVersion', 'state_unsubscribeRuntimeVersion'],
|
|
||||||
['state_subscribeStorage', 'state_unsubscribeStorage']
|
|
||||||
]);
|
|
||||||
|
|
||||||
const wellKnownChains = new Set(Object.values(WellKnownChain));
|
|
||||||
const scClients = new WeakMap<ScProvider, ScClient>();
|
|
||||||
|
|
||||||
export { WellKnownChain };
|
|
||||||
|
|
||||||
interface ActiveSubs {
|
|
||||||
type: string,
|
|
||||||
method: string,
|
|
||||||
params: any[],
|
|
||||||
callback: ProviderInterfaceCallback
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ScProvider implements ProviderInterface {
|
|
||||||
readonly #coder: RpcCoder = new RpcCoder();
|
|
||||||
readonly #spec: string | WellKnownChain;
|
|
||||||
readonly #sharedSandbox?: ScProvider;
|
|
||||||
readonly #subscriptions: Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]> = new Map();
|
|
||||||
readonly #resubscribeMethods: Map<string, ActiveSubs> = new Map();
|
|
||||||
readonly #requests: Map<number, ResponseCallback> = new Map();
|
|
||||||
readonly #eventemitter: EventEmitter = new EventEmitter();
|
|
||||||
#chain: Promise<Chain> | null = null;
|
|
||||||
#isChainReady = false;
|
|
||||||
|
|
||||||
static WellKnownChain = WellKnownChain;
|
|
||||||
|
|
||||||
public constructor (spec: string | WellKnownChain, sharedSandbox?: ScProvider) {
|
|
||||||
this.#spec = spec;
|
|
||||||
this.#sharedSandbox = sharedSandbox;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get hasSubscriptions (): boolean {
|
|
||||||
// Indicates that subscriptions are supported
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get isConnected (): boolean {
|
|
||||||
return !!this.#chain && this.#isChainReady;
|
|
||||||
}
|
|
||||||
|
|
||||||
public clone (): ProviderInterface {
|
|
||||||
throw new Error('clone() is not supported.');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Config details can be found in @substrate/connect repo following the link:
|
|
||||||
// https://github.com/paritytech/substrate-connect/blob/main/packages/connect/src/connector/index.ts
|
|
||||||
async connect (config?: ScConfig, checkerFactory = healthChecker): Promise<void> {
|
|
||||||
if (this.isConnected) {
|
|
||||||
throw new Error('Already connected!');
|
|
||||||
}
|
|
||||||
|
|
||||||
// it could happen that after emitting `disconnected` due to the fact taht
|
|
||||||
// smoldot is syncing, the consumer tries to reconnect after a certain amount
|
|
||||||
// of time... In which case we want to make sure that we don't create a new
|
|
||||||
// chain.
|
|
||||||
if (this.#chain) {
|
|
||||||
await this.#chain;
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.#sharedSandbox && !this.#sharedSandbox.isConnected) {
|
|
||||||
await this.#sharedSandbox.connect();
|
|
||||||
}
|
|
||||||
|
|
||||||
const client = this.#sharedSandbox
|
|
||||||
? scClients.get(this.#sharedSandbox)
|
|
||||||
: createScClient(config);
|
|
||||||
|
|
||||||
if (!client) {
|
|
||||||
throw new Error('Unkown ScProvider!');
|
|
||||||
}
|
|
||||||
|
|
||||||
scClients.set(this, client);
|
|
||||||
|
|
||||||
const hc = checkerFactory();
|
|
||||||
|
|
||||||
const onResponse = (res: string): void => {
|
|
||||||
const hcRes = hc.responsePassThrough(res);
|
|
||||||
|
|
||||||
if (!hcRes) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const response = JSON.parse(hcRes) as JsonRpcResponse;
|
|
||||||
let decodedResponse: string | Error;
|
|
||||||
|
|
||||||
try {
|
|
||||||
decodedResponse = this.#coder.decodeResponse(response) as string;
|
|
||||||
} catch (e) {
|
|
||||||
decodedResponse = e as Error;
|
|
||||||
}
|
|
||||||
|
|
||||||
// It's not a subscription message, but rather a standar RPC response
|
|
||||||
if (response.params?.subscription === undefined || !response.method) {
|
|
||||||
return this.#requests.get(response.id)?.(decodedResponse);
|
|
||||||
}
|
|
||||||
|
|
||||||
// We are dealing with a subscription message
|
|
||||||
const subscriptionId = `${response.method}::${response.params.subscription}`;
|
|
||||||
|
|
||||||
const callback = this.#subscriptions.get(subscriptionId)?.[0];
|
|
||||||
|
|
||||||
callback?.(decodedResponse);
|
|
||||||
};
|
|
||||||
|
|
||||||
const addChain = wellKnownChains.has(this.#spec as WellKnownChain)
|
|
||||||
? client.addWellKnownChain
|
|
||||||
: client.addChain;
|
|
||||||
|
|
||||||
this.#chain = addChain(this.#spec as WellKnownChain, onResponse).then((chain) => {
|
|
||||||
hc.setSendJsonRpc(chain.sendJsonRpc);
|
|
||||||
|
|
||||||
this.#isChainReady = false;
|
|
||||||
|
|
||||||
const cleanup = () => {
|
|
||||||
// If there are any callbacks left, we have to reject/error them.
|
|
||||||
// Otherwise, that would cause a memory leak.
|
|
||||||
const disconnectionError = new Error('Disconnected');
|
|
||||||
|
|
||||||
this.#requests.forEach((cb) => cb(disconnectionError));
|
|
||||||
this.#subscriptions.forEach(([cb]) => cb(disconnectionError));
|
|
||||||
this.#subscriptions.clear();
|
|
||||||
};
|
|
||||||
|
|
||||||
const staleSubscriptions: {
|
|
||||||
unsubscribeMethod: string
|
|
||||||
id: number | string
|
|
||||||
}[] = [];
|
|
||||||
|
|
||||||
const killStaleSubscriptions = () => {
|
|
||||||
if (staleSubscriptions.length === 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const stale = staleSubscriptions.pop();
|
|
||||||
|
|
||||||
if (!stale) {
|
|
||||||
throw new Error('Unable to get stale subscription');
|
|
||||||
}
|
|
||||||
|
|
||||||
const { id, unsubscribeMethod } = stale;
|
|
||||||
|
|
||||||
Promise
|
|
||||||
.race([
|
|
||||||
this.send(unsubscribeMethod, [id]).catch(() => undefined),
|
|
||||||
new Promise((resolve) => setTimeout(resolve, 500))
|
|
||||||
])
|
|
||||||
.then(killStaleSubscriptions)
|
|
||||||
.catch(() => undefined);
|
|
||||||
};
|
|
||||||
|
|
||||||
hc.start((health) => {
|
|
||||||
const isReady =
|
|
||||||
!health.isSyncing && (health.peers > 0 || !health.shouldHavePeers);
|
|
||||||
|
|
||||||
// if it's the same as before, then nothing has changed and we are done
|
|
||||||
if (this.#isChainReady === isReady) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.#isChainReady = isReady;
|
|
||||||
|
|
||||||
if (!isReady) {
|
|
||||||
// If we've reached this point, that means that the chain used to be "ready"
|
|
||||||
// and now we are about to emit `disconnected`.
|
|
||||||
//
|
|
||||||
// This will cause the PolkadotJs API think that the connection is
|
|
||||||
// actually dead. In reality the smoldot chain is not dead, of course.
|
|
||||||
// However, we have to cleanup all the existing callbacks because when
|
|
||||||
// the smoldot chain stops syncing, then we will emit `connected` and
|
|
||||||
// the PolkadotJs API will try to re-create the previous
|
|
||||||
// subscriptions and requests. Although, now is not a good moment
|
|
||||||
// to be sending unsubscription messages to the smoldot chain, we
|
|
||||||
// should wait until is no longer syncing to send the unsubscription
|
|
||||||
// messages from the stale subscriptions of the previous connection.
|
|
||||||
//
|
|
||||||
// That's why -before we perform the cleanup of `this.#subscriptions`-
|
|
||||||
// we keep the necessary information that we will need later on to
|
|
||||||
// kill the stale subscriptions.
|
|
||||||
[...this.#subscriptions.values()].forEach((s) => {
|
|
||||||
staleSubscriptions.push(s[1]);
|
|
||||||
});
|
|
||||||
cleanup();
|
|
||||||
|
|
||||||
this.#eventemitter.emit('disconnected');
|
|
||||||
} else {
|
|
||||||
killStaleSubscriptions();
|
|
||||||
|
|
||||||
this.#eventemitter.emit('connected');
|
|
||||||
|
|
||||||
if (this.#resubscribeMethods.size) {
|
|
||||||
this.#resubscribe();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return objectSpread({}, chain, {
|
|
||||||
remove: () => {
|
|
||||||
hc.stop();
|
|
||||||
chain.remove();
|
|
||||||
cleanup();
|
|
||||||
},
|
|
||||||
sendJsonRpc: hc.sendJsonRpc.bind(hc)
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
try {
|
|
||||||
await this.#chain;
|
|
||||||
} catch (e) {
|
|
||||||
this.#chain = null;
|
|
||||||
this.#eventemitter.emit('error', e);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#resubscribe = (): void => {
|
|
||||||
const promises: any[] = [];
|
|
||||||
|
|
||||||
this.#resubscribeMethods.forEach((subDetails: ActiveSubs): void => {
|
|
||||||
// only re-create subscriptions which are not in author (only area where
|
|
||||||
// transactions are created, i.e. submissions such as 'author_submitAndWatchExtrinsic'
|
|
||||||
// are not included (and will not be re-broadcast)
|
|
||||||
if (subDetails.type.startsWith('author_')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
const promise: Promise<void> = new Promise((resolve) => {
|
|
||||||
this.subscribe(subDetails.type, subDetails.method, subDetails.params, subDetails.callback).catch((error) => console.log(error));
|
|
||||||
resolve();
|
|
||||||
});
|
|
||||||
|
|
||||||
promises.push(promise);
|
|
||||||
} catch (error) {
|
|
||||||
l.error(error);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
Promise.all(promises).catch((err) => l.log(err));
|
|
||||||
};
|
|
||||||
|
|
||||||
async disconnect (): Promise<void> {
|
|
||||||
if (!this.#chain) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const chain = await this.#chain;
|
|
||||||
|
|
||||||
this.#chain = null;
|
|
||||||
this.#isChainReady = false;
|
|
||||||
|
|
||||||
try {
|
|
||||||
chain.remove();
|
|
||||||
} catch (_) {}
|
|
||||||
|
|
||||||
this.#eventemitter.emit('disconnected');
|
|
||||||
}
|
|
||||||
|
|
||||||
public on (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void {
|
|
||||||
// It's possible. Although, quite unlikely, that by the time that polkadot
|
|
||||||
// subscribes to the `connected` event, the Provider is already connected.
|
|
||||||
// In that case, we must emit to let the consumer know that we are connected.
|
|
||||||
if (type === 'connected' && this.isConnected) {
|
|
||||||
sub();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.#eventemitter.on(type, sub);
|
|
||||||
|
|
||||||
return (): void => {
|
|
||||||
this.#eventemitter.removeListener(type, sub);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public async send<T = any> (method: string, params: unknown[]): Promise<T> {
|
|
||||||
if (!this.isConnected || !this.#chain) {
|
|
||||||
throw new Error('Provider is not connected');
|
|
||||||
}
|
|
||||||
|
|
||||||
const chain = await this.#chain;
|
|
||||||
const [id, json] = this.#coder.encodeJson(method, params);
|
|
||||||
|
|
||||||
const result = new Promise<T>((resolve, reject): void => {
|
|
||||||
this.#requests.set(id, (response) => {
|
|
||||||
(isError(response) ? reject : resolve)(response as unknown as T);
|
|
||||||
});
|
|
||||||
|
|
||||||
try {
|
|
||||||
chain.sendJsonRpc(json);
|
|
||||||
} catch (e) {
|
|
||||||
this.#chain = null;
|
|
||||||
|
|
||||||
try {
|
|
||||||
chain.remove();
|
|
||||||
} catch (_) {}
|
|
||||||
|
|
||||||
this.#eventemitter.emit('error', e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
try {
|
|
||||||
return await result;
|
|
||||||
} finally {
|
|
||||||
// let's ensure that once the Promise is resolved/rejected, then we remove
|
|
||||||
// remove its entry from the internal #requests
|
|
||||||
this.#requests.delete(id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public async subscribe (type: string, method: string, params: any[], callback: ProviderInterfaceCallback): Promise<number | string> {
|
|
||||||
if (!subscriptionUnsubscriptionMethods.has(method)) {
|
|
||||||
throw new Error(`Unsupported subscribe method: ${method}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const id = await this.send<number | string>(method, params);
|
|
||||||
const subscriptionId = `${type}::${id}`;
|
|
||||||
|
|
||||||
const cb = (response: Error | string) => {
|
|
||||||
if (response instanceof Error) {
|
|
||||||
callback(response, undefined);
|
|
||||||
} else {
|
|
||||||
callback(null, response);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const unsubscribeMethod = subscriptionUnsubscriptionMethods.get(method);
|
|
||||||
|
|
||||||
if (!unsubscribeMethod) {
|
|
||||||
throw new Error('Invalid unsubscribe method found');
|
|
||||||
}
|
|
||||||
|
|
||||||
this.#resubscribeMethods.set(subscriptionId, { callback, method, params, type });
|
|
||||||
|
|
||||||
this.#subscriptions.set(subscriptionId, [cb, { id, unsubscribeMethod }]);
|
|
||||||
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public unsubscribe (type: string, method: string, id: number | string): Promise<boolean> {
|
|
||||||
if (!this.isConnected) {
|
|
||||||
throw new Error('Provider is not connected');
|
|
||||||
}
|
|
||||||
|
|
||||||
const subscriptionId = `${type}::${id}`;
|
|
||||||
|
|
||||||
if (!this.#subscriptions.has(subscriptionId)) {
|
|
||||||
return Promise.reject(
|
|
||||||
new Error(`Unable to find active subscription=${subscriptionId}`)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.#resubscribeMethods.delete(subscriptionId);
|
|
||||||
this.#subscriptions.delete(subscriptionId);
|
|
||||||
|
|
||||||
return this.send(method, [id]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
export type ScProviderClass = typeof ScProvider
|
|
||||||
export type Config = ScConfig
|
|
||||||
+2
-2
@@ -19,8 +19,8 @@
|
|||||||
// Jest has "some" issues with `await import` - we don't transform these
|
// Jest has "some" issues with `await import` - we don't transform these
|
||||||
|
|
||||||
import type { Chain, JsonRpcCallback } from '@substrate/connect';
|
import type { Chain, JsonRpcCallback } from '@substrate/connect';
|
||||||
|
import type { ScProviderClass } from '.';
|
||||||
import type { HealthChecker, SmoldotHealth } from './Health';
|
import type { HealthChecker, SmoldotHealth } from './Health';
|
||||||
import type { ScProviderClass } from './ScProvider';
|
|
||||||
|
|
||||||
import { jest } from '@jest/globals';
|
import { jest } from '@jest/globals';
|
||||||
|
|
||||||
@@ -198,7 +198,7 @@ const setChainSyncyingStatus = (isSyncing: boolean) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
({ ScProvider } = await import('./ScProvider'));
|
({ ScProvider } = await import('.'));
|
||||||
mockedConnector = (await import(
|
mockedConnector = (await import(
|
||||||
'@substrate/connect'
|
'@substrate/connect'
|
||||||
)) as unknown as ReturnType<typeof connectorFactory>;
|
)) as unknown as ReturnType<typeof connectorFactory>;
|
||||||
@@ -1,4 +1,397 @@
|
|||||||
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './ScProvider';
|
import type { Chain, Config as ScConfig, ScClient } from '@substrate/connect';
|
||||||
|
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '../types';
|
||||||
|
|
||||||
|
import { createScClient, WellKnownChain } from '@substrate/connect';
|
||||||
|
import EventEmitter from 'eventemitter3';
|
||||||
|
|
||||||
|
import { isError, logger, objectSpread } from '@polkadot/util';
|
||||||
|
|
||||||
|
import { RpcCoder } from '../coder';
|
||||||
|
import { healthChecker } from './Health';
|
||||||
|
|
||||||
|
type ResponseCallback = (response: string | Error) => void
|
||||||
|
|
||||||
|
const l = logger('api-substrate-connect');
|
||||||
|
|
||||||
|
// These methods have been taken from:
|
||||||
|
// https://github.com/paritytech/smoldot/blob/17425040ddda47d539556eeaf62b88c4240d1d42/src/json_rpc/methods.rs#L338-L462
|
||||||
|
// It's important to take into account that smoldot is adding support to the new
|
||||||
|
// json-rpc-interface https://paritytech.github.io/json-rpc-interface-spec/
|
||||||
|
// However, at the moment this list only includes methods that belong to the "old" API
|
||||||
|
const subscriptionUnsubscriptionMethods = new Map<string, string>([
|
||||||
|
['author_submitAndWatchExtrinsic', 'author_unwatchExtrinsic'],
|
||||||
|
['chain_subscribeAllHeads', 'chain_unsubscribeAllHeads'],
|
||||||
|
['chain_subscribeFinalizedHeads', 'chain_unsubscribeFinalizedHeads'],
|
||||||
|
['chain_subscribeFinalisedHeads', 'chain_subscribeFinalisedHeads'],
|
||||||
|
['chain_subscribeNewHeads', 'chain_unsubscribeNewHeads'],
|
||||||
|
['chain_subscribeNewHead', 'chain_unsubscribeNewHead'],
|
||||||
|
['chain_subscribeRuntimeVersion', 'chain_unsubscribeRuntimeVersion'],
|
||||||
|
['subscribe_newHead', 'unsubscribe_newHead'],
|
||||||
|
['state_subscribeRuntimeVersion', 'state_unsubscribeRuntimeVersion'],
|
||||||
|
['state_subscribeStorage', 'state_unsubscribeStorage']
|
||||||
|
]);
|
||||||
|
|
||||||
|
const wellKnownChains = new Set(Object.values(WellKnownChain));
|
||||||
|
const scClients = new WeakMap<ScProvider, ScClient>();
|
||||||
|
|
||||||
|
interface ActiveSubs {
|
||||||
|
type: string,
|
||||||
|
method: string,
|
||||||
|
params: any[],
|
||||||
|
callback: ProviderInterfaceCallback
|
||||||
|
}
|
||||||
|
|
||||||
|
export class ScProvider implements ProviderInterface {
|
||||||
|
readonly #coder: RpcCoder = new RpcCoder();
|
||||||
|
readonly #spec: string | WellKnownChain;
|
||||||
|
readonly #sharedSandbox?: ScProvider;
|
||||||
|
readonly #subscriptions: Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]> = new Map();
|
||||||
|
readonly #resubscribeMethods: Map<string, ActiveSubs> = new Map();
|
||||||
|
readonly #requests: Map<number, ResponseCallback> = new Map();
|
||||||
|
readonly #eventemitter: EventEmitter = new EventEmitter();
|
||||||
|
#chain: Promise<Chain> | null = null;
|
||||||
|
#isChainReady = false;
|
||||||
|
|
||||||
|
static WellKnownChain = WellKnownChain;
|
||||||
|
|
||||||
|
public constructor (spec: string | WellKnownChain, sharedSandbox?: ScProvider) {
|
||||||
|
this.#spec = spec;
|
||||||
|
this.#sharedSandbox = sharedSandbox;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get hasSubscriptions (): boolean {
|
||||||
|
// Indicates that subscriptions are supported
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get isClonable (): boolean {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get isConnected (): boolean {
|
||||||
|
return !!this.#chain && this.#isChainReady;
|
||||||
|
}
|
||||||
|
|
||||||
|
public clone (): ProviderInterface {
|
||||||
|
throw new Error('clone() is not supported.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Config details can be found in @substrate/connect repo following the link:
|
||||||
|
// https://github.com/paritytech/substrate-connect/blob/main/packages/connect/src/connector/index.ts
|
||||||
|
async connect (config?: ScConfig, checkerFactory = healthChecker): Promise<void> {
|
||||||
|
if (this.isConnected) {
|
||||||
|
throw new Error('Already connected!');
|
||||||
|
}
|
||||||
|
|
||||||
|
// it could happen that after emitting `disconnected` due to the fact taht
|
||||||
|
// smoldot is syncing, the consumer tries to reconnect after a certain amount
|
||||||
|
// of time... In which case we want to make sure that we don't create a new
|
||||||
|
// chain.
|
||||||
|
if (this.#chain) {
|
||||||
|
await this.#chain;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.#sharedSandbox && !this.#sharedSandbox.isConnected) {
|
||||||
|
await this.#sharedSandbox.connect();
|
||||||
|
}
|
||||||
|
|
||||||
|
const client = this.#sharedSandbox
|
||||||
|
? scClients.get(this.#sharedSandbox)
|
||||||
|
: createScClient(config);
|
||||||
|
|
||||||
|
if (!client) {
|
||||||
|
throw new Error('Unkown ScProvider!');
|
||||||
|
}
|
||||||
|
|
||||||
|
scClients.set(this, client);
|
||||||
|
|
||||||
|
const hc = checkerFactory();
|
||||||
|
|
||||||
|
const onResponse = (res: string): void => {
|
||||||
|
const hcRes = hc.responsePassThrough(res);
|
||||||
|
|
||||||
|
if (!hcRes) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const response = JSON.parse(hcRes) as JsonRpcResponse;
|
||||||
|
let decodedResponse: string | Error;
|
||||||
|
|
||||||
|
try {
|
||||||
|
decodedResponse = this.#coder.decodeResponse(response) as string;
|
||||||
|
} catch (e) {
|
||||||
|
decodedResponse = e as Error;
|
||||||
|
}
|
||||||
|
|
||||||
|
// It's not a subscription message, but rather a standar RPC response
|
||||||
|
if (response.params?.subscription === undefined || !response.method) {
|
||||||
|
return this.#requests.get(response.id)?.(decodedResponse);
|
||||||
|
}
|
||||||
|
|
||||||
|
// We are dealing with a subscription message
|
||||||
|
const subscriptionId = `${response.method}::${response.params.subscription}`;
|
||||||
|
|
||||||
|
const callback = this.#subscriptions.get(subscriptionId)?.[0];
|
||||||
|
|
||||||
|
callback?.(decodedResponse);
|
||||||
|
};
|
||||||
|
|
||||||
|
const addChain = wellKnownChains.has(this.#spec as WellKnownChain)
|
||||||
|
? client.addWellKnownChain
|
||||||
|
: client.addChain;
|
||||||
|
|
||||||
|
this.#chain = addChain(this.#spec as WellKnownChain, onResponse).then((chain) => {
|
||||||
|
hc.setSendJsonRpc(chain.sendJsonRpc);
|
||||||
|
|
||||||
|
this.#isChainReady = false;
|
||||||
|
|
||||||
|
const cleanup = () => {
|
||||||
|
// If there are any callbacks left, we have to reject/error them.
|
||||||
|
// Otherwise, that would cause a memory leak.
|
||||||
|
const disconnectionError = new Error('Disconnected');
|
||||||
|
|
||||||
|
this.#requests.forEach((cb) => cb(disconnectionError));
|
||||||
|
this.#subscriptions.forEach(([cb]) => cb(disconnectionError));
|
||||||
|
this.#subscriptions.clear();
|
||||||
|
};
|
||||||
|
|
||||||
|
const staleSubscriptions: {
|
||||||
|
unsubscribeMethod: string
|
||||||
|
id: number | string
|
||||||
|
}[] = [];
|
||||||
|
|
||||||
|
const killStaleSubscriptions = () => {
|
||||||
|
if (staleSubscriptions.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const stale = staleSubscriptions.pop();
|
||||||
|
|
||||||
|
if (!stale) {
|
||||||
|
throw new Error('Unable to get stale subscription');
|
||||||
|
}
|
||||||
|
|
||||||
|
const { id, unsubscribeMethod } = stale;
|
||||||
|
|
||||||
|
Promise
|
||||||
|
.race([
|
||||||
|
this.send(unsubscribeMethod, [id]).catch(() => undefined),
|
||||||
|
new Promise((resolve) => setTimeout(resolve, 500))
|
||||||
|
])
|
||||||
|
.then(killStaleSubscriptions)
|
||||||
|
.catch(() => undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
hc.start((health) => {
|
||||||
|
const isReady =
|
||||||
|
!health.isSyncing && (health.peers > 0 || !health.shouldHavePeers);
|
||||||
|
|
||||||
|
// if it's the same as before, then nothing has changed and we are done
|
||||||
|
if (this.#isChainReady === isReady) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.#isChainReady = isReady;
|
||||||
|
|
||||||
|
if (!isReady) {
|
||||||
|
// If we've reached this point, that means that the chain used to be "ready"
|
||||||
|
// and now we are about to emit `disconnected`.
|
||||||
|
//
|
||||||
|
// This will cause the PolkadotJs API think that the connection is
|
||||||
|
// actually dead. In reality the smoldot chain is not dead, of course.
|
||||||
|
// However, we have to cleanup all the existing callbacks because when
|
||||||
|
// the smoldot chain stops syncing, then we will emit `connected` and
|
||||||
|
// the PolkadotJs API will try to re-create the previous
|
||||||
|
// subscriptions and requests. Although, now is not a good moment
|
||||||
|
// to be sending unsubscription messages to the smoldot chain, we
|
||||||
|
// should wait until is no longer syncing to send the unsubscription
|
||||||
|
// messages from the stale subscriptions of the previous connection.
|
||||||
|
//
|
||||||
|
// That's why -before we perform the cleanup of `this.#subscriptions`-
|
||||||
|
// we keep the necessary information that we will need later on to
|
||||||
|
// kill the stale subscriptions.
|
||||||
|
[...this.#subscriptions.values()].forEach((s) => {
|
||||||
|
staleSubscriptions.push(s[1]);
|
||||||
|
});
|
||||||
|
cleanup();
|
||||||
|
|
||||||
|
this.#eventemitter.emit('disconnected');
|
||||||
|
} else {
|
||||||
|
killStaleSubscriptions();
|
||||||
|
|
||||||
|
this.#eventemitter.emit('connected');
|
||||||
|
|
||||||
|
if (this.#resubscribeMethods.size) {
|
||||||
|
this.#resubscribe();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return objectSpread({}, chain, {
|
||||||
|
remove: () => {
|
||||||
|
hc.stop();
|
||||||
|
chain.remove();
|
||||||
|
cleanup();
|
||||||
|
},
|
||||||
|
sendJsonRpc: hc.sendJsonRpc.bind(hc)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
|
await this.#chain;
|
||||||
|
} catch (e) {
|
||||||
|
this.#chain = null;
|
||||||
|
this.#eventemitter.emit('error', e);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#resubscribe = (): void => {
|
||||||
|
const promises: any[] = [];
|
||||||
|
|
||||||
|
this.#resubscribeMethods.forEach((subDetails: ActiveSubs): void => {
|
||||||
|
// only re-create subscriptions which are not in author (only area where
|
||||||
|
// transactions are created, i.e. submissions such as 'author_submitAndWatchExtrinsic'
|
||||||
|
// are not included (and will not be re-broadcast)
|
||||||
|
if (subDetails.type.startsWith('author_')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const promise: Promise<void> = new Promise((resolve) => {
|
||||||
|
this.subscribe(subDetails.type, subDetails.method, subDetails.params, subDetails.callback).catch((error) => console.log(error));
|
||||||
|
resolve();
|
||||||
|
});
|
||||||
|
|
||||||
|
promises.push(promise);
|
||||||
|
} catch (error) {
|
||||||
|
l.error(error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
Promise.all(promises).catch((err) => l.log(err));
|
||||||
|
};
|
||||||
|
|
||||||
|
async disconnect (): Promise<void> {
|
||||||
|
if (!this.#chain) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const chain = await this.#chain;
|
||||||
|
|
||||||
|
this.#chain = null;
|
||||||
|
this.#isChainReady = false;
|
||||||
|
|
||||||
|
try {
|
||||||
|
chain.remove();
|
||||||
|
} catch (_) {}
|
||||||
|
|
||||||
|
this.#eventemitter.emit('disconnected');
|
||||||
|
}
|
||||||
|
|
||||||
|
public on (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void {
|
||||||
|
// It's possible. Although, quite unlikely, that by the time that polkadot
|
||||||
|
// subscribes to the `connected` event, the Provider is already connected.
|
||||||
|
// In that case, we must emit to let the consumer know that we are connected.
|
||||||
|
if (type === 'connected' && this.isConnected) {
|
||||||
|
sub();
|
||||||
|
}
|
||||||
|
|
||||||
|
this.#eventemitter.on(type, sub);
|
||||||
|
|
||||||
|
return (): void => {
|
||||||
|
this.#eventemitter.removeListener(type, sub);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public async send<T = any> (method: string, params: unknown[]): Promise<T> {
|
||||||
|
if (!this.isConnected || !this.#chain) {
|
||||||
|
throw new Error('Provider is not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
const chain = await this.#chain;
|
||||||
|
const [id, json] = this.#coder.encodeJson(method, params);
|
||||||
|
|
||||||
|
const result = new Promise<T>((resolve, reject): void => {
|
||||||
|
this.#requests.set(id, (response) => {
|
||||||
|
(isError(response) ? reject : resolve)(response as unknown as T);
|
||||||
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
|
chain.sendJsonRpc(json);
|
||||||
|
} catch (e) {
|
||||||
|
this.#chain = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
chain.remove();
|
||||||
|
} catch (_) {}
|
||||||
|
|
||||||
|
this.#eventemitter.emit('error', e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
|
return await result;
|
||||||
|
} finally {
|
||||||
|
// let's ensure that once the Promise is resolved/rejected, then we remove
|
||||||
|
// remove its entry from the internal #requests
|
||||||
|
this.#requests.delete(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public async subscribe (type: string, method: string, params: any[], callback: ProviderInterfaceCallback): Promise<number | string> {
|
||||||
|
if (!subscriptionUnsubscriptionMethods.has(method)) {
|
||||||
|
throw new Error(`Unsupported subscribe method: ${method}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const id = await this.send<number | string>(method, params);
|
||||||
|
const subscriptionId = `${type}::${id}`;
|
||||||
|
|
||||||
|
const cb = (response: Error | string) => {
|
||||||
|
if (response instanceof Error) {
|
||||||
|
callback(response, undefined);
|
||||||
|
} else {
|
||||||
|
callback(null, response);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const unsubscribeMethod = subscriptionUnsubscriptionMethods.get(method);
|
||||||
|
|
||||||
|
if (!unsubscribeMethod) {
|
||||||
|
throw new Error('Invalid unsubscribe method found');
|
||||||
|
}
|
||||||
|
|
||||||
|
this.#resubscribeMethods.set(subscriptionId, { callback, method, params, type });
|
||||||
|
|
||||||
|
this.#subscriptions.set(subscriptionId, [cb, { id, unsubscribeMethod }]);
|
||||||
|
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public unsubscribe (type: string, method: string, id: number | string): Promise<boolean> {
|
||||||
|
if (!this.isConnected) {
|
||||||
|
throw new Error('Provider is not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
const subscriptionId = `${type}::${id}`;
|
||||||
|
|
||||||
|
if (!this.#subscriptions.has(subscriptionId)) {
|
||||||
|
return Promise.reject(
|
||||||
|
new Error(`Unable to find active subscription=${subscriptionId}`)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.#resubscribeMethods.delete(subscriptionId);
|
||||||
|
this.#subscriptions.delete(subscriptionId);
|
||||||
|
|
||||||
|
return this.send(method, [id]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ScProviderClass = typeof ScProvider
|
||||||
|
export type Config = ScConfig
|
||||||
|
|||||||
@@ -49,8 +49,13 @@ export type ProviderInterfaceEmitted = 'connected' | 'disconnected' | 'error';
|
|||||||
export type ProviderInterfaceEmitCb = (value?: any) => any;
|
export type ProviderInterfaceEmitCb = (value?: any) => any;
|
||||||
|
|
||||||
export interface ProviderInterface {
|
export interface ProviderInterface {
|
||||||
|
/** true if the provider supports subscriptions (not available for HTTP) */
|
||||||
readonly hasSubscriptions: boolean;
|
readonly hasSubscriptions: boolean;
|
||||||
|
/** true if the clone() functionality is available on the provider */
|
||||||
|
readonly isClonable: boolean;
|
||||||
|
/** true if the provider is currently connected (ws/sc has connection logic) */
|
||||||
readonly isConnected: boolean;
|
readonly isConnected: boolean;
|
||||||
|
/** (optional) stats for the provider with connections/bytes */
|
||||||
readonly stats?: ProviderStats;
|
readonly stats?: ProviderStats;
|
||||||
|
|
||||||
clone (): ProviderInterface;
|
clone (): ProviderInterface;
|
||||||
|
|||||||
@@ -165,6 +165,13 @@ export class WsProvider implements ProviderInterface {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @summary `true` when this provider supports clone()
|
||||||
|
*/
|
||||||
|
public get isClonable (): boolean {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @summary Whether the node is connected or not.
|
* @summary Whether the node is connected or not.
|
||||||
* @return {boolean} true if connected
|
* @return {boolean} true if connected
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||||
@@ -30,27 +30,27 @@
|
|||||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.19.6",
|
"@babel/core": "^7.20.2",
|
||||||
"@babel/register": "^7.18.9",
|
"@babel/register": "^7.18.9",
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/api": "9.6.1",
|
"@polkadot/api": "9.10.1",
|
||||||
"@polkadot/api-augment": "9.6.1",
|
"@polkadot/api-augment": "9.10.1",
|
||||||
"@polkadot/rpc-augment": "9.6.1",
|
"@polkadot/rpc-augment": "9.10.1",
|
||||||
"@polkadot/rpc-provider": "9.6.1",
|
"@polkadot/rpc-provider": "9.10.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-augment": "9.6.1",
|
"@polkadot/types-augment": "9.10.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/types-create": "9.6.1",
|
"@polkadot/types-create": "9.10.1",
|
||||||
"@polkadot/types-support": "9.6.1",
|
"@polkadot/types-support": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11",
|
"@polkadot/util": "^10.2.1",
|
||||||
"@polkadot/util-crypto": "^10.1.11",
|
"@polkadot/util-crypto": "^10.2.1",
|
||||||
"@polkadot/x-ws": "^10.1.11",
|
"@polkadot/x-ws": "^10.2.1",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"websocket": "^1.0.34",
|
"websocket": "^1.0.34",
|
||||||
"yargs": "^17.6.0"
|
"yargs": "^17.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/websocket": "^1.0.5",
|
"@types/websocket": "^1.0.5",
|
||||||
"@types/yargs": "^17.0.13"
|
"@types/yargs": "^17.0.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# @polkadot/api-augment
|
# @polkadot/types-augment
|
||||||
|
|
||||||
Generated augmentation.
|
Generated augmentation.
|
||||||
|
|||||||
@@ -20,12 +20,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11"
|
"@polkadot/util": "^10.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,13 +5,7 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
/**
|
/**
|
||||||
* Lookup81: kusama_runtime::ProxyType
|
* Lookup107: kusama_runtime::SessionKeys
|
||||||
**/
|
|
||||||
KusamaRuntimeProxyType: {
|
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup265: kusama_runtime::SessionKeys
|
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeSessionKeys: {
|
KusamaRuntimeSessionKeys: {
|
||||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||||
@@ -22,7 +16,7 @@ export default {
|
|||||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup340: kusama_runtime::OriginCaller
|
* Lookup149: kusama_runtime::OriginCaller
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeOriginCaller: {
|
KusamaRuntimeOriginCaller: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -31,8 +25,8 @@ export default {
|
|||||||
__Unused2: 'Null',
|
__Unused2: 'Null',
|
||||||
__Unused3: 'Null',
|
__Unused3: 'Null',
|
||||||
__Unused4: 'Null',
|
__Unused4: 'Null',
|
||||||
|
__Unused5: 'Null',
|
||||||
Void: 'SpCoreVoid',
|
Void: 'SpCoreVoid',
|
||||||
__Unused6: 'Null',
|
|
||||||
__Unused7: 'Null',
|
__Unused7: 'Null',
|
||||||
__Unused8: 'Null',
|
__Unused8: 'Null',
|
||||||
__Unused9: 'Null',
|
__Unused9: 'Null',
|
||||||
@@ -69,7 +63,7 @@ export default {
|
|||||||
__Unused40: 'Null',
|
__Unused40: 'Null',
|
||||||
__Unused41: 'Null',
|
__Unused41: 'Null',
|
||||||
__Unused42: 'Null',
|
__Unused42: 'Null',
|
||||||
__Unused43: 'Null',
|
Origins: 'KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin',
|
||||||
__Unused44: 'Null',
|
__Unused44: 'Null',
|
||||||
__Unused45: 'Null',
|
__Unused45: 'Null',
|
||||||
__Unused46: 'Null',
|
__Unused46: 'Null',
|
||||||
@@ -129,7 +123,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup406: kusama_runtime::NposCompactSolution24
|
* Lookup153: 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']
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup230: kusama_runtime::ProxyType
|
||||||
|
**/
|
||||||
|
KusamaRuntimeProxyType: {
|
||||||
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction', 'Society']
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup240: kusama_runtime::NposCompactSolution24
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeNposCompactSolution24: {
|
KusamaRuntimeNposCompactSolution24: {
|
||||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||||
@@ -158,7 +164,7 @@ export default {
|
|||||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup786: kusama_runtime::Runtime
|
* Lookup852: kusama_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeRuntime: 'Null'
|
KusamaRuntimeRuntime: 'Null'
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,67 @@ import type { ITuple } from '@polkadot/types-codec/types';
|
|||||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
declare module '@polkadot/types/lookup' {
|
declare module '@polkadot/types/lookup' {
|
||||||
/** @name KusamaRuntimeProxyType (81) */
|
/** @name KusamaRuntimeSessionKeys (107) */
|
||||||
|
interface KusamaRuntimeSessionKeys extends Struct {
|
||||||
|
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||||
|
readonly babe: SpConsensusBabeAppPublic;
|
||||||
|
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
|
||||||
|
readonly paraValidator: PolkadotPrimitivesV2ValidatorAppPublic;
|
||||||
|
readonly paraAssignment: PolkadotPrimitivesV2AssignmentAppPublic;
|
||||||
|
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name KusamaRuntimeOriginCaller (149) */
|
||||||
|
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';
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin (153) */
|
||||||
|
interface KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin extends Enum {
|
||||||
|
readonly isStakingAdmin: boolean;
|
||||||
|
readonly isTreasurer: boolean;
|
||||||
|
readonly isFellowshipAdmin: boolean;
|
||||||
|
readonly isGeneralAdmin: boolean;
|
||||||
|
readonly isAuctionAdmin: boolean;
|
||||||
|
readonly isLeaseAdmin: boolean;
|
||||||
|
readonly isReferendumCanceller: boolean;
|
||||||
|
readonly isReferendumKiller: boolean;
|
||||||
|
readonly isSmallTipper: boolean;
|
||||||
|
readonly isBigTipper: boolean;
|
||||||
|
readonly isSmallSpender: boolean;
|
||||||
|
readonly isMediumSpender: boolean;
|
||||||
|
readonly isBigSpender: boolean;
|
||||||
|
readonly isWhitelistedCaller: boolean;
|
||||||
|
readonly isFellowshipInitiates: boolean;
|
||||||
|
readonly isFellows: boolean;
|
||||||
|
readonly isFellowshipExperts: boolean;
|
||||||
|
readonly isFellowshipMasters: boolean;
|
||||||
|
readonly isFellowship1Dan: boolean;
|
||||||
|
readonly isFellowship2Dan: boolean;
|
||||||
|
readonly isFellowship3Dan: boolean;
|
||||||
|
readonly isFellowship4Dan: boolean;
|
||||||
|
readonly isFellowship5Dan: boolean;
|
||||||
|
readonly isFellowship6Dan: boolean;
|
||||||
|
readonly isFellowship7Dan: boolean;
|
||||||
|
readonly isFellowship8Dan: boolean;
|
||||||
|
readonly isFellowship9Dan: boolean;
|
||||||
|
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 (230) */
|
||||||
interface KusamaRuntimeProxyType extends Enum {
|
interface KusamaRuntimeProxyType extends Enum {
|
||||||
readonly isAny: boolean;
|
readonly isAny: boolean;
|
||||||
readonly isNonTransfer: boolean;
|
readonly isNonTransfer: boolean;
|
||||||
@@ -23,33 +83,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeSessionKeys (265) */
|
/** @name KusamaRuntimeNposCompactSolution24 (240) */
|
||||||
interface KusamaRuntimeSessionKeys extends Struct {
|
|
||||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
|
||||||
readonly babe: SpConsensusBabeAppPublic;
|
|
||||||
readonly imOnline: PalletImOnlineSr25519AppSr25519Public;
|
|
||||||
readonly paraValidator: PolkadotPrimitivesV2ValidatorAppPublic;
|
|
||||||
readonly paraAssignment: PolkadotPrimitivesV2AssignmentAppPublic;
|
|
||||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name KusamaRuntimeOriginCaller (340) */
|
|
||||||
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 isParachainsOrigin: boolean;
|
|
||||||
readonly asParachainsOrigin: PolkadotRuntimeParachainsOriginPalletOrigin;
|
|
||||||
readonly isXcmPallet: boolean;
|
|
||||||
readonly asXcmPallet: PalletXcmOrigin;
|
|
||||||
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name KusamaRuntimeNposCompactSolution24 (406) */
|
|
||||||
interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
||||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||||
@@ -77,7 +111,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeRuntime (786) */
|
/** @name KusamaRuntimeRuntime (852) */
|
||||||
type KusamaRuntimeRuntime = Null;
|
type KusamaRuntimeRuntime = Null;
|
||||||
|
|
||||||
} // declare module
|
} // 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
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
|||||||
import type { StatementKind } from '@polkadot/types/interfaces/claims';
|
import type { StatementKind } from '@polkadot/types/interfaces/claims';
|
||||||
import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';
|
import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';
|
||||||
import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';
|
import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';
|
||||||
import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
|
import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractExecResultU64, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractInstantiateResultU64, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';
|
||||||
import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractContractSpecV4, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractMetadataV4, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
|
import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractContractSpecV4, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractMetadataV4, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';
|
||||||
import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
|
import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';
|
||||||
import type { CollationInfo, CollationInfoV1, ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
|
import type { CollationInfo, CollationInfoV1, ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';
|
||||||
@@ -46,7 +46,7 @@ import type { NpApiError } from '@polkadot/types/interfaces/nompools';
|
|||||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||||
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
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, 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 { FeeDetails, InclusionFee, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import type { FeeDetails, InclusionFee, RuntimeDispatchInfo, RuntimeDispatchInfoV1, RuntimeDispatchInfoV2 } from '@polkadot/types/interfaces/payment';
|
||||||
import type { Approvals } from '@polkadot/types/interfaces/poll';
|
import type { Approvals } from '@polkadot/types/interfaces/poll';
|
||||||
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
|
import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
|
||||||
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
||||||
@@ -272,10 +272,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
ContractExecResultTo255: ContractExecResultTo255;
|
ContractExecResultTo255: ContractExecResultTo255;
|
||||||
ContractExecResultTo260: ContractExecResultTo260;
|
ContractExecResultTo260: ContractExecResultTo260;
|
||||||
ContractExecResultTo267: ContractExecResultTo267;
|
ContractExecResultTo267: ContractExecResultTo267;
|
||||||
|
ContractExecResultU64: ContractExecResultU64;
|
||||||
ContractInfo: ContractInfo;
|
ContractInfo: ContractInfo;
|
||||||
ContractInstantiateResult: ContractInstantiateResult;
|
ContractInstantiateResult: ContractInstantiateResult;
|
||||||
ContractInstantiateResultTo267: ContractInstantiateResultTo267;
|
ContractInstantiateResultTo267: ContractInstantiateResultTo267;
|
||||||
ContractInstantiateResultTo299: ContractInstantiateResultTo299;
|
ContractInstantiateResultTo299: ContractInstantiateResultTo299;
|
||||||
|
ContractInstantiateResultU64: ContractInstantiateResultU64;
|
||||||
ContractLayoutArray: ContractLayoutArray;
|
ContractLayoutArray: ContractLayoutArray;
|
||||||
ContractLayoutCell: ContractLayoutCell;
|
ContractLayoutCell: ContractLayoutCell;
|
||||||
ContractLayoutEnum: ContractLayoutEnum;
|
ContractLayoutEnum: ContractLayoutEnum;
|
||||||
@@ -875,6 +877,8 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
RpcMethods: RpcMethods;
|
RpcMethods: RpcMethods;
|
||||||
RuntimeDbWeight: RuntimeDbWeight;
|
RuntimeDbWeight: RuntimeDbWeight;
|
||||||
RuntimeDispatchInfo: RuntimeDispatchInfo;
|
RuntimeDispatchInfo: RuntimeDispatchInfo;
|
||||||
|
RuntimeDispatchInfoV1: RuntimeDispatchInfoV1;
|
||||||
|
RuntimeDispatchInfoV2: RuntimeDispatchInfoV2;
|
||||||
RuntimeVersion: RuntimeVersion;
|
RuntimeVersion: RuntimeVersion;
|
||||||
RuntimeVersionApi: RuntimeVersionApi;
|
RuntimeVersionApi: RuntimeVersionApi;
|
||||||
RuntimeVersionPartial: RuntimeVersionPartial;
|
RuntimeVersionPartial: RuntimeVersionPartial;
|
||||||
|
|||||||
@@ -5,10 +5,11 @@
|
|||||||
// this is required to allow for ambient/previous definitions
|
// this is required to allow for ambient/previous definitions
|
||||||
import '@polkadot/types/types/registry';
|
import '@polkadot/types/types/registry';
|
||||||
|
|
||||||
import type { KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
|
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
declare module '@polkadot/types/types/registry' {
|
declare module '@polkadot/types/types/registry' {
|
||||||
interface InterfaceTypes {
|
interface InterfaceTypes {
|
||||||
|
KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin: KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin;
|
||||||
KusamaRuntimeNposCompactSolution24: KusamaRuntimeNposCompactSolution24;
|
KusamaRuntimeNposCompactSolution24: KusamaRuntimeNposCompactSolution24;
|
||||||
KusamaRuntimeOriginCaller: KusamaRuntimeOriginCaller;
|
KusamaRuntimeOriginCaller: KusamaRuntimeOriginCaller;
|
||||||
KusamaRuntimeProxyType: KusamaRuntimeProxyType;
|
KusamaRuntimeProxyType: KusamaRuntimeProxyType;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
|||||||
|
# @polkadot/types-codec
|
||||||
|
|
||||||
|
Base scale-codec types.
|
||||||
@@ -20,17 +20,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/util": "^10.1.11",
|
"@polkadot/util": "^10.2.1",
|
||||||
"@polkadot/x-bigint": "^10.1.11"
|
"@polkadot/x-bigint": "^10.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-augment": "9.6.1",
|
"@polkadot/types-augment": "9.10.1",
|
||||||
"@polkadot/types-support": "9.6.1",
|
"@polkadot/types-support": "9.10.1",
|
||||||
"@polkadot/util-crypto": "^10.1.11"
|
"@polkadot/util-crypto": "^10.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { Codec, CodecClass, Registry } from '../types';
|
|||||||
import { u8aToHex } from '@polkadot/util';
|
import { u8aToHex } from '@polkadot/util';
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function formatFailure (registry: Registry, result: unknown[], { message }: Error, u8a: Uint8Array, i: number, count: number, Type: CodecClass, key?: string): string {
|
function formatFailure (registry: Registry, fn: 'decodeU8a' | 'decodeU8aStruct' | 'decodeU8aVec', result: unknown[], { message }: Error, u8a: Uint8Array, i: number, count: number, Type: CodecClass, key?: string): string {
|
||||||
let type = '';
|
let type = '';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -15,9 +15,11 @@ function formatFailure (registry: Registry, result: unknown[], { message }: Erro
|
|||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is extra debugging info (we most-probably want this in in some way, shape or form,
|
||||||
|
// but at this point not quite sure how to include and format it (it can be quite massive)
|
||||||
// console.error(JSON.stringify(result, null, 2));
|
// console.error(JSON.stringify(result, null, 2));
|
||||||
|
|
||||||
return `decodeU8a: failed at ${u8aToHex(u8a.subarray(0, 16))}…${key ? ` on ${key}` : ''} (index ${i}/${count})${type}:: ${message}`;
|
return `${fn}: failed at ${u8aToHex(u8a.subarray(0, 16))}…${key ? ` on ${key}` : ''} (index ${i + 1}/${count})${type}:: ${message}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,7 +46,7 @@ export function decodeU8a <T extends Codec = Codec> (registry: Registry, result:
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(formatFailure(registry, result, error as Error, u8a.subarray(offset), i, count, Types[i], keys[i]));
|
throw new Error(formatFailure(registry, 'decodeU8a', result, error as Error, u8a.subarray(offset), i, count, Types[i], keys[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
return [result, offset];
|
return [result, offset];
|
||||||
@@ -70,7 +72,7 @@ export function decodeU8aStruct (registry: Registry, result: [string, Codec][],
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(formatFailure(registry, result, error as Error, u8a.subarray(offset), i, count, Types[i], keys[i]));
|
throw new Error(formatFailure(registry, 'decodeU8aStruct', result, error as Error, u8a.subarray(offset), i, count, Types[i], keys[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
return [result, offset];
|
return [result, offset];
|
||||||
@@ -96,7 +98,7 @@ export function decodeU8aVec <T extends Codec = Codec> (registry: Registry, resu
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(formatFailure(registry, result, error as Error, u8a.subarray(offset), i, count, Type));
|
throw new Error(formatFailure(registry, 'decodeU8aVec', result, error as Error, u8a.subarray(offset), i, count, Type));
|
||||||
}
|
}
|
||||||
|
|
||||||
return [offset, offset - startAt];
|
return [offset, offset - startAt];
|
||||||
|
|||||||
@@ -4,6 +4,5 @@
|
|||||||
import { isFunction } from '@polkadot/util';
|
import { isFunction } from '@polkadot/util';
|
||||||
|
|
||||||
export function hasEq (o: unknown): o is { eq: (other: unknown) => boolean } {
|
export function hasEq (o: unknown): o is { eq: (other: unknown) => boolean } {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
return isFunction((o as { eq: unknown }).eq);
|
||||||
return isFunction((o as any).eq);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# @polkadot/types-create
|
||||||
|
|
||||||
|
Base type-creation functionality.
|
||||||
@@ -20,14 +20,14 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11"
|
"@polkadot/util": "^10.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "9.6.1"
|
"@polkadot/types": "9.10.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -20,17 +20,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "9.6.1",
|
"version": "9.10.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.19.4",
|
"@babel/runtime": "^7.20.1",
|
||||||
"@polkadot/networks": "^10.1.11",
|
"@polkadot/networks": "^10.2.1",
|
||||||
"@polkadot/types": "9.6.1",
|
"@polkadot/types": "9.10.1",
|
||||||
"@polkadot/types-codec": "9.6.1",
|
"@polkadot/types-codec": "9.10.1",
|
||||||
"@polkadot/types-create": "9.6.1",
|
"@polkadot/types-create": "9.10.1",
|
||||||
"@polkadot/util": "^10.1.11"
|
"@polkadot/util": "^10.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "9.6.1"
|
"@polkadot/api": "9.10.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.6.1' };
|
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.10.1' };
|
||||||
|
|||||||
@@ -37,7 +37,10 @@ const versioned: OverrideVersionedType[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
minmax: [4, 5],
|
minmax: [4, 5],
|
||||||
types: objectSpread({}, sharedTypes, mapXcmTypes('V1'))
|
types: objectSpread({
|
||||||
|
// As above, see https://github.com/polkadot-js/api/issues/5301
|
||||||
|
DispatchError: 'DispatchErrorPre6First'
|
||||||
|
}, sharedTypes, mapXcmTypes('V1'))
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// metadata V14
|
// metadata V14
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
import type { ChainUpgradesGenerated } from '../types';
|
import type { ChainUpgradesExpanded } from '../types';
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ const urls = {
|
|||||||
|
|
||||||
describe.each(keys)('generate %s', (chain): void => {
|
describe.each(keys)('generate %s', (chain): void => {
|
||||||
const avail = allGen[chain];
|
const avail = allGen[chain];
|
||||||
const final: ChainUpgradesGenerated = [];
|
const final: ChainUpgradesExpanded = [];
|
||||||
let api: ApiPromise;
|
let api: ApiPromise;
|
||||||
|
|
||||||
beforeAll(async (): Promise<void> => {
|
beforeAll(async (): Promise<void> => {
|
||||||
@@ -34,9 +34,9 @@ describe.each(keys)('generate %s', (chain): void => {
|
|||||||
// Auto-generated from on-chain data & manual definitions, do not edit
|
// Auto-generated from on-chain data & manual definitions, do not edit
|
||||||
/* eslint-disable quotes, comma-spacing */
|
/* eslint-disable quotes, comma-spacing */
|
||||||
|
|
||||||
import type { ChainUpgradesGenerated } from '../types';
|
import type { ChainUpgradesExpanded } from '../types';
|
||||||
|
|
||||||
const upgrades: ChainUpgradesGenerated = ${JSON.stringify(final, null, 2)};
|
const upgrades: ChainUpgradesExpanded = ${JSON.stringify(final, null, 2)};
|
||||||
|
|
||||||
export default upgrades;
|
export default upgrades;
|
||||||
`);
|
`);
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
// Auto-generated from on-chain data & manual definitions, do not edit
|
// Auto-generated from on-chain data & manual definitions, do not edit
|
||||||
/* eslint-disable quotes, comma-spacing */
|
/* eslint-disable quotes, comma-spacing */
|
||||||
|
|
||||||
import type { ChainUpgradesGenerated } from '../types';
|
import type { ChainUpgradesExpanded } from '../types';
|
||||||
|
|
||||||
const upgrades: ChainUpgradesGenerated = [
|
const upgrades: ChainUpgradesExpanded = [
|
||||||
[
|
[
|
||||||
0,
|
0,
|
||||||
1020,
|
1020,
|
||||||
@@ -3898,6 +3898,76 @@ const upgrades: ChainUpgradesGenerated = [
|
|||||||
1
|
1
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
15048375,
|
||||||
|
9300,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"0xdf6acb689907609b",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x37e397fc7c91f5e4",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x40fe3ad401f8959a",
|
||||||
|
6
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xd2bc9897eed08f15",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xf78b278be53f454c",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xaf2c0297a23e6d3d",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x49eaaf1b548a0cb0",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x91d5df18b0d2cf58",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xed99c5acb25eedf5",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xcbca25e39f142387",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x687ad44ad37f03c2",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xab3c0572291feb8b",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xbc9d89904f5b923f",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x37c8bb1350a9a2a8",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xf3ff14d5ab527059",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x17a6bc0d0062aeb3",
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
// Auto-generated from on-chain data & manual definitions, do not edit
|
// Auto-generated from on-chain data & manual definitions, do not edit
|
||||||
/* eslint-disable quotes, comma-spacing */
|
/* eslint-disable quotes, comma-spacing */
|
||||||
|
|
||||||
import type { ChainUpgradesGenerated } from '../types';
|
import type { ChainUpgradesExpanded } from '../types';
|
||||||
|
|
||||||
const upgrades: ChainUpgradesGenerated = [
|
const upgrades: ChainUpgradesExpanded = [
|
||||||
[
|
[
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
@@ -2558,6 +2558,76 @@ const upgrades: ChainUpgradesGenerated = [
|
|||||||
1
|
1
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
12876189,
|
||||||
|
9300,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"0xdf6acb689907609b",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x37e397fc7c91f5e4",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x40fe3ad401f8959a",
|
||||||
|
6
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x17a6bc0d0062aeb3",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xd2bc9897eed08f15",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xf78b278be53f454c",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xaf2c0297a23e6d3d",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x49eaaf1b548a0cb0",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x91d5df18b0d2cf58",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xed99c5acb25eedf5",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xcbca25e39f142387",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x687ad44ad37f03c2",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xab3c0572291feb8b",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xbc9d89904f5b923f",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x37c8bb1350a9a2a8",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xf3ff14d5ab527059",
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
// Auto-generated from on-chain data & manual definitions, do not edit
|
// Auto-generated from on-chain data & manual definitions, do not edit
|
||||||
/* eslint-disable quotes, comma-spacing */
|
/* eslint-disable quotes, comma-spacing */
|
||||||
|
|
||||||
import type { ChainUpgradesGenerated } from '../types';
|
import type { ChainUpgradesExpanded } from '../types';
|
||||||
|
|
||||||
const upgrades: ChainUpgradesGenerated = [
|
const upgrades: ChainUpgradesExpanded = [
|
||||||
[
|
[
|
||||||
214356,
|
214356,
|
||||||
4,
|
4,
|
||||||
@@ -3666,6 +3666,146 @@ const upgrades: ChainUpgradesGenerated = [
|
|||||||
1
|
1
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
13128237,
|
||||||
|
9310,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"0xdf6acb689907609b",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x37e397fc7c91f5e4",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x40fe3ad401f8959a",
|
||||||
|
6
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xd2bc9897eed08f15",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xf78b278be53f454c",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xaf2c0297a23e6d3d",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x49eaaf1b548a0cb0",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x91d5df18b0d2cf58",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xed99c5acb25eedf5",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xcbca25e39f142387",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x687ad44ad37f03c2",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xab3c0572291feb8b",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xbc9d89904f5b923f",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x37c8bb1350a9a2a8",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xf3ff14d5ab527059",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x17a6bc0d0062aeb3",
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
13272363,
|
||||||
|
9320,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
"0xdf6acb689907609b",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x37e397fc7c91f5e4",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x40fe3ad401f8959a",
|
||||||
|
6
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xd2bc9897eed08f15",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xf78b278be53f454c",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xaf2c0297a23e6d3d",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x49eaaf1b548a0cb0",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x91d5df18b0d2cf58",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xed99c5acb25eedf5",
|
||||||
|
3
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xcbca25e39f142387",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x687ad44ad37f03c2",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xab3c0572291feb8b",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xbc9d89904f5b923f",
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x37c8bb1350a9a2a8",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0xf3ff14d5ab527059",
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"0x17a6bc0d0062aeb3",
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
// Copyright 2017-2022 @polkadot/types-known authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { u8aEq } from '@polkadot/util';
|
import type { ChainUpgradesExpanded, ChainUpgradesRaw } from './types';
|
||||||
|
|
||||||
|
import { stringify, u8aEq } from '@polkadot/util';
|
||||||
|
|
||||||
import * as allGen from './e2e';
|
import * as allGen from './e2e';
|
||||||
import * as allMan from './manual';
|
import * as allMan from './manual';
|
||||||
@@ -40,6 +42,20 @@ const TESTS: TestDef[] = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
function checkOrder (network: string, versions: [number, number, ...unknown[]][]): void {
|
||||||
|
const ooo = versions.filter((curr, index): boolean => {
|
||||||
|
const prev = versions[index - 1];
|
||||||
|
|
||||||
|
return index === 0
|
||||||
|
? false
|
||||||
|
: curr[0] <= prev[0] || curr[1] <= prev[1];
|
||||||
|
});
|
||||||
|
|
||||||
|
if (ooo.length) {
|
||||||
|
throw new Error(`${network}: Mismatched upgrade ordering: ${stringify(ooo)}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
describe('generated', (): void => {
|
describe('generated', (): void => {
|
||||||
it('should have all the chains', (): void => {
|
it('should have all the chains', (): void => {
|
||||||
expect(Object.keys(allMan).sort()).toEqual(Object.keys(allGen).sort());
|
expect(Object.keys(allMan).sort()).toEqual(Object.keys(allGen).sort());
|
||||||
@@ -58,6 +74,14 @@ describe('generated', (): void => {
|
|||||||
throw new Error(`${chain}:: missing generated apis found, run yarn test:one packages/types-known/src/upgrades/e2e`);
|
throw new Error(`${chain}:: missing generated apis found, run yarn test:one packages/types-known/src/upgrades/e2e`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('manual should be correctly ordered', (): void => {
|
||||||
|
checkOrder(chain, (allGen as Record<string, ChainUpgradesExpanded>)[chain]);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('generated should be correctly ordered', (): void => {
|
||||||
|
checkOrder(chain, (allMan as Record<string, ChainUpgradesRaw>)[chain]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -2,39 +2,23 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { ChainUpgrades } from '@polkadot/types/types';
|
import type { ChainUpgrades } from '@polkadot/types/types';
|
||||||
import type { ChainUpgradesGenerated } from './types';
|
import type { HexString } from '@polkadot/util/types';
|
||||||
|
import type { ChainUpgradesExpanded } from './types';
|
||||||
|
|
||||||
import { selectableNetworks } from '@polkadot/networks';
|
import { selectableNetworks } from '@polkadot/networks';
|
||||||
import { BN, hexToU8a, stringify } from '@polkadot/util';
|
import { BN, hexToU8a } from '@polkadot/util';
|
||||||
|
|
||||||
import * as allKnown from './e2e';
|
import * as allKnown from './e2e';
|
||||||
|
|
||||||
// testnets are not available in the networks map
|
// testnets are not available in the networks map
|
||||||
const NET_EXTRA: Record<string, { genesisHash: string[] }> = {
|
const NET_EXTRA: Record<string, { genesisHash: HexString[] }> = {
|
||||||
westend: {
|
westend: {
|
||||||
genesisHash: ['0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e']
|
genesisHash: ['0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e']
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function checkOrder (network: string, versions: ChainUpgradesGenerated): ChainUpgradesGenerated {
|
function mapRaw ([network, versions]: [string, ChainUpgradesExpanded]): ChainUpgrades {
|
||||||
const ooo = versions.filter((curr, index): boolean => {
|
|
||||||
const prev = versions[index - 1];
|
|
||||||
|
|
||||||
return index === 0
|
|
||||||
? false
|
|
||||||
: curr[0] <= prev[0] || curr[1] <= prev[1];
|
|
||||||
});
|
|
||||||
|
|
||||||
if (ooo.length) {
|
|
||||||
throw new Error(`${network}: Mismatched upgrade ordering: ${stringify(ooo)}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
return versions;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @internal */
|
|
||||||
function mapRaw ([network, versions]: [string, ChainUpgradesGenerated]): ChainUpgrades {
|
|
||||||
const chain = selectableNetworks.find((n) => n.network === network) || NET_EXTRA[network];
|
const chain = selectableNetworks.find((n) => n.network === network) || NET_EXTRA[network];
|
||||||
|
|
||||||
if (!chain) {
|
if (!chain) {
|
||||||
@@ -44,7 +28,7 @@ function mapRaw ([network, versions]: [string, ChainUpgradesGenerated]): ChainUp
|
|||||||
return {
|
return {
|
||||||
genesisHash: hexToU8a(chain.genesisHash[0]),
|
genesisHash: hexToU8a(chain.genesisHash[0]),
|
||||||
network,
|
network,
|
||||||
versions: checkOrder(network, versions).map(([blockNumber, specVersion, apis]) => ({
|
versions: versions.map(([blockNumber, specVersion, apis]) => ({
|
||||||
apis,
|
apis,
|
||||||
blockNumber: new BN(blockNumber),
|
blockNumber: new BN(blockNumber),
|
||||||
specVersion: new BN(specVersion)
|
specVersion: new BN(specVersion)
|
||||||
@@ -53,6 +37,6 @@ function mapRaw ([network, versions]: [string, ChainUpgradesGenerated]): ChainUp
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Type overrides for specific spec types & versions as given in runtimeVersion
|
// Type overrides for specific spec types & versions as given in runtimeVersion
|
||||||
const upgrades = Object.entries<ChainUpgradesGenerated>(allKnown).map(mapRaw);
|
const upgrades = Object.entries<ChainUpgradesExpanded>(allKnown).map(mapRaw);
|
||||||
|
|
||||||
export default upgrades;
|
export default upgrades;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user