@polkadot/api-augment 9.9.1 → 9.9.3

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.
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@polkadot/api-augment',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '9.9.1'
16
+ version: '9.9.3'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.9.1",
23
+ "version": "9.9.3",
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.20.1",
189
- "@polkadot/api-base": "9.9.1",
190
- "@polkadot/rpc-augment": "9.9.1",
191
- "@polkadot/types": "9.9.1",
192
- "@polkadot/types-augment": "9.9.1",
193
- "@polkadot/types-codec": "9.9.1",
194
- "@polkadot/util": "^10.1.13"
189
+ "@polkadot/api-base": "9.9.3",
190
+ "@polkadot/rpc-augment": "9.9.3",
191
+ "@polkadot/types": "9.9.3",
192
+ "@polkadot/types-augment": "9.9.3",
193
+ "@polkadot/types-codec": "9.9.3",
194
+ "@polkadot/util": "^10.1.14"
195
195
  }
196
196
  }
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@polkadot/api-augment',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '9.9.1'
10
+ version: '9.9.3'
11
11
  };
@@ -17,8 +17,7 @@ declare module '@polkadot/api-base/types/consts' {
17
17
  **/
18
18
  maxAnnouncementsCount: u32 & AugmentedConst<ApiType>;
19
19
  /**
20
- * The maximum number of members per member role. Should not exceed the sum of
21
- * `MaxFounders` and `MaxFellows`.
20
+ * The maximum number of members per member role.
22
21
  **/
23
22
  maxMembersCount: u32 & AugmentedConst<ApiType>;
24
23
  /**
@@ -38,9 +38,9 @@ declare module '@polkadot/api-base/types/errors' {
38
38
  **/
39
39
  BadWitness: AugmentedError<ApiType>;
40
40
  /**
41
- * Founders must be provided to initialize the Alliance.
41
+ * Fellows must be provided to initialize the Alliance.
42
42
  **/
43
- FoundersMissing: AugmentedError<ApiType>;
43
+ FellowsMissing: AugmentedError<ApiType>;
44
44
  /**
45
45
  * Balance is insufficient for the required deposit.
46
46
  **/
@@ -57,10 +57,6 @@ declare module '@polkadot/api-base/types/errors' {
57
57
  * Account is not an ally.
58
58
  **/
59
59
  NotAlly: AugmentedError<ApiType>;
60
- /**
61
- * Account is not a founder.
62
- **/
63
- NotFounder: AugmentedError<ApiType>;
64
60
  /**
65
61
  * Item has not been deemed unscrupulous.
66
62
  **/
@@ -69,10 +65,6 @@ declare module '@polkadot/api-base/types/errors' {
69
65
  * Account is not a member.
70
66
  **/
71
67
  NotMember: AugmentedError<ApiType>;
72
- /**
73
- * The proposal is not vetoable.
74
- **/
75
- NotVetoableProposal: AugmentedError<ApiType>;
76
68
  /**
77
69
  * Account does not have voting rights.
78
70
  **/
@@ -419,8 +411,13 @@ declare module '@polkadot/api-base/types/errors' {
419
411
  CodeNotFound: AugmentedError<ApiType>;
420
412
  /**
421
413
  * The contract's code was found to be invalid during validation or instrumentation.
414
+ *
415
+ * The most likely cause of this is that an API was used which is not supported by the
416
+ * node. This hapens if an older node is used with a new version of ink!. Try updating
417
+ * your node to the newest available version.
418
+ *
422
419
  * A more detailed error can be found on the node console if debug messages are enabled
423
- * or in the debug buffer which is returned to RPC clients.
420
+ * by supplying `-lruntime::contracts=debug`.
424
421
  **/
425
422
  CodeRejected: AugmentedError<ApiType>;
426
423
  /**
@@ -11,8 +11,8 @@ declare module '@polkadot/api-base/types/events' {
11
11
  /**
12
12
  * Alliance disbanded. Includes number deleted members and unreserved deposits.
13
13
  **/
14
- AllianceDisbanded: AugmentedEvent<ApiType, [votingMembers: u32, allyMembers: u32, unreserved: u32], {
15
- votingMembers: u32;
14
+ AllianceDisbanded: AugmentedEvent<ApiType, [fellowMembers: u32, allyMembers: u32, unreserved: u32], {
15
+ fellowMembers: u32;
16
16
  allyMembers: u32;
17
17
  unreserved: u32;
18
18
  }>;
@@ -34,6 +34,12 @@ declare module '@polkadot/api-base/types/events' {
34
34
  AnnouncementRemoved: AugmentedEvent<ApiType, [announcement: PalletAllianceCid], {
35
35
  announcement: PalletAllianceCid;
36
36
  }>;
37
+ /**
38
+ * A Fellow abdicated their voting rights. They are now an Ally.
39
+ **/
40
+ FellowAbdicated: AugmentedEvent<ApiType, [fellow: AccountId32], {
41
+ fellow: AccountId32;
42
+ }>;
37
43
  /**
38
44
  * A member has been kicked out with its deposit slashed.
39
45
  **/
@@ -55,10 +61,9 @@ declare module '@polkadot/api-base/types/events' {
55
61
  member: AccountId32;
56
62
  }>;
57
63
  /**
58
- * Some accounts have been initialized as members (founders/fellows/allies).
64
+ * Some accounts have been initialized as members (fellows/allies).
59
65
  **/
60
- MembersInitialized: AugmentedEvent<ApiType, [founders: Vec<AccountId32>, fellows: Vec<AccountId32>, allies: Vec<AccountId32>], {
61
- founders: Vec<AccountId32>;
66
+ MembersInitialized: AugmentedEvent<ApiType, [fellows: Vec<AccountId32>, allies: Vec<AccountId32>], {
62
67
  fellows: Vec<AccountId32>;
63
68
  allies: Vec<AccountId32>;
64
69
  }>;
@@ -22,7 +22,7 @@ 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' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
25
+ members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Fellow' | 'Ally' | 'Retiring' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
26
26
  /**
27
27
  * A set of members who gave a retirement notice. They can retire after the end of retirement
28
28
  * period stored as a future block number.
@@ -30,9 +30,7 @@ declare module '@polkadot/api-base/types/storage' {
30
30
  retiringMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
31
31
  /**
32
32
  * The IPFS CID of the alliance rule.
33
- * Founders and fellows can propose a new rule with a super-majority.
34
- *
35
- * Any founder has a special one-vote veto right to the rule setting.
33
+ * Fellows can propose a new rule with a super-majority.
36
34
  **/
37
35
  rule: AugmentedQuery<ApiType, () => Observable<Option<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
38
36
  /**
package/substrate/tx.d.ts CHANGED
@@ -11,6 +11,12 @@ export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = Submittab
11
11
  declare module '@polkadot/api-base/types/submittable' {
12
12
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
13
13
  alliance: {
14
+ /**
15
+ * Abdicate one's position as a voting member and just be an Ally. May be used by Fellows
16
+ * who do not want to leave the Alliance but do not have the capacity to participate
17
+ * operationally for some time.
18
+ **/
19
+ abdicateFellowStatus: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
14
20
  /**
15
21
  * Add accounts or websites to the list of unscrupulous items.
16
22
  **/
@@ -30,7 +36,7 @@ declare module '@polkadot/api-base/types/submittable' {
30
36
  /**
31
37
  * Close a vote that is either approved, disapproved, or whose voting period has ended.
32
38
  *
33
- * Requires the sender to be a founder or fellow.
39
+ * Must be called by a Fellow.
34
40
  **/
35
41
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
36
42
  refTime?: any;
@@ -39,7 +45,7 @@ declare module '@polkadot/api-base/types/submittable' {
39
45
  /**
40
46
  * Close a vote that is either approved, disapproved, or whose voting period has ended.
41
47
  *
42
- * Requires the sender to be a founder or fellow.
48
+ * Must be called by a Fellow.
43
49
  **/
44
50
  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>]>;
45
51
  /**
@@ -48,11 +54,11 @@ declare module '@polkadot/api-base/types/submittable' {
48
54
  * Witness data must be set.
49
55
  **/
50
56
  disband: AugmentedSubmittable<(witness: PalletAllianceDisbandWitness | {
51
- votingMembers?: any;
57
+ fellowMembers?: any;
52
58
  allyMembers?: any;
53
59
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceDisbandWitness]>;
54
60
  /**
55
- * Elevate an ally to fellow.
61
+ * Elevate an Ally to Fellow.
56
62
  **/
57
63
  elevateAlly: AugmentedSubmittable<(ally: MultiAddress | {
58
64
  Id: any;
@@ -71,19 +77,19 @@ declare module '@polkadot/api-base/types/submittable' {
71
77
  **/
72
78
  giveRetirementNotice: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
73
79
  /**
74
- * Initialize the Alliance, onboard founders, fellows, and allies.
80
+ * Initialize the Alliance, onboard fellows and allies.
81
+ *
82
+ * The Alliance must be empty, and the call must provide some founding members.
75
83
  *
76
- * Founders must be not empty.
77
- * The Alliance must be empty.
78
84
  * Must be called by the Root origin.
79
85
  **/
80
- 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>]>;
86
+ initMembers: AugmentedSubmittable<(fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>]>;
81
87
  /**
82
88
  * Submit oneself for candidacy. A fixed deposit is reserved.
83
89
  **/
84
90
  joinAlliance: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
85
91
  /**
86
- * Kick a member from the alliance and slash its deposit.
92
+ * Kick a member from the Alliance and slash its deposit.
87
93
  **/
88
94
  kickMember: AugmentedSubmittable<(who: MultiAddress | {
89
95
  Id: any;
@@ -97,8 +103,8 @@ declare module '@polkadot/api-base/types/submittable' {
97
103
  Address20: any;
98
104
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
99
105
  /**
100
- * A founder or fellow can nominate someone to join the alliance as an Ally.
101
- * There is no deposit required to the nominator or nominee.
106
+ * A Fellow can nominate someone to join the alliance as an Ally. There is no deposit
107
+ * required from the nominator or nominee.
102
108
  **/
103
109
  nominateAlly: AugmentedSubmittable<(who: MultiAddress | {
104
110
  Id: any;
@@ -114,7 +120,7 @@ declare module '@polkadot/api-base/types/submittable' {
114
120
  /**
115
121
  * Add a new proposal to be voted on.
116
122
  *
117
- * Requires the sender to be a founder or fellow.
123
+ * Must be called by a Fellow.
118
124
  **/
119
125
  propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
120
126
  /**
@@ -126,7 +132,7 @@ declare module '@polkadot/api-base/types/submittable' {
126
132
  hash_?: any;
127
133
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
128
134
  /**
129
- * Deem an item no longer unscrupulous.
135
+ * Deem some items no longer unscrupulous.
130
136
  **/
131
137
  removeUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | {
132
138
  AccountId: any;
@@ -134,8 +140,10 @@ declare module '@polkadot/api-base/types/submittable' {
134
140
  Website: any;
135
141
  } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
136
142
  /**
137
- * As a member, retire from the alliance and unreserve the deposit.
138
- * This can only be done once you have `give_retirement_notice` and it has expired.
143
+ * As a member, retire from the Alliance and unreserve the deposit.
144
+ *
145
+ * This can only be done once you have called `give_retirement_notice` and the
146
+ * `RetirementPeriod` has passed.
139
147
  **/
140
148
  retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
141
149
  /**
@@ -146,17 +154,10 @@ declare module '@polkadot/api-base/types/submittable' {
146
154
  codec?: any;
147
155
  hash_?: any;
148
156
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
149
- /**
150
- * Veto a proposal about `set_rule` and `elevate_ally`, close, and remove it from the
151
- * system, regardless of its current state.
152
- *
153
- * Must be called by a founder.
154
- **/
155
- veto: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
156
157
  /**
157
158
  * Add an aye or nay vote for the sender to the given proposal.
158
159
  *
159
- * Requires the sender to be a founder or fellow.
160
+ * Must be called by a Fellow.
160
161
  **/
161
162
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
162
163
  /**