@dedot/chaintypes 0.48.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.
- package/package.json +2 -2
- package/westend-asset-hub/consts.d.ts +25 -1
- package/westend-asset-hub/errors.d.ts +64 -0
- package/westend-asset-hub/events.d.ts +155 -85
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +90 -39
- package/westend-asset-hub/runtime.d.ts +19 -1
- package/westend-asset-hub/tx.d.ts +306 -8
- package/westend-asset-hub/types.d.ts +458 -97
|
@@ -76,6 +76,7 @@ export type AssetHubWestendRuntimeRuntimeEvent =
|
|
|
76
76
|
| { pallet: 'ForeignAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent002 }
|
|
77
77
|
| { pallet: 'PoolAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent }
|
|
78
78
|
| { pallet: 'Revive'; palletEvent: PalletReviveEvent }
|
|
79
|
+
| { pallet: 'AssetRewards'; palletEvent: PalletAssetRewardsEvent }
|
|
79
80
|
| { pallet: 'StateTrieMigration'; palletEvent: PalletStateTrieMigrationEvent }
|
|
80
81
|
| { pallet: 'AssetConversionMigration'; palletEvent: PalletAssetConversionOpsEvent };
|
|
81
82
|
|
|
@@ -664,7 +665,14 @@ export type StagingXcmV5Instruction =
|
|
|
664
665
|
type: 'TransferReserveAsset';
|
|
665
666
|
value: { assets: StagingXcmV5AssetAssets; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
666
667
|
}
|
|
667
|
-
| {
|
|
668
|
+
| {
|
|
669
|
+
type: 'Transact';
|
|
670
|
+
value: {
|
|
671
|
+
originKind: XcmV3OriginKind;
|
|
672
|
+
fallbackMaxWeight?: SpWeightsWeightV2Weight | undefined;
|
|
673
|
+
call: XcmDoubleEncoded;
|
|
674
|
+
};
|
|
675
|
+
}
|
|
668
676
|
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
669
677
|
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
670
678
|
| { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
|
|
@@ -697,7 +705,6 @@ export type StagingXcmV5Instruction =
|
|
|
697
705
|
| { type: 'SetErrorHandler'; value: StagingXcmV5Xcm }
|
|
698
706
|
| { type: 'SetAppendix'; value: StagingXcmV5Xcm }
|
|
699
707
|
| { type: 'ClearError' }
|
|
700
|
-
| { type: 'SetAssetClaimer'; value: { location: StagingXcmV5Location } }
|
|
701
708
|
| { type: 'ClaimAsset'; value: { assets: StagingXcmV5AssetAssets; ticket: StagingXcmV5Location } }
|
|
702
709
|
| { type: 'Trap'; value: bigint }
|
|
703
710
|
| { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
|
|
@@ -742,10 +749,8 @@ export type StagingXcmV5Instruction =
|
|
|
742
749
|
remoteXcm: StagingXcmV5Xcm;
|
|
743
750
|
};
|
|
744
751
|
}
|
|
745
|
-
| {
|
|
746
|
-
|
|
747
|
-
value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm };
|
|
748
|
-
};
|
|
752
|
+
| { type: 'ExecuteWithOrigin'; value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm } }
|
|
753
|
+
| { type: 'SetHints'; value: { hints: Array<StagingXcmV5Hint> } };
|
|
749
754
|
|
|
750
755
|
export type StagingXcmV5AssetAssets = Array<StagingXcmV5Asset>;
|
|
751
756
|
|
|
@@ -819,6 +824,8 @@ export type StagingXcmV5AssetAssetTransferFilter =
|
|
|
819
824
|
| { type: 'ReserveDeposit'; value: StagingXcmV5AssetAssetFilter }
|
|
820
825
|
| { type: 'ReserveWithdraw'; value: StagingXcmV5AssetAssetFilter };
|
|
821
826
|
|
|
827
|
+
export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
|
|
828
|
+
|
|
822
829
|
export type XcmVersionedAssets =
|
|
823
830
|
| { type: 'V3'; value: XcmV3MultiassetMultiAssets }
|
|
824
831
|
| { type: 'V4'; value: StagingXcmV4AssetAssets }
|
|
@@ -2116,144 +2123,215 @@ export type PalletAssetsFreezerEvent002 =
|
|
|
2116
2123
|
**/
|
|
2117
2124
|
export type PalletReviveEvent =
|
|
2118
2125
|
/**
|
|
2119
|
-
*
|
|
2126
|
+
* A custom event emitted by the contract.
|
|
2120
2127
|
**/
|
|
2121
|
-
|
|
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 =
|
|
2122
2154
|
/**
|
|
2123
|
-
*
|
|
2124
|
-
*
|
|
2125
|
-
* # Note
|
|
2126
|
-
*
|
|
2127
|
-
* The only way for a contract to be removed and emitting this event is by calling
|
|
2128
|
-
* `seal_terminate`.
|
|
2155
|
+
* An account staked some tokens in a pool.
|
|
2129
2156
|
**/
|
|
2130
2157
|
| {
|
|
2131
|
-
name: '
|
|
2158
|
+
name: 'Staked';
|
|
2132
2159
|
data: {
|
|
2133
2160
|
/**
|
|
2134
|
-
* The
|
|
2161
|
+
* The account that staked assets.
|
|
2135
2162
|
**/
|
|
2136
|
-
|
|
2163
|
+
staker: AccountId32;
|
|
2137
2164
|
|
|
2138
2165
|
/**
|
|
2139
|
-
* The
|
|
2166
|
+
* The pool.
|
|
2140
2167
|
**/
|
|
2141
|
-
|
|
2168
|
+
poolId: number;
|
|
2169
|
+
|
|
2170
|
+
/**
|
|
2171
|
+
* The staked asset amount.
|
|
2172
|
+
**/
|
|
2173
|
+
amount: bigint;
|
|
2142
2174
|
};
|
|
2143
2175
|
}
|
|
2144
2176
|
/**
|
|
2145
|
-
*
|
|
2146
|
-
**/
|
|
2147
|
-
| { name: 'CodeStored'; data: { codeHash: H256; depositHeld: bigint; uploader: H160 } }
|
|
2148
|
-
/**
|
|
2149
|
-
* A custom event emitted by the contract.
|
|
2177
|
+
* An account unstaked some tokens from a pool.
|
|
2150
2178
|
**/
|
|
2151
2179
|
| {
|
|
2152
|
-
name: '
|
|
2180
|
+
name: 'Unstaked';
|
|
2153
2181
|
data: {
|
|
2154
2182
|
/**
|
|
2155
|
-
* The
|
|
2183
|
+
* The account that signed transaction.
|
|
2156
2184
|
**/
|
|
2157
|
-
|
|
2185
|
+
caller: AccountId32;
|
|
2158
2186
|
|
|
2159
2187
|
/**
|
|
2160
|
-
*
|
|
2161
|
-
* is needed to decode it.
|
|
2188
|
+
* The account that unstaked assets.
|
|
2162
2189
|
**/
|
|
2163
|
-
|
|
2190
|
+
staker: AccountId32;
|
|
2164
2191
|
|
|
2165
2192
|
/**
|
|
2166
|
-
*
|
|
2167
|
-
* Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
|
|
2193
|
+
* The pool.
|
|
2168
2194
|
**/
|
|
2169
|
-
|
|
2195
|
+
poolId: number;
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* The unstaked asset amount.
|
|
2199
|
+
**/
|
|
2200
|
+
amount: bigint;
|
|
2170
2201
|
};
|
|
2171
2202
|
}
|
|
2172
2203
|
/**
|
|
2173
|
-
*
|
|
2204
|
+
* An account harvested some rewards.
|
|
2174
2205
|
**/
|
|
2175
|
-
| {
|
|
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
|
+
}
|
|
2176
2230
|
/**
|
|
2177
|
-
* A
|
|
2231
|
+
* A new reward pool was created.
|
|
2178
2232
|
**/
|
|
2179
2233
|
| {
|
|
2180
|
-
name: '
|
|
2234
|
+
name: 'PoolCreated';
|
|
2181
2235
|
data: {
|
|
2182
2236
|
/**
|
|
2183
|
-
* The
|
|
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.
|
|
2184
2248
|
**/
|
|
2185
|
-
|
|
2249
|
+
stakedAssetId: StagingXcmV5Location;
|
|
2186
2250
|
|
|
2187
2251
|
/**
|
|
2188
|
-
*
|
|
2252
|
+
* The reward asset.
|
|
2189
2253
|
**/
|
|
2190
|
-
|
|
2254
|
+
rewardAssetId: StagingXcmV5Location;
|
|
2191
2255
|
|
|
2192
2256
|
/**
|
|
2193
|
-
*
|
|
2257
|
+
* The initial reward rate per block.
|
|
2194
2258
|
**/
|
|
2195
|
-
|
|
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;
|
|
2196
2270
|
};
|
|
2197
2271
|
}
|
|
2198
2272
|
/**
|
|
2199
|
-
* A
|
|
2200
|
-
*
|
|
2201
|
-
* # Note
|
|
2202
|
-
*
|
|
2203
|
-
* Please keep in mind that like all events this is only emitted for successful
|
|
2204
|
-
* calls. This is because on failure all storage changes including events are
|
|
2205
|
-
* rolled back.
|
|
2273
|
+
* A pool reward rate was modified by the admin.
|
|
2206
2274
|
**/
|
|
2207
2275
|
| {
|
|
2208
|
-
name: '
|
|
2276
|
+
name: 'PoolRewardRateModified';
|
|
2209
2277
|
data: {
|
|
2210
2278
|
/**
|
|
2211
|
-
* The
|
|
2279
|
+
* The modified pool.
|
|
2212
2280
|
**/
|
|
2213
|
-
|
|
2281
|
+
poolId: number;
|
|
2214
2282
|
|
|
2215
2283
|
/**
|
|
2216
|
-
* The
|
|
2284
|
+
* The new reward rate per block.
|
|
2217
2285
|
**/
|
|
2218
|
-
|
|
2286
|
+
newRewardRatePerBlock: bigint;
|
|
2219
2287
|
};
|
|
2220
2288
|
}
|
|
2221
2289
|
/**
|
|
2222
|
-
* A
|
|
2223
|
-
*
|
|
2224
|
-
* # Note
|
|
2225
|
-
*
|
|
2226
|
-
* Please keep in mind that like all events this is only emitted for successful
|
|
2227
|
-
* calls. This is because on failure all storage changes including events are
|
|
2228
|
-
* rolled back.
|
|
2290
|
+
* A pool admin was modified.
|
|
2229
2291
|
**/
|
|
2230
2292
|
| {
|
|
2231
|
-
name: '
|
|
2293
|
+
name: 'PoolAdminModified';
|
|
2232
2294
|
data: {
|
|
2233
2295
|
/**
|
|
2234
|
-
* The
|
|
2235
|
-
* the `code_hash` is executed.
|
|
2296
|
+
* The modified pool.
|
|
2236
2297
|
**/
|
|
2237
|
-
|
|
2298
|
+
poolId: number;
|
|
2238
2299
|
|
|
2239
2300
|
/**
|
|
2240
|
-
* The
|
|
2301
|
+
* The new admin.
|
|
2241
2302
|
**/
|
|
2242
|
-
|
|
2303
|
+
newAdmin: AccountId32;
|
|
2243
2304
|
};
|
|
2244
2305
|
}
|
|
2245
2306
|
/**
|
|
2246
|
-
*
|
|
2307
|
+
* A pool expiry block was modified by the admin.
|
|
2247
2308
|
**/
|
|
2248
|
-
| {
|
|
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
|
+
}
|
|
2249
2323
|
/**
|
|
2250
|
-
*
|
|
2324
|
+
* A pool information was cleared after it's completion.
|
|
2251
2325
|
**/
|
|
2252
|
-
| {
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2326
|
+
| {
|
|
2327
|
+
name: 'PoolCleanedUp';
|
|
2328
|
+
data: {
|
|
2329
|
+
/**
|
|
2330
|
+
* The cleared pool.
|
|
2331
|
+
**/
|
|
2332
|
+
poolId: number;
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2257
2335
|
|
|
2258
2336
|
/**
|
|
2259
2337
|
* Inner events of this pallet.
|
|
@@ -2796,15 +2874,25 @@ export type FrameSupportTokensMiscIdAmount = { id: AssetHubWestendRuntimeRuntime
|
|
|
2796
2874
|
export type AssetHubWestendRuntimeRuntimeHoldReason =
|
|
2797
2875
|
| { type: 'NftFractionalization'; value: PalletNftFractionalizationHoldReason }
|
|
2798
2876
|
| { type: 'Revive'; value: PalletReviveHoldReason }
|
|
2877
|
+
| { type: 'AssetRewards'; value: PalletAssetRewardsHoldReason }
|
|
2799
2878
|
| { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason };
|
|
2800
2879
|
|
|
2801
2880
|
export type PalletNftFractionalizationHoldReason = 'Fractionalized';
|
|
2802
2881
|
|
|
2803
2882
|
export type PalletReviveHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve' | 'AddressMapping';
|
|
2804
2883
|
|
|
2884
|
+
export type PalletAssetRewardsHoldReason = 'PoolCreation';
|
|
2885
|
+
|
|
2805
2886
|
export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate';
|
|
2806
2887
|
|
|
2807
|
-
export type
|
|
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';
|
|
2808
2896
|
|
|
2809
2897
|
/**
|
|
2810
2898
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -4595,6 +4683,23 @@ export type CumulusPalletXcmCall = null;
|
|
|
4595
4683
|
|
|
4596
4684
|
export type CumulusPalletXcmCallLike = null;
|
|
4597
4685
|
|
|
4686
|
+
export type BpXcmBridgeHubRouterBridgeState = { deliveryFeeFactor: FixedU128; isCongested: boolean };
|
|
4687
|
+
|
|
4688
|
+
/**
|
|
4689
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
4690
|
+
**/
|
|
4691
|
+
export type PalletXcmBridgeHubRouterCall =
|
|
4692
|
+
/**
|
|
4693
|
+
* Notification about congested bridge queue.
|
|
4694
|
+
**/
|
|
4695
|
+
{ name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } };
|
|
4696
|
+
|
|
4697
|
+
export type PalletXcmBridgeHubRouterCallLike =
|
|
4698
|
+
/**
|
|
4699
|
+
* Notification about congested bridge queue.
|
|
4700
|
+
**/
|
|
4701
|
+
{ name: 'ReportBridgeStatus'; params: { bridgeId: H256; isCongested: boolean } };
|
|
4702
|
+
|
|
4598
4703
|
export type PalletMessageQueueBookState = {
|
|
4599
4704
|
begin: number;
|
|
4600
4705
|
end: number;
|
|
@@ -4926,6 +5031,7 @@ export type AssetHubWestendRuntimeRuntimeCall =
|
|
|
4926
5031
|
| { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCall }
|
|
4927
5032
|
| { pallet: 'PolkadotXcm'; palletCall: PalletXcmCall }
|
|
4928
5033
|
| { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCall }
|
|
5034
|
+
| { pallet: 'ToRococoXcmRouter'; palletCall: PalletXcmBridgeHubRouterCall }
|
|
4929
5035
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall }
|
|
4930
5036
|
| { pallet: 'Utility'; palletCall: PalletUtilityCall }
|
|
4931
5037
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCall }
|
|
@@ -4938,6 +5044,7 @@ export type AssetHubWestendRuntimeRuntimeCall =
|
|
|
4938
5044
|
| { pallet: 'PoolAssets'; palletCall: PalletAssetsCall003 }
|
|
4939
5045
|
| { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall }
|
|
4940
5046
|
| { pallet: 'Revive'; palletCall: PalletReviveCall }
|
|
5047
|
+
| { pallet: 'AssetRewards'; palletCall: PalletAssetRewardsCall }
|
|
4941
5048
|
| { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCall }
|
|
4942
5049
|
| { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCall };
|
|
4943
5050
|
|
|
@@ -4952,6 +5059,7 @@ export type AssetHubWestendRuntimeRuntimeCallLike =
|
|
|
4952
5059
|
| { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike }
|
|
4953
5060
|
| { pallet: 'PolkadotXcm'; palletCall: PalletXcmCallLike }
|
|
4954
5061
|
| { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCallLike }
|
|
5062
|
+
| { pallet: 'ToRococoXcmRouter'; palletCall: PalletXcmBridgeHubRouterCallLike }
|
|
4955
5063
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike }
|
|
4956
5064
|
| { pallet: 'Utility'; palletCall: PalletUtilityCallLike }
|
|
4957
5065
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCallLike }
|
|
@@ -4964,6 +5072,7 @@ export type AssetHubWestendRuntimeRuntimeCallLike =
|
|
|
4964
5072
|
| { pallet: 'PoolAssets'; palletCall: PalletAssetsCallLike003 }
|
|
4965
5073
|
| { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike }
|
|
4966
5074
|
| { pallet: 'Revive'; palletCall: PalletReviveCallLike }
|
|
5075
|
+
| { pallet: 'AssetRewards'; palletCall: PalletAssetRewardsCallLike }
|
|
4967
5076
|
| { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCallLike }
|
|
4968
5077
|
| { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCallLike };
|
|
4969
5078
|
|
|
@@ -11726,7 +11835,7 @@ export type PalletReviveCall =
|
|
|
11726
11835
|
* runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
|
|
11727
11836
|
* signer and validating the transaction.
|
|
11728
11837
|
**/
|
|
11729
|
-
| { name: 'EthTransact'; params: { payload: Bytes
|
|
11838
|
+
| { name: 'EthTransact'; params: { payload: Bytes } }
|
|
11730
11839
|
/**
|
|
11731
11840
|
* Makes a call to an account, optionally transferring some balance.
|
|
11732
11841
|
*
|
|
@@ -11889,10 +11998,7 @@ export type PalletReviveCallLike =
|
|
|
11889
11998
|
* runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
|
|
11890
11999
|
* signer and validating the transaction.
|
|
11891
12000
|
**/
|
|
11892
|
-
| {
|
|
11893
|
-
name: 'EthTransact';
|
|
11894
|
-
params: { payload: BytesLike; gasLimit: SpWeightsWeightV2Weight; storageDepositLimit: bigint };
|
|
11895
|
-
}
|
|
12001
|
+
| { name: 'EthTransact'; params: { payload: BytesLike } }
|
|
11896
12002
|
/**
|
|
11897
12003
|
* Makes a call to an account, optionally transferring some balance.
|
|
11898
12004
|
*
|
|
@@ -12037,6 +12143,195 @@ export type PalletReviveCallLike =
|
|
|
12037
12143
|
**/
|
|
12038
12144
|
| { name: 'DispatchAsFallbackAccount'; params: { call: AssetHubWestendRuntimeRuntimeCallLike } };
|
|
12039
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
|
+
|
|
12040
12335
|
/**
|
|
12041
12336
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
12042
12337
|
**/
|
|
@@ -12960,13 +13255,6 @@ export type PalletAssetConversionError =
|
|
|
12960
13255
|
**/
|
|
12961
13256
|
| 'BelowMinimum';
|
|
12962
13257
|
|
|
12963
|
-
export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = {
|
|
12964
|
-
id: AssetHubWestendRuntimeRuntimeFreezeReason;
|
|
12965
|
-
amount: bigint;
|
|
12966
|
-
};
|
|
12967
|
-
|
|
12968
|
-
export type AssetHubWestendRuntimeRuntimeFreezeReason = null;
|
|
12969
|
-
|
|
12970
13258
|
/**
|
|
12971
13259
|
* The `Error` enum of this pallet.
|
|
12972
13260
|
**/
|
|
@@ -12981,7 +13269,6 @@ export type PalletReviveWasmCodeInfo = {
|
|
|
12981
13269
|
deposit: bigint;
|
|
12982
13270
|
refcount: bigint;
|
|
12983
13271
|
codeLen: number;
|
|
12984
|
-
apiVersion: number;
|
|
12985
13272
|
behaviourVersion: number;
|
|
12986
13273
|
};
|
|
12987
13274
|
|
|
@@ -13195,7 +13482,72 @@ export type PalletReviveError =
|
|
|
13195
13482
|
/**
|
|
13196
13483
|
* Tried to map an account that is already mapped.
|
|
13197
13484
|
**/
|
|
13198
|
-
| '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';
|
|
13199
13551
|
|
|
13200
13552
|
/**
|
|
13201
13553
|
* The `Error` enum of this pallet.
|
|
@@ -13218,6 +13570,18 @@ export type PalletAssetConversionOpsError =
|
|
|
13218
13570
|
**/
|
|
13219
13571
|
| 'PartialTransfer';
|
|
13220
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
|
+
|
|
13221
13585
|
export type FrameSystemExtensionsCheckNonZeroSender = {};
|
|
13222
13586
|
|
|
13223
13587
|
export type FrameSystemExtensionsCheckSpecVersion = {};
|
|
@@ -13237,12 +13601,12 @@ export type PalletAssetConversionTxPaymentChargeAssetTxPayment = {
|
|
|
13237
13601
|
assetId?: StagingXcmV5Location | undefined;
|
|
13238
13602
|
};
|
|
13239
13603
|
|
|
13240
|
-
export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {};
|
|
13241
|
-
|
|
13242
13604
|
export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
|
|
13243
13605
|
|
|
13244
13606
|
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
13245
13607
|
|
|
13608
|
+
export type AssetHubWestendRuntimeRuntime = {};
|
|
13609
|
+
|
|
13246
13610
|
export type SpConsensusSlotsSlotDuration = bigint;
|
|
13247
13611
|
|
|
13248
13612
|
export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
|
|
@@ -13365,9 +13729,7 @@ export type PalletRevivePrimitivesContractResult = {
|
|
|
13365
13729
|
gasConsumed: SpWeightsWeightV2Weight;
|
|
13366
13730
|
gasRequired: SpWeightsWeightV2Weight;
|
|
13367
13731
|
storageDeposit: PalletRevivePrimitivesStorageDeposit;
|
|
13368
|
-
debugMessage: Bytes;
|
|
13369
13732
|
result: Result<PalletRevivePrimitivesExecReturnValue, DispatchError>;
|
|
13370
|
-
events?: Array<FrameSystemEventRecord> | undefined;
|
|
13371
13733
|
};
|
|
13372
13734
|
|
|
13373
13735
|
export type PalletRevivePrimitivesExecReturnValue = { flags: PalletReviveUapiFlagsReturnFlags; data: Bytes };
|
|
@@ -13384,9 +13746,7 @@ export type PalletRevivePrimitivesContractResultInstantiateReturnValue = {
|
|
|
13384
13746
|
gasConsumed: SpWeightsWeightV2Weight;
|
|
13385
13747
|
gasRequired: SpWeightsWeightV2Weight;
|
|
13386
13748
|
storageDeposit: PalletRevivePrimitivesStorageDeposit;
|
|
13387
|
-
debugMessage: Bytes;
|
|
13388
13749
|
result: Result<PalletRevivePrimitivesInstantiateReturnValue, DispatchError>;
|
|
13389
|
-
events?: Array<FrameSystemEventRecord> | undefined;
|
|
13390
13750
|
};
|
|
13391
13751
|
|
|
13392
13752
|
export type PalletRevivePrimitivesInstantiateReturnValue = {
|
|
@@ -13456,5 +13816,6 @@ export type AssetHubWestendRuntimeRuntimeError =
|
|
|
13456
13816
|
| { pallet: 'ForeignAssetsFreezer'; palletError: PalletAssetsFreezerError }
|
|
13457
13817
|
| { pallet: 'PoolAssetsFreezer'; palletError: PalletAssetsFreezerError }
|
|
13458
13818
|
| { pallet: 'Revive'; palletError: PalletReviveError }
|
|
13819
|
+
| { pallet: 'AssetRewards'; palletError: PalletAssetRewardsError }
|
|
13459
13820
|
| { pallet: 'StateTrieMigration'; palletError: PalletStateTrieMigrationError }
|
|
13460
13821
|
| { pallet: 'AssetConversionMigration'; palletError: PalletAssetConversionOpsError };
|