Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0449dd7b51 | ||
|
|
4d44c1187b | ||
|
|
f2eff6628b | ||
|
|
4923bc3e35 | ||
|
|
47da005bee | ||
|
|
7e82ab3d43 | ||
|
|
8df9642e04 | ||
|
|
6f76e1c4cc | ||
|
|
1d65cc5642 | ||
|
|
722bb5222e | ||
|
|
49e2daf8f2 | ||
|
|
88e3c900b7 | ||
|
|
a127dea5e4 | ||
|
|
d29660dc4e | ||
|
|
1870ad26d5 | ||
|
|
558a42c6ed | ||
|
|
6708264688 | ||
|
|
abac14f983 | ||
|
|
3cf9040115 | ||
|
|
37dcd78c4a | ||
|
|
6b3e4cc90e | ||
|
|
79ab347cbe | ||
|
|
bc302c5cb7 | ||
|
|
9972776afb | ||
|
|
0b2a3c4e74 | ||
|
|
ccac72fece | ||
|
|
8d5209d7dc | ||
|
|
5c2bd9dfa7 | ||
|
|
b2e71be983 | ||
|
|
d2f3672f2c | ||
|
|
6fb7849091 | ||
|
|
983c77fe61 | ||
|
|
256e35386a | ||
|
|
8beb03b177 | ||
|
|
967f5e980a | ||
|
|
00a27efaee | ||
|
|
a7163fb1ba | ||
|
|
4c6dd53c3b | ||
|
|
61199ffb2b | ||
|
|
dbfb03760c | ||
|
|
c9b1fcdb0a | ||
|
|
29953edd24 | ||
|
|
96a23bda50 | ||
|
|
09a8d80144 | ||
|
|
5637579879 | ||
|
|
448ce0a76e | ||
|
|
a6a062378d | ||
|
|
40c78f95d2 | ||
|
|
b0e135c5ca | ||
|
|
22218bd9b0 | ||
|
|
149b7d9ee6 |
+2
-1
@@ -51,4 +51,5 @@
|
||||
|
||||
7.14.2
|
||||
7.14.3
|
||||
8.0.2
|
||||
8.0.2
|
||||
8.3.2
|
||||
@@ -1,5 +1,46 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 8.3.2 May 8, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Bump `@substrate/connect` to 0.7.4 (Thanks to https://github.com/wirednkod)
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust `BTreeSet` in typegen top-level generation
|
||||
|
||||
|
||||
## 8.3.1 May 1, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Fetch metadata via WS for `types-from-defs` (Thanks to https://github.com/alex-nax)
|
||||
|
||||
Changes:
|
||||
|
||||
- Extract metadata v14 `BTreeSet` types into correct type
|
||||
- Assert to ensure that `[u8; <size>]` has exact sizes (non-u8a inputs)
|
||||
- Adjust `tx.paymentInfo` signing process for existing signature
|
||||
- Add Kusama 9190 upgrade block
|
||||
- Add Westend 9200 upgrade block
|
||||
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||
|
||||
|
||||
## 8.2.1 Apr 24, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Make WS timeout check configurable (Thanks to https://github.com/isSerge)
|
||||
|
||||
Changes:
|
||||
|
||||
- Don't fake signature for `paymentInfo` if already signed
|
||||
- Remove `api.derive.balances.fees` (use direct constants as applicable)
|
||||
- Add Westend 9190 upgrade block
|
||||
- Update to latest Substrate, Kusama & Polkadot static metadata
|
||||
|
||||
|
||||
## 8.1.1 Apr 17, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
+4
-3
@@ -1,4 +1,4 @@
|
||||
2916 Jaco 8.1.1 (#4750)
|
||||
2939 Jaco 8.3.2 (#4800)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
@@ -9,13 +9,13 @@
|
||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||
5 Chevdor Fix metadata package link (#3458)
|
||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||
4 Alex Wang fix issue that creates duplicate providers (#983)
|
||||
4 Alexander Popiak Add asset id in signing (#4009)
|
||||
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
||||
4 Nantian fix bigint type (#3869)
|
||||
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
||||
4 Thibaut Sardan no subscription for http (#3127)
|
||||
3 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||
3 André Silva add support for ValidationCodeHash (#3640)
|
||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||
@@ -26,6 +26,7 @@
|
||||
3 Julien Eluard Fixed typos about module balances (#1402)
|
||||
3 KarishmaBothara Backward compatibility thing (#3511)
|
||||
3 Miguel Hervas Adding RT4 Types (#3007)
|
||||
3 Nikos Kontakis Bump @substrate/connect in rpc-provider to 0.7.4 (#4796)
|
||||
3 Shawn Tabrizi Add `isReadyOrError` when connecting to API (#2577)
|
||||
3 YJ feat: Vote interface as U8a (#1061)
|
||||
2 Alexander Krupenkin Add [u8; 33] type width for U8aFixed type (#2391)
|
||||
@@ -36,7 +37,6 @@
|
||||
2 James Lefrère Add `.eq()` usage to docs and fix docs typos (#1405)
|
||||
2 Keith Yeung Allow keyPrefix to accept an additional argument for double maps (#2230)
|
||||
2 MOZGIII Follow-up fix after #4665 (#4666)
|
||||
2 Nikos Kontakis Add auction in shared types (#4085)
|
||||
2 Paweł Nguyen Fix a minor typo in cookbook blocks docs (#2294)
|
||||
2 sung wu Update tx.md (#2485)
|
||||
2 Veliko Abi constructor takes different parameters (#3347)
|
||||
@@ -93,6 +93,7 @@
|
||||
1 satellitex Add traits replace rules. for invalid cases `::<type>` and `<type>::`. (#885)
|
||||
1 Satyam Agrawal update as per the 0.97.0-beta.38 release (#1617)
|
||||
1 Sean Young Solang requires u256 and i256 types (#2752)
|
||||
1 serge make WS provider timeout configurable (#4758)
|
||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||
|
||||
@@ -15,8 +15,5 @@ module.exports = {
|
||||
// eslint-disable-next-line sort-keys
|
||||
'@polkadot/types(.*)$': '<rootDir>/packages/types/src/$1'
|
||||
},
|
||||
"transformIgnorePatterns": [
|
||||
'/node_modules/(?!@polkadot|@substrate/connect|@babel/runtime/helpers/esm/)'
|
||||
],
|
||||
testTimeout: 30000
|
||||
};
|
||||
|
||||
+5
-5
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "commonjs",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
@@ -31,15 +31,15 @@
|
||||
"test:watch": "polkadot-dev-run-test --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.17.9",
|
||||
"@babel/core": "^7.17.10",
|
||||
"@babel/register": "^7.17.7",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/dev": "^0.66.4",
|
||||
"@polkadot/dev": "^0.66.17",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^27.4.1",
|
||||
"@types/jest": "^27.5.0",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^4.6.3"
|
||||
"typescript": "^4.6.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api-base": "8.1.1",
|
||||
"@polkadot/rpc-augment": "8.1.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-augment": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
"@polkadot/api-base": "8.3.2",
|
||||
"@polkadot/rpc-augment": "8.3.2",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-augment": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "8.1.1"
|
||||
"@polkadot/types-support": "8.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of child-bounties that can be added to a parent bounty.
|
||||
* Maximum number of child bounties that can be added to a parent bounty.
|
||||
**/
|
||||
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -284,6 +284,16 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Signed phase.
|
||||
**/
|
||||
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
@@ -331,6 +341,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Per-weight deposit for a signed solution.
|
||||
**/
|
||||
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of unchecked solutions to refund the call fee for.
|
||||
**/
|
||||
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of signed submissions that can be queued.
|
||||
*
|
||||
@@ -355,11 +369,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Base reward for a signed solution
|
||||
**/
|
||||
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" (in any phase).
|
||||
**/
|
||||
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
|
||||
@@ -149,7 +149,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* The bounty cannot be closed because it has active child-bounties.
|
||||
* The bounty cannot be closed because it has active child bounties.
|
||||
**/
|
||||
HasActiveChildBounty: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -208,7 +208,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
ParentBountyNotActive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of child-bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
* Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
**/
|
||||
TooManyChildBounties: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1802,6 +1802,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No proposal or bounty at that index.
|
||||
**/
|
||||
InvalidIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal has not been approved.
|
||||
**/
|
||||
ProposalNotApproved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many approvals in the queue.
|
||||
**/
|
||||
|
||||
@@ -259,7 +259,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Child-bounties that have been added.
|
||||
* Child bounties that have been added.
|
||||
**/
|
||||
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
@@ -275,7 +275,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Number of child-bounties per parent bounty.
|
||||
* Number of child bounties per parent bounty.
|
||||
* Map of parent bounty index to number of child bounties.
|
||||
**/
|
||||
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
|
||||
@@ -367,7 +367,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* parent bounty to child-bounty account, if parent bounty has enough
|
||||
* funds, else the call fails.
|
||||
*
|
||||
* Upper bound to maximum number of active child-bounties that can be
|
||||
* Upper bound to maximum number of active child bounties that can be
|
||||
* added are managed via runtime trait config
|
||||
* [`Config::MaxActiveChildBountyCount`].
|
||||
*
|
||||
@@ -384,7 +384,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The beneficiary will be able to claim the funds after a delay.
|
||||
*
|
||||
* The dispatch origin for this call must be the master curator or
|
||||
* The dispatch origin for this call must be the parent curator or
|
||||
* curator of this child-bounty.
|
||||
*
|
||||
* Parent bounty must be in active state, for this child-bounty call to
|
||||
@@ -468,12 +468,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* the curator of the parent bounty, or any signed origin.
|
||||
*
|
||||
* For the origin other than T::RejectOrigin and the child-bounty
|
||||
* curator, parent-bounty must be in active state, for this call to
|
||||
* curator, parent bounty must be in active state, for this call to
|
||||
* work. We allow child-bounty curator and T::RejectOrigin to execute
|
||||
* this call irrespective of the parent-bounty state.
|
||||
* this call irrespective of the parent bounty state.
|
||||
*
|
||||
* If this function is called by the `RejectOrigin` or the
|
||||
* parent-bounty curator, we assume that the child-bounty curator is
|
||||
* parent bounty curator, we assume that the child-bounty curator is
|
||||
* malicious or inactive. As a result, child-bounty curator deposit is
|
||||
* slashed.
|
||||
*
|
||||
@@ -2570,11 +2570,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Parameters:
|
||||
* - `account`: The recovered account you want to make a call on-behalf-of.
|
||||
* - `call`: The call you want to make with the recovered account.
|
||||
*
|
||||
* # <weight>
|
||||
* - The weight of the `call` + 10,000.
|
||||
* - One storage lookup to check account is recovered by `who`. O(1)
|
||||
* # </weight>
|
||||
**/
|
||||
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
|
||||
/**
|
||||
@@ -2585,10 +2580,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Parameters:
|
||||
* - `account`: The recovered account you are able to call on-behalf-of.
|
||||
*
|
||||
* # <weight>
|
||||
* - One storage mutation to check account is recovered by `who`. O(1)
|
||||
* # </weight>
|
||||
**/
|
||||
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
@@ -2601,17 +2592,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Parameters:
|
||||
* - `account`: The lost account that you want to claim has been successfully recovered by
|
||||
* you.
|
||||
*
|
||||
* # <weight>
|
||||
* Key: F (len of friends in config), V (len of vouching friends)
|
||||
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
||||
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
||||
* - One storage read to get the current block number. O(1)
|
||||
* - One storage write. O(1), Codec O(V).
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + V)
|
||||
* # </weight>
|
||||
**/
|
||||
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
@@ -2626,15 +2606,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Parameters:
|
||||
* - `rescuer`: The account trying to rescue this recoverable account.
|
||||
*
|
||||
* # <weight>
|
||||
* Key: V (len of vouching friends)
|
||||
* - One storage read/remove to get the active recovery process. O(1), Codec O(V)
|
||||
* - One balance call to repatriate reserved. O(X)
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(V + X)
|
||||
* # </weight>
|
||||
**/
|
||||
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
@@ -2654,17 +2625,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* friends.
|
||||
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
|
||||
* needs to pass before the account can be recovered.
|
||||
*
|
||||
* # <weight>
|
||||
* - Key: F (len of friends)
|
||||
* - One storage read to check that account is not already recoverable. O(1).
|
||||
* - A check that the friends list is sorted and unique. O(F)
|
||||
* - One currency reserve operation. O(X)
|
||||
* - One storage write. O(1). Codec O(F).
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + X)
|
||||
* # </weight>
|
||||
**/
|
||||
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
||||
/**
|
||||
@@ -2679,17 +2639,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Parameters:
|
||||
* - `account`: The lost account that you want to recover. This account needs to be
|
||||
* recoverable (i.e. have a recovery configuration).
|
||||
*
|
||||
* # <weight>
|
||||
* - One storage read to check that account is recoverable. O(F)
|
||||
* - One storage read to check that this recovery process hasn't already started. O(1)
|
||||
* - One currency reserve operation. O(X)
|
||||
* - One storage read to get the current block number. O(1)
|
||||
* - One storage write. O(1).
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + X)
|
||||
* # </weight>
|
||||
**/
|
||||
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
@@ -2704,16 +2653,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ and must be a
|
||||
* recoverable account (i.e. has a recovery configuration).
|
||||
*
|
||||
* # <weight>
|
||||
* Key: F (len of friends)
|
||||
* - One storage read to get the prefix iterator for active recoveries. O(1)
|
||||
* - One storage read/remove to get the recovery configuration. O(1), Codec O(F)
|
||||
* - One balance call to unreserved. O(X)
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + X)
|
||||
* # </weight>
|
||||
**/
|
||||
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
@@ -2725,11 +2664,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Parameters:
|
||||
* - `lost`: The "lost account" to be recovered.
|
||||
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
||||
*
|
||||
* # <weight>
|
||||
* - One storage write O(1)
|
||||
* - One event
|
||||
* # </weight>
|
||||
**/
|
||||
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
||||
/**
|
||||
@@ -2745,18 +2679,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The combination of these two parameters must point to an active recovery
|
||||
* process.
|
||||
*
|
||||
* # <weight>
|
||||
* Key: F (len of friends in config), V (len of vouching friends)
|
||||
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
||||
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
||||
* - One binary search to confirm caller is a friend. O(logF)
|
||||
* - One binary search to confirm caller has not already vouched. O(logV)
|
||||
* - One storage write. O(1), Codec O(V).
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + logF + V + logV)
|
||||
* # </weight>
|
||||
**/
|
||||
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
||||
/**
|
||||
@@ -4154,6 +4076,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* # </weight>
|
||||
**/
|
||||
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Force a previously approved proposal to be removed from the approval queue.
|
||||
* The original deposit will no longer be returned.
|
||||
*
|
||||
* May only be called from `T::RejectOrigin`.
|
||||
* - `proposal_id`: The index of a proposal
|
||||
*
|
||||
* # <weight>
|
||||
* - Complexity: O(A) where `A` is the number of approvals
|
||||
* - Db reads and writes: `Approvals`
|
||||
* # </weight>
|
||||
*
|
||||
* Errors:
|
||||
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
||||
* i.e., the proposal has not been approved. This could also mean the proposal does not
|
||||
* exist altogether, thus there is no way it would have been approved in the first place.
|
||||
**/
|
||||
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -187,7 +187,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of child-bounties that can be added to a parent bounty.
|
||||
* Maximum number of child bounties that can be added to a parent bounty.
|
||||
**/
|
||||
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -284,6 +284,16 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Signed phase.
|
||||
**/
|
||||
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
@@ -331,6 +341,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Per-weight deposit for a signed solution.
|
||||
**/
|
||||
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of unchecked solutions to refund the call fee for.
|
||||
**/
|
||||
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of signed submissions that can be queued.
|
||||
*
|
||||
@@ -355,11 +369,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Base reward for a signed solution
|
||||
**/
|
||||
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" (in any phase).
|
||||
**/
|
||||
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
|
||||
@@ -149,7 +149,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
};
|
||||
bounties: {
|
||||
/**
|
||||
* The bounty cannot be closed because it has active child-bounties.
|
||||
* The bounty cannot be closed because it has active child bounties.
|
||||
**/
|
||||
HasActiveChildBounty: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -208,7 +208,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
ParentBountyNotActive: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Number of child-bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
* Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
|
||||
**/
|
||||
TooManyChildBounties: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1615,6 +1615,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No proposal or bounty at that index.
|
||||
**/
|
||||
InvalidIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal has not been approved.
|
||||
**/
|
||||
ProposalNotApproved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many approvals in the queue.
|
||||
**/
|
||||
|
||||
@@ -259,7 +259,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
};
|
||||
childBounties: {
|
||||
/**
|
||||
* Child-bounties that have been added.
|
||||
* Child bounties that have been added.
|
||||
**/
|
||||
childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChildBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||
/**
|
||||
@@ -275,7 +275,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
childrenCuratorFees: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Number of child-bounties per parent bounty.
|
||||
* Number of child bounties per parent bounty.
|
||||
* Map of parent bounty index to number of child bounties.
|
||||
**/
|
||||
parentChildBounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
|
||||
@@ -367,7 +367,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* parent bounty to child-bounty account, if parent bounty has enough
|
||||
* funds, else the call fails.
|
||||
*
|
||||
* Upper bound to maximum number of active child-bounties that can be
|
||||
* Upper bound to maximum number of active child bounties that can be
|
||||
* added are managed via runtime trait config
|
||||
* [`Config::MaxActiveChildBountyCount`].
|
||||
*
|
||||
@@ -384,7 +384,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The beneficiary will be able to claim the funds after a delay.
|
||||
*
|
||||
* The dispatch origin for this call must be the master curator or
|
||||
* The dispatch origin for this call must be the parent curator or
|
||||
* curator of this child-bounty.
|
||||
*
|
||||
* Parent bounty must be in active state, for this child-bounty call to
|
||||
@@ -468,12 +468,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* the curator of the parent bounty, or any signed origin.
|
||||
*
|
||||
* For the origin other than T::RejectOrigin and the child-bounty
|
||||
* curator, parent-bounty must be in active state, for this call to
|
||||
* curator, parent bounty must be in active state, for this call to
|
||||
* work. We allow child-bounty curator and T::RejectOrigin to execute
|
||||
* this call irrespective of the parent-bounty state.
|
||||
* this call irrespective of the parent bounty state.
|
||||
*
|
||||
* If this function is called by the `RejectOrigin` or the
|
||||
* parent-bounty curator, we assume that the child-bounty curator is
|
||||
* parent bounty curator, we assume that the child-bounty curator is
|
||||
* malicious or inactive. As a result, child-bounty curator deposit is
|
||||
* slashed.
|
||||
*
|
||||
@@ -3572,6 +3572,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* # </weight>
|
||||
**/
|
||||
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Force a previously approved proposal to be removed from the approval queue.
|
||||
* The original deposit will no longer be returned.
|
||||
*
|
||||
* May only be called from `T::RejectOrigin`.
|
||||
* - `proposal_id`: The index of a proposal
|
||||
*
|
||||
* # <weight>
|
||||
* - Complexity: O(A) where `A` is the number of approvals
|
||||
* - Db reads and writes: `Approvals`
|
||||
* # </weight>
|
||||
*
|
||||
* Errors:
|
||||
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
||||
* i.e., the proposal has not been approved. This could also mean the proposal does not
|
||||
* exist altogether, thus there is no way it would have been approved in the first place.
|
||||
**/
|
||||
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
|
||||
@@ -345,6 +345,16 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
electionProviderMultiPhase: {
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Signed phase.
|
||||
**/
|
||||
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" in the Unsigned phase.
|
||||
**/
|
||||
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of electable targets to put in the snapshot.
|
||||
**/
|
||||
@@ -392,6 +402,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Per-weight deposit for a signed solution.
|
||||
**/
|
||||
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum amount of unchecked solutions to refund the call fee for.
|
||||
**/
|
||||
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of signed submissions that can be queued.
|
||||
*
|
||||
@@ -416,11 +430,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Base reward for a signed solution
|
||||
**/
|
||||
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The minimum amount of improvement to the solution score that defines a solution as
|
||||
* "better" (in any phase).
|
||||
**/
|
||||
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Duration of the unsigned phase.
|
||||
**/
|
||||
@@ -630,6 +639,16 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
nominationPools: {
|
||||
/**
|
||||
* The nomination pool's pallet id.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
proxy: {
|
||||
/**
|
||||
* The base amount of currency needed to reserve for creating an announcement.
|
||||
|
||||
@@ -1018,6 +1018,113 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
nominationPools: {
|
||||
/**
|
||||
* An account is already delegating in another pool. An account may only belong to one
|
||||
* pool at a time.
|
||||
**/
|
||||
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The member is already unbonding in this era.
|
||||
**/
|
||||
AlreadyUnbonding: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pools state cannot be changed.
|
||||
**/
|
||||
CanNotChangeState: AugmentedError<ApiType>;
|
||||
/**
|
||||
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
||||
**/
|
||||
CannotWithdrawAny: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Some error occurred that should never happen. This should be reported to the
|
||||
* maintainers.
|
||||
**/
|
||||
DefensiveError: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The caller does not have adequate permissions.
|
||||
**/
|
||||
DoesNotHavePermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The member is fully unbonded (and thus cannot access the bonded and reward pool
|
||||
* anymore to, for example, collect rewards).
|
||||
**/
|
||||
FullyUnbonding: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool has insufficient balance to bond as a nominator.
|
||||
**/
|
||||
InsufficientBond: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many members in the pool or system.
|
||||
**/
|
||||
MaxPoolMembers: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The system is maxed out on pools.
|
||||
**/
|
||||
MaxPools: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The member cannot unbond further chunks due to reaching the limit.
|
||||
**/
|
||||
MaxUnbondingLimit: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Metadata exceeds [`Config::MaxMetadataLen`]
|
||||
**/
|
||||
MetadataExceedsMaxLen: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The amount does not meet the minimum bond to either join or create a pool.
|
||||
**/
|
||||
MinimumBondNotMet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
||||
* other members to be permissionlessly unbonded.
|
||||
**/
|
||||
NotDestroying: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not enough points. Ty unbonding less.
|
||||
**/
|
||||
NotEnoughPointsToUnbond: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
||||
**/
|
||||
NotKickerOrDestroying: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The caller does not have nominating permissions for the pool.
|
||||
**/
|
||||
NotNominator: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The depositor must be the only member in the bonded pool in order to unbond. And the
|
||||
* depositor must be the only member in the sub pools in order to withdraw unbonded.
|
||||
**/
|
||||
NotOnlyPoolMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool is not open to join
|
||||
**/
|
||||
NotOpen: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The transaction could not be executed due to overflow risk for the pool.
|
||||
**/
|
||||
OverflowRisk: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An account is not a member.
|
||||
**/
|
||||
PoolMemberNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A (bonded) pool id does not exist.
|
||||
**/
|
||||
PoolNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A reward pool does not exist. In all cases this is a system logic error.
|
||||
**/
|
||||
RewardPoolNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A sub pool does not exist.
|
||||
**/
|
||||
SubPoolsNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
preimage: {
|
||||
/**
|
||||
* Preimage has already been noted on-chain.
|
||||
@@ -1206,6 +1313,20 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
remark: {
|
||||
/**
|
||||
* Attempted to call `store` outside of block execution.
|
||||
**/
|
||||
BadContext: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Attempting to store empty data.
|
||||
**/
|
||||
Empty: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
scheduler: {
|
||||
/**
|
||||
* Failed to schedule a call
|
||||
@@ -1665,6 +1786,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* No proposal or bounty at that index.
|
||||
**/
|
||||
InvalidIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Proposal has not been approved.
|
||||
**/
|
||||
ProposalNotApproved: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many approvals in the queue.
|
||||
**/
|
||||
@@ -1691,6 +1816,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The asset ID is already taken.
|
||||
**/
|
||||
InUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset instance is locked.
|
||||
**/
|
||||
Locked: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is no delegate approved.
|
||||
**/
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/api-base/types/events' {
|
||||
export interface AugmentedEvents<ApiType extends ApiTypes> {
|
||||
@@ -615,6 +615,40 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
nominationPools: {
|
||||
/**
|
||||
* A member has became bonded in a pool.
|
||||
**/
|
||||
Bonded: AugmentedEvent<ApiType, [AccountId32, u32, u128, bool]>;
|
||||
/**
|
||||
* A pool has been created.
|
||||
**/
|
||||
Created: AugmentedEvent<ApiType, [AccountId32, u32]>;
|
||||
/**
|
||||
* A pool has been destroyed.
|
||||
**/
|
||||
Destroyed: AugmentedEvent<ApiType, [u32]>;
|
||||
/**
|
||||
* A payout has been made to a member.
|
||||
**/
|
||||
PaidOut: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
||||
/**
|
||||
* The state of a pool has changed
|
||||
**/
|
||||
StateChanged: AugmentedEvent<ApiType, [u32, PalletNominationPoolsPoolState]>;
|
||||
/**
|
||||
* A member has unbonded from their pool.
|
||||
**/
|
||||
Unbonded: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
||||
/**
|
||||
* A member has withdrawn from their pool.
|
||||
**/
|
||||
Withdrawn: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
offences: {
|
||||
/**
|
||||
* There is an offence reported of the given `kind` happened at the `session_index` and
|
||||
@@ -754,6 +788,16 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
remark: {
|
||||
/**
|
||||
* Stored data off chain.
|
||||
**/
|
||||
Stored: AugmentedEvent<ApiType, [AccountId32, H256]>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
scheduler: {
|
||||
/**
|
||||
* The call for the provided hash was not found so the task has been aborted.
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
declare module '@polkadot/api-base/types/storage' {
|
||||
@@ -785,6 +785,86 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
nominationPools: {
|
||||
/**
|
||||
* Storage for bonded pools.
|
||||
**/
|
||||
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForPoolMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Maximum number of members that can exist in the system. If `None`, then the count
|
||||
* members are not bound on a system wide basis.
|
||||
**/
|
||||
maxPoolMembers: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Maximum number of members that may belong to pool. If `None`, then the count of
|
||||
* members is not bound on a per pool basis.
|
||||
**/
|
||||
maxPoolMembersPerPool: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
||||
* pools can exist.
|
||||
**/
|
||||
maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Metadata for the pool.
|
||||
**/
|
||||
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Minimum bond required to create a pool.
|
||||
*
|
||||
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
||||
* indication of "skin in the game".
|
||||
**/
|
||||
minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Minimum amount to bond to join a pool.
|
||||
**/
|
||||
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Active members.
|
||||
**/
|
||||
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Reward pools. This is where there rewards for each pool accumulate. When a members payout
|
||||
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
||||
**/
|
||||
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
||||
* hence the name sub-pools. Keyed by the bonded pools account.
|
||||
**/
|
||||
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
offences: {
|
||||
/**
|
||||
* A vector of reports of the same kind that happened at the same time slot.
|
||||
|
||||
@@ -6,7 +6,7 @@ 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 { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/api-base/types/submittable' {
|
||||
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
||||
@@ -2446,6 +2446,139 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
nominationPools: {
|
||||
/**
|
||||
* Bond `extra` more funds from `origin` into the pool to which they already belong.
|
||||
*
|
||||
* Additional funds can come from either the free balance of the account, of from the
|
||||
* accumulated rewards, see [`BondExtra`].
|
||||
**/
|
||||
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | { FreeBalance: any } | { Rewards: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
||||
/**
|
||||
* A bonded member can use this to claim their payout based on the rewards that the pool
|
||||
* has accumulated since their last claimed payout (OR since joining if this is there first
|
||||
* time claiming rewards). The payout will be transferred to the member's account.
|
||||
*
|
||||
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
||||
* members in the pools stake. Rewards do not "expire".
|
||||
**/
|
||||
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Create a new delegation pool.
|
||||
*
|
||||
* # Arguments
|
||||
*
|
||||
* * `amount` - The amount of funds to delegate to the pool. This also acts of a sort of
|
||||
* deposit since the pools creator cannot fully unbond funds until the pool is being
|
||||
* destroyed.
|
||||
* * `index` - A disambiguation index for creating the account. Likely only useful when
|
||||
* creating multiple pools in the same extrinsic.
|
||||
* * `root` - The account to set as [`PoolRoles::root`].
|
||||
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
||||
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
||||
* needs at have at least `amount + existential_deposit` transferrable.
|
||||
**/
|
||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: AccountId32 | string | Uint8Array, nominator: AccountId32 | string | Uint8Array, stateToggler: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId32, AccountId32, AccountId32]>;
|
||||
/**
|
||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||
* pools account and immediately increases the pools bond.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* * An account can only be a member of a single pool.
|
||||
* * An account cannot join the same pool multiple times.
|
||||
* * This call will *not* dust the member account, so the member must have at least
|
||||
* `existential deposit + amount` in their account.
|
||||
* * Only a pool with [`PoolState::Open`] can be joined
|
||||
**/
|
||||
join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
||||
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
/**
|
||||
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
||||
*
|
||||
* This is useful if their are too many unlocking chunks to call `unbond`, and some
|
||||
* can be cleared by withdrawing. In the case there are too many unlocking chunks, the user
|
||||
* would probably see an error like `NoMoreChunks` emitted from the staking system when
|
||||
* they attempt to unbond.
|
||||
**/
|
||||
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||
/**
|
||||
* Update configurations for the nomination pools. The origin must for this call must be
|
||||
* Root.
|
||||
*
|
||||
* # Arguments
|
||||
*
|
||||
* * `min_join_bond` - Set [`MinJoinBond`].
|
||||
* * `min_create_bond` - Set [`MinCreateBond`].
|
||||
* * `max_pools` - Set [`MaxPools`].
|
||||
* * `max_members` - Set [`MaxPoolMembers`].
|
||||
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
||||
**/
|
||||
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | { Noop: any } | { Set: any } | { Remove: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
|
||||
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
||||
setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
|
||||
/**
|
||||
* Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
|
||||
* implicitly collects the rewards one last time, since not doing so would mean some
|
||||
* rewards would go forfeited.
|
||||
*
|
||||
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
||||
* account).
|
||||
*
|
||||
* # Conditions for a permissionless dispatch.
|
||||
*
|
||||
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
||||
* refereed to as a kick.
|
||||
* * The pool is destroying and the member is not the depositor.
|
||||
* * The pool is destroying, the member is the depositor and no other members are in the
|
||||
* pool.
|
||||
*
|
||||
* ## Conditions for permissioned dispatch (i.e. the caller is also the
|
||||
* `member_account`):
|
||||
*
|
||||
* * The caller is not the depositor.
|
||||
* * The caller is the depositor, the pool is destroying and no other members are in the
|
||||
* pool.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* If there are too many unlocking chunks to unbond with the pool account,
|
||||
* [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. If
|
||||
* there are too many unlocking chunks, the result of this call will likely be the
|
||||
* `NoMoreChunks` error from the staking system.
|
||||
**/
|
||||
unbond: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Compact<u128>]>;
|
||||
/**
|
||||
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
||||
* error is returned.
|
||||
*
|
||||
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
||||
* account).
|
||||
*
|
||||
* # Conditions for a permissionless dispatch
|
||||
*
|
||||
* * The pool is in destroy mode and the target is not the depositor.
|
||||
* * The target is the depositor and they are the only member in the sub pools.
|
||||
* * The pool is blocked and the caller is either the root or state-toggler.
|
||||
*
|
||||
* # Conditions for permissioned dispatch
|
||||
*
|
||||
* * The caller is the target and they are not the depositor.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* If the target is the depositor, the pool will be destroyed.
|
||||
**/
|
||||
withdrawUnbonded: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
preimage: {
|
||||
/**
|
||||
* Register a preimage on-chain.
|
||||
@@ -2684,11 +2817,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Parameters:
|
||||
* - `account`: The recovered account you want to make a call on-behalf-of.
|
||||
* - `call`: The call you want to make with the recovered account.
|
||||
*
|
||||
* # <weight>
|
||||
* - The weight of the `call` + 10,000.
|
||||
* - One storage lookup to check account is recovered by `who`. O(1)
|
||||
* # </weight>
|
||||
**/
|
||||
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
|
||||
/**
|
||||
@@ -2699,10 +2827,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Parameters:
|
||||
* - `account`: The recovered account you are able to call on-behalf-of.
|
||||
*
|
||||
* # <weight>
|
||||
* - One storage mutation to check account is recovered by `who`. O(1)
|
||||
* # </weight>
|
||||
**/
|
||||
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
@@ -2715,17 +2839,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Parameters:
|
||||
* - `account`: The lost account that you want to claim has been successfully recovered by
|
||||
* you.
|
||||
*
|
||||
* # <weight>
|
||||
* Key: F (len of friends in config), V (len of vouching friends)
|
||||
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
||||
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
||||
* - One storage read to get the current block number. O(1)
|
||||
* - One storage write. O(1), Codec O(V).
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + V)
|
||||
* # </weight>
|
||||
**/
|
||||
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
@@ -2740,15 +2853,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Parameters:
|
||||
* - `rescuer`: The account trying to rescue this recoverable account.
|
||||
*
|
||||
* # <weight>
|
||||
* Key: V (len of vouching friends)
|
||||
* - One storage read/remove to get the active recovery process. O(1), Codec O(V)
|
||||
* - One balance call to repatriate reserved. O(X)
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(V + X)
|
||||
* # </weight>
|
||||
**/
|
||||
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
@@ -2768,17 +2872,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* friends.
|
||||
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
|
||||
* needs to pass before the account can be recovered.
|
||||
*
|
||||
* # <weight>
|
||||
* - Key: F (len of friends)
|
||||
* - One storage read to check that account is not already recoverable. O(1).
|
||||
* - A check that the friends list is sorted and unique. O(F)
|
||||
* - One currency reserve operation. O(X)
|
||||
* - One storage write. O(1). Codec O(F).
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + X)
|
||||
* # </weight>
|
||||
**/
|
||||
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
||||
/**
|
||||
@@ -2793,17 +2886,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Parameters:
|
||||
* - `account`: The lost account that you want to recover. This account needs to be
|
||||
* recoverable (i.e. have a recovery configuration).
|
||||
*
|
||||
* # <weight>
|
||||
* - One storage read to check that account is recoverable. O(F)
|
||||
* - One storage read to check that this recovery process hasn't already started. O(1)
|
||||
* - One currency reserve operation. O(X)
|
||||
* - One storage read to get the current block number. O(1)
|
||||
* - One storage write. O(1).
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + X)
|
||||
* # </weight>
|
||||
**/
|
||||
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
@@ -2818,16 +2900,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ and must be a
|
||||
* recoverable account (i.e. has a recovery configuration).
|
||||
*
|
||||
* # <weight>
|
||||
* Key: F (len of friends)
|
||||
* - One storage read to get the prefix iterator for active recoveries. O(1)
|
||||
* - One storage read/remove to get the recovery configuration. O(1), Codec O(F)
|
||||
* - One balance call to unreserved. O(X)
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + X)
|
||||
* # </weight>
|
||||
**/
|
||||
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
@@ -2839,11 +2911,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Parameters:
|
||||
* - `lost`: The "lost account" to be recovered.
|
||||
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
||||
*
|
||||
* # <weight>
|
||||
* - One storage write O(1)
|
||||
* - One event
|
||||
* # </weight>
|
||||
**/
|
||||
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
||||
/**
|
||||
@@ -2859,18 +2926,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* The combination of these two parameters must point to an active recovery
|
||||
* process.
|
||||
*
|
||||
* # <weight>
|
||||
* Key: F (len of friends in config), V (len of vouching friends)
|
||||
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
||||
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
||||
* - One binary search to confirm caller is a friend. O(logF)
|
||||
* - One binary search to confirm caller has not already vouched. O(logV)
|
||||
* - One storage write. O(1), Codec O(V).
|
||||
* - One event.
|
||||
*
|
||||
* Total Complexity: O(F + logF + V + logV)
|
||||
* # </weight>
|
||||
**/
|
||||
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
||||
/**
|
||||
@@ -2954,6 +3009,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
remark: {
|
||||
/**
|
||||
* Index and store data off chain.
|
||||
**/
|
||||
store: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
scheduler: {
|
||||
/**
|
||||
* Cancel an anonymously scheduled task.
|
||||
@@ -4351,7 +4416,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
renew: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
||||
/**
|
||||
* Index and store data on chain. Minimum data size is 1 bytes, maximum is
|
||||
* Index and store data off chain. Minimum data size is 1 bytes, maximum is
|
||||
* `MaxTransactionSize`. Data will be removed after `STORAGE_PERIOD` blocks, unless `renew`
|
||||
* is called. # <weight>
|
||||
* - n*log(n) of data size, as all data is pushed to an in-memory trie.
|
||||
@@ -4402,6 +4467,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* # </weight>
|
||||
**/
|
||||
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Force a previously approved proposal to be removed from the approval queue.
|
||||
* The original deposit will no longer be returned.
|
||||
*
|
||||
* May only be called from `T::RejectOrigin`.
|
||||
* - `proposal_id`: The index of a proposal
|
||||
*
|
||||
* # <weight>
|
||||
* - Complexity: O(A) where `A` is the number of approvals
|
||||
* - Db reads and writes: `Approvals`
|
||||
* # </weight>
|
||||
*
|
||||
* Errors:
|
||||
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
||||
* i.e., the proposal has not been approved. This could also mean the proposal does not
|
||||
* exist altogether, thus there is no way it would have been approved in the first place.
|
||||
**/
|
||||
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/rpc-core": "8.1.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/rpc-core": "8.3.2",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1",
|
||||
"rxjs": "^7.5.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
# @polkadot/api-contract
|
||||
|
||||
Interfaces to allow for the encoding and decoding of Substrate contract ABIs.
|
||||
|
||||
```js
|
||||
import {ApiPromise, WsProvider } from '@polkadot/api';
|
||||
import { Abi } from '@polkadot/api-contract';
|
||||
|
||||
const wsProvider = new WsProvider(<...Node Url...>);
|
||||
const api = await ApiPromise.create({ provider: wsProvider });
|
||||
const abi = new Abi(<...JSON ABI...>, api.registry.getChainProperties());
|
||||
|
||||
api.tx.contracts
|
||||
.call(<contract addr>, <value>, <max gas>, abi.messages.<method name>(<...params...>))
|
||||
.signAndSend(<keyring pair>, (result: SubmittableResult) => { ... });
|
||||
```
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api": "8.1.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/types-create": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"@polkadot/api": "8.3.2",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/types-create": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1",
|
||||
"@polkadot/util-crypto": "^9.1.1",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "8.1.1",
|
||||
"@polkadot/keyring": "^9.0.1"
|
||||
"@polkadot/api-augment": "8.3.2",
|
||||
"@polkadot/keyring": "^9.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -20,25 +20,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api": "8.1.1",
|
||||
"@polkadot/api-augment": "8.1.1",
|
||||
"@polkadot/api-base": "8.1.1",
|
||||
"@polkadot/rpc-core": "8.1.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"@polkadot/api": "8.3.2",
|
||||
"@polkadot/api-augment": "8.3.2",
|
||||
"@polkadot/api-base": "8.3.2",
|
||||
"@polkadot/rpc-core": "8.3.2",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1",
|
||||
"@polkadot/util-crypto": "^9.1.1",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "8.1.1",
|
||||
"@polkadot/api-augment": "8.1.1",
|
||||
"@polkadot/rpc-augment": "8.1.1",
|
||||
"@polkadot/rpc-provider": "8.1.1",
|
||||
"@polkadot/types-support": "8.1.1"
|
||||
"@polkadot/api": "8.3.2",
|
||||
"@polkadot/api-augment": "8.3.2",
|
||||
"@polkadot/rpc-augment": "8.3.2",
|
||||
"@polkadot/rpc-provider": "8.3.2",
|
||||
"@polkadot/types-support": "8.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
// Copyright 2017-2022 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Balance } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi, DeriveFees } from '../types';
|
||||
|
||||
import { map, of } from 'rxjs';
|
||||
|
||||
import { memo } from '../util';
|
||||
|
||||
/**
|
||||
* @name fees
|
||||
* @returns An object containing the combined results of the storage queries for
|
||||
* all relevant fees as declared in the substrate chain spec.
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* api.derive.balances.fees(({ creationFee, transferFee }) => {
|
||||
* console.log(`The fee for creating a new account on this chain is ${creationFee} units. The fee required for making a transfer is ${transferFee} units.`);
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
export function fees (instanceId: string, api: DeriveApi): () => Observable<DeriveFees> {
|
||||
return memo(instanceId, (): Observable<DeriveFees> =>
|
||||
of([
|
||||
// deprecated - remove
|
||||
(api.consts.balances?.creationFee as unknown as Balance) || api.registry.createType('Balance'),
|
||||
(api.consts.balances?.transferFee as unknown as Balance) || api.registry.createType('Balance'),
|
||||
|
||||
// current
|
||||
(api.consts.balances?.existentialDeposit as Balance) || api.registry.createType('Balance'),
|
||||
(api.consts.transactionPayment?.transactionBaseFee as unknown as Balance) || api.registry.createType('Balance'),
|
||||
(api.consts.transactionPayment?.transactionByteFee as Balance) || api.registry.createType('Balance')
|
||||
]).pipe(
|
||||
map(([creationFee, transferFee, existentialDeposit, transactionBaseFee, transactionByteFee]): DeriveFees => ({
|
||||
creationFee,
|
||||
existentialDeposit,
|
||||
transactionBaseFee,
|
||||
transactionByteFee,
|
||||
transferFee
|
||||
}))
|
||||
));
|
||||
}
|
||||
@@ -4,7 +4,6 @@
|
||||
import { all } from './all';
|
||||
|
||||
export * from './account';
|
||||
export * from './fees';
|
||||
export * from './votingBalances';
|
||||
|
||||
const votingBalance = all;
|
||||
|
||||
@@ -47,7 +47,6 @@ describe('derive', (): void => {
|
||||
testFunction(api)('accounts', 'indexToId', []);
|
||||
|
||||
testFunction(api)('balances', 'all', []);
|
||||
testFunction(api)('balances', 'fees', []);
|
||||
testFunction(api)('balances', 'votingBalance', []);
|
||||
testFunction(api)('balances', 'votingBalances', []);
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Option, Vec } from '@polkadot/types';
|
||||
import type { Option } from '@polkadot/types';
|
||||
import type { AccountId } from '@polkadot/types/interfaces';
|
||||
import type { NodeRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||
import type { ITuple } from '@polkadot/types/types';
|
||||
import type { DeriveApi } from '../types';
|
||||
import type { DeriveStakingKeys } from './types';
|
||||
|
||||
@@ -36,7 +35,7 @@ export function keysMulti (instanceId: string, api: DeriveApi): (stashIds: (Uint
|
||||
return memo(instanceId, (stashIds: (Uint8Array | string)[]): Observable<DeriveStakingKeys[]> =>
|
||||
stashIds.length
|
||||
? api.query.session.queuedKeys().pipe(
|
||||
switchMap((queuedKeys): Observable<[Vec<ITuple<[AccountId, NodeRuntimeSessionKeys]>>, Option<NodeRuntimeSessionKeys>[]]> =>
|
||||
switchMap((queuedKeys) =>
|
||||
combineLatest([
|
||||
of(queuedKeys),
|
||||
api.consts.session?.dedupKeyPrefix
|
||||
|
||||
+17
-17
@@ -20,29 +20,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api-augment": "8.1.1",
|
||||
"@polkadot/api-base": "8.1.1",
|
||||
"@polkadot/api-derive": "8.1.1",
|
||||
"@polkadot/keyring": "^9.0.1",
|
||||
"@polkadot/rpc-augment": "8.1.1",
|
||||
"@polkadot/rpc-core": "8.1.1",
|
||||
"@polkadot/rpc-provider": "8.1.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-augment": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/types-create": "8.1.1",
|
||||
"@polkadot/types-known": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"@polkadot/api-augment": "8.3.2",
|
||||
"@polkadot/api-base": "8.3.2",
|
||||
"@polkadot/api-derive": "8.3.2",
|
||||
"@polkadot/keyring": "^9.1.1",
|
||||
"@polkadot/rpc-augment": "8.3.2",
|
||||
"@polkadot/rpc-core": "8.3.2",
|
||||
"@polkadot/rpc-provider": "8.3.2",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-augment": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/types-create": "8.3.2",
|
||||
"@polkadot/types-known": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1",
|
||||
"@polkadot/util-crypto": "^9.1.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "8.1.1",
|
||||
"@polkadot/types-support": "8.1.1"
|
||||
"@polkadot/api-augment": "8.3.2",
|
||||
"@polkadot/types-support": "8.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,9 +33,9 @@ async function derive (api: ApiPromise): Promise<void> {
|
||||
console.log('current author:', header.author);
|
||||
});
|
||||
|
||||
const fees = await api.derive.balances.fees();
|
||||
const info = await api.derive.balances.account('0x1234');
|
||||
|
||||
console.log('fees', fees);
|
||||
console.log('info', info);
|
||||
}
|
||||
|
||||
function errors (api: ApiPromise): void {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -119,7 +119,8 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
if (blockHash || isString(optionsOrHash) || isU8a(optionsOrHash)) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||
return decorateMethod(
|
||||
(): Observable<RuntimeDispatchInfo> => api.rpc.payment.queryInfo(this.toHex(), blockHash || optionsOrHash as string)
|
||||
(): Observable<RuntimeDispatchInfo> =>
|
||||
api.rpc.payment.queryInfo(this.toHex(), blockHash || optionsOrHash as string)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -136,9 +137,11 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
const eraOptions = makeEraOptions(api, this.registry, allOptions, signingInfo);
|
||||
const signOptions = makeSignOptions(api, eraOptions, {});
|
||||
|
||||
this.signFake(address, signOptions);
|
||||
|
||||
return api.rpc.payment.queryInfo(this.toHex());
|
||||
return api.rpc.payment.queryInfo(
|
||||
this.isSigned
|
||||
? api.tx(this).signFake(address, signOptions).toHex()
|
||||
: this.signFake(address, signOptions).toHex()
|
||||
);
|
||||
})
|
||||
)
|
||||
)();
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/rpc-core": "8.1.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
"@polkadot/rpc-core": "8.3.2",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/rpc-augment": "8.1.1",
|
||||
"@polkadot/rpc-provider": "8.1.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/rpc-augment": "8.3.2",
|
||||
"@polkadot/rpc-provider": "8.3.2",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^9.0.1",
|
||||
"@polkadot/rpc-augment": "8.1.1"
|
||||
"@polkadot/keyring": "^9.1.1",
|
||||
"@polkadot/rpc-augment": "8.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -20,21 +20,21 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/keyring": "^9.0.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-support": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"@polkadot/x-fetch": "^9.0.1",
|
||||
"@polkadot/x-global": "^9.0.1",
|
||||
"@polkadot/x-ws": "^9.0.1",
|
||||
"@substrate/connect": "0.7.2",
|
||||
"@polkadot/keyring": "^9.1.1",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-support": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1",
|
||||
"@polkadot/util-crypto": "^9.1.1",
|
||||
"@polkadot/x-fetch": "^9.1.1",
|
||||
"@polkadot/x-global": "^9.1.1",
|
||||
"@polkadot/x-ws": "^9.1.1",
|
||||
"@substrate/connect": "0.7.4",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"mock-socket": "^9.1.2",
|
||||
"mock-socket": "^9.1.3",
|
||||
"nock": "^13.2.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -155,7 +155,7 @@ const getFakeClient = () => {
|
||||
enum WellKnownChain {
|
||||
polkadot = 'polkadot',
|
||||
ksmcc3 = 'ksmcc3',
|
||||
rococo_v2_1 = 'rococo_v2_1',
|
||||
rococo_v2_2 = 'rococo_v2_2',
|
||||
westend2 = 'westend2'
|
||||
}
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ const TEST_WS_URL = 'ws://localhost-index.spec.ts:9977';
|
||||
let provider: WsProvider | null;
|
||||
let mock: Mock;
|
||||
|
||||
function createWs (requests: Request[], autoConnect = 1000, headers?: Record<string, string>): WsProvider {
|
||||
function createWs (requests: Request[], autoConnect = 1000, headers?: Record<string, string>, timeout?: number): WsProvider {
|
||||
mock = mockWs(requests, TEST_WS_URL);
|
||||
provider = new WsProvider(TEST_WS_URL, autoConnect, headers);
|
||||
provider = new WsProvider(TEST_WS_URL, autoConnect, headers, timeout);
|
||||
|
||||
return provider;
|
||||
}
|
||||
@@ -40,6 +40,13 @@ describe('Ws', (): void => {
|
||||
it('allows you to initialize the provider with custom headers', () => {
|
||||
createWs([], 100, { foo: 'bar' });
|
||||
});
|
||||
|
||||
it('allows you to set custom timeout value for handlers', () => {
|
||||
const CUSTOM_TIMEOUT_S = 90;
|
||||
const CUSTOM_TIMEOUT_MS = CUSTOM_TIMEOUT_S * 1000;
|
||||
|
||||
createWs([], 100, { foo: 'bar' }, CUSTOM_TIMEOUT_MS);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Endpoint Parsing', (): void => {
|
||||
|
||||
@@ -42,8 +42,7 @@ const ALIASES: { [index: string]: string } = {
|
||||
|
||||
const RETRY_DELAY = 2_500;
|
||||
|
||||
const TIMEOUT_S = 60;
|
||||
const TIMEOUT_MS = TIMEOUT_S * 1000;
|
||||
const DEFAULT_TIMEOUT_MS = 60 * 1000;
|
||||
const TIMEOUT_INTERVAL = 5_000;
|
||||
|
||||
const MEGABYTE = 1024 * 1024;
|
||||
@@ -111,11 +110,14 @@ export class WsProvider implements ProviderInterface {
|
||||
|
||||
#websocket: WebSocket | null;
|
||||
|
||||
#timeout: number;
|
||||
|
||||
/**
|
||||
* @param {string | string[]} endpoint The endpoint url. Usually `ws://ip:9944` or `wss://ip:9944`, may provide an array of endpoint strings.
|
||||
* @param {boolean} autoConnect Whether to connect automatically or not.
|
||||
* @param {number} [timeout] Custom timeout value
|
||||
*/
|
||||
constructor (endpoint: string | string[] = defaults.WS_URL, autoConnectMs: number | false = RETRY_DELAY, headers: Record<string, string> = {}) {
|
||||
constructor (endpoint: string | string[] = defaults.WS_URL, autoConnectMs: number | false = RETRY_DELAY, headers: Record<string, string> = {}, timeout?: number) {
|
||||
const endpoints = Array.isArray(endpoint)
|
||||
? endpoint
|
||||
: [endpoint];
|
||||
@@ -137,6 +139,7 @@ export class WsProvider implements ProviderInterface {
|
||||
active: { requests: 0, subscriptions: 0 },
|
||||
total: { bytesRecv: 0, bytesSent: 0, cached: 0, requests: 0, subscriptions: 0, timeout: 0 }
|
||||
};
|
||||
this.#timeout = timeout || DEFAULT_TIMEOUT_MS;
|
||||
|
||||
if (autoConnectMs > 0) {
|
||||
this.connectWithRetry().catch((): void => {
|
||||
@@ -210,7 +213,7 @@ export class WsProvider implements ProviderInterface {
|
||||
this.#websocket.onopen = this.#onSocketOpen;
|
||||
|
||||
// timeout any handlers that have not had a response
|
||||
this.#timeoutId = setInterval(() => this.#timeout(), TIMEOUT_INTERVAL);
|
||||
this.#timeoutId = setInterval(() => this.#timeoutHandlers(), TIMEOUT_INTERVAL);
|
||||
} catch (error) {
|
||||
l.error(error);
|
||||
|
||||
@@ -557,16 +560,16 @@ export class WsProvider implements ProviderInterface {
|
||||
})).catch(l.error);
|
||||
};
|
||||
|
||||
#timeout = (): void => {
|
||||
#timeoutHandlers = (): void => {
|
||||
const now = Date.now();
|
||||
const ids = Object.keys(this.#handlers);
|
||||
|
||||
for (let i = 0; i < ids.length; i++) {
|
||||
const handler = this.#handlers[ids[i]];
|
||||
|
||||
if ((now - handler.start) > TIMEOUT_MS) {
|
||||
if ((now - handler.start) > this.#timeout) {
|
||||
try {
|
||||
handler.callback(new Error(`No response received from RPC endpoint in ${TIMEOUT_S}s`), undefined);
|
||||
handler.callback(new Error(`No response received from RPC endpoint in ${this.#timeout / 1000}s`), undefined);
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||
@@ -30,20 +30,20 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.17.9",
|
||||
"@babel/core": "^7.17.10",
|
||||
"@babel/register": "^7.17.7",
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/api": "8.1.1",
|
||||
"@polkadot/api-augment": "8.1.1",
|
||||
"@polkadot/rpc-augment": "8.1.1",
|
||||
"@polkadot/rpc-provider": "8.1.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-augment": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/types-create": "8.1.1",
|
||||
"@polkadot/types-support": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/x-ws": "^9.0.1",
|
||||
"@polkadot/api": "8.3.2",
|
||||
"@polkadot/api-augment": "8.3.2",
|
||||
"@polkadot/rpc-augment": "8.3.2",
|
||||
"@polkadot/rpc-provider": "8.3.2",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-augment": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/types-create": "8.3.2",
|
||||
"@polkadot/types-support": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1",
|
||||
"@polkadot/x-ws": "^9.1.1",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.4.1"
|
||||
|
||||
@@ -7,6 +7,7 @@ import path from 'path';
|
||||
import yargs from 'yargs';
|
||||
|
||||
import * as substrateDefs from '@polkadot/types/interfaces/definitions';
|
||||
import { WebSocket } from '@polkadot/x-ws';
|
||||
|
||||
import { generateInterfaceTypes } from './generate/interfaceRegistry';
|
||||
import { generateTsDef } from './generate/tsDef';
|
||||
@@ -32,13 +33,6 @@ export function main (): void {
|
||||
}
|
||||
}).argv as ArgV;
|
||||
|
||||
if (endpoint) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const metaHex = (require(path.join(process.cwd(), endpoint)) as Record<string, HexString>).result;
|
||||
|
||||
generateDefaultLookup(path.join(process.cwd(), input), metaHex);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const userDefs = require(path.join(process.cwd(), input, 'definitions.ts')) as Record<string, any>;
|
||||
const userKeys = Object.keys(userDefs);
|
||||
@@ -66,4 +60,39 @@ export function main (): void {
|
||||
|
||||
generateTsDef(allDefs, path.join(process.cwd(), input), pkg);
|
||||
generateInterfaceTypes(allDefs, path.join(process.cwd(), input, 'augment-types.ts'));
|
||||
|
||||
if (endpoint) {
|
||||
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
||||
try {
|
||||
const websocket = new WebSocket(endpoint);
|
||||
|
||||
websocket.onclose = (event: { code: number; reason: string }): void => {
|
||||
console.error(`disconnected, code: '${event.code}' reason: '${event.reason}'`);
|
||||
process.exit(1);
|
||||
};
|
||||
|
||||
websocket.onerror = (event: unknown): void => {
|
||||
console.error(event);
|
||||
process.exit(1);
|
||||
};
|
||||
|
||||
websocket.onopen = (): void => {
|
||||
console.log('connected');
|
||||
websocket.send('{"id":"1","jsonrpc":"2.0","method":"state_getMetadata","params":[]}');
|
||||
};
|
||||
|
||||
websocket.onmessage = (message: unknown): void => {
|
||||
generateDefaultLookup(path.join(process.cwd(), input), (JSON.parse((message as Record<string, string>).data) as Record<string, HexString>).result);
|
||||
process.exit(0);
|
||||
};
|
||||
} catch (error) {
|
||||
process.exit(1);
|
||||
}
|
||||
} else {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const metaHex = (require(path.join(process.cwd(), endpoint)) as Record<string, HexString>).result;
|
||||
|
||||
generateDefaultLookup(path.join(process.cwd(), input), metaHex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -20,16 +20,16 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
"@polkadot/util": "^9.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-augment": "8.1.1",
|
||||
"@polkadot/types-support": "8.1.1",
|
||||
"@polkadot/util-crypto": "^9.0.1"
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-augment": "8.3.2",
|
||||
"@polkadot/types-support": "8.3.2",
|
||||
"@polkadot/util-crypto": "^9.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,13 +35,43 @@ describe('U8aFixed', (): void => {
|
||||
new Uint8Array([0x02, 0x03, 0x00, 0x00])
|
||||
);
|
||||
});
|
||||
|
||||
it('constructs when passed Uint8Array is >= length', (): void => {
|
||||
expect(
|
||||
new (U8aFixed.with(32))(registry, new Uint8Array([0x00, 0x01, 0x02, 0x03])).toU8a()
|
||||
).toEqual(
|
||||
new Uint8Array([0x00, 0x01, 0x02, 0x03])
|
||||
);
|
||||
expect(
|
||||
new (U8aFixed.with(32))(registry, new Uint8Array([0x00, 0x01, 0x02, 0x03, 0x04, 0x05])).toU8a()
|
||||
).toEqual(
|
||||
new Uint8Array([0x00, 0x01, 0x02, 0x03])
|
||||
);
|
||||
});
|
||||
|
||||
it('constructs when passed string is === length', (): void => {
|
||||
expect(
|
||||
new (U8aFixed.with(32))(registry, '1234').toU8a()
|
||||
).toEqual(
|
||||
new Uint8Array([49, 50, 51, 52])
|
||||
);
|
||||
});
|
||||
|
||||
it('fails construction when passed string is > length', (): void => {
|
||||
expect(
|
||||
() => new (U8aFixed.with(32))(registry, '0x000102030405').toU8a()
|
||||
).toThrow(/Expected input with 4 bytes/);
|
||||
expect(
|
||||
() => new (U8aFixed.with(256))(registry, '1363HWTPzDrzAQ6ChFiMU6mP4b6jmQid2ae55JQcKtZnpLGv')
|
||||
).toThrow(/Expected input with 32 bytes/);
|
||||
});
|
||||
});
|
||||
|
||||
describe('utils', (): void => {
|
||||
let u8a: U8aFixed;
|
||||
|
||||
beforeEach((): void => {
|
||||
u8a = new U8aFixed(registry, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 32);
|
||||
u8a = new U8aFixed(registry, [1, 2, 3, 4], 32);
|
||||
});
|
||||
|
||||
it('limits the length', (): void => {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { AnyU8a, CodecClass, Registry, U8aBitLength } from '../types';
|
||||
|
||||
import { assert, u8aToU8a } from '@polkadot/util';
|
||||
import { assert, isU8a, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { Raw } from '../native/Raw';
|
||||
|
||||
@@ -16,7 +16,7 @@ function decodeU8aFixed (value: AnyU8a, bitLength: U8aBitLength): [AnyU8a, numbe
|
||||
return [new Uint8Array(byteLength), 0];
|
||||
}
|
||||
|
||||
assert(u8a.length >= byteLength, () => `Expected at least ${byteLength} bytes (${bitLength} bits), found ${u8a.length} bytes`);
|
||||
assert(isU8a(value) ? u8a.length >= byteLength : u8a.length === byteLength, () => `Expected input with ${byteLength} bytes (${bitLength} bits), found ${u8a.length} bytes`);
|
||||
|
||||
return [u8a.subarray(0, byteLength), byteLength];
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "8.1.1"
|
||||
"@polkadot/types": "8.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/networks": "^9.0.1",
|
||||
"@polkadot/types": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/types-create": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
"@polkadot/networks": "^9.1.1",
|
||||
"@polkadot/types": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/types-create": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -15,7 +15,7 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[6137912, 2028], [6561855, 2029], [7100891, 2030], [7468792, 9010], [7668600, 9030],
|
||||
[7812476, 9040], [8010981, 9050], [8073833, 9070], [8555825, 9080], [8945245, 9090],
|
||||
[9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150],
|
||||
[11006614, 9151], [11404482, 9160], [11601803, 9170], [12008022, 9180]
|
||||
[11006614, 9151], [11404482, 9160], [11601803, 9170], [12008022, 9180], [12405451, 9190]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
|
||||
@@ -13,7 +13,7 @@ const upgrades: ChainUpgradesRaw = [
|
||||
[5879822, 9031], [5896856, 9032], [5897316, 9033], [6117927, 9050], [6210274, 9070],
|
||||
[6379314, 9080], [6979141, 9090], [7568453, 9100], [7766394, 9111], [7911691, 9120],
|
||||
[7968866, 9121], [7982889, 9122], [8514322, 9130], [9091726, 9140], [9091774, 9150],
|
||||
[9406726, 9160], [9921066, 9170], [10007115, 9180]
|
||||
[9406726, 9160], [9921066, 9170], [10007115, 9180], [10480973, 9190], [10578091, 9200]
|
||||
];
|
||||
|
||||
export default upgrades;
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/util": "^9.0.1"
|
||||
"@polkadot/util": "^9.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -236,7 +236,7 @@
|
||||
{
|
||||
"name": "BlockWeights",
|
||||
"type": 162,
|
||||
"value": "0xb04971f80000000000204aa9d1010000300bca040000000001d0c4159258010000010098f73e5d010000010000000000000000300bca040000000001d04c68fccc0100000100204aa9d1010000010088526a74000000300bca0400000000000000",
|
||||
"value": "0xd0c45c580100000000204aa9d101000088f82405000000000178d7ba9158010000010098f73e5d01000001000000000000000088f824050000000001785f0dfccc0100000100204aa9d1010000010088526a7400000088f8240500000000000000",
|
||||
"docs": [
|
||||
" Block & extrinsics weights: base values and limits."
|
||||
]
|
||||
@@ -268,7 +268,7 @@
|
||||
{
|
||||
"name": "Version",
|
||||
"type": 169,
|
||||
"value": "0x186b7573616d61347061726974792d6b7573616d6102000000e62300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000b00000000",
|
||||
"value": "0x186b7573616d61347061726974792d6b7573616d6102000000f02300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000b00000000",
|
||||
"docs": [
|
||||
" Get the chain's current version."
|
||||
]
|
||||
@@ -850,7 +850,7 @@
|
||||
{
|
||||
"name": "WeightToFee",
|
||||
"type": 210,
|
||||
"value": "0x0400000000000000000000000000000000700379020001",
|
||||
"value": "0x0400000000000000000000000000000000fb4e4d020001",
|
||||
"docs": [
|
||||
" The polynomial that is applied in order to derive fee from weight."
|
||||
]
|
||||
@@ -4139,7 +4139,7 @@
|
||||
},
|
||||
"fallback": "0x00000000",
|
||||
"docs": [
|
||||
" Number of child-bounties per parent bounty.",
|
||||
" Number of child bounties per parent bounty.",
|
||||
" Map of parent bounty index to number of child bounties."
|
||||
]
|
||||
},
|
||||
@@ -4158,7 +4158,7 @@
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
" Child-bounties that have been added."
|
||||
" Child bounties that have been added."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -4209,7 +4209,7 @@
|
||||
"type": 4,
|
||||
"value": "0x64000000",
|
||||
"docs": [
|
||||
" Maximum number of child-bounties that can be added to a parent bounty."
|
||||
" Maximum number of child bounties that can be added to a parent bounty."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -4505,12 +4505,21 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SolutionImprovementThreshold",
|
||||
"name": "BetterSignedThreshold",
|
||||
"type": 33,
|
||||
"value": "0x00000000",
|
||||
"docs": [
|
||||
" The minimum amount of improvement to the solution score that defines a solution as",
|
||||
" \"better\" in the Signed phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BetterUnsignedThreshold",
|
||||
"type": 33,
|
||||
"value": "0x20a10700",
|
||||
"docs": [
|
||||
" The minimum amount of improvement to the solution score that defines a solution as",
|
||||
" \"better\" (in any phase)."
|
||||
" \"better\" in the Unsigned phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -4535,7 +4544,7 @@
|
||||
{
|
||||
"name": "MinerMaxWeight",
|
||||
"type": 8,
|
||||
"value": "0x207ba49957010000",
|
||||
"value": "0xa8125e3957010000",
|
||||
"docs": [
|
||||
" Maximum weight that the miner should consume.",
|
||||
"",
|
||||
@@ -4560,13 +4569,21 @@
|
||||
{
|
||||
"name": "SignedMaxWeight",
|
||||
"type": 8,
|
||||
"value": "0x207ba49957010000",
|
||||
"value": "0xa8125e3957010000",
|
||||
"docs": [
|
||||
" Maximum weight of a signed solution.",
|
||||
"",
|
||||
" This should probably be similar to [`Config::MinerMaxWeight`]."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SignedMaxRefunds",
|
||||
"type": 4,
|
||||
"value": "0x04000000",
|
||||
"docs": [
|
||||
" The maximum amount of unchecked solutions to refund the call fee for."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SignedRewardBase",
|
||||
"type": 6,
|
||||
|
||||
@@ -14485,12 +14485,8 @@
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "AccountId",
|
||||
"type": 0
|
||||
},
|
||||
{
|
||||
"name": "Balance",
|
||||
"type": 6
|
||||
"name": "T",
|
||||
"type": null
|
||||
}
|
||||
],
|
||||
"def": {
|
||||
@@ -14499,25 +14495,25 @@
|
||||
{
|
||||
"name": "stash",
|
||||
"type": 0,
|
||||
"typeName": "AccountId",
|
||||
"typeName": "T::AccountId",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "total",
|
||||
"type": 49,
|
||||
"typeName": "Balance",
|
||||
"typeName": "BalanceOf<T>",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "active",
|
||||
"type": 49,
|
||||
"typeName": "Balance",
|
||||
"typeName": "BalanceOf<T>",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "unlocking",
|
||||
"type": 219,
|
||||
"typeName": "BoundedVec<UnlockChunk<Balance>, MaxUnlockingChunks>",
|
||||
"typeName": "BoundedVec<UnlockChunk<BalanceOf<T>>, MaxUnlockingChunks>",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -21284,6 +21280,35 @@
|
||||
"- DbWrite: `Approvals`",
|
||||
"# </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "remove_approval",
|
||||
"fields": [
|
||||
{
|
||||
"name": "proposal_id",
|
||||
"type": 122,
|
||||
"typeName": "ProposalIndex",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 3,
|
||||
"docs": [
|
||||
"Force a previously approved proposal to be removed from the approval queue.",
|
||||
"The original deposit will no longer be returned.",
|
||||
"",
|
||||
"May only be called from `T::RejectOrigin`.",
|
||||
"- `proposal_id`: The index of a proposal",
|
||||
"",
|
||||
"# <weight>",
|
||||
"- Complexity: O(A) where `A` is the number of approvals",
|
||||
"- Db reads and writes: `Approvals`",
|
||||
"# </weight>",
|
||||
"",
|
||||
"Errors:",
|
||||
"- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,",
|
||||
"i.e., the proposal has not been approved. This could also mean the proposal does not",
|
||||
"exist altogether, thus there is no way it would have been approved in the first place."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -24547,12 +24572,7 @@
|
||||
"",
|
||||
"Parameters:",
|
||||
"- `account`: The recovered account you want to make a call on-behalf-of.",
|
||||
"- `call`: The call you want to make with the recovered account.",
|
||||
"",
|
||||
"# <weight>",
|
||||
"- The weight of the `call` + 10,000.",
|
||||
"- One storage lookup to check account is recovered by `who`. O(1)",
|
||||
"# </weight>"
|
||||
"- `call`: The call you want to make with the recovered account."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24580,12 +24600,7 @@
|
||||
"",
|
||||
"Parameters:",
|
||||
"- `lost`: The \"lost account\" to be recovered.",
|
||||
"- `rescuer`: The \"rescuer account\" which can call as the lost account.",
|
||||
"",
|
||||
"# <weight>",
|
||||
"- One storage write O(1)",
|
||||
"- One event",
|
||||
"# </weight>"
|
||||
"- `rescuer`: The \"rescuer account\" which can call as the lost account."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24627,18 +24642,7 @@
|
||||
" account can be recovered. Should be less than or equal to the length of the list of",
|
||||
" friends.",
|
||||
"- `delay_period`: The number of blocks after a recovery attempt is initialized that",
|
||||
" needs to pass before the account can be recovered.",
|
||||
"",
|
||||
"# <weight>",
|
||||
"- Key: F (len of friends)",
|
||||
"- One storage read to check that account is not already recoverable. O(1).",
|
||||
"- A check that the friends list is sorted and unique. O(F)",
|
||||
"- One currency reserve operation. O(X)",
|
||||
"- One storage write. O(1). Codec O(F).",
|
||||
"- One event.",
|
||||
"",
|
||||
"Total Complexity: O(F + X)",
|
||||
"# </weight>"
|
||||
" needs to pass before the account can be recovered."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24663,18 +24667,7 @@
|
||||
"",
|
||||
"Parameters:",
|
||||
"- `account`: The lost account that you want to recover. This account needs to be",
|
||||
" recoverable (i.e. have a recovery configuration).",
|
||||
"",
|
||||
"# <weight>",
|
||||
"- One storage read to check that account is recoverable. O(F)",
|
||||
"- One storage read to check that this recovery process hasn't already started. O(1)",
|
||||
"- One currency reserve operation. O(X)",
|
||||
"- One storage read to get the current block number. O(1)",
|
||||
"- One storage write. O(1).",
|
||||
"- One event.",
|
||||
"",
|
||||
"Total Complexity: O(F + X)",
|
||||
"# </weight>"
|
||||
" recoverable (i.e. have a recovery configuration)."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24706,19 +24699,7 @@
|
||||
"- `rescuer`: The account trying to rescue the lost account that you want to vouch for.",
|
||||
"",
|
||||
"The combination of these two parameters must point to an active recovery",
|
||||
"process.",
|
||||
"",
|
||||
"# <weight>",
|
||||
"Key: F (len of friends in config), V (len of vouching friends)",
|
||||
"- One storage read to get the recovery configuration. O(1), Codec O(F)",
|
||||
"- One storage read to get the active recovery process. O(1), Codec O(V)",
|
||||
"- One binary search to confirm caller is a friend. O(logF)",
|
||||
"- One binary search to confirm caller has not already vouched. O(logV)",
|
||||
"- One storage write. O(1), Codec O(V).",
|
||||
"- One event.",
|
||||
"",
|
||||
"Total Complexity: O(F + logF + V + logV)",
|
||||
"# </weight>"
|
||||
"process."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24741,18 +24722,7 @@
|
||||
"",
|
||||
"Parameters:",
|
||||
"- `account`: The lost account that you want to claim has been successfully recovered by",
|
||||
" you.",
|
||||
"",
|
||||
"# <weight>",
|
||||
"Key: F (len of friends in config), V (len of vouching friends)",
|
||||
"- One storage read to get the recovery configuration. O(1), Codec O(F)",
|
||||
"- One storage read to get the active recovery process. O(1), Codec O(V)",
|
||||
"- One storage read to get the current block number. O(1)",
|
||||
"- One storage write. O(1), Codec O(V).",
|
||||
"- One event.",
|
||||
"",
|
||||
"Total Complexity: O(F + V)",
|
||||
"# </weight>"
|
||||
" you."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24777,16 +24747,7 @@
|
||||
"recoverable account with an active recovery process for it.",
|
||||
"",
|
||||
"Parameters:",
|
||||
"- `rescuer`: The account trying to rescue this recoverable account.",
|
||||
"",
|
||||
"# <weight>",
|
||||
"Key: V (len of vouching friends)",
|
||||
"- One storage read/remove to get the active recovery process. O(1), Codec O(V)",
|
||||
"- One balance call to repatriate reserved. O(X)",
|
||||
"- One event.",
|
||||
"",
|
||||
"Total Complexity: O(V + X)",
|
||||
"# </weight>"
|
||||
"- `rescuer`: The account trying to rescue this recoverable account."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24804,17 +24765,7 @@
|
||||
"(`ConfigDepositBase` + `FriendDepositFactor` * #_of_friends)",
|
||||
"",
|
||||
"The dispatch origin for this call must be _Signed_ and must be a",
|
||||
"recoverable account (i.e. has a recovery configuration).",
|
||||
"",
|
||||
"# <weight>",
|
||||
"Key: F (len of friends)",
|
||||
"- One storage read to get the prefix iterator for active recoveries. O(1)",
|
||||
"- One storage read/remove to get the recovery configuration. O(1), Codec O(F)",
|
||||
"- One balance call to unreserved. O(X)",
|
||||
"- One event.",
|
||||
"",
|
||||
"Total Complexity: O(F + X)",
|
||||
"# </weight>"
|
||||
"recoverable account (i.e. has a recovery configuration)."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -24835,11 +24786,7 @@
|
||||
"be able to make calls on behalf of the recovered account.",
|
||||
"",
|
||||
"Parameters:",
|
||||
"- `account`: The recovered account you are able to call on-behalf-of.",
|
||||
"",
|
||||
"# <weight>",
|
||||
"- One storage mutation to check account is recovered by `who`. O(1)",
|
||||
"# </weight>"
|
||||
"- `account`: The recovered account you are able to call on-behalf-of."
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -26640,7 +26587,7 @@
|
||||
"parent bounty to child-bounty account, if parent bounty has enough",
|
||||
"funds, else the call fails.",
|
||||
"",
|
||||
"Upper bound to maximum number of active child-bounties that can be",
|
||||
"Upper bound to maximum number of active child bounties that can be",
|
||||
"added are managed via runtime trait config",
|
||||
"[`Config::MaxActiveChildBountyCount`].",
|
||||
"",
|
||||
@@ -26762,12 +26709,12 @@
|
||||
"the curator of the parent bounty, or any signed origin.",
|
||||
"",
|
||||
"For the origin other than T::RejectOrigin and the child-bounty",
|
||||
"curator, parent-bounty must be in active state, for this call to",
|
||||
"curator, parent bounty must be in active state, for this call to",
|
||||
"work. We allow child-bounty curator and T::RejectOrigin to execute",
|
||||
"this call irrespective of the parent-bounty state.",
|
||||
"this call irrespective of the parent bounty state.",
|
||||
"",
|
||||
"If this function is called by the `RejectOrigin` or the",
|
||||
"parent-bounty curator, we assume that the child-bounty curator is",
|
||||
"parent bounty curator, we assume that the child-bounty curator is",
|
||||
"malicious or inactive. As a result, child-bounty curator deposit is",
|
||||
"slashed.",
|
||||
"",
|
||||
@@ -26820,7 +26767,7 @@
|
||||
"",
|
||||
"The beneficiary will be able to claim the funds after a delay.",
|
||||
"",
|
||||
"The dispatch origin for this call must be the master curator or",
|
||||
"The dispatch origin for this call must be the parent curator or",
|
||||
"curator of this child-bounty.",
|
||||
"",
|
||||
"Parent bounty must be in active state, for this child-bounty call to",
|
||||
@@ -36042,6 +35989,14 @@
|
||||
"docs": [
|
||||
"Too many approvals in the queue."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ProposalNotApproved",
|
||||
"fields": [],
|
||||
"index": 3,
|
||||
"docs": [
|
||||
"Proposal has not been approved."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -38636,7 +38591,7 @@
|
||||
"fields": [],
|
||||
"index": 9,
|
||||
"docs": [
|
||||
"The bounty cannot be closed because it has active child-bounties."
|
||||
"The bounty cannot be closed because it has active child bounties."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -38836,7 +38791,7 @@
|
||||
"fields": [],
|
||||
"index": 2,
|
||||
"docs": [
|
||||
"Number of child-bounties exceeds limit `MaxActiveChildBountyCount`."
|
||||
"Number of child bounties exceeds limit `MaxActiveChildBountyCount`."
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -39305,7 +39260,7 @@
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "reward",
|
||||
"name": "call_fee",
|
||||
"type": 6,
|
||||
"typeName": "Balance",
|
||||
"docs": []
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -236,7 +236,7 @@
|
||||
{
|
||||
"name": "BlockWeights",
|
||||
"type": 159,
|
||||
"value": "0xb0fc6d0c0100000000204aa9d10100005844f0040000000001a88bef9158010000010098f73e5d0100000100000000000000005844f0040000000001a81342fccc0100000100204aa9d1010000010088526a740000005844f00400000000000000",
|
||||
"value": "0x588bc0460100000000204aa9d1010000603b14050000000001a094cb9158010000010098f73e5d010000010000000000000000603b14050000000001a01c1efccc0100000100204aa9d1010000010088526a74000000603b140500000000000000",
|
||||
"docs": [
|
||||
" Block & extrinsics weights: base values and limits."
|
||||
]
|
||||
@@ -268,7 +268,7 @@
|
||||
{
|
||||
"name": "Version",
|
||||
"type": 166,
|
||||
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f7400000000e62300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000c00000000",
|
||||
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f7400000000f02300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000c00000000",
|
||||
"docs": [
|
||||
" Get the chain's current version."
|
||||
]
|
||||
@@ -975,7 +975,7 @@
|
||||
{
|
||||
"name": "WeightToFee",
|
||||
"type": 463,
|
||||
"value": "0x040000000000000000000000000000000028a031070001",
|
||||
"value": "0x04000000000000000000000000000000007baffe060001",
|
||||
"docs": [
|
||||
" The polynomial that is applied in order to derive fee from weight."
|
||||
]
|
||||
@@ -3698,7 +3698,7 @@
|
||||
},
|
||||
"fallback": "0x00000000",
|
||||
"docs": [
|
||||
" Number of child-bounties per parent bounty.",
|
||||
" Number of child bounties per parent bounty.",
|
||||
" Map of parent bounty index to number of child bounties."
|
||||
]
|
||||
},
|
||||
@@ -3717,7 +3717,7 @@
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
" Child-bounties that have been added."
|
||||
" Child bounties that have been added."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -3768,7 +3768,7 @@
|
||||
"type": 4,
|
||||
"value": "0x64000000",
|
||||
"docs": [
|
||||
" Maximum number of child-bounties that can be added to a parent bounty."
|
||||
" Maximum number of child bounties that can be added to a parent bounty."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -4064,12 +4064,21 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SolutionImprovementThreshold",
|
||||
"name": "BetterSignedThreshold",
|
||||
"type": 40,
|
||||
"value": "0x00000000",
|
||||
"docs": [
|
||||
" The minimum amount of improvement to the solution score that defines a solution as",
|
||||
" \"better\" in the Signed phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BetterUnsignedThreshold",
|
||||
"type": 40,
|
||||
"value": "0x20a10700",
|
||||
"docs": [
|
||||
" The minimum amount of improvement to the solution score that defines a solution as",
|
||||
" \"better\" (in any phase)."
|
||||
" \"better\" in the Unsigned phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -4094,7 +4103,7 @@
|
||||
{
|
||||
"name": "MinerMaxWeight",
|
||||
"type": 8,
|
||||
"value": "0xf88e818557010000",
|
||||
"value": "0x48090b4b57010000",
|
||||
"docs": [
|
||||
" Maximum weight that the miner should consume.",
|
||||
"",
|
||||
@@ -4119,13 +4128,21 @@
|
||||
{
|
||||
"name": "SignedMaxWeight",
|
||||
"type": 8,
|
||||
"value": "0xf88e818557010000",
|
||||
"value": "0x48090b4b57010000",
|
||||
"docs": [
|
||||
" Maximum weight of a signed solution.",
|
||||
"",
|
||||
" This should probably be similar to [`Config::MinerMaxWeight`]."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SignedMaxRefunds",
|
||||
"type": 4,
|
||||
"value": "0x04000000",
|
||||
"docs": [
|
||||
" The maximum amount of unchecked solutions to refund the call fee for."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SignedRewardBase",
|
||||
"type": 6,
|
||||
|
||||
@@ -17851,6 +17851,35 @@
|
||||
"- DbWrite: `Approvals`",
|
||||
"# </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "remove_approval",
|
||||
"fields": [
|
||||
{
|
||||
"name": "proposal_id",
|
||||
"type": 119,
|
||||
"typeName": "ProposalIndex",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 3,
|
||||
"docs": [
|
||||
"Force a previously approved proposal to be removed from the approval queue.",
|
||||
"The original deposit will no longer be returned.",
|
||||
"",
|
||||
"May only be called from `T::RejectOrigin`.",
|
||||
"- `proposal_id`: The index of a proposal",
|
||||
"",
|
||||
"# <weight>",
|
||||
"- Complexity: O(A) where `A` is the number of approvals",
|
||||
"- Db reads and writes: `Approvals`",
|
||||
"# </weight>",
|
||||
"",
|
||||
"Errors:",
|
||||
"- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,",
|
||||
"i.e., the proposal has not been approved. This could also mean the proposal does not",
|
||||
"exist altogether, thus there is no way it would have been approved in the first place."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -21917,7 +21946,7 @@
|
||||
"parent bounty to child-bounty account, if parent bounty has enough",
|
||||
"funds, else the call fails.",
|
||||
"",
|
||||
"Upper bound to maximum number of active child-bounties that can be",
|
||||
"Upper bound to maximum number of active child bounties that can be",
|
||||
"added are managed via runtime trait config",
|
||||
"[`Config::MaxActiveChildBountyCount`].",
|
||||
"",
|
||||
@@ -22039,12 +22068,12 @@
|
||||
"the curator of the parent bounty, or any signed origin.",
|
||||
"",
|
||||
"For the origin other than T::RejectOrigin and the child-bounty",
|
||||
"curator, parent-bounty must be in active state, for this call to",
|
||||
"curator, parent bounty must be in active state, for this call to",
|
||||
"work. We allow child-bounty curator and T::RejectOrigin to execute",
|
||||
"this call irrespective of the parent-bounty state.",
|
||||
"this call irrespective of the parent bounty state.",
|
||||
"",
|
||||
"If this function is called by the `RejectOrigin` or the",
|
||||
"parent-bounty curator, we assume that the child-bounty curator is",
|
||||
"parent bounty curator, we assume that the child-bounty curator is",
|
||||
"malicious or inactive. As a result, child-bounty curator deposit is",
|
||||
"slashed.",
|
||||
"",
|
||||
@@ -22097,7 +22126,7 @@
|
||||
"",
|
||||
"The beneficiary will be able to claim the funds after a delay.",
|
||||
"",
|
||||
"The dispatch origin for this call must be the master curator or",
|
||||
"The dispatch origin for this call must be the parent curator or",
|
||||
"curator of this child-bounty.",
|
||||
"",
|
||||
"Parent bounty must be in active state, for this child-bounty call to",
|
||||
@@ -31111,12 +31140,8 @@
|
||||
],
|
||||
"params": [
|
||||
{
|
||||
"name": "AccountId",
|
||||
"type": 0
|
||||
},
|
||||
{
|
||||
"name": "Balance",
|
||||
"type": 6
|
||||
"name": "T",
|
||||
"type": null
|
||||
}
|
||||
],
|
||||
"def": {
|
||||
@@ -31125,25 +31150,25 @@
|
||||
{
|
||||
"name": "stash",
|
||||
"type": 0,
|
||||
"typeName": "AccountId",
|
||||
"typeName": "T::AccountId",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "total",
|
||||
"type": 56,
|
||||
"typeName": "Balance",
|
||||
"typeName": "BalanceOf<T>",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "active",
|
||||
"type": 56,
|
||||
"typeName": "Balance",
|
||||
"typeName": "BalanceOf<T>",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "unlocking",
|
||||
"type": 469,
|
||||
"typeName": "BoundedVec<UnlockChunk<Balance>, MaxUnlockingChunks>",
|
||||
"typeName": "BoundedVec<UnlockChunk<BalanceOf<T>>, MaxUnlockingChunks>",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -34284,6 +34309,14 @@
|
||||
"docs": [
|
||||
"Too many approvals in the queue."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ProposalNotApproved",
|
||||
"fields": [],
|
||||
"index": 3,
|
||||
"docs": [
|
||||
"Proposal has not been approved."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -35809,7 +35842,7 @@
|
||||
"fields": [],
|
||||
"index": 9,
|
||||
"docs": [
|
||||
"The bounty cannot be closed because it has active child-bounties."
|
||||
"The bounty cannot be closed because it has active child bounties."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -36009,7 +36042,7 @@
|
||||
"fields": [],
|
||||
"index": 2,
|
||||
"docs": [
|
||||
"Number of child-bounties exceeds limit `MaxActiveChildBountyCount`."
|
||||
"Number of child bounties exceeds limit `MaxActiveChildBountyCount`."
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -36478,7 +36511,7 @@
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "reward",
|
||||
"name": "call_fee",
|
||||
"type": 6,
|
||||
"typeName": "Balance",
|
||||
"docs": []
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "8.1.1",
|
||||
"version": "8.3.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
"@polkadot/keyring": "^9.0.1",
|
||||
"@polkadot/types-augment": "8.1.1",
|
||||
"@polkadot/types-codec": "8.1.1",
|
||||
"@polkadot/types-create": "8.1.1",
|
||||
"@polkadot/util": "^9.0.1",
|
||||
"@polkadot/util-crypto": "^9.0.1",
|
||||
"@polkadot/keyring": "^9.1.1",
|
||||
"@polkadot/types-augment": "8.3.2",
|
||||
"@polkadot/types-codec": "8.3.2",
|
||||
"@polkadot/types-create": "8.3.2",
|
||||
"@polkadot/util": "^9.1.1",
|
||||
"@polkadot/util-crypto": "^9.1.1",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^9.0.1",
|
||||
"@polkadot/types-support": "8.1.1"
|
||||
"@polkadot/keyring": "^9.1.1",
|
||||
"@polkadot/types-support": "8.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ export class GenericMultiAddress extends Enum {
|
||||
const { inner, outer = [] } = this.inner.inspect();
|
||||
|
||||
return {
|
||||
inner: inner,
|
||||
inner,
|
||||
outer: [new Uint8Array([this.index]), ...outer]
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ const BITVEC_NS_MSB = ['bitvec::order::Msb0', 'BitOrderMsb0'];
|
||||
const BITVEC_NS = [...BITVEC_NS_LSB, ...BITVEC_NS_MSB];
|
||||
|
||||
// These we never use these as top-level names, they are wrappers
|
||||
const WRAPPERS = ['BoundedBTreeMap', 'BoundedVec', 'Box', 'BTreeMap', 'Cow', 'Result', 'Option', 'WeakBoundedVec', 'WrapperKeepOpaque', 'WrapperOpaque'];
|
||||
const WRAPPERS = ['BoundedBTreeMap', 'BoundedBTreeSet', 'BoundedVec', 'Box', 'BTreeMap', 'BTreeSet', 'Cow', 'Result', 'Option', 'WeakBoundedVec', 'WrapperKeepOpaque', 'WrapperOpaque'];
|
||||
|
||||
// These are reserved and/or conflicts with built-in Codec or JS definitions
|
||||
const RESERVED = ['entries', 'hash', 'keys', 'new', 'size'];
|
||||
@@ -557,6 +557,11 @@ export class PortableRegistry extends Struct implements ILookup {
|
||||
info: TypeDefInfo.BTreeMap,
|
||||
sub: params.map(({ type }) => this.#createSiDef(type.unwrap()))
|
||||
});
|
||||
} else if (path.length === 1 && pathFirst === 'BTreeSet') {
|
||||
return withTypeString(this.registry, {
|
||||
info: TypeDefInfo.BTreeSet,
|
||||
sub: this.#createSiDef(params[0].type.unwrap())
|
||||
});
|
||||
} else if (['Range', 'RangeInclusive'].includes(pathFirst)) {
|
||||
return withTypeString(this.registry, {
|
||||
info: pathFirst === 'Range'
|
||||
|
||||
@@ -289,7 +289,7 @@ function convertExtrinsic (registry: Registry, { signedExtensions, version }: Ex
|
||||
type: 0 // we don't map the fields at all
|
||||
})),
|
||||
type: 0, // Map to extrinsic like in v14?
|
||||
version: version
|
||||
version
|
||||
}]);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '8.1.1' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '8.3.2' };
|
||||
|
||||
Reference in New Issue
Block a user