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
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 10.1.3 Mar 15, 2023
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Remove incorrect `.module.` specifiers in typegen code
|
||||||
|
|
||||||
|
|
||||||
## 10.1.2 Mar 11, 2023
|
## 10.1.2 Mar 11, 2023
|
||||||
|
|
||||||
Changes:
|
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)
|
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||||
37 Keith Ingram Update contract types and rpc (#4541)
|
37 Keith Ingram Update contract types and rpc (#4541)
|
||||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||||
|
|||||||
+8
-5
@@ -1,6 +1,9 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14"
|
||||||
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api#readme",
|
"homepage": "https://github.com/polkadot-js/api#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"packageManager": "yarn@3.2.0",
|
"packageManager": "yarn@3.2.0",
|
||||||
@@ -11,10 +14,10 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "10.1.2",
|
"git": "10.1.3",
|
||||||
"npm": "10.1.2"
|
"npm": "10.1.3"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
@@ -37,9 +40,9 @@
|
|||||||
"test:one": "polkadot-dev-run-test --env node"
|
"test:one": "polkadot-dev-run-test --env node"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/dev": "^0.71.5",
|
"@polkadot/dev": "^0.71.10",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/node": "^18.15.0"
|
"@types/node": "^18.15.3"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "API generated augmentation",
|
"description": "API generated augmentation",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-augment#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api-augment",
|
"name": "@polkadot/api-augment",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api-augment",
|
"directory": "packages/api-augment",
|
||||||
@@ -20,14 +18,14 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api-base": "10.1.2",
|
"@polkadot/api-base": "10.1.3",
|
||||||
"@polkadot/rpc-augment": "10.1.2",
|
"@polkadot/rpc-augment": "10.1.3",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-augment": "10.1.2",
|
"@polkadot/types-augment": "10.1.3",
|
||||||
"@polkadot/types-codec": "10.1.2",
|
"@polkadot/types-codec": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '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>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-base#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api-base",
|
"name": "@polkadot/api-base",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api-base",
|
"directory": "packages/api-base",
|
||||||
@@ -20,11 +18,11 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/rpc-core": "10.1.2",
|
"@polkadot/rpc-core": "10.1.3",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"rxjs": "^7.8.0",
|
"rxjs": "^7.8.0",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '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>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api-contract",
|
"name": "@polkadot/api-contract",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api-contract",
|
"directory": "packages/api-contract",
|
||||||
@@ -20,20 +18,20 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api": "10.1.2",
|
"@polkadot/api": "10.1.3",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-codec": "10.1.2",
|
"@polkadot/types-codec": "10.1.3",
|
||||||
"@polkadot/types-create": "10.1.2",
|
"@polkadot/types-create": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util-crypto": "^11.0.2",
|
"@polkadot/util-crypto": "^11.0.2",
|
||||||
"rxjs": "^7.8.0",
|
"rxjs": "^7.8.0",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "10.1.2",
|
"@polkadot/api-augment": "10.1.3",
|
||||||
"@polkadot/keyring": "^11.0.2"
|
"@polkadot/keyring": "^11.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { Registry } from '@polkadot/types/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 fs from 'node:fs';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '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>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api-derive",
|
"name": "@polkadot/api-derive",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api-derive",
|
"directory": "packages/api-derive",
|
||||||
@@ -20,25 +18,25 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api": "10.1.2",
|
"@polkadot/api": "10.1.3",
|
||||||
"@polkadot/api-augment": "10.1.2",
|
"@polkadot/api-augment": "10.1.3",
|
||||||
"@polkadot/api-base": "10.1.2",
|
"@polkadot/api-base": "10.1.3",
|
||||||
"@polkadot/rpc-core": "10.1.2",
|
"@polkadot/rpc-core": "10.1.3",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-codec": "10.1.2",
|
"@polkadot/types-codec": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util-crypto": "^11.0.2",
|
"@polkadot/util-crypto": "^11.0.2",
|
||||||
"rxjs": "^7.8.0",
|
"rxjs": "^7.8.0",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api": "10.1.2",
|
"@polkadot/api": "10.1.3",
|
||||||
"@polkadot/api-augment": "10.1.2",
|
"@polkadot/api-augment": "10.1.3",
|
||||||
"@polkadot/rpc-augment": "10.1.2",
|
"@polkadot/rpc-augment": "10.1.3",
|
||||||
"@polkadot/rpc-provider": "10.1.2",
|
"@polkadot/rpc-provider": "10.1.3",
|
||||||
"@polkadot/types-support": "10.1.2"
|
"@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';
|
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 members = /*#__PURE__*/ collectiveMembers('allianceMotion');
|
||||||
|
|
||||||
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('allianceMotion');
|
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('allianceMotion');
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { SubmittableExtrinsic } from '@polkadot/api-base/types';
|
||||||
import type { Bytes, Option, StorageKey } from '@polkadot/types';
|
import type { Bytes, Option, StorageKey } from '@polkadot/types';
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ import type { DeriveApi } from '../types.js';
|
|||||||
|
|
||||||
import { createBlockNumberDerive } from './util.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
|
* @name bestNumber
|
||||||
* @returns The latest block number.
|
* @returns The latest block number.
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ import type { DeriveApi } from '../types.js';
|
|||||||
|
|
||||||
import { createBlockNumberDerive } from './util.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
|
* @name bestNumberFinalized
|
||||||
* @returns A BlockNumber
|
* @returns A BlockNumber
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { SignedBlockExtended } from '../type/types';
|
import type { SignedBlockExtended } from '../type/types.js';
|
||||||
import type { DeriveApi } from '../types.js';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, of, switchMap } from 'rxjs';
|
import { combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AnyNumber } from '@polkadot/types/types';
|
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 type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { switchMap } from 'rxjs';
|
import { switchMap } from 'rxjs';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { HeaderExtended } from '../type/types';
|
import type { HeaderExtended } from '../type/types.js';
|
||||||
import type { DeriveApi } from '../types.js';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { combineLatest, map, switchMap } from 'rxjs';
|
import { combineLatest, map, switchMap } from 'rxjs';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { SignedBlockExtended } from '../type/types';
|
import type { SignedBlockExtended } from '../type/types.js';
|
||||||
import type { DeriveApi } from '../types.js';
|
import type { DeriveApi } from '../types.js';
|
||||||
|
|
||||||
import { switchMap } from 'rxjs';
|
import { switchMap } from 'rxjs';
|
||||||
|
|||||||
@@ -12,7 +12,9 @@ import { combineLatest, map, of } from 'rxjs';
|
|||||||
|
|
||||||
import { memo, unwrapBlockNumber } from '../util/index.js';
|
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) =>
|
return (instanceId: string, api: DeriveApi) =>
|
||||||
memo(instanceId, () =>
|
memo(instanceId, () =>
|
||||||
fn(api).pipe(
|
fn(api).pipe(
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { AccountId } from '@polkadot/types/interfaces';
|
import type { MembersFn } from './types.js';
|
||||||
|
|
||||||
import { callMethod } from './helpers.js';
|
import { callMethod } from './helpers.js';
|
||||||
|
|
||||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
export const members: MembersFn = /*#__PURE__*/ callMethod('members', []);
|
||||||
export type { AccountId } from '@polkadot/types/interfaces';
|
|
||||||
|
|
||||||
export const members = /*#__PURE__*/ callMethod<AccountId[]>('members', []);
|
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { AccountId } from '@polkadot/types/interfaces';
|
import type { AccountId } from '@polkadot/types/interfaces';
|
||||||
import type { DeriveApi } from '../types.js';
|
import type { Collective, PrimeFnRet } from './types.js';
|
||||||
import type { Collective } from './types.js';
|
|
||||||
|
|
||||||
import { map, of } from 'rxjs';
|
import { map, of } from 'rxjs';
|
||||||
|
|
||||||
@@ -12,10 +11,7 @@ import { isFunction } from '@polkadot/util';
|
|||||||
|
|
||||||
import { withSection } from './helpers.js';
|
import { withSection } from './helpers.js';
|
||||||
|
|
||||||
// We are re-exporting these from here to ensure that *.d.ts generation is correct
|
export function prime (section: Collective): PrimeFnRet {
|
||||||
export type { AccountId } from '@polkadot/types/interfaces';
|
|
||||||
|
|
||||||
export function prime (section: Collective): (instanceId: string, api: DeriveApi) => () => Observable<AccountId | null> {
|
|
||||||
return withSection(section, (query) =>
|
return withSection(section, (query) =>
|
||||||
(): Observable<AccountId | null> =>
|
(): Observable<AccountId | null> =>
|
||||||
isFunction(query?.prime)
|
isFunction(query?.prime)
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Observable } from 'rxjs';
|
import type { Observable } from 'rxjs';
|
||||||
import type { Option, u32 } from '@polkadot/types';
|
import type { Option } from '@polkadot/types';
|
||||||
import type { Hash, Proposal, Votes } from '@polkadot/types/interfaces';
|
import type { Hash, Proposal, Votes } from '@polkadot/types/interfaces';
|
||||||
import type { DeriveApi, DeriveCollectiveProposal } from '../types.js';
|
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';
|
import { catchError, combineLatest, map, of, switchMap } from 'rxjs';
|
||||||
|
|
||||||
@@ -14,10 +14,6 @@ import { isFunction } from '@polkadot/util';
|
|||||||
import { firstObservable } from '../util/index.js';
|
import { firstObservable } from '../util/index.js';
|
||||||
import { callMethod, withSection } from './helpers.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>[]];
|
type Result = [(Hash | Uint8Array | string)[], (Option<Proposal> | null)[], Option<Votes>[]];
|
||||||
|
|
||||||
function parse (api: DeriveApi, [hashes, proposals, votes]: Result): DeriveCollectiveProposal[] {
|
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) =>
|
return withSection(section, (query) =>
|
||||||
(): Observable<boolean> =>
|
(): Observable<boolean> =>
|
||||||
of(isFunction(query?.proposals))
|
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) =>
|
return withSection(section, (query, api) =>
|
||||||
(): Observable<DeriveCollectiveProposal[]> =>
|
(): Observable<DeriveCollectiveProposal[]> =>
|
||||||
api.derive[section as 'council'].proposalHashes().pipe(
|
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) =>
|
return withSection(section, (query, api) =>
|
||||||
(hash: Hash | Uint8Array | string): Observable<DeriveCollectiveProposal | null> =>
|
(hash: Hash | Uint8Array | string): Observable<DeriveCollectiveProposal | null> =>
|
||||||
isFunction(query?.proposals)
|
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 proposalCount: ProposalCountFn = /*#__PURE__*/ callMethod('proposalCount', null);
|
||||||
export const proposalHashes = /*#__PURE__*/ callMethod<Hash[]>('proposals', []);
|
export const proposalHashes: ProposalHashesFn = /*#__PURE__*/ callMethod('proposals', []);
|
||||||
|
|||||||
@@ -1,4 +1,30 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 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 './votes.js';
|
||||||
export * from './votesOf.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 members = /*#__PURE__*/ collectiveMembers('council');
|
||||||
|
|
||||||
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('council');
|
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('council');
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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-return */
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
/* 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';
|
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 members = /*#__PURE__*/ collectiveMembers('membership');
|
||||||
|
|
||||||
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('membership');
|
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('membership');
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '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';
|
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 members = /*#__PURE__*/ collectiveMembers('technicalCommittee');
|
||||||
|
|
||||||
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('technicalCommittee');
|
export const hasProposals = /*#__PURE__*/ collectiveHasProposals('technicalCommittee');
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { ApprovalFlag } from '@polkadot/types/interfaces';
|
||||||
|
|
||||||
|
|||||||
+15
-17
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/api",
|
"name": "@polkadot/api",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/api",
|
"directory": "packages/api",
|
||||||
@@ -20,21 +18,21 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api-augment": "10.1.2",
|
"@polkadot/api-augment": "10.1.3",
|
||||||
"@polkadot/api-base": "10.1.2",
|
"@polkadot/api-base": "10.1.3",
|
||||||
"@polkadot/api-derive": "10.1.2",
|
"@polkadot/api-derive": "10.1.3",
|
||||||
"@polkadot/keyring": "^11.0.2",
|
"@polkadot/keyring": "^11.0.2",
|
||||||
"@polkadot/rpc-augment": "10.1.2",
|
"@polkadot/rpc-augment": "10.1.3",
|
||||||
"@polkadot/rpc-core": "10.1.2",
|
"@polkadot/rpc-core": "10.1.3",
|
||||||
"@polkadot/rpc-provider": "10.1.2",
|
"@polkadot/rpc-provider": "10.1.3",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-augment": "10.1.2",
|
"@polkadot/types-augment": "10.1.3",
|
||||||
"@polkadot/types-codec": "10.1.2",
|
"@polkadot/types-codec": "10.1.3",
|
||||||
"@polkadot/types-create": "10.1.2",
|
"@polkadot/types-create": "10.1.3",
|
||||||
"@polkadot/types-known": "10.1.2",
|
"@polkadot/types-known": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util-crypto": "^11.0.2",
|
"@polkadot/util-crypto": "^11.0.2",
|
||||||
"eventemitter3": "^5.0.0",
|
"eventemitter3": "^5.0.0",
|
||||||
@@ -42,7 +40,7 @@
|
|||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/api-augment": "10.1.2",
|
"@polkadot/api-augment": "10.1.3",
|
||||||
"@polkadot/types-support": "10.1.2"
|
"@polkadot/types-support": "10.1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '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
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { UnsubscribePromise } from '../types/index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { HexString } from '@polkadot/util/types';
|
||||||
import type { SubmittableExtrinsic } from '../types/index.js';
|
import type { SubmittableExtrinsic } from '../types/index.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { augmentObject } from './augmentObject.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { decorateStorage, Metadata, TypeRegistry } from '@polkadot/types';
|
||||||
import metaStatic from '@polkadot/types-support/metadata/static-substrate';
|
import metaStatic from '@polkadot/types-support/metadata/static-substrate';
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "RPC generated augmentation",
|
"description": "RPC generated augmentation",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-augment#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-augment#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/rpc-augment",
|
"name": "@polkadot/rpc-augment",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/rpc-augment",
|
"directory": "packages/rpc-augment",
|
||||||
@@ -20,12 +18,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/rpc-core": "10.1.2",
|
"@polkadot/rpc-core": "10.1.3",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-codec": "10.1.2",
|
"@polkadot/types-codec": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '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>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/rpc-core",
|
"name": "@polkadot/rpc-core",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/rpc-core",
|
"directory": "packages/rpc-core",
|
||||||
@@ -20,18 +18,18 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/rpc-augment": "10.1.2",
|
"@polkadot/rpc-augment": "10.1.3",
|
||||||
"@polkadot/rpc-provider": "10.1.2",
|
"@polkadot/rpc-provider": "10.1.3",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"rxjs": "^7.8.0",
|
"rxjs": "^7.8.0",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^11.0.2",
|
"@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
|
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { RpcInterface } from './types/index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { ProviderInterface } from '@polkadot/rpc-provider/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { ProviderInterface } from '@polkadot/rpc-provider/types';
|
||||||
import type { DefinitionRpc } from '@polkadot/types/types';
|
import type { DefinitionRpc } from '@polkadot/types/types';
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '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
|
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { RpcInterface } from './types/index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { of, timer } from 'rxjs';
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Transport providers for the API",
|
"description": "Transport providers for the API",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/rpc-provider",
|
"name": "@polkadot/rpc-provider",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/rpc-provider",
|
"directory": "packages/rpc-provider",
|
||||||
@@ -20,12 +18,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/keyring": "^11.0.2",
|
"@polkadot/keyring": "^11.0.2",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-support": "10.1.2",
|
"@polkadot/types-support": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util-crypto": "^11.0.2",
|
"@polkadot/util-crypto": "^11.0.2",
|
||||||
"@polkadot/x-fetch": "^11.0.2",
|
"@polkadot/x-fetch": "^11.0.2",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { JsonRpcResponse } from '../types.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { RpcCoder } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { RpcCoder } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { isError } from '@polkadot/util';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TEST_HTTP_URL } from '../mock/mockHttp.js';
|
||||||
import { HttpProvider } from './index.js';
|
import { HttpProvider } from './index.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { Mock } from '../mock/types.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { LRUCache } from './lru.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { ProviderInterfaceEmitted } from '../types.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { TypeRegistry } from '@polkadot/types/create';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { TypeRegistry } from '@polkadot/types/create';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { TypeRegistry } from '@polkadot/types/create';
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '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
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 sort-keys */
|
||||||
/* eslint-disable promise/param-names */
|
/* eslint-disable promise/param-names */
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { Mock } from '../mock/types.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { Request } from '../mock/mockWs.js';
|
||||||
import type { Mock } from '../mock/types.js';
|
import type { Mock } from '../mock/types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { Request } from '../mock/mockWs.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { WsProvider } from './index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { Request } from '../mock/mockWs.js';
|
||||||
import type { Global, Mock } from './../mock/types.js';
|
import type { Global, Mock } from './../mock/types.js';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { Request } from '../mock/mockWs.js';
|
||||||
import type { Global, Mock } from './../mock/types.js';
|
import type { Global, Mock } from './../mock/types.js';
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Type generation scripts",
|
"description": "Type generation scripts",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/typegen",
|
"name": "@polkadot/typegen",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/typegen",
|
"directory": "packages/typegen",
|
||||||
@@ -20,7 +18,7 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||||
@@ -30,15 +28,15 @@
|
|||||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/api": "10.1.2",
|
"@polkadot/api": "10.1.3",
|
||||||
"@polkadot/api-augment": "10.1.2",
|
"@polkadot/api-augment": "10.1.3",
|
||||||
"@polkadot/rpc-augment": "10.1.2",
|
"@polkadot/rpc-augment": "10.1.3",
|
||||||
"@polkadot/rpc-provider": "10.1.2",
|
"@polkadot/rpc-provider": "10.1.3",
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-augment": "10.1.2",
|
"@polkadot/types-augment": "10.1.3",
|
||||||
"@polkadot/types-codec": "10.1.2",
|
"@polkadot/types-codec": "10.1.3",
|
||||||
"@polkadot/types-create": "10.1.2",
|
"@polkadot/types-create": "10.1.3",
|
||||||
"@polkadot/types-support": "10.1.2",
|
"@polkadot/types-support": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"@polkadot/util-crypto": "^11.0.2",
|
"@polkadot/util-crypto": "^11.0.2",
|
||||||
"@polkadot/x-ws": "^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) {
|
if (pkg) {
|
||||||
try {
|
try {
|
||||||
const defPath = assertFile(path.join(outputPath, 'definitions.ts'));
|
const defCont = await import(
|
||||||
const defCont = await import(defPath) as { module: any };
|
assertFile(path.join(outputPath, 'definitions.ts'))
|
||||||
|
) as Record<string, any>;
|
||||||
|
|
||||||
extraTypes = {
|
extraTypes = {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
[pkg]: defCont
|
||||||
[pkg]: defCont.module
|
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('ERROR: No custom definitions found:', (error as Error).message);
|
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 {
|
try {
|
||||||
const lookPath = assertFile(path.join(outputPath, 'lookup.ts'));
|
const lookCont = await import(
|
||||||
const lookCont = await import(lookPath) as { module: { default: DefinitionsTypes } };
|
assertFile(path.join(outputPath, 'lookup.ts'))
|
||||||
|
) as { default: DefinitionsTypes };
|
||||||
|
|
||||||
customLookupDefinitions = {
|
customLookupDefinitions = {
|
||||||
rpc: {},
|
rpc: {},
|
||||||
types: lookCont.module.default
|
types: lookCont.default
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('ERROR: No lookup definitions found:', (error as Error).message);
|
console.error('ERROR: No lookup definitions found:', (error as Error).message);
|
||||||
@@ -113,5 +114,10 @@ async function mainPromise (): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function main (): 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> = {};
|
let userDefs: Record<string, any> = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
userDefs = await import(
|
const defCont = await import(
|
||||||
assertFile(path.join(inputPath, 'definitions.ts'))
|
assertFile(path.join(inputPath, 'definitions.ts'))
|
||||||
) as Record<string, any>;
|
) as Record<string, any>;
|
||||||
|
|
||||||
|
userDefs = defCont;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('ERROR: Unable to load user definitions:', (error as Error).message);
|
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 {
|
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 + '`';
|
return name + (isOptional ? '?' : '') + ': `' + type + '`';
|
||||||
}).join(', ');
|
}).join(', ');
|
||||||
const type = '`' + method.type + '`';
|
const type = '`' + method.type + '`';
|
||||||
const item: SectionItem = {
|
|
||||||
|
container.items.push({
|
||||||
interface: '`' + `api.rpc.${sectionName}.${methodName}` + '`',
|
interface: '`' + `api.rpc.${sectionName}.${methodName}` + '`',
|
||||||
jsonrpc: '`' + jsonrpc + '`',
|
jsonrpc: '`' + jsonrpc + '`',
|
||||||
// link: jsonrpc,
|
// link: jsonrpc,
|
||||||
name: `${methodName}(${args}): ${type}`,
|
name: `${methodName}(${args}): ${type}`,
|
||||||
...(method.description && { summary: method.description })
|
...((method.description && { summary: method.description }) || {}),
|
||||||
};
|
...((method.deprecated && { deprecated: method.deprecated }) || {}),
|
||||||
|
...((method.isUnsafe && { unsafe: 'This method is only active with appropriate flags' }) || {})
|
||||||
if (method.deprecated) {
|
});
|
||||||
item.deprecated = method.deprecated;
|
|
||||||
}
|
|
||||||
|
|
||||||
container.items.push(item);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return all;
|
return all;
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '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
|
// Copyright 2017-2023 @polkadot/typegen authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import { TypeRegistry } from '@polkadot/types/create';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/typegen authors & contributors
|
// Copyright 2017-2023 @polkadot/typegen authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Types generated augmentation",
|
"description": "Types generated augmentation",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-augment#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-augment#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/types-augment",
|
"name": "@polkadot/types-augment",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/types-augment",
|
"directory": "packages/types-augment",
|
||||||
@@ -20,11 +18,11 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-codec": "10.1.2",
|
"@polkadot/types-codec": "10.1.3",
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '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>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||||
"contributors": [],
|
|
||||||
"description": "Implementation of the SCALE codec",
|
"description": "Implementation of the SCALE codec",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-codec#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-codec#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainers": [],
|
|
||||||
"name": "@polkadot/types-codec",
|
"name": "@polkadot/types-codec",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/types-codec",
|
"directory": "packages/types-codec",
|
||||||
@@ -20,7 +18,7 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "10.1.2",
|
"version": "10.1.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/util": "^11.0.2",
|
"@polkadot/util": "^11.0.2",
|
||||||
@@ -28,9 +26,9 @@
|
|||||||
"tslib": "^2.5.0"
|
"tslib": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/types": "10.1.2",
|
"@polkadot/types": "10.1.3",
|
||||||
"@polkadot/types-augment": "10.1.2",
|
"@polkadot/types-augment": "10.1.3",
|
||||||
"@polkadot/types-support": "10.1.2",
|
"@polkadot/types-support": "10.1.3",
|
||||||
"@polkadot/util-crypto": "^11.0.2"
|
"@polkadot/util-crypto": "^11.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { CodecDate, Compact, U32 } from '@polkadot/types-codec';
|
import { CodecDate, Compact, U32 } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { DoNotConstruct } from '@polkadot/types-codec';
|
import { DoNotConstruct } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { Registry } from '@polkadot/types-codec/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { Int } from '@polkadot/types-codec';
|
import { Int } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { Null } from '@polkadot/types-codec';
|
import { Null } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { bool, Bytes, Null, Option, Text, U32 } from '@polkadot/types-codec';
|
import { bool, Bytes, Null, Option, Text, U32 } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { Result, Text, u32 } from '@polkadot/types-codec';
|
import { Result, Text, u32 } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { BlockNumber, VoteThreshold } from '@polkadot/types/interfaces';
|
||||||
import type { AnyTupleValue, CodecTo } from '@polkadot/types-codec/types';
|
import type { AnyTupleValue, CodecTo } from '@polkadot/types-codec/types';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { UInt } from '@polkadot/types-codec';
|
import { UInt } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { PropIndex } from '@polkadot/types/interfaces/democracy';
|
||||||
import type { Codec, CodecTo, ITuple } from '@polkadot/types-codec/types';
|
import type { Codec, CodecTo, ITuple } from '@polkadot/types-codec/types';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { Text, u16, VecFixed } from '@polkadot/types-codec';
|
import { Text, u16, VecFixed } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { CodecClass, ITuple } from '@polkadot/types-codec/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { CodecClass, CodecTo } from '@polkadot/types-codec/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { hexToU8a } from '@polkadot/util';
|
import { hexToU8a } from '@polkadot/util';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { Bytes } from '@polkadot/types-codec';
|
import { Bytes } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { HashMap, Struct, Text, U32 } from '@polkadot/types-codec';
|
import { HashMap, Struct, Text, U32 } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { Linkage } from '@polkadot/types-codec';
|
import { Linkage } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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';
|
import type { CodecTo } from '@polkadot/types-codec/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { OptionBool } from '@polkadot/types-codec';
|
import { OptionBool } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { Range, U32 } from '@polkadot/types-codec';
|
import { Range, U32 } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { Text, Type } from '@polkadot/types-codec';
|
import { Text, Type } from '@polkadot/types-codec';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { TypeRegistry } from '@polkadot/types';
|
||||||
import { U8aFixed } from '@polkadot/types-codec';
|
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