@dedot/chaintypes 0.0.1-alpha.91 → 0.0.1-alpha.93
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/astar/consts.d.ts +65 -23
- package/astar/errors.d.ts +55 -16
- package/astar/events.d.ts +138 -82
- package/astar/json-rpc.d.ts +51 -2
- package/astar/query.d.ts +163 -74
- package/astar/runtime.d.ts +33 -0
- package/astar/tx.d.ts +315 -223
- package/astar/types.d.ts +517 -536
- package/package.json +2 -2
package/astar/consts.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by @dedot/codegen
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, Perbill } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, AccountId32, Perbill } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
@@ -118,10 +118,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
118
118
|
**/
|
|
119
119
|
timestamp: {
|
|
120
120
|
/**
|
|
121
|
-
* The minimum period between blocks.
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
121
|
+
* The minimum period between blocks.
|
|
122
|
+
*
|
|
123
|
+
* Be aware that this is different to the *expected* period that the block production
|
|
124
|
+
* apparatus provides. Your chosen consensus system will generally work with this to
|
|
125
|
+
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
|
126
|
+
* period on default settings.
|
|
125
127
|
**/
|
|
126
128
|
minimumPeriod: bigint;
|
|
127
129
|
|
|
@@ -435,6 +437,64 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
435
437
|
**/
|
|
436
438
|
[name: string]: any;
|
|
437
439
|
};
|
|
440
|
+
/**
|
|
441
|
+
* Pallet `PriceAggregator`'s constants
|
|
442
|
+
**/
|
|
443
|
+
priceAggregator: {
|
|
444
|
+
/**
|
|
445
|
+
* Maximum number of distinct currency values we can store during a single block.
|
|
446
|
+
**/
|
|
447
|
+
maxValuesPerBlock: number;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Maximum length of the circular buffer used to calculate the moving average.
|
|
451
|
+
**/
|
|
452
|
+
circularBufferLength: number;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Duration of aggregation period expressed in the number of blocks.
|
|
456
|
+
* During this time, currency values are aggregated, and are then used to calculate the average value.
|
|
457
|
+
**/
|
|
458
|
+
aggregationDuration: number;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Generic pallet constant
|
|
462
|
+
**/
|
|
463
|
+
[name: string]: any;
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* Pallet `Oracle`'s constants
|
|
467
|
+
**/
|
|
468
|
+
oracle: {
|
|
469
|
+
/**
|
|
470
|
+
* The root operator account id, record all sudo feeds on this account.
|
|
471
|
+
**/
|
|
472
|
+
rootOperatorAccountId: AccountId32;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Maximum size of HasDispatched
|
|
476
|
+
**/
|
|
477
|
+
maxHasDispatchedSize: number;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Maximum size the vector used for feed values
|
|
481
|
+
**/
|
|
482
|
+
maxFeedValues: number;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Generic pallet constant
|
|
486
|
+
**/
|
|
487
|
+
[name: string]: any;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Pallet `OracleMembership`'s constants
|
|
491
|
+
**/
|
|
492
|
+
oracleMembership: {
|
|
493
|
+
/**
|
|
494
|
+
* Generic pallet constant
|
|
495
|
+
**/
|
|
496
|
+
[name: string]: any;
|
|
497
|
+
};
|
|
438
498
|
/**
|
|
439
499
|
* Pallet `Authorship`'s constants
|
|
440
500
|
**/
|
|
@@ -674,22 +734,4 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
674
734
|
**/
|
|
675
735
|
[name: string]: any;
|
|
676
736
|
};
|
|
677
|
-
/**
|
|
678
|
-
* Pallet `StaticPriceProvider`'s constants
|
|
679
|
-
**/
|
|
680
|
-
staticPriceProvider: {
|
|
681
|
-
/**
|
|
682
|
-
* Generic pallet constant
|
|
683
|
-
**/
|
|
684
|
-
[name: string]: any;
|
|
685
|
-
};
|
|
686
|
-
/**
|
|
687
|
-
* Pallet `DappStakingMigration`'s constants
|
|
688
|
-
**/
|
|
689
|
-
dappStakingMigration: {
|
|
690
|
-
/**
|
|
691
|
-
* Generic pallet constant
|
|
692
|
-
**/
|
|
693
|
-
[name: string]: any;
|
|
694
|
-
};
|
|
695
737
|
}
|
package/astar/errors.d.ts
CHANGED
|
@@ -743,6 +743,49 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
743
743
|
**/
|
|
744
744
|
[error: string]: GenericPalletError<Rv>;
|
|
745
745
|
};
|
|
746
|
+
/**
|
|
747
|
+
* Pallet `Oracle`'s errors
|
|
748
|
+
**/
|
|
749
|
+
oracle: {
|
|
750
|
+
/**
|
|
751
|
+
* Sender does not have permission
|
|
752
|
+
**/
|
|
753
|
+
NoPermission: GenericPalletError<Rv>;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Feeder has already feeded at this block
|
|
757
|
+
**/
|
|
758
|
+
AlreadyFeeded: GenericPalletError<Rv>;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Generic pallet error
|
|
762
|
+
**/
|
|
763
|
+
[error: string]: GenericPalletError<Rv>;
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* Pallet `OracleMembership`'s errors
|
|
767
|
+
**/
|
|
768
|
+
oracleMembership: {
|
|
769
|
+
/**
|
|
770
|
+
* Already a member.
|
|
771
|
+
**/
|
|
772
|
+
AlreadyMember: GenericPalletError<Rv>;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Not a member.
|
|
776
|
+
**/
|
|
777
|
+
NotMember: GenericPalletError<Rv>;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Too many members.
|
|
781
|
+
**/
|
|
782
|
+
TooManyMembers: GenericPalletError<Rv>;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Generic pallet error
|
|
786
|
+
**/
|
|
787
|
+
[error: string]: GenericPalletError<Rv>;
|
|
788
|
+
};
|
|
746
789
|
/**
|
|
747
790
|
* Pallet `CollatorSelection`'s errors
|
|
748
791
|
**/
|
|
@@ -1186,9 +1229,14 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1186
1229
|
GasLimitTooHigh: GenericPalletError<Rv>;
|
|
1187
1230
|
|
|
1188
1231
|
/**
|
|
1189
|
-
*
|
|
1232
|
+
* The chain id is invalid.
|
|
1190
1233
|
**/
|
|
1191
|
-
|
|
1234
|
+
InvalidChainId: GenericPalletError<Rv>;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* the signature is invalid.
|
|
1238
|
+
**/
|
|
1239
|
+
InvalidSignature: GenericPalletError<Rv>;
|
|
1192
1240
|
|
|
1193
1241
|
/**
|
|
1194
1242
|
* EVM reentrancy
|
|
@@ -1200,6 +1248,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1200
1248
|
**/
|
|
1201
1249
|
TransactionMustComeFromEOA: GenericPalletError<Rv>;
|
|
1202
1250
|
|
|
1251
|
+
/**
|
|
1252
|
+
* Undefined error.
|
|
1253
|
+
**/
|
|
1254
|
+
Undefined: GenericPalletError<Rv>;
|
|
1255
|
+
|
|
1203
1256
|
/**
|
|
1204
1257
|
* Generic pallet error
|
|
1205
1258
|
**/
|
|
@@ -1447,20 +1500,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1447
1500
|
**/
|
|
1448
1501
|
RequireSudo: GenericPalletError<Rv>;
|
|
1449
1502
|
|
|
1450
|
-
/**
|
|
1451
|
-
* Generic pallet error
|
|
1452
|
-
**/
|
|
1453
|
-
[error: string]: GenericPalletError<Rv>;
|
|
1454
|
-
};
|
|
1455
|
-
/**
|
|
1456
|
-
* Pallet `StaticPriceProvider`'s errors
|
|
1457
|
-
**/
|
|
1458
|
-
staticPriceProvider: {
|
|
1459
|
-
/**
|
|
1460
|
-
* Zero is invalid value for the price (hopefully).
|
|
1461
|
-
**/
|
|
1462
|
-
ZeroPrice: GenericPalletError<Rv>;
|
|
1463
|
-
|
|
1464
1503
|
/**
|
|
1465
1504
|
* Generic pallet error
|
|
1466
1505
|
**/
|
package/astar/events.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ import type {
|
|
|
9
9
|
Result,
|
|
10
10
|
FixedBytes,
|
|
11
11
|
Bytes,
|
|
12
|
+
FixedU128,
|
|
12
13
|
H160,
|
|
13
14
|
U256,
|
|
14
|
-
FixedU128,
|
|
15
15
|
} from 'dedot/codecs';
|
|
16
16
|
import type {
|
|
17
17
|
PalletMultisigTimepoint,
|
|
@@ -22,16 +22,17 @@ import type {
|
|
|
22
22
|
PalletDappStakingV3Subperiod,
|
|
23
23
|
AstarPrimitivesDappStakingSmartContract,
|
|
24
24
|
PalletDappStakingV3ForcingType,
|
|
25
|
-
|
|
25
|
+
AstarPrimitivesOracleCurrencyId,
|
|
26
|
+
XcmV3TraitsError,
|
|
26
27
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
27
|
-
|
|
28
|
+
XcmV3TraitsOutcome,
|
|
28
29
|
StagingXcmV3MultilocationMultiLocation,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
XcmV3Xcm,
|
|
31
|
+
XcmV3Response,
|
|
32
|
+
XcmVersionedMultiAssets,
|
|
33
|
+
XcmV3MultiassetMultiAssets,
|
|
34
|
+
XcmVersionedMultiLocation,
|
|
35
|
+
XcmV3MultiassetMultiAsset,
|
|
35
36
|
EthereumLog,
|
|
36
37
|
EvmCoreErrorExitReason,
|
|
37
38
|
PalletContractsOrigin,
|
|
@@ -921,6 +922,78 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
921
922
|
**/
|
|
922
923
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
923
924
|
};
|
|
925
|
+
/**
|
|
926
|
+
* Pallet `PriceAggregator`'s events
|
|
927
|
+
**/
|
|
928
|
+
priceAggregator: {
|
|
929
|
+
/**
|
|
930
|
+
* New average native currency value has been calculated and pushed into the moving average buffer.
|
|
931
|
+
**/
|
|
932
|
+
AverageAggregatedValue: GenericPalletEvent<Rv, 'PriceAggregator', 'AverageAggregatedValue', { value: FixedU128 }>;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Generic pallet event
|
|
936
|
+
**/
|
|
937
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
938
|
+
};
|
|
939
|
+
/**
|
|
940
|
+
* Pallet `Oracle`'s events
|
|
941
|
+
**/
|
|
942
|
+
oracle: {
|
|
943
|
+
/**
|
|
944
|
+
* New feed data is submitted.
|
|
945
|
+
**/
|
|
946
|
+
NewFeedData: GenericPalletEvent<
|
|
947
|
+
Rv,
|
|
948
|
+
'Oracle',
|
|
949
|
+
'NewFeedData',
|
|
950
|
+
{ sender: AccountId32; values: Array<[AstarPrimitivesOracleCurrencyId, FixedU128]> }
|
|
951
|
+
>;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Generic pallet event
|
|
955
|
+
**/
|
|
956
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
957
|
+
};
|
|
958
|
+
/**
|
|
959
|
+
* Pallet `OracleMembership`'s events
|
|
960
|
+
**/
|
|
961
|
+
oracleMembership: {
|
|
962
|
+
/**
|
|
963
|
+
* The given member was added; see the transaction for who.
|
|
964
|
+
**/
|
|
965
|
+
MemberAdded: GenericPalletEvent<Rv, 'OracleMembership', 'MemberAdded', undefined>;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* The given member was removed; see the transaction for who.
|
|
969
|
+
**/
|
|
970
|
+
MemberRemoved: GenericPalletEvent<Rv, 'OracleMembership', 'MemberRemoved', undefined>;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Two members were swapped; see the transaction for who.
|
|
974
|
+
**/
|
|
975
|
+
MembersSwapped: GenericPalletEvent<Rv, 'OracleMembership', 'MembersSwapped', undefined>;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* The membership was reset; see the transaction for who the new set is.
|
|
979
|
+
**/
|
|
980
|
+
MembersReset: GenericPalletEvent<Rv, 'OracleMembership', 'MembersReset', undefined>;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* One of the members' keys changed.
|
|
984
|
+
**/
|
|
985
|
+
KeyChanged: GenericPalletEvent<Rv, 'OracleMembership', 'KeyChanged', undefined>;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Phantom member, never used.
|
|
989
|
+
**/
|
|
990
|
+
Dummy: GenericPalletEvent<Rv, 'OracleMembership', 'Dummy', undefined>;
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Generic pallet event
|
|
994
|
+
**/
|
|
995
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
996
|
+
};
|
|
924
997
|
/**
|
|
925
998
|
* Pallet `CollatorSelection`'s events
|
|
926
999
|
**/
|
|
@@ -976,7 +1049,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
976
1049
|
{
|
|
977
1050
|
messageHash: FixedBytes<32>;
|
|
978
1051
|
messageId: FixedBytes<32>;
|
|
979
|
-
error:
|
|
1052
|
+
error: XcmV3TraitsError;
|
|
980
1053
|
weight: SpWeightsWeightV2Weight;
|
|
981
1054
|
}
|
|
982
1055
|
>;
|
|
@@ -1033,7 +1106,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1033
1106
|
/**
|
|
1034
1107
|
* Execution of an XCM message was attempted.
|
|
1035
1108
|
**/
|
|
1036
|
-
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome:
|
|
1109
|
+
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: XcmV3TraitsOutcome }>;
|
|
1037
1110
|
|
|
1038
1111
|
/**
|
|
1039
1112
|
* A XCM message was sent.
|
|
@@ -1045,7 +1118,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1045
1118
|
{
|
|
1046
1119
|
origin: StagingXcmV3MultilocationMultiLocation;
|
|
1047
1120
|
destination: StagingXcmV3MultilocationMultiLocation;
|
|
1048
|
-
message:
|
|
1121
|
+
message: XcmV3Xcm;
|
|
1049
1122
|
messageId: FixedBytes<32>;
|
|
1050
1123
|
}
|
|
1051
1124
|
>;
|
|
@@ -1066,12 +1139,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1066
1139
|
* Query response has been received and is ready for taking with `take_response`. There is
|
|
1067
1140
|
* no registered notification call.
|
|
1068
1141
|
**/
|
|
1069
|
-
ResponseReady: GenericPalletEvent<
|
|
1070
|
-
Rv,
|
|
1071
|
-
'PolkadotXcm',
|
|
1072
|
-
'ResponseReady',
|
|
1073
|
-
{ queryId: bigint; response: StagingXcmV3Response }
|
|
1074
|
-
>;
|
|
1142
|
+
ResponseReady: GenericPalletEvent<Rv, 'PolkadotXcm', 'ResponseReady', { queryId: bigint; response: XcmV3Response }>;
|
|
1075
1143
|
|
|
1076
1144
|
/**
|
|
1077
1145
|
* Query response has been received and query is removed. The registered notification has
|
|
@@ -1169,7 +1237,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1169
1237
|
Rv,
|
|
1170
1238
|
'PolkadotXcm',
|
|
1171
1239
|
'AssetsTrapped',
|
|
1172
|
-
{ hash: H256; origin: StagingXcmV3MultilocationMultiLocation; assets:
|
|
1240
|
+
{ hash: H256; origin: StagingXcmV3MultilocationMultiLocation; assets: XcmVersionedMultiAssets }
|
|
1173
1241
|
>;
|
|
1174
1242
|
|
|
1175
1243
|
/**
|
|
@@ -1184,7 +1252,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1184
1252
|
{
|
|
1185
1253
|
destination: StagingXcmV3MultilocationMultiLocation;
|
|
1186
1254
|
result: number;
|
|
1187
|
-
cost:
|
|
1255
|
+
cost: XcmV3MultiassetMultiAssets;
|
|
1188
1256
|
messageId: FixedBytes<32>;
|
|
1189
1257
|
}
|
|
1190
1258
|
>;
|
|
@@ -1208,7 +1276,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1208
1276
|
Rv,
|
|
1209
1277
|
'PolkadotXcm',
|
|
1210
1278
|
'NotifyTargetSendFail',
|
|
1211
|
-
{ location: StagingXcmV3MultilocationMultiLocation; queryId: bigint; error:
|
|
1279
|
+
{ location: StagingXcmV3MultilocationMultiLocation; queryId: bigint; error: XcmV3TraitsError }
|
|
1212
1280
|
>;
|
|
1213
1281
|
|
|
1214
1282
|
/**
|
|
@@ -1219,7 +1287,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1219
1287
|
Rv,
|
|
1220
1288
|
'PolkadotXcm',
|
|
1221
1289
|
'NotifyTargetMigrationFail',
|
|
1222
|
-
{ location:
|
|
1290
|
+
{ location: XcmVersionedMultiLocation; queryId: bigint }
|
|
1223
1291
|
>;
|
|
1224
1292
|
|
|
1225
1293
|
/**
|
|
@@ -1265,7 +1333,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1265
1333
|
'VersionNotifyStarted',
|
|
1266
1334
|
{
|
|
1267
1335
|
destination: StagingXcmV3MultilocationMultiLocation;
|
|
1268
|
-
cost:
|
|
1336
|
+
cost: XcmV3MultiassetMultiAssets;
|
|
1269
1337
|
messageId: FixedBytes<32>;
|
|
1270
1338
|
}
|
|
1271
1339
|
>;
|
|
@@ -1279,7 +1347,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1279
1347
|
'VersionNotifyRequested',
|
|
1280
1348
|
{
|
|
1281
1349
|
destination: StagingXcmV3MultilocationMultiLocation;
|
|
1282
|
-
cost:
|
|
1350
|
+
cost: XcmV3MultiassetMultiAssets;
|
|
1283
1351
|
messageId: FixedBytes<32>;
|
|
1284
1352
|
}
|
|
1285
1353
|
>;
|
|
@@ -1294,7 +1362,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1294
1362
|
'VersionNotifyUnrequested',
|
|
1295
1363
|
{
|
|
1296
1364
|
destination: StagingXcmV3MultilocationMultiLocation;
|
|
1297
|
-
cost:
|
|
1365
|
+
cost: XcmV3MultiassetMultiAssets;
|
|
1298
1366
|
messageId: FixedBytes<32>;
|
|
1299
1367
|
}
|
|
1300
1368
|
>;
|
|
@@ -1306,7 +1374,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1306
1374
|
Rv,
|
|
1307
1375
|
'PolkadotXcm',
|
|
1308
1376
|
'FeesPaid',
|
|
1309
|
-
{ paying: StagingXcmV3MultilocationMultiLocation; fees:
|
|
1377
|
+
{ paying: StagingXcmV3MultilocationMultiLocation; fees: XcmV3MultiassetMultiAssets }
|
|
1310
1378
|
>;
|
|
1311
1379
|
|
|
1312
1380
|
/**
|
|
@@ -1316,7 +1384,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1316
1384
|
Rv,
|
|
1317
1385
|
'PolkadotXcm',
|
|
1318
1386
|
'AssetsClaimed',
|
|
1319
|
-
{ hash: H256; origin: StagingXcmV3MultilocationMultiLocation; assets:
|
|
1387
|
+
{ hash: H256; origin: StagingXcmV3MultilocationMultiLocation; assets: XcmVersionedMultiAssets }
|
|
1320
1388
|
>;
|
|
1321
1389
|
|
|
1322
1390
|
/**
|
|
@@ -1344,12 +1412,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1344
1412
|
* Downward message executed with the given outcome.
|
|
1345
1413
|
* \[ id, outcome \]
|
|
1346
1414
|
**/
|
|
1347
|
-
ExecutedDownward: GenericPalletEvent<
|
|
1348
|
-
Rv,
|
|
1349
|
-
'CumulusXcm',
|
|
1350
|
-
'ExecutedDownward',
|
|
1351
|
-
[FixedBytes<32>, StagingXcmV3TraitsOutcome]
|
|
1352
|
-
>;
|
|
1415
|
+
ExecutedDownward: GenericPalletEvent<Rv, 'CumulusXcm', 'ExecutedDownward', [FixedBytes<32>, XcmV3TraitsOutcome]>;
|
|
1353
1416
|
|
|
1354
1417
|
/**
|
|
1355
1418
|
* Generic pallet event
|
|
@@ -1377,7 +1440,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1377
1440
|
Rv,
|
|
1378
1441
|
'DmpQueue',
|
|
1379
1442
|
'ExecutedDownward',
|
|
1380
|
-
{ messageHash: FixedBytes<32>; messageId: FixedBytes<32>; outcome:
|
|
1443
|
+
{ messageHash: FixedBytes<32>; messageId: FixedBytes<32>; outcome: XcmV3TraitsOutcome }
|
|
1381
1444
|
>;
|
|
1382
1445
|
|
|
1383
1446
|
/**
|
|
@@ -1441,7 +1504,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1441
1504
|
Rv,
|
|
1442
1505
|
'XcAssetConfig',
|
|
1443
1506
|
'AssetRegistered',
|
|
1444
|
-
{ assetLocation:
|
|
1507
|
+
{ assetLocation: XcmVersionedMultiLocation; assetId: bigint }
|
|
1445
1508
|
>;
|
|
1446
1509
|
|
|
1447
1510
|
/**
|
|
@@ -1451,7 +1514,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1451
1514
|
Rv,
|
|
1452
1515
|
'XcAssetConfig',
|
|
1453
1516
|
'UnitsPerSecondChanged',
|
|
1454
|
-
{ assetLocation:
|
|
1517
|
+
{ assetLocation: XcmVersionedMultiLocation; unitsPerSecond: bigint }
|
|
1455
1518
|
>;
|
|
1456
1519
|
|
|
1457
1520
|
/**
|
|
@@ -1461,11 +1524,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1461
1524
|
Rv,
|
|
1462
1525
|
'XcAssetConfig',
|
|
1463
1526
|
'AssetLocationChanged',
|
|
1464
|
-
{
|
|
1465
|
-
previousAssetLocation: StagingXcmVersionedMultiLocation;
|
|
1466
|
-
assetId: bigint;
|
|
1467
|
-
newAssetLocation: StagingXcmVersionedMultiLocation;
|
|
1468
|
-
}
|
|
1527
|
+
{ previousAssetLocation: XcmVersionedMultiLocation; assetId: bigint; newAssetLocation: XcmVersionedMultiLocation }
|
|
1469
1528
|
>;
|
|
1470
1529
|
|
|
1471
1530
|
/**
|
|
@@ -1475,7 +1534,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1475
1534
|
Rv,
|
|
1476
1535
|
'XcAssetConfig',
|
|
1477
1536
|
'SupportedAssetRemoved',
|
|
1478
|
-
{ assetLocation:
|
|
1537
|
+
{ assetLocation: XcmVersionedMultiLocation }
|
|
1479
1538
|
>;
|
|
1480
1539
|
|
|
1481
1540
|
/**
|
|
@@ -1485,7 +1544,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1485
1544
|
Rv,
|
|
1486
1545
|
'XcAssetConfig',
|
|
1487
1546
|
'AssetRemoved',
|
|
1488
|
-
{ assetLocation:
|
|
1547
|
+
{ assetLocation: XcmVersionedMultiLocation; assetId: bigint }
|
|
1489
1548
|
>;
|
|
1490
1549
|
|
|
1491
1550
|
/**
|
|
@@ -1506,8 +1565,8 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1506
1565
|
'TransferredMultiAssets',
|
|
1507
1566
|
{
|
|
1508
1567
|
sender: AccountId32;
|
|
1509
|
-
assets:
|
|
1510
|
-
fee:
|
|
1568
|
+
assets: XcmV3MultiassetMultiAssets;
|
|
1569
|
+
fee: XcmV3MultiassetMultiAsset;
|
|
1511
1570
|
dest: StagingXcmV3MultilocationMultiLocation;
|
|
1512
1571
|
}
|
|
1513
1572
|
>;
|
|
@@ -1767,51 +1826,48 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1767
1826
|
**/
|
|
1768
1827
|
sudo: {
|
|
1769
1828
|
/**
|
|
1770
|
-
* A sudo just took place.
|
|
1771
|
-
**/
|
|
1772
|
-
Sudid: GenericPalletEvent<Rv, 'Sudo', 'Sudid', { sudoResult: Result<[], DispatchError> }>;
|
|
1773
|
-
|
|
1774
|
-
/**
|
|
1775
|
-
* The \[sudoer\] just switched identity; the old key is supplied if one existed.
|
|
1776
|
-
**/
|
|
1777
|
-
KeyChanged: GenericPalletEvent<Rv, 'Sudo', 'KeyChanged', { oldSudoer?: AccountId32 | undefined }>;
|
|
1778
|
-
|
|
1779
|
-
/**
|
|
1780
|
-
* A sudo just took place. \[result\]
|
|
1829
|
+
* A sudo call just took place.
|
|
1781
1830
|
**/
|
|
1782
|
-
|
|
1831
|
+
Sudid: GenericPalletEvent<
|
|
1832
|
+
Rv,
|
|
1833
|
+
'Sudo',
|
|
1834
|
+
'Sudid',
|
|
1835
|
+
{
|
|
1836
|
+
/**
|
|
1837
|
+
* The result of the call made by the sudo user.
|
|
1838
|
+
**/
|
|
1839
|
+
sudoResult: Result<[], DispatchError>;
|
|
1840
|
+
}
|
|
1841
|
+
>;
|
|
1783
1842
|
|
|
1784
1843
|
/**
|
|
1785
|
-
*
|
|
1844
|
+
* The sudo key has been updated.
|
|
1786
1845
|
**/
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1846
|
+
KeyChanged: GenericPalletEvent<
|
|
1847
|
+
Rv,
|
|
1848
|
+
'Sudo',
|
|
1849
|
+
'KeyChanged',
|
|
1850
|
+
{
|
|
1851
|
+
/**
|
|
1852
|
+
* The old sudo key if one was previously set.
|
|
1853
|
+
**/
|
|
1854
|
+
oldSudoer?: AccountId32 | undefined;
|
|
1855
|
+
}
|
|
1856
|
+
>;
|
|
1797
1857
|
|
|
1798
1858
|
/**
|
|
1799
|
-
*
|
|
1859
|
+
* A [sudo_as](Pallet::sudo_as) call just took place.
|
|
1800
1860
|
**/
|
|
1801
|
-
|
|
1802
|
-
};
|
|
1803
|
-
/**
|
|
1804
|
-
* Pallet `DappStakingMigration`'s events
|
|
1805
|
-
**/
|
|
1806
|
-
dappStakingMigration: {
|
|
1807
|
-
/**
|
|
1808
|
-
* Number of staking info entries translated
|
|
1809
|
-
**/
|
|
1810
|
-
SingularStakingInfoTranslated: GenericPalletEvent<
|
|
1861
|
+
SudoAsDone: GenericPalletEvent<
|
|
1811
1862
|
Rv,
|
|
1812
|
-
'
|
|
1813
|
-
'
|
|
1814
|
-
|
|
1863
|
+
'Sudo',
|
|
1864
|
+
'SudoAsDone',
|
|
1865
|
+
{
|
|
1866
|
+
/**
|
|
1867
|
+
* The result of the call made by the sudo user.
|
|
1868
|
+
**/
|
|
1869
|
+
sudoResult: Result<[], DispatchError>;
|
|
1870
|
+
}
|
|
1815
1871
|
>;
|
|
1816
1872
|
|
|
1817
1873
|
/**
|
package/astar/json-rpc.d.ts
CHANGED
|
@@ -15,11 +15,12 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
15
15
|
| 'author_submitExtrinsic'
|
|
16
16
|
| 'chainHead_unstable_body'
|
|
17
17
|
| 'chainHead_unstable_call'
|
|
18
|
-
| 'chainHead_unstable_continue'
|
|
19
18
|
| 'chainHead_unstable_follow'
|
|
20
19
|
| 'chainHead_unstable_genesisHash'
|
|
21
20
|
| 'chainHead_unstable_header'
|
|
22
|
-
| '
|
|
21
|
+
| 'chainHead_unstable_stopBody'
|
|
22
|
+
| 'chainHead_unstable_stopCall'
|
|
23
|
+
| 'chainHead_unstable_stopStorage'
|
|
23
24
|
| 'chainHead_unstable_storage'
|
|
24
25
|
| 'chainHead_unstable_unpin'
|
|
25
26
|
| 'chain_getBlock'
|
|
@@ -36,6 +37,52 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
36
37
|
| 'childstate_getStorageHash'
|
|
37
38
|
| 'childstate_getStorageSize'
|
|
38
39
|
| 'dev_getBlockStats'
|
|
40
|
+
| 'eth_accounts'
|
|
41
|
+
| 'eth_blockNumber'
|
|
42
|
+
| 'eth_call'
|
|
43
|
+
| 'eth_chainId'
|
|
44
|
+
| 'eth_coinbase'
|
|
45
|
+
| 'eth_estimateGas'
|
|
46
|
+
| 'eth_feeHistory'
|
|
47
|
+
| 'eth_gasPrice'
|
|
48
|
+
| 'eth_getBalance'
|
|
49
|
+
| 'eth_getBlockByHash'
|
|
50
|
+
| 'eth_getBlockByNumber'
|
|
51
|
+
| 'eth_getBlockTransactionCountByHash'
|
|
52
|
+
| 'eth_getBlockTransactionCountByNumber'
|
|
53
|
+
| 'eth_getCode'
|
|
54
|
+
| 'eth_getFilterChanges'
|
|
55
|
+
| 'eth_getFilterLogs'
|
|
56
|
+
| 'eth_getLogs'
|
|
57
|
+
| 'eth_getStorageAt'
|
|
58
|
+
| 'eth_getTransactionByBlockHashAndIndex'
|
|
59
|
+
| 'eth_getTransactionByBlockNumberAndIndex'
|
|
60
|
+
| 'eth_getTransactionByHash'
|
|
61
|
+
| 'eth_getTransactionCount'
|
|
62
|
+
| 'eth_getTransactionReceipt'
|
|
63
|
+
| 'eth_getUncleByBlockHashAndIndex'
|
|
64
|
+
| 'eth_getUncleByBlockNumberAndIndex'
|
|
65
|
+
| 'eth_getUncleCountByBlockHash'
|
|
66
|
+
| 'eth_getUncleCountByBlockNumber'
|
|
67
|
+
| 'eth_getWork'
|
|
68
|
+
| 'eth_hashrate'
|
|
69
|
+
| 'eth_maxPriorityFeePerGas'
|
|
70
|
+
| 'eth_mining'
|
|
71
|
+
| 'eth_newBlockFilter'
|
|
72
|
+
| 'eth_newFilter'
|
|
73
|
+
| 'eth_newPendingTransactionFilter'
|
|
74
|
+
| 'eth_protocolVersion'
|
|
75
|
+
| 'eth_sendRawTransaction'
|
|
76
|
+
| 'eth_sendTransaction'
|
|
77
|
+
| 'eth_submitHashrate'
|
|
78
|
+
| 'eth_submitWork'
|
|
79
|
+
| 'eth_subscribe'
|
|
80
|
+
| 'eth_syncing'
|
|
81
|
+
| 'eth_uninstallFilter'
|
|
82
|
+
| 'eth_unsubscribe'
|
|
83
|
+
| 'net_listening'
|
|
84
|
+
| 'net_peerCount'
|
|
85
|
+
| 'net_version'
|
|
39
86
|
| 'offchain_localStorageGet'
|
|
40
87
|
| 'offchain_localStorageSet'
|
|
41
88
|
| 'payment_queryFeeDetails'
|
|
@@ -78,5 +125,7 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
78
125
|
| 'system_version'
|
|
79
126
|
| 'transaction_unstable_submitAndWatch'
|
|
80
127
|
| 'transaction_unstable_unwatch'
|
|
128
|
+
| 'web3_clientVersion'
|
|
129
|
+
| 'web3_sha3'
|
|
81
130
|
> &
|
|
82
131
|
GenericJsonRpcApis<Rv>;
|