@polkadot/api-augment 16.2.2 → 16.3.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/assetHubKusama/consts.d.ts +95 -2
- package/assetHubKusama/errors.d.ts +254 -10
- package/assetHubKusama/events.d.ts +103 -3
- package/assetHubKusama/query.d.ts +72 -6
- package/assetHubKusama/runtime.d.ts +113 -4
- package/assetHubKusama/tx.d.ts +278 -1
- package/cjs/assetHubKusama/consts.d.ts +95 -2
- package/cjs/assetHubKusama/errors.d.ts +254 -10
- package/cjs/assetHubKusama/events.d.ts +103 -3
- package/cjs/assetHubKusama/query.d.ts +72 -6
- package/cjs/assetHubKusama/runtime.d.ts +113 -4
- package/cjs/assetHubKusama/tx.d.ts +278 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.d.ts +27 -5
- package/cjs/polkadot/errors.d.ts +41 -2
- package/cjs/polkadot/events.d.ts +167 -4
- package/cjs/polkadot/query.d.ts +31 -12
- package/cjs/polkadot/runtime.d.ts +10 -2
- package/cjs/polkadot/tx.d.ts +204 -25
- package/cjs/substrate/runtime.d.ts +7 -7
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +27 -5
- package/polkadot/errors.d.ts +41 -2
- package/polkadot/events.d.ts +167 -4
- package/polkadot/query.d.ts +31 -12
- package/polkadot/runtime.d.ts +10 -2
- package/polkadot/tx.d.ts +204 -25
- package/substrate/runtime.d.ts +7 -7
|
@@ -133,6 +133,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
133
133
|
* Callback action resulted in error
|
|
134
134
|
**/
|
|
135
135
|
CallbackFailed: AugmentedError<ApiType>;
|
|
136
|
+
/**
|
|
137
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
138
|
+
**/
|
|
139
|
+
ContainsFreezes: AugmentedError<ApiType>;
|
|
140
|
+
/**
|
|
141
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
142
|
+
**/
|
|
143
|
+
ContainsHolds: AugmentedError<ApiType>;
|
|
136
144
|
/**
|
|
137
145
|
* The origin account is frozen.
|
|
138
146
|
**/
|
|
@@ -354,6 +362,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
354
362
|
* Callback action resulted in error
|
|
355
363
|
**/
|
|
356
364
|
CallbackFailed: AugmentedError<ApiType>;
|
|
365
|
+
/**
|
|
366
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
367
|
+
**/
|
|
368
|
+
ContainsFreezes: AugmentedError<ApiType>;
|
|
369
|
+
/**
|
|
370
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
371
|
+
**/
|
|
372
|
+
ContainsHolds: AugmentedError<ApiType>;
|
|
357
373
|
/**
|
|
358
374
|
* The origin account is frozen.
|
|
359
375
|
**/
|
|
@@ -488,7 +504,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
488
504
|
**/
|
|
489
505
|
NoApprovalsNeeded: AugmentedError<ApiType>;
|
|
490
506
|
/**
|
|
491
|
-
* Multisig operation not found
|
|
507
|
+
* Multisig operation not found in storage.
|
|
492
508
|
**/
|
|
493
509
|
NotFound: AugmentedError<ApiType>;
|
|
494
510
|
/**
|
|
@@ -496,7 +512,8 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
496
512
|
**/
|
|
497
513
|
NoTimepoint: AugmentedError<ApiType>;
|
|
498
514
|
/**
|
|
499
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
515
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
516
|
+
* its deposits.
|
|
500
517
|
**/
|
|
501
518
|
NotOwner: AugmentedError<ApiType>;
|
|
502
519
|
/**
|
|
@@ -741,10 +758,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
741
758
|
* The inherent which supplies the host configuration did not run this block.
|
|
742
759
|
**/
|
|
743
760
|
HostConfigurationNotAvailable: AugmentedError<ApiType>;
|
|
744
|
-
/**
|
|
745
|
-
* No code upgrade has been authorized.
|
|
746
|
-
**/
|
|
747
|
-
NothingAuthorized: AugmentedError<ApiType>;
|
|
748
761
|
/**
|
|
749
762
|
* No validation function upgrade is currently scheduled.
|
|
750
763
|
**/
|
|
@@ -762,10 +775,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
762
775
|
* willing to run.
|
|
763
776
|
**/
|
|
764
777
|
TooBig: AugmentedError<ApiType>;
|
|
765
|
-
/**
|
|
766
|
-
* The given code upgrade has not been authorized.
|
|
767
|
-
**/
|
|
768
|
-
Unauthorized: AugmentedError<ApiType>;
|
|
769
778
|
/**
|
|
770
779
|
* The inherent which supplies the validation data did not run this block.
|
|
771
780
|
**/
|
|
@@ -780,6 +789,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
780
789
|
* The given account is not an identifiable sovereign account for any location.
|
|
781
790
|
**/
|
|
782
791
|
AccountNotSovereign: AugmentedError<ApiType>;
|
|
792
|
+
/**
|
|
793
|
+
* The alias to remove authorization for was not found.
|
|
794
|
+
**/
|
|
795
|
+
AliasNotFound: AugmentedError<ApiType>;
|
|
783
796
|
/**
|
|
784
797
|
* The location is invalid since it already has a subscription from us.
|
|
785
798
|
**/
|
|
@@ -809,6 +822,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
809
822
|
* The assets to be sent are empty.
|
|
810
823
|
**/
|
|
811
824
|
Empty: AugmentedError<ApiType>;
|
|
825
|
+
/**
|
|
826
|
+
* Expiry block number is in the past.
|
|
827
|
+
**/
|
|
828
|
+
ExpiresInPast: AugmentedError<ApiType>;
|
|
812
829
|
/**
|
|
813
830
|
* The operation required fees to be paid which the initiator could not meet.
|
|
814
831
|
**/
|
|
@@ -858,6 +875,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
858
875
|
* Too many assets have been attempted for transfer.
|
|
859
876
|
**/
|
|
860
877
|
TooManyAssets: AugmentedError<ApiType>;
|
|
878
|
+
/**
|
|
879
|
+
* Too many locations authorized to alias origin.
|
|
880
|
+
**/
|
|
881
|
+
TooManyAuthorizedAliases: AugmentedError<ApiType>;
|
|
861
882
|
/**
|
|
862
883
|
* The asset owner has too many locks on the asset.
|
|
863
884
|
**/
|
|
@@ -909,6 +930,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
909
930
|
* Callback action resulted in error
|
|
910
931
|
**/
|
|
911
932
|
CallbackFailed: AugmentedError<ApiType>;
|
|
933
|
+
/**
|
|
934
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
935
|
+
**/
|
|
936
|
+
ContainsFreezes: AugmentedError<ApiType>;
|
|
937
|
+
/**
|
|
938
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
939
|
+
**/
|
|
940
|
+
ContainsHolds: AugmentedError<ApiType>;
|
|
912
941
|
/**
|
|
913
942
|
* The origin account is frozen.
|
|
914
943
|
**/
|
|
@@ -1045,6 +1074,221 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1045
1074
|
**/
|
|
1046
1075
|
[key: string]: AugmentedError<ApiType>;
|
|
1047
1076
|
};
|
|
1077
|
+
revive: {
|
|
1078
|
+
/**
|
|
1079
|
+
* Tried to map an account that is already mapped.
|
|
1080
|
+
**/
|
|
1081
|
+
AccountAlreadyMapped: AugmentedError<ApiType>;
|
|
1082
|
+
/**
|
|
1083
|
+
* An `AccountID32` account tried to interact with the pallet without having a mapping.
|
|
1084
|
+
*
|
|
1085
|
+
* Call [`Pallet::map_account`] in order to create a mapping for the account.
|
|
1086
|
+
**/
|
|
1087
|
+
AccountUnmapped: AugmentedError<ApiType>;
|
|
1088
|
+
/**
|
|
1089
|
+
* Failed to convert a U256 to a Balance.
|
|
1090
|
+
**/
|
|
1091
|
+
BalanceConversionFailed: AugmentedError<ApiType>;
|
|
1092
|
+
/**
|
|
1093
|
+
* The program contains a basic block that is larger than allowed.
|
|
1094
|
+
**/
|
|
1095
|
+
BasicBlockTooLarge: AugmentedError<ApiType>;
|
|
1096
|
+
/**
|
|
1097
|
+
* The code blob supplied is larger than [`limits::code::BLOB_BYTES`].
|
|
1098
|
+
**/
|
|
1099
|
+
BlobTooLarge: AugmentedError<ApiType>;
|
|
1100
|
+
/**
|
|
1101
|
+
* Can not add a delegate dependency to the code hash of the contract itself.
|
|
1102
|
+
**/
|
|
1103
|
+
CannotAddSelfAsDelegateDependency: AugmentedError<ApiType>;
|
|
1104
|
+
/**
|
|
1105
|
+
* No code info could be found at the supplied code hash.
|
|
1106
|
+
**/
|
|
1107
|
+
CodeInfoNotFound: AugmentedError<ApiType>;
|
|
1108
|
+
/**
|
|
1109
|
+
* Code removal was denied because the code is still in use by at least one contract.
|
|
1110
|
+
**/
|
|
1111
|
+
CodeInUse: AugmentedError<ApiType>;
|
|
1112
|
+
/**
|
|
1113
|
+
* No code could be found at the supplied code hash.
|
|
1114
|
+
**/
|
|
1115
|
+
CodeNotFound: AugmentedError<ApiType>;
|
|
1116
|
+
/**
|
|
1117
|
+
* The contract failed to compile or is missing the correct entry points.
|
|
1118
|
+
*
|
|
1119
|
+
* A more detailed error can be found on the node console if debug messages are enabled
|
|
1120
|
+
* by supplying `-lruntime::revive=debug`.
|
|
1121
|
+
**/
|
|
1122
|
+
CodeRejected: AugmentedError<ApiType>;
|
|
1123
|
+
/**
|
|
1124
|
+
* No contract was found at the specified address.
|
|
1125
|
+
**/
|
|
1126
|
+
ContractNotFound: AugmentedError<ApiType>;
|
|
1127
|
+
/**
|
|
1128
|
+
* The contract ran to completion but decided to revert its storage changes.
|
|
1129
|
+
* Please note that this error is only returned from extrinsics. When called directly
|
|
1130
|
+
* or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
|
|
1131
|
+
* to determine whether a reversion has taken place.
|
|
1132
|
+
**/
|
|
1133
|
+
ContractReverted: AugmentedError<ApiType>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Contract trapped during execution.
|
|
1136
|
+
**/
|
|
1137
|
+
ContractTrapped: AugmentedError<ApiType>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Failed to convert an EVM balance to a native balance.
|
|
1140
|
+
**/
|
|
1141
|
+
DecimalPrecisionLoss: AugmentedError<ApiType>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Input passed to a contract API function failed to decode as expected type.
|
|
1144
|
+
**/
|
|
1145
|
+
DecodingFailed: AugmentedError<ApiType>;
|
|
1146
|
+
/**
|
|
1147
|
+
* The contract already depends on the given delegate dependency.
|
|
1148
|
+
**/
|
|
1149
|
+
DelegateDependencyAlreadyExists: AugmentedError<ApiType>;
|
|
1150
|
+
/**
|
|
1151
|
+
* The dependency was not found in the contract's delegate dependencies.
|
|
1152
|
+
**/
|
|
1153
|
+
DelegateDependencyNotFound: AugmentedError<ApiType>;
|
|
1154
|
+
/**
|
|
1155
|
+
* A contract with the same AccountId already exists.
|
|
1156
|
+
**/
|
|
1157
|
+
DuplicateContract: AugmentedError<ApiType>;
|
|
1158
|
+
/**
|
|
1159
|
+
* PolkaVM failed during code execution. Probably due to a malformed program.
|
|
1160
|
+
**/
|
|
1161
|
+
ExecutionFailed: AugmentedError<ApiType>;
|
|
1162
|
+
/**
|
|
1163
|
+
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
|
1164
|
+
**/
|
|
1165
|
+
InputForwarded: AugmentedError<ApiType>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
|
|
1168
|
+
**/
|
|
1169
|
+
InvalidCallFlags: AugmentedError<ApiType>;
|
|
1170
|
+
/**
|
|
1171
|
+
* The transaction used to dry-run a contract is invalid.
|
|
1172
|
+
**/
|
|
1173
|
+
InvalidGenericTransaction: AugmentedError<ApiType>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Immutable data can only be set during deploys and only be read during calls.
|
|
1176
|
+
* Additionally, it is only valid to set the data once and it must not be empty.
|
|
1177
|
+
**/
|
|
1178
|
+
InvalidImmutableAccess: AugmentedError<ApiType>;
|
|
1179
|
+
/**
|
|
1180
|
+
* The program contains an invalid instruction.
|
|
1181
|
+
**/
|
|
1182
|
+
InvalidInstruction: AugmentedError<ApiType>;
|
|
1183
|
+
/**
|
|
1184
|
+
* Invalid schedule supplied, e.g. with zero weight of a basic operation.
|
|
1185
|
+
**/
|
|
1186
|
+
InvalidSchedule: AugmentedError<ApiType>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Invalid storage flags were passed to one of the storage syscalls.
|
|
1189
|
+
**/
|
|
1190
|
+
InvalidStorageFlags: AugmentedError<ApiType>;
|
|
1191
|
+
/**
|
|
1192
|
+
* The contract tried to call a syscall which does not exist (at its current api level).
|
|
1193
|
+
**/
|
|
1194
|
+
InvalidSyscall: AugmentedError<ApiType>;
|
|
1195
|
+
/**
|
|
1196
|
+
* Performing a call was denied because the calling depth reached the limit
|
|
1197
|
+
* of what is specified in the schedule.
|
|
1198
|
+
**/
|
|
1199
|
+
MaxCallDepthReached: AugmentedError<ApiType>;
|
|
1200
|
+
/**
|
|
1201
|
+
* The contract has reached its maximum number of delegate dependencies.
|
|
1202
|
+
**/
|
|
1203
|
+
MaxDelegateDependenciesReached: AugmentedError<ApiType>;
|
|
1204
|
+
/**
|
|
1205
|
+
* The chain does not provide a chain extension. Calling the chain extension results
|
|
1206
|
+
* in this error. Note that this usually shouldn't happen as deploying such contracts
|
|
1207
|
+
* is rejected.
|
|
1208
|
+
**/
|
|
1209
|
+
NoChainExtension: AugmentedError<ApiType>;
|
|
1210
|
+
/**
|
|
1211
|
+
* A buffer outside of sandbox memory was passed to a contract API function.
|
|
1212
|
+
**/
|
|
1213
|
+
OutOfBounds: AugmentedError<ApiType>;
|
|
1214
|
+
/**
|
|
1215
|
+
* The executed contract exhausted its gas limit.
|
|
1216
|
+
**/
|
|
1217
|
+
OutOfGas: AugmentedError<ApiType>;
|
|
1218
|
+
/**
|
|
1219
|
+
* Can not add more data to transient storage.
|
|
1220
|
+
**/
|
|
1221
|
+
OutOfTransientStorage: AugmentedError<ApiType>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Precompile Error
|
|
1224
|
+
**/
|
|
1225
|
+
PrecompileFailure: AugmentedError<ApiType>;
|
|
1226
|
+
/**
|
|
1227
|
+
* A contract called into the runtime which then called back into this pallet.
|
|
1228
|
+
**/
|
|
1229
|
+
ReenteredPallet: AugmentedError<ApiType>;
|
|
1230
|
+
/**
|
|
1231
|
+
* A call tried to invoke a contract that is flagged as non-reentrant.
|
|
1232
|
+
**/
|
|
1233
|
+
ReentranceDenied: AugmentedError<ApiType>;
|
|
1234
|
+
/**
|
|
1235
|
+
* The refcount of a code either over or underflowed.
|
|
1236
|
+
**/
|
|
1237
|
+
RefcountOverOrUnderflow: AugmentedError<ApiType>;
|
|
1238
|
+
/**
|
|
1239
|
+
* A contract attempted to invoke a state modifying API while being in read-only mode.
|
|
1240
|
+
**/
|
|
1241
|
+
StateChangeDenied: AugmentedError<ApiType>;
|
|
1242
|
+
/**
|
|
1243
|
+
* The static memory consumption of the blob will be larger than
|
|
1244
|
+
* [`limits::code::STATIC_MEMORY_BYTES`].
|
|
1245
|
+
**/
|
|
1246
|
+
StaticMemoryTooLarge: AugmentedError<ApiType>;
|
|
1247
|
+
/**
|
|
1248
|
+
* More storage was created than allowed by the storage deposit limit.
|
|
1249
|
+
**/
|
|
1250
|
+
StorageDepositLimitExhausted: AugmentedError<ApiType>;
|
|
1251
|
+
/**
|
|
1252
|
+
* Origin doesn't have enough balance to pay the required storage deposits.
|
|
1253
|
+
**/
|
|
1254
|
+
StorageDepositNotEnoughFunds: AugmentedError<ApiType>;
|
|
1255
|
+
/**
|
|
1256
|
+
* A contract self destructed in its constructor.
|
|
1257
|
+
*
|
|
1258
|
+
* This can be triggered by a call to `seal_terminate`.
|
|
1259
|
+
**/
|
|
1260
|
+
TerminatedInConstructor: AugmentedError<ApiType>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Termination of a contract is not allowed while the contract is already
|
|
1263
|
+
* on the call stack. Can be triggered by `seal_terminate`.
|
|
1264
|
+
**/
|
|
1265
|
+
TerminatedWhileReentrant: AugmentedError<ApiType>;
|
|
1266
|
+
/**
|
|
1267
|
+
* The amount of topics passed to `seal_deposit_events` exceeds the limit.
|
|
1268
|
+
**/
|
|
1269
|
+
TooManyTopics: AugmentedError<ApiType>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Performing the requested transfer failed. Probably because there isn't enough
|
|
1272
|
+
* free balance in the sender's account.
|
|
1273
|
+
**/
|
|
1274
|
+
TransferFailed: AugmentedError<ApiType>;
|
|
1275
|
+
/**
|
|
1276
|
+
* Unsupported precompile address
|
|
1277
|
+
**/
|
|
1278
|
+
UnsupportedPrecompileAddress: AugmentedError<ApiType>;
|
|
1279
|
+
/**
|
|
1280
|
+
* The size defined in `T::MaxValueSize` was exceeded.
|
|
1281
|
+
**/
|
|
1282
|
+
ValueTooLarge: AugmentedError<ApiType>;
|
|
1283
|
+
/**
|
|
1284
|
+
* Failed to decode the XCM program.
|
|
1285
|
+
**/
|
|
1286
|
+
XCMDecodeFailed: AugmentedError<ApiType>;
|
|
1287
|
+
/**
|
|
1288
|
+
* Generic error
|
|
1289
|
+
**/
|
|
1290
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1291
|
+
};
|
|
1048
1292
|
session: {
|
|
1049
1293
|
/**
|
|
1050
1294
|
* Registered duplicate key.
|
|
@@ -2,8 +2,8 @@ import '@polkadot/api-base/types/events';
|
|
|
2
2
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
|
-
import type { AccountId32, H256, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
5
|
+
import type { AccountId32, H160, H256, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
+
import type { AssetHubKusamaRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletProxyDepositKind, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV3TraitsSendError, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/events' {
|
|
9
9
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -797,6 +797,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
797
797
|
[key: string]: AugmentedEvent<ApiType>;
|
|
798
798
|
};
|
|
799
799
|
multisig: {
|
|
800
|
+
/**
|
|
801
|
+
* The deposit for a multisig operation has been updated/poked.
|
|
802
|
+
**/
|
|
803
|
+
DepositPoked: AugmentedEvent<ApiType, [who: AccountId32, callHash: U8aFixed, oldDeposit: u128, newDeposit: u128], {
|
|
804
|
+
who: AccountId32;
|
|
805
|
+
callHash: U8aFixed;
|
|
806
|
+
oldDeposit: u128;
|
|
807
|
+
newDeposit: u128;
|
|
808
|
+
}>;
|
|
800
809
|
/**
|
|
801
810
|
* A multisig operation has been approved by someone.
|
|
802
811
|
**/
|
|
@@ -1220,6 +1229,28 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1220
1229
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1221
1230
|
};
|
|
1222
1231
|
polkadotXcm: {
|
|
1232
|
+
/**
|
|
1233
|
+
* `target` removed alias authorization for `aliaser`.
|
|
1234
|
+
**/
|
|
1235
|
+
AliasAuthorizationRemoved: AugmentedEvent<ApiType, [aliaser: StagingXcmV5Location, target: StagingXcmV5Location], {
|
|
1236
|
+
aliaser: StagingXcmV5Location;
|
|
1237
|
+
target: StagingXcmV5Location;
|
|
1238
|
+
}>;
|
|
1239
|
+
/**
|
|
1240
|
+
* An `aliaser` location was authorized by `target` to alias it, authorization valid until
|
|
1241
|
+
* `expiry` block number.
|
|
1242
|
+
**/
|
|
1243
|
+
AliasAuthorized: AugmentedEvent<ApiType, [aliaser: StagingXcmV5Location, target: StagingXcmV5Location, expiry: Option<u64>], {
|
|
1244
|
+
aliaser: StagingXcmV5Location;
|
|
1245
|
+
target: StagingXcmV5Location;
|
|
1246
|
+
expiry: Option<u64>;
|
|
1247
|
+
}>;
|
|
1248
|
+
/**
|
|
1249
|
+
* `target` removed all alias authorizations.
|
|
1250
|
+
**/
|
|
1251
|
+
AliasesAuthorizationsRemoved: AugmentedEvent<ApiType, [target: StagingXcmV5Location], {
|
|
1252
|
+
target: StagingXcmV5Location;
|
|
1253
|
+
}>;
|
|
1223
1254
|
/**
|
|
1224
1255
|
* Some assets have been claimed from an asset trap
|
|
1225
1256
|
**/
|
|
@@ -1353,6 +1384,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1353
1384
|
queryId: u64;
|
|
1354
1385
|
error: XcmV5TraitsError;
|
|
1355
1386
|
}>;
|
|
1387
|
+
/**
|
|
1388
|
+
* An XCM message failed to process.
|
|
1389
|
+
**/
|
|
1390
|
+
ProcessXcmError: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, error: XcmV5TraitsError, messageId: U8aFixed], {
|
|
1391
|
+
origin: StagingXcmV5Location;
|
|
1392
|
+
error: XcmV5TraitsError;
|
|
1393
|
+
messageId: U8aFixed;
|
|
1394
|
+
}>;
|
|
1356
1395
|
/**
|
|
1357
1396
|
* Query response has been received and is ready for taking with `take_response`. There is
|
|
1358
1397
|
* no registered notification call.
|
|
@@ -1368,7 +1407,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1368
1407
|
queryId: u64;
|
|
1369
1408
|
}>;
|
|
1370
1409
|
/**
|
|
1371
|
-
*
|
|
1410
|
+
* An XCM message failed to send.
|
|
1411
|
+
**/
|
|
1412
|
+
SendFailed: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, destination: StagingXcmV5Location, error: XcmV3TraitsSendError, messageId: U8aFixed], {
|
|
1413
|
+
origin: StagingXcmV5Location;
|
|
1414
|
+
destination: StagingXcmV5Location;
|
|
1415
|
+
error: XcmV3TraitsSendError;
|
|
1416
|
+
messageId: U8aFixed;
|
|
1417
|
+
}>;
|
|
1418
|
+
/**
|
|
1419
|
+
* An XCM message was sent.
|
|
1372
1420
|
**/
|
|
1373
1421
|
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed], {
|
|
1374
1422
|
origin: StagingXcmV5Location;
|
|
@@ -1654,6 +1702,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1654
1702
|
proxy: AccountId32;
|
|
1655
1703
|
callHash: H256;
|
|
1656
1704
|
}>;
|
|
1705
|
+
/**
|
|
1706
|
+
* A deposit stored for proxies or announcements was poked / updated.
|
|
1707
|
+
**/
|
|
1708
|
+
DepositPoked: AugmentedEvent<ApiType, [who: AccountId32, kind: PalletProxyDepositKind, oldDeposit: u128, newDeposit: u128], {
|
|
1709
|
+
who: AccountId32;
|
|
1710
|
+
kind: PalletProxyDepositKind;
|
|
1711
|
+
oldDeposit: u128;
|
|
1712
|
+
newDeposit: u128;
|
|
1713
|
+
}>;
|
|
1657
1714
|
/**
|
|
1658
1715
|
* A proxy was added.
|
|
1659
1716
|
**/
|
|
@@ -1693,6 +1750,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1693
1750
|
**/
|
|
1694
1751
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1695
1752
|
};
|
|
1753
|
+
revive: {
|
|
1754
|
+
/**
|
|
1755
|
+
* A custom event emitted by the contract.
|
|
1756
|
+
**/
|
|
1757
|
+
ContractEmitted: AugmentedEvent<ApiType, [contract: H160, data: Bytes, topics: Vec<H256>], {
|
|
1758
|
+
contract: H160;
|
|
1759
|
+
data: Bytes;
|
|
1760
|
+
topics: Vec<H256>;
|
|
1761
|
+
}>;
|
|
1762
|
+
/**
|
|
1763
|
+
* Generic event
|
|
1764
|
+
**/
|
|
1765
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
1766
|
+
};
|
|
1696
1767
|
session: {
|
|
1697
1768
|
/**
|
|
1698
1769
|
* New session has happened. Note that the argument is the session index, not the
|
|
@@ -1701,6 +1772,18 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1701
1772
|
NewSession: AugmentedEvent<ApiType, [sessionIndex: u32], {
|
|
1702
1773
|
sessionIndex: u32;
|
|
1703
1774
|
}>;
|
|
1775
|
+
/**
|
|
1776
|
+
* Validator has been disabled.
|
|
1777
|
+
**/
|
|
1778
|
+
ValidatorDisabled: AugmentedEvent<ApiType, [validator: AccountId32], {
|
|
1779
|
+
validator: AccountId32;
|
|
1780
|
+
}>;
|
|
1781
|
+
/**
|
|
1782
|
+
* Validator has been re-enabled.
|
|
1783
|
+
**/
|
|
1784
|
+
ValidatorReenabled: AugmentedEvent<ApiType, [validator: AccountId32], {
|
|
1785
|
+
validator: AccountId32;
|
|
1786
|
+
}>;
|
|
1704
1787
|
/**
|
|
1705
1788
|
* Generic event
|
|
1706
1789
|
**/
|
|
@@ -1768,6 +1851,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1768
1851
|
NewAccount: AugmentedEvent<ApiType, [account: AccountId32], {
|
|
1769
1852
|
account: AccountId32;
|
|
1770
1853
|
}>;
|
|
1854
|
+
/**
|
|
1855
|
+
* An invalid authorized upgrade was rejected while trying to apply it.
|
|
1856
|
+
**/
|
|
1857
|
+
RejectedInvalidAuthorizedUpgrade: AugmentedEvent<ApiType, [codeHash: H256, error: SpRuntimeDispatchError], {
|
|
1858
|
+
codeHash: H256;
|
|
1859
|
+
error: SpRuntimeDispatchError;
|
|
1860
|
+
}>;
|
|
1771
1861
|
/**
|
|
1772
1862
|
* On on-chain remark happened.
|
|
1773
1863
|
**/
|
|
@@ -2057,6 +2147,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2057
2147
|
DispatchedAs: AugmentedEvent<ApiType, [result: Result<Null, SpRuntimeDispatchError>], {
|
|
2058
2148
|
result: Result<Null, SpRuntimeDispatchError>;
|
|
2059
2149
|
}>;
|
|
2150
|
+
/**
|
|
2151
|
+
* The fallback call was dispatched.
|
|
2152
|
+
**/
|
|
2153
|
+
IfElseFallbackCalled: AugmentedEvent<ApiType, [mainError: SpRuntimeDispatchError], {
|
|
2154
|
+
mainError: SpRuntimeDispatchError;
|
|
2155
|
+
}>;
|
|
2156
|
+
/**
|
|
2157
|
+
* Main call was dispatched.
|
|
2158
|
+
**/
|
|
2159
|
+
IfElseMainSuccess: AugmentedEvent<ApiType, []>;
|
|
2060
2160
|
/**
|
|
2061
2161
|
* A single item within a Batch of dispatches has completed with no error.
|
|
2062
2162
|
**/
|
|
@@ -2,8 +2,8 @@ import '@polkadot/api-base/types/storage';
|
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
3
|
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
|
-
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5Instruction, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
5
|
+
import type { AccountId32, H160, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
+
import type { AssetHubKusamaRuntimeRuntimeHoldReason, AssetHubKusamaRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReviveStorageContractInfo, PalletReviveStorageDeletionQueueManager, PalletReviveWasmCodeInfo, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmAuthorizedAliasesEntry, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5Instruction, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
7
7
|
import type { Observable } from '@polkadot/types/types';
|
|
8
8
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
9
9
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -99,11 +99,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
99
99
|
**/
|
|
100
100
|
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusAuraSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
101
101
|
/**
|
|
102
|
-
* Current slot paired with a number of authored blocks.
|
|
102
|
+
* Current relay chain slot paired with a number of authored blocks.
|
|
103
103
|
*
|
|
104
|
-
*
|
|
104
|
+
* This is updated in [`FixedVelocityConsensusHook::on_state_proof`] with the current relay
|
|
105
|
+
* chain slot as provided by the relay chain state proof.
|
|
105
106
|
**/
|
|
106
|
-
|
|
107
|
+
relaySlotInfo: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
107
108
|
/**
|
|
108
109
|
* Generic query
|
|
109
110
|
**/
|
|
@@ -582,6 +583,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
582
583
|
* times this pair has been trapped (usually just 1 if it exists at all).
|
|
583
584
|
**/
|
|
584
585
|
assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
586
|
+
/**
|
|
587
|
+
* Map of authorized aliasers of local origins. Each local location can authorize a list of
|
|
588
|
+
* other locations to alias into it. Each aliaser is only valid until its inner `expiry`
|
|
589
|
+
* block number.
|
|
590
|
+
**/
|
|
591
|
+
authorizedAliases: AugmentedQuery<ApiType, (arg: XcmVersionedLocation | {
|
|
592
|
+
V3: any;
|
|
593
|
+
} | {
|
|
594
|
+
V4: any;
|
|
595
|
+
} | {
|
|
596
|
+
V5: any;
|
|
597
|
+
} | string | Uint8Array) => Observable<Option<PalletXcmAuthorizedAliasesEntry>>, [XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [XcmVersionedLocation]>;
|
|
585
598
|
/**
|
|
586
599
|
* The current migration's stage, if any.
|
|
587
600
|
**/
|
|
@@ -740,6 +753,49 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
740
753
|
**/
|
|
741
754
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
742
755
|
};
|
|
756
|
+
revive: {
|
|
757
|
+
/**
|
|
758
|
+
* A mapping from a contract's code hash to its code info.
|
|
759
|
+
**/
|
|
760
|
+
codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletReviveWasmCodeInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
761
|
+
/**
|
|
762
|
+
* The code associated with a given account.
|
|
763
|
+
**/
|
|
764
|
+
contractInfoOf: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<PalletReviveStorageContractInfo>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
|
765
|
+
/**
|
|
766
|
+
* Evicted contracts that await child trie deletion.
|
|
767
|
+
*
|
|
768
|
+
* Child trie deletion is a heavy operation depending on the amount of storage items
|
|
769
|
+
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
|
770
|
+
**/
|
|
771
|
+
deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
772
|
+
/**
|
|
773
|
+
* A pair of monotonic counters used to track the latest contract marked for deletion
|
|
774
|
+
* and the latest deleted contract in queue.
|
|
775
|
+
**/
|
|
776
|
+
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletReviveStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
|
|
777
|
+
/**
|
|
778
|
+
* The immutable data associated with a given account.
|
|
779
|
+
**/
|
|
780
|
+
immutableDataOf: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<Bytes>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
|
781
|
+
/**
|
|
782
|
+
* Map a Ethereum address to its original `AccountId32`.
|
|
783
|
+
*
|
|
784
|
+
* When deriving a `H160` from an `AccountId32` we use a hash function. In order to
|
|
785
|
+
* reconstruct the original account we need to store the reverse mapping here.
|
|
786
|
+
* Register your `AccountId32` using [`Pallet::map_account`] in order to
|
|
787
|
+
* use it with this pallet.
|
|
788
|
+
**/
|
|
789
|
+
originalAccount: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<AccountId32>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
|
790
|
+
/**
|
|
791
|
+
* A mapping from a contract's code hash to its code.
|
|
792
|
+
**/
|
|
793
|
+
pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
794
|
+
/**
|
|
795
|
+
* Generic query
|
|
796
|
+
**/
|
|
797
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
798
|
+
};
|
|
743
799
|
session: {
|
|
744
800
|
/**
|
|
745
801
|
* Current index of the session.
|
|
@@ -752,7 +808,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
752
808
|
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
753
809
|
* a new set of identities.
|
|
754
810
|
**/
|
|
755
|
-
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32
|
|
811
|
+
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
756
812
|
/**
|
|
757
813
|
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
758
814
|
**/
|
|
@@ -869,6 +925,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
869
925
|
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
870
926
|
**/
|
|
871
927
|
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
928
|
+
/**
|
|
929
|
+
* The weight reclaimed for the extrinsic.
|
|
930
|
+
*
|
|
931
|
+
* This information is available until the end of the extrinsic execution.
|
|
932
|
+
* More precisely this information is removed in `note_applied_extrinsic`.
|
|
933
|
+
*
|
|
934
|
+
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
|
935
|
+
* reduction.
|
|
936
|
+
**/
|
|
937
|
+
extrinsicWeightReclaimed: AugmentedQuery<ApiType, () => Observable<SpWeightsWeightV2Weight>, []> & QueryableStorageEntry<ApiType, []>;
|
|
872
938
|
/**
|
|
873
939
|
* Whether all inherents have been applied.
|
|
874
940
|
**/
|