@polkadot/api-augment 12.0.2 → 12.2.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/consts.d.ts +0 -71
- package/kusama/errors.d.ts +4 -146
- package/kusama/events.d.ts +8 -160
- package/kusama/query.d.ts +1 -81
- package/kusama/tx.d.ts +64 -325
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +30 -0
- package/polkadot/errors.d.ts +40 -0
- package/polkadot/events.d.ts +40 -2
- package/polkadot/query.d.ts +26 -1
- package/polkadot/runtime.d.ts +27 -2
- package/polkadot/tx.d.ts +115 -1
- package/substrate/consts.d.ts +0 -13
- package/substrate/errors.d.ts +16 -4
- package/substrate/events.d.ts +9 -16
- package/substrate/query.d.ts +39 -4
- package/substrate/tx.d.ts +49 -75
package/kusama/tx.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/submittable';
|
|
2
2
|
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
|
|
3
|
-
import type { Data } from '@polkadot/types';
|
|
4
3
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletBrokerCoretimeInterfaceCoreAssignment, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize,
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletBrokerCoretimeInterfaceCoreAssignment, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6InherentData, PolkadotPrimitivesV6PvfCheckStatement, PolkadotPrimitivesV6SlashingDisputeProof, PolkadotPrimitivesV6ValidatorAppSignature, PolkadotPrimitivesVstagingApprovalVotingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingKusamaRuntimeOriginCaller, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeSessionKeys, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
8
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
9
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
10
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -981,6 +980,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
981
980
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
982
981
|
};
|
|
983
982
|
hrmp: {
|
|
983
|
+
/**
|
|
984
|
+
* See [`Pallet::establish_channel_with_system`].
|
|
985
|
+
**/
|
|
986
|
+
establishChannelWithSystem: AugmentedSubmittable<(targetSystemChain: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
984
987
|
/**
|
|
985
988
|
* See [`Pallet::establish_system_channel`].
|
|
986
989
|
**/
|
|
@@ -1032,266 +1035,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1032
1035
|
**/
|
|
1033
1036
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1034
1037
|
};
|
|
1035
|
-
identity: {
|
|
1036
|
-
/**
|
|
1037
|
-
* See [`Pallet::accept_username`].
|
|
1038
|
-
**/
|
|
1039
|
-
acceptUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
1040
|
-
/**
|
|
1041
|
-
* See [`Pallet::add_registrar`].
|
|
1042
|
-
**/
|
|
1043
|
-
addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
|
|
1044
|
-
Id: any;
|
|
1045
|
-
} | {
|
|
1046
|
-
Index: any;
|
|
1047
|
-
} | {
|
|
1048
|
-
Raw: any;
|
|
1049
|
-
} | {
|
|
1050
|
-
Address32: any;
|
|
1051
|
-
} | {
|
|
1052
|
-
Address20: any;
|
|
1053
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1054
|
-
/**
|
|
1055
|
-
* See [`Pallet::add_sub`].
|
|
1056
|
-
**/
|
|
1057
|
-
addSub: AugmentedSubmittable<(sub: MultiAddress | {
|
|
1058
|
-
Id: any;
|
|
1059
|
-
} | {
|
|
1060
|
-
Index: any;
|
|
1061
|
-
} | {
|
|
1062
|
-
Raw: any;
|
|
1063
|
-
} | {
|
|
1064
|
-
Address32: any;
|
|
1065
|
-
} | {
|
|
1066
|
-
Address20: any;
|
|
1067
|
-
} | string | Uint8Array, data: Data | {
|
|
1068
|
-
None: any;
|
|
1069
|
-
} | {
|
|
1070
|
-
Raw: any;
|
|
1071
|
-
} | {
|
|
1072
|
-
BlakeTwo256: any;
|
|
1073
|
-
} | {
|
|
1074
|
-
Sha256: any;
|
|
1075
|
-
} | {
|
|
1076
|
-
Keccak256: any;
|
|
1077
|
-
} | {
|
|
1078
|
-
ShaThree256: any;
|
|
1079
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
|
|
1080
|
-
/**
|
|
1081
|
-
* See [`Pallet::add_username_authority`].
|
|
1082
|
-
**/
|
|
1083
|
-
addUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | {
|
|
1084
|
-
Id: any;
|
|
1085
|
-
} | {
|
|
1086
|
-
Index: any;
|
|
1087
|
-
} | {
|
|
1088
|
-
Raw: any;
|
|
1089
|
-
} | {
|
|
1090
|
-
Address32: any;
|
|
1091
|
-
} | {
|
|
1092
|
-
Address20: any;
|
|
1093
|
-
} | string | Uint8Array, suffix: Bytes | string | Uint8Array, allocation: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, u32]>;
|
|
1094
|
-
/**
|
|
1095
|
-
* See [`Pallet::cancel_request`].
|
|
1096
|
-
**/
|
|
1097
|
-
cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1098
|
-
/**
|
|
1099
|
-
* See [`Pallet::clear_identity`].
|
|
1100
|
-
**/
|
|
1101
|
-
clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1102
|
-
/**
|
|
1103
|
-
* See [`Pallet::kill_identity`].
|
|
1104
|
-
**/
|
|
1105
|
-
killIdentity: AugmentedSubmittable<(target: MultiAddress | {
|
|
1106
|
-
Id: any;
|
|
1107
|
-
} | {
|
|
1108
|
-
Index: any;
|
|
1109
|
-
} | {
|
|
1110
|
-
Raw: any;
|
|
1111
|
-
} | {
|
|
1112
|
-
Address32: any;
|
|
1113
|
-
} | {
|
|
1114
|
-
Address20: any;
|
|
1115
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1116
|
-
/**
|
|
1117
|
-
* See [`Pallet::provide_judgement`].
|
|
1118
|
-
**/
|
|
1119
|
-
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
|
|
1120
|
-
Id: any;
|
|
1121
|
-
} | {
|
|
1122
|
-
Index: any;
|
|
1123
|
-
} | {
|
|
1124
|
-
Raw: any;
|
|
1125
|
-
} | {
|
|
1126
|
-
Address32: any;
|
|
1127
|
-
} | {
|
|
1128
|
-
Address20: any;
|
|
1129
|
-
} | string | Uint8Array, judgement: PalletIdentityJudgement | {
|
|
1130
|
-
Unknown: any;
|
|
1131
|
-
} | {
|
|
1132
|
-
FeePaid: any;
|
|
1133
|
-
} | {
|
|
1134
|
-
Reasonable: any;
|
|
1135
|
-
} | {
|
|
1136
|
-
KnownGood: any;
|
|
1137
|
-
} | {
|
|
1138
|
-
OutOfDate: any;
|
|
1139
|
-
} | {
|
|
1140
|
-
LowQuality: any;
|
|
1141
|
-
} | {
|
|
1142
|
-
Erroneous: any;
|
|
1143
|
-
} | string | Uint8Array, identity: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, PalletIdentityJudgement, H256]>;
|
|
1144
|
-
/**
|
|
1145
|
-
* See [`Pallet::quit_sub`].
|
|
1146
|
-
**/
|
|
1147
|
-
quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1148
|
-
/**
|
|
1149
|
-
* See [`Pallet::remove_dangling_username`].
|
|
1150
|
-
**/
|
|
1151
|
-
removeDanglingUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
1152
|
-
/**
|
|
1153
|
-
* See [`Pallet::remove_expired_approval`].
|
|
1154
|
-
**/
|
|
1155
|
-
removeExpiredApproval: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
1156
|
-
/**
|
|
1157
|
-
* See [`Pallet::remove_sub`].
|
|
1158
|
-
**/
|
|
1159
|
-
removeSub: AugmentedSubmittable<(sub: MultiAddress | {
|
|
1160
|
-
Id: any;
|
|
1161
|
-
} | {
|
|
1162
|
-
Index: any;
|
|
1163
|
-
} | {
|
|
1164
|
-
Raw: any;
|
|
1165
|
-
} | {
|
|
1166
|
-
Address32: any;
|
|
1167
|
-
} | {
|
|
1168
|
-
Address20: any;
|
|
1169
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1170
|
-
/**
|
|
1171
|
-
* See [`Pallet::remove_username_authority`].
|
|
1172
|
-
**/
|
|
1173
|
-
removeUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | {
|
|
1174
|
-
Id: any;
|
|
1175
|
-
} | {
|
|
1176
|
-
Index: any;
|
|
1177
|
-
} | {
|
|
1178
|
-
Raw: any;
|
|
1179
|
-
} | {
|
|
1180
|
-
Address32: any;
|
|
1181
|
-
} | {
|
|
1182
|
-
Address20: any;
|
|
1183
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
1184
|
-
/**
|
|
1185
|
-
* See [`Pallet::rename_sub`].
|
|
1186
|
-
**/
|
|
1187
|
-
renameSub: AugmentedSubmittable<(sub: MultiAddress | {
|
|
1188
|
-
Id: any;
|
|
1189
|
-
} | {
|
|
1190
|
-
Index: any;
|
|
1191
|
-
} | {
|
|
1192
|
-
Raw: any;
|
|
1193
|
-
} | {
|
|
1194
|
-
Address32: any;
|
|
1195
|
-
} | {
|
|
1196
|
-
Address20: any;
|
|
1197
|
-
} | string | Uint8Array, data: Data | {
|
|
1198
|
-
None: any;
|
|
1199
|
-
} | {
|
|
1200
|
-
Raw: any;
|
|
1201
|
-
} | {
|
|
1202
|
-
BlakeTwo256: any;
|
|
1203
|
-
} | {
|
|
1204
|
-
Sha256: any;
|
|
1205
|
-
} | {
|
|
1206
|
-
Keccak256: any;
|
|
1207
|
-
} | {
|
|
1208
|
-
ShaThree256: any;
|
|
1209
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Data]>;
|
|
1210
|
-
/**
|
|
1211
|
-
* See [`Pallet::request_judgement`].
|
|
1212
|
-
**/
|
|
1213
|
-
requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
1214
|
-
/**
|
|
1215
|
-
* See [`Pallet::set_account_id`].
|
|
1216
|
-
**/
|
|
1217
|
-
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
|
|
1218
|
-
Id: any;
|
|
1219
|
-
} | {
|
|
1220
|
-
Index: any;
|
|
1221
|
-
} | {
|
|
1222
|
-
Raw: any;
|
|
1223
|
-
} | {
|
|
1224
|
-
Address32: any;
|
|
1225
|
-
} | {
|
|
1226
|
-
Address20: any;
|
|
1227
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
|
1228
|
-
/**
|
|
1229
|
-
* See [`Pallet::set_fee`].
|
|
1230
|
-
**/
|
|
1231
|
-
setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
1232
|
-
/**
|
|
1233
|
-
* See [`Pallet::set_fields`].
|
|
1234
|
-
**/
|
|
1235
|
-
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u64]>;
|
|
1236
|
-
/**
|
|
1237
|
-
* See [`Pallet::set_identity`].
|
|
1238
|
-
**/
|
|
1239
|
-
setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | {
|
|
1240
|
-
additional?: any;
|
|
1241
|
-
display?: any;
|
|
1242
|
-
legal?: any;
|
|
1243
|
-
web?: any;
|
|
1244
|
-
riot?: any;
|
|
1245
|
-
email?: any;
|
|
1246
|
-
pgpFingerprint?: any;
|
|
1247
|
-
image?: any;
|
|
1248
|
-
twitter?: any;
|
|
1249
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
|
|
1250
|
-
/**
|
|
1251
|
-
* See [`Pallet::set_primary_username`].
|
|
1252
|
-
**/
|
|
1253
|
-
setPrimaryUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
1254
|
-
/**
|
|
1255
|
-
* See [`Pallet::set_subs`].
|
|
1256
|
-
**/
|
|
1257
|
-
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
|
|
1258
|
-
None: any;
|
|
1259
|
-
} | {
|
|
1260
|
-
Raw: any;
|
|
1261
|
-
} | {
|
|
1262
|
-
BlakeTwo256: any;
|
|
1263
|
-
} | {
|
|
1264
|
-
Sha256: any;
|
|
1265
|
-
} | {
|
|
1266
|
-
Keccak256: any;
|
|
1267
|
-
} | {
|
|
1268
|
-
ShaThree256: any;
|
|
1269
|
-
} | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
|
|
1270
|
-
/**
|
|
1271
|
-
* See [`Pallet::set_username_for`].
|
|
1272
|
-
**/
|
|
1273
|
-
setUsernameFor: AugmentedSubmittable<(who: MultiAddress | {
|
|
1274
|
-
Id: any;
|
|
1275
|
-
} | {
|
|
1276
|
-
Index: any;
|
|
1277
|
-
} | {
|
|
1278
|
-
Raw: any;
|
|
1279
|
-
} | {
|
|
1280
|
-
Address32: any;
|
|
1281
|
-
} | {
|
|
1282
|
-
Address20: any;
|
|
1283
|
-
} | string | Uint8Array, username: Bytes | string | Uint8Array, signature: Option<SpRuntimeMultiSignature> | null | Uint8Array | SpRuntimeMultiSignature | {
|
|
1284
|
-
Ed25519: any;
|
|
1285
|
-
} | {
|
|
1286
|
-
Sr25519: any;
|
|
1287
|
-
} | {
|
|
1288
|
-
Ecdsa: any;
|
|
1289
|
-
} | string) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, Option<SpRuntimeMultiSignature>]>;
|
|
1290
|
-
/**
|
|
1291
|
-
* Generic tx
|
|
1292
|
-
**/
|
|
1293
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1294
|
-
};
|
|
1295
1038
|
indices: {
|
|
1296
1039
|
/**
|
|
1297
1040
|
* See [`Pallet::claim`].
|
|
@@ -1962,7 +1705,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1962
1705
|
Address32: any;
|
|
1963
1706
|
} | {
|
|
1964
1707
|
Address20: any;
|
|
1965
|
-
} | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | '
|
|
1708
|
+
} | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u32]>;
|
|
1966
1709
|
/**
|
|
1967
1710
|
* See [`Pallet::announce`].
|
|
1968
1711
|
**/
|
|
@@ -1980,7 +1723,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1980
1723
|
/**
|
|
1981
1724
|
* See [`Pallet::create_pure`].
|
|
1982
1725
|
**/
|
|
1983
|
-
createPure: AugmentedSubmittable<(proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | '
|
|
1726
|
+
createPure: AugmentedSubmittable<(proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingKusamaRuntimeProxyType, u32, u16]>;
|
|
1984
1727
|
/**
|
|
1985
1728
|
* See [`Pallet::kill_pure`].
|
|
1986
1729
|
**/
|
|
@@ -1994,7 +1737,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1994
1737
|
Address32: any;
|
|
1995
1738
|
} | {
|
|
1996
1739
|
Address20: any;
|
|
1997
|
-
} | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | '
|
|
1740
|
+
} | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
1998
1741
|
/**
|
|
1999
1742
|
* See [`Pallet::proxy`].
|
|
2000
1743
|
**/
|
|
@@ -2008,7 +1751,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2008
1751
|
Address32: any;
|
|
2009
1752
|
} | {
|
|
2010
1753
|
Address20: any;
|
|
2011
|
-
} | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | '
|
|
1754
|
+
} | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<StagingKusamaRuntimeProxyType>, Call]>;
|
|
2012
1755
|
/**
|
|
2013
1756
|
* See [`Pallet::proxy_announced`].
|
|
2014
1757
|
**/
|
|
@@ -2032,7 +1775,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2032
1775
|
Address32: any;
|
|
2033
1776
|
} | {
|
|
2034
1777
|
Address20: any;
|
|
2035
|
-
} | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | '
|
|
1778
|
+
} | string | Uint8Array, forceProxyType: Option<StagingKusamaRuntimeProxyType> | null | Uint8Array | StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<StagingKusamaRuntimeProxyType>, Call]>;
|
|
2036
1779
|
/**
|
|
2037
1780
|
* See [`Pallet::reject_announcement`].
|
|
2038
1781
|
**/
|
|
@@ -2078,7 +1821,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2078
1821
|
Address32: any;
|
|
2079
1822
|
} | {
|
|
2080
1823
|
Address20: any;
|
|
2081
|
-
} | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | '
|
|
1824
|
+
} | string | Uint8Array, proxyType: StagingKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'Society' | 'NominationPools' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, StagingKusamaRuntimeProxyType, u32]>;
|
|
2082
1825
|
/**
|
|
2083
1826
|
* Generic tx
|
|
2084
1827
|
**/
|
|
@@ -2618,6 +2361,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2618
2361
|
* See [`Pallet::rebond`].
|
|
2619
2362
|
**/
|
|
2620
2363
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
2364
|
+
/**
|
|
2365
|
+
* See [`Pallet::restore_ledger`].
|
|
2366
|
+
**/
|
|
2367
|
+
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PalletStakingUnlockChunk>> | null | Uint8Array | Vec<PalletStakingUnlockChunk> | (PalletStakingUnlockChunk | {
|
|
2368
|
+
value?: any;
|
|
2369
|
+
era?: any;
|
|
2370
|
+
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PalletStakingUnlockChunk>>]>;
|
|
2621
2371
|
/**
|
|
2622
2372
|
* See [`Pallet::scale_validator_count`].
|
|
2623
2373
|
**/
|
|
@@ -2716,63 +2466,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2716
2466
|
**/
|
|
2717
2467
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2718
2468
|
};
|
|
2719
|
-
stateTrieMigration: {
|
|
2720
|
-
/**
|
|
2721
|
-
* See [`Pallet::continue_migrate`].
|
|
2722
|
-
**/
|
|
2723
|
-
continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | {
|
|
2724
|
-
size_?: any;
|
|
2725
|
-
item?: any;
|
|
2726
|
-
} | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | {
|
|
2727
|
-
progressTop?: any;
|
|
2728
|
-
progressChild?: any;
|
|
2729
|
-
size_?: any;
|
|
2730
|
-
topItems?: any;
|
|
2731
|
-
childItems?: any;
|
|
2732
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
|
|
2733
|
-
/**
|
|
2734
|
-
* See [`Pallet::control_auto_migration`].
|
|
2735
|
-
**/
|
|
2736
|
-
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | {
|
|
2737
|
-
size_?: any;
|
|
2738
|
-
item?: any;
|
|
2739
|
-
} | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
|
|
2740
|
-
/**
|
|
2741
|
-
* See [`Pallet::force_set_progress`].
|
|
2742
|
-
**/
|
|
2743
|
-
forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | {
|
|
2744
|
-
ToStart: any;
|
|
2745
|
-
} | {
|
|
2746
|
-
LastKey: any;
|
|
2747
|
-
} | {
|
|
2748
|
-
Complete: any;
|
|
2749
|
-
} | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | {
|
|
2750
|
-
ToStart: any;
|
|
2751
|
-
} | {
|
|
2752
|
-
LastKey: any;
|
|
2753
|
-
} | {
|
|
2754
|
-
Complete: any;
|
|
2755
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationProgress, PalletStateTrieMigrationProgress]>;
|
|
2756
|
-
/**
|
|
2757
|
-
* See [`Pallet::migrate_custom_child`].
|
|
2758
|
-
**/
|
|
2759
|
-
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;
|
|
2760
|
-
/**
|
|
2761
|
-
* See [`Pallet::migrate_custom_top`].
|
|
2762
|
-
**/
|
|
2763
|
-
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
|
2764
|
-
/**
|
|
2765
|
-
* See [`Pallet::set_signed_max_limits`].
|
|
2766
|
-
**/
|
|
2767
|
-
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | {
|
|
2768
|
-
size_?: any;
|
|
2769
|
-
item?: any;
|
|
2770
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;
|
|
2771
|
-
/**
|
|
2772
|
-
* Generic tx
|
|
2773
|
-
**/
|
|
2774
|
-
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2775
|
-
};
|
|
2776
2469
|
system: {
|
|
2777
2470
|
/**
|
|
2778
2471
|
* See [`Pallet::apply_authorized_upgrade`].
|
|
@@ -3322,6 +3015,52 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3322
3015
|
} | {
|
|
3323
3016
|
Limited: any;
|
|
3324
3017
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
|
|
3018
|
+
/**
|
|
3019
|
+
* See [`Pallet::transfer_assets_using_type_and_then`].
|
|
3020
|
+
**/
|
|
3021
|
+
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | {
|
|
3022
|
+
V2: any;
|
|
3023
|
+
} | {
|
|
3024
|
+
V3: any;
|
|
3025
|
+
} | {
|
|
3026
|
+
V4: any;
|
|
3027
|
+
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3028
|
+
V2: any;
|
|
3029
|
+
} | {
|
|
3030
|
+
V3: any;
|
|
3031
|
+
} | {
|
|
3032
|
+
V4: any;
|
|
3033
|
+
} | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | {
|
|
3034
|
+
Teleport: any;
|
|
3035
|
+
} | {
|
|
3036
|
+
LocalReserve: any;
|
|
3037
|
+
} | {
|
|
3038
|
+
DestinationReserve: any;
|
|
3039
|
+
} | {
|
|
3040
|
+
RemoteReserve: any;
|
|
3041
|
+
} | string | Uint8Array, remoteFeesId: XcmVersionedAssetId | {
|
|
3042
|
+
V3: any;
|
|
3043
|
+
} | {
|
|
3044
|
+
V4: any;
|
|
3045
|
+
} | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | {
|
|
3046
|
+
Teleport: any;
|
|
3047
|
+
} | {
|
|
3048
|
+
LocalReserve: any;
|
|
3049
|
+
} | {
|
|
3050
|
+
DestinationReserve: any;
|
|
3051
|
+
} | {
|
|
3052
|
+
RemoteReserve: any;
|
|
3053
|
+
} | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | {
|
|
3054
|
+
V2: any;
|
|
3055
|
+
} | {
|
|
3056
|
+
V3: any;
|
|
3057
|
+
} | {
|
|
3058
|
+
V4: any;
|
|
3059
|
+
} | string | Uint8Array, weightLimit: XcmV3WeightLimit | {
|
|
3060
|
+
Unlimited: any;
|
|
3061
|
+
} | {
|
|
3062
|
+
Limited: any;
|
|
3063
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedAssets, StagingXcmExecutorAssetTransferTransferType, XcmVersionedAssetId, StagingXcmExecutorAssetTransferTransferType, XcmVersionedXcm, XcmV3WeightLimit]>;
|
|
3325
3064
|
/**
|
|
3326
3065
|
* Generic tx
|
|
3327
3066
|
**/
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "12.
|
|
21
|
+
"version": "12.2.1",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -211,12 +211,12 @@
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
"dependencies": {
|
|
214
|
-
"@polkadot/api-base": "12.
|
|
215
|
-
"@polkadot/rpc-augment": "12.
|
|
216
|
-
"@polkadot/types": "12.
|
|
217
|
-
"@polkadot/types-augment": "12.
|
|
218
|
-
"@polkadot/types-codec": "12.
|
|
219
|
-
"@polkadot/util": "^
|
|
214
|
+
"@polkadot/api-base": "12.2.1",
|
|
215
|
+
"@polkadot/rpc-augment": "12.2.1",
|
|
216
|
+
"@polkadot/types": "12.2.1",
|
|
217
|
+
"@polkadot/types-augment": "12.2.1",
|
|
218
|
+
"@polkadot/types-codec": "12.2.1",
|
|
219
|
+
"@polkadot/util": "^13.0.2",
|
|
220
220
|
"tslib": "^2.6.2"
|
|
221
221
|
}
|
|
222
222
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '12.
|
|
1
|
+
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '12.2.1' };
|
package/polkadot/consts.d.ts
CHANGED
|
@@ -653,6 +653,36 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
653
653
|
**/
|
|
654
654
|
[key: string]: Codec;
|
|
655
655
|
};
|
|
656
|
+
stateTrieMigration: {
|
|
657
|
+
/**
|
|
658
|
+
* Maximal number of bytes that a key can have.
|
|
659
|
+
*
|
|
660
|
+
* FRAME itself does not limit the key length.
|
|
661
|
+
* The concrete value must therefore depend on your storage usage.
|
|
662
|
+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
|
663
|
+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
|
664
|
+
*
|
|
665
|
+
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
|
666
|
+
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
|
667
|
+
*
|
|
668
|
+
* The migration will halt with a `Halted` event if this value is too small.
|
|
669
|
+
* Since there is no real penalty from over-estimating, it is advised to use a large
|
|
670
|
+
* value. The default is 512 byte.
|
|
671
|
+
*
|
|
672
|
+
* Some key lengths for reference:
|
|
673
|
+
* - [`frame_support::storage::StorageValue`]: 32 byte
|
|
674
|
+
* - [`frame_support::storage::StorageMap`]: 64 byte
|
|
675
|
+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
|
676
|
+
*
|
|
677
|
+
* For more info see
|
|
678
|
+
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
|
679
|
+
**/
|
|
680
|
+
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
|
681
|
+
/**
|
|
682
|
+
* Generic const
|
|
683
|
+
**/
|
|
684
|
+
[key: string]: Codec;
|
|
685
|
+
};
|
|
656
686
|
system: {
|
|
657
687
|
/**
|
|
658
688
|
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -1611,6 +1611,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1611
1611
|
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
|
1612
1612
|
**/
|
|
1613
1613
|
CannotChillOther: AugmentedError<ApiType>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Cannot reset a ledger.
|
|
1616
|
+
**/
|
|
1617
|
+
CannotRestoreLedger: AugmentedError<ApiType>;
|
|
1614
1618
|
/**
|
|
1615
1619
|
* Commission is too low. Must be at least `MinCommission`.
|
|
1616
1620
|
**/
|
|
@@ -1700,6 +1704,42 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1700
1704
|
**/
|
|
1701
1705
|
[key: string]: AugmentedError<ApiType>;
|
|
1702
1706
|
};
|
|
1707
|
+
stateTrieMigration: {
|
|
1708
|
+
/**
|
|
1709
|
+
* Bad child root provided.
|
|
1710
|
+
**/
|
|
1711
|
+
BadChildRoot: AugmentedError<ApiType>;
|
|
1712
|
+
/**
|
|
1713
|
+
* Bad witness data provided.
|
|
1714
|
+
**/
|
|
1715
|
+
BadWitness: AugmentedError<ApiType>;
|
|
1716
|
+
/**
|
|
1717
|
+
* A key was longer than the configured maximum.
|
|
1718
|
+
*
|
|
1719
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
1720
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
1721
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
1722
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
1723
|
+
* stored [`crate::Progress::LastKey`].
|
|
1724
|
+
**/
|
|
1725
|
+
KeyTooLong: AugmentedError<ApiType>;
|
|
1726
|
+
/**
|
|
1727
|
+
* Max signed limits not respected.
|
|
1728
|
+
**/
|
|
1729
|
+
MaxSignedLimits: AugmentedError<ApiType>;
|
|
1730
|
+
/**
|
|
1731
|
+
* submitter does not have enough funds.
|
|
1732
|
+
**/
|
|
1733
|
+
NotEnoughFunds: AugmentedError<ApiType>;
|
|
1734
|
+
/**
|
|
1735
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
1736
|
+
**/
|
|
1737
|
+
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
|
1738
|
+
/**
|
|
1739
|
+
* Generic error
|
|
1740
|
+
**/
|
|
1741
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1742
|
+
};
|
|
1703
1743
|
system: {
|
|
1704
1744
|
/**
|
|
1705
1745
|
* The origin filter prevent the call to be dispatched.
|