@dedot/chaintypes 0.133.0 → 0.135.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.
@@ -39,11 +39,8 @@ import type {
39
39
  PalletDemocracyVoteVoting,
40
40
  PalletDemocracyVoteThreshold,
41
41
  PalletDemocracyMetadataOwner,
42
- PalletElectionsPhragmenSeatHolder,
43
- PalletElectionsPhragmenVoter,
44
42
  HydradxRuntimeRuntimeCall,
45
43
  PalletCollectiveVotes,
46
- PalletTipsOpenTip,
47
44
  PalletProxyProxyDefinition,
48
45
  PalletProxyAnnouncement,
49
46
  PalletMultisigMultisig,
@@ -68,9 +65,11 @@ import type {
68
65
  PalletOtcOrder,
69
66
  PalletCircuitBreakerTradeVolumeLimit,
70
67
  PalletCircuitBreakerLiquidityLimit,
68
+ PalletCircuitBreakerLockdownStatus,
71
69
  HydradxTraitsRouterTrade,
72
70
  HydradxTraitsRouterAssetPair,
73
71
  PalletDynamicFeesFeeEntry,
72
+ PalletDynamicFeesAssetFeeConfig,
74
73
  PalletStakingStakingData,
75
74
  PalletStakingPosition,
76
75
  PalletStakingVoting,
@@ -765,116 +764,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
765
764
  **/
766
765
  [storage: string]: GenericStorageQuery<Rv>;
767
766
  };
768
- /**
769
- * Pallet `Elections`'s storage queries
770
- **/
771
- elections: {
772
- /**
773
- * The current elected members.
774
- *
775
- * Invariant: Always sorted based on account id.
776
- *
777
- * @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
778
- **/
779
- members: GenericStorageQuery<Rv, () => Array<PalletElectionsPhragmenSeatHolder>>;
780
-
781
- /**
782
- * The current reserved runners-up.
783
- *
784
- * Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
785
- * last (i.e. _best_) runner-up will be replaced.
786
- *
787
- * @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
788
- **/
789
- runnersUp: GenericStorageQuery<Rv, () => Array<PalletElectionsPhragmenSeatHolder>>;
790
-
791
- /**
792
- * The present candidate list. A current member or runner-up can never enter this vector
793
- * and is always implicitly assumed to be a candidate.
794
- *
795
- * Second element is the deposit.
796
- *
797
- * Invariant: Always sorted based on account id.
798
- *
799
- * @param {Callback<Array<[AccountId32, bigint]>> =} callback
800
- **/
801
- candidates: GenericStorageQuery<Rv, () => Array<[AccountId32, bigint]>>;
802
-
803
- /**
804
- * The total number of vote rounds that have happened, excluding the upcoming one.
805
- *
806
- * @param {Callback<number> =} callback
807
- **/
808
- electionRounds: GenericStorageQuery<Rv, () => number>;
809
-
810
- /**
811
- * Votes and locked stake of a particular voter.
812
- *
813
- * TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
814
- *
815
- * @param {AccountId32Like} arg
816
- * @param {Callback<PalletElectionsPhragmenVoter> =} callback
817
- **/
818
- voting: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletElectionsPhragmenVoter, AccountId32>;
819
-
820
- /**
821
- * Generic pallet storage query
822
- **/
823
- [storage: string]: GenericStorageQuery<Rv>;
824
- };
825
- /**
826
- * Pallet `Council`'s storage queries
827
- **/
828
- council: {
829
- /**
830
- * The hashes of the active proposals.
831
- *
832
- * @param {Callback<Array<H256>> =} callback
833
- **/
834
- proposals: GenericStorageQuery<Rv, () => Array<H256>>;
835
-
836
- /**
837
- * Actual proposal for a given hash, if it's current.
838
- *
839
- * @param {H256} arg
840
- * @param {Callback<HydradxRuntimeRuntimeCall | undefined> =} callback
841
- **/
842
- proposalOf: GenericStorageQuery<Rv, (arg: H256) => HydradxRuntimeRuntimeCall | undefined, H256>;
843
-
844
- /**
845
- * Votes on a given proposal, if it is ongoing.
846
- *
847
- * @param {H256} arg
848
- * @param {Callback<PalletCollectiveVotes | undefined> =} callback
849
- **/
850
- voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
851
-
852
- /**
853
- * Proposals so far.
854
- *
855
- * @param {Callback<number> =} callback
856
- **/
857
- proposalCount: GenericStorageQuery<Rv, () => number>;
858
-
859
- /**
860
- * The current members of the collective. This is stored sorted (just by value).
861
- *
862
- * @param {Callback<Array<AccountId32>> =} callback
863
- **/
864
- members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
865
-
866
- /**
867
- * The prime member that helps determine the default vote behavior in case of abstentions.
868
- *
869
- * @param {Callback<AccountId32 | undefined> =} callback
870
- **/
871
- prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
872
-
873
- /**
874
- * Generic pallet storage query
875
- **/
876
- [storage: string]: GenericStorageQuery<Rv>;
877
- };
878
767
  /**
879
768
  * Pallet `TechnicalCommittee`'s storage queries
880
769
  **/
@@ -928,34 +817,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
928
817
  **/
929
818
  [storage: string]: GenericStorageQuery<Rv>;
930
819
  };
