@dedot/chaintypes 0.42.0 → 0.43.0
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 +350 -2
- package/astar/errors.d.ts +661 -5
- package/astar/events.d.ts +949 -4
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +662 -42
- package/astar/runtime.d.ts +60 -8
- package/astar/tx.d.ts +3136 -88
- package/astar/types.d.ts +2650 -242
- package/package.json +2 -2
- package/paseo/index.d.ts +1 -1
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/runtime.d.ts +6 -14
- package/westend-asset-hub/tx.d.ts +1 -1
- package/westend-asset-hub/types.d.ts +34 -5
package/astar/consts.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, FixedU128, AccountId32, Perbill } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, FixedU128, AccountId32, Perbill, Permill } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
|
+
SpWeightsWeightV2Weight,
|
|
9
10
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
10
11
|
StagingXcmV4Location,
|
|
11
|
-
SpWeightsWeightV2Weight,
|
|
12
12
|
PalletContractsSchedule,
|
|
13
13
|
PalletContractsEnvironment,
|
|
14
14
|
PalletContractsApiVersion,
|
|
15
|
+
FrameSupportPalletId,
|
|
15
16
|
} from './types';
|
|
16
17
|
|
|
17
18
|
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
@@ -226,6 +227,29 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
226
227
|
**/
|
|
227
228
|
[name: string]: any;
|
|
228
229
|
};
|
|
230
|
+
/**
|
|
231
|
+
* Pallet `Scheduler`'s constants
|
|
232
|
+
**/
|
|
233
|
+
scheduler: {
|
|
234
|
+
/**
|
|
235
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
236
|
+
**/
|
|
237
|
+
maximumWeight: SpWeightsWeightV2Weight;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
241
|
+
*
|
|
242
|
+
* NOTE:
|
|
243
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
244
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
245
|
+
**/
|
|
246
|
+
maxScheduledPerBlock: number;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Generic pallet constant
|
|
250
|
+
**/
|
|
251
|
+
[name: string]: any;
|
|
252
|
+
};
|
|
229
253
|
/**
|
|
230
254
|
* Pallet `ParachainSystem`'s constants
|
|
231
255
|
**/
|
|
@@ -593,6 +617,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
593
617
|
**/
|
|
594
618
|
maxInboundSuspended: number;
|
|
595
619
|
|
|
620
|
+
/**
|
|
621
|
+
* Maximal number of outbound XCMP channels that can have messages queued at the same time.
|
|
622
|
+
*
|
|
623
|
+
* If this is reached, then no further messages can be sent to channels that do not yet
|
|
624
|
+
* have a message queued. This should be set to the expected maximum of outbound channels
|
|
625
|
+
* which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
|
|
626
|
+
* since otherwise the congestion control protocol will not work as intended and messages
|
|
627
|
+
* may be dropped. This value increases the PoV and should therefore not be picked too
|
|
628
|
+
* high. Governance needs to pay attention to not open more channels than this value.
|
|
629
|
+
**/
|
|
630
|
+
maxActiveOutboundChannels: number;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* The maximal page size for HRMP message pages.
|
|
634
|
+
*
|
|
635
|
+
* A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
|
|
636
|
+
* benchmarking. The limit for the size of a message is slightly below this, since some
|
|
637
|
+
* overhead is incurred for encoding the format.
|
|
638
|
+
**/
|
|
639
|
+
maxPageSize: number;
|
|
640
|
+
|
|
596
641
|
/**
|
|
597
642
|
* Generic pallet constant
|
|
598
643
|
**/
|
|
@@ -777,6 +822,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
777
822
|
**/
|
|
778
823
|
maxStorageKeyLen: number;
|
|
779
824
|
|
|
825
|
+
/**
|
|
826
|
+
* The maximum size of the transient storage in bytes.
|
|
827
|
+
* This includes keys, values, and previous entries used for storage rollback.
|
|
828
|
+
**/
|
|
829
|
+
maxTransientStorageSize: number;
|
|
830
|
+
|
|
780
831
|
/**
|
|
781
832
|
* The maximum number of delegate_dependencies that a contract can lock with
|
|
782
833
|
* [`chain_extension::Ext::lock_delegate_dependency`].
|
|
@@ -821,6 +872,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
821
872
|
**/
|
|
822
873
|
[name: string]: any;
|
|
823
874
|
};
|
|
875
|
+
/**
|
|
876
|
+
* Pallet `Preimage`'s constants
|
|
877
|
+
**/
|
|
878
|
+
preimage: {
|
|
879
|
+
/**
|
|
880
|
+
* Generic pallet constant
|
|
881
|
+
**/
|
|
882
|
+
[name: string]: any;
|
|
883
|
+
};
|
|
824
884
|
/**
|
|
825
885
|
* Pallet `Sudo`'s constants
|
|
826
886
|
**/
|
|
@@ -830,4 +890,292 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
830
890
|
**/
|
|
831
891
|
[name: string]: any;
|
|
832
892
|
};
|
|
893
|
+
/**
|
|
894
|
+
* Pallet `CouncilMembership`'s constants
|
|
895
|
+
**/
|
|
896
|
+
councilMembership: {
|
|
897
|
+
/**
|
|
898
|
+
* Generic pallet constant
|
|
899
|
+
**/
|
|
900
|
+
[name: string]: any;
|
|
901
|
+
};
|
|
902
|
+
/**
|
|
903
|
+
* Pallet `TechnicalCommitteeMembership`'s constants
|
|
904
|
+
**/
|
|
905
|
+
technicalCommitteeMembership: {
|
|
906
|
+
/**
|
|
907
|
+
* Generic pallet constant
|
|
908
|
+
**/
|
|
909
|
+
[name: string]: any;
|
|
910
|
+
};
|
|
911
|
+
/**
|
|
912
|
+
* Pallet `CommunityCouncilMembership`'s constants
|
|
913
|
+
**/
|
|
914
|
+
communityCouncilMembership: {
|
|
915
|
+
/**
|
|
916
|
+
* Generic pallet constant
|
|
917
|
+
**/
|
|
918
|
+
[name: string]: any;
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
* Pallet `Council`'s constants
|
|
922
|
+
**/
|
|
923
|
+
council: {
|
|
924
|
+
/**
|
|
925
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
926
|
+
**/
|
|
927
|
+
maxProposalWeight: SpWeightsWeightV2Weight;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Generic pallet constant
|
|
931
|
+
**/
|
|
932
|
+
[name: string]: any;
|
|
933
|
+
};
|
|
934
|
+
/**
|
|
935
|
+
* Pallet `TechnicalCommittee`'s constants
|
|
936
|
+
**/
|
|
937
|
+
technicalCommittee: {
|
|
938
|
+
/**
|
|
939
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
940
|
+
**/
|
|
941
|
+
maxProposalWeight: SpWeightsWeightV2Weight;
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Generic pallet constant
|
|
945
|
+
**/
|
|
946
|
+
[name: string]: any;
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* Pallet `CommunityCouncil`'s constants
|
|
950
|
+
**/
|
|
951
|
+
communityCouncil: {
|
|
952
|
+
/**
|
|
953
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
954
|
+
**/
|
|
955
|
+
maxProposalWeight: SpWeightsWeightV2Weight;
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Generic pallet constant
|
|
959
|
+
**/
|
|
960
|
+
[name: string]: any;
|
|
961
|
+
};
|
|
962
|
+
/**
|
|
963
|
+
* Pallet `Democracy`'s constants
|
|
964
|
+
**/
|
|
965
|
+
democracy: {
|
|
966
|
+
/**
|
|
967
|
+
* The period between a proposal being approved and enacted.
|
|
968
|
+
*
|
|
969
|
+
* It should generally be a little more than the unstake period to ensure that
|
|
970
|
+
* voting stakers have an opportunity to remove themselves from the system in the case
|
|
971
|
+
* where they are on the losing side of a vote.
|
|
972
|
+
**/
|
|
973
|
+
enactmentPeriod: number;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* How often (in blocks) new public referenda are launched.
|
|
977
|
+
**/
|
|
978
|
+
launchPeriod: number;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* How often (in blocks) to check for new votes.
|
|
982
|
+
**/
|
|
983
|
+
votingPeriod: number;
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* The minimum period of vote locking.
|
|
987
|
+
*
|
|
988
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
989
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
990
|
+
**/
|
|
991
|
+
voteLockingPeriod: number;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
995
|
+
**/
|
|
996
|
+
minimumDeposit: bigint;
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Indicator for whether an emergency origin is even allowed to happen. Some chains may
|
|
1000
|
+
* want to set this permanently to `false`, others may want to condition it on things such
|
|
1001
|
+
* as an upgrade having happened recently.
|
|
1002
|
+
**/
|
|
1003
|
+
instantAllowed: boolean;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Minimum voting period allowed for a fast-track referendum.
|
|
1007
|
+
**/
|
|
1008
|
+
fastTrackVotingPeriod: number;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
|
1012
|
+
**/
|
|
1013
|
+
cooloffPeriod: number;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* The maximum number of votes for an account.
|
|
1017
|
+
*
|
|
1018
|
+
* Also used to compute weight, an overly big value can
|
|
1019
|
+
* lead to extrinsic with very big weight: see `delegate` for instance.
|
|
1020
|
+
**/
|
|
1021
|
+
maxVotes: number;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* The maximum number of public proposals that can exist at any time.
|
|
1025
|
+
**/
|
|
1026
|
+
maxProposals: number;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* The maximum number of deposits a public proposal may have at any time.
|
|
1030
|
+
**/
|
|
1031
|
+
maxDeposits: number;
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* The maximum number of items which can be blacklisted.
|
|
1035
|
+
**/
|
|
1036
|
+
maxBlacklisted: number;
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Generic pallet constant
|
|
1040
|
+
**/
|
|
1041
|
+
[name: string]: any;
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* Pallet `Treasury`'s constants
|
|
1045
|
+
**/
|
|
1046
|
+
treasury: {
|
|
1047
|
+
/**
|
|
1048
|
+
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
|
1049
|
+
* An accepted proposal gets these back. A rejected proposal does not.
|
|
1050
|
+
**/
|
|
1051
|
+
proposalBond: Permill;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
1055
|
+
**/
|
|
1056
|
+
proposalBondMinimum: bigint;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
1060
|
+
**/
|
|
1061
|
+
proposalBondMaximum: bigint | undefined;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Period between successive spends.
|
|
1065
|
+
**/
|
|
1066
|
+
spendPeriod: number;
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
1070
|
+
**/
|
|
1071
|
+
burn: Permill;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
1075
|
+
**/
|
|
1076
|
+
palletId: FrameSupportPalletId;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
1080
|
+
*
|
|
1081
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
1082
|
+
**/
|
|
1083
|
+
maxApprovals: number;
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* The period during which an approved treasury spend has to be claimed.
|
|
1087
|
+
**/
|
|
1088
|
+
payoutPeriod: number;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Generic pallet constant
|
|
1092
|
+
**/
|
|
1093
|
+
[name: string]: any;
|
|
1094
|
+
};
|
|
1095
|
+
/**
|
|
1096
|
+
* Pallet `CommunityTreasury`'s constants
|
|
1097
|
+
**/
|
|
1098
|
+
communityTreasury: {
|
|
1099
|
+
/**
|
|
1100
|
+
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
|
1101
|
+
* An accepted proposal gets these back. A rejected proposal does not.
|
|
1102
|
+
**/
|
|
1103
|
+
proposalBond: Permill;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
1107
|
+
**/
|
|
1108
|
+
proposalBondMinimum: bigint;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
1112
|
+
**/
|
|
1113
|
+
proposalBondMaximum: bigint | undefined;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Period between successive spends.
|
|
1117
|
+
**/
|
|
1118
|
+
spendPeriod: number;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
1122
|
+
**/
|
|
1123
|
+
burn: Permill;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
1127
|
+
**/
|
|
1128
|
+
palletId: FrameSupportPalletId;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
1132
|
+
*
|
|
1133
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
1134
|
+
**/
|
|
1135
|
+
maxApprovals: number;
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* The period during which an approved treasury spend has to be claimed.
|
|
1139
|
+
**/
|
|
1140
|
+
payoutPeriod: number;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Generic pallet constant
|
|
1144
|
+
**/
|
|
1145
|
+
[name: string]: any;
|
|
1146
|
+
};
|
|
1147
|
+
/**
|
|
1148
|
+
* Pallet `CollectiveProxy`'s constants
|
|
1149
|
+
**/
|
|
1150
|
+
collectiveProxy: {
|
|
1151
|
+
/**
|
|
1152
|
+
* Generic pallet constant
|
|
1153
|
+
**/
|
|
1154
|
+
[name: string]: any;
|
|
1155
|
+
};
|
|
1156
|
+
/**
|
|
1157
|
+
* Pallet `MultiBlockMigrations`'s constants
|
|
1158
|
+
**/
|
|
1159
|
+
multiBlockMigrations: {
|
|
1160
|
+
/**
|
|
1161
|
+
* The maximal length of an encoded cursor.
|
|
1162
|
+
*
|
|
1163
|
+
* A good default needs to selected such that no migration will ever have a cursor with MEL
|
|
1164
|
+
* above this limit. This is statically checked in `integrity_test`.
|
|
1165
|
+
**/
|
|
1166
|
+
cursorMaxLen: number;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* The maximal length of an encoded identifier.
|
|
1170
|
+
*
|
|
1171
|
+
* A good default needs to selected such that no migration will ever have an identifier
|
|
1172
|
+
* with MEL above this limit. This is statically checked in `integrity_test`.
|
|
1173
|
+
**/
|
|
1174
|
+
identifierMaxLen: number;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Generic pallet constant
|
|
1178
|
+
**/
|
|
1179
|
+
[name: string]: any;
|
|
1180
|
+
};
|
|
833
1181
|
}
|