@polkadot/api-augment 16.2.1 → 16.3.1
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/assetHubKusama/consts.d.ts +95 -2
- package/assetHubKusama/errors.d.ts +254 -10
- package/assetHubKusama/events.d.ts +103 -3
- package/assetHubKusama/query.d.ts +72 -6
- package/assetHubKusama/runtime.d.ts +113 -4
- package/assetHubKusama/tx.d.ts +278 -1
- package/cjs/assetHubKusama/consts.d.ts +95 -2
- package/cjs/assetHubKusama/errors.d.ts +254 -10
- package/cjs/assetHubKusama/events.d.ts +103 -3
- package/cjs/assetHubKusama/query.d.ts +72 -6
- package/cjs/assetHubKusama/runtime.d.ts +113 -4
- package/cjs/assetHubKusama/tx.d.ts +278 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.d.ts +27 -5
- package/cjs/polkadot/errors.d.ts +41 -2
- package/cjs/polkadot/events.d.ts +167 -4
- package/cjs/polkadot/query.d.ts +31 -12
- package/cjs/polkadot/runtime.d.ts +10 -2
- package/cjs/polkadot/tx.d.ts +204 -25
- package/cjs/substrate/runtime.d.ts +7 -7
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +27 -5
- package/polkadot/errors.d.ts +41 -2
- package/polkadot/events.d.ts +167 -4
- package/polkadot/query.d.ts +31 -12
- package/polkadot/runtime.d.ts +10 -2
- package/polkadot/tx.d.ts +204 -25
- package/substrate/runtime.d.ts +7 -7
package/polkadot/tx.d.ts
CHANGED
|
@@ -1263,6 +1263,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1263
1263
|
} | {
|
|
1264
1264
|
Task: any;
|
|
1265
1265
|
} | string | Uint8Array, u16 | AnyNumber | Uint8Array])[], endHint: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u16, u32, Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>, Option<u32>]>;
|
|
1266
|
+
creditAccount: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128]>;
|
|
1266
1267
|
/**
|
|
1267
1268
|
* Request the configuration to be updated with the specified number of cores. Warning:
|
|
1268
1269
|
* Since this only schedules a configuration update, it takes two sessions to come into
|
|
@@ -1789,6 +1790,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1789
1790
|
* - `O(1)`.
|
|
1790
1791
|
**/
|
|
1791
1792
|
freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Poke the deposit reserved for an index.
|
|
1795
|
+
*
|
|
1796
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
|
1797
|
+
* non-frozen account `index`.
|
|
1798
|
+
*
|
|
1799
|
+
* The transaction fees is waived if the deposit is changed after poking/reconsideration.
|
|
1800
|
+
*
|
|
1801
|
+
* - `index`: the index whose deposit is to be poked/reconsidered.
|
|
1802
|
+
*
|
|
1803
|
+
* Emits `DepositPoked` if successful.
|
|
1804
|
+
**/
|
|
1805
|
+
pokeDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1792
1806
|
/**
|
|
1793
1807
|
* Assign an index already owned by the sender to another account. The balance reservation
|
|
1794
1808
|
* is effectively transferred to the new account.
|
|
@@ -1994,6 +2008,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1994
2008
|
height?: any;
|
|
1995
2009
|
index?: any;
|
|
1996
2010
|
} | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
|
2011
|
+
/**
|
|
2012
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
2013
|
+
*
|
|
2014
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
2015
|
+
* the multisig operation.
|
|
2016
|
+
*
|
|
2017
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
2018
|
+
*
|
|
2019
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
2020
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
2021
|
+
* multisig.
|
|
2022
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
2023
|
+
*
|
|
2024
|
+
* Emits `DepositPoked` if successful.
|
|
2025
|
+
**/
|
|
2026
|
+
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
|
1997
2027
|
/**
|
|
1998
2028
|
* Generic tx
|
|
1999
2029
|
**/
|
|
@@ -2016,8 +2046,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2016
2046
|
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
|
|
2017
2047
|
* [`adapter::StakeStrategyType::Delegate`].
|
|
2018
2048
|
*
|
|
2019
|
-
*
|
|
2020
|
-
*
|
|
2049
|
+
* The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
|
|
2050
|
+
* This call can be dispatched permissionlessly (i.e. by any account). If the execution
|
|
2051
|
+
* is successful, fee is refunded and caller may be rewarded with a part of the slash
|
|
2052
|
+
* based on the [`crate::pallet::Config::StakeAdapter`] configuration.
|
|
2021
2053
|
**/
|
|
2022
2054
|
applySlash: AugmentedSubmittable<(memberAccount: MultiAddress | {
|
|
2023
2055
|
Id: any;
|
|
@@ -2076,25 +2108,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2076
2108
|
* The dispatch origin of this call can be signed by the pool nominator or the pool
|
|
2077
2109
|
* root role, same as [`Pallet::nominate`].
|
|
2078
2110
|
*
|
|
2111
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
2112
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
2113
|
+
*
|
|
2079
2114
|
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
2080
2115
|
* account).
|
|
2081
2116
|
*
|
|
2082
2117
|
* # Conditions for a permissionless dispatch:
|
|
2083
|
-
* * When pool depositor has less than `MinNominatorBond` staked, otherwise
|
|
2118
|
+
* * When pool depositor has less than `MinNominatorBond` staked, otherwise pool members
|
|
2084
2119
|
* are unable to unbond.
|
|
2085
2120
|
*
|
|
2086
2121
|
* # Conditions for permissioned dispatch:
|
|
2087
|
-
* * The caller
|
|
2088
|
-
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
|
2089
|
-
* account.
|
|
2122
|
+
* * The caller is the pool's nominator or root.
|
|
2090
2123
|
**/
|
|
2091
2124
|
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2092
2125
|
/**
|
|
2093
2126
|
* Claim pending commission.
|
|
2094
2127
|
*
|
|
2095
|
-
* The
|
|
2096
|
-
*
|
|
2097
|
-
*
|
|
2128
|
+
* The `root` role of the pool is _always_ allowed to claim the pool's commission.
|
|
2129
|
+
*
|
|
2130
|
+
* If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
|
|
2131
|
+
* trigger the process of claiming the pool's commission.
|
|
2132
|
+
*
|
|
2133
|
+
* If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
|
|
2134
|
+
* accounts
|
|
2135
|
+
* * `acc`, and
|
|
2136
|
+
* * the pool's root account
|
|
2137
|
+
*
|
|
2138
|
+
* may call this extrinsic on behalf of the pool.
|
|
2139
|
+
*
|
|
2140
|
+
* Pending commissions are paid out and added to the total claimed commission.
|
|
2141
|
+
* The total pending commission is reset to zero.
|
|
2098
2142
|
**/
|
|
2099
2143
|
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2100
2144
|
/**
|
|
@@ -2205,8 +2249,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2205
2249
|
Address20: any;
|
|
2206
2250
|
} | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
|
2207
2251
|
/**
|
|
2208
|
-
* Stake funds with a pool. The amount to bond is
|
|
2209
|
-
*
|
|
2252
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
2253
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
2254
|
+
* increases the pool's bond.
|
|
2210
2255
|
*
|
|
2211
2256
|
* The method of transferring the amount to the pool account is determined by
|
|
2212
2257
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
@@ -2262,13 +2307,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2262
2307
|
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
|
2263
2308
|
* root role.
|
|
2264
2309
|
*
|
|
2265
|
-
* This directly
|
|
2266
|
-
*
|
|
2310
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
2311
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
2267
2312
|
*
|
|
2268
2313
|
* # Note
|
|
2269
2314
|
*
|
|
2270
|
-
* In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to
|
|
2271
|
-
* at least `depositor_min_bond` in the pool to start nominating.
|
|
2315
|
+
* In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
|
|
2316
|
+
* have at least `depositor_min_bond` in the pool to start nominating.
|
|
2272
2317
|
**/
|
|
2273
2318
|
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
|
2274
2319
|
/**
|
|
@@ -2546,6 +2591,26 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2546
2591
|
* - `OnDemandOrderPlaced`
|
|
2547
2592
|
**/
|
|
2548
2593
|
placeOrderKeepAlive: AugmentedSubmittable<(maxAmount: u128 | AnyNumber | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u32]>;
|
|
2594
|
+
/**
|
|
2595
|
+
* Create a single on demand core order with credits.
|
|
2596
|
+
* Will charge the owner's on-demand credit account the spot price for the current block.
|
|
2597
|
+
*
|
|
2598
|
+
* Parameters:
|
|
2599
|
+
* - `origin`: The sender of the call, on-demand credits will be withdrawn from this
|
|
2600
|
+
* account.
|
|
2601
|
+
* - `max_amount`: The maximum number of credits to spend from the origin to place an
|
|
2602
|
+
* order.
|
|
2603
|
+
* - `para_id`: A `ParaId` the origin wants to provide blockspace for.
|
|
2604
|
+
*
|
|
2605
|
+
* Errors:
|
|
2606
|
+
* - `InsufficientCredits`
|
|
2607
|
+
* - `QueueFull`
|
|
2608
|
+
* - `SpotPriceHigherThanMaxAmount`
|
|
2609
|
+
*
|
|
2610
|
+
* Events:
|
|
2611
|
+
* - `OnDemandOrderPlaced`
|
|
2612
|
+
**/
|
|
2613
|
+
placeOrderWithCredits: AugmentedSubmittable<(maxAmount: u128 | AnyNumber | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u32]>;
|
|
2549
2614
|
/**
|
|
2550
2615
|
* Generic tx
|
|
2551
2616
|
**/
|
|
@@ -2670,7 +2735,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2670
2735
|
};
|
|
2671
2736
|
preimage: {
|
|
2672
2737
|
/**
|
|
2673
|
-
* Ensure that the
|
|
2738
|
+
* Ensure that the bulk of pre-images is upgraded.
|
|
2674
2739
|
*
|
|
2675
2740
|
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
2676
2741
|
**/
|
|
@@ -2810,6 +2875,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2810
2875
|
} | {
|
|
2811
2876
|
Address20: any;
|
|
2812
2877
|
} | string | Uint8Array, proxyType: PolkadotRuntimeConstantsProxyProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | 'ParaRegistration' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeConstantsProxyProxyType, u16, Compact<u32>, Compact<u32>]>;
|
|
2878
|
+
/**
|
|
2879
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
2880
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
2881
|
+
*
|
|
2882
|
+
* The dispatch origin for this call must be _Signed_.
|
|
2883
|
+
*
|
|
2884
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
2885
|
+
*
|
|
2886
|
+
* Emits `DepositPoked` if successful.
|
|
2887
|
+
**/
|
|
2888
|
+
pokeDeposit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2813
2889
|
/**
|
|
2814
2890
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
2815
2891
|
* `add_proxy`.
|
|
@@ -3516,6 +3592,40 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3516
3592
|
} | {
|
|
3517
3593
|
Address20: any;
|
|
3518
3594
|
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
|
3595
|
+
/**
|
|
3596
|
+
* This function allows governance to manually slash a validator and is a
|
|
3597
|
+
* **fallback mechanism**.
|
|
3598
|
+
*
|
|
3599
|
+
* The dispatch origin must be `T::AdminOrigin`.
|
|
3600
|
+
*
|
|
3601
|
+
* ## Parameters
|
|
3602
|
+
* - `validator_stash` - The stash account of the validator to slash.
|
|
3603
|
+
* - `era` - The era in which the validator was in the active set.
|
|
3604
|
+
* - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
|
|
3605
|
+
*
|
|
3606
|
+
* ## Behavior
|
|
3607
|
+
*
|
|
3608
|
+
* The slash will be applied using the standard slashing mechanics, respecting the
|
|
3609
|
+
* configured `SlashDeferDuration`.
|
|
3610
|
+
*
|
|
3611
|
+
* This means:
|
|
3612
|
+
* - If the validator was already slashed by a higher percentage for the same era, this
|
|
3613
|
+
* slash will have no additional effect.
|
|
3614
|
+
* - If the validator was previously slashed by a lower percentage, only the difference
|
|
3615
|
+
* will be applied.
|
|
3616
|
+
* - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
|
|
3617
|
+
**/
|
|
3618
|
+
manualSlash: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, slashFraction: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Perbill]>;
|
|
3619
|
+
/**
|
|
3620
|
+
* Removes the legacy Staking locks if they exist.
|
|
3621
|
+
*
|
|
3622
|
+
* This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
|
|
3623
|
+
* hold on it if needed. If all stake cannot be held, the best effort is made to hold as
|
|
3624
|
+
* much as possible. The remaining stake is forced withdrawn from the ledger.
|
|
3625
|
+
*
|
|
3626
|
+
* The fee is waived if the migration is successful.
|
|
3627
|
+
**/
|
|
3628
|
+
migrateCurrency: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3519
3629
|
/**
|
|
3520
3630
|
* Declare the desire to nominate `targets` for the origin controller.
|
|
3521
3631
|
*
|
|
@@ -3801,15 +3911,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3801
3911
|
commission?: any;
|
|
3802
3912
|
blocked?: any;
|
|
3803
3913
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingValidatorPrefs]>;
|
|
3804
|
-
/**
|
|
3805
|
-
* Adjusts the staking ledger by withdrawing any excess staked amount.
|
|
3806
|
-
*
|
|
3807
|
-
* This function corrects cases where a user's recorded stake in the ledger
|
|
3808
|
-
* exceeds their actual staked funds. This situation can arise due to cases such as
|
|
3809
|
-
* external slashing by another pallet, leading to an inconsistency between the ledger
|
|
3810
|
-
* and the actual stake.
|
|
3811
|
-
**/
|
|
3812
|
-
withdrawOverstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3813
3914
|
/**
|
|
3814
3915
|
* Remove any unlocked chunks from the `unlocking` queue from our management.
|
|
3815
3916
|
*
|
|
@@ -4275,6 +4376,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4275
4376
|
} | {
|
|
4276
4377
|
XcmPallet: any;
|
|
4277
4378
|
} | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
|
4379
|
+
/**
|
|
4380
|
+
* Dispatches a function call with a provided origin.
|
|
4381
|
+
*
|
|
4382
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
4383
|
+
*
|
|
4384
|
+
* The dispatch origin for this call must be _Root_.
|
|
4385
|
+
**/
|
|
4386
|
+
dispatchAsFallible: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | {
|
|
4387
|
+
system: any;
|
|
4388
|
+
} | {
|
|
4389
|
+
Origins: any;
|
|
4390
|
+
} | {
|
|
4391
|
+
ParachainsOrigin: any;
|
|
4392
|
+
} | {
|
|
4393
|
+
XcmPallet: any;
|
|
4394
|
+
} | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
|
|
4278
4395
|
/**
|
|
4279
4396
|
* Send a batch of dispatch calls.
|
|
4280
4397
|
* Unlike `batch`, it allows errors and won't interrupt.
|
|
@@ -4291,6 +4408,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4291
4408
|
* - O(C) where C is the number of calls to be batched.
|
|
4292
4409
|
**/
|
|
4293
4410
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
4411
|
+
/**
|
|
4412
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
4413
|
+
* May be called from any origin except `None`.
|
|
4414
|
+
*
|
|
4415
|
+
* This function first attempts to dispatch the `main` call.
|
|
4416
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
4417
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
4418
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
4419
|
+
*
|
|
4420
|
+
* In the event of a fallback failure the whole call fails
|
|
4421
|
+
* with the weights returned.
|
|
4422
|
+
*
|
|
4423
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
4424
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
4425
|
+
*
|
|
4426
|
+
* ## Dispatch Logic
|
|
4427
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
4428
|
+
* applying any origin filters.
|
|
4429
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
4430
|
+
* `fallback` calls.
|
|
4431
|
+
*
|
|
4432
|
+
* ## Use Case
|
|
4433
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
4434
|
+
* or both.
|
|
4435
|
+
**/
|
|
4436
|
+
ifElse: AugmentedSubmittable<(main: Call | IMethod | string | Uint8Array, fallback: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Call]>;
|
|
4294
4437
|
/**
|
|
4295
4438
|
* Dispatch a function call with a specified weight.
|
|
4296
4439
|
*
|
|
@@ -4556,6 +4699,26 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4556
4699
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4557
4700
|
};
|
|
4558
4701
|
xcmPallet: {
|
|
4702
|
+
/**
|
|
4703
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
4704
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
4705
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
4706
|
+
* `expiry` block number.
|
|
4707
|
+
*
|
|
4708
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
4709
|
+
* also under your control (like your account on another chain).
|
|
4710
|
+
*
|
|
4711
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
4712
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
4713
|
+
* `origin` in XCM programs executed on the local chain.
|
|
4714
|
+
**/
|
|
4715
|
+
addAuthorizedAlias: AugmentedSubmittable<(aliaser: XcmVersionedLocation | {
|
|
4716
|
+
V3: any;
|
|
4717
|
+
} | {
|
|
4718
|
+
V4: any;
|
|
4719
|
+
} | {
|
|
4720
|
+
V5: any;
|
|
4721
|
+
} | string | Uint8Array, expires: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, Option<u64>]>;
|
|
4559
4722
|
/**
|
|
4560
4723
|
* Claims assets trapped on this pallet because of leftover assets during XCM execution.
|
|
4561
4724
|
*
|
|
@@ -4750,6 +4913,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4750
4913
|
} | {
|
|
4751
4914
|
Limited: any;
|
|
4752
4915
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
|
|
4916
|
+
/**
|
|
4917
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
4918
|
+
* making this call.
|
|
4919
|
+
**/
|
|
4920
|
+
removeAllAuthorizedAliases: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4921
|
+
/**
|
|
4922
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
4923
|
+
* the local `origin` making this call.
|
|
4924
|
+
**/
|
|
4925
|
+
removeAuthorizedAlias: AugmentedSubmittable<(aliaser: XcmVersionedLocation | {
|
|
4926
|
+
V3: any;
|
|
4927
|
+
} | {
|
|
4928
|
+
V4: any;
|
|
4929
|
+
} | {
|
|
4930
|
+
V5: any;
|
|
4931
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
|
|
4753
4932
|
/**
|
|
4754
4933
|
* Transfer some assets from the local chain to the destination chain through their local,
|
|
4755
4934
|
* destination or remote reserve.
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
|
6
6
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
7
7
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
8
8
|
import type { AccountId32, H160, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
|
|
9
|
-
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism,
|
|
9
|
+
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesTrace, PalletReviveEvmApiDebugRpcTypesTracerType, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
10
10
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
11
11
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
12
12
|
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
@@ -564,9 +564,9 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
564
564
|
traceBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
|
|
565
565
|
header?: any;
|
|
566
566
|
extrinsics?: any;
|
|
567
|
-
} | string | Uint8Array, config:
|
|
567
|
+
} | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | {
|
|
568
568
|
CallTracer: any;
|
|
569
|
-
} | string | Uint8Array) => Observable<Vec<ITuple<[u32,
|
|
569
|
+
} | string | Uint8Array) => Observable<Vec<ITuple<[u32, PalletReviveEvmApiDebugRpcTypesTrace]>>>>;
|
|
570
570
|
/**
|
|
571
571
|
* Dry run and return the trace of the given call.,, See eth-rpc `debug_traceCall` for usage.
|
|
572
572
|
**/
|
|
@@ -586,18 +586,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
586
586
|
to?: any;
|
|
587
587
|
r_type?: any;
|
|
588
588
|
value?: any;
|
|
589
|
-
} | string | Uint8Array, config:
|
|
589
|
+
} | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | {
|
|
590
590
|
CallTracer: any;
|
|
591
|
-
} | string | Uint8Array) => Observable<Result<
|
|
591
|
+
} | string | Uint8Array) => Observable<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>>;
|
|
592
592
|
/**
|
|
593
593
|
* Traces the execution of a specific transaction within a block.,, This is intended to be called through `state_call` to replay the block from the, parent hash up to the transaction.,, See eth-rpc `debug_traceTransaction` for usage.
|
|
594
594
|
**/
|
|
595
595
|
traceTx: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
|
|
596
596
|
header?: any;
|
|
597
597
|
extrinsics?: any;
|
|
598
|
-
} | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config:
|
|
598
|
+
} | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | {
|
|
599
599
|
CallTracer: any;
|
|
600
|
-
} | string | Uint8Array) => Observable<Option<
|
|
600
|
+
} | string | Uint8Array) => Observable<Option<PalletReviveEvmApiDebugRpcTypesTrace>>>;
|
|
601
601
|
/**
|
|
602
602
|
* Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
|
|
603
603
|
**/
|