@dedot/chaintypes 0.136.0 → 0.137.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.136.0",
3
+ "version": "0.137.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "6a42607c56509d00cb6ce88bbe9a25ad76b734b8",
28
+ "gitHead": "9a6abae5da2547728ae4ff05c047f89da82e3797",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -1739,6 +1739,42 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1739
1739
  **/
1740
1740
  [name: string]: any;
1741
1741
  };
1742
+ /**
1743
+ * Pallet `Ismp`'s constants
1744
+ **/
1745
+ ismp: {
1746
+ /**
1747
+ * Generic pallet constant
1748
+ **/
1749
+ [name: string]: any;
1750
+ };
1751
+ /**
1752
+ * Pallet `IsmpParachain`'s constants
1753
+ **/
1754
+ ismpParachain: {
1755
+ /**
1756
+ * Generic pallet constant
1757
+ **/
1758
+ [name: string]: any;
1759
+ };
1760
+ /**
1761
+ * Pallet `Hyperbridge`'s constants
1762
+ **/
1763
+ hyperbridge: {
1764
+ /**
1765
+ * Generic pallet constant
1766
+ **/
1767
+ [name: string]: any;
1768
+ };
1769
+ /**
1770
+ * Pallet `TokenGateway`'s constants
1771
+ **/
1772
+ tokenGateway: {
1773
+ /**
1774
+ * Generic pallet constant
1775
+ **/
1776
+ [name: string]: any;
1777
+ };
1742
1778
  /**
1743
1779
  * Pallet `EmaOracle`'s constants
1744
1780
  **/
@@ -3871,6 +3871,103 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3871
3871
  **/
3872
3872
  [error: string]: GenericPalletError<Rv>;
3873
3873
  };
3874
+ /**
3875
+ * Pallet `Ismp`'s errors
3876
+ **/
3877
+ ismp: {
3878
+ /**
3879
+ * Invalid ISMP message
3880
+ **/
3881
+ InvalidMessage: GenericPalletError<Rv>;
3882
+
3883
+ /**
3884
+ * Requested message was not found
3885
+ **/
3886
+ MessageNotFound: GenericPalletError<Rv>;
3887
+
3888
+ /**
3889
+ * Encountered an error while creating the consensus client.
3890
+ **/
3891
+ ConsensusClientCreationFailed: GenericPalletError<Rv>;
3892
+
3893
+ /**
3894
+ * Couldn't update unbonding period
3895
+ **/
3896
+ UnbondingPeriodUpdateFailed: GenericPalletError<Rv>;
3897
+
3898
+ /**
3899
+ * Couldn't update challenge period
3900
+ **/
3901
+ ChallengePeriodUpdateFailed: GenericPalletError<Rv>;
3902
+
3903
+ /**
3904
+ * Generic pallet error
3905
+ **/
3906
+ [error: string]: GenericPalletError<Rv>;
3907
+ };
3908
+ /**
3909
+ * Pallet `Hyperbridge`'s errors
3910
+ **/
3911
+ hyperbridge: {
3912
+ /**
3913
+ * Generic pallet error
3914
+ **/
3915
+ [error: string]: GenericPalletError<Rv>;
3916
+ };
3917
+ /**
3918
+ * Pallet `TokenGateway`'s errors
3919
+ **/
3920
+ tokenGateway: {
3921
+ /**
3922
+ * A asset that has not been registered
3923
+ **/
3924
+ UnregisteredAsset: GenericPalletError<Rv>;
3925
+
3926
+ /**
3927
+ * Error while teleporting asset
3928
+ **/
3929
+ AssetTeleportError: GenericPalletError<Rv>;
3930
+
3931
+ /**
3932
+ * Coprocessor was not configured in the runtime
3933
+ **/
3934
+ CoprocessorNotConfigured: GenericPalletError<Rv>;
3935
+
3936
+ /**
3937
+ * Asset or update Dispatch Error
3938
+ **/
3939
+ DispatchError: GenericPalletError<Rv>;
3940
+
3941
+ /**
3942
+ * Asset Id creation failed
3943
+ **/
3944
+ AssetCreationError: GenericPalletError<Rv>;
3945
+
3946
+ /**
3947
+ * Asset decimals not found
3948
+ **/
3949
+ AssetDecimalsNotFound: GenericPalletError<Rv>;
3950
+
3951
+ /**
3952
+ * Protocol Params have not been initialized
3953
+ **/
3954
+ NotInitialized: GenericPalletError<Rv>;
3955
+
3956
+ /**
3957
+ * Unknown Asset
3958
+ **/
3959
+ UnknownAsset: GenericPalletError<Rv>;
3960
+
3961
+ /**
3962
+ * Only root or asset owner can update asset
3963
+ **/
3964
+ NotAssetOwner: GenericPalletError<Rv>;
3965
+
3966
+ /**
3967
+ * Generic pallet error
3968
+ **/
3969
+ [error: string]: GenericPalletError<Rv>;
3970
+ };
3874
3971
  /**
3875
3972
  * Pallet `EmaOracle`'s errors
3876
3973
  **/
