@dedot/chaintypes 0.214.0 → 0.215.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 +22 -9
- package/astar/errors.d.ts +43 -28
- package/astar/events.d.ts +127 -73
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +44 -35
- package/astar/runtime.d.ts +13 -8
- package/astar/tx.d.ts +244 -139
- package/astar/types.d.ts +8628 -8354
- package/astar/view-functions.d.ts +32 -1
- package/package.json +2 -2
package/astar/runtime.d.ts
CHANGED
|
@@ -35,11 +35,12 @@ import type {
|
|
|
35
35
|
CumulusPrimitivesCoreCollationInfo,
|
|
36
36
|
EvmBackendBasic,
|
|
37
37
|
FpEvmExecutionInfoV2,
|
|
38
|
+
EthereumTransactionEip7702AuthorizationListItem,
|
|
38
39
|
FpEvmExecutionInfoV2H160,
|
|
39
40
|
EthereumBlock,
|
|
40
|
-
|
|
41
|
+
EthereumReceiptReceiptV4,
|
|
41
42
|
FpRpcTransactionStatus,
|
|
42
|
-
|
|
43
|
+
EthereumTransactionTransactionV3,
|
|
43
44
|
PalletContractsPrimitivesContractResult,
|
|
44
45
|
PalletContractsPrimitivesContractResultResult,
|
|
45
46
|
PalletContractsPrimitivesCode,
|
|
@@ -161,7 +162,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
161
162
|
/**
|
|
162
163
|
* Whether it is legal to extend the chain, assuming the given block is the most
|
|
163
164
|
* recently included one as-of the relay parent that will be built against, and
|
|
164
|
-
* the given slot.
|
|
165
|
+
* the given relay chain slot.
|
|
165
166
|
*
|
|
166
167
|
* This should be consistent with the logic the runtime uses when validating blocks to
|
|
167
168
|
* avoid issues.
|
|
@@ -510,6 +511,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
510
511
|
* @param {U256 | undefined} nonce
|
|
511
512
|
* @param {boolean} estimate
|
|
512
513
|
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
514
|
+
* @param {Array<EthereumTransactionEip7702AuthorizationListItem> | undefined} authorization_list
|
|
513
515
|
**/
|
|
514
516
|
call: GenericRuntimeApiMethod<
|
|
515
517
|
(
|
|
@@ -523,6 +525,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
523
525
|
nonce: U256 | undefined,
|
|
524
526
|
estimate: boolean,
|
|
525
527
|
accessList?: Array<[H160, Array<H256>]> | undefined,
|
|
528
|
+
authorizationList?: Array<EthereumTransactionEip7702AuthorizationListItem> | undefined,
|
|
526
529
|
) => Promise<Result<FpEvmExecutionInfoV2, DispatchError>>
|
|
527
530
|
>;
|
|
528
531
|
|
|
@@ -538,6 +541,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
538
541
|
* @param {U256 | undefined} nonce
|
|
539
542
|
* @param {boolean} estimate
|
|
540
543
|
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
544
|
+
* @param {Array<EthereumTransactionEip7702AuthorizationListItem> | undefined} authorization_list
|
|
541
545
|
**/
|
|
542
546
|
create: GenericRuntimeApiMethod<
|
|
543
547
|
(
|
|
@@ -550,6 +554,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
550
554
|
nonce: U256 | undefined,
|
|
551
555
|
estimate: boolean,
|
|
552
556
|
accessList?: Array<[H160, Array<H256>]> | undefined,
|
|
557
|
+
authorizationList?: Array<EthereumTransactionEip7702AuthorizationListItem> | undefined,
|
|
553
558
|
) => Promise<Result<FpEvmExecutionInfoV2H160, DispatchError>>
|
|
554
559
|
>;
|
|
555
560
|
|
|
@@ -565,7 +570,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
565
570
|
*
|
|
566
571
|
* @callname: EthereumRuntimeRPCApi_current_receipts
|
|
567
572
|
**/
|
|
568
|
-
currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<
|
|
573
|
+
currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<EthereumReceiptReceiptV4> | undefined>>;
|
|
569
574
|
|
|
570
575
|
/**
|
|
571
576
|
* Return the current transaction status.
|
|
@@ -582,7 +587,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
582
587
|
() => Promise<
|
|
583
588
|
[
|
|
584
589
|
EthereumBlock | undefined,
|
|
585
|
-
Array<
|
|
590
|
+
Array<EthereumReceiptReceiptV4> | undefined,
|
|
586
591
|
Array<FpRpcTransactionStatus> | undefined,
|
|
587
592
|
]
|
|
588
593
|
>
|
|
@@ -595,7 +600,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
595
600
|
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
|
|
596
601
|
**/
|
|
597
602
|
extrinsicFilter: GenericRuntimeApiMethod<
|
|
598
|
-
(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<
|
|
603
|
+
(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV3>>
|
|
599
604
|
>;
|
|
600
605
|
|
|
601
606
|
/**
|
|
@@ -649,10 +654,10 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
649
654
|
/**
|
|
650
655
|
*
|
|
651
656
|
* @callname: ConvertTransactionRuntimeApi_convert_transaction
|
|
652
|
-
* @param {
|
|
657
|
+
* @param {EthereumTransactionTransactionV3} transaction
|
|
653
658
|
**/
|
|
654
659
|
convertTransaction: GenericRuntimeApiMethod<
|
|
655
|
-
(transaction:
|
|
660
|
+
(transaction: EthereumTransactionTransactionV3) => Promise<FpSelfContainedUncheckedExtrinsic>
|
|
656
661
|
>;
|
|
657
662
|
|
|
658
663
|
/**
|
package/astar/tx.d.ts
CHANGED
|
@@ -46,10 +46,10 @@ import type {
|
|
|
46
46
|
XcmV3WeightLimit,
|
|
47
47
|
StagingXcmExecutorAssetTransferTransferType,
|
|
48
48
|
XcmVersionedAssetId,
|
|
49
|
-
PalletXcAssetConfigMigrationStep,
|
|
50
49
|
XcmVersionedAsset,
|
|
51
50
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
52
|
-
|
|
51
|
+
EthereumTransactionEip7702AuthorizationListItem,
|
|
52
|
+
EthereumTransactionTransactionV3,
|
|
53
53
|
PalletContractsWasmDeterminism,
|
|
54
54
|
FrameSupportPreimagesBounded,
|
|
55
55
|
PalletDemocracyVoteAccountVote,
|
|
@@ -496,6 +496,76 @@ export interface ChainTx<
|
|
|
496
496
|
>
|
|
497
497
|
>;
|
|
498
498
|
|
|
499
|
+
/**
|
|
500
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
501
|
+
* May be called from any origin except `None`.
|
|
502
|
+
*
|
|
503
|
+
* This function first attempts to dispatch the `main` call.
|
|
504
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
505
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
506
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
507
|
+
*
|
|
508
|
+
* In the event of a fallback failure the whole call fails
|
|
509
|
+
* with the weights returned.
|
|
510
|
+
*
|
|
511
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
512
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
513
|
+
*
|
|
514
|
+
* ## Dispatch Logic
|
|
515
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
516
|
+
* applying any origin filters.
|
|
517
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
518
|
+
* `fallback` calls.
|
|
519
|
+
*
|
|
520
|
+
* ## Use Case
|
|
521
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
522
|
+
* or both.
|
|
523
|
+
*
|
|
524
|
+
* @param {AstarRuntimeRuntimeCallLike} main
|
|
525
|
+
* @param {AstarRuntimeRuntimeCallLike} fallback
|
|
526
|
+
**/
|
|
527
|
+
ifElse: GenericTxCall<
|
|
528
|
+
(
|
|
529
|
+
main: AstarRuntimeRuntimeCallLike,
|
|
530
|
+
fallback: AstarRuntimeRuntimeCallLike,
|
|
531
|
+
) => ChainSubmittableExtrinsic<
|
|
532
|
+
{
|
|
533
|
+
pallet: 'Utility';
|
|
534
|
+
palletCall: {
|
|
535
|
+
name: 'IfElse';
|
|
536
|
+
params: { main: AstarRuntimeRuntimeCallLike; fallback: AstarRuntimeRuntimeCallLike };
|
|
537
|
+
};
|
|
538
|
+
},
|
|
539
|
+
ChainKnownTypes
|
|
540
|
+
>
|
|
541
|
+
>;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Dispatches a function call with a provided origin.
|
|
545
|
+
*
|
|
546
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
547
|
+
*
|
|
548
|
+
* The dispatch origin for this call must be _Root_.
|
|
549
|
+
*
|
|
550
|
+
* @param {AstarRuntimeOriginCaller} asOrigin
|
|
551
|
+
* @param {AstarRuntimeRuntimeCallLike} call
|
|
552
|
+
**/
|
|
553
|
+
dispatchAsFallible: GenericTxCall<
|
|
554
|
+
(
|
|
555
|
+
asOrigin: AstarRuntimeOriginCaller,
|
|
556
|
+
call: AstarRuntimeRuntimeCallLike,
|
|
557
|
+
) => ChainSubmittableExtrinsic<
|
|
558
|
+
{
|
|
559
|
+
pallet: 'Utility';
|
|
560
|
+
palletCall: {
|
|
561
|
+
name: 'DispatchAsFallible';
|
|
562
|
+
params: { asOrigin: AstarRuntimeOriginCaller; call: AstarRuntimeRuntimeCallLike };
|
|
563
|
+
};
|
|
564
|
+
},
|
|
565
|
+
ChainKnownTypes
|
|
566
|
+
>
|
|
567
|
+
>;
|
|
568
|
+
|
|
499
569
|
/**
|
|
500
570
|
* Generic pallet tx call
|
|
501
571
|
**/
|
|
@@ -1405,6 +1475,42 @@ export interface ChainTx<
|
|
|
1405
1475
|
>
|
|
1406
1476
|
>;
|
|
1407
1477
|
|
|
1478
|
+
/**
|
|
1479
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
1480
|
+
*
|
|
1481
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
1482
|
+
* the multisig operation.
|
|
1483
|
+
*
|
|
1484
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
1485
|
+
*
|
|
1486
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
1487
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
1488
|
+
* multisig.
|
|
1489
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
1490
|
+
*
|
|
1491
|
+
* Emits `DepositPoked` if successful.
|
|
1492
|
+
*
|
|
1493
|
+
* @param {number} threshold
|
|
1494
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
1495
|
+
* @param {FixedBytes<32>} callHash
|
|
1496
|
+
**/
|
|
1497
|
+
pokeDeposit: GenericTxCall<
|
|
1498
|
+
(
|
|
1499
|
+
threshold: number,
|
|
1500
|
+
otherSignatories: Array<AccountId32Like>,
|
|
1501
|
+
callHash: FixedBytes<32>,
|
|
1502
|
+
) => ChainSubmittableExtrinsic<
|
|
1503
|
+
{
|
|
1504
|
+
pallet: 'Multisig';
|
|
1505
|
+
palletCall: {
|
|
1506
|
+
name: 'PokeDeposit';
|
|
1507
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
1508
|
+
};
|
|
1509
|
+
},
|
|
1510
|
+
ChainKnownTypes
|
|
1511
|
+
>
|
|
1512
|
+
>;
|
|
1513
|
+
|
|
1408
1514
|
/**
|
|
1409
1515
|
* Generic pallet tx call
|
|
1410
1516
|
**/
|
|
@@ -1584,7 +1690,7 @@ export interface ChainTx<
|
|
|
1584
1690
|
* `pure` with corresponding parameters.
|
|
1585
1691
|
*
|
|
1586
1692
|
* - `spawner`: The account that originally called `pure` to create this account.
|
|
1587
|
-
* - `index`: The disambiguation index originally passed to `
|
|
1693
|
+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
|
|
1588
1694
|
* - `proxy_type`: The proxy type originally passed to `pure`.
|
|
1589
1695
|
* - `height`: The height of the chain when the call to `pure` was processed.
|
|
1590
1696
|
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
|
|
@@ -1762,6 +1868,29 @@ export interface ChainTx<
|
|
|
1762
1868
|
>
|
|
1763
1869
|
>;
|
|
1764
1870
|
|
|
1871
|
+
/**
|
|
1872
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
1873
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
1874
|
+
*
|
|
1875
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1876
|
+
*
|
|
1877
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
1878
|
+
*
|
|
1879
|
+
* Emits `DepositPoked` if successful.
|
|
1880
|
+
*
|
|
1881
|
+
**/
|
|
1882
|
+
pokeDeposit: GenericTxCall<
|
|
1883
|
+
() => ChainSubmittableExtrinsic<
|
|
1884
|
+
{
|
|
1885
|
+
pallet: 'Proxy';
|
|
1886
|
+
palletCall: {
|
|
1887
|
+
name: 'PokeDeposit';
|
|
1888
|
+
};
|
|
1889
|
+
},
|
|
1890
|
+
ChainKnownTypes
|
|
1891
|
+
>
|
|
1892
|
+
>;
|
|
1893
|
+
|
|
1765
1894
|
/**
|
|
1766
1895
|
* Generic pallet tx call
|
|
1767
1896
|
**/
|
|
@@ -3270,6 +3399,9 @@ export interface ChainTx<
|
|
|
3270
3399
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
3271
3400
|
* asset.
|
|
3272
3401
|
*
|
|
3402
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
3403
|
+
* an account contains holds or freezes in place.
|
|
3404
|
+
*
|
|
3273
3405
|
* @param {bigint} id
|
|
3274
3406
|
**/
|
|
3275
3407
|
startDestroy: GenericTxCall<
|
|
@@ -4147,6 +4279,9 @@ export interface ChainTx<
|
|
|
4147
4279
|
* refunded.
|
|
4148
4280
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
4149
4281
|
*
|
|
4282
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
4283
|
+
* the asset account contains holds or freezes in place.
|
|
4284
|
+
*
|
|
4150
4285
|
* Emits `Refunded` event when successful.
|
|
4151
4286
|
*
|
|
4152
4287
|
* @param {bigint} id
|
|
@@ -4242,6 +4377,9 @@ export interface ChainTx<
|
|
|
4242
4377
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
4243
4378
|
* - `who`: The account to refund.
|
|
4244
4379
|
*
|
|
4380
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
4381
|
+
* the asset account contains holds or freezes in place.
|
|
4382
|
+
*
|
|
4245
4383
|
* Emits `Refunded` event when successful.
|
|
4246
4384
|
*
|
|
4247
4385
|
* @param {bigint} id
|
|
@@ -5017,6 +5155,8 @@ export interface ChainTx<
|
|
|
5017
5155
|
* @param {XcmVersionedLocation} beneficiary
|
|
5018
5156
|
* @param {XcmVersionedAssets} assets
|
|
5019
5157
|
* @param {number} feeAssetItem
|
|
5158
|
+
*
|
|
5159
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
5020
5160
|
**/
|
|
5021
5161
|
teleportAssets: GenericTxCall<
|
|
5022
5162
|
(
|
|
@@ -5077,6 +5217,8 @@ export interface ChainTx<
|
|
|
5077
5217
|
* @param {XcmVersionedLocation} beneficiary
|
|
5078
5218
|
* @param {XcmVersionedAssets} assets
|
|
5079
5219
|
* @param {number} feeAssetItem
|
|
5220
|
+
*
|
|
5221
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
5080
5222
|
**/
|
|
5081
5223
|
reserveTransferAssets: GenericTxCall<
|
|
5082
5224
|
(
|
|
@@ -5538,6 +5680,74 @@ export interface ChainTx<
|
|
|
5538
5680
|
>
|
|
5539
5681
|
>;
|
|
5540
5682
|
|
|
5683
|
+
/**
|
|
5684
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
5685
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
5686
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
5687
|
+
* `expiry` block number.
|
|
5688
|
+
*
|
|
5689
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
5690
|
+
* also under your control (like your account on another chain).
|
|
5691
|
+
*
|
|
5692
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
5693
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
5694
|
+
* `origin` in XCM programs executed on the local chain.
|
|
5695
|
+
*
|
|
5696
|
+
* @param {XcmVersionedLocation} aliaser
|
|
5697
|
+
* @param {bigint | undefined} expires
|
|
5698
|
+
**/
|
|
5699
|
+
addAuthorizedAlias: GenericTxCall<
|
|
5700
|
+
(
|
|
5701
|
+
aliaser: XcmVersionedLocation,
|
|
5702
|
+
expires: bigint | undefined,
|
|
5703
|
+
) => ChainSubmittableExtrinsic<
|
|
5704
|
+
{
|
|
5705
|
+
pallet: 'PolkadotXcm';
|
|
5706
|
+
palletCall: {
|
|
5707
|
+
name: 'AddAuthorizedAlias';
|
|
5708
|
+
params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
|
|
5709
|
+
};
|
|
5710
|
+
},
|
|
5711
|
+
ChainKnownTypes
|
|
5712
|
+
>
|
|
5713
|
+
>;
|
|
5714
|
+
|
|
5715
|
+
/**
|
|
5716
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
5717
|
+
* the local `origin` making this call.
|
|
5718
|
+
*
|
|
5719
|
+
* @param {XcmVersionedLocation} aliaser
|
|
5720
|
+
**/
|
|
5721
|
+
removeAuthorizedAlias: GenericTxCall<
|
|
5722
|
+
(aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
|
|
5723
|
+
{
|
|
5724
|
+
pallet: 'PolkadotXcm';
|
|
5725
|
+
palletCall: {
|
|
5726
|
+
name: 'RemoveAuthorizedAlias';
|
|
5727
|
+
params: { aliaser: XcmVersionedLocation };
|
|
5728
|
+
};
|
|
5729
|
+
},
|
|
5730
|
+
ChainKnownTypes
|
|
5731
|
+
>
|
|
5732
|
+
>;
|
|
5733
|
+
|
|
5734
|
+
/**
|
|
5735
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
5736
|
+
* making this call.
|
|
5737
|
+
*
|
|
5738
|
+
**/
|
|
5739
|
+
removeAllAuthorizedAliases: GenericTxCall<
|
|
5740
|
+
() => ChainSubmittableExtrinsic<
|
|
5741
|
+
{
|
|
5742
|
+
pallet: 'PolkadotXcm';
|
|
5743
|
+
palletCall: {
|
|
5744
|
+
name: 'RemoveAllAuthorizedAliases';
|
|
5745
|
+
};
|
|
5746
|
+
},
|
|
5747
|
+
ChainKnownTypes
|
|
5748
|
+
>
|
|
5749
|
+
>;
|
|
5750
|
+
|
|
5541
5751
|
/**
|
|
5542
5752
|
* Generic pallet tx call
|
|
5543
5753
|
**/
|
|
@@ -5664,23 +5874,6 @@ export interface ChainTx<
|
|
|
5664
5874
|
>
|
|
5665
5875
|
>;
|
|
5666
5876
|
|
|
5667
|
-
/**
|
|
5668
|
-
*
|
|
5669
|
-
* @param {PalletXcAssetConfigMigrationStep} migrationStep
|
|
5670
|
-
**/
|
|
5671
|
-
updateMigrationStep: GenericTxCall<
|
|
5672
|
-
(migrationStep: PalletXcAssetConfigMigrationStep) => ChainSubmittableExtrinsic<
|
|
5673
|
-
{
|
|
5674
|
-
pallet: 'XcAssetConfig';
|
|
5675
|
-
palletCall: {
|
|
5676
|
-
name: 'UpdateMigrationStep';
|
|
5677
|
-
params: { migrationStep: PalletXcAssetConfigMigrationStep };
|
|
5678
|
-
};
|
|
5679
|
-
},
|
|
5680
|
-
ChainKnownTypes
|
|
5681
|
-
>
|
|
5682
|
-
>;
|
|
5683
|
-
|
|
5684
5877
|
/**
|
|
5685
5878
|
* Generic pallet tx call
|
|
5686
5879
|
**/
|
|
@@ -6079,6 +6272,7 @@ export interface ChainTx<
|
|
|
6079
6272
|
* @param {U256 | undefined} maxPriorityFeePerGas
|
|
6080
6273
|
* @param {U256 | undefined} nonce
|
|
6081
6274
|
* @param {Array<[H160, Array<H256>]>} accessList
|
|
6275
|
+
* @param {Array<EthereumTransactionEip7702AuthorizationListItem>} authorizationList
|
|
6082
6276
|
**/
|
|
6083
6277
|
call: GenericTxCall<
|
|
6084
6278
|
(
|
|
@@ -6091,6 +6285,7 @@ export interface ChainTx<
|
|
|
6091
6285
|
maxPriorityFeePerGas: U256 | undefined,
|
|
6092
6286
|
nonce: U256 | undefined,
|
|
6093
6287
|
accessList: Array<[H160, Array<H256>]>,
|
|
6288
|
+
authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>,
|
|
6094
6289
|
) => ChainSubmittableExtrinsic<
|
|
6095
6290
|
{
|
|
6096
6291
|
pallet: 'Evm';
|
|
@@ -6106,6 +6301,7 @@ export interface ChainTx<
|
|
|
6106
6301
|
maxPriorityFeePerGas: U256 | undefined;
|
|
6107
6302
|
nonce: U256 | undefined;
|
|
6108
6303
|
accessList: Array<[H160, Array<H256>]>;
|
|
6304
|
+
authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>;
|
|
6109
6305
|
};
|
|
6110
6306
|
};
|
|
6111
6307
|
},
|
|
@@ -6125,6 +6321,7 @@ export interface ChainTx<
|
|
|
6125
6321
|
* @param {U256 | undefined} maxPriorityFeePerGas
|
|
6126
6322
|
* @param {U256 | undefined} nonce
|
|
6127
6323
|
* @param {Array<[H160, Array<H256>]>} accessList
|
|
6324
|
+
* @param {Array<EthereumTransactionEip7702AuthorizationListItem>} authorizationList
|
|
6128
6325
|
**/
|
|
6129
6326
|
create: GenericTxCall<
|
|
6130
6327
|
(
|
|
@@ -6136,6 +6333,7 @@ export interface ChainTx<
|
|
|
6136
6333
|
maxPriorityFeePerGas: U256 | undefined,
|
|
6137
6334
|
nonce: U256 | undefined,
|
|
6138
6335
|
accessList: Array<[H160, Array<H256>]>,
|
|
6336
|
+
authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>,
|
|
6139
6337
|
) => ChainSubmittableExtrinsic<
|
|
6140
6338
|
{
|
|
6141
6339
|
pallet: 'Evm';
|
|
@@ -6150,6 +6348,7 @@ export interface ChainTx<
|
|
|
6150
6348
|
maxPriorityFeePerGas: U256 | undefined;
|
|
6151
6349
|
nonce: U256 | undefined;
|
|
6152
6350
|
accessList: Array<[H160, Array<H256>]>;
|
|
6351
|
+
authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>;
|
|
6153
6352
|
};
|
|
6154
6353
|
};
|
|
6155
6354
|
},
|
|
@@ -6169,6 +6368,7 @@ export interface ChainTx<
|
|
|
6169
6368
|
* @param {U256 | undefined} maxPriorityFeePerGas
|
|
6170
6369
|
* @param {U256 | undefined} nonce
|
|
6171
6370
|
* @param {Array<[H160, Array<H256>]>} accessList
|
|
6371
|
+
* @param {Array<EthereumTransactionEip7702AuthorizationListItem>} authorizationList
|
|
6172
6372
|
**/
|
|
6173
6373
|
create2: GenericTxCall<
|
|
6174
6374
|
(
|
|
@@ -6181,6 +6381,7 @@ export interface ChainTx<
|
|
|
6181
6381
|
maxPriorityFeePerGas: U256 | undefined,
|
|
6182
6382
|
nonce: U256 | undefined,
|
|
6183
6383
|
accessList: Array<[H160, Array<H256>]>,
|
|
6384
|
+
authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>,
|
|
6184
6385
|
) => ChainSubmittableExtrinsic<
|
|
6185
6386
|
{
|
|
6186
6387
|
pallet: 'Evm';
|
|
@@ -6196,6 +6397,7 @@ export interface ChainTx<
|
|
|
6196
6397
|
maxPriorityFeePerGas: U256 | undefined;
|
|
6197
6398
|
nonce: U256 | undefined;
|
|
6198
6399
|
accessList: Array<[H160, Array<H256>]>;
|
|
6400
|
+
authorizationList: Array<EthereumTransactionEip7702AuthorizationListItem>;
|
|
6199
6401
|
};
|
|
6200
6402
|
};
|
|
6201
6403
|
},
|
|
@@ -6215,15 +6417,15 @@ export interface ChainTx<
|
|
|
6215
6417
|
/**
|
|
6216
6418
|
* Transact an Ethereum transaction.
|
|
6217
6419
|
*
|
|
6218
|
-
* @param {
|
|
6420
|
+
* @param {EthereumTransactionTransactionV3} transaction
|
|
6219
6421
|
**/
|
|
6220
6422
|
transact: GenericTxCall<
|
|
6221
|
-
(transaction:
|
|
6423
|
+
(transaction: EthereumTransactionTransactionV3) => ChainSubmittableExtrinsic<
|
|
6222
6424
|
{
|
|
6223
6425
|
pallet: 'Ethereum';
|
|
6224
6426
|
palletCall: {
|
|
6225
6427
|
name: 'Transact';
|
|
6226
|
-
params: { transaction:
|
|
6428
|
+
params: { transaction: EthereumTransactionTransactionV3 };
|
|
6227
6429
|
};
|
|
6228
6430
|
},
|
|
6229
6431
|
ChainKnownTypes
|
|
@@ -6275,6 +6477,8 @@ export interface ChainTx<
|
|
|
6275
6477
|
* @param {bigint} gasLimit
|
|
6276
6478
|
* @param {bigint | undefined} storageDepositLimit
|
|
6277
6479
|
* @param {BytesLike} data
|
|
6480
|
+
*
|
|
6481
|
+
* @deprecated 1D weight is used in this extrinsic, please migrate to `call`
|
|
6278
6482
|
**/
|
|
6279
6483
|
callOldWeight: GenericTxCall<
|
|
6280
6484
|
(
|
|
@@ -6310,6 +6514,8 @@ export interface ChainTx<
|
|
|
6310
6514
|
* @param {BytesLike} code
|
|
6311
6515
|
* @param {BytesLike} data
|
|
6312
6516
|
* @param {BytesLike} salt
|
|
6517
|
+
*
|
|
6518
|
+
* @deprecated 1D weight is used in this extrinsic, please migrate to `instantiate_with_code`
|
|
6313
6519
|
**/
|
|
6314
6520
|
instantiateWithCodeOldWeight: GenericTxCall<
|
|
6315
6521
|
(
|
|
@@ -6347,6 +6553,8 @@ export interface ChainTx<
|
|
|
6347
6553
|
* @param {H256} codeHash
|
|
6348
6554
|
* @param {BytesLike} data
|
|
6349
6555
|
* @param {BytesLike} salt
|
|
6556
|
+
*
|
|
6557
|
+
* @deprecated 1D weight is used in this extrinsic, please migrate to `instantiate`
|
|
6350
6558
|
**/
|
|
6351
6559
|
instantiateOldWeight: GenericTxCall<
|
|
6352
6560
|
(
|
|
@@ -6745,7 +6953,7 @@ export interface ChainTx<
|
|
|
6745
6953
|
>;
|
|
6746
6954
|
|
|
6747
6955
|
/**
|
|
6748
|
-
* Ensure that the
|
|
6956
|
+
* Ensure that the bulk of pre-images is upgraded.
|
|
6749
6957
|
*
|
|
6750
6958
|
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
6751
6959
|
*
|
|
@@ -6769,121 +6977,6 @@ export interface ChainTx<
|
|
|
6769
6977
|
**/
|
|
6770
6978
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
6771
6979
|
};
|
|
6772
|
-
/**
|
|
6773
|
-
* Pallet `Sudo`'s transaction calls
|
|
6774
|
-
**/
|
|
6775
|
-
sudo: {
|
|
6776
|
-
/**
|
|
6777
|
-
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
6778
|
-
*
|
|
6779
|
-
* @param {AstarRuntimeRuntimeCallLike} call
|
|
6780
|
-
**/
|
|
6781
|
-
sudo: GenericTxCall<
|
|
6782
|
-
(call: AstarRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
|
|
6783
|
-
{
|
|
6784
|
-
pallet: 'Sudo';
|
|
6785
|
-
palletCall: {
|
|
6786
|
-
name: 'Sudo';
|
|
6787
|
-
params: { call: AstarRuntimeRuntimeCallLike };
|
|
6788
|
-
};
|
|
6789
|
-
},
|
|
6790
|
-
ChainKnownTypes
|
|
6791
|
-
>
|
|
6792
|
-
>;
|
|
6793
|
-
|
|
6794
|
-
/**
|
|
6795
|
-
* Authenticates the sudo key and dispatches a function call with `Root` origin.
|
|
6796
|
-
* This function does not check the weight of the call, and instead allows the
|
|
6797
|
-
* Sudo user to specify the weight of the call.
|
|
6798
|
-
*
|
|
6799
|
-
* The dispatch origin for this call must be _Signed_.
|
|
6800
|
-
*
|
|
6801
|
-
* @param {AstarRuntimeRuntimeCallLike} call
|
|
6802
|
-
* @param {SpWeightsWeightV2Weight} weight
|
|
6803
|
-
**/
|
|
6804
|
-
sudoUncheckedWeight: GenericTxCall<
|
|
6805
|
-
(
|
|
6806
|
-
call: AstarRuntimeRuntimeCallLike,
|
|
6807
|
-
weight: SpWeightsWeightV2Weight,
|
|
6808
|
-
) => ChainSubmittableExtrinsic<
|
|
6809
|
-
{
|
|
6810
|
-
pallet: 'Sudo';
|
|
6811
|
-
palletCall: {
|
|
6812
|
-
name: 'SudoUncheckedWeight';
|
|
6813
|
-
params: { call: AstarRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight };
|
|
6814
|
-
};
|
|
6815
|
-
},
|
|
6816
|
-
ChainKnownTypes
|
|
6817
|
-
>
|
|
6818
|
-
>;
|
|
6819
|
-
|
|
6820
|
-
/**
|
|
6821
|
-
* Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
|
|
6822
|
-
* key.
|
|
6823
|
-
*
|
|
6824
|
-
* @param {MultiAddressLike} new_
|
|
6825
|
-
**/
|
|
6826
|
-
setKey: GenericTxCall<
|
|
6827
|
-
(new_: MultiAddressLike) => ChainSubmittableExtrinsic<
|
|
6828
|
-
{
|
|
6829
|
-
pallet: 'Sudo';
|
|
6830
|
-
palletCall: {
|
|
6831
|
-
name: 'SetKey';
|
|
6832
|
-
params: { new: MultiAddressLike };
|
|
6833
|
-
};
|
|
6834
|
-
},
|
|
6835
|
-
ChainKnownTypes
|
|
6836
|
-
>
|
|
6837
|
-
>;
|
|
6838
|
-
|
|
6839
|
-
/**
|
|
6840
|
-
* Authenticates the sudo key and dispatches a function call with `Signed` origin from
|
|
6841
|
-
* a given account.
|
|
6842
|
-
*
|
|
6843
|
-
* The dispatch origin for this call must be _Signed_.
|
|
6844
|
-
*
|
|
6845
|
-
* @param {MultiAddressLike} who
|
|
6846
|
-
* @param {AstarRuntimeRuntimeCallLike} call
|
|
6847
|
-
**/
|
|
6848
|
-
sudoAs: GenericTxCall<
|
|
6849
|
-
(
|
|
6850
|
-
who: MultiAddressLike,
|
|
6851
|
-
call: AstarRuntimeRuntimeCallLike,
|
|
6852
|
-
) => ChainSubmittableExtrinsic<
|
|
6853
|
-
{
|
|
6854
|
-
pallet: 'Sudo';
|
|
6855
|
-
palletCall: {
|
|
6856
|
-
name: 'SudoAs';
|
|
6857
|
-
params: { who: MultiAddressLike; call: AstarRuntimeRuntimeCallLike };
|
|
6858
|
-
};
|
|
6859
|
-
},
|
|
6860
|
-
ChainKnownTypes
|
|
6861
|
-
>
|
|
6862
|
-
>;
|
|
6863
|
-
|
|
6864
|
-
/**
|
|
6865
|
-
* Permanently removes the sudo key.
|
|
6866
|
-
*
|
|
6867
|
-
* **This cannot be un-done.**
|
|
6868
|
-
*
|
|
6869
|
-
**/
|
|
6870
|
-
removeKey: GenericTxCall<
|
|
6871
|
-
() => ChainSubmittableExtrinsic<
|
|
6872
|
-
{
|
|
6873
|
-
pallet: 'Sudo';
|
|
6874
|
-
palletCall: {
|
|
6875
|
-
name: 'RemoveKey';
|
|
6876
|
-
};
|
|
6877
|
-
},
|
|
6878
|
-
ChainKnownTypes
|
|
6879
|
-
>
|
|
6880
|
-
>;
|
|
6881
|
-
|
|
6882
|
-
/**
|
|
6883
|
-
* Generic pallet tx call
|
|
6884
|
-
**/
|
|
6885
|
-
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
6886
|
-
};
|
|
6887
6980
|
/**
|
|
6888
6981
|
* Pallet `CouncilMembership`'s transaction calls
|
|
6889
6982
|
**/
|
|
@@ -8807,6 +8900,8 @@ export interface ChainTx<
|
|
|
8807
8900
|
*
|
|
8808
8901
|
* @param {bigint} value
|
|
8809
8902
|
* @param {MultiAddressLike} beneficiary
|
|
8903
|
+
*
|
|
8904
|
+
* @deprecated `propose_spend` will be removed in February 2024. Use `spend` instead.
|
|
8810
8905
|
**/
|
|
8811
8906
|
proposeSpend: GenericTxCall<
|
|
8812
8907
|
(
|
|
@@ -8842,6 +8937,8 @@ export interface ChainTx<
|
|
|
8842
8937
|
* Emits [`Event::Rejected`] if successful.
|
|
8843
8938
|
*
|
|
8844
8939
|
* @param {number} proposalId
|
|
8940
|
+
*
|
|
8941
|
+
* @deprecated `reject_proposal` will be removed in February 2024. Use `spend` instead.
|
|
8845
8942
|
**/
|
|
8846
8943
|
rejectProposal: GenericTxCall<
|
|
8847
8944
|
(proposalId: number) => ChainSubmittableExtrinsic<
|
|
@@ -8876,6 +8973,8 @@ export interface ChainTx<
|
|
|
8876
8973
|
* No events are emitted from this dispatch.
|
|
8877
8974
|
*
|
|
8878
8975
|
* @param {number} proposalId
|
|
8976
|
+
*
|
|
8977
|
+
* @deprecated `approve_proposal` will be removed in February 2024. Use `spend` instead.
|
|
8879
8978
|
**/
|
|
8880
8979
|
approveProposal: GenericTxCall<
|
|
8881
8980
|
(proposalId: number) => ChainSubmittableExtrinsic<
|
|
@@ -8919,6 +9018,8 @@ export interface ChainTx<
|
|
|
8919
9018
|
*
|
|
8920
9019
|
* @param {bigint} value
|
|
8921
9020
|
* @param {MultiAddressLike} beneficiary
|
|
9021
|
+
*
|
|
9022
|
+
* @deprecated `propose_spend` will be removed in February 2024. Use `spend` instead.
|
|
8922
9023
|
**/
|
|
8923
9024
|
proposeSpend: GenericTxCall<
|
|
8924
9025
|
(
|
|
@@ -8954,6 +9055,8 @@ export interface ChainTx<
|
|
|
8954
9055
|
* Emits [`Event::Rejected`] if successful.
|
|
8955
9056
|
*
|
|
8956
9057
|
* @param {number} proposalId
|
|
9058
|
+
*
|
|
9059
|
+
* @deprecated `reject_proposal` will be removed in February 2024. Use `spend` instead.
|
|
8957
9060
|
**/
|
|
8958
9061
|
rejectProposal: GenericTxCall<
|
|
8959
9062
|
(proposalId: number) => ChainSubmittableExtrinsic<
|
|
@@ -8988,6 +9091,8 @@ export interface ChainTx<
|
|
|
8988
9091
|
* No events are emitted from this dispatch.
|
|
8989
9092
|
*
|
|
8990
9093
|
* @param {number} proposalId
|
|
9094
|
+
*
|
|
9095
|
+
* @deprecated `approve_proposal` will be removed in February 2024. Use `spend` instead.
|
|
8991
9096
|
**/
|
|
8992
9097
|
approveProposal: GenericTxCall<
|
|
8993
9098
|
(proposalId: number) => ChainSubmittableExtrinsic<
|