Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8475130a22 | ||
|
|
a7e824ff09 | ||
|
|
9d5fb2bf72 | ||
|
|
2cf0e306dd | ||
|
|
72d5330727 | ||
|
|
1c3bdda08f | ||
|
|
668ad3dfe5 | ||
|
|
651afaeb9a | ||
|
|
5036aa9ef4 | ||
|
|
3598cc25f4 | ||
|
|
987a2ec2df | ||
|
|
389c4c5255 | ||
|
|
493287cedf | ||
|
|
fe52dc8006 | ||
|
|
f26008ab95 | ||
|
|
0952720237 | ||
|
|
04058fe95e | ||
|
|
eb96371e59 | ||
|
|
a313fe13e7 | ||
|
|
243c263485 | ||
|
|
311d8b792c |
@@ -34,3 +34,4 @@
|
|||||||
6.0.3
|
6.0.3
|
||||||
6.0.4
|
6.0.4
|
||||||
6.0.5
|
6.0.5
|
||||||
|
6.1.2
|
||||||
@@ -1,7 +1,39 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 6.2.1 Oct 4, 2021
|
||||||
|
|
||||||
|
Upgrade priority: Low. Maintenance updates.
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Cater for new asset fee payment extension (Thanks to https://github.com/apopiak)
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Extend error messages for malformed `queryMulti` inputs
|
||||||
|
- Correctly handle non-map queries passed to `queryMulti` in map form
|
||||||
|
- Use new metadata v14 lookup type in derive results
|
||||||
|
- Adjust definitions to infer TS types in `.multi` queries
|
||||||
|
- Fix TS lookup enum generation with nested Option & Tuple
|
||||||
|
- Bump static metadata for latest Substrate, Polkadot & Kusama
|
||||||
|
|
||||||
|
|
||||||
|
## 6.1.2 Sep 29, 2021
|
||||||
|
|
||||||
|
Upgrade priority: Low. Recommended for 6.x users using historic queries.
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Fix `.at` queries/decoration for pre-V13 metadata
|
||||||
|
- Added `BridgeMessageId` & `SpecVersion` types for bridges
|
||||||
|
- Added `WrapperOpaque` encoding/decoding (as per latest Substrate)
|
||||||
|
- Bump static metadata for latest Substrate, Polkadot & Kusama
|
||||||
|
|
||||||
|
|
||||||
## 6.1.1 Sep 27, 2021
|
## 6.1.1 Sep 27, 2021
|
||||||
|
|
||||||
|
Upgrade priority: Low. Minor maintenance changes from the 6.0.x versions.
|
||||||
|
|
||||||
Contributed:
|
Contributed:
|
||||||
|
|
||||||
- Adjust bridges `OutboundLaneData` type (Thanks to https://github.com/HackFisher)
|
- Adjust bridges `OutboundLaneData` type (Thanks to https://github.com/HackFisher)
|
||||||
|
|||||||
+1
-1
@@ -35,6 +35,6 @@
|
|||||||
"@types/jest": "^27.0.2",
|
"@types/jest": "^27.0.2",
|
||||||
"copyfiles": "^2.4.1"
|
"copyfiles": "^2.4.1"
|
||||||
},
|
},
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"packageManager": "yarn@3.0.1"
|
"packageManager": "yarn@3.0.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api-contract",
|
"name": "@polkadot/api-contract",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.15.4",
|
"@babel/runtime": "^7.15.4",
|
||||||
"@polkadot/api": "6.1.1",
|
"@polkadot/api": "6.2.1",
|
||||||
"@polkadot/types": "6.1.1",
|
"@polkadot/types": "6.2.1",
|
||||||
"@polkadot/util": "^7.4.1",
|
"@polkadot/util": "^7.4.1",
|
||||||
"rxjs": "^7.3.0"
|
"rxjs": "^7.3.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', version: '6.1.1' };
|
export const packageInfo = { name: '@polkadot/api-contract', version: '6.2.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api-derive",
|
"name": "@polkadot/api-derive",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -20,15 +20,15 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.15.4",
|
"@babel/runtime": "^7.15.4",
|
||||||
"@polkadot/api": "6.1.1",
|
"@polkadot/api": "6.2.1",
|
||||||
"@polkadot/rpc-core": "6.1.1",
|
"@polkadot/rpc-core": "6.2.1",
|
||||||
"@polkadot/types": "6.1.1",
|
"@polkadot/types": "6.2.1",
|
||||||
"@polkadot/util": "^7.4.1",
|
"@polkadot/util": "^7.4.1",
|
||||||
"@polkadot/util-crypto": "^7.4.1",
|
"@polkadot/util-crypto": "^7.4.1",
|
||||||
"rxjs": "^7.3.0"
|
"rxjs": "^7.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^7.4.1",
|
"@polkadot/keyring": "^7.4.1",
|
||||||
"@polkadot/rpc-provider": "6.1.1"
|
"@polkadot/rpc-provider": "6.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Data, Option } from '@polkadot/types';
|
import type { Data, Option } from '@polkadot/types';
|
||||||
import type { AccountId, IdentityInfoAdditional, Registration } from '@polkadot/types/interfaces';
|
import type { AccountId } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletIdentityIdentityInfo, PalletIdentityRegistration } from '@polkadot/types/lookup';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveAccountRegistration, DeriveHasIdentity } from '../types';
|
import type { DeriveAccountRegistration, DeriveHasIdentity } from '../types';
|
||||||
|
|
||||||
@@ -14,6 +15,8 @@ import { isHex, u8aToString } from '@polkadot/util';
|
|||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
|
type IdentityInfoAdditional = PalletIdentityIdentityInfo['additional'][0];
|
||||||
|
|
||||||
const UNDEF_HEX = { toHex: () => undefined };
|
const UNDEF_HEX = { toHex: () => undefined };
|
||||||
|
|
||||||
function dataAsString (data: Data): string | undefined {
|
function dataAsString (data: Data): string | undefined {
|
||||||
@@ -37,7 +40,7 @@ function extractOther (additional: IdentityInfoAdditional[]): Record<string, str
|
|||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function extractIdentity (identityOfOpt?: Option<Registration>, superOf?: [AccountId, Data]): DeriveAccountRegistration {
|
function extractIdentity (identityOfOpt?: Option<PalletIdentityRegistration>, superOf?: [AccountId, Data]): DeriveAccountRegistration {
|
||||||
if (!identityOfOpt?.isSome) {
|
if (!identityOfOpt?.isSome) {
|
||||||
return { judgements: [] };
|
return { judgements: [] };
|
||||||
}
|
}
|
||||||
@@ -61,7 +64,7 @@ function extractIdentity (identityOfOpt?: Option<Registration>, superOf?: [Accou
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getParent (api: ApiInterfaceRx, identityOfOpt: Option<Registration> | undefined, superOfOpt: Option<ITuple<[AccountId, Data]>> | undefined): Observable<[Option<Registration> | undefined, [AccountId, Data] | undefined]> {
|
function getParent (api: ApiInterfaceRx, identityOfOpt: Option<PalletIdentityRegistration> | undefined, superOfOpt: Option<ITuple<[AccountId, Data]>> | undefined): Observable<[Option<PalletIdentityRegistration> | undefined, [AccountId, Data] | undefined]> {
|
||||||
if (identityOfOpt?.isSome) {
|
if (identityOfOpt?.isSome) {
|
||||||
// this identity has something set
|
// this identity has something set
|
||||||
return of([identityOfOpt, undefined]);
|
return of([identityOfOpt, undefined]);
|
||||||
@@ -70,7 +73,7 @@ function getParent (api: ApiInterfaceRx, identityOfOpt: Option<Registration> | u
|
|||||||
|
|
||||||
// we have a super
|
// we have a super
|
||||||
return combineLatest([
|
return combineLatest([
|
||||||
api.query.identity.identityOf<Option<Registration>>(superOf[0]),
|
api.query.identity.identityOf(superOf[0]),
|
||||||
of(superOf)
|
of(superOf)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -79,9 +82,9 @@ function getParent (api: ApiInterfaceRx, identityOfOpt: Option<Registration> | u
|
|||||||
return of([undefined, undefined]);
|
return of([undefined, undefined]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBase (api: ApiInterfaceRx, accountId?: AccountId | Uint8Array | string): Observable<[Option<Registration> | undefined, Option<ITuple<[AccountId, Data]>> | undefined]> {
|
function getBase (api: ApiInterfaceRx, accountId?: AccountId | Uint8Array | string): Observable<[Option<PalletIdentityRegistration> | undefined, Option<ITuple<[AccountId, Data]>> | undefined]> {
|
||||||
return accountId && api.query.identity?.identityOf
|
return accountId && api.query.identity?.identityOf
|
||||||
? api.queryMulti<[Option<Registration>, Option<ITuple<[AccountId, Data]>>]>([
|
? api.queryMulti<[Option<PalletIdentityRegistration>, Option<ITuple<[AccountId, Data]>>]>([
|
||||||
[api.query.identity.identityOf, accountId],
|
[api.query.identity.identityOf, accountId],
|
||||||
[api.query.identity.superOf, accountId]
|
[api.query.identity.superOf, accountId]
|
||||||
])
|
])
|
||||||
@@ -113,8 +116,8 @@ export function hasIdentityMulti (instanceId: string, api: ApiInterfaceRx): (acc
|
|||||||
return memo(instanceId, (accountIds: (AccountId | Uint8Array | string)[]): Observable<DeriveHasIdentity[]> =>
|
return memo(instanceId, (accountIds: (AccountId | Uint8Array | string)[]): Observable<DeriveHasIdentity[]> =>
|
||||||
api.query.identity?.identityOf
|
api.query.identity?.identityOf
|
||||||
? combineLatest([
|
? combineLatest([
|
||||||
api.query.identity.identityOf.multi<Option<Registration>>(accountIds),
|
api.query.identity.identityOf.multi(accountIds),
|
||||||
api.query.identity.superOf.multi<Option<ITuple<[AccountId, Data]>>>(accountIds)
|
api.query.identity.superOf.multi(accountIds)
|
||||||
]).pipe(
|
]).pipe(
|
||||||
map(([identities, supers]) =>
|
map(([identities, supers]) =>
|
||||||
identities.map((identityOfOpt, index): DeriveHasIdentity => {
|
identities.map((identityOfOpt, index): DeriveHasIdentity => {
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx, QueryableStorageMultiArg } from '@polkadot/api/types';
|
import type { ApiInterfaceRx, QueryableStorageMultiArg } from '@polkadot/api/types';
|
||||||
import type { Option, Vec } from '@polkadot/types';
|
import type { Option, Vec } from '@polkadot/types';
|
||||||
import type { AccountId, AccountIndex, Address, Balance, BalanceLock, BalanceLockTo212, BlockNumber, VestingInfo, VestingSchedule } from '@polkadot/types/interfaces';
|
import type { AccountId, AccountIndex, Address, Balance, BalanceLockTo212, BlockNumber, VestingSchedule } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletBalancesBalanceLock, PalletVestingVestingInfo } from '@polkadot/types/lookup';
|
||||||
import type { DeriveBalancesAccount, DeriveBalancesAccountData, DeriveBalancesAll, DeriveBalancesAllAccountData } from '../types';
|
import type { DeriveBalancesAccount, DeriveBalancesAccountData, DeriveBalancesAll, DeriveBalancesAllAccountData } from '../types';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
@@ -13,15 +14,15 @@ import { BN, bnMax, isFunction } from '@polkadot/util';
|
|||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
type BalanceLocksEntry = Vec<BalanceLock | BalanceLockTo212>;
|
type BalanceLocksEntry = Vec<PalletBalancesBalanceLock | BalanceLockTo212>;
|
||||||
type BalanceLocks = BalanceLocksEntry[];
|
type BalanceLocks = BalanceLocksEntry[];
|
||||||
type ResultBalance = [VestingInfo | null, ((BalanceLock | BalanceLockTo212)[])[]];
|
type ResultBalance = [PalletVestingVestingInfo | null, ((PalletBalancesBalanceLock | BalanceLockTo212)[])[]];
|
||||||
type Result = [DeriveBalancesAccount, BlockNumber, ResultBalance];
|
type Result = [DeriveBalancesAccount, BlockNumber, ResultBalance];
|
||||||
|
|
||||||
interface AllLocked {
|
interface AllLocked {
|
||||||
allLocked: boolean,
|
allLocked: boolean,
|
||||||
lockedBalance: Balance,
|
lockedBalance: Balance,
|
||||||
lockedBreakdown: (BalanceLock | BalanceLockTo212)[],
|
lockedBreakdown: (PalletBalancesBalanceLock | BalanceLockTo212)[],
|
||||||
vestingLocked: Balance
|
vestingLocked: Balance
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,9 +34,9 @@ type DeriveCustomLocks = ApiInterfaceRx['derive'] & {
|
|||||||
|
|
||||||
const VESTING_ID = '0x76657374696e6720';
|
const VESTING_ID = '0x76657374696e6720';
|
||||||
|
|
||||||
function calcLocked (api: ApiInterfaceRx, bestNumber: BlockNumber, locks: (BalanceLock | BalanceLockTo212)[]): AllLocked {
|
function calcLocked (api: ApiInterfaceRx, bestNumber: BlockNumber, locks: (PalletBalancesBalanceLock | BalanceLockTo212)[]): AllLocked {
|
||||||
let lockedBalance = api.registry.createType('Balance');
|
let lockedBalance = api.registry.createType('Balance');
|
||||||
let lockedBreakdown: (BalanceLock | BalanceLockTo212)[] = [];
|
let lockedBreakdown: (PalletBalancesBalanceLock | BalanceLockTo212)[] = [];
|
||||||
let vestingLocked = api.registry.createType('Balance');
|
let vestingLocked = api.registry.createType('Balance');
|
||||||
let allLocked = false;
|
let allLocked = false;
|
||||||
|
|
||||||
@@ -56,7 +57,7 @@ function calcLocked (api: ApiInterfaceRx, bestNumber: BlockNumber, locks: (Balan
|
|||||||
return { allLocked, lockedBalance, lockedBreakdown, vestingLocked };
|
return { allLocked, lockedBalance, lockedBreakdown, vestingLocked };
|
||||||
}
|
}
|
||||||
|
|
||||||
function calcShared (api: ApiInterfaceRx, bestNumber: BlockNumber, data: DeriveBalancesAccountData, locks: (BalanceLock | BalanceLockTo212)[]): DeriveBalancesAllAccountData {
|
function calcShared (api: ApiInterfaceRx, bestNumber: BlockNumber, data: DeriveBalancesAccountData, locks: (PalletBalancesBalanceLock | BalanceLockTo212)[]): DeriveBalancesAllAccountData {
|
||||||
const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks);
|
const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -73,7 +74,7 @@ function calcBalances (api: ApiInterfaceRx, [data, bestNumber, [vesting, allLock
|
|||||||
// Calculate the vesting balances,
|
// Calculate the vesting balances,
|
||||||
// - offset = balance locked at startingBlock
|
// - offset = balance locked at startingBlock
|
||||||
// - perBlock is the unlock amount
|
// - perBlock is the unlock amount
|
||||||
const emptyVest = api.registry.createType('VestingInfo');
|
const emptyVest = api.registry.createType<PalletVestingVestingInfo>('VestingInfo');
|
||||||
const { locked: vestingTotal, perBlock, startingBlock } = vesting || emptyVest;
|
const { locked: vestingTotal, perBlock, startingBlock } = vesting || emptyVest;
|
||||||
const isStarted = bestNumber.gt(startingBlock);
|
const isStarted = bestNumber.gt(startingBlock);
|
||||||
const vestedNow = isStarted ? perBlock.mul(bestNumber.sub(startingBlock)) : new BN(0);
|
const vestedNow = isStarted ? perBlock.mul(bestNumber.sub(startingBlock)) : new BN(0);
|
||||||
@@ -96,7 +97,7 @@ function calcBalances (api: ApiInterfaceRx, [data, bestNumber, [vesting, allLock
|
|||||||
|
|
||||||
// old
|
// old
|
||||||
function queryOld (api: ApiInterfaceRx, accountId: AccountId): Observable<ResultBalance> {
|
function queryOld (api: ApiInterfaceRx, accountId: AccountId): Observable<ResultBalance> {
|
||||||
return api.queryMulti<[Vec<BalanceLock>, Option<VestingSchedule>]>([
|
return api.queryMulti<[Vec<PalletBalancesBalanceLock>, Option<VestingSchedule>]>([
|
||||||
[api.query.balances.locks, accountId],
|
[api.query.balances.locks, accountId],
|
||||||
[api.query.balances.vesting, accountId]
|
[api.query.balances.vesting, accountId]
|
||||||
]).pipe(
|
]).pipe(
|
||||||
@@ -106,7 +107,7 @@ function queryOld (api: ApiInterfaceRx, accountId: AccountId): Observable<Result
|
|||||||
if (optVesting.isSome) {
|
if (optVesting.isSome) {
|
||||||
const { offset: locked, perBlock, startingBlock } = optVesting.unwrap();
|
const { offset: locked, perBlock, startingBlock } = optVesting.unwrap();
|
||||||
|
|
||||||
vestingNew = api.registry.createType('VestingInfo', { locked, perBlock, startingBlock });
|
vestingNew = api.registry.createType<PalletVestingVestingInfo>('VestingInfo', { locked, perBlock, startingBlock });
|
||||||
}
|
}
|
||||||
|
|
||||||
return [vestingNew, [locks]];
|
return [vestingNew, [locks]];
|
||||||
@@ -126,20 +127,20 @@ function queryCurrent (api: ApiInterfaceRx, accountId: AccountId, balanceInstanc
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
api.query.vesting?.vesting
|
api.query.vesting?.vesting
|
||||||
? api.queryMulti<[Option<VestingInfo>, ...BalanceLocks]>([[api.query.vesting.vesting, accountId], ...queries])
|
? api.queryMulti<[Option<PalletVestingVestingInfo>, ...BalanceLocks]>([[api.query.vesting.vesting, accountId], ...queries])
|
||||||
// TODO We need to check module instances here as well, not only the balances module
|
// TODO We need to check module instances here as well, not only the balances module
|
||||||
: queries.length
|
: queries.length
|
||||||
? api.queryMulti<[...(Vec<BalanceLock>)[]]>(queries).pipe(
|
? api.queryMulti<[...(Vec<PalletBalancesBalanceLock>)[]]>(queries).pipe(
|
||||||
map((r): [Option<VestingInfo>, ...BalanceLocks] => [api.registry.createType('Option<VestingInfo>'), ...r])
|
map((r): [Option<PalletVestingVestingInfo>, ...BalanceLocks] => [api.registry.createType('Option<VestingInfo>'), ...r])
|
||||||
)
|
)
|
||||||
: of([api.registry.createType('Option<VestingInfo>')] as [Option<VestingInfo>])
|
: of([api.registry.createType('Option<VestingInfo>')] as [Option<PalletVestingVestingInfo>])
|
||||||
).pipe(
|
).pipe(
|
||||||
map(([opt, ...locks]): ResultBalance => {
|
map(([opt, ...locks]): ResultBalance => {
|
||||||
let offset = -1;
|
let offset = -1;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
opt.unwrapOr(null),
|
opt.unwrapOr(null),
|
||||||
lockEmpty.map((e) => e ? api.registry.createType('Vec<BalanceLock>') : locks[++offset])
|
lockEmpty.map((e) => e ? api.registry.createType<Vec<PalletBalancesBalanceLock>>('Vec<BalanceLock>') : locks[++offset])
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { AccountId, Balance, BalanceLockTo212, BlockNumber, Index } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletBalancesBalanceLock } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
|
export interface DeriveBalancesAccountData {
|
||||||
|
freeBalance: Balance;
|
||||||
|
frozenFee: Balance;
|
||||||
|
frozenMisc: Balance;
|
||||||
|
reservedBalance: Balance;
|
||||||
|
votingBalance: Balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeriveBalancesAccount extends DeriveBalancesAccountData {
|
||||||
|
accountId: AccountId;
|
||||||
|
accountNonce: Index;
|
||||||
|
additional: DeriveBalancesAccountData[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeriveBalancesAllAccountData extends DeriveBalancesAccountData {
|
||||||
|
availableBalance: Balance;
|
||||||
|
lockedBalance: Balance;
|
||||||
|
lockedBreakdown: (PalletBalancesBalanceLock | BalanceLockTo212)[];
|
||||||
|
vestingLocked: Balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeriveBalancesAll extends DeriveBalancesAccount, DeriveBalancesAllAccountData {
|
||||||
|
additional: DeriveBalancesAllAccountData[];
|
||||||
|
isVesting: boolean;
|
||||||
|
vestedBalance: Balance;
|
||||||
|
vestedClaimable: Balance;
|
||||||
|
vestingEndBlock: BlockNumber;
|
||||||
|
vestingPerBlock: Balance;
|
||||||
|
vestingTotal: Balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DeriveBalancesMap = Record<string, DeriveBalancesAll>;
|
||||||
@@ -4,7 +4,8 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Bytes, Option } from '@polkadot/types';
|
import type { Bytes, Option } from '@polkadot/types';
|
||||||
import type { Bounty, BountyIndex, ProposalIndex } from '@polkadot/types/interfaces';
|
import type { BountyIndex, ProposalIndex } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletBountiesBounty } from '@polkadot/types/lookup';
|
||||||
import type { DeriveBounties, DeriveCollectiveProposal } from '../types';
|
import type { DeriveBounties, DeriveCollectiveProposal } from '../types';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
@@ -12,7 +13,7 @@ import { combineLatest, map, of, switchMap } from 'rxjs';
|
|||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
import { filterBountiesProposals } from './helpers/filterBountyProposals';
|
import { filterBountiesProposals } from './helpers/filterBountyProposals';
|
||||||
|
|
||||||
type Result = [Option<Bounty>[], Option<Bytes>[], BountyIndex[], DeriveCollectiveProposal[]];
|
type Result = [Option<PalletBountiesBounty>[], Option<Bytes>[], BountyIndex[], DeriveCollectiveProposal[]];
|
||||||
|
|
||||||
function parseResult ([maybeBounties, maybeDescriptions, ids, bountyProposals]: Result): DeriveBounties {
|
function parseResult ([maybeBounties, maybeDescriptions, ids, bountyProposals]: Result): DeriveBounties {
|
||||||
const bounties: DeriveBounties = [];
|
const bounties: DeriveBounties = [];
|
||||||
@@ -53,8 +54,8 @@ export function bounties (instanceId: string, api: ApiInterfaceRx): () => Observ
|
|||||||
const ids = keys.map(({ args: [id] }) => id);
|
const ids = keys.map(({ args: [id] }) => id);
|
||||||
|
|
||||||
return combineLatest([
|
return combineLatest([
|
||||||
bountyBase.bounties.multi<Option<Bounty>>(ids),
|
bountyBase.bounties.multi(ids),
|
||||||
bountyBase.bountyDescriptions.multi<Option<Bytes>>(ids),
|
bountyBase.bountyDescriptions.multi(ids),
|
||||||
of(ids),
|
of(ids),
|
||||||
of(filterBountiesProposals(api, proposals))
|
of(filterBountiesProposals(api, proposals))
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -40,9 +40,6 @@ function _proposalsFrom (instanceId: string, api: ApiInterfaceRx, section: strin
|
|||||||
// however we have had cases on Edgeware where the indices have moved around after an
|
// however we have had cases on Edgeware where the indices have moved around after an
|
||||||
// upgrade, which results in invalid on-chain data
|
// upgrade, which results in invalid on-chain data
|
||||||
combineLatest(hashes.map((hash) =>
|
combineLatest(hashes.map((hash) =>
|
||||||
// this should simply be api.query[section].proposalOf.multi<Option<Proposal>>(hashes),
|
|
||||||
// however we have had cases on Edgeware where the indices have moved around after an
|
|
||||||
// upgrade, which results in invalid on-chain data
|
|
||||||
api.query[section].proposalOf<Option<Proposal>>(hash).pipe(
|
api.query[section].proposalOf<Option<Proposal>>(hash).pipe(
|
||||||
catchError(() => of(null))
|
catchError(() => of(null))
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx, QueryableModuleStorage } from '@polkadot/api/types';
|
import type { ApiInterfaceRx, QueryableModuleStorage } from '@polkadot/api/types';
|
||||||
import type { Vec } from '@polkadot/types';
|
import type { Vec } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, Voter } from '@polkadot/types/interfaces';
|
import type { AccountId, Balance } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletElectionsPhragmenVoter } from '@polkadot/types/lookup';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveCouncilVote, DeriveCouncilVotes } from '../types';
|
import type { DeriveCouncilVote, DeriveCouncilVotes } from '../types';
|
||||||
|
|
||||||
@@ -13,9 +14,9 @@ import { combineLatest, map, of } from 'rxjs';
|
|||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
// Voter is current tuple is 2.x-era
|
// Voter is current tuple is 2.x-era
|
||||||
type VoteEntry = Voter | ITuple<[Balance, Vec<AccountId>]>;
|
type VoteEntry = PalletElectionsPhragmenVoter | ITuple<[Balance, Vec<AccountId>]>;
|
||||||
|
|
||||||
function isVoter (value: VoteEntry): value is Voter {
|
function isVoter (value: VoteEntry): value is PalletElectionsPhragmenVoter {
|
||||||
return !Array.isArray(value);
|
return !Array.isArray(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option, u64, Vec } from '@polkadot/types';
|
import type { Option, Vec } from '@polkadot/types';
|
||||||
import type { BlockNumber, Hash, ReferendumIndex, Scheduled } from '@polkadot/types/interfaces';
|
import type { BlockNumber, Hash, ReferendumIndex } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletSchedulerScheduledV2 } from '@polkadot/types/lookup';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveDispatch, DeriveProposalImage } from '../types';
|
import type { DeriveDispatch, DeriveProposalImage } from '../types';
|
||||||
|
|
||||||
@@ -42,7 +43,7 @@ function queryQueue (api: ApiInterfaceRx): Observable<DeriveDispatch[]> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function schedulerEntries (api: ApiInterfaceRx): Observable<[BlockNumber[], (Option<Scheduled>[] | null)[]]> {
|
function schedulerEntries (api: ApiInterfaceRx): Observable<[BlockNumber[], (Option<PalletSchedulerScheduledV2>[] | null)[]]> {
|
||||||
// We don't get entries, but rather we get the keys (triggered via finished referendums) and
|
// We don't get entries, but rather we get the keys (triggered via finished referendums) and
|
||||||
// the subscribe to those keys - this means we pickup when the schedulers actually executes
|
// the subscribe to those keys - this means we pickup when the schedulers actually executes
|
||||||
// at a block, the entry for that block will become empty
|
// at a block, the entry for that block will become empty
|
||||||
@@ -56,11 +57,11 @@ function schedulerEntries (api: ApiInterfaceRx): Observable<[BlockNumber[], (Opt
|
|||||||
return blockNumbers.length
|
return blockNumbers.length
|
||||||
? combineLatest([
|
? combineLatest([
|
||||||
of(blockNumbers),
|
of(blockNumbers),
|
||||||
// this should simply be api.query.scheduler.agenda.multi<Vec<Option<Scheduled>>>,
|
// this should simply be api.query.scheduler.agenda.multi,
|
||||||
// however we have had cases on Darwinia where the indices have moved around after an
|
// however we have had cases on Darwinia where the indices have moved around after an
|
||||||
// upgrade, which results in invalid on-chain data
|
// upgrade, which results in invalid on-chain data
|
||||||
combineLatest(blockNumbers.map((blockNumber) =>
|
combineLatest(blockNumbers.map((blockNumber) =>
|
||||||
api.query.scheduler.agenda<Vec<Option<Scheduled>>>(blockNumber).pipe(
|
api.query.scheduler.agenda(blockNumber).pipe(
|
||||||
// this does create an issue since it discards all at that block
|
// this does create an issue since it discards all at that block
|
||||||
catchError(() => of(null))
|
catchError(() => of(null))
|
||||||
)
|
)
|
||||||
@@ -86,7 +87,7 @@ function queryScheduler (api: ApiInterfaceRx): Observable<DeriveDispatch[]> {
|
|||||||
const id = scheduled.maybeId.unwrap().toHex();
|
const id = scheduled.maybeId.unwrap().toHex();
|
||||||
|
|
||||||
if (id.startsWith(DEMOCRACY_ID)) {
|
if (id.startsWith(DEMOCRACY_ID)) {
|
||||||
const [, index] = api.registry.createType<ITuple<[u64, ReferendumIndex]>>('(u64, ReferendumIndex)', id);
|
const [, index] = api.registry.createType('(u64, ReferendumIndex)', id);
|
||||||
const imageHash = scheduled.call.args[0] as Hash;
|
const imageHash = scheduled.call.args[0] as Hash;
|
||||||
|
|
||||||
result.push({ at, imageHash, index });
|
result.push({ at, imageHash, index });
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option } from '@polkadot/types';
|
import type { AccountId, ReferendumInfoTo239, Vote } from '@polkadot/types/interfaces';
|
||||||
import type { AccountId, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, Vote, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces';
|
import type { PalletDemocracyReferendumInfo, PalletDemocracyVoteVoting } from '@polkadot/types/lookup';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { DeriveDemocracyLock } from '../types';
|
import type { DeriveDemocracyLock } from '../types';
|
||||||
|
|
||||||
@@ -14,6 +14,11 @@ import { BN_ZERO, isUndefined } from '@polkadot/util';
|
|||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
|
type ReferendumInfoFinished = PalletDemocracyReferendumInfo['asFinished'];
|
||||||
|
type VotingDelegating = PalletDemocracyVoteVoting['asDelegating'];
|
||||||
|
type VotingDirect = PalletDemocracyVoteVoting['asDirect'];
|
||||||
|
type VotingDirectVote = VotingDirect['votes'][0];
|
||||||
|
|
||||||
const LOCKUPS = [0, 1, 2, 4, 8, 16, 32];
|
const LOCKUPS = [0, 1, 2, 4, 8, 16, 32];
|
||||||
|
|
||||||
function parseEnd (api: ApiInterfaceRx, vote: Vote, { approved, end }: ReferendumInfoFinished): [BN, BN] {
|
function parseEnd (api: ApiInterfaceRx, vote: Vote, { approved, end }: ReferendumInfoFinished): [BN, BN] {
|
||||||
@@ -25,7 +30,7 @@ function parseEnd (api: ApiInterfaceRx, vote: Vote, { approved, end }: Referendu
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseLock (api: ApiInterfaceRx, [referendumId, accountVote]: VotingDirectVote, referendum: ReferendumInfo): DeriveDemocracyLock {
|
function parseLock (api: ApiInterfaceRx, [referendumId, accountVote]: VotingDirectVote, referendum: PalletDemocracyReferendumInfo): DeriveDemocracyLock {
|
||||||
const { balance, vote } = accountVote.asStandard;
|
const { balance, vote } = accountVote.asStandard;
|
||||||
const [referendumEnd, unlockAt] = referendum.isFinished
|
const [referendumEnd, unlockAt] = referendum.isFinished
|
||||||
? parseEnd(api, vote, referendum.asFinished)
|
? parseEnd(api, vote, referendum.asFinished)
|
||||||
@@ -57,13 +62,13 @@ function directLocks (api: ApiInterfaceRx, { votes }: VotingDirect): Observable<
|
|||||||
return of([]);
|
return of([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return api.query.democracy.referendumInfoOf.multi<Option<ReferendumInfo | ReferendumInfoTo239>>(votes.map(([referendumId]) => referendumId)).pipe(
|
return api.query.democracy.referendumInfoOf.multi(votes.map(([referendumId]) => referendumId)).pipe(
|
||||||
map((referendums) =>
|
map((referendums) =>
|
||||||
votes
|
votes
|
||||||
.map((vote, index): [VotingDirectVote, ReferendumInfo | ReferendumInfoTo239 | null] =>
|
.map((vote, index): [VotingDirectVote, PalletDemocracyReferendumInfo | ReferendumInfoTo239 | null] =>
|
||||||
[vote, referendums[index].unwrapOr(null)]
|
[vote, referendums[index].unwrapOr(null)]
|
||||||
)
|
)
|
||||||
.filter((item): item is [VotingDirectVote, ReferendumInfo] =>
|
.filter((item): item is [VotingDirectVote, PalletDemocracyReferendumInfo] =>
|
||||||
!!item[1] && isUndefined((item[1] as ReferendumInfoTo239).end) && item[0][1].isStandard
|
!!item[1] && isUndefined((item[1] as ReferendumInfoTo239).end) && item[0][1].isStandard
|
||||||
)
|
)
|
||||||
.map(([directVote, referendum]) =>
|
.map(([directVote, referendum]) =>
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option } from '@polkadot/types';
|
import type { Option } from '@polkadot/types';
|
||||||
import type { Hash, VoteThreshold } from '@polkadot/types/interfaces';
|
import type { H256 } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletDemocracyVoteThreshold } from '@polkadot/types/lookup';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveProposalExternal } from '../types';
|
import type { DeriveProposalExternal } from '../types';
|
||||||
|
|
||||||
@@ -12,7 +13,7 @@ import { map, of, switchMap } from 'rxjs';
|
|||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
function withImage (api: ApiInterfaceRx, nextOpt: Option<ITuple<[Hash, VoteThreshold]>>): Observable<DeriveProposalExternal | null> {
|
function withImage (api: ApiInterfaceRx, nextOpt: Option<ITuple<[H256, PalletDemocracyVoteThreshold]>>): Observable<DeriveProposalExternal | null> {
|
||||||
if (nextOpt.isNone) {
|
if (nextOpt.isNone) {
|
||||||
return of(null);
|
return of(null);
|
||||||
}
|
}
|
||||||
@@ -31,7 +32,7 @@ function withImage (api: ApiInterfaceRx, nextOpt: Option<ITuple<[Hash, VoteThres
|
|||||||
export function nextExternal (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveProposalExternal | null> {
|
export function nextExternal (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveProposalExternal | null> {
|
||||||
return memo(instanceId, (): Observable<DeriveProposalExternal | null> =>
|
return memo(instanceId, (): Observable<DeriveProposalExternal | null> =>
|
||||||
api.query.democracy?.nextExternal
|
api.query.democracy?.nextExternal
|
||||||
? api.query.democracy.nextExternal<Option<ITuple<[Hash, VoteThreshold]>>>().pipe(
|
? api.query.democracy.nextExternal().pipe(
|
||||||
switchMap((nextOpt) => withImage(api, nextOpt))
|
switchMap((nextOpt) => withImage(api, nextOpt))
|
||||||
)
|
)
|
||||||
: of(null)
|
: of(null)
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Bytes, Option } from '@polkadot/types';
|
import type { Hash } from '@polkadot/types/interfaces';
|
||||||
import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces';
|
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
|
||||||
import type { DeriveProposalImage } from '../types';
|
import type { DeriveProposalImage } from '../types';
|
||||||
|
|
||||||
import { map } from 'rxjs';
|
import { map } from 'rxjs';
|
||||||
@@ -13,11 +11,9 @@ import { map } from 'rxjs';
|
|||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
import { parseImage } from './util';
|
import { parseImage } from './util';
|
||||||
|
|
||||||
type PreImage = Option<ITuple<[Bytes, AccountId, Balance, BlockNumber]>>;
|
|
||||||
|
|
||||||
export function preimage (instanceId: string, api: ApiInterfaceRx): (hash: Hash) => Observable<DeriveProposalImage | undefined> {
|
export function preimage (instanceId: string, api: ApiInterfaceRx): (hash: Hash) => Observable<DeriveProposalImage | undefined> {
|
||||||
return memo(instanceId, (hash: Hash): Observable<DeriveProposalImage | undefined> =>
|
return memo(instanceId, (hash: Hash): Observable<DeriveProposalImage | undefined> =>
|
||||||
api.query.democracy.preimages<PreImage>(hash).pipe(
|
api.query.democracy.preimages(hash).pipe(
|
||||||
map((imageOpt) => parseImage(api, imageOpt))
|
map((imageOpt) => parseImage(api, imageOpt))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Bytes, Option } from '@polkadot/types';
|
import type { Hash } from '@polkadot/types/interfaces';
|
||||||
import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces';
|
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
|
||||||
import type { DeriveProposalImage } from '../types';
|
import type { DeriveProposalImage } from '../types';
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
@@ -13,12 +11,10 @@ import { map, of } from 'rxjs';
|
|||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
import { parseImage } from './util';
|
import { parseImage } from './util';
|
||||||
|
|
||||||
type PreImage = Option<ITuple<[Bytes, AccountId, Balance, BlockNumber]>>;
|
|
||||||
|
|
||||||
export function preimages (instanceId: string, api: ApiInterfaceRx): (hashes: Hash[]) => Observable<(DeriveProposalImage | undefined)[]> {
|
export function preimages (instanceId: string, api: ApiInterfaceRx): (hashes: Hash[]) => Observable<(DeriveProposalImage | undefined)[]> {
|
||||||
return memo(instanceId, (hashes: Hash[]): Observable<(DeriveProposalImage | undefined)[]> =>
|
return memo(instanceId, (hashes: Hash[]): Observable<(DeriveProposalImage | undefined)[]> =>
|
||||||
hashes.length
|
hashes.length
|
||||||
? api.query.democracy.preimages.multi<PreImage>(hashes).pipe(
|
? api.query.democracy.preimages.multi(hashes).pipe(
|
||||||
map((images): (DeriveProposalImage | undefined)[] =>
|
map((images): (DeriveProposalImage | undefined)[] =>
|
||||||
images.map((imageOpt) => parseImage(api, imageOpt))
|
images.map((imageOpt) => parseImage(api, imageOpt))
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -58,9 +58,9 @@ export function proposals (instanceId: string, api: ApiInterfaceRx): () => Obser
|
|||||||
? combineLatest([
|
? combineLatest([
|
||||||
of(proposals),
|
of(proposals),
|
||||||
api.derive.democracy.preimages(
|
api.derive.democracy.preimages(
|
||||||
proposals.map(([, hash]): Hash => hash)),
|
proposals.map(([, hash]) => hash)),
|
||||||
api.query.democracy.depositOf.multi<Depositors>(
|
api.query.democracy.depositOf.multi(
|
||||||
proposals.map(([index]): PropIndex => index))
|
proposals.map(([index]) => index))
|
||||||
])
|
])
|
||||||
: of<Result>([[], [], []])
|
: of<Result>([[], [], []])
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -3,23 +3,24 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option } from '@polkadot/types';
|
import type { PalletDemocracyReferendumInfo } from '@polkadot/types/lookup';
|
||||||
import type { ReferendumInfo, ReferendumInfoFinished } from '@polkadot/types/interfaces';
|
|
||||||
|
|
||||||
import { map, switchMap } from 'rxjs';
|
import { map, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
|
type ReferendumInfoFinished = PalletDemocracyReferendumInfo['asFinished'];
|
||||||
|
|
||||||
export function referendumsFinished (instanceId: string, api: ApiInterfaceRx): () => Observable<ReferendumInfoFinished[]> {
|
export function referendumsFinished (instanceId: string, api: ApiInterfaceRx): () => Observable<ReferendumInfoFinished[]> {
|
||||||
return memo(instanceId, (): Observable<ReferendumInfoFinished[]> =>
|
return memo(instanceId, (): Observable<ReferendumInfoFinished[]> =>
|
||||||
api.derive.democracy.referendumIds().pipe(
|
api.derive.democracy.referendumIds().pipe(
|
||||||
switchMap((ids) =>
|
switchMap((ids) =>
|
||||||
api.query.democracy.referendumInfoOf.multi<Option<ReferendumInfo>>(ids)
|
api.query.democracy.referendumInfoOf.multi(ids)
|
||||||
),
|
),
|
||||||
map((infos): ReferendumInfoFinished[] =>
|
map((infos): ReferendumInfoFinished[] =>
|
||||||
infos
|
infos
|
||||||
.map((optInfo) => optInfo.unwrapOr(null))
|
.map((optInfo) => optInfo.unwrapOr(null))
|
||||||
.filter((info): info is ReferendumInfo => !!info && info.isFinished)
|
.filter((info): info is PalletDemocracyReferendumInfo => !!info && info.isFinished)
|
||||||
.map((info) => info.asFinished)
|
.map((info) => info.asFinished)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option, Vec } from '@polkadot/types';
|
import type { Option, Vec } from '@polkadot/types';
|
||||||
import type { AccountId, ReferendumInfo, ReferendumInfoTo239, Vote, Voting, VotingDelegating, VotingDirectVote } from '@polkadot/types/interfaces';
|
import type { AccountId, ReferendumInfoTo239, Vote } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletDemocracyReferendumInfo, PalletDemocracyVoteVoting } from '@polkadot/types/lookup';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { DeriveBalancesAccount, DeriveReferendum, DeriveReferendumVote, DeriveReferendumVotes } from '../types';
|
import type { DeriveBalancesAccount, DeriveReferendum, DeriveReferendumVote, DeriveReferendumVotes } from '../types';
|
||||||
|
|
||||||
@@ -15,6 +16,10 @@ import { isFunction } from '@polkadot/util';
|
|||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
import { calcVotes, getStatus, parseImage } from './util';
|
import { calcVotes, getStatus, parseImage } from './util';
|
||||||
|
|
||||||
|
type VotingDelegating = PalletDemocracyVoteVoting['asDelegating'];
|
||||||
|
type VotingDirect = PalletDemocracyVoteVoting['asDirect'];
|
||||||
|
type VotingDirectVote = VotingDirect['votes'][0];
|
||||||
|
|
||||||
function votesPrev (api: ApiInterfaceRx, referendumId: BN): Observable<DeriveReferendumVote[]> {
|
function votesPrev (api: ApiInterfaceRx, referendumId: BN): Observable<DeriveReferendumVote[]> {
|
||||||
return api.query.democracy.votersFor<Vec<AccountId>>(referendumId).pipe(
|
return api.query.democracy.votersFor<Vec<AccountId>>(referendumId).pipe(
|
||||||
switchMap((votersFor): Observable<[Vec<AccountId>, Vote[], DeriveBalancesAccount[]]> =>
|
switchMap((votersFor): Observable<[Vec<AccountId>, Vote[], DeriveBalancesAccount[]]> =>
|
||||||
@@ -41,7 +46,7 @@ function votesPrev (api: ApiInterfaceRx, referendumId: BN): Observable<DeriveRef
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function extractVotes (mapped: [AccountId, Voting][], referendumId: BN): DeriveReferendumVote[] {
|
function extractVotes (mapped: [AccountId, PalletDemocracyVoteVoting][], referendumId: BN): DeriveReferendumVote[] {
|
||||||
return mapped
|
return mapped
|
||||||
.filter(([, voting]) => voting.isDirect)
|
.filter(([, voting]) => voting.isDirect)
|
||||||
.map(([accountId, voting]): [AccountId, VotingDirectVote[]] => [
|
.map(([accountId, voting]): [AccountId, VotingDirectVote[]] => [
|
||||||
@@ -66,9 +71,9 @@ function extractVotes (mapped: [AccountId, Voting][], referendumId: BN): DeriveR
|
|||||||
}
|
}
|
||||||
|
|
||||||
function votesCurr (api: ApiInterfaceRx, referendumId: BN): Observable<DeriveReferendumVote[]> {
|
function votesCurr (api: ApiInterfaceRx, referendumId: BN): Observable<DeriveReferendumVote[]> {
|
||||||
return api.query.democracy.votingOf.entries<Voting, [AccountId]>().pipe(
|
return api.query.democracy.votingOf.entries().pipe(
|
||||||
map((allVoting): DeriveReferendumVote[] => {
|
map((allVoting): DeriveReferendumVote[] => {
|
||||||
const mapped = allVoting.map(([{ args: [accountId] }, voting]): [AccountId, Voting] => [accountId, voting]);
|
const mapped = allVoting.map(([{ args: [accountId] }, voting]): [AccountId, PalletDemocracyVoteVoting] => [accountId, voting]);
|
||||||
const votes = extractVotes(mapped, referendumId);
|
const votes = extractVotes(mapped, referendumId);
|
||||||
const delegations = mapped
|
const delegations = mapped
|
||||||
.filter(([, voting]) => voting.isDelegating)
|
.filter(([, voting]) => voting.isDelegating)
|
||||||
@@ -123,8 +128,8 @@ export function _referendumsVotes (instanceId: string, api: ApiInterfaceRx): (re
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function _referendumInfo (instanceId: string, api: ApiInterfaceRx): (index: BN, info: Option<ReferendumInfo | ReferendumInfoTo239>) => Observable<DeriveReferendum | null> {
|
export function _referendumInfo (instanceId: string, api: ApiInterfaceRx): (index: BN, info: Option<PalletDemocracyReferendumInfo | ReferendumInfoTo239>) => Observable<DeriveReferendum | null> {
|
||||||
return memo(instanceId, (index: BN, info: Option<ReferendumInfo | ReferendumInfoTo239>): Observable<DeriveReferendum | null> => {
|
return memo(instanceId, (index: BN, info: Option<PalletDemocracyReferendumInfo | ReferendumInfoTo239>): Observable<DeriveReferendum | null> => {
|
||||||
const status = getStatus(info);
|
const status = getStatus(info);
|
||||||
|
|
||||||
return status
|
return status
|
||||||
@@ -143,7 +148,7 @@ export function _referendumInfo (instanceId: string, api: ApiInterfaceRx): (inde
|
|||||||
export function referendumsInfo (instanceId: string, api: ApiInterfaceRx): (ids: BN[]) => Observable<DeriveReferendum[]> {
|
export function referendumsInfo (instanceId: string, api: ApiInterfaceRx): (ids: BN[]) => Observable<DeriveReferendum[]> {
|
||||||
return memo(instanceId, (ids: BN[]): Observable<DeriveReferendum[]> =>
|
return memo(instanceId, (ids: BN[]): Observable<DeriveReferendum[]> =>
|
||||||
ids.length
|
ids.length
|
||||||
? api.query.democracy.referendumInfoOf.multi<Option<ReferendumInfo>>(ids).pipe(
|
? api.query.democracy.referendumInfoOf.multi(ids).pipe(
|
||||||
switchMap((infos): Observable<(DeriveReferendum | null)[]> =>
|
switchMap((infos): Observable<(DeriveReferendum | null)[]> =>
|
||||||
combineLatest(
|
combineLatest(
|
||||||
ids.map((id, index): Observable<DeriveReferendum | null> =>
|
ids.map((id, index): Observable<DeriveReferendum | null> =>
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Vec } from '@polkadot/types';
|
import type { Vec } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BlockNumber, Hash, PropIndex, Proposal, ReferendumIndex, ReferendumInfoTo239, ReferendumStatus, Vote, VoteThreshold } from '@polkadot/types/interfaces';
|
import type { AccountId, Balance, BlockNumber, Hash, PropIndex, Proposal, ReferendumIndex, ReferendumInfoTo239, Vote } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletDemocracyReferendumStatus, PalletDemocracyVoteThreshold } from '@polkadot/types/lookup';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
|
|
||||||
export interface DeriveDemocracyLock {
|
export interface DeriveDemocracyLock {
|
||||||
@@ -41,14 +42,14 @@ export interface DeriveProposal {
|
|||||||
export interface DeriveProposalExternal {
|
export interface DeriveProposalExternal {
|
||||||
image?: DeriveProposalImage;
|
image?: DeriveProposalImage;
|
||||||
imageHash: Hash;
|
imageHash: Hash;
|
||||||
threshold: VoteThreshold;
|
threshold: PalletDemocracyVoteThreshold;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeriveReferendum {
|
export interface DeriveReferendum {
|
||||||
index: ReferendumIndex;
|
index: ReferendumIndex;
|
||||||
image?: DeriveProposalImage;
|
image?: DeriveProposalImage;
|
||||||
imageHash: Hash;
|
imageHash: Hash;
|
||||||
status: ReferendumStatus | ReferendumInfoTo239;
|
status: PalletDemocracyReferendumStatus | ReferendumInfoTo239;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeriveReferendumVote {
|
export interface DeriveReferendumVote {
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Bytes, Option } from '@polkadot/types';
|
import type { Bytes, Option } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BlockNumber, PreimageStatus, Proposal, ReferendumInfo, ReferendumInfoTo239, ReferendumStatus, Tally, VoteThreshold } from '@polkadot/types/interfaces';
|
import type { AccountId, Balance, BlockNumber, PreimageStatus, Proposal, ReferendumInfoTo239, Tally } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletDemocracyReferendumInfo, PalletDemocracyReferendumStatus, PalletDemocracyVoteThreshold } from '@polkadot/types/lookup';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveProposalImage, DeriveReferendum, DeriveReferendumVote, DeriveReferendumVotes, DeriveReferendumVoteState } from '../types';
|
import type { DeriveProposalImage, DeriveReferendum, DeriveReferendumVote, DeriveReferendumVotes, DeriveReferendumVoteState } from '../types';
|
||||||
|
|
||||||
@@ -18,12 +19,12 @@ interface ApproxState {
|
|||||||
votedTotal: BN;
|
votedTotal: BN;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isOldInfo (info: ReferendumInfo | ReferendumInfoTo239): info is ReferendumInfoTo239 {
|
function isOldInfo (info: PalletDemocracyReferendumInfo | ReferendumInfoTo239): info is ReferendumInfoTo239 {
|
||||||
return !!(info as ReferendumInfoTo239).proposalHash;
|
return !!(info as ReferendumInfoTo239).proposalHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isCurrentStatus (status: ReferendumStatus | ReferendumInfoTo239): status is ReferendumStatus {
|
function isCurrentStatus (status: PalletDemocracyReferendumStatus | ReferendumInfoTo239): status is PalletDemocracyReferendumStatus {
|
||||||
return !!(status as ReferendumStatus).tally;
|
return !!(status as PalletDemocracyReferendumStatus).tally;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isCurrentPreimage (api: ApiInterfaceRx, imageOpt: Option<OldPreimage> | Option<PreimageStatus>): imageOpt is Option<PreimageStatus> {
|
function isCurrentPreimage (api: ApiInterfaceRx, imageOpt: Option<OldPreimage> | Option<PreimageStatus>): imageOpt is Option<PreimageStatus> {
|
||||||
@@ -57,18 +58,18 @@ export function compareRationals (n1: BN, d1: BN, n2: BN, d2: BN): boolean {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function calcPassingOther (threshold: VoteThreshold, sqrtElectorate: BN, { votedAye, votedNay, votedTotal }: ApproxState): boolean {
|
function calcPassingOther (threshold: PalletDemocracyVoteThreshold, sqrtElectorate: BN, { votedAye, votedNay, votedTotal }: ApproxState): boolean {
|
||||||
const sqrtVoters = bnSqrt(votedTotal);
|
const sqrtVoters = bnSqrt(votedTotal);
|
||||||
|
|
||||||
return sqrtVoters.isZero()
|
return sqrtVoters.isZero()
|
||||||
? false
|
? false
|
||||||
: threshold.isSupermajorityapproval
|
: threshold.isSuperMajorityApprove
|
||||||
? compareRationals(votedNay, sqrtVoters, votedAye, sqrtElectorate)
|
? compareRationals(votedNay, sqrtVoters, votedAye, sqrtElectorate)
|
||||||
: compareRationals(votedNay, sqrtElectorate, votedAye, sqrtVoters);
|
: compareRationals(votedNay, sqrtElectorate, votedAye, sqrtVoters);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function calcPassing (threshold: VoteThreshold, sqrtElectorate: BN, state: ApproxState): boolean {
|
export function calcPassing (threshold: PalletDemocracyVoteThreshold, sqrtElectorate: BN, state: ApproxState): boolean {
|
||||||
return threshold.isSimplemajority
|
return threshold.isSimpleMajority
|
||||||
? state.votedAye.gt(state.votedNay)
|
? state.votedAye.gt(state.votedNay)
|
||||||
: calcPassingOther(threshold, sqrtElectorate, state);
|
: calcPassingOther(threshold, sqrtElectorate, state);
|
||||||
}
|
}
|
||||||
@@ -134,7 +135,7 @@ export function calcVotes (sqrtElectorate: BN, referendum: DeriveReferendum, vot
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getStatus (info: Option<ReferendumInfo | ReferendumInfoTo239>): ReferendumStatus | ReferendumInfoTo239 | null {
|
export function getStatus (info: Option<PalletDemocracyReferendumInfo | ReferendumInfoTo239>): PalletDemocracyReferendumStatus | ReferendumInfoTo239 | null {
|
||||||
if (info.isNone) {
|
if (info.isNone) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Bytes, Option, u32 } from '@polkadot/types';
|
import type { Option, u32, WrapperOpaque } from '@polkadot/types';
|
||||||
import type { AccountId } from '@polkadot/types/interfaces';
|
import type { AccountId } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletImOnlineBoundedOpaqueNetworkState } from '@polkadot/types/lookup';
|
||||||
import type { DeriveHeartbeats } from '../types';
|
import type { DeriveHeartbeats } from '../types';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
@@ -13,7 +14,9 @@ import { BN_ZERO } from '@polkadot/util';
|
|||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
function mapResult ([result, validators, heartbeats, numBlocks]: [DeriveHeartbeats, AccountId[], Option<Bytes>[], u32[]]): DeriveHeartbeats {
|
type HeartbeatsOpt = Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>;
|
||||||
|
|
||||||
|
function mapResult ([result, validators, heartbeats, numBlocks]: [DeriveHeartbeats, AccountId[], HeartbeatsOpt[], u32[]]): DeriveHeartbeats {
|
||||||
validators.forEach((validator, index): void => {
|
validators.forEach((validator, index): void => {
|
||||||
const validatorId = validator.toString();
|
const validatorId = validator.toString();
|
||||||
const blockCount = numBlocks[index];
|
const blockCount = numBlocks[index];
|
||||||
@@ -39,13 +42,13 @@ export function receivedHeartbeats (instanceId: string, api: ApiInterfaceRx): ()
|
|||||||
return memo(instanceId, (): Observable<DeriveHeartbeats> =>
|
return memo(instanceId, (): Observable<DeriveHeartbeats> =>
|
||||||
api.query.imOnline?.receivedHeartbeats
|
api.query.imOnline?.receivedHeartbeats
|
||||||
? api.derive.staking.overview().pipe(
|
? api.derive.staking.overview().pipe(
|
||||||
switchMap(({ currentIndex, validators }): Observable<[DeriveHeartbeats, AccountId[], Option<Bytes>[], u32[]]> =>
|
switchMap(({ currentIndex, validators }): Observable<[DeriveHeartbeats, AccountId[], HeartbeatsOpt[], u32[]]> =>
|
||||||
combineLatest([
|
combineLatest([
|
||||||
of({}),
|
of({}),
|
||||||
of(validators),
|
of(validators),
|
||||||
api.query.imOnline.receivedHeartbeats.multi<Option<Bytes>>(
|
api.query.imOnline.receivedHeartbeats.multi(
|
||||||
validators.map((_address, index) => [currentIndex, index])),
|
validators.map((_address, index) => [currentIndex, index])),
|
||||||
api.query.imOnline.authoredBlocks.multi<u32>(
|
api.query.imOnline.authoredBlocks.multi(
|
||||||
validators.map((address) => [currentIndex, address]))
|
validators.map((address) => [currentIndex, address]))
|
||||||
])
|
])
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-derive', version: '6.1.1' };
|
export const packageInfo = { name: '@polkadot/api-derive', version: '6.2.1' };
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option, Vec } from '@polkadot/types';
|
import type { Option } from '@polkadot/types';
|
||||||
import type { AccountId, BalanceOf, Bid, BidKind } from '@polkadot/types/interfaces';
|
import type { BalanceOf } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletSocietyBid, PalletSocietyBidKind } from '@polkadot/types/lookup';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveSocietyCandidate } from '../types';
|
import type { DeriveSocietyCandidate } from '../types';
|
||||||
|
|
||||||
@@ -12,20 +13,21 @@ import { combineLatest, map, of, switchMap } from 'rxjs';
|
|||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
type ResultSuspend = Option<ITuple<[BalanceOf, BidKind]>>;
|
type ResultSuspend = Option<ITuple<[BalanceOf, PalletSocietyBidKind]>>;
|
||||||
type Result = [Bid[], ResultSuspend[]]
|
type Result = [PalletSocietyBid[], ResultSuspend[]]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Get the candidate info for a society
|
* @description Get the candidate info for a society
|
||||||
*/
|
*/
|
||||||
export function candidates (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSocietyCandidate[]> {
|
export function candidates (instanceId: string, api: ApiInterfaceRx): () => Observable<DeriveSocietyCandidate[]> {
|
||||||
return memo(instanceId, (): Observable<DeriveSocietyCandidate[]> =>
|
return memo(instanceId, (): Observable<DeriveSocietyCandidate[]> =>
|
||||||
api.query.society.candidates<Vec<Bid>>().pipe(
|
api.query.society.candidates().pipe(
|
||||||
switchMap((candidates: Vec<Bid>): Observable<Result> =>
|
switchMap((candidates): Observable<Result> =>
|
||||||
combineLatest([
|
combineLatest([
|
||||||
of(candidates),
|
of(candidates),
|
||||||
api.query.society.suspendedCandidates.multi<ResultSuspend>(
|
api.query.society.suspendedCandidates.multi(
|
||||||
candidates.map(({ who }): AccountId => who))
|
candidates.map(({ who }) => who)
|
||||||
|
)
|
||||||
])
|
])
|
||||||
),
|
),
|
||||||
map(([candidates, suspended]: Result): DeriveSocietyCandidate[] =>
|
map(([candidates, suspended]: Result): DeriveSocietyCandidate[] =>
|
||||||
|
|||||||
@@ -4,14 +4,15 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option, u32, Vec } from '@polkadot/types';
|
import type { Option, u32, Vec } from '@polkadot/types';
|
||||||
import type { AccountId, BalanceOf, Bid } from '@polkadot/types/interfaces';
|
import type { AccountId, BalanceOf } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletSocietyBid } from '@polkadot/types/lookup';
|
||||||
import type { DeriveSociety } from '../types';
|
import type { DeriveSociety } from '../types';
|
||||||
|
|
||||||
import { map } from 'rxjs';
|
import { map } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
type Result = [Vec<Bid>, Option<AccountId>, Option<AccountId>, Option<AccountId>, u32, BalanceOf]
|
type Result = [Vec<PalletSocietyBid>, Option<AccountId>, Option<AccountId>, Option<AccountId>, u32, BalanceOf]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Get the overall info for a society
|
* @description Get the overall info for a society
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { bool, Option, Vec } from '@polkadot/types';
|
import type { AccountId } from '@polkadot/types/interfaces';
|
||||||
import type { AccountId, Balance, BlockNumber, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces';
|
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
|
||||||
import type { DeriveSocietyMember } from '../types';
|
import type { DeriveSocietyMember } from '../types';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
@@ -16,11 +14,11 @@ export function _members (instanceId: string, api: ApiInterfaceRx): (accountIds:
|
|||||||
return memo(instanceId, (accountIds: AccountId[]): Observable<DeriveSocietyMember[]> =>
|
return memo(instanceId, (accountIds: AccountId[]): Observable<DeriveSocietyMember[]> =>
|
||||||
combineLatest([
|
combineLatest([
|
||||||
of(accountIds),
|
of(accountIds),
|
||||||
api.query.society.payouts.multi<Vec<ITuple<[BlockNumber, Balance]>>>(accountIds),
|
api.query.society.payouts.multi(accountIds),
|
||||||
api.query.society.strikes.multi<StrikeCount>(accountIds),
|
api.query.society.strikes.multi(accountIds),
|
||||||
api.query.society.defenderVotes.multi<Option<SocietyVote>>(accountIds),
|
api.query.society.defenderVotes.multi(accountIds),
|
||||||
api.query.society.suspendedMembers.multi<bool>(accountIds),
|
api.query.society.suspendedMembers.multi(accountIds),
|
||||||
api.query.society.vouching.multi<Option<VouchingStatus>>(accountIds)
|
api.query.society.vouching.multi(accountIds)
|
||||||
]).pipe(
|
]).pipe(
|
||||||
map(([accountIds, payouts, strikes, defenderVotes, suspended, vouching]) =>
|
map(([accountIds, payouts, strikes, defenderVotes, suspended, vouching]) =>
|
||||||
accountIds.map((accountId, index) => ({
|
accountIds.map((accountId, index) => ({
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { u32 } from '@polkadot/types';
|
||||||
|
import type { AccountId, Balance, BalanceOf, BlockNumber, StrikeCount } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
|
export interface DeriveSociety {
|
||||||
|
bids: PalletSocietyBid[];
|
||||||
|
defender?: AccountId;
|
||||||
|
hasDefender: boolean;
|
||||||
|
head?: AccountId;
|
||||||
|
founder?: AccountId;
|
||||||
|
maxMembers: u32;
|
||||||
|
pot: BalanceOf;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeriveSocietyCandidate {
|
||||||
|
accountId: AccountId;
|
||||||
|
kind: PalletSocietyBidKind;
|
||||||
|
value: Balance;
|
||||||
|
isSuspended: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeriveSocietyMember {
|
||||||
|
accountId: AccountId;
|
||||||
|
isDefenderVoter: boolean;
|
||||||
|
isSuspended: boolean;
|
||||||
|
payouts: [BlockNumber, Balance][];
|
||||||
|
strikes: StrikeCount;
|
||||||
|
vote?: PalletSocietyVote;
|
||||||
|
vouching?: PalletSocietyVouchingStatus;
|
||||||
|
}
|
||||||
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Balance, StakingLedger, UnlockChunk } from '@polkadot/types/interfaces';
|
import type { Balance } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletStakingStakingLedger, PalletStakingUnlockChunk } from '@polkadot/types/lookup';
|
||||||
import type { DeriveSessionInfo, DeriveStakingAccount, DeriveStakingKeys, DeriveStakingQuery, DeriveUnlocking } from '../types';
|
import type { DeriveSessionInfo, DeriveStakingAccount, DeriveStakingKeys, DeriveStakingQuery, DeriveUnlocking } from '../types';
|
||||||
|
|
||||||
import { combineLatest, map, switchMap } from 'rxjs';
|
import { combineLatest, map, switchMap } from 'rxjs';
|
||||||
@@ -19,7 +20,7 @@ const QUERY_OPTS = {
|
|||||||
withPrefs: true
|
withPrefs: true
|
||||||
};
|
};
|
||||||
|
|
||||||
function groupByEra (list: UnlockChunk[]): Record<string, BN> {
|
function groupByEra (list: PalletStakingUnlockChunk[]): Record<string, BN> {
|
||||||
return list.reduce((map: Record<string, BN>, { era, value }): Record<string, BN> => {
|
return list.reduce((map: Record<string, BN>, { era, value }): Record<string, BN> => {
|
||||||
const key = era.toString();
|
const key = era.toString();
|
||||||
|
|
||||||
@@ -29,7 +30,7 @@ function groupByEra (list: UnlockChunk[]): Record<string, BN> {
|
|||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function calculateUnlocking (api: ApiInterfaceRx, stakingLedger: StakingLedger | undefined, sessionInfo: DeriveSessionInfo): DeriveUnlocking[] | undefined {
|
function calculateUnlocking (api: ApiInterfaceRx, stakingLedger: PalletStakingStakingLedger | undefined, sessionInfo: DeriveSessionInfo): DeriveUnlocking[] | undefined {
|
||||||
const results = Object
|
const results = Object
|
||||||
.entries(groupByEra(
|
.entries(groupByEra(
|
||||||
(stakingLedger?.unlocking || []).filter(({ era }) => era.unwrap().gt(sessionInfo.activeEra))
|
(stakingLedger?.unlocking || []).filter(({ era }) => era.unwrap().gt(sessionInfo.activeEra))
|
||||||
@@ -44,8 +45,8 @@ function calculateUnlocking (api: ApiInterfaceRx, stakingLedger: StakingLedger |
|
|||||||
: undefined;
|
: undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
function redeemableSum (api: ApiInterfaceRx, stakingLedger: StakingLedger | undefined, sessionInfo: DeriveSessionInfo): Balance {
|
function redeemableSum (api: ApiInterfaceRx, stakingLedger: PalletStakingStakingLedger | undefined, sessionInfo: DeriveSessionInfo): Balance {
|
||||||
return api.registry.createType('Balance', (stakingLedger?.unlocking || [] as UnlockChunk[]).reduce((total, { era, value }): BN => {
|
return api.registry.createType('Balance', (stakingLedger?.unlocking || [] as PalletStakingUnlockChunk[]).reduce((total, { era, value }): BN => {
|
||||||
return sessionInfo.activeEra.gte(era.unwrap())
|
return sessionInfo.activeEra.gte(era.unwrap())
|
||||||
? total.iadd(value.unwrap())
|
? total.iadd(value.unwrap())
|
||||||
: total;
|
: total;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { EraRewardPoints } from '@polkadot/types/interfaces';
|
import type { PalletStakingEraRewardPoints } from '@polkadot/types/lookup';
|
||||||
|
|
||||||
import { switchMap } from 'rxjs';
|
import { switchMap } from 'rxjs';
|
||||||
|
|
||||||
@@ -12,11 +12,11 @@ import { memo } from '../util';
|
|||||||
/**
|
/**
|
||||||
* @description Retrieve the staking overview, including elected and points earned
|
* @description Retrieve the staking overview, including elected and points earned
|
||||||
*/
|
*/
|
||||||
export function currentPoints (instanceId: string, api: ApiInterfaceRx): () => Observable<EraRewardPoints> {
|
export function currentPoints (instanceId: string, api: ApiInterfaceRx): () => Observable<PalletStakingEraRewardPoints> {
|
||||||
return memo(instanceId, (): Observable<EraRewardPoints> =>
|
return memo(instanceId, (): Observable<PalletStakingEraRewardPoints> =>
|
||||||
api.derive.session.indexes().pipe(
|
api.derive.session.indexes().pipe(
|
||||||
switchMap(({ activeEra }) =>
|
switchMap(({ activeEra }) =>
|
||||||
api.query.staking.erasRewardPoints<EraRewardPoints>(activeEra)
|
api.query.staking.erasRewardPoints<PalletStakingEraRewardPoints>(activeEra)
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,14 +4,15 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { StorageKey } from '@polkadot/types';
|
import type { StorageKey } from '@polkadot/types';
|
||||||
import type { AccountId, EraIndex, Exposure } from '@polkadot/types/interfaces';
|
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletStakingExposure } from '@polkadot/types/lookup';
|
||||||
import type { DeriveEraExposure, DeriveEraNominatorExposure, DeriveEraValidatorExposure } from '../types';
|
import type { DeriveEraExposure, DeriveEraNominatorExposure, DeriveEraValidatorExposure } from '../types';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { deriveCache, memo } from '../util';
|
import { deriveCache, memo } from '../util';
|
||||||
|
|
||||||
type KeysAndExposures = [StorageKey<[EraIndex, AccountId]>, Exposure][];
|
type KeysAndExposures = [StorageKey<[EraIndex, AccountId]>, PalletStakingExposure][];
|
||||||
|
|
||||||
const CACHE_KEY = 'eraExposure';
|
const CACHE_KEY = 'eraExposure';
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { EraIndex, EraRewardPoints } from '@polkadot/types/interfaces';
|
import type { EraIndex } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletStakingEraRewardPoints } from '@polkadot/types/lookup';
|
||||||
import type { DeriveEraPoints, DeriveEraValPoints } from '../types';
|
import type { DeriveEraPoints, DeriveEraValPoints } from '../types';
|
||||||
|
|
||||||
import { map, of, switchMap } from 'rxjs';
|
import { map, of, switchMap } from 'rxjs';
|
||||||
@@ -15,7 +16,7 @@ import { filterEras } from './util';
|
|||||||
|
|
||||||
const CACHE_KEY = 'eraPoints';
|
const CACHE_KEY = 'eraPoints';
|
||||||
|
|
||||||
function mapValidators ({ individual }: EraRewardPoints): DeriveEraValPoints {
|
function mapValidators ({ individual }: PalletStakingEraRewardPoints): DeriveEraValPoints {
|
||||||
return [...individual.entries()]
|
return [...individual.entries()]
|
||||||
.filter(([, points]) => points.gt(BN_ZERO))
|
.filter(([, points]) => points.gt(BN_ZERO))
|
||||||
.reduce((result: DeriveEraValPoints, [validatorId, points]): DeriveEraValPoints => {
|
.reduce((result: DeriveEraValPoints, [validatorId, points]): DeriveEraValPoints => {
|
||||||
@@ -25,7 +26,7 @@ function mapValidators ({ individual }: EraRewardPoints): DeriveEraValPoints {
|
|||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function mapPoints (eras: EraIndex[], points: EraRewardPoints[]): DeriveEraPoints[] {
|
function mapPoints (eras: EraIndex[], points: PalletStakingEraRewardPoints[]): DeriveEraPoints[] {
|
||||||
return eras.map((era, index): DeriveEraPoints => ({
|
return eras.map((era, index): DeriveEraPoints => ({
|
||||||
era,
|
era,
|
||||||
eraPoints: points[index].total,
|
eraPoints: points[index].total,
|
||||||
@@ -48,7 +49,7 @@ export function _erasPoints (instanceId: string, api: ApiInterfaceRx): (eras: Er
|
|||||||
|
|
||||||
return !remaining.length
|
return !remaining.length
|
||||||
? of(cached)
|
? of(cached)
|
||||||
: api.query.staking.erasRewardPoints.multi<EraRewardPoints>(remaining).pipe(
|
: api.query.staking.erasRewardPoints.multi(remaining).pipe(
|
||||||
map((points): DeriveEraPoints[] => {
|
map((points): DeriveEraPoints[] => {
|
||||||
const query = mapPoints(remaining, points);
|
const query = mapPoints(remaining, points);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { StorageKey } from '@polkadot/types';
|
import type { StorageKey } from '@polkadot/types';
|
||||||
import type { EraIndex, ValidatorPrefs } from '@polkadot/types/interfaces';
|
import type { EraIndex } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletStakingValidatorPrefs } from '@polkadot/types/lookup';
|
||||||
import type { DeriveEraPrefs, DeriveEraValPrefs } from '../types';
|
import type { DeriveEraPrefs, DeriveEraValPrefs } from '../types';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
@@ -13,7 +14,7 @@ import { deriveCache, memo } from '../util';
|
|||||||
|
|
||||||
const CACHE_KEY = 'eraPrefs';
|
const CACHE_KEY = 'eraPrefs';
|
||||||
|
|
||||||
function mapPrefs (era: EraIndex, all: [StorageKey, ValidatorPrefs][]): DeriveEraPrefs {
|
function mapPrefs (era: EraIndex, all: [StorageKey, PalletStakingValidatorPrefs][]): DeriveEraPrefs {
|
||||||
const validators: DeriveEraValPrefs = {};
|
const validators: DeriveEraValPrefs = {};
|
||||||
|
|
||||||
all.forEach(([key, prefs]): void => {
|
all.forEach(([key, prefs]): void => {
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export function _erasRewards (instanceId: string, api: ApiInterfaceRx): (eras: E
|
|||||||
return of(cached);
|
return of(cached);
|
||||||
}
|
}
|
||||||
|
|
||||||
return api.query.staking.erasValidatorReward.multi<Option<Balance>>(remaining).pipe(
|
return api.query.staking.erasValidatorReward.multi(remaining).pipe(
|
||||||
map((optRewards) => {
|
map((optRewards) => {
|
||||||
const query = mapRewards(remaining, optRewards);
|
const query = mapRewards(remaining, optRewards);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option, Vec } from '@polkadot/types';
|
import type { Option, Vec } from '@polkadot/types';
|
||||||
import type { AccountId, Keys } from '@polkadot/types/interfaces';
|
import type { AccountId } from '@polkadot/types/interfaces';
|
||||||
|
import type { NodeRuntimeSessionKeys } from '@polkadot/types/lookup';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
import type { DeriveStakingKeys } from './types';
|
import type { DeriveStakingKeys } from './types';
|
||||||
|
|
||||||
@@ -12,13 +13,17 @@ import { combineLatest, map, of, switchMap } from 'rxjs';
|
|||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
function extractsIds (stashId: Uint8Array | string, queuedKeys: [AccountId, Keys][], nextKeys: Option<Keys>): DeriveStakingKeys {
|
function extractsIds (stashId: Uint8Array | string, queuedKeys: [AccountId, NodeRuntimeSessionKeys | AccountId[]][], nextKeys: Option<NodeRuntimeSessionKeys>): DeriveStakingKeys {
|
||||||
const sessionIds = (queuedKeys.find(([currentId]) => currentId.eq(stashId)) || [undefined, [] as AccountId[]])[1];
|
const sessionIds = (queuedKeys.find(([currentId]) => currentId.eq(stashId)) || [undefined, [] as AccountId[]])[1];
|
||||||
const nextSessionIds = nextKeys.unwrapOr([] as AccountId[]);
|
const nextSessionIds = nextKeys.unwrapOr([] as AccountId[]);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
nextSessionIds,
|
nextSessionIds: Array.isArray(nextSessionIds)
|
||||||
sessionIds
|
? nextSessionIds
|
||||||
|
: [...nextSessionIds.values()] as AccountId[],
|
||||||
|
sessionIds: Array.isArray(sessionIds)
|
||||||
|
? sessionIds
|
||||||
|
: [...sessionIds.values()] as AccountId[]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,13 +38,13 @@ export function keys (instanceId: string, api: ApiInterfaceRx): (stashId: Uint8A
|
|||||||
export function keysMulti (instanceId: string, api: ApiInterfaceRx): (stashIds: (Uint8Array | string)[]) => Observable<DeriveStakingKeys[]> {
|
export function keysMulti (instanceId: string, api: ApiInterfaceRx): (stashIds: (Uint8Array | string)[]) => Observable<DeriveStakingKeys[]> {
|
||||||
return memo(instanceId, (stashIds: (Uint8Array | string)[]): Observable<DeriveStakingKeys[]> =>
|
return memo(instanceId, (stashIds: (Uint8Array | string)[]): Observable<DeriveStakingKeys[]> =>
|
||||||
stashIds.length
|
stashIds.length
|
||||||
? api.query.session.queuedKeys<Vec<ITuple<[AccountId, Keys]>>>().pipe(
|
? api.query.session.queuedKeys().pipe(
|
||||||
switchMap((queuedKeys): Observable<[Vec<ITuple<[AccountId, Keys]>>, Option<Keys>[]]> =>
|
switchMap((queuedKeys): Observable<[Vec<ITuple<[AccountId, NodeRuntimeSessionKeys]>>, Option<NodeRuntimeSessionKeys>[]]> =>
|
||||||
combineLatest([
|
combineLatest([
|
||||||
of(queuedKeys),
|
of(queuedKeys),
|
||||||
api.consts.session?.dedupKeyPrefix
|
api.consts.session?.dedupKeyPrefix
|
||||||
? api.query.session.nextKeys.multi<Option<Keys>>(stashIds.map((stashId) => [api.consts.session.dedupKeyPrefix, stashId]))
|
? api.query.session.nextKeys.multi(stashIds.map((stashId) => [api.consts.session.dedupKeyPrefix, stashId]))
|
||||||
: api.query.session.nextKeys.multi<Option<Keys>>(stashIds)
|
: api.query.session.nextKeys.multi(stashIds)
|
||||||
])
|
])
|
||||||
),
|
),
|
||||||
map(([queuedKeys, nextKeys]) =>
|
map(([queuedKeys, nextKeys]) =>
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx, QueryableStorageMultiArg } from '@polkadot/api/types';
|
import type { ApiInterfaceRx, QueryableStorageMultiArg } from '@polkadot/api/types';
|
||||||
import type { EraIndex, Exposure } from '@polkadot/types/interfaces';
|
import type { EraIndex } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletStakingExposure } from '@polkadot/types/lookup';
|
||||||
import type { DeriveOwnExposure } from '../types';
|
import type { DeriveOwnExposure } from '../types';
|
||||||
|
|
||||||
import { map, of, switchMap } from 'rxjs';
|
import { map, of, switchMap } from 'rxjs';
|
||||||
@@ -14,7 +15,7 @@ export function _ownExposures (instanceId: string, api: ApiInterfaceRx): (accoun
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean): Observable<DeriveOwnExposure[]> =>
|
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean): Observable<DeriveOwnExposure[]> =>
|
||||||
eras.length
|
eras.length
|
||||||
? api.queryMulti<Exposure[]>([
|
? api.queryMulti<PalletStakingExposure[]>([
|
||||||
...eras.map((era): QueryableStorageMultiArg<'rxjs'> => [api.query.staking.erasStakersClipped, [era, accountId]]),
|
...eras.map((era): QueryableStorageMultiArg<'rxjs'> => [api.query.staking.erasStakersClipped, [era, accountId]]),
|
||||||
...eras.map((era): QueryableStorageMultiArg<'rxjs'> => [api.query.staking.erasStakers, [era, accountId]])
|
...eras.map((era): QueryableStorageMultiArg<'rxjs'> => [api.query.staking.erasStakers, [era, accountId]])
|
||||||
]).pipe(
|
]).pipe(
|
||||||
|
|||||||
@@ -4,14 +4,15 @@
|
|||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { Option } from '@polkadot/types';
|
import type { Option } from '@polkadot/types';
|
||||||
import type { AccountId, EraIndex, Exposure, Nominations, RewardDestination, StakingLedger, ValidatorPrefs } from '@polkadot/types/interfaces';
|
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletStakingExposure, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs } from '@polkadot/types/lookup';
|
||||||
import type { DeriveStakingQuery, StakingQueryFlags } from '../types';
|
import type { DeriveStakingQuery, StakingQueryFlags } from '../types';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
import { memo } from '../util';
|
import { memo } from '../util';
|
||||||
|
|
||||||
function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<Nominations>, rewardDestination: RewardDestination, validatorPrefs: ValidatorPrefs, exposure: Exposure, stakingLedgerOpt: Option<StakingLedger>): DeriveStakingQuery {
|
function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestination: PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: PalletStakingExposure, stakingLedgerOpt: Option<PalletStakingStakingLedger>): DeriveStakingQuery {
|
||||||
return {
|
return {
|
||||||
accountId: stashId,
|
accountId: stashId,
|
||||||
controllerId: controllerIdOpt && controllerIdOpt.unwrapOr(null),
|
controllerId: controllerIdOpt && controllerIdOpt.unwrapOr(null),
|
||||||
@@ -26,21 +27,21 @@ function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> |
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLedgers (api: ApiInterfaceRx, optIds: (Option<AccountId> | null)[], { withLedger = false }: StakingQueryFlags): Observable<Option<StakingLedger>[]> {
|
function getLedgers (api: ApiInterfaceRx, optIds: (Option<AccountId> | null)[], { withLedger = false }: StakingQueryFlags): Observable<Option<PalletStakingStakingLedger>[]> {
|
||||||
const ids = optIds
|
const ids = optIds
|
||||||
.filter((opt): opt is Option<AccountId> => withLedger && !!opt && opt.isSome)
|
.filter((opt): opt is Option<AccountId> => withLedger && !!opt && opt.isSome)
|
||||||
.map((opt) => opt.unwrap());
|
.map((opt) => opt.unwrap());
|
||||||
const emptyLed = api.registry.createType('Option<StakingLedger>');
|
const emptyLed = api.registry.createType<Option<PalletStakingStakingLedger>>('Option<StakingLedger>');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
ids.length
|
ids.length
|
||||||
? api.query.staking.ledger.multi<Option<StakingLedger>>(ids)
|
? api.query.staking.ledger.multi(ids)
|
||||||
: of([])
|
: of([])
|
||||||
).pipe(
|
).pipe(
|
||||||
map((optLedgers): Option<StakingLedger>[] => {
|
map((optLedgers): Option<PalletStakingStakingLedger>[] => {
|
||||||
let offset = -1;
|
let offset = -1;
|
||||||
|
|
||||||
return optIds.map((opt): Option<StakingLedger> =>
|
return optIds.map((opt): Option<PalletStakingStakingLedger> =>
|
||||||
opt && opt.isSome
|
opt && opt.isSome
|
||||||
? optLedgers[++offset] || emptyLed
|
? optLedgers[++offset] || emptyLed
|
||||||
: emptyLed
|
: emptyLed
|
||||||
@@ -49,27 +50,27 @@ function getLedgers (api: ApiInterfaceRx, optIds: (Option<AccountId> | null)[],
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getStashInfo (api: ApiInterfaceRx, stashIds: AccountId[], activeEra: EraIndex, { withController, withDestination, withExposure, withLedger, withNominations, withPrefs }: StakingQueryFlags): Observable<[(Option<AccountId> | null)[], Option<Nominations>[], RewardDestination[], ValidatorPrefs[], Exposure[]]> {
|
function getStashInfo (api: ApiInterfaceRx, stashIds: AccountId[], activeEra: EraIndex, { withController, withDestination, withExposure, withLedger, withNominations, withPrefs }: StakingQueryFlags): Observable<[(Option<AccountId> | null)[], Option<PalletStakingNominations>[], PalletStakingRewardDestination[], PalletStakingValidatorPrefs[], PalletStakingExposure[]]> {
|
||||||
const emptyNoms = api.registry.createType('Option<Nominations>');
|
const emptyNoms = api.registry.createType<Option<PalletStakingNominations>>('Option<Nominations>');
|
||||||
const emptyRewa = api.registry.createType('RewardDestination');
|
const emptyRewa = api.registry.createType<PalletStakingRewardDestination>('RewardDestination');
|
||||||
const emptyExpo = api.registry.createType('Exposure');
|
const emptyExpo = api.registry.createType<PalletStakingExposure>('Exposure');
|
||||||
const emptyPrefs = api.registry.createType('ValidatorPrefs');
|
const emptyPrefs = api.registry.createType<PalletStakingValidatorPrefs>('ValidatorPrefs');
|
||||||
|
|
||||||
return combineLatest([
|
return combineLatest([
|
||||||
withController || withLedger
|
withController || withLedger
|
||||||
? api.query.staking.bonded.multi<Option<AccountId>>(stashIds)
|
? api.query.staking.bonded.multi(stashIds)
|
||||||
: of(stashIds.map(() => null)),
|
: of(stashIds.map(() => null)),
|
||||||
withNominations
|
withNominations
|
||||||
? api.query.staking.nominators.multi<Option<Nominations>>(stashIds)
|
? api.query.staking.nominators.multi(stashIds)
|
||||||
: of(stashIds.map(() => emptyNoms)),
|
: of(stashIds.map(() => emptyNoms)),
|
||||||
withDestination
|
withDestination
|
||||||
? api.query.staking.payee.multi<RewardDestination>(stashIds)
|
? api.query.staking.payee.multi(stashIds)
|
||||||
: of(stashIds.map(() => emptyRewa)),
|
: of(stashIds.map(() => emptyRewa)),
|
||||||
withPrefs
|
withPrefs
|
||||||
? api.query.staking.validators.multi<ValidatorPrefs>(stashIds)
|
? api.query.staking.validators.multi(stashIds)
|
||||||
: of(stashIds.map(() => emptyPrefs)),
|
: of(stashIds.map(() => emptyPrefs)),
|
||||||
withExposure
|
withExposure
|
||||||
? api.query.staking.erasStakers.multi<Exposure>(stashIds.map((stashId) => [activeEra, stashId]))
|
? api.query.staking.erasStakers.multi(stashIds.map((stashId) => [activeEra, stashId]))
|
||||||
: of(stashIds.map(() => emptyExpo))
|
: of(stashIds.map(() => emptyExpo))
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { EraIndex, ValidatorPrefs } from '@polkadot/types/interfaces';
|
import type { EraIndex } from '@polkadot/types/interfaces';
|
||||||
import type { DeriveStakerPrefs } from '../types';
|
import type { DeriveStakerPrefs } from '../types';
|
||||||
|
|
||||||
import { map, switchMap } from 'rxjs';
|
import { map, switchMap } from 'rxjs';
|
||||||
@@ -13,7 +13,7 @@ import { memo } from '../util';
|
|||||||
export function _stakerPrefs (instanceId: string, api: ApiInterfaceRx): (accountId: Uint8Array | string, eras: EraIndex[], withActive: boolean) => Observable<DeriveStakerPrefs[]> {
|
export function _stakerPrefs (instanceId: string, api: ApiInterfaceRx): (accountId: Uint8Array | string, eras: EraIndex[], withActive: boolean) => Observable<DeriveStakerPrefs[]> {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean): Observable<DeriveStakerPrefs[]> =>
|
return memo(instanceId, (accountId: Uint8Array | string, eras: EraIndex[], _withActive: boolean): Observable<DeriveStakerPrefs[]> =>
|
||||||
api.query.staking.erasValidatorPrefs.multi<ValidatorPrefs>(eras.map((era) => [era, accountId])).pipe(
|
api.query.staking.erasValidatorPrefs.multi(eras.map((era) => [era, accountId])).pipe(
|
||||||
map((all): DeriveStakerPrefs[] =>
|
map((all): DeriveStakerPrefs[] =>
|
||||||
all.map((validatorPrefs, index): DeriveStakerPrefs => ({
|
all.map((validatorPrefs, index): DeriveStakerPrefs => ({
|
||||||
era: eras[index],
|
era: eras[index],
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||||
import type { AccountId, EraIndex, StakingLedger } from '@polkadot/types/interfaces';
|
import type { AccountId, EraIndex } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletStakingStakingLedger } from '@polkadot/types/lookup';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { DeriveEraPoints, DeriveEraPrefs, DeriveEraRewards, DeriveEraValPrefs, DeriveStakerExposure, DeriveStakerReward, DeriveStakerRewardValidator } from '../types';
|
import type { DeriveEraPoints, DeriveEraPrefs, DeriveEraRewards, DeriveEraValPrefs, DeriveStakerExposure, DeriveStakerReward, DeriveStakerRewardValidator } from '../types';
|
||||||
import type { DeriveStakingQuery } from './types';
|
import type { DeriveStakingQuery } from './types';
|
||||||
@@ -108,7 +109,7 @@ function removeClaimed (validators: string[], queryValidators: DeriveStakingQuer
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][], { rewards, stakingLedger }: { rewards: DeriveStakerReward[]; stakingLedger: StakingLedger }): DeriveStakerReward[] {
|
function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][], { rewards, stakingLedger }: { rewards: DeriveStakerReward[]; stakingLedger: PalletStakingStakingLedger }): DeriveStakerReward[] {
|
||||||
const filter = eras.filter((era) => !stakingLedger.claimedRewards.some((e) => e.eq(era)));
|
const filter = eras.filter((era) => !stakingLedger.claimedRewards.some((e) => e.eq(era)));
|
||||||
const validators = valInfo.map(([v]) => v);
|
const validators = valInfo.map(([v]) => v);
|
||||||
const queryValidators = valInfo.map(([, q]) => q);
|
const queryValidators = valInfo.map(([, q]) => q);
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2021 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { AccountId, Balance, EraIndex, Exposure, RewardDestination, RewardPoint, StakingLedger, ValidatorPrefs } from '@polkadot/types/interfaces';
|
import type { AccountId, Balance, EraIndex, RewardPoint } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletStakingExposure, PalletStakingRewardDestination, PalletStakingStakingLedger, PalletStakingValidatorPrefs } from '@polkadot/types/lookup';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
import type { DeriveSessionIndexes } from '../session/types';
|
import type { DeriveSessionIndexes } from '../session/types';
|
||||||
|
|
||||||
export type DeriveEraValPoints = Record<string, RewardPoint>;
|
export type DeriveEraValPoints = Record<string, RewardPoint>;
|
||||||
|
|
||||||
export type DeriveEraValPrefs = Record<string, ValidatorPrefs>;
|
export type DeriveEraValPrefs = Record<string, PalletStakingValidatorPrefs>;
|
||||||
|
|
||||||
export type DeriveEraValSlash = Record<string, Balance>;
|
export type DeriveEraValSlash = Record<string, Balance>;
|
||||||
|
|
||||||
@@ -40,9 +41,9 @@ export interface DeriveStakerPoints {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface DeriveOwnExposure {
|
export interface DeriveOwnExposure {
|
||||||
clipped: Exposure;
|
clipped: PalletStakingExposure;
|
||||||
era: EraIndex;
|
era: EraIndex;
|
||||||
exposure: Exposure;
|
exposure: PalletStakingExposure;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeriveEraExposureNominating {
|
export interface DeriveEraExposureNominating {
|
||||||
@@ -52,7 +53,7 @@ export interface DeriveEraExposureNominating {
|
|||||||
|
|
||||||
export type DeriveEraNominatorExposure = Record<string, DeriveEraExposureNominating[]>;
|
export type DeriveEraNominatorExposure = Record<string, DeriveEraExposureNominating[]>;
|
||||||
|
|
||||||
export type DeriveEraValidatorExposure = Record<string, Exposure>;
|
export type DeriveEraValidatorExposure = Record<string, PalletStakingExposure>;
|
||||||
|
|
||||||
export interface DeriveEraExposure {
|
export interface DeriveEraExposure {
|
||||||
era: EraIndex;
|
era: EraIndex;
|
||||||
@@ -70,7 +71,7 @@ export interface DeriveStakerExposure {
|
|||||||
|
|
||||||
export interface DeriveStakerPrefs {
|
export interface DeriveStakerPrefs {
|
||||||
era: EraIndex;
|
era: EraIndex;
|
||||||
validatorPrefs: ValidatorPrefs;
|
validatorPrefs: PalletStakingValidatorPrefs;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeriveStakerRewardValidator {
|
export interface DeriveStakerRewardValidator {
|
||||||
@@ -106,16 +107,16 @@ export interface DeriveStakingValidators {
|
|||||||
|
|
||||||
export interface DeriveStakingStash {
|
export interface DeriveStakingStash {
|
||||||
controllerId: AccountId | null;
|
controllerId: AccountId | null;
|
||||||
exposure: Exposure;
|
exposure: PalletStakingExposure;
|
||||||
nominators: AccountId[];
|
nominators: AccountId[];
|
||||||
rewardDestination: RewardDestination;
|
rewardDestination: PalletStakingRewardDestination;
|
||||||
stashId: AccountId;
|
stashId: AccountId;
|
||||||
validatorPrefs: ValidatorPrefs;
|
validatorPrefs: PalletStakingValidatorPrefs;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeriveStakingQuery extends DeriveStakingStash {
|
export interface DeriveStakingQuery extends DeriveStakingStash {
|
||||||
accountId: AccountId;
|
accountId: AccountId;
|
||||||
stakingLedger: StakingLedger;
|
stakingLedger: PalletStakingStakingLedger;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeriveStakingElected {
|
export interface DeriveStakingElected {
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ function retrieveProposals (api: ApiInterfaceRx, proposalCount: ProposalIndex, a
|
|||||||
const allIds = [...proposalIds, ...approvalIds];
|
const allIds = [...proposalIds, ...approvalIds];
|
||||||
|
|
||||||
return combineLatest([
|
return combineLatest([
|
||||||
api.query.treasury.proposals.multi<Option<TreasuryProposal>>(allIds),
|
api.query.treasury.proposals.multi(allIds),
|
||||||
api.derive.council
|
api.derive.council
|
||||||
? api.derive.council.proposals()
|
? api.derive.council.proposals()
|
||||||
: of([] as DeriveCollectiveProposal[])
|
: of([] as DeriveCollectiveProposal[])
|
||||||
|
|||||||
@@ -2,52 +2,22 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { u32 } from '@polkadot/types';
|
import type { u32 } from '@polkadot/types';
|
||||||
import type { AccountId, Balance, BalanceLock, BalanceLockTo212, BalanceOf, Bid, BidKind, BlockNumber, Bounty, BountyIndex, Hash, Index, Proposal, ProposalIndex, SetIndex, SocietyVote, StrikeCount, TreasuryProposal, Votes, VouchingStatus } from '@polkadot/types/interfaces';
|
import type { Balance, BlockNumber, BountyIndex, Hash, Proposal, ProposalIndex, SetIndex, TreasuryProposal, Votes } from '@polkadot/types/interfaces';
|
||||||
|
import type { PalletBountiesBounty } from '@polkadot/types/lookup';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@polkadot/util';
|
||||||
|
|
||||||
export * from './accounts/types';
|
export * from './accounts/types';
|
||||||
|
export * from './balances/types';
|
||||||
export * from './council/types';
|
export * from './council/types';
|
||||||
export * from './crowdloan/types';
|
export * from './crowdloan/types';
|
||||||
export * from './democracy/types';
|
export * from './democracy/types';
|
||||||
export * from './elections/types';
|
export * from './elections/types';
|
||||||
export * from './parachains/types';
|
export * from './parachains/types';
|
||||||
export * from './session/types';
|
export * from './session/types';
|
||||||
|
export * from './society/types';
|
||||||
export * from './staking/types';
|
export * from './staking/types';
|
||||||
export * from './type/types';
|
export * from './type/types';
|
||||||
|
|
||||||
export interface DeriveBalancesAccountData {
|
|
||||||
freeBalance: Balance;
|
|
||||||
frozenFee: Balance;
|
|
||||||
frozenMisc: Balance;
|
|
||||||
reservedBalance: Balance;
|
|
||||||
votingBalance: Balance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DeriveBalancesAccount extends DeriveBalancesAccountData {
|
|
||||||
accountId: AccountId;
|
|
||||||
accountNonce: Index;
|
|
||||||
additional: DeriveBalancesAccountData[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DeriveBalancesAllAccountData extends DeriveBalancesAccountData {
|
|
||||||
availableBalance: Balance;
|
|
||||||
lockedBalance: Balance;
|
|
||||||
lockedBreakdown: (BalanceLock | BalanceLockTo212)[];
|
|
||||||
vestingLocked: Balance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DeriveBalancesAll extends DeriveBalancesAccount, DeriveBalancesAllAccountData {
|
|
||||||
additional: DeriveBalancesAllAccountData[];
|
|
||||||
isVesting: boolean;
|
|
||||||
vestedBalance: Balance;
|
|
||||||
vestedClaimable: Balance;
|
|
||||||
vestingEndBlock: BlockNumber;
|
|
||||||
vestingPerBlock: Balance;
|
|
||||||
vestingTotal: Balance;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DeriveBalancesMap = Record<string, DeriveBalancesAll>;
|
|
||||||
|
|
||||||
export interface DeriveContractFees {
|
export interface DeriveContractFees {
|
||||||
callBaseFee: BN;
|
callBaseFee: BN;
|
||||||
contractFee: BN;
|
contractFee: BN;
|
||||||
@@ -90,33 +60,6 @@ export interface RecentlyOffline {
|
|||||||
|
|
||||||
export type DeriveRecentlyOffline = Record<string, RecentlyOffline[]>;
|
export type DeriveRecentlyOffline = Record<string, RecentlyOffline[]>;
|
||||||
|
|
||||||
export interface DeriveSociety {
|
|
||||||
bids: Bid[];
|
|
||||||
defender?: AccountId;
|
|
||||||
hasDefender: boolean;
|
|
||||||
head?: AccountId;
|
|
||||||
founder?: AccountId;
|
|
||||||
maxMembers: u32;
|
|
||||||
pot: BalanceOf;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DeriveSocietyCandidate {
|
|
||||||
accountId: AccountId;
|
|
||||||
kind: BidKind;
|
|
||||||
value: Balance;
|
|
||||||
isSuspended: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DeriveSocietyMember {
|
|
||||||
accountId: AccountId;
|
|
||||||
isDefenderVoter: boolean;
|
|
||||||
isSuspended: boolean;
|
|
||||||
payouts: [BlockNumber, Balance][];
|
|
||||||
strikes: StrikeCount;
|
|
||||||
vote?: SocietyVote;
|
|
||||||
vouching?: VouchingStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DeriveTreasuryProposal {
|
export interface DeriveTreasuryProposal {
|
||||||
council: DeriveCollectiveProposal[];
|
council: DeriveCollectiveProposal[];
|
||||||
id: ProposalIndex;
|
id: ProposalIndex;
|
||||||
@@ -138,7 +81,7 @@ export interface VoterPosition {
|
|||||||
export type DeriveVoterPositions = Record<string, VoterPosition>;
|
export type DeriveVoterPositions = Record<string, VoterPosition>;
|
||||||
|
|
||||||
export interface DeriveBounty {
|
export interface DeriveBounty {
|
||||||
bounty: Bounty;
|
bounty: PalletBountiesBounty;
|
||||||
description: string;
|
description: string;
|
||||||
index: BountyIndex;
|
index: BountyIndex;
|
||||||
proposals: DeriveCollectiveProposal[];
|
proposals: DeriveCollectiveProposal[];
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api",
|
"name": "@polkadot/api",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -20,12 +20,12 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.15.4",
|
"@babel/runtime": "^7.15.4",
|
||||||
"@polkadot/api-derive": "6.1.1",
|
"@polkadot/api-derive": "6.2.1",
|
||||||
"@polkadot/keyring": "^7.4.1",
|
"@polkadot/keyring": "^7.4.1",
|
||||||
"@polkadot/rpc-core": "6.1.1",
|
"@polkadot/rpc-core": "6.2.1",
|
||||||
"@polkadot/rpc-provider": "6.1.1",
|
"@polkadot/rpc-provider": "6.2.1",
|
||||||
"@polkadot/types": "6.1.1",
|
"@polkadot/types": "6.2.1",
|
||||||
"@polkadot/types-known": "6.1.1",
|
"@polkadot/types-known": "6.2.1",
|
||||||
"@polkadot/util": "^7.4.1",
|
"@polkadot/util": "^7.4.1",
|
||||||
"@polkadot/util-crypto": "^7.4.1",
|
"@polkadot/util-crypto": "^7.4.1",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
|
|||||||
@@ -63,6 +63,62 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
* the probability of a slot being empty).
|
* the probability of a slot being empty).
|
||||||
**/
|
**/
|
||||||
expectedBlockTime: u64 & AugmentedConst<ApiType>;
|
expectedBlockTime: u64 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Max number of authorities allowed
|
||||||
|
**/
|
||||||
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
|
bagsList: {
|
||||||
|
/**
|
||||||
|
* The list of thresholds separating the various bags.
|
||||||
|
*
|
||||||
|
* Ids are separated into unsorted bags according to their vote weight. This specifies the
|
||||||
|
* thresholds separating the bags. An id's bag is the largest bag for which the id's weight
|
||||||
|
* is less than or equal to its upper threshold.
|
||||||
|
*
|
||||||
|
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
||||||
|
* that iteration is _semi-sorted_: ids of higher weight tend to come before ids of lower
|
||||||
|
* weight, but peer ids within a particular bag are sorted in insertion order.
|
||||||
|
*
|
||||||
|
* # Expressing the constant
|
||||||
|
*
|
||||||
|
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
||||||
|
* permitted.
|
||||||
|
*
|
||||||
|
* There is an implied upper limit of `VoteWeight::MAX`; that value does not need to be
|
||||||
|
* specified within the bag. For any two threshold lists, if one ends with
|
||||||
|
* `VoteWeight::MAX`, the other one does not, and they are otherwise equal, the two lists
|
||||||
|
* will behave identically.
|
||||||
|
*
|
||||||
|
* # Calculation
|
||||||
|
*
|
||||||
|
* It is recommended to generate the set of thresholds in a geometric series, such that
|
||||||
|
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
||||||
|
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
||||||
|
*
|
||||||
|
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
||||||
|
*
|
||||||
|
* # Examples
|
||||||
|
*
|
||||||
|
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
||||||
|
* iteration is strictly in insertion order.
|
||||||
|
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
||||||
|
* the procedure given above, then the constant ratio is equal to 2.
|
||||||
|
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
||||||
|
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
||||||
|
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with weight 0 or 1 will fall
|
||||||
|
* into bag 0, an id with weight 2 will fall into bag 1, etc.
|
||||||
|
*
|
||||||
|
* # Migration
|
||||||
|
*
|
||||||
|
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
||||||
|
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
||||||
|
**/
|
||||||
|
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -89,7 +145,8 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
};
|
};
|
||||||
bounties: {
|
bounties: {
|
||||||
/**
|
/**
|
||||||
* Percentage of the curator fee that will be reserved upfront as deposit for bounty curator.
|
* Percentage of the curator fee that will be reserved upfront as deposit for bounty
|
||||||
|
* curator.
|
||||||
**/
|
**/
|
||||||
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
|
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -109,7 +166,7 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
**/
|
**/
|
||||||
bountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
bountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The amount held on deposit per byte within bounty description.
|
* The amount held on deposit per byte within the tip report reason or bounty description.
|
||||||
**/
|
**/
|
||||||
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
@@ -279,6 +336,15 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
* Duration of the unsigned phase.
|
* Duration of the unsigned phase.
|
||||||
**/
|
**/
|
||||||
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The maximum number of voters to put in the snapshot. At the moment, snapshots are only
|
||||||
|
* over a single block, but once multi-block elections are introduced they will take place
|
||||||
|
* over multiple blocks.
|
||||||
|
*
|
||||||
|
* Also, note the data type: If the voters are represented by a `u32` in `type
|
||||||
|
* CompactSolution`, the same `u32` is used here to ensure bounds are respected.
|
||||||
|
**/
|
||||||
|
voterSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Generic const
|
* Generic const
|
||||||
**/
|
**/
|
||||||
@@ -377,6 +443,16 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: Codec;
|
[key: string]: Codec;
|
||||||
};
|
};
|
||||||
|
grandpa: {
|
||||||
|
/**
|
||||||
|
* Max Authorities in use
|
||||||
|
**/
|
||||||
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* Generic const
|
||||||
|
**/
|
||||||
|
[key: string]: Codec;
|
||||||
|
};
|
||||||
identity: {
|
identity: {
|
||||||
/**
|
/**
|
||||||
* The amount held on deposit for a registered identity
|
* The amount held on deposit for a registered identity
|
||||||
@@ -583,16 +659,20 @@ declare module '@polkadot/api/types/consts' {
|
|||||||
**/
|
**/
|
||||||
challengePeriod: u32 & AugmentedConst<ApiType>;
|
challengePeriod: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* Maximum candidate intake per round.
|
* The maximum number of candidates that we accept per round.
|
||||||
**/
|
**/
|
||||||
maxCandidateIntake: u32 & AugmentedConst<ApiType>;
|
maxCandidateIntake: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The number of times a member may vote the wrong way (or not at all, when they are a skeptic)
|
* The maximum duration of the payout lock.
|
||||||
* before they become suspended.
|
**/
|
||||||
|
maxLockDuration: u32 & AugmentedConst<ApiType>;
|
||||||
|
/**
|
||||||
|
* The number of times a member may vote the wrong way (or not at all, when they are a
|
||||||
|
* skeptic) before they become suspended.
|
||||||
**/
|
**/
|
||||||
maxStrikes: u32 & AugmentedConst<ApiType>;
|
maxStrikes: u32 & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
* The societies's module id
|
* The societies's pallet id
|
||||||
**/
|
**/
|
||||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -92,6 +92,16 @@ declare module '@polkadot/api/types/events' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: AugmentedEvent<ApiType>;
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
};
|
};
|
||||||
|
bagsList: {
|
||||||
|
/**
|
||||||
|
* Moved an account from one bag to another. \[who, from, to\].
|
||||||
|
**/
|
||||||
|
Rebagged: AugmentedEvent<ApiType, [AccountId32, u64, u64]>;
|
||||||
|
/**
|
||||||
|
* Generic event
|
||||||
|
**/
|
||||||
|
[key: string]: AugmentedEvent<ApiType>;
|
||||||
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* A balance was set by root. \[who, free, reserved\]
|
* A balance was set by root. \[who, free, reserved\]
|
||||||
@@ -170,47 +180,28 @@ declare module '@polkadot/api/types/events' {
|
|||||||
contracts: {
|
contracts: {
|
||||||
/**
|
/**
|
||||||
* A code with the specified hash was removed.
|
* A code with the specified hash was removed.
|
||||||
* \[code_hash\]
|
|
||||||
*
|
*
|
||||||
* This happens when the last contract that uses this code hash was removed.
|
* This happens when the last contract that uses this code hash was removed.
|
||||||
**/
|
**/
|
||||||
CodeRemoved: AugmentedEvent<ApiType, [H256]>;
|
CodeRemoved: AugmentedEvent<ApiType, [H256]>;
|
||||||
/**
|
/**
|
||||||
* Code with the specified hash has been stored. \[code_hash\]
|
* Code with the specified hash has been stored.
|
||||||
**/
|
**/
|
||||||
CodeStored: AugmentedEvent<ApiType, [H256]>;
|
CodeStored: AugmentedEvent<ApiType, [H256]>;
|
||||||
/**
|
/**
|
||||||
* A custom event emitted by the contract.
|
* A custom event emitted by the contract.
|
||||||
* \[contract, data\]
|
|
||||||
*
|
|
||||||
* # Params
|
|
||||||
*
|
|
||||||
* - `contract`: The contract that emitted the event.
|
|
||||||
* - `data`: Data supplied by the contract. Metadata generated during contract compilation
|
|
||||||
* is needed to decode it.
|
|
||||||
**/
|
**/
|
||||||
ContractEmitted: AugmentedEvent<ApiType, [AccountId32, Bytes]>;
|
ContractEmitted: AugmentedEvent<ApiType, [AccountId32, Bytes]>;
|
||||||
/**
|
/**
|
||||||
* Contract deployed by address at the specified address. \[deployer, contract\]
|
* Contract deployed by address at the specified address.
|
||||||
**/
|
**/
|
||||||
Instantiated: AugmentedEvent<ApiType, [AccountId32, AccountId32]>;
|
Instantiated: AugmentedEvent<ApiType, [AccountId32, AccountId32]>;
|
||||||
/**
|
/**
|
||||||
* Triggered when the current schedule is updated.
|
* Triggered when the current schedule is updated.
|
||||||
* \[version\]
|
|
||||||
*
|
|
||||||
* # Params
|
|
||||||
*
|
|
||||||
* - `version`: The version of the newly set schedule.
|
|
||||||
**/
|
**/
|
||||||
ScheduleUpdated: AugmentedEvent<ApiType, [u32]>;
|
ScheduleUpdated: AugmentedEvent<ApiType, [u32]>;
|
||||||
/**
|
/**
|
||||||
* Contract has been removed.
|
* Contract has been removed.
|
||||||
* \[contract, beneficiary\]
|
|
||||||
*
|
|
||||||
* # Params
|
|
||||||
*
|
|
||||||
* - `contract`: The contract that was terminated.
|
|
||||||
* - `beneficiary`: The account that received the contracts remaining balance.
|
|
||||||
*
|
*
|
||||||
* # Note
|
* # Note
|
||||||
*
|
*
|
||||||
@@ -761,7 +752,8 @@ declare module '@polkadot/api/types/events' {
|
|||||||
Vote: AugmentedEvent<ApiType, [AccountId32, AccountId32, bool]>;
|
Vote: AugmentedEvent<ApiType, [AccountId32, AccountId32, bool]>;
|
||||||
/**
|
/**
|
||||||
* A membership bid just happened by vouching. The given account is the candidate's ID and
|
* A membership bid just happened by vouching. The given account is the candidate's ID and
|
||||||
* their offer is the second. The vouching party is the third. \[candidate_id, offer, vouching\]
|
* their offer is the second. The vouching party is the third. \[candidate_id, offer,
|
||||||
|
* vouching\]
|
||||||
**/
|
**/
|
||||||
Vouch: AugmentedEvent<ApiType, [AccountId32, u128, AccountId32]>;
|
Vouch: AugmentedEvent<ApiType, [AccountId32, u128, AccountId32]>;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { ApiTypes } from '@polkadot/api/types';
|
import type { ApiTypes } from '@polkadot/api/types';
|
||||||
import type { BTreeMap, Bytes, Data, Null, Option, U8aFixed, Vec, bool, u128, u32, u64, u8 } from '@polkadot/types';
|
import type { BTreeMap, Bytes, Data, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types';
|
||||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetBalance, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV2, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeGenericDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetBalance, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV2, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeGenericDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||||
import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
|
import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/api/types/storage' {
|
declare module '@polkadot/api/types/storage' {
|
||||||
@@ -153,6 +153,28 @@ declare module '@polkadot/api/types/storage' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: QueryableStorageEntry<ApiType>;
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
};
|
};
|
||||||
|
bagsList: {
|
||||||
|
/**
|
||||||
|
* How many ids are registered.
|
||||||
|
**/
|
||||||
|
counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
|
/**
|
||||||
|
* A bag stored in storage.
|
||||||
|
*
|
||||||
|
* Stores a `Bag` struct, which stores head and tail pointers to itself.
|
||||||
|
**/
|
||||||
|
listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
||||||
|
/**
|
||||||
|
* A single node, within some bag.
|
||||||
|
*
|
||||||
|
* Nodes store links forward and back within their respective bags.
|
||||||
|
**/
|
||||||
|
listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Generic query
|
||||||
|
**/
|
||||||
|
[key: string]: QueryableStorageEntry<ApiType>;
|
||||||
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* The balance of an account.
|
* The balance of an account.
|
||||||
@@ -582,10 +604,10 @@ declare module '@polkadot/api/types/storage' {
|
|||||||
**/
|
**/
|
||||||
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||||
/**
|
/**
|
||||||
* For each session index, we keep a mapping of `AuthIndex` to
|
* For each session index, we keep a mapping of 'SessionIndex` and `AuthIndex` to
|
||||||
* `offchain::OpaqueNetworkState`.
|
* `WrapperOpaque<BoundedOpaqueNetworkState>`.
|
||||||
**/
|
**/
|
||||||
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<WrapperOpaque<PalletImOnlineBoundedOpaqueNetworkState>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
||||||
/**
|
/**
|
||||||
* Generic query
|
* Generic query
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -462,6 +462,23 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
};
|
};
|
||||||
|
bagsList: {
|
||||||
|
/**
|
||||||
|
* Declare that some `dislocated` account has, through rewards or penalties, sufficiently
|
||||||
|
* changed its weight that it should properly fall into a different bag than its current
|
||||||
|
* one.
|
||||||
|
*
|
||||||
|
* Anyone can call this function about any potentially dislocated account.
|
||||||
|
*
|
||||||
|
* Will never return an error; if `dislocated` does not exist or doesn't need a rebag, then
|
||||||
|
* it is a noop and fees are still collected from `origin`.
|
||||||
|
**/
|
||||||
|
rebag: AugmentedSubmittable<(dislocated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||||
|
/**
|
||||||
|
* Generic tx
|
||||||
|
**/
|
||||||
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||||
|
};
|
||||||
balances: {
|
balances: {
|
||||||
/**
|
/**
|
||||||
* Exactly as `transfer`, except the origin must be root and the source account may be
|
* Exactly as `transfer`, except the origin must be root and the source account may be
|
||||||
@@ -472,6 +489,12 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* # </weight>
|
* # </weight>
|
||||||
**/
|
**/
|
||||||
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
||||||
|
/**
|
||||||
|
* Unreserve some balance from a user by force.
|
||||||
|
*
|
||||||
|
* Can only be called by ROOT.
|
||||||
|
**/
|
||||||
|
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
||||||
/**
|
/**
|
||||||
* Set the balances of a given account.
|
* Set the balances of a given account.
|
||||||
*
|
*
|
||||||
@@ -587,7 +610,8 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
**/
|
**/
|
||||||
approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||||
/**
|
/**
|
||||||
* Award bounty to a beneficiary account. The beneficiary will be able to claim the funds after a delay.
|
* Award bounty to a beneficiary account. The beneficiary will be able to claim the funds
|
||||||
|
* after a delay.
|
||||||
*
|
*
|
||||||
* The dispatch origin for this call must be the curator of this bounty.
|
* The dispatch origin for this call must be the curator of this bounty.
|
||||||
*
|
*
|
||||||
@@ -667,8 +691,8 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
*
|
*
|
||||||
* This function can only be called by the `RejectOrigin` a signed origin.
|
* This function can only be called by the `RejectOrigin` a signed origin.
|
||||||
*
|
*
|
||||||
* If this function is called by the `RejectOrigin`, we assume that the curator is malicious
|
* If this function is called by the `RejectOrigin`, we assume that the curator is
|
||||||
* or inactive. As a result, we will slash the curator when possible.
|
* malicious or inactive. As a result, we will slash the curator when possible.
|
||||||
*
|
*
|
||||||
* If the origin is the curator, we take this as a sign they are unable to do their job and
|
* If the origin is the curator, we take this as a sign they are unable to do their job and
|
||||||
* they willingly give up. We could slash them, but for now we allow them to recover their
|
* they willingly give up. We could slash them, but for now we allow them to recover their
|
||||||
@@ -2548,8 +2572,8 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* The dispatch origin of this function must be signed.
|
* The dispatch origin of this function must be signed.
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: `O(1)` in number of key types.
|
* - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
|
||||||
* Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
|
* of `T::Keys::key_ids()` which is fixed.
|
||||||
* - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
|
* - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
|
||||||
* - DbWrites: `NextKeys`, `origin account`
|
* - DbWrites: `NextKeys`, `origin account`
|
||||||
* - DbWrites per key id: `KeyOwner`
|
* - DbWrites per key id: `KeyOwner`
|
||||||
@@ -2564,8 +2588,8 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* The dispatch origin of this function must be signed.
|
* The dispatch origin of this function must be signed.
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* - Complexity: `O(1)`
|
* - Complexity: `O(1)`. Actual cost depends on the number of length of
|
||||||
* Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed.
|
* `T::Keys::key_ids()` which is fixed.
|
||||||
* - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
|
* - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
|
||||||
* - DbWrites: `origin account`, `NextKeys`
|
* - DbWrites: `origin account`, `NextKeys`
|
||||||
* - DbReads per key id: `KeyOwner`
|
* - DbReads per key id: `KeyOwner`
|
||||||
@@ -2599,12 +2623,13 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* - One storage read to retrieve all current candidates. O(C)
|
* - One storage read to retrieve all current candidates. O(C)
|
||||||
* - One storage read to retrieve all members. O(M)
|
* - One storage read to retrieve all members. O(M)
|
||||||
* - Storage Writes:
|
* - Storage Writes:
|
||||||
* - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization w/ read)
|
* - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
|
||||||
|
* w/ read)
|
||||||
* - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
|
* - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
|
||||||
* - Notable Computation:
|
* - Notable Computation:
|
||||||
* - O(B + C + log M) search to check user is not already a part of society.
|
* - O(B + C + log M) search to check user is not already a part of society.
|
||||||
* - O(log B) search to insert the new bid sorted.
|
* - O(log B) search to insert the new bid sorted.
|
||||||
* - External Module Operations:
|
* - External Pallet Operations:
|
||||||
* - One balance reserve operation. O(X)
|
* - One balance reserve operation. O(X)
|
||||||
* - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
|
* - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
|
||||||
* - Events:
|
* - Events:
|
||||||
@@ -2638,7 +2663,7 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* Found the society.
|
* Found the society.
|
||||||
*
|
*
|
||||||
* This is done as a discrete action in order to allow for the
|
* This is done as a discrete action in order to allow for the
|
||||||
* module to be included into a running chain and can only be done once.
|
* pallet to be included into a running chain and can only be done once.
|
||||||
*
|
*
|
||||||
* The dispatch origin for this call must be from the _FounderSetOrigin_.
|
* The dispatch origin for this call must be from the _FounderSetOrigin_.
|
||||||
*
|
*
|
||||||
@@ -2712,13 +2737,14 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* - `who` - The suspended member to be judged.
|
* - `who` - The suspended member to be judged.
|
||||||
* - `forgive` - A boolean representing whether the suspension judgement origin
|
* - `forgive` - A boolean representing whether the suspension judgement origin forgives
|
||||||
* forgives (`true`) or rejects (`false`) a suspended member.
|
* (`true`) or rejects (`false`) a suspended member.
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* Key: B (len of bids), M (len of members)
|
* Key: B (len of bids), M (len of members)
|
||||||
* - One storage read to check `who` is a suspended member. O(1)
|
* - One storage read to check `who` is a suspended member. O(1)
|
||||||
* - Up to one storage write O(M) with O(log M) binary search to add a member back to society.
|
* - Up to one storage write O(M) with O(log M) binary search to add a member back to
|
||||||
|
* society.
|
||||||
* - Up to 3 storage removals O(1) to clean up a removed member.
|
* - Up to 3 storage removals O(1) to clean up a removed member.
|
||||||
* - Up to one storage write O(B) with O(B) search to remove vouched bid from bids.
|
* - Up to one storage write O(B) with O(B) search to remove vouched bid from bids.
|
||||||
* - Up to one additional event if unvouch takes place.
|
* - Up to one additional event if unvouch takes place.
|
||||||
@@ -2732,7 +2758,8 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
/**
|
/**
|
||||||
* Transfer the first matured payout for the sender and remove it from the records.
|
* Transfer the first matured payout for the sender and remove it from the records.
|
||||||
*
|
*
|
||||||
* NOTE: This extrinsic needs to be called multiple times to claim multiple matured payouts.
|
* NOTE: This extrinsic needs to be called multiple times to claim multiple matured
|
||||||
|
* payouts.
|
||||||
*
|
*
|
||||||
* Payment: The member will receive a payment equal to their first matured
|
* Payment: The member will receive a payment equal to their first matured
|
||||||
* payout to their free balance.
|
* payout to their free balance.
|
||||||
@@ -2834,8 +2861,8 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* - `candidate`: The candidate that the member would like to bid on.
|
* - `candidate`: The candidate that the member would like to bid on.
|
||||||
* - `approve`: A boolean which says if the candidate should be
|
* - `approve`: A boolean which says if the candidate should be approved (`true`) or
|
||||||
* approved (`true`) or rejected (`false`).
|
* rejected (`false`).
|
||||||
*
|
*
|
||||||
* # <weight>
|
* # <weight>
|
||||||
* Key: C (len of candidates), M (len of members)
|
* Key: C (len of candidates), M (len of members)
|
||||||
@@ -2879,13 +2906,14 @@ declare module '@polkadot/api/types/submittable' {
|
|||||||
* - One storage read to retrieve all current candidates. O(C)
|
* - One storage read to retrieve all current candidates. O(C)
|
||||||
* - Storage Writes:
|
* - Storage Writes:
|
||||||
* - One storage write to insert vouching status to the member. O(1)
|
* - One storage write to insert vouching status to the member. O(1)
|
||||||
* - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization w/ read)
|
* - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
|
||||||
|
* w/ read)
|
||||||
* - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
|
* - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
|
||||||
* - Notable Computation:
|
* - Notable Computation:
|
||||||
* - O(log M) search to check sender is a member.
|
* - O(log M) search to check sender is a member.
|
||||||
* - O(B + C + log M) search to check user is not already a part of society.
|
* - O(B + C + log M) search to check user is not already a part of society.
|
||||||
* - O(log B) search to insert the new bid sorted.
|
* - O(log B) search to insert the new bid sorted.
|
||||||
* - External Module Operations:
|
* - External Pallet Operations:
|
||||||
* - One balance reserve operation. O(X)
|
* - One balance reserve operation. O(X)
|
||||||
* - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
|
* - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
|
||||||
* - Events:
|
* - Events:
|
||||||
|
|||||||
@@ -198,6 +198,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
errors: {},
|
errors: {},
|
||||||
events: {},
|
events: {},
|
||||||
query: {},
|
query: {},
|
||||||
|
registry: registry.registry,
|
||||||
rx: {
|
rx: {
|
||||||
query: {}
|
query: {}
|
||||||
}
|
}
|
||||||
@@ -237,6 +238,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
errors: {},
|
errors: {},
|
||||||
events: {},
|
events: {},
|
||||||
query: {},
|
query: {},
|
||||||
|
registry: registry.registry,
|
||||||
rx: {
|
rx: {
|
||||||
query: {}
|
query: {}
|
||||||
}
|
}
|
||||||
@@ -371,9 +373,11 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
: this._rpcCore.state.queryStorageAt)(
|
: this._rpcCore.state.queryStorageAt)(
|
||||||
calls.map((args: QueryableStorageMultiArg<ApiType>) =>
|
calls.map((args: QueryableStorageMultiArg<ApiType>) =>
|
||||||
Array.isArray(args)
|
Array.isArray(args)
|
||||||
? args[0].creator.meta.type.asMap.hashers.length === 1
|
? args[0].creator.meta.type.isPlain
|
||||||
? [args[0].creator, args.slice(1)]
|
? [args[0].creator]
|
||||||
: [args[0].creator, ...args.slice(1)]
|
: args[0].creator.meta.type.asMap.hashers.length === 1
|
||||||
|
? [args[0].creator, args.slice(1)]
|
||||||
|
: [args[0].creator, ...args.slice(1)]
|
||||||
: [args.creator])));
|
: [args.creator])));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -415,10 +419,10 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
}, {} as QueryableStorage<ApiType>);
|
}, {} as QueryableStorage<ApiType>);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected _decorateStorageAt<ApiType extends ApiTypes> ({ query }: DecoratedMeta, decorateMethod: DecorateMethod<ApiType>, blockHash: Uint8Array): QueryableStorageAt<ApiType> {
|
protected _decorateStorageAt<ApiType extends ApiTypes> ({ query, registry }: DecoratedMeta, decorateMethod: DecorateMethod<ApiType>, blockHash: Uint8Array): QueryableStorageAt<ApiType> {
|
||||||
return Object.entries(query).reduce((out, [name, section]): QueryableStorageAt<ApiType> => {
|
return Object.entries(query).reduce((out, [name, section]): QueryableStorageAt<ApiType> => {
|
||||||
out[name] = Object.entries(section).reduce((out, [name, method]): QueryableModuleStorageAt<ApiType> => {
|
out[name] = Object.entries(section).reduce((out, [name, method]): QueryableModuleStorageAt<ApiType> => {
|
||||||
out[name] = this._decorateStorageEntryAt(method, decorateMethod, blockHash);
|
out[name] = this._decorateStorageEntryAt(registry, method, decorateMethod, blockHash);
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}, {} as QueryableModuleStorageAt<ApiType>);
|
}, {} as QueryableModuleStorageAt<ApiType>);
|
||||||
@@ -510,9 +514,9 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
|||||||
return this._decorateFunctionMeta(creator as any, decorated) as unknown as QueryableStorageEntry<ApiType>;
|
return this._decorateFunctionMeta(creator as any, decorated) as unknown as QueryableStorageEntry<ApiType>;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _decorateStorageEntryAt<ApiType extends ApiTypes> (creator: StorageEntry, decorateMethod: DecorateMethod<ApiType>, blockHash: Uint8Array): QueryableStorageEntryAt<ApiType> {
|
private _decorateStorageEntryAt<ApiType extends ApiTypes> (registry: Registry, creator: StorageEntry, decorateMethod: DecorateMethod<ApiType>, blockHash: Uint8Array): QueryableStorageEntryAt<ApiType> {
|
||||||
// get the storage arguments, with DoubleMap as an array entry, otherwise spread
|
// get the storage arguments, with DoubleMap as an array entry, otherwise spread
|
||||||
const getArgs = (args: unknown[]): unknown[] => extractStorageArgs(this.#registry, creator, args);
|
const getArgs = (args: unknown[]): unknown[] => extractStorageArgs(registry, creator, args);
|
||||||
|
|
||||||
// Disable this where it occurs for each field we are decorating
|
// Disable this where it occurs for each field we are decorating
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment */
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment */
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ async function query (api: ApiPromise, pairs: TestKeyringMap): Promise<void> {
|
|||||||
const oldBal = await api.query.balances.totalIssuance.at('abcd');
|
const oldBal = await api.query.balances.totalIssuance.at('abcd');
|
||||||
// It's hard to correctly type .multi. Expected: `Balance[]`, actual: Codec[].
|
// It's hard to correctly type .multi. Expected: `Balance[]`, actual: Codec[].
|
||||||
// In the meantime, we can case with `<Balance>` (this is not available on recent chains)
|
// In the meantime, we can case with `<Balance>` (this is not available on recent chains)
|
||||||
const multi = await api.query.balances.freeBalance.multi<Balance>([pairs.alice.address, pairs.bob.address]);
|
const multi = await api.query.balances.freeBalance.multi([pairs.alice.address, pairs.bob.address]);
|
||||||
|
|
||||||
console.log('query types:', bar, bal, bal2, override, oldBal, multi);
|
console.log('query types:', bar, bal, bal2, override, oldBal, multi);
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api', version: '6.1.1' };
|
export const packageInfo = { name: '@polkadot/api', version: '6.2.1' };
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export interface SignerOptions {
|
|||||||
nonce: AnyNumber | Codec;
|
nonce: AnyNumber | Codec;
|
||||||
signer?: Signer;
|
signer?: Signer;
|
||||||
tip?: AnyNumber;
|
tip?: AnyNumber;
|
||||||
|
assetId?: AnyNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AddressOrPair = IKeyringPair | string | AccountId | Address;
|
export type AddressOrPair = IKeyringPair | string | AccountId | Address;
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ export interface ApiDecoration<ApiType extends ApiTypes> {
|
|||||||
errors: DecoratedErrors<ApiType>;
|
errors: DecoratedErrors<ApiType>;
|
||||||
events: DecoratedEvents<ApiType>;
|
events: DecoratedEvents<ApiType>;
|
||||||
query: QueryableStorage<ApiType>;
|
query: QueryableStorage<ApiType>;
|
||||||
|
registry: Registry;
|
||||||
rx: {
|
rx: {
|
||||||
query: QueryableStorage<'rxjs'>;
|
query: QueryableStorage<'rxjs'>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,13 +8,19 @@ import type { StorageEntry } from '@polkadot/types/primitive/types';
|
|||||||
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
|
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
|
||||||
import type { ApiTypes, DropLast, MethodResult, ObsInnerType, PaginationOptions, PromiseOrObs, UnsubscribePromise } from './base';
|
import type { ApiTypes, DropLast, MethodResult, ObsInnerType, PaginationOptions, PromiseOrObs, UnsubscribePromise } from './base';
|
||||||
|
|
||||||
interface StorageEntryObservableMulti {
|
type AsCodec<R extends Codec | any> = R extends Codec
|
||||||
<T extends Codec>(args: (unknown[] | unknown)[]): Observable<T[]>;
|
? R
|
||||||
|
: Codec;
|
||||||
|
|
||||||
|
type ReturnCodec<F extends AnyFunction> = AsCodec<ObsInnerType<ReturnType<F>>>;
|
||||||
|
|
||||||
|
interface StorageEntryObservableMulti<R extends Codec = Codec> {
|
||||||
|
<T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface StorageEntryPromiseMulti {
|
interface StorageEntryPromiseMulti<R extends Codec = Codec> {
|
||||||
<T extends Codec>(args: (unknown[] | unknown)[]): Promise<T[]>;
|
<T extends Codec = R>(args: (unknown[] | unknown)[]): Promise<T[]>;
|
||||||
<T extends Codec>(args: (unknown[] | unknown)[], callback: Callback<T[]>): UnsubscribePromise;
|
<T extends Codec = R>(args: (unknown[] | unknown)[], callback: Callback<T[]>): UnsubscribePromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StorageEntryPromiseOverloads {
|
export interface StorageEntryPromiseOverloads {
|
||||||
@@ -52,28 +58,23 @@ export interface QueryableStorageAt<ApiType extends ApiTypes> extends AugmentedQ
|
|||||||
[key: string]: QueryableModuleStorageAt<ApiType>;
|
[key: string]: QueryableModuleStorageAt<ApiType>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> {
|
export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> extends StorageEntryBaseAt<ApiType, F, A> {
|
||||||
at: <T extends Codec | any = ObsInnerType<ReturnType<F>>>(hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, T>;
|
at: <T extends Codec | any = ReturnCodec<F>>(hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, T>;
|
||||||
creator: StorageEntry;
|
creator: StorageEntry;
|
||||||
entries: <T extends Codec | any = ObsInnerType<ReturnType<F>>, K extends AnyTuple = A>(...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
entriesAt: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||||
entriesAt: <T extends Codec | any = ObsInnerType<ReturnType<F>>, K extends AnyTuple = A>(hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
entriesPaged: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||||
entriesPaged: <T extends Codec | any = ObsInnerType<ReturnType<F>>, K extends AnyTuple = A>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
|
||||||
hash: (...args: Parameters<F>) => PromiseOrObs<ApiType, Hash>;
|
|
||||||
is: (key: IStorageKey<AnyTuple>) => key is IStorageKey<A>;
|
|
||||||
key: (...args: Parameters<F>) => string;
|
|
||||||
keyPrefix: (...args: DropLast<Parameters<F>>) => string;
|
|
||||||
keys: <K extends AnyTuple = A> (...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
|
||||||
keysAt: <K extends AnyTuple = A> (hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
keysAt: <K extends AnyTuple = A> (hash: Hash | Uint8Array | string, ...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
||||||
keysPaged: <K extends AnyTuple = A> (opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
keysPaged: <K extends AnyTuple = A> (opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, StorageKey<K>[]>;
|
||||||
// @deprecated The underlying RPC this been marked unsafe and is generally not exposed
|
// @deprecated The underlying RPC this been marked unsafe and is generally not exposed
|
||||||
range: <T extends Codec | any = ObsInnerType<ReturnType<F>>>([from, to]: [Hash | Uint8Array | string, Hash | Uint8Array | string | undefined] | [Hash | Uint8Array | string], ...args: Parameters<F>) => PromiseOrObs<ApiType, [Hash, T][]>;
|
range: <T extends Codec | any = ReturnCodec<F>>([from, to]: [Hash | Uint8Array | string, Hash | Uint8Array | string | undefined] | [Hash | Uint8Array | string], ...args: Parameters<F>) => PromiseOrObs<ApiType, [Hash, T][]>;
|
||||||
size: (...args: Parameters<F>) => PromiseOrObs<ApiType, u64>;
|
|
||||||
sizeAt: (hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, u64>;
|
sizeAt: (hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, u64>;
|
||||||
multi: ApiType extends 'rxjs' ? StorageEntryObservableMulti : StorageEntryPromiseMulti;
|
multi: ApiType extends 'rxjs'
|
||||||
|
? StorageEntryObservableMulti<ReturnCodec<F>>
|
||||||
|
: StorageEntryPromiseMulti<ReturnCodec<F>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StorageEntryBaseAt<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> {
|
export interface StorageEntryBaseAt<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> {
|
||||||
entries: <T extends Codec | any = ObsInnerType<ReturnType<F>>, K extends AnyTuple = A>(...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
entries: <T extends Codec | any = ReturnCodec<F>, K extends AnyTuple = A>(...args: DropLast<Parameters<F>>) => PromiseOrObs<ApiType, [StorageKey<K>, T][]>;
|
||||||
hash: (...args: Parameters<F>) => PromiseOrObs<ApiType, Hash>;
|
hash: (...args: Parameters<F>) => PromiseOrObs<ApiType, Hash>;
|
||||||
is: (key: IStorageKey<AnyTuple>) => key is IStorageKey<A>;
|
is: (key: IStorageKey<AnyTuple>) => key is IStorageKey<A>;
|
||||||
key: (...args: Parameters<F>) => string;
|
key: (...args: Parameters<F>) => string;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/rpc-core",
|
"name": "@polkadot/rpc-core",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.15.4",
|
"@babel/runtime": "^7.15.4",
|
||||||
"@polkadot/rpc-provider": "6.1.1",
|
"@polkadot/rpc-provider": "6.2.1",
|
||||||
"@polkadot/types": "6.1.1",
|
"@polkadot/types": "6.2.1",
|
||||||
"@polkadot/util": "^7.4.1",
|
"@polkadot/util": "^7.4.1",
|
||||||
"rxjs": "^7.3.0"
|
"rxjs": "^7.3.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-core', version: '6.1.1' };
|
export const packageInfo = { name: '@polkadot/rpc-core', version: '6.2.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/rpc-provider",
|
"name": "@polkadot/rpc-provider",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Transport providers for the API",
|
"description": "Transport providers for the API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.15.4",
|
"@babel/runtime": "^7.15.4",
|
||||||
"@polkadot/types": "6.1.1",
|
"@polkadot/types": "6.2.1",
|
||||||
"@polkadot/util": "^7.4.1",
|
"@polkadot/util": "^7.4.1",
|
||||||
"@polkadot/util-crypto": "^7.4.1",
|
"@polkadot/util-crypto": "^7.4.1",
|
||||||
"@polkadot/x-fetch": "^7.4.1",
|
"@polkadot/x-fetch": "^7.4.1",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^7.4.1",
|
"@polkadot/keyring": "^7.4.1",
|
||||||
"@polkadot/types": "6.1.1",
|
"@polkadot/types": "6.2.1",
|
||||||
"mock-socket": "^9.0.3",
|
"mock-socket": "^9.0.3",
|
||||||
"nock": "^13.1.3"
|
"nock": "^13.1.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-provider', version: '6.1.1' };
|
export const packageInfo = { name: '@polkadot/rpc-provider', version: '6.2.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/typegen",
|
"name": "@polkadot/typegen",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Type generation scripts",
|
"description": "Type generation scripts",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -29,10 +29,10 @@
|
|||||||
"@babel/core": "^7.15.5",
|
"@babel/core": "^7.15.5",
|
||||||
"@babel/register": "^7.15.3",
|
"@babel/register": "^7.15.3",
|
||||||
"@babel/runtime": "^7.15.4",
|
"@babel/runtime": "^7.15.4",
|
||||||
"@polkadot/api": "6.1.1",
|
"@polkadot/api": "6.2.1",
|
||||||
"@polkadot/rpc-provider": "6.1.1",
|
"@polkadot/rpc-provider": "6.2.1",
|
||||||
"@polkadot/types": "6.1.1",
|
"@polkadot/types": "6.2.1",
|
||||||
"@polkadot/types-support": "6.1.1",
|
"@polkadot/types-support": "6.2.1",
|
||||||
"@polkadot/util": "^7.4.1",
|
"@polkadot/util": "^7.4.1",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"websocket": "^1.0.34",
|
"websocket": "^1.0.34",
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ const tsHashMap = tsExport;
|
|||||||
const tsOption = tsExport;
|
const tsOption = tsExport;
|
||||||
const tsPlain = tsExport;
|
const tsPlain = tsExport;
|
||||||
const tsTuple = tsExport;
|
const tsTuple = tsExport;
|
||||||
|
const tsWrapperOpaque = tsExport;
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, { lookupIndex, name: enumName, sub }: TypeDef, imports: TypeImports): string {
|
function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, { lookupIndex, name: enumName, sub }: TypeDef, imports: TypeImports): string {
|
||||||
@@ -54,7 +55,7 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
|
|||||||
const keys = (sub as TypeDef[]).map((def, index): string => {
|
const keys = (sub as TypeDef[]).map((def, index): string => {
|
||||||
const { info, lookupName, name = `unknown${index}`, type } = def;
|
const { info, lookupName, name = `unknown${index}`, type } = def;
|
||||||
const getter = stringUpperFirst(stringCamelCase(name.replace(' ', '_')));
|
const getter = stringUpperFirst(stringCamelCase(name.replace(' ', '_')));
|
||||||
const isComplex = [TypeDefInfo.Result, TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
|
const isComplex = [TypeDefInfo.Option, TypeDefInfo.Result, TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
|
||||||
const asGetter = type === 'Null' || info === TypeDefInfo.DoNotConstruct
|
const asGetter = type === 'Null' || info === TypeDefInfo.DoNotConstruct
|
||||||
? ''
|
? ''
|
||||||
: createGetter(definitions, `as${getter}`, lookupName || (isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports, false) : type), imports);
|
: createGetter(definitions, `as${getter}`, lookupName || (isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports, false) : type), imports);
|
||||||
@@ -72,6 +73,7 @@ function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, {
|
|||||||
case TypeDefInfo.Vec:
|
case TypeDefInfo.Vec:
|
||||||
case TypeDefInfo.Option:
|
case TypeDefInfo.Option:
|
||||||
case TypeDefInfo.VecFixed:
|
case TypeDefInfo.VecFixed:
|
||||||
|
case TypeDefInfo.WrapperOpaque:
|
||||||
return `${isGetter}${asGetter}`;
|
return `${isGetter}${asGetter}`;
|
||||||
|
|
||||||
case TypeDefInfo.DoNotConstruct:
|
case TypeDefInfo.DoNotConstruct:
|
||||||
@@ -111,11 +113,12 @@ function tsResultGetter (registry: Registry, definitions: Record<string, ModuleT
|
|||||||
const isGetter = (getter === 'Error' ? ' /** @deprecated Use isErr */\n' : '') + createGetter(definitions, `is${getter}`, 'boolean', imports);
|
const isGetter = (getter === 'Error' ? ' /** @deprecated Use isErr */\n' : '') + createGetter(definitions, `is${getter}`, 'boolean', imports);
|
||||||
|
|
||||||
switch (info) {
|
switch (info) {
|
||||||
|
case TypeDefInfo.Option:
|
||||||
case TypeDefInfo.Plain:
|
case TypeDefInfo.Plain:
|
||||||
case TypeDefInfo.Si:
|
case TypeDefInfo.Si:
|
||||||
case TypeDefInfo.Tuple:
|
case TypeDefInfo.Tuple:
|
||||||
case TypeDefInfo.Vec:
|
case TypeDefInfo.Vec:
|
||||||
case TypeDefInfo.Option:
|
case TypeDefInfo.WrapperOpaque:
|
||||||
return `${isGetter}${asGetter}`;
|
return `${isGetter}${asGetter}`;
|
||||||
|
|
||||||
case TypeDefInfo.Null:
|
case TypeDefInfo.Null:
|
||||||
@@ -231,7 +234,8 @@ export const typeEncoders: Record<TypeDefInfo, (registry: Registry, definitions:
|
|||||||
[TypeDefInfo.Tuple]: tsTuple,
|
[TypeDefInfo.Tuple]: tsTuple,
|
||||||
[TypeDefInfo.UInt]: tsUInt,
|
[TypeDefInfo.UInt]: tsUInt,
|
||||||
[TypeDefInfo.Vec]: tsVec,
|
[TypeDefInfo.Vec]: tsVec,
|
||||||
[TypeDefInfo.VecFixed]: tsVec
|
[TypeDefInfo.VecFixed]: tsVec,
|
||||||
|
[TypeDefInfo.WrapperOpaque]: tsWrapperOpaque
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/typegen', version: '6.1.1' };
|
export const packageInfo = { name: '@polkadot/typegen', version: '6.2.1' };
|
||||||
|
|||||||
@@ -86,19 +86,36 @@ export function exportType (lookupIndex = -1, name = '', base: string): string {
|
|||||||
return exportInterface(lookupIndex, name, base);
|
return exportInterface(lookupIndex, name, base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function singleParamNotation (registry: Registry, wrapper: string, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean): string {
|
||||||
|
const sub = (typeDef.sub as TypeDef);
|
||||||
|
|
||||||
|
setImports(definitions, imports, [wrapper, sub.lookupName]);
|
||||||
|
|
||||||
|
return paramsNotation(wrapper, sub.lookupName || formatType(registry, definitions, sub.type, imports, withShortcut));
|
||||||
|
}
|
||||||
|
|
||||||
|
function dualParamsNotation (registry: Registry, wrapper: string, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean): string {
|
||||||
|
const [a, b] = (typeDef.sub as TypeDef[]);
|
||||||
|
|
||||||
|
setImports(definitions, imports, [wrapper, a.lookupName, b.lookupName]);
|
||||||
|
|
||||||
|
return paramsNotation(wrapper, [
|
||||||
|
a.lookupName || formatType(registry, definitions, a.type, imports, withShortcut),
|
||||||
|
b.lookupName || formatType(registry, definitions, b.type, imports, withShortcut)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
const formatters: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => string> = {
|
const formatters: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => string> = {
|
||||||
[TypeDefInfo.Compact]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Compact]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const sub = typeDef.sub as TypeDef;
|
return singleParamNotation(registry, 'Compact', typeDef, definitions, imports, withShortcut);
|
||||||
|
|
||||||
setImports(definitions, imports, ['Compact', sub.lookupName]);
|
|
||||||
|
|
||||||
return paramsNotation('Compact', sub.lookupName || formatType(registry, definitions, sub.type, imports, withShortcut));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.DoNotConstruct]: (registry: Registry, { lookupName }: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.DoNotConstruct]: (registry: Registry, { lookupName }: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
setImports(definitions, imports, ['DoNotConstruct']);
|
setImports(definitions, imports, ['DoNotConstruct']);
|
||||||
|
|
||||||
return 'DoNotConstruct';
|
return 'DoNotConstruct';
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Enum]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Enum]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
if (typeDef.lookupName) {
|
if (typeDef.lookupName) {
|
||||||
return typeDef.lookupName;
|
return typeDef.lookupName;
|
||||||
@@ -106,38 +123,43 @@ const formatters: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef, def
|
|||||||
|
|
||||||
throw new Error(`TypeDefInfo.Enum: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.Enum: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Int]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Int]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.Int: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.Int: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.UInt]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.UInt]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.UInt: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.UInt: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Null]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Null]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
setImports(definitions, imports, ['Null']);
|
setImports(definitions, imports, ['Null']);
|
||||||
|
|
||||||
return 'Null';
|
return 'Null';
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Option]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Option]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const sub = (typeDef.sub as TypeDef);
|
return singleParamNotation(registry, 'Option', typeDef, definitions, imports, withShortcut);
|
||||||
|
|
||||||
setImports(definitions, imports, ['Option', sub.lookupName]);
|
|
||||||
|
|
||||||
return paramsNotation('Option', sub.lookupName || formatType(registry, definitions, sub.type, imports, withShortcut));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Plain]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Plain]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
setImports(definitions, imports, [typeDef.type]);
|
setImports(definitions, imports, [typeDef.type]);
|
||||||
|
|
||||||
return typeDef.type;
|
return typeDef.type;
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Range]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Range]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.Range: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.Range: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Set]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Set]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
throw new Error(`TypeDefInfo.Set: Not implemented on ${stringify(typeDef)}`);
|
throw new Error(`TypeDefInfo.Set: Not implemented on ${stringify(typeDef)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Si]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Si]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
return formatType(registry, definitions, registry.lookup.getTypeDef(typeDef.type), imports, withShortcut);
|
return formatType(registry, definitions, registry.lookup.getTypeDef(typeDef.type), imports, withShortcut);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Struct]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Struct]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
if (typeDef.lookupName) {
|
if (typeDef.lookupName) {
|
||||||
return typeDef.lookupName;
|
return typeDef.lookupName;
|
||||||
@@ -154,6 +176,7 @@ const formatters: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef, def
|
|||||||
]).map(([k, t]) => `${withShortcut ? '' : ' readonly '}${k}: ${t};`).join(withShortcut ? ' ' : '\n')
|
]).map(([k, t]) => `${withShortcut ? '' : ' readonly '}${k}: ${t};`).join(withShortcut ? ' ' : '\n')
|
||||||
}${withShortcut ? ' ' : '\n '}} & Struct`;
|
}${withShortcut ? ' ' : '\n '}} & Struct`;
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Tuple]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Tuple]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const sub = typeDef.sub as TypeDef[];
|
const sub = typeDef.sub as TypeDef[];
|
||||||
|
|
||||||
@@ -166,13 +189,11 @@ const formatters: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef, def
|
|||||||
).join(', ')
|
).join(', ')
|
||||||
}]`);
|
}]`);
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Vec]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Vec]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const sub = (typeDef.sub as TypeDef);
|
return singleParamNotation(registry, 'Vec', typeDef, definitions, imports, withShortcut);
|
||||||
|
|
||||||
setImports(definitions, imports, ['Vec', sub.lookupName]);
|
|
||||||
|
|
||||||
return paramsNotation('Vec', sub.lookupName || formatType(registry, definitions, sub.type, imports, withShortcut));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.VecFixed]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.VecFixed]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const sub = (typeDef.sub as TypeDef);
|
const sub = (typeDef.sub as TypeDef);
|
||||||
|
|
||||||
@@ -182,44 +203,31 @@ const formatters: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef, def
|
|||||||
return 'U8aFixed';
|
return 'U8aFixed';
|
||||||
}
|
}
|
||||||
|
|
||||||
setImports(definitions, imports, ['Vec', sub.lookupName]);
|
return singleParamNotation(registry, 'Vec', typeDef, definitions, imports, withShortcut);
|
||||||
|
|
||||||
return paramsNotation('Vec', sub.lookupName || formatType(registry, definitions, sub.type, imports, withShortcut));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.BTreeMap]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.BTreeMap]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const [keyDef, valDef] = (typeDef.sub as TypeDef[]);
|
return dualParamsNotation(registry, 'BTreeMap', typeDef, definitions, imports, withShortcut);
|
||||||
|
|
||||||
setImports(definitions, imports, ['BTreeMap', keyDef.lookupName, valDef.lookupName]);
|
|
||||||
|
|
||||||
return `BTreeMap<${keyDef.lookupName || formatType(registry, definitions, keyDef.type, imports, withShortcut)}, ${valDef.lookupName || formatType(registry, definitions, valDef.type, imports, withShortcut)}>`;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.BTreeSet]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.BTreeSet]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const valDef = typeDef.sub as TypeDef;
|
return singleParamNotation(registry, 'BTreeSet', typeDef, definitions, imports, withShortcut);
|
||||||
|
|
||||||
setImports(definitions, imports, ['BTreeSet', valDef.lookupName]);
|
|
||||||
|
|
||||||
return `BTreeSet<${valDef.lookupName || formatType(registry, definitions, valDef.type, imports, withShortcut)}>`;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.HashMap]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.HashMap]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const [keyDef, valDef] = (typeDef.sub as TypeDef[]);
|
return dualParamsNotation(registry, 'HashMap', typeDef, definitions, imports, withShortcut);
|
||||||
|
|
||||||
setImports(definitions, imports, ['HashMap', keyDef.lookupName, valDef.lookupName]);
|
|
||||||
|
|
||||||
return `HashMap<${keyDef.lookupName || formatType(registry, definitions, keyDef.type, imports, withShortcut)}, ${valDef.lookupName || formatType(registry, definitions, valDef.type, imports, withShortcut)}>`;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Linkage]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Linkage]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const sub = (typeDef.sub as TypeDef);
|
return singleParamNotation(registry, 'Linkage', typeDef, definitions, imports, withShortcut);
|
||||||
|
|
||||||
setImports(definitions, imports, ['Linkage', sub.lookupName]);
|
|
||||||
|
|
||||||
return paramsNotation('Linkage', sub.lookupName || formatType(registry, definitions, sub.type, imports, withShortcut));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
[TypeDefInfo.Result]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
[TypeDefInfo.Result]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
const [okDef, errDef] = (typeDef.sub as TypeDef[]);
|
return dualParamsNotation(registry, 'Result', typeDef, definitions, imports, withShortcut);
|
||||||
|
},
|
||||||
|
|
||||||
setImports(definitions, imports, ['Result', okDef.lookupName, errDef.lookupName]);
|
[TypeDefInfo.WrapperOpaque]: (registry: Registry, typeDef: TypeDef, definitions: Record<string, ModuleTypes>, imports: TypeImports, withShortcut: boolean) => {
|
||||||
|
return singleParamNotation(registry, 'WrapperOpaque', typeDef, definitions, imports, withShortcut);
|
||||||
return `Result<${okDef.lookupName || formatType(registry, definitions, okDef.type, imports, withShortcut)}, ${errDef.lookupName || formatType(registry, definitions, errDef.type, imports, withShortcut)}>`;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/types-known",
|
"name": "@polkadot/types-known",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Known type definitions",
|
"description": "Known type definitions",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.15.4",
|
"@babel/runtime": "^7.15.4",
|
||||||
"@polkadot/networks": "^7.4.1",
|
"@polkadot/networks": "^7.4.1",
|
||||||
"@polkadot/types": "6.1.1",
|
"@polkadot/types": "6.2.1",
|
||||||
"@polkadot/util": "^7.4.1"
|
"@polkadot/util": "^7.4.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-known', version: '6.1.1' };
|
export const packageInfo = { name: '@polkadot/types-known', version: '6.2.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/types-support",
|
"name": "@polkadot/types-support",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Supporting files for types, mostly for testing",
|
"description": "Supporting files for types, mostly for testing",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|||||||
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
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
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 @@
|
|||||||
|
|
||||||
// Auto-generated by @polkadot/dev, do not edit
|
// Auto-generated by @polkadot/dev, do not edit
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-support', version: '6.1.1' };
|
export const packageInfo = { name: '@polkadot/types-support', version: '6.2.1' };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/types",
|
"name": "@polkadot/types",
|
||||||
"version": "6.1.1",
|
"version": "6.2.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Implementation of the Parity codec",
|
"description": "Implementation of the Parity codec",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^7.4.1",
|
"@polkadot/keyring": "^7.4.1",
|
||||||
"@polkadot/types-support": "6.1.1",
|
"@polkadot/types-support": "6.2.1",
|
||||||
"@types/bn.js": "^4.11.6",
|
"@types/bn.js": "^4.11.6",
|
||||||
"bn.js": "^4.12.0"
|
"bn.js": "^4.12.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,98 +7,11 @@ import type { DefinitionsTypes } from '../../types';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
/**
|
/**
|
||||||
* Lookup75: kusama_runtime::ProxyType
|
* Lookup74: kusama_runtime::ProxyType
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeProxyType: {
|
KusamaRuntimeProxyType: {
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* Lookup86: polkadot_primitives::v1::CandidateReceipt<primitive_types::H256>
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1CandidateReceipt: {
|
|
||||||
descriptor: 'PolkadotPrimitivesV1CandidateDescriptor',
|
|
||||||
commitmentsHash: 'H256'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup87: polkadot_primitives::v1::CandidateDescriptor<primitive_types::H256>
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1CandidateDescriptor: {
|
|
||||||
paraId: 'u32',
|
|
||||||
relayParent: 'H256',
|
|
||||||
collator: 'PolkadotPrimitivesV0CollatorAppPublic',
|
|
||||||
persistedValidationDataHash: 'H256',
|
|
||||||
povHash: 'H256',
|
|
||||||
erasureRoot: 'H256',
|
|
||||||
signature: 'PolkadotPrimitivesV0CollatorAppSignature',
|
|
||||||
paraHead: 'H256',
|
|
||||||
validationCodeHash: 'H256'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup89: polkadot_primitives::v0::collator_app::Public
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV0CollatorAppPublic: 'SpCoreSr25519Public',
|
|
||||||
/**
|
|
||||||
* Lookup90: polkadot_primitives::v0::collator_app::Signature
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV0CollatorAppSignature: 'SpCoreSr25519Signature',
|
|
||||||
/**
|
|
||||||
* Lookup99: xcm::v2::traits::Outcome
|
|
||||||
**/
|
|
||||||
XcmV2TraitsOutcome: {
|
|
||||||
_enum: {
|
|
||||||
Complete: 'u64',
|
|
||||||
Incomplete: '(u64,XcmV2TraitsError)',
|
|
||||||
Error: 'XcmV2TraitsError'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup100: xcm::v2::traits::Error
|
|
||||||
**/
|
|
||||||
XcmV2TraitsError: {
|
|
||||||
_enum: {
|
|
||||||
Undefined: 'Null',
|
|
||||||
Overflow: 'Null',
|
|
||||||
Unimplemented: 'Null',
|
|
||||||
UnhandledXcmVersion: 'Null',
|
|
||||||
UnhandledXcmMessage: 'Null',
|
|
||||||
UnhandledEffect: 'Null',
|
|
||||||
EscalationOfPrivilege: 'Null',
|
|
||||||
UntrustedReserveLocation: 'Null',
|
|
||||||
UntrustedTeleportLocation: 'Null',
|
|
||||||
DestinationBufferOverflow: 'Null',
|
|
||||||
MultiLocationFull: 'Null',
|
|
||||||
MultiLocationNotInvertible: 'Null',
|
|
||||||
FailedToDecode: 'Null',
|
|
||||||
BadOrigin: 'Null',
|
|
||||||
ExceedsMaxMessageSize: 'Null',
|
|
||||||
FailedToTransactAsset: 'Null',
|
|
||||||
WeightLimitReached: 'u64',
|
|
||||||
Wildcard: 'Null',
|
|
||||||
TooMuchWeightRequired: 'Null',
|
|
||||||
NotHoldingFees: 'Null',
|
|
||||||
WeightNotComputable: 'Null',
|
|
||||||
Barrier: 'Null',
|
|
||||||
NotWithdrawable: 'Null',
|
|
||||||
LocationCannotHold: 'Null',
|
|
||||||
TooExpensive: 'Null',
|
|
||||||
AssetNotFound: 'Null',
|
|
||||||
DestinationUnsupported: 'Null',
|
|
||||||
RecursionLimitReached: 'Null',
|
|
||||||
Transport: 'Null',
|
|
||||||
Unroutable: 'Null',
|
|
||||||
UnknownWeightRequired: 'Null',
|
|
||||||
Trap: 'u64',
|
|
||||||
UnknownClaim: 'Null',
|
|
||||||
InvalidLocation: 'Null'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup102: polkadot_parachain::primitives::HrmpChannelId
|
|
||||||
**/
|
|
||||||
PolkadotParachainPrimitivesHrmpChannelId: {
|
|
||||||
sender: 'u32',
|
|
||||||
recipient: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
* Lookup108: xcm::v1::multilocation::MultiLocation
|
* Lookup108: xcm::v1::multilocation::MultiLocation
|
||||||
**/
|
**/
|
||||||
@@ -225,12 +138,9 @@ export default {
|
|||||||
xcm: 'XcmV2Xcm',
|
xcm: 'XcmV2Xcm',
|
||||||
},
|
},
|
||||||
Transact: {
|
Transact: {
|
||||||
_alias: {
|
|
||||||
call_: 'call',
|
|
||||||
},
|
|
||||||
originType: 'XcmV0OriginKind',
|
originType: 'XcmV0OriginKind',
|
||||||
requireWeightAtMost: 'Compact<u64>',
|
requireWeightAtMost: 'Compact<u64>',
|
||||||
call_: 'XcmDoubleEncoded',
|
call: 'XcmDoubleEncoded',
|
||||||
},
|
},
|
||||||
HrmpNewChannelOpenRequest: {
|
HrmpNewChannelOpenRequest: {
|
||||||
sender: 'Compact<u32>',
|
sender: 'Compact<u32>',
|
||||||
@@ -353,7 +263,7 @@ export default {
|
|||||||
_enum: {
|
_enum: {
|
||||||
Null: 'Null',
|
Null: 'Null',
|
||||||
Assets: 'XcmV1MultiassetMultiAssets',
|
Assets: 'XcmV1MultiassetMultiAssets',
|
||||||
ExecutionResult: 'Result<Null, (u32,XcmV2TraitsError)>',
|
ExecutionResult: 'Option<(u32,XcmV2TraitsError)>',
|
||||||
Version: 'u32'
|
Version: 'u32'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -508,7 +418,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup237: kusama_runtime::SessionKeys
|
* Lookup239: kusama_runtime::SessionKeys
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeSessionKeys: {
|
KusamaRuntimeSessionKeys: {
|
||||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||||
@@ -519,7 +429,7 @@ export default {
|
|||||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup360: kusama_runtime::NposCompactSolution24
|
* Lookup369: kusama_runtime::NposCompactSolution24
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeNposCompactSolution24: {
|
KusamaRuntimeNposCompactSolution24: {
|
||||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||||
@@ -548,123 +458,7 @@ export default {
|
|||||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup448: polkadot_primitives::v1::InherentData<sp_runtime::generic::header::Header<Number, sp_runtime::traits::BlakeTwo256>>
|
* Lookup502: xcm::VersionedXcm<Call>
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1InherentData: {
|
|
||||||
bitfields: 'Vec<PolkadotPrimitivesV1SignedUncheckedSigned>',
|
|
||||||
backedCandidates: 'Vec<PolkadotPrimitivesV1BackedCandidate>',
|
|
||||||
disputes: 'Vec<PolkadotPrimitivesV1DisputeStatementSet>',
|
|
||||||
parentHeader: 'SpRuntimeGenericHeader'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup450: polkadot_primitives::v1::signed::UncheckedSigned<polkadot_primitives::v1::AvailabilityBitfield, polkadot_primitives::v1::AvailabilityBitfield>
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1SignedUncheckedSigned: {
|
|
||||||
payload: 'BitVec',
|
|
||||||
validatorIndex: 'u32',
|
|
||||||
signature: 'PolkadotPrimitivesV0ValidatorAppSignature'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup453: bitvec::order::Lsb0
|
|
||||||
**/
|
|
||||||
BitvecOrderLsb0: 'Null',
|
|
||||||
/**
|
|
||||||
* Lookup455: polkadot_primitives::v0::validator_app::Signature
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV0ValidatorAppSignature: 'SpCoreSr25519Signature',
|
|
||||||
/**
|
|
||||||
* Lookup457: polkadot_primitives::v1::BackedCandidate<primitive_types::H256>
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1BackedCandidate: {
|
|
||||||
candidate: 'PolkadotPrimitivesV1CommittedCandidateReceipt',
|
|
||||||
validityVotes: 'Vec<PolkadotPrimitivesV0ValidityAttestation>',
|
|
||||||
validatorIndices: 'BitVec'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup458: polkadot_primitives::v1::CommittedCandidateReceipt<primitive_types::H256>
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1CommittedCandidateReceipt: {
|
|
||||||
descriptor: 'PolkadotPrimitivesV1CandidateDescriptor',
|
|
||||||
commitments: 'PolkadotPrimitivesV1CandidateCommitments'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup459: polkadot_primitives::v1::CandidateCommitments<N>
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1CandidateCommitments: {
|
|
||||||
upwardMessages: 'Vec<Bytes>',
|
|
||||||
horizontalMessages: 'Vec<PolkadotCorePrimitivesOutboundHrmpMessage>',
|
|
||||||
newValidationCode: 'Option<Bytes>',
|
|
||||||
headData: 'Bytes',
|
|
||||||
processedDownwardMessages: 'u32',
|
|
||||||
hrmpWatermark: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup461: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
|
|
||||||
**/
|
|
||||||
PolkadotCorePrimitivesOutboundHrmpMessage: {
|
|
||||||
recipient: 'u32',
|
|
||||||
data: 'Bytes'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup465: polkadot_primitives::v0::ValidityAttestation
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV0ValidityAttestation: {
|
|
||||||
_enum: {
|
|
||||||
Unused0: 'Null',
|
|
||||||
Implicit: 'PolkadotPrimitivesV0ValidatorAppSignature',
|
|
||||||
Explicit: 'PolkadotPrimitivesV0ValidatorAppSignature'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup467: polkadot_primitives::v1::DisputeStatementSet
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1DisputeStatementSet: {
|
|
||||||
candidateHash: 'H256',
|
|
||||||
session: 'u32',
|
|
||||||
statements: 'Vec<(PolkadotPrimitivesV1DisputeStatement,u32,PolkadotPrimitivesV0ValidatorAppSignature)>'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup471: polkadot_primitives::v1::DisputeStatement
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1DisputeStatement: {
|
|
||||||
_enum: {
|
|
||||||
Valid: 'PolkadotPrimitivesV1ValidDisputeStatementKind',
|
|
||||||
Invalid: 'PolkadotPrimitivesV1InvalidDisputeStatementKind'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup472: polkadot_primitives::v1::ValidDisputeStatementKind
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1ValidDisputeStatementKind: {
|
|
||||||
_enum: {
|
|
||||||
Explicit: 'Null',
|
|
||||||
BackingSeconded: 'H256',
|
|
||||||
BackingValid: 'H256',
|
|
||||||
ApprovalChecking: 'Null'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup473: polkadot_primitives::v1::InvalidDisputeStatementKind
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1InvalidDisputeStatementKind: {
|
|
||||||
_enum: ['Explicit']
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup485: sp_runtime::MultiSigner
|
|
||||||
**/
|
|
||||||
SpRuntimeMultiSigner: {
|
|
||||||
_enum: {
|
|
||||||
Ed25519: 'SpCoreEd25519Public',
|
|
||||||
Sr25519: 'SpCoreSr25519Public',
|
|
||||||
Ecdsa: 'SpCoreEcdsaPublic'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup486: sp_core::ecdsa::Public
|
|
||||||
**/
|
|
||||||
SpCoreEcdsaPublic: '[u8;33]',
|
|
||||||
/**
|
|
||||||
* Lookup492: xcm::VersionedXcm<Call>
|
|
||||||
**/
|
**/
|
||||||
XcmVersionedXcm: {
|
XcmVersionedXcm: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -674,7 +468,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup493: xcm::v0::Xcm<Call>
|
* Lookup503: xcm::v0::Xcm<Call>
|
||||||
**/
|
**/
|
||||||
XcmV0Xcm: {
|
XcmV0Xcm: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -704,12 +498,9 @@ export default {
|
|||||||
effects: 'Vec<XcmV0Order>',
|
effects: 'Vec<XcmV0Order>',
|
||||||
},
|
},
|
||||||
Transact: {
|
Transact: {
|
||||||
_alias: {
|
|
||||||
call_: 'call',
|
|
||||||
},
|
|
||||||
originType: 'XcmV0OriginKind',
|
originType: 'XcmV0OriginKind',
|
||||||
requireWeightAtMost: 'u64',
|
requireWeightAtMost: 'u64',
|
||||||
call_: 'XcmDoubleEncoded',
|
call: 'XcmDoubleEncoded',
|
||||||
},
|
},
|
||||||
HrmpNewChannelOpenRequest: {
|
HrmpNewChannelOpenRequest: {
|
||||||
sender: 'Compact<u32>',
|
sender: 'Compact<u32>',
|
||||||
@@ -731,7 +522,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup495: xcm::v0::order::Order<Call>
|
* Lookup505: xcm::v0::order::Order<Call>
|
||||||
**/
|
**/
|
||||||
XcmV0Order: {
|
XcmV0Order: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -774,7 +565,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup497: xcm::v0::Response
|
* Lookup507: xcm::v0::Response
|
||||||
**/
|
**/
|
||||||
XcmV0Response: {
|
XcmV0Response: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -782,7 +573,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup498: xcm::v1::Xcm<Call>
|
* Lookup508: xcm::v1::Xcm<Call>
|
||||||
**/
|
**/
|
||||||
XcmV1Xcm: {
|
XcmV1Xcm: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -812,12 +603,9 @@ export default {
|
|||||||
effects: 'Vec<XcmV1Order>',
|
effects: 'Vec<XcmV1Order>',
|
||||||
},
|
},
|
||||||
Transact: {
|
Transact: {
|
||||||
_alias: {
|
|
||||||
call_: 'call',
|
|
||||||
},
|
|
||||||
originType: 'XcmV0OriginKind',
|
originType: 'XcmV0OriginKind',
|
||||||
requireWeightAtMost: 'u64',
|
requireWeightAtMost: 'u64',
|
||||||
call_: 'XcmDoubleEncoded',
|
call: 'XcmDoubleEncoded',
|
||||||
},
|
},
|
||||||
HrmpNewChannelOpenRequest: {
|
HrmpNewChannelOpenRequest: {
|
||||||
sender: 'Compact<u32>',
|
sender: 'Compact<u32>',
|
||||||
@@ -844,7 +632,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup500: xcm::v1::order::Order<Call>
|
* Lookup510: xcm::v1::order::Order<Call>
|
||||||
**/
|
**/
|
||||||
XcmV1Order: {
|
XcmV1Order: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -889,7 +677,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup502: xcm::v1::Response
|
* Lookup512: xcm::v1::Response
|
||||||
**/
|
**/
|
||||||
XcmV1Response: {
|
XcmV1Response: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -898,7 +686,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup563: kusama_runtime::OriginCaller
|
* Lookup573: kusama_runtime::OriginCaller
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeOriginCaller: {
|
KusamaRuntimeOriginCaller: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1005,15 +793,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup567: polkadot_runtime_parachains::origin::pallet::Origin
|
* Lookup578: pallet_xcm::pallet::Origin
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsOriginPalletOrigin: {
|
|
||||||
_enum: {
|
|
||||||
Parachain: 'u32'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup568: pallet_xcm::pallet::Origin
|
|
||||||
**/
|
**/
|
||||||
PalletXcmOrigin: {
|
PalletXcmOrigin: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1022,261 +802,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup607: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
* Lookup682: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
|
||||||
maxCodeSize: 'u32',
|
|
||||||
maxHeadDataSize: 'u32',
|
|
||||||
maxUpwardQueueCount: 'u32',
|
|
||||||
maxUpwardQueueSize: 'u32',
|
|
||||||
maxUpwardMessageSize: 'u32',
|
|
||||||
maxUpwardMessageNumPerCandidate: 'u32',
|
|
||||||
hrmpMaxMessageNumPerCandidate: 'u32',
|
|
||||||
validationUpgradeFrequency: 'u32',
|
|
||||||
validationUpgradeDelay: 'u32',
|
|
||||||
maxPovSize: 'u32',
|
|
||||||
maxDownwardMessageSize: 'u32',
|
|
||||||
umpServiceTotalWeight: 'u64',
|
|
||||||
hrmpMaxParachainOutboundChannels: 'u32',
|
|
||||||
hrmpMaxParathreadOutboundChannels: 'u32',
|
|
||||||
hrmpSenderDeposit: 'u128',
|
|
||||||
hrmpRecipientDeposit: 'u128',
|
|
||||||
hrmpChannelMaxCapacity: 'u32',
|
|
||||||
hrmpChannelMaxTotalSize: 'u32',
|
|
||||||
hrmpMaxParachainInboundChannels: 'u32',
|
|
||||||
hrmpMaxParathreadInboundChannels: 'u32',
|
|
||||||
hrmpChannelMaxMessageSize: 'u32',
|
|
||||||
codeRetentionPeriod: 'u32',
|
|
||||||
parathreadCores: 'u32',
|
|
||||||
parathreadRetries: 'u32',
|
|
||||||
groupRotationFrequency: 'u32',
|
|
||||||
chainAvailabilityPeriod: 'u32',
|
|
||||||
threadAvailabilityPeriod: 'u32',
|
|
||||||
schedulingLookahead: 'u32',
|
|
||||||
maxValidatorsPerCore: 'Option<u32>',
|
|
||||||
maxValidators: 'Option<u32>',
|
|
||||||
disputePeriod: 'u32',
|
|
||||||
disputePostConclusionAcceptancePeriod: 'u32',
|
|
||||||
disputeMaxSpamSlots: 'u32',
|
|
||||||
disputeConclusionByTimeOutPeriod: 'u32',
|
|
||||||
noShowSlots: 'u32',
|
|
||||||
nDelayTranches: 'u32',
|
|
||||||
zerothDelayTrancheWidth: 'u32',
|
|
||||||
neededApprovals: 'u32',
|
|
||||||
relayVrfModuloSamples: 'u32',
|
|
||||||
umpMaxIndividualWeight: 'u64'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup611: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
|
||||||
bitfield: 'BitVec',
|
|
||||||
submittedAt: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup612: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
|
||||||
_alias: {
|
|
||||||
hash_: 'hash'
|
|
||||||
},
|
|
||||||
core: 'u32',
|
|
||||||
hash_: 'H256',
|
|
||||||
descriptor: 'PolkadotPrimitivesV1CandidateDescriptor',
|
|
||||||
availabilityVotes: 'BitVec',
|
|
||||||
backers: 'BitVec',
|
|
||||||
relayParentNumber: 'u32',
|
|
||||||
backedInNumber: 'u32',
|
|
||||||
backingGroup: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup616: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
|
||||||
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
|
||||||
nextCoreOffset: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup618: polkadot_runtime_parachains::scheduler::QueuedParathread
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
|
||||||
claim: 'PolkadotPrimitivesV1ParathreadEntry',
|
|
||||||
coreOffset: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup619: polkadot_primitives::v1::ParathreadEntry
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1ParathreadEntry: {
|
|
||||||
claim: 'PolkadotPrimitivesV1ParathreadClaim',
|
|
||||||
retries: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup620: polkadot_primitives::v1::ParathreadClaim
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1ParathreadClaim: '(u32,PolkadotPrimitivesV0CollatorAppPublic)',
|
|
||||||
/**
|
|
||||||
* Lookup623: polkadot_primitives::v1::CoreOccupied
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1CoreOccupied: {
|
|
||||||
_enum: {
|
|
||||||
Parathread: 'PolkadotPrimitivesV1ParathreadEntry',
|
|
||||||
Parachain: 'Null'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup626: polkadot_runtime_parachains::scheduler::CoreAssignment
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
|
||||||
core: 'u32',
|
|
||||||
paraId: 'u32',
|
|
||||||
kind: 'PolkadotRuntimeParachainsSchedulerAssignmentKind',
|
|
||||||
groupIdx: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup627: polkadot_runtime_parachains::scheduler::AssignmentKind
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
|
||||||
_enum: {
|
|
||||||
Parachain: 'Null',
|
|
||||||
Parathread: '(PolkadotPrimitivesV0CollatorAppPublic,u32)'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup628: polkadot_runtime_parachains::paras::ParaLifecycle
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsParasParaLifecycle: {
|
|
||||||
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup630: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
|
||||||
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
|
||||||
lastPruned: 'Option<u32>'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup632: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsParasReplacementTimes: {
|
|
||||||
expectedAt: 'u32',
|
|
||||||
activatedAt: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup634: polkadot_primitives::v1::UpgradeGoAhead
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1UpgradeGoAhead: {
|
|
||||||
_enum: ['Abort', 'GoAhead']
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup635: polkadot_primitives::v1::UpgradeRestriction
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1UpgradeRestriction: {
|
|
||||||
_enum: ['Present']
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup636: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
|
||||||
genesisHead: 'Bytes',
|
|
||||||
validationCode: 'Bytes',
|
|
||||||
parachain: 'bool'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup639: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
|
||||||
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
|
|
||||||
queued: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
|
|
||||||
sessionIndex: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup641: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
|
||||||
**/
|
|
||||||
PolkadotCorePrimitivesInboundDownwardMessage: {
|
|
||||||
sentAt: 'u32',
|
|
||||||
msg: 'Bytes'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup644: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
|
||||||
confirmed: 'bool',
|
|
||||||
age: 'u32',
|
|
||||||
senderDeposit: 'u128',
|
|
||||||
maxMessageSize: 'u32',
|
|
||||||
maxCapacity: 'u32',
|
|
||||||
maxTotalSize: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup646: polkadot_runtime_parachains::hrmp::HrmpChannel
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
|
||||||
maxCapacity: 'u32',
|
|
||||||
maxTotalSize: 'u32',
|
|
||||||
maxMessageSize: 'u32',
|
|
||||||
msgCount: 'u32',
|
|
||||||
totalSize: 'u32',
|
|
||||||
mqcHead: 'Option<H256>',
|
|
||||||
senderDeposit: 'u128',
|
|
||||||
recipientDeposit: 'u128'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup649: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
|
||||||
**/
|
|
||||||
PolkadotCorePrimitivesInboundHrmpMessage: {
|
|
||||||
sentAt: 'u32',
|
|
||||||
data: 'Bytes'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup654: polkadot_primitives::v1::SessionInfo
|
|
||||||
**/
|
|
||||||
PolkadotPrimitivesV1SessionInfo: {
|
|
||||||
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
|
|
||||||
discoveryKeys: 'Vec<SpAuthorityDiscoveryAppPublic>',
|
|
||||||
assignmentKeys: 'Vec<PolkadotPrimitivesV1AssignmentAppPublic>',
|
|
||||||
validatorGroups: 'Vec<Vec<u32>>',
|
|
||||||
nCores: 'u32',
|
|
||||||
zerothDelayTrancheWidth: 'u32',
|
|
||||||
relayVrfModuloSamples: 'u32',
|
|
||||||
nDelayTranches: 'u32',
|
|
||||||
noShowSlots: 'u32',
|
|
||||||
neededApprovals: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup656: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
|
||||||
manager: 'AccountId32',
|
|
||||||
deposit: 'u128',
|
|
||||||
locked: 'bool'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup666: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
|
||||||
depositor: 'AccountId32',
|
|
||||||
verifier: 'Option<SpRuntimeMultiSigner>',
|
|
||||||
deposit: 'u128',
|
|
||||||
raised: 'u128',
|
|
||||||
end: 'u32',
|
|
||||||
cap: 'u128',
|
|
||||||
lastContribution: 'PolkadotRuntimeCommonCrowdloanLastContribution',
|
|
||||||
firstPeriod: 'u32',
|
|
||||||
lastPeriod: 'u32',
|
|
||||||
trieIndex: 'u32'
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup667: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
|
||||||
**/
|
|
||||||
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
|
||||||
_enum: {
|
|
||||||
Never: 'Null',
|
|
||||||
PreEnding: 'u32',
|
|
||||||
Ending: 'u32'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Lookup669: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
|
||||||
**/
|
**/
|
||||||
PalletXcmQueryStatus: {
|
PalletXcmQueryStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1296,7 +822,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup672: xcm::VersionedResponse
|
* Lookup685: xcm::VersionedResponse
|
||||||
**/
|
**/
|
||||||
XcmVersionedResponse: {
|
XcmVersionedResponse: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1306,7 +832,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup678: pallet_xcm::pallet::VersionMigrationStage
|
* Lookup691: pallet_xcm::pallet::VersionMigrationStage
|
||||||
**/
|
**/
|
||||||
PalletXcmVersionMigrationStage: {
|
PalletXcmVersionMigrationStage: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1317,7 +843,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup690: kusama_runtime::Runtime
|
* Lookup703: kusama_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
KusamaRuntimeRuntime: 'Null'
|
KusamaRuntimeRuntime: 'Null'
|
||||||
} as DefinitionsTypes;
|
} as DefinitionsTypes;
|
||||||
|
|||||||
@@ -14,10 +14,89 @@ export default {
|
|||||||
* Lookup72: polkadot_runtime::ProxyType
|
* Lookup72: polkadot_runtime::ProxyType
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeProxyType: {
|
PolkadotRuntimeProxyType: {
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'Unused4', 'IdentityJudgement', 'CancelProxy']
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'Unused4', 'IdentityJudgement', 'CancelProxy', 'Auction']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup139: polkadot_runtime::SessionKeys
|
* Lookup82: polkadot_primitives::v1::CandidateReceipt<primitive_types::H256>
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1CandidateReceipt: {
|
||||||
|
descriptor: 'PolkadotPrimitivesV1CandidateDescriptor',
|
||||||
|
commitmentsHash: 'H256'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup83: polkadot_primitives::v1::CandidateDescriptor<primitive_types::H256>
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1CandidateDescriptor: {
|
||||||
|
paraId: 'u32',
|
||||||
|
relayParent: 'H256',
|
||||||
|
collator: 'PolkadotPrimitivesV0CollatorAppPublic',
|
||||||
|
persistedValidationDataHash: 'H256',
|
||||||
|
povHash: 'H256',
|
||||||
|
erasureRoot: 'H256',
|
||||||
|
signature: 'PolkadotPrimitivesV0CollatorAppSignature',
|
||||||
|
paraHead: 'H256',
|
||||||
|
validationCodeHash: 'H256'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup85: polkadot_primitives::v0::collator_app::Public
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV0CollatorAppPublic: 'SpCoreSr25519Public',
|
||||||
|
/**
|
||||||
|
* Lookup86: polkadot_primitives::v0::collator_app::Signature
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV0CollatorAppSignature: 'SpCoreSr25519Signature',
|
||||||
|
/**
|
||||||
|
* Lookup95: xcm::v2::traits::Outcome
|
||||||
|
**/
|
||||||
|
XcmV2TraitsOutcome: {
|
||||||
|
_enum: {
|
||||||
|
Complete: 'u64',
|
||||||
|
Incomplete: '(u64,XcmV2TraitsError)',
|
||||||
|
Error: 'XcmV2TraitsError'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup96: xcm::v2::traits::Error
|
||||||
|
**/
|
||||||
|
XcmV2TraitsError: {
|
||||||
|
_enum: {
|
||||||
|
Overflow: 'Null',
|
||||||
|
Unimplemented: 'Null',
|
||||||
|
UntrustedReserveLocation: 'Null',
|
||||||
|
UntrustedTeleportLocation: 'Null',
|
||||||
|
MultiLocationFull: 'Null',
|
||||||
|
MultiLocationNotInvertible: 'Null',
|
||||||
|
BadOrigin: 'Null',
|
||||||
|
InvalidLocation: 'Null',
|
||||||
|
AssetNotFound: 'Null',
|
||||||
|
FailedToTransactAsset: 'Null',
|
||||||
|
NotWithdrawable: 'Null',
|
||||||
|
LocationCannotHold: 'Null',
|
||||||
|
ExceedsMaxMessageSize: 'Null',
|
||||||
|
DestinationUnsupported: 'Null',
|
||||||
|
Transport: 'Null',
|
||||||
|
Unroutable: 'Null',
|
||||||
|
UnknownClaim: 'Null',
|
||||||
|
FailedToDecode: 'Null',
|
||||||
|
TooMuchWeightRequired: 'Null',
|
||||||
|
NotHoldingFees: 'Null',
|
||||||
|
TooExpensive: 'Null',
|
||||||
|
Trap: 'u64',
|
||||||
|
UnhandledXcmVersion: 'Null',
|
||||||
|
WeightLimitReached: 'u64',
|
||||||
|
Barrier: 'Null',
|
||||||
|
WeightNotComputable: 'Null'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup98: polkadot_parachain::primitives::HrmpChannelId
|
||||||
|
**/
|
||||||
|
PolkadotParachainPrimitivesHrmpChannelId: {
|
||||||
|
sender: 'u32',
|
||||||
|
recipient: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup161: polkadot_runtime::SessionKeys
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeSessionKeys: {
|
PolkadotRuntimeSessionKeys: {
|
||||||
grandpa: 'SpFinalityGrandpaAppPublic',
|
grandpa: 'SpFinalityGrandpaAppPublic',
|
||||||
@@ -28,25 +107,25 @@ export default {
|
|||||||
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
authorityDiscovery: 'SpAuthorityDiscoveryAppPublic'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup140: polkadot_primitives::v0::validator_app::Public
|
* Lookup162: polkadot_primitives::v0::validator_app::Public
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV0ValidatorAppPublic: 'SpCoreSr25519Public',
|
PolkadotPrimitivesV0ValidatorAppPublic: 'SpCoreSr25519Public',
|
||||||
/**
|
/**
|
||||||
* Lookup141: polkadot_primitives::v1::assignment_app::Public
|
* Lookup163: polkadot_primitives::v1::assignment_app::Public
|
||||||
**/
|
**/
|
||||||
PolkadotPrimitivesV1AssignmentAppPublic: 'SpCoreSr25519Public',
|
PolkadotPrimitivesV1AssignmentAppPublic: 'SpCoreSr25519Public',
|
||||||
/**
|
/**
|
||||||
* Lookup175: polkadot_runtime_common::claims::EcdsaSignature
|
* Lookup195: polkadot_runtime_common::claims::EcdsaSignature
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsEcdsaSignature: '[u8;65]',
|
PolkadotRuntimeCommonClaimsEcdsaSignature: '[u8;65]',
|
||||||
/**
|
/**
|
||||||
* Lookup180: polkadot_runtime_common::claims::StatementKind
|
* Lookup200: polkadot_runtime_common::claims::StatementKind
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsStatementKind: {
|
PolkadotRuntimeCommonClaimsStatementKind: {
|
||||||
_enum: ['Regular', 'Saft']
|
_enum: ['Regular', 'Saft']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup233: polkadot_runtime::NposCompactSolution16
|
* Lookup253: polkadot_runtime::NposCompactSolution16
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeNposCompactSolution16: {
|
PolkadotRuntimeNposCompactSolution16: {
|
||||||
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
votes1: 'Vec<(Compact<u32>,Compact<u16>)>',
|
||||||
@@ -67,15 +146,131 @@ export default {
|
|||||||
votes16: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);15],Compact<u16>)>'
|
votes16: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);15],Compact<u16>)>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup290: polkadot_runtime::OriginCaller
|
* Lookup314: polkadot_primitives::v1::InherentData<sp_runtime::generic::header::Header<Number, sp_runtime::traits::BlakeTwo256>>
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1InherentData: {
|
||||||
|
bitfields: 'Vec<PolkadotPrimitivesV1SignedUncheckedSigned>',
|
||||||
|
backedCandidates: 'Vec<PolkadotPrimitivesV1BackedCandidate>',
|
||||||
|
disputes: 'Vec<PolkadotPrimitivesV1DisputeStatementSet>',
|
||||||
|
parentHeader: 'SpRuntimeGenericHeader'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup316: polkadot_primitives::v1::signed::UncheckedSigned<polkadot_primitives::v1::AvailabilityBitfield, polkadot_primitives::v1::AvailabilityBitfield>
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1SignedUncheckedSigned: {
|
||||||
|
payload: 'BitVec',
|
||||||
|
validatorIndex: 'u32',
|
||||||
|
signature: 'PolkadotPrimitivesV0ValidatorAppSignature'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup319: bitvec::order::Lsb0
|
||||||
|
**/
|
||||||
|
BitvecOrderLsb0: 'Null',
|
||||||
|
/**
|
||||||
|
* Lookup321: polkadot_primitives::v0::validator_app::Signature
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV0ValidatorAppSignature: 'SpCoreSr25519Signature',
|
||||||
|
/**
|
||||||
|
* Lookup323: polkadot_primitives::v1::BackedCandidate<primitive_types::H256>
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1BackedCandidate: {
|
||||||
|
candidate: 'PolkadotPrimitivesV1CommittedCandidateReceipt',
|
||||||
|
validityVotes: 'Vec<PolkadotPrimitivesV0ValidityAttestation>',
|
||||||
|
validatorIndices: 'BitVec'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup324: polkadot_primitives::v1::CommittedCandidateReceipt<primitive_types::H256>
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1CommittedCandidateReceipt: {
|
||||||
|
descriptor: 'PolkadotPrimitivesV1CandidateDescriptor',
|
||||||
|
commitments: 'PolkadotPrimitivesV1CandidateCommitments'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup325: polkadot_primitives::v1::CandidateCommitments<N>
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1CandidateCommitments: {
|
||||||
|
upwardMessages: 'Vec<Bytes>',
|
||||||
|
horizontalMessages: 'Vec<PolkadotCorePrimitivesOutboundHrmpMessage>',
|
||||||
|
newValidationCode: 'Option<Bytes>',
|
||||||
|
headData: 'Bytes',
|
||||||
|
processedDownwardMessages: 'u32',
|
||||||
|
hrmpWatermark: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup327: polkadot_core_primitives::OutboundHrmpMessage<polkadot_parachain::primitives::Id>
|
||||||
|
**/
|
||||||
|
PolkadotCorePrimitivesOutboundHrmpMessage: {
|
||||||
|
recipient: 'u32',
|
||||||
|
data: 'Bytes'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup331: polkadot_primitives::v0::ValidityAttestation
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV0ValidityAttestation: {
|
||||||
|
_enum: {
|
||||||
|
Unused0: 'Null',
|
||||||
|
Implicit: 'PolkadotPrimitivesV0ValidatorAppSignature',
|
||||||
|
Explicit: 'PolkadotPrimitivesV0ValidatorAppSignature'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup333: polkadot_primitives::v1::DisputeStatementSet
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1DisputeStatementSet: {
|
||||||
|
candidateHash: 'H256',
|
||||||
|
session: 'u32',
|
||||||
|
statements: 'Vec<(PolkadotPrimitivesV1DisputeStatement,u32,PolkadotPrimitivesV0ValidatorAppSignature)>'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup337: polkadot_primitives::v1::DisputeStatement
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1DisputeStatement: {
|
||||||
|
_enum: {
|
||||||
|
Valid: 'PolkadotPrimitivesV1ValidDisputeStatementKind',
|
||||||
|
Invalid: 'PolkadotPrimitivesV1InvalidDisputeStatementKind'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup338: polkadot_primitives::v1::ValidDisputeStatementKind
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1ValidDisputeStatementKind: {
|
||||||
|
_enum: {
|
||||||
|
Explicit: 'Null',
|
||||||
|
BackingSeconded: 'H256',
|
||||||
|
BackingValid: 'H256',
|
||||||
|
ApprovalChecking: 'Null'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup339: polkadot_primitives::v1::InvalidDisputeStatementKind
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1InvalidDisputeStatementKind: {
|
||||||
|
_enum: ['Explicit']
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup351: sp_runtime::MultiSigner
|
||||||
|
**/
|
||||||
|
SpRuntimeMultiSigner: {
|
||||||
|
_enum: {
|
||||||
|
Ed25519: 'SpCoreEd25519Public',
|
||||||
|
Sr25519: 'SpCoreSr25519Public',
|
||||||
|
Ecdsa: 'SpCoreEcdsaPublic'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup352: sp_core::ecdsa::Public
|
||||||
|
**/
|
||||||
|
SpCoreEcdsaPublic: '[u8;33]',
|
||||||
|
/**
|
||||||
|
* Lookup357: polkadot_runtime::OriginCaller
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeOriginCaller: {
|
PolkadotRuntimeOriginCaller: {
|
||||||
_enum: {
|
_enum: {
|
||||||
system: 'FrameSystemRawOrigin',
|
system: 'FrameSystemRawOrigin',
|
||||||
Unused1: 'Null',
|
Unused1: 'Null',
|
||||||
Unused2: 'Null',
|
Unused2: 'Null',
|
||||||
|
Unused3: 'Null',
|
||||||
Void: 'SpCoreVoid',
|
Void: 'SpCoreVoid',
|
||||||
Unused4: 'Null',
|
|
||||||
Unused5: 'Null',
|
Unused5: 'Null',
|
||||||
Unused6: 'Null',
|
Unused6: 'Null',
|
||||||
Unused7: 'Null',
|
Unused7: 'Null',
|
||||||
@@ -87,15 +282,311 @@ export default {
|
|||||||
Unused13: 'Null',
|
Unused13: 'Null',
|
||||||
Unused14: 'Null',
|
Unused14: 'Null',
|
||||||
Council: 'PalletCollectiveRawOrigin',
|
Council: 'PalletCollectiveRawOrigin',
|
||||||
TechnicalCommittee: 'PalletCollectiveRawOrigin'
|
TechnicalCommittee: 'PalletCollectiveRawOrigin',
|
||||||
|
Unused17: 'Null',
|
||||||
|
Unused18: 'Null',
|
||||||
|
Unused19: 'Null',
|
||||||
|
Unused20: 'Null',
|
||||||
|
Unused21: 'Null',
|
||||||
|
Unused22: 'Null',
|
||||||
|
Unused23: 'Null',
|
||||||
|
Unused24: 'Null',
|
||||||
|
Unused25: 'Null',
|
||||||
|
Unused26: 'Null',
|
||||||
|
Unused27: 'Null',
|
||||||
|
Unused28: 'Null',
|
||||||
|
Unused29: 'Null',
|
||||||
|
Unused30: 'Null',
|
||||||
|
Unused31: 'Null',
|
||||||
|
Unused32: 'Null',
|
||||||
|
Unused33: 'Null',
|
||||||
|
Unused34: 'Null',
|
||||||
|
Unused35: 'Null',
|
||||||
|
Unused36: 'Null',
|
||||||
|
Unused37: 'Null',
|
||||||
|
Unused38: 'Null',
|
||||||
|
Unused39: 'Null',
|
||||||
|
Unused40: 'Null',
|
||||||
|
Unused41: 'Null',
|
||||||
|
Unused42: 'Null',
|
||||||
|
Unused43: 'Null',
|
||||||
|
Unused44: 'Null',
|
||||||
|
Unused45: 'Null',
|
||||||
|
Unused46: 'Null',
|
||||||
|
Unused47: 'Null',
|
||||||
|
Unused48: 'Null',
|
||||||
|
Unused49: 'Null',
|
||||||
|
ParachainsOrigin: 'PolkadotRuntimeParachainsOriginPalletOrigin'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup441: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
* Lookup361: polkadot_runtime_parachains::origin::pallet::Origin
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsOriginPalletOrigin: {
|
||||||
|
_enum: {
|
||||||
|
Parachain: 'u32'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup506: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
||||||
|
maxCodeSize: 'u32',
|
||||||
|
maxHeadDataSize: 'u32',
|
||||||
|
maxUpwardQueueCount: 'u32',
|
||||||
|
maxUpwardQueueSize: 'u32',
|
||||||
|
maxUpwardMessageSize: 'u32',
|
||||||
|
maxUpwardMessageNumPerCandidate: 'u32',
|
||||||
|
hrmpMaxMessageNumPerCandidate: 'u32',
|
||||||
|
validationUpgradeFrequency: 'u32',
|
||||||
|
validationUpgradeDelay: 'u32',
|
||||||
|
maxPovSize: 'u32',
|
||||||
|
maxDownwardMessageSize: 'u32',
|
||||||
|
umpServiceTotalWeight: 'u64',
|
||||||
|
hrmpMaxParachainOutboundChannels: 'u32',
|
||||||
|
hrmpMaxParathreadOutboundChannels: 'u32',
|
||||||
|
hrmpSenderDeposit: 'u128',
|
||||||
|
hrmpRecipientDeposit: 'u128',
|
||||||
|
hrmpChannelMaxCapacity: 'u32',
|
||||||
|
hrmpChannelMaxTotalSize: 'u32',
|
||||||
|
hrmpMaxParachainInboundChannels: 'u32',
|
||||||
|
hrmpMaxParathreadInboundChannels: 'u32',
|
||||||
|
hrmpChannelMaxMessageSize: 'u32',
|
||||||
|
codeRetentionPeriod: 'u32',
|
||||||
|
parathreadCores: 'u32',
|
||||||
|
parathreadRetries: 'u32',
|
||||||
|
groupRotationFrequency: 'u32',
|
||||||
|
chainAvailabilityPeriod: 'u32',
|
||||||
|
threadAvailabilityPeriod: 'u32',
|
||||||
|
schedulingLookahead: 'u32',
|
||||||
|
maxValidatorsPerCore: 'Option<u32>',
|
||||||
|
maxValidators: 'Option<u32>',
|
||||||
|
disputePeriod: 'u32',
|
||||||
|
disputePostConclusionAcceptancePeriod: 'u32',
|
||||||
|
disputeMaxSpamSlots: 'u32',
|
||||||
|
disputeConclusionByTimeOutPeriod: 'u32',
|
||||||
|
noShowSlots: 'u32',
|
||||||
|
nDelayTranches: 'u32',
|
||||||
|
zerothDelayTrancheWidth: 'u32',
|
||||||
|
neededApprovals: 'u32',
|
||||||
|
relayVrfModuloSamples: 'u32',
|
||||||
|
umpMaxIndividualWeight: 'u64'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup510: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
||||||
|
bitfield: 'BitVec',
|
||||||
|
submittedAt: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup511: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
||||||
|
_alias: {
|
||||||
|
hash_: 'hash'
|
||||||
|
},
|
||||||
|
core: 'u32',
|
||||||
|
hash_: 'H256',
|
||||||
|
descriptor: 'PolkadotPrimitivesV1CandidateDescriptor',
|
||||||
|
availabilityVotes: 'BitVec',
|
||||||
|
backers: 'BitVec',
|
||||||
|
relayParentNumber: 'u32',
|
||||||
|
backedInNumber: 'u32',
|
||||||
|
backingGroup: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup515: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
||||||
|
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
||||||
|
nextCoreOffset: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup517: polkadot_runtime_parachains::scheduler::QueuedParathread
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
||||||
|
claim: 'PolkadotPrimitivesV1ParathreadEntry',
|
||||||
|
coreOffset: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup518: polkadot_primitives::v1::ParathreadEntry
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1ParathreadEntry: {
|
||||||
|
claim: 'PolkadotPrimitivesV1ParathreadClaim',
|
||||||
|
retries: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup519: polkadot_primitives::v1::ParathreadClaim
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1ParathreadClaim: '(u32,PolkadotPrimitivesV0CollatorAppPublic)',
|
||||||
|
/**
|
||||||
|
* Lookup522: polkadot_primitives::v1::CoreOccupied
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1CoreOccupied: {
|
||||||
|
_enum: {
|
||||||
|
Parathread: 'PolkadotPrimitivesV1ParathreadEntry',
|
||||||
|
Parachain: 'Null'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup525: polkadot_runtime_parachains::scheduler::CoreAssignment
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
||||||
|
core: 'u32',
|
||||||
|
paraId: 'u32',
|
||||||
|
kind: 'PolkadotRuntimeParachainsSchedulerAssignmentKind',
|
||||||
|
groupIdx: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup526: polkadot_runtime_parachains::scheduler::AssignmentKind
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
||||||
|
_enum: {
|
||||||
|
Parachain: 'Null',
|
||||||
|
Parathread: '(PolkadotPrimitivesV0CollatorAppPublic,u32)'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup527: polkadot_runtime_parachains::paras::ParaLifecycle
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsParasParaLifecycle: {
|
||||||
|
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup529: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
||||||
|
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
||||||
|
lastPruned: 'Option<u32>'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup531: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsParasReplacementTimes: {
|
||||||
|
expectedAt: 'u32',
|
||||||
|
activatedAt: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup533: polkadot_primitives::v1::UpgradeGoAhead
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1UpgradeGoAhead: {
|
||||||
|
_enum: ['Abort', 'GoAhead']
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup534: polkadot_primitives::v1::UpgradeRestriction
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1UpgradeRestriction: {
|
||||||
|
_enum: ['Present']
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup535: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
||||||
|
genesisHead: 'Bytes',
|
||||||
|
validationCode: 'Bytes',
|
||||||
|
parachain: 'bool'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup538: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
||||||
|
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
|
||||||
|
queued: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
|
||||||
|
sessionIndex: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup540: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
||||||
|
**/
|
||||||
|
PolkadotCorePrimitivesInboundDownwardMessage: {
|
||||||
|
sentAt: 'u32',
|
||||||
|
msg: 'Bytes'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup543: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
||||||
|
confirmed: 'bool',
|
||||||
|
age: 'u32',
|
||||||
|
senderDeposit: 'u128',
|
||||||
|
maxMessageSize: 'u32',
|
||||||
|
maxCapacity: 'u32',
|
||||||
|
maxTotalSize: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup545: polkadot_runtime_parachains::hrmp::HrmpChannel
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
||||||
|
maxCapacity: 'u32',
|
||||||
|
maxTotalSize: 'u32',
|
||||||
|
maxMessageSize: 'u32',
|
||||||
|
msgCount: 'u32',
|
||||||
|
totalSize: 'u32',
|
||||||
|
mqcHead: 'Option<H256>',
|
||||||
|
senderDeposit: 'u128',
|
||||||
|
recipientDeposit: 'u128'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup548: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
||||||
|
**/
|
||||||
|
PolkadotCorePrimitivesInboundHrmpMessage: {
|
||||||
|
sentAt: 'u32',
|
||||||
|
data: 'Bytes'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup553: polkadot_primitives::v1::SessionInfo
|
||||||
|
**/
|
||||||
|
PolkadotPrimitivesV1SessionInfo: {
|
||||||
|
validators: 'Vec<PolkadotPrimitivesV0ValidatorAppPublic>',
|
||||||
|
discoveryKeys: 'Vec<SpAuthorityDiscoveryAppPublic>',
|
||||||
|
assignmentKeys: 'Vec<PolkadotPrimitivesV1AssignmentAppPublic>',
|
||||||
|
validatorGroups: 'Vec<Vec<u32>>',
|
||||||
|
nCores: 'u32',
|
||||||
|
zerothDelayTrancheWidth: 'u32',
|
||||||
|
relayVrfModuloSamples: 'u32',
|
||||||
|
nDelayTranches: 'u32',
|
||||||
|
noShowSlots: 'u32',
|
||||||
|
neededApprovals: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup555: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
||||||
|
manager: 'AccountId32',
|
||||||
|
deposit: 'u128',
|
||||||
|
locked: 'bool'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup565: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
||||||
|
depositor: 'AccountId32',
|
||||||
|
verifier: 'Option<SpRuntimeMultiSigner>',
|
||||||
|
deposit: 'u128',
|
||||||
|
raised: 'u128',
|
||||||
|
end: 'u32',
|
||||||
|
cap: 'u128',
|
||||||
|
lastContribution: 'PolkadotRuntimeCommonCrowdloanLastContribution',
|
||||||
|
firstPeriod: 'u32',
|
||||||
|
lastPeriod: 'u32',
|
||||||
|
trieIndex: 'u32'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup566: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
||||||
|
**/
|
||||||
|
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
||||||
|
_enum: {
|
||||||
|
Never: 'Null',
|
||||||
|
PreEnding: 'u32',
|
||||||
|
Ending: 'u32'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup578: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup442: polkadot_runtime::Runtime
|
* Lookup579: polkadot_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
PolkadotRuntimeRuntime: 'Null'
|
PolkadotRuntimeRuntime: 'Null'
|
||||||
} as DefinitionsTypes;
|
} as DefinitionsTypes;
|
||||||
|
|||||||
@@ -178,17 +178,13 @@ export default {
|
|||||||
value: 'Compact<u128>'
|
value: 'Compact<u128>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup70: pallet_society::DefaultInstance
|
* Lookup76: node_runtime::ProxyType
|
||||||
**/
|
|
||||||
PalletSocietyDefaultInstance: 'Null',
|
|
||||||
/**
|
|
||||||
* Lookup77: node_runtime::ProxyType
|
|
||||||
**/
|
**/
|
||||||
NodeRuntimeProxyType: {
|
NodeRuntimeProxyType: {
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking']
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup80: pallet_multisig::Timepoint<BlockNumber>
|
* Lookup79: pallet_multisig::Timepoint<BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletMultisigTimepoint: {
|
PalletMultisigTimepoint: {
|
||||||
height: 'u32',
|
height: 'u32',
|
||||||
@@ -595,14 +591,14 @@ export default {
|
|||||||
proof: 'Vec<Bytes>'
|
proof: 'Vec<Bytes>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup310: sp_consensus_babe::BabeEpochConfiguration
|
* Lookup313: sp_consensus_babe::BabeEpochConfiguration
|
||||||
**/
|
**/
|
||||||
SpConsensusBabeBabeEpochConfiguration: {
|
SpConsensusBabeBabeEpochConfiguration: {
|
||||||
c: '(u64,u64)',
|
c: '(u64,u64)',
|
||||||
allowedSlots: 'SpConsensusBabeAllowedSlots'
|
allowedSlots: 'SpConsensusBabeAllowedSlots'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup313: pallet_authorship::UncleEntryItem<BlockNumber, primitive_types::H256, sp_core::crypto::AccountId32>
|
* Lookup316: pallet_authorship::UncleEntryItem<BlockNumber, primitive_types::H256, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletAuthorshipUncleEntryItem: {
|
PalletAuthorshipUncleEntryItem: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -611,7 +607,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup318: pallet_balances::BalanceLock<Balance>
|
* Lookup321: pallet_balances::BalanceLock<Balance>
|
||||||
**/
|
**/
|
||||||
PalletBalancesBalanceLock: {
|
PalletBalancesBalanceLock: {
|
||||||
id: '[u8;8]',
|
id: '[u8;8]',
|
||||||
@@ -619,32 +615,32 @@ export default {
|
|||||||
reasons: 'PalletBalancesReasons'
|
reasons: 'PalletBalancesReasons'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup319: pallet_balances::Reasons
|
* Lookup322: pallet_balances::Reasons
|
||||||
**/
|
**/
|
||||||
PalletBalancesReasons: {
|
PalletBalancesReasons: {
|
||||||
_enum: ['Fee', 'Misc', 'All']
|
_enum: ['Fee', 'Misc', 'All']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup322: pallet_balances::ReserveData<ReserveIdentifier, Balance>
|
* Lookup325: pallet_balances::ReserveData<ReserveIdentifier, Balance>
|
||||||
**/
|
**/
|
||||||
PalletBalancesReserveData: {
|
PalletBalancesReserveData: {
|
||||||
id: '[u8;8]',
|
id: '[u8;8]',
|
||||||
amount: 'u128'
|
amount: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup324: pallet_balances::Releases
|
* Lookup327: pallet_balances::Releases
|
||||||
**/
|
**/
|
||||||
PalletBalancesReleases: {
|
PalletBalancesReleases: {
|
||||||
_enum: ['V1_0_0', 'V2_0_0']
|
_enum: ['V1_0_0', 'V2_0_0']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup327: pallet_transaction_payment::Releases
|
* Lookup330: pallet_transaction_payment::Releases
|
||||||
**/
|
**/
|
||||||
PalletTransactionPaymentReleases: {
|
PalletTransactionPaymentReleases: {
|
||||||
_enum: ['V1Ancient', 'V2']
|
_enum: ['V1Ancient', 'V2']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup329: frame_support::weights::WeightToFeeCoefficient<Balance>
|
* Lookup332: frame_support::weights::WeightToFeeCoefficient<Balance>
|
||||||
**/
|
**/
|
||||||
FrameSupportWeightsWeightToFeeCoefficient: {
|
FrameSupportWeightsWeightToFeeCoefficient: {
|
||||||
coeffInteger: 'u128',
|
coeffInteger: 'u128',
|
||||||
@@ -653,7 +649,7 @@ export default {
|
|||||||
degree: 'u8'
|
degree: 'u8'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup330: pallet_election_provider_multi_phase::Phase<Bn>
|
* Lookup333: pallet_election_provider_multi_phase::Phase<Bn>
|
||||||
**/
|
**/
|
||||||
PalletElectionProviderMultiPhasePhase: {
|
PalletElectionProviderMultiPhasePhase: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -664,7 +660,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup332: pallet_election_provider_multi_phase::ReadySolution<sp_core::crypto::AccountId32>
|
* Lookup335: pallet_election_provider_multi_phase::ReadySolution<sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletElectionProviderMultiPhaseReadySolution: {
|
PalletElectionProviderMultiPhaseReadySolution: {
|
||||||
supports: 'Vec<(AccountId32,SpNposElectionsSupport)>',
|
supports: 'Vec<(AccountId32,SpNposElectionsSupport)>',
|
||||||
@@ -672,14 +668,14 @@ export default {
|
|||||||
compute: 'PalletElectionProviderMultiPhaseElectionCompute'
|
compute: 'PalletElectionProviderMultiPhaseElectionCompute'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup333: pallet_election_provider_multi_phase::RoundSnapshot<sp_core::crypto::AccountId32>
|
* Lookup336: pallet_election_provider_multi_phase::RoundSnapshot<sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletElectionProviderMultiPhaseRoundSnapshot: {
|
PalletElectionProviderMultiPhaseRoundSnapshot: {
|
||||||
voters: 'Vec<(AccountId32,u64,Vec<AccountId32>)>',
|
voters: 'Vec<(AccountId32,u64,Vec<AccountId32>)>',
|
||||||
targets: 'Vec<AccountId32>'
|
targets: 'Vec<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup340: pallet_election_provider_multi_phase::signed::SignedSubmission<sp_core::crypto::AccountId32, Balance, node_runtime::NposSolution16>
|
* Lookup343: pallet_election_provider_multi_phase::signed::SignedSubmission<sp_core::crypto::AccountId32, Balance, node_runtime::NposSolution16>
|
||||||
**/
|
**/
|
||||||
PalletElectionProviderMultiPhaseSignedSignedSubmission: {
|
PalletElectionProviderMultiPhaseSignedSignedSubmission: {
|
||||||
who: 'AccountId32',
|
who: 'AccountId32',
|
||||||
@@ -688,7 +684,7 @@ export default {
|
|||||||
reward: 'u128'
|
reward: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup342: pallet_staking::StakingLedger<sp_core::crypto::AccountId32, Balance>
|
* Lookup345: pallet_staking::StakingLedger<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletStakingStakingLedger: {
|
PalletStakingStakingLedger: {
|
||||||
stash: 'AccountId32',
|
stash: 'AccountId32',
|
||||||
@@ -698,14 +694,14 @@ export default {
|
|||||||
claimedRewards: 'Vec<u32>'
|
claimedRewards: 'Vec<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup344: pallet_staking::UnlockChunk<Balance>
|
* Lookup347: pallet_staking::UnlockChunk<Balance>
|
||||||
**/
|
**/
|
||||||
PalletStakingUnlockChunk: {
|
PalletStakingUnlockChunk: {
|
||||||
value: 'Compact<u128>',
|
value: 'Compact<u128>',
|
||||||
era: 'Compact<u32>'
|
era: 'Compact<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup345: pallet_staking::Nominations<sp_core::crypto::AccountId32>
|
* Lookup348: pallet_staking::Nominations<sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletStakingNominations: {
|
PalletStakingNominations: {
|
||||||
targets: 'Vec<AccountId32>',
|
targets: 'Vec<AccountId32>',
|
||||||
@@ -713,27 +709,27 @@ export default {
|
|||||||
suppressed: 'bool'
|
suppressed: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup346: pallet_staking::ActiveEraInfo
|
* Lookup349: pallet_staking::ActiveEraInfo
|
||||||
**/
|
**/
|
||||||
PalletStakingActiveEraInfo: {
|
PalletStakingActiveEraInfo: {
|
||||||
index: 'u32',
|
index: 'u32',
|
||||||
start: 'Option<u64>'
|
start: 'Option<u64>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup348: pallet_staking::EraRewardPoints<sp_core::crypto::AccountId32>
|
* Lookup351: pallet_staking::EraRewardPoints<sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletStakingEraRewardPoints: {
|
PalletStakingEraRewardPoints: {
|
||||||
total: 'u32',
|
total: 'u32',
|
||||||
individual: 'BTreeMap<AccountId32, u32>'
|
individual: 'BTreeMap<AccountId32, u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup352: pallet_staking::Forcing
|
* Lookup355: pallet_staking::Forcing
|
||||||
**/
|
**/
|
||||||
PalletStakingForcing: {
|
PalletStakingForcing: {
|
||||||
_enum: ['NotForcing', 'ForceNew', 'ForceNone', 'ForceAlways']
|
_enum: ['NotForcing', 'ForceNew', 'ForceNone', 'ForceAlways']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup354: pallet_staking::UnappliedSlash<sp_core::crypto::AccountId32, Balance>
|
* Lookup357: pallet_staking::UnappliedSlash<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletStakingUnappliedSlash: {
|
PalletStakingUnappliedSlash: {
|
||||||
validator: 'AccountId32',
|
validator: 'AccountId32',
|
||||||
@@ -743,7 +739,7 @@ export default {
|
|||||||
payout: 'u128'
|
payout: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup356: pallet_staking::slashing::SlashingSpans
|
* Lookup359: pallet_staking::slashing::SlashingSpans
|
||||||
**/
|
**/
|
||||||
PalletStakingSlashingSlashingSpans: {
|
PalletStakingSlashingSlashingSpans: {
|
||||||
spanIndex: 'u32',
|
spanIndex: 'u32',
|
||||||
@@ -752,24 +748,24 @@ export default {
|
|||||||
prior: 'Vec<u32>'
|
prior: 'Vec<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup357: pallet_staking::slashing::SpanRecord<Balance>
|
* Lookup360: pallet_staking::slashing::SpanRecord<Balance>
|
||||||
**/
|
**/
|
||||||
PalletStakingSlashingSpanRecord: {
|
PalletStakingSlashingSpanRecord: {
|
||||||
slashed: 'u128',
|
slashed: 'u128',
|
||||||
paidOut: 'u128'
|
paidOut: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup358: pallet_staking::Releases
|
* Lookup361: pallet_staking::Releases
|
||||||
**/
|
**/
|
||||||
PalletStakingReleases: {
|
PalletStakingReleases: {
|
||||||
_enum: ['V1_0_0Ancient', 'V2_0_0', 'V3_0_0', 'V4_0_0', 'V5_0_0', 'V6_0_0', 'V7_0_0']
|
_enum: ['V1_0_0Ancient', 'V2_0_0', 'V3_0_0', 'V4_0_0', 'V5_0_0', 'V6_0_0', 'V7_0_0', 'V8_0_0']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup363: sp_core::crypto::KeyTypeId
|
* Lookup366: sp_core::crypto::KeyTypeId
|
||||||
**/
|
**/
|
||||||
SpCoreCryptoKeyTypeId: '[u8;4]',
|
SpCoreCryptoKeyTypeId: '[u8;4]',
|
||||||
/**
|
/**
|
||||||
* Lookup368: pallet_democracy::PreimageStatus<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
* Lookup371: pallet_democracy::PreimageStatus<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyPreimageStatus: {
|
PalletDemocracyPreimageStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -784,7 +780,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup369: pallet_democracy::types::ReferendumInfo<BlockNumber, primitive_types::H256, Balance>
|
* Lookup372: pallet_democracy::types::ReferendumInfo<BlockNumber, primitive_types::H256, Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyReferendumInfo: {
|
PalletDemocracyReferendumInfo: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -796,7 +792,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup370: pallet_democracy::types::ReferendumStatus<BlockNumber, primitive_types::H256, Balance>
|
* Lookup373: pallet_democracy::types::ReferendumStatus<BlockNumber, primitive_types::H256, Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyReferendumStatus: {
|
PalletDemocracyReferendumStatus: {
|
||||||
end: 'u32',
|
end: 'u32',
|
||||||
@@ -806,7 +802,7 @@ export default {
|
|||||||
tally: 'PalletDemocracyTally'
|
tally: 'PalletDemocracyTally'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup371: pallet_democracy::types::Tally<Balance>
|
* Lookup374: pallet_democracy::types::Tally<Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyTally: {
|
PalletDemocracyTally: {
|
||||||
ayes: 'u128',
|
ayes: 'u128',
|
||||||
@@ -814,7 +810,7 @@ export default {
|
|||||||
turnout: 'u128'
|
turnout: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup372: pallet_democracy::vote::Voting<Balance, sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup375: pallet_democracy::vote::Voting<Balance, sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyVoteVoting: {
|
PalletDemocracyVoteVoting: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -833,24 +829,24 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup375: pallet_democracy::types::Delegations<Balance>
|
* Lookup378: pallet_democracy::types::Delegations<Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyDelegations: {
|
PalletDemocracyDelegations: {
|
||||||
votes: 'u128',
|
votes: 'u128',
|
||||||
capital: 'u128'
|
capital: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup376: pallet_democracy::vote::PriorLock<BlockNumber, Balance>
|
* Lookup379: pallet_democracy::vote::PriorLock<BlockNumber, Balance>
|
||||||
**/
|
**/
|
||||||
PalletDemocracyVotePriorLock: '(u32,u128)',
|
PalletDemocracyVotePriorLock: '(u32,u128)',
|
||||||
/**
|
/**
|
||||||
* Lookup379: pallet_democracy::Releases
|
* Lookup382: pallet_democracy::Releases
|
||||||
**/
|
**/
|
||||||
PalletDemocracyReleases: {
|
PalletDemocracyReleases: {
|
||||||
_enum: ['V1']
|
_enum: ['V1']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup382: pallet_collective::Votes<sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup385: pallet_collective::Votes<sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletCollectiveVotes: {
|
PalletCollectiveVotes: {
|
||||||
index: 'u32',
|
index: 'u32',
|
||||||
@@ -860,7 +856,7 @@ export default {
|
|||||||
end: 'u32'
|
end: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup387: pallet_elections_phragmen::SeatHolder<sp_core::crypto::AccountId32, Balance>
|
* Lookup390: pallet_elections_phragmen::SeatHolder<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletElectionsPhragmenSeatHolder: {
|
PalletElectionsPhragmenSeatHolder: {
|
||||||
who: 'AccountId32',
|
who: 'AccountId32',
|
||||||
@@ -868,7 +864,7 @@ export default {
|
|||||||
deposit: 'u128'
|
deposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup388: pallet_elections_phragmen::Voter<sp_core::crypto::AccountId32, Balance>
|
* Lookup391: pallet_elections_phragmen::Voter<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletElectionsPhragmenVoter: {
|
PalletElectionsPhragmenVoter: {
|
||||||
votes: 'Vec<AccountId32>',
|
votes: 'Vec<AccountId32>',
|
||||||
@@ -876,7 +872,7 @@ export default {
|
|||||||
deposit: 'u128'
|
deposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup391: pallet_grandpa::StoredState<N>
|
* Lookup394: pallet_grandpa::StoredState<N>
|
||||||
**/
|
**/
|
||||||
PalletGrandpaStoredState: {
|
PalletGrandpaStoredState: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -893,7 +889,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup392: pallet_grandpa::StoredPendingChange<N>
|
* Lookup395: pallet_grandpa::StoredPendingChange<N, Limit>
|
||||||
**/
|
**/
|
||||||
PalletGrandpaStoredPendingChange: {
|
PalletGrandpaStoredPendingChange: {
|
||||||
scheduledAt: 'u32',
|
scheduledAt: 'u32',
|
||||||
@@ -902,7 +898,7 @@ export default {
|
|||||||
forced: 'Option<u32>'
|
forced: 'Option<u32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup394: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
|
* Lookup398: pallet_treasury::Proposal<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletTreasuryProposal: {
|
PalletTreasuryProposal: {
|
||||||
proposer: 'AccountId32',
|
proposer: 'AccountId32',
|
||||||
@@ -911,11 +907,11 @@ export default {
|
|||||||
bond: 'u128'
|
bond: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup397: frame_support::PalletId
|
* Lookup401: frame_support::PalletId
|
||||||
**/
|
**/
|
||||||
FrameSupportPalletId: '[u8;8]',
|
FrameSupportPalletId: '[u8;8]',
|
||||||
/**
|
/**
|
||||||
* Lookup399: pallet_contracts::wasm::PrefabWasmModule<T>
|
* Lookup403: pallet_contracts::wasm::PrefabWasmModule<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsWasmPrefabWasmModule: {
|
PalletContractsWasmPrefabWasmModule: {
|
||||||
instructionWeightsVersion: 'Compact<u32>',
|
instructionWeightsVersion: 'Compact<u32>',
|
||||||
@@ -927,7 +923,7 @@ export default {
|
|||||||
originalCodeLen: 'u32'
|
originalCodeLen: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup401: pallet_contracts::storage::RawContractInfo<primitive_types::H256>
|
* Lookup405: pallet_contracts::storage::RawContractInfo<primitive_types::H256>
|
||||||
**/
|
**/
|
||||||
PalletContractsStorageRawContractInfo: {
|
PalletContractsStorageRawContractInfo: {
|
||||||
trieId: 'Bytes',
|
trieId: 'Bytes',
|
||||||
@@ -935,13 +931,13 @@ export default {
|
|||||||
reserved: 'Option<Null>'
|
reserved: 'Option<Null>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup403: pallet_contracts::storage::DeletedContract
|
* Lookup407: pallet_contracts::storage::DeletedContract
|
||||||
**/
|
**/
|
||||||
PalletContractsStorageDeletedContract: {
|
PalletContractsStorageDeletedContract: {
|
||||||
trieId: 'Bytes'
|
trieId: 'Bytes'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup404: pallet_contracts::schedule::Schedule<T>
|
* Lookup408: pallet_contracts::schedule::Schedule<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsSchedule: {
|
PalletContractsSchedule: {
|
||||||
limits: 'PalletContractsScheduleLimits',
|
limits: 'PalletContractsScheduleLimits',
|
||||||
@@ -949,7 +945,7 @@ export default {
|
|||||||
hostFnWeights: 'PalletContractsScheduleHostFnWeights'
|
hostFnWeights: 'PalletContractsScheduleHostFnWeights'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup405: pallet_contracts::schedule::Limits
|
* Lookup409: pallet_contracts::schedule::Limits
|
||||||
**/
|
**/
|
||||||
PalletContractsScheduleLimits: {
|
PalletContractsScheduleLimits: {
|
||||||
eventTopics: 'u32',
|
eventTopics: 'u32',
|
||||||
@@ -965,12 +961,11 @@ export default {
|
|||||||
codeLen: 'u32'
|
codeLen: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup406: pallet_contracts::schedule::InstructionWeights<T>
|
* Lookup410: pallet_contracts::schedule::InstructionWeights<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsScheduleInstructionWeights: {
|
PalletContractsScheduleInstructionWeights: {
|
||||||
_alias: {
|
_alias: {
|
||||||
r_if: 'r#if',
|
r_if: 'r#if'
|
||||||
call_: 'call'
|
|
||||||
},
|
},
|
||||||
version: 'u32',
|
version: 'u32',
|
||||||
i64Const: 'u32',
|
i64Const: 'u32',
|
||||||
@@ -982,7 +977,7 @@ export default {
|
|||||||
brIf: 'u32',
|
brIf: 'u32',
|
||||||
brTable: 'u32',
|
brTable: 'u32',
|
||||||
brTablePerEntry: 'u32',
|
brTablePerEntry: 'u32',
|
||||||
call_: 'u32',
|
call: 'u32',
|
||||||
callIndirect: 'u32',
|
callIndirect: 'u32',
|
||||||
callIndirectPerParam: 'u32',
|
callIndirectPerParam: 'u32',
|
||||||
localGet: 'u32',
|
localGet: 'u32',
|
||||||
@@ -1026,12 +1021,11 @@ export default {
|
|||||||
i64Rotr: 'u32'
|
i64Rotr: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup407: pallet_contracts::schedule::HostFnWeights<T>
|
* Lookup411: pallet_contracts::schedule::HostFnWeights<T>
|
||||||
**/
|
**/
|
||||||
PalletContractsScheduleHostFnWeights: {
|
PalletContractsScheduleHostFnWeights: {
|
||||||
_alias: {
|
_alias: {
|
||||||
r_return: 'r#return',
|
r_return: 'r#return'
|
||||||
call_: 'call'
|
|
||||||
},
|
},
|
||||||
caller: 'u64',
|
caller: 'u64',
|
||||||
address: 'u64',
|
address: 'u64',
|
||||||
@@ -1060,7 +1054,7 @@ export default {
|
|||||||
getStorage: 'u64',
|
getStorage: 'u64',
|
||||||
getStoragePerByte: 'u64',
|
getStoragePerByte: 'u64',
|
||||||
transfer: 'u64',
|
transfer: 'u64',
|
||||||
call_: 'u64',
|
call: 'u64',
|
||||||
callTransferSurcharge: 'u64',
|
callTransferSurcharge: 'u64',
|
||||||
callPerInputByte: 'u64',
|
callPerInputByte: 'u64',
|
||||||
callPerOutputByte: 'u64',
|
callPerOutputByte: 'u64',
|
||||||
@@ -1079,14 +1073,21 @@ export default {
|
|||||||
ecdsaRecover: 'u64'
|
ecdsaRecover: 'u64'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup412: sp_staking::offence::OffenceDetails<sp_core::crypto::AccountId32, Offender>
|
* Lookup417: pallet_im_online::BoundedOpaqueNetworkState<PeerIdEncodingLimit, MultiAddrEncodingLimit, AddressesLimit>
|
||||||
|
**/
|
||||||
|
PalletImOnlineBoundedOpaqueNetworkState: {
|
||||||
|
peerId: 'Bytes',
|
||||||
|
externalAddresses: 'Vec<Bytes>'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup422: sp_staking::offence::OffenceDetails<sp_core::crypto::AccountId32, Offender>
|
||||||
**/
|
**/
|
||||||
SpStakingOffenceOffenceDetails: {
|
SpStakingOffenceOffenceDetails: {
|
||||||
offender: '(AccountId32,PalletStakingExposure)',
|
offender: '(AccountId32,PalletStakingExposure)',
|
||||||
reporters: 'Vec<AccountId32>'
|
reporters: 'Vec<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup414: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
|
* Lookup424: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
|
||||||
**/
|
**/
|
||||||
PalletIdentityRegistration: {
|
PalletIdentityRegistration: {
|
||||||
judgements: 'Vec<(u32,PalletIdentityJudgement)>',
|
judgements: 'Vec<(u32,PalletIdentityJudgement)>',
|
||||||
@@ -1094,7 +1095,7 @@ export default {
|
|||||||
info: 'PalletIdentityIdentityInfo'
|
info: 'PalletIdentityIdentityInfo'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup422: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
|
* Lookup432: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletIdentityRegistrarInfo: {
|
PalletIdentityRegistrarInfo: {
|
||||||
account: 'AccountId32',
|
account: 'AccountId32',
|
||||||
@@ -1102,7 +1103,7 @@ export default {
|
|||||||
fields: 'PalletIdentityBitFlags'
|
fields: 'PalletIdentityBitFlags'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup426: pallet_society::Bid<sp_core::crypto::AccountId32, Balance>
|
* Lookup436: pallet_society::Bid<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletSocietyBid: {
|
PalletSocietyBid: {
|
||||||
who: 'AccountId32',
|
who: 'AccountId32',
|
||||||
@@ -1110,7 +1111,7 @@ export default {
|
|||||||
value: 'u128'
|
value: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup427: pallet_society::BidKind<sp_core::crypto::AccountId32, Balance>
|
* Lookup437: pallet_society::BidKind<sp_core::crypto::AccountId32, Balance>
|
||||||
**/
|
**/
|
||||||
PalletSocietyBidKind: {
|
PalletSocietyBidKind: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1119,19 +1120,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup429: pallet_society::VouchingStatus
|
* Lookup439: pallet_society::VouchingStatus
|
||||||
**/
|
**/
|
||||||
PalletSocietyVouchingStatus: {
|
PalletSocietyVouchingStatus: {
|
||||||
_enum: ['Vouching', 'Banned']
|
_enum: ['Vouching', 'Banned']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup433: pallet_society::Vote
|
* Lookup443: pallet_society::Vote
|
||||||
**/
|
**/
|
||||||
PalletSocietyVote: {
|
PalletSocietyVote: {
|
||||||
_enum: ['Skeptic', 'Reject', 'Approve']
|
_enum: ['Skeptic', 'Reject', 'Approve']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup435: pallet_recovery::RecoveryConfig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
* Lookup445: pallet_recovery::RecoveryConfig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletRecoveryRecoveryConfig: {
|
PalletRecoveryRecoveryConfig: {
|
||||||
delayPeriod: 'u32',
|
delayPeriod: 'u32',
|
||||||
@@ -1140,7 +1141,7 @@ export default {
|
|||||||
threshold: 'u16'
|
threshold: 'u16'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup436: pallet_recovery::ActiveRecovery<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
* Lookup446: pallet_recovery::ActiveRecovery<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletRecoveryActiveRecovery: {
|
PalletRecoveryActiveRecovery: {
|
||||||
created: 'u32',
|
created: 'u32',
|
||||||
@@ -1148,26 +1149,23 @@ export default {
|
|||||||
friends: 'Vec<AccountId32>'
|
friends: 'Vec<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup440: pallet_vesting::Releases
|
* Lookup450: pallet_vesting::Releases
|
||||||
**/
|
**/
|
||||||
PalletVestingReleases: {
|
PalletVestingReleases: {
|
||||||
_enum: ['V0', 'V1']
|
_enum: ['V0', 'V1']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup444: pallet_scheduler::ScheduledV2<node_runtime::Call, BlockNumber, node_runtime::OriginCaller, sp_core::crypto::AccountId32>
|
* Lookup454: pallet_scheduler::ScheduledV2<node_runtime::Call, BlockNumber, node_runtime::OriginCaller, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletSchedulerScheduledV2: {
|
PalletSchedulerScheduledV2: {
|
||||||
_alias: {
|
|
||||||
call_: 'call'
|
|
||||||
},
|
|
||||||
maybeId: 'Option<Bytes>',
|
maybeId: 'Option<Bytes>',
|
||||||
priority: 'u8',
|
priority: 'u8',
|
||||||
call_: 'Call',
|
call: 'Call',
|
||||||
maybePeriodic: 'Option<(u32,u32)>',
|
maybePeriodic: 'Option<(u32,u32)>',
|
||||||
origin: 'NodeRuntimeOriginCaller'
|
origin: 'NodeRuntimeOriginCaller'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup445: node_runtime::OriginCaller
|
* Lookup455: node_runtime::OriginCaller
|
||||||
**/
|
**/
|
||||||
NodeRuntimeOriginCaller: {
|
NodeRuntimeOriginCaller: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1188,7 +1186,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup446: frame_system::RawOrigin<sp_core::crypto::AccountId32>
|
* Lookup456: frame_system::RawOrigin<sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
FrameSystemRawOrigin: {
|
FrameSystemRawOrigin: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1198,7 +1196,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup447: pallet_collective::RawOrigin<sp_core::crypto::AccountId32, I>
|
* Lookup457: pallet_collective::RawOrigin<sp_core::crypto::AccountId32, I>
|
||||||
**/
|
**/
|
||||||
PalletCollectiveRawOrigin: {
|
PalletCollectiveRawOrigin: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1208,17 +1206,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup449: sp_core::Void
|
* Lookup459: sp_core::Void
|
||||||
**/
|
**/
|
||||||
SpCoreVoid: 'Null',
|
SpCoreVoid: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup450: pallet_scheduler::Releases
|
* Lookup460: pallet_scheduler::Releases
|
||||||
**/
|
**/
|
||||||
PalletSchedulerReleases: {
|
PalletSchedulerReleases: {
|
||||||
_enum: ['V1', 'V2']
|
_enum: ['V1', 'V2']
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup454: pallet_proxy::ProxyDefinition<sp_core::crypto::AccountId32, node_runtime::ProxyType, BlockNumber>
|
* Lookup464: pallet_proxy::ProxyDefinition<sp_core::crypto::AccountId32, node_runtime::ProxyType, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletProxyProxyDefinition: {
|
PalletProxyProxyDefinition: {
|
||||||
delegate: 'AccountId32',
|
delegate: 'AccountId32',
|
||||||
@@ -1226,7 +1224,7 @@ export default {
|
|||||||
delay: 'u32'
|
delay: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup458: pallet_proxy::Announcement<sp_core::crypto::AccountId32, primitive_types::H256, BlockNumber>
|
* Lookup468: pallet_proxy::Announcement<sp_core::crypto::AccountId32, primitive_types::H256, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletProxyAnnouncement: {
|
PalletProxyAnnouncement: {
|
||||||
real: 'AccountId32',
|
real: 'AccountId32',
|
||||||
@@ -1234,7 +1232,7 @@ export default {
|
|||||||
height: 'u32'
|
height: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup462: pallet_multisig::Multisig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
* Lookup472: pallet_multisig::Multisig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletMultisigMultisig: {
|
PalletMultisigMultisig: {
|
||||||
when: 'PalletMultisigTimepoint',
|
when: 'PalletMultisigTimepoint',
|
||||||
@@ -1243,7 +1241,7 @@ export default {
|
|||||||
approvals: 'Vec<AccountId32>'
|
approvals: 'Vec<AccountId32>'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup465: pallet_bounties::Bounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
* Lookup475: pallet_bounties::Bounty<sp_core::crypto::AccountId32, Balance, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletBountiesBounty: {
|
PalletBountiesBounty: {
|
||||||
proposer: 'AccountId32',
|
proposer: 'AccountId32',
|
||||||
@@ -1254,7 +1252,7 @@ export default {
|
|||||||
status: 'PalletBountiesBountyStatus'
|
status: 'PalletBountiesBountyStatus'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup466: pallet_bounties::BountyStatus<sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup476: pallet_bounties::BountyStatus<sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletBountiesBountyStatus: {
|
PalletBountiesBountyStatus: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1276,7 +1274,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup468: pallet_tips::OpenTip<sp_core::crypto::AccountId32, Balance, BlockNumber, primitive_types::H256>
|
* Lookup478: pallet_tips::OpenTip<sp_core::crypto::AccountId32, Balance, BlockNumber, primitive_types::H256>
|
||||||
**/
|
**/
|
||||||
PalletTipsOpenTip: {
|
PalletTipsOpenTip: {
|
||||||
reason: 'H256',
|
reason: 'H256',
|
||||||
@@ -1288,7 +1286,7 @@ export default {
|
|||||||
findersFee: 'bool'
|
findersFee: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup470: pallet_assets::types::AssetDetails<Balance, sp_core::crypto::AccountId32, DepositBalance>
|
* Lookup480: pallet_assets::types::AssetDetails<Balance, sp_core::crypto::AccountId32, DepositBalance>
|
||||||
**/
|
**/
|
||||||
PalletAssetsAssetDetails: {
|
PalletAssetsAssetDetails: {
|
||||||
owner: 'AccountId32',
|
owner: 'AccountId32',
|
||||||
@@ -1305,7 +1303,7 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup471: pallet_assets::types::AssetBalance<Balance, Extra>
|
* Lookup481: pallet_assets::types::AssetBalance<Balance, Extra>
|
||||||
**/
|
**/
|
||||||
PalletAssetsAssetBalance: {
|
PalletAssetsAssetBalance: {
|
||||||
balance: 'u64',
|
balance: 'u64',
|
||||||
@@ -1314,14 +1312,14 @@ export default {
|
|||||||
extra: 'Null'
|
extra: 'Null'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup473: pallet_assets::types::Approval<Balance, DepositBalance>
|
* Lookup483: pallet_assets::types::Approval<Balance, DepositBalance>
|
||||||
**/
|
**/
|
||||||
PalletAssetsApproval: {
|
PalletAssetsApproval: {
|
||||||
amount: 'u64',
|
amount: 'u64',
|
||||||
deposit: 'u128'
|
deposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup474: pallet_assets::types::AssetMetadata<DepositBalance, frame_support::storage::bounded_vec::BoundedVec<T, S>>
|
* Lookup484: pallet_assets::types::AssetMetadata<DepositBalance, frame_support::storage::bounded_vec::BoundedVec<T, S>>
|
||||||
**/
|
**/
|
||||||
PalletAssetsAssetMetadata: {
|
PalletAssetsAssetMetadata: {
|
||||||
deposit: 'u128',
|
deposit: 'u128',
|
||||||
@@ -1331,7 +1329,7 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup476: pallet_lottery::LotteryConfig<BlockNumber, Balance>
|
* Lookup486: pallet_lottery::LotteryConfig<BlockNumber, Balance>
|
||||||
**/
|
**/
|
||||||
PalletLotteryLotteryConfig: {
|
PalletLotteryLotteryConfig: {
|
||||||
price: 'u128',
|
price: 'u128',
|
||||||
@@ -1341,14 +1339,14 @@ export default {
|
|||||||
repeat: 'bool'
|
repeat: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup481: pallet_gilt::pallet::GiltBid<Balance, sp_core::crypto::AccountId32>
|
* Lookup491: pallet_gilt::pallet::GiltBid<Balance, sp_core::crypto::AccountId32>
|
||||||
**/
|
**/
|
||||||
PalletGiltGiltBid: {
|
PalletGiltGiltBid: {
|
||||||
amount: 'u128',
|
amount: 'u128',
|
||||||
who: 'AccountId32'
|
who: 'AccountId32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup482: pallet_gilt::pallet::ActiveGiltsTotal<Balance>
|
* Lookup492: pallet_gilt::pallet::ActiveGiltsTotal<Balance>
|
||||||
**/
|
**/
|
||||||
PalletGiltActiveGiltsTotal: {
|
PalletGiltActiveGiltsTotal: {
|
||||||
frozen: 'u128',
|
frozen: 'u128',
|
||||||
@@ -1357,7 +1355,7 @@ export default {
|
|||||||
target: 'Perquintill'
|
target: 'Perquintill'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup483: pallet_gilt::pallet::ActiveGilt<Balance, sp_core::crypto::AccountId32, BlockNumber>
|
* Lookup493: pallet_gilt::pallet::ActiveGilt<Balance, sp_core::crypto::AccountId32, BlockNumber>
|
||||||
**/
|
**/
|
||||||
PalletGiltActiveGilt: {
|
PalletGiltActiveGilt: {
|
||||||
proportion: 'Perquintill',
|
proportion: 'Perquintill',
|
||||||
@@ -1366,7 +1364,7 @@ export default {
|
|||||||
expiry: 'u32'
|
expiry: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup485: pallet_uniques::types::ClassDetails<sp_core::crypto::AccountId32, DepositBalance>
|
* Lookup495: pallet_uniques::types::ClassDetails<sp_core::crypto::AccountId32, DepositBalance>
|
||||||
**/
|
**/
|
||||||
PalletUniquesClassDetails: {
|
PalletUniquesClassDetails: {
|
||||||
owner: 'AccountId32',
|
owner: 'AccountId32',
|
||||||
@@ -1381,7 +1379,7 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup487: pallet_uniques::types::InstanceDetails<sp_core::crypto::AccountId32, DepositBalance>
|
* Lookup497: pallet_uniques::types::InstanceDetails<sp_core::crypto::AccountId32, DepositBalance>
|
||||||
**/
|
**/
|
||||||
PalletUniquesInstanceDetails: {
|
PalletUniquesInstanceDetails: {
|
||||||
owner: 'AccountId32',
|
owner: 'AccountId32',
|
||||||
@@ -1390,7 +1388,7 @@ export default {
|
|||||||
deposit: 'u128'
|
deposit: 'u128'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup488: pallet_uniques::types::ClassMetadata<DepositBalance, StringLimit>
|
* Lookup498: pallet_uniques::types::ClassMetadata<DepositBalance, StringLimit>
|
||||||
**/
|
**/
|
||||||
PalletUniquesClassMetadata: {
|
PalletUniquesClassMetadata: {
|
||||||
deposit: 'u128',
|
deposit: 'u128',
|
||||||
@@ -1398,7 +1396,7 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup489: pallet_uniques::types::InstanceMetadata<DepositBalance, StringLimit>
|
* Lookup499: pallet_uniques::types::InstanceMetadata<DepositBalance, StringLimit>
|
||||||
**/
|
**/
|
||||||
PalletUniquesInstanceMetadata: {
|
PalletUniquesInstanceMetadata: {
|
||||||
deposit: 'u128',
|
deposit: 'u128',
|
||||||
@@ -1406,7 +1404,7 @@ export default {
|
|||||||
isFrozen: 'bool'
|
isFrozen: 'bool'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup494: pallet_transaction_storage::TransactionInfo
|
* Lookup504: pallet_transaction_storage::TransactionInfo
|
||||||
**/
|
**/
|
||||||
PalletTransactionStorageTransactionInfo: {
|
PalletTransactionStorageTransactionInfo: {
|
||||||
_alias: {
|
_alias: {
|
||||||
@@ -1418,7 +1416,23 @@ export default {
|
|||||||
blockChunks: 'u32'
|
blockChunks: 'u32'
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup497: sp_runtime::MultiSignature
|
* Lookup506: pallet_bags_list::list::Node<T>
|
||||||
|
**/
|
||||||
|
PalletBagsListListNode: {
|
||||||
|
id: 'AccountId32',
|
||||||
|
prev: 'Option<AccountId32>',
|
||||||
|
next: 'Option<AccountId32>',
|
||||||
|
bagUpper: 'u64'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup507: pallet_bags_list::list::Bag<T>
|
||||||
|
**/
|
||||||
|
PalletBagsListListBag: {
|
||||||
|
head: 'Option<AccountId32>',
|
||||||
|
tail: 'Option<AccountId32>'
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Lookup510: sp_runtime::MultiSignature
|
||||||
**/
|
**/
|
||||||
SpRuntimeMultiSignature: {
|
SpRuntimeMultiSignature: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -1428,35 +1442,35 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Lookup498: sp_core::ecdsa::Signature
|
* Lookup511: sp_core::ecdsa::Signature
|
||||||
**/
|
**/
|
||||||
SpCoreEcdsaSignature: '[u8;65]',
|
SpCoreEcdsaSignature: '[u8;65]',
|
||||||
/**
|
/**
|
||||||
* Lookup501: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
|
* Lookup514: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckSpecVersion: 'Null',
|
FrameSystemExtensionsCheckSpecVersion: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup502: frame_system::extensions::check_tx_version::CheckTxVersion<T>
|
* Lookup515: frame_system::extensions::check_tx_version::CheckTxVersion<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckTxVersion: 'Null',
|
FrameSystemExtensionsCheckTxVersion: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup503: frame_system::extensions::check_genesis::CheckGenesis<T>
|
* Lookup516: frame_system::extensions::check_genesis::CheckGenesis<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckGenesis: 'Null',
|
FrameSystemExtensionsCheckGenesis: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup506: frame_system::extensions::check_nonce::CheckNonce<T>
|
* Lookup519: frame_system::extensions::check_nonce::CheckNonce<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
|
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
|
||||||
/**
|
/**
|
||||||
* Lookup507: frame_system::extensions::check_weight::CheckWeight<T>
|
* Lookup520: frame_system::extensions::check_weight::CheckWeight<T>
|
||||||
**/
|
**/
|
||||||
FrameSystemExtensionsCheckWeight: 'Null',
|
FrameSystemExtensionsCheckWeight: 'Null',
|
||||||
/**
|
/**
|
||||||
* Lookup508: pallet_transaction_payment::ChargeTransactionPayment<T>
|
* Lookup521: pallet_transaction_payment::ChargeTransactionPayment<T>
|
||||||
**/
|
**/
|
||||||
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
||||||
/**
|
/**
|
||||||
* Lookup509: node_runtime::Runtime
|
* Lookup522: node_runtime::Runtime
|
||||||
**/
|
**/
|
||||||
NodeRuntimeRuntime: 'Null'
|
NodeRuntimeRuntime: 'Null'
|
||||||
} as DefinitionsTypes;
|
} as DefinitionsTypes;
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
|
import type { Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
|
||||||
import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/types/lookup' {
|
declare module '@polkadot/types/lookup' {
|
||||||
|
|
||||||
/** @name KusamaRuntimeProxyType (75) */
|
/** @name KusamaRuntimeProxyType (74) */
|
||||||
export interface KusamaRuntimeProxyType extends Enum {
|
export interface KusamaRuntimeProxyType extends Enum {
|
||||||
readonly isAny: boolean;
|
readonly isAny: boolean;
|
||||||
readonly isNonTransfer: boolean;
|
readonly isNonTransfer: boolean;
|
||||||
@@ -18,87 +18,6 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isAuction: boolean;
|
readonly isAuction: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1CandidateReceipt (86) */
|
|
||||||
export interface PolkadotPrimitivesV1CandidateReceipt extends Struct {
|
|
||||||
readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor;
|
|
||||||
readonly commitmentsHash: H256;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1CandidateDescriptor (87) */
|
|
||||||
export interface PolkadotPrimitivesV1CandidateDescriptor extends Struct {
|
|
||||||
readonly paraId: u32;
|
|
||||||
readonly relayParent: H256;
|
|
||||||
readonly collator: PolkadotPrimitivesV0CollatorAppPublic;
|
|
||||||
readonly persistedValidationDataHash: H256;
|
|
||||||
readonly povHash: H256;
|
|
||||||
readonly erasureRoot: H256;
|
|
||||||
readonly signature: PolkadotPrimitivesV0CollatorAppSignature;
|
|
||||||
readonly paraHead: H256;
|
|
||||||
readonly validationCodeHash: H256;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV0CollatorAppPublic (89) */
|
|
||||||
export interface PolkadotPrimitivesV0CollatorAppPublic extends SpCoreSr25519Public {}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV0CollatorAppSignature (90) */
|
|
||||||
export interface PolkadotPrimitivesV0CollatorAppSignature extends SpCoreSr25519Signature {}
|
|
||||||
|
|
||||||
/** @name XcmV2TraitsOutcome (99) */
|
|
||||||
export interface XcmV2TraitsOutcome extends Enum {
|
|
||||||
readonly isComplete: boolean;
|
|
||||||
readonly asComplete: u64;
|
|
||||||
readonly isIncomplete: boolean;
|
|
||||||
readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;
|
|
||||||
readonly isError: boolean;
|
|
||||||
readonly asError: XcmV2TraitsError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name XcmV2TraitsError (100) */
|
|
||||||
export interface XcmV2TraitsError extends Enum {
|
|
||||||
readonly isUndefined: boolean;
|
|
||||||
readonly isOverflow: boolean;
|
|
||||||
readonly isUnimplemented: boolean;
|
|
||||||
readonly isUnhandledXcmVersion: boolean;
|
|
||||||
readonly isUnhandledXcmMessage: boolean;
|
|
||||||
readonly isUnhandledEffect: boolean;
|
|
||||||
readonly isEscalationOfPrivilege: boolean;
|
|
||||||
readonly isUntrustedReserveLocation: boolean;
|
|
||||||
readonly isUntrustedTeleportLocation: boolean;
|
|
||||||
readonly isDestinationBufferOverflow: boolean;
|
|
||||||
readonly isMultiLocationFull: boolean;
|
|
||||||
readonly isMultiLocationNotInvertible: boolean;
|
|
||||||
readonly isFailedToDecode: boolean;
|
|
||||||
readonly isBadOrigin: boolean;
|
|
||||||
readonly isExceedsMaxMessageSize: boolean;
|
|
||||||
readonly isFailedToTransactAsset: boolean;
|
|
||||||
readonly isWeightLimitReached: boolean;
|
|
||||||
readonly asWeightLimitReached: u64;
|
|
||||||
readonly isWildcard: boolean;
|
|
||||||
readonly isTooMuchWeightRequired: boolean;
|
|
||||||
readonly isNotHoldingFees: boolean;
|
|
||||||
readonly isWeightNotComputable: boolean;
|
|
||||||
readonly isBarrier: boolean;
|
|
||||||
readonly isNotWithdrawable: boolean;
|
|
||||||
readonly isLocationCannotHold: boolean;
|
|
||||||
readonly isTooExpensive: boolean;
|
|
||||||
readonly isAssetNotFound: boolean;
|
|
||||||
readonly isDestinationUnsupported: boolean;
|
|
||||||
readonly isRecursionLimitReached: boolean;
|
|
||||||
readonly isTransport: boolean;
|
|
||||||
readonly isUnroutable: boolean;
|
|
||||||
readonly isUnknownWeightRequired: boolean;
|
|
||||||
readonly isTrap: boolean;
|
|
||||||
readonly asTrap: u64;
|
|
||||||
readonly isUnknownClaim: boolean;
|
|
||||||
readonly isInvalidLocation: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotParachainPrimitivesHrmpChannelId (102) */
|
|
||||||
export interface PolkadotParachainPrimitivesHrmpChannelId extends Struct {
|
|
||||||
readonly sender: u32;
|
|
||||||
readonly recipient: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name XcmV1MultiLocation (108) */
|
/** @name XcmV1MultiLocation (108) */
|
||||||
export interface XcmV1MultiLocation extends Struct {
|
export interface XcmV1MultiLocation extends Struct {
|
||||||
readonly parents: u8;
|
readonly parents: u8;
|
||||||
@@ -237,7 +156,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asTransact: {
|
readonly asTransact: {
|
||||||
readonly originType: XcmV0OriginKind;
|
readonly originType: XcmV0OriginKind;
|
||||||
readonly requireWeightAtMost: Compact<u64>;
|
readonly requireWeightAtMost: Compact<u64>;
|
||||||
readonly call_: XcmDoubleEncoded;
|
readonly call: XcmDoubleEncoded;
|
||||||
} & Struct;
|
} & Struct;
|
||||||
readonly isHrmpNewChannelOpenRequest: boolean;
|
readonly isHrmpNewChannelOpenRequest: boolean;
|
||||||
readonly asHrmpNewChannelOpenRequest: {
|
readonly asHrmpNewChannelOpenRequest: {
|
||||||
@@ -371,7 +290,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isAssets: boolean;
|
readonly isAssets: boolean;
|
||||||
readonly asAssets: XcmV1MultiassetMultiAssets;
|
readonly asAssets: XcmV1MultiassetMultiAssets;
|
||||||
readonly isExecutionResult: boolean;
|
readonly isExecutionResult: boolean;
|
||||||
readonly asExecutionResult: Result<Null, ITuple<[u32, XcmV2TraitsError]>>;
|
readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;
|
||||||
readonly isVersion: boolean;
|
readonly isVersion: boolean;
|
||||||
readonly asVersion: u32;
|
readonly asVersion: u32;
|
||||||
}
|
}
|
||||||
@@ -535,7 +454,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asV1: XcmV1MultiLocation;
|
readonly asV1: XcmV1MultiLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeSessionKeys (237) */
|
/** @name KusamaRuntimeSessionKeys (239) */
|
||||||
export interface KusamaRuntimeSessionKeys extends Struct {
|
export interface KusamaRuntimeSessionKeys extends Struct {
|
||||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||||
readonly babe: SpConsensusBabeAppPublic;
|
readonly babe: SpConsensusBabeAppPublic;
|
||||||
@@ -545,7 +464,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeNposCompactSolution24 (360) */
|
/** @name KusamaRuntimeNposCompactSolution24 (369) */
|
||||||
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
export interface KusamaRuntimeNposCompactSolution24 extends Struct {
|
||||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||||
@@ -573,109 +492,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1InherentData (448) */
|
/** @name XcmVersionedXcm (502) */
|
||||||
export interface PolkadotPrimitivesV1InherentData extends Struct {
|
|
||||||
readonly bitfields: Vec<PolkadotPrimitivesV1SignedUncheckedSigned>;
|
|
||||||
readonly backedCandidates: Vec<PolkadotPrimitivesV1BackedCandidate>;
|
|
||||||
readonly disputes: Vec<PolkadotPrimitivesV1DisputeStatementSet>;
|
|
||||||
readonly parentHeader: SpRuntimeGenericHeader;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1SignedUncheckedSigned (450) */
|
|
||||||
export interface PolkadotPrimitivesV1SignedUncheckedSigned extends Struct {
|
|
||||||
readonly payload: BitVec;
|
|
||||||
readonly validatorIndex: u32;
|
|
||||||
readonly signature: PolkadotPrimitivesV0ValidatorAppSignature;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name BitvecOrderLsb0 (453) */
|
|
||||||
export type BitvecOrderLsb0 = Null;
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV0ValidatorAppSignature (455) */
|
|
||||||
export interface PolkadotPrimitivesV0ValidatorAppSignature extends SpCoreSr25519Signature {}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1BackedCandidate (457) */
|
|
||||||
export interface PolkadotPrimitivesV1BackedCandidate extends Struct {
|
|
||||||
readonly candidate: PolkadotPrimitivesV1CommittedCandidateReceipt;
|
|
||||||
readonly validityVotes: Vec<PolkadotPrimitivesV0ValidityAttestation>;
|
|
||||||
readonly validatorIndices: BitVec;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1CommittedCandidateReceipt (458) */
|
|
||||||
export interface PolkadotPrimitivesV1CommittedCandidateReceipt extends Struct {
|
|
||||||
readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor;
|
|
||||||
readonly commitments: PolkadotPrimitivesV1CandidateCommitments;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1CandidateCommitments (459) */
|
|
||||||
export interface PolkadotPrimitivesV1CandidateCommitments extends Struct {
|
|
||||||
readonly upwardMessages: Vec<Bytes>;
|
|
||||||
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
|
|
||||||
readonly newValidationCode: Option<Bytes>;
|
|
||||||
readonly headData: Bytes;
|
|
||||||
readonly processedDownwardMessages: u32;
|
|
||||||
readonly hrmpWatermark: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (461) */
|
|
||||||
export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
|
|
||||||
readonly recipient: u32;
|
|
||||||
readonly data: Bytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV0ValidityAttestation (465) */
|
|
||||||
export interface PolkadotPrimitivesV0ValidityAttestation extends Enum {
|
|
||||||
readonly isUnused0: boolean;
|
|
||||||
readonly isImplicit: boolean;
|
|
||||||
readonly asImplicit: PolkadotPrimitivesV0ValidatorAppSignature;
|
|
||||||
readonly isExplicit: boolean;
|
|
||||||
readonly asExplicit: PolkadotPrimitivesV0ValidatorAppSignature;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1DisputeStatementSet (467) */
|
|
||||||
export interface PolkadotPrimitivesV1DisputeStatementSet extends Struct {
|
|
||||||
readonly candidateHash: H256;
|
|
||||||
readonly session: u32;
|
|
||||||
readonly statements: Vec<ITuple<[PolkadotPrimitivesV1DisputeStatement, u32, PolkadotPrimitivesV0ValidatorAppSignature]>>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1DisputeStatement (471) */
|
|
||||||
export interface PolkadotPrimitivesV1DisputeStatement extends Enum {
|
|
||||||
readonly isValid: boolean;
|
|
||||||
readonly asValid: PolkadotPrimitivesV1ValidDisputeStatementKind;
|
|
||||||
readonly isInvalid: boolean;
|
|
||||||
readonly asInvalid: PolkadotPrimitivesV1InvalidDisputeStatementKind;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1ValidDisputeStatementKind (472) */
|
|
||||||
export interface PolkadotPrimitivesV1ValidDisputeStatementKind extends Enum {
|
|
||||||
readonly isExplicit: boolean;
|
|
||||||
readonly isBackingSeconded: boolean;
|
|
||||||
readonly asBackingSeconded: H256;
|
|
||||||
readonly isBackingValid: boolean;
|
|
||||||
readonly asBackingValid: H256;
|
|
||||||
readonly isApprovalChecking: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1InvalidDisputeStatementKind (473) */
|
|
||||||
export interface PolkadotPrimitivesV1InvalidDisputeStatementKind extends Enum {
|
|
||||||
readonly isExplicit: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name SpRuntimeMultiSigner (485) */
|
|
||||||
export interface SpRuntimeMultiSigner extends Enum {
|
|
||||||
readonly isEd25519: boolean;
|
|
||||||
readonly asEd25519: SpCoreEd25519Public;
|
|
||||||
readonly isSr25519: boolean;
|
|
||||||
readonly asSr25519: SpCoreSr25519Public;
|
|
||||||
readonly isEcdsa: boolean;
|
|
||||||
readonly asEcdsa: SpCoreEcdsaPublic;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name SpCoreEcdsaPublic (486) */
|
|
||||||
export interface SpCoreEcdsaPublic extends U8aFixed {}
|
|
||||||
|
|
||||||
/** @name XcmVersionedXcm (492) */
|
|
||||||
export interface XcmVersionedXcm extends Enum {
|
export interface XcmVersionedXcm extends Enum {
|
||||||
readonly isV0: boolean;
|
readonly isV0: boolean;
|
||||||
readonly asV0: XcmV0Xcm;
|
readonly asV0: XcmV0Xcm;
|
||||||
@@ -685,7 +502,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asV2: XcmV2Xcm;
|
readonly asV2: XcmV2Xcm;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV0Xcm (493) */
|
/** @name XcmV0Xcm (503) */
|
||||||
export interface XcmV0Xcm extends Enum {
|
export interface XcmV0Xcm extends Enum {
|
||||||
readonly isWithdrawAsset: boolean;
|
readonly isWithdrawAsset: boolean;
|
||||||
readonly asWithdrawAsset: {
|
readonly asWithdrawAsset: {
|
||||||
@@ -722,7 +539,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asTransact: {
|
readonly asTransact: {
|
||||||
readonly originType: XcmV0OriginKind;
|
readonly originType: XcmV0OriginKind;
|
||||||
readonly requireWeightAtMost: u64;
|
readonly requireWeightAtMost: u64;
|
||||||
readonly call_: XcmDoubleEncoded;
|
readonly call: XcmDoubleEncoded;
|
||||||
} & Struct;
|
} & Struct;
|
||||||
readonly isHrmpNewChannelOpenRequest: boolean;
|
readonly isHrmpNewChannelOpenRequest: boolean;
|
||||||
readonly asHrmpNewChannelOpenRequest: {
|
readonly asHrmpNewChannelOpenRequest: {
|
||||||
@@ -747,7 +564,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV0Order (495) */
|
/** @name XcmV0Order (505) */
|
||||||
export interface XcmV0Order extends Enum {
|
export interface XcmV0Order extends Enum {
|
||||||
readonly isNull: boolean;
|
readonly isNull: boolean;
|
||||||
readonly isDepositAsset: boolean;
|
readonly isDepositAsset: boolean;
|
||||||
@@ -794,13 +611,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV0Response (497) */
|
/** @name XcmV0Response (507) */
|
||||||
export interface XcmV0Response extends Enum {
|
export interface XcmV0Response extends Enum {
|
||||||
readonly isAssets: boolean;
|
readonly isAssets: boolean;
|
||||||
readonly asAssets: Vec<XcmV0MultiAsset>;
|
readonly asAssets: Vec<XcmV0MultiAsset>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV1Xcm (498) */
|
/** @name XcmV1Xcm (508) */
|
||||||
export interface XcmV1Xcm extends Enum {
|
export interface XcmV1Xcm extends Enum {
|
||||||
readonly isWithdrawAsset: boolean;
|
readonly isWithdrawAsset: boolean;
|
||||||
readonly asWithdrawAsset: {
|
readonly asWithdrawAsset: {
|
||||||
@@ -837,7 +654,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asTransact: {
|
readonly asTransact: {
|
||||||
readonly originType: XcmV0OriginKind;
|
readonly originType: XcmV0OriginKind;
|
||||||
readonly requireWeightAtMost: u64;
|
readonly requireWeightAtMost: u64;
|
||||||
readonly call_: XcmDoubleEncoded;
|
readonly call: XcmDoubleEncoded;
|
||||||
} & Struct;
|
} & Struct;
|
||||||
readonly isHrmpNewChannelOpenRequest: boolean;
|
readonly isHrmpNewChannelOpenRequest: boolean;
|
||||||
readonly asHrmpNewChannelOpenRequest: {
|
readonly asHrmpNewChannelOpenRequest: {
|
||||||
@@ -868,7 +685,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isUnsubscribeVersion: boolean;
|
readonly isUnsubscribeVersion: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV1Order (500) */
|
/** @name XcmV1Order (510) */
|
||||||
export interface XcmV1Order extends Enum {
|
export interface XcmV1Order extends Enum {
|
||||||
readonly isNoop: boolean;
|
readonly isNoop: boolean;
|
||||||
readonly isDepositAsset: boolean;
|
readonly isDepositAsset: boolean;
|
||||||
@@ -917,7 +734,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmV1Response (502) */
|
/** @name XcmV1Response (512) */
|
||||||
export interface XcmV1Response extends Enum {
|
export interface XcmV1Response extends Enum {
|
||||||
readonly isAssets: boolean;
|
readonly isAssets: boolean;
|
||||||
readonly asAssets: XcmV1MultiassetMultiAssets;
|
readonly asAssets: XcmV1MultiassetMultiAssets;
|
||||||
@@ -925,7 +742,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asVersion: u32;
|
readonly asVersion: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeOriginCaller (563) */
|
/** @name KusamaRuntimeOriginCaller (573) */
|
||||||
export interface KusamaRuntimeOriginCaller extends Enum {
|
export interface KusamaRuntimeOriginCaller extends Enum {
|
||||||
readonly isSystem: boolean;
|
readonly isSystem: boolean;
|
||||||
readonly asSystem: FrameSystemRawOrigin;
|
readonly asSystem: FrameSystemRawOrigin;
|
||||||
@@ -1034,13 +851,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asXcmPallet: PalletXcmOrigin;
|
readonly asXcmPallet: PalletXcmOrigin;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (567) */
|
/** @name PalletXcmOrigin (578) */
|
||||||
export interface PolkadotRuntimeParachainsOriginPalletOrigin extends Enum {
|
|
||||||
readonly isParachain: boolean;
|
|
||||||
readonly asParachain: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PalletXcmOrigin (568) */
|
|
||||||
export interface PalletXcmOrigin extends Enum {
|
export interface PalletXcmOrigin extends Enum {
|
||||||
readonly isXcm: boolean;
|
readonly isXcm: boolean;
|
||||||
readonly asXcm: XcmV1MultiLocation;
|
readonly asXcm: XcmV1MultiLocation;
|
||||||
@@ -1048,238 +859,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asResponse: XcmV1MultiLocation;
|
readonly asResponse: XcmV1MultiLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (607) */
|
/** @name PalletXcmQueryStatus (682) */
|
||||||
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
|
||||||
readonly maxCodeSize: u32;
|
|
||||||
readonly maxHeadDataSize: u32;
|
|
||||||
readonly maxUpwardQueueCount: u32;
|
|
||||||
readonly maxUpwardQueueSize: u32;
|
|
||||||
readonly maxUpwardMessageSize: u32;
|
|
||||||
readonly maxUpwardMessageNumPerCandidate: u32;
|
|
||||||
readonly hrmpMaxMessageNumPerCandidate: u32;
|
|
||||||
readonly validationUpgradeFrequency: u32;
|
|
||||||
readonly validationUpgradeDelay: u32;
|
|
||||||
readonly maxPovSize: u32;
|
|
||||||
readonly maxDownwardMessageSize: u32;
|
|
||||||
readonly umpServiceTotalWeight: u64;
|
|
||||||
readonly hrmpMaxParachainOutboundChannels: u32;
|
|
||||||
readonly hrmpMaxParathreadOutboundChannels: u32;
|
|
||||||
readonly hrmpSenderDeposit: u128;
|
|
||||||
readonly hrmpRecipientDeposit: u128;
|
|
||||||
readonly hrmpChannelMaxCapacity: u32;
|
|
||||||
readonly hrmpChannelMaxTotalSize: u32;
|
|
||||||
readonly hrmpMaxParachainInboundChannels: u32;
|
|
||||||
readonly hrmpMaxParathreadInboundChannels: u32;
|
|
||||||
readonly hrmpChannelMaxMessageSize: u32;
|
|
||||||
readonly codeRetentionPeriod: u32;
|
|
||||||
readonly parathreadCores: u32;
|
|
||||||
readonly parathreadRetries: u32;
|
|
||||||
readonly groupRotationFrequency: u32;
|
|
||||||
readonly chainAvailabilityPeriod: u32;
|
|
||||||
readonly threadAvailabilityPeriod: u32;
|
|
||||||
readonly schedulingLookahead: u32;
|
|
||||||
readonly maxValidatorsPerCore: Option<u32>;
|
|
||||||
readonly maxValidators: Option<u32>;
|
|
||||||
readonly disputePeriod: u32;
|
|
||||||
readonly disputePostConclusionAcceptancePeriod: u32;
|
|
||||||
readonly disputeMaxSpamSlots: u32;
|
|
||||||
readonly disputeConclusionByTimeOutPeriod: u32;
|
|
||||||
readonly noShowSlots: u32;
|
|
||||||
readonly nDelayTranches: u32;
|
|
||||||
readonly zerothDelayTrancheWidth: u32;
|
|
||||||
readonly neededApprovals: u32;
|
|
||||||
readonly relayVrfModuloSamples: u32;
|
|
||||||
readonly umpMaxIndividualWeight: u64;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (611) */
|
|
||||||
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
|
||||||
readonly bitfield: BitVec;
|
|
||||||
readonly submittedAt: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (612) */
|
|
||||||
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
|
||||||
readonly core: u32;
|
|
||||||
readonly hash_: H256;
|
|
||||||
readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor;
|
|
||||||
readonly availabilityVotes: BitVec;
|
|
||||||
readonly backers: BitVec;
|
|
||||||
readonly relayParentNumber: u32;
|
|
||||||
readonly backedInNumber: u32;
|
|
||||||
readonly backingGroup: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (616) */
|
|
||||||
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
|
||||||
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
|
||||||
readonly nextCoreOffset: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (618) */
|
|
||||||
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
|
||||||
readonly claim: PolkadotPrimitivesV1ParathreadEntry;
|
|
||||||
readonly coreOffset: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1ParathreadEntry (619) */
|
|
||||||
export interface PolkadotPrimitivesV1ParathreadEntry extends Struct {
|
|
||||||
readonly claim: PolkadotPrimitivesV1ParathreadClaim;
|
|
||||||
readonly retries: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1ParathreadClaim (620) */
|
|
||||||
export interface PolkadotPrimitivesV1ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV0CollatorAppPublic]> {}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1CoreOccupied (623) */
|
|
||||||
export interface PolkadotPrimitivesV1CoreOccupied extends Enum {
|
|
||||||
readonly isParathread: boolean;
|
|
||||||
readonly asParathread: PolkadotPrimitivesV1ParathreadEntry;
|
|
||||||
readonly isParachain: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (626) */
|
|
||||||
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
|
||||||
readonly core: u32;
|
|
||||||
readonly paraId: u32;
|
|
||||||
readonly kind: PolkadotRuntimeParachainsSchedulerAssignmentKind;
|
|
||||||
readonly groupIdx: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (627) */
|
|
||||||
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
|
||||||
readonly isParachain: boolean;
|
|
||||||
readonly isParathread: boolean;
|
|
||||||
readonly asParathread: ITuple<[PolkadotPrimitivesV0CollatorAppPublic, u32]>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaLifecycle (628) */
|
|
||||||
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
|
||||||
readonly isOnboarding: boolean;
|
|
||||||
readonly isParathread: boolean;
|
|
||||||
readonly isParachain: boolean;
|
|
||||||
readonly isUpgradingParathread: boolean;
|
|
||||||
readonly isDowngradingParachain: boolean;
|
|
||||||
readonly isOffboardingParathread: boolean;
|
|
||||||
readonly isOffboardingParachain: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (630) */
|
|
||||||
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
|
||||||
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
|
||||||
readonly lastPruned: Option<u32>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasReplacementTimes (632) */
|
|
||||||
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
|
||||||
readonly expectedAt: u32;
|
|
||||||
readonly activatedAt: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1UpgradeGoAhead (634) */
|
|
||||||
export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum {
|
|
||||||
readonly isAbort: boolean;
|
|
||||||
readonly isGoAhead: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1UpgradeRestriction (635) */
|
|
||||||
export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {
|
|
||||||
readonly isPresent: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (636) */
|
|
||||||
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
|
||||||
readonly genesisHead: Bytes;
|
|
||||||
readonly validationCode: Bytes;
|
|
||||||
readonly parachain: bool;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (639) */
|
|
||||||
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
|
||||||
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
|
||||||
readonly queued: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
|
||||||
readonly sessionIndex: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesInboundDownwardMessage (641) */
|
|
||||||
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
|
||||||
readonly sentAt: u32;
|
|
||||||
readonly msg: Bytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (644) */
|
|
||||||
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
|
||||||
readonly confirmed: bool;
|
|
||||||
readonly age: u32;
|
|
||||||
readonly senderDeposit: u128;
|
|
||||||
readonly maxMessageSize: u32;
|
|
||||||
readonly maxCapacity: u32;
|
|
||||||
readonly maxTotalSize: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (646) */
|
|
||||||
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
|
||||||
readonly maxCapacity: u32;
|
|
||||||
readonly maxTotalSize: u32;
|
|
||||||
readonly maxMessageSize: u32;
|
|
||||||
readonly msgCount: u32;
|
|
||||||
readonly totalSize: u32;
|
|
||||||
readonly mqcHead: Option<H256>;
|
|
||||||
readonly senderDeposit: u128;
|
|
||||||
readonly recipientDeposit: u128;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotCorePrimitivesInboundHrmpMessage (649) */
|
|
||||||
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
|
||||||
readonly sentAt: u32;
|
|
||||||
readonly data: Bytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1SessionInfo (654) */
|
|
||||||
export interface PolkadotPrimitivesV1SessionInfo extends Struct {
|
|
||||||
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
|
||||||
readonly discoveryKeys: Vec<SpAuthorityDiscoveryAppPublic>;
|
|
||||||
readonly assignmentKeys: Vec<PolkadotPrimitivesV1AssignmentAppPublic>;
|
|
||||||
readonly validatorGroups: Vec<Vec<u32>>;
|
|
||||||
readonly nCores: u32;
|
|
||||||
readonly zerothDelayTrancheWidth: u32;
|
|
||||||
readonly relayVrfModuloSamples: u32;
|
|
||||||
readonly nDelayTranches: u32;
|
|
||||||
readonly noShowSlots: u32;
|
|
||||||
readonly neededApprovals: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (656) */
|
|
||||||
export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
|
||||||
readonly manager: AccountId32;
|
|
||||||
readonly deposit: u128;
|
|
||||||
readonly locked: bool;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (666) */
|
|
||||||
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
|
||||||
readonly depositor: AccountId32;
|
|
||||||
readonly verifier: Option<SpRuntimeMultiSigner>;
|
|
||||||
readonly deposit: u128;
|
|
||||||
readonly raised: u128;
|
|
||||||
readonly end: u32;
|
|
||||||
readonly cap: u128;
|
|
||||||
readonly lastContribution: PolkadotRuntimeCommonCrowdloanLastContribution;
|
|
||||||
readonly firstPeriod: u32;
|
|
||||||
readonly lastPeriod: u32;
|
|
||||||
readonly trieIndex: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (667) */
|
|
||||||
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
|
||||||
readonly isNever: boolean;
|
|
||||||
readonly isPreEnding: boolean;
|
|
||||||
readonly asPreEnding: u32;
|
|
||||||
readonly isEnding: boolean;
|
|
||||||
readonly asEnding: u32;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name PalletXcmQueryStatus (669) */
|
|
||||||
export interface PalletXcmQueryStatus extends Enum {
|
export interface PalletXcmQueryStatus extends Enum {
|
||||||
readonly isPending: boolean;
|
readonly isPending: boolean;
|
||||||
readonly asPending: {
|
readonly asPending: {
|
||||||
@@ -1299,7 +879,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name XcmVersionedResponse (672) */
|
/** @name XcmVersionedResponse (685) */
|
||||||
export interface XcmVersionedResponse extends Enum {
|
export interface XcmVersionedResponse extends Enum {
|
||||||
readonly isV0: boolean;
|
readonly isV0: boolean;
|
||||||
readonly asV0: XcmV0Response;
|
readonly asV0: XcmV0Response;
|
||||||
@@ -1309,7 +889,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asV2: XcmV2Response;
|
readonly asV2: XcmV2Response;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletXcmVersionMigrationStage (678) */
|
/** @name PalletXcmVersionMigrationStage (691) */
|
||||||
export interface PalletXcmVersionMigrationStage extends Enum {
|
export interface PalletXcmVersionMigrationStage extends Enum {
|
||||||
readonly isMigrateSupportedVersion: boolean;
|
readonly isMigrateSupportedVersion: boolean;
|
||||||
readonly isMigrateVersionNotifiers: boolean;
|
readonly isMigrateVersionNotifiers: boolean;
|
||||||
@@ -1318,7 +898,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isMigrateAndNotifyOldTargets: boolean;
|
readonly isMigrateAndNotifyOldTargets: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name KusamaRuntimeRuntime (690) */
|
/** @name KusamaRuntimeRuntime (703) */
|
||||||
export type KusamaRuntimeRuntime = Null;
|
export type KusamaRuntimeRuntime = Null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
import type { Compact, Enum, Null, Struct, U8aFixed, Vec, u16, u32 } from '@polkadot/types';
|
import type { BitVec, Bytes, Compact, Enum, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types';
|
||||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||||
import type { ITuple } from '@polkadot/types/types';
|
import type { ITuple } from '@polkadot/types/types';
|
||||||
|
|
||||||
declare module '@polkadot/types/lookup' {
|
declare module '@polkadot/types/lookup' {
|
||||||
@@ -19,9 +19,83 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isUnused4: boolean;
|
readonly isUnused4: boolean;
|
||||||
readonly isIdentityJudgement: boolean;
|
readonly isIdentityJudgement: boolean;
|
||||||
readonly isCancelProxy: boolean;
|
readonly isCancelProxy: boolean;
|
||||||
|
readonly isAuction: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeSessionKeys (139) */
|
/** @name PolkadotPrimitivesV1CandidateReceipt (82) */
|
||||||
|
export interface PolkadotPrimitivesV1CandidateReceipt extends Struct {
|
||||||
|
readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor;
|
||||||
|
readonly commitmentsHash: H256;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1CandidateDescriptor (83) */
|
||||||
|
export interface PolkadotPrimitivesV1CandidateDescriptor extends Struct {
|
||||||
|
readonly paraId: u32;
|
||||||
|
readonly relayParent: H256;
|
||||||
|
readonly collator: PolkadotPrimitivesV0CollatorAppPublic;
|
||||||
|
readonly persistedValidationDataHash: H256;
|
||||||
|
readonly povHash: H256;
|
||||||
|
readonly erasureRoot: H256;
|
||||||
|
readonly signature: PolkadotPrimitivesV0CollatorAppSignature;
|
||||||
|
readonly paraHead: H256;
|
||||||
|
readonly validationCodeHash: H256;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV0CollatorAppPublic (85) */
|
||||||
|
export interface PolkadotPrimitivesV0CollatorAppPublic extends SpCoreSr25519Public {}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV0CollatorAppSignature (86) */
|
||||||
|
export interface PolkadotPrimitivesV0CollatorAppSignature extends SpCoreSr25519Signature {}
|
||||||
|
|
||||||
|
/** @name XcmV2TraitsOutcome (95) */
|
||||||
|
export interface XcmV2TraitsOutcome extends Enum {
|
||||||
|
readonly isComplete: boolean;
|
||||||
|
readonly asComplete: u64;
|
||||||
|
readonly isIncomplete: boolean;
|
||||||
|
readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;
|
||||||
|
readonly isError: boolean;
|
||||||
|
readonly asError: XcmV2TraitsError;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name XcmV2TraitsError (96) */
|
||||||
|
export interface XcmV2TraitsError extends Enum {
|
||||||
|
readonly isOverflow: boolean;
|
||||||
|
readonly isUnimplemented: boolean;
|
||||||
|
readonly isUntrustedReserveLocation: boolean;
|
||||||
|
readonly isUntrustedTeleportLocation: boolean;
|
||||||
|
readonly isMultiLocationFull: boolean;
|
||||||
|
readonly isMultiLocationNotInvertible: boolean;
|
||||||
|
readonly isBadOrigin: boolean;
|
||||||
|
readonly isInvalidLocation: boolean;
|
||||||
|
readonly isAssetNotFound: boolean;
|
||||||
|
readonly isFailedToTransactAsset: boolean;
|
||||||
|
readonly isNotWithdrawable: boolean;
|
||||||
|
readonly isLocationCannotHold: boolean;
|
||||||
|
readonly isExceedsMaxMessageSize: boolean;
|
||||||
|
readonly isDestinationUnsupported: boolean;
|
||||||
|
readonly isTransport: boolean;
|
||||||
|
readonly isUnroutable: boolean;
|
||||||
|
readonly isUnknownClaim: boolean;
|
||||||
|
readonly isFailedToDecode: boolean;
|
||||||
|
readonly isTooMuchWeightRequired: boolean;
|
||||||
|
readonly isNotHoldingFees: boolean;
|
||||||
|
readonly isTooExpensive: boolean;
|
||||||
|
readonly isTrap: boolean;
|
||||||
|
readonly asTrap: u64;
|
||||||
|
readonly isUnhandledXcmVersion: boolean;
|
||||||
|
readonly isWeightLimitReached: boolean;
|
||||||
|
readonly asWeightLimitReached: u64;
|
||||||
|
readonly isBarrier: boolean;
|
||||||
|
readonly isWeightNotComputable: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotParachainPrimitivesHrmpChannelId (98) */
|
||||||
|
export interface PolkadotParachainPrimitivesHrmpChannelId extends Struct {
|
||||||
|
readonly sender: u32;
|
||||||
|
readonly recipient: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeSessionKeys (161) */
|
||||||
export interface PolkadotRuntimeSessionKeys extends Struct {
|
export interface PolkadotRuntimeSessionKeys extends Struct {
|
||||||
readonly grandpa: SpFinalityGrandpaAppPublic;
|
readonly grandpa: SpFinalityGrandpaAppPublic;
|
||||||
readonly babe: SpConsensusBabeAppPublic;
|
readonly babe: SpConsensusBabeAppPublic;
|
||||||
@@ -31,22 +105,22 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
readonly authorityDiscovery: SpAuthorityDiscoveryAppPublic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV0ValidatorAppPublic (140) */
|
/** @name PolkadotPrimitivesV0ValidatorAppPublic (162) */
|
||||||
export interface PolkadotPrimitivesV0ValidatorAppPublic extends SpCoreSr25519Public {}
|
export interface PolkadotPrimitivesV0ValidatorAppPublic extends SpCoreSr25519Public {}
|
||||||
|
|
||||||
/** @name PolkadotPrimitivesV1AssignmentAppPublic (141) */
|
/** @name PolkadotPrimitivesV1AssignmentAppPublic (163) */
|
||||||
export interface PolkadotPrimitivesV1AssignmentAppPublic extends SpCoreSr25519Public {}
|
export interface PolkadotPrimitivesV1AssignmentAppPublic extends SpCoreSr25519Public {}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (175) */
|
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (195) */
|
||||||
export interface PolkadotRuntimeCommonClaimsEcdsaSignature extends U8aFixed {}
|
export interface PolkadotRuntimeCommonClaimsEcdsaSignature extends U8aFixed {}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsStatementKind (180) */
|
/** @name PolkadotRuntimeCommonClaimsStatementKind (200) */
|
||||||
export interface PolkadotRuntimeCommonClaimsStatementKind extends Enum {
|
export interface PolkadotRuntimeCommonClaimsStatementKind extends Enum {
|
||||||
readonly isRegular: boolean;
|
readonly isRegular: boolean;
|
||||||
readonly isSaft: boolean;
|
readonly isSaft: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeNposCompactSolution16 (233) */
|
/** @name PolkadotRuntimeNposCompactSolution16 (253) */
|
||||||
export interface PolkadotRuntimeNposCompactSolution16 extends Struct {
|
export interface PolkadotRuntimeNposCompactSolution16 extends Struct {
|
||||||
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
readonly votes1: Vec<ITuple<[Compact<u32>, Compact<u16>]>>;
|
||||||
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
readonly votes2: Vec<ITuple<[Compact<u32>, ITuple<[Compact<u16>, Compact<PerU16>]>, Compact<u16>]>>;
|
||||||
@@ -66,14 +140,116 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly votes16: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
readonly votes16: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeOriginCaller (290) */
|
/** @name PolkadotPrimitivesV1InherentData (314) */
|
||||||
|
export interface PolkadotPrimitivesV1InherentData extends Struct {
|
||||||
|
readonly bitfields: Vec<PolkadotPrimitivesV1SignedUncheckedSigned>;
|
||||||
|
readonly backedCandidates: Vec<PolkadotPrimitivesV1BackedCandidate>;
|
||||||
|
readonly disputes: Vec<PolkadotPrimitivesV1DisputeStatementSet>;
|
||||||
|
readonly parentHeader: SpRuntimeGenericHeader;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1SignedUncheckedSigned (316) */
|
||||||
|
export interface PolkadotPrimitivesV1SignedUncheckedSigned extends Struct {
|
||||||
|
readonly payload: BitVec;
|
||||||
|
readonly validatorIndex: u32;
|
||||||
|
readonly signature: PolkadotPrimitivesV0ValidatorAppSignature;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name BitvecOrderLsb0 (319) */
|
||||||
|
export type BitvecOrderLsb0 = Null;
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV0ValidatorAppSignature (321) */
|
||||||
|
export interface PolkadotPrimitivesV0ValidatorAppSignature extends SpCoreSr25519Signature {}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1BackedCandidate (323) */
|
||||||
|
export interface PolkadotPrimitivesV1BackedCandidate extends Struct {
|
||||||
|
readonly candidate: PolkadotPrimitivesV1CommittedCandidateReceipt;
|
||||||
|
readonly validityVotes: Vec<PolkadotPrimitivesV0ValidityAttestation>;
|
||||||
|
readonly validatorIndices: BitVec;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1CommittedCandidateReceipt (324) */
|
||||||
|
export interface PolkadotPrimitivesV1CommittedCandidateReceipt extends Struct {
|
||||||
|
readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor;
|
||||||
|
readonly commitments: PolkadotPrimitivesV1CandidateCommitments;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1CandidateCommitments (325) */
|
||||||
|
export interface PolkadotPrimitivesV1CandidateCommitments extends Struct {
|
||||||
|
readonly upwardMessages: Vec<Bytes>;
|
||||||
|
readonly horizontalMessages: Vec<PolkadotCorePrimitivesOutboundHrmpMessage>;
|
||||||
|
readonly newValidationCode: Option<Bytes>;
|
||||||
|
readonly headData: Bytes;
|
||||||
|
readonly processedDownwardMessages: u32;
|
||||||
|
readonly hrmpWatermark: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotCorePrimitivesOutboundHrmpMessage (327) */
|
||||||
|
export interface PolkadotCorePrimitivesOutboundHrmpMessage extends Struct {
|
||||||
|
readonly recipient: u32;
|
||||||
|
readonly data: Bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV0ValidityAttestation (331) */
|
||||||
|
export interface PolkadotPrimitivesV0ValidityAttestation extends Enum {
|
||||||
|
readonly isUnused0: boolean;
|
||||||
|
readonly isImplicit: boolean;
|
||||||
|
readonly asImplicit: PolkadotPrimitivesV0ValidatorAppSignature;
|
||||||
|
readonly isExplicit: boolean;
|
||||||
|
readonly asExplicit: PolkadotPrimitivesV0ValidatorAppSignature;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1DisputeStatementSet (333) */
|
||||||
|
export interface PolkadotPrimitivesV1DisputeStatementSet extends Struct {
|
||||||
|
readonly candidateHash: H256;
|
||||||
|
readonly session: u32;
|
||||||
|
readonly statements: Vec<ITuple<[PolkadotPrimitivesV1DisputeStatement, u32, PolkadotPrimitivesV0ValidatorAppSignature]>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1DisputeStatement (337) */
|
||||||
|
export interface PolkadotPrimitivesV1DisputeStatement extends Enum {
|
||||||
|
readonly isValid: boolean;
|
||||||
|
readonly asValid: PolkadotPrimitivesV1ValidDisputeStatementKind;
|
||||||
|
readonly isInvalid: boolean;
|
||||||
|
readonly asInvalid: PolkadotPrimitivesV1InvalidDisputeStatementKind;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1ValidDisputeStatementKind (338) */
|
||||||
|
export interface PolkadotPrimitivesV1ValidDisputeStatementKind extends Enum {
|
||||||
|
readonly isExplicit: boolean;
|
||||||
|
readonly isBackingSeconded: boolean;
|
||||||
|
readonly asBackingSeconded: H256;
|
||||||
|
readonly isBackingValid: boolean;
|
||||||
|
readonly asBackingValid: H256;
|
||||||
|
readonly isApprovalChecking: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1InvalidDisputeStatementKind (339) */
|
||||||
|
export interface PolkadotPrimitivesV1InvalidDisputeStatementKind extends Enum {
|
||||||
|
readonly isExplicit: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name SpRuntimeMultiSigner (351) */
|
||||||
|
export interface SpRuntimeMultiSigner extends Enum {
|
||||||
|
readonly isEd25519: boolean;
|
||||||
|
readonly asEd25519: SpCoreEd25519Public;
|
||||||
|
readonly isSr25519: boolean;
|
||||||
|
readonly asSr25519: SpCoreSr25519Public;
|
||||||
|
readonly isEcdsa: boolean;
|
||||||
|
readonly asEcdsa: SpCoreEcdsaPublic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name SpCoreEcdsaPublic (352) */
|
||||||
|
export interface SpCoreEcdsaPublic extends U8aFixed {}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeOriginCaller (357) */
|
||||||
export interface PolkadotRuntimeOriginCaller extends Enum {
|
export interface PolkadotRuntimeOriginCaller extends Enum {
|
||||||
readonly isSystem: boolean;
|
readonly isSystem: boolean;
|
||||||
readonly asSystem: FrameSystemRawOrigin;
|
readonly asSystem: FrameSystemRawOrigin;
|
||||||
readonly isUnused1: boolean;
|
readonly isUnused1: boolean;
|
||||||
readonly isUnused2: boolean;
|
readonly isUnused2: boolean;
|
||||||
|
readonly isUnused3: boolean;
|
||||||
readonly isVoid: boolean;
|
readonly isVoid: boolean;
|
||||||
readonly isUnused4: boolean;
|
|
||||||
readonly isUnused5: boolean;
|
readonly isUnused5: boolean;
|
||||||
readonly isUnused6: boolean;
|
readonly isUnused6: boolean;
|
||||||
readonly isUnused7: boolean;
|
readonly isUnused7: boolean;
|
||||||
@@ -88,12 +264,284 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asCouncil: PalletCollectiveRawOrigin;
|
readonly asCouncil: PalletCollectiveRawOrigin;
|
||||||
readonly isTechnicalCommittee: boolean;
|
readonly isTechnicalCommittee: boolean;
|
||||||
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
|
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
|
||||||
|
readonly isUnused17: boolean;
|
||||||
|
readonly isUnused18: boolean;
|
||||||
|
readonly isUnused19: boolean;
|
||||||
|
readonly isUnused20: boolean;
|
||||||
|
readonly isUnused21: boolean;
|
||||||
|
readonly isUnused22: boolean;
|
||||||
|
readonly isUnused23: boolean;
|
||||||
|
readonly isUnused24: boolean;
|
||||||
|
readonly isUnused25: boolean;
|
||||||
|
readonly isUnused26: boolean;
|
||||||
|
readonly isUnused27: boolean;
|
||||||
|
readonly isUnused28: boolean;
|
||||||
|
readonly isUnused29: boolean;
|
||||||
|
readonly isUnused30: boolean;
|
||||||
|
readonly isUnused31: boolean;
|
||||||
|
readonly isUnused32: boolean;
|
||||||
|
readonly isUnused33: boolean;
|
||||||
|
readonly isUnused34: boolean;
|
||||||
|
readonly isUnused35: boolean;
|
||||||
|
readonly isUnused36: boolean;
|
||||||
|
readonly isUnused37: boolean;
|
||||||
|
readonly isUnused38: boolean;
|
||||||
|
readonly isUnused39: boolean;
|
||||||
|
readonly isUnused40: boolean;
|
||||||
|
readonly isUnused41: boolean;
|
||||||
|
readonly isUnused42: boolean;
|
||||||
|
readonly isUnused43: boolean;
|
||||||
|
readonly isUnused44: boolean;
|
||||||
|
readonly isUnused45: boolean;
|
||||||
|
readonly isUnused46: boolean;
|
||||||
|
readonly isUnused47: boolean;
|
||||||
|
readonly isUnused48: boolean;
|
||||||
|
readonly isUnused49: boolean;
|
||||||
|
readonly isParachainsOrigin: boolean;
|
||||||
|
readonly asParachainsOrigin: PolkadotRuntimeParachainsOriginPalletOrigin;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (441) */
|
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (361) */
|
||||||
|
export interface PolkadotRuntimeParachainsOriginPalletOrigin extends Enum {
|
||||||
|
readonly isParachain: boolean;
|
||||||
|
readonly asParachain: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (506) */
|
||||||
|
export interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
||||||
|
readonly maxCodeSize: u32;
|
||||||
|
readonly maxHeadDataSize: u32;
|
||||||
|
readonly maxUpwardQueueCount: u32;
|
||||||
|
readonly maxUpwardQueueSize: u32;
|
||||||
|
readonly maxUpwardMessageSize: u32;
|
||||||
|
readonly maxUpwardMessageNumPerCandidate: u32;
|
||||||
|
readonly hrmpMaxMessageNumPerCandidate: u32;
|
||||||
|
readonly validationUpgradeFrequency: u32;
|
||||||
|
readonly validationUpgradeDelay: u32;
|
||||||
|
readonly maxPovSize: u32;
|
||||||
|
readonly maxDownwardMessageSize: u32;
|
||||||
|
readonly umpServiceTotalWeight: u64;
|
||||||
|
readonly hrmpMaxParachainOutboundChannels: u32;
|
||||||
|
readonly hrmpMaxParathreadOutboundChannels: u32;
|
||||||
|
readonly hrmpSenderDeposit: u128;
|
||||||
|
readonly hrmpRecipientDeposit: u128;
|
||||||
|
readonly hrmpChannelMaxCapacity: u32;
|
||||||
|
readonly hrmpChannelMaxTotalSize: u32;
|
||||||
|
readonly hrmpMaxParachainInboundChannels: u32;
|
||||||
|
readonly hrmpMaxParathreadInboundChannels: u32;
|
||||||
|
readonly hrmpChannelMaxMessageSize: u32;
|
||||||
|
readonly codeRetentionPeriod: u32;
|
||||||
|
readonly parathreadCores: u32;
|
||||||
|
readonly parathreadRetries: u32;
|
||||||
|
readonly groupRotationFrequency: u32;
|
||||||
|
readonly chainAvailabilityPeriod: u32;
|
||||||
|
readonly threadAvailabilityPeriod: u32;
|
||||||
|
readonly schedulingLookahead: u32;
|
||||||
|
readonly maxValidatorsPerCore: Option<u32>;
|
||||||
|
readonly maxValidators: Option<u32>;
|
||||||
|
readonly disputePeriod: u32;
|
||||||
|
readonly disputePostConclusionAcceptancePeriod: u32;
|
||||||
|
readonly disputeMaxSpamSlots: u32;
|
||||||
|
readonly disputeConclusionByTimeOutPeriod: u32;
|
||||||
|
readonly noShowSlots: u32;
|
||||||
|
readonly nDelayTranches: u32;
|
||||||
|
readonly zerothDelayTrancheWidth: u32;
|
||||||
|
readonly neededApprovals: u32;
|
||||||
|
readonly relayVrfModuloSamples: u32;
|
||||||
|
readonly umpMaxIndividualWeight: u64;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (510) */
|
||||||
|
export interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
||||||
|
readonly bitfield: BitVec;
|
||||||
|
readonly submittedAt: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (511) */
|
||||||
|
export interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
||||||
|
readonly core: u32;
|
||||||
|
readonly hash_: H256;
|
||||||
|
readonly descriptor: PolkadotPrimitivesV1CandidateDescriptor;
|
||||||
|
readonly availabilityVotes: BitVec;
|
||||||
|
readonly backers: BitVec;
|
||||||
|
readonly relayParentNumber: u32;
|
||||||
|
readonly backedInNumber: u32;
|
||||||
|
readonly backingGroup: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (515) */
|
||||||
|
export interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
||||||
|
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
||||||
|
readonly nextCoreOffset: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (517) */
|
||||||
|
export interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
||||||
|
readonly claim: PolkadotPrimitivesV1ParathreadEntry;
|
||||||
|
readonly coreOffset: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1ParathreadEntry (518) */
|
||||||
|
export interface PolkadotPrimitivesV1ParathreadEntry extends Struct {
|
||||||
|
readonly claim: PolkadotPrimitivesV1ParathreadClaim;
|
||||||
|
readonly retries: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1ParathreadClaim (519) */
|
||||||
|
export interface PolkadotPrimitivesV1ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV0CollatorAppPublic]> {}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1CoreOccupied (522) */
|
||||||
|
export interface PolkadotPrimitivesV1CoreOccupied extends Enum {
|
||||||
|
readonly isParathread: boolean;
|
||||||
|
readonly asParathread: PolkadotPrimitivesV1ParathreadEntry;
|
||||||
|
readonly isParachain: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (525) */
|
||||||
|
export interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
||||||
|
readonly core: u32;
|
||||||
|
readonly paraId: u32;
|
||||||
|
readonly kind: PolkadotRuntimeParachainsSchedulerAssignmentKind;
|
||||||
|
readonly groupIdx: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (526) */
|
||||||
|
export interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
||||||
|
readonly isParachain: boolean;
|
||||||
|
readonly isParathread: boolean;
|
||||||
|
readonly asParathread: ITuple<[PolkadotPrimitivesV0CollatorAppPublic, u32]>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsParasParaLifecycle (527) */
|
||||||
|
export interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
||||||
|
readonly isOnboarding: boolean;
|
||||||
|
readonly isParathread: boolean;
|
||||||
|
readonly isParachain: boolean;
|
||||||
|
readonly isUpgradingParathread: boolean;
|
||||||
|
readonly isDowngradingParachain: boolean;
|
||||||
|
readonly isOffboardingParathread: boolean;
|
||||||
|
readonly isOffboardingParachain: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (529) */
|
||||||
|
export interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
||||||
|
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
||||||
|
readonly lastPruned: Option<u32>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsParasReplacementTimes (531) */
|
||||||
|
export interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
||||||
|
readonly expectedAt: u32;
|
||||||
|
readonly activatedAt: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1UpgradeGoAhead (533) */
|
||||||
|
export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum {
|
||||||
|
readonly isAbort: boolean;
|
||||||
|
readonly isGoAhead: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1UpgradeRestriction (534) */
|
||||||
|
export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {
|
||||||
|
readonly isPresent: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (535) */
|
||||||
|
export interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
||||||
|
readonly genesisHead: Bytes;
|
||||||
|
readonly validationCode: Bytes;
|
||||||
|
readonly parachain: bool;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (538) */
|
||||||
|
export interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
||||||
|
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
||||||
|
readonly queued: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
||||||
|
readonly sessionIndex: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotCorePrimitivesInboundDownwardMessage (540) */
|
||||||
|
export interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
||||||
|
readonly sentAt: u32;
|
||||||
|
readonly msg: Bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (543) */
|
||||||
|
export interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
||||||
|
readonly confirmed: bool;
|
||||||
|
readonly age: u32;
|
||||||
|
readonly senderDeposit: u128;
|
||||||
|
readonly maxMessageSize: u32;
|
||||||
|
readonly maxCapacity: u32;
|
||||||
|
readonly maxTotalSize: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (545) */
|
||||||
|
export interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
||||||
|
readonly maxCapacity: u32;
|
||||||
|
readonly maxTotalSize: u32;
|
||||||
|
readonly maxMessageSize: u32;
|
||||||
|
readonly msgCount: u32;
|
||||||
|
readonly totalSize: u32;
|
||||||
|
readonly mqcHead: Option<H256>;
|
||||||
|
readonly senderDeposit: u128;
|
||||||
|
readonly recipientDeposit: u128;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotCorePrimitivesInboundHrmpMessage (548) */
|
||||||
|
export interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
||||||
|
readonly sentAt: u32;
|
||||||
|
readonly data: Bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotPrimitivesV1SessionInfo (553) */
|
||||||
|
export interface PolkadotPrimitivesV1SessionInfo extends Struct {
|
||||||
|
readonly validators: Vec<PolkadotPrimitivesV0ValidatorAppPublic>;
|
||||||
|
readonly discoveryKeys: Vec<SpAuthorityDiscoveryAppPublic>;
|
||||||
|
readonly assignmentKeys: Vec<PolkadotPrimitivesV1AssignmentAppPublic>;
|
||||||
|
readonly validatorGroups: Vec<Vec<u32>>;
|
||||||
|
readonly nCores: u32;
|
||||||
|
readonly zerothDelayTrancheWidth: u32;
|
||||||
|
readonly relayVrfModuloSamples: u32;
|
||||||
|
readonly nDelayTranches: u32;
|
||||||
|
readonly noShowSlots: u32;
|
||||||
|
readonly neededApprovals: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (555) */
|
||||||
|
export interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
||||||
|
readonly manager: AccountId32;
|
||||||
|
readonly deposit: u128;
|
||||||
|
readonly locked: bool;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (565) */
|
||||||
|
export interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
||||||
|
readonly depositor: AccountId32;
|
||||||
|
readonly verifier: Option<SpRuntimeMultiSigner>;
|
||||||
|
readonly deposit: u128;
|
||||||
|
readonly raised: u128;
|
||||||
|
readonly end: u32;
|
||||||
|
readonly cap: u128;
|
||||||
|
readonly lastContribution: PolkadotRuntimeCommonCrowdloanLastContribution;
|
||||||
|
readonly firstPeriod: u32;
|
||||||
|
readonly lastPeriod: u32;
|
||||||
|
readonly trieIndex: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (566) */
|
||||||
|
export interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
||||||
|
readonly isNever: boolean;
|
||||||
|
readonly isPreEnding: boolean;
|
||||||
|
readonly asPreEnding: u32;
|
||||||
|
readonly isEnding: boolean;
|
||||||
|
readonly asEnding: u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (578) */
|
||||||
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
export type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
||||||
|
|
||||||
/** @name PolkadotRuntimeRuntime (442) */
|
/** @name PolkadotRuntimeRuntime (579) */
|
||||||
export type PolkadotRuntimeRuntime = Null;
|
export type PolkadotRuntimeRuntime = Null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -179,10 +179,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly value: Compact<u128>;
|
readonly value: Compact<u128>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyDefaultInstance (70) */
|
/** @name NodeRuntimeProxyType (76) */
|
||||||
export type PalletSocietyDefaultInstance = Null;
|
|
||||||
|
|
||||||
/** @name NodeRuntimeProxyType (77) */
|
|
||||||
export interface NodeRuntimeProxyType extends Enum {
|
export interface NodeRuntimeProxyType extends Enum {
|
||||||
readonly isAny: boolean;
|
readonly isAny: boolean;
|
||||||
readonly isNonTransfer: boolean;
|
readonly isNonTransfer: boolean;
|
||||||
@@ -190,7 +187,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isStaking: boolean;
|
readonly isStaking: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletMultisigTimepoint (80) */
|
/** @name PalletMultisigTimepoint (79) */
|
||||||
export interface PalletMultisigTimepoint extends Struct {
|
export interface PalletMultisigTimepoint extends Struct {
|
||||||
readonly height: u32;
|
readonly height: u32;
|
||||||
readonly index: u32;
|
readonly index: u32;
|
||||||
@@ -680,13 +677,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly proof: Vec<Bytes>;
|
readonly proof: Vec<Bytes>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpConsensusBabeBabeEpochConfiguration (310) */
|
/** @name SpConsensusBabeBabeEpochConfiguration (313) */
|
||||||
export interface SpConsensusBabeBabeEpochConfiguration extends Struct {
|
export interface SpConsensusBabeBabeEpochConfiguration extends Struct {
|
||||||
readonly c: ITuple<[u64, u64]>;
|
readonly c: ITuple<[u64, u64]>;
|
||||||
readonly allowedSlots: SpConsensusBabeAllowedSlots;
|
readonly allowedSlots: SpConsensusBabeAllowedSlots;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAuthorshipUncleEntryItem (313) */
|
/** @name PalletAuthorshipUncleEntryItem (316) */
|
||||||
export interface PalletAuthorshipUncleEntryItem extends Enum {
|
export interface PalletAuthorshipUncleEntryItem extends Enum {
|
||||||
readonly isInclusionHeight: boolean;
|
readonly isInclusionHeight: boolean;
|
||||||
readonly asInclusionHeight: u32;
|
readonly asInclusionHeight: u32;
|
||||||
@@ -694,39 +691,39 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asUncle: ITuple<[H256, Option<AccountId32>]>;
|
readonly asUncle: ITuple<[H256, Option<AccountId32>]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBalancesBalanceLock (318) */
|
/** @name PalletBalancesBalanceLock (321) */
|
||||||
export interface PalletBalancesBalanceLock extends Struct {
|
export interface PalletBalancesBalanceLock extends Struct {
|
||||||
readonly id: U8aFixed;
|
readonly id: U8aFixed;
|
||||||
readonly amount: u128;
|
readonly amount: u128;
|
||||||
readonly reasons: PalletBalancesReasons;
|
readonly reasons: PalletBalancesReasons;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBalancesReasons (319) */
|
/** @name PalletBalancesReasons (322) */
|
||||||
export interface PalletBalancesReasons extends Enum {
|
export interface PalletBalancesReasons extends Enum {
|
||||||
readonly isFee: boolean;
|
readonly isFee: boolean;
|
||||||
readonly isMisc: boolean;
|
readonly isMisc: boolean;
|
||||||
readonly isAll: boolean;
|
readonly isAll: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBalancesReserveData (322) */
|
/** @name PalletBalancesReserveData (325) */
|
||||||
export interface PalletBalancesReserveData extends Struct {
|
export interface PalletBalancesReserveData extends Struct {
|
||||||
readonly id: U8aFixed;
|
readonly id: U8aFixed;
|
||||||
readonly amount: u128;
|
readonly amount: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBalancesReleases (324) */
|
/** @name PalletBalancesReleases (327) */
|
||||||
export interface PalletBalancesReleases extends Enum {
|
export interface PalletBalancesReleases extends Enum {
|
||||||
readonly isV100: boolean;
|
readonly isV100: boolean;
|
||||||
readonly isV200: boolean;
|
readonly isV200: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTransactionPaymentReleases (327) */
|
/** @name PalletTransactionPaymentReleases (330) */
|
||||||
export interface PalletTransactionPaymentReleases extends Enum {
|
export interface PalletTransactionPaymentReleases extends Enum {
|
||||||
readonly isV1Ancient: boolean;
|
readonly isV1Ancient: boolean;
|
||||||
readonly isV2: boolean;
|
readonly isV2: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name FrameSupportWeightsWeightToFeeCoefficient (329) */
|
/** @name FrameSupportWeightsWeightToFeeCoefficient (332) */
|
||||||
export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {
|
export interface FrameSupportWeightsWeightToFeeCoefficient extends Struct {
|
||||||
readonly coeffInteger: u128;
|
readonly coeffInteger: u128;
|
||||||
readonly coeffFrac: Perbill;
|
readonly coeffFrac: Perbill;
|
||||||
@@ -734,7 +731,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly degree: u8;
|
readonly degree: u8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionProviderMultiPhasePhase (330) */
|
/** @name PalletElectionProviderMultiPhasePhase (333) */
|
||||||
export interface PalletElectionProviderMultiPhasePhase extends Enum {
|
export interface PalletElectionProviderMultiPhasePhase extends Enum {
|
||||||
readonly isOff: boolean;
|
readonly isOff: boolean;
|
||||||
readonly isSigned: boolean;
|
readonly isSigned: boolean;
|
||||||
@@ -743,20 +740,20 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isEmergency: boolean;
|
readonly isEmergency: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionProviderMultiPhaseReadySolution (332) */
|
/** @name PalletElectionProviderMultiPhaseReadySolution (335) */
|
||||||
export interface PalletElectionProviderMultiPhaseReadySolution extends Struct {
|
export interface PalletElectionProviderMultiPhaseReadySolution extends Struct {
|
||||||
readonly supports: Vec<ITuple<[AccountId32, SpNposElectionsSupport]>>;
|
readonly supports: Vec<ITuple<[AccountId32, SpNposElectionsSupport]>>;
|
||||||
readonly score: Vec<u128>;
|
readonly score: Vec<u128>;
|
||||||
readonly compute: PalletElectionProviderMultiPhaseElectionCompute;
|
readonly compute: PalletElectionProviderMultiPhaseElectionCompute;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionProviderMultiPhaseRoundSnapshot (333) */
|
/** @name PalletElectionProviderMultiPhaseRoundSnapshot (336) */
|
||||||
export interface PalletElectionProviderMultiPhaseRoundSnapshot extends Struct {
|
export interface PalletElectionProviderMultiPhaseRoundSnapshot extends Struct {
|
||||||
readonly voters: Vec<ITuple<[AccountId32, u64, Vec<AccountId32>]>>;
|
readonly voters: Vec<ITuple<[AccountId32, u64, Vec<AccountId32>]>>;
|
||||||
readonly targets: Vec<AccountId32>;
|
readonly targets: Vec<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionProviderMultiPhaseSignedSignedSubmission (340) */
|
/** @name PalletElectionProviderMultiPhaseSignedSignedSubmission (343) */
|
||||||
export interface PalletElectionProviderMultiPhaseSignedSignedSubmission extends Struct {
|
export interface PalletElectionProviderMultiPhaseSignedSignedSubmission extends Struct {
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
@@ -764,7 +761,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly reward: u128;
|
readonly reward: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingStakingLedger (342) */
|
/** @name PalletStakingStakingLedger (345) */
|
||||||
export interface PalletStakingStakingLedger extends Struct {
|
export interface PalletStakingStakingLedger extends Struct {
|
||||||
readonly stash: AccountId32;
|
readonly stash: AccountId32;
|
||||||
readonly total: Compact<u128>;
|
readonly total: Compact<u128>;
|
||||||
@@ -773,32 +770,32 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly claimedRewards: Vec<u32>;
|
readonly claimedRewards: Vec<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingUnlockChunk (344) */
|
/** @name PalletStakingUnlockChunk (347) */
|
||||||
export interface PalletStakingUnlockChunk extends Struct {
|
export interface PalletStakingUnlockChunk extends Struct {
|
||||||
readonly value: Compact<u128>;
|
readonly value: Compact<u128>;
|
||||||
readonly era: Compact<u32>;
|
readonly era: Compact<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingNominations (345) */
|
/** @name PalletStakingNominations (348) */
|
||||||
export interface PalletStakingNominations extends Struct {
|
export interface PalletStakingNominations extends Struct {
|
||||||
readonly targets: Vec<AccountId32>;
|
readonly targets: Vec<AccountId32>;
|
||||||
readonly submittedIn: u32;
|
readonly submittedIn: u32;
|
||||||
readonly suppressed: bool;
|
readonly suppressed: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingActiveEraInfo (346) */
|
/** @name PalletStakingActiveEraInfo (349) */
|
||||||
export interface PalletStakingActiveEraInfo extends Struct {
|
export interface PalletStakingActiveEraInfo extends Struct {
|
||||||
readonly index: u32;
|
readonly index: u32;
|
||||||
readonly start: Option<u64>;
|
readonly start: Option<u64>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingEraRewardPoints (348) */
|
/** @name PalletStakingEraRewardPoints (351) */
|
||||||
export interface PalletStakingEraRewardPoints extends Struct {
|
export interface PalletStakingEraRewardPoints extends Struct {
|
||||||
readonly total: u32;
|
readonly total: u32;
|
||||||
readonly individual: BTreeMap<AccountId32, u32>;
|
readonly individual: BTreeMap<AccountId32, u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingForcing (352) */
|
/** @name PalletStakingForcing (355) */
|
||||||
export interface PalletStakingForcing extends Enum {
|
export interface PalletStakingForcing extends Enum {
|
||||||
readonly isNotForcing: boolean;
|
readonly isNotForcing: boolean;
|
||||||
readonly isForceNew: boolean;
|
readonly isForceNew: boolean;
|
||||||
@@ -806,7 +803,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isForceAlways: boolean;
|
readonly isForceAlways: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingUnappliedSlash (354) */
|
/** @name PalletStakingUnappliedSlash (357) */
|
||||||
export interface PalletStakingUnappliedSlash extends Struct {
|
export interface PalletStakingUnappliedSlash extends Struct {
|
||||||
readonly validator: AccountId32;
|
readonly validator: AccountId32;
|
||||||
readonly own: u128;
|
readonly own: u128;
|
||||||
@@ -815,7 +812,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly payout: u128;
|
readonly payout: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingSlashingSlashingSpans (356) */
|
/** @name PalletStakingSlashingSlashingSpans (359) */
|
||||||
export interface PalletStakingSlashingSlashingSpans extends Struct {
|
export interface PalletStakingSlashingSlashingSpans extends Struct {
|
||||||
readonly spanIndex: u32;
|
readonly spanIndex: u32;
|
||||||
readonly lastStart: u32;
|
readonly lastStart: u32;
|
||||||
@@ -823,13 +820,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly prior: Vec<u32>;
|
readonly prior: Vec<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingSlashingSpanRecord (357) */
|
/** @name PalletStakingSlashingSpanRecord (360) */
|
||||||
export interface PalletStakingSlashingSpanRecord extends Struct {
|
export interface PalletStakingSlashingSpanRecord extends Struct {
|
||||||
readonly slashed: u128;
|
readonly slashed: u128;
|
||||||
readonly paidOut: u128;
|
readonly paidOut: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletStakingReleases (358) */
|
/** @name PalletStakingReleases (361) */
|
||||||
export interface PalletStakingReleases extends Enum {
|
export interface PalletStakingReleases extends Enum {
|
||||||
readonly isV100Ancient: boolean;
|
readonly isV100Ancient: boolean;
|
||||||
readonly isV200: boolean;
|
readonly isV200: boolean;
|
||||||
@@ -838,12 +835,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isV500: boolean;
|
readonly isV500: boolean;
|
||||||
readonly isV600: boolean;
|
readonly isV600: boolean;
|
||||||
readonly isV700: boolean;
|
readonly isV700: boolean;
|
||||||
|
readonly isV800: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpCoreCryptoKeyTypeId (363) */
|
/** @name SpCoreCryptoKeyTypeId (366) */
|
||||||
export interface SpCoreCryptoKeyTypeId extends U8aFixed {}
|
export interface SpCoreCryptoKeyTypeId extends U8aFixed {}
|
||||||
|
|
||||||
/** @name PalletDemocracyPreimageStatus (368) */
|
/** @name PalletDemocracyPreimageStatus (371) */
|
||||||
export interface PalletDemocracyPreimageStatus extends Enum {
|
export interface PalletDemocracyPreimageStatus extends Enum {
|
||||||
readonly isMissing: boolean;
|
readonly isMissing: boolean;
|
||||||
readonly asMissing: u32;
|
readonly asMissing: u32;
|
||||||
@@ -857,7 +855,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyReferendumInfo (369) */
|
/** @name PalletDemocracyReferendumInfo (372) */
|
||||||
export interface PalletDemocracyReferendumInfo extends Enum {
|
export interface PalletDemocracyReferendumInfo extends Enum {
|
||||||
readonly isOngoing: boolean;
|
readonly isOngoing: boolean;
|
||||||
readonly asOngoing: PalletDemocracyReferendumStatus;
|
readonly asOngoing: PalletDemocracyReferendumStatus;
|
||||||
@@ -868,7 +866,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyReferendumStatus (370) */
|
/** @name PalletDemocracyReferendumStatus (373) */
|
||||||
export interface PalletDemocracyReferendumStatus extends Struct {
|
export interface PalletDemocracyReferendumStatus extends Struct {
|
||||||
readonly end: u32;
|
readonly end: u32;
|
||||||
readonly proposalHash: H256;
|
readonly proposalHash: H256;
|
||||||
@@ -877,14 +875,14 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly tally: PalletDemocracyTally;
|
readonly tally: PalletDemocracyTally;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyTally (371) */
|
/** @name PalletDemocracyTally (374) */
|
||||||
export interface PalletDemocracyTally extends Struct {
|
export interface PalletDemocracyTally extends Struct {
|
||||||
readonly ayes: u128;
|
readonly ayes: u128;
|
||||||
readonly nays: u128;
|
readonly nays: u128;
|
||||||
readonly turnout: u128;
|
readonly turnout: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyVoteVoting (372) */
|
/** @name PalletDemocracyVoteVoting (375) */
|
||||||
export interface PalletDemocracyVoteVoting extends Enum {
|
export interface PalletDemocracyVoteVoting extends Enum {
|
||||||
readonly isDirect: boolean;
|
readonly isDirect: boolean;
|
||||||
readonly asDirect: {
|
readonly asDirect: {
|
||||||
@@ -902,21 +900,21 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyDelegations (375) */
|
/** @name PalletDemocracyDelegations (378) */
|
||||||
export interface PalletDemocracyDelegations extends Struct {
|
export interface PalletDemocracyDelegations extends Struct {
|
||||||
readonly votes: u128;
|
readonly votes: u128;
|
||||||
readonly capital: u128;
|
readonly capital: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletDemocracyVotePriorLock (376) */
|
/** @name PalletDemocracyVotePriorLock (379) */
|
||||||
export interface PalletDemocracyVotePriorLock extends ITuple<[u32, u128]> {}
|
export interface PalletDemocracyVotePriorLock extends ITuple<[u32, u128]> {}
|
||||||
|
|
||||||
/** @name PalletDemocracyReleases (379) */
|
/** @name PalletDemocracyReleases (382) */
|
||||||
export interface PalletDemocracyReleases extends Enum {
|
export interface PalletDemocracyReleases extends Enum {
|
||||||
readonly isV1: boolean;
|
readonly isV1: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletCollectiveVotes (382) */
|
/** @name PalletCollectiveVotes (385) */
|
||||||
export interface PalletCollectiveVotes extends Struct {
|
export interface PalletCollectiveVotes extends Struct {
|
||||||
readonly index: u32;
|
readonly index: u32;
|
||||||
readonly threshold: u32;
|
readonly threshold: u32;
|
||||||
@@ -925,21 +923,21 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly end: u32;
|
readonly end: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionsPhragmenSeatHolder (387) */
|
/** @name PalletElectionsPhragmenSeatHolder (390) */
|
||||||
export interface PalletElectionsPhragmenSeatHolder extends Struct {
|
export interface PalletElectionsPhragmenSeatHolder extends Struct {
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
readonly stake: u128;
|
readonly stake: u128;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletElectionsPhragmenVoter (388) */
|
/** @name PalletElectionsPhragmenVoter (391) */
|
||||||
export interface PalletElectionsPhragmenVoter extends Struct {
|
export interface PalletElectionsPhragmenVoter extends Struct {
|
||||||
readonly votes: Vec<AccountId32>;
|
readonly votes: Vec<AccountId32>;
|
||||||
readonly stake: u128;
|
readonly stake: u128;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGrandpaStoredState (391) */
|
/** @name PalletGrandpaStoredState (394) */
|
||||||
export interface PalletGrandpaStoredState extends Enum {
|
export interface PalletGrandpaStoredState extends Enum {
|
||||||
readonly isLive: boolean;
|
readonly isLive: boolean;
|
||||||
readonly isPendingPause: boolean;
|
readonly isPendingPause: boolean;
|
||||||
@@ -955,7 +953,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGrandpaStoredPendingChange (392) */
|
/** @name PalletGrandpaStoredPendingChange (395) */
|
||||||
export interface PalletGrandpaStoredPendingChange extends Struct {
|
export interface PalletGrandpaStoredPendingChange extends Struct {
|
||||||
readonly scheduledAt: u32;
|
readonly scheduledAt: u32;
|
||||||
readonly delay: u32;
|
readonly delay: u32;
|
||||||
@@ -963,7 +961,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly forced: Option<u32>;
|
readonly forced: Option<u32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTreasuryProposal (394) */
|
/** @name PalletTreasuryProposal (398) */
|
||||||
export interface PalletTreasuryProposal extends Struct {
|
export interface PalletTreasuryProposal extends Struct {
|
||||||
readonly proposer: AccountId32;
|
readonly proposer: AccountId32;
|
||||||
readonly value: u128;
|
readonly value: u128;
|
||||||
@@ -971,10 +969,10 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly bond: u128;
|
readonly bond: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name FrameSupportPalletId (397) */
|
/** @name FrameSupportPalletId (401) */
|
||||||
export interface FrameSupportPalletId extends U8aFixed {}
|
export interface FrameSupportPalletId extends U8aFixed {}
|
||||||
|
|
||||||
/** @name PalletContractsWasmPrefabWasmModule (399) */
|
/** @name PalletContractsWasmPrefabWasmModule (403) */
|
||||||
export interface PalletContractsWasmPrefabWasmModule extends Struct {
|
export interface PalletContractsWasmPrefabWasmModule extends Struct {
|
||||||
readonly instructionWeightsVersion: Compact<u32>;
|
readonly instructionWeightsVersion: Compact<u32>;
|
||||||
readonly initial: Compact<u32>;
|
readonly initial: Compact<u32>;
|
||||||
@@ -985,26 +983,26 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly originalCodeLen: u32;
|
readonly originalCodeLen: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsStorageRawContractInfo (401) */
|
/** @name PalletContractsStorageRawContractInfo (405) */
|
||||||
export interface PalletContractsStorageRawContractInfo extends Struct {
|
export interface PalletContractsStorageRawContractInfo extends Struct {
|
||||||
readonly trieId: Bytes;
|
readonly trieId: Bytes;
|
||||||
readonly codeHash: H256;
|
readonly codeHash: H256;
|
||||||
readonly reserved: Option<Null>;
|
readonly reserved: Option<Null>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsStorageDeletedContract (403) */
|
/** @name PalletContractsStorageDeletedContract (407) */
|
||||||
export interface PalletContractsStorageDeletedContract extends Struct {
|
export interface PalletContractsStorageDeletedContract extends Struct {
|
||||||
readonly trieId: Bytes;
|
readonly trieId: Bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsSchedule (404) */
|
/** @name PalletContractsSchedule (408) */
|
||||||
export interface PalletContractsSchedule extends Struct {
|
export interface PalletContractsSchedule extends Struct {
|
||||||
readonly limits: PalletContractsScheduleLimits;
|
readonly limits: PalletContractsScheduleLimits;
|
||||||
readonly instructionWeights: PalletContractsScheduleInstructionWeights;
|
readonly instructionWeights: PalletContractsScheduleInstructionWeights;
|
||||||
readonly hostFnWeights: PalletContractsScheduleHostFnWeights;
|
readonly hostFnWeights: PalletContractsScheduleHostFnWeights;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsScheduleLimits (405) */
|
/** @name PalletContractsScheduleLimits (409) */
|
||||||
export interface PalletContractsScheduleLimits extends Struct {
|
export interface PalletContractsScheduleLimits extends Struct {
|
||||||
readonly eventTopics: u32;
|
readonly eventTopics: u32;
|
||||||
readonly stackHeight: u32;
|
readonly stackHeight: u32;
|
||||||
@@ -1019,7 +1017,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly codeLen: u32;
|
readonly codeLen: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsScheduleInstructionWeights (406) */
|
/** @name PalletContractsScheduleInstructionWeights (410) */
|
||||||
export interface PalletContractsScheduleInstructionWeights extends Struct {
|
export interface PalletContractsScheduleInstructionWeights extends Struct {
|
||||||
readonly version: u32;
|
readonly version: u32;
|
||||||
readonly i64Const: u32;
|
readonly i64Const: u32;
|
||||||
@@ -1031,7 +1029,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly brIf: u32;
|
readonly brIf: u32;
|
||||||
readonly brTable: u32;
|
readonly brTable: u32;
|
||||||
readonly brTablePerEntry: u32;
|
readonly brTablePerEntry: u32;
|
||||||
readonly call_: u32;
|
readonly call: u32;
|
||||||
readonly callIndirect: u32;
|
readonly callIndirect: u32;
|
||||||
readonly callIndirectPerParam: u32;
|
readonly callIndirectPerParam: u32;
|
||||||
readonly localGet: u32;
|
readonly localGet: u32;
|
||||||
@@ -1075,7 +1073,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly i64Rotr: u32;
|
readonly i64Rotr: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletContractsScheduleHostFnWeights (407) */
|
/** @name PalletContractsScheduleHostFnWeights (411) */
|
||||||
export interface PalletContractsScheduleHostFnWeights extends Struct {
|
export interface PalletContractsScheduleHostFnWeights extends Struct {
|
||||||
readonly caller: u64;
|
readonly caller: u64;
|
||||||
readonly address: u64;
|
readonly address: u64;
|
||||||
@@ -1104,7 +1102,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly getStorage: u64;
|
readonly getStorage: u64;
|
||||||
readonly getStoragePerByte: u64;
|
readonly getStoragePerByte: u64;
|
||||||
readonly transfer: u64;
|
readonly transfer: u64;
|
||||||
readonly call_: u64;
|
readonly call: u64;
|
||||||
readonly callTransferSurcharge: u64;
|
readonly callTransferSurcharge: u64;
|
||||||
readonly callPerInputByte: u64;
|
readonly callPerInputByte: u64;
|
||||||
readonly callPerOutputByte: u64;
|
readonly callPerOutputByte: u64;
|
||||||
@@ -1123,34 +1121,40 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly ecdsaRecover: u64;
|
readonly ecdsaRecover: u64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpStakingOffenceOffenceDetails (412) */
|
/** @name PalletImOnlineBoundedOpaqueNetworkState (417) */
|
||||||
|
export interface PalletImOnlineBoundedOpaqueNetworkState extends Struct {
|
||||||
|
readonly peerId: Bytes;
|
||||||
|
readonly externalAddresses: Vec<Bytes>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name SpStakingOffenceOffenceDetails (422) */
|
||||||
export interface SpStakingOffenceOffenceDetails extends Struct {
|
export interface SpStakingOffenceOffenceDetails extends Struct {
|
||||||
readonly offender: ITuple<[AccountId32, PalletStakingExposure]>;
|
readonly offender: ITuple<[AccountId32, PalletStakingExposure]>;
|
||||||
readonly reporters: Vec<AccountId32>;
|
readonly reporters: Vec<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletIdentityRegistration (414) */
|
/** @name PalletIdentityRegistration (424) */
|
||||||
export interface PalletIdentityRegistration extends Struct {
|
export interface PalletIdentityRegistration extends Struct {
|
||||||
readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;
|
readonly judgements: Vec<ITuple<[u32, PalletIdentityJudgement]>>;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly info: PalletIdentityIdentityInfo;
|
readonly info: PalletIdentityIdentityInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletIdentityRegistrarInfo (422) */
|
/** @name PalletIdentityRegistrarInfo (432) */
|
||||||
export interface PalletIdentityRegistrarInfo extends Struct {
|
export interface PalletIdentityRegistrarInfo extends Struct {
|
||||||
readonly account: AccountId32;
|
readonly account: AccountId32;
|
||||||
readonly fee: u128;
|
readonly fee: u128;
|
||||||
readonly fields: PalletIdentityBitFlags;
|
readonly fields: PalletIdentityBitFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyBid (426) */
|
/** @name PalletSocietyBid (436) */
|
||||||
export interface PalletSocietyBid extends Struct {
|
export interface PalletSocietyBid extends Struct {
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
readonly kind: PalletSocietyBidKind;
|
readonly kind: PalletSocietyBidKind;
|
||||||
readonly value: u128;
|
readonly value: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyBidKind (427) */
|
/** @name PalletSocietyBidKind (437) */
|
||||||
export interface PalletSocietyBidKind extends Enum {
|
export interface PalletSocietyBidKind extends Enum {
|
||||||
readonly isDeposit: boolean;
|
readonly isDeposit: boolean;
|
||||||
readonly asDeposit: u128;
|
readonly asDeposit: u128;
|
||||||
@@ -1158,20 +1162,20 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asVouch: ITuple<[AccountId32, u128]>;
|
readonly asVouch: ITuple<[AccountId32, u128]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyVouchingStatus (429) */
|
/** @name PalletSocietyVouchingStatus (439) */
|
||||||
export interface PalletSocietyVouchingStatus extends Enum {
|
export interface PalletSocietyVouchingStatus extends Enum {
|
||||||
readonly isVouching: boolean;
|
readonly isVouching: boolean;
|
||||||
readonly isBanned: boolean;
|
readonly isBanned: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSocietyVote (433) */
|
/** @name PalletSocietyVote (443) */
|
||||||
export interface PalletSocietyVote extends Enum {
|
export interface PalletSocietyVote extends Enum {
|
||||||
readonly isSkeptic: boolean;
|
readonly isSkeptic: boolean;
|
||||||
readonly isReject: boolean;
|
readonly isReject: boolean;
|
||||||
readonly isApprove: boolean;
|
readonly isApprove: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletRecoveryRecoveryConfig (435) */
|
/** @name PalletRecoveryRecoveryConfig (445) */
|
||||||
export interface PalletRecoveryRecoveryConfig extends Struct {
|
export interface PalletRecoveryRecoveryConfig extends Struct {
|
||||||
readonly delayPeriod: u32;
|
readonly delayPeriod: u32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
@@ -1179,29 +1183,29 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly threshold: u16;
|
readonly threshold: u16;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletRecoveryActiveRecovery (436) */
|
/** @name PalletRecoveryActiveRecovery (446) */
|
||||||
export interface PalletRecoveryActiveRecovery extends Struct {
|
export interface PalletRecoveryActiveRecovery extends Struct {
|
||||||
readonly created: u32;
|
readonly created: u32;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly friends: Vec<AccountId32>;
|
readonly friends: Vec<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletVestingReleases (440) */
|
/** @name PalletVestingReleases (450) */
|
||||||
export interface PalletVestingReleases extends Enum {
|
export interface PalletVestingReleases extends Enum {
|
||||||
readonly isV0: boolean;
|
readonly isV0: boolean;
|
||||||
readonly isV1: boolean;
|
readonly isV1: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletSchedulerScheduledV2 (444) */
|
/** @name PalletSchedulerScheduledV2 (454) */
|
||||||
export interface PalletSchedulerScheduledV2 extends Struct {
|
export interface PalletSchedulerScheduledV2 extends Struct {
|
||||||
readonly maybeId: Option<Bytes>;
|
readonly maybeId: Option<Bytes>;
|
||||||
readonly priority: u8;
|
readonly priority: u8;
|
||||||
readonly call_: Call;
|
readonly call: Call;
|
||||||
readonly maybePeriodic: Option<ITuple<[u32, u32]>>;
|
readonly maybePeriodic: Option<ITuple<[u32, u32]>>;
|
||||||
readonly origin: NodeRuntimeOriginCaller;
|
readonly origin: NodeRuntimeOriginCaller;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name NodeRuntimeOriginCaller (445) */
|
/** @name NodeRuntimeOriginCaller (455) */
|
||||||
export interface NodeRuntimeOriginCaller extends Enum {
|
export interface NodeRuntimeOriginCaller extends Enum {
|
||||||
readonly isSystem: boolean;
|
readonly isSystem: boolean;
|
||||||
readonly asSystem: FrameSystemRawOrigin;
|
readonly asSystem: FrameSystemRawOrigin;
|
||||||
@@ -1222,7 +1226,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
|
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name FrameSystemRawOrigin (446) */
|
/** @name FrameSystemRawOrigin (456) */
|
||||||
export interface FrameSystemRawOrigin extends Enum {
|
export interface FrameSystemRawOrigin extends Enum {
|
||||||
readonly isRoot: boolean;
|
readonly isRoot: boolean;
|
||||||
readonly isSigned: boolean;
|
readonly isSigned: boolean;
|
||||||
@@ -1230,7 +1234,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isNone: boolean;
|
readonly isNone: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletCollectiveRawOrigin (447) */
|
/** @name PalletCollectiveRawOrigin (457) */
|
||||||
export interface PalletCollectiveRawOrigin extends Enum {
|
export interface PalletCollectiveRawOrigin extends Enum {
|
||||||
readonly isMembers: boolean;
|
readonly isMembers: boolean;
|
||||||
readonly asMembers: ITuple<[u32, u32]>;
|
readonly asMembers: ITuple<[u32, u32]>;
|
||||||
@@ -1239,30 +1243,30 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isPhantom: boolean;
|
readonly isPhantom: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpCoreVoid (449) */
|
/** @name SpCoreVoid (459) */
|
||||||
export type SpCoreVoid = Null;
|
export type SpCoreVoid = Null;
|
||||||
|
|
||||||
/** @name PalletSchedulerReleases (450) */
|
/** @name PalletSchedulerReleases (460) */
|
||||||
export interface PalletSchedulerReleases extends Enum {
|
export interface PalletSchedulerReleases extends Enum {
|
||||||
readonly isV1: boolean;
|
readonly isV1: boolean;
|
||||||
readonly isV2: boolean;
|
readonly isV2: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletProxyProxyDefinition (454) */
|
/** @name PalletProxyProxyDefinition (464) */
|
||||||
export interface PalletProxyProxyDefinition extends Struct {
|
export interface PalletProxyProxyDefinition extends Struct {
|
||||||
readonly delegate: AccountId32;
|
readonly delegate: AccountId32;
|
||||||
readonly proxyType: NodeRuntimeProxyType;
|
readonly proxyType: NodeRuntimeProxyType;
|
||||||
readonly delay: u32;
|
readonly delay: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletProxyAnnouncement (458) */
|
/** @name PalletProxyAnnouncement (468) */
|
||||||
export interface PalletProxyAnnouncement extends Struct {
|
export interface PalletProxyAnnouncement extends Struct {
|
||||||
readonly real: AccountId32;
|
readonly real: AccountId32;
|
||||||
readonly callHash: H256;
|
readonly callHash: H256;
|
||||||
readonly height: u32;
|
readonly height: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletMultisigMultisig (462) */
|
/** @name PalletMultisigMultisig (472) */
|
||||||
export interface PalletMultisigMultisig extends Struct {
|
export interface PalletMultisigMultisig extends Struct {
|
||||||
readonly when: PalletMultisigTimepoint;
|
readonly when: PalletMultisigTimepoint;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
@@ -1270,7 +1274,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly approvals: Vec<AccountId32>;
|
readonly approvals: Vec<AccountId32>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBountiesBounty (465) */
|
/** @name PalletBountiesBounty (475) */
|
||||||
export interface PalletBountiesBounty extends Struct {
|
export interface PalletBountiesBounty extends Struct {
|
||||||
readonly proposer: AccountId32;
|
readonly proposer: AccountId32;
|
||||||
readonly value: u128;
|
readonly value: u128;
|
||||||
@@ -1280,7 +1284,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly status: PalletBountiesBountyStatus;
|
readonly status: PalletBountiesBountyStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletBountiesBountyStatus (466) */
|
/** @name PalletBountiesBountyStatus (476) */
|
||||||
export interface PalletBountiesBountyStatus extends Enum {
|
export interface PalletBountiesBountyStatus extends Enum {
|
||||||
readonly isProposed: boolean;
|
readonly isProposed: boolean;
|
||||||
readonly isApproved: boolean;
|
readonly isApproved: boolean;
|
||||||
@@ -1302,7 +1306,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
} & Struct;
|
} & Struct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTipsOpenTip (468) */
|
/** @name PalletTipsOpenTip (478) */
|
||||||
export interface PalletTipsOpenTip extends Struct {
|
export interface PalletTipsOpenTip extends Struct {
|
||||||
readonly reason: H256;
|
readonly reason: H256;
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
@@ -1313,7 +1317,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly findersFee: bool;
|
readonly findersFee: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsAssetDetails (470) */
|
/** @name PalletAssetsAssetDetails (480) */
|
||||||
export interface PalletAssetsAssetDetails extends Struct {
|
export interface PalletAssetsAssetDetails extends Struct {
|
||||||
readonly owner: AccountId32;
|
readonly owner: AccountId32;
|
||||||
readonly issuer: AccountId32;
|
readonly issuer: AccountId32;
|
||||||
@@ -1329,7 +1333,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsAssetBalance (471) */
|
/** @name PalletAssetsAssetBalance (481) */
|
||||||
export interface PalletAssetsAssetBalance extends Struct {
|
export interface PalletAssetsAssetBalance extends Struct {
|
||||||
readonly balance: u64;
|
readonly balance: u64;
|
||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
@@ -1337,13 +1341,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly extra: Null;
|
readonly extra: Null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsApproval (473) */
|
/** @name PalletAssetsApproval (483) */
|
||||||
export interface PalletAssetsApproval extends Struct {
|
export interface PalletAssetsApproval extends Struct {
|
||||||
readonly amount: u64;
|
readonly amount: u64;
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletAssetsAssetMetadata (474) */
|
/** @name PalletAssetsAssetMetadata (484) */
|
||||||
export interface PalletAssetsAssetMetadata extends Struct {
|
export interface PalletAssetsAssetMetadata extends Struct {
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly name: Bytes;
|
readonly name: Bytes;
|
||||||
@@ -1352,7 +1356,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletLotteryLotteryConfig (476) */
|
/** @name PalletLotteryLotteryConfig (486) */
|
||||||
export interface PalletLotteryLotteryConfig extends Struct {
|
export interface PalletLotteryLotteryConfig extends Struct {
|
||||||
readonly price: u128;
|
readonly price: u128;
|
||||||
readonly start: u32;
|
readonly start: u32;
|
||||||
@@ -1361,13 +1365,13 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly repeat: bool;
|
readonly repeat: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGiltGiltBid (481) */
|
/** @name PalletGiltGiltBid (491) */
|
||||||
export interface PalletGiltGiltBid extends Struct {
|
export interface PalletGiltGiltBid extends Struct {
|
||||||
readonly amount: u128;
|
readonly amount: u128;
|
||||||
readonly who: AccountId32;
|
readonly who: AccountId32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGiltActiveGiltsTotal (482) */
|
/** @name PalletGiltActiveGiltsTotal (492) */
|
||||||
export interface PalletGiltActiveGiltsTotal extends Struct {
|
export interface PalletGiltActiveGiltsTotal extends Struct {
|
||||||
readonly frozen: u128;
|
readonly frozen: u128;
|
||||||
readonly proportion: Perquintill;
|
readonly proportion: Perquintill;
|
||||||
@@ -1375,7 +1379,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly target: Perquintill;
|
readonly target: Perquintill;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletGiltActiveGilt (483) */
|
/** @name PalletGiltActiveGilt (493) */
|
||||||
export interface PalletGiltActiveGilt extends Struct {
|
export interface PalletGiltActiveGilt extends Struct {
|
||||||
readonly proportion: Perquintill;
|
readonly proportion: Perquintill;
|
||||||
readonly amount: u128;
|
readonly amount: u128;
|
||||||
@@ -1383,7 +1387,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly expiry: u32;
|
readonly expiry: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesClassDetails (485) */
|
/** @name PalletUniquesClassDetails (495) */
|
||||||
export interface PalletUniquesClassDetails extends Struct {
|
export interface PalletUniquesClassDetails extends Struct {
|
||||||
readonly owner: AccountId32;
|
readonly owner: AccountId32;
|
||||||
readonly issuer: AccountId32;
|
readonly issuer: AccountId32;
|
||||||
@@ -1397,7 +1401,7 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesInstanceDetails (487) */
|
/** @name PalletUniquesInstanceDetails (497) */
|
||||||
export interface PalletUniquesInstanceDetails extends Struct {
|
export interface PalletUniquesInstanceDetails extends Struct {
|
||||||
readonly owner: AccountId32;
|
readonly owner: AccountId32;
|
||||||
readonly approved: Option<AccountId32>;
|
readonly approved: Option<AccountId32>;
|
||||||
@@ -1405,21 +1409,21 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesClassMetadata (488) */
|
/** @name PalletUniquesClassMetadata (498) */
|
||||||
export interface PalletUniquesClassMetadata extends Struct {
|
export interface PalletUniquesClassMetadata extends Struct {
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly data: Bytes;
|
readonly data: Bytes;
|
||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletUniquesInstanceMetadata (489) */
|
/** @name PalletUniquesInstanceMetadata (499) */
|
||||||
export interface PalletUniquesInstanceMetadata extends Struct {
|
export interface PalletUniquesInstanceMetadata extends Struct {
|
||||||
readonly deposit: u128;
|
readonly deposit: u128;
|
||||||
readonly data: Bytes;
|
readonly data: Bytes;
|
||||||
readonly isFrozen: bool;
|
readonly isFrozen: bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name PalletTransactionStorageTransactionInfo (494) */
|
/** @name PalletTransactionStorageTransactionInfo (504) */
|
||||||
export interface PalletTransactionStorageTransactionInfo extends Struct {
|
export interface PalletTransactionStorageTransactionInfo extends Struct {
|
||||||
readonly chunkRoot: H256;
|
readonly chunkRoot: H256;
|
||||||
readonly contentHash: H256;
|
readonly contentHash: H256;
|
||||||
@@ -1427,7 +1431,21 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly blockChunks: u32;
|
readonly blockChunks: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpRuntimeMultiSignature (497) */
|
/** @name PalletBagsListListNode (506) */
|
||||||
|
export interface PalletBagsListListNode extends Struct {
|
||||||
|
readonly id: AccountId32;
|
||||||
|
readonly prev: Option<AccountId32>;
|
||||||
|
readonly next: Option<AccountId32>;
|
||||||
|
readonly bagUpper: u64;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name PalletBagsListListBag (507) */
|
||||||
|
export interface PalletBagsListListBag extends Struct {
|
||||||
|
readonly head: Option<AccountId32>;
|
||||||
|
readonly tail: Option<AccountId32>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name SpRuntimeMultiSignature (510) */
|
||||||
export interface SpRuntimeMultiSignature extends Enum {
|
export interface SpRuntimeMultiSignature extends Enum {
|
||||||
readonly isEd25519: boolean;
|
readonly isEd25519: boolean;
|
||||||
readonly asEd25519: SpCoreEd25519Signature;
|
readonly asEd25519: SpCoreEd25519Signature;
|
||||||
@@ -1437,28 +1455,28 @@ declare module '@polkadot/types/lookup' {
|
|||||||
readonly asEcdsa: SpCoreEcdsaSignature;
|
readonly asEcdsa: SpCoreEcdsaSignature;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @name SpCoreEcdsaSignature (498) */
|
/** @name SpCoreEcdsaSignature (511) */
|
||||||
export interface SpCoreEcdsaSignature extends U8aFixed {}
|
export interface SpCoreEcdsaSignature extends U8aFixed {}
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckSpecVersion (501) */
|
/** @name FrameSystemExtensionsCheckSpecVersion (514) */
|
||||||
export type FrameSystemExtensionsCheckSpecVersion = Null;
|
export type FrameSystemExtensionsCheckSpecVersion = Null;
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckTxVersion (502) */
|
/** @name FrameSystemExtensionsCheckTxVersion (515) */
|
||||||
export type FrameSystemExtensionsCheckTxVersion = Null;
|
export type FrameSystemExtensionsCheckTxVersion = Null;
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckGenesis (503) */
|
/** @name FrameSystemExtensionsCheckGenesis (516) */
|
||||||
export type FrameSystemExtensionsCheckGenesis = Null;
|
export type FrameSystemExtensionsCheckGenesis = Null;
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckNonce (506) */
|
/** @name FrameSystemExtensionsCheckNonce (519) */
|
||||||
export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
|
export interface FrameSystemExtensionsCheckNonce extends Compact<u32> {}
|
||||||
|
|
||||||
/** @name FrameSystemExtensionsCheckWeight (507) */
|
/** @name FrameSystemExtensionsCheckWeight (520) */
|
||||||
export type FrameSystemExtensionsCheckWeight = Null;
|
export type FrameSystemExtensionsCheckWeight = Null;
|
||||||
|
|
||||||
/** @name PalletTransactionPaymentChargeTransactionPayment (508) */
|
/** @name PalletTransactionPaymentChargeTransactionPayment (521) */
|
||||||
export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
export interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
||||||
|
|
||||||
/** @name NodeRuntimeRuntime (509) */
|
/** @name NodeRuntimeRuntime (522) */
|
||||||
export type NodeRuntimeRuntime = Null;
|
export type NodeRuntimeRuntime = Null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
|||||||
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
||||||
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';
|
||||||
import type { BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefySignedCommitment, MmrRootHash, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
import type { BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefySignedCommitment, MmrRootHash, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
||||||
import type { BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
|
import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';
|
||||||
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
||||||
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
||||||
import type { EthereumAddress, StatementKind } from '@polkadot/types/interfaces/claims';
|
import type { EthereumAddress, StatementKind } from '@polkadot/types/interfaces/claims';
|
||||||
@@ -49,7 +49,7 @@ import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, Sch
|
|||||||
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||||
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||||
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
|
import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';
|
||||||
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
|
import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';
|
||||||
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
|
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
|
||||||
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
|
import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';
|
||||||
import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
||||||
@@ -168,6 +168,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
BridgedBlockHash: BridgedBlockHash;
|
BridgedBlockHash: BridgedBlockHash;
|
||||||
BridgedBlockNumber: BridgedBlockNumber;
|
BridgedBlockNumber: BridgedBlockNumber;
|
||||||
BridgedHeader: BridgedHeader;
|
BridgedHeader: BridgedHeader;
|
||||||
|
BridgeMessageId: BridgeMessageId;
|
||||||
BufferedSessionChange: BufferedSessionChange;
|
BufferedSessionChange: BufferedSessionChange;
|
||||||
Bytes: Bytes;
|
Bytes: Bytes;
|
||||||
Call: Call;
|
Call: Call;
|
||||||
@@ -871,6 +872,7 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
SolutionSupports: SolutionSupports;
|
SolutionSupports: SolutionSupports;
|
||||||
SpanIndex: SpanIndex;
|
SpanIndex: SpanIndex;
|
||||||
SpanRecord: SpanRecord;
|
SpanRecord: SpanRecord;
|
||||||
|
SpecVersion: SpecVersion;
|
||||||
Sr25519Signature: Sr25519Signature;
|
Sr25519Signature: Sr25519Signature;
|
||||||
StakingLedger: StakingLedger;
|
StakingLedger: StakingLedger;
|
||||||
StakingLedgerTo223: StakingLedgerTo223;
|
StakingLedgerTo223: StakingLedgerTo223;
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { TypeRegistry } from '../create';
|
||||||
|
import { WrapperOpaque } from '.';
|
||||||
|
|
||||||
|
describe('WrapperOpaque', (): void => {
|
||||||
|
const registry = new TypeRegistry();
|
||||||
|
const u8au32 = new Uint8Array([4 << 2, 135, 214, 18, 0]);
|
||||||
|
|
||||||
|
it('u8a encodes a wrapped u32 correctly', (): void => {
|
||||||
|
expect(
|
||||||
|
new WrapperOpaque(registry, 'u32', 1234567).toU8a()
|
||||||
|
).toEqual(u8au32);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('u8a decodes a wrapped u32 correctly', (): void => {
|
||||||
|
expect(
|
||||||
|
new WrapperOpaque(registry, 'u32', u8au32).toU8a()
|
||||||
|
).toEqual(u8au32);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('hex encodes a wrapped u32 correctly', (): void => {
|
||||||
|
expect(
|
||||||
|
new WrapperOpaque(registry, 'u32', '0x12345678').toHex()
|
||||||
|
).toEqual('0x12345678');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('has the correct unwrap', (): void => {
|
||||||
|
expect(
|
||||||
|
new WrapperOpaque(registry, 'u32', '0x12345678').unwrap().toHex()
|
||||||
|
).toEqual('0x12345678');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('has the correct toRawType', (): void => {
|
||||||
|
expect(
|
||||||
|
new WrapperOpaque(registry, 'u32').toRawType()
|
||||||
|
).toEqual('WrapperOpaque<u32>');
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { Codec, Constructor, Registry } from '../types';
|
||||||
|
|
||||||
|
import { compactAddLength, compactStripLength, isU8a } from '@polkadot/util';
|
||||||
|
|
||||||
|
import { Base } from './Base';
|
||||||
|
import { typeToConstructor } from './utils';
|
||||||
|
|
||||||
|
function decodeRaw<T extends Codec> (registry: Registry, Type: Constructor<T> | string, value?: unknown): T {
|
||||||
|
const Clazz = typeToConstructor<T>(registry, Type);
|
||||||
|
|
||||||
|
if (isU8a(value)) {
|
||||||
|
const [, u8a] = compactStripLength(value);
|
||||||
|
|
||||||
|
return new Clazz(registry, u8a);
|
||||||
|
}
|
||||||
|
|
||||||
|
return new Clazz(registry, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
export class WrapperOpaque<T extends Codec> extends Base<T> {
|
||||||
|
constructor (registry: Registry, Type: Constructor<T> | string, value?: unknown) {
|
||||||
|
super(registry, decodeRaw(registry, Type, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static with<T extends Codec> (Type: Constructor<T> | string): Constructor<WrapperOpaque<T>> {
|
||||||
|
return class extends WrapperOpaque<T> {
|
||||||
|
constructor (registry: Registry, value?: unknown) {
|
||||||
|
super(registry, Type, value);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Returns the base runtime type name for this instance
|
||||||
|
*/
|
||||||
|
public override toRawType (): string {
|
||||||
|
return `WrapperOpaque<${this._raw.toRawType()}>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description The length of the value when encoded as a Uint8Array
|
||||||
|
*/
|
||||||
|
public override toU8a (isBare?: boolean): Uint8Array {
|
||||||
|
const u8a = super.toU8a(isBare);
|
||||||
|
|
||||||
|
return isBare
|
||||||
|
? u8a
|
||||||
|
: compactAddLength(u8a);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Return the inner value for the wrapped type
|
||||||
|
*/
|
||||||
|
public unwrap (): T {
|
||||||
|
return this._raw;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -30,3 +30,4 @@ export { U8aFixed } from './U8aFixed';
|
|||||||
export { Vec } from './Vec';
|
export { Vec } from './Vec';
|
||||||
// export { VecAny } from './VecAny';
|
// export { VecAny } from './VecAny';
|
||||||
export { VecFixed } from './VecFixed';
|
export { VecFixed } from './VecFixed';
|
||||||
|
export { WrapperOpaque } from './WrapperOpaque';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { TypeDef } from './types';
|
|||||||
|
|
||||||
import { assert, isNumber, isUndefined, stringify } from '@polkadot/util';
|
import { assert, isNumber, isUndefined, stringify } from '@polkadot/util';
|
||||||
|
|
||||||
import { BTreeMap, BTreeSet, CodecSet, Compact, DoNotConstruct, Enum, HashMap, Int, Option, Range, RangeInclusive, Result, Struct, Tuple, U8aFixed, UInt, Vec, VecFixed } from '../codec';
|
import { BTreeMap, BTreeSet, CodecSet, Compact, DoNotConstruct, Enum, HashMap, Int, Option, Range, RangeInclusive, Result, Struct, Tuple, U8aFixed, UInt, Vec, VecFixed, WrapperOpaque } from '../codec';
|
||||||
import { Bytes, Null } from '../primitive';
|
import { Bytes, Null } from '../primitive';
|
||||||
import { getTypeDef } from './getTypeDef';
|
import { getTypeDef } from './getTypeDef';
|
||||||
import { TypeDefInfo } from './types';
|
import { TypeDefInfo } from './types';
|
||||||
@@ -169,7 +169,10 @@ const infoMapping: Record<TypeDefInfo, (registry: Registry, value: TypeDef) => C
|
|||||||
? U8aFixed.with((length * 8) as U8aBitLength, displayName)
|
? U8aFixed.with((length * 8) as U8aBitLength, displayName)
|
||||||
: VecFixed.with(subType, length)
|
: VecFixed.with(subType, length)
|
||||||
);
|
);
|
||||||
}
|
},
|
||||||
|
|
||||||
|
[TypeDefInfo.WrapperOpaque]: (registry: Registry, value: TypeDef): Constructor<Codec> =>
|
||||||
|
WrapperOpaque.with(getSubType(value))
|
||||||
};
|
};
|
||||||
|
|
||||||
// Returns the type Class for construction
|
// Returns the type Class for construction
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ function encodeWithParams (registry: Registry, typeDef: TypeDef, outer: string):
|
|||||||
case TypeDefInfo.Option:
|
case TypeDefInfo.Option:
|
||||||
case TypeDefInfo.Result:
|
case TypeDefInfo.Result:
|
||||||
case TypeDefInfo.Vec:
|
case TypeDefInfo.Vec:
|
||||||
|
case TypeDefInfo.WrapperOpaque:
|
||||||
return paramsNotation(outer, sub, (p) => encodeTypeDef(registry, p));
|
return paramsNotation(outer, sub, (p) => encodeTypeDef(registry, p));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,7 +135,9 @@ const encoders: Record<TypeDefInfo, (registry: Registry, typeDef: TypeDef) => st
|
|||||||
assert(isNumber(length) && !isUndefined(sub) && !Array.isArray(sub), 'Unable to encode VecFixed type');
|
assert(isNumber(length) && !isUndefined(sub) && !Array.isArray(sub), 'Unable to encode VecFixed type');
|
||||||
|
|
||||||
return `[${sub.type};${length}]`;
|
return `[${sub.type};${length}]`;
|
||||||
}
|
},
|
||||||
|
[TypeDefInfo.WrapperOpaque]: (registry: Registry, typeDef: TypeDef) =>
|
||||||
|
encodeWithParams(registry, typeDef, 'WrapperOpaque')
|
||||||
};
|
};
|
||||||
|
|
||||||
function encodeType (registry: Registry, typeDef: TypeDef, withLookup = true): string {
|
function encodeType (registry: Registry, typeDef: TypeDef, withLookup = true): string {
|
||||||
|
|||||||
@@ -216,7 +216,8 @@ const wrappedExtraction: [string, string, TypeDefInfo][] = [
|
|||||||
['Compact<', '>', TypeDefInfo.Compact],
|
['Compact<', '>', TypeDefInfo.Compact],
|
||||||
['Linkage<', '>', TypeDefInfo.Linkage],
|
['Linkage<', '>', TypeDefInfo.Linkage],
|
||||||
['Option<', '>', TypeDefInfo.Option],
|
['Option<', '>', TypeDefInfo.Option],
|
||||||
['Vec<', '>', TypeDefInfo.Vec]
|
['Vec<', '>', TypeDefInfo.Vec],
|
||||||
|
['WrapperOpaque<', '>', TypeDefInfo.WrapperOpaque]
|
||||||
];
|
];
|
||||||
|
|
||||||
function extractSubType (type: string, [start, end]: [string, string, TypeDefInfo, any?]): string {
|
function extractSubType (type: string, [start, end]: [string, string, TypeDefInfo, any?]): string {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ interface SanitizeOptions {
|
|||||||
type Mapper = (value: string, options?: SanitizeOptions) => string;
|
type Mapper = (value: string, options?: SanitizeOptions) => string;
|
||||||
|
|
||||||
const BOUNDED = ['BTreeMap', 'BTreeSet', 'HashMap', 'Vec'];
|
const BOUNDED = ['BTreeMap', 'BTreeSet', 'HashMap', 'Vec'];
|
||||||
const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt']);
|
const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperOpaque']);
|
||||||
const BOX_PRECEDING = ['<', '(', '[', '"', ',', ' ']; // start of vec, tuple, fixed array, part of struct def or in tuple
|
const BOX_PRECEDING = ['<', '(', '[', '"', ',', ' ']; // start of vec, tuple, fixed array, part of struct def or in tuple
|
||||||
|
|
||||||
const mappings: Mapper[] = [
|
const mappings: Mapper[] = [
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ export enum TypeDefInfo {
|
|||||||
Tuple,
|
Tuple,
|
||||||
UInt,
|
UInt,
|
||||||
Vec,
|
Vec,
|
||||||
VecFixed
|
VecFixed,
|
||||||
|
WrapperOpaque
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TypeDef {
|
export interface TypeDef {
|
||||||
|
|||||||
@@ -3,11 +3,12 @@
|
|||||||
|
|
||||||
import type { SignOptions } from '@polkadot/keyring/types';
|
import type { SignOptions } from '@polkadot/keyring/types';
|
||||||
import type { ExtrinsicEra } from '../../interfaces/extrinsics';
|
import type { ExtrinsicEra } from '../../interfaces/extrinsics';
|
||||||
import type { Balance, Hash, Index } from '../../interfaces/runtime';
|
import type { AssetId, Balance, Hash, Index } from '../../interfaces/runtime';
|
||||||
import type { ExtrinsicPayloadValue, IKeyringPair, Registry } from '../../types';
|
import type { ExtrinsicPayloadValue, IKeyringPair, Registry } from '../../types';
|
||||||
|
|
||||||
import { Compact } from '../../codec/Compact';
|
import { Compact } from '../../codec/Compact';
|
||||||
import { Enum } from '../../codec/Enum';
|
import { Enum } from '../../codec/Enum';
|
||||||
|
import { Option } from '../../codec/Option';
|
||||||
import { Struct } from '../../codec/Struct';
|
import { Struct } from '../../codec/Struct';
|
||||||
import { Bytes } from '../../primitive/Bytes';
|
import { Bytes } from '../../primitive/Bytes';
|
||||||
import { u32 } from '../../primitive/U32';
|
import { u32 } from '../../primitive/U32';
|
||||||
@@ -92,6 +93,14 @@ export class GenericExtrinsicPayloadV4 extends Struct {
|
|||||||
return this.get('transactionVersion') as u32;
|
return this.get('transactionVersion') as u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description
|
||||||
|
* The (optional) asset id for this signature for chains that support transaction fees in assets
|
||||||
|
*/
|
||||||
|
public get assetId (): Option<AssetId> {
|
||||||
|
return this.get('assetId') as Option<AssetId>;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Sign the payload with the keypair
|
* @description Sign the payload with the keypair
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics';
|
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics';
|
||||||
import type { Address, Balance, Call, Index } from '../../interfaces/runtime';
|
import type { Address, AssetId, Balance, Call, Index } from '../../interfaces/runtime';
|
||||||
import type { ExtrinsicPayloadValue, IExtrinsicSignature, IKeyringPair, Registry, SignatureOptions } from '../../types';
|
import type { ExtrinsicPayloadValue, IExtrinsicSignature, IKeyringPair, Registry, SignatureOptions } from '../../types';
|
||||||
import type { ExtrinsicSignatureOptions } from '../types';
|
import type { ExtrinsicSignatureOptions } from '../types';
|
||||||
|
|
||||||
@@ -10,6 +10,7 @@ import { assert, isU8a, stringify, u8aConcat, u8aToHex } from '@polkadot/util';
|
|||||||
|
|
||||||
import { Compact } from '../../codec/Compact';
|
import { Compact } from '../../codec/Compact';
|
||||||
import { Enum } from '../../codec/Enum';
|
import { Enum } from '../../codec/Enum';
|
||||||
|
import { Option } from '../../codec/Option';
|
||||||
import { Struct } from '../../codec/Struct';
|
import { Struct } from '../../codec/Struct';
|
||||||
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants';
|
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants';
|
||||||
import { GenericExtrinsicPayloadV4 } from './ExtrinsicPayload';
|
import { GenericExtrinsicPayloadV4 } from './ExtrinsicPayload';
|
||||||
@@ -114,12 +115,21 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
|||||||
return this.get('tip') as Compact<Balance>;
|
return this.get('tip') as Compact<Balance>;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected _injectSignature (signer: Address, signature: ExtrinsicSignature, { era, nonce, tip }: GenericExtrinsicPayloadV4): IExtrinsicSignature {
|
/**
|
||||||
|
* @description
|
||||||
|
* The (optional) asset id for this signature for chains that support transaction fees in assets
|
||||||
|
*/
|
||||||
|
public get assetId (): Option<AssetId> {
|
||||||
|
return this.get('assetId') as Option<AssetId>;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected _injectSignature (signer: Address, signature: ExtrinsicSignature, { assetId, era, nonce, tip }: GenericExtrinsicPayloadV4): IExtrinsicSignature {
|
||||||
this.set('era', era);
|
this.set('era', era);
|
||||||
this.set('nonce', nonce);
|
this.set('nonce', nonce);
|
||||||
this.set('signer', signer);
|
this.set('signer', signer);
|
||||||
this.set('signature', signature);
|
this.set('signature', signature);
|
||||||
this.set('tip', tip);
|
this.set('tip', tip);
|
||||||
|
this.set('assetId', assetId);
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -138,8 +148,9 @@ export class GenericExtrinsicSignatureV4 extends Struct implements IExtrinsicSig
|
|||||||
/**
|
/**
|
||||||
* @description Creates a payload from the supplied options
|
* @description Creates a payload from the supplied options
|
||||||
*/
|
*/
|
||||||
public createPayload (method: Call, { blockHash, era, genesisHash, nonce, runtimeVersion: { specVersion, transactionVersion }, tip }: SignatureOptions): GenericExtrinsicPayloadV4 {
|
public createPayload (method: Call, { assetId, blockHash, era, genesisHash, nonce, runtimeVersion: { specVersion, transactionVersion }, tip }: SignatureOptions): GenericExtrinsicPayloadV4 {
|
||||||
return new GenericExtrinsicPayloadV4(this.registry, {
|
return new GenericExtrinsicPayloadV4(this.registry, {
|
||||||
|
assetId,
|
||||||
blockHash,
|
blockHash,
|
||||||
era: era || IMMORTAL_ERA,
|
era: era || IMMORTAL_ERA,
|
||||||
genesisHash,
|
genesisHash,
|
||||||
|
|||||||
@@ -48,10 +48,10 @@ const SETS = [
|
|||||||
].map((p) => p.split('::'));
|
].map((p) => p.split('::'));
|
||||||
|
|
||||||
// These we never use these as top-level names, they are wrappers
|
// These we never use these as top-level names, they are wrappers
|
||||||
const WRAPPERS = ['BoundedBTreeMap', 'BoundedVec', 'Box', 'BTreeMap', 'Cow', 'Result', 'Option', 'WeakBoundedVec'];
|
const WRAPPERS = ['BoundedBTreeMap', 'BoundedVec', 'Box', 'BTreeMap', 'Cow', 'Result', 'Option', 'WeakBoundedVec', 'WrapperOpaque'];
|
||||||
|
|
||||||
// These are reserved and/or conflicts with built-in Codec definitions
|
// These are reserved and/or conflicts with built-in Codec or JS definitions
|
||||||
const RESERVED = ['call', 'entries', 'hash', 'keys', 'new', 'size'];
|
const RESERVED = ['entries', 'hash', 'keys', 'new', 'size'];
|
||||||
|
|
||||||
function matchParts (first: string[], second: (string | Text)[]): boolean {
|
function matchParts (first: string[], second: (string | Text)[]): boolean {
|
||||||
return first.length === second.length && first.every((a, index) => {
|
return first.length === second.length && first.every((a, index) => {
|
||||||
@@ -415,6 +415,11 @@ export class GenericPortableRegistry extends Struct {
|
|||||||
...this.#createSiDef(type)
|
...this.#createSiDef(type)
|
||||||
}))
|
}))
|
||||||
});
|
});
|
||||||
|
} else if (path.length && path[path.length - 1].toString() === 'WrapperOpaque') {
|
||||||
|
return withTypeString(this.registry, {
|
||||||
|
info: TypeDefInfo.WrapperOpaque,
|
||||||
|
sub: this.#createSiDef(params[0].type.unwrap())
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return SETS.some((p) => matchParts(p, path))
|
return SETS.some((p) => matchParts(p, path))
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export default {
|
|||||||
BridgedBlockHash: 'H256',
|
BridgedBlockHash: 'H256',
|
||||||
BridgedBlockNumber: 'BlockNumber',
|
BridgedBlockNumber: 'BlockNumber',
|
||||||
BridgedHeader: 'Header',
|
BridgedHeader: 'Header',
|
||||||
|
BridgeMessageId: '(LaneId, MessageNonce)',
|
||||||
CallOrigin: {
|
CallOrigin: {
|
||||||
_enum: {
|
_enum: {
|
||||||
SourceRoot: 'Null',
|
SourceRoot: 'Null',
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ export interface BridgedBlockNumber extends BlockNumber {}
|
|||||||
/** @name BridgedHeader */
|
/** @name BridgedHeader */
|
||||||
export interface BridgedHeader extends Header {}
|
export interface BridgedHeader extends Header {}
|
||||||
|
|
||||||
|
/** @name BridgeMessageId */
|
||||||
|
export interface BridgeMessageId extends ITuple<[LaneId, MessageNonce]> {}
|
||||||
|
|
||||||
/** @name CallOrigin */
|
/** @name CallOrigin */
|
||||||
export interface CallOrigin extends Enum {
|
export interface CallOrigin extends Enum {
|
||||||
readonly isSourceRoot: boolean;
|
readonly isSourceRoot: boolean;
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ export default {
|
|||||||
},
|
},
|
||||||
VoteThreshold: {
|
VoteThreshold: {
|
||||||
_enum: [
|
_enum: [
|
||||||
'Super majority approval',
|
'Super Majority Approve',
|
||||||
'Super majority rejection',
|
'Super Majority Against',
|
||||||
'Simple majority'
|
'Simple Majority'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ export interface VoterInfo extends Struct {
|
|||||||
|
|
||||||
/** @name VoteThreshold */
|
/** @name VoteThreshold */
|
||||||
export interface VoteThreshold extends Enum {
|
export interface VoteThreshold extends Enum {
|
||||||
readonly isSupermajorityapproval: boolean;
|
readonly isSuperMajorityApprove: boolean;
|
||||||
readonly isSupermajorityrejection: boolean;
|
readonly isSuperMajorityAgainst: boolean;
|
||||||
readonly isSimplemajority: boolean;
|
readonly isSimpleMajority: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PHANTOM_ELECTIONS = 'elections';
|
export type PHANTOM_ELECTIONS = 'elections';
|
||||||
|
|||||||
@@ -436,6 +436,7 @@ export default {
|
|||||||
specName: 'Text',
|
specName: 'Text',
|
||||||
specVersion: 'u32'
|
specVersion: 'u32'
|
||||||
},
|
},
|
||||||
|
SpecVersion: 'u32',
|
||||||
StorageChangeSet: {
|
StorageChangeSet: {
|
||||||
block: 'Hash',
|
block: 'Hash',
|
||||||
changes: 'Vec<KeyValueOption>'
|
changes: 'Vec<KeyValueOption>'
|
||||||
|
|||||||
@@ -68,6 +68,9 @@ export interface RuntimeVersionPartial extends Struct {
|
|||||||
readonly specVersion: u32;
|
readonly specVersion: u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @name SpecVersion */
|
||||||
|
export interface SpecVersion extends u32 {}
|
||||||
|
|
||||||
/** @name StorageChangeSet */
|
/** @name StorageChangeSet */
|
||||||
export interface StorageChangeSet extends Struct {
|
export interface StorageChangeSet extends Struct {
|
||||||
readonly block: Hash;
|
readonly block: Hash;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export function expandMetadata (registry: Registry, metadata: Metadata): Decorat
|
|||||||
errors: decorateErrors(registry, latest, version),
|
errors: decorateErrors(registry, latest, version),
|
||||||
events: decorateEvents(registry, latest, version),
|
events: decorateEvents(registry, latest, version),
|
||||||
query: decorateStorage(registry, latest, version),
|
query: decorateStorage(registry, latest, version),
|
||||||
|
registry,
|
||||||
tx: decorateExtrinsics(registry, latest, version)
|
tx: decorateExtrinsics(registry, latest, version)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user