@dedot/chaintypes 0.244.0 → 0.245.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 +99 -16
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +85 -46
- package/kusama/runtime.d.ts +90 -79
- package/kusama/tx.d.ts +105 -32
- package/kusama/types.d.ts +307 -209
- package/kusama-asset-hub/consts.d.ts +45 -0
- package/kusama-asset-hub/errors.d.ts +156 -0
- package/kusama-asset-hub/events.d.ts +234 -5
- package/kusama-asset-hub/index.d.ts +3 -1
- package/kusama-asset-hub/query.d.ts +230 -16
- package/kusama-asset-hub/runtime.d.ts +11 -6
- package/kusama-asset-hub/tx.d.ts +650 -1
- package/kusama-asset-hub/types.d.ts +1225 -146
- package/kusama-asset-hub/view-functions.d.ts +195 -2
- package/kusama-people/events.d.ts +64 -1
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +36 -16
- package/kusama-people/runtime.d.ts +9 -5
- package/kusama-people/types.d.ts +67 -21
- package/package.json +2 -2
package/kusama-asset-hub/tx.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ import type {
|
|
|
63
63
|
PalletNftsPriceWithDirection,
|
|
64
64
|
PalletNftsPreSignedMint,
|
|
65
65
|
PalletNftsPreSignedAttributes,
|
|
66
|
+
AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
|
|
66
67
|
PalletStateTrieMigrationMigrationLimits,
|
|
67
68
|
PalletStateTrieMigrationMigrationTask,
|
|
68
69
|
PalletStateTrieMigrationProgress,
|
|
@@ -88,6 +89,7 @@ import type {
|
|
|
88
89
|
PalletStakingAsyncPalletConfigOpU32,
|
|
89
90
|
PalletStakingAsyncPalletConfigOpPercent,
|
|
90
91
|
PalletStakingAsyncPalletConfigOpPerbill,
|
|
92
|
+
PalletStakingAsyncPalletConfigOpBool,
|
|
91
93
|
PalletStakingAsyncLedgerUnlockChunk,
|
|
92
94
|
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
93
95
|
ParachainsCommonPayVersionedLocatableAccount,
|
|
@@ -5265,6 +5267,36 @@ export interface ChainTx<
|
|
|
5265
5267
|
>
|
|
5266
5268
|
>;
|
|
5267
5269
|
|
|
5270
|
+
/**
|
|
5271
|
+
* Sets the trusted reserve information of an asset.
|
|
5272
|
+
*
|
|
5273
|
+
* Origin must be the Owner of the asset `id`. The origin must conform to the configured
|
|
5274
|
+
* `CreateOrigin` or be the signed `owner` configured during asset creation.
|
|
5275
|
+
*
|
|
5276
|
+
* - `id`: The identifier of the asset.
|
|
5277
|
+
* - `reserves`: The full list of trusted reserves information.
|
|
5278
|
+
*
|
|
5279
|
+
* Emits `AssetMinBalanceChanged` event when successful.
|
|
5280
|
+
*
|
|
5281
|
+
* @param {number} id
|
|
5282
|
+
* @param {Array<[]>} reserves
|
|
5283
|
+
**/
|
|
5284
|
+
setReserves: GenericTxCall<
|
|
5285
|
+
(
|
|
5286
|
+
id: number,
|
|
5287
|
+
reserves: Array<[]>,
|
|
5288
|
+
) => ChainSubmittableExtrinsic<
|
|
5289
|
+
{
|
|
5290
|
+
pallet: 'Assets';
|
|
5291
|
+
palletCall: {
|
|
5292
|
+
name: 'SetReserves';
|
|
5293
|
+
params: { id: number; reserves: Array<[]> };
|
|
5294
|
+
};
|
|
5295
|
+
},
|
|
5296
|
+
ChainKnownTypes
|
|
5297
|
+
>
|
|
5298
|
+
>;
|
|
5299
|
+
|
|
5268
5300
|
/**
|
|
5269
5301
|
* Generic pallet tx call
|
|
5270
5302
|
**/
|
|
@@ -8853,6 +8885,39 @@ export interface ChainTx<
|
|
|
8853
8885
|
>
|
|
8854
8886
|
>;
|
|
8855
8887
|
|
|
8888
|
+
/**
|
|
8889
|
+
* Sets the trusted reserve information of an asset.
|
|
8890
|
+
*
|
|
8891
|
+
* Origin must be the Owner of the asset `id`. The origin must conform to the configured
|
|
8892
|
+
* `CreateOrigin` or be the signed `owner` configured during asset creation.
|
|
8893
|
+
*
|
|
8894
|
+
* - `id`: The identifier of the asset.
|
|
8895
|
+
* - `reserves`: The full list of trusted reserves information.
|
|
8896
|
+
*
|
|
8897
|
+
* Emits `AssetMinBalanceChanged` event when successful.
|
|
8898
|
+
*
|
|
8899
|
+
* @param {StagingXcmV5Location} id
|
|
8900
|
+
* @param {Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>} reserves
|
|
8901
|
+
**/
|
|
8902
|
+
setReserves: GenericTxCall<
|
|
8903
|
+
(
|
|
8904
|
+
id: StagingXcmV5Location,
|
|
8905
|
+
reserves: Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>,
|
|
8906
|
+
) => ChainSubmittableExtrinsic<
|
|
8907
|
+
{
|
|
8908
|
+
pallet: 'ForeignAssets';
|
|
8909
|
+
palletCall: {
|
|
8910
|
+
name: 'SetReserves';
|
|
8911
|
+
params: {
|
|
8912
|
+
id: StagingXcmV5Location;
|
|
8913
|
+
reserves: Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>;
|
|
8914
|
+
};
|
|
8915
|
+
};
|
|
8916
|
+
},
|
|
8917
|
+
ChainKnownTypes
|
|
8918
|
+
>
|
|
8919
|
+
>;
|
|
8920
|
+
|
|
8856
8921
|
/**
|
|
8857
8922
|
* Generic pallet tx call
|
|
8858
8923
|
**/
|
|
@@ -10132,6 +10197,36 @@ export interface ChainTx<
|
|
|
10132
10197
|
>
|
|
10133
10198
|
>;
|
|
10134
10199
|
|
|
10200
|
+
/**
|
|
10201
|
+
* Sets the trusted reserve information of an asset.
|
|
10202
|
+
*
|
|
10203
|
+
* Origin must be the Owner of the asset `id`. The origin must conform to the configured
|
|
10204
|
+
* `CreateOrigin` or be the signed `owner` configured during asset creation.
|
|
10205
|
+
*
|
|
10206
|
+
* - `id`: The identifier of the asset.
|
|
10207
|
+
* - `reserves`: The full list of trusted reserves information.
|
|
10208
|
+
*
|
|
10209
|
+
* Emits `AssetMinBalanceChanged` event when successful.
|
|
10210
|
+
*
|
|
10211
|
+
* @param {number} id
|
|
10212
|
+
* @param {Array<[]>} reserves
|
|
10213
|
+
**/
|
|
10214
|
+
setReserves: GenericTxCall<
|
|
10215
|
+
(
|
|
10216
|
+
id: number,
|
|
10217
|
+
reserves: Array<[]>,
|
|
10218
|
+
) => ChainSubmittableExtrinsic<
|
|
10219
|
+
{
|
|
10220
|
+
pallet: 'PoolAssets';
|
|
10221
|
+
palletCall: {
|
|
10222
|
+
name: 'SetReserves';
|
|
10223
|
+
params: { id: number; reserves: Array<[]> };
|
|
10224
|
+
};
|
|
10225
|
+
},
|
|
10226
|
+
ChainKnownTypes
|
|
10227
|
+
>
|
|
10228
|
+
>;
|
|
10229
|
+
|
|
10135
10230
|
/**
|
|
10136
10231
|
* Generic pallet tx call
|
|
10137
10232
|
**/
|
|
@@ -11226,6 +11321,30 @@ export interface ChainTx<
|
|
|
11226
11321
|
>
|
|
11227
11322
|
>;
|
|
11228
11323
|
|
|
11324
|
+
/**
|
|
11325
|
+
* Kick a member from the society. Callable only by the Signed origin of the Founder.
|
|
11326
|
+
*
|
|
11327
|
+
* The member is fully removed (not suspended). All unclaimed payouts are slashed and
|
|
11328
|
+
* returned to the society pot.
|
|
11329
|
+
*
|
|
11330
|
+
* Parameters:
|
|
11331
|
+
* - `who`: The member to be removed.
|
|
11332
|
+
*
|
|
11333
|
+
* @param {MultiAddressLike} who
|
|
11334
|
+
**/
|
|
11335
|
+
kickMember: GenericTxCall<
|
|
11336
|
+
(who: MultiAddressLike) => ChainSubmittableExtrinsic<
|
|
11337
|
+
{
|
|
11338
|
+
pallet: 'Society';
|
|
11339
|
+
palletCall: {
|
|
11340
|
+
name: 'KickMember';
|
|
11341
|
+
params: { who: MultiAddressLike };
|
|
11342
|
+
};
|
|
11343
|
+
},
|
|
11344
|
+
ChainKnownTypes
|
|
11345
|
+
>
|
|
11346
|
+
>;
|
|
11347
|
+
|
|
11229
11348
|
/**
|
|
11230
11349
|
* Generic pallet tx call
|
|
11231
11350
|
**/
|
|
@@ -12841,6 +12960,105 @@ export interface ChainTx<
|
|
|
12841
12960
|
>
|
|
12842
12961
|
>;
|
|
12843
12962
|
|
|
12963
|
+
/**
|
|
12964
|
+
* Set session keys for a validator. Keys are validated on AssetHub and forwarded to RC.
|
|
12965
|
+
*
|
|
12966
|
+
* On the first call, a deposit of `KeyDeposit` is held from the stash. Subsequent calls
|
|
12967
|
+
* do not charge again. The deposit is released on `purge_keys`.
|
|
12968
|
+
*
|
|
12969
|
+
* **Validation on AssetHub:**
|
|
12970
|
+
* - Keys are decoded as `T::RelayChainSessionKeys` to ensure they match RC's expected
|
|
12971
|
+
* format.
|
|
12972
|
+
*
|
|
12973
|
+
* If validation passes, only the validated keys are sent to RC (with empty proof),
|
|
12974
|
+
* since RC trusts AH's validation.
|
|
12975
|
+
*
|
|
12976
|
+
* Note: Ownership proof validation requires PR #1739 which is not backported to
|
|
12977
|
+
* stable2512. The proof parameter will be added when that PR is backported.
|
|
12978
|
+
*
|
|
12979
|
+
* **Fees:**
|
|
12980
|
+
* The actual cost of this call is higher than what the weight-based fee estimate shows.
|
|
12981
|
+
* In addition to the local transaction weight fee, the stash account is charged an XCM
|
|
12982
|
+
* fee (delivery + RC execution cost) via `XcmExecutor::charge_fees`. The relay chain
|
|
12983
|
+
* uses `UnpaidExecution`, so the full remote cost is charged upfront on AssetHub.
|
|
12984
|
+
*
|
|
12985
|
+
* When called via a staking proxy, the proxy pays the transaction weight fee,
|
|
12986
|
+
* while the stash (delegating account) pays the XCM fee.
|
|
12987
|
+
*
|
|
12988
|
+
* **Max Fee Limit:**
|
|
12989
|
+
* Users can optionally specify `max_delivery_and_remote_execution_fee` to limit the
|
|
12990
|
+
* delivery + RC execution fee. This does not include the local transaction weight fee. If
|
|
12991
|
+
* the fee exceeds this limit, the operation fails with `FeesExceededMax`. Pass `None` for
|
|
12992
|
+
* unlimited (no cap).
|
|
12993
|
+
*
|
|
12994
|
+
* NOTE: unlike the current flow for new validators on RC (bond -> set_keys -> validate),
|
|
12995
|
+
* users on Asset Hub MUST call bond and validate BEFORE calling set_keys. Attempting to
|
|
12996
|
+
* set keys before declaring intent to validate will fail with NotValidator.
|
|
12997
|
+
*
|
|
12998
|
+
* @param {BytesLike} keys
|
|
12999
|
+
* @param {BytesLike} proof
|
|
13000
|
+
* @param {bigint | undefined} maxDeliveryAndRemoteExecutionFee
|
|
13001
|
+
**/
|
|
13002
|
+
setKeys: GenericTxCall<
|
|
13003
|
+
(
|
|
13004
|
+
keys: BytesLike,
|
|
13005
|
+
proof: BytesLike,
|
|
13006
|
+
maxDeliveryAndRemoteExecutionFee: bigint | undefined,
|
|
13007
|
+
) => ChainSubmittableExtrinsic<
|
|
13008
|
+
{
|
|
13009
|
+
pallet: 'StakingRcClient';
|
|
13010
|
+
palletCall: {
|
|
13011
|
+
name: 'SetKeys';
|
|
13012
|
+
params: { keys: BytesLike; proof: BytesLike; maxDeliveryAndRemoteExecutionFee: bigint | undefined };
|
|
13013
|
+
};
|
|
13014
|
+
},
|
|
13015
|
+
ChainKnownTypes
|
|
13016
|
+
>
|
|
13017
|
+
>;
|
|
13018
|
+
|
|
13019
|
+
/**
|
|
13020
|
+
* Remove session keys for a validator and release the key deposit.
|
|
13021
|
+
*
|
|
13022
|
+
* This purges the keys from the Relay Chain.
|
|
13023
|
+
*
|
|
13024
|
+
* Unlike `set_keys`, this does not require the caller to be a registered validator.
|
|
13025
|
+
* This is intentional: a validator who has chilled (stopped validating) should still
|
|
13026
|
+
* be able to purge their session keys. This matches the behavior of the original
|
|
13027
|
+
* `pallet-session::purge_keys` which allows anyone to call it.
|
|
13028
|
+
*
|
|
13029
|
+
* The Relay Chain will reject the call with `NoKeys` error if the account has no
|
|
13030
|
+
* keys set.
|
|
13031
|
+
*
|
|
13032
|
+
* **Fees:**
|
|
13033
|
+
* The actual cost of this call is higher than what the weight-based fee estimate shows.
|
|
13034
|
+
* In addition to the local transaction weight fee, the caller is charged an XCM fee
|
|
13035
|
+
* (delivery + RC execution cost) via `XcmExecutor::charge_fees`. The relay chain uses
|
|
13036
|
+
* `UnpaidExecution`, so the full remote cost is charged upfront on AssetHub.
|
|
13037
|
+
*
|
|
13038
|
+
* When called via a staking proxy, the proxy pays the transaction weight fee,
|
|
13039
|
+
* while the delegating account pays the XCM fee.
|
|
13040
|
+
*
|
|
13041
|
+
* **Max Fee Limit:**
|
|
13042
|
+
* Users can optionally specify `max_delivery_and_remote_execution_fee` to limit the
|
|
13043
|
+
* delivery + RC execution fee. This does not include the local transaction weight fee. If
|
|
13044
|
+
* the fee exceeds this limit, the operation fails with `FeesExceededMax`. Pass `None` for
|
|
13045
|
+
* unlimited (no cap).
|
|
13046
|
+
*
|
|
13047
|
+
* @param {bigint | undefined} maxDeliveryAndRemoteExecutionFee
|
|
13048
|
+
**/
|
|
13049
|
+
purgeKeys: GenericTxCall<
|
|
13050
|
+
(maxDeliveryAndRemoteExecutionFee: bigint | undefined) => ChainSubmittableExtrinsic<
|
|
13051
|
+
{
|
|
13052
|
+
pallet: 'StakingRcClient';
|
|
13053
|
+
palletCall: {
|
|
13054
|
+
name: 'PurgeKeys';
|
|
13055
|
+
params: { maxDeliveryAndRemoteExecutionFee: bigint | undefined };
|
|
13056
|
+
};
|
|
13057
|
+
},
|
|
13058
|
+
ChainKnownTypes
|
|
13059
|
+
>
|
|
13060
|
+
>;
|
|
13061
|
+
|
|
12844
13062
|
/**
|
|
12845
13063
|
* Generic pallet tx call
|
|
12846
13064
|
**/
|
|
@@ -12998,7 +13216,7 @@ export interface ChainTx<
|
|
|
12998
13216
|
/**
|
|
12999
13217
|
* Retract a submission.
|
|
13000
13218
|
*
|
|
13001
|
-
* A portion of the deposit may be returned, based on the [`Config::
|
|
13219
|
+
* A portion of the deposit may be returned, based on the [`Config::EjectGraceRatio`].
|
|
13002
13220
|
*
|
|
13003
13221
|
* This will fully remove the solution from storage.
|
|
13004
13222
|
*
|
|
@@ -13680,6 +13898,7 @@ export interface ChainTx<
|
|
|
13680
13898
|
* @param {PalletStakingAsyncPalletConfigOpPercent} chillThreshold
|
|
13681
13899
|
* @param {PalletStakingAsyncPalletConfigOpPerbill} minCommission
|
|
13682
13900
|
* @param {PalletStakingAsyncPalletConfigOpPercent} maxStakedRewards
|
|
13901
|
+
* @param {PalletStakingAsyncPalletConfigOpBool} areNominatorsSlashable
|
|
13683
13902
|
**/
|
|
13684
13903
|
setStakingConfigs: GenericTxCall<
|
|
13685
13904
|
(
|
|
@@ -13690,6 +13909,7 @@ export interface ChainTx<
|
|
|
13690
13909
|
chillThreshold: PalletStakingAsyncPalletConfigOpPercent,
|
|
13691
13910
|
minCommission: PalletStakingAsyncPalletConfigOpPerbill,
|
|
13692
13911
|
maxStakedRewards: PalletStakingAsyncPalletConfigOpPercent,
|
|
13912
|
+
areNominatorsSlashable: PalletStakingAsyncPalletConfigOpBool,
|
|
13693
13913
|
) => ChainSubmittableExtrinsic<
|
|
13694
13914
|
{
|
|
13695
13915
|
pallet: 'Staking';
|
|
@@ -13703,6 +13923,7 @@ export interface ChainTx<
|
|
|
13703
13923
|
chillThreshold: PalletStakingAsyncPalletConfigOpPercent;
|
|
13704
13924
|
minCommission: PalletStakingAsyncPalletConfigOpPerbill;
|
|
13705
13925
|
maxStakedRewards: PalletStakingAsyncPalletConfigOpPercent;
|
|
13926
|
+
areNominatorsSlashable: PalletStakingAsyncPalletConfigOpBool;
|
|
13706
13927
|
};
|
|
13707
13928
|
};
|
|
13708
13929
|
},
|
|
@@ -15564,6 +15785,434 @@ export interface ChainTx<
|
|
|
15564
15785
|
**/
|
|
15565
15786
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
15566
15787
|
};
|
|
15788
|
+
/**
|
|
15789
|
+
* Pallet `MultiAssetBounties`'s transaction calls
|
|
15790
|
+
**/
|
|
15791
|
+
multiAssetBounties: {
|
|
15792
|
+
/**
|
|
15793
|
+
* Fund a new bounty with a proposed curator, initiating the payment from the
|
|
15794
|
+
* funding source to the bounty account/location.
|
|
15795
|
+
*
|
|
15796
|
+
* ## Dispatch Origin
|
|
15797
|
+
*
|
|
15798
|
+
* Must be [`Config::SpendOrigin`] with the `Success` value being at least
|
|
15799
|
+
* the bounty value converted to native balance using [`Config::BalanceConverter`].
|
|
15800
|
+
* The converted native amount is validated against the maximum spendable amount
|
|
15801
|
+
* returned by [`Config::SpendOrigin`].
|
|
15802
|
+
*
|
|
15803
|
+
* ## Details
|
|
15804
|
+
*
|
|
15805
|
+
* - The `SpendOrigin` must have sufficient permissions to fund the bounty.
|
|
15806
|
+
* - The bounty `value` (in asset balance) is converted to native balance for validation.
|
|
15807
|
+
* - In case of a funding failure, the bounty status must be updated with the
|
|
15808
|
+
* `check_status` call before retrying with `retry_payment` call.
|
|
15809
|
+
*
|
|
15810
|
+
* ### Parameters
|
|
15811
|
+
* - `asset_kind`: An indicator of the specific asset class to be funded.
|
|
15812
|
+
* - `value`: The total payment amount of this bounty.
|
|
15813
|
+
* - `curator`: Address of bounty curator.
|
|
15814
|
+
* - `metadata`: The hash of an on-chain stored preimage with bounty metadata.
|
|
15815
|
+
*
|
|
15816
|
+
* ## Events
|
|
15817
|
+
*
|
|
15818
|
+
* Emits [`Event::BountyCreated`] and [`Event::Paid`] if successful.
|
|
15819
|
+
*
|
|
15820
|
+
* @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} assetKind
|
|
15821
|
+
* @param {bigint} value
|
|
15822
|
+
* @param {MultiAddressLike} curator
|
|
15823
|
+
* @param {H256} metadata
|
|
15824
|
+
**/
|
|
15825
|
+
fundBounty: GenericTxCall<
|
|
15826
|
+
(
|
|
15827
|
+
assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
15828
|
+
value: bigint,
|
|
15829
|
+
curator: MultiAddressLike,
|
|
15830
|
+
metadata: H256,
|
|
15831
|
+
) => ChainSubmittableExtrinsic<
|
|
15832
|
+
{
|
|
15833
|
+
pallet: 'MultiAssetBounties';
|
|
15834
|
+
palletCall: {
|
|
15835
|
+
name: 'FundBounty';
|
|
15836
|
+
params: {
|
|
15837
|
+
assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset;
|
|
15838
|
+
value: bigint;
|
|
15839
|
+
curator: MultiAddressLike;
|
|
15840
|
+
metadata: H256;
|
|
15841
|
+
};
|
|
15842
|
+
};
|
|
15843
|
+
},
|
|
15844
|
+
ChainKnownTypes
|
|
15845
|
+
>
|
|
15846
|
+
>;
|
|
15847
|
+
|
|
15848
|
+
/**
|
|
15849
|
+
* Fund a new child-bounty with a proposed curator, initiating the payment from the parent
|
|
15850
|
+
* bounty to the child-bounty account/location.
|
|
15851
|
+
*
|
|
15852
|
+
* ## Dispatch Origin
|
|
15853
|
+
*
|
|
15854
|
+
* Must be signed by the parent curator.
|
|
15855
|
+
*
|
|
15856
|
+
* ## Details
|
|
15857
|
+
*
|
|
15858
|
+
* - If `curator` is not provided, the child-bounty will default to using the parent
|
|
15859
|
+
* curator, allowing the parent curator to immediately call `check_status` and
|
|
15860
|
+
* `award_bounty` to payout the child-bounty.
|
|
15861
|
+
* - In case of a funding failure, the child-/bounty status must be updated with the
|
|
15862
|
+
* `check_status` call before retrying with `retry_payment` call.
|
|
15863
|
+
*
|
|
15864
|
+
* ### Parameters
|
|
15865
|
+
* - `parent_bounty_id`: Index of parent bounty for which child-bounty is being added.
|
|
15866
|
+
* - `value`: The payment amount of this child-bounty.
|
|
15867
|
+
* - `metadata`: The hash of an on-chain stored preimage with child-bounty metadata.
|
|
15868
|
+
* - `curator`: Address of child-bounty curator.
|
|
15869
|
+
*
|
|
15870
|
+
* ## Events
|
|
15871
|
+
*
|
|
15872
|
+
* Emits [`Event::ChildBountyCreated`] and [`Event::Paid`] if successful.
|
|
15873
|
+
*
|
|
15874
|
+
* @param {number} parentBountyId
|
|
15875
|
+
* @param {bigint} value
|
|
15876
|
+
* @param {H256} metadata
|
|
15877
|
+
* @param {MultiAddressLike | undefined} curator
|
|
15878
|
+
**/
|
|
15879
|
+
fundChildBounty: GenericTxCall<
|
|
15880
|
+
(
|
|
15881
|
+
parentBountyId: number,
|
|
15882
|
+
value: bigint,
|
|
15883
|
+
metadata: H256,
|
|
15884
|
+
curator: MultiAddressLike | undefined,
|
|
15885
|
+
) => ChainSubmittableExtrinsic<
|
|
15886
|
+
{
|
|
15887
|
+
pallet: 'MultiAssetBounties';
|
|
15888
|
+
palletCall: {
|
|
15889
|
+
name: 'FundChildBounty';
|
|
15890
|
+
params: { parentBountyId: number; value: bigint; metadata: H256; curator: MultiAddressLike | undefined };
|
|
15891
|
+
};
|
|
15892
|
+
},
|
|
15893
|
+
ChainKnownTypes
|
|
15894
|
+
>
|
|
15895
|
+
>;
|
|
15896
|
+
|
|
15897
|
+
/**
|
|
15898
|
+
* Propose a new curator for a child-/bounty after the previous was unassigned.
|
|
15899
|
+
*
|
|
15900
|
+
* ## Dispatch Origin
|
|
15901
|
+
*
|
|
15902
|
+
* Must be signed by `T::SpendOrigin` for a bounty, or by the parent bounty curator
|
|
15903
|
+
* for a child-bounty.
|
|
15904
|
+
*
|
|
15905
|
+
* ## Details
|
|
15906
|
+
*
|
|
15907
|
+
* - The child-/bounty must be in the `CuratorUnassigned` state.
|
|
15908
|
+
* - For a bounty, the `SpendOrigin` must have sufficient permissions to propose the
|
|
15909
|
+
* curator.
|
|
15910
|
+
*
|
|
15911
|
+
* ### Parameters
|
|
15912
|
+
* - `parent_bounty_id`: Index of bounty.
|
|
15913
|
+
* - `child_bounty_id`: Index of child-bounty.
|
|
15914
|
+
* - `curator`: Account to be proposed as the curator.
|
|
15915
|
+
*
|
|
15916
|
+
* ## Events
|
|
15917
|
+
*
|
|
15918
|
+
* Emits [`Event::CuratorProposed`] if successful.
|
|
15919
|
+
*
|
|
15920
|
+
* @param {number} parentBountyId
|
|
15921
|
+
* @param {number | undefined} childBountyId
|
|
15922
|
+
* @param {MultiAddressLike} curator
|
|
15923
|
+
**/
|
|
15924
|
+
proposeCurator: GenericTxCall<
|
|
15925
|
+
(
|
|
15926
|
+
parentBountyId: number,
|
|
15927
|
+
childBountyId: number | undefined,
|
|
15928
|
+
curator: MultiAddressLike,
|
|
15929
|
+
) => ChainSubmittableExtrinsic<
|
|
15930
|
+
{
|
|
15931
|
+
pallet: 'MultiAssetBounties';
|
|
15932
|
+
palletCall: {
|
|
15933
|
+
name: 'ProposeCurator';
|
|
15934
|
+
params: { parentBountyId: number; childBountyId: number | undefined; curator: MultiAddressLike };
|
|
15935
|
+
};
|
|
15936
|
+
},
|
|
15937
|
+
ChainKnownTypes
|
|
15938
|
+
>
|
|
15939
|
+
>;
|
|
15940
|
+
|
|
15941
|
+
/**
|
|
15942
|
+
* Accept the curator role for a child-/bounty.
|
|
15943
|
+
*
|
|
15944
|
+
* ## Dispatch Origin
|
|
15945
|
+
*
|
|
15946
|
+
* Must be signed by the proposed curator.
|
|
15947
|
+
*
|
|
15948
|
+
* ## Details
|
|
15949
|
+
*
|
|
15950
|
+
* - The child-/bounty must be in the `Funded` state.
|
|
15951
|
+
* - The curator must accept the role by calling this function.
|
|
15952
|
+
* - A deposit will be reserved from the curator and refunded upon successful payout.
|
|
15953
|
+
*
|
|
15954
|
+
* ### Parameters
|
|
15955
|
+
* - `parent_bounty_id`: Index of parent bounty.
|
|
15956
|
+
* - `child_bounty_id`: Index of child-bounty.
|
|
15957
|
+
*
|
|
15958
|
+
* ## Events
|
|
15959
|
+
*
|
|
15960
|
+
* Emits [`Event::BountyBecameActive`] if successful.
|
|
15961
|
+
*
|
|
15962
|
+
* @param {number} parentBountyId
|
|
15963
|
+
* @param {number | undefined} childBountyId
|
|
15964
|
+
**/
|
|
15965
|
+
acceptCurator: GenericTxCall<
|
|
15966
|
+
(
|
|
15967
|
+
parentBountyId: number,
|
|
15968
|
+
childBountyId: number | undefined,
|
|
15969
|
+
) => ChainSubmittableExtrinsic<
|
|
15970
|
+
{
|
|
15971
|
+
pallet: 'MultiAssetBounties';
|
|
15972
|
+
palletCall: {
|
|
15973
|
+
name: 'AcceptCurator';
|
|
15974
|
+
params: { parentBountyId: number; childBountyId: number | undefined };
|
|
15975
|
+
};
|
|
15976
|
+
},
|
|
15977
|
+
ChainKnownTypes
|
|
15978
|
+
>
|
|
15979
|
+
>;
|
|
15980
|
+
|
|
15981
|
+
/**
|
|
15982
|
+
* Unassign curator from a child-/bounty.
|
|
15983
|
+
*
|
|
15984
|
+
* ## Dispatch Origin
|
|
15985
|
+
*
|
|
15986
|
+
* This function can only be called by the `RejectOrigin` or the child-/bounty curator.
|
|
15987
|
+
*
|
|
15988
|
+
* ## Details
|
|
15989
|
+
*
|
|
15990
|
+
* - If this function is called by the `RejectOrigin`, or by the parent curator in the case
|
|
15991
|
+
* of a child bounty, we assume that the curator is malicious or inactive. As a result,
|
|
15992
|
+
* we will slash the curator when possible.
|
|
15993
|
+
* - If the origin is the child-/bounty curator, we take this as a sign they are unable to
|
|
15994
|
+
* do their job and they willingly give up. We could slash them, but for now we allow
|
|
15995
|
+
* them to recover their deposit and exit without issue. (We may want to change this if
|
|
15996
|
+
* it is abused).
|
|
15997
|
+
* - If successful, the child-/bounty status is updated to `CuratorUnassigned`. To
|
|
15998
|
+
* reactivate the bounty, a new curator must be proposed and must accept the role.
|
|
15999
|
+
*
|
|
16000
|
+
* ### Parameters
|
|
16001
|
+
* - `parent_bounty_id`: Index of parent bounty.
|
|
16002
|
+
* - `child_bounty_id`: Index of child-bounty.
|
|
16003
|
+
*
|
|
16004
|
+
* ## Events
|
|
16005
|
+
*
|
|
16006
|
+
* Emits [`Event::CuratorUnassigned`] if successful.
|
|
16007
|
+
*
|
|
16008
|
+
* @param {number} parentBountyId
|
|
16009
|
+
* @param {number | undefined} childBountyId
|
|
16010
|
+
**/
|
|
16011
|
+
unassignCurator: GenericTxCall<
|
|
16012
|
+
(
|
|
16013
|
+
parentBountyId: number,
|
|
16014
|
+
childBountyId: number | undefined,
|
|
16015
|
+
) => ChainSubmittableExtrinsic<
|
|
16016
|
+
{
|
|
16017
|
+
pallet: 'MultiAssetBounties';
|
|
16018
|
+
palletCall: {
|
|
16019
|
+
name: 'UnassignCurator';
|
|
16020
|
+
params: { parentBountyId: number; childBountyId: number | undefined };
|
|
16021
|
+
};
|
|
16022
|
+
},
|
|
16023
|
+
ChainKnownTypes
|
|
16024
|
+
>
|
|
16025
|
+
>;
|
|
16026
|
+
|
|
16027
|
+
/**
|
|
16028
|
+
* Awards the child-/bounty to a beneficiary account/location,
|
|
16029
|
+
* initiating the payout payments to both the beneficiary and the curator.
|
|
16030
|
+
*
|
|
16031
|
+
* ## Dispatch Origin
|
|
16032
|
+
*
|
|
16033
|
+
* This function can only be called by the `RejectOrigin` or the child-/bounty curator.
|
|
16034
|
+
*
|
|
16035
|
+
* ## Details
|
|
16036
|
+
*
|
|
16037
|
+
* - The child-/bounty must be in the `Active` state.
|
|
16038
|
+
* - if awarding a parent bounty it must not have active or funded child bounties.
|
|
16039
|
+
* - Initiates payout payment from the child-/bounty to the beneficiary account/location.
|
|
16040
|
+
* - If successful the child-/bounty status is updated to `PayoutAttempted`.
|
|
16041
|
+
* - In case of a payout failure, the child-/bounty status must be updated with
|
|
16042
|
+
* `check_status` call before retrying with `retry_payment` call.
|
|
16043
|
+
*
|
|
16044
|
+
* ### Parameters
|
|
16045
|
+
* - `parent_bounty_id`: Index of parent bounty.
|
|
16046
|
+
* - `child_bounty_id`: Index of child-bounty.
|
|
16047
|
+
* - `beneficiary`: Account/location to be awarded the child-/bounty.
|
|
16048
|
+
*
|
|
16049
|
+
* ## Events
|
|
16050
|
+
*
|
|
16051
|
+
* Emits [`Event::BountyAwarded`] and [`Event::Paid`] if successful.
|
|
16052
|
+
*
|
|
16053
|
+
* @param {number} parentBountyId
|
|
16054
|
+
* @param {number | undefined} childBountyId
|
|
16055
|
+
* @param {ParachainsCommonPayVersionedLocatableAccount} beneficiary
|
|
16056
|
+
**/
|
|
16057
|
+
awardBounty: GenericTxCall<
|
|
16058
|
+
(
|
|
16059
|
+
parentBountyId: number,
|
|
16060
|
+
childBountyId: number | undefined,
|
|
16061
|
+
beneficiary: ParachainsCommonPayVersionedLocatableAccount,
|
|
16062
|
+
) => ChainSubmittableExtrinsic<
|
|
16063
|
+
{
|
|
16064
|
+
pallet: 'MultiAssetBounties';
|
|
16065
|
+
palletCall: {
|
|
16066
|
+
name: 'AwardBounty';
|
|
16067
|
+
params: {
|
|
16068
|
+
parentBountyId: number;
|
|
16069
|
+
childBountyId: number | undefined;
|
|
16070
|
+
beneficiary: ParachainsCommonPayVersionedLocatableAccount;
|
|
16071
|
+
};
|
|
16072
|
+
};
|
|
16073
|
+
},
|
|
16074
|
+
ChainKnownTypes
|
|
16075
|
+
>
|
|
16076
|
+
>;
|
|
16077
|
+
|
|
16078
|
+
/**
|
|
16079
|
+
* Cancel an active child-/bounty. A payment to send all the funds to the funding source is
|
|
16080
|
+
* initialized.
|
|
16081
|
+
*
|
|
16082
|
+
* ## Dispatch Origin
|
|
16083
|
+
*
|
|
16084
|
+
* This function can only be called by the `RejectOrigin` or the parent bounty curator.
|
|
16085
|
+
*
|
|
16086
|
+
* ## Details
|
|
16087
|
+
*
|
|
16088
|
+
* - If the child-/bounty is in the `Funded` state, a refund payment is initiated.
|
|
16089
|
+
* - If the child-/bounty is in the `Active` state, a refund payment is initiated and the
|
|
16090
|
+
* child-/bounty status is updated with the curator account/location.
|
|
16091
|
+
* - If the child-/bounty is in the funding or payout phase, it cannot be canceled.
|
|
16092
|
+
* - In case of a refund failure, the child-/bounty status must be updated with the
|
|
16093
|
+
* `check_status` call before retrying with `retry_payment` call.
|
|
16094
|
+
*
|
|
16095
|
+
* ### Parameters
|
|
16096
|
+
* - `parent_bounty_id`: Index of parent bounty.
|
|
16097
|
+
* - `child_bounty_id`: Index of child-bounty.
|
|
16098
|
+
*
|
|
16099
|
+
* ## Events
|
|
16100
|
+
*
|
|
16101
|
+
* Emits [`Event::BountyCanceled`] and [`Event::Paid`] if successful.
|
|
16102
|
+
*
|
|
16103
|
+
* @param {number} parentBountyId
|
|
16104
|
+
* @param {number | undefined} childBountyId
|
|
16105
|
+
**/
|
|
16106
|
+
closeBounty: GenericTxCall<
|
|
16107
|
+
(
|
|
16108
|
+
parentBountyId: number,
|
|
16109
|
+
childBountyId: number | undefined,
|
|
16110
|
+
) => ChainSubmittableExtrinsic<
|
|
16111
|
+
{
|
|
16112
|
+
pallet: 'MultiAssetBounties';
|
|
16113
|
+
palletCall: {
|
|
16114
|
+
name: 'CloseBounty';
|
|
16115
|
+
params: { parentBountyId: number; childBountyId: number | undefined };
|
|
16116
|
+
};
|
|
16117
|
+
},
|
|
16118
|
+
ChainKnownTypes
|
|
16119
|
+
>
|
|
16120
|
+
>;
|
|
16121
|
+
|
|
16122
|
+
/**
|
|
16123
|
+
* Check and update the payment status of a child-/bounty.
|
|
16124
|
+
*
|
|
16125
|
+
* ## Dispatch Origin
|
|
16126
|
+
*
|
|
16127
|
+
* Must be signed.
|
|
16128
|
+
*
|
|
16129
|
+
* ## Details
|
|
16130
|
+
*
|
|
16131
|
+
* - If the child-/bounty status is `FundingAttempted`, it checks if the funding payment
|
|
16132
|
+
* has succeeded. If successful, the bounty status becomes `Funded`.
|
|
16133
|
+
* - If the child-/bounty status is `RefundAttempted`, it checks if the refund payment has
|
|
16134
|
+
* succeeded. If successful, the child-/bounty is removed from storage.
|
|
16135
|
+
* - If the child-/bounty status is `PayoutAttempted`, it checks if the payout payment has
|
|
16136
|
+
* succeeded. If successful, the child-/bounty is removed from storage.
|
|
16137
|
+
*
|
|
16138
|
+
* ### Parameters
|
|
16139
|
+
* - `parent_bounty_id`: Index of parent bounty.
|
|
16140
|
+
* - `child_bounty_id`: Index of child-bounty.
|
|
16141
|
+
*
|
|
16142
|
+
* ## Events
|
|
16143
|
+
*
|
|
16144
|
+
* Emits [`Event::BountyBecameActive`] if the child/bounty status transitions to `Active`.
|
|
16145
|
+
* Emits [`Event::BountyRefundProcessed`] if the refund payment has succeed.
|
|
16146
|
+
* Emits [`Event::BountyPayoutProcessed`] if the payout payment has succeed.
|
|
16147
|
+
* Emits [`Event::PaymentFailed`] if the funding, refund our payment payment has failed.
|
|
16148
|
+
*
|
|
16149
|
+
* @param {number} parentBountyId
|
|
16150
|
+
* @param {number | undefined} childBountyId
|
|
16151
|
+
**/
|
|
16152
|
+
checkStatus: GenericTxCall<
|
|
16153
|
+
(
|
|
16154
|
+
parentBountyId: number,
|
|
16155
|
+
childBountyId: number | undefined,
|
|
16156
|
+
) => ChainSubmittableExtrinsic<
|
|
16157
|
+
{
|
|
16158
|
+
pallet: 'MultiAssetBounties';
|
|
16159
|
+
palletCall: {
|
|
16160
|
+
name: 'CheckStatus';
|
|
16161
|
+
params: { parentBountyId: number; childBountyId: number | undefined };
|
|
16162
|
+
};
|
|
16163
|
+
},
|
|
16164
|
+
ChainKnownTypes
|
|
16165
|
+
>
|
|
16166
|
+
>;
|
|
16167
|
+
|
|
16168
|
+
/**
|
|
16169
|
+
* Retry the funding, refund or payout payments.
|
|
16170
|
+
*
|
|
16171
|
+
* ## Dispatch Origin
|
|
16172
|
+
*
|
|
16173
|
+
* Must be signed.
|
|
16174
|
+
*
|
|
16175
|
+
* ## Details
|
|
16176
|
+
*
|
|
16177
|
+
* - If the child-/bounty status is `FundingAttempted`, it retries the funding payment from
|
|
16178
|
+
* funding source the child-/bounty account/location.
|
|
16179
|
+
* - If the child-/bounty status is `RefundAttempted`, it retries the refund payment from
|
|
16180
|
+
* the child-/bounty account/location to the funding source.
|
|
16181
|
+
* - If the child-/bounty status is `PayoutAttempted`, it retries the payout payment from
|
|
16182
|
+
* the child-/bounty account/location to the beneficiary account/location.
|
|
16183
|
+
*
|
|
16184
|
+
* ### Parameters
|
|
16185
|
+
* - `parent_bounty_id`: Index of parent bounty.
|
|
16186
|
+
* - `child_bounty_id`: Index of child-bounty.
|
|
16187
|
+
*
|
|
16188
|
+
* ## Events
|
|
16189
|
+
*
|
|
16190
|
+
* Emits [`Event::Paid`] if the funding, refund or payout payment has initiated.
|
|
16191
|
+
*
|
|
16192
|
+
* @param {number} parentBountyId
|
|
16193
|
+
* @param {number | undefined} childBountyId
|
|
16194
|
+
**/
|
|
16195
|
+
retryPayment: GenericTxCall<
|
|
16196
|
+
(
|
|
16197
|
+
parentBountyId: number,
|
|
16198
|
+
childBountyId: number | undefined,
|
|
16199
|
+
) => ChainSubmittableExtrinsic<
|
|
16200
|
+
{
|
|
16201
|
+
pallet: 'MultiAssetBounties';
|
|
16202
|
+
palletCall: {
|
|
16203
|
+
name: 'RetryPayment';
|
|
16204
|
+
params: { parentBountyId: number; childBountyId: number | undefined };
|
|
16205
|
+
};
|
|
16206
|
+
},
|
|
16207
|
+
ChainKnownTypes
|
|
16208
|
+
>
|
|
16209
|
+
>;
|
|
16210
|
+
|
|
16211
|
+
/**
|
|
16212
|
+
* Generic pallet tx call
|
|
16213
|
+
**/
|
|
16214
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
16215
|
+
};
|
|
15567
16216
|
/**
|
|
15568
16217
|
* Pallet `AhOps`'s transaction calls
|
|
15569
16218
|
**/
|