@dedot/chaintypes 0.173.0 → 0.175.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/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/runtime.d.ts +26 -0
- package/kusama-asset-hub/types.d.ts +7 -0
- package/package.json +2 -2
- package/paseo-hydration/consts.d.ts +46 -12
- package/paseo-hydration/errors.d.ts +103 -13
- package/paseo-hydration/events.d.ts +416 -0
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +239 -15
- package/paseo-hydration/runtime.d.ts +121 -0
- package/paseo-hydration/tx.d.ts +353 -19
- package/paseo-hydration/types.d.ts +889 -42
|
@@ -61,6 +61,14 @@ import type {
|
|
|
61
61
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
62
62
|
FrameSupportMessagesProcessMessageError,
|
|
63
63
|
StagingXcmV4Asset,
|
|
64
|
+
IsmpConsensusStateMachineId,
|
|
65
|
+
IsmpConsensusStateMachineHeight,
|
|
66
|
+
IsmpHostStateMachine,
|
|
67
|
+
PalletIsmpErrorsHandlingError,
|
|
68
|
+
IsmpEventsRequestResponseHandled,
|
|
69
|
+
IsmpEventsTimeoutHandled,
|
|
70
|
+
IsmpParachainParachainData,
|
|
71
|
+
PalletHyperbridgeVersionedHostParams,
|
|
64
72
|
PalletBroadcastFiller,
|
|
65
73
|
PalletBroadcastTradeOperation,
|
|
66
74
|
PalletBroadcastAsset,
|
|
@@ -2859,6 +2867,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2859
2867
|
* - `max_buy_price_coefficient`: New max buy price coefficient if updated (None if not changed)
|
|
2860
2868
|
* - `buy_back_fee`: New buy back fee if updated (None if not changed)
|
|
2861
2869
|
* - `buyback_rate`: New buyback rate if updated (None if not changed)
|
|
2870
|
+
* - `max_in_holding`: New max collateral holding if updated (None if not changed)
|
|
2862
2871
|
**/
|
|
2863
2872
|
CollateralUpdated: GenericPalletEvent<
|
|
2864
2873
|
Rv,
|
|
@@ -2870,6 +2879,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2870
2879
|
maxBuyPriceCoefficient?: FixedU128 | undefined;
|
|
2871
2880
|
buyBackFee?: Permill | undefined;
|
|
2872
2881
|
buybackRate?: Perbill | undefined;
|
|
2882
|
+
maxInHolding?: bigint | undefined | undefined;
|
|
2873
2883
|
}
|
|
2874
2884
|
>;
|
|
2875
2885
|
|
|
@@ -4280,6 +4290,412 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
4280
4290
|
**/
|
|
4281
4291
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
4282
4292
|
};
|
|
4293
|
+
/**
|
|
4294
|
+
* Pallet `Ismp`'s events
|
|
4295
|
+
**/
|
|
4296
|
+
ismp: {
|
|
4297
|
+
/**
|
|
4298
|
+
* Emitted when a state machine is successfully updated to a new height
|
|
4299
|
+
**/
|
|
4300
|
+
StateMachineUpdated: GenericPalletEvent<
|
|
4301
|
+
Rv,
|
|
4302
|
+
'Ismp',
|
|
4303
|
+
'StateMachineUpdated',
|
|
4304
|
+
{
|
|
4305
|
+
/**
|
|
4306
|
+
* State machine identifier
|
|
4307
|
+
**/
|
|
4308
|
+
stateMachineId: IsmpConsensusStateMachineId;
|
|
4309
|
+
|
|
4310
|
+
/**
|
|
4311
|
+
* State machine latest height
|
|
4312
|
+
**/
|
|
4313
|
+
latestHeight: bigint;
|
|
4314
|
+
}
|
|
4315
|
+
>;
|
|
4316
|
+
|
|
4317
|
+
/**
|
|
4318
|
+
* Emitted when a state commitment is vetoed by a fisherman
|
|
4319
|
+
**/
|
|
4320
|
+
StateCommitmentVetoed: GenericPalletEvent<
|
|
4321
|
+
Rv,
|
|
4322
|
+
'Ismp',
|
|
4323
|
+
'StateCommitmentVetoed',
|
|
4324
|
+
{
|
|
4325
|
+
/**
|
|
4326
|
+
* State machine height
|
|
4327
|
+
**/
|
|
4328
|
+
height: IsmpConsensusStateMachineHeight;
|
|
4329
|
+
|
|
4330
|
+
/**
|
|
4331
|
+
* responsible fisherman
|
|
4332
|
+
**/
|
|
4333
|
+
fisherman: Bytes;
|
|
4334
|
+
}
|
|
4335
|
+
>;
|
|
4336
|
+
|
|
4337
|
+
/**
|
|
4338
|
+
* Indicates that a consensus client has been created
|
|
4339
|
+
**/
|
|
4340
|
+
ConsensusClientCreated: GenericPalletEvent<
|
|
4341
|
+
Rv,
|
|
4342
|
+
'Ismp',
|
|
4343
|
+
'ConsensusClientCreated',
|
|
4344
|
+
{
|
|
4345
|
+
/**
|
|
4346
|
+
* Consensus client id
|
|
4347
|
+
**/
|
|
4348
|
+
consensusClientId: FixedBytes<4>;
|
|
4349
|
+
}
|
|
4350
|
+
>;
|
|
4351
|
+
|
|
4352
|
+
/**
|
|
4353
|
+
* Indicates that a consensus client has been created
|
|
4354
|
+
**/
|
|
4355
|
+
ConsensusClientFrozen: GenericPalletEvent<
|
|
4356
|
+
Rv,
|
|
4357
|
+
'Ismp',
|
|
4358
|
+
'ConsensusClientFrozen',
|
|
4359
|
+
{
|
|
4360
|
+
/**
|
|
4361
|
+
* Consensus client id
|
|
4362
|
+
**/
|
|
4363
|
+
consensusClientId: FixedBytes<4>;
|
|
4364
|
+
}
|
|
4365
|
+
>;
|
|
4366
|
+
|
|
4367
|
+
/**
|
|
4368
|
+
* An Outgoing Response has been deposited
|
|
4369
|
+
**/
|
|
4370
|
+
Response: GenericPalletEvent<
|
|
4371
|
+
Rv,
|
|
4372
|
+
'Ismp',
|
|
4373
|
+
'Response',
|
|
4374
|
+
{
|
|
4375
|
+
/**
|
|
4376
|
+
* Chain that this response will be routed to
|
|
4377
|
+
**/
|
|
4378
|
+
destChain: IsmpHostStateMachine;
|
|
4379
|
+
|
|
4380
|
+
/**
|
|
4381
|
+
* Source Chain for this response
|
|
4382
|
+
**/
|
|
4383
|
+
sourceChain: IsmpHostStateMachine;
|
|
4384
|
+
|
|
4385
|
+
/**
|
|
4386
|
+
* Nonce for the request which this response is for
|
|
4387
|
+
**/
|
|
4388
|
+
requestNonce: bigint;
|
|
4389
|
+
|
|
4390
|
+
/**
|
|
4391
|
+
* Response Commitment
|
|
4392
|
+
**/
|
|
4393
|
+
commitment: H256;
|
|
4394
|
+
|
|
4395
|
+
/**
|
|
4396
|
+
* Request commitment
|
|
4397
|
+
**/
|
|
4398
|
+
reqCommitment: H256;
|
|
4399
|
+
}
|
|
4400
|
+
>;
|
|
4401
|
+
|
|
4402
|
+
/**
|
|
4403
|
+
* An Outgoing Request has been deposited
|
|
4404
|
+
**/
|
|
4405
|
+
Request: GenericPalletEvent<
|
|
4406
|
+
Rv,
|
|
4407
|
+
'Ismp',
|
|
4408
|
+
'Request',
|
|
4409
|
+
{
|
|
4410
|
+
/**
|
|
4411
|
+
* Chain that this request will be routed to
|
|
4412
|
+
**/
|
|
4413
|
+
destChain: IsmpHostStateMachine;
|
|
4414
|
+
|
|
4415
|
+
/**
|
|
4416
|
+
* Source Chain for request
|
|
4417
|
+
**/
|
|
4418
|
+
sourceChain: IsmpHostStateMachine;
|
|
4419
|
+
|
|
4420
|
+
/**
|
|
4421
|
+
* Request nonce
|
|
4422
|
+
**/
|
|
4423
|
+
requestNonce: bigint;
|
|
4424
|
+
|
|
4425
|
+
/**
|
|
4426
|
+
* Commitment
|
|
4427
|
+
**/
|
|
4428
|
+
commitment: H256;
|
|
4429
|
+
}
|
|
4430
|
+
>;
|
|
4431
|
+
|
|
4432
|
+
/**
|
|
4433
|
+
* Some errors handling some ismp messages
|
|
4434
|
+
**/
|
|
4435
|
+
Errors: GenericPalletEvent<
|
|
4436
|
+
Rv,
|
|
4437
|
+
'Ismp',
|
|
4438
|
+
'Errors',
|
|
4439
|
+
{
|
|
4440
|
+
/**
|
|
4441
|
+
* Message handling errors
|
|
4442
|
+
**/
|
|
4443
|
+
errors: Array<PalletIsmpErrorsHandlingError>;
|
|
4444
|
+
}
|
|
4445
|
+
>;
|
|
4446
|
+
|
|
4447
|
+
/**
|
|
4448
|
+
* Post Request Handled
|
|
4449
|
+
**/
|
|
4450
|
+
PostRequestHandled: GenericPalletEvent<Rv, 'Ismp', 'PostRequestHandled', IsmpEventsRequestResponseHandled>;
|
|
4451
|
+
|
|
4452
|
+
/**
|
|
4453
|
+
* Post Response Handled
|
|
4454
|
+
**/
|
|
4455
|
+
PostResponseHandled: GenericPalletEvent<Rv, 'Ismp', 'PostResponseHandled', IsmpEventsRequestResponseHandled>;
|
|
4456
|
+
|
|
4457
|
+
/**
|
|
4458
|
+
* Get Response Handled
|
|
4459
|
+
**/
|
|
4460
|
+
GetRequestHandled: GenericPalletEvent<Rv, 'Ismp', 'GetRequestHandled', IsmpEventsRequestResponseHandled>;
|
|
4461
|
+
|
|
4462
|
+
/**
|
|
4463
|
+
* Post request timeout handled
|
|
4464
|
+
**/
|
|
4465
|
+
PostRequestTimeoutHandled: GenericPalletEvent<Rv, 'Ismp', 'PostRequestTimeoutHandled', IsmpEventsTimeoutHandled>;
|
|
4466
|
+
|
|
4467
|
+
/**
|
|
4468
|
+
* Post response timeout handled
|
|
4469
|
+
**/
|
|
4470
|
+
PostResponseTimeoutHandled: GenericPalletEvent<Rv, 'Ismp', 'PostResponseTimeoutHandled', IsmpEventsTimeoutHandled>;
|
|
4471
|
+
|
|
4472
|
+
/**
|
|
4473
|
+
* Get request timeout handled
|
|
4474
|
+
**/
|
|
4475
|
+
GetRequestTimeoutHandled: GenericPalletEvent<Rv, 'Ismp', 'GetRequestTimeoutHandled', IsmpEventsTimeoutHandled>;
|
|
4476
|
+
|
|
4477
|
+
/**
|
|
4478
|
+
* Generic pallet event
|
|
4479
|
+
**/
|
|
4480
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
4481
|
+
};
|
|
4482
|
+
/**
|
|
4483
|
+
* Pallet `IsmpParachain`'s events
|
|
4484
|
+
**/
|
|
4485
|
+
ismpParachain: {
|
|
4486
|
+
/**
|
|
4487
|
+
* Parachains with the `para_ids` have been added to the whitelist
|
|
4488
|
+
**/
|
|
4489
|
+
ParachainsAdded: GenericPalletEvent<
|
|
4490
|
+
Rv,
|
|
4491
|
+
'IsmpParachain',
|
|
4492
|
+
'ParachainsAdded',
|
|
4493
|
+
{
|
|
4494
|
+
/**
|
|
4495
|
+
* The parachains in question
|
|
4496
|
+
**/
|
|
4497
|
+
paraIds: Array<IsmpParachainParachainData>;
|
|
4498
|
+
}
|
|
4499
|
+
>;
|
|
4500
|
+
|
|
4501
|
+
/**
|
|
4502
|
+
* Parachains with the `para_ids` have been removed from the whitelist
|
|
4503
|
+
**/
|
|
4504
|
+
ParachainsRemoved: GenericPalletEvent<
|
|
4505
|
+
Rv,
|
|
4506
|
+
'IsmpParachain',
|
|
4507
|
+
'ParachainsRemoved',
|
|
4508
|
+
{
|
|
4509
|
+
/**
|
|
4510
|
+
* The parachains in question
|
|
4511
|
+
**/
|
|
4512
|
+
paraIds: Array<number>;
|
|
4513
|
+
}
|
|
4514
|
+
>;
|
|
4515
|
+
|
|
4516
|
+
/**
|
|
4517
|
+
* Generic pallet event
|
|
4518
|
+
**/
|
|
4519
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
4520
|
+
};
|
|
4521
|
+
/**
|
|
4522
|
+
* Pallet `Hyperbridge`'s events
|
|
4523
|
+
**/
|
|
4524
|
+
hyperbridge: {
|
|
4525
|
+
/**
|
|
4526
|
+
* Hyperbridge governance has now updated it's host params on this chain.
|
|
4527
|
+
**/
|
|
4528
|
+
HostParamsUpdated: GenericPalletEvent<
|
|
4529
|
+
Rv,
|
|
4530
|
+
'Hyperbridge',
|
|
4531
|
+
'HostParamsUpdated',
|
|
4532
|
+
{
|
|
4533
|
+
/**
|
|
4534
|
+
* The old host params
|
|
4535
|
+
**/
|
|
4536
|
+
old: PalletHyperbridgeVersionedHostParams;
|
|
4537
|
+
|
|
4538
|
+
/**
|
|
4539
|
+
* The new host params
|
|
4540
|
+
**/
|
|
4541
|
+
new: PalletHyperbridgeVersionedHostParams;
|
|
4542
|
+
}
|
|
4543
|
+
>;
|
|
4544
|
+
|
|
4545
|
+
/**
|
|
4546
|
+
* A relayer has withdrawn some fees
|
|
4547
|
+
**/
|
|
4548
|
+
RelayerFeeWithdrawn: GenericPalletEvent<
|
|
4549
|
+
Rv,
|
|
4550
|
+
'Hyperbridge',
|
|
4551
|
+
'RelayerFeeWithdrawn',
|
|
4552
|
+
{
|
|
4553
|
+
/**
|
|
4554
|
+
* The amount that was withdrawn
|
|
4555
|
+
**/
|
|
4556
|
+
amount: bigint;
|
|
4557
|
+
|
|
4558
|
+
/**
|
|
4559
|
+
* The withdrawal beneficiary
|
|
4560
|
+
**/
|
|
4561
|
+
account: AccountId32;
|
|
4562
|
+
}
|
|
4563
|
+
>;
|
|
4564
|
+
|
|
4565
|
+
/**
|
|
4566
|
+
* Hyperbridge has withdrawn it's protocol revenue
|
|
4567
|
+
**/
|
|
4568
|
+
ProtocolRevenueWithdrawn: GenericPalletEvent<
|
|
4569
|
+
Rv,
|
|
4570
|
+
'Hyperbridge',
|
|
4571
|
+
'ProtocolRevenueWithdrawn',
|
|
4572
|
+
{
|
|
4573
|
+
/**
|
|
4574
|
+
* The amount that was withdrawn
|
|
4575
|
+
**/
|
|
4576
|
+
amount: bigint;
|
|
4577
|
+
|
|
4578
|
+
/**
|
|
4579
|
+
* The withdrawal beneficiary
|
|
4580
|
+
**/
|
|
4581
|
+
account: AccountId32;
|
|
4582
|
+
}
|
|
4583
|
+
>;
|
|
4584
|
+
|
|
4585
|
+
/**
|
|
4586
|
+
* Generic pallet event
|
|
4587
|
+
**/
|
|
4588
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
4589
|
+
};
|
|
4590
|
+
/**
|
|
4591
|
+
* Pallet `TokenGateway`'s events
|
|
4592
|
+
**/
|
|
4593
|
+
tokenGateway: {
|
|
4594
|
+
/**
|
|
4595
|
+
* An asset has been teleported
|
|
4596
|
+
**/
|
|
4597
|
+
AssetTeleported: GenericPalletEvent<
|
|
4598
|
+
Rv,
|
|
4599
|
+
'TokenGateway',
|
|
4600
|
+
'AssetTeleported',
|
|
4601
|
+
{
|
|
4602
|
+
/**
|
|
4603
|
+
* Source account
|
|
4604
|
+
**/
|
|
4605
|
+
from: AccountId32;
|
|
4606
|
+
|
|
4607
|
+
/**
|
|
4608
|
+
* beneficiary account on destination
|
|
4609
|
+
**/
|
|
4610
|
+
to: H256;
|
|
4611
|
+
|
|
4612
|
+
/**
|
|
4613
|
+
* Amount transferred
|
|
4614
|
+
**/
|
|
4615
|
+
amount: bigint;
|
|
4616
|
+
|
|
4617
|
+
/**
|
|
4618
|
+
* Destination chain
|
|
4619
|
+
**/
|
|
4620
|
+
dest: IsmpHostStateMachine;
|
|
4621
|
+
|
|
4622
|
+
/**
|
|
4623
|
+
* Request commitment
|
|
4624
|
+
**/
|
|
4625
|
+
commitment: H256;
|
|
4626
|
+
}
|
|
4627
|
+
>;
|
|
4628
|
+
|
|
4629
|
+
/**
|
|
4630
|
+
* An asset has been received and transferred to the beneficiary's account
|
|
4631
|
+
**/
|
|
4632
|
+
AssetReceived: GenericPalletEvent<
|
|
4633
|
+
Rv,
|
|
4634
|
+
'TokenGateway',
|
|
4635
|
+
'AssetReceived',
|
|
4636
|
+
{
|
|
4637
|
+
/**
|
|
4638
|
+
* beneficiary account on relaychain
|
|
4639
|
+
**/
|
|
4640
|
+
beneficiary: AccountId32;
|
|
4641
|
+
|
|
4642
|
+
/**
|
|
4643
|
+
* Amount transferred
|
|
4644
|
+
**/
|
|
4645
|
+
amount: bigint;
|
|
4646
|
+
|
|
4647
|
+
/**
|
|
4648
|
+
* Destination chain
|
|
4649
|
+
**/
|
|
4650
|
+
source: IsmpHostStateMachine;
|
|
4651
|
+
}
|
|
4652
|
+
>;
|
|
4653
|
+
|
|
4654
|
+
/**
|
|
4655
|
+
* An asset has been refunded and transferred to the beneficiary's account
|
|
4656
|
+
**/
|
|
4657
|
+
AssetRefunded: GenericPalletEvent<
|
|
4658
|
+
Rv,
|
|
4659
|
+
'TokenGateway',
|
|
4660
|
+
'AssetRefunded',
|
|
4661
|
+
{
|
|
4662
|
+
/**
|
|
4663
|
+
* beneficiary account on relaychain
|
|
4664
|
+
**/
|
|
4665
|
+
beneficiary: AccountId32;
|
|
4666
|
+
|
|
4667
|
+
/**
|
|
4668
|
+
* Amount transferred
|
|
4669
|
+
**/
|
|
4670
|
+
amount: bigint;
|
|
4671
|
+
|
|
4672
|
+
/**
|
|
4673
|
+
* Destination chain
|
|
4674
|
+
**/
|
|
4675
|
+
source: IsmpHostStateMachine;
|
|
4676
|
+
}
|
|
4677
|
+
>;
|
|
4678
|
+
|
|
4679
|
+
/**
|
|
4680
|
+
* ERC6160 asset creation request dispatched to hyperbridge
|
|
4681
|
+
**/
|
|
4682
|
+
Erc6160AssetRegistrationDispatched: GenericPalletEvent<
|
|
4683
|
+
Rv,
|
|
4684
|
+
'TokenGateway',
|
|
4685
|
+
'ERC6160AssetRegistrationDispatched',
|
|
4686
|
+
{
|
|
4687
|
+
/**
|
|
4688
|
+
* Request commitment
|
|
4689
|
+
**/
|
|
4690
|
+
commitment: H256;
|
|
4691
|
+
}
|
|
4692
|
+
>;
|
|
4693
|
+
|
|
4694
|
+
/**
|
|
4695
|
+
* Generic pallet event
|
|
4696
|
+
**/
|
|
4697
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
4698
|
+
};
|
|
4283
4699
|
/**
|
|
4284
4700
|
* Pallet `EmaOracle`'s events
|
|
4285
4701
|
**/
|
|
@@ -62,7 +62,7 @@ export interface VersionedPaseoHydrationApi<Rv extends RpcVersion> extends Gener
|
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* @name: PaseoHydrationApi
|
|
65
|
-
* @specVersion:
|
|
65
|
+
* @specVersion: 355
|
|
66
66
|
**/
|
|
67
67
|
export interface PaseoHydrationApi {
|
|
68
68
|
legacy: VersionedPaseoHydrationApi<RpcLegacy>;
|