@polkadot/api-augment 9.2.4 → 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.
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/api-augment',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '9.2.4'
14
+ version: '9.3.1'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
@@ -766,7 +766,7 @@ declare module '@polkadot/api-base/types/consts' {
766
766
  **/
767
767
  dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
768
768
  /**
769
- * The designated SS85 prefix of this chain.
769
+ * The designated SS58 prefix of this chain.
770
770
  *
771
771
  * This replaces the "ss58Format" property declared in the chain spec. Reason is
772
772
  * that the runtime should know about the prefix in order to make use of it as
@@ -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 { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
16
15
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
17
16
  import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
@@ -244,7 +243,7 @@ declare module '@polkadot/api-base/types/calls' {
244
243
  /**
245
244
  * Returns the pending rewards for the given member.
246
245
  **/
247
- pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Result<Balance, NpApiError>>>;
246
+ pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
248
247
  /**
249
248
  * Generic call
250
249
  **/
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.2.4",
23
+ "version": "9.3.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -186,11 +186,11 @@
186
186
  },
187
187
  "dependencies": {
188
188
  "@babel/runtime": "^7.18.9",
189
- "@polkadot/api-base": "9.2.4",
190
- "@polkadot/rpc-augment": "9.2.4",
191
- "@polkadot/types": "9.2.4",
192
- "@polkadot/types-augment": "9.2.4",
193
- "@polkadot/types-codec": "9.2.4",
194
- "@polkadot/util": "^10.1.6"
189
+ "@polkadot/api-base": "9.3.1",
190
+ "@polkadot/rpc-augment": "9.3.1",
191
+ "@polkadot/types": "9.3.1",
192
+ "@polkadot/types-augment": "9.3.1",
193
+ "@polkadot/types-codec": "9.3.1",
194
+ "@polkadot/util": "^10.1.7"
195
195
  }
196
196
  }
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/api-augment',
6
6
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
7
  type: 'esm',
8
- version: '9.2.4'
8
+ version: '9.3.1'
9
9
  };
@@ -633,7 +633,7 @@ declare module '@polkadot/api-base/types/consts' {
633
633
  **/
634
634
  dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
635
635
  /**
636
- * The designated SS85 prefix of this chain.
636
+ * The designated SS58 prefix of this chain.
637
637
  *
638
638
  * This replaces the "ss58Format" property declared in the chain spec. Reason is
639
639
  * that the runtime should know about the prefix in order to make use of it as
@@ -13,7 +13,7 @@ import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
13
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
14
14
  import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
15
15
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
16
- import type { AccountId, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
16
+ import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
17
17
  import type { SessionIndex } from '@polkadot/types/interfaces/session';
18
18
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
19
19
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
@@ -238,6 +238,17 @@ declare module '@polkadot/api-base/types/calls' {
238
238
  **/
239
239
  [key: string]: DecoratedCallBase<ApiType>;
240
240
  };
241
+ /** 0x17a6bc0d0062aeb3/1 */
242
+ nominationPoolsApi: {
243
+ /**
244
+ * Returns the pending rewards for the given member.
245
+ **/
246
+ pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
247
+ /**
248
+ * Generic call
249
+ **/
250
+ [key: string]: DecoratedCallBase<ApiType>;
251
+ };
241
252
  /** 0xf78b278be53f454c/2 */
242
253
  offchainWorkerApi: {
243
254
  /**
@@ -991,7 +991,7 @@ declare module '@polkadot/api-base/types/consts' {
991
991
  **/
992
992
  dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
993
993
  /**
994
- * The designated SS85 prefix of this chain.
994
+ * The designated SS58 prefix of this chain.
995
995
  *
996
996
  * This replaces the "ss58Format" property declared in the chain spec. Reason is
997
997
  * that the runtime should know about the prefix in order to make use of it as
@@ -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
  **/
@@ -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
  **/
@@ -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
  **/
@@ -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<Result<Balance, NpApiError>>>;
256
+ pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
258
257
  /**
259
258
  * Generic call
260
259
  **/
package/substrate/tx.d.ts CHANGED
@@ -47,6 +47,11 @@ declare module '@polkadot/api-base/types/submittable' {
47
47
  } | {
48
48
  Address20: any;
49
49
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
50
+ /**
51
+ * As a member, give a retirement notice and start a retirement period required to pass in
52
+ * order to retire.
53
+ **/
54
+ giveRetirementNotice: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
50
55
  /**
51
56
  * Initialize the founders, fellows, and allies.
52
57
  *
@@ -110,6 +115,7 @@ declare module '@polkadot/api-base/types/submittable' {
110
115
  } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
111
116
  /**
112
117
  * As a member, retire from the alliance and unreserve the deposit.
118
+ * This can only be done once you have `give_retirement_notice` and it has expired.
113
119
  **/
114
120
  retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
115
121
  /**