@dedot/chaintypes 0.203.0 → 0.205.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/kusama/errors.d.ts +5 -0
- package/kusama/events.d.ts +20 -0
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +36 -5
- package/kusama/runtime.d.ts +25 -20
- package/kusama/tx.d.ts +19 -0
- package/kusama/types.d.ts +49 -6
- package/kusama-asset-hub/consts.d.ts +70 -1
- package/kusama-asset-hub/errors.d.ts +61 -1
- package/kusama-asset-hub/events.d.ts +10 -0
- package/kusama-asset-hub/index.d.ts +4 -1
- package/kusama-asset-hub/query.d.ts +77 -0
- package/kusama-asset-hub/runtime.d.ts +68 -1
- package/kusama-asset-hub/tx.d.ts +116 -37
- package/kusama-asset-hub/types.d.ts +483 -58
- package/kusama-people/consts.d.ts +9 -0
- package/kusama-people/index.d.ts +2 -1
- package/kusama-people/query.d.ts +10 -0
- package/kusama-people/runtime.d.ts +25 -0
- package/kusama-people/types.d.ts +23 -0
- package/package.json +2 -2
package/kusama/errors.d.ts
CHANGED
|
@@ -3087,6 +3087,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
3087
3087
|
**/
|
|
3088
3088
|
InvalidStageTransition: GenericPalletError;
|
|
3089
3089
|
|
|
3090
|
+
/**
|
|
3091
|
+
* Unsigned validation failed.
|
|
3092
|
+
**/
|
|
3093
|
+
UnsignedValidationFailed: GenericPalletError;
|
|
3094
|
+
|
|
3090
3095
|
/**
|
|
3091
3096
|
* Generic pallet error
|
|
3092
3097
|
**/
|
package/kusama/events.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ import type {
|
|
|
68
68
|
PalletRcMigratorMigrationStage,
|
|
69
69
|
XcmV3MaybeErrorCode,
|
|
70
70
|
PalletRcMigratorQueuePriority,
|
|
71
|
+
PalletRcMigratorMigrationSettings,
|
|
71
72
|
} from './types.js';
|
|
72
73
|
|
|
73
74
|
export interface ChainEvents extends GenericChainEvents {
|
|
@@ -3732,6 +3733,25 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
3732
3733
|
**/
|
|
3733
3734
|
ManagerMultisigVoted: GenericPalletEvent<'RcMigrator', 'ManagerMultisigVoted', { votes: number }>;
|
|
3734
3735
|
|
|
3736
|
+
/**
|
|
3737
|
+
* The migration settings were set.
|
|
3738
|
+
**/
|
|
3739
|
+
MigrationSettingsSet: GenericPalletEvent<
|
|
3740
|
+
'RcMigrator',
|
|
3741
|
+
'MigrationSettingsSet',
|
|
3742
|
+
{
|
|
3743
|
+
/**
|
|
3744
|
+
* The old migration settings.
|
|
3745
|
+
**/
|
|
3746
|
+
old?: PalletRcMigratorMigrationSettings | undefined;
|
|
3747
|
+
|
|
3748
|
+
/**
|
|
3749
|
+
* The new migration settings.
|
|
3750
|
+
**/
|
|
3751
|
+
new?: PalletRcMigratorMigrationSettings | undefined;
|
|
3752
|
+
}
|
|
3753
|
+
>;
|
|
3754
|
+
|
|
3735
3755
|
/**
|
|
3736
3756
|
* Generic pallet event
|
|
3737
3757
|
**/
|
package/kusama/index.d.ts
CHANGED
package/kusama/query.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import type {
|
|
|
35
35
|
FrameSupportTokensMiscIdAmount,
|
|
36
36
|
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
37
37
|
PalletTransactionPaymentReleases,
|
|
38
|
+
FrameSupportStorageNoDrop,
|
|
38
39
|
PalletStakingStakingLedger,
|
|
39
40
|
PalletStakingRewardDestination,
|
|
40
41
|
PalletStakingValidatorPrefs,
|
|
@@ -163,7 +164,7 @@ import type {
|
|
|
163
164
|
PalletRcMigratorAccountsMigratedBalances,
|
|
164
165
|
PalletRcMigratorQueuePriority,
|
|
165
166
|
FrameSupportScheduleDispatchTime,
|
|
166
|
-
|
|
167
|
+
PalletRcMigratorMigrationSettings,
|
|
167
168
|
StagingKusamaRuntimeRuntimeCall,
|
|
168
169
|
StagingKusamaRuntimeRuntimeCallLike,
|
|
169
170
|
} from './types.js';
|
|
@@ -658,6 +659,15 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
658
659
|
**/
|
|
659
660
|
storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
|
|
660
661
|
|
|
662
|
+
/**
|
|
663
|
+
* The `OnChargeTransaction` stores the withdrawn tx fee here.
|
|
664
|
+
*
|
|
665
|
+
* Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
|
|
666
|
+
*
|
|
667
|
+
* @param {Callback<FrameSupportStorageNoDrop | undefined> =} callback
|
|
668
|
+
**/
|
|
669
|
+
txPaymentCredit: GenericStorageQuery<() => FrameSupportStorageNoDrop | undefined>;
|
|
670
|
+
|
|
661
671
|
/**
|
|
662
672
|
* Generic pallet storage query
|
|
663
673
|
**/
|
|
@@ -4284,10 +4294,10 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
4284
4294
|
*
|
|
4285
4295
|
* Unconfirmed messages can be resent by calling the [`Pallet::resend_xcm`] function.
|
|
4286
4296
|
*
|
|
4287
|
-
* @param {H256} arg
|
|
4297
|
+
* @param {[bigint, H256]} arg
|
|
4288
4298
|
* @param {Callback<StagingXcmV5Xcm | undefined> =} callback
|
|
4289
4299
|
**/
|
|
4290
|
-
pendingXcmMessages: GenericStorageQuery<(arg: H256) => StagingXcmV5Xcm | undefined, H256>;
|
|
4300
|
+
pendingXcmMessages: GenericStorageQuery<(arg: [bigint, H256]) => StagingXcmV5Xcm | undefined, [bigint, H256]>;
|
|
4291
4301
|
|
|
4292
4302
|
/**
|
|
4293
4303
|
* Counter for the related counted storage map
|
|
@@ -4400,21 +4410,42 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
4400
4410
|
coolOffPeriod: GenericStorageQuery<() => FrameSupportScheduleDispatchTime | undefined>;
|
|
4401
4411
|
|
|
4402
4412
|
/**
|
|
4413
|
+
* The migration settings.
|
|
4414
|
+
*
|
|
4415
|
+
* @param {Callback<PalletRcMigratorMigrationSettings | undefined> =} callback
|
|
4416
|
+
**/
|
|
4417
|
+
settings: GenericStorageQuery<() => PalletRcMigratorMigrationSettings | undefined>;
|
|
4418
|
+
|
|
4419
|
+
/**
|
|
4420
|
+
* The multisig AccountIDs that votes to execute a specific call.
|
|
4403
4421
|
*
|
|
4404
4422
|
* @param {StagingKusamaRuntimeRuntimeCallLike} arg
|
|
4405
|
-
* @param {Callback<Array<
|
|
4423
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
4406
4424
|
**/
|
|
4407
4425
|
managerMultisigs: GenericStorageQuery<
|
|
4408
|
-
(arg: StagingKusamaRuntimeRuntimeCallLike) => Array<
|
|
4426
|
+
(arg: StagingKusamaRuntimeRuntimeCallLike) => Array<AccountId32>,
|
|
4409
4427
|
StagingKusamaRuntimeRuntimeCall
|
|
4410
4428
|
>;
|
|
4411
4429
|
|
|
4412
4430
|
/**
|
|
4431
|
+
* The current round of the multisig voting.
|
|
4432
|
+
*
|
|
4433
|
+
* Votes are only valid for the current round.
|
|
4413
4434
|
*
|
|
4414
4435
|
* @param {Callback<number> =} callback
|
|
4415
4436
|
**/
|
|
4416
4437
|
managerMultisigRound: GenericStorageQuery<() => number>;
|
|
4417
4438
|
|
|
4439
|
+
/**
|
|
4440
|
+
* How often each participant voted in the current round.
|
|
4441
|
+
*
|
|
4442
|
+
* Will be cleared at the end of each round.
|
|
4443
|
+
*
|
|
4444
|
+
* @param {AccountId32Like} arg
|
|
4445
|
+
* @param {Callback<number> =} callback
|
|
4446
|
+
**/
|
|
4447
|
+
managerVotesInCurrentRound: GenericStorageQuery<(arg: AccountId32Like) => number, AccountId32>;
|
|
4448
|
+
|
|
4418
4449
|
/**
|
|
4419
4450
|
* Generic pallet storage query
|
|
4420
4451
|
**/
|
package/kusama/runtime.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ import type {
|
|
|
16
16
|
AccountId32,
|
|
17
17
|
} from 'dedot/codecs';
|
|
18
18
|
import type {
|
|
19
|
-
RelayCommonApisInflationInfo,
|
|
20
19
|
SpRuntimeBlock,
|
|
21
20
|
SpRuntimeExtrinsicInclusionMode,
|
|
22
21
|
SpCoreOpaqueMetadata,
|
|
@@ -74,6 +73,8 @@ import type {
|
|
|
74
73
|
SpConsensusSlotsEquivocationProof,
|
|
75
74
|
SpAuthorityDiscoveryAppPublic,
|
|
76
75
|
SpCoreCryptoKeyTypeId,
|
|
76
|
+
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
77
|
+
FrameSupportViewFunctionsViewFunctionId,
|
|
77
78
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
78
79
|
PalletTransactionPaymentFeeDetails,
|
|
79
80
|
SpWeightsWeightV2Weight,
|
|
@@ -91,25 +92,6 @@ import type {
|
|
|
91
92
|
} from './types.js';
|
|
92
93
|
|
|
93
94
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
94
|
-
/**
|
|
95
|
-
* @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
|
|
96
|
-
**/
|
|
97
|
-
inflation: {
|
|
98
|
-
/**
|
|
99
|
-
* Return the current estimates of the inflation amount.
|
|
100
|
-
*
|
|
101
|
-
* This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly
|
|
102
|
-
* recommended over trying to read-storage, or re-create the onchain logic.
|
|
103
|
-
*
|
|
104
|
-
* @callname: Inflation_experimental_inflation_prediction_info
|
|
105
|
-
**/
|
|
106
|
-
experimentalInflationPredictionInfo: GenericRuntimeApiMethod<() => Promise<RelayCommonApisInflationInfo>>;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Generic runtime api call
|
|
110
|
-
**/
|
|
111
|
-
[method: string]: GenericRuntimeApiMethod;
|
|
112
|
-
};
|
|
113
95
|
/**
|
|
114
96
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
115
97
|
**/
|
|
@@ -1087,6 +1069,29 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1087
1069
|
**/
|
|
1088
1070
|
[method: string]: GenericRuntimeApiMethod;
|
|
1089
1071
|
};
|
|
1072
|
+
/**
|
|
1073
|
+
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
1074
|
+
**/
|
|
1075
|
+
runtimeViewFunction: {
|
|
1076
|
+
/**
|
|
1077
|
+
* Execute a view function query.
|
|
1078
|
+
*
|
|
1079
|
+
* @callname: RuntimeViewFunction_execute_view_function
|
|
1080
|
+
* @param {FrameSupportViewFunctionsViewFunctionId} query_id
|
|
1081
|
+
* @param {BytesLike} input
|
|
1082
|
+
**/
|
|
1083
|
+
executeViewFunction: GenericRuntimeApiMethod<
|
|
1084
|
+
(
|
|
1085
|
+
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
1086
|
+
input: BytesLike,
|
|
1087
|
+
) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
|
|
1088
|
+
>;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Generic runtime api call
|
|
1092
|
+
**/
|
|
1093
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1094
|
+
};
|
|
1090
1095
|
/**
|
|
1091
1096
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
1092
1097
|
**/
|
package/kusama/tx.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ import type {
|
|
|
96
96
|
StagingXcmV5Response,
|
|
97
97
|
PalletRcMigratorQueuePriority,
|
|
98
98
|
PalletRcMigratorManagerMultisigVote,
|
|
99
|
+
PalletRcMigratorMigrationSettings,
|
|
99
100
|
} from './types.js';
|
|
100
101
|
|
|
101
102
|
export type ChainSubmittableExtrinsic<
|
|
@@ -11693,6 +11694,24 @@ export interface ChainTx<
|
|
|
11693
11694
|
>
|
|
11694
11695
|
>;
|
|
11695
11696
|
|
|
11697
|
+
/**
|
|
11698
|
+
* Set the migration settings. Can only be done by admin or manager.
|
|
11699
|
+
*
|
|
11700
|
+
* @param {PalletRcMigratorMigrationSettings | undefined} settings
|
|
11701
|
+
**/
|
|
11702
|
+
setSettings: GenericTxCall<
|
|
11703
|
+
(settings: PalletRcMigratorMigrationSettings | undefined) => ChainSubmittableExtrinsic<
|
|
11704
|
+
{
|
|
11705
|
+
pallet: 'RcMigrator';
|
|
11706
|
+
palletCall: {
|
|
11707
|
+
name: 'SetSettings';
|
|
11708
|
+
params: { settings: PalletRcMigratorMigrationSettings | undefined };
|
|
11709
|
+
};
|
|
11710
|
+
},
|
|
11711
|
+
ChainKnownTypes
|
|
11712
|
+
>
|
|
11713
|
+
>;
|
|
11714
|
+
|
|
11696
11715
|
/**
|
|
11697
11716
|
* Generic pallet tx call
|
|
11698
11717
|
**/
|
package/kusama/types.d.ts
CHANGED
|
@@ -12029,7 +12029,11 @@ export type PalletRcMigratorCall =
|
|
|
12029
12029
|
| {
|
|
12030
12030
|
name: 'VoteManagerMultisig';
|
|
12031
12031
|
params: { payload: PalletRcMigratorManagerMultisigVote; sig: SpRuntimeMultiSignature };
|
|
12032
|
-
}
|
|
12032
|
+
}
|
|
12033
|
+
/**
|
|
12034
|
+
* Set the migration settings. Can only be done by admin or manager.
|
|
12035
|
+
**/
|
|
12036
|
+
| { name: 'SetSettings'; params: { settings?: PalletRcMigratorMigrationSettings | undefined } };
|
|
12033
12037
|
|
|
12034
12038
|
export type PalletRcMigratorCallLike =
|
|
12035
12039
|
/**
|
|
@@ -12147,7 +12151,11 @@ export type PalletRcMigratorCallLike =
|
|
|
12147
12151
|
| {
|
|
12148
12152
|
name: 'VoteManagerMultisig';
|
|
12149
12153
|
params: { payload: PalletRcMigratorManagerMultisigVote; sig: SpRuntimeMultiSignature };
|
|
12150
|
-
}
|
|
12154
|
+
}
|
|
12155
|
+
/**
|
|
12156
|
+
* Set the migration settings. Can only be done by admin or manager.
|
|
12157
|
+
**/
|
|
12158
|
+
| { name: 'SetSettings'; params: { settings?: PalletRcMigratorMigrationSettings | undefined } };
|
|
12151
12159
|
|
|
12152
12160
|
export type PalletRcMigratorMigrationStage =
|
|
12153
12161
|
| { type: 'Pending' }
|
|
@@ -12376,6 +12384,11 @@ export type PalletRcMigratorManagerMultisigVote = {
|
|
|
12376
12384
|
round: number;
|
|
12377
12385
|
};
|
|
12378
12386
|
|
|
12387
|
+
export type PalletRcMigratorMigrationSettings = {
|
|
12388
|
+
maxAccountsPerBlock?: number | undefined;
|
|
12389
|
+
maxItemsPerBlock?: number | undefined;
|
|
12390
|
+
};
|
|
12391
|
+
|
|
12379
12392
|
export type SpRuntimeBlakeTwo256 = {};
|
|
12380
12393
|
|
|
12381
12394
|
export type PalletConvictionVotingTally = { ayes: bigint; nays: bigint; support: bigint };
|
|
@@ -14553,7 +14566,24 @@ export type PalletRcMigratorEvent =
|
|
|
14553
14566
|
/**
|
|
14554
14567
|
* The manager multisig received a vote.
|
|
14555
14568
|
**/
|
|
14556
|
-
| { name: 'ManagerMultisigVoted'; data: { votes: number } }
|
|
14569
|
+
| { name: 'ManagerMultisigVoted'; data: { votes: number } }
|
|
14570
|
+
/**
|
|
14571
|
+
* The migration settings were set.
|
|
14572
|
+
**/
|
|
14573
|
+
| {
|
|
14574
|
+
name: 'MigrationSettingsSet';
|
|
14575
|
+
data: {
|
|
14576
|
+
/**
|
|
14577
|
+
* The old migration settings.
|
|
14578
|
+
**/
|
|
14579
|
+
old?: PalletRcMigratorMigrationSettings | undefined;
|
|
14580
|
+
|
|
14581
|
+
/**
|
|
14582
|
+
* The new migration settings.
|
|
14583
|
+
**/
|
|
14584
|
+
new?: PalletRcMigratorMigrationSettings | undefined;
|
|
14585
|
+
};
|
|
14586
|
+
};
|
|
14557
14587
|
|
|
14558
14588
|
export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
|
|
14559
14589
|
|
|
@@ -14812,6 +14842,10 @@ export type PalletBalancesError =
|
|
|
14812
14842
|
|
|
14813
14843
|
export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2';
|
|
14814
14844
|
|
|
14845
|
+
export type FrameSupportStorageNoDrop = FrameSupportTokensFungibleImbalance;
|
|
14846
|
+
|
|
14847
|
+
export type FrameSupportTokensFungibleImbalance = { amount: bigint };
|
|
14848
|
+
|
|
14815
14849
|
export type PalletStakingStakingLedger = {
|
|
14816
14850
|
stash: AccountId32;
|
|
14817
14851
|
total: bigint;
|
|
@@ -17767,9 +17801,11 @@ export type PalletRcMigratorError =
|
|
|
17767
17801
|
/**
|
|
17768
17802
|
* The stage transition is invalid.
|
|
17769
17803
|
**/
|
|
17770
|
-
| 'InvalidStageTransition'
|
|
17771
|
-
|
|
17772
|
-
|
|
17804
|
+
| 'InvalidStageTransition'
|
|
17805
|
+
/**
|
|
17806
|
+
* Unsigned validation failed.
|
|
17807
|
+
**/
|
|
17808
|
+
| 'UnsignedValidationFailed';
|
|
17773
17809
|
|
|
17774
17810
|
export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
|
|
17775
17811
|
|
|
@@ -18000,6 +18036,13 @@ export type SpConsensusBabeEpoch = {
|
|
|
18000
18036
|
|
|
18001
18037
|
export type SpConsensusBabeOpaqueKeyOwnershipProof = Bytes;
|
|
18002
18038
|
|
|
18039
|
+
export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
|
|
18040
|
+
|
|
18041
|
+
export type FrameSupportViewFunctionsViewFunctionDispatchError =
|
|
18042
|
+
| { type: 'NotImplemented' }
|
|
18043
|
+
| { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
|
|
18044
|
+
| { type: 'Codec' };
|
|
18045
|
+
|
|
18003
18046
|
export type PalletTransactionPaymentRuntimeDispatchInfo = {
|
|
18004
18047
|
weight: SpWeightsWeightV2Weight;
|
|
18005
18048
|
class: FrameSupportDispatchDispatchClass;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, Bytes, AccountId32, Permill, Perbill } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, Bytes, AccountId32, Permill, Perbill, FixedU128 } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
@@ -167,6 +167,15 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
167
167
|
**/
|
|
168
168
|
[name: string]: any;
|
|
169
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* Pallet `WeightReclaim`'s constants
|
|
172
|
+
**/
|
|
173
|
+
weightReclaim: {
|
|
174
|
+
/**
|
|
175
|
+
* Generic pallet constant
|
|
176
|
+
**/
|
|
177
|
+
[name: string]: any;
|
|
178
|
+
};
|
|
170
179
|
/**
|
|
171
180
|
* Pallet `Balances`'s constants
|
|
172
181
|
**/
|
|
@@ -1095,6 +1104,19 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1095
1104
|
**/
|
|
1096
1105
|
depositPerItem: bigint;
|
|
1097
1106
|
|
|
1107
|
+
/**
|
|
1108
|
+
* The amount of balance a caller has to pay for each child trie storage item.
|
|
1109
|
+
*
|
|
1110
|
+
* Those are the items created by a contract. In Solidity each value is a single
|
|
1111
|
+
* storage item. This is why we need to set a lower value here than for the main
|
|
1112
|
+
* trie items. Otherwise the storage deposit is too high.
|
|
1113
|
+
*
|
|
1114
|
+
* # Note
|
|
1115
|
+
*
|
|
1116
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1117
|
+
**/
|
|
1118
|
+
depositPerChildTrieItem: bigint;
|
|
1119
|
+
|
|
1098
1120
|
/**
|
|
1099
1121
|
* The percentage of the storage deposit that should be held for using a code hash.
|
|
1100
1122
|
* Instantiating a contract, protects the code from being removed. In order to prevent
|
|
@@ -1115,6 +1137,11 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1115
1137
|
**/
|
|
1116
1138
|
unsafeUnstableInterface: boolean;
|
|
1117
1139
|
|
|
1140
|
+
/**
|
|
1141
|
+
* Allow EVM bytecode to be uploaded and instantiated.
|
|
1142
|
+
**/
|
|
1143
|
+
allowEVMBytecode: boolean;
|
|
1144
|
+
|
|
1118
1145
|
/**
|
|
1119
1146
|
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
|
1120
1147
|
*
|
|
@@ -1128,6 +1155,48 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1128
1155
|
**/
|
|
1129
1156
|
nativeToEthRatio: number;
|
|
1130
1157
|
|
|
1158
|
+
/**
|
|
1159
|
+
* The fraction the maximum extrinsic weight `eth_transact` extrinsics are capped to.
|
|
1160
|
+
*
|
|
1161
|
+
* This is not a security measure but a requirement due to how we map gas to `(Weight,
|
|
1162
|
+
* StorageDeposit)`. The mapping might derive a `Weight` that is too large to fit into an
|
|
1163
|
+
* extrinsic. In this case we cap it to the limit specified here.
|
|
1164
|
+
*
|
|
1165
|
+
* `eth_transact` transactions that use more weight than specified will fail with an out of
|
|
1166
|
+
* gas error during execution. Larger fractions will allow more transactions to run.
|
|
1167
|
+
* Smaller values waste less block space: Choose as small as possible and as large as
|
|
1168
|
+
* necessary.
|
|
1169
|
+
*
|
|
1170
|
+
* Default: `0.5`.
|
|
1171
|
+
**/
|
|
1172
|
+
maxEthExtrinsicWeight: FixedU128;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Allows debug-mode configuration, such as enabling unlimited contract size.
|
|
1176
|
+
**/
|
|
1177
|
+
debugEnabled: boolean;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* This determines the relative scale of our gas price and gas estimates.
|
|
1181
|
+
*
|
|
1182
|
+
* By default, the gas price (in wei) is `FeeInfo::next_fee_multiplier()` multiplied by
|
|
1183
|
+
* `NativeToEthRatio`. `GasScale` allows to scale this value: the actual gas price is the
|
|
1184
|
+
* default gas price multiplied by `GasScale`.
|
|
1185
|
+
*
|
|
1186
|
+
* As a consequence, gas cost (gas estimates and actual gas usage during transaction) is
|
|
1187
|
+
* scaled down by the same factor. Thus, the total transaction cost is not affected by
|
|
1188
|
+
* `GasScale` – apart from rounding differences: the transaction cost is always a multiple
|
|
1189
|
+
* of the gas price and is derived by rounded up, so that with higher `GasScales` this can
|
|
1190
|
+
* lead to higher gas cost as the rounding difference would be larger.
|
|
1191
|
+
*
|
|
1192
|
+
* The main purpose of changing the `GasScale` is to tune the gas cost so that it is closer
|
|
1193
|
+
* to standard EVM gas cost and contracts will not run out of gas when tools or code
|
|
1194
|
+
* assume hard coded gas limits.
|
|
1195
|
+
*
|
|
1196
|
+
* Requirement: `GasScale` must not be 0
|
|
1197
|
+
**/
|
|
1198
|
+
gasScale: number;
|
|
1199
|
+
|
|
1131
1200
|
/**
|
|
1132
1201
|
* Generic pallet constant
|
|
1133
1202
|
**/
|
|
@@ -2165,7 +2165,7 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2165
2165
|
ContractTrapped: GenericPalletError;
|
|
2166
2166
|
|
|
2167
2167
|
/**
|
|
2168
|
-
* Event body or storage item exceeds [`limits::
|
|
2168
|
+
* Event body or storage item exceeds [`limits::STORAGE_BYTES`].
|
|
2169
2169
|
**/
|
|
2170
2170
|
ValueTooLarge: GenericPalletError;
|
|
2171
2171
|
|
|
@@ -2351,6 +2351,66 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2351
2351
|
**/
|
|
2352
2352
|
ReturnDataTooLarge: GenericPalletError;
|
|
2353
2353
|
|
|
2354
|
+
/**
|
|
2355
|
+
* Invalid jump destination. Dynamic jumps points to invalid not jumpdest opcode.
|
|
2356
|
+
**/
|
|
2357
|
+
InvalidJump: GenericPalletError;
|
|
2358
|
+
|
|
2359
|
+
/**
|
|
2360
|
+
* Attempting to pop a value from an empty stack.
|
|
2361
|
+
**/
|
|
2362
|
+
StackUnderflow: GenericPalletError;
|
|
2363
|
+
|
|
2364
|
+
/**
|
|
2365
|
+
* Attempting to push a value onto a full stack.
|
|
2366
|
+
**/
|
|
2367
|
+
StackOverflow: GenericPalletError;
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* Too much deposit was drawn from the shared txfee and deposit credit.
|
|
2371
|
+
*
|
|
2372
|
+
* This happens if the passed `gas` inside the ethereum transaction is too low.
|
|
2373
|
+
**/
|
|
2374
|
+
TxFeeOverdraw: GenericPalletError;
|
|
2375
|
+
|
|
2376
|
+
/**
|
|
2377
|
+
* When calling an EVM constructor `data` has to be empty.
|
|
2378
|
+
*
|
|
2379
|
+
* EVM constructors do not accept data. Their input data is part of the code blob itself.
|
|
2380
|
+
**/
|
|
2381
|
+
EvmConstructorNonEmptyData: GenericPalletError;
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
* Tried to construct an EVM contract via code hash.
|
|
2385
|
+
*
|
|
2386
|
+
* EVM contracts can only be instantiated via code upload as no initcode is
|
|
2387
|
+
* stored on-chain.
|
|
2388
|
+
**/
|
|
2389
|
+
EvmConstructedFromHash: GenericPalletError;
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* The contract does not have enough balance to refund the storage deposit.
|
|
2393
|
+
*
|
|
2394
|
+
* This is a bug and should never happen. It means the accounting got out of sync.
|
|
2395
|
+
**/
|
|
2396
|
+
StorageRefundNotEnoughFunds: GenericPalletError;
|
|
2397
|
+
|
|
2398
|
+
/**
|
|
2399
|
+
* This means there are locks on the contracts storage deposit that prevents refunding it.
|
|
2400
|
+
*
|
|
2401
|
+
* This would be the case if the contract used its storage deposits for governance
|
|
2402
|
+
* or other pallets that allow creating locks over held balance.
|
|
2403
|
+
**/
|
|
2404
|
+
StorageRefundLocked: GenericPalletError;
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* Called a pre-compile that is not allowed to be delegate called.
|
|
2408
|
+
*
|
|
2409
|
+
* Some pre-compile functions will trap the caller context if being delegate
|
|
2410
|
+
* called or if their caller was being delegate called.
|
|
2411
|
+
**/
|
|
2412
|
+
PrecompileDelegateDenied: GenericPalletError;
|
|
2413
|
+
|
|
2354
2414
|
/**
|
|
2355
2415
|
* Generic pallet error
|
|
2356
2416
|
**/
|
|
@@ -3053,6 +3053,16 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
3053
3053
|
**/
|
|
3054
3054
|
Instantiated: GenericPalletEvent<'Revive', 'Instantiated', { deployer: H160; contract: H160 }>;
|
|
3055
3055
|
|
|
3056
|
+
/**
|
|
3057
|
+
* Emitted when an Ethereum transaction reverts.
|
|
3058
|
+
*
|
|
3059
|
+
* Ethereum transactions always complete successfully at the extrinsic level,
|
|
3060
|
+
* as even reverted calls must store their `ReceiptInfo`.
|
|
3061
|
+
* To distinguish reverted calls from successful ones, this event is emitted
|
|
3062
|
+
* for failed Ethereum transactions.
|
|
3063
|
+
**/
|
|
3064
|
+
EthExtrinsicRevert: GenericPalletEvent<'Revive', 'EthExtrinsicRevert', { dispatchError: DispatchError }>;
|
|
3065
|
+
|
|
3056
3066
|
/**
|
|
3057
3067
|
* Generic pallet event
|
|
3058
3068
|
**/
|
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
FrameSystemExtensionsCheckWeight,
|
|
16
16
|
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
17
17
|
FrameMetadataHashExtensionCheckMetadataHash,
|
|
18
|
+
PalletReviveEvmTxExtensionSetOrigin,
|
|
18
19
|
StagingXcmV5Location,
|
|
19
20
|
} from './types.js';
|
|
20
21
|
import { ChainConsts } from './consts.js';
|
|
@@ -42,6 +43,8 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
42
43
|
FrameSystemExtensionsCheckWeight,
|
|
43
44
|
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
44
45
|
FrameMetadataHashExtensionCheckMetadataHash,
|
|
46
|
+
PalletReviveEvmTxExtensionSetOrigin,
|
|
47
|
+
[],
|
|
45
48
|
];
|
|
46
49
|
AssetId: StagingXcmV5Location;
|
|
47
50
|
EventRecord: FrameSystemEventRecord;
|
|
@@ -49,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
49
52
|
|
|
50
53
|
/**
|
|
51
54
|
* @name: KusamaAssetHubApi
|
|
52
|
-
* @specVersion:
|
|
55
|
+
* @specVersion: 2000004
|
|
53
56
|
**/
|
|
54
57
|
export interface KusamaAssetHubApi extends GenericSubstrateApi {
|
|
55
58
|
rpc: ChainJsonRpcApis;
|
|
@@ -49,6 +49,7 @@ import type {
|
|
|
49
49
|
FrameSupportTokensMiscIdAmountRuntimeHoldReason,
|
|
50
50
|
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
51
51
|
PalletTransactionPaymentReleases,
|
|
52
|
+
FrameSupportStorageNoDrop,
|
|
52
53
|
PalletVestingVestingInfo,
|
|
53
54
|
PalletVestingReleases,
|
|
54
55
|
PolkadotRuntimeCommonClaimsStatementKind,
|
|
@@ -108,6 +109,10 @@ import type {
|
|
|
108
109
|
PalletReviveVmCodeInfo,
|
|
109
110
|
PalletReviveStorageAccountInfo,
|
|
110
111
|
PalletReviveStorageDeletionQueueManager,
|
|
112
|
+
PalletReviveEvmApiRpcTypesGenBlock,
|
|
113
|
+
PalletReviveEvmBlockHashReceiptGasInfo,
|
|
114
|
+
PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR,
|
|
115
|
+
PalletReviveDebugDebugSettings,
|
|
111
116
|
PalletStateTrieMigrationMigrationTask,
|
|
112
117
|
PalletStateTrieMigrationMigrationLimits,
|
|
113
118
|
PalletNominationPoolsPoolMember,
|
|
@@ -872,6 +877,15 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
872
877
|
**/
|
|
873
878
|
storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
|
|
874
879
|
|
|
880
|
+
/**
|
|
881
|
+
* The `OnChargeTransaction` stores the withdrawn tx fee here.
|
|
882
|
+
*
|
|
883
|
+
* Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
|
|
884
|
+
*
|
|
885
|
+
* @param {Callback<FrameSupportStorageNoDrop | undefined> =} callback
|
|
886
|
+
**/
|
|
887
|
+
txPaymentCredit: GenericStorageQuery<() => FrameSupportStorageNoDrop | undefined>;
|
|
888
|
+
|
|
875
889
|
/**
|
|
876
890
|
* Generic pallet storage query
|
|
877
891
|
**/
|
|
@@ -2256,6 +2270,8 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2256
2270
|
revive: {
|
|
2257
2271
|
/**
|
|
2258
2272
|
* A mapping from a contract's code hash to its code.
|
|
2273
|
+
* The code's size is bounded by [`crate::limits::BLOB_BYTES`] for PVM and
|
|
2274
|
+
* [`revm::primitives::eip170::MAX_CODE_SIZE`] for EVM bytecode.
|
|
2259
2275
|
*
|
|
2260
2276
|
* @param {H256} arg
|
|
2261
2277
|
* @param {Callback<Bytes | undefined> =} callback
|
|
@@ -2318,6 +2334,67 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2318
2334
|
**/
|
|
2319
2335
|
originalAccount: GenericStorageQuery<(arg: H160) => AccountId32 | undefined, H160>;
|
|
2320
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* The current Ethereum block that is stored in the `on_finalize` method.
|
|
2339
|
+
*
|
|
2340
|
+
* # Note
|
|
2341
|
+
*
|
|
2342
|
+
* This could be further optimized into the future to store only the minimum
|
|
2343
|
+
* information needed to reconstruct the Ethereum block at the RPC level.
|
|
2344
|
+
*
|
|
2345
|
+
* Since the block is convenient to have around, and the extra details are capped
|
|
2346
|
+
* by a few hashes and the vector of transaction hashes, we store the block here.
|
|
2347
|
+
*
|
|
2348
|
+
* @param {Callback<PalletReviveEvmApiRpcTypesGenBlock> =} callback
|
|
2349
|
+
**/
|
|
2350
|
+
ethereumBlock: GenericStorageQuery<() => PalletReviveEvmApiRpcTypesGenBlock>;
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* Mapping for block number and hashes.
|
|
2354
|
+
*
|
|
2355
|
+
* The maximum number of elements stored is capped by the block hash count `BLOCK_HASH_COUNT`.
|
|
2356
|
+
*
|
|
2357
|
+
* @param {number} arg
|
|
2358
|
+
* @param {Callback<H256> =} callback
|
|
2359
|
+
**/
|
|
2360
|
+
blockHash: GenericStorageQuery<(arg: number) => H256, number>;
|
|
2361
|
+
|
|
2362
|
+
/**
|
|
2363
|
+
* The details needed to reconstruct the receipt info offchain.
|
|
2364
|
+
*
|
|
2365
|
+
* This contains valuable information about the gas used by the transaction.
|
|
2366
|
+
*
|
|
2367
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
2368
|
+
* It could otherwise inflate the PoV size of a block.
|
|
2369
|
+
*
|
|
2370
|
+
* @param {Callback<Array<PalletReviveEvmBlockHashReceiptGasInfo>> =} callback
|
|
2371
|
+
**/
|
|
2372
|
+
receiptInfoData: GenericStorageQuery<() => Array<PalletReviveEvmBlockHashReceiptGasInfo>>;
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* Incremental ethereum block builder.
|
|
2376
|
+
*
|
|
2377
|
+
* @param {Callback<PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR> =} callback
|
|
2378
|
+
**/
|
|
2379
|
+
ethBlockBuilderIR: GenericStorageQuery<() => PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR>;
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* The first transaction and receipt of the ethereum block.
|
|
2383
|
+
*
|
|
2384
|
+
* These values are moved out of the `EthBlockBuilderIR` to avoid serializing and
|
|
2385
|
+
* deserializing them on every transaction. Instead, they are loaded when needed.
|
|
2386
|
+
*
|
|
2387
|
+
* @param {Callback<[Bytes, Bytes] | undefined> =} callback
|
|
2388
|
+
**/
|
|
2389
|
+
ethBlockBuilderFirstValues: GenericStorageQuery<() => [Bytes, Bytes] | undefined>;
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* Debugging settings that can be configured when DebugEnabled config is true.
|
|
2393
|
+
*
|
|
2394
|
+
* @param {Callback<PalletReviveDebugDebugSettings> =} callback
|
|
2395
|
+
**/
|
|
2396
|
+
debugSettingsOf: GenericStorageQuery<() => PalletReviveDebugDebugSettings>;
|
|
2397
|
+
|
|
2321
2398
|
/**
|
|
2322
2399
|
* Generic pallet storage query
|
|
2323
2400
|
**/
|