@dedot/chaintypes 0.217.0 → 0.219.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.
@@ -72,13 +72,14 @@ import type {
72
72
  PalletStakingAsyncPalletConfigOpU32,
73
73
  PalletStakingAsyncPalletConfigOpPercent,
74
74
  PalletStakingAsyncPalletConfigOpPerbill,
75
+ PalletStakingAsyncPalletConfigOpBool,
75
76
  PalletStakingAsyncLedgerUnlockChunk,
76
77
  PalletNominationPoolsBondExtra,
77
78
  PalletNominationPoolsPoolState,
78
79
  PalletNominationPoolsConfigOp,
79
80
  PalletNominationPoolsConfigOpU32,
80
81
  PalletNominationPoolsConfigOpPerbill,
81
- PalletNominationPoolsConfigOp004,
82
+ PalletNominationPoolsConfigOpAccountId32,
82
83
  PalletNominationPoolsClaimPermission,
83
84
  PalletNominationPoolsCommissionChangeRate,
84
85
  PalletNominationPoolsCommissionClaimPermission,
@@ -10283,7 +10284,7 @@ export interface ChainTx<
10283
10284
  *
10284
10285
  * * `dest`: Address of the contract to call.
10285
10286
  * * `value`: The balance to transfer from the `origin` to `dest`.
10286
- * * `gas_limit`: The gas limit enforced when executing the constructor.
10287
+ * * `weight_limit`: The weight limit enforced when executing the constructor.
10287
10288
  * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
10288
10289
  * caller to pay for the storage consumed.
10289
10290
  * * `data`: The input data to pass to the contract.
@@ -10296,7 +10297,7 @@ export interface ChainTx<
10296
10297
  *
10297
10298
  * @param {H160} dest
10298
10299
  * @param {bigint} value
10299
- * @param {SpWeightsWeightV2Weight} gasLimit
10300
+ * @param {SpWeightsWeightV2Weight} weightLimit
10300
10301
  * @param {bigint} storageDepositLimit
10301
10302
  * @param {BytesLike} data
10302
10303
  **/
@@ -10304,7 +10305,7 @@ export interface ChainTx<
10304
10305
  (
10305
10306
  dest: H160,
10306
10307
  value: bigint,
10307
- gasLimit: SpWeightsWeightV2Weight,
10308
+ weightLimit: SpWeightsWeightV2Weight,
10308
10309
  storageDepositLimit: bigint,
10309
10310
  data: BytesLike,
10310
10311
  ) => ChainSubmittableExtrinsic<
@@ -10315,7 +10316,7 @@ export interface ChainTx<
10315
10316
  params: {
10316
10317
  dest: H160;
10317
10318
  value: bigint;
10318
- gasLimit: SpWeightsWeightV2Weight;
10319
+ weightLimit: SpWeightsWeightV2Weight;
10319
10320
  storageDepositLimit: bigint;
10320
10321
  data: BytesLike;
10321
10322
  };
@@ -10333,7 +10334,7 @@ export interface ChainTx<
10333
10334
  * must be supplied.
10334
10335
  *
10335
10336
  * @param {bigint} value
10336
- * @param {SpWeightsWeightV2Weight} gasLimit
10337
+ * @param {SpWeightsWeightV2Weight} weightLimit
10337
10338
  * @param {bigint} storageDepositLimit
10338
10339
  * @param {H256} codeHash
10339
10340
  * @param {BytesLike} data
@@ -10342,7 +10343,7 @@ export interface ChainTx<
10342
10343
  instantiate: GenericTxCall<
10343
10344
  (
10344
10345
  value: bigint,
10345
- gasLimit: SpWeightsWeightV2Weight,
10346
+ weightLimit: SpWeightsWeightV2Weight,
10346
10347
  storageDepositLimit: bigint,
10347
10348
  codeHash: H256,
10348
10349
  data: BytesLike,
@@ -10354,7 +10355,7 @@ export interface ChainTx<
10354
10355
  name: 'Instantiate';
10355
10356
  params: {
10356
10357
  value: bigint;
10357
- gasLimit: SpWeightsWeightV2Weight;
10358
+ weightLimit: SpWeightsWeightV2Weight;
10358
10359
  storageDepositLimit: bigint;
10359
10360
  codeHash: H256;
10360
10361
  data: BytesLike;
@@ -10377,7 +10378,7 @@ export interface ChainTx<
10377
10378
  * # Parameters
10378
10379
  *
10379
10380
  * * `value`: The balance to transfer from the `origin` to the newly created contract.
10380
- * * `gas_limit`: The gas limit enforced when executing the constructor.
10381
+ * * `weight_limit`: The weight limit enforced when executing the constructor.
10381
10382
  * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
10382
10383
  * from the caller to pay for the storage consumed.
10383
10384
  * * `code`: The contract code to deploy in raw bytes.
@@ -10396,7 +10397,7 @@ export interface ChainTx<
10396
10397
  * - The `deploy` function is executed in the context of the newly-created account.
10397
10398
  *
10398
10399
  * @param {bigint} value
10399
- * @param {SpWeightsWeightV2Weight} gasLimit
10400
+ * @param {SpWeightsWeightV2Weight} weightLimit
10400
10401
  * @param {bigint} storageDepositLimit
10401
10402
  * @param {BytesLike} code
10402
10403
  * @param {BytesLike} data
@@ -10405,7 +10406,7 @@ export interface ChainTx<
10405
10406
  instantiateWithCode: GenericTxCall<
10406
10407
  (
10407
10408
  value: bigint,
10408
- gasLimit: SpWeightsWeightV2Weight,
10409
+ weightLimit: SpWeightsWeightV2Weight,
10409
10410
  storageDepositLimit: bigint,
10410
10411
  code: BytesLike,
10411
10412
  data: BytesLike,
@@ -10417,7 +10418,7 @@ export interface ChainTx<
10417
10418
  name: 'InstantiateWithCode';
10418
10419
  params: {
10419
10420
  value: bigint;
10420
- gasLimit: SpWeightsWeightV2Weight;
10421
+ weightLimit: SpWeightsWeightV2Weight;
10421
10422
  storageDepositLimit: bigint;
10422
10423
  code: BytesLike;
10423
10424
  data: BytesLike;
@@ -10436,16 +10437,16 @@ export interface ChainTx<
10436
10437
  * # Parameters
10437
10438
  *
10438
10439
  * * `value`: The balance to transfer from the `origin` to the newly created contract.
10439
- * * `gas_limit`: The gas limit enforced when executing the constructor.
10440
- * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
10441
- * from the caller to pay for the storage consumed.
10440
+ * * `weight_limit`: The gas limit used to derive the transaction weight for transaction
10441
+ * payment
10442
+ * * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution
10442
10443
  * * `code`: The contract code to deploy in raw bytes.
10443
10444
  * * `data`: The input data to pass to the contract constructor.
10444
- * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
10445
- * semantics are used. If `None` then `CRATE1` is used.
10446
10445
  * * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
10447
10446
  * represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
10448
10447
  * is used for building the Ethereum transaction root.
10448
+ * * effective_gas_price: the price of a unit of gas
10449
+ * * encoded len: the byte code size of the `eth_transact` extrinsic
10449
10450
  *
10450
10451
  * Calling this dispatchable ensures that the origin's nonce is bumped only once,
10451
10452
  * via the `CheckNonce` transaction extension. In contrast, [`Self::instantiate_with_code`]
@@ -10453,7 +10454,8 @@ export interface ChainTx<
10453
10454
  * times within a batch call transaction.
10454
10455
  *
10455
10456
  * @param {U256} value
10456
- * @param {SpWeightsWeightV2Weight} gasLimit
10457
+ * @param {SpWeightsWeightV2Weight} weightLimit
10458
+ * @param {U256} ethGasLimit
10457
10459
  * @param {BytesLike} code
10458
10460
  * @param {BytesLike} data
10459
10461
  * @param {BytesLike} transactionEncoded
@@ -10463,7 +10465,8 @@ export interface ChainTx<
10463
10465
  ethInstantiateWithCode: GenericTxCall<
10464
10466
  (
10465
10467
  value: U256,
10466
- gasLimit: SpWeightsWeightV2Weight,
10468
+ weightLimit: SpWeightsWeightV2Weight,
10469
+ ethGasLimit: U256,
10467
10470
  code: BytesLike,
10468
10471
  data: BytesLike,
10469
10472
  transactionEncoded: BytesLike,
@@ -10476,7 +10479,8 @@ export interface ChainTx<
10476
10479
  name: 'EthInstantiateWithCode';
10477
10480
  params: {
10478
10481
  value: U256;
10479
- gasLimit: SpWeightsWeightV2Weight;
10482
+ weightLimit: SpWeightsWeightV2Weight;
10483
+ ethGasLimit: U256;
10480
10484
  code: BytesLike;
10481
10485
  data: BytesLike;
10482
10486
  transactionEncoded: BytesLike;
@@ -10493,9 +10497,24 @@ export interface ChainTx<
10493
10497
  * Same as [`Self::call`], but intended to be dispatched **only**
10494
10498
  * by an EVM transaction through the EVM compatibility layer.
10495
10499
  *
10500
+ * # Parameters
10501
+ *
10502
+ * * `dest`: The Ethereum address of the account to be called
10503
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
10504
+ * * `weight_limit`: The gas limit used to derive the transaction weight for transaction
10505
+ * payment
10506
+ * * `eth_gas_limit`: The Ethereum gas limit governing the resource usage of the execution
10507
+ * * `data`: The input data to pass to the contract constructor.
10508
+ * * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
10509
+ * represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
10510
+ * is used for building the Ethereum transaction root.
10511
+ * * effective_gas_price: the price of a unit of gas
10512
+ * * encoded len: the byte code size of the `eth_transact` extrinsic
10513
+ *
10496
10514
  * @param {H160} dest
10497
10515
  * @param {U256} value
10498
- * @param {SpWeightsWeightV2Weight} gasLimit
10516
+ * @param {SpWeightsWeightV2Weight} weightLimit
10517
+ * @param {U256} ethGasLimit
10499
10518
  * @param {BytesLike} data
10500
10519
  * @param {BytesLike} transactionEncoded
10501
10520
  * @param {U256} effectiveGasPrice
@@ -10505,7 +10524,8 @@ export interface ChainTx<
10505
10524
  (
10506
10525
  dest: H160,
10507
10526
  value: U256,
10508
- gasLimit: SpWeightsWeightV2Weight,
10527
+ weightLimit: SpWeightsWeightV2Weight,
10528
+ ethGasLimit: U256,
10509
10529
  data: BytesLike,
10510
10530
  transactionEncoded: BytesLike,
10511
10531
  effectiveGasPrice: U256,
@@ -10518,7 +10538,8 @@ export interface ChainTx<
10518
10538
  params: {
10519
10539
  dest: H160;
10520
10540
  value: U256;
10521
- gasLimit: SpWeightsWeightV2Weight;
10541
+ weightLimit: SpWeightsWeightV2Weight;
10542
+ ethGasLimit: U256;
10522
10543
  data: BytesLike;
10523
10544
  transactionEncoded: BytesLike;
10524
10545
  effectiveGasPrice: U256;
@@ -11767,6 +11788,7 @@ export interface ChainTx<
11767
11788
  * @param {PalletStakingAsyncPalletConfigOpPercent} chillThreshold
11768
11789
  * @param {PalletStakingAsyncPalletConfigOpPerbill} minCommission
11769
11790
  * @param {PalletStakingAsyncPalletConfigOpPercent} maxStakedRewards
11791
+ * @param {PalletStakingAsyncPalletConfigOpBool} areNominatorsSlashable
11770
11792
  **/
11771
11793
  setStakingConfigs: GenericTxCall<
11772
11794
  (
@@ -11777,6 +11799,7 @@ export interface ChainTx<
11777
11799
  chillThreshold: PalletStakingAsyncPalletConfigOpPercent,
11778
11800
  minCommission: PalletStakingAsyncPalletConfigOpPerbill,
11779
11801
  maxStakedRewards: PalletStakingAsyncPalletConfigOpPercent,
11802
+ areNominatorsSlashable: PalletStakingAsyncPalletConfigOpBool,
11780
11803
  ) => ChainSubmittableExtrinsic<
11781
11804
  {
11782
11805
  pallet: 'Staking';
@@ -11790,6 +11813,7 @@ export interface ChainTx<
11790
11813
  chillThreshold: PalletStakingAsyncPalletConfigOpPercent;
11791
11814
  minCommission: PalletStakingAsyncPalletConfigOpPerbill;
11792
11815
  maxStakedRewards: PalletStakingAsyncPalletConfigOpPercent;
11816
+ areNominatorsSlashable: PalletStakingAsyncPalletConfigOpBool;
11793
11817
  };
11794
11818
  };
11795
11819
  },
@@ -12557,16 +12581,16 @@ export interface ChainTx<
12557
12581
  * most pool members and they should be informed of changes to pool roles.
12558
12582
  *
12559
12583
  * @param {number} poolId
12560
- * @param {PalletNominationPoolsConfigOp004} newRoot
12561
- * @param {PalletNominationPoolsConfigOp004} newNominator
12562
- * @param {PalletNominationPoolsConfigOp004} newBouncer
12584
+ * @param {PalletNominationPoolsConfigOpAccountId32} newRoot
12585
+ * @param {PalletNominationPoolsConfigOpAccountId32} newNominator
12586
+ * @param {PalletNominationPoolsConfigOpAccountId32} newBouncer
12563
12587
  **/
12564
12588
  updateRoles: GenericTxCall<
12565
12589
  (
12566
12590
  poolId: number,
12567
- newRoot: PalletNominationPoolsConfigOp004,
12568
- newNominator: PalletNominationPoolsConfigOp004,
12569
- newBouncer: PalletNominationPoolsConfigOp004,
12591
+ newRoot: PalletNominationPoolsConfigOpAccountId32,
12592
+ newNominator: PalletNominationPoolsConfigOpAccountId32,
12593
+ newBouncer: PalletNominationPoolsConfigOpAccountId32,
12570
12594
  ) => ChainSubmittableExtrinsic<
12571
12595
  {
12572
12596
  pallet: 'NominationPools';
@@ -12574,9 +12598,9 @@ export interface ChainTx<
12574
12598
  name: 'UpdateRoles';
12575
12599
  params: {
12576
12600
  poolId: number;
12577
- newRoot: PalletNominationPoolsConfigOp004;
12578
- newNominator: PalletNominationPoolsConfigOp004;
12579
- newBouncer: PalletNominationPoolsConfigOp004;
12601
+ newRoot: PalletNominationPoolsConfigOpAccountId32;
12602
+ newNominator: PalletNominationPoolsConfigOpAccountId32;
12603
+ newBouncer: PalletNominationPoolsConfigOpAccountId32;
12580
12604
  };
12581
12605
  };
12582
12606
  },
@@ -14181,6 +14205,434 @@ export interface ChainTx<
14181
14205
  **/
14182
14206
  [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
14183
14207
  };
14208
+ /**
14209
+ * Pallet `MultiAssetBounties`'s transaction calls
14210
+ **/
14211
+ multiAssetBounties: {
14212
+ /**
14213
+ * Fund a new bounty with a proposed curator, initiating the payment from the
14214
+ * funding source to the bounty account/location.
14215
+ *
14216
+ * ## Dispatch Origin
14217
+ *
14218
+ * Must be [`Config::SpendOrigin`] with the `Success` value being at least
14219
+ * the bounty value converted to native balance using [`Config::BalanceConverter`].
14220
+ * The converted native amount is validated against the maximum spendable amount
14221
+ * returned by [`Config::SpendOrigin`].
14222
+ *
14223
+ * ## Details
14224
+ *
14225
+ * - The `SpendOrigin` must have sufficient permissions to fund the bounty.
14226
+ * - The bounty `value` (in asset balance) is converted to native balance for validation.
14227
+ * - In case of a funding failure, the bounty status must be updated with the
14228
+ * `check_status` call before retrying with `retry_payment` call.
14229
+ *
14230
+ * ### Parameters
14231
+ * - `asset_kind`: An indicator of the specific asset class to be funded.
14232
+ * - `value`: The total payment amount of this bounty.
14233
+ * - `curator`: Address of bounty curator.
14234
+ * - `metadata`: The hash of an on-chain stored preimage with bounty metadata.
14235
+ *
14236
+ * ## Events
14237
+ *
14238
+ * Emits [`Event::BountyCreated`] and [`Event::Paid`] if successful.
14239
+ *
14240
+ * @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} assetKind
14241
+ * @param {bigint} value
14242
+ * @param {MultiAddressLike} curator
14243
+ * @param {H256} metadata
14244
+ **/
14245
+ fundBounty: GenericTxCall<
14246
+ (
14247
+ assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset,
14248
+ value: bigint,
14249
+ curator: MultiAddressLike,
14250
+ metadata: H256,
14251
+ ) => ChainSubmittableExtrinsic<
14252
+ {
14253
+ pallet: 'MultiAssetBounties';
14254
+ palletCall: {
14255
+ name: 'FundBounty';
14256
+ params: {
14257
+ assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset;
14258
+ value: bigint;
14259
+ curator: MultiAddressLike;
14260
+ metadata: H256;
14261
+ };
14262
+ };
14263
+ },
14264
+ ChainKnownTypes
14265
+ >
14266
+ >;
14267
+
14268
+ /**
14269
+ * Fund a new child-bounty with a proposed curator, initiating the payment from the parent
14270
+ * bounty to the child-bounty account/location.
14271
+ *
14272
+ * ## Dispatch Origin
14273
+ *
14274
+ * Must be signed by the parent curator.
14275
+ *
14276
+ * ## Details
14277
+ *
14278
+ * - If `curator` is not provided, the child-bounty will default to using the parent
14279
+ * curator, allowing the parent curator to immediately call `check_status` and
14280
+ * `award_bounty` to payout the child-bounty.
14281
+ * - In case of a funding failure, the child-/bounty status must be updated with the
14282
+ * `check_status` call before retrying with `retry_payment` call.
14283
+ *
14284
+ * ### Parameters
14285
+ * - `parent_bounty_id`: Index of parent bounty for which child-bounty is being added.
14286
+ * - `value`: The payment amount of this child-bounty.
14287
+ * - `metadata`: The hash of an on-chain stored preimage with child-bounty metadata.
14288
+ * - `curator`: Address of child-bounty curator.
14289
+ *
14290
+ * ## Events
14291
+ *
14292
+ * Emits [`Event::ChildBountyCreated`] and [`Event::Paid`] if successful.
14293
+ *
14294
+ * @param {number} parentBountyId
14295
+ * @param {bigint} value
14296
+ * @param {H256} metadata
14297
+ * @param {MultiAddressLike | undefined} curator
14298
+ **/
14299
+ fundChildBounty: GenericTxCall<
14300
+ (
14301
+ parentBountyId: number,
14302
+ value: bigint,
14303
+ metadata: H256,
14304
+ curator: MultiAddressLike | undefined,
14305
+ ) => ChainSubmittableExtrinsic<
14306
+ {
14307
+ pallet: 'MultiAssetBounties';
14308
+ palletCall: {
14309
+ name: 'FundChildBounty';
14310
+ params: { parentBountyId: number; value: bigint; metadata: H256; curator: MultiAddressLike | undefined };
14311
+ };
14312
+ },
14313
+ ChainKnownTypes
14314
+ >
14315
+ >;
14316
+
14317
+ /**
14318
+ * Propose a new curator for a child-/bounty after the previous was unassigned.
14319
+ *
14320
+ * ## Dispatch Origin
14321
+ *
14322
+ * Must be signed by `T::SpendOrigin` for a bounty, or by the parent bounty curator
14323
+ * for a child-bounty.
14324
+ *
14325
+ * ## Details
14326
+ *
14327
+ * - The child-/bounty must be in the `CuratorUnassigned` state.
14328
+ * - For a bounty, the `SpendOrigin` must have sufficient permissions to propose the
14329
+ * curator.
14330
+ *
14331
+ * ### Parameters
14332
+ * - `parent_bounty_id`: Index of bounty.
14333
+ * - `child_bounty_id`: Index of child-bounty.
14334
+ * - `curator`: Account to be proposed as the curator.
14335
+ *
14336
+ * ## Events
14337
+ *
14338
+ * Emits [`Event::CuratorProposed`] if successful.
14339
+ *
14340
+ * @param {number} parentBountyId
14341
+ * @param {number | undefined} childBountyId
14342
+ * @param {MultiAddressLike} curator
14343
+ **/
14344
+ proposeCurator: GenericTxCall<
14345
+ (
14346
+ parentBountyId: number,
14347
+ childBountyId: number | undefined,
14348
+ curator: MultiAddressLike,
14349
+ ) => ChainSubmittableExtrinsic<
14350
+ {
14351
+ pallet: 'MultiAssetBounties';
14352
+ palletCall: {
14353
+ name: 'ProposeCurator';
14354
+ params: { parentBountyId: number; childBountyId: number | undefined; curator: MultiAddressLike };
14355
+ };
14356
+ },
14357
+ ChainKnownTypes
14358
+ >
14359
+ >;
14360
+
14361
+ /**
14362
+ * Accept the curator role for a child-/bounty.
14363
+ *
14364
+ * ## Dispatch Origin
14365
+ *
14366
+ * Must be signed by the proposed curator.
14367
+ *
14368
+ * ## Details
14369
+ *
14370
+ * - The child-/bounty must be in the `Funded` state.
14371
+ * - The curator must accept the role by calling this function.
14372
+ * - A deposit will be reserved from the curator and refunded upon successful payout.
14373
+ *
14374
+ * ### Parameters
14375
+ * - `parent_bounty_id`: Index of parent bounty.
14376
+ * - `child_bounty_id`: Index of child-bounty.
14377
+ *
14378
+ * ## Events
14379
+ *
14380
+ * Emits [`Event::BountyBecameActive`] if successful.
14381
+ *
14382
+ * @param {number} parentBountyId
14383
+ * @param {number | undefined} childBountyId
14384
+ **/
14385
+ acceptCurator: GenericTxCall<
14386
+ (
14387
+ parentBountyId: number,
14388
+ childBountyId: number | undefined,
14389
+ ) => ChainSubmittableExtrinsic<
14390
+ {
14391
+ pallet: 'MultiAssetBounties';
14392
+ palletCall: {
14393
+ name: 'AcceptCurator';
14394
+ params: { parentBountyId: number; childBountyId: number | undefined };
14395
+ };
14396
+ },
14397
+ ChainKnownTypes
14398
+ >
14399
+ >;
14400
+
14401
+ /**
14402
+ * Unassign curator from a child-/bounty.
14403
+ *
14404
+ * ## Dispatch Origin
14405
+ *
14406
+ * This function can only be called by the `RejectOrigin` or the child-/bounty curator.
14407
+ *
14408
+ * ## Details
14409
+ *
14410
+ * - If this function is called by the `RejectOrigin`, or by the parent curator in the case
14411
+ * of a child bounty, we assume that the curator is malicious or inactive. As a result,
14412
+ * we will slash the curator when possible.
14413
+ * - If the origin is the child-/bounty curator, we take this as a sign they are unable to
14414
+ * do their job and they willingly give up. We could slash them, but for now we allow
14415
+ * them to recover their deposit and exit without issue. (We may want to change this if
14416
+ * it is abused).
14417
+ * - If successful, the child-/bounty status is updated to `CuratorUnassigned`. To
14418
+ * reactivate the bounty, a new curator must be proposed and must accept the role.
14419
+ *
14420
+ * ### Parameters
14421
+ * - `parent_bounty_id`: Index of parent bounty.
14422
+ * - `child_bounty_id`: Index of child-bounty.
14423
+ *
14424
+ * ## Events
14425
+ *
14426
+ * Emits [`Event::CuratorUnassigned`] if successful.
14427
+ *
14428
+ * @param {number} parentBountyId
14429
+ * @param {number | undefined} childBountyId
14430
+ **/
14431
+ unassignCurator: GenericTxCall<
14432
+ (
14433
+ parentBountyId: number,
14434
+ childBountyId: number | undefined,
14435
+ ) => ChainSubmittableExtrinsic<
14436
+ {
14437
+ pallet: 'MultiAssetBounties';
14438
+ palletCall: {
14439
+ name: 'UnassignCurator';
14440
+ params: { parentBountyId: number; childBountyId: number | undefined };
14441
+ };
14442
+ },
14443
+ ChainKnownTypes
14444
+ >
14445
+ >;
14446
+
14447
+ /**
14448
+ * Awards the child-/bounty to a beneficiary account/location,
14449
+ * initiating the payout payments to both the beneficiary and the curator.
14450
+ *
14451
+ * ## Dispatch Origin
14452
+ *
14453
+ * This function can only be called by the `RejectOrigin` or the child-/bounty curator.
14454
+ *
14455
+ * ## Details
14456
+ *
14457
+ * - The child-/bounty must be in the `Active` state.
14458
+ * - if awarding a parent bounty it must not have active or funded child bounties.
14459
+ * - Initiates payout payment from the child-/bounty to the beneficiary account/location.
14460
+ * - If successful the child-/bounty status is updated to `PayoutAttempted`.
14461
+ * - In case of a payout failure, the child-/bounty status must be updated with
14462
+ * `check_status` call before retrying with `retry_payment` call.
14463
+ *
14464
+ * ### Parameters
14465
+ * - `parent_bounty_id`: Index of parent bounty.
14466
+ * - `child_bounty_id`: Index of child-bounty.
14467
+ * - `beneficiary`: Account/location to be awarded the child-/bounty.
14468
+ *
14469
+ * ## Events
14470
+ *
14471
+ * Emits [`Event::BountyAwarded`] and [`Event::Paid`] if successful.
14472
+ *
14473
+ * @param {number} parentBountyId
14474
+ * @param {number | undefined} childBountyId
14475
+ * @param {ParachainsCommonPayVersionedLocatableAccount} beneficiary
14476
+ **/
14477
+ awardBounty: GenericTxCall<
14478
+ (
14479
+ parentBountyId: number,
14480
+ childBountyId: number | undefined,
14481
+ beneficiary: ParachainsCommonPayVersionedLocatableAccount,
14482
+ ) => ChainSubmittableExtrinsic<
14483
+ {
14484
+ pallet: 'MultiAssetBounties';
14485
+ palletCall: {
14486
+ name: 'AwardBounty';
14487
+ params: {
14488
+ parentBountyId: number;
14489
+ childBountyId: number | undefined;
14490
+ beneficiary: ParachainsCommonPayVersionedLocatableAccount;
14491
+ };
14492
+ };
14493
+ },
14494
+ ChainKnownTypes
14495
+ >
14496
+ >;
14497
+
14498
+ /**
14499
+ * Cancel an active child-/bounty. A payment to send all the funds to the funding source is
14500
+ * initialized.
14501
+ *
14502
+ * ## Dispatch Origin
14503
+ *
14504
+ * This function can only be called by the `RejectOrigin` or the parent bounty curator.
14505
+ *
14506
+ * ## Details
14507
+ *
14508
+ * - If the child-/bounty is in the `Funded` state, a refund payment is initiated.
14509
+ * - If the child-/bounty is in the `Active` state, a refund payment is initiated and the
14510
+ * child-/bounty status is updated with the curator account/location.
14511
+ * - If the child-/bounty is in the funding or payout phase, it cannot be canceled.
14512
+ * - In case of a refund failure, the child-/bounty status must be updated with the
14513
+ * `check_status` call before retrying with `retry_payment` call.
14514
+ *
14515
+ * ### Parameters
14516
+ * - `parent_bounty_id`: Index of parent bounty.
14517
+ * - `child_bounty_id`: Index of child-bounty.
14518
+ *
14519
+ * ## Events
14520
+ *
14521
+ * Emits [`Event::BountyCanceled`] and [`Event::Paid`] if successful.
14522
+ *
14523
+ * @param {number} parentBountyId
14524
+ * @param {number | undefined} childBountyId
14525
+ **/
14526
+ closeBounty: GenericTxCall<
14527
+ (
14528
+ parentBountyId: number,
14529
+ childBountyId: number | undefined,
14530
+ ) => ChainSubmittableExtrinsic<
14531
+ {
14532
+ pallet: 'MultiAssetBounties';
14533
+ palletCall: {
14534
+ name: 'CloseBounty';
14535
+ params: { parentBountyId: number; childBountyId: number | undefined };
14536
+ };
14537
+ },
14538
+ ChainKnownTypes
14539
+ >
14540
+ >;
14541
+
14542
+ /**
14543
+ * Check and update the payment status of a child-/bounty.
14544
+ *
14545
+ * ## Dispatch Origin
14546
+ *
14547
+ * Must be signed.
14548
+ *
14549
+ * ## Details
14550
+ *
14551
+ * - If the child-/bounty status is `FundingAttempted`, it checks if the funding payment
14552
+ * has succeeded. If successful, the bounty status becomes `Funded`.
14553
+ * - If the child-/bounty status is `RefundAttempted`, it checks if the refund payment has
14554
+ * succeeded. If successful, the child-/bounty is removed from storage.
14555
+ * - If the child-/bounty status is `PayoutAttempted`, it checks if the payout payment has
14556
+ * succeeded. If successful, the child-/bounty is removed from storage.
14557
+ *
14558
+ * ### Parameters
14559
+ * - `parent_bounty_id`: Index of parent bounty.
14560
+ * - `child_bounty_id`: Index of child-bounty.
14561
+ *
14562
+ * ## Events
14563
+ *
14564
+ * Emits [`Event::BountyBecameActive`] if the child/bounty status transitions to `Active`.
14565
+ * Emits [`Event::BountyRefundProcessed`] if the refund payment has succeed.
14566
+ * Emits [`Event::BountyPayoutProcessed`] if the payout payment has succeed.
14567
+ * Emits [`Event::PaymentFailed`] if the funding, refund our payment payment has failed.
14568
+ *
14569
+ * @param {number} parentBountyId
14570
+ * @param {number | undefined} childBountyId
14571
+ **/
14572
+ checkStatus: GenericTxCall<
14573
+ (
14574
+ parentBountyId: number,
14575
+ childBountyId: number | undefined,
14576
+ ) => ChainSubmittableExtrinsic<
14577
+ {
14578
+ pallet: 'MultiAssetBounties';
14579
+ palletCall: {
14580
+ name: 'CheckStatus';
14581
+ params: { parentBountyId: number; childBountyId: number | undefined };
14582
+ };
14583
+ },
14584
+ ChainKnownTypes
14585
+ >
14586
+ >;
14587
+
14588
+ /**
14589
+ * Retry the funding, refund or payout payments.
14590
+ *
14591
+ * ## Dispatch Origin
14592
+ *
14593
+ * Must be signed.
14594
+ *
14595
+ * ## Details
14596
+ *
14597
+ * - If the child-/bounty status is `FundingAttempted`, it retries the funding payment from
14598
+ * funding source the child-/bounty account/location.
14599
+ * - If the child-/bounty status is `RefundAttempted`, it retries the refund payment from
14600
+ * the child-/bounty account/location to the funding source.
14601
+ * - If the child-/bounty status is `PayoutAttempted`, it retries the payout payment from
14602
+ * the child-/bounty account/location to the beneficiary account/location.
14603
+ *
14604
+ * ### Parameters
14605
+ * - `parent_bounty_id`: Index of parent bounty.
14606
+ * - `child_bounty_id`: Index of child-bounty.
14607
+ *
14608
+ * ## Events
14609
+ *
14610
+ * Emits [`Event::Paid`] if the funding, refund or payout payment has initiated.
14611
+ *
14612
+ * @param {number} parentBountyId
14613
+ * @param {number | undefined} childBountyId
14614
+ **/
14615
+ retryPayment: GenericTxCall<
14616
+ (
14617
+ parentBountyId: number,
14618
+ childBountyId: number | undefined,
14619
+ ) => ChainSubmittableExtrinsic<
14620
+ {
14621
+ pallet: 'MultiAssetBounties';
14622
+ palletCall: {
14623
+ name: 'RetryPayment';
14624
+ params: { parentBountyId: number; childBountyId: number | undefined };
14625
+ };
14626
+ },
14627
+ ChainKnownTypes
14628
+ >
14629
+ >;
14630
+
14631
+ /**
14632
+ * Generic pallet tx call
14633
+ **/
14634
+ [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
14635
+ };
14184
14636
  /**
14185
14637
  * Pallet `AssetConversionMigration`'s transaction calls
14186
14638
  **/