@polkadot/api-augment 8.11.3 → 8.13.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/kusama/consts.js +3 -1
- package/cjs/kusama/errors.js +3 -1
- package/cjs/kusama/events.js +3 -1
- package/cjs/kusama/query.js +3 -1
- package/cjs/kusama/runtime.js +3 -1
- package/cjs/kusama/tx.js +3 -1
- package/cjs/package.json +1 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.js +3 -1
- package/cjs/polkadot/errors.js +3 -1
- package/cjs/polkadot/events.js +3 -1
- package/cjs/polkadot/query.js +3 -1
- package/cjs/polkadot/runtime.js +3 -1
- package/cjs/polkadot/tx.js +3 -1
- package/cjs/substrate/consts.js +3 -1
- package/cjs/substrate/errors.js +3 -1
- package/cjs/substrate/events.js +3 -1
- package/cjs/substrate/query.js +3 -1
- package/cjs/substrate/runtime.js +3 -1
- package/cjs/substrate/tx.js +3 -1
- package/kusama/consts.d.ts +10 -2
- package/kusama/consts.js +6 -1
- package/kusama/errors.d.ts +5 -4
- package/kusama/errors.js +6 -1
- package/kusama/events.d.ts +1 -0
- package/kusama/events.js +6 -1
- package/kusama/query.d.ts +1 -0
- package/kusama/query.js +6 -1
- package/kusama/runtime.d.ts +2 -1
- package/kusama/runtime.js +6 -1
- package/kusama/tx.d.ts +73 -26
- package/kusama/tx.js +6 -1
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +1 -0
- package/polkadot/consts.js +6 -1
- package/polkadot/errors.d.ts +5 -4
- package/polkadot/errors.js +6 -1
- package/polkadot/events.d.ts +1 -0
- package/polkadot/events.js +6 -1
- package/polkadot/query.d.ts +1 -0
- package/polkadot/query.js +6 -1
- package/polkadot/runtime.d.ts +2 -1
- package/polkadot/runtime.js +6 -1
- package/polkadot/tx.d.ts +63 -24
- package/polkadot/tx.js +6 -1
- package/substrate/consts.d.ts +10 -2
- package/substrate/consts.js +6 -1
- package/substrate/errors.d.ts +21 -13
- package/substrate/errors.js +6 -1
- package/substrate/events.d.ts +27 -0
- package/substrate/events.js +6 -1
- package/substrate/query.d.ts +6 -1
- package/substrate/query.js +6 -1
- package/substrate/runtime.d.ts +5 -4
- package/substrate/runtime.js +6 -1
- package/substrate/tx.d.ts +111 -29
- package/substrate/tx.js +6 -1
package/cjs/kusama/consts.js
CHANGED
package/cjs/kusama/errors.js
CHANGED
package/cjs/kusama/events.js
CHANGED
package/cjs/kusama/query.js
CHANGED
package/cjs/kusama/runtime.js
CHANGED
package/cjs/kusama/tx.js
CHANGED
package/cjs/package.json
CHANGED
package/cjs/packageInfo.js
CHANGED
package/cjs/polkadot/consts.js
CHANGED
package/cjs/polkadot/errors.js
CHANGED
package/cjs/polkadot/events.js
CHANGED
package/cjs/polkadot/query.js
CHANGED
package/cjs/polkadot/runtime.js
CHANGED
package/cjs/polkadot/tx.js
CHANGED
package/cjs/substrate/consts.js
CHANGED
package/cjs/substrate/errors.js
CHANGED
package/cjs/substrate/events.js
CHANGED
package/cjs/substrate/query.js
CHANGED
package/cjs/substrate/runtime.js
CHANGED
package/cjs/substrate/tx.js
CHANGED
package/kusama/consts.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/consts';
|
|
1
2
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
4
|
import type { Codec } from '@polkadot/types-codec/types';
|
|
@@ -454,13 +455,20 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
454
455
|
};
|
|
455
456
|
nominationPools: {
|
|
456
457
|
/**
|
|
457
|
-
* The
|
|
458
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
459
|
+
*
|
|
458
460
|
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
459
461
|
* ratio becomes disproportional.
|
|
462
|
+
*
|
|
463
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
464
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
465
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
466
|
+
* the chain, in the absolute worse case.
|
|
467
|
+
*
|
|
460
468
|
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
461
469
|
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
462
470
|
**/
|
|
463
|
-
|
|
471
|
+
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
|
464
472
|
/**
|
|
465
473
|
* The nomination pool's pallet id.
|
|
466
474
|
**/
|
package/kusama/consts.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/consts'; // declare module
|
package/kusama/errors.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/errors';
|
|
1
2
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
2
3
|
export declare type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
|
|
3
4
|
declare module '@polkadot/api-base/types/errors' {
|
|
@@ -1287,14 +1288,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1287
1288
|
* Must vote for at least one candidate.
|
|
1288
1289
|
**/
|
|
1289
1290
|
NoVotes: AugmentedError<ApiType>;
|
|
1290
|
-
/**
|
|
1291
|
-
* Cannot report self.
|
|
1292
|
-
**/
|
|
1293
|
-
ReportSelf: AugmentedError<ApiType>;
|
|
1294
1291
|
/**
|
|
1295
1292
|
* Runner cannot re-submit candidacy.
|
|
1296
1293
|
**/
|
|
1297
1294
|
RunnerUpSubmit: AugmentedError<ApiType>;
|
|
1295
|
+
/**
|
|
1296
|
+
* Too many candidates have been created.
|
|
1297
|
+
**/
|
|
1298
|
+
TooManyCandidates: AugmentedError<ApiType>;
|
|
1298
1299
|
/**
|
|
1299
1300
|
* Cannot vote more than candidates.
|
|
1300
1301
|
**/
|
package/kusama/errors.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/errors'; // declare module
|
package/kusama/events.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/events';
|
|
1
2
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
package/kusama/events.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/events'; // declare module
|
package/kusama/query.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/storage';
|
|
1
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Data } from '@polkadot/types';
|
|
3
4
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
package/kusama/query.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/storage'; // declare module
|
package/kusama/runtime.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/calls';
|
|
1
2
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
|
3
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
@@ -354,7 +355,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
354
355
|
/**
|
|
355
356
|
* Generate a set of session keys with optionally using the given seed.
|
|
356
357
|
**/
|
|
357
|
-
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null |
|
|
358
|
+
generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
|
|
358
359
|
/**
|
|
359
360
|
* Generic call
|
|
360
361
|
**/
|
package/kusama/runtime.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/calls'; // declare module
|
package/kusama/tx.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/submittable';
|
|
1
2
|
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Data } from '@polkadot/types';
|
|
3
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
@@ -704,8 +705,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
704
705
|
* Total Complexity: O(1)
|
|
705
706
|
* </weight>
|
|
706
707
|
**/
|
|
707
|
-
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null |
|
|
708
|
-
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null |
|
|
708
|
+
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option<PolkadotRuntimeCommonClaimsStatementKind> | null | Uint8Array | PolkadotRuntimeCommonClaimsStatementKind | 'Regular' | 'Saft' | number) => SubmittableExtrinsic<ApiType>, [EthereumAddress, u128, Option<ITuple<[u128, u128, u32]>>, Option<PolkadotRuntimeCommonClaimsStatementKind>]>;
|
|
709
|
+
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
|
709
710
|
/**
|
|
710
711
|
* Generic tx
|
|
711
712
|
**/
|
|
@@ -825,11 +826,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
825
826
|
/**
|
|
826
827
|
* Set the maximum number of validators to use in parachain consensus.
|
|
827
828
|
**/
|
|
828
|
-
setMaxValidators: AugmentedSubmittable<(updated: Option<u32> | null |
|
|
829
|
+
setMaxValidators: AugmentedSubmittable<(updated: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
829
830
|
/**
|
|
830
831
|
* Set the maximum number of validators to assign to any core.
|
|
831
832
|
**/
|
|
832
|
-
setMaxValidatorsPerCore: AugmentedSubmittable<(updated: Option<u32> | null |
|
|
833
|
+
setMaxValidatorsPerCore: AugmentedSubmittable<(updated: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
833
834
|
/**
|
|
834
835
|
* Sets the minimum delay between announcing the upgrade block for a parachain until the
|
|
835
836
|
* upgrade taking place.
|
|
@@ -1034,7 +1035,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1034
1035
|
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
1035
1036
|
* # </weight>
|
|
1036
1037
|
**/
|
|
1037
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null |
|
|
1038
|
+
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
1038
1039
|
/**
|
|
1039
1040
|
* Add an aye or nay vote for the sender to the given proposal.
|
|
1040
1041
|
*
|
|
@@ -1069,19 +1070,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1069
1070
|
* Contribute to a crowd sale. This will transfer some balance over to fund a parachain
|
|
1070
1071
|
* slot. It will be withdrawable when the crowdloan has ended and the funds are unused.
|
|
1071
1072
|
**/
|
|
1072
|
-
contribute: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null |
|
|
1073
|
+
contribute: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | {
|
|
1074
|
+
Ed25519: any;
|
|
1075
|
+
} | {
|
|
1076
|
+
Sr25519: any;
|
|
1077
|
+
} | {
|
|
1078
|
+
Ecdsa: any;
|
|
1079
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Option<SpRuntimeMultiSignature>]>;
|
|
1073
1080
|
/**
|
|
1074
1081
|
* Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain
|
|
1075
1082
|
* slot. It will be withdrawable when the crowdloan has ended and the funds are unused.
|
|
1076
1083
|
**/
|
|
1077
|
-
contributeAll: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null |
|
|
1084
|
+
contributeAll: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | {
|
|
1085
|
+
Ed25519: any;
|
|
1086
|
+
} | {
|
|
1087
|
+
Sr25519: any;
|
|
1088
|
+
} | {
|
|
1089
|
+
Ecdsa: any;
|
|
1090
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<SpRuntimeMultiSignature>]>;
|
|
1078
1091
|
/**
|
|
1079
1092
|
* Create a new crowdloaning campaign for a parachain slot with the given lease period range.
|
|
1080
1093
|
*
|
|
1081
1094
|
* This applies a lock to your parachain configuration, ensuring that it cannot be changed
|
|
1082
1095
|
* by the parachain manager.
|
|
1083
1096
|
**/
|
|
1084
|
-
create: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null |
|
|
1097
|
+
create: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null | Uint8Array | SpRuntimeMultiSigner | {
|
|
1098
|
+
Ed25519: any;
|
|
1099
|
+
} | {
|
|
1100
|
+
Sr25519: any;
|
|
1101
|
+
} | {
|
|
1102
|
+
Ecdsa: any;
|
|
1103
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Compact<u32>, Compact<u32>, Compact<u32>, Option<SpRuntimeMultiSigner>]>;
|
|
1085
1104
|
/**
|
|
1086
1105
|
* Remove a fund after the retirement period has ended and all funds have been returned.
|
|
1087
1106
|
**/
|
|
@@ -1091,7 +1110,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1091
1110
|
*
|
|
1092
1111
|
* Can only be called by Root origin.
|
|
1093
1112
|
**/
|
|
1094
|
-
edit: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null |
|
|
1113
|
+
edit: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, cap: Compact<u128> | AnyNumber | Uint8Array, firstPeriod: Compact<u32> | AnyNumber | Uint8Array, lastPeriod: Compact<u32> | AnyNumber | Uint8Array, end: Compact<u32> | AnyNumber | Uint8Array, verifier: Option<SpRuntimeMultiSigner> | null | Uint8Array | SpRuntimeMultiSigner | {
|
|
1114
|
+
Ed25519: any;
|
|
1115
|
+
} | {
|
|
1116
|
+
Sr25519: any;
|
|
1117
|
+
} | {
|
|
1118
|
+
Ecdsa: any;
|
|
1119
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Compact<u32>, Compact<u32>, Compact<u32>, Option<SpRuntimeMultiSigner>]>;
|
|
1095
1120
|
/**
|
|
1096
1121
|
* Poke the fund into `NewRaise`
|
|
1097
1122
|
*
|
|
@@ -1149,7 +1174,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1149
1174
|
* Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
|
|
1150
1175
|
* reasonable value).
|
|
1151
1176
|
**/
|
|
1152
|
-
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null |
|
|
1177
|
+
blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [H256, Option<u32>]>;
|
|
1153
1178
|
/**
|
|
1154
1179
|
* Remove a proposal.
|
|
1155
1180
|
*
|
|
@@ -1485,7 +1510,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1485
1510
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
|
1486
1511
|
* calling [`Call::set_emergency_election_result`].
|
|
1487
1512
|
**/
|
|
1488
|
-
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null |
|
|
1513
|
+
governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | Uint8Array | u32 | AnyNumber, maybeMaxTargets: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
|
|
1489
1514
|
/**
|
|
1490
1515
|
* Set a solution in the queue, to be handed out to the client of this pallet in the next
|
|
1491
1516
|
* call to `ElectionProvider::elect`.
|
|
@@ -1507,7 +1532,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1507
1532
|
*
|
|
1508
1533
|
* This check can be turned off by setting the value to `None`.
|
|
1509
1534
|
**/
|
|
1510
|
-
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null |
|
|
1535
|
+
setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null | Uint8Array | SpNposElectionsElectionScore | {
|
|
1536
|
+
minimalStake?: any;
|
|
1537
|
+
sumStake?: any;
|
|
1538
|
+
sumStakeSquared?: any;
|
|
1539
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Option<SpNposElectionsElectionScore>]>;
|
|
1511
1540
|
/**
|
|
1512
1541
|
* Submit a solution for the signed phase.
|
|
1513
1542
|
*
|
|
@@ -2302,7 +2331,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2302
2331
|
* - Write: Multisig Storage, [Caller Account]
|
|
2303
2332
|
* # </weight>
|
|
2304
2333
|
**/
|
|
2305
|
-
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null |
|
|
2334
|
+
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
2335
|
+
height?: any;
|
|
2336
|
+
index?: any;
|
|
2337
|
+
} | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
|
|
2306
2338
|
/**
|
|
2307
2339
|
* Register approval for a dispatch to be made from a deterministic composite account if
|
|
2308
2340
|
* approved by a total of `threshold - 1` of `other_signatories`.
|
|
@@ -2350,7 +2382,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2350
2382
|
* - Plus Call Weight
|
|
2351
2383
|
* # </weight>
|
|
2352
2384
|
**/
|
|
2353
|
-
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null |
|
|
2385
|
+
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
2386
|
+
height?: any;
|
|
2387
|
+
index?: any;
|
|
2388
|
+
} | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
|
|
2354
2389
|
/**
|
|
2355
2390
|
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
|
2356
2391
|
*
|
|
@@ -2413,6 +2448,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2413
2448
|
*
|
|
2414
2449
|
* Additional funds can come from either the free balance of the account, of from the
|
|
2415
2450
|
* accumulated rewards, see [`BondExtra`].
|
|
2451
|
+
*
|
|
2452
|
+
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
2416
2453
|
**/
|
|
2417
2454
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
2418
2455
|
FreeBalance: any;
|
|
@@ -2543,8 +2580,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2543
2580
|
/**
|
|
2544
2581
|
* Set a new state for the pool.
|
|
2545
2582
|
*
|
|
2546
|
-
*
|
|
2547
|
-
*
|
|
2583
|
+
* If a pool is already in the `Destroying` state, then under no condition can its state
|
|
2584
|
+
* change again.
|
|
2585
|
+
*
|
|
2586
|
+
* The dispatch origin of this call must be either:
|
|
2587
|
+
*
|
|
2588
|
+
* 1. signed by the state toggler, or the root role of the pool,
|
|
2589
|
+
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
2590
|
+
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
2548
2591
|
**/
|
|
2549
2592
|
setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
|
|
2550
2593
|
/**
|
|
@@ -2748,7 +2791,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2748
2791
|
* the outgoing member is slashed.
|
|
2749
2792
|
*
|
|
2750
2793
|
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
2751
|
-
* outgoing member. Otherwise, a new phragmen election is
|
|
2794
|
+
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
2795
|
+
* started, else, nothing happens.
|
|
2796
|
+
*
|
|
2797
|
+
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
2798
|
+
* it is returned.
|
|
2752
2799
|
*
|
|
2753
2800
|
* The dispatch origin of this call must be root.
|
|
2754
2801
|
*
|
|
@@ -2769,7 +2816,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2769
2816
|
Address32: any;
|
|
2770
2817
|
} | {
|
|
2771
2818
|
Address20: any;
|
|
2772
|
-
} | string | Uint8Array,
|
|
2819
|
+
} | string | Uint8Array, slashBond: bool | boolean | Uint8Array, rerunElection: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool, bool]>;
|
|
2773
2820
|
/**
|
|
2774
2821
|
* Remove `origin` as a voter.
|
|
2775
2822
|
*
|
|
@@ -2991,7 +3038,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2991
3038
|
* Weight is a function of the number of proxies the user has (P).
|
|
2992
3039
|
* # </weight>
|
|
2993
3040
|
**/
|
|
2994
|
-
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null |
|
|
3041
|
+
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
|
|
2995
3042
|
/**
|
|
2996
3043
|
* Dispatch the given `call` from an account that the sender is authorized for through
|
|
2997
3044
|
* `add_proxy`.
|
|
@@ -3011,7 +3058,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3011
3058
|
* - P: the number of proxies the user has.
|
|
3012
3059
|
* # </weight>
|
|
3013
3060
|
**/
|
|
3014
|
-
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null |
|
|
3061
|
+
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | Uint8Array | KusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | 'Society' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
|
|
3015
3062
|
/**
|
|
3016
3063
|
* Remove the given announcement of a delegate.
|
|
3017
3064
|
*
|
|
@@ -3296,7 +3343,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3296
3343
|
/**
|
|
3297
3344
|
* Anonymously schedule a task.
|
|
3298
3345
|
**/
|
|
3299
|
-
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
3346
|
+
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
3300
3347
|
Value: any;
|
|
3301
3348
|
} | {
|
|
3302
3349
|
Hash: any;
|
|
@@ -3308,7 +3355,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3308
3355
|
* Same as [`schedule`].
|
|
3309
3356
|
* # </weight>
|
|
3310
3357
|
**/
|
|
3311
|
-
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
3358
|
+
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
3312
3359
|
Value: any;
|
|
3313
3360
|
} | {
|
|
3314
3361
|
Hash: any;
|
|
@@ -3316,7 +3363,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3316
3363
|
/**
|
|
3317
3364
|
* Schedule a named task.
|
|
3318
3365
|
**/
|
|
3319
|
-
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
3366
|
+
scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
3320
3367
|
Value: any;
|
|
3321
3368
|
} | {
|
|
3322
3369
|
Hash: any;
|
|
@@ -3328,7 +3375,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3328
3375
|
* Same as [`schedule_named`](Self::schedule_named).
|
|
3329
3376
|
* # </weight>
|
|
3330
3377
|
**/
|
|
3331
|
-
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null |
|
|
3378
|
+
scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
|
|
3332
3379
|
Value: any;
|
|
3333
3380
|
} | {
|
|
3334
3381
|
Hash: any;
|
|
@@ -4454,7 +4501,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4454
4501
|
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
4455
4502
|
* # </weight>
|
|
4456
4503
|
**/
|
|
4457
|
-
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null |
|
|
4504
|
+
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
4458
4505
|
/**
|
|
4459
4506
|
* Add an aye or nay vote for the sender to the given proposal.
|
|
4460
4507
|
*
|
|
@@ -5119,7 +5166,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5119
5166
|
* - `origin`: Must be Root.
|
|
5120
5167
|
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
|
5121
5168
|
**/
|
|
5122
|
-
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null |
|
|
5169
|
+
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
|
5123
5170
|
/**
|
|
5124
5171
|
* Ask a location to notify us regarding their XCM version and any changes to it.
|
|
5125
5172
|
*
|
package/kusama/tx.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/submittable'; // declare module
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "8.
|
|
23
|
+
"version": "8.13.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.6",
|
|
189
|
-
"@polkadot/api-base": "8.
|
|
190
|
-
"@polkadot/rpc-augment": "8.
|
|
191
|
-
"@polkadot/types": "8.
|
|
192
|
-
"@polkadot/types-augment": "8.
|
|
193
|
-
"@polkadot/types-codec": "8.
|
|
194
|
-
"@polkadot/util": "^
|
|
189
|
+
"@polkadot/api-base": "8.13.1",
|
|
190
|
+
"@polkadot/rpc-augment": "8.13.1",
|
|
191
|
+
"@polkadot/types": "8.13.1",
|
|
192
|
+
"@polkadot/types-augment": "8.13.1",
|
|
193
|
+
"@polkadot/types-codec": "8.13.1",
|
|
194
|
+
"@polkadot/util": "^10.0.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.
|
|
8
|
+
version: '8.13.1'
|
|
9
9
|
};
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/consts';
|
|
1
2
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
2
3
|
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
4
|
import type { Codec } from '@polkadot/types-codec/types';
|
package/polkadot/consts.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/consts'; // declare module
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/errors';
|
|
1
2
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
2
3
|
export declare type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
|
|
3
4
|
declare module '@polkadot/api-base/types/errors' {
|
|
@@ -1145,14 +1146,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1145
1146
|
* Must vote for at least one candidate.
|
|
1146
1147
|
**/
|
|
1147
1148
|
NoVotes: AugmentedError<ApiType>;
|
|
1148
|
-
/**
|
|
1149
|
-
* Cannot report self.
|
|
1150
|
-
**/
|
|
1151
|
-
ReportSelf: AugmentedError<ApiType>;
|
|
1152
1149
|
/**
|
|
1153
1150
|
* Runner cannot re-submit candidacy.
|
|
1154
1151
|
**/
|
|
1155
1152
|
RunnerUpSubmit: AugmentedError<ApiType>;
|
|
1153
|
+
/**
|
|
1154
|
+
* Too many candidates have been created.
|
|
1155
|
+
**/
|
|
1156
|
+
TooManyCandidates: AugmentedError<ApiType>;
|
|
1156
1157
|
/**
|
|
1157
1158
|
* Cannot vote more than candidates.
|
|
1158
1159
|
**/
|