@dedot/chaintypes 0.98.0 → 0.99.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/package.json +2 -2
- package/substrate/consts.d.ts +96 -11
- package/substrate/errors.d.ts +276 -2
- package/substrate/events.d.ts +416 -97
- package/substrate/query.d.ts +163 -19
- package/substrate/runtime.d.ts +134 -19
- package/substrate/tx.d.ts +699 -29
- package/substrate/types.d.ts +1380 -218
package/substrate/tx.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ import type {
|
|
|
111
111
|
PalletMixnetRegistration,
|
|
112
112
|
SpMixnetAppSignature,
|
|
113
113
|
KitchensinkRuntimeRuntimeParameters,
|
|
114
|
+
PalletMetaTxMetaTx,
|
|
114
115
|
} from './types.js';
|
|
115
116
|
|
|
116
117
|
export type ChainSubmittableExtrinsic<
|
|
@@ -565,6 +566,78 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
565
566
|
>
|
|
566
567
|
>;
|
|
567
568
|
|
|
569
|
+
/**
|
|
570
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
571
|
+
* May be called from any origin except `None`.
|
|
572
|
+
*
|
|
573
|
+
* This function first attempts to dispatch the `main` call.
|
|
574
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
575
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
576
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
577
|
+
*
|
|
578
|
+
* In the event of a fallback failure the whole call fails
|
|
579
|
+
* with the weights returned.
|
|
580
|
+
*
|
|
581
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
582
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
583
|
+
*
|
|
584
|
+
* ## Dispatch Logic
|
|
585
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
586
|
+
* applying any origin filters.
|
|
587
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
588
|
+
* `fallback` calls.
|
|
589
|
+
*
|
|
590
|
+
* ## Use Case
|
|
591
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
592
|
+
* or both.
|
|
593
|
+
*
|
|
594
|
+
* @param {KitchensinkRuntimeRuntimeCallLike} main
|
|
595
|
+
* @param {KitchensinkRuntimeRuntimeCallLike} fallback
|
|
596
|
+
**/
|
|
597
|
+
ifElse: GenericTxCall<
|
|
598
|
+
Rv,
|
|
599
|
+
(
|
|
600
|
+
main: KitchensinkRuntimeRuntimeCallLike,
|
|
601
|
+
fallback: KitchensinkRuntimeRuntimeCallLike,
|
|
602
|
+
) => ChainSubmittableExtrinsic<
|
|
603
|
+
Rv,
|
|
604
|
+
{
|
|
605
|
+
pallet: 'Utility';
|
|
606
|
+
palletCall: {
|
|
607
|
+
name: 'IfElse';
|
|
608
|
+
params: { main: KitchensinkRuntimeRuntimeCallLike; fallback: KitchensinkRuntimeRuntimeCallLike };
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
>
|
|
612
|
+
>;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Dispatches a function call with a provided origin.
|
|
616
|
+
*
|
|
617
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
618
|
+
*
|
|
619
|
+
* The dispatch origin for this call must be _Root_.
|
|
620
|
+
*
|
|
621
|
+
* @param {KitchensinkRuntimeOriginCaller} asOrigin
|
|
622
|
+
* @param {KitchensinkRuntimeRuntimeCallLike} call
|
|
623
|
+
**/
|
|
624
|
+
dispatchAsFallible: GenericTxCall<
|
|
625
|
+
Rv,
|
|
626
|
+
(
|
|
627
|
+
asOrigin: KitchensinkRuntimeOriginCaller,
|
|
628
|
+
call: KitchensinkRuntimeRuntimeCallLike,
|
|
629
|
+
) => ChainSubmittableExtrinsic<
|
|
630
|
+
Rv,
|
|
631
|
+
{
|
|
632
|
+
pallet: 'Utility';
|
|
633
|
+
palletCall: {
|
|
634
|
+
name: 'DispatchAsFallible';
|
|
635
|
+
params: { asOrigin: KitchensinkRuntimeOriginCaller; call: KitchensinkRuntimeRuntimeCallLike };
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
>
|
|
639
|
+
>;
|
|
640
|
+
|
|
568
641
|
/**
|
|
569
642
|
* Generic pallet tx call
|
|
570
643
|
**/
|
|
@@ -868,6 +941,34 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
868
941
|
>
|
|
869
942
|
>;
|
|
870
943
|
|
|
944
|
+
/**
|
|
945
|
+
* Poke the deposit reserved for an index.
|
|
946
|
+
*
|
|
947
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
|
948
|
+
* non-frozen account `index`.
|
|
949
|
+
*
|
|
950
|
+
* The transaction fees is waived if the deposit is changed after poking/reconsideration.
|
|
951
|
+
*
|
|
952
|
+
* - `index`: the index whose deposit is to be poked/reconsidered.
|
|
953
|
+
*
|
|
954
|
+
* Emits `DepositPoked` if successful.
|
|
955
|
+
*
|
|
956
|
+
* @param {number} index
|
|
957
|
+
**/
|
|
958
|
+
pokeDeposit: GenericTxCall<
|
|
959
|
+
Rv,
|
|
960
|
+
(index: number) => ChainSubmittableExtrinsic<
|
|
961
|
+
Rv,
|
|
962
|
+
{
|
|
963
|
+
pallet: 'Indices';
|
|
964
|
+
palletCall: {
|
|
965
|
+
name: 'PokeDeposit';
|
|
966
|
+
params: { index: number };
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
>
|
|
970
|
+
>;
|
|
971
|
+
|
|
871
972
|
/**
|
|
872
973
|
* Generic pallet tx call
|
|
873
974
|
**/
|
|
@@ -2214,6 +2315,76 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2214
2315
|
>
|
|
2215
2316
|
>;
|
|
2216
2317
|
|
|
2318
|
+
/**
|
|
2319
|
+
* Removes the legacy Staking locks if they exist.
|
|
2320
|
+
*
|
|
2321
|
+
* This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
|
|
2322
|
+
* hold on it if needed. If all stake cannot be held, the best effort is made to hold as
|
|
2323
|
+
* much as possible. The remaining stake is forced withdrawn from the ledger.
|
|
2324
|
+
*
|
|
2325
|
+
* The fee is waived if the migration is successful.
|
|
2326
|
+
*
|
|
2327
|
+
* @param {AccountId32Like} stash
|
|
2328
|
+
**/
|
|
2329
|
+
migrateCurrency: GenericTxCall<
|
|
2330
|
+
Rv,
|
|
2331
|
+
(stash: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
2332
|
+
Rv,
|
|
2333
|
+
{
|
|
2334
|
+
pallet: 'Staking';
|
|
2335
|
+
palletCall: {
|
|
2336
|
+
name: 'MigrateCurrency';
|
|
2337
|
+
params: { stash: AccountId32Like };
|
|
2338
|
+
};
|
|
2339
|
+
}
|
|
2340
|
+
>
|
|
2341
|
+
>;
|
|
2342
|
+
|
|
2343
|
+
/**
|
|
2344
|
+
* This function allows governance to manually slash a validator and is a
|
|
2345
|
+
* **fallback mechanism**.
|
|
2346
|
+
*
|
|
2347
|
+
* The dispatch origin must be `T::AdminOrigin`.
|
|
2348
|
+
*
|
|
2349
|
+
* ## Parameters
|
|
2350
|
+
* - `validator_stash` - The stash account of the validator to slash.
|
|
2351
|
+
* - `era` - The era in which the validator was in the active set.
|
|
2352
|
+
* - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
|
|
2353
|
+
*
|
|
2354
|
+
* ## Behavior
|
|
2355
|
+
*
|
|
2356
|
+
* The slash will be applied using the standard slashing mechanics, respecting the
|
|
2357
|
+
* configured `SlashDeferDuration`.
|
|
2358
|
+
*
|
|
2359
|
+
* This means:
|
|
2360
|
+
* - If the validator was already slashed by a higher percentage for the same era, this
|
|
2361
|
+
* slash will have no additional effect.
|
|
2362
|
+
* - If the validator was previously slashed by a lower percentage, only the difference
|
|
2363
|
+
* will be applied.
|
|
2364
|
+
* - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
|
|
2365
|
+
*
|
|
2366
|
+
* @param {AccountId32Like} validatorStash
|
|
2367
|
+
* @param {number} era
|
|
2368
|
+
* @param {Perbill} slashFraction
|
|
2369
|
+
**/
|
|
2370
|
+
manualSlash: GenericTxCall<
|
|
2371
|
+
Rv,
|
|
2372
|
+
(
|
|
2373
|
+
validatorStash: AccountId32Like,
|
|
2374
|
+
era: number,
|
|
2375
|
+
slashFraction: Perbill,
|
|
2376
|
+
) => ChainSubmittableExtrinsic<
|
|
2377
|
+
Rv,
|
|
2378
|
+
{
|
|
2379
|
+
pallet: 'Staking';
|
|
2380
|
+
palletCall: {
|
|
2381
|
+
name: 'ManualSlash';
|
|
2382
|
+
params: { validatorStash: AccountId32Like; era: number; slashFraction: Perbill };
|
|
2383
|
+
};
|
|
2384
|
+
}
|
|
2385
|
+
>
|
|
2386
|
+
>;
|
|
2387
|
+
|
|
2217
2388
|
/**
|
|
2218
2389
|
* Generic pallet tx call
|
|
2219
2390
|
**/
|
|
@@ -6074,7 +6245,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6074
6245
|
>;
|
|
6075
6246
|
|
|
6076
6247
|
/**
|
|
6077
|
-
* Allow ROOT to bypass the recovery process and set
|
|
6248
|
+
* Allow ROOT to bypass the recovery process and set a rescuer account
|
|
6078
6249
|
* for a lost account directly.
|
|
6079
6250
|
*
|
|
6080
6251
|
* The dispatch origin for this call must be _ROOT_.
|
|
@@ -7041,7 +7212,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7041
7212
|
>;
|
|
7042
7213
|
|
|
7043
7214
|
/**
|
|
7044
|
-
* Ensure that the
|
|
7215
|
+
* Ensure that the bulk of pre-images is upgraded.
|
|
7045
7216
|
*
|
|
7046
7217
|
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
7047
7218
|
*
|
|
@@ -7428,6 +7599,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7428
7599
|
>
|
|
7429
7600
|
>;
|
|
7430
7601
|
|
|
7602
|
+
/**
|
|
7603
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
7604
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
7605
|
+
*
|
|
7606
|
+
* The dispatch origin for this call must be _Signed_.
|
|
7607
|
+
*
|
|
7608
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
7609
|
+
*
|
|
7610
|
+
* Emits `DepositPoked` if successful.
|
|
7611
|
+
*
|
|
7612
|
+
**/
|
|
7613
|
+
pokeDeposit: GenericTxCall<
|
|
7614
|
+
Rv,
|
|
7615
|
+
() => ChainSubmittableExtrinsic<
|
|
7616
|
+
Rv,
|
|
7617
|
+
{
|
|
7618
|
+
pallet: 'Proxy';
|
|
7619
|
+
palletCall: {
|
|
7620
|
+
name: 'PokeDeposit';
|
|
7621
|
+
};
|
|
7622
|
+
}
|
|
7623
|
+
>
|
|
7624
|
+
>;
|
|
7625
|
+
|
|
7431
7626
|
/**
|
|
7432
7627
|
* Generic pallet tx call
|
|
7433
7628
|
**/
|
|
@@ -7660,6 +7855,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7660
7855
|
>
|
|
7661
7856
|
>;
|
|
7662
7857
|
|
|
7858
|
+
/**
|
|
7859
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
7860
|
+
*
|
|
7861
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
7862
|
+
* the multisig operation.
|
|
7863
|
+
*
|
|
7864
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
7865
|
+
*
|
|
7866
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
7867
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
7868
|
+
* multisig.
|
|
7869
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
7870
|
+
*
|
|
7871
|
+
* Emits `DepositPoked` if successful.
|
|
7872
|
+
*
|
|
7873
|
+
* @param {number} threshold
|
|
7874
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
7875
|
+
* @param {FixedBytes<32>} callHash
|
|
7876
|
+
**/
|
|
7877
|
+
pokeDeposit: GenericTxCall<
|
|
7878
|
+
Rv,
|
|
7879
|
+
(
|
|
7880
|
+
threshold: number,
|
|
7881
|
+
otherSignatories: Array<AccountId32Like>,
|
|
7882
|
+
callHash: FixedBytes<32>,
|
|
7883
|
+
) => ChainSubmittableExtrinsic<
|
|
7884
|
+
Rv,
|
|
7885
|
+
{
|
|
7886
|
+
pallet: 'Multisig';
|
|
7887
|
+
palletCall: {
|
|
7888
|
+
name: 'PokeDeposit';
|
|
7889
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
7890
|
+
};
|
|
7891
|
+
}
|
|
7892
|
+
>
|
|
7893
|
+
>;
|
|
7894
|
+
|
|
7663
7895
|
/**
|
|
7664
7896
|
* Generic pallet tx call
|
|
7665
7897
|
**/
|
|
@@ -8303,6 +8535,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8303
8535
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
8304
8536
|
* asset.
|
|
8305
8537
|
*
|
|
8538
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
8539
|
+
* an account contains holds or freezes in place.
|
|
8540
|
+
*
|
|
8306
8541
|
* @param {number} id
|
|
8307
8542
|
**/
|
|
8308
8543
|
startDestroy: GenericTxCall<
|
|
@@ -9205,6 +9440,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9205
9440
|
* refunded.
|
|
9206
9441
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
9207
9442
|
*
|
|
9443
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
9444
|
+
* the asset account contains holds or freezes in place.
|
|
9445
|
+
*
|
|
9208
9446
|
* Emits `Refunded` event when successful.
|
|
9209
9447
|
*
|
|
9210
9448
|
* @param {number} id
|
|
@@ -9303,6 +9541,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9303
9541
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
9304
9542
|
* - `who`: The account to refund.
|
|
9305
9543
|
*
|
|
9544
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
9545
|
+
* the asset account contains holds or freezes in place.
|
|
9546
|
+
*
|
|
9306
9547
|
* Emits `Refunded` event when successful.
|
|
9307
9548
|
*
|
|
9308
9549
|
* @param {number} id
|
|
@@ -9505,6 +9746,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9505
9746
|
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
9506
9747
|
* asset.
|
|
9507
9748
|
*
|
|
9749
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
9750
|
+
* an account contains holds or freezes in place.
|
|
9751
|
+
*
|
|
9508
9752
|
* @param {number} id
|
|
9509
9753
|
**/
|
|
9510
9754
|
startDestroy: GenericTxCall<
|
|
@@ -10407,6 +10651,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10407
10651
|
* refunded.
|
|
10408
10652
|
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
10409
10653
|
*
|
|
10654
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
10655
|
+
* the asset account contains holds or freezes in place.
|
|
10656
|
+
*
|
|
10410
10657
|
* Emits `Refunded` event when successful.
|
|
10411
10658
|
*
|
|
10412
10659
|
* @param {number} id
|
|
@@ -10505,6 +10752,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10505
10752
|
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
10506
10753
|
* - `who`: The account to refund.
|
|
10507
10754
|
*
|
|
10755
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
10756
|
+
* the asset account contains holds or freezes in place.
|
|
10757
|
+
*
|
|
10508
10758
|
* Emits `Refunded` event when successful.
|
|
10509
10759
|
*
|
|
10510
10760
|
* @param {number} id
|
|
@@ -14061,11 +14311,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
14061
14311
|
>;
|
|
14062
14312
|
|
|
14063
14313
|
/**
|
|
14064
|
-
* Introduce an already-ranked individual of the collective into this pallet.
|
|
14065
|
-
* still be zero.
|
|
14314
|
+
* Introduce an already-ranked individual of the collective into this pallet.
|
|
14066
14315
|
*
|
|
14067
|
-
* This resets `last_proof` to the current block and
|
|
14068
|
-
* thereby delaying any automatic demotion but
|
|
14316
|
+
* The rank may still be zero. This resets `last_proof` to the current block and
|
|
14317
|
+
* `last_promotion` will be set to zero, thereby delaying any automatic demotion but
|
|
14318
|
+
* allowing immediate promotion.
|
|
14069
14319
|
*
|
|
14070
14320
|
* - `origin`: A signed origin of a ranked, but not tracked, account.
|
|
14071
14321
|
*
|
|
@@ -14083,6 +14333,34 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
14083
14333
|
>
|
|
14084
14334
|
>;
|
|
14085
14335
|
|
|
14336
|
+
/**
|
|
14337
|
+
* Introduce an already-ranked individual of the collective into this pallet.
|
|
14338
|
+
*
|
|
14339
|
+
* The rank may still be zero. Can be called by anyone on any collective member - including
|
|
14340
|
+
* the sender.
|
|
14341
|
+
*
|
|
14342
|
+
* This resets `last_proof` to the current block and `last_promotion` will be set to zero,
|
|
14343
|
+
* thereby delaying any automatic demotion but allowing immediate promotion.
|
|
14344
|
+
*
|
|
14345
|
+
* - `origin`: A signed origin of a ranked, but not tracked, account.
|
|
14346
|
+
* - `who`: The account ID of the collective member to be inducted.
|
|
14347
|
+
*
|
|
14348
|
+
* @param {AccountId32Like} who
|
|
14349
|
+
**/
|
|
14350
|
+
importMember: GenericTxCall<
|
|
14351
|
+
Rv,
|
|
14352
|
+
(who: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
14353
|
+
Rv,
|
|
14354
|
+
{
|
|
14355
|
+
pallet: 'CoreFellowship';
|
|
14356
|
+
palletCall: {
|
|
14357
|
+
name: 'ImportMember';
|
|
14358
|
+
params: { who: AccountId32Like };
|
|
14359
|
+
};
|
|
14360
|
+
}
|
|
14361
|
+
>
|
|
14362
|
+
>;
|
|
14363
|
+
|
|
14086
14364
|
/**
|
|
14087
14365
|
* Set the parameters partially.
|
|
14088
14366
|
*
|
|
@@ -16111,8 +16389,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
16111
16389
|
**/
|
|
16112
16390
|
nominationPools: {
|
|
16113
16391
|
/**
|
|
16114
|
-
* Stake funds with a pool. The amount to bond is
|
|
16115
|
-
*
|
|
16392
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
16393
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
16394
|
+
* increases the pool's bond.
|
|
16116
16395
|
*
|
|
16117
16396
|
* The method of transferring the amount to the pool account is determined by
|
|
16118
16397
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
@@ -16410,13 +16689,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
16410
16689
|
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
|
16411
16690
|
* root role.
|
|
16412
16691
|
*
|
|
16413
|
-
* This directly
|
|
16414
|
-
*
|
|
16692
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
16693
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
16415
16694
|
*
|
|
16416
16695
|
* # Note
|
|
16417
16696
|
*
|
|
16418
|
-
* In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to
|
|
16419
|
-
* at least `depositor_min_bond` in the pool to start nominating.
|
|
16697
|
+
* In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
|
|
16698
|
+
* have at least `depositor_min_bond` in the pool to start nominating.
|
|
16420
16699
|
*
|
|
16421
16700
|
* @param {number} poolId
|
|
16422
16701
|
* @param {Array<AccountId32Like>} validators
|
|
@@ -16588,6 +16867,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
16588
16867
|
* The dispatch origin of this call can be signed by the pool nominator or the pool
|
|
16589
16868
|
* root role, same as [`Pallet::nominate`].
|
|
16590
16869
|
*
|
|
16870
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
16871
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
16872
|
+
*
|
|
16591
16873
|
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
16592
16874
|
* account).
|
|
16593
16875
|
*
|
|
@@ -16596,9 +16878,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
16596
16878
|
* are unable to unbond.
|
|
16597
16879
|
*
|
|
16598
16880
|
* # Conditions for permissioned dispatch:
|
|
16599
|
-
* * The caller
|
|
16600
|
-
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
|
16601
|
-
* account.
|
|
16881
|
+
* * The caller is the pool's nominator or root.
|
|
16602
16882
|
*
|
|
16603
16883
|
* @param {number} poolId
|
|
16604
16884
|
**/
|
|
@@ -16777,9 +17057,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
16777
17057
|
/**
|
|
16778
17058
|
* Claim pending commission.
|
|
16779
17059
|
*
|
|
16780
|
-
* The
|
|
16781
|
-
*
|
|
16782
|
-
*
|
|
17060
|
+
* The `root` role of the pool is _always_ allowed to claim the pool's commission.
|
|
17061
|
+
*
|
|
17062
|
+
* If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
|
|
17063
|
+
* trigger the process of claiming the pool's commission.
|
|
17064
|
+
*
|
|
17065
|
+
* If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
|
|
17066
|
+
* accounts
|
|
17067
|
+
* * `acc`, and
|
|
17068
|
+
* * the pool's root account
|
|
17069
|
+
*
|
|
17070
|
+
* may call this extrinsic on behalf of the pool.
|
|
17071
|
+
*
|
|
17072
|
+
* Pending commissions are paid out and added to the total claimed commission.
|
|
17073
|
+
* The total pending commission is reset to zero.
|
|
16783
17074
|
*
|
|
16784
17075
|
* @param {number} poolId
|
|
16785
17076
|
**/
|
|
@@ -16854,8 +17145,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
16854
17145
|
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
|
|
16855
17146
|
* [`adapter::StakeStrategyType::Delegate`].
|
|
16856
17147
|
*
|
|
16857
|
-
*
|
|
16858
|
-
*
|
|
17148
|
+
* The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
|
|
17149
|
+
* This call can be dispatched permissionlessly (i.e. by any account). If the execution
|
|
17150
|
+
* is successful, fee is refunded and caller may be rewarded with a part of the slash
|
|
17151
|
+
* based on the [`crate::pallet::Config::StakeAdapter`] configuration.
|
|
16859
17152
|
*
|
|
16860
17153
|
* @param {MultiAddressLike} memberAccount
|
|
16861
17154
|
**/
|
|
@@ -18267,6 +18560,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
18267
18560
|
/**
|
|
18268
18561
|
* Reserve a core for a workload.
|
|
18269
18562
|
*
|
|
18563
|
+
* The workload will be given a reservation, but two sale period boundaries must pass
|
|
18564
|
+
* before the core is actually assigned.
|
|
18565
|
+
*
|
|
18270
18566
|
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
18271
18567
|
* - `workload`: The workload which should be permanently placed on a core.
|
|
18272
18568
|
*
|
|
@@ -18839,6 +19135,84 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
18839
19135
|
>
|
|
18840
19136
|
>;
|
|
18841
19137
|
|
|
19138
|
+
/**
|
|
19139
|
+
* Reserve a core for a workload immediately.
|
|
19140
|
+
*
|
|
19141
|
+
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
19142
|
+
* - `workload`: The workload which should be permanently placed on a core starting
|
|
19143
|
+
* immediately.
|
|
19144
|
+
* - `core`: The core to which the assignment should be made until the reservation takes
|
|
19145
|
+
* effect. It is left to the caller to either add this new core or reassign any other
|
|
19146
|
+
* tasks to this existing core.
|
|
19147
|
+
*
|
|
19148
|
+
* This reserves the workload and then injects the workload into the Workplan for the next
|
|
19149
|
+
* two sale periods. This overwrites any existing assignments for this core at the start of
|
|
19150
|
+
* the next sale period.
|
|
19151
|
+
*
|
|
19152
|
+
* @param {Array<PalletBrokerScheduleItem>} workload
|
|
19153
|
+
* @param {number} core
|
|
19154
|
+
**/
|
|
19155
|
+
forceReserve: GenericTxCall<
|
|
19156
|
+
Rv,
|
|
19157
|
+
(
|
|
19158
|
+
workload: Array<PalletBrokerScheduleItem>,
|
|
19159
|
+
core: number,
|
|
19160
|
+
) => ChainSubmittableExtrinsic<
|
|
19161
|
+
Rv,
|
|
19162
|
+
{
|
|
19163
|
+
pallet: 'Broker';
|
|
19164
|
+
palletCall: {
|
|
19165
|
+
name: 'ForceReserve';
|
|
19166
|
+
params: { workload: Array<PalletBrokerScheduleItem>; core: number };
|
|
19167
|
+
};
|
|
19168
|
+
}
|
|
19169
|
+
>
|
|
19170
|
+
>;
|
|
19171
|
+
|
|
19172
|
+
/**
|
|
19173
|
+
* Remove a lease.
|
|
19174
|
+
*
|
|
19175
|
+
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
19176
|
+
* - `task`: The task id of the lease which should be removed.
|
|
19177
|
+
*
|
|
19178
|
+
* @param {number} task
|
|
19179
|
+
**/
|
|
19180
|
+
removeLease: GenericTxCall<
|
|
19181
|
+
Rv,
|
|
19182
|
+
(task: number) => ChainSubmittableExtrinsic<
|
|
19183
|
+
Rv,
|
|
19184
|
+
{
|
|
19185
|
+
pallet: 'Broker';
|
|
19186
|
+
palletCall: {
|
|
19187
|
+
name: 'RemoveLease';
|
|
19188
|
+
params: { task: number };
|
|
19189
|
+
};
|
|
19190
|
+
}
|
|
19191
|
+
>
|
|
19192
|
+
>;
|
|
19193
|
+
|
|
19194
|
+
/**
|
|
19195
|
+
* Remove an assignment from the Workplan.
|
|
19196
|
+
*
|
|
19197
|
+
* - `origin`: Must be Root or pass `AdminOrigin`.
|
|
19198
|
+
* - `region_id`: The Region to be removed from the workplan.
|
|
19199
|
+
*
|
|
19200
|
+
* @param {PalletBrokerRegionId} regionId
|
|
19201
|
+
**/
|
|
19202
|
+
removeAssignment: GenericTxCall<
|
|
19203
|
+
Rv,
|
|
19204
|
+
(regionId: PalletBrokerRegionId) => ChainSubmittableExtrinsic<
|
|
19205
|
+
Rv,
|
|
19206
|
+
{
|
|
19207
|
+
pallet: 'Broker';
|
|
19208
|
+
palletCall: {
|
|
19209
|
+
name: 'RemoveAssignment';
|
|
19210
|
+
params: { regionId: PalletBrokerRegionId };
|
|
19211
|
+
};
|
|
19212
|
+
}
|
|
19213
|
+
>
|
|
19214
|
+
>;
|
|
19215
|
+
|
|
18842
19216
|
/**
|
|
18843
19217
|
*
|
|
18844
19218
|
* @param {number} id
|
|
@@ -18976,7 +19350,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
18976
19350
|
*
|
|
18977
19351
|
* # Parameters
|
|
18978
19352
|
*
|
|
18979
|
-
* * `payload`: The
|
|
19353
|
+
* * `payload`: The encoded [`crate::evm::TransactionSigned`].
|
|
18980
19354
|
* * `gas_limit`: The gas limit enforced during contract execution.
|
|
18981
19355
|
* * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
|
|
18982
19356
|
* storage usage.
|
|
@@ -18989,22 +19363,16 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
18989
19363
|
* signer and validating the transaction.
|
|
18990
19364
|
*
|
|
18991
19365
|
* @param {BytesLike} payload
|
|
18992
|
-
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
18993
|
-
* @param {bigint} storageDepositLimit
|
|
18994
19366
|
**/
|
|
18995
19367
|
ethTransact: GenericTxCall<
|
|
18996
19368
|
Rv,
|
|
18997
|
-
(
|
|
18998
|
-
payload: BytesLike,
|
|
18999
|
-
gasLimit: SpWeightsWeightV2Weight,
|
|
19000
|
-
storageDepositLimit: bigint,
|
|
19001
|
-
) => ChainSubmittableExtrinsic<
|
|
19369
|
+
(payload: BytesLike) => ChainSubmittableExtrinsic<
|
|
19002
19370
|
Rv,
|
|
19003
19371
|
{
|
|
19004
19372
|
pallet: 'Revive';
|
|
19005
19373
|
palletCall: {
|
|
19006
19374
|
name: 'EthTransact';
|
|
19007
|
-
params: { payload: BytesLike
|
|
19375
|
+
params: { payload: BytesLike };
|
|
19008
19376
|
};
|
|
19009
19377
|
}
|
|
19010
19378
|
>
|
|
@@ -19317,6 +19685,308 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
19317
19685
|
>
|
|
19318
19686
|
>;
|
|
19319
19687
|
|
|
19688
|
+
/**
|
|
19689
|
+
* Generic pallet tx call
|
|
19690
|
+
**/
|
|
19691
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
19692
|
+
};
|
|
19693
|
+
/**
|
|
19694
|
+
* Pallet `AssetRewards`'s transaction calls
|
|
19695
|
+
**/
|
|
19696
|
+
assetRewards: {
|
|
19697
|
+
/**
|
|
19698
|
+
* Create a new reward pool.
|
|
19699
|
+
*
|
|
19700
|
+
* Parameters:
|
|
19701
|
+
* - `origin`: must be `Config::CreatePoolOrigin`;
|
|
19702
|
+
* - `staked_asset_id`: the asset to be staked in the pool;
|
|
19703
|
+
* - `reward_asset_id`: the asset to be distributed as rewards;
|
|
19704
|
+
* - `reward_rate_per_block`: the amount of reward tokens distributed per block;
|
|
19705
|
+
* - `expiry`: the block number at which the pool will cease to accumulate rewards. The
|
|
19706
|
+
* [`DispatchTime::After`] variant evaluated at the execution time.
|
|
19707
|
+
* - `admin`: the account allowed to extend the pool expiration, increase the rewards rate
|
|
19708
|
+
* and receive the unutilized reward tokens back after the pool completion. If `None`,
|
|
19709
|
+
* the caller is set as an admin.
|
|
19710
|
+
*
|
|
19711
|
+
* @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} stakedAssetId
|
|
19712
|
+
* @param {FrameSupportTokensFungibleUnionOfNativeOrWithId} rewardAssetId
|
|
19713
|
+
* @param {bigint} rewardRatePerBlock
|
|
19714
|
+
* @param {FrameSupportScheduleDispatchTime} expiry
|
|
19715
|
+
* @param {AccountId32Like | undefined} admin
|
|
19716
|
+
**/
|
|
19717
|
+
createPool: GenericTxCall<
|
|
19718
|
+
Rv,
|
|
19719
|
+
(
|
|
19720
|
+
stakedAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId,
|
|
19721
|
+
rewardAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId,
|
|
19722
|
+
rewardRatePerBlock: bigint,
|
|
19723
|
+
expiry: FrameSupportScheduleDispatchTime,
|
|
19724
|
+
admin: AccountId32Like | undefined,
|
|
19725
|
+
) => ChainSubmittableExtrinsic<
|
|
19726
|
+
Rv,
|
|
19727
|
+
{
|
|
19728
|
+
pallet: 'AssetRewards';
|
|
19729
|
+
palletCall: {
|
|
19730
|
+
name: 'CreatePool';
|
|
19731
|
+
params: {
|
|
19732
|
+
stakedAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId;
|
|
19733
|
+
rewardAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId;
|
|
19734
|
+
rewardRatePerBlock: bigint;
|
|
19735
|
+
expiry: FrameSupportScheduleDispatchTime;
|
|
19736
|
+
admin: AccountId32Like | undefined;
|
|
19737
|
+
};
|
|
19738
|
+
};
|
|
19739
|
+
}
|
|
19740
|
+
>
|
|
19741
|
+
>;
|
|
19742
|
+
|
|
19743
|
+
/**
|
|
19744
|
+
* Stake additional tokens in a pool.
|
|
19745
|
+
*
|
|
19746
|
+
* A freeze is placed on the staked tokens.
|
|
19747
|
+
*
|
|
19748
|
+
* @param {number} poolId
|
|
19749
|
+
* @param {bigint} amount
|
|
19750
|
+
**/
|
|
19751
|
+
stake: GenericTxCall<
|
|
19752
|
+
Rv,
|
|
19753
|
+
(
|
|
19754
|
+
poolId: number,
|
|
19755
|
+
amount: bigint,
|
|
19756
|
+
) => ChainSubmittableExtrinsic<
|
|
19757
|
+
Rv,
|
|
19758
|
+
{
|
|
19759
|
+
pallet: 'AssetRewards';
|
|
19760
|
+
palletCall: {
|
|
19761
|
+
name: 'Stake';
|
|
19762
|
+
params: { poolId: number; amount: bigint };
|
|
19763
|
+
};
|
|
19764
|
+
}
|
|
19765
|
+
>
|
|
19766
|
+
>;
|
|
19767
|
+
|
|
19768
|
+
/**
|
|
19769
|
+
* Unstake tokens from a pool.
|
|
19770
|
+
*
|
|
19771
|
+
* Removes the freeze on the staked tokens.
|
|
19772
|
+
*
|
|
19773
|
+
* Parameters:
|
|
19774
|
+
* - origin: must be the `staker` if the pool is still active. Otherwise, any account.
|
|
19775
|
+
* - pool_id: the pool to unstake from.
|
|
19776
|
+
* - amount: the amount of tokens to unstake.
|
|
19777
|
+
* - staker: the account to unstake from. If `None`, the caller is used.
|
|
19778
|
+
*
|
|
19779
|
+
* @param {number} poolId
|
|
19780
|
+
* @param {bigint} amount
|
|
19781
|
+
* @param {AccountId32Like | undefined} staker
|
|
19782
|
+
**/
|
|
19783
|
+
unstake: GenericTxCall<
|
|
19784
|
+
Rv,
|
|
19785
|
+
(
|
|
19786
|
+
poolId: number,
|
|
19787
|
+
amount: bigint,
|
|
19788
|
+
staker: AccountId32Like | undefined,
|
|
19789
|
+
) => ChainSubmittableExtrinsic<
|
|
19790
|
+
Rv,
|
|
19791
|
+
{
|
|
19792
|
+
pallet: 'AssetRewards';
|
|
19793
|
+
palletCall: {
|
|
19794
|
+
name: 'Unstake';
|
|
19795
|
+
params: { poolId: number; amount: bigint; staker: AccountId32Like | undefined };
|
|
19796
|
+
};
|
|
19797
|
+
}
|
|
19798
|
+
>
|
|
19799
|
+
>;
|
|
19800
|
+
|
|
19801
|
+
/**
|
|
19802
|
+
* Harvest unclaimed pool rewards.
|
|
19803
|
+
*
|
|
19804
|
+
* Parameters:
|
|
19805
|
+
* - origin: must be the `staker` if the pool is still active. Otherwise, any account.
|
|
19806
|
+
* - pool_id: the pool to harvest from.
|
|
19807
|
+
* - staker: the account for which to harvest rewards. If `None`, the caller is used.
|
|
19808
|
+
*
|
|
19809
|
+
* @param {number} poolId
|
|
19810
|
+
* @param {AccountId32Like | undefined} staker
|
|
19811
|
+
**/
|
|
19812
|
+
harvestRewards: GenericTxCall<
|
|
19813
|
+
Rv,
|
|
19814
|
+
(
|
|
19815
|
+
poolId: number,
|
|
19816
|
+
staker: AccountId32Like | undefined,
|
|
19817
|
+
) => ChainSubmittableExtrinsic<
|
|
19818
|
+
Rv,
|
|
19819
|
+
{
|
|
19820
|
+
pallet: 'AssetRewards';
|
|
19821
|
+
palletCall: {
|
|
19822
|
+
name: 'HarvestRewards';
|
|
19823
|
+
params: { poolId: number; staker: AccountId32Like | undefined };
|
|
19824
|
+
};
|
|
19825
|
+
}
|
|
19826
|
+
>
|
|
19827
|
+
>;
|
|
19828
|
+
|
|
19829
|
+
/**
|
|
19830
|
+
* Modify a pool reward rate.
|
|
19831
|
+
*
|
|
19832
|
+
* Currently the reward rate can only be increased.
|
|
19833
|
+
*
|
|
19834
|
+
* Only the pool admin may perform this operation.
|
|
19835
|
+
*
|
|
19836
|
+
* @param {number} poolId
|
|
19837
|
+
* @param {bigint} newRewardRatePerBlock
|
|
19838
|
+
**/
|
|
19839
|
+
setPoolRewardRatePerBlock: GenericTxCall<
|
|
19840
|
+
Rv,
|
|
19841
|
+
(
|
|
19842
|
+
poolId: number,
|
|
19843
|
+
newRewardRatePerBlock: bigint,
|
|
19844
|
+
) => ChainSubmittableExtrinsic<
|
|
19845
|
+
Rv,
|
|
19846
|
+
{
|
|
19847
|
+
pallet: 'AssetRewards';
|
|
19848
|
+
palletCall: {
|
|
19849
|
+
name: 'SetPoolRewardRatePerBlock';
|
|
19850
|
+
params: { poolId: number; newRewardRatePerBlock: bigint };
|
|
19851
|
+
};
|
|
19852
|
+
}
|
|
19853
|
+
>
|
|
19854
|
+
>;
|
|
19855
|
+
|
|
19856
|
+
/**
|
|
19857
|
+
* Modify a pool admin.
|
|
19858
|
+
*
|
|
19859
|
+
* Only the pool admin may perform this operation.
|
|
19860
|
+
*
|
|
19861
|
+
* @param {number} poolId
|
|
19862
|
+
* @param {AccountId32Like} newAdmin
|
|
19863
|
+
**/
|
|
19864
|
+
setPoolAdmin: GenericTxCall<
|
|
19865
|
+
Rv,
|
|
19866
|
+
(
|
|
19867
|
+
poolId: number,
|
|
19868
|
+
newAdmin: AccountId32Like,
|
|
19869
|
+
) => ChainSubmittableExtrinsic<
|
|
19870
|
+
Rv,
|
|
19871
|
+
{
|
|
19872
|
+
pallet: 'AssetRewards';
|
|
19873
|
+
palletCall: {
|
|
19874
|
+
name: 'SetPoolAdmin';
|
|
19875
|
+
params: { poolId: number; newAdmin: AccountId32Like };
|
|
19876
|
+
};
|
|
19877
|
+
}
|
|
19878
|
+
>
|
|
19879
|
+
>;
|
|
19880
|
+
|
|
19881
|
+
/**
|
|
19882
|
+
* Set when the pool should expire.
|
|
19883
|
+
*
|
|
19884
|
+
* Currently the expiry block can only be extended.
|
|
19885
|
+
*
|
|
19886
|
+
* Only the pool admin may perform this operation.
|
|
19887
|
+
*
|
|
19888
|
+
* @param {number} poolId
|
|
19889
|
+
* @param {FrameSupportScheduleDispatchTime} newExpiry
|
|
19890
|
+
**/
|
|
19891
|
+
setPoolExpiryBlock: GenericTxCall<
|
|
19892
|
+
Rv,
|
|
19893
|
+
(
|
|
19894
|
+
poolId: number,
|
|
19895
|
+
newExpiry: FrameSupportScheduleDispatchTime,
|
|
19896
|
+
) => ChainSubmittableExtrinsic<
|
|
19897
|
+
Rv,
|
|
19898
|
+
{
|
|
19899
|
+
pallet: 'AssetRewards';
|
|
19900
|
+
palletCall: {
|
|
19901
|
+
name: 'SetPoolExpiryBlock';
|
|
19902
|
+
params: { poolId: number; newExpiry: FrameSupportScheduleDispatchTime };
|
|
19903
|
+
};
|
|
19904
|
+
}
|
|
19905
|
+
>
|
|
19906
|
+
>;
|
|
19907
|
+
|
|
19908
|
+
/**
|
|
19909
|
+
* Convenience method to deposit reward tokens into a pool.
|
|
19910
|
+
*
|
|
19911
|
+
* This method is not strictly necessary (tokens could be transferred directly to the
|
|
19912
|
+
* pool pot address), but is provided for convenience so manual derivation of the
|
|
19913
|
+
* account id is not required.
|
|
19914
|
+
*
|
|
19915
|
+
* @param {number} poolId
|
|
19916
|
+
* @param {bigint} amount
|
|
19917
|
+
**/
|
|
19918
|
+
depositRewardTokens: GenericTxCall<
|
|
19919
|
+
Rv,
|
|
19920
|
+
(
|
|
19921
|
+
poolId: number,
|
|
19922
|
+
amount: bigint,
|
|
19923
|
+
) => ChainSubmittableExtrinsic<
|
|
19924
|
+
Rv,
|
|
19925
|
+
{
|
|
19926
|
+
pallet: 'AssetRewards';
|
|
19927
|
+
palletCall: {
|
|
19928
|
+
name: 'DepositRewardTokens';
|
|
19929
|
+
params: { poolId: number; amount: bigint };
|
|
19930
|
+
};
|
|
19931
|
+
}
|
|
19932
|
+
>
|
|
19933
|
+
>;
|
|
19934
|
+
|
|
19935
|
+
/**
|
|
19936
|
+
* Cleanup a pool.
|
|
19937
|
+
*
|
|
19938
|
+
* Origin must be the pool admin.
|
|
19939
|
+
*
|
|
19940
|
+
* Cleanup storage, release any associated storage cost and return the remaining reward
|
|
19941
|
+
* tokens to the admin.
|
|
19942
|
+
*
|
|
19943
|
+
* @param {number} poolId
|
|
19944
|
+
**/
|
|
19945
|
+
cleanupPool: GenericTxCall<
|
|
19946
|
+
Rv,
|
|
19947
|
+
(poolId: number) => ChainSubmittableExtrinsic<
|
|
19948
|
+
Rv,
|
|
19949
|
+
{
|
|
19950
|
+
pallet: 'AssetRewards';
|
|
19951
|
+
palletCall: {
|
|
19952
|
+
name: 'CleanupPool';
|
|
19953
|
+
params: { poolId: number };
|
|
19954
|
+
};
|
|
19955
|
+
}
|
|
19956
|
+
>
|
|
19957
|
+
>;
|
|
19958
|
+
|
|
19959
|
+
/**
|
|
19960
|
+
* Generic pallet tx call
|
|
19961
|
+
**/
|
|
19962
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
19963
|
+
};
|
|
19964
|
+
/**
|
|
19965
|
+
* Pallet `MetaTx`'s transaction calls
|
|
19966
|
+
**/
|
|
19967
|
+
metaTx: {
|
|
19968
|
+
/**
|
|
19969
|
+
* Dispatch a given meta transaction.
|
|
19970
|
+
*
|
|
19971
|
+
* - `_origin`: Can be any kind of origin.
|
|
19972
|
+
* - `meta_tx`: Meta Transaction with a target call to be dispatched.
|
|
19973
|
+
*
|
|
19974
|
+
* @param {PalletMetaTxMetaTx} metaTx
|
|
19975
|
+
**/
|
|
19976
|
+
dispatch: GenericTxCall<
|
|
19977
|
+
Rv,
|
|
19978
|
+
(metaTx: PalletMetaTxMetaTx) => ChainSubmittableExtrinsic<
|
|
19979
|
+
Rv,
|
|
19980
|
+
{
|
|
19981
|
+
pallet: 'MetaTx';
|
|
19982
|
+
palletCall: {
|
|
19983
|
+
name: 'Dispatch';
|
|
19984
|
+
params: { metaTx: PalletMetaTxMetaTx };
|
|
19985
|
+
};
|
|
19986
|
+
}
|
|
19987
|
+
>
|
|
19988
|
+
>;
|
|
19989
|
+
|
|
19320
19990
|
/**
|
|
19321
19991
|
* Generic pallet tx call
|
|
19322
19992
|
**/
|