@dedot/chaintypes 0.212.0 → 0.213.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/hydration/consts.d.ts +83 -0
- package/hydration/errors.d.ts +183 -17
- package/hydration/events.d.ts +172 -1
- package/hydration/index.d.ts +1 -1
- package/hydration/query.d.ts +100 -0
- package/hydration/runtime.d.ts +18 -0
- package/hydration/tx.d.ts +418 -41
- package/hydration/types.d.ts +621 -70
- package/package.json +2 -2
package/hydration/tx.d.ts
CHANGED
|
@@ -59,6 +59,9 @@ import type {
|
|
|
59
59
|
PalletReferralsLevel,
|
|
60
60
|
PalletReferralsFeeDistribution,
|
|
61
61
|
PalletHsmArbitrage,
|
|
62
|
+
PalletSignetSignature,
|
|
63
|
+
PalletSignetErrorResponse,
|
|
64
|
+
PalletDispenserEvmTransactionParams,
|
|
62
65
|
OrmlVestingVestingSchedule,
|
|
63
66
|
EthereumTransactionTransactionV2,
|
|
64
67
|
PalletXykAssetPair,
|
|
@@ -5616,6 +5619,47 @@ export interface ChainTx<
|
|
|
5616
5619
|
>
|
|
5617
5620
|
>;
|
|
5618
5621
|
|
|
5622
|
+
/**
|
|
5623
|
+
* Remove all liquidity from position
|
|
5624
|
+
*
|
|
5625
|
+
* Limit protection is applied.
|
|
5626
|
+
*
|
|
5627
|
+
* `remove_all_liquidity` removes all shares amount from given PositionId (NFT instance).
|
|
5628
|
+
*
|
|
5629
|
+
* Asset's tradable state must contain REMOVE_LIQUIDITY flag, otherwise `NotAllowed` error is returned.
|
|
5630
|
+
*
|
|
5631
|
+
* if all shares from given position are removed, position is destroyed and NFT is burned.
|
|
5632
|
+
*
|
|
5633
|
+
* Remove all liquidity fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`.
|
|
5634
|
+
*
|
|
5635
|
+
* Dynamic withdrawal fee is applied if withdrawal is not safe. It is calculated using spot price and external price oracle.
|
|
5636
|
+
* Withdrawal is considered safe when trading is disabled.
|
|
5637
|
+
*
|
|
5638
|
+
* Parameters:
|
|
5639
|
+
* - `position_id`: The identifier of position which liquidity is entirely removed from.
|
|
5640
|
+
*
|
|
5641
|
+
* Emits `LiquidityRemoved` event when successful.
|
|
5642
|
+
*
|
|
5643
|
+
*
|
|
5644
|
+
* @param {bigint} positionId
|
|
5645
|
+
* @param {bigint} minLimit
|
|
5646
|
+
**/
|
|
5647
|
+
removeAllLiquidity: GenericTxCall<
|
|
5648
|
+
(
|
|
5649
|
+
positionId: bigint,
|
|
5650
|
+
minLimit: bigint,
|
|
5651
|
+
) => ChainSubmittableExtrinsic<
|
|
5652
|
+
{
|
|
5653
|
+
pallet: 'Omnipool';
|
|
5654
|
+
palletCall: {
|
|
5655
|
+
name: 'RemoveAllLiquidity';
|
|
5656
|
+
params: { positionId: bigint; minLimit: bigint };
|
|
5657
|
+
};
|
|
5658
|
+
},
|
|
5659
|
+
ChainKnownTypes
|
|
5660
|
+
>
|
|
5661
|
+
>;
|
|
5662
|
+
|
|
5619
5663
|
/**
|
|
5620
5664
|
* Sacrifice LP position in favor of pool.
|
|
5621
5665
|
*
|
|
@@ -7581,47 +7625,6 @@ export interface ChainTx<
|
|
|
7581
7625
|
>
|
|
7582
7626
|
>;
|
|
7583
7627
|
|
|
7584
|
-
/**
|
|
7585
|
-
* Add liquidity to selected pool.
|
|
7586
|
-
*
|
|
7587
|
-
* Use `add_assets_liquidity` instead.
|
|
7588
|
-
* This extrinsics will be removed in the future.
|
|
7589
|
-
*
|
|
7590
|
-
* First call of `add_liquidity` must provide "initial liquidity" of all assets.
|
|
7591
|
-
*
|
|
7592
|
-
* If there is liquidity already in the pool, LP can provide liquidity of any number of pool assets.
|
|
7593
|
-
*
|
|
7594
|
-
* LP must have sufficient amount of each asset.
|
|
7595
|
-
*
|
|
7596
|
-
* Origin is given corresponding amount of shares.
|
|
7597
|
-
*
|
|
7598
|
-
* Parameters:
|
|
7599
|
-
* - `origin`: liquidity provider
|
|
7600
|
-
* - `pool_id`: Pool Id
|
|
7601
|
-
* - `assets`: asset id and liquidity amount provided
|
|
7602
|
-
*
|
|
7603
|
-
* Emits `LiquidityAdded` event when successful.
|
|
7604
|
-
* Emits `pallet_broadcast::Swapped` event when successful.
|
|
7605
|
-
*
|
|
7606
|
-
* @param {number} poolId
|
|
7607
|
-
* @param {Array<HydradxTraitsStableswapAssetAmount>} assets
|
|
7608
|
-
**/
|
|
7609
|
-
addLiquidity: GenericTxCall<
|
|
7610
|
-
(
|
|
7611
|
-
poolId: number,
|
|
7612
|
-
assets: Array<HydradxTraitsStableswapAssetAmount>,
|
|
7613
|
-
) => ChainSubmittableExtrinsic<
|
|
7614
|
-
{
|
|
7615
|
-
pallet: 'Stableswap';
|
|
7616
|
-
palletCall: {
|
|
7617
|
-
name: 'AddLiquidity';
|
|
7618
|
-
params: { poolId: number; assets: Array<HydradxTraitsStableswapAssetAmount> };
|
|
7619
|
-
};
|
|
7620
|
-
},
|
|
7621
|
-
ChainKnownTypes
|
|
7622
|
-
>
|
|
7623
|
-
>;
|
|
7624
|
-
|
|
7625
7628
|
/**
|
|
7626
7629
|
* Add liquidity to selected pool given exact amount of shares to receive.
|
|
7627
7630
|
*
|
|
@@ -9329,6 +9332,345 @@ export interface ChainTx<
|
|
|
9329
9332
|
**/
|
|
9330
9333
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
9331
9334
|
};
|
|
9335
|
+
/**
|
|
9336
|
+
* Pallet `Signet`'s transaction calls
|
|
9337
|
+
**/
|
|
9338
|
+
signet: {
|
|
9339
|
+
/**
|
|
9340
|
+
* Initialize the pallet with admin, deposit, and chain ID
|
|
9341
|
+
*
|
|
9342
|
+
* @param {AccountId32Like} admin
|
|
9343
|
+
* @param {bigint} signatureDeposit
|
|
9344
|
+
* @param {BytesLike} chainId
|
|
9345
|
+
**/
|
|
9346
|
+
initialize: GenericTxCall<
|
|
9347
|
+
(
|
|
9348
|
+
admin: AccountId32Like,
|
|
9349
|
+
signatureDeposit: bigint,
|
|
9350
|
+
chainId: BytesLike,
|
|
9351
|
+
) => ChainSubmittableExtrinsic<
|
|
9352
|
+
{
|
|
9353
|
+
pallet: 'Signet';
|
|
9354
|
+
palletCall: {
|
|
9355
|
+
name: 'Initialize';
|
|
9356
|
+
params: { admin: AccountId32Like; signatureDeposit: bigint; chainId: BytesLike };
|
|
9357
|
+
};
|
|
9358
|
+
},
|
|
9359
|
+
ChainKnownTypes
|
|
9360
|
+
>
|
|
9361
|
+
>;
|
|
9362
|
+
|
|
9363
|
+
/**
|
|
9364
|
+
* Update the signature deposit amount (admin only)
|
|
9365
|
+
*
|
|
9366
|
+
* @param {bigint} newDeposit
|
|
9367
|
+
**/
|
|
9368
|
+
updateDeposit: GenericTxCall<
|
|
9369
|
+
(newDeposit: bigint) => ChainSubmittableExtrinsic<
|
|
9370
|
+
{
|
|
9371
|
+
pallet: 'Signet';
|
|
9372
|
+
palletCall: {
|
|
9373
|
+
name: 'UpdateDeposit';
|
|
9374
|
+
params: { newDeposit: bigint };
|
|
9375
|
+
};
|
|
9376
|
+
},
|
|
9377
|
+
ChainKnownTypes
|
|
9378
|
+
>
|
|
9379
|
+
>;
|
|
9380
|
+
|
|
9381
|
+
/**
|
|
9382
|
+
* Withdraw funds from the pallet account (admin only)
|
|
9383
|
+
*
|
|
9384
|
+
* @param {AccountId32Like} recipient
|
|
9385
|
+
* @param {bigint} amount
|
|
9386
|
+
**/
|
|
9387
|
+
withdrawFunds: GenericTxCall<
|
|
9388
|
+
(
|
|
9389
|
+
recipient: AccountId32Like,
|
|
9390
|
+
amount: bigint,
|
|
9391
|
+
) => ChainSubmittableExtrinsic<
|
|
9392
|
+
{
|
|
9393
|
+
pallet: 'Signet';
|
|
9394
|
+
palletCall: {
|
|
9395
|
+
name: 'WithdrawFunds';
|
|
9396
|
+
params: { recipient: AccountId32Like; amount: bigint };
|
|
9397
|
+
};
|
|
9398
|
+
},
|
|
9399
|
+
ChainKnownTypes
|
|
9400
|
+
>
|
|
9401
|
+
>;
|
|
9402
|
+
|
|
9403
|
+
/**
|
|
9404
|
+
* Request a signature for a payload
|
|
9405
|
+
*
|
|
9406
|
+
* @param {FixedBytes<32>} payload
|
|
9407
|
+
* @param {number} keyVersion
|
|
9408
|
+
* @param {BytesLike} path
|
|
9409
|
+
* @param {BytesLike} algo
|
|
9410
|
+
* @param {BytesLike} dest
|
|
9411
|
+
* @param {BytesLike} params
|
|
9412
|
+
**/
|
|
9413
|
+
sign: GenericTxCall<
|
|
9414
|
+
(
|
|
9415
|
+
payload: FixedBytes<32>,
|
|
9416
|
+
keyVersion: number,
|
|
9417
|
+
path: BytesLike,
|
|
9418
|
+
algo: BytesLike,
|
|
9419
|
+
dest: BytesLike,
|
|
9420
|
+
params: BytesLike,
|
|
9421
|
+
) => ChainSubmittableExtrinsic<
|
|
9422
|
+
{
|
|
9423
|
+
pallet: 'Signet';
|
|
9424
|
+
palletCall: {
|
|
9425
|
+
name: 'Sign';
|
|
9426
|
+
params: {
|
|
9427
|
+
payload: FixedBytes<32>;
|
|
9428
|
+
keyVersion: number;
|
|
9429
|
+
path: BytesLike;
|
|
9430
|
+
algo: BytesLike;
|
|
9431
|
+
dest: BytesLike;
|
|
9432
|
+
params: BytesLike;
|
|
9433
|
+
};
|
|
9434
|
+
};
|
|
9435
|
+
},
|
|
9436
|
+
ChainKnownTypes
|
|
9437
|
+
>
|
|
9438
|
+
>;
|
|
9439
|
+
|
|
9440
|
+
/**
|
|
9441
|
+
* Request a signature for a serialized transaction
|
|
9442
|
+
*
|
|
9443
|
+
* @param {BytesLike} serializedTransaction
|
|
9444
|
+
* @param {BytesLike} caip2Id
|
|
9445
|
+
* @param {number} keyVersion
|
|
9446
|
+
* @param {BytesLike} path
|
|
9447
|
+
* @param {BytesLike} algo
|
|
9448
|
+
* @param {BytesLike} dest
|
|
9449
|
+
* @param {BytesLike} params
|
|
9450
|
+
* @param {BytesLike} outputDeserializationSchema
|
|
9451
|
+
* @param {BytesLike} respondSerializationSchema
|
|
9452
|
+
**/
|
|
9453
|
+
signBidirectional: GenericTxCall<
|
|
9454
|
+
(
|
|
9455
|
+
serializedTransaction: BytesLike,
|
|
9456
|
+
caip2Id: BytesLike,
|
|
9457
|
+
keyVersion: number,
|
|
9458
|
+
path: BytesLike,
|
|
9459
|
+
algo: BytesLike,
|
|
9460
|
+
dest: BytesLike,
|
|
9461
|
+
params: BytesLike,
|
|
9462
|
+
outputDeserializationSchema: BytesLike,
|
|
9463
|
+
respondSerializationSchema: BytesLike,
|
|
9464
|
+
) => ChainSubmittableExtrinsic<
|
|
9465
|
+
{
|
|
9466
|
+
pallet: 'Signet';
|
|
9467
|
+
palletCall: {
|
|
9468
|
+
name: 'SignBidirectional';
|
|
9469
|
+
params: {
|
|
9470
|
+
serializedTransaction: BytesLike;
|
|
9471
|
+
caip2Id: BytesLike;
|
|
9472
|
+
keyVersion: number;
|
|
9473
|
+
path: BytesLike;
|
|
9474
|
+
algo: BytesLike;
|
|
9475
|
+
dest: BytesLike;
|
|
9476
|
+
params: BytesLike;
|
|
9477
|
+
outputDeserializationSchema: BytesLike;
|
|
9478
|
+
respondSerializationSchema: BytesLike;
|
|
9479
|
+
};
|
|
9480
|
+
};
|
|
9481
|
+
},
|
|
9482
|
+
ChainKnownTypes
|
|
9483
|
+
>
|
|
9484
|
+
>;
|
|
9485
|
+
|
|
9486
|
+
/**
|
|
9487
|
+
* Respond to signature requests (batch support)
|
|
9488
|
+
*
|
|
9489
|
+
* @param {Array<FixedBytes<32>>} requestIds
|
|
9490
|
+
* @param {Array<PalletSignetSignature>} signatures
|
|
9491
|
+
**/
|
|
9492
|
+
respond: GenericTxCall<
|
|
9493
|
+
(
|
|
9494
|
+
requestIds: Array<FixedBytes<32>>,
|
|
9495
|
+
signatures: Array<PalletSignetSignature>,
|
|
9496
|
+
) => ChainSubmittableExtrinsic<
|
|
9497
|
+
{
|
|
9498
|
+
pallet: 'Signet';
|
|
9499
|
+
palletCall: {
|
|
9500
|
+
name: 'Respond';
|
|
9501
|
+
params: { requestIds: Array<FixedBytes<32>>; signatures: Array<PalletSignetSignature> };
|
|
9502
|
+
};
|
|
9503
|
+
},
|
|
9504
|
+
ChainKnownTypes
|
|
9505
|
+
>
|
|
9506
|
+
>;
|
|
9507
|
+
|
|
9508
|
+
/**
|
|
9509
|
+
* Report signature generation errors (batch support)
|
|
9510
|
+
*
|
|
9511
|
+
* @param {Array<PalletSignetErrorResponse>} errors
|
|
9512
|
+
**/
|
|
9513
|
+
respondError: GenericTxCall<
|
|
9514
|
+
(errors: Array<PalletSignetErrorResponse>) => ChainSubmittableExtrinsic<
|
|
9515
|
+
{
|
|
9516
|
+
pallet: 'Signet';
|
|
9517
|
+
palletCall: {
|
|
9518
|
+
name: 'RespondError';
|
|
9519
|
+
params: { errors: Array<PalletSignetErrorResponse> };
|
|
9520
|
+
};
|
|
9521
|
+
},
|
|
9522
|
+
ChainKnownTypes
|
|
9523
|
+
>
|
|
9524
|
+
>;
|
|
9525
|
+
|
|
9526
|
+
/**
|
|
9527
|
+
* Provide a read response with signature
|
|
9528
|
+
*
|
|
9529
|
+
* @param {FixedBytes<32>} requestId
|
|
9530
|
+
* @param {BytesLike} serializedOutput
|
|
9531
|
+
* @param {PalletSignetSignature} signature
|
|
9532
|
+
**/
|
|
9533
|
+
respondBidirectional: GenericTxCall<
|
|
9534
|
+
(
|
|
9535
|
+
requestId: FixedBytes<32>,
|
|
9536
|
+
serializedOutput: BytesLike,
|
|
9537
|
+
signature: PalletSignetSignature,
|
|
9538
|
+
) => ChainSubmittableExtrinsic<
|
|
9539
|
+
{
|
|
9540
|
+
pallet: 'Signet';
|
|
9541
|
+
palletCall: {
|
|
9542
|
+
name: 'RespondBidirectional';
|
|
9543
|
+
params: { requestId: FixedBytes<32>; serializedOutput: BytesLike; signature: PalletSignetSignature };
|
|
9544
|
+
};
|
|
9545
|
+
},
|
|
9546
|
+
ChainKnownTypes
|
|
9547
|
+
>
|
|
9548
|
+
>;
|
|
9549
|
+
|
|
9550
|
+
/**
|
|
9551
|
+
* Generic pallet tx call
|
|
9552
|
+
**/
|
|
9553
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
9554
|
+
};
|
|
9555
|
+
/**
|
|
9556
|
+
* Pallet `EthDispenser`'s transaction calls
|
|
9557
|
+
**/
|
|
9558
|
+
ethDispenser: {
|
|
9559
|
+
/**
|
|
9560
|
+
* Request ETH from the external faucet for a given EVM address.
|
|
9561
|
+
*
|
|
9562
|
+
* This call:
|
|
9563
|
+
* - Verifies amount bounds and EVM transaction parameters.
|
|
9564
|
+
* - Checks the tracked faucet ETH balance against `MinFaucetEthThreshold`.
|
|
9565
|
+
* - Charges the configured fee in `FeeAsset`.
|
|
9566
|
+
* - Transfers the requested faucet asset from the user to `FeeDestination`.
|
|
9567
|
+
* - Builds an EVM transaction calling `IGasFaucet::fund`.
|
|
9568
|
+
* - Submits a signing request to SigNet via `pallet_signet::sign_bidirectional`.
|
|
9569
|
+
*
|
|
9570
|
+
* The `request_id` must match the ID derived internally from the inputs,
|
|
9571
|
+
* otherwise the call will fail with `InvalidRequestId`.
|
|
9572
|
+
* Parameters:
|
|
9573
|
+
* - `to`: Target EVM address to receive ETH.
|
|
9574
|
+
* - `amount`: Amount of ETH (in wei) to request.
|
|
9575
|
+
* - `request_id`: Client-supplied request ID; must match derived ID.
|
|
9576
|
+
* - `tx`: Parameters for the EVM transaction submitted to the faucet.
|
|
9577
|
+
*
|
|
9578
|
+
* @param {FixedBytes<20>} to
|
|
9579
|
+
* @param {bigint} amount
|
|
9580
|
+
* @param {FixedBytes<32>} requestId
|
|
9581
|
+
* @param {PalletDispenserEvmTransactionParams} tx
|
|
9582
|
+
**/
|
|
9583
|
+
requestFund: GenericTxCall<
|
|
9584
|
+
(
|
|
9585
|
+
to: FixedBytes<20>,
|
|
9586
|
+
amount: bigint,
|
|
9587
|
+
requestId: FixedBytes<32>,
|
|
9588
|
+
tx: PalletDispenserEvmTransactionParams,
|
|
9589
|
+
) => ChainSubmittableExtrinsic<
|
|
9590
|
+
{
|
|
9591
|
+
pallet: 'EthDispenser';
|
|
9592
|
+
palletCall: {
|
|
9593
|
+
name: 'RequestFund';
|
|
9594
|
+
params: {
|
|
9595
|
+
to: FixedBytes<20>;
|
|
9596
|
+
amount: bigint;
|
|
9597
|
+
requestId: FixedBytes<32>;
|
|
9598
|
+
tx: PalletDispenserEvmTransactionParams;
|
|
9599
|
+
};
|
|
9600
|
+
};
|
|
9601
|
+
},
|
|
9602
|
+
ChainKnownTypes
|
|
9603
|
+
>
|
|
9604
|
+
>;
|
|
9605
|
+
|
|
9606
|
+
/**
|
|
9607
|
+
* Pause the dispenser so that no new funding requests can be made.
|
|
9608
|
+
*
|
|
9609
|
+
* Parameters:
|
|
9610
|
+
* - `origin`: Must satisfy `UpdateOrigin`.
|
|
9611
|
+
*
|
|
9612
|
+
**/
|
|
9613
|
+
pause: GenericTxCall<
|
|
9614
|
+
() => ChainSubmittableExtrinsic<
|
|
9615
|
+
{
|
|
9616
|
+
pallet: 'EthDispenser';
|
|
9617
|
+
palletCall: {
|
|
9618
|
+
name: 'Pause';
|
|
9619
|
+
};
|
|
9620
|
+
},
|
|
9621
|
+
ChainKnownTypes
|
|
9622
|
+
>
|
|
9623
|
+
>;
|
|
9624
|
+
|
|
9625
|
+
/**
|
|
9626
|
+
* Unpause the dispenser so that funding requests are allowed again.
|
|
9627
|
+
*
|
|
9628
|
+
* Parameters:
|
|
9629
|
+
* - `origin`: Must satisfy `UpdateOrigin`
|
|
9630
|
+
*
|
|
9631
|
+
**/
|
|
9632
|
+
unpause: GenericTxCall<
|
|
9633
|
+
() => ChainSubmittableExtrinsic<
|
|
9634
|
+
{
|
|
9635
|
+
pallet: 'EthDispenser';
|
|
9636
|
+
palletCall: {
|
|
9637
|
+
name: 'Unpause';
|
|
9638
|
+
};
|
|
9639
|
+
},
|
|
9640
|
+
ChainKnownTypes
|
|
9641
|
+
>
|
|
9642
|
+
>;
|
|
9643
|
+
|
|
9644
|
+
/**
|
|
9645
|
+
* Increase the tracked faucet ETH balance (in wei).
|
|
9646
|
+
*
|
|
9647
|
+
* This is an accounting helper used to keep `FaucetBalanceWei`
|
|
9648
|
+
* roughly in sync with the real faucet balance on the EVM chain.
|
|
9649
|
+
*
|
|
9650
|
+
* Parameters:
|
|
9651
|
+
* - `origin`: Must satisfy `UpdateOrigin`.
|
|
9652
|
+
* - `balance_wei`: Amount (in wei) to add to the currently stored balance.
|
|
9653
|
+
*
|
|
9654
|
+
* @param {bigint} balanceWei
|
|
9655
|
+
**/
|
|
9656
|
+
setFaucetBalance: GenericTxCall<
|
|
9657
|
+
(balanceWei: bigint) => ChainSubmittableExtrinsic<
|
|
9658
|
+
{
|
|
9659
|
+
pallet: 'EthDispenser';
|
|
9660
|
+
palletCall: {
|
|
9661
|
+
name: 'SetFaucetBalance';
|
|
9662
|
+
params: { balanceWei: bigint };
|
|
9663
|
+
};
|
|
9664
|
+
},
|
|
9665
|
+
ChainKnownTypes
|
|
9666
|
+
>
|
|
9667
|
+
>;
|
|
9668
|
+
|
|
9669
|
+
/**
|
|
9670
|
+
* Generic pallet tx call
|
|
9671
|
+
**/
|
|
9672
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
9673
|
+
};
|
|
9332
9674
|
/**
|
|
9333
9675
|
* Pallet `Tokens`'s transaction calls
|
|
9334
9676
|
**/
|
|
@@ -9892,6 +10234,7 @@ export interface ChainTx<
|
|
|
9892
10234
|
* to the origin address.
|
|
9893
10235
|
*
|
|
9894
10236
|
* Binding an address is not necessary for interacting with the EVM.
|
|
10237
|
+
* Increases `sufficients` for the account.
|
|
9895
10238
|
*
|
|
9896
10239
|
* Parameters:
|
|
9897
10240
|
* - `origin`: Substrate account binding an address
|
|
@@ -10031,6 +10374,40 @@ export interface ChainTx<
|
|
|
10031
10374
|
>
|
|
10032
10375
|
>;
|
|
10033
10376
|
|
|
10377
|
+
/**
|
|
10378
|
+
* Proves ownership of an account and binds it to the EVM address.
|
|
10379
|
+
* This is useful for accounts that want to submit some substrate transaction, but only
|
|
10380
|
+
* received some ERC20 balance and `System` pallet doesn't register them as a substrate account.
|
|
10381
|
+
*
|
|
10382
|
+
* Parameters:
|
|
10383
|
+
* - `origin`: Unsigned origin.
|
|
10384
|
+
* - `account`: Account proving ownership of the address.
|
|
10385
|
+
* - `asset_id`: Asset ID to be set as fee currency for the account.
|
|
10386
|
+
* - `signature`: Signed message by the account that proves ownership of the account.
|
|
10387
|
+
*
|
|
10388
|
+
* Emits `AccountClaimed` event when successful.
|
|
10389
|
+
*
|
|
10390
|
+
* @param {AccountId32Like} account
|
|
10391
|
+
* @param {number} assetId
|
|
10392
|
+
* @param {SpRuntimeMultiSignature} signature
|
|
10393
|
+
**/
|
|
10394
|
+
claimAccount: GenericTxCall<
|
|
10395
|
+
(
|
|
10396
|
+
account: AccountId32Like,
|
|
10397
|
+
assetId: number,
|
|
10398
|
+
signature: SpRuntimeMultiSignature,
|
|
10399
|
+
) => ChainSubmittableExtrinsic<
|
|
10400
|
+
{
|
|
10401
|
+
pallet: 'EvmAccounts';
|
|
10402
|
+
palletCall: {
|
|
10403
|
+
name: 'ClaimAccount';
|
|
10404
|
+
params: { account: AccountId32Like; assetId: number; signature: SpRuntimeMultiSignature };
|
|
10405
|
+
};
|
|
10406
|
+
},
|
|
10407
|
+
ChainKnownTypes
|
|
10408
|
+
>
|
|
10409
|
+
>;
|
|
10410
|
+
|
|
10034
10411
|
/**
|
|
10035
10412
|
* Generic pallet tx call
|
|
10036
10413
|
**/
|