@@ -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,
@@ -2847,9 +2855,8 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2847
2855
  *
2848
2856
  * Parameters:
2849
2857
  * - `asset_id`: The ID of the asset removed from collaterals
2850
- * - `amount`: The amount of the asset that was returned (should be zero)
2851
2858
  **/
2852
- CollateralRemoved: GenericPalletEvent<Rv, 'HSM', 'CollateralRemoved', { assetId: number; amount: bigint }>;
2859
+ CollateralRemoved: GenericPalletEvent<Rv, 'HSM', 'CollateralRemoved', { assetId: number }>;
2853
2860
 
2854
2861
  /**
2855
2862
  * A collateral asset was updated
@@ -4276,6 +4283,412 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
4276
4283
  **/
4277
4284
  [prop: string]: GenericPalletEvent<Rv>;
4278
4285
  };
4286
+ /**
4287
+ * Pallet `Ismp`'s events
4288
+ **/
4289
+ ismp: {
4290
+ /**
4291
+ * Emitted when a state machine is successfully updated to a new height
4292
+ **/
4293
+ StateMachineUpdated: GenericPalletEvent<
4294
+ Rv,
4295
+ 'Ismp',
4296
+ 'StateMachineUpdated',
4297
+ {
4298
+ /**
4299
+ * State machine identifier
4300
+ **/
4301
+ stateMachineId: IsmpConsensusStateMachineId;
4302
+
4303
+ /**
4304
+ * State machine latest height
4305
+ **/
4306
+ latestHeight: bigint;
4307
+ }
4308
+ >;
4309
+
4310
+ /**
4311
+ * Emitted when a state commitment is vetoed by a fisherman
4312
+ **/
4313
+ StateCommitmentVetoed: GenericPalletEvent<
4314
+ Rv,
4315
+ 'Ismp',
4316
+ 'StateCommitmentVetoed',
4317
+ {
4318
+ /**
4319
+ * State machine height
4320
+ **/
4321
+ height: IsmpConsensusStateMachineHeight;
4322
+
4323
+ /**
4324
+ * responsible fisherman
4325
+ **/
4326
+ fisherman: Bytes;
4327
+ }
4328
+ >;
4329
+
4330
+ /**
4331
+ * Indicates that a consensus client has been created
4332
+ **/
4333
+ ConsensusClientCreated: GenericPalletEvent<
4334
+ Rv,
4335
+ 'Ismp',
4336
+ 'ConsensusClientCreated',
4337
+ {
4338
+ /**
4339
+ * Consensus client id
4340
+ **/
4341
+ consensusClientId: FixedBytes<4>;
4342
+ }
4343
+ >;
4344
+
4345
+ /**
4346
+ * Indicates that a consensus client has been created
4347
+ **/
4348
+ ConsensusClientFrozen: GenericPalletEvent<
4349
+ Rv,
4350
+ 'Ismp',
4351
+ 'ConsensusClientFrozen',
4352
+ {
4353
+ /**
4354
+ * Consensus client id
4355
+ **/
4356
+ consensusClientId: FixedBytes<4>;
4357
+ }
4358
+ >;
4359
+
4360
+ /**
4361
+ * An Outgoing Response has been deposited
4362
+ **/
4363
+ Response: GenericPalletEvent<
4364
+ Rv,
4365
+ 'Ismp',
4366
+ 'Response',
4367
+ {
4368
+ /**
4369
+ * Chain that this response will be routed to
4370
+ **/
4371
+ destChain: IsmpHostStateMachine;
4372
+
4373
+ /**
4374
+ * Source Chain for this response
4375
+ **/
4376
+ sourceChain: IsmpHostStateMachine;
4377
+
4378
+ /**
4379
+ * Nonce for the request which this response is for
4380
+ **/
4381
+ requestNonce: bigint;
4382
+
4383
+ /**
4384
+ * Response Commitment
4385
+ **/
4386
+ commitment: H256;
4387
+
4388
+ /**
4389
+ * Request commitment
4390
+ **/
4391
+ reqCommitment: H256;
4392
+ }
4393
+ >;
4394
+
4395
+ /**
4396
+ * An Outgoing Request has been deposited
4397
+ **/
4398
+ Request: GenericPalletEvent<
4399
+ Rv,
4400
+ 'Ismp',
4401
+ 'Request',
4402
+ {
4403
+ /**
4404
+ * Chain that this request will be routed to
4405
+ **/
4406
+ destChain: IsmpHostStateMachine;
4407
+
4408
+ /**
4409
+ * Source Chain for request
4410
+ **/
4411
+ sourceChain: IsmpHostStateMachine;
4412
+
4413
+ /**
4414
+ * Request nonce
4415
+ **/
4416
+ requestNonce: bigint;
4417
+
4418
+ /**
4419
+ * Commitment
4420
+ **/
4421
+ commitment: H256;
4422
+ }
4423
+ >;
4424
+
4425
+ /**
4426
+ * Some errors handling some ismp messages
4427
+ **/
4428
+ Errors: GenericPalletEvent<
4429
+ Rv,
4430
+ 'Ismp',
4431
+ 'Errors',
4432
+ {
4433
+ /**
4434
+ * Message handling errors
4435
+ **/
4436
+ errors: Array<PalletIsmpErrorsHandlingError>;
4437
+ }
4438
+ >;
4439
+
4440
+ /**
4441
+ * Post Request Handled
4442
+ **/
4443
+ PostRequestHandled: GenericPalletEvent<Rv, 'Ismp', 'PostRequestHandled', IsmpEventsRequestResponseHandled>;
4444
+
4445
+ /**
4446
+ * Post Response Handled
4447
+ **/
4448
+ PostResponseHandled: GenericPalletEvent<Rv, 'Ismp', 'PostResponseHandled', IsmpEventsRequestResponseHandled>;
4449
+
4450
+ /**
4451
+ * Get Response Handled
4452
+ **/
4453
+ GetRequestHandled: GenericPalletEvent<Rv, 'Ismp', 'GetRequestHandled', IsmpEventsRequestResponseHandled>;
4454
+
4455
+ /**
4456
+ * Post request timeout handled
4457
+ **/
4458
+ PostRequestTimeoutHandled: GenericPalletEvent<Rv, 'Ismp', 'PostRequestTimeoutHandled', IsmpEventsTimeoutHandled>;
4459
+
4460
+ /**
4461
+ * Post response timeout handled
4462
+ **/
4463
+ PostResponseTimeoutHandled: GenericPalletEvent<Rv, 'Ismp', 'PostResponseTimeoutHandled', IsmpEventsTimeoutHandled>;
4464
+
4465
+ /**
4466
+ * Get request timeout handled
4467
+ **/
4468
+ GetRequestTimeoutHandled: GenericPalletEvent<Rv, 'Ismp', 'GetRequestTimeoutHandled', IsmpEventsTimeoutHandled>;
4469
+
4470
+ /**
4471
+ * Generic pallet event
4472
+ **/
4473
+ [prop: string]: GenericPalletEvent<Rv>;
4474
+ };
4475
+ /**
4476
+ * Pallet `IsmpParachain`'s events
4477
+ **/
4478
+ ismpParachain: {
4479
+ /**
4480
+ * Parachains with the `para_ids` have been added to the whitelist
4481
+ **/
4482
+ ParachainsAdded: GenericPalletEvent<
4483
+ Rv,
4484
+ 'IsmpParachain',
4485
+ 'ParachainsAdded',
4486
+ {
4487
+ /**
4488
+ * The parachains in question
4489
+ **/
4490
+ paraIds: Array<IsmpParachainParachainData>;
4491
+ }
4492
+ >;
4493
+
4494
+ /**
4495
+ * Parachains with the `para_ids` have been removed from the whitelist
4496
+ **/
4497
+ ParachainsRemoved: GenericPalletEvent<
4498
+ Rv,
4499
+ 'IsmpParachain',
4500
+ 'ParachainsRemoved',
4501
+ {
4502
+ /**
4503
+ * The parachains in question
4504
+ **/
4505
+ paraIds: Array<number>;
4506
+ }
4507
+ >;
4508
+
4509
+ /**
4510
+ * Generic pallet event
4511
+ **/
4512
+ [prop: string]: GenericPalletEvent<Rv>;
4513
+ };
4514
+ /**
4515
+ * Pallet `Hyperbridge`'s events
4516
+ **/
4517
+ hyperbridge: {
4518
+ /**
4519
+ * Hyperbridge governance has now updated it's host params on this chain.
4520
+ **/
4521
+ HostParamsUpdated: GenericPalletEvent<
4522
+ Rv,
4523
+ 'Hyperbridge',
4524
+ 'HostParamsUpdated',
4525
+ {
4526
+ /**
4527
+ * The old host params
4528
+ **/
4529
+ old: PalletHyperbridgeVersionedHostParams;
4530
+
4531
+ /**
4532
+ * The new host params
4533
+ **/
4534
+ new: PalletHyperbridgeVersionedHostParams;
4535
+ }
4536
+ >;
4537
+
4538
+ /**
4539
+ * A relayer has withdrawn some fees
4540
+ **/
4541
+ RelayerFeeWithdrawn: GenericPalletEvent<
4542
+ Rv,
4543
+ 'Hyperbridge',
4544
+ 'RelayerFeeWithdrawn',
4545
+ {
4546
+ /**
4547
+ * The amount that was withdrawn
4548
+ **/
4549
+ amount: bigint;
4550
+
4551
+ /**
4552
+ * The withdrawal beneficiary
4553
+ **/
4554
+ account: AccountId32;
4555
+ }
4556
+ >;
4557
+
4558
+ /**
4559
+ * Hyperbridge has withdrawn it's protocol revenue
4560
+ **/
4561
+ ProtocolRevenueWithdrawn: GenericPalletEvent<
4562
+ Rv,
4563
+ 'Hyperbridge',
4564
+ 'ProtocolRevenueWithdrawn',
4565
+ {
4566
+ /**
4567
+ * The amount that was withdrawn
4568
+ **/
4569
+ amount: bigint;
4570
+
4571
+ /**
4572
+ * The withdrawal beneficiary
4573
+ **/
4574
+ account: AccountId32;
4575
+ }
4576
+ >;
4577
+
4578
+ /**
4579
+ * Generic pallet event
4580
+ **/
4581
+ [prop: string]: GenericPalletEvent<Rv>;
4582
+ };
4583
+ /**
4584
+ * Pallet `TokenGateway`'s events
4585
+ **/
4586
+ tokenGateway: {
4587
+ /**
4588
+ * An asset has been teleported
4589
+ **/
4590
+ AssetTeleported: GenericPalletEvent<
4591
+ Rv,
4592
+ 'TokenGateway',
4593
+ 'AssetTeleported',
4594
+ {
4595
+ /**
4596
+ * Source account
4597
+ **/
4598
+ from: AccountId32;
4599
+
4600
+ /**
4601
+ * beneficiary account on destination
4602
+ **/
4603
+ to: H256;
4604
+
4605
+ /**
4606
+ * Amount transferred
4607
+ **/
4608
+ amount: bigint;
4609
+
4610
+ /**
4611
+ * Destination chain
4612
+ **/
4613
+ dest: IsmpHostStateMachine;
4614
+
4615
+ /**
4616
+ * Request commitment
4617
+ **/
4618
+ commitment: H256;
4619
+ }
4620
+ >;
4621
+
4622
+ /**
4623
+ * An asset has been received and transferred to the beneficiary's account
4624
+ **/
4625
+ AssetReceived: GenericPalletEvent<
4626
+ Rv,
4627
+ 'TokenGateway',
4628
+ 'AssetReceived',
4629
+ {
4630
+ /**
4631
+ * beneficiary account on relaychain
4632
+ **/
4633
+ beneficiary: AccountId32;
4634
+
4635
+ /**
4636
+ * Amount transferred
4637
+ **/
4638
+ amount: bigint;
4639
+
4640
+ /**
4641
+ * Destination chain
4642
+ **/
4643
+ source: IsmpHostStateMachine;
4644
+ }
4645
+ >;
4646
+
4647
+ /**
4648
+ * An asset has been refunded and transferred to the beneficiary's account
4649
+ **/
4650
+ AssetRefunded: GenericPalletEvent<
4651
+ Rv,
4652
+ 'TokenGateway',
4653
+ 'AssetRefunded',
4654
+ {
4655
+ /**
4656
+ * beneficiary account on relaychain
4657
+ **/
4658
+ beneficiary: AccountId32;
4659
+
4660
+ /**
4661
+ * Amount transferred
4662
+ **/
4663
+ amount: bigint;
4664
+
4665
+ /**
4666
+ * Destination chain
4667
+ **/
4668
+ source: IsmpHostStateMachine;
4669
+ }
4670
+ >;
4671
+
4672
+ /**
4673
+ * ERC6160 asset creation request dispatched to hyperbridge
4674
+ **/
4675
+ Erc6160AssetRegistrationDispatched: GenericPalletEvent<
4676
+ Rv,
4677
+ 'TokenGateway',
4678
+ 'ERC6160AssetRegistrationDispatched',
4679
+ {
4680
+ /**
4681
+ * Request commitment
4682
+ **/
4683
+ commitment: H256;
4684
+ }
4685
+ >;
4686
+
4687
+ /**
4688
+ * Generic pallet event
4689
+ **/
4690
+ [prop: string]: GenericPalletEvent<Rv>;
4691
+ };
4279
4692
  /**
4280
4693
  * Pallet `EmaOracle`'s events
4281
4694
  **/
@@ -25,7 +25,7 @@ export interface VersionedPaseoHydrationApi<Rv extends RpcVersion> extends Gener
25
25
 
26
26
  /**
27
27
  * @name: PaseoHydrationApi
28
- * @specVersion: 335
28
+ * @specVersion: 337
29
29
  **/
30
30
  export interface PaseoHydrationApi {
31
31
  legacy: VersionedPaseoHydrationApi<RpcLegacy>;