@dedot/chaintypes 0.49.0 → 0.50.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.
@@ -19,6 +19,7 @@ import type {
19
19
  Era,
20
20
  Header,
21
21
  UncheckedExtrinsic,
22
+ U256,
22
23
  } from 'dedot/codecs';
23
24
 
24
25
  export type FrameSystemAccountInfo = {
@@ -75,6 +76,7 @@ export type AssetHubWestendRuntimeRuntimeEvent =
75
76
  | { pallet: 'ForeignAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent002 }
76
77
  | { pallet: 'PoolAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent }
77
78
  | { pallet: 'Revive'; palletEvent: PalletReviveEvent }
79
+ | { pallet: 'AssetRewards'; palletEvent: PalletAssetRewardsEvent }
78
80
  | { pallet: 'StateTrieMigration'; palletEvent: PalletStateTrieMigrationEvent }
79
81
  | { pallet: 'AssetConversionMigration'; palletEvent: PalletAssetConversionOpsEvent };
80
82
 
@@ -2121,144 +2123,215 @@ export type PalletAssetsFreezerEvent002 =
2121
2123
  **/
2122
2124
  export type PalletReviveEvent =
2123
2125
  /**
2124
- * Contract deployed by address at the specified address.
2126
+ * A custom event emitted by the contract.
2125
2127
  **/
2126
- | { name: 'Instantiated'; data: { deployer: H160; contract: H160 } }
2128
+ {
2129
+ name: 'ContractEmitted';
2130
+ data: {
2131
+ /**
2132
+ * The contract that emitted the event.
2133
+ **/
2134
+ contract: H160;
2135
+
2136
+ /**
2137
+ * Data supplied by the contract. Metadata generated during contract compilation
2138
+ * is needed to decode it.
2139
+ **/
2140
+ data: Bytes;
2141
+
2142
+ /**
2143
+ * A list of topics used to index the event.
2144
+ * Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
2145
+ **/
2146
+ topics: Array<H256>;
2147
+ };
2148
+ };
2149
+
2150
+ /**
2151
+ * The `Event` enum of this pallet
2152
+ **/
2153
+ export type PalletAssetRewardsEvent =
2127
2154
  /**
2128
- * Contract has been removed.
2129
- *
2130
- * # Note
2131
- *
2132
- * The only way for a contract to be removed and emitting this event is by calling
2133
- * `seal_terminate`.
2155
+ * An account staked some tokens in a pool.
2134
2156
  **/
2135
2157
  | {
2136
- name: 'Terminated';
2158
+ name: 'Staked';
2137
2159
  data: {
2138
2160
  /**
2139
- * The contract that was terminated.
2161
+ * The account that staked assets.
2162
+ **/
2163
+ staker: AccountId32;
2164
+
2165
+ /**
2166
+ * The pool.
2140
2167
  **/
2141
- contract: H160;
2168
+ poolId: number;
2142
2169
 
2143
2170
  /**
2144
- * The account that received the contracts remaining balance
2171
+ * The staked asset amount.
2145
2172
  **/
2146
- beneficiary: H160;
2173
+ amount: bigint;
2147
2174
  };
2148
2175
  }
2149
2176
  /**
2150
- * Code with the specified hash has been stored.
2151
- **/
2152
- | { name: 'CodeStored'; data: { codeHash: H256; depositHeld: bigint; uploader: H160 } }
2153
- /**
2154
- * A custom event emitted by the contract.
2177
+ * An account unstaked some tokens from a pool.
2155
2178
  **/
2156
2179
  | {
2157
- name: 'ContractEmitted';
2180
+ name: 'Unstaked';
2158
2181
  data: {
2159
2182
  /**
2160
- * The contract that emitted the event.
2183
+ * The account that signed transaction.
2161
2184
  **/
2162
- contract: H160;
2185
+ caller: AccountId32;
2163
2186
 
2164
2187
  /**
2165
- * Data supplied by the contract. Metadata generated during contract compilation
2166
- * is needed to decode it.
2188
+ * The account that unstaked assets.
2167
2189
  **/
2168
- data: Bytes;
2190
+ staker: AccountId32;
2169
2191
 
2170
2192
  /**
2171
- * A list of topics used to index the event.
2172
- * Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
2193
+ * The pool.
2173
2194
  **/
2174
- topics: Array<H256>;
2195
+ poolId: number;
2196
+
2197
+ /**
2198
+ * The unstaked asset amount.
2199
+ **/
2200
+ amount: bigint;
2175
2201
  };
2176
2202
  }
2177
2203
  /**
2178
- * A code with the specified hash was removed.
2204
+ * An account harvested some rewards.
2179
2205
  **/
2180
- | { name: 'CodeRemoved'; data: { codeHash: H256; depositReleased: bigint; remover: H160 } }
2206
+ | {
2207
+ name: 'RewardsHarvested';
2208
+ data: {
2209
+ /**
2210
+ * The account that signed transaction.
2211
+ **/
2212
+ caller: AccountId32;
2213
+
2214
+ /**
2215
+ * The staker whos rewards were harvested.
2216
+ **/
2217
+ staker: AccountId32;
2218
+
2219
+ /**
2220
+ * The pool.
2221
+ **/
2222
+ poolId: number;
2223
+
2224
+ /**
2225
+ * The amount of harvested tokens.
2226
+ **/
2227
+ amount: bigint;
2228
+ };
2229
+ }
2181
2230
  /**
2182
- * A contract's code was updated.
2231
+ * A new reward pool was created.
2183
2232
  **/
2184
2233
  | {
2185
- name: 'ContractCodeUpdated';
2234
+ name: 'PoolCreated';
2186
2235
  data: {
2187
2236
  /**
2188
- * The contract that has been updated.
2237
+ * The account that created the pool.
2238
+ **/
2239
+ creator: AccountId32;
2240
+
2241
+ /**
2242
+ * The unique ID for the new pool.
2243
+ **/
2244
+ poolId: number;
2245
+
2246
+ /**
2247
+ * The staking asset.
2189
2248
  **/
2190
- contract: H160;
2249
+ stakedAssetId: StagingXcmV5Location;
2191
2250
 
2192
2251
  /**
2193
- * New code hash that was set for the contract.
2252
+ * The reward asset.
2194
2253
  **/
2195
- newCodeHash: H256;
2254
+ rewardAssetId: StagingXcmV5Location;
2196
2255
 
2197
2256
  /**
2198
- * Previous code hash of the contract.
2257
+ * The initial reward rate per block.
2199
2258
  **/
2200
- oldCodeHash: H256;
2259
+ rewardRatePerBlock: bigint;
2260
+
2261
+ /**
2262
+ * The block the pool will cease to accumulate rewards.
2263
+ **/
2264
+ expiryBlock: number;
2265
+
2266
+ /**
2267
+ * The account allowed to modify the pool.
2268
+ **/
2269
+ admin: AccountId32;
2201
2270
  };
2202
2271
  }
2203
2272
  /**
2204
- * A contract was called either by a plain account or another contract.
2205
- *
2206
- * # Note
2207
- *
2208
- * Please keep in mind that like all events this is only emitted for successful
2209
- * calls. This is because on failure all storage changes including events are
2210
- * rolled back.
2273
+ * A pool reward rate was modified by the admin.
2211
2274
  **/
2212
2275
  | {
2213
- name: 'Called';
2276
+ name: 'PoolRewardRateModified';
2214
2277
  data: {
2215
2278
  /**
2216
- * The caller of the `contract`.
2279
+ * The modified pool.
2217
2280
  **/
2218
- caller: PalletReviveExecOrigin;
2281
+ poolId: number;
2219
2282
 
2220
2283
  /**
2221
- * The contract that was called.
2284
+ * The new reward rate per block.
2222
2285
  **/
2223
- contract: H160;
2286
+ newRewardRatePerBlock: bigint;
2224
2287
  };
2225
2288
  }
2226
2289
  /**
2227
- * A contract delegate called a code hash.
2228
- *
2229
- * # Note
2230
- *
2231
- * Please keep in mind that like all events this is only emitted for successful
2232
- * calls. This is because on failure all storage changes including events are
2233
- * rolled back.
2290
+ * A pool admin was modified.
2234
2291
  **/
2235
2292
  | {
2236
- name: 'DelegateCalled';
2293
+ name: 'PoolAdminModified';
2237
2294
  data: {
2238
2295
  /**
2239
- * The contract that performed the delegate call and hence in whose context
2240
- * the `code_hash` is executed.
2296
+ * The modified pool.
2241
2297
  **/
2242
- contract: H160;
2298
+ poolId: number;
2243
2299
 
2244
2300
  /**
2245
- * The code hash that was delegate called.
2301
+ * The new admin.
2246
2302
  **/
2247
- codeHash: H256;
2303
+ newAdmin: AccountId32;
2248
2304
  };
2249
2305
  }
2250
2306
  /**
2251
- * Some funds have been transferred and held as storage deposit.
2307
+ * A pool expiry block was modified by the admin.
2252
2308
  **/
2253
- | { name: 'StorageDepositTransferredAndHeld'; data: { from: H160; to: H160; amount: bigint } }
2309
+ | {
2310
+ name: 'PoolExpiryBlockModified';
2311
+ data: {
2312
+ /**
2313
+ * The modified pool.
2314
+ **/
2315
+ poolId: number;
2316
+
2317
+ /**
2318
+ * The new expiry block.
2319
+ **/
2320
+ newExpiryBlock: number;
2321
+ };
2322
+ }
2254
2323
  /**
2255
- * Some storage deposit funds have been transferred and released.
2324
+ * A pool information was cleared after it's completion.
2256
2325
  **/
2257
- | { name: 'StorageDepositTransferredAndReleased'; data: { from: H160; to: H160; amount: bigint } };
2258
-
2259
- export type PalletReviveExecOrigin = { type: 'Root' } | { type: 'Signed'; value: AccountId32 };
2260
-
2261
- export type AssetHubWestendRuntimeRuntime = {};
2326
+ | {
2327
+ name: 'PoolCleanedUp';
2328
+ data: {
2329
+ /**
2330
+ * The cleared pool.
2331
+ **/
2332
+ poolId: number;
2333
+ };
2334
+ };
2262
2335
 
2263
2336
  /**
2264
2337
  * Inner events of this pallet.
@@ -2801,15 +2874,25 @@ export type FrameSupportTokensMiscIdAmount = { id: AssetHubWestendRuntimeRuntime
2801
2874
  export type AssetHubWestendRuntimeRuntimeHoldReason =
2802
2875
  | { type: 'NftFractionalization'; value: PalletNftFractionalizationHoldReason }
2803
2876
  | { type: 'Revive'; value: PalletReviveHoldReason }
2877
+ | { type: 'AssetRewards'; value: PalletAssetRewardsHoldReason }
2804
2878
  | { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason };
2805
2879
 
2806
2880
  export type PalletNftFractionalizationHoldReason = 'Fractionalized';
2807
2881
 
2808
2882
  export type PalletReviveHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve' | 'AddressMapping';
2809
2883
 
2884
+ export type PalletAssetRewardsHoldReason = 'PoolCreation';
2885
+
2810
2886
  export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate';
2811
2887
 
2812
- export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint };
2888
+ export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = {
2889
+ id: AssetHubWestendRuntimeRuntimeFreezeReason;
2890
+ amount: bigint;
2891
+ };
2892
+
2893
+ export type AssetHubWestendRuntimeRuntimeFreezeReason = { type: 'AssetRewards'; value: PalletAssetRewardsFreezeReason };
2894
+
2895
+ export type PalletAssetRewardsFreezeReason = 'Staked';
2813
2896
 
2814
2897
  /**
2815
2898
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -4961,6 +5044,7 @@ export type AssetHubWestendRuntimeRuntimeCall =
4961
5044
  | { pallet: 'PoolAssets'; palletCall: PalletAssetsCall003 }
4962
5045
  | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall }
4963
5046
  | { pallet: 'Revive'; palletCall: PalletReviveCall }
5047
+ | { pallet: 'AssetRewards'; palletCall: PalletAssetRewardsCall }
4964
5048
  | { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCall }
4965
5049
  | { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCall };
4966
5050
 
@@ -4988,6 +5072,7 @@ export type AssetHubWestendRuntimeRuntimeCallLike =
4988
5072
  | { pallet: 'PoolAssets'; palletCall: PalletAssetsCallLike003 }
4989
5073
  | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike }
4990
5074
  | { pallet: 'Revive'; palletCall: PalletReviveCallLike }
5075
+ | { pallet: 'AssetRewards'; palletCall: PalletAssetRewardsCallLike }
4991
5076
  | { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCallLike }
4992
5077
  | { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCallLike };
4993
5078
 
@@ -11738,7 +11823,7 @@ export type PalletReviveCall =
11738
11823
  *
11739
11824
  * # Parameters
11740
11825
  *
11741
- * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
11826
+ * * `payload`: The encoded [`crate::evm::TransactionSigned`].
11742
11827
  * * `gas_limit`: The gas limit enforced during contract execution.
11743
11828
  * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
11744
11829
  * storage usage.
@@ -11750,7 +11835,7 @@ export type PalletReviveCall =
11750
11835
  * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
11751
11836
  * signer and validating the transaction.
11752
11837
  **/
11753
- | { name: 'EthTransact'; params: { payload: Bytes; gasLimit: SpWeightsWeightV2Weight; storageDepositLimit: bigint } }
11838
+ | { name: 'EthTransact'; params: { payload: Bytes } }
11754
11839
  /**
11755
11840
  * Makes a call to an account, optionally transferring some balance.
11756
11841
  *
@@ -11901,7 +11986,7 @@ export type PalletReviveCallLike =
11901
11986
  *
11902
11987
  * # Parameters
11903
11988
  *
11904
- * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
11989
+ * * `payload`: The encoded [`crate::evm::TransactionSigned`].
11905
11990
  * * `gas_limit`: The gas limit enforced during contract execution.
11906
11991
  * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
11907
11992
  * storage usage.
@@ -11913,10 +11998,7 @@ export type PalletReviveCallLike =
11913
11998
  * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
11914
11999
  * signer and validating the transaction.
11915
12000
  **/
11916
- | {
11917
- name: 'EthTransact';
11918
- params: { payload: BytesLike; gasLimit: SpWeightsWeightV2Weight; storageDepositLimit: bigint };
11919
- }
12001
+ | { name: 'EthTransact'; params: { payload: BytesLike } }
11920
12002
  /**
11921
12003
  * Makes a call to an account, optionally transferring some balance.
11922
12004
  *
@@ -12061,6 +12143,195 @@ export type PalletReviveCallLike =
12061
12143
  **/
12062
12144
  | { name: 'DispatchAsFallbackAccount'; params: { call: AssetHubWestendRuntimeRuntimeCallLike } };
12063
12145
 
12146
+ /**
12147
+ * Pallet's callable functions.
12148
+ **/
12149
+ export type PalletAssetRewardsCall =
12150
+ /**
12151
+ * Create a new reward pool.
12152
+ *
12153
+ * Parameters:
12154
+ * - `origin`: must be `Config::CreatePoolOrigin`;
12155
+ * - `staked_asset_id`: the asset to be staked in the pool;
12156
+ * - `reward_asset_id`: the asset to be distributed as rewards;
12157
+ * - `reward_rate_per_block`: the amount of reward tokens distributed per block;
12158
+ * - `expiry`: the block number at which the pool will cease to accumulate rewards. The
12159
+ * [`DispatchTime::After`] variant evaluated at the execution time.
12160
+ * - `admin`: the account allowed to extend the pool expiration, increase the rewards rate
12161
+ * and receive the unutilized reward tokens back after the pool completion. If `None`,
12162
+ * the caller is set as an admin.
12163
+ **/
12164
+ | {
12165
+ name: 'CreatePool';
12166
+ params: {
12167
+ stakedAssetId: StagingXcmV5Location;
12168
+ rewardAssetId: StagingXcmV5Location;
12169
+ rewardRatePerBlock: bigint;
12170
+ expiry: FrameSupportScheduleDispatchTime;
12171
+ admin?: AccountId32 | undefined;
12172
+ };
12173
+ }
12174
+ /**
12175
+ * Stake additional tokens in a pool.
12176
+ *
12177
+ * A freeze is placed on the staked tokens.
12178
+ **/
12179
+ | { name: 'Stake'; params: { poolId: number; amount: bigint } }
12180
+ /**
12181
+ * Unstake tokens from a pool.
12182
+ *
12183
+ * Removes the freeze on the staked tokens.
12184
+ *
12185
+ * Parameters:
12186
+ * - origin: must be the `staker` if the pool is still active. Otherwise, any account.
12187
+ * - pool_id: the pool to unstake from.
12188
+ * - amount: the amount of tokens to unstake.
12189
+ * - staker: the account to unstake from. If `None`, the caller is used.
12190
+ **/
12191
+ | { name: 'Unstake'; params: { poolId: number; amount: bigint; staker?: AccountId32 | undefined } }
12192
+ /**
12193
+ * Harvest unclaimed pool rewards.
12194
+ *
12195
+ * Parameters:
12196
+ * - origin: must be the `staker` if the pool is still active. Otherwise, any account.
12197
+ * - pool_id: the pool to harvest from.
12198
+ * - staker: the account for which to harvest rewards. If `None`, the caller is used.
12199
+ **/
12200
+ | { name: 'HarvestRewards'; params: { poolId: number; staker?: AccountId32 | undefined } }
12201
+ /**
12202
+ * Modify a pool reward rate.
12203
+ *
12204
+ * Currently the reward rate can only be increased.
12205
+ *
12206
+ * Only the pool admin may perform this operation.
12207
+ **/
12208
+ | { name: 'SetPoolRewardRatePerBlock'; params: { poolId: number; newRewardRatePerBlock: bigint } }
12209
+ /**
12210
+ * Modify a pool admin.
12211
+ *
12212
+ * Only the pool admin may perform this operation.
12213
+ **/
12214
+ | { name: 'SetPoolAdmin'; params: { poolId: number; newAdmin: AccountId32 } }
12215
+ /**
12216
+ * Set when the pool should expire.
12217
+ *
12218
+ * Currently the expiry block can only be extended.
12219
+ *
12220
+ * Only the pool admin may perform this operation.
12221
+ **/
12222
+ | { name: 'SetPoolExpiryBlock'; params: { poolId: number; newExpiry: FrameSupportScheduleDispatchTime } }
12223
+ /**
12224
+ * Convenience method to deposit reward tokens into a pool.
12225
+ *
12226
+ * This method is not strictly necessary (tokens could be transferred directly to the
12227
+ * pool pot address), but is provided for convenience so manual derivation of the
12228
+ * account id is not required.
12229
+ **/
12230
+ | { name: 'DepositRewardTokens'; params: { poolId: number; amount: bigint } }
12231
+ /**
12232
+ * Cleanup a pool.
12233
+ *
12234
+ * Origin must be the pool admin.
12235
+ *
12236
+ * Cleanup storage, release any associated storage cost and return the remaining reward
12237
+ * tokens to the admin.
12238
+ **/
12239
+ | { name: 'CleanupPool'; params: { poolId: number } };
12240
+
12241
+ export type PalletAssetRewardsCallLike =
12242
+ /**
12243
+ * Create a new reward pool.
12244
+ *
12245
+ * Parameters:
12246
+ * - `origin`: must be `Config::CreatePoolOrigin`;
12247
+ * - `staked_asset_id`: the asset to be staked in the pool;
12248
+ * - `reward_asset_id`: the asset to be distributed as rewards;
12249
+ * - `reward_rate_per_block`: the amount of reward tokens distributed per block;
12250
+ * - `expiry`: the block number at which the pool will cease to accumulate rewards. The
12251
+ * [`DispatchTime::After`] variant evaluated at the execution time.
12252
+ * - `admin`: the account allowed to extend the pool expiration, increase the rewards rate
12253
+ * and receive the unutilized reward tokens back after the pool completion. If `None`,
12254
+ * the caller is set as an admin.
12255
+ **/
12256
+ | {
12257
+ name: 'CreatePool';
12258
+ params: {
12259
+ stakedAssetId: StagingXcmV5Location;
12260
+ rewardAssetId: StagingXcmV5Location;
12261
+ rewardRatePerBlock: bigint;
12262
+ expiry: FrameSupportScheduleDispatchTime;
12263
+ admin?: AccountId32Like | undefined;
12264
+ };
12265
+ }
12266
+ /**
12267
+ * Stake additional tokens in a pool.
12268
+ *
12269
+ * A freeze is placed on the staked tokens.
12270
+ **/
12271
+ | { name: 'Stake'; params: { poolId: number; amount: bigint } }
12272
+ /**
12273
+ * Unstake tokens from a pool.
12274
+ *
12275
+ * Removes the freeze on the staked tokens.
12276
+ *
12277
+ * Parameters:
12278
+ * - origin: must be the `staker` if the pool is still active. Otherwise, any account.
12279
+ * - pool_id: the pool to unstake from.
12280
+ * - amount: the amount of tokens to unstake.
12281
+ * - staker: the account to unstake from. If `None`, the caller is used.
12282
+ **/
12283
+ | { name: 'Unstake'; params: { poolId: number; amount: bigint; staker?: AccountId32Like | undefined } }
12284
+ /**
12285
+ * Harvest unclaimed pool rewards.
12286
+ *
12287
+ * Parameters:
12288
+ * - origin: must be the `staker` if the pool is still active. Otherwise, any account.
12289
+ * - pool_id: the pool to harvest from.
12290
+ * - staker: the account for which to harvest rewards. If `None`, the caller is used.
12291
+ **/
12292
+ | { name: 'HarvestRewards'; params: { poolId: number; staker?: AccountId32Like | undefined } }
12293
+ /**
12294
+ * Modify a pool reward rate.
12295
+ *
12296
+ * Currently the reward rate can only be increased.
12297
+ *
12298
+ * Only the pool admin may perform this operation.
12299
+ **/
12300
+ | { name: 'SetPoolRewardRatePerBlock'; params: { poolId: number; newRewardRatePerBlock: bigint } }
12301
+ /**
12302
+ * Modify a pool admin.
12303
+ *
12304
+ * Only the pool admin may perform this operation.
12305
+ **/
12306
+ | { name: 'SetPoolAdmin'; params: { poolId: number; newAdmin: AccountId32Like } }
12307
+ /**
12308
+ * Set when the pool should expire.
12309
+ *
12310
+ * Currently the expiry block can only be extended.
12311
+ *
12312
+ * Only the pool admin may perform this operation.
12313
+ **/
12314
+ | { name: 'SetPoolExpiryBlock'; params: { poolId: number; newExpiry: FrameSupportScheduleDispatchTime } }
12315
+ /**
12316
+ * Convenience method to deposit reward tokens into a pool.
12317
+ *
12318
+ * This method is not strictly necessary (tokens could be transferred directly to the
12319
+ * pool pot address), but is provided for convenience so manual derivation of the
12320
+ * account id is not required.
12321
+ **/
12322
+ | { name: 'DepositRewardTokens'; params: { poolId: number; amount: bigint } }
12323
+ /**
12324
+ * Cleanup a pool.
12325
+ *
12326
+ * Origin must be the pool admin.
12327
+ *
12328
+ * Cleanup storage, release any associated storage cost and return the remaining reward
12329
+ * tokens to the admin.
12330
+ **/
12331
+ | { name: 'CleanupPool'; params: { poolId: number } };
12332
+
12333
+ export type FrameSupportScheduleDispatchTime = { type: 'At'; value: number } | { type: 'After'; value: number };
12334
+
12064
12335
  /**
12065
12336
  * Contains a variant per dispatchable extrinsic that this pallet has.
12066
12337
  **/
@@ -12984,13 +13255,6 @@ export type PalletAssetConversionError =
12984
13255
  **/
12985
13256
  | 'BelowMinimum';
12986
13257
 
12987
- export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = {
12988
- id: AssetHubWestendRuntimeRuntimeFreezeReason;
12989
- amount: bigint;
12990
- };
12991
-
12992
- export type AssetHubWestendRuntimeRuntimeFreezeReason = null;
12993
-
12994
13258
  /**
12995
13259
  * The `Error` enum of this pallet.
12996
13260
  **/
@@ -13005,7 +13269,6 @@ export type PalletReviveWasmCodeInfo = {
13005
13269
  deposit: bigint;
13006
13270
  refcount: bigint;
13007
13271
  codeLen: number;
13008
- apiVersion: number;
13009
13272
  behaviourVersion: number;
13010
13273
  };
13011
13274
 
@@ -13201,6 +13464,10 @@ export type PalletReviveError =
13201
13464
  * Failed to convert a U256 to a Balance.
13202
13465
  **/
13203
13466
  | 'BalanceConversionFailed'
13467
+ /**
13468
+ * Failed to convert an EVM balance to a native balance.
13469
+ **/
13470
+ | 'DecimalPrecisionLoss'
13204
13471
  /**
13205
13472
  * Immutable data can only be set during deploys and only be read during calls.
13206
13473
  * Additionally, it is only valid to set the data once and it must not be empty.
@@ -13215,7 +13482,72 @@ export type PalletReviveError =
13215
13482
  /**
13216
13483
  * Tried to map an account that is already mapped.
13217
13484
  **/
13218
- | 'AccountAlreadyMapped';
13485
+ | 'AccountAlreadyMapped'
13486
+ /**
13487
+ * The transaction used to dry-run a contract is invalid.
13488
+ **/
13489
+ | 'InvalidGenericTransaction';
13490
+
13491
+ export type PalletAssetRewardsPoolStakerInfo = { amount: bigint; rewards: bigint; rewardPerTokenPaid: bigint };
13492
+
13493
+ export type PalletAssetRewardsPoolInfo = {
13494
+ stakedAssetId: StagingXcmV5Location;
13495
+ rewardAssetId: StagingXcmV5Location;
13496
+ rewardRatePerBlock: bigint;
13497
+ expiryBlock: number;
13498
+ admin: AccountId32;
13499
+ totalTokensStaked: bigint;
13500
+ rewardPerTokenStored: bigint;
13501
+ lastUpdateBlock: number;
13502
+ account: AccountId32;
13503
+ };
13504
+
13505
+ export type FrameSupportTokensFungibleHoldConsideration = bigint;
13506
+
13507
+ /**
13508
+ * The `Error` enum of this pallet.
13509
+ **/
13510
+ export type PalletAssetRewardsError =
13511
+ /**
13512
+ * The staker does not have enough tokens to perform the operation.
13513
+ **/
13514
+ | 'NotEnoughTokens'
13515
+ /**
13516
+ * An operation was attempted on a non-existent pool.
13517
+ **/
13518
+ | 'NonExistentPool'
13519
+ /**
13520
+ * An operation was attempted for a non-existent staker.
13521
+ **/
13522
+ | 'NonExistentStaker'
13523
+ /**
13524
+ * An operation was attempted with a non-existent asset.
13525
+ **/
13526
+ | 'NonExistentAsset'
13527
+ /**
13528
+ * There was an error converting a block number.
13529
+ **/
13530
+ | 'BlockNumberConversionError'
13531
+ /**
13532
+ * The expiry block must be in the future.
13533
+ **/
13534
+ | 'ExpiryBlockMustBeInTheFuture'
13535
+ /**
13536
+ * Insufficient funds to create the freeze.
13537
+ **/
13538
+ | 'InsufficientFunds'
13539
+ /**
13540
+ * The expiry block can be only extended.
13541
+ **/
13542
+ | 'ExpiryCut'
13543
+ /**
13544
+ * The reward rate per block can be only increased.
13545
+ **/
13546
+ | 'RewardRateCut'
13547
+ /**
13548
+ * The pool still has staked tokens or rewards.
13549
+ **/
13550
+ | 'NonEmptyPool';
13219
13551
 
13220
13552
  /**
13221
13553
  * The `Error` enum of this pallet.
@@ -13238,6 +13570,18 @@ export type PalletAssetConversionOpsError =
13238
13570
  **/
13239
13571
  | 'PartialTransfer';
13240
13572
 
13573
+ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
13574
+ FrameSystemExtensionsCheckNonZeroSender,
13575
+ FrameSystemExtensionsCheckSpecVersion,
13576
+ FrameSystemExtensionsCheckTxVersion,
13577
+ FrameSystemExtensionsCheckGenesis,
13578
+ FrameSystemExtensionsCheckMortality,
13579
+ FrameSystemExtensionsCheckNonce,
13580
+ FrameSystemExtensionsCheckWeight,
13581
+ PalletAssetConversionTxPaymentChargeAssetTxPayment,
13582
+ FrameMetadataHashExtensionCheckMetadataHash,
13583
+ ];
13584
+
13241
13585
  export type FrameSystemExtensionsCheckNonZeroSender = {};
13242
13586
 
13243
13587
  export type FrameSystemExtensionsCheckSpecVersion = {};
@@ -13257,12 +13601,12 @@ export type PalletAssetConversionTxPaymentChargeAssetTxPayment = {
13257
13601
  assetId?: StagingXcmV5Location | undefined;
13258
13602
  };
13259
13603
 
13260
- export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {};
13261
-
13262
13604
  export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
13263
13605
 
13264
13606
  export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
13265
13607
 
13608
+ export type AssetHubWestendRuntimeRuntime = {};
13609
+
13266
13610
  export type SpConsensusSlotsSlotDuration = bigint;
13267
13611
 
13268
13612
  export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
@@ -13385,9 +13729,7 @@ export type PalletRevivePrimitivesContractResult = {
13385
13729
  gasConsumed: SpWeightsWeightV2Weight;
13386
13730
  gasRequired: SpWeightsWeightV2Weight;
13387
13731
  storageDeposit: PalletRevivePrimitivesStorageDeposit;
13388
- debugMessage: Bytes;
13389
13732
  result: Result<PalletRevivePrimitivesExecReturnValue, DispatchError>;
13390
- events?: Array<FrameSystemEventRecord> | undefined;
13391
13733
  };
13392
13734
 
13393
13735
  export type PalletRevivePrimitivesExecReturnValue = { flags: PalletReviveUapiFlagsReturnFlags; data: Bytes };
@@ -13404,9 +13746,7 @@ export type PalletRevivePrimitivesContractResultInstantiateReturnValue = {
13404
13746
  gasConsumed: SpWeightsWeightV2Weight;
13405
13747
  gasRequired: SpWeightsWeightV2Weight;
13406
13748
  storageDeposit: PalletRevivePrimitivesStorageDeposit;
13407
- debugMessage: Bytes;
13408
13749
  result: Result<PalletRevivePrimitivesInstantiateReturnValue, DispatchError>;
13409
- events?: Array<FrameSystemEventRecord> | undefined;
13410
13750
  };
13411
13751
 
13412
13752
  export type PalletRevivePrimitivesInstantiateReturnValue = {
@@ -13414,13 +13754,41 @@ export type PalletRevivePrimitivesInstantiateReturnValue = {
13414
13754
  addr: H160;
13415
13755
  };
13416
13756
 
13417
- export type PalletRevivePrimitivesEthContractResult = {
13418
- fee: bigint;
13757
+ export type PalletReviveEvmApiRpcTypesGenGenericTransaction = {
13758
+ accessList?: Array<PalletReviveEvmApiRpcTypesGenAccessListEntry> | undefined;
13759
+ blobVersionedHashes: Array<H256>;
13760
+ blobs: Array<PalletReviveEvmApiByteBytes>;
13761
+ chainId?: U256 | undefined;
13762
+ from?: H160 | undefined;
13763
+ gas?: U256 | undefined;
13764
+ gasPrice?: U256 | undefined;
13765
+ input?: PalletReviveEvmApiByteBytes | undefined;
13766
+ maxFeePerBlobGas?: U256 | undefined;
13767
+ maxFeePerGas?: U256 | undefined;
13768
+ maxPriorityFeePerGas?: U256 | undefined;
13769
+ nonce?: U256 | undefined;
13770
+ to?: H160 | undefined;
13771
+ rType?: PalletReviveEvmApiByte | undefined;
13772
+ value?: U256 | undefined;
13773
+ };
13774
+
13775
+ export type PalletReviveEvmApiRpcTypesGenAccessListEntry = { address: H160; storageKeys: Array<H256> };
13776
+
13777
+ export type PalletReviveEvmApiByteBytes = Bytes;
13778
+
13779
+ export type PalletReviveEvmApiByte = number;
13780
+
13781
+ export type PalletRevivePrimitivesEthTransactInfo = {
13419
13782
  gasRequired: SpWeightsWeightV2Weight;
13420
13783
  storageDeposit: bigint;
13421
- result: Result<Bytes, DispatchError>;
13784
+ ethGas: U256;
13785
+ data: Bytes;
13422
13786
  };
13423
13787
 
13788
+ export type PalletRevivePrimitivesEthTransactError =
13789
+ | { type: 'Data'; value: Bytes }
13790
+ | { type: 'Message'; value: string };
13791
+
13424
13792
  export type PalletRevivePrimitivesCodeUploadReturnValue = { codeHash: H256; deposit: bigint };
13425
13793
 
13426
13794
  export type PalletRevivePrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed';
@@ -13448,5 +13816,6 @@ export type AssetHubWestendRuntimeRuntimeError =
13448
13816
  | { pallet: 'ForeignAssetsFreezer'; palletError: PalletAssetsFreezerError }
13449
13817
  | { pallet: 'PoolAssetsFreezer'; palletError: PalletAssetsFreezerError }
13450
13818
  | { pallet: 'Revive'; palletError: PalletReviveError }
13819
+ | { pallet: 'AssetRewards'; palletError: PalletAssetRewardsError }
13451
13820
  | { pallet: 'StateTrieMigration'; palletError: PalletStateTrieMigrationError }
13452
13821
  | { pallet: 'AssetConversionMigration'; palletError: PalletAssetConversionOpsError };