Compare commits

..
18 Commits
Author SHA1 Message Date
github-actions[bot] 603b762d0e [CI Skip] release/stable 9.10.1
skip-checks: true
2022-12-04 11:36:07 +00:00
Jaco 8c43bcf405 9.10.1 (#5364) 2022-12-04 13:28:12 +02:00
github-actions[bot] a0e4fa0570 [CI Skip] bump/beta 9.9.5-2-x
skip-checks: true
2022-12-04 11:19:34 +00:00
Jaco d7b4adc050 Bump metadata (#5363)
* Bump metadata

* Fix lint
2022-12-04 13:09:58 +02:00
github-actions[bot] ef97ea7d00 [CI Skip] bump/beta 9.9.5-1-x
skip-checks: true
2022-11-30 17:00:47 +00:00
Jaco af9e1931e6 Adjust with type-only imports (#5360)
* Adjust with type-only imports

* Don't rexport WellKnownChain
2022-11-30 18:52:11 +02:00
github-actions[bot] 576887d508 [CI Skip] bump/beta 9.9.5-0-x
skip-checks: true
2022-11-30 05:43:47 +00:00
Jaco 57e9857ed8 Converts payloads to use BlockHash types (#5358) 2022-11-30 07:35:31 +02:00
github-actions[bot] f59b5b8d92 [CI Skip] release/stable 9.9.4
skip-checks: true
2022-11-28 10:35:35 +00:00
Jaco 4cb0281340 9.9.4 (#5357) 2022-11-28 12:27:44 +02:00
github-actions[bot] 9c5ca08106 [CI Skip] release/stable 9.9.3
skip-checks: true
2022-11-28 10:14:20 +00:00
Jaco fde69670f1 Fix dispatchQueue preimage retrieval in derives (#5356) 2022-11-28 12:06:06 +02:00
github-actions[bot] 2da085afb8 [CI Skip] release/stable 9.9.2
skip-checks: true
2022-11-27 17:14:51 +00:00
Jaco 973cc13873 9.9.2 (#5355) 2022-11-27 19:07:02 +02:00
github-actions[bot] 61e5f91e5b [CI Skip] bump/beta 9.9.2-1-x
skip-checks: true
2022-11-27 15:25:35 +00:00
Jaco 8c52f050fe Bumnp Substrate metadata (#5354) 2022-11-27 17:15:23 +02:00
github-actions[bot] d1bf4402cf [CI Skip] bump/beta 9.9.2-0-x
skip-checks: true
2022-11-27 14:42:57 +00:00
Jaco d3eb1de49b Bump util (#5353) 2022-11-27 16:34:07 +02:00
58 changed files with 987 additions and 893 deletions
+25
View File
@@ -1,5 +1,30 @@
# CHANGELOG
## 9.10.1 Dec 4, 2022
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
View File
@@ -1,4 +1,4 @@
3287 Jaco 9.9.1 (#5349)
3296 Jaco 9.10.1 (#5364)
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)
+4 -4
View File
@@ -11,10 +11,10 @@
},
"sideEffects": false,
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"versions": {
"git": "9.9.1",
"npm": "9.9.1"
"git": "9.10.1",
"npm": "9.10.1"
},
"workspaces": [
"packages/*"
@@ -39,7 +39,7 @@
"@babel/core": "^7.20.2",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.20.1",
"@polkadot/dev": "^0.67.161",
"@polkadot/dev": "^0.67.167",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^29.2.3",
"copyfiles": "^2.4.1"
+8 -8
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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"
"@polkadot/api-base": "9.10.1",
"@polkadot/rpc-augment": "9.10.1",
"@polkadot/types": "9.10.1",
"@polkadot/types-augment": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/util": "^10.2.1"
},
"devDependencies": {
"@polkadot/types-support": "9.9.1"
"@polkadot/types-support": "9.10.1"
}
}
+1 -1
View File
@@ -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]>;
/**
+1 -1
View File
@@ -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.1' };
+1 -1
View File
@@ -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]>;
/**
+23 -2
View File
@@ -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
**/
+8 -11
View File
@@ -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>;
/**
+7 -3
View File
@@ -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.
**/
+10 -4
View File
@@ -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.
**/
+45 -43
View File
@@ -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>]>;
/**
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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",
"@polkadot/rpc-core": "9.10.1",
"@polkadot/types": "9.10.1",
"@polkadot/util": "^10.2.1",
"rxjs": "^7.5.7"
}
}
+1 -1
View File
@@ -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.1' };
+9 -9
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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",
"@polkadot/api": "9.10.1",
"@polkadot/types": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/types-create": "9.10.1",
"@polkadot/util": "^10.2.1",
"@polkadot/util-crypto": "^10.2.1",
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/api-augment": "9.9.1",
"@polkadot/keyring": "^10.1.13"
"@polkadot/api-augment": "9.10.1",
"@polkadot/keyring": "^10.2.1"
}
}
+1 -1
View File
@@ -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.1' };
+14 -14
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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",
"@polkadot/api": "9.10.1",
"@polkadot/api-augment": "9.10.1",
"@polkadot/api-base": "9.10.1",
"@polkadot/rpc-core": "9.10.1",
"@polkadot/types": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/util": "^10.2.1",
"@polkadot/util-crypto": "^10.2.1",
"rxjs": "^7.5.7"
},
"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.1",
"@polkadot/api-augment": "9.10.1",
"@polkadot/rpc-augment": "9.10.1",
"@polkadot/rpc-provider": "9.10.1",
"@polkadot/types-support": "9.10.1"
}
}
@@ -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([])
);
+9 -3
View File
@@ -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 {
+1 -1
View File
@@ -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.1' };
+17 -17
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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",
"@polkadot/api-augment": "9.10.1",
"@polkadot/api-base": "9.10.1",
"@polkadot/api-derive": "9.10.1",
"@polkadot/keyring": "^10.2.1",
"@polkadot/rpc-augment": "9.10.1",
"@polkadot/rpc-core": "9.10.1",
"@polkadot/rpc-provider": "9.10.1",
"@polkadot/types": "9.10.1",
"@polkadot/types-augment": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/types-create": "9.10.1",
"@polkadot/types-known": "9.10.1",
"@polkadot/util": "^10.2.1",
"@polkadot/util-crypto": "^10.2.1",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/api-augment": "9.9.1",
"@polkadot/types-support": "9.9.1"
"@polkadot/api-augment": "9.10.1",
"@polkadot/types-support": "9.10.1"
}
}
+1 -1
View File
@@ -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.1' };
+5 -5
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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"
"@polkadot/rpc-core": "9.10.1",
"@polkadot/types": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/util": "^10.2.1"
}
}
+1 -1
View File
@@ -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.1' };
+7 -7
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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",
"@polkadot/rpc-augment": "9.10.1",
"@polkadot/rpc-provider": "9.10.1",
"@polkadot/types": "9.10.1",
"@polkadot/util": "^10.2.1",
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/keyring": "^10.1.13",
"@polkadot/rpc-augment": "9.9.1"
"@polkadot/keyring": "^10.2.1",
"@polkadot/rpc-augment": "9.10.1"
}
}
+1 -1
View File
@@ -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.1' };
+9 -9
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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",
"@polkadot/keyring": "^10.2.1",
"@polkadot/types": "9.10.1",
"@polkadot/types-support": "9.10.1",
"@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",
+1 -1
View File
@@ -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.1' };
@@ -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,
+14 -14
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -33,24 +33,24 @@
"@babel/core": "^7.20.2",
"@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",
"@polkadot/api": "9.10.1",
"@polkadot/api-augment": "9.10.1",
"@polkadot/rpc-augment": "9.10.1",
"@polkadot/rpc-provider": "9.10.1",
"@polkadot/types": "9.10.1",
"@polkadot/types-augment": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/types-create": "9.10.1",
"@polkadot/types-support": "9.10.1",
"@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.14"
}
}
+1 -1
View File
@@ -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.1' };
+4 -4
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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"
"@polkadot/types": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/util": "^10.2.1"
}
}
+12 -13
View File
@@ -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) */
+1 -1
View File
@@ -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.1' };
+7 -7
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.1",
"@polkadot/util": "^10.1.13",
"@polkadot/x-bigint": "^10.1.13"
"@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.1",
"@polkadot/types-augment": "9.10.1",
"@polkadot/types-support": "9.10.1",
"@polkadot/util-crypto": "^10.2.1"
}
}
+1 -1
View File
@@ -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.1' };
+4 -4
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.1",
"@polkadot/types-codec": "9.9.1",
"@polkadot/util": "^10.1.13"
"@polkadot/types-codec": "9.10.1",
"@polkadot/util": "^10.2.1"
},
"devDependencies": {
"@polkadot/types": "9.9.1"
"@polkadot/types": "9.10.1"
}
}
+1 -1
View File
@@ -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.1' };
+7 -7
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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"
"@polkadot/networks": "^10.2.1",
"@polkadot/types": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/types-create": "9.10.1",
"@polkadot/util": "^10.2.1"
},
"devDependencies": {
"@polkadot/api": "9.9.1"
"@polkadot/api": "9.10.1"
}
}
+1 -1
View File
@@ -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.1' };
+2 -2
View File
@@ -20,10 +20,10 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.1",
"@polkadot/util": "^10.1.13"
"@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."
]
}
]
+1 -1
View File
@@ -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.1' };
+9 -9
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.9.1",
"version": "9.10.1",
"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",
"@polkadot/keyring": "^10.2.1",
"@polkadot/types-augment": "9.10.1",
"@polkadot/types-codec": "9.10.1",
"@polkadot/types-create": "9.10.1",
"@polkadot/util": "^10.2.1",
"@polkadot/util-crypto": "^10.2.1",
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/keyring": "^10.1.13",
"@polkadot/types-support": "9.9.1"
"@polkadot/keyring": "^10.2.1",
"@polkadot/types-support": "9.10.1"
}
}
@@ -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'
];
+1 -1
View File
@@ -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.1' };
+434 -428
View File
File diff suppressed because it is too large Load Diff