Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
093d2cfa7c | ||
|
|
35b31a21dc | ||
|
|
8b9741a722 | ||
|
|
d5cfa9b0e9 | ||
|
|
129d1214fe | ||
|
|
abb3375c3a | ||
|
|
4cfa06b43f | ||
|
|
8fa80ac0f6 | ||
|
|
2d011c68df | ||
|
|
640ef4bdab | ||
|
|
cdd20c0b99 | ||
|
|
3a12123bf9 | ||
|
|
5657d5395b | ||
|
|
66b1108c5c | ||
|
|
7bf7e207c2 | ||
|
|
01098395ec | ||
|
|
3e21dfdc03 | ||
|
|
a400fb2362 | ||
|
|
44172aa359 | ||
|
|
82cab2827a | ||
|
|
a198eb1515 | ||
|
|
6e67cd6c97 | ||
|
|
e51e89df56 | ||
|
|
e46fd07d39 | ||
|
|
b2cf9aed83 | ||
|
|
c632030437 | ||
|
|
9dc683d289 | ||
|
|
6cef6190b1 | ||
|
|
75dd443d79 | ||
|
|
13dacb591d | ||
|
|
429bf5456e | ||
|
|
527c0f5015 | ||
|
|
527ab27bee | ||
|
|
7991403022 | ||
|
|
61d2e6c5e5 | ||
|
|
e005a3fc0c | ||
|
|
2dfb0fb59a | ||
|
|
70c011e7e2 | ||
|
|
8134322626 | ||
|
|
60152749bb | ||
|
|
b257e120d4 | ||
|
|
6dc75acd21 | ||
|
|
a04400170c |
@@ -1,5 +1,30 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 3.5.1 Jan 18, 2020
|
||||
|
||||
Upgrade priority: Low. Recommended for parachain developers.
|
||||
|
||||
- **Important** The default for Substrate on the Address types are `MultiAddress`. It is recommended that chains add explicit definitions for `Address` and `LookupSource` in their types, instead of relying on the API-defaults. A future update will swap the API defaults to align with Substrate.
|
||||
- **Important** Like the above changes in Substrate, the `AccountInfo` structure has also changed. It is recommended that chain developers explicitly add `AccountInfo: 'AccountInfoWithRefCount'` for the version with `refCount` on and `AccountInfoWithProviders` for the latest Substrate version. As per the above, the API defaults will be changed to align with Substrate.
|
||||
|
||||
Contributed:
|
||||
|
||||
- Apply correct TypeScript type for `toBigInt()` (Thanks to https://github.com/ianhe8x)
|
||||
- Expand type definitions for storage key tuples (Thanks to https://github.com/monitz87)
|
||||
- Adjust bounty derive to cater for non-council chains (Thanks to https://github.com/ekowalsk)
|
||||
|
||||
Changes:
|
||||
|
||||
- Remove recursion in vector/struct U8a stream decoding
|
||||
- Availability of staking made optional in session length calcs (era does require it)
|
||||
- Updates to parachain types, ensuring it has coverage for all the latest
|
||||
- Update all Rococo types to the latest (session keys, session reports, parachain indexes)
|
||||
- Update known upgrade checkpoints fo WestEnd
|
||||
- Add types of the lottery module in Substrate
|
||||
- Add and extend types for the crowdloan module in Polkadot
|
||||
- Adjust node-template to default to `MultiAddress` on specVersion >= 100
|
||||
|
||||
|
||||
## 3.4.1 Jan 11, 2020
|
||||
|
||||
Upgrade priority: Low. Fixes for parachain types, `.entries()` (with no values) and `event.is(...)` checks, users of these interfaces will have benefit.
|
||||
|
||||
+1
-1
@@ -34,5 +34,5 @@
|
||||
"@types/jest": "^26.0.20",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"version": "3.4.1"
|
||||
"version": "3.5.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-contract",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -14,10 +14,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/api": "3.4.1",
|
||||
"@polkadot/types": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/x-rxjs": "3.4.1",
|
||||
"@polkadot/api": "3.5.1",
|
||||
"@polkadot/types": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"@polkadot/x-rxjs": "3.5.1",
|
||||
"bn.js": "^4.11.9"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-derive",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -14,16 +14,16 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/api": "3.4.1",
|
||||
"@polkadot/rpc-core": "3.4.1",
|
||||
"@polkadot/types": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/util-crypto": "^5.2.3",
|
||||
"@polkadot/x-rxjs": "3.4.1",
|
||||
"@polkadot/api": "3.5.1",
|
||||
"@polkadot/rpc-core": "3.5.1",
|
||||
"@polkadot/types": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"@polkadot/util-crypto": "^5.3.1",
|
||||
"@polkadot/x-rxjs": "3.5.1",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.2.3",
|
||||
"@polkadot/rpc-provider": "3.4.1"
|
||||
"@polkadot/keyring": "^5.3.1",
|
||||
"@polkadot/rpc-provider": "3.5.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||
import type { AccountIndex } from '@polkadot/types/interfaces';
|
||||
import type { Observable } from '@polkadot/x-rxjs';
|
||||
import type { AccountIndexes } from '../types';
|
||||
|
||||
@@ -18,7 +17,7 @@ function queryAccounts (api: ApiInterfaceRx): Observable<AccountIndexes> {
|
||||
map((entries): AccountIndexes =>
|
||||
entries.reduce((indexes: AccountIndexes, [key, idOpt]): AccountIndexes => {
|
||||
if (idOpt.isSome) {
|
||||
indexes[idOpt.unwrap()[0].toString()] = key.args[0] as AccountIndex;
|
||||
indexes[idOpt.unwrap()[0].toString()] = key.args[0];
|
||||
}
|
||||
|
||||
return indexes;
|
||||
|
||||
@@ -59,7 +59,7 @@ describe('bounties derive', () => {
|
||||
bountyDescriptions: {
|
||||
multi: () => of([
|
||||
optionOf(bytes('make polkadot even better')),
|
||||
optionOf(bytes('this will be totally ignored'))
|
||||
optionOf(bytes('some other bounty'))
|
||||
])
|
||||
}
|
||||
}
|
||||
@@ -117,6 +117,28 @@ describe('bounties derive', () => {
|
||||
expect(result[1].proposals).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('when no council, returns bounties without motions', async () => {
|
||||
const mockApi = {
|
||||
...defaultMockApi,
|
||||
query: {
|
||||
...defaultMockApi.query,
|
||||
council: null
|
||||
}
|
||||
} as unknown as ApiInterfaceRx;
|
||||
|
||||
const result = await bounties('', mockApi)().toPromise();
|
||||
|
||||
expect(result).toHaveLength(2);
|
||||
expect(result[0].bounty.proposer.toString()).toEqual(DEFAULT_PROPOSER);
|
||||
expect(result[0].description).toEqual('make polkadot even better');
|
||||
expect(result[0].index.eq(0)).toBe(true);
|
||||
expect(result[0].proposals).toHaveLength(0);
|
||||
expect(result[1].bounty.proposer.toString()).toEqual(DEFAULT_PROPOSER);
|
||||
expect(result[1].description).toEqual('some other bounty');
|
||||
expect(result[1].index.eq(1)).toBe(true);
|
||||
expect(result[1].proposals).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('combines bounties with motions', async () => {
|
||||
const mockApi = {
|
||||
...defaultMockApi,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { ApiInterfaceRx } from '@polkadot/api/types';
|
||||
import type { DeriveBounties, DeriveCollectiveProposal } from '@polkadot/api-derive/types';
|
||||
import type { Bytes, Option } from '@polkadot/types';
|
||||
import type { Bytes, Option, StorageKey } from '@polkadot/types';
|
||||
import type { Bounty, BountyIndex, ProposalIndex } from '@polkadot/types/interfaces';
|
||||
|
||||
import { memo } from '@polkadot/api-derive/util';
|
||||
@@ -37,16 +37,16 @@ export function bounties (instanceId: string, api: ApiInterfaceRx): () => Observ
|
||||
return memo(instanceId, (): Observable<DeriveBounties> =>
|
||||
combineLatest([
|
||||
bountyBase.bountyCount<BountyIndex>(),
|
||||
api.query.council.proposalCount<ProposalIndex>()
|
||||
api.query.council ? api.query.council.proposalCount<ProposalIndex>() : of(0)
|
||||
]).pipe(
|
||||
switchMap(() =>
|
||||
combineLatest([
|
||||
bountyBase.bounties.keys(),
|
||||
api.derive.council.proposals()
|
||||
api.derive.council ? api.derive.council.proposals() : of([])
|
||||
])
|
||||
),
|
||||
switchMap(([keys, proposals]): Observable<Result> => {
|
||||
const ids = keys.map(({ args: [id] }) => id as BountyIndex);
|
||||
const ids = (keys as StorageKey<[BountyIndex]>[]).map(({ args: [id] }) => id);
|
||||
|
||||
return combineLatest([
|
||||
bountyBase.bounties.multi<Option<Bounty>>(ids),
|
||||
|
||||
@@ -51,7 +51,7 @@ function schedulerEntries (api: ApiInterfaceRx): Observable<[BlockNumber[], Opti
|
||||
api.query.scheduler.agenda.keys()
|
||||
),
|
||||
switchMap((keys) => {
|
||||
const blockNumbers = keys.map((key) => key.args[0] as BlockNumber);
|
||||
const blockNumbers = keys.map((key) => key.args[0]);
|
||||
|
||||
return combineLatest([
|
||||
of(blockNumbers),
|
||||
|
||||
@@ -69,7 +69,7 @@ function extractVotes (mapped: [AccountId, Voting][], referendumId: BN): DeriveR
|
||||
function votesCurr (api: ApiInterfaceRx, referendumId: BN): Observable<DeriveReferendumVote[]> {
|
||||
return api.query.democracy.votingOf.entries<Voting>().pipe(
|
||||
map((allVoting): DeriveReferendumVote[] => {
|
||||
const mapped = allVoting.map(([key, voting]): [AccountId, Voting] => [key.args[0] as AccountId, voting]);
|
||||
const mapped = allVoting.map(([key, voting]): [AccountId, Voting] => [key.args[0], voting]);
|
||||
const votes = extractVotes(mapped, referendumId);
|
||||
const delegations = mapped
|
||||
.filter(([, voting]) => voting.isDelegating)
|
||||
|
||||
@@ -35,6 +35,7 @@ function queryAura (api: ApiInterfaceRx): Observable<DeriveSessionInfo> {
|
||||
[
|
||||
false,
|
||||
api.registry.createType('u64', 1),
|
||||
// we may have aura without staking (permissioned)
|
||||
api.consts.staking?.sessionsPerEra || api.registry.createType('SessionIndex', 1)
|
||||
],
|
||||
indexes
|
||||
@@ -50,7 +51,8 @@ function queryBabe (api: ApiInterfaceRx): Observable<DeriveSessionInfo> {
|
||||
[
|
||||
true,
|
||||
api.consts.babe.epochDuration,
|
||||
api.consts.staking.sessionsPerEra
|
||||
// we may have babe without staking (permissioned)
|
||||
api.consts.staking?.sessionsPerEra || api.registry.createType('SessionIndex', 1)
|
||||
],
|
||||
indexes
|
||||
])
|
||||
|
||||
@@ -12,6 +12,7 @@ import { map, switchMap } from '@polkadot/x-rxjs/operators';
|
||||
|
||||
import { memo } from '../util';
|
||||
|
||||
type ResultSlotsNoSession = [u64, u64, u64];
|
||||
type ResultSlots = [u64, u64, u64, Option<SessionIndex>];
|
||||
type ResultSlotsFlat = [u64, u64, u64, SessionIndex];
|
||||
|
||||
@@ -39,19 +40,26 @@ function queryAura (api: ApiInterfaceRx): Observable<DeriveSessionProgress> {
|
||||
|
||||
function queryBabe (api: ApiInterfaceRx): Observable<[DeriveSessionInfo, ResultSlotsFlat]> {
|
||||
return api.derive.session.info().pipe(
|
||||
switchMap((info): Observable<[DeriveSessionInfo, ResultSlots]> =>
|
||||
switchMap((info): Observable<[DeriveSessionInfo, ResultSlots | ResultSlotsNoSession]> =>
|
||||
combineLatest([
|
||||
of(info),
|
||||
api.queryMulti<ResultSlots>([
|
||||
api.query.babe.currentSlot,
|
||||
api.query.babe.epochIndex,
|
||||
api.query.babe.genesisSlot,
|
||||
[api.query.staking.erasStartSessionIndex, info.activeEra]
|
||||
])
|
||||
// we may have no staking, but have babe (permissioned)
|
||||
api.query.staking
|
||||
? api.queryMulti<ResultSlots>([
|
||||
api.query.babe.currentSlot,
|
||||
api.query.babe.epochIndex,
|
||||
api.query.babe.genesisSlot,
|
||||
[api.query.staking.erasStartSessionIndex, info.activeEra]
|
||||
])
|
||||
: api.queryMulti<ResultSlotsNoSession>([
|
||||
api.query.babe.currentSlot,
|
||||
api.query.babe.epochIndex,
|
||||
api.query.babe.genesisSlot
|
||||
])
|
||||
])
|
||||
),
|
||||
map(([info, [currentSlot, epochIndex, genesisSlot, optStartIndex]]): [DeriveSessionInfo, ResultSlotsFlat] => [
|
||||
info, [currentSlot, epochIndex, genesisSlot, optStartIndex.unwrapOr(api.registry.createType('SessionIndex', 1))]
|
||||
info, [currentSlot, epochIndex, genesisSlot, optStartIndex && optStartIndex.isSome ? optStartIndex.unwrap() : api.registry.createType('SessionIndex', 1)]
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import { memo } from '../util';
|
||||
export function stashes (instanceId: string, api: ApiInterfaceRx): () => Observable<AccountId[]> {
|
||||
return memo(instanceId, (): Observable<AccountId[]> =>
|
||||
api.query.staking.validators.keys().pipe(
|
||||
map((keys) => keys.map((key) => key.args[0] as AccountId).filter((a) => a))
|
||||
map((keys) => keys.map((key) => key.args[0]).filter((a) => a))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ export function nextElected (instanceId: string, api: ApiInterfaceRx): () => Obs
|
||||
// only populate for next era in the last session, so track both here - entries are not
|
||||
// subscriptions, so we need a trigger - currentIndex acts as that trigger to refresh
|
||||
switchMap(({ currentEra }) => api.query.staking.erasStakers.keys(currentEra)),
|
||||
map((keys) => keys.map((key) => key.args[1] as AccountId))
|
||||
map((keys) => keys.map((key) => key.args[1]))
|
||||
)
|
||||
: api.query.staking.currentElected<AccountId[]>()
|
||||
);
|
||||
|
||||
+11
-11
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -17,16 +17,16 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/api-derive": "3.4.1",
|
||||
"@polkadot/keyring": "^5.2.3",
|
||||
"@polkadot/metadata": "3.4.1",
|
||||
"@polkadot/rpc-core": "3.4.1",
|
||||
"@polkadot/rpc-provider": "3.4.1",
|
||||
"@polkadot/types": "3.4.1",
|
||||
"@polkadot/types-known": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/util-crypto": "^5.2.3",
|
||||
"@polkadot/x-rxjs": "3.4.1",
|
||||
"@polkadot/api-derive": "3.5.1",
|
||||
"@polkadot/keyring": "^5.3.1",
|
||||
"@polkadot/metadata": "3.5.1",
|
||||
"@polkadot/rpc-core": "3.5.1",
|
||||
"@polkadot/rpc-provider": "3.5.1",
|
||||
"@polkadot/types": "3.5.1",
|
||||
"@polkadot/types-known": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"@polkadot/util-crypto": "^5.3.1",
|
||||
"@polkadot/x-rxjs": "3.5.1",
|
||||
"bn.js": "^4.11.9",
|
||||
"eventemitter3": "^4.0.7"
|
||||
}
|
||||
|
||||
@@ -38,16 +38,16 @@ export type QueryableStorageEntry<ApiType extends ApiTypes, A extends AnyTuple =
|
||||
export interface StorageEntryBase<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple> {
|
||||
at: <T extends Codec | any = ObsInnerType<ReturnType<F>>>(hash: Hash | Uint8Array | string, ...args: Parameters<F>) => PromiseOrObs<ApiType, T>;
|
||||
creator: StorageEntry;
|
||||
entries: <T extends Codec | any = ObsInnerType<ReturnType<F>>>(arg?: Parameters<F>[0]) => PromiseOrObs<ApiType, [StorageKey, T][]>;
|
||||
entriesAt: <T extends Codec | any = ObsInnerType<ReturnType<F>>>(hash: Hash | Uint8Array | string, arg?: Parameters<F>[0]) => PromiseOrObs<ApiType, [StorageKey, T][]>;
|
||||
entriesPaged: <T extends Codec | any = ObsInnerType<ReturnType<F>>>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey, T][]>;
|
||||
entries: <T extends Codec | any = ObsInnerType<ReturnType<F>>>(arg?: Parameters<F>[0]) => PromiseOrObs<ApiType, [StorageKey<A>, T][]>;
|
||||
entriesAt: <T extends Codec | any = ObsInnerType<ReturnType<F>>>(hash: Hash | Uint8Array | string, arg?: Parameters<F>[0]) => PromiseOrObs<ApiType, [StorageKey<A>, T][]>;
|
||||
entriesPaged: <T extends Codec | any = ObsInnerType<ReturnType<F>>>(opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, [StorageKey<A>, T][]>;
|
||||
hash: (...args: Parameters<F>) => PromiseOrObs<ApiType, Hash>;
|
||||
is: (key: IStorageKey<AnyTuple>) => key is IStorageKey<A>;
|
||||
key: (...args: Parameters<F>) => string;
|
||||
keyPrefix: () => string;
|
||||
keys: (arg?: any) => PromiseOrObs<ApiType, StorageKey[]>;
|
||||
keysAt: (hash: Hash | Uint8Array | string, arg?: any) => PromiseOrObs<ApiType, StorageKey[]>;
|
||||
keysPaged: (opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, StorageKey[]>;
|
||||
keys: (arg?: any) => PromiseOrObs<ApiType, StorageKey<A>[]>;
|
||||
keysAt: (hash: Hash | Uint8Array | string, arg?: any) => PromiseOrObs<ApiType, StorageKey<A>[]>;
|
||||
keysPaged: (opts: PaginationOptions<Parameters<F>[0]>) => PromiseOrObs<ApiType, StorageKey<A>[]>;
|
||||
// @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][]>;
|
||||
size: (...args: Parameters<F>) => PromiseOrObs<ApiType, u64>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/metadata",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "Helpers to extract information from runtime metadata",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -17,13 +17,13 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/types": "3.4.1",
|
||||
"@polkadot/types-known": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/util-crypto": "^5.2.3",
|
||||
"@polkadot/types": "3.5.1",
|
||||
"@polkadot/types-known": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"@polkadot/util-crypto": "^5.3.1",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.2.3"
|
||||
"@polkadot/keyring": "^5.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-core",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -14,13 +14,13 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/metadata": "3.4.1",
|
||||
"@polkadot/rpc-provider": "3.4.1",
|
||||
"@polkadot/types": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/x-rxjs": "3.4.1"
|
||||
"@polkadot/metadata": "3.5.1",
|
||||
"@polkadot/rpc-provider": "3.5.1",
|
||||
"@polkadot/types": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"@polkadot/x-rxjs": "3.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.2.3"
|
||||
"@polkadot/keyring": "^5.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "Transport providers for the API",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -14,17 +14,17 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/types": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/util-crypto": "^5.2.3",
|
||||
"@polkadot/x-fetch": "^5.2.3",
|
||||
"@polkadot/x-ws": "^5.2.3",
|
||||
"@polkadot/types": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"@polkadot/util-crypto": "^5.3.1",
|
||||
"@polkadot/x-fetch": "^5.3.1",
|
||||
"@polkadot/x-ws": "^5.3.1",
|
||||
"bn.js": "^4.11.9",
|
||||
"eventemitter3": "^4.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.2.3",
|
||||
"@polkadot/metadata": "3.4.1",
|
||||
"@polkadot/keyring": "^5.3.1",
|
||||
"@polkadot/metadata": "3.5.1",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^13.0.5"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/typegen",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "Type generation scripts",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -23,11 +23,11 @@
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/register": "^7.12.10",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/api": "3.4.1",
|
||||
"@polkadot/metadata": "3.4.1",
|
||||
"@polkadot/rpc-provider": "3.4.1",
|
||||
"@polkadot/types": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/api": "3.5.1",
|
||||
"@polkadot/metadata": "3.5.1",
|
||||
"@polkadot/rpc-provider": "3.5.1",
|
||||
"@polkadot/types": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"handlebars": "^4.7.6",
|
||||
"websocket": "^1.0.33",
|
||||
"yargs": "^16.2.0"
|
||||
|
||||
@@ -72,7 +72,7 @@ export function generateInterfaceTypes (importDefinitions: { [importPath: string
|
||||
return generateInterfaceTypesTemplate({
|
||||
headerType: 'defs',
|
||||
imports,
|
||||
items,
|
||||
items: items.sort((a, b) => a.localeCompare(b)),
|
||||
types
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types-known",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -14,8 +14,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/types": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/types": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -7,11 +7,18 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
|
||||
const versioned: OverrideVersionedType[] = [
|
||||
{
|
||||
minmax: [0, undefined],
|
||||
minmax: [0, 99],
|
||||
types: {
|
||||
Address: 'AccountId',
|
||||
LookupSource: 'AccountId'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [100, undefined],
|
||||
types: {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress'
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -16,12 +16,20 @@ const versioned: OverrideVersionedType[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [260, undefined],
|
||||
minmax: [260, 260],
|
||||
types: {
|
||||
AccountInfo: 'AccountInfoWithRefCount',
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [261, undefined],
|
||||
types: {
|
||||
AccountInfo: 'AccountInfoWithProviders',
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress'
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -11,8 +11,9 @@ import type { OverrideVersionedType } from '@polkadot/types/types';
|
||||
const sharedTypes = {
|
||||
AccountInfo: 'AccountInfoWithRefCount',
|
||||
Address: 'AccountId',
|
||||
Keys: 'SessionKeys5',
|
||||
LookupSource: 'AccountId'
|
||||
FullIdentification: '()', // No staking, only session (as per config)
|
||||
LookupSource: 'AccountId',
|
||||
Keys: 'SessionKeys6'
|
||||
};
|
||||
|
||||
const versioned: OverrideVersionedType[] = [
|
||||
@@ -22,11 +23,19 @@ const versioned: OverrideVersionedType[] = [
|
||||
...sharedTypes,
|
||||
CompactAssignments: 'CompactAssignmentsTo257',
|
||||
RefCount: 'RefCountTo259',
|
||||
RewardDestination: 'RewardDestinationTo257'
|
||||
RewardDestination: 'RewardDestinationTo257',
|
||||
Keys: 'SessionKeys5'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [10, undefined],
|
||||
minmax: [10, 12],
|
||||
types: {
|
||||
...sharedTypes,
|
||||
Keys: 'SessionKeys5'
|
||||
}
|
||||
},
|
||||
{
|
||||
minmax: [13, undefined],
|
||||
types: {
|
||||
...sharedTypes
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ const upgrades: ChainUpgradesRaw = {
|
||||
[879238, 25], [889472, 26], [902937, 27], [932751, 28], [991142, 29],
|
||||
[1030162, 31], [1119657, 32], [1199282, 33], [1342534, 34], [1392263, 35],
|
||||
[1431703, 36], [1433369, 37], [1490972, 41], [2087397, 43], [2316688, 44],
|
||||
[2549864, 45]
|
||||
[2549864, 45], [3925782, 46], [3925843, 47]
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
@@ -17,14 +17,14 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/metadata": "3.4.1",
|
||||
"@polkadot/util": "^5.2.3",
|
||||
"@polkadot/util-crypto": "^5.2.3",
|
||||
"@polkadot/x-rxjs": "3.4.1",
|
||||
"@polkadot/metadata": "3.5.1",
|
||||
"@polkadot/util": "^5.3.1",
|
||||
"@polkadot/util-crypto": "^5.3.1",
|
||||
"@polkadot/x-rxjs": "3.5.1",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.2.3"
|
||||
"@polkadot/keyring": "^5.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
+2191
-2149
File diff suppressed because it is too large
Load Diff
@@ -146,7 +146,7 @@ export abstract class AbstractInt extends BN implements Codec {
|
||||
/**
|
||||
* @description Returns a BigInt representation of the number
|
||||
*/
|
||||
public toBigInt (): BigInt {
|
||||
public toBigInt (): bigint {
|
||||
return BigInt(this.toString());
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { H256 } from '../interfaces/runtime';
|
||||
import type { AnyJson, Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { compactFromU8a, compactToU8a, hexToU8a, isHex, isU8a, logger, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { compactFromU8a, compactToU8a, isHex, isU8a, logger, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { compareSet, decodeU8a, typeToConstructor } from './utils';
|
||||
|
||||
@@ -67,9 +67,7 @@ function decodeSet<V extends Codec = Codec> (registry: Registry, valType: Constr
|
||||
|
||||
const ValClass = typeToConstructor(registry, valType);
|
||||
|
||||
if (isHex(value)) {
|
||||
return decodeSet(registry, ValClass, hexToU8a(value));
|
||||
} else if (isU8a(value)) {
|
||||
if (isHex(value) || isU8a(value)) {
|
||||
return decodeSetFromU8a<V>(registry, ValClass, u8aToU8a(value));
|
||||
} else if (Array.isArray(value) || value instanceof Set) {
|
||||
return decodeSetFromSet<V>(registry, ValClass, value);
|
||||
|
||||
@@ -73,7 +73,9 @@ describe('Compact', (): void => {
|
||||
});
|
||||
|
||||
it('has a valid toBigInt interface', (): void => {
|
||||
expect(new (Compact.with('u128'))(registry, 12345678987654321n).toBigInt() === 12345678987654321n).toBe(true);
|
||||
expect(
|
||||
(new (Compact.with('u128'))(registry, 12345678987654321n).toBigInt() + 1n) === 12345678987654322n
|
||||
).toBe(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -95,7 +95,7 @@ export class Compact<T extends CompactEncodable> implements ICompact<T> {
|
||||
/**
|
||||
* @description Returns a BigInt representation of the number
|
||||
*/
|
||||
public toBigInt (): BigInt {
|
||||
public toBigInt (): bigint {
|
||||
return BigInt(this.toString());
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,12 @@ describe('Date', (): void => {
|
||||
new CodecDate(registry, 3).toHex(true)
|
||||
).toEqual('0x0300000000000000');
|
||||
});
|
||||
|
||||
it('encodes correctly to BigInt', (): void => {
|
||||
expect(
|
||||
new CodecDate(registry, 41).toBigInt() + 1n
|
||||
).toEqual(42n);
|
||||
});
|
||||
});
|
||||
|
||||
describe('utils', (): void => {
|
||||
|
||||
@@ -83,7 +83,7 @@ export class CodecDate extends Date implements Codec {
|
||||
/**
|
||||
* @description Returns a BigInt representation of the number
|
||||
*/
|
||||
public toBigInt (): BigInt {
|
||||
public toBigInt (): bigint {
|
||||
return BigInt(this.toNumber());
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { H256 } from '../interfaces/runtime';
|
||||
import type { AnyJson, Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { compactFromU8a, compactToU8a, hexToU8a, isHex, isObject, isU8a, logger, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { compactFromU8a, compactToU8a, isHex, isObject, isU8a, logger, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { compareMap, decodeU8a, typeToConstructor } from './utils';
|
||||
|
||||
@@ -74,9 +74,7 @@ function decodeMap<K extends Codec = Codec, V extends Codec = Codec> (registry:
|
||||
|
||||
if (!value) {
|
||||
return new Map<K, V>();
|
||||
} else if (isHex(value)) {
|
||||
return decodeMap(registry, KeyClass, ValClass, hexToU8a(value));
|
||||
} else if (isU8a(value)) {
|
||||
} else if (isU8a(value) || isHex(value)) {
|
||||
return decodeMapFromU8a<K, V>(registry, KeyClass, ValClass, u8aToU8a(value));
|
||||
} else if (value instanceof Map) {
|
||||
return decodeMapFromMap<K, V>(registry, KeyClass, ValClass, value);
|
||||
|
||||
@@ -4,16 +4,7 @@
|
||||
import type { H256 } from '../interfaces/runtime';
|
||||
import type { AnyJson, AnyU8a, IU8a, Registry } from '../types';
|
||||
|
||||
import { assert, isAscii, isU8a, isUndefined, isUtf8, u8aToHex, u8aToString, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
/** @internal */
|
||||
function decodeU8a (value?: any): Uint8Array {
|
||||
if (isU8a(value)) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return u8aToU8a(value);
|
||||
}
|
||||
import { assert, isAscii, isUndefined, isUtf8, u8aToHex, u8aToString, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
/**
|
||||
* @name Raw
|
||||
@@ -28,7 +19,7 @@ export class Raw extends Uint8Array implements IU8a {
|
||||
public readonly registry: Registry;
|
||||
|
||||
constructor (registry: Registry, value?: AnyU8a) {
|
||||
super(decodeU8a(value));
|
||||
super(u8aToU8a(value));
|
||||
|
||||
this.registry = registry;
|
||||
}
|
||||
@@ -92,7 +83,7 @@ export class Raw extends Uint8Array implements IU8a {
|
||||
!this.some((value, index) => value !== other[index]);
|
||||
}
|
||||
|
||||
return this.eq(decodeU8a(other));
|
||||
return this.eq(u8aToU8a(other as any));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { AnyNumber, AnyString, AnyU8a, Codec, Constructor, InterfaceTypes, Registry } from '../types';
|
||||
|
||||
import { hexToU8a, isHex, isU8a, u8aConcat } from '@polkadot/util';
|
||||
import { isHex, isU8a, u8aConcat, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from './AbstractArray';
|
||||
import { decodeU8a, mapToTypeMap, typeToConstructor } from './utils';
|
||||
@@ -20,10 +20,8 @@ type TupleTypes = (Constructor | keyof InterfaceTypes)[] | {
|
||||
|
||||
/** @internal */
|
||||
function decodeTuple (registry: Registry, _Types: TupleConstructors, value?: AnyTuple): Codec[] {
|
||||
if (isU8a(value)) {
|
||||
return decodeU8a(registry, value, _Types);
|
||||
} else if (isHex(value)) {
|
||||
return decodeTuple(registry, _Types, hexToU8a(value));
|
||||
if (isU8a(value) || isHex(value)) {
|
||||
return decodeU8a(registry, u8aToU8a(value), _Types);
|
||||
}
|
||||
|
||||
const Types: Constructor[] = Array.isArray(_Types)
|
||||
|
||||
@@ -45,6 +45,12 @@ describe('UInt', (): void => {
|
||||
).toEqual(4567);
|
||||
});
|
||||
|
||||
it('has a working toBigInt', (): void => {
|
||||
expect(
|
||||
new UInt(registry, 4567).toBigInt() + BigInt(1)
|
||||
).toEqual(BigInt(4568));
|
||||
});
|
||||
|
||||
it('converts to Little Endian from the provided value', (): void => {
|
||||
expect(
|
||||
new UInt(registry, 1234567).toU8a()
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
import type { Codec, Constructor, Registry } from '../../types';
|
||||
|
||||
import { arrayFlatten } from '@polkadot/util';
|
||||
|
||||
/**
|
||||
* Given an u8a, and an array of Type constructors, decode the u8a against the
|
||||
* types, and return an array of decoded values.
|
||||
@@ -16,13 +14,15 @@ export function decodeU8a (registry: Registry, u8a: Uint8Array, _types: Construc
|
||||
const types = Array.isArray(_types)
|
||||
? _types
|
||||
: Object.values(_types);
|
||||
const result: Codec[] = [];
|
||||
let offset = 0;
|
||||
|
||||
if (!types.length) {
|
||||
return [];
|
||||
for (let i = 0; i < types.length; i++) {
|
||||
const value = new types[i](registry, u8a.subarray(offset));
|
||||
|
||||
result.push(value);
|
||||
offset += value.encodedLength;
|
||||
}
|
||||
|
||||
const Type = types[0];
|
||||
const value = new Type(registry, u8a);
|
||||
|
||||
return arrayFlatten([[value], decodeU8a(registry, u8a.subarray(value.encodedLength), types.slice(1))]);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
types: {
|
||||
FundIndex: 'u32',
|
||||
LastContribution: {
|
||||
_enum: {
|
||||
Never: 'Null',
|
||||
PreEnding: 'AuctionIndex',
|
||||
Ending: 'BlockNumber'
|
||||
}
|
||||
},
|
||||
DeployData: {
|
||||
codeHash: 'Hash',
|
||||
codeSize: 'u32',
|
||||
initialHeadData: 'HeadData'
|
||||
},
|
||||
FundInfo: {
|
||||
parachain: 'Option<ParaId>',
|
||||
owner: 'AccountId',
|
||||
deposit: 'Balance',
|
||||
raised: 'Balance',
|
||||
end: 'BlockNumber',
|
||||
cap: 'Balance',
|
||||
lastContribution: 'LastContribution',
|
||||
firstSlot: 'BlockNumber',
|
||||
lastSlot: 'BlockNumber',
|
||||
deployData: 'Option<DeployData>'
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
@@ -0,0 +1,41 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Enum, Option, Struct, u32 } from '@polkadot/types';
|
||||
import type { AuctionIndex, HeadData, ParaId } from '@polkadot/types/interfaces/parachains';
|
||||
import type { AccountId, Balance, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
/** @name DeployData */
|
||||
export interface DeployData extends Struct {
|
||||
readonly codeHash: Hash;
|
||||
readonly codeSize: u32;
|
||||
readonly initialHeadData: HeadData;
|
||||
}
|
||||
|
||||
/** @name FundIndex */
|
||||
export interface FundIndex extends u32 {}
|
||||
|
||||
/** @name FundInfo */
|
||||
export interface FundInfo extends Struct {
|
||||
readonly parachain: Option<ParaId>;
|
||||
readonly owner: AccountId;
|
||||
readonly deposit: Balance;
|
||||
readonly raised: Balance;
|
||||
readonly end: BlockNumber;
|
||||
readonly cap: Balance;
|
||||
readonly lastContribution: LastContribution;
|
||||
readonly firstSlot: BlockNumber;
|
||||
readonly lastSlot: BlockNumber;
|
||||
readonly deployData: Option<DeployData>;
|
||||
}
|
||||
|
||||
/** @name LastContribution */
|
||||
export interface LastContribution extends Enum {
|
||||
readonly isNever: boolean;
|
||||
readonly isPreEnding: boolean;
|
||||
readonly asPreEnding: AuctionIndex;
|
||||
readonly isEnding: boolean;
|
||||
readonly asEnding: BlockNumber;
|
||||
}
|
||||
|
||||
export type PHANTOM_CROWDLOAN = 'crowdloan';
|
||||
@@ -22,6 +22,7 @@ export { default as genericAsset } from './genericAsset/definitions';
|
||||
export { default as grandpa } from './grandpa/definitions';
|
||||
export { default as identity } from './identity/definitions';
|
||||
export { default as imOnline } from './imOnline/definitions';
|
||||
export { default as lottery } from './lottery/definitions';
|
||||
export { default as offences } from './offences/definitions';
|
||||
export { default as proxy } from './proxy/definitions';
|
||||
export { default as recovery } from './recovery/definitions';
|
||||
@@ -40,6 +41,7 @@ export { default as vesting } from './vesting/definitions';
|
||||
// polkadot-specific types
|
||||
export { default as attestations } from './attestations/definitions';
|
||||
export { default as claims } from './claims/definitions';
|
||||
export { default as crowdloan } from './crowdloan/definitions';
|
||||
export { default as parachains } from './parachains/definitions';
|
||||
export { default as poll } from './poll/definitions';
|
||||
export { default as purchase } from './purchase/definitions';
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
types: {
|
||||
CallIndex: '(u8, u8)',
|
||||
LotteryConfig: {
|
||||
price: 'Balance',
|
||||
start: 'BlockNumber',
|
||||
length: 'BlockNumber',
|
||||
delay: 'BlockNumber',
|
||||
repeat: 'bool'
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
@@ -0,0 +1,20 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Struct, bool, u8 } from '@polkadot/types';
|
||||
import type { ITuple } from '@polkadot/types/types';
|
||||
import type { Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
/** @name CallIndex */
|
||||
export interface CallIndex extends ITuple<[u8, u8]> {}
|
||||
|
||||
/** @name LotteryConfig */
|
||||
export interface LotteryConfig extends Struct {
|
||||
readonly price: Balance;
|
||||
readonly start: BlockNumber;
|
||||
readonly length: BlockNumber;
|
||||
readonly delay: BlockNumber;
|
||||
readonly repeat: bool;
|
||||
}
|
||||
|
||||
export type PHANTOM_LOTTERY = 'lottery';
|
||||
@@ -6,15 +6,17 @@
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
const SLOT_RANGE_COUNT = 10;
|
||||
import hrmpTypes from './hrmp';
|
||||
import slotTypes from './slots';
|
||||
|
||||
// proposeParachain
|
||||
const proposeTypes = {
|
||||
ParachainProposal: {
|
||||
proposer: 'AccountId',
|
||||
validationFunction: 'ValidationCode',
|
||||
initialHeadState: 'HeadData',
|
||||
validationCode: 'ValidationCode',
|
||||
genesisHead: 'HeadData',
|
||||
validators: 'Vec<ValidatorId>',
|
||||
name: 'Vec<u8>',
|
||||
name: 'Bytes',
|
||||
balance: 'Balance'
|
||||
},
|
||||
RegisteredParachainInfo: {
|
||||
@@ -27,6 +29,8 @@ export default {
|
||||
rpc: {},
|
||||
types: {
|
||||
...proposeTypes,
|
||||
...hrmpTypes,
|
||||
...slotTypes,
|
||||
AbridgedCandidateReceipt: {
|
||||
parachainIndex: 'ParaId',
|
||||
relayParent: 'Hash',
|
||||
@@ -36,6 +40,25 @@ export default {
|
||||
povBlockHash: 'Hash',
|
||||
commitments: 'CandidateCommitments'
|
||||
},
|
||||
AbridgedHostConfiguration: {
|
||||
maxCodeSize: 'u32',
|
||||
maxHeadDataSize: 'u32',
|
||||
maxUpwardQueueCount: 'u32',
|
||||
maxUpwardQueueSize: 'u32',
|
||||
maxUpwardMessageSize: 'u32',
|
||||
maxUpwardMessageNumPerCandidate: 'u32',
|
||||
hrmpMaxMessageNumPerCandidate: 'u32',
|
||||
validationUpgradeFrequency: 'BlockNumber',
|
||||
validationUpgradeDelay: 'BlockNumber'
|
||||
},
|
||||
AbridgedHrmpChannel: {
|
||||
maxCapacity: 'u32',
|
||||
maxTotalSize: 'u32',
|
||||
maxMessageSize: 'u32',
|
||||
msgCount: 'u32',
|
||||
totalSize: 'u32',
|
||||
mqcHead: 'Option<Hash>'
|
||||
},
|
||||
AssignmentId: 'AccountId',
|
||||
AssignmentKind: {
|
||||
_enum: {
|
||||
@@ -49,7 +72,6 @@ export default {
|
||||
validatorIndices: 'BitVec'
|
||||
},
|
||||
AuthorityDiscoveryId: 'AccountId',
|
||||
AuctionIndex: 'u32',
|
||||
AvailabilityBitfield: 'BitVec',
|
||||
AvailabilityBitfieldRecord: {
|
||||
bitfield: 'AvailabilityBitfield',
|
||||
@@ -60,12 +82,6 @@ export default {
|
||||
validityVotes: 'Vec<ValidityAttestation>',
|
||||
validatorIndices: 'BitVec'
|
||||
},
|
||||
Bidder: {
|
||||
_enum: {
|
||||
New: 'NewBidder',
|
||||
Existing: 'ParaId'
|
||||
}
|
||||
},
|
||||
BufferedSessionChange: {
|
||||
applyAt: 'BlockNumber',
|
||||
validators: 'Vec<ValidatorId>',
|
||||
@@ -83,11 +99,11 @@ export default {
|
||||
CandidateDescriptor: {
|
||||
paraId: 'ParaId',
|
||||
relayParent: 'Hash',
|
||||
collatorId: 'Hash',
|
||||
collatorId: 'CollatorId',
|
||||
persistedValidationDataHash: 'Hash',
|
||||
povHash: 'Hash',
|
||||
erasureRoot: 'Hash',
|
||||
signature: 'Signature'
|
||||
signature: 'CollatorSignature'
|
||||
},
|
||||
CandidateHash: 'Hash',
|
||||
CandidatePendingAvailability: {
|
||||
@@ -103,7 +119,7 @@ export default {
|
||||
descriptor: 'CandidateDescriptor',
|
||||
commitmentsHash: 'Hash'
|
||||
},
|
||||
CollatorId: '[u8; 32]',
|
||||
CollatorId: 'H256',
|
||||
CollatorSignature: 'Signature',
|
||||
CommittedCandidateReceipt: {
|
||||
descriptor: 'CandidateDescriptor',
|
||||
@@ -138,12 +154,29 @@ export default {
|
||||
},
|
||||
HeadData: 'Bytes',
|
||||
HostConfiguration: {
|
||||
validationUpgradeFrequency: 'BlockNumber',
|
||||
validationUpgradeDelay: 'BlockNumber',
|
||||
acceptancePeriod: 'BlockNumber',
|
||||
maxCodeSize: 'u32',
|
||||
maxHeadDataSize: 'u32',
|
||||
maxUpwardQueueCount: 'u32',
|
||||
maxUpwardQueueSize: 'u32',
|
||||
maxUpwardMessageSize: 'u32',
|
||||
maxUpwardMessageNumPerCandidate: 'u32',
|
||||
hrmpMaxMessageNumPerCandidate: 'u32',
|
||||
validationUpgradeFrequency: 'BlockNumber',
|
||||
validationUpgradeDelay: 'BlockNumber',
|
||||
maxPovSize: 'u32',
|
||||
maxDownwardMessageSize: 'u32',
|
||||
preferredDispatchableUpwardMessagesStepWeight: 'Weight',
|
||||
hrmpMaxParachainOutboundChannels: 'u32',
|
||||
hrmpMaxParathreadOutboundChannels: 'u32',
|
||||
hrmpOpenRequestTtl: 'u32',
|
||||
hrmpSenderDeposit: 'Balance',
|
||||
hrmpRecipientDeposit: 'Balance',
|
||||
hrmpChannelMaxCapacity: 'u32',
|
||||
hrmpChannelMaxTotalSize: 'u32',
|
||||
hrmpMaxParachainInboundChannels: 'u32',
|
||||
hrmpMaxParathreadInboundChannels: 'u32',
|
||||
hrmpChannelMaxMessageSize: 'u32',
|
||||
acceptancePeriod: 'BlockNumber',
|
||||
parathreadCores: 'u32',
|
||||
parathreadRetries: 'u32',
|
||||
groupRotationFrequency: 'BlockNumber',
|
||||
@@ -156,46 +189,7 @@ export default {
|
||||
nDelayTranches: 'u32',
|
||||
zerothDelayTrancheWidth: 'u32',
|
||||
neededApprovals: 'u32',
|
||||
relayVrfModuloSamples: 'u32',
|
||||
maxUpwardQueueCount: 'u32',
|
||||
maxUpwardQueueSize: 'u32',
|
||||
maxDownwardMessageSize: 'u32',
|
||||
preferredDispatchableUpwardMessagesStepWeight: 'Weight',
|
||||
maxUpwardMessageSize: 'u32',
|
||||
maxUpwardMessageNumPerCandidate: 'u32',
|
||||
hrmpOpenRequestTtl: 'u32',
|
||||
hrmpSenderDeposit: 'Balance',
|
||||
hrmpRecipientDeposit: 'Balance',
|
||||
hrmpChannelMaxCapacity: 'u32',
|
||||
hrmpChannelMaxTotalSize: 'u32',
|
||||
hrmpMaxParachainInboundChannels: 'u32',
|
||||
hrmpMaxParathreadInboundChannels: 'u32',
|
||||
hrmpChannelMaxMessageSize: 'u32',
|
||||
hrmpMaxParachainOutboundChannels: 'u32',
|
||||
hrmpMaxParathreadOutboundChannels: 'u32',
|
||||
hrmpMaxMessageNumPerCandidate: 'u32'
|
||||
},
|
||||
HrmpChannel: {
|
||||
senderDeposit: 'Balance',
|
||||
recipientDeposit: 'Balance',
|
||||
maxCapacity: 'u32',
|
||||
maxTotalSize: 'u32',
|
||||
maxMessageSize: 'u32',
|
||||
msgCount: 'u32',
|
||||
totalSize: 'u32',
|
||||
mqcHead: 'Option<Hash>'
|
||||
},
|
||||
HrmpChannelId: {
|
||||
sender: 'u32',
|
||||
receiver: 'u32'
|
||||
},
|
||||
HrmpOpenChannelRequest: {
|
||||
confirmed: 'bool',
|
||||
age: 'SessionIndex',
|
||||
senderDeposit: 'Balance',
|
||||
maxMessageSize: 'u32',
|
||||
maxCapacity: 'u32',
|
||||
maxTotalSize: 'u32'
|
||||
relayVrfModuloSamples: 'u32'
|
||||
},
|
||||
InboundDownwardMessage: {
|
||||
pubSentAt: 'BlockNumber',
|
||||
@@ -206,24 +200,6 @@ export default {
|
||||
data: 'Bytes'
|
||||
},
|
||||
InboundHrmpMessages: 'Vec<InboundHrmpMessage>',
|
||||
IncomingParachain: {
|
||||
_enum: {
|
||||
Unset: 'NewBidder',
|
||||
Fixed: 'IncomingParachainFixed',
|
||||
Deploy: 'IncomingParachainDeploy'
|
||||
}
|
||||
},
|
||||
IncomingParachainFixed: {
|
||||
codeHash: 'Hash',
|
||||
codeSize: 'u32',
|
||||
initialHeadData: 'HeadData'
|
||||
},
|
||||
IncomingParachainDeploy: {
|
||||
code: 'ValidationCode',
|
||||
initialHeadData: 'HeadData'
|
||||
},
|
||||
LeasePeriod: 'BlockNumber',
|
||||
LeasePeriodOf: 'LeasePeriod',
|
||||
LocalValidationData: {
|
||||
parentHead: 'HeadData',
|
||||
balance: 'Balance',
|
||||
@@ -233,10 +209,6 @@ export default {
|
||||
downwardMessages: 'Vec<InboundDownwardMessage>',
|
||||
horizontalMessages: 'BTreeMap<ParaId, InboundHrmpMessages>'
|
||||
},
|
||||
NewBidder: {
|
||||
who: 'AccountId',
|
||||
sub: 'SubId'
|
||||
},
|
||||
OutboundHrmpMessage: {
|
||||
recipient: 'u32',
|
||||
data: 'Bytes'
|
||||
@@ -272,6 +244,7 @@ export default {
|
||||
PersistedValidationData: {
|
||||
parentHead: 'HeadData',
|
||||
blockNumber: 'BlockNumber',
|
||||
relayStorageRoot: 'Hash',
|
||||
hrmpMqcHeads: 'Vec<(u32, Hash)>',
|
||||
dmqMqcHead: 'Hash',
|
||||
maxPovSize: 'u32'
|
||||
@@ -295,7 +268,7 @@ export default {
|
||||
validators: 'Vec<ValidatorId>',
|
||||
discoveryKeys: 'Vec<AuthorityDiscoveryId>',
|
||||
assignmentKeys: 'Vec<AssignmentId>',
|
||||
validatorGroups: 'Vec<ValidatorGroup>',
|
||||
validatorGroups: 'Vec<SessionInfoValidatorGroup>',
|
||||
nCores: 'u32',
|
||||
zerothDelayTrancheWidth: 'u32',
|
||||
relayVrfModuloSamples: 'u32',
|
||||
@@ -303,19 +276,17 @@ export default {
|
||||
noShowSlots: 'u32',
|
||||
neededApprovals: 'u32'
|
||||
},
|
||||
SessionInfoValidatorGroup: 'Vec<u32>', // ValidatorIndex (u16 in staking)
|
||||
SignedAvailabilityBitfield: {
|
||||
payload: 'BitVec',
|
||||
validatorIndex: 'u32',
|
||||
signature: 'Signature'
|
||||
validatorIndex: 'u32', // ValidatorIndex for inclusion
|
||||
signature: 'ValidatorSignature'
|
||||
},
|
||||
SignedAvailabilityBitfields: 'Vec<SignedAvailabilityBitfield>',
|
||||
SigningContext: {
|
||||
sessionIndex: 'SessionIndex',
|
||||
parentHash: 'Hash'
|
||||
},
|
||||
SlotRange: {
|
||||
_enum: ['ZeroZero', 'ZeroOne', 'ZeroTwo', 'ZeroThree', 'OneOne', 'OneTwo', 'OneThree', 'TwoTwo', 'TwoThree', 'ThreeThree']
|
||||
},
|
||||
Statement: {
|
||||
_enum: {
|
||||
Never: 'Null', // starts at 1
|
||||
@@ -324,7 +295,6 @@ export default {
|
||||
Invalid: 'Hash'
|
||||
}
|
||||
},
|
||||
SubId: 'u32',
|
||||
TransientValidationData: {
|
||||
maxCodeSize: 'u32',
|
||||
maxHeadDataSize: 'u32',
|
||||
@@ -343,7 +313,10 @@ export default {
|
||||
persisted: 'PersistedValidationData',
|
||||
transient: 'TransientValidationData'
|
||||
},
|
||||
ValidatorGroup: 'Vec<ValidatorIndex>',
|
||||
ValidationDataType: {
|
||||
validationData: 'ValidationData',
|
||||
relayChainState: 'Vec<Bytes>'
|
||||
},
|
||||
ValidatorSignature: 'Signature',
|
||||
ValidityAttestation: {
|
||||
_enum: {
|
||||
@@ -357,8 +330,6 @@ export default {
|
||||
V0: 'Xcm'
|
||||
}
|
||||
},
|
||||
WinningData: `[WinningDataEntry; ${SLOT_RANGE_COUNT}]`,
|
||||
WinningDataEntry: 'Option<Bidder>',
|
||||
WithdrawAsset: {
|
||||
assets: 'Vec<MultiAsset>',
|
||||
effects: 'Vec<Order>'
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
HrmpChannel: {
|
||||
maxCapacity: 'u32',
|
||||
maxTotalSize: 'u32',
|
||||
maxMessageSize: 'u32',
|
||||
msgCount: 'u32',
|
||||
totalSize: 'u32',
|
||||
mqcHead: 'Option<Hash>',
|
||||
senderDeposit: 'Balance',
|
||||
recipientDeposit: 'Balance'
|
||||
},
|
||||
HrmpChannelId: {
|
||||
sender: 'u32',
|
||||
receiver: 'u32'
|
||||
},
|
||||
HrmpOpenChannelRequest: {
|
||||
confirmed: 'bool',
|
||||
age: 'SessionIndex',
|
||||
senderDeposit: 'Balance',
|
||||
maxMessageSize: 'u32',
|
||||
maxCapacity: 'u32',
|
||||
maxTotalSize: 'u32'
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,48 @@
|
||||
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
const SLOT_RANGE_COUNT = 10;
|
||||
|
||||
export default {
|
||||
AuctionIndex: 'u32',
|
||||
Bidder: {
|
||||
_enum: {
|
||||
New: 'NewBidder',
|
||||
Existing: 'ParaId'
|
||||
}
|
||||
},
|
||||
IncomingParachain: {
|
||||
_enum: {
|
||||
Unset: 'NewBidder',
|
||||
Fixed: 'IncomingParachainFixed',
|
||||
Deploy: 'IncomingParachainDeploy'
|
||||
}
|
||||
},
|
||||
IncomingParachainDeploy: {
|
||||
code: 'ValidationCode',
|
||||
initialHeadData: 'HeadData'
|
||||
},
|
||||
IncomingParachainFixed: {
|
||||
codeHash: 'Hash',
|
||||
codeSize: 'u32',
|
||||
initialHeadData: 'HeadData'
|
||||
},
|
||||
LeasePeriod: 'BlockNumber',
|
||||
LeasePeriodOf: 'BlockNumber',
|
||||
NewBidder: {
|
||||
who: 'AccountId',
|
||||
sub: 'SubId'
|
||||
},
|
||||
NewBidderOption: 'Option<NewBidder>',
|
||||
SlotRange: {
|
||||
_enum: ['ZeroZero', 'ZeroOne', 'ZeroTwo', 'ZeroThree', 'OneOne', 'OneTwo', 'OneThree', 'TwoTwo', 'TwoThree', 'ThreeThree']
|
||||
},
|
||||
SubId: 'u32',
|
||||
WinningData: `[WinningDataEntry; ${SLOT_RANGE_COUNT}]`,
|
||||
WinningDataEntry: 'Option<Bidder>',
|
||||
WinnersData: 'Vec<WinnersDataTuple>',
|
||||
WinnersDataTuple: '(NewBidderOption, ParaId, BalanceOf, SlotRange)'
|
||||
};
|
||||
@@ -4,9 +4,8 @@
|
||||
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
|
||||
import type { ITuple } from '@polkadot/types/types';
|
||||
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AccountId, Balance, BlockNumber, Hash, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Balance, BalanceOf, BlockNumber, H256, Hash, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { MembershipProof, SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
|
||||
|
||||
/** @name AbridgedCandidateReceipt */
|
||||
export interface AbridgedCandidateReceipt extends Struct {
|
||||
@@ -19,6 +18,29 @@ export interface AbridgedCandidateReceipt extends Struct {
|
||||
readonly commitments: CandidateCommitments;
|
||||
}
|
||||
|
||||
/** @name AbridgedHostConfiguration */
|
||||
export interface AbridgedHostConfiguration 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: BlockNumber;
|
||||
readonly validationUpgradeDelay: BlockNumber;
|
||||
}
|
||||
|
||||
/** @name AbridgedHrmpChannel */
|
||||
export interface AbridgedHrmpChannel extends Struct {
|
||||
readonly maxCapacity: u32;
|
||||
readonly maxTotalSize: u32;
|
||||
readonly maxMessageSize: u32;
|
||||
readonly msgCount: u32;
|
||||
readonly totalSize: u32;
|
||||
readonly mqcHead: Option<Hash>;
|
||||
}
|
||||
|
||||
/** @name AbstractFungible */
|
||||
export interface AbstractFungible extends Struct {
|
||||
readonly id: Bytes;
|
||||
@@ -149,11 +171,11 @@ export interface CandidateCommitments extends Struct {
|
||||
export interface CandidateDescriptor extends Struct {
|
||||
readonly paraId: ParaId;
|
||||
readonly relayParent: Hash;
|
||||
readonly collatorId: Hash;
|
||||
readonly collatorId: CollatorId;
|
||||
readonly persistedValidationDataHash: Hash;
|
||||
readonly povHash: Hash;
|
||||
readonly erasureRoot: Hash;
|
||||
readonly signature: Signature;
|
||||
readonly signature: CollatorSignature;
|
||||
}
|
||||
|
||||
/** @name CandidateHash */
|
||||
@@ -177,7 +199,7 @@ export interface CandidateReceipt extends Struct {
|
||||
}
|
||||
|
||||
/** @name CollatorId */
|
||||
export interface CollatorId extends U8aFixed {}
|
||||
export interface CollatorId extends H256 {}
|
||||
|
||||
/** @name CollatorSignature */
|
||||
export interface CollatorSignature extends Signature {}
|
||||
@@ -264,12 +286,29 @@ export interface HeadData extends Bytes {}
|
||||
|
||||
/** @name HostConfiguration */
|
||||
export interface HostConfiguration extends Struct {
|
||||
readonly validationUpgradeFrequency: BlockNumber;
|
||||
readonly validationUpgradeDelay: BlockNumber;
|
||||
readonly acceptancePeriod: BlockNumber;
|
||||
readonly maxCodeSize: u32;
|
||||
readonly maxHeadDataSize: u32;
|
||||
readonly maxUpwardQueueCount: u32;
|
||||
readonly maxUpwardQueueSize: u32;
|
||||
readonly maxUpwardMessageSize: u32;
|
||||
readonly maxUpwardMessageNumPerCandidate: u32;
|
||||
readonly hrmpMaxMessageNumPerCandidate: u32;
|
||||
readonly validationUpgradeFrequency: BlockNumber;
|
||||
readonly validationUpgradeDelay: BlockNumber;
|
||||
readonly maxPovSize: u32;
|
||||
readonly maxDownwardMessageSize: u32;
|
||||
readonly preferredDispatchableUpwardMessagesStepWeight: Weight;
|
||||
readonly hrmpMaxParachainOutboundChannels: u32;
|
||||
readonly hrmpMaxParathreadOutboundChannels: u32;
|
||||
readonly hrmpOpenRequestTtl: u32;
|
||||
readonly hrmpSenderDeposit: Balance;
|
||||
readonly hrmpRecipientDeposit: Balance;
|
||||
readonly hrmpChannelMaxCapacity: u32;
|
||||
readonly hrmpChannelMaxTotalSize: u32;
|
||||
readonly hrmpMaxParachainInboundChannels: u32;
|
||||
readonly hrmpMaxParathreadInboundChannels: u32;
|
||||
readonly hrmpChannelMaxMessageSize: u32;
|
||||
readonly acceptancePeriod: BlockNumber;
|
||||
readonly parathreadCores: u32;
|
||||
readonly parathreadRetries: u32;
|
||||
readonly groupRotationFrequency: BlockNumber;
|
||||
@@ -283,35 +322,18 @@ export interface HostConfiguration extends Struct {
|
||||
readonly zerothDelayTrancheWidth: u32;
|
||||
readonly neededApprovals: u32;
|
||||
readonly relayVrfModuloSamples: u32;
|
||||
readonly maxUpwardQueueCount: u32;
|
||||
readonly maxUpwardQueueSize: u32;
|
||||
readonly maxDownwardMessageSize: u32;
|
||||
readonly preferredDispatchableUpwardMessagesStepWeight: Weight;
|
||||
readonly maxUpwardMessageSize: u32;
|
||||
readonly maxUpwardMessageNumPerCandidate: u32;
|
||||
readonly hrmpOpenRequestTtl: u32;
|
||||
readonly hrmpSenderDeposit: Balance;
|
||||
readonly hrmpRecipientDeposit: Balance;
|
||||
readonly hrmpChannelMaxCapacity: u32;
|
||||
readonly hrmpChannelMaxTotalSize: u32;
|
||||
readonly hrmpMaxParachainInboundChannels: u32;
|
||||
readonly hrmpMaxParathreadInboundChannels: u32;
|
||||
readonly hrmpChannelMaxMessageSize: u32;
|
||||
readonly hrmpMaxParachainOutboundChannels: u32;
|
||||
readonly hrmpMaxParathreadOutboundChannels: u32;
|
||||
readonly hrmpMaxMessageNumPerCandidate: u32;
|
||||
}
|
||||
|
||||
/** @name HrmpChannel */
|
||||
export interface HrmpChannel extends Struct {
|
||||
readonly senderDeposit: Balance;
|
||||
readonly recipientDeposit: Balance;
|
||||
readonly maxCapacity: u32;
|
||||
readonly maxTotalSize: u32;
|
||||
readonly maxMessageSize: u32;
|
||||
readonly msgCount: u32;
|
||||
readonly totalSize: u32;
|
||||
readonly mqcHead: Option<Hash>;
|
||||
readonly senderDeposit: Balance;
|
||||
readonly recipientDeposit: Balance;
|
||||
}
|
||||
|
||||
/** @name HrmpChannelId */
|
||||
@@ -406,7 +428,7 @@ export interface Junction extends Enum {
|
||||
export interface LeasePeriod extends BlockNumber {}
|
||||
|
||||
/** @name LeasePeriodOf */
|
||||
export interface LeasePeriodOf extends LeasePeriod {}
|
||||
export interface LeasePeriodOf extends BlockNumber {}
|
||||
|
||||
/** @name LocalValidationData */
|
||||
export interface LocalValidationData extends Struct {
|
||||
@@ -473,6 +495,9 @@ export interface NewBidder extends Struct {
|
||||
readonly sub: SubId;
|
||||
}
|
||||
|
||||
/** @name NewBidderOption */
|
||||
export interface NewBidderOption extends Option<NewBidder> {}
|
||||
|
||||
/** @name Order */
|
||||
export interface Order extends Enum {
|
||||
readonly isNull: boolean;
|
||||
@@ -513,8 +538,8 @@ export interface ParachainDispatchOrigin extends Enum {
|
||||
/** @name ParachainProposal */
|
||||
export interface ParachainProposal extends Struct {
|
||||
readonly proposer: AccountId;
|
||||
readonly validationFunction: ValidationCode;
|
||||
readonly initialHeadState: HeadData;
|
||||
readonly validationCode: ValidationCode;
|
||||
readonly genesisHead: HeadData;
|
||||
readonly validators: Vec<ValidatorId>;
|
||||
readonly name: Bytes;
|
||||
readonly balance: Balance;
|
||||
@@ -566,6 +591,7 @@ export interface ParathreadEntry extends Struct {
|
||||
export interface PersistedValidationData extends Struct {
|
||||
readonly parentHead: HeadData;
|
||||
readonly blockNumber: BlockNumber;
|
||||
readonly relayStorageRoot: Hash;
|
||||
readonly hrmpMqcHeads: Vec<ITuple<[u32, Hash]>>;
|
||||
readonly dmqMqcHead: Hash;
|
||||
readonly maxPovSize: u32;
|
||||
@@ -632,7 +658,7 @@ export interface SessionInfo extends Struct {
|
||||
readonly validators: Vec<ValidatorId>;
|
||||
readonly discoveryKeys: Vec<AuthorityDiscoveryId>;
|
||||
readonly assignmentKeys: Vec<AssignmentId>;
|
||||
readonly validatorGroups: Vec<ValidatorGroup>;
|
||||
readonly validatorGroups: Vec<SessionInfoValidatorGroup>;
|
||||
readonly nCores: u32;
|
||||
readonly zerothDelayTrancheWidth: u32;
|
||||
readonly relayVrfModuloSamples: u32;
|
||||
@@ -641,11 +667,14 @@ export interface SessionInfo extends Struct {
|
||||
readonly neededApprovals: u32;
|
||||
}
|
||||
|
||||
/** @name SessionInfoValidatorGroup */
|
||||
export interface SessionInfoValidatorGroup extends Vec<u32> {}
|
||||
|
||||
/** @name SignedAvailabilityBitfield */
|
||||
export interface SignedAvailabilityBitfield extends Struct {
|
||||
readonly payload: BitVec;
|
||||
readonly validatorIndex: u32;
|
||||
readonly signature: Signature;
|
||||
readonly signature: ValidatorSignature;
|
||||
}
|
||||
|
||||
/** @name SignedAvailabilityBitfields */
|
||||
@@ -718,6 +747,12 @@ export interface ValidationData extends Struct {
|
||||
readonly transient: TransientValidationData;
|
||||
}
|
||||
|
||||
/** @name ValidationDataType */
|
||||
export interface ValidationDataType extends Struct {
|
||||
readonly validationData: ValidationData;
|
||||
readonly relayChainState: Vec<Bytes>;
|
||||
}
|
||||
|
||||
/** @name ValidationFunctionParams */
|
||||
export interface ValidationFunctionParams extends Struct {
|
||||
readonly maxCodeSize: u32;
|
||||
@@ -725,9 +760,6 @@ export interface ValidationFunctionParams extends Struct {
|
||||
readonly codeUpgradeAllowed: Option<RelayChainBlockNumber>;
|
||||
}
|
||||
|
||||
/** @name ValidatorGroup */
|
||||
export interface ValidatorGroup extends Vec<ValidatorIndex> {}
|
||||
|
||||
/** @name ValidatorSignature */
|
||||
export interface ValidatorSignature extends Signature {}
|
||||
|
||||
@@ -758,6 +790,12 @@ export interface VersionedXcm extends Enum {
|
||||
readonly asV0: Xcm;
|
||||
}
|
||||
|
||||
/** @name WinnersData */
|
||||
export interface WinnersData extends Vec<WinnersDataTuple> {}
|
||||
|
||||
/** @name WinnersDataTuple */
|
||||
export interface WinnersDataTuple extends ITuple<[NewBidderOption, ParaId, BalanceOf, SlotRange]> {}
|
||||
|
||||
/** @name WinningData */
|
||||
export interface WinningData extends Vec<WinningDataEntry> {}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ export default {
|
||||
LookupTarget: 'AccountId',
|
||||
ModuleId: 'LockIdentifier',
|
||||
MultiAddress: 'GenericMultiAddress',
|
||||
Moment: 'u64',
|
||||
Moment: 'UInt<64, Moment>',
|
||||
OpaqueCall: 'Bytes',
|
||||
Origin: 'DoNotConstruct<Origin>',
|
||||
OriginCaller: {
|
||||
@@ -120,6 +120,7 @@ export default {
|
||||
StorageData: 'Bytes',
|
||||
TransactionPriority: 'u64',
|
||||
ValidatorId: 'AccountId',
|
||||
ValidatorIdOf: 'ValidatorId',
|
||||
Weight: 'u64',
|
||||
WeightMultiplier: 'Fixed64',
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ export interface LookupTarget extends AccountId {}
|
||||
export interface ModuleId extends LockIdentifier {}
|
||||
|
||||
/** @name Moment */
|
||||
export interface Moment extends u64 {}
|
||||
export interface Moment extends UInt {}
|
||||
|
||||
/** @name MultiAddress */
|
||||
export interface MultiAddress extends GenericMultiAddress {}
|
||||
@@ -267,6 +267,9 @@ export interface U32F32 extends UInt {}
|
||||
/** @name ValidatorId */
|
||||
export interface ValidatorId extends AccountId {}
|
||||
|
||||
/** @name ValidatorIdOf */
|
||||
export interface ValidatorIdOf extends ValidatorId {}
|
||||
|
||||
/** @name Weight */
|
||||
export interface Weight extends u64 {}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ export * from './genericAsset/types';
|
||||
export * from './grandpa/types';
|
||||
export * from './identity/types';
|
||||
export * from './imOnline/types';
|
||||
export * from './lottery/types';
|
||||
export * from './offences/types';
|
||||
export * from './proxy/types';
|
||||
export * from './recovery/types';
|
||||
@@ -35,6 +36,7 @@ export * from './utility/types';
|
||||
export * from './vesting/types';
|
||||
export * from './attestations/types';
|
||||
export * from './claims/types';
|
||||
export * from './crowdloan/types';
|
||||
export * from './parachains/types';
|
||||
export * from './poll/types';
|
||||
export * from './purchase/types';
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
// Copyright 2017-2021 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { hexToU8a } from '@polkadot/util';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { BitVec } from './';
|
||||
|
||||
// form Inclusion BitVec<lsb0, u8>
|
||||
const TESTS = ['0x00', '0x0817', '0x0837', '0x087b', '0x0c33'];
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
describe('BitVec', (): void => {
|
||||
TESTS.forEach((test): void => {
|
||||
describe(test, (): void => {
|
||||
const input = hexToU8a(test);
|
||||
|
||||
it('has the right encodedLength', (): void => {
|
||||
expect(
|
||||
new BitVec(registry, input).encodedLength
|
||||
).toEqual((test.length - 2) / 2);
|
||||
});
|
||||
|
||||
// FIXME These do not align at all
|
||||
it.skip('re-encodes to the same input value', (): void => {
|
||||
expect(
|
||||
new BitVec(registry, input).toU8a()
|
||||
).toEqual(input);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -8,7 +8,7 @@ import type { Hash } from '../interfaces/runtime';
|
||||
import type { AnyTuple, ArgsDef, Codec } from './codec';
|
||||
|
||||
export interface ICompact<T> extends Codec {
|
||||
toBigInt (): BigInt;
|
||||
toBigInt (): bigint;
|
||||
toBn (): BN;
|
||||
toNumber (): number;
|
||||
unwrap (): T;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-rxjs",
|
||||
"version": "3.4.1",
|
||||
"version": "3.5.1",
|
||||
"description": "A pass-through interface for RxJs (allowing node + mjs usage)",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -1622,46 +1622,46 @@ __metadata:
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/api": 3.4.1
|
||||
"@polkadot/types": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/x-rxjs": 3.4.1
|
||||
"@polkadot/api": 3.5.1
|
||||
"@polkadot/types": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@polkadot/x-rxjs": 3.5.1
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@3.4.1, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@3.5.1, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/api": 3.4.1
|
||||
"@polkadot/keyring": ^5.2.3
|
||||
"@polkadot/rpc-core": 3.4.1
|
||||
"@polkadot/rpc-provider": 3.4.1
|
||||
"@polkadot/types": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/util-crypto": ^5.2.3
|
||||
"@polkadot/x-rxjs": 3.4.1
|
||||
"@polkadot/api": 3.5.1
|
||||
"@polkadot/keyring": ^5.3.1
|
||||
"@polkadot/rpc-core": 3.5.1
|
||||
"@polkadot/rpc-provider": 3.5.1
|
||||
"@polkadot/types": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@polkadot/util-crypto": ^5.3.1
|
||||
"@polkadot/x-rxjs": 3.5.1
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@3.4.1, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@3.5.1, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/api-derive": 3.4.1
|
||||
"@polkadot/keyring": ^5.2.3
|
||||
"@polkadot/metadata": 3.4.1
|
||||
"@polkadot/rpc-core": 3.4.1
|
||||
"@polkadot/rpc-provider": 3.4.1
|
||||
"@polkadot/types": 3.4.1
|
||||
"@polkadot/types-known": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/util-crypto": ^5.2.3
|
||||
"@polkadot/x-rxjs": 3.4.1
|
||||
"@polkadot/api-derive": 3.5.1
|
||||
"@polkadot/keyring": ^5.3.1
|
||||
"@polkadot/metadata": 3.5.1
|
||||
"@polkadot/rpc-core": 3.5.1
|
||||
"@polkadot/rpc-provider": 3.5.1
|
||||
"@polkadot/types": 3.5.1
|
||||
"@polkadot/types-known": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@polkadot/util-crypto": ^5.3.1
|
||||
"@polkadot/x-rxjs": 3.5.1
|
||||
bn.js: ^4.11.9
|
||||
eventemitter3: ^4.0.7
|
||||
languageName: unknown
|
||||
@@ -1758,69 +1758,69 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/keyring@npm:^5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/keyring@npm:5.2.3"
|
||||
"@polkadot/keyring@npm:^5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/keyring@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/util": 5.2.3
|
||||
"@polkadot/util-crypto": 5.2.3
|
||||
"@polkadot/util": 5.3.1
|
||||
"@polkadot/util-crypto": 5.3.1
|
||||
peerDependencies:
|
||||
"@polkadot/util": 5.2.3
|
||||
"@polkadot/util-crypto": 5.2.3
|
||||
checksum: 1572e93507caaa80a069451cacfdbff981438784e3fe4a96b0a606fffd8930a5e7d34c2686028ea426a7687d60f93abd3da7dbdab175caffe40d522639c789e2
|
||||
"@polkadot/util": 5.3.1
|
||||
"@polkadot/util-crypto": 5.3.1
|
||||
checksum: 8cbef9e4a9359b0602cc45584aafbcdebbea83b640a78e719e3d6ebaf2c1d323dfdef9f9344d9cc6201a1660bbdbff58b1aacf2fafbb51520cbc161ea9fbaff6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/metadata@3.4.1, @polkadot/metadata@workspace:packages/metadata":
|
||||
"@polkadot/metadata@3.5.1, @polkadot/metadata@workspace:packages/metadata":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/metadata@workspace:packages/metadata"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/keyring": ^5.2.3
|
||||
"@polkadot/types": 3.4.1
|
||||
"@polkadot/types-known": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/util-crypto": ^5.2.3
|
||||
"@polkadot/keyring": ^5.3.1
|
||||
"@polkadot/types": 3.5.1
|
||||
"@polkadot/types-known": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@polkadot/util-crypto": ^5.3.1
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/networks@npm:5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/networks@npm:5.2.3"
|
||||
"@polkadot/networks@npm:5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/networks@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
checksum: 106a087b8add2f6cfc5d6974e09b1cb328d541fdae575283b33cd1e0fcb0d194a20c63f825e75932096dec73ec0efca9a5e88130f0507cb165bfca266da815e4
|
||||
checksum: 8d18f7a1776d17b9494c79a131c14bc6c2a8272e43eeb0a71d68700637b151b58e4905bf920e09f0f49c9ebc0bbb59d122e323136f1a38f655b851a5a8ab8fbd
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-core@3.4.1, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@3.5.1, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/keyring": ^5.2.3
|
||||
"@polkadot/metadata": 3.4.1
|
||||
"@polkadot/rpc-provider": 3.4.1
|
||||
"@polkadot/types": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/x-rxjs": 3.4.1
|
||||
"@polkadot/keyring": ^5.3.1
|
||||
"@polkadot/metadata": 3.5.1
|
||||
"@polkadot/rpc-provider": 3.5.1
|
||||
"@polkadot/types": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@polkadot/x-rxjs": 3.5.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@3.4.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@3.5.1, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/keyring": ^5.2.3
|
||||
"@polkadot/metadata": 3.4.1
|
||||
"@polkadot/types": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/util-crypto": ^5.2.3
|
||||
"@polkadot/x-fetch": ^5.2.3
|
||||
"@polkadot/x-ws": ^5.2.3
|
||||
"@polkadot/keyring": ^5.3.1
|
||||
"@polkadot/metadata": 3.5.1
|
||||
"@polkadot/types": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@polkadot/util-crypto": ^5.3.1
|
||||
"@polkadot/x-fetch": ^5.3.1
|
||||
"@polkadot/x-ws": ^5.3.1
|
||||
bn.js: ^4.11.9
|
||||
eventemitter3: ^4.0.7
|
||||
mock-socket: ^9.0.3
|
||||
@@ -1844,11 +1844,11 @@ __metadata:
|
||||
"@babel/core": ^7.12.10
|
||||
"@babel/register": ^7.12.10
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/api": 3.4.1
|
||||
"@polkadot/metadata": 3.4.1
|
||||
"@polkadot/rpc-provider": 3.4.1
|
||||
"@polkadot/types": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/api": 3.5.1
|
||||
"@polkadot/metadata": 3.5.1
|
||||
"@polkadot/rpc-provider": 3.5.1
|
||||
"@polkadot/types": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@types/websocket": ^1.0.1
|
||||
"@types/yargs": ^15.0.12
|
||||
handlebars: ^4.7.6
|
||||
@@ -1863,42 +1863,42 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@3.4.1, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@3.5.1, @polkadot/types-known@workspace:packages/types-known":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/types": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/types": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@3.4.1, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@3.5.1, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/keyring": ^5.2.3
|
||||
"@polkadot/metadata": 3.4.1
|
||||
"@polkadot/util": ^5.2.3
|
||||
"@polkadot/util-crypto": ^5.2.3
|
||||
"@polkadot/x-rxjs": 3.4.1
|
||||
"@polkadot/keyring": ^5.3.1
|
||||
"@polkadot/metadata": 3.5.1
|
||||
"@polkadot/util": ^5.3.1
|
||||
"@polkadot/util-crypto": ^5.3.1
|
||||
"@polkadot/x-rxjs": 3.5.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/util-crypto@npm:5.2.3, @polkadot/util-crypto@npm:^5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/util-crypto@npm:5.2.3"
|
||||
"@polkadot/util-crypto@npm:5.3.1, @polkadot/util-crypto@npm:^5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/util-crypto@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/networks": 5.2.3
|
||||
"@polkadot/util": 5.2.3
|
||||
"@polkadot/networks": 5.3.1
|
||||
"@polkadot/util": 5.3.1
|
||||
"@polkadot/wasm-crypto": ^3.1.1
|
||||
"@polkadot/x-randomvalues": 5.2.3
|
||||
"@polkadot/x-randomvalues": 5.3.1
|
||||
base-x: ^3.0.8
|
||||
blakejs: ^1.1.0
|
||||
bn.js: ^4.11.9
|
||||
@@ -1910,23 +1910,23 @@ __metadata:
|
||||
tweetnacl: ^1.0.3
|
||||
xxhashjs: ^0.2.2
|
||||
peerDependencies:
|
||||
"@polkadot/util": 5.2.3
|
||||
checksum: ff7c83a775e4abc4386a5b211008a3c8ca1f81769f76d5997f5bee51059a256465478f8bfb63c6823437ee3fa5c3453c12b8ff5e230def96f0f4292944162fc8
|
||||
"@polkadot/util": 5.3.1
|
||||
checksum: db67cefaa5cadbad8eaf6b68e56ac29661d1b91a6f0911791a07c363a5d66c343cfdb89fd732ca8b2c24516b2911373ccdc5fb74e451c2f53d3458f575e8546a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/util@npm:5.2.3, @polkadot/util@npm:^5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/util@npm:5.2.3"
|
||||
"@polkadot/util@npm:5.3.1, @polkadot/util@npm:^5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/util@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@polkadot/x-textdecoder": 5.2.3
|
||||
"@polkadot/x-textencoder": 5.2.3
|
||||
"@polkadot/x-textdecoder": 5.3.1
|
||||
"@polkadot/x-textencoder": 5.3.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
camelcase: ^5.3.1
|
||||
ip-regex: ^4.2.0
|
||||
checksum: 4202023ce5309cf662481ac1fb616385c6515397a91331862348cd01974c12c5f521d36f95e94385f72f0ab8e2c35ff532043105ba969dac075e3a79b70d65a3
|
||||
checksum: 4cb048507ac4d49227f7183faf764bb07b8445cf4ac79106664b15287499d4e0aa76530eed0dc234940a86b3355808a6c705d1fd07e0db1c6cc5f19dd4dd3119
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1962,27 +1962,27 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-fetch@npm:^5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/x-fetch@npm:5.2.3"
|
||||
"@polkadot/x-fetch@npm:^5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/x-fetch@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@types/node-fetch": ^2.5.7
|
||||
"@types/node-fetch": ^2.5.8
|
||||
node-fetch: ^2.6.1
|
||||
checksum: 231132a9ee47c340009df89ab36bdd176eb3ba36ca0ee10520eddaee4952d67250038073689c6ed1f0291af330295917b5b00159e37b9ae9995f241097029951
|
||||
checksum: 7a0408e9ae106b1625fb193cad7c8e5e2a1a80d1f103eaa5d1fc3234563d22c2e98cbbe1a6bc17a50793fe8012c2c57a962de3207735bf956fd7594bbbdcd4b3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-randomvalues@npm:5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/x-randomvalues@npm:5.2.3"
|
||||
"@polkadot/x-randomvalues@npm:5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/x-randomvalues@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
checksum: 7fa8da4b2fd9e7700158480b38d5e0b59f4327d173a6871d265d27d8b1527e4acba9f9784c95336cc8f3af82ee7048f6c4247a282f0089447c0ec4d789a816f7
|
||||
checksum: 2a4cf1b746bfd4f84ed473dac53780dd9e15b7dd5528cad300c6eb4ba35793fb7cd8862065e236110b14e90a0ada06f47d7998a935c57509c62edda87610b42e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-rxjs@3.4.1, @polkadot/x-rxjs@workspace:packages/x-rxjs":
|
||||
"@polkadot/x-rxjs@3.5.1, @polkadot/x-rxjs@workspace:packages/x-rxjs":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-rxjs@workspace:packages/x-rxjs"
|
||||
dependencies:
|
||||
@@ -1991,32 +1991,32 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-textdecoder@npm:5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/x-textdecoder@npm:5.2.3"
|
||||
"@polkadot/x-textdecoder@npm:5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/x-textdecoder@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
checksum: e035e78c582edd996c87028ed9a289a128ab88813a6f270f76193b963f6713a1530eb1803a31dd486fed8491ad92a2c8326335b7765ff4b5230b9b6b66898039
|
||||
checksum: e6388d73224007426461923c24506759aaf24d34f86d147707e146902febddbe9e477717a187694381cff8248a0c260075fed16ae0b901d4766b1929e28bdc6e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-textencoder@npm:5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/x-textencoder@npm:5.2.3"
|
||||
"@polkadot/x-textencoder@npm:5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/x-textencoder@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
checksum: 0716ddcf47434459238cdea8b38a1f574d576d36fc0b774635b7b8ca487eace510ecbb74c18a5ad1c47033c3428ce540a3abfbea6740d0c96a123ed7971e4c33
|
||||
checksum: 8131133c82016e7ce7abdd72667c656f3c067e909ece9b8f497d6ffba78a84d86efbabf8833d1fec3acf29dda33ce460d8d7b44b52cc4a85a8330a9609e3a772
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-ws@npm:^5.2.3":
|
||||
version: 5.2.3
|
||||
resolution: "@polkadot/x-ws@npm:5.2.3"
|
||||
"@polkadot/x-ws@npm:^5.3.1":
|
||||
version: 5.3.1
|
||||
resolution: "@polkadot/x-ws@npm:5.3.1"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.12.5
|
||||
"@types/websocket": ^1.0.1
|
||||
websocket: ^1.0.33
|
||||
checksum: 276fee4a0155abb71ec93eccfcb45d810c910be111b06567a407d38891a95588de522ebf448dd3226f7c02b2164ab345e12acd5033c445b66c98dc0812971878
|
||||
checksum: 8a2105dd7fa91eebd987960c96b052f5f008e6d62039120dbd75b7d375674679e551dc66505091c96e9472fd2c392a5fba8d34f440c4b706f4f355e049d3371a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2211,13 +2211,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/node-fetch@npm:^2.5.7":
|
||||
version: 2.5.7
|
||||
resolution: "@types/node-fetch@npm:2.5.7"
|
||||
"@types/node-fetch@npm:^2.5.8":
|
||||
version: 2.5.8
|
||||
resolution: "@types/node-fetch@npm:2.5.8"
|
||||
dependencies:
|
||||
"@types/node": "*"
|
||||
form-data: ^3.0.0
|
||||
checksum: 101f6e8474407f957dfe1750d82aa0bcaa56347d09c8ba8634e6a901d07032533c0a578860691d915ff8fa230355700c41c04ae7e505840b5d6ff8cc3ece7741
|
||||
checksum: 608cdd6aed2c6a44a26406eb63475d4bfb8f63f78f22f747e30dd7cda309b86dc019e4427b9092011541da95d83ef03e2e6558c37d39221c0931617f32d3c4e1
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user