931
- /**
932
- * Pallet `Tips`'s storage queries
933
- **/
934
- tips: {
935
- /**
936
- * TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
937
- * This has the insecure enumerable hash function since the key itself is already
938
- * guaranteed to be a secure hash.
939
- *
940
- * @param {H256} arg
941
- * @param {Callback<PalletTipsOpenTip | undefined> =} callback
942
- **/
943
- tips: GenericStorageQuery<Rv, (arg: H256) => PalletTipsOpenTip | undefined, H256>;
944
-
945
- /**
946
- * Simple preimage lookup from the reason's hash to the original data. Again, has an
947
- * insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
948
- *
949
- * @param {H256} arg
950
- * @param {Callback<Bytes | undefined> =} callback
951
- **/
952
- reasons: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
953
-
954
- /**
955
- * Generic pallet storage query
956
- **/
957
- [storage: string]: GenericStorageQuery<Rv>;
958
- };
959
820
  /**
960
821
  * Pallet `Proxy`'s storage queries
961
822
  **/
@@ -1629,6 +1490,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1629
1490
  number
1630
1491
  >;
1631
1492
 
1493
+ /**
1494
+ *
1495
+ * @param {number} arg
1496
+ * @param {Callback<PalletCircuitBreakerLockdownStatus | undefined> =} callback
1497
+ **/
1498
+ assetLockdownState: GenericStorageQuery<
1499
+ Rv,
1500
+ (arg: number) => PalletCircuitBreakerLockdownStatus | undefined,
1501
+ number
1502
+ >;
1503
+
1632
1504
  /**
1633
1505
  * Liquidity limits of assets for removing liquidity.
1634
1506
  * If not set, returns the default limit.
@@ -1689,6 +1561,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1689
1561
  **/
1690
1562
  assetFee: GenericStorageQuery<Rv, (arg: number) => PalletDynamicFeesFeeEntry | undefined, number>;
1691
1563
 
1564
+ /**
1565
+ * Stores per-asset fee configuration (Fixed or Dynamic)
1566
+ *
1567
+ * @param {number} arg
1568
+ * @param {Callback<PalletDynamicFeesAssetFeeConfig | undefined> =} callback
1569
+ **/
1570
+ assetFeeConfiguration: GenericStorageQuery<
1571
+ Rv,
1572
+ (arg: number) => PalletDynamicFeesAssetFeeConfig | undefined,
1573
+ number
1574
+ >;
1575
+
1692
1576
  /**
1693
1577
  * Generic pallet storage query
1694
1578
  **/
@@ -2057,6 +1941,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2057
1941
  **/
2058
1942
  [storage: string]: GenericStorageQuery<Rv>;
2059
1943
  };
1944
+ /**
1945
+ * Pallet `Parameters`'s storage queries
1946
+ **/
1947
+ parameters: {
1948
+ /**
1949
+ *
1950
+ * @param {Callback<boolean> =} callback
1951
+ **/
1952
+ isTestnet: GenericStorageQuery<Rv, () => boolean>;
1953
+
1954
+ /**
1955
+ * Generic pallet storage query
1956
+ **/
1957
+ [storage: string]: GenericStorageQuery<Rv>;
1958
+ };
2060
1959
  /**
2061
1960
  * Pallet `Tokens`'s storage queries
2062
1961
  **/
@@ -2191,13 +2090,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2191
2090
  /**
2192
2091
  * Current building block's transactions and receipts.
2193
2092
  *
2194
- * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
2093
+ * @param {number} arg
2094
+ * @param {Callback<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3] | undefined> =} callback
2195
2095
  **/
2196
2096
  pending: GenericStorageQuery<
2197
2097
  Rv,
2198
- () => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>
2098
+ (arg: number) => [EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3] | undefined,
2099
+ number
2199
2100
  >;
2200
2101
 
2102
+ /**
2103
+ * Counter for the related counted storage map
2104
+ *
2105
+ * @param {Callback<number> =} callback
2106
+ **/
2107
+ counterForPending: GenericStorageQuery<Rv, () => number>;
2108
+
2201
2109
  /**
2202
2110
  * The current Ethereum block.
2203
2111
  *
@@ -668,6 +668,31 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
668
668
  **/
669
669
  [method: string]: GenericRuntimeApiMethod<Rv>;
670
670
  };
671
+ /**
672
+ * @runtimeapi: Erc20MappingApi - 0x542334fe4fd7cada
673
+ **/
674
+ erc20MappingApi: {
675
+ /**
676
+ * Get the EVM address of the asset.
677
+ *
678
+ * @callname: Erc20MappingApi_asset_address
679
+ * @param {number} asset_id
680
+ **/
681
+ assetAddress: GenericRuntimeApiMethod<Rv, (assetId: number) => Promise<H160>>;
682
+
683
+ /**
684
+ * Get the asset id corresponding to EVM address. If not found, returns `None`.
685
+ *
686
+ * @callname: Erc20MappingApi_address_to_asset
687
+ * @param {H160} address
688
+ **/
689
+ addressToAsset: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<number | undefined>>;
690
+
691
+ /**
692
+ * Generic runtime api call
693
+ **/
694
+ [method: string]: GenericRuntimeApiMethod<Rv>;
695
+ };
671
696
  /**
672
697
  * @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
673
698
  **/