Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d91b3cb501 | ||
|
|
677cbd30e9 | ||
|
|
f95edc5a2a | ||
|
|
9a6e096020 | ||
|
|
083e459407 | ||
|
|
4fe3ca4b44 | ||
|
|
5839670024 | ||
|
|
1bee72587f | ||
|
|
0a1cc26aab | ||
|
|
15410ceeb5 | ||
|
|
603b762d0e | ||
|
|
8c43bcf405 | ||
|
|
a0e4fa0570 | ||
|
|
d7b4adc050 | ||
|
|
ef97ea7d00 | ||
|
|
af9e1931e6 | ||
|
|
576887d508 | ||
|
|
57e9857ed8 | ||
|
|
f59b5b8d92 | ||
|
|
4cb0281340 | ||
|
|
9c5ca08106 | ||
|
|
fde69670f1 |
@@ -1,28 +0,0 @@
|
||||
checks:
|
||||
argument-count:
|
||||
config:
|
||||
threshold: 5
|
||||
method-complexity:
|
||||
config:
|
||||
threshold: 7
|
||||
method-count:
|
||||
config:
|
||||
threshold: 25
|
||||
method-lines:
|
||||
config:
|
||||
threshold: 30
|
||||
|
||||
exclude_patterns:
|
||||
- "**/*.spec.js"
|
||||
- "**/*.spec.ts"
|
||||
- "**/*.test.js"
|
||||
- "**/*.test.ts"
|
||||
- "docs/**/*.js"
|
||||
- "docs/**/*.ts"
|
||||
- "packages/*-augment/"
|
||||
- "packages/*-augment-*/"
|
||||
- "packages/typegen/scripts"
|
||||
- "packages/typegen/src"
|
||||
- "packages/types/src/interfaces/"
|
||||
- "packages/types/src/augment/"
|
||||
- "packages/types-known/src/upgrades/e2e/"
|
||||
@@ -15,14 +15,14 @@ jobs:
|
||||
env:
|
||||
YARN_ENABLE_SCRIPTS: false
|
||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||
GH_PAT: ${{ secrets.GH_PAT }}
|
||||
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
|
||||
GH_PAT: ${{ secrets.GH_PAT_BOT }}
|
||||
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
token: ${{ secrets.GH_PAT_BOT }}
|
||||
- name: ${{ matrix.step }}
|
||||
run: |
|
||||
yarn install --immutable | grep -v 'YN0013'
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
name: Semgrep
|
||||
on:
|
||||
pull_request: {}
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
check:
|
||||
if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)"
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
YARN_ENABLE_SCRIPTS: false
|
||||
steps:
|
||||
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
||||
- uses: returntocorp/semgrep-action@aeafd770072c4f48798b991e3449592bddc2c435
|
||||
with:
|
||||
auditOn: push
|
||||
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
|
||||
publishDeployment: 1395
|
||||
@@ -1,5 +1,32 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 9.10.2 Dec 9, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix `derive.balances.account` detection for system vs balances
|
||||
|
||||
|
||||
## 9.10.1 Dec 4, 2022
|
||||
|
||||
- **Important** Since [9.2.1](https://github.com/polkadot-js/api/releases/tag/v9.2.1) the recommended way of accessing `WellKnownChain` for light clients is via `ScProvider.WellKnownChain`. This release removes the explicit export from the `ScProvider` root.
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust payloads to use `BlockHash` types (as applicable)
|
||||
- Adjust type-only imports in `ScProvider`
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
- Update to `@polkadot/util` 10.2.1
|
||||
|
||||
|
||||
## 9.9.4 Nov 28, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix dispatchQueue preimage retrieval in derives
|
||||
- No change from incorrectly published 9.9.3
|
||||
|
||||
|
||||
## 9.9.2 Nov 27, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
3290 Jaco 9.9.2 (#5355)
|
||||
3301 Jaco Fix derive.balances.account detection for system vs balances (#5373)
|
||||
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)
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
[](https://polkadot.js.org)
|
||||

|
||||
[](https://www.npmjs.com/package/@polkadot/api)
|
||||
[](https://www.npmjs.com/package/@polkadot/api)
|
||||
[](https://codeclimate.com/github/polkadot-js/api)
|
||||
[](https://codeclimate.com/github/polkadot-js/api)
|
||||
|
||||
# @polkadot/api
|
||||
|
||||
This library provides a clean wrapper around all the methods exposed by a Polkadot/Substrate network client and defines all the types exposed by a node. For complete documentation around the classes, interfaces and their use, visit the [documentation portal](https://polkadot.js.org/docs/api/).
|
||||
|
||||
+8
-8
@@ -11,10 +11,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"versions": {
|
||||
"git": "9.9.2",
|
||||
"npm": "9.9.2"
|
||||
"git": "9.10.2",
|
||||
"npm": "9.10.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -36,15 +36,15 @@
|
||||
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/core": "^7.20.5",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/dev": "^0.67.163",
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/dev": "^0.67.169",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^29.2.3",
|
||||
"@types/jest": "^29.2.4",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^4.9.3"
|
||||
"typescript": "^4.9.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api-base": "9.9.2",
|
||||
"@polkadot/rpc-augment": "9.9.2",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-augment": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/api-base": "9.10.2",
|
||||
"@polkadot/rpc-augment": "9.10.2",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-augment": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "9.9.2"
|
||||
"@polkadot/types-support": "9.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1097,7 +1097,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Past code of parachains. The parachains themselves may not be registered anymore,
|
||||
* but we also keep their code on-chain for the same amount of time as outdated code
|
||||
* to keep it available for secondary checkers.
|
||||
* to keep it available for approval checkers.
|
||||
**/
|
||||
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -1000,7 +1000,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Past code of parachains. The parachains themselves may not be registered anymore,
|
||||
* but we also keep their code on-chain for the same amount of time as outdated code
|
||||
* to keep it available for secondary checkers.
|
||||
* to keep it available for approval checkers.
|
||||
**/
|
||||
pastCodeMeta: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsParasParaPastCodeMeta>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
|
||||
@@ -239,10 +239,32 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Changing this value for an existing chain might need a storage migration.
|
||||
**/
|
||||
depositPerItem: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a contract code in bytes. This limit applies to the instrumented
|
||||
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
|
||||
* a wasm binary below this maximum size.
|
||||
**/
|
||||
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum allowable length in bytes for storage keys.
|
||||
**/
|
||||
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Cost schedule and limits.
|
||||
**/
|
||||
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Make contract callable functions marked as `#[unstable]` available.
|
||||
*
|
||||
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
||||
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
||||
* experiment with new features.
|
||||
*
|
||||
* # Warning
|
||||
*
|
||||
* Do **not** set to `true` on productions chains.
|
||||
**/
|
||||
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
|
||||
@@ -271,6 +271,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* NOTE: This is only used in the case that this pallet is used to store balances.
|
||||
**/
|
||||
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The total units of outstanding deactivated balance in the system.
|
||||
**/
|
||||
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Any liquidity locks on some account balances.
|
||||
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
||||
@@ -1711,6 +1715,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Proposal indices that have been approved but not yet awarded.
|
||||
**/
|
||||
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The amount which has been reported as inactive to Currency.
|
||||
**/
|
||||
inactive: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Number of proposals that have been made.
|
||||
**/
|
||||
|
||||
@@ -403,36 +403,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
create: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, u128]>;
|
||||
/**
|
||||
* Destroy all accounts associated with a given asset.
|
||||
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
||||
* asset is in a `Destroying` state
|
||||
*
|
||||
* Due to weight restrictions, this function may need to be called multiple
|
||||
* times to fully destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a
|
||||
* time.
|
||||
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
||||
* asset is in a `Destroying` state.
|
||||
*
|
||||
* Due to weight restrictions, this function may need to be called multiple times to fully
|
||||
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* Each call Emits the `Event::DestroyedAccounts` event.
|
||||
* Each call emits the `Event::DestroyedAccounts` event.
|
||||
**/
|
||||
destroyAccounts: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit),
|
||||
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
||||
* asset is in a `Destroying` state
|
||||
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
|
||||
*
|
||||
* Due to weight restrictions, this function may need to be called multiple
|
||||
* times to fully destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a
|
||||
* time.
|
||||
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
||||
* asset is in a `Destroying` state.
|
||||
*
|
||||
* Due to weight restrictions, this function may need to be called multiple times to fully
|
||||
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* Each call Emits the `Event::DestroyedApprovals` event.
|
||||
* Each call emits the `Event::DestroyedApprovals` event.
|
||||
**/
|
||||
destroyApprovals: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Complete destroying asset and unreserve currency.
|
||||
*
|
||||
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
||||
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
||||
* hand.
|
||||
@@ -440,7 +441,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* Each successful call Emits the `Event::Destroyed` event.
|
||||
* Each successful call emits the `Event::Destroyed` event.
|
||||
**/
|
||||
finishDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
@@ -645,17 +646,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
setTeam: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, issuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, admin: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, freezer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||
/**
|
||||
* Start the process of destroying a class of fungible asset
|
||||
* start_destroy is the first in a series of extrinsics that should be called, to allow
|
||||
* destroying an asset.
|
||||
* Start the process of destroying a fungible asset class.
|
||||
*
|
||||
* The origin must conform to `ForceOrigin` or must be Signed and the sender must be the
|
||||
* owner of the asset `id`.
|
||||
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
|
||||
* destruction of an asset class.
|
||||
*
|
||||
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* Assets must be freezed before calling start_destroy.
|
||||
* The asset class must be frozen before calling `start_destroy`.
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-core": "9.9.2",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"rxjs": "^7.5.7"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/rpc-core": "9.10.2",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"rxjs": "^7.6.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: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "9.9.2",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/types-create": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"@polkadot/util-crypto": "^10.1.14",
|
||||
"rxjs": "^7.5.7"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/api": "9.10.2",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/types-create": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"@polkadot/util-crypto": "^10.2.1",
|
||||
"rxjs": "^7.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.9.2",
|
||||
"@polkadot/keyring": "^10.1.14"
|
||||
"@polkadot/api-augment": "9.10.2",
|
||||
"@polkadot/keyring": "^10.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,25 +20,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "9.9.2",
|
||||
"@polkadot/api-augment": "9.9.2",
|
||||
"@polkadot/api-base": "9.9.2",
|
||||
"@polkadot/rpc-core": "9.9.2",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"@polkadot/util-crypto": "^10.1.14",
|
||||
"rxjs": "^7.5.7"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/api": "9.10.2",
|
||||
"@polkadot/api-augment": "9.10.2",
|
||||
"@polkadot/api-base": "9.10.2",
|
||||
"@polkadot/rpc-core": "9.10.2",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"@polkadot/util-crypto": "^10.2.1",
|
||||
"rxjs": "^7.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.9.2",
|
||||
"@polkadot/api-augment": "9.9.2",
|
||||
"@polkadot/rpc-augment": "9.9.2",
|
||||
"@polkadot/rpc-provider": "9.9.2",
|
||||
"@polkadot/types-support": "9.9.2"
|
||||
"@polkadot/api": "9.10.2",
|
||||
"@polkadot/api-augment": "9.10.2",
|
||||
"@polkadot/rpc-augment": "9.10.2",
|
||||
"@polkadot/rpc-provider": "9.10.2",
|
||||
"@polkadot/types-support": "9.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ function querySystemAccount (api: DeriveApi, accountId: AccountId): Observable<R
|
||||
*/
|
||||
export function account (instanceId: string, api: DeriveApi): (address: AccountIndex | AccountId | Address | string) => Observable<DeriveBalancesAccount> {
|
||||
const balanceInstances = api.registry.getModuleInstances(api.runtimeVersion.specName, 'balances');
|
||||
const nonDefaultBalances = balanceInstances && (balanceInstances.length !== 1 || balanceInstances[0] !== 'balances');
|
||||
const nonDefaultBalances = balanceInstances && balanceInstances[0] !== 'balances';
|
||||
|
||||
return memo(instanceId, (address: AccountIndex | AccountId | Address | string): Observable<DeriveBalancesAccount> =>
|
||||
api.derive.accounts.accountId(address).pipe(
|
||||
|
||||
@@ -58,7 +58,7 @@ function calcShared (api: DeriveApi, bestNumber: BlockNumber, data: DeriveBalanc
|
||||
const { allLocked, lockedBalance, lockedBreakdown, vestingLocked } = calcLocked(api, bestNumber, locks);
|
||||
|
||||
return objectSpread({}, data, {
|
||||
availableBalance: api.registry.createType('Balance', allLocked ? 0 : bnMax(new BN(0), data.freeBalance.sub(lockedBalance))),
|
||||
availableBalance: api.registry.createType('Balance', allLocked ? 0 : bnMax(new BN(0), data?.freeBalance ? data.freeBalance.sub(lockedBalance) : new BN(0))),
|
||||
lockedBalance,
|
||||
lockedBreakdown,
|
||||
vestingLocked
|
||||
@@ -98,7 +98,8 @@ function calcVesting (bestNumber: BlockNumber, shared: DeriveBalancesAllAccountD
|
||||
};
|
||||
}
|
||||
|
||||
function calcBalances (api: DeriveApi, [data, [vesting, allLocks, namedReserves], bestNumber]: Result): DeriveBalancesAll {
|
||||
function calcBalances (api: DeriveApi, result: Result): DeriveBalancesAll {
|
||||
const [data, [vesting, allLocks, namedReserves], bestNumber] = result;
|
||||
const shared = calcShared(api, bestNumber, data, allLocks[0]);
|
||||
|
||||
return objectSpread(shared, calcVesting(bestNumber, shared, vesting), {
|
||||
|
||||
@@ -84,7 +84,7 @@ function getDemocracyImages (api: DeriveApi, hashes: (Hash | Uint8Array | string
|
||||
);
|
||||
}
|
||||
|
||||
function getImages (api: DeriveApi, bounded: FrameSupportPreimagesBounded[]): Observable<(DeriveProposalImage | undefined)[]> {
|
||||
function getImages (api: DeriveApi, bounded: (FrameSupportPreimagesBounded | Uint8Array | string)[]): Observable<(DeriveProposalImage | undefined)[]> {
|
||||
const hashes = bounded.map((b) => getImageHashBounded(b));
|
||||
|
||||
return api.query.preimage.statusFor.multi(hashes).pipe(
|
||||
@@ -123,7 +123,7 @@ export function preimages (instanceId: string, api: DeriveApi): (hashes: (Hash |
|
||||
? isFunction(api.query.democracy.preimages)
|
||||
? getDemocracyImages(api, hashes as string[])
|
||||
: isFunction(api.query.preimage.preimageFor)
|
||||
? getImages(api, hashes as FrameSupportPreimagesBounded[])
|
||||
? getImages(api, hashes)
|
||||
: of([])
|
||||
: of([])
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { Option } from '@polkadot/types-codec';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { DeriveReferendum, DeriveReferendumVote, DeriveReferendumVotes, DeriveReferendumVoteState } from '../types';
|
||||
|
||||
import { BN, bnSqrt, objectSpread } from '@polkadot/util';
|
||||
import { BN, bnSqrt, isHex, isString, isU8a, objectSpread, stringToHex, u8aToHex } from '@polkadot/util';
|
||||
|
||||
interface ApproxState {
|
||||
votedAye: BN;
|
||||
@@ -141,7 +141,7 @@ export function getStatus (info: Option<PalletDemocracyReferendumInfo | Referend
|
||||
: null;
|
||||
}
|
||||
|
||||
export function getImageHashBounded (hash: Hash | FrameSupportPreimagesBounded): HexString {
|
||||
export function getImageHashBounded (hash: Uint8Array | string | Hash | FrameSupportPreimagesBounded): HexString {
|
||||
return (hash as FrameSupportPreimagesBounded).isLegacy
|
||||
? (hash as FrameSupportPreimagesBounded).asLegacy.hash_.toHex()
|
||||
: (hash as FrameSupportPreimagesBounded).isLookup
|
||||
@@ -149,7 +149,13 @@ export function getImageHashBounded (hash: Hash | FrameSupportPreimagesBounded):
|
||||
// for inline, use the actual Bytes hash
|
||||
: (hash as FrameSupportPreimagesBounded).isInline
|
||||
? (hash as FrameSupportPreimagesBounded).asInline.hash.toHex()
|
||||
: hash.toHex();
|
||||
: isString(hash)
|
||||
? isHex(hash)
|
||||
? hash
|
||||
: stringToHex(hash)
|
||||
: isU8a(hash)
|
||||
? u8aToHex(hash)
|
||||
: hash.toHex();
|
||||
}
|
||||
|
||||
export function getImageHash (status: PalletDemocracyReferendumStatus | ReferendumInfoTo239): HexString {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
+19
-19
@@ -20,29 +20,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api-augment": "9.9.2",
|
||||
"@polkadot/api-base": "9.9.2",
|
||||
"@polkadot/api-derive": "9.9.2",
|
||||
"@polkadot/keyring": "^10.1.14",
|
||||
"@polkadot/rpc-augment": "9.9.2",
|
||||
"@polkadot/rpc-core": "9.9.2",
|
||||
"@polkadot/rpc-provider": "9.9.2",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-augment": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/types-create": "9.9.2",
|
||||
"@polkadot/types-known": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"@polkadot/util-crypto": "^10.1.14",
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/api-augment": "9.10.2",
|
||||
"@polkadot/api-base": "9.10.2",
|
||||
"@polkadot/api-derive": "9.10.2",
|
||||
"@polkadot/keyring": "^10.2.1",
|
||||
"@polkadot/rpc-augment": "9.10.2",
|
||||
"@polkadot/rpc-core": "9.10.2",
|
||||
"@polkadot/rpc-provider": "9.10.2",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-augment": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/types-create": "9.10.2",
|
||||
"@polkadot/types-known": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"@polkadot/util-crypto": "^10.2.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"rxjs": "^7.5.7"
|
||||
"rxjs": "^7.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.9.2",
|
||||
"@polkadot/types-support": "9.9.2"
|
||||
"@polkadot/api-augment": "9.10.2",
|
||||
"@polkadot/types-support": "9.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-core": "9.9.2",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/rpc-core": "9.10.2",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-augment": "9.9.2",
|
||||
"@polkadot/rpc-provider": "9.9.2",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"rxjs": "^7.5.7"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/rpc-augment": "9.10.2",
|
||||
"@polkadot/rpc-provider": "9.10.2",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"rxjs": "^7.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.1.14",
|
||||
"@polkadot/rpc-augment": "9.9.2"
|
||||
"@polkadot/keyring": "^10.2.1",
|
||||
"@polkadot/rpc-augment": "9.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/keyring": "^10.1.14",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-support": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"@polkadot/util-crypto": "^10.1.14",
|
||||
"@polkadot/x-fetch": "^10.1.14",
|
||||
"@polkadot/x-global": "^10.1.14",
|
||||
"@polkadot/x-ws": "^10.1.14",
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/keyring": "^10.2.1",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-support": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"@polkadot/util-crypto": "^10.2.1",
|
||||
"@polkadot/x-fetch": "^10.2.1",
|
||||
"@polkadot/x-global": "^10.2.1",
|
||||
"@polkadot/x-ws": "^10.2.1",
|
||||
"@substrate/connect": "0.7.17",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"mock-socket": "^9.1.5",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -17,6 +17,13 @@ export interface HealthChecker {
|
||||
responsePassThrough(response: string): string | null
|
||||
}
|
||||
|
||||
interface JSONRequest {
|
||||
id: string;
|
||||
jsonrpc: '2.0',
|
||||
method: string;
|
||||
params: unknown[];
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates a new health checker.
|
||||
*
|
||||
@@ -103,21 +110,21 @@ class InnerChecker {
|
||||
#currentHealthTimeout: ReturnType<typeof setTimeout> | null = null;
|
||||
#currentSubunsubRequestId: string | null = null;
|
||||
#currentSubscriptionId: string | null = null;
|
||||
#requestToSmoldot: (request: string) => void;
|
||||
#requestToSmoldot: (request: JSONRequest) => void;
|
||||
#isSyncing = false;
|
||||
#nextRequestId = 0;
|
||||
|
||||
constructor (healthCallback: (health: SmoldotHealth) => void, requestToSmoldot: (request: string) => void) {
|
||||
this.#healthCallback = healthCallback;
|
||||
this.#requestToSmoldot = requestToSmoldot;
|
||||
this.#requestToSmoldot = (request: JSONRequest) => requestToSmoldot(stringify(request));
|
||||
}
|
||||
|
||||
sendJsonRpc = (request: string): void => {
|
||||
// Replace the `id` in the request to prefix the request ID with `extern:`.
|
||||
let parsedRequest: {id: string | number};
|
||||
let parsedRequest: JSONRequest;
|
||||
|
||||
try {
|
||||
parsedRequest = JSON.parse(request) as {id: string | number};
|
||||
parsedRequest = JSON.parse(request) as JSONRequest;
|
||||
} catch (err) {
|
||||
return;
|
||||
}
|
||||
@@ -128,14 +135,14 @@ class InnerChecker {
|
||||
parsedRequest.id = newId;
|
||||
}
|
||||
|
||||
this.#requestToSmoldot(stringify(parsedRequest));
|
||||
this.#requestToSmoldot(parsedRequest);
|
||||
};
|
||||
|
||||
responsePassThrough = (jsonRpcResponse: string): string | null => {
|
||||
let parsedResponse: {id: string, result?: SmoldotHealth, params?: { subscription: string }};
|
||||
|
||||
try {
|
||||
parsedResponse = JSON.parse(jsonRpcResponse) as {id: string, result: undefined | SmoldotHealth};
|
||||
parsedResponse = JSON.parse(jsonRpcResponse) as { id: string, result: undefined | SmoldotHealth };
|
||||
} catch (err) {
|
||||
return jsonRpcResponse;
|
||||
}
|
||||
@@ -243,14 +250,12 @@ class InnerChecker {
|
||||
this.#currentHealthCheckId = `health-checker:${this.#nextRequestId}`;
|
||||
this.#nextRequestId += 1;
|
||||
|
||||
this.#requestToSmoldot(
|
||||
stringify({
|
||||
id: this.#currentHealthCheckId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'system_health',
|
||||
params: []
|
||||
})
|
||||
);
|
||||
this.#requestToSmoldot({
|
||||
id: this.#currentHealthCheckId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'system_health',
|
||||
params: []
|
||||
});
|
||||
};
|
||||
|
||||
if (startNow) {
|
||||
@@ -285,14 +290,12 @@ class InnerChecker {
|
||||
this.#currentSubunsubRequestId = `health-checker:${this.#nextRequestId}`;
|
||||
this.#nextRequestId += 1;
|
||||
|
||||
this.#requestToSmoldot(
|
||||
stringify({
|
||||
id: this.#currentSubunsubRequestId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'chain_subscribeNewHeads',
|
||||
params: []
|
||||
})
|
||||
);
|
||||
this.#requestToSmoldot({
|
||||
id: this.#currentSubunsubRequestId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'chain_subscribeNewHeads',
|
||||
params: []
|
||||
});
|
||||
};
|
||||
|
||||
endSubscription = (): void => {
|
||||
@@ -303,14 +306,12 @@ class InnerChecker {
|
||||
this.#currentSubunsubRequestId = `health-checker:${this.#nextRequestId}`;
|
||||
this.#nextRequestId += 1;
|
||||
|
||||
this.#requestToSmoldot(
|
||||
stringify({
|
||||
id: this.#currentSubunsubRequestId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'chain_unsubscribeNewHeads',
|
||||
params: [this.#currentSubscriptionId]
|
||||
})
|
||||
);
|
||||
this.#requestToSmoldot({
|
||||
id: this.#currentSubunsubRequestId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'chain_unsubscribeNewHeads',
|
||||
params: [this.#currentSubscriptionId]
|
||||
});
|
||||
};
|
||||
|
||||
destroy = (): void => {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Config as ScConfig } from '@substrate/connect';
|
||||
import type { Chain, Config as ScConfig, ScClient } from '@substrate/connect';
|
||||
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '../types';
|
||||
|
||||
import { Chain, createScClient, ScClient, WellKnownChain } from '@substrate/connect';
|
||||
import { createScClient, WellKnownChain } from '@substrate/connect';
|
||||
import EventEmitter from 'eventemitter3';
|
||||
|
||||
import { isError, logger, objectSpread } from '@polkadot/util';
|
||||
@@ -37,8 +37,6 @@ const subscriptionUnsubscriptionMethods = new Map<string, string>([
|
||||
const wellKnownChains = new Set(Object.values(WellKnownChain));
|
||||
const scClients = new WeakMap<ScProvider, ScClient>();
|
||||
|
||||
export { WellKnownChain };
|
||||
|
||||
interface ActiveSubs {
|
||||
type: string,
|
||||
method: string,
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||
@@ -30,27 +30,27 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/core": "^7.20.5",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "9.9.2",
|
||||
"@polkadot/api-augment": "9.9.2",
|
||||
"@polkadot/rpc-augment": "9.9.2",
|
||||
"@polkadot/rpc-provider": "9.9.2",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-augment": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/types-create": "9.9.2",
|
||||
"@polkadot/types-support": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"@polkadot/util-crypto": "^10.1.14",
|
||||
"@polkadot/x-ws": "^10.1.14",
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/api": "9.10.2",
|
||||
"@polkadot/api-augment": "9.10.2",
|
||||
"@polkadot/rpc-augment": "9.10.2",
|
||||
"@polkadot/rpc-provider": "9.10.2",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-augment": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/types-create": "9.10.2",
|
||||
"@polkadot/types-support": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"@polkadot/util-crypto": "^10.2.1",
|
||||
"@polkadot/x-ws": "^10.2.1",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/websocket": "^1.0.5",
|
||||
"@types/yargs": "^17.0.14"
|
||||
"@types/yargs": "^17.0.17"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,17 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"@polkadot/x-bigint": "^10.1.14"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"@polkadot/x-bigint": "^10.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-augment": "9.9.2",
|
||||
"@polkadot/types-support": "9.9.2",
|
||||
"@polkadot/util-crypto": "^10.1.14"
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-augment": "9.10.2",
|
||||
"@polkadot/types-support": "9.10.2",
|
||||
"@polkadot/util-crypto": "^10.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ export class Json extends Map<string, any> implements Codec {
|
||||
*/
|
||||
public toPrimitive (): Record<string, AnyJson> {
|
||||
return [...this.entries()].reduce<Record<string, AnyJson>>((json, [key, value]): Record<string, AnyJson> => {
|
||||
json[key] = isFunction((value as Codec).toHuman)
|
||||
json[key] = isFunction((value as Codec).toPrimitive)
|
||||
? (value as Codec).toPrimitive()
|
||||
: value as AnyJson;
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.9.2"
|
||||
"@polkadot/types": "9.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,17 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/networks": "^10.1.14",
|
||||
"@polkadot/types": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/types-create": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/networks": "^10.2.1",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/types-create": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.9.2"
|
||||
"@polkadot/api": "9.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/util": "^10.1.14"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/util": "^10.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -268,7 +268,7 @@
|
||||
{
|
||||
"name": "Version",
|
||||
"type": 496,
|
||||
"value": "0x186b7573616d61347061726974792d6b7573616d61020000005e2400000000000040df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a802000000f3ff14d5ab5270590200000017a6bc0d0062aeb3010000000f00000000",
|
||||
"value": "0x186b7573616d61347061726974792d6b7573616d6102000000722400000000000040df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a802000000f3ff14d5ab5270590200000017a6bc0d0062aeb3010000001000000000",
|
||||
"docs": [
|
||||
" Get the chain's current version."
|
||||
]
|
||||
@@ -6266,7 +6266,7 @@
|
||||
"docs": [
|
||||
" Past code of parachains. The parachains themselves may not be registered anymore,",
|
||||
" but we also keep their code on-chain for the same amount of time as outdated code",
|
||||
" to keep it available for secondary checkers."
|
||||
" to keep it available for approval checkers."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -268,7 +268,7 @@
|
||||
{
|
||||
"name": "Version",
|
||||
"type": 172,
|
||||
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f74000000005e2400000000000040df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a0600000017a6bc0d0062aeb301000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a802000000f3ff14d5ab527059020000001000000000",
|
||||
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f7400000000722400000000000040df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a0600000017a6bc0d0062aeb301000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a802000000f3ff14d5ab527059020000001100000000",
|
||||
"docs": [
|
||||
" Get the chain's current version."
|
||||
]
|
||||
@@ -5180,7 +5180,7 @@
|
||||
"docs": [
|
||||
" Past code of parachains. The parachains themselves may not be registered anymore,",
|
||||
" but we also keep their code on-chain for the same amount of time as outdated code",
|
||||
" to keep it available for secondary checkers."
|
||||
" to keep it available for approval checkers."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -748,6 +748,17 @@
|
||||
" The total units issued in the system."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "InactiveIssuance",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 6
|
||||
},
|
||||
"fallback": "0x00000000000000000000000000000000",
|
||||
"docs": [
|
||||
" The total units of outstanding deactivated balance in the system."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Account",
|
||||
"modifier": "Default",
|
||||
@@ -2941,6 +2952,17 @@
|
||||
" Proposals that have been made."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inactive",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 6
|
||||
},
|
||||
"fallback": "0x00000000000000000000000000000000",
|
||||
"docs": [
|
||||
" The amount which has been reported as inactive to Currency."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Approvals",
|
||||
"modifier": "Default",
|
||||
@@ -3222,6 +3244,40 @@
|
||||
"",
|
||||
" Changing this value for an existing chain might need a storage migration."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MaxCodeLen",
|
||||
"type": 4,
|
||||
"value": "0x00000200",
|
||||
"docs": [
|
||||
" The maximum length of a contract code in bytes. This limit applies to the instrumented",
|
||||
" version of the code. Therefore `instantiate_with_code` can fail even when supplying",
|
||||
" a wasm binary below this maximum size."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MaxStorageKeyLen",
|
||||
"type": 4,
|
||||
"value": "0x80000000",
|
||||
"docs": [
|
||||
" The maximum allowable length in bytes for storage keys."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "UnsafeUnstableInterface",
|
||||
"type": 40,
|
||||
"value": "0x00",
|
||||
"docs": [
|
||||
" Make contract callable functions marked as `#[unstable]` available.",
|
||||
"",
|
||||
" Contracts that use `#[unstable]` functions won't be able to be uploaded unless",
|
||||
" this is set to `true`. This is only meant for testnets and dev nodes in order to",
|
||||
" experiment with new features.",
|
||||
"",
|
||||
" # Warning",
|
||||
"",
|
||||
" Do **not** set to `true` on productions chains."
|
||||
]
|
||||
}
|
||||
],
|
||||
"errors": {
|
||||
|
||||
@@ -21678,7 +21678,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -21723,7 +21723,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -21774,23 +21774,23 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 2,
|
||||
"docs": [
|
||||
"Start the process of destroying a class of fungible asset",
|
||||
"start_destroy is the first in a series of extrinsics that should be called, to allow",
|
||||
"destroying an asset.",
|
||||
"Start the process of destroying a fungible asset class.",
|
||||
"",
|
||||
"The origin must conform to `ForceOrigin` or must be Signed and the sender must be the",
|
||||
"owner of the asset `id`.",
|
||||
"`start_destroy` is the first in a series of extrinsics that should be called, to allow",
|
||||
"destruction of an asset class.",
|
||||
"",
|
||||
"The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.",
|
||||
"",
|
||||
"- `id`: The identifier of the asset to be destroyed. This must identify an existing",
|
||||
" asset.",
|
||||
"",
|
||||
"Assets must be freezed before calling start_destroy."
|
||||
"The asset class must be frozen before calling `start_destroy`."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -21799,24 +21799,24 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 3,
|
||||
"docs": [
|
||||
"Destroy all accounts associated with a given asset.",
|
||||
"`destroy_accounts` should only be called after `start_destroy` has been called, and the",
|
||||
"asset is in a `Destroying` state",
|
||||
"",
|
||||
"Due to weight restrictions, this function may need to be called multiple",
|
||||
"times to fully destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a",
|
||||
"time.",
|
||||
"`destroy_accounts` should only be called after `start_destroy` has been called, and the",
|
||||
"asset is in a `Destroying` state.",
|
||||
"",
|
||||
"Due to weight restrictions, this function may need to be called multiple times to fully",
|
||||
"destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.",
|
||||
"",
|
||||
"- `id`: The identifier of the asset to be destroyed. This must identify an existing",
|
||||
" asset.",
|
||||
"",
|
||||
"Each call Emits the `Event::DestroyedAccounts` event."
|
||||
"Each call emits the `Event::DestroyedAccounts` event."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -21825,24 +21825,24 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 4,
|
||||
"docs": [
|
||||
"Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit),",
|
||||
"`destroy_approvals` should only be called after `start_destroy` has been called, and the",
|
||||
"asset is in a `Destroying` state",
|
||||
"Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).",
|
||||
"",
|
||||
"Due to weight restrictions, this function may need to be called multiple",
|
||||
"times to fully destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a",
|
||||
"time.",
|
||||
"`destroy_approvals` should only be called after `start_destroy` has been called, and the",
|
||||
"asset is in a `Destroying` state.",
|
||||
"",
|
||||
"Due to weight restrictions, this function may need to be called multiple times to fully",
|
||||
"destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.",
|
||||
"",
|
||||
"- `id`: The identifier of the asset to be destroyed. This must identify an existing",
|
||||
" asset.",
|
||||
"",
|
||||
"Each call Emits the `Event::DestroyedApprovals` event."
|
||||
"Each call emits the `Event::DestroyedApprovals` event."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -21851,13 +21851,14 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 5,
|
||||
"docs": [
|
||||
"Complete destroying asset and unreserve currency.",
|
||||
"",
|
||||
"`finish_destroy` should only be called after `start_destroy` has been called, and the",
|
||||
"asset is in a `Destroying` state. All accounts or approvals should be destroyed before",
|
||||
"hand.",
|
||||
@@ -21865,7 +21866,7 @@
|
||||
"- `id`: The identifier of the asset to be destroyed. This must identify an existing",
|
||||
" asset.",
|
||||
"",
|
||||
"Each successful call Emits the `Event::Destroyed` event."
|
||||
"Each successful call emits the `Event::Destroyed` event."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -21874,7 +21875,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -21912,7 +21913,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -21953,7 +21954,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -21997,7 +21998,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22041,7 +22042,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22092,7 +22093,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22122,7 +22123,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22152,7 +22153,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
@@ -22175,7 +22176,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
@@ -22198,7 +22199,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22228,7 +22229,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22272,7 +22273,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22320,7 +22321,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
@@ -22345,7 +22346,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22397,7 +22398,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
@@ -22422,7 +22423,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22500,7 +22501,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22546,7 +22547,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22579,7 +22580,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22618,7 +22619,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
@@ -22668,7 +22669,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
@@ -22691,7 +22692,7 @@
|
||||
{
|
||||
"name": "id",
|
||||
"type": 127,
|
||||
"typeName": "T::AssetId",
|
||||
"typeName": "T::AssetIdParameter",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
+11
-11
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.9.2",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/keyring": "^10.1.14",
|
||||
"@polkadot/types-augment": "9.9.2",
|
||||
"@polkadot/types-codec": "9.9.2",
|
||||
"@polkadot/types-create": "9.9.2",
|
||||
"@polkadot/util": "^10.1.14",
|
||||
"@polkadot/util-crypto": "^10.1.14",
|
||||
"rxjs": "^7.5.7"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/keyring": "^10.2.1",
|
||||
"@polkadot/types-augment": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/types-create": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"@polkadot/util-crypto": "^10.2.1",
|
||||
"rxjs": "^7.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.1.14",
|
||||
"@polkadot/types-support": "9.9.2"
|
||||
"@polkadot/keyring": "^10.2.1",
|
||||
"@polkadot/types-support": "9.10.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { BlockHash } from '../interfaces/chain';
|
||||
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics';
|
||||
import type { Hash } from '../interfaces/runtime';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber } from '../types';
|
||||
|
||||
import { AbstractBase, Raw } from '@polkadot/types-codec';
|
||||
import { AbstractBase, Bytes } from '@polkadot/types-codec';
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { DEFAULT_VERSION } from './constants';
|
||||
@@ -49,9 +49,9 @@ export class GenericExtrinsicPayload extends AbstractBase<ExtrinsicPayloadVx> {
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The block [[Hash]] the signature applies to (mortal/immortal)
|
||||
* @description The block [[BlockHash]] the signature applies to (mortal/immortal)
|
||||
*/
|
||||
public get blockHash (): Hash {
|
||||
public get blockHash (): BlockHash {
|
||||
return this.inner.blockHash;
|
||||
}
|
||||
|
||||
@@ -63,17 +63,17 @@ export class GenericExtrinsicPayload extends AbstractBase<ExtrinsicPayloadVx> {
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The genesis block [[Hash]] the signature applies to
|
||||
* @description The genesis block [[BlockHash]] the signature applies to
|
||||
*/
|
||||
public get genesisHash (): Hash {
|
||||
public get genesisHash (): BlockHash {
|
||||
// NOTE only v3+
|
||||
return this.inner.genesisHash || this.registry.createTypeUnsafe('Hash', []);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The [[Raw]] contained in the payload
|
||||
* @description The [[Bytes]] contained in the payload
|
||||
*/
|
||||
public get method (): Raw {
|
||||
public get method (): Bytes {
|
||||
return this.inner.method;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { Address, Call, ExtrinsicEra, Hash } from '../interfaces';
|
||||
import type { Address, BlockHash, Call, ExtrinsicEra, Hash } from '../interfaces';
|
||||
import type { Codec, ICompact, INumber, IRuntimeVersion, ISignerPayload, SignerPayloadJSON, SignerPayloadRaw } from '../types';
|
||||
|
||||
import { Option, Struct, Text, Vec } from '@polkadot/types-codec';
|
||||
@@ -67,7 +67,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
return this.getT('address');
|
||||
}
|
||||
|
||||
get blockHash (): Hash {
|
||||
get blockHash (): BlockHash {
|
||||
return this.getT('blockHash');
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ export class GenericSignerPayload extends Struct implements ISignerPayload, Sign
|
||||
return this.getT('era');
|
||||
}
|
||||
|
||||
get genesisHash (): Hash {
|
||||
get genesisHash (): BlockHash {
|
||||
return this.getT('genesisHash');
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
import type { SignOptions } from '@polkadot/keyring/types';
|
||||
import type { Inspect, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { BlockHash } from '../../interfaces/chain';
|
||||
import type { ExtrinsicEra } from '../../interfaces/extrinsics';
|
||||
import type { Hash } from '../../interfaces/runtime';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types';
|
||||
|
||||
import { Bytes, Enum, Struct } from '@polkadot/types-codec';
|
||||
@@ -45,9 +45,9 @@ export class GenericExtrinsicPayloadV4 extends Struct {
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The block [[Hash]] the signature applies to (mortal/immortal)
|
||||
* @description The block [[BlockHash]] the signature applies to (mortal/immortal)
|
||||
*/
|
||||
public get blockHash (): Hash {
|
||||
public get blockHash (): BlockHash {
|
||||
return this.getT('blockHash');
|
||||
}
|
||||
|
||||
@@ -59,9 +59,9 @@ export class GenericExtrinsicPayloadV4 extends Struct {
|
||||
}
|
||||
|
||||
/**
|
||||
* @description The genesis [[Hash]] the signature applies to (mortal/immortal)
|
||||
* @description The genesis [[BlockHash]] the signature applies to (mortal/immortal)
|
||||
*/
|
||||
public get genesisHash (): Hash {
|
||||
public get genesisHash (): BlockHash {
|
||||
return this.getT('genesisHash');
|
||||
}
|
||||
|
||||
@@ -101,8 +101,7 @@ export class GenericExtrinsicPayloadV4 extends Struct {
|
||||
}
|
||||
|
||||
/**
|
||||
* @description
|
||||
* The (optional) asset id for this signature for chains that support transaction fees in assets
|
||||
* @description The (optional) asset id for this signature for chains that support transaction fees in assets
|
||||
*/
|
||||
public get assetId (): IOption<INumber> {
|
||||
return this.getT('assetId');
|
||||
@@ -116,7 +115,7 @@ export class GenericExtrinsicPayloadV4 extends Struct {
|
||||
// don't want the method (Bytes) to have the length prefix included. This
|
||||
// means that the data-as-signed is un-decodable, but is also doesn't need
|
||||
// the extra information, only the pure data (and is not decoded) ...
|
||||
// The same applies to V1..V3, if we have a V5, carrythis comment
|
||||
// The same applies to V1..V3, if we have a V5, carry this comment
|
||||
return sign(this.registry, signerPair, this.toU8a({ method: true }), this.#signOptions);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export const AllConvictions = [
|
||||
'Locked4x',
|
||||
// 5x votes, locked for 16x...
|
||||
'Locked5x',
|
||||
/// 6x votes, locked for 32x...
|
||||
// 6x votes, locked for 32x...
|
||||
'Locked6x'
|
||||
];
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.9.2' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
Reference in New Issue
Block a user