@dedot/chaintypes 0.176.0 → 0.178.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/polkadot-people/index.d.ts +1 -1
- package/polkadot-people/runtime.d.ts +26 -0
- package/polkadot-people/types.d.ts +7 -0
- package/westend-asset-hub/consts.d.ts +35 -1
- package/westend-asset-hub/errors.d.ts +23 -1
- package/westend-asset-hub/events.d.ts +10 -0
- package/westend-asset-hub/index.d.ts +3 -1
- package/westend-asset-hub/query.d.ts +118 -14
- package/westend-asset-hub/runtime.d.ts +80 -7
- package/westend-asset-hub/tx.d.ts +44 -18
- package/westend-asset-hub/types.d.ts +352 -58
- package/westend-asset-hub/view-functions.d.ts +79 -2
|
@@ -5060,9 +5060,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5060
5060
|
*
|
|
5061
5061
|
* A deposit will be taken from the signer account.
|
|
5062
5062
|
*
|
|
5063
|
-
* - `origin`: Must be Signed
|
|
5064
|
-
*
|
|
5065
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
5063
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
5064
|
+
* to be taken.
|
|
5065
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
5066
|
+
* be live.
|
|
5066
5067
|
* - `who`: The account to be created.
|
|
5067
5068
|
*
|
|
5068
5069
|
* Emits `Touched` event when successful.
|
|
@@ -8745,9 +8746,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8745
8746
|
*
|
|
8746
8747
|
* A deposit will be taken from the signer account.
|
|
8747
8748
|
*
|
|
8748
|
-
* - `origin`: Must be Signed
|
|
8749
|
-
*
|
|
8750
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
8749
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
8750
|
+
* to be taken.
|
|
8751
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
8752
|
+
* be live.
|
|
8751
8753
|
* - `who`: The account to be created.
|
|
8752
8754
|
*
|
|
8753
8755
|
* Emits `Touched` event when successful.
|
|
@@ -10058,9 +10060,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10058
10060
|
*
|
|
10059
10061
|
* A deposit will be taken from the signer account.
|
|
10060
10062
|
*
|
|
10061
|
-
* - `origin`: Must be Signed
|
|
10062
|
-
*
|
|
10063
|
-
* - `id`: The identifier of the asset for the account to be created
|
|
10063
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
10064
|
+
* to be taken.
|
|
10065
|
+
* - `id`: The identifier of the asset for the account to be created, the asset status must
|
|
10066
|
+
* be live.
|
|
10064
10067
|
* - `who`: The account to be created.
|
|
10065
10068
|
*
|
|
10066
10069
|
* Emits `Touched` event when successful.
|
|
@@ -10449,9 +10452,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10449
10452
|
* # Parameters
|
|
10450
10453
|
*
|
|
10451
10454
|
* * `payload`: The encoded [`crate::evm::TransactionSigned`].
|
|
10452
|
-
* * `gas_limit`: The gas limit enforced during contract execution.
|
|
10453
|
-
* * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
|
|
10454
|
-
* storage usage.
|
|
10455
10455
|
*
|
|
10456
10456
|
* # Note
|
|
10457
10457
|
*
|
|
@@ -10636,6 +10636,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10636
10636
|
* Same as [`Self::instantiate_with_code`], but intended to be dispatched **only**
|
|
10637
10637
|
* by an EVM transaction through the EVM compatibility layer.
|
|
10638
10638
|
*
|
|
10639
|
+
* # Parameters
|
|
10640
|
+
*
|
|
10641
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
10642
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
10643
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
10644
|
+
* from the caller to pay for the storage consumed.
|
|
10645
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
10646
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
10647
|
+
* * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
|
|
10648
|
+
* semantics are used. If `None` then `CRATE1` is used.
|
|
10649
|
+
* * `transaction_encoded`: The RLP encoding of the signed Ethereum transaction,
|
|
10650
|
+
* represented as [crate::evm::TransactionSigned], provided by the Ethereum wallet. This
|
|
10651
|
+
* is used for building the Ethereum transaction root.
|
|
10652
|
+
*
|
|
10639
10653
|
* Calling this dispatchable ensures that the origin's nonce is bumped only once,
|
|
10640
10654
|
* via the `CheckNonce` transaction extension. In contrast, [`Self::instantiate_with_code`]
|
|
10641
10655
|
* also bumps the nonce after contract instantiation, since it may be invoked multiple
|
|
@@ -10643,18 +10657,22 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10643
10657
|
*
|
|
10644
10658
|
* @param {U256} value
|
|
10645
10659
|
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
10646
|
-
* @param {bigint} storageDepositLimit
|
|
10647
10660
|
* @param {BytesLike} code
|
|
10648
10661
|
* @param {BytesLike} data
|
|
10662
|
+
* @param {BytesLike} transactionEncoded
|
|
10663
|
+
* @param {U256} effectiveGasPrice
|
|
10664
|
+
* @param {number} encodedLen
|
|
10649
10665
|
**/
|
|
10650
10666
|
ethInstantiateWithCode: GenericTxCall<
|
|
10651
10667
|
Rv,
|
|
10652
10668
|
(
|
|
10653
10669
|
value: U256,
|
|
10654
10670
|
gasLimit: SpWeightsWeightV2Weight,
|
|
10655
|
-
storageDepositLimit: bigint,
|
|
10656
10671
|
code: BytesLike,
|
|
10657
10672
|
data: BytesLike,
|
|
10673
|
+
transactionEncoded: BytesLike,
|
|
10674
|
+
effectiveGasPrice: U256,
|
|
10675
|
+
encodedLen: number,
|
|
10658
10676
|
) => ChainSubmittableExtrinsic<
|
|
10659
10677
|
Rv,
|
|
10660
10678
|
{
|
|
@@ -10664,9 +10682,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10664
10682
|
params: {
|
|
10665
10683
|
value: U256;
|
|
10666
10684
|
gasLimit: SpWeightsWeightV2Weight;
|
|
10667
|
-
storageDepositLimit: bigint;
|
|
10668
10685
|
code: BytesLike;
|
|
10669
10686
|
data: BytesLike;
|
|
10687
|
+
transactionEncoded: BytesLike;
|
|
10688
|
+
effectiveGasPrice: U256;
|
|
10689
|
+
encodedLen: number;
|
|
10670
10690
|
};
|
|
10671
10691
|
};
|
|
10672
10692
|
}
|
|
@@ -10680,8 +10700,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10680
10700
|
* @param {H160} dest
|
|
10681
10701
|
* @param {U256} value
|
|
10682
10702
|
* @param {SpWeightsWeightV2Weight} gasLimit
|
|
10683
|
-
* @param {bigint} storageDepositLimit
|
|
10684
10703
|
* @param {BytesLike} data
|
|
10704
|
+
* @param {BytesLike} transactionEncoded
|
|
10705
|
+
* @param {U256} effectiveGasPrice
|
|
10706
|
+
* @param {number} encodedLen
|
|
10685
10707
|
**/
|
|
10686
10708
|
ethCall: GenericTxCall<
|
|
10687
10709
|
Rv,
|
|
@@ -10689,8 +10711,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10689
10711
|
dest: H160,
|
|
10690
10712
|
value: U256,
|
|
10691
10713
|
gasLimit: SpWeightsWeightV2Weight,
|
|
10692
|
-
storageDepositLimit: bigint,
|
|
10693
10714
|
data: BytesLike,
|
|
10715
|
+
transactionEncoded: BytesLike,
|
|
10716
|
+
effectiveGasPrice: U256,
|
|
10717
|
+
encodedLen: number,
|
|
10694
10718
|
) => ChainSubmittableExtrinsic<
|
|
10695
10719
|
Rv,
|
|
10696
10720
|
{
|
|
@@ -10701,8 +10725,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10701
10725
|
dest: H160;
|
|
10702
10726
|
value: U256;
|
|
10703
10727
|
gasLimit: SpWeightsWeightV2Weight;
|
|
10704
|
-
storageDepositLimit: bigint;
|
|
10705
10728
|
data: BytesLike;
|
|
10729
|
+
transactionEncoded: BytesLike;
|
|
10730
|
+
effectiveGasPrice: U256;
|
|
10731
|
+
encodedLen: number;
|
|
10706
10732
|
};
|
|
10707
10733
|
};
|
|
10708
10734
|
}
|