@polkadot/api-augment 9.2.2 → 9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +16 -1
- package/kusama/runtime.d.ts +18 -4
- package/kusama/tx.d.ts +478 -38
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +41 -1
- package/polkadot/errors.d.ts +98 -0
- package/polkadot/events.d.ts +111 -1
- package/polkadot/query.d.ts +93 -1
- package/polkadot/runtime.d.ts +28 -2
- package/polkadot/tx.d.ts +569 -25
- package/substrate/consts.d.ts +16 -1
- package/substrate/errors.d.ts +12 -10
- package/substrate/events.d.ts +6 -6
- package/substrate/query.d.ts +6 -11
- package/substrate/runtime.d.ts +1 -2
- package/substrate/tx.d.ts +567 -63
package/substrate/consts.d.ts
CHANGED
|
@@ -486,6 +486,21 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
486
486
|
* Number of runners_up to keep.
|
|
487
487
|
**/
|
|
488
488
|
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
|
489
|
+
/**
|
|
490
|
+
* The maximum number of candidates in a phragmen election.
|
|
491
|
+
*
|
|
492
|
+
* Warning: The election happens onchain, and this value will determine
|
|
493
|
+
* the size of the election. When this limit is reached no more
|
|
494
|
+
* candidates are accepted in the election.
|
|
495
|
+
**/
|
|
496
|
+
maxCandidates: u32 & AugmentedConst<ApiType>;
|
|
497
|
+
/**
|
|
498
|
+
* The maximum number of voters to allow in a phragmen election.
|
|
499
|
+
*
|
|
500
|
+
* Warning: This impacts the size of the election which is run onchain.
|
|
501
|
+
* When the limit is reached the new voters are ignored.
|
|
502
|
+
**/
|
|
503
|
+
maxVoters: u32 & AugmentedConst<ApiType>;
|
|
489
504
|
/**
|
|
490
505
|
* Identifier for the elections-phragmen pallet's lock
|
|
491
506
|
**/
|
|
@@ -976,7 +991,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
976
991
|
**/
|
|
977
992
|
dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
978
993
|
/**
|
|
979
|
-
* The designated
|
|
994
|
+
* The designated SS58 prefix of this chain.
|
|
980
995
|
*
|
|
981
996
|
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
982
997
|
* that the runtime should know about the prefix in order to make use of it as
|
package/substrate/errors.d.ts
CHANGED
|
@@ -25,6 +25,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
25
25
|
* Account is already a member.
|
|
26
26
|
**/
|
|
27
27
|
AlreadyMember: AugmentedError<ApiType>;
|
|
28
|
+
/**
|
|
29
|
+
* Account already gave retirement notice
|
|
30
|
+
**/
|
|
31
|
+
AlreadyRetiring: AugmentedError<ApiType>;
|
|
28
32
|
/**
|
|
29
33
|
* Item is already listed as unscrupulous.
|
|
30
34
|
**/
|
|
@@ -65,6 +69,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
65
69
|
* Account does not have voting rights.
|
|
66
70
|
**/
|
|
67
71
|
NoVotingRights: AugmentedError<ApiType>;
|
|
72
|
+
/**
|
|
73
|
+
* Account did not give a retirement notice required to retire.
|
|
74
|
+
**/
|
|
75
|
+
RetirementNoticeNotGiven: AugmentedError<ApiType>;
|
|
76
|
+
/**
|
|
77
|
+
* Retirement period has not passed.
|
|
78
|
+
**/
|
|
79
|
+
RetirementPeriodNotPassed: AugmentedError<ApiType>;
|
|
68
80
|
/**
|
|
69
81
|
* Length of website URL exceeds `MaxWebsiteUrlLength`.
|
|
70
82
|
**/
|
|
@@ -81,10 +93,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
81
93
|
* The number of unscrupulous items exceeds `MaxUnscrupulousItems`.
|
|
82
94
|
**/
|
|
83
95
|
TooManyUnscrupulousItems: AugmentedError<ApiType>;
|
|
84
|
-
/**
|
|
85
|
-
* This member is up for being kicked from the Alliance and cannot perform this operation.
|
|
86
|
-
**/
|
|
87
|
-
UpForKicking: AugmentedError<ApiType>;
|
|
88
96
|
/**
|
|
89
97
|
* The account's identity has no good judgement.
|
|
90
98
|
**/
|
|
@@ -2077,12 +2085,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2077
2085
|
* The provided max supply is less to the amount of items a collection already has.
|
|
2078
2086
|
**/
|
|
2079
2087
|
MaxSupplyTooSmall: AugmentedError<ApiType>;
|
|
2080
|
-
/**
|
|
2081
|
-
* The `CollectionId` in `NextCollectionId` is not being used.
|
|
2082
|
-
*
|
|
2083
|
-
* This means that you can directly proceed to call `create`.
|
|
2084
|
-
**/
|
|
2085
|
-
NextIdNotUsed: AugmentedError<ApiType>;
|
|
2086
2088
|
/**
|
|
2087
2089
|
* There is no delegate approved.
|
|
2088
2090
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -40,6 +40,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
40
40
|
member: AccountId32;
|
|
41
41
|
unreserved: Option<u128>;
|
|
42
42
|
}>;
|
|
43
|
+
/**
|
|
44
|
+
* A member gave retirement notice and their retirement period started.
|
|
45
|
+
**/
|
|
46
|
+
MemberRetirementPeriodStarted: AugmentedEvent<ApiType, [member: AccountId32], {
|
|
47
|
+
member: AccountId32;
|
|
48
|
+
}>;
|
|
43
49
|
/**
|
|
44
50
|
* Some accounts have been initialized as members (founders/fellows/allies).
|
|
45
51
|
**/
|
|
@@ -2321,12 +2327,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2321
2327
|
data: Bytes;
|
|
2322
2328
|
isFrozen: bool;
|
|
2323
2329
|
}>;
|
|
2324
|
-
/**
|
|
2325
|
-
* Event gets emmited when the `NextCollectionId` gets incremented.
|
|
2326
|
-
**/
|
|
2327
|
-
NextCollectionIdIncremented: AugmentedEvent<ApiType, [nextId: u32], {
|
|
2328
|
-
nextId: u32;
|
|
2329
|
-
}>;
|
|
2330
2330
|
/**
|
|
2331
2331
|
* The owner changed.
|
|
2332
2332
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -22,7 +22,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
22
22
|
/**
|
|
23
23
|
* Maps member type to members of each type.
|
|
24
24
|
**/
|
|
25
|
-
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | 'Fellow' | 'Ally' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
|
25
|
+
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
|
26
|
+
/**
|
|
27
|
+
* A set of members who gave a retirement notice. They can retire after the end of retirement
|
|
28
|
+
* period stored as a future block number.
|
|
29
|
+
**/
|
|
30
|
+
retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
26
31
|
/**
|
|
27
32
|
* The IPFS CID of the alliance rule.
|
|
28
33
|
* Founders and fellows can propose a new rule with a super-majority.
|
|
@@ -39,11 +44,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
39
44
|
* The current list of websites deemed unscrupulous.
|
|
40
45
|
**/
|
|
41
46
|
unscrupulousWebsites: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
42
|
-
/**
|
|
43
|
-
* A set of members that are (potentially) being kicked out. They cannot retire until the
|
|
44
|
-
* motion is settled.
|
|
45
|
-
**/
|
|
46
|
-
upForKicking: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<bool>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
47
47
|
/**
|
|
48
48
|
* Generic query
|
|
49
49
|
**/
|
|
@@ -1771,11 +1771,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1771
1771
|
* Price of an asset instance.
|
|
1772
1772
|
**/
|
|
1773
1773
|
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
1774
|
-
/**
|
|
1775
|
-
* Stores the `CollectionId` that is going to be used for the next collection.
|
|
1776
|
-
* This gets incremented by 1 whenever a new collection is created.
|
|
1777
|
-
**/
|
|
1778
|
-
nextCollectionId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1779
1774
|
/**
|
|
1780
1775
|
* The collection, if any, of which an account is willing to take ownership.
|
|
1781
1776
|
**/
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
|
11
11
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
|
12
12
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
13
13
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
|
14
|
-
import type { NpApiError } from '@polkadot/types/interfaces/nompools';
|
|
15
14
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
16
15
|
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
|
17
16
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
@@ -254,7 +253,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
254
253
|
/**
|
|
255
254
|
* Returns the pending rewards for the given member.
|
|
256
255
|
**/
|
|
257
|
-
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<
|
|
256
|
+
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
|
258
257
|
/**
|
|
259
258
|
* Generic call
|
|
260
259
|
**/
|