@polkadot/api-augment 8.9.2-8 → 8.11.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/kusama/tx.d.ts CHANGED
@@ -1271,8 +1271,9 @@ declare module '@polkadot/api-base/types/submittable' {
1271
1271
  * The dispatch of this call must be `FastTrackOrigin`.
1272
1272
  *
1273
1273
  * - `proposal_hash`: The hash of the current external proposal.
1274
- * - `voting_period`: The period that is allowed for voting on this proposal. Increased to
1275
- * `FastTrackVotingPeriod` if too low.
1274
+ * - `voting_period`: The period that is allowed for voting on this proposal.
1275
+ * Must be always greater than zero.
1276
+ * For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
1276
1277
  * - `delay`: The number of block after voting has ended in approval and this should be
1277
1278
  * enacted. This doesn't have a minimum amount.
1278
1279
  *
@@ -1602,12 +1603,17 @@ declare module '@polkadot/api-base/types/submittable' {
1602
1603
  };
1603
1604
  grandpa: {
1604
1605
  /**
1605
- * Note that the current authority set of the GRANDPA finality gadget has
1606
- * stalled. This will trigger a forced authority set change at the beginning
1607
- * of the next session, to be enacted `delay` blocks after that. The delay
1608
- * should be high enough to safely assume that the block signalling the
1609
- * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
1610
- * will start the new authority set using the given finalized block as base.
1606
+ * Note that the current authority set of the GRANDPA finality gadget has stalled.
1607
+ *
1608
+ * This will trigger a forced authority set change at the beginning of the next session, to
1609
+ * be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
1610
+ * that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
1611
+ * The block production rate (which may be slowed down because of finality lagging) should
1612
+ * be taken into account when choosing the `delay`. The GRANDPA voters based on the new
1613
+ * authority will start voting on top of `best_finalized_block_number` for new finalized
1614
+ * blocks. `best_finalized_block_number` should be the highest of the latest finalized
1615
+ * block of all validators of the new authority set.
1616
+ *
1611
1617
  * Only callable by root.
1612
1618
  **/
1613
1619
  noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
@@ -2410,6 +2416,16 @@ declare module '@polkadot/api-base/types/submittable' {
2410
2416
  } | {
2411
2417
  Rewards: any;
2412
2418
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
2419
+ /**
2420
+ * Chill on behalf of the pool.
2421
+ *
2422
+ * The dispatch origin of this call must be signed by the pool nominator or the pool
2423
+ * root role, same as [`Pallet::nominate`].
2424
+ *
2425
+ * This directly forward the call to the staking pallet, on behalf of the pool bonded
2426
+ * account.
2427
+ **/
2428
+ chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2413
2429
  /**
2414
2430
  * A bonded member can use this to claim their payout based on the rewards that the pool
2415
2431
  * has accumulated since their last claimed payout (OR since joining if this is there first
@@ -2452,6 +2468,15 @@ declare module '@polkadot/api-base/types/submittable' {
2452
2468
  * * Only a pool with [`PoolState::Open`] can be joined
2453
2469
  **/
2454
2470
  join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
2471
+ /**
2472
+ * Nominate on behalf of the pool.
2473
+ *
2474
+ * The dispatch origin of this call must be signed by the pool nominator or the pool
2475
+ * root role.
2476
+ *
2477
+ * This directly forward the call to the staking pallet, on behalf of the pool bonded
2478
+ * account.
2479
+ **/
2455
2480
  nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
2456
2481
  /**
2457
2482
  * Call `withdraw_unbonded` for the pools account. This call can be made by any account.
@@ -2505,12 +2530,24 @@ declare module '@polkadot/api-base/types/submittable' {
2505
2530
  } | {
2506
2531
  Remove: any;
2507
2532
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
2533
+ /**
2534
+ * Set a new metadata for the pool.
2535
+ *
2536
+ * The dispatch origin of this call must be signed by the state toggler, or the root role
2537
+ * of the pool.
2538
+ **/
2508
2539
  setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
2540
+ /**
2541
+ * Set a new state for the pool.
2542
+ *
2543
+ * The dispatch origin of this call must be signed by the state toggler, or the root role
2544
+ * of the pool.
2545
+ **/
2509
2546
  setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
2510
2547
  /**
2511
2548
  * Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
2512
2549
  * implicitly collects the rewards one last time, since not doing so would mean some
2513
- * rewards would go forfeited.
2550
+ * rewards would be forfeited.
2514
2551
  *
2515
2552
  * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
2516
2553
  * account).
@@ -4718,6 +4755,27 @@ declare module '@polkadot/api-base/types/submittable' {
4718
4755
  * exist altogether, thus there is no way it would have been approved in the first place.
4719
4756
  **/
4720
4757
  removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4758
+ /**
4759
+ * Propose and approve a spend of treasury funds.
4760
+ *
4761
+ * - `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`.
4762
+ * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
4763
+ * - `beneficiary`: The destination account for the transfer.
4764
+ *
4765
+ * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
4766
+ * beneficiary.
4767
+ **/
4768
+ spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
4769
+ Id: any;
4770
+ } | {
4771
+ Index: any;
4772
+ } | {
4773
+ Raw: any;
4774
+ } | {
4775
+ Address32: any;
4776
+ } | {
4777
+ Address20: any;
4778
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
4721
4779
  /**
4722
4780
  * Generic tx
4723
4781
  **/
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "8.9.2-8",
23
+ "version": "8.11.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -82,6 +82,11 @@
82
82
  "require": "./cjs/kusama/registry.js",
83
83
  "default": "./kusama/registry.js"
84
84
  },
85
+ "./kusama/runtime": {
86
+ "types": "./kusama/runtime.d.ts",
87
+ "require": "./cjs/kusama/runtime.js",
88
+ "default": "./kusama/runtime.js"
89
+ },
85
90
  "./kusama/tx": {
86
91
  "types": "./kusama/tx.d.ts",
87
92
  "require": "./cjs/kusama/tx.js",
@@ -130,6 +135,11 @@
130
135
  "require": "./cjs/polkadot/registry.js",
131
136
  "default": "./polkadot/registry.js"
132
137
  },
138
+ "./polkadot/runtime": {
139
+ "types": "./polkadot/runtime.d.ts",
140
+ "require": "./cjs/polkadot/runtime.js",
141
+ "default": "./polkadot/runtime.js"
142
+ },
133
143
  "./polkadot/tx": {
134
144
  "types": "./polkadot/tx.d.ts",
135
145
  "require": "./cjs/polkadot/tx.js",
@@ -165,6 +175,11 @@
165
175
  "require": "./cjs/substrate/registry.js",
166
176
  "default": "./substrate/registry.js"
167
177
  },
178
+ "./substrate/runtime": {
179
+ "types": "./substrate/runtime.d.ts",
180
+ "require": "./cjs/substrate/runtime.js",
181
+ "default": "./substrate/runtime.js"
182
+ },
168
183
  "./substrate/tx": {
169
184
  "types": "./substrate/tx.d.ts",
170
185
  "require": "./cjs/substrate/tx.js",
@@ -172,12 +187,12 @@
172
187
  }
173
188
  },
174
189
  "dependencies": {
175
- "@babel/runtime": "^7.18.3",
176
- "@polkadot/api-base": "8.9.2-8",
177
- "@polkadot/rpc-augment": "8.9.2-8",
178
- "@polkadot/types": "8.9.2-8",
179
- "@polkadot/types-augment": "8.9.2-8",
180
- "@polkadot/types-codec": "8.9.2-8",
181
- "@polkadot/util": "^9.5.2-13"
190
+ "@babel/runtime": "^7.18.6",
191
+ "@polkadot/api-base": "8.11.1",
192
+ "@polkadot/rpc-augment": "8.11.1",
193
+ "@polkadot/types": "8.11.1",
194
+ "@polkadot/types-augment": "8.11.1",
195
+ "@polkadot/types-codec": "8.11.1",
196
+ "@polkadot/util": "^9.7.1"
182
197
  }
183
198
  }
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: '8.9.2-8'
8
+ version: '8.11.1'
9
9
  };
