@polkadot/api-augment 8.14.1 → 9.0.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/events.d.ts +3 -2
- package/kusama/query.d.ts +0 -4
- package/kusama/runtime.d.ts +13 -1
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/query.d.ts +0 -4
- package/substrate/errors.d.ts +8 -4
- package/substrate/events.d.ts +3 -2
- package/substrate/query.d.ts +0 -4
- package/substrate/runtime.d.ts +12 -0
package/cjs/packageInfo.js
CHANGED
package/kusama/events.d.ts
CHANGED
|
@@ -909,16 +909,17 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
909
909
|
* pool.
|
|
910
910
|
* - `points` is the number of points that are issued as a result of `balance` being
|
|
911
911
|
* dissolved into the corresponding unbonding pool.
|
|
912
|
-
*
|
|
912
|
+
* - `era` is the era in which the balance will be unbonded.
|
|
913
913
|
* In the absence of slashing, these values will match. In the presence of slashing, the
|
|
914
914
|
* number of points that are issued in the unbonding pool will be less than the amount
|
|
915
915
|
* requested to be unbonded.
|
|
916
916
|
**/
|
|
917
|
-
Unbonded: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, balance: u128, points: u128], {
|
|
917
|
+
Unbonded: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, balance: u128, points: u128, era: u32], {
|
|
918
918
|
member: AccountId32;
|
|
919
919
|
poolId: u32;
|
|
920
920
|
balance: u128;
|
|
921
921
|
points: u128;
|
|
922
|
+
era: u32;
|
|
922
923
|
}>;
|
|
923
924
|
/**
|
|
924
925
|
* The unbond pool at `era` of pool `pool_id` has been slashed to `balance`.
|
package/kusama/query.d.ts
CHANGED
|
@@ -1536,10 +1536,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1536
1536
|
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
|
1537
1537
|
**/
|
|
1538
1538
|
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1539
|
-
/**
|
|
1540
|
-
* The earliest era for which we have a pending, unapplied slash.
|
|
1541
|
-
**/
|
|
1542
|
-
earliestUnappliedSlash: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1543
1539
|
/**
|
|
1544
1540
|
* Rewards for the last `HISTORY_DEPTH` eras.
|
|
1545
1541
|
* If reward hasn't been set or has been removed then 0 reward is returned.
|
package/kusama/runtime.d.ts
CHANGED
|
@@ -11,9 +11,10 @@ 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';
|
|
14
15
|
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
16
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
16
|
-
import type { AccountId, Block, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
|
17
|
+
import type { AccountId, Balance, Block, Hash, Header, Index, KeyTypeId, Slot, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
|
17
18
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
|
18
19
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
19
20
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
@@ -238,6 +239,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
238
239
|
**/
|
|
239
240
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
240
241
|
};
|
|
242
|
+
/** 0x17a6bc0d0062aeb3/1 */
|
|
243
|
+
nominationPoolsApi: {
|
|
244
|
+
/**
|
|
245
|
+
* Returns the pending rewards for the given member.
|
|
246
|
+
**/
|
|
247
|
+
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Result<Balance, NpApiError>>>;
|
|
248
|
+
/**
|
|
249
|
+
* Generic call
|
|
250
|
+
**/
|
|
251
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
252
|
+
};
|
|
241
253
|
/** 0xf78b278be53f454c/2 */
|
|
242
254
|
offchainWorkerApi: {
|
|
243
255
|
/**
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "
|
|
23
|
+
"version": "9.0.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": "
|
|
190
|
-
"@polkadot/rpc-augment": "
|
|
191
|
-
"@polkadot/types": "
|
|
192
|
-
"@polkadot/types-augment": "
|
|
193
|
-
"@polkadot/types-codec": "
|
|
194
|
-
"@polkadot/util": "^10.1.
|
|
189
|
+
"@polkadot/api-base": "9.0.1",
|
|
190
|
+
"@polkadot/rpc-augment": "9.0.1",
|
|
191
|
+
"@polkadot/types": "9.0.1",
|
|
192
|
+
"@polkadot/types-augment": "9.0.1",
|
|
193
|
+
"@polkadot/types-codec": "9.0.1",
|
|
194
|
+
"@polkadot/util": "^10.1.2"
|
|
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: '
|
|
8
|
+
version: '9.0.1'
|
|
9
9
|
};
|
package/polkadot/query.d.ts
CHANGED
|
@@ -1324,10 +1324,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1324
1324
|
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
|
1325
1325
|
**/
|
|
1326
1326
|
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1327
|
-
/**
|
|
1328
|
-
* The earliest era for which we have a pending, unapplied slash.
|
|
1329
|
-
**/
|
|
1330
|
-
earliestUnappliedSlash: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1331
1327
|
/**
|
|
1332
1328
|
* Rewards for the last `HISTORY_DEPTH` eras.
|
|
1333
1329
|
* If reward hasn't been set or has been removed then 0 reward is returned.
|
package/substrate/errors.d.ts
CHANGED
|
@@ -9,6 +9,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
9
9
|
* nominated.
|
|
10
10
|
**/
|
|
11
11
|
AccountNonGrata: AugmentedError<ApiType>;
|
|
12
|
+
/**
|
|
13
|
+
* The founders/fellows/allies have already been initialized.
|
|
14
|
+
**/
|
|
15
|
+
AllianceAlreadyInitialized: AugmentedError<ApiType>;
|
|
16
|
+
/**
|
|
17
|
+
* The Alliance has not been initialized yet, therefore accounts cannot join it.
|
|
18
|
+
**/
|
|
19
|
+
AllianceNotYetInitialized: AugmentedError<ApiType>;
|
|
12
20
|
/**
|
|
13
21
|
* Account is already an elevated (fellow) member.
|
|
14
22
|
**/
|
|
@@ -25,10 +33,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
25
33
|
* Balance is insufficient for the required deposit.
|
|
26
34
|
**/
|
|
27
35
|
InsufficientFunds: AugmentedError<ApiType>;
|
|
28
|
-
/**
|
|
29
|
-
* The founders/fellows/allies have already been initialized.
|
|
30
|
-
**/
|
|
31
|
-
MembersAlreadyInitialized: AugmentedError<ApiType>;
|
|
32
36
|
/**
|
|
33
37
|
* The announcement is not found.
|
|
34
38
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -1180,16 +1180,17 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1180
1180
|
* pool.
|
|
1181
1181
|
* - `points` is the number of points that are issued as a result of `balance` being
|
|
1182
1182
|
* dissolved into the corresponding unbonding pool.
|
|
1183
|
-
*
|
|
1183
|
+
* - `era` is the era in which the balance will be unbonded.
|
|
1184
1184
|
* In the absence of slashing, these values will match. In the presence of slashing, the
|
|
1185
1185
|
* number of points that are issued in the unbonding pool will be less than the amount
|
|
1186
1186
|
* requested to be unbonded.
|
|
1187
1187
|
**/
|
|
1188
|
-
Unbonded: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, balance: u128, points: u128], {
|
|
1188
|
+
Unbonded: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, balance: u128, points: u128, era: u32], {
|
|
1189
1189
|
member: AccountId32;
|
|
1190
1190
|
poolId: u32;
|
|
1191
1191
|
balance: u128;
|
|
1192
1192
|
points: u128;
|
|
1193
|
+
era: u32;
|
|
1193
1194
|
}>;
|
|
1194
1195
|
/**
|
|
1195
1196
|
* The unbond pool at `era` of pool `pool_id` has been slashed to `balance`.
|
package/substrate/query.d.ts
CHANGED
|
@@ -1287,10 +1287,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1287
1287
|
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
|
1288
1288
|
**/
|
|
1289
1289
|
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1290
|
-
/**
|
|
1291
|
-
* The earliest era for which we have a pending, unapplied slash.
|
|
1292
|
-
**/
|
|
1293
|
-
earliestUnappliedSlash: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1294
1290
|
/**
|
|
1295
1291
|
* Rewards for the last `HISTORY_DEPTH` eras.
|
|
1296
1292
|
* If reward hasn't been set or has been removed then 0 reward is returned.
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ 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';
|
|
14
15
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
15
16
|
import type { AccountId, Balance, Block, Hash, Header, Index, KeyTypeId, Slot } from '@polkadot/types/interfaces/runtime';
|
|
16
17
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
@@ -248,6 +249,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
248
249
|
**/
|
|
249
250
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
250
251
|
};
|
|
252
|
+
/** 0x17a6bc0d0062aeb3/1 */
|
|
253
|
+
nominationPoolsApi: {
|
|
254
|
+
/**
|
|
255
|
+
* Returns the pending rewards for the given member.
|
|
256
|
+
**/
|
|
257
|
+
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Result<Balance, NpApiError>>>;
|
|
258
|
+
/**
|
|
259
|
+
* Generic call
|
|
260
|
+
**/
|
|
261
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
262
|
+
};
|
|
251
263
|
/** 0xf78b278be53f454c/2 */
|
|
252
264
|
offchainWorkerApi: {
|
|
253
265
|
/**
|