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 | ||
|
|
2da085afb8 | ||
|
|
973cc13873 | ||
|
|
61e5f91e5b | ||
|
|
8c52f050fe | ||
|
|
d1bf4402cf | ||
|
|
d3eb1de49b |
@@ -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,39 @@
|
||||
# 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:
|
||||
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 9.9.1 Nov 20, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
3287 Jaco 9.9.1 (#5349)
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"versions": {
|
||||
"git": "9.9.1",
|
||||
"npm": "9.9.1"
|
||||
"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.161",
|
||||
"@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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api-base": "9.9.1",
|
||||
"@polkadot/rpc-augment": "9.9.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-augment": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13"
|
||||
"@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.1"
|
||||
"@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.1' };
|
||||
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]>;
|
||||
/**
|
||||
|
||||
@@ -25,8 +25,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
maxAnnouncementsCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum number of members per member role. Should not exceed the sum of
|
||||
* `MaxFounders` and `MaxFellows`.
|
||||
* The maximum number of members per member role.
|
||||
**/
|
||||
maxMembersCount: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -240,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
|
||||
**/
|
||||
|
||||
@@ -46,9 +46,9 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
BadWitness: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Founders must be provided to initialize the Alliance.
|
||||
* Fellows must be provided to initialize the Alliance.
|
||||
**/
|
||||
FoundersMissing: AugmentedError<ApiType>;
|
||||
FellowsMissing: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Balance is insufficient for the required deposit.
|
||||
**/
|
||||
@@ -65,10 +65,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Account is not an ally.
|
||||
**/
|
||||
NotAlly: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account is not a founder.
|
||||
**/
|
||||
NotFounder: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Item has not been deemed unscrupulous.
|
||||
**/
|
||||
@@ -77,10 +73,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Account is not a member.
|
||||
**/
|
||||
NotMember: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The proposal is not vetoable.
|
||||
**/
|
||||
NotVetoableProposal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account does not have voting rights.
|
||||
**/
|
||||
@@ -427,8 +419,13 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
CodeNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The contract's code was found to be invalid during validation or instrumentation.
|
||||
*
|
||||
* The most likely cause of this is that an API was used which is not supported by the
|
||||
* node. This hapens if an older node is used with a new version of ink!. Try updating
|
||||
* your node to the newest available version.
|
||||
*
|
||||
* A more detailed error can be found on the node console if debug messages are enabled
|
||||
* or in the debug buffer which is returned to RPC clients.
|
||||
* by supplying `-lruntime::contracts=debug`.
|
||||
**/
|
||||
CodeRejected: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* Alliance disbanded. Includes number deleted members and unreserved deposits.
|
||||
**/
|
||||
AllianceDisbanded: AugmentedEvent<ApiType, [votingMembers: u32, allyMembers: u32, unreserved: u32], { votingMembers: u32, allyMembers: u32, unreserved: u32 }>;
|
||||
AllianceDisbanded: AugmentedEvent<ApiType, [fellowMembers: u32, allyMembers: u32, unreserved: u32], { fellowMembers: u32, allyMembers: u32, unreserved: u32 }>;
|
||||
/**
|
||||
* An ally has been elevated to Fellow.
|
||||
**/
|
||||
@@ -32,6 +32,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An on-chain announcement has been removed.
|
||||
**/
|
||||
AnnouncementRemoved: AugmentedEvent<ApiType, [announcement: PalletAllianceCid], { announcement: PalletAllianceCid }>;
|
||||
/**
|
||||
* A Fellow abdicated their voting rights. They are now an Ally.
|
||||
**/
|
||||
FellowAbdicated: AugmentedEvent<ApiType, [fellow: AccountId32], { fellow: AccountId32 }>;
|
||||
/**
|
||||
* A member has been kicked out with its deposit slashed.
|
||||
**/
|
||||
@@ -45,9 +49,9 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
MemberRetirementPeriodStarted: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||
/**
|
||||
* Some accounts have been initialized as members (founders/fellows/allies).
|
||||
* Some accounts have been initialized as members (fellows/allies).
|
||||
**/
|
||||
MembersInitialized: AugmentedEvent<ApiType, [founders: Vec<AccountId32>, fellows: Vec<AccountId32>, allies: Vec<AccountId32>], { founders: Vec<AccountId32>, fellows: Vec<AccountId32>, allies: Vec<AccountId32> }>;
|
||||
MembersInitialized: AugmentedEvent<ApiType, [fellows: Vec<AccountId32>, allies: Vec<AccountId32>], { fellows: Vec<AccountId32>, allies: Vec<AccountId32> }>;
|
||||
/**
|
||||
* An account has been added as an Ally and reserved its deposit.
|
||||
**/
|
||||
|
||||
@@ -30,7 +30,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Maps member type to members of each type.
|
||||
**/
|
||||
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
||||
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
||||
/**
|
||||
* A set of members who gave a retirement notice. They can retire after the end of retirement
|
||||
* period stored as a future block number.
|
||||
@@ -38,9 +38,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* The IPFS CID of the alliance rule.
|
||||
* Founders and fellows can propose a new rule with a super-majority.
|
||||
*
|
||||
* Any founder has a special one-vote veto right to the rule setting.
|
||||
* Fellows can propose a new rule with a super-majority.
|
||||
**/
|
||||
rule: AugmentedQuery<ApiType, () => Observable<Option<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -273,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.
|
||||
@@ -1713,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.
|
||||
**/
|
||||
|
||||
@@ -19,6 +19,12 @@ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = Submittab
|
||||
declare module '@polkadot/api-base/types/submittable' {
|
||||
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
||||
alliance: {
|
||||
/**
|
||||
* Abdicate one's position as a voting member and just be an Ally. May be used by Fellows
|
||||
* who do not want to leave the Alliance but do not have the capacity to participate
|
||||
* operationally for some time.
|
||||
**/
|
||||
abdicateFellowStatus: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Add accounts or websites to the list of unscrupulous items.
|
||||
**/
|
||||
@@ -30,13 +36,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
||||
*
|
||||
* Requires the sender to be a founder or fellow.
|
||||
* Must be called by a Fellow.
|
||||
**/
|
||||
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
||||
/**
|
||||
* Close a vote that is either approved, disapproved, or whose voting period has ended.
|
||||
*
|
||||
* Requires the sender to be a founder or fellow.
|
||||
* Must be called by a Fellow.
|
||||
**/
|
||||
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
||||
/**
|
||||
@@ -44,9 +50,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Witness data must be set.
|
||||
**/
|
||||
disband: AugmentedSubmittable<(witness: PalletAllianceDisbandWitness | { votingMembers?: any; allyMembers?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceDisbandWitness]>;
|
||||
disband: AugmentedSubmittable<(witness: PalletAllianceDisbandWitness | { fellowMembers?: any; allyMembers?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceDisbandWitness]>;
|
||||
/**
|
||||
* Elevate an ally to fellow.
|
||||
* Elevate an Ally to Fellow.
|
||||
**/
|
||||
elevateAlly: AugmentedSubmittable<(ally: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
@@ -55,30 +61,30 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
giveRetirementNotice: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Initialize the Alliance, onboard founders, fellows, and allies.
|
||||
* Initialize the Alliance, onboard fellows and allies.
|
||||
*
|
||||
* The Alliance must be empty, and the call must provide some founding members.
|
||||
*
|
||||
* Founders must be not empty.
|
||||
* The Alliance must be empty.
|
||||
* Must be called by the Root origin.
|
||||
**/
|
||||
initMembers: AugmentedSubmittable<(founders: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>, Vec<AccountId32>]>;
|
||||
initMembers: AugmentedSubmittable<(fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>]>;
|
||||
/**
|
||||
* Submit oneself for candidacy. A fixed deposit is reserved.
|
||||
**/
|
||||
joinAlliance: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Kick a member from the alliance and slash its deposit.
|
||||
* Kick a member from the Alliance and slash its deposit.
|
||||
**/
|
||||
kickMember: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* A founder or fellow can nominate someone to join the alliance as an Ally.
|
||||
* There is no deposit required to the nominator or nominee.
|
||||
* A Fellow can nominate someone to join the alliance as an Ally. There is no deposit
|
||||
* required from the nominator or nominee.
|
||||
**/
|
||||
nominateAlly: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
* Add a new proposal to be voted on.
|
||||
*
|
||||
* Requires the sender to be a founder or fellow.
|
||||
* Must be called by a Fellow.
|
||||
**/
|
||||
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
||||
/**
|
||||
@@ -86,29 +92,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
removeAnnouncement: AugmentedSubmittable<(announcement: PalletAllianceCid | { version?: any; codec?: any; hash_?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
|
||||
/**
|
||||
* Deem an item no longer unscrupulous.
|
||||
* Deem some items no longer unscrupulous.
|
||||
**/
|
||||
removeUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | { AccountId: any } | { Website: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
|
||||
/**
|
||||
* As a member, retire from the alliance and unreserve the deposit.
|
||||
* This can only be done once you have `give_retirement_notice` and it has expired.
|
||||
* As a member, retire from the Alliance and unreserve the deposit.
|
||||
*
|
||||
* This can only be done once you have called `give_retirement_notice` and the
|
||||
* `RetirementPeriod` has passed.
|
||||
**/
|
||||
retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Set a new IPFS CID to the alliance rule.
|
||||
**/
|
||||
setRule: AugmentedSubmittable<(rule: PalletAllianceCid | { version?: any; codec?: any; hash_?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
|
||||
/**
|
||||
* Veto a proposal about `set_rule` and `elevate_ally`, close, and remove it from the
|
||||
* system, regardless of its current state.
|
||||
*
|
||||
* Must be called by a founder.
|
||||
**/
|
||||
veto: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||
/**
|
||||
* Add an aye or nay vote for the sender to the given proposal.
|
||||
*
|
||||
* Requires the sender to be a founder or fellow.
|
||||
* Must be called by a Fellow.
|
||||
**/
|
||||
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
||||
/**
|
||||
@@ -402,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.
|
||||
@@ -439,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>]>;
|
||||
/**
|
||||
@@ -644,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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-core": "9.9.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "9.9.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/types-create": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"@polkadot/util-crypto": "^10.1.13",
|
||||
"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.1",
|
||||
"@polkadot/keyring": "^10.1.13"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "9.9.1",
|
||||
"@polkadot/api-augment": "9.9.1",
|
||||
"@polkadot/api-base": "9.9.1",
|
||||
"@polkadot/rpc-core": "9.9.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"@polkadot/util-crypto": "^10.1.13",
|
||||
"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.1",
|
||||
"@polkadot/api-augment": "9.9.1",
|
||||
"@polkadot/rpc-augment": "9.9.1",
|
||||
"@polkadot/rpc-provider": "9.9.1",
|
||||
"@polkadot/types-support": "9.9.1"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api-augment": "9.9.1",
|
||||
"@polkadot/api-base": "9.9.1",
|
||||
"@polkadot/api-derive": "9.9.1",
|
||||
"@polkadot/keyring": "^10.1.13",
|
||||
"@polkadot/rpc-augment": "9.9.1",
|
||||
"@polkadot/rpc-core": "9.9.1",
|
||||
"@polkadot/rpc-provider": "9.9.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-augment": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/types-create": "9.9.1",
|
||||
"@polkadot/types-known": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"@polkadot/util-crypto": "^10.1.13",
|
||||
"@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.1",
|
||||
"@polkadot/types-support": "9.9.1"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-core": "9.9.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-augment": "9.9.1",
|
||||
"@polkadot/rpc-provider": "9.9.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"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.13",
|
||||
"@polkadot/rpc-augment": "9.9.1"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/keyring": "^10.1.13",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-support": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"@polkadot/util-crypto": "^10.1.13",
|
||||
"@polkadot/x-fetch": "^10.1.13",
|
||||
"@polkadot/x-global": "^10.1.13",
|
||||
"@polkadot/x-ws": "^10.1.13",
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"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.1",
|
||||
"@polkadot/api-augment": "9.9.1",
|
||||
"@polkadot/rpc-augment": "9.9.1",
|
||||
"@polkadot/rpc-provider": "9.9.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-augment": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/types-create": "9.9.1",
|
||||
"@polkadot/types-support": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"@polkadot/util-crypto": "^10.1.13",
|
||||
"@polkadot/x-ws": "^10.1.13",
|
||||
"@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.13"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/types": "9.10.2",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3504,9 +3504,6 @@ export default {
|
||||
index: 'Compact<u32>',
|
||||
approve: 'bool',
|
||||
},
|
||||
veto: {
|
||||
proposalHash: 'H256',
|
||||
},
|
||||
close_old_weight: {
|
||||
proposalHash: 'H256',
|
||||
index: 'Compact<u32>',
|
||||
@@ -3514,7 +3511,6 @@ export default {
|
||||
lengthBound: 'Compact<u32>',
|
||||
},
|
||||
init_members: {
|
||||
founders: 'Vec<AccountId32>',
|
||||
fellows: 'Vec<AccountId32>',
|
||||
allies: 'Vec<AccountId32>',
|
||||
},
|
||||
@@ -3552,15 +3548,16 @@ export default {
|
||||
proposalHash: 'H256',
|
||||
index: 'Compact<u32>',
|
||||
proposalWeightBound: 'SpWeightsWeightV2Weight',
|
||||
lengthBound: 'Compact<u32>'
|
||||
}
|
||||
lengthBound: 'Compact<u32>',
|
||||
},
|
||||
abdicate_fellow_status: 'Null'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup330: pallet_alliance::types::DisbandWitness
|
||||
**/
|
||||
PalletAllianceDisbandWitness: {
|
||||
votingMembers: 'Compact<u32>',
|
||||
fellowMembers: 'Compact<u32>',
|
||||
allyMembers: 'Compact<u32>'
|
||||
},
|
||||
/**
|
||||
@@ -3823,7 +3820,6 @@ export default {
|
||||
announcement: 'PalletAllianceCid',
|
||||
},
|
||||
MembersInitialized: {
|
||||
founders: 'Vec<AccountId32>',
|
||||
fellows: 'Vec<AccountId32>',
|
||||
allies: 'Vec<AccountId32>',
|
||||
},
|
||||
@@ -3853,9 +3849,12 @@ export default {
|
||||
items: 'Vec<PalletAllianceUnscrupulousItem>',
|
||||
},
|
||||
AllianceDisbanded: {
|
||||
votingMembers: 'u32',
|
||||
fellowMembers: 'u32',
|
||||
allyMembers: 'u32',
|
||||
unreserved: 'u32'
|
||||
unreserved: 'u32',
|
||||
},
|
||||
FellowAbdicated: {
|
||||
fellow: 'AccountId32'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -4653,7 +4652,7 @@ export default {
|
||||
hashBlake2128PerByte: 'u64',
|
||||
ecdsaRecover: 'u64',
|
||||
ecdsaToEthAddress: 'u64',
|
||||
reentrantCount: 'u64',
|
||||
reentranceCount: 'u64',
|
||||
accountReentranceCount: 'u64'
|
||||
},
|
||||
/**
|
||||
@@ -5301,13 +5300,13 @@ export default {
|
||||
* Lookup648: pallet_alliance::MemberRole
|
||||
**/
|
||||
PalletAllianceMemberRole: {
|
||||
_enum: ['Founder', 'Fellow', 'Ally', 'Retiring']
|
||||
_enum: ['Fellow', 'Ally', 'Retiring']
|
||||
},
|
||||
/**
|
||||
* Lookup652: pallet_alliance::pallet::Error<T, I>
|
||||
**/
|
||||
PalletAllianceError: {
|
||||
_enum: ['AllianceNotYetInitialized', 'AllianceAlreadyInitialized', 'AlreadyMember', 'NotMember', 'NotAlly', 'NotFounder', 'NoVotingRights', 'AlreadyElevated', 'AlreadyUnscrupulous', 'AccountNonGrata', 'NotListedAsUnscrupulous', 'TooManyUnscrupulousItems', 'TooLongWebsiteUrl', 'InsufficientFunds', 'WithoutIdentityDisplayAndWebsite', 'WithoutGoodIdentityJudgement', 'MissingProposalHash', 'NotVetoableProposal', 'MissingAnnouncement', 'TooManyMembers', 'TooManyAnnouncements', 'BadWitness', 'AlreadyRetiring', 'RetirementNoticeNotGiven', 'RetirementPeriodNotPassed', 'FoundersMissing']
|
||||
_enum: ['AllianceNotYetInitialized', 'AllianceAlreadyInitialized', 'AlreadyMember', 'NotMember', 'NotAlly', 'NoVotingRights', 'AlreadyElevated', 'AlreadyUnscrupulous', 'AccountNonGrata', 'NotListedAsUnscrupulous', 'TooManyUnscrupulousItems', 'TooLongWebsiteUrl', 'InsufficientFunds', 'WithoutIdentityDisplayAndWebsite', 'WithoutGoodIdentityJudgement', 'MissingProposalHash', 'MissingAnnouncement', 'TooManyMembers', 'TooManyAnnouncements', 'BadWitness', 'AlreadyRetiring', 'RetirementNoticeNotGiven', 'RetirementPeriodNotPassed', 'FellowsMissing']
|
||||
},
|
||||
/**
|
||||
* Lookup653: pallet_nomination_pools::PoolMember<T>
|
||||
|
||||
@@ -3752,10 +3752,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly index: Compact<u32>;
|
||||
readonly approve: bool;
|
||||
} & Struct;
|
||||
readonly isVeto: boolean;
|
||||
readonly asVeto: {
|
||||
readonly proposalHash: H256;
|
||||
} & Struct;
|
||||
readonly isCloseOldWeight: boolean;
|
||||
readonly asCloseOldWeight: {
|
||||
readonly proposalHash: H256;
|
||||
@@ -3765,7 +3761,6 @@ declare module '@polkadot/types/lookup' {
|
||||
} & Struct;
|
||||
readonly isInitMembers: boolean;
|
||||
readonly asInitMembers: {
|
||||
readonly founders: Vec<AccountId32>;
|
||||
readonly fellows: Vec<AccountId32>;
|
||||
readonly allies: Vec<AccountId32>;
|
||||
} & Struct;
|
||||
@@ -3815,12 +3810,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly proposalWeightBound: SpWeightsWeightV2Weight;
|
||||
readonly lengthBound: Compact<u32>;
|
||||
} & Struct;
|
||||
readonly type: 'Propose' | 'Vote' | 'Veto' | 'CloseOldWeight' | 'InitMembers' | 'Disband' | 'SetRule' | 'Announce' | 'RemoveAnnouncement' | 'JoinAlliance' | 'NominateAlly' | 'ElevateAlly' | 'GiveRetirementNotice' | 'Retire' | 'KickMember' | 'AddUnscrupulousItems' | 'RemoveUnscrupulousItems' | 'Close';
|
||||
readonly isAbdicateFellowStatus: boolean;
|
||||
readonly type: 'Propose' | 'Vote' | 'CloseOldWeight' | 'InitMembers' | 'Disband' | 'SetRule' | 'Announce' | 'RemoveAnnouncement' | 'JoinAlliance' | 'NominateAlly' | 'ElevateAlly' | 'GiveRetirementNotice' | 'Retire' | 'KickMember' | 'AddUnscrupulousItems' | 'RemoveUnscrupulousItems' | 'Close' | 'AbdicateFellowStatus';
|
||||
}
|
||||
|
||||
/** @name PalletAllianceDisbandWitness (330) */
|
||||
interface PalletAllianceDisbandWitness extends Struct {
|
||||
readonly votingMembers: Compact<u32>;
|
||||
readonly fellowMembers: Compact<u32>;
|
||||
readonly allyMembers: Compact<u32>;
|
||||
}
|
||||
|
||||
@@ -4090,7 +4086,6 @@ declare module '@polkadot/types/lookup' {
|
||||
} & Struct;
|
||||
readonly isMembersInitialized: boolean;
|
||||
readonly asMembersInitialized: {
|
||||
readonly founders: Vec<AccountId32>;
|
||||
readonly fellows: Vec<AccountId32>;
|
||||
readonly allies: Vec<AccountId32>;
|
||||
} & Struct;
|
||||
@@ -4128,11 +4123,15 @@ declare module '@polkadot/types/lookup' {
|
||||
} & Struct;
|
||||
readonly isAllianceDisbanded: boolean;
|
||||
readonly asAllianceDisbanded: {
|
||||
readonly votingMembers: u32;
|
||||
readonly fellowMembers: u32;
|
||||
readonly allyMembers: u32;
|
||||
readonly unreserved: u32;
|
||||
} & Struct;
|
||||
readonly type: 'NewRuleSet' | 'Announced' | 'AnnouncementRemoved' | 'MembersInitialized' | 'NewAllyJoined' | 'AllyElevated' | 'MemberRetirementPeriodStarted' | 'MemberRetired' | 'MemberKicked' | 'UnscrupulousItemAdded' | 'UnscrupulousItemRemoved' | 'AllianceDisbanded';
|
||||
readonly isFellowAbdicated: boolean;
|
||||
readonly asFellowAbdicated: {
|
||||
readonly fellow: AccountId32;
|
||||
} & Struct;
|
||||
readonly type: 'NewRuleSet' | 'Announced' | 'AnnouncementRemoved' | 'MembersInitialized' | 'NewAllyJoined' | 'AllyElevated' | 'MemberRetirementPeriodStarted' | 'MemberRetired' | 'MemberKicked' | 'UnscrupulousItemAdded' | 'UnscrupulousItemRemoved' | 'AllianceDisbanded' | 'FellowAbdicated';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsEvent (358) */
|
||||
@@ -5030,7 +5029,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly hashBlake2128PerByte: u64;
|
||||
readonly ecdsaRecover: u64;
|
||||
readonly ecdsaToEthAddress: u64;
|
||||
readonly reentrantCount: u64;
|
||||
readonly reentranceCount: u64;
|
||||
readonly accountReentranceCount: u64;
|
||||
}
|
||||
|
||||
@@ -5866,11 +5865,10 @@ declare module '@polkadot/types/lookup' {
|
||||
|
||||
/** @name PalletAllianceMemberRole (648) */
|
||||
interface PalletAllianceMemberRole extends Enum {
|
||||
readonly isFounder: boolean;
|
||||
readonly isFellow: boolean;
|
||||
readonly isAlly: boolean;
|
||||
readonly isRetiring: boolean;
|
||||
readonly type: 'Founder' | 'Fellow' | 'Ally' | 'Retiring';
|
||||
readonly type: 'Fellow' | 'Ally' | 'Retiring';
|
||||
}
|
||||
|
||||
/** @name PalletAllianceError (652) */
|
||||
@@ -5880,7 +5878,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isAlreadyMember: boolean;
|
||||
readonly isNotMember: boolean;
|
||||
readonly isNotAlly: boolean;
|
||||
readonly isNotFounder: boolean;
|
||||
readonly isNoVotingRights: boolean;
|
||||
readonly isAlreadyElevated: boolean;
|
||||
readonly isAlreadyUnscrupulous: boolean;
|
||||
@@ -5892,7 +5889,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isWithoutIdentityDisplayAndWebsite: boolean;
|
||||
readonly isWithoutGoodIdentityJudgement: boolean;
|
||||
readonly isMissingProposalHash: boolean;
|
||||
readonly isNotVetoableProposal: boolean;
|
||||
readonly isMissingAnnouncement: boolean;
|
||||
readonly isTooManyMembers: boolean;
|
||||
readonly isTooManyAnnouncements: boolean;
|
||||
@@ -5900,8 +5896,8 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isAlreadyRetiring: boolean;
|
||||
readonly isRetirementNoticeNotGiven: boolean;
|
||||
readonly isRetirementPeriodNotPassed: boolean;
|
||||
readonly isFoundersMissing: boolean;
|
||||
readonly type: 'AllianceNotYetInitialized' | 'AllianceAlreadyInitialized' | 'AlreadyMember' | 'NotMember' | 'NotAlly' | 'NotFounder' | 'NoVotingRights' | 'AlreadyElevated' | 'AlreadyUnscrupulous' | 'AccountNonGrata' | 'NotListedAsUnscrupulous' | 'TooManyUnscrupulousItems' | 'TooLongWebsiteUrl' | 'InsufficientFunds' | 'WithoutIdentityDisplayAndWebsite' | 'WithoutGoodIdentityJudgement' | 'MissingProposalHash' | 'NotVetoableProposal' | 'MissingAnnouncement' | 'TooManyMembers' | 'TooManyAnnouncements' | 'BadWitness' | 'AlreadyRetiring' | 'RetirementNoticeNotGiven' | 'RetirementPeriodNotPassed' | 'FoundersMissing';
|
||||
readonly isFellowsMissing: boolean;
|
||||
readonly type: 'AllianceNotYetInitialized' | 'AllianceAlreadyInitialized' | 'AlreadyMember' | 'NotMember' | 'NotAlly' | 'NoVotingRights' | 'AlreadyElevated' | 'AlreadyUnscrupulous' | 'AccountNonGrata' | 'NotListedAsUnscrupulous' | 'TooManyUnscrupulousItems' | 'TooLongWebsiteUrl' | 'InsufficientFunds' | 'WithoutIdentityDisplayAndWebsite' | 'WithoutGoodIdentityJudgement' | 'MissingProposalHash' | 'MissingAnnouncement' | 'TooManyMembers' | 'TooManyAnnouncements' | 'BadWitness' | 'AlreadyRetiring' | 'RetirementNoticeNotGiven' | 'RetirementPeriodNotPassed' | 'FellowsMissing';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsPoolMember (653) */
|
||||
|
||||
@@ -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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"@polkadot/x-bigint": "^10.1.13"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/util": "^10.2.1",
|
||||
"@polkadot/x-bigint": "^10.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-augment": "9.9.1",
|
||||
"@polkadot/types-support": "9.9.1",
|
||||
"@polkadot/util-crypto": "^10.1.13"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13"
|
||||
"@babel/runtime": "^7.20.6",
|
||||
"@polkadot/types-codec": "9.10.2",
|
||||
"@polkadot/util": "^10.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.9.1"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/networks": "^10.1.13",
|
||||
"@polkadot/types": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/types-create": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13"
|
||||
"@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.1"
|
||||
"@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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/util": "^10.1.13"
|
||||
"@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",
|
||||
@@ -3159,7 +3181,7 @@
|
||||
{
|
||||
"name": "Schedule",
|
||||
"type": 496,
|
||||
"value": "0x040000000000010000800000001000000000100000000100002000000020000000004000000300000000000000561100001b490000e1480000bd160000402d000042150000b9180000bc20000026000000f0de0000f01301009f030000e4110000d8130000d112000027280000bc2a0000241300000bf5ae000b1100007311000078110000ef110000cd100000a7100000541100003f150000f01400000a1500003c150000c61400001f15000000150000a01500001f150000fe1400001a1400004f1400000d140000372d0000f42b0000992e0000e92a00006d15000024140000f2130000e814000031150000f114000009150000ef14000015ad0600000000006fb8a50100000000ff75b00100000000c45b070000000000e9e302000000000018b106000000000078a1060000000000d5eb1400000000004d97060000000000618c060000000000b8840600000000000e8b060000000000416e1400000000002708030000000000004506000000000074000000000000006a521f0000000000b500000000000000d2a2722e0000000023a5190000000000c0ed2c0000000000e0799407000000002603000000000000d81b050000000000ab61c50700000000352e000000000000ff2c000000000000760e671000000000d990c20700000000172d000000000000aea6bb01000000007f0b0000000000007a1dc00100000000b10f000000000000feffc607000000006d3100000000000078077808000000007ed1c11b00000000afc71b15000000004d5a7808000000004cda010000000000505ee63500000000f505000000000000bf0500000000000060fb0a0000000000580f0000000000007f7d0d0000000000c00b000000000000dd72090000000000b8040000000000005f22090000000000b6040000000000001c5a35020000000011728f01000000007df00200000000008424070000000000",
|
||||
"value": "0x040000000000010000800000001000000000100000000100002000000020000000004000000400000000000000bb0600001d1b0000fd140000780a0000621e00000c070000c10a0000ee150000300000004e4800008a5900005700000098070000260800001c070000e3180000c11900006f1400008413b000510600009006000098060000ff0600002e0600003f0600003b060000660800005a080000af080000d3080000fb080000dc0800007d080000ad08000055080000aa080000ed070000b7070000b90700006d200000e21d00006d220000f81d000062080000e00a00004f080000fe08000083080000880800007e0800009308000030160300000000005d6fa20100000000aa86aa01000000000cc1030000000000a416020000000000cd23030000000000f8090300000000005317110000000000f200030000000000000603000000000028fa020000000000f807030000000000d11b1000000000005d84010000000000959b0200000000007500000000000000ec84160000000000b8000000000000002b035a2e00000000fbc4140000000000d3f1280000000000fb31940700000000390300000000000080710200000000003a2cc00700000000fd2d000000000000c52c00000000000023536110000000008a06bf0700000000e72c000000000000df3cb701000000004d0b000000000000074aba01000000009c0f0000000000000857c10700000000343100000000000007596e080000000082f5601e00000000b28ace1700000000e6845e0800000000fadb0100000000007eb5933800000000f505000000000000d6050000000000009e010800000000006e0f000000000000f9240a0000000000d10b000000000000fef7050000000000c00400000000000047e3050000000000c004000000000000bd303d0200000000bfa08c0100000000b8170200000000006cd4040000000000",
|
||||
"docs": [
|
||||
" Cost schedule and limits."
|
||||
]
|
||||
@@ -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": {
|
||||
@@ -6281,9 +6337,7 @@
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
" The IPFS CID of the alliance rule.",
|
||||
" Founders and fellows can propose a new rule with a super-majority.",
|
||||
"",
|
||||
" Any founder has a special one-vote veto right to the rule setting."
|
||||
" Fellows can propose a new rule with a super-majority."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -6418,8 +6472,7 @@
|
||||
"type": 4,
|
||||
"value": "0x64000000",
|
||||
"docs": [
|
||||
" The maximum number of members per member role. Should not exceed the sum of",
|
||||
" `MaxFounders` and `MaxFellows`."
|
||||
" The maximum number of members per member role."
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
@@ -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": []
|
||||
},
|
||||
{
|
||||
@@ -26308,7 +26309,7 @@
|
||||
"docs": [
|
||||
"Add a new proposal to be voted on.",
|
||||
"",
|
||||
"Requires the sender to be a founder or fellow."
|
||||
"Must be called by a Fellow."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -26337,25 +26338,7 @@
|
||||
"docs": [
|
||||
"Add an aye or nay vote for the sender to the given proposal.",
|
||||
"",
|
||||
"Requires the sender to be a founder or fellow."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "veto",
|
||||
"fields": [
|
||||
{
|
||||
"name": "proposal_hash",
|
||||
"type": 11,
|
||||
"typeName": "T::Hash",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 2,
|
||||
"docs": [
|
||||
"Veto a proposal about `set_rule` and `elevate_ally`, close, and remove it from the",
|
||||
"system, regardless of its current state.",
|
||||
"",
|
||||
"Must be called by a founder."
|
||||
"Must be called by a Fellow."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -26386,22 +26369,16 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 3,
|
||||
"index": 2,
|
||||
"docs": [
|
||||
"Close a vote that is either approved, disapproved, or whose voting period has ended.",
|
||||
"",
|
||||
"Requires the sender to be a founder or fellow."
|
||||
"Must be called by a Fellow."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "init_members",
|
||||
"fields": [
|
||||
{
|
||||
"name": "founders",
|
||||
"type": 79,
|
||||
"typeName": "Vec<T::AccountId>",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "fellows",
|
||||
"type": 79,
|
||||
@@ -26415,12 +26392,12 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 4,
|
||||
"index": 3,
|
||||
"docs": [
|
||||
"Initialize the Alliance, onboard founders, fellows, and allies.",
|
||||
"Initialize the Alliance, onboard fellows and allies.",
|
||||
"",
|
||||
"The Alliance must be empty, and the call must provide some founding members.",
|
||||
"",
|
||||
"Founders must be not empty.",
|
||||
"The Alliance must be empty.",
|
||||
"Must be called by the Root origin."
|
||||
]
|
||||
},
|
||||
@@ -26434,7 +26411,7 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 5,
|
||||
"index": 4,
|
||||
"docs": [
|
||||
"Disband the Alliance, remove all active members and unreserve deposits.",
|
||||
"",
|
||||
@@ -26451,7 +26428,7 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 6,
|
||||
"index": 5,
|
||||
"docs": [
|
||||
"Set a new IPFS CID to the alliance rule."
|
||||
]
|
||||
@@ -26466,7 +26443,7 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 7,
|
||||
"index": 6,
|
||||
"docs": [
|
||||
"Make an announcement of a new IPFS CID about alliance issues."
|
||||
]
|
||||
@@ -26481,7 +26458,7 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 8,
|
||||
"index": 7,
|
||||
"docs": [
|
||||
"Remove an announcement."
|
||||
]
|
||||
@@ -26489,7 +26466,7 @@
|
||||
{
|
||||
"name": "join_alliance",
|
||||
"fields": [],
|
||||
"index": 9,
|
||||
"index": 8,
|
||||
"docs": [
|
||||
"Submit oneself for candidacy. A fixed deposit is reserved."
|
||||
]
|
||||
@@ -26504,10 +26481,10 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 10,
|
||||
"index": 9,
|
||||
"docs": [
|
||||
"A founder or fellow can nominate someone to join the alliance as an Ally.",
|
||||
"There is no deposit required to the nominator or nominee."
|
||||
"A Fellow can nominate someone to join the alliance as an Ally. There is no deposit",
|
||||
"required from the nominator or nominee."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -26520,15 +26497,15 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 11,
|
||||
"index": 10,
|
||||
"docs": [
|
||||
"Elevate an ally to fellow."
|
||||
"Elevate an Ally to Fellow."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "give_retirement_notice",
|
||||
"fields": [],
|
||||
"index": 12,
|
||||
"index": 11,
|
||||
"docs": [
|
||||
"As a member, give a retirement notice and start a retirement period required to pass in",
|
||||
"order to retire."
|
||||
@@ -26537,10 +26514,12 @@
|
||||
{
|
||||
"name": "retire",
|
||||
"fields": [],
|
||||
"index": 13,
|
||||
"index": 12,
|
||||
"docs": [
|
||||
"As a member, retire from the alliance and unreserve the deposit.",
|
||||
"This can only be done once you have `give_retirement_notice` and it has expired."
|
||||
"As a member, retire from the Alliance and unreserve the deposit.",
|
||||
"",
|
||||
"This can only be done once you have called `give_retirement_notice` and the",
|
||||
"`RetirementPeriod` has passed."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -26553,9 +26532,9 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 14,
|
||||
"index": 13,
|
||||
"docs": [
|
||||
"Kick a member from the alliance and slash its deposit."
|
||||
"Kick a member from the Alliance and slash its deposit."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -26568,7 +26547,7 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 15,
|
||||
"index": 14,
|
||||
"docs": [
|
||||
"Add accounts or websites to the list of unscrupulous items."
|
||||
]
|
||||
@@ -26583,9 +26562,9 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 16,
|
||||
"index": 15,
|
||||
"docs": [
|
||||
"Deem an item no longer unscrupulous."
|
||||
"Deem some items no longer unscrupulous."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -26616,11 +26595,21 @@
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 17,
|
||||
"index": 16,
|
||||
"docs": [
|
||||
"Close a vote that is either approved, disapproved, or whose voting period has ended.",
|
||||
"",
|
||||
"Requires the sender to be a founder or fellow."
|
||||
"Must be called by a Fellow."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "abdicate_fellow_status",
|
||||
"fields": [],
|
||||
"index": 17,
|
||||
"docs": [
|
||||
"Abdicate one's position as a voting member and just be an Ally. May be used by Fellows",
|
||||
"who do not want to leave the Alliance but do not have the capacity to participate",
|
||||
"operationally for some time."
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -26644,7 +26633,7 @@
|
||||
"composite": {
|
||||
"fields": [
|
||||
{
|
||||
"name": "voting_members",
|
||||
"name": "fellow_members",
|
||||
"type": 127,
|
||||
"typeName": "u32",
|
||||
"docs": []
|
||||
@@ -28724,12 +28713,6 @@
|
||||
{
|
||||
"name": "MembersInitialized",
|
||||
"fields": [
|
||||
{
|
||||
"name": "founders",
|
||||
"type": 79,
|
||||
"typeName": "Vec<T::AccountId>",
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "fellows",
|
||||
"type": 79,
|
||||
@@ -28745,7 +28728,7 @@
|
||||
],
|
||||
"index": 3,
|
||||
"docs": [
|
||||
"Some accounts have been initialized as members (founders/fellows/allies)."
|
||||
"Some accounts have been initialized as members (fellows/allies)."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -28881,7 +28864,7 @@
|
||||
"name": "AllianceDisbanded",
|
||||
"fields": [
|
||||
{
|
||||
"name": "voting_members",
|
||||
"name": "fellow_members",
|
||||
"type": 4,
|
||||
"typeName": "u32",
|
||||
"docs": []
|
||||
@@ -28903,6 +28886,21 @@
|
||||
"docs": [
|
||||
"Alliance disbanded. Includes number deleted members and unreserved deposits."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "FellowAbdicated",
|
||||
"fields": [
|
||||
{
|
||||
"name": "fellow",
|
||||
"type": 0,
|
||||
"typeName": "T::AccountId",
|
||||
"docs": []
|
||||
}
|
||||
],
|
||||
"index": 12,
|
||||
"docs": [
|
||||
"A Fellow abdicated their voting rights. They are now an Ally."
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -36051,7 +36049,7 @@
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "reentrant_count",
|
||||
"name": "reentrance_count",
|
||||
"type": 10,
|
||||
"typeName": "u64",
|
||||
"docs": []
|
||||
@@ -36330,8 +36328,13 @@
|
||||
"index": 28,
|
||||
"docs": [
|
||||
"The contract's code was found to be invalid during validation or instrumentation.",
|
||||
"",
|
||||
"The most likely cause of this is that an API was used which is not supported by the",
|
||||
"node. This hapens if an older node is used with a new version of ink!. Try updating",
|
||||
"your node to the newest available version.",
|
||||
"",
|
||||
"A more detailed error can be found on the node console if debug messages are enabled",
|
||||
"or in the debug buffer which is returned to RPC clients."
|
||||
"by supplying `-lruntime::contracts=debug`."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -43334,27 +43337,21 @@
|
||||
"variant": {
|
||||
"variants": [
|
||||
{
|
||||
"name": "Founder",
|
||||
"name": "Fellow",
|
||||
"fields": [],
|
||||
"index": 0,
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "Fellow",
|
||||
"name": "Ally",
|
||||
"fields": [],
|
||||
"index": 1,
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "Ally",
|
||||
"fields": [],
|
||||
"index": 2,
|
||||
"docs": []
|
||||
},
|
||||
{
|
||||
"name": "Retiring",
|
||||
"fields": [],
|
||||
"index": 3,
|
||||
"index": 2,
|
||||
"docs": []
|
||||
}
|
||||
]
|
||||
@@ -43505,18 +43502,10 @@
|
||||
"Account is not an ally."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "NotFounder",
|
||||
"fields": [],
|
||||
"index": 5,
|
||||
"docs": [
|
||||
"Account is not a founder."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "NoVotingRights",
|
||||
"fields": [],
|
||||
"index": 6,
|
||||
"index": 5,
|
||||
"docs": [
|
||||
"Account does not have voting rights."
|
||||
]
|
||||
@@ -43524,7 +43513,7 @@
|
||||
{
|
||||
"name": "AlreadyElevated",
|
||||
"fields": [],
|
||||
"index": 7,
|
||||
"index": 6,
|
||||
"docs": [
|
||||
"Account is already an elevated (fellow) member."
|
||||
]
|
||||
@@ -43532,7 +43521,7 @@
|
||||
{
|
||||
"name": "AlreadyUnscrupulous",
|
||||
"fields": [],
|
||||
"index": 8,
|
||||
"index": 7,
|
||||
"docs": [
|
||||
"Item is already listed as unscrupulous."
|
||||
]
|
||||
@@ -43540,7 +43529,7 @@
|
||||
{
|
||||
"name": "AccountNonGrata",
|
||||
"fields": [],
|
||||
"index": 9,
|
||||
"index": 8,
|
||||
"docs": [
|
||||
"Account has been deemed unscrupulous by the Alliance and is not welcome to join or be",
|
||||
"nominated."
|
||||
@@ -43549,7 +43538,7 @@
|
||||
{
|
||||
"name": "NotListedAsUnscrupulous",
|
||||
"fields": [],
|
||||
"index": 10,
|
||||
"index": 9,
|
||||
"docs": [
|
||||
"Item has not been deemed unscrupulous."
|
||||
]
|
||||
@@ -43557,7 +43546,7 @@
|
||||
{
|
||||
"name": "TooManyUnscrupulousItems",
|
||||
"fields": [],
|
||||
"index": 11,
|
||||
"index": 10,
|
||||
"docs": [
|
||||
"The number of unscrupulous items exceeds `MaxUnscrupulousItems`."
|
||||
]
|
||||
@@ -43565,7 +43554,7 @@
|
||||
{
|
||||
"name": "TooLongWebsiteUrl",
|
||||
"fields": [],
|
||||
"index": 12,
|
||||
"index": 11,
|
||||
"docs": [
|
||||
"Length of website URL exceeds `MaxWebsiteUrlLength`."
|
||||
]
|
||||
@@ -43573,7 +43562,7 @@
|
||||
{
|
||||
"name": "InsufficientFunds",
|
||||
"fields": [],
|
||||
"index": 13,
|
||||
"index": 12,
|
||||
"docs": [
|
||||
"Balance is insufficient for the required deposit."
|
||||
]
|
||||
@@ -43581,7 +43570,7 @@
|
||||
{
|
||||
"name": "WithoutIdentityDisplayAndWebsite",
|
||||
"fields": [],
|
||||
"index": 14,
|
||||
"index": 13,
|
||||
"docs": [
|
||||
"The account's identity does not have display field and website field."
|
||||
]
|
||||
@@ -43589,7 +43578,7 @@
|
||||
{
|
||||
"name": "WithoutGoodIdentityJudgement",
|
||||
"fields": [],
|
||||
"index": 15,
|
||||
"index": 14,
|
||||
"docs": [
|
||||
"The account's identity has no good judgement."
|
||||
]
|
||||
@@ -43597,23 +43586,15 @@
|
||||
{
|
||||
"name": "MissingProposalHash",
|
||||
"fields": [],
|
||||
"index": 16,
|
||||
"index": 15,
|
||||
"docs": [
|
||||
"The proposal hash is not found."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "NotVetoableProposal",
|
||||
"fields": [],
|
||||
"index": 17,
|
||||
"docs": [
|
||||
"The proposal is not vetoable."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MissingAnnouncement",
|
||||
"fields": [],
|
||||
"index": 18,
|
||||
"index": 16,
|
||||
"docs": [
|
||||
"The announcement is not found."
|
||||
]
|
||||
@@ -43621,7 +43602,7 @@
|
||||
{
|
||||
"name": "TooManyMembers",
|
||||
"fields": [],
|
||||
"index": 19,
|
||||
"index": 17,
|
||||
"docs": [
|
||||
"Number of members exceeds `MaxMembersCount`."
|
||||
]
|
||||
@@ -43629,7 +43610,7 @@
|
||||
{
|
||||
"name": "TooManyAnnouncements",
|
||||
"fields": [],
|
||||
"index": 20,
|
||||
"index": 18,
|
||||
"docs": [
|
||||
"Number of announcements exceeds `MaxAnnouncementsCount`."
|
||||
]
|
||||
@@ -43637,7 +43618,7 @@
|
||||
{
|
||||
"name": "BadWitness",
|
||||
"fields": [],
|
||||
"index": 21,
|
||||
"index": 19,
|
||||
"docs": [
|
||||
"Invalid witness data given."
|
||||
]
|
||||
@@ -43645,7 +43626,7 @@
|
||||
{
|
||||
"name": "AlreadyRetiring",
|
||||
"fields": [],
|
||||
"index": 22,
|
||||
"index": 20,
|
||||
"docs": [
|
||||
"Account already gave retirement notice"
|
||||
]
|
||||
@@ -43653,7 +43634,7 @@
|
||||
{
|
||||
"name": "RetirementNoticeNotGiven",
|
||||
"fields": [],
|
||||
"index": 23,
|
||||
"index": 21,
|
||||
"docs": [
|
||||
"Account did not give a retirement notice required to retire."
|
||||
]
|
||||
@@ -43661,17 +43642,17 @@
|
||||
{
|
||||
"name": "RetirementPeriodNotPassed",
|
||||
"fields": [],
|
||||
"index": 24,
|
||||
"index": 22,
|
||||
"docs": [
|
||||
"Retirement period has not passed."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "FoundersMissing",
|
||||
"name": "FellowsMissing",
|
||||
"fields": [],
|
||||
"index": 25,
|
||||
"index": 23,
|
||||
"docs": [
|
||||
"Founders must be provided to initialize the Alliance."
|
||||
"Fellows must be provided to initialize the Alliance."
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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.1' };
|
||||
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.1",
|
||||
"version": "9.10.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/keyring": "^10.1.13",
|
||||
"@polkadot/types-augment": "9.9.1",
|
||||
"@polkadot/types-codec": "9.9.1",
|
||||
"@polkadot/types-create": "9.9.1",
|
||||
"@polkadot/util": "^10.1.13",
|
||||
"@polkadot/util-crypto": "^10.1.13",
|
||||
"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.13",
|
||||
"@polkadot/types-support": "9.9.1"
|
||||
"@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.1' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.10.2' };
|
||||
|
||||
Reference in New Issue
Block a user