Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5fa64a9e26 | ||
|
|
48d2dbd885 | ||
|
|
254e218a7b | ||
|
|
e44cf73a45 | ||
|
|
61589add1b | ||
|
|
046f51daf6 | ||
|
|
4c3b6a660e | ||
|
|
5145a0c181 | ||
|
|
95fc6c0fd3 | ||
|
|
84621a26cb |
@@ -1,19 +0,0 @@
|
||||
name: 'Close stale issues and PRs'
|
||||
on:
|
||||
schedule:
|
||||
- cron: '55 1/3 * * *'
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
YARN_ENABLE_SCRIPTS: false
|
||||
steps:
|
||||
- uses: actions/stale@v7
|
||||
with:
|
||||
repo-token: ${{ secrets.GH_PAT_BOT }}
|
||||
stale-issue-message: 'This issue has been open for 365 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.'
|
||||
stale-issue-label: 'stale'
|
||||
exempt-issue-labels: '-size-l,-size-m,-size-s,-size-xl,-size-xs,[bug]'
|
||||
days-before-stale: 365
|
||||
days-before-close: 7
|
||||
@@ -1,5 +1,12 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 10.1.3 Mar 15, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Remove incorrect `.module.` specifiers in typegen code
|
||||
|
||||
|
||||
## 10.1.2 Mar 11, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
3396 Jaco 10.1.2 (#5535)
|
||||
3401 Jaco 10.1.3: Remove wrong .module specifier in typegen (#5541)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
|
||||
+8
-5
@@ -1,6 +1,9 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
"packageManager": "yarn@3.2.0",
|
||||
@@ -11,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"versions": {
|
||||
"git": "10.1.2",
|
||||
"npm": "10.1.2"
|
||||
"git": "10.1.3",
|
||||
"npm": "10.1.3"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -37,9 +40,9 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.71.5",
|
||||
"@polkadot/dev": "^0.71.10",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^18.15.0"
|
||||
"@types/node": "^18.15.3"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^4.9.5"
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "API generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/api-augment",
|
||||
"repository": {
|
||||
"directory": "packages/api-augment",
|
||||
@@ -20,14 +18,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.1.2",
|
||||
"@polkadot/rpc-augment": "10.1.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-augment": "10.1.2",
|
||||
"@polkadot/types-codec": "10.1.2",
|
||||
"@polkadot/api-base": "10.1.3",
|
||||
"@polkadot/rpc-augment": "10.1.3",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-augment": "10.1.3",
|
||||
"@polkadot/types-codec": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/api-base",
|
||||
"repository": {
|
||||
"directory": "packages/api-base",
|
||||
@@ -20,11 +18,11 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.1.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/rpc-core": "10.1.3",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/api-contract",
|
||||
"repository": {
|
||||
"directory": "packages/api-contract",
|
||||
@@ -20,20 +18,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.1.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-codec": "10.1.2",
|
||||
"@polkadot/types-create": "10.1.2",
|
||||
"@polkadot/api": "10.1.3",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-codec": "10.1.3",
|
||||
"@polkadot/types-create": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"@polkadot/util-crypto": "^11.0.2",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.1.2",
|
||||
"@polkadot/api-augment": "10.1.3",
|
||||
"@polkadot/keyring": "^11.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { Registry } from '@polkadot/types/types';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/api-derive",
|
||||
"repository": {
|
||||
"directory": "packages/api-derive",
|
||||
@@ -20,25 +18,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.1.2",
|
||||
"@polkadot/api-augment": "10.1.2",
|
||||
"@polkadot/api-base": "10.1.2",
|
||||
"@polkadot/rpc-core": "10.1.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-codec": "10.1.2",
|
||||
"@polkadot/api": "10.1.3",
|
||||
"@polkadot/api-augment": "10.1.3",
|
||||
"@polkadot/api-base": "10.1.3",
|
||||
"@polkadot/rpc-core": "10.1.3",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-codec": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"@polkadot/util-crypto": "^11.0.2",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.1.2",
|
||||
"@polkadot/api-augment": "10.1.2",
|
||||
"@polkadot/rpc-augment": "10.1.2",
|
||||
"@polkadot/rpc-provider": "10.1.2",
|
||||
"@polkadot/types-support": "10.1.2"
|
||||
"@polkadot/api": "10.1.3",
|
||||
"@polkadot/api-augment": "10.1.3",
|
||||
"@polkadot/rpc-augment": "10.1.3",
|
||||
"@polkadot/rpc-provider": "10.1.3",
|
||||
"@polkadot/types-support": "10.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
|
||||
import { hasProposals as collectiveHasProposals, members as collectiveMembers, prime as collectivePrime, proposal as collectiveProposal, proposalCount as collectiveProposalCount, proposalHashes as collectiveProposalHashes, proposals as collectiveProposals } from '../collective/index.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { u32 } from '@polkadot/types';
|
||||
export type { AccountId } from '@polkadot/types/interfaces';
|
||||
|
||||
export const members = /*#__PURE__*/ collectiveMembers('allianceMotion');
|
||||
|
||||
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('allianceMotion');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { SubmittableExtrinsic } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, StorageKey } from '@polkadot/types';
|
||||
|
||||
@@ -5,9 +5,6 @@ import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { createBlockNumberDerive } from './util.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { BlockNumber } from '@polkadot/types/interfaces';
|
||||
|
||||
/**
|
||||
* @name bestNumber
|
||||
* @returns The latest block number.
|
||||
|
||||
@@ -5,9 +5,6 @@ import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { createBlockNumberDerive } from './util.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { BlockNumber } from '@polkadot/types/interfaces';
|
||||
|
||||
/**
|
||||
* @name bestNumberFinalized
|
||||
* @returns A BlockNumber
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { SignedBlockExtended } from '../type/types';
|
||||
import type { SignedBlockExtended } from '../type/types.js';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { AnyNumber } from '@polkadot/types/types';
|
||||
import type { SignedBlockExtended } from '../type/types';
|
||||
import type { SignedBlockExtended } from '../type/types.js';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { switchMap } from 'rxjs';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { HeaderExtended } from '../type/types';
|
||||
import type { HeaderExtended } from '../type/types.js';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { combineLatest, map, switchMap } from 'rxjs';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { SignedBlockExtended } from '../type/types';
|
||||
import type { SignedBlockExtended } from '../type/types.js';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
|
||||
import { switchMap } from 'rxjs';
|
||||
|
||||
@@ -12,7 +12,9 @@ import { combineLatest, map, of } from 'rxjs';
|
||||
|
||||
import { memo, unwrapBlockNumber } from '../util/index.js';
|
||||
|
||||
export function createBlockNumberDerive <T extends { number: Compact<BlockNumber> | BlockNumber }> (fn: (api: DeriveApi) => Observable<T>): (instanceId: string, api: DeriveApi) => () => Observable<BlockNumber> {
|
||||
export type BlockNumberDerive = (instanceId: string, api: DeriveApi) => () => Observable<BlockNumber>;
|
||||
|
||||
export function createBlockNumberDerive <T extends { number: Compact<BlockNumber> | BlockNumber }> (fn: (api: DeriveApi) => Observable<T>): BlockNumberDerive {
|
||||
return (instanceId: string, api: DeriveApi) =>
|
||||
memo(instanceId, () =>
|
||||
fn(api).pipe(
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AccountId } from '@polkadot/types/interfaces';
|
||||
import type { MembersFn } from './types.js';
|
||||
|
||||
import { callMethod } from './helpers.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { AccountId } from '@polkadot/types/interfaces';
|
||||
|
||||
export const members = /*#__PURE__*/ callMethod<AccountId[]>('members', []);
|
||||
export const members: MembersFn = /*#__PURE__*/ callMethod('members', []);
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { AccountId } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi } from '../types.js';
|
||||
import type { Collective } from './types.js';
|
||||
import type { Collective, PrimeFnRet } from './types.js';
|
||||
|
||||
import { map, of } from 'rxjs';
|
||||
|
||||
@@ -12,10 +11,7 @@ import { isFunction } from '@polkadot/util';
|
||||
|
||||
import { withSection } from './helpers.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { AccountId } from '@polkadot/types/interfaces';
|
||||
|
||||
export function prime (section: Collective): (instanceId: string, api: DeriveApi) => () => Observable<AccountId | null> {
|
||||
export function prime (section: Collective): PrimeFnRet {
|
||||
return withSection(section, (query) =>
|
||||
(): Observable<AccountId | null> =>
|
||||
isFunction(query?.prime)
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { Option, u32 } from '@polkadot/types';
|
||||
import type { Option } from '@polkadot/types';
|
||||
import type { Hash, Proposal, Votes } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi, DeriveCollectiveProposal } from '../types.js';
|
||||
import type { Collective } from './types.js';
|
||||
import type { Collective, HasProposalsFnRet, ProposalCountFn, ProposalFnRet, ProposalHashesFn, ProposalsFnRet } from './types.js';
|
||||
|
||||
import { catchError, combineLatest, map, of, switchMap } from 'rxjs';
|
||||
|
||||
@@ -14,10 +14,6 @@ import { isFunction } from '@polkadot/util';
|
||||
import { firstObservable } from '../util/index.js';
|
||||
import { callMethod, withSection } from './helpers.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { Option, u32 } from '@polkadot/types';
|
||||
export type { Hash, Proposal, Votes } from '@polkadot/types/interfaces';
|
||||
|
||||
type Result = [(Hash | Uint8Array | string)[], (Option<Proposal> | null)[], Option<Votes>[]];
|
||||
|
||||
function parse (api: DeriveApi, [hashes, proposals, votes]: Result): DeriveCollectiveProposal[] {
|
||||
@@ -48,14 +44,14 @@ function _proposalsFrom (api: DeriveApi, query: DeriveApi['query']['council'], h
|
||||
);
|
||||
}
|
||||
|
||||
export function hasProposals (section: Collective): (instanceId: string, api: DeriveApi) => () => Observable<boolean> {
|
||||
export function hasProposals (section: Collective): HasProposalsFnRet {
|
||||
return withSection(section, (query) =>
|
||||
(): Observable<boolean> =>
|
||||
of(isFunction(query?.proposals))
|
||||
);
|
||||
}
|
||||
|
||||
export function proposals (section: Collective): (instanceId: string, api: DeriveApi) => () => Observable<DeriveCollectiveProposal[]> {
|
||||
export function proposals (section: Collective): ProposalsFnRet {
|
||||
return withSection(section, (query, api) =>
|
||||
(): Observable<DeriveCollectiveProposal[]> =>
|
||||
api.derive[section as 'council'].proposalHashes().pipe(
|
||||
@@ -64,7 +60,7 @@ export function proposals (section: Collective): (instanceId: string, api: Deriv
|
||||
);
|
||||
}
|
||||
|
||||
export function proposal (section: Collective): (instanceId: string, api: DeriveApi) => (hash: Hash | Uint8Array | string) => Observable<DeriveCollectiveProposal | null> {
|
||||
export function proposal (section: Collective): ProposalFnRet {
|
||||
return withSection(section, (query, api) =>
|
||||
(hash: Hash | Uint8Array | string): Observable<DeriveCollectiveProposal | null> =>
|
||||
isFunction(query?.proposals)
|
||||
@@ -73,5 +69,5 @@ export function proposal (section: Collective): (instanceId: string, api: Derive
|
||||
);
|
||||
}
|
||||
|
||||
export const proposalCount = /*#__PURE__*/ callMethod<u32 | null>('proposalCount', null);
|
||||
export const proposalHashes = /*#__PURE__*/ callMethod<Hash[]>('proposals', []);
|
||||
export const proposalCount: ProposalCountFn = /*#__PURE__*/ callMethod('proposalCount', null);
|
||||
export const proposalHashes: ProposalHashesFn = /*#__PURE__*/ callMethod('proposals', []);
|
||||
|
||||
@@ -1,4 +1,30 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { u32 } from '@polkadot/types';
|
||||
import type { AccountId, Hash } from '@polkadot/types/interfaces';
|
||||
import type { DeriveApi, DeriveCollectiveProposal } from '../types.js';
|
||||
|
||||
export type Collective = 'allianceMotion' | 'council' | 'membership' | 'technicalCommittee';
|
||||
|
||||
export type HasProposalsFnRet = (instanceId: string, api: DeriveApi) => () => Observable<boolean>;
|
||||
export type HasProposalsFn = (section: Collective) => HasProposalsFnRet;
|
||||
|
||||
export type MembersFnRet = (instanceId: string, api: DeriveApi) => () => Observable<AccountId[]>;
|
||||
export type MembersFn = (section: Collective) => MembersFnRet;
|
||||
|
||||
export type PrimeFnRet = (instanceId: string, api: DeriveApi) => () => Observable<AccountId | null>;
|
||||
export type PrimeFn = (section: Collective) => PrimeFnRet;
|
||||
|
||||
export type ProposalFnRet = (instanceId: string, api: DeriveApi) => (hash: Hash | Uint8Array | string) => Observable<DeriveCollectiveProposal | null>;
|
||||
export type ProposalFn = (section: Collective) => ProposalFnRet;
|
||||
|
||||
export type ProposalsFnRet = (instanceId: string, api: DeriveApi) => () => Observable<DeriveCollectiveProposal[]>;
|
||||
export type ProposalsFn = (section: Collective) => ProposalsFnRet;
|
||||
|
||||
export type ProposalCountFnRet = (instanceId: string, api: DeriveApi) => () => Observable<u32 | null>;
|
||||
export type ProposalCountFn = (section: Collective) => ProposalCountFnRet;
|
||||
|
||||
export type ProposalHashesFnRet = (instanceId: string, api: DeriveApi) => () => Observable<Hash[]>;
|
||||
export type ProposalHashesFn = (section: Collective) => ProposalHashesFnRet;
|
||||
|
||||
@@ -6,10 +6,6 @@ import { hasProposals as collectiveHasProposals, members as collectiveMembers, p
|
||||
export * from './votes.js';
|
||||
export * from './votesOf.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { u32 } from '@polkadot/types';
|
||||
export type { AccountId } from '@polkadot/types/interfaces';
|
||||
|
||||
export const members = /*#__PURE__*/ collectiveMembers('council');
|
||||
|
||||
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('council');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
|
||||
import { hasProposals as collectiveHasProposals, members as collectiveMembers, prime as collectivePrime, proposal as collectiveProposal, proposalCount as collectiveProposalCount, proposalHashes as collectiveProposalHashes, proposals as collectiveProposals } from '../collective/index.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { u32 } from '@polkadot/types';
|
||||
export type { AccountId } from '@polkadot/types/interfaces';
|
||||
|
||||
export const members = /*#__PURE__*/ collectiveMembers('membership');
|
||||
|
||||
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('membership');
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
|
||||
import { hasProposals as collectiveHasProposals, members as collectiveMembers, prime as collectivePrime, proposal as collectiveProposal, proposalCount as collectiveProposalCount, proposalHashes as collectiveProposalHashes, proposals as collectiveProposals } from '../collective/index.js';
|
||||
|
||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
||||
export type { u32 } from '@polkadot/types';
|
||||
export type { AccountId } from '@polkadot/types/interfaces';
|
||||
|
||||
export const members = /*#__PURE__*/ collectiveMembers('technicalCommittee');
|
||||
|
||||
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('technicalCommittee');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { ApprovalFlag } from '@polkadot/types/interfaces';
|
||||
|
||||
|
||||
+15
-17
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/api",
|
||||
"repository": {
|
||||
"directory": "packages/api",
|
||||
@@ -20,21 +18,21 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "10.1.2",
|
||||
"@polkadot/api-base": "10.1.2",
|
||||
"@polkadot/api-derive": "10.1.2",
|
||||
"@polkadot/api-augment": "10.1.3",
|
||||
"@polkadot/api-base": "10.1.3",
|
||||
"@polkadot/api-derive": "10.1.3",
|
||||
"@polkadot/keyring": "^11.0.2",
|
||||
"@polkadot/rpc-augment": "10.1.2",
|
||||
"@polkadot/rpc-core": "10.1.2",
|
||||
"@polkadot/rpc-provider": "10.1.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-augment": "10.1.2",
|
||||
"@polkadot/types-codec": "10.1.2",
|
||||
"@polkadot/types-create": "10.1.2",
|
||||
"@polkadot/types-known": "10.1.2",
|
||||
"@polkadot/rpc-augment": "10.1.3",
|
||||
"@polkadot/rpc-core": "10.1.3",
|
||||
"@polkadot/rpc-provider": "10.1.3",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-augment": "10.1.3",
|
||||
"@polkadot/types-codec": "10.1.3",
|
||||
"@polkadot/types-create": "10.1.3",
|
||||
"@polkadot/types-known": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"@polkadot/util-crypto": "^11.0.2",
|
||||
"eventemitter3": "^5.0.0",
|
||||
@@ -42,7 +40,7 @@
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.1.2",
|
||||
"@polkadot/types-support": "10.1.2"
|
||||
"@polkadot/api-augment": "10.1.3",
|
||||
"@polkadot/types-support": "10.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { UnsubscribePromise } from '../types/index.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { SubmittableExtrinsic } from '../types/index.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { augmentObject } from './augmentObject.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { decorateStorage, Metadata, TypeRegistry } from '@polkadot/types';
|
||||
import metaStatic from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "RPC generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/rpc-augment",
|
||||
"repository": {
|
||||
"directory": "packages/rpc-augment",
|
||||
@@ -20,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.1.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-codec": "10.1.2",
|
||||
"@polkadot/rpc-core": "10.1.3",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-codec": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/rpc-core",
|
||||
"repository": {
|
||||
"directory": "packages/rpc-core",
|
||||
@@ -20,18 +18,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "10.1.2",
|
||||
"@polkadot/rpc-provider": "10.1.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/rpc-augment": "10.1.3",
|
||||
"@polkadot/rpc-provider": "10.1.3",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"rxjs": "^7.8.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^11.0.2",
|
||||
"@polkadot/rpc-augment": "10.1.2"
|
||||
"@polkadot/rpc-augment": "10.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { RpcInterface } from './types/index.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { ProviderInterface } from '@polkadot/rpc-provider/types';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { ProviderInterface } from '@polkadot/rpc-provider/types';
|
||||
import type { DefinitionRpc } from '@polkadot/types/types';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { RpcInterface } from './types/index.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { of, timer } from 'rxjs';
|
||||
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "Transport providers for the API",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"repository": {
|
||||
"directory": "packages/rpc-provider",
|
||||
@@ -20,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^11.0.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-support": "10.1.2",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-support": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"@polkadot/util-crypto": "^11.0.2",
|
||||
"@polkadot/x-fetch": "^11.0.2",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { JsonRpcResponse } from '../types.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { RpcCoder } from './index.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { RpcCoder } from './index.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { isError } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TEST_HTTP_URL } from '../mock/mockHttp.js';
|
||||
import { HttpProvider } from './index.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { Mock } from '../mock/types.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { LRUCache } from './lru.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { ProviderInterfaceEmitted } from '../types.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
/* eslint-disable promise/param-names */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { Mock } from '../mock/types.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { Request } from '../mock/mockWs.js';
|
||||
import type { Mock } from '../mock/types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { Request } from '../mock/mockWs.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { WsProvider } from './index.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { Request } from '../mock/mockWs.js';
|
||||
import type { Global, Mock } from './../mock/types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { Request } from '../mock/mockWs.js';
|
||||
import type { Global, Mock } from './../mock/types.js';
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "Type generation scripts",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/typegen",
|
||||
"repository": {
|
||||
"directory": "packages/typegen",
|
||||
@@ -20,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -30,15 +28,15 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.1.2",
|
||||
"@polkadot/api-augment": "10.1.2",
|
||||
"@polkadot/rpc-augment": "10.1.2",
|
||||
"@polkadot/rpc-provider": "10.1.2",
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-augment": "10.1.2",
|
||||
"@polkadot/types-codec": "10.1.2",
|
||||
"@polkadot/types-create": "10.1.2",
|
||||
"@polkadot/types-support": "10.1.2",
|
||||
"@polkadot/api": "10.1.3",
|
||||
"@polkadot/api-augment": "10.1.3",
|
||||
"@polkadot/rpc-augment": "10.1.3",
|
||||
"@polkadot/rpc-provider": "10.1.3",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-augment": "10.1.3",
|
||||
"@polkadot/types-codec": "10.1.3",
|
||||
"@polkadot/types-create": "10.1.3",
|
||||
"@polkadot/types-support": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"@polkadot/util-crypto": "^11.0.2",
|
||||
"@polkadot/x-ws": "^11.0.2",
|
||||
|
||||
@@ -23,12 +23,12 @@ async function generate (metaHex: HexString, pkg: string | undefined, output: st
|
||||
|
||||
if (pkg) {
|
||||
try {
|
||||
const defPath = assertFile(path.join(outputPath, 'definitions.ts'));
|
||||
const defCont = await import(defPath) as { module: any };
|
||||
const defCont = await import(
|
||||
assertFile(path.join(outputPath, 'definitions.ts'))
|
||||
) as Record<string, any>;
|
||||
|
||||
extraTypes = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
[pkg]: defCont.module
|
||||
[pkg]: defCont
|
||||
};
|
||||
} catch (error) {
|
||||
console.error('ERROR: No custom definitions found:', (error as Error).message);
|
||||
@@ -36,12 +36,13 @@ async function generate (metaHex: HexString, pkg: string | undefined, output: st
|
||||
}
|
||||
|
||||
try {
|
||||
const lookPath = assertFile(path.join(outputPath, 'lookup.ts'));
|
||||
const lookCont = await import(lookPath) as { module: { default: DefinitionsTypes } };
|
||||
const lookCont = await import(
|
||||
assertFile(path.join(outputPath, 'lookup.ts'))
|
||||
) as { default: DefinitionsTypes };
|
||||
|
||||
customLookupDefinitions = {
|
||||
rpc: {},
|
||||
types: lookCont.module.default
|
||||
types: lookCont.default
|
||||
};
|
||||
} catch (error) {
|
||||
console.error('ERROR: No lookup definitions found:', (error as Error).message);
|
||||
@@ -113,5 +114,10 @@ async function mainPromise (): Promise<void> {
|
||||
}
|
||||
|
||||
export function main (): void {
|
||||
mainPromise().catch(() => process.exit(1));
|
||||
mainPromise().catch((error) => {
|
||||
console.error();
|
||||
console.error(error);
|
||||
console.error();
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -40,9 +40,11 @@ async function mainPromise (): Promise<void> {
|
||||
let userDefs: Record<string, any> = {};
|
||||
|
||||
try {
|
||||
userDefs = await import(
|
||||
const defCont = await import(
|
||||
assertFile(path.join(inputPath, 'definitions.ts'))
|
||||
) as Record<string, any>;
|
||||
|
||||
userDefs = defCont;
|
||||
} catch (error) {
|
||||
console.error('ERROR: Unable to load user definitions:', (error as Error).message);
|
||||
}
|
||||
@@ -95,5 +97,10 @@ async function mainPromise (): Promise<void> {
|
||||
}
|
||||
|
||||
export function main (): void {
|
||||
mainPromise().catch(() => process.exit(1));
|
||||
mainPromise().catch((error) => {
|
||||
console.error();
|
||||
console.error(error);
|
||||
console.error();
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -161,19 +161,16 @@ function addRpc (_runtimeDesc: string, rpcMethods?: string[]): string {
|
||||
return name + (isOptional ? '?' : '') + ': `' + type + '`';
|
||||
}).join(', ');
|
||||
const type = '`' + method.type + '`';
|
||||
const item: SectionItem = {
|
||||
|
||||
container.items.push({
|
||||
interface: '`' + `api.rpc.${sectionName}.${methodName}` + '`',
|
||||
jsonrpc: '`' + jsonrpc + '`',
|
||||
// link: jsonrpc,
|
||||
name: `${methodName}(${args}): ${type}`,
|
||||
...(method.description && { summary: method.description })
|
||||
};
|
||||
|
||||
if (method.deprecated) {
|
||||
item.deprecated = method.deprecated;
|
||||
}
|
||||
|
||||
container.items.push(item);
|
||||
...((method.description && { summary: method.description }) || {}),
|
||||
...((method.deprecated && { deprecated: method.deprecated }) || {}),
|
||||
...((method.isUnsafe && { unsafe: 'This method is only active with appropriate flags' }) || {})
|
||||
});
|
||||
});
|
||||
|
||||
return all;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/typegen authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types/create';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/typegen authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "Types generated augmentation",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-augment#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/types-augment",
|
||||
"repository": {
|
||||
"directory": "packages/types-augment",
|
||||
@@ -20,11 +18,11 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-codec": "10.1.2",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-codec": "10.1.3",
|
||||
"@polkadot/util": "^11.0.2",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.1.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.1.3' };
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"contributors": [],
|
||||
"description": "Implementation of the SCALE codec",
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=14"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-codec#readme",
|
||||
"license": "Apache-2.0",
|
||||
"maintainers": [],
|
||||
"name": "@polkadot/types-codec",
|
||||
"repository": {
|
||||
"directory": "packages/types-codec",
|
||||
@@ -20,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.1.2",
|
||||
"version": "10.1.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^11.0.2",
|
||||
@@ -28,9 +26,9 @@
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.1.2",
|
||||
"@polkadot/types-augment": "10.1.2",
|
||||
"@polkadot/types-support": "10.1.2",
|
||||
"@polkadot/types": "10.1.3",
|
||||
"@polkadot/types-augment": "10.1.3",
|
||||
"@polkadot/types-support": "10.1.3",
|
||||
"@polkadot/util-crypto": "^11.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { CodecDate, Compact, U32 } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { DoNotConstruct } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Int } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Null } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { bool, Bytes, Null, Option, Text, U32 } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Result, Text, u32 } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { BlockNumber, VoteThreshold } from '@polkadot/types/interfaces';
|
||||
import type { AnyTupleValue, CodecTo } from '@polkadot/types-codec/types';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { UInt } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { PropIndex } from '@polkadot/types/interfaces/democracy';
|
||||
import type { Codec, CodecTo, ITuple } from '@polkadot/types-codec/types';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Text, u16, VecFixed } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { CodecClass, ITuple } from '@polkadot/types-codec/types';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { CodecClass, CodecTo } from '@polkadot/types-codec/types';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { hexToU8a } from '@polkadot/util';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Bytes } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { HashMap, Struct, Text, U32 } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Linkage } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import type { CodecTo } from '@polkadot/types-codec/types';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { OptionBool } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Range, U32 } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { Text, Type } from '@polkadot/types-codec';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
/// <reference types="@polkadot/dev/node/test/node.d.ts" />
|
||||
|
||||
import { TypeRegistry } from '@polkadot/types';
|
||||
import { U8aFixed } from '@polkadot/types-codec';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user