@@ -493,6 +493,10 @@ declare module '@polkadot/api-base/types/errors' {
493
493
  * these are removed, either through `unvote` or `reap_vote`.
494
494
  **/
495
495
  VotesExist: AugmentedError<ApiType>;
496
+ /**
497
+ * Voting period too low
498
+ **/
499
+ VotingPeriodLow: AugmentedError<ApiType>;
496
500
  /**
497
501
  * Invalid upper bound.
498
502
  **/
@@ -1553,6 +1557,10 @@ declare module '@polkadot/api-base/types/errors' {
1553
1557
  * Not a member.
1554
1558
  **/
1555
1559
  NotMember: AugmentedError<ApiType>;
1560
+ /**
1561
+ * Too many members.
1562
+ **/
1563
+ TooManyMembers: AugmentedError<ApiType>;
1556
1564
  /**
1557
1565
  * Generic error
1558
1566
  **/
@@ -1589,6 +1597,11 @@ declare module '@polkadot/api-base/types/errors' {
1589
1597
  [key: string]: AugmentedError<ApiType>;
1590
1598
  };
1591
1599
  treasury: {
1600
+ /**
1601
+ * The spend origin is valid but the amount it is allowed to spend is lower than the
1602
+ * amount to be spent.
1603
+ **/
1604
+ InsufficientPermission: AugmentedError<ApiType>;
1592
1605
  /**
1593
1606
  * Proposer's balance is too low.
1594
1607
  **/
@@ -471,6 +471,12 @@ declare module '@polkadot/api-base/types/events' {
471
471
  provider: AccountId32;
472
472
  deposit: u128;
473
473
  }>;
474
+ /**
475
+ * A proposal got canceled.
476
+ **/
477
+ ProposalCanceled: AugmentedEvent<ApiType, [propIndex: u32], {
478
+ propIndex: u32;
479
+ }>;
474
480
  /**
475
481
  * A motion has been proposed by a public account.
476
482
  **/
@@ -1349,6 +1355,21 @@ declare module '@polkadot/api-base/types/events' {
1349
1355
  **/
1350
1356
  [key: string]: AugmentedEvent<ApiType>;
1351
1357
  };
1358
+ transactionPayment: {
1359
+ /**
1360
+ * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
1361
+ * has been paid by `who`.
1362
+ **/
1363
+ TransactionFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128], {
1364
+ who: AccountId32;
1365
+ actualFee: u128;
1366
+ tip: u128;
1367
+ }>;
1368
+ /**
1369
+ * Generic event
1370
+ **/
1371
+ [key: string]: AugmentedEvent<ApiType>;
1372
+ };
1352
1373
  treasury: {
1353
1374
  /**
1354
1375
  * Some funds have been allocated.
@@ -1389,6 +1410,14 @@ declare module '@polkadot/api-base/types/events' {
1389
1410
  Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], {
1390
1411
  rolloverBalance: u128;
1391
1412
  }>;
1413
+ /**
1414
+ * A new spend proposal has been approved.
1415
+ **/
1416
+ SpendApproved: AugmentedEvent<ApiType, [proposalIndex: u32, amount: u128, beneficiary: AccountId32], {
1417
+ proposalIndex: u32;
1418
+ amount: u128;
1419
+ beneficiary: AccountId32;
1420
+ }>;
1392
1421
  /**
1393
1422
  * We have ended a spend period and will now allocate funds.
1394
1423
  **/
@@ -4,4 +4,5 @@ import './errors';
4
4
  import './events';
5
5
  import './query';
6
6
  import './registry';
7
+ import './runtime';
7
8
  import './tx';
package/polkadot/index.js CHANGED
@@ -6,4 +6,5 @@ import "./errors.js";
6
6
  import "./events.js";
7
7
  import "./query.js";
8
8
  import "./registry.js";
9
+ import "./runtime.js";
9
10
  import "./tx.js";