@dedot/chaintypes 0.149.0 → 0.151.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/basilisk/index.d.ts +1 -1
- package/kusama/consts.d.ts +41 -2
- package/kusama/errors.d.ts +38 -0
- package/kusama/events.d.ts +132 -0
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +35 -0
- package/kusama/tx.d.ts +209 -15
- package/kusama/types.d.ts +465 -98
- package/kusama/view-functions.d.ts +80 -1
- package/kusama-asset-hub/consts.d.ts +48 -2
- package/kusama-asset-hub/errors.d.ts +52 -23
- package/kusama-asset-hub/events.d.ts +212 -36
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +79 -26
- package/kusama-asset-hub/runtime.d.ts +180 -13
- package/kusama-asset-hub/tx.d.ts +347 -143
- package/kusama-asset-hub/types.d.ts +1613 -1188
- package/kusama-asset-hub/view-functions.d.ts +34 -1
- package/kusama-people/consts.d.ts +21 -0
- package/kusama-people/errors.d.ts +8 -0
- package/kusama-people/events.d.ts +22 -0
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +25 -2
- package/kusama-people/runtime.d.ts +121 -0
- package/kusama-people/tx.d.ts +24 -12
- package/kusama-people/types.d.ts +1072 -954
- package/kusama-people/view-functions.d.ts +34 -1
- package/package.json +2 -2
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { AccountId32Like } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
StagingKusamaRuntimeRuntimeCallLike,
|
|
7
|
+
KusamaRuntimeConstantsProxyProxyType,
|
|
8
|
+
PolkadotParachainPrimitivesPrimitivesId,
|
|
9
|
+
} from './types.js';
|
|
4
10
|
|
|
5
|
-
export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
|
|
11
|
+
export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
|
|
12
|
+
/**
|
|
13
|
+
* Pallet `Proxy`'s view functions
|
|
14
|
+
**/
|
|
15
|
+
proxy: {
|
|
16
|
+
/**
|
|
17
|
+
* Check if a `RuntimeCall` is allowed for a given `ProxyType`.
|
|
18
|
+
*
|
|
19
|
+
* @param {StagingKusamaRuntimeRuntimeCallLike} call
|
|
20
|
+
* @param {KusamaRuntimeConstantsProxyProxyType} proxyType
|
|
21
|
+
**/
|
|
22
|
+
checkPermissions: GenericViewFunction<
|
|
23
|
+
Rv,
|
|
24
|
+
(call: StagingKusamaRuntimeRuntimeCallLike, proxyType: KusamaRuntimeConstantsProxyProxyType) => Promise<boolean>
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Check if one `ProxyType` is a subset of another `ProxyType`.
|
|
29
|
+
*
|
|
30
|
+
* @param {KusamaRuntimeConstantsProxyProxyType} toCheck
|
|
31
|
+
* @param {KusamaRuntimeConstantsProxyProxyType} against
|
|
32
|
+
**/
|
|
33
|
+
isSuperset: GenericViewFunction<
|
|
34
|
+
Rv,
|
|
35
|
+
(toCheck: KusamaRuntimeConstantsProxyProxyType, against: KusamaRuntimeConstantsProxyProxyType) => Promise<boolean>
|
|
36
|
+
>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generic pallet view function
|
|
40
|
+
**/
|
|
41
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Pallet `VoterList`'s view functions
|
|
45
|
+
**/
|
|
46
|
+
voterList: {
|
|
47
|
+
/**
|
|
48
|
+
* Get the current `score` of a given account.
|
|
49
|
+
*
|
|
50
|
+
* Returns `(current, real_score)`, the former being the current score that this pallet is
|
|
51
|
+
* aware of, which may or may not be up to date, and the latter being the real score, as
|
|
52
|
+
* provided by
|
|
53
|
+
*
|
|
54
|
+
* If the two differ, it means this node is eligible for [`Call::rebag`].
|
|
55
|
+
*
|
|
56
|
+
* @param {AccountId32Like} who
|
|
57
|
+
**/
|
|
58
|
+
scores: GenericViewFunction<Rv, (who: AccountId32Like) => Promise<[bigint | undefined, bigint | undefined]>>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Generic pallet view function
|
|
62
|
+
**/
|
|
63
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Pallet `Paras`'s view functions
|
|
67
|
+
**/
|
|
68
|
+
paras: {
|
|
69
|
+
/**
|
|
70
|
+
* Returns the cost for removing an upgrade cooldown for the given `para`.
|
|
71
|
+
*
|
|
72
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
73
|
+
**/
|
|
74
|
+
removeUpgradeCooldownCost: GenericViewFunction<
|
|
75
|
+
Rv,
|
|
76
|
+
(para: PolkadotParachainPrimitivesPrimitivesId) => Promise<bigint>
|
|
77
|
+
>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Generic pallet view function
|
|
81
|
+
**/
|
|
82
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -8,9 +8,10 @@ import type {
|
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
9
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
10
10
|
FrameSupportPalletId,
|
|
11
|
+
StagingXcmV5Junctions,
|
|
11
12
|
SpWeightsWeightV2Weight,
|
|
12
13
|
PalletNftsBitFlagsPalletFeature,
|
|
13
|
-
|
|
14
|
+
StagingXcmV5Location,
|
|
14
15
|
} from './types.js';
|
|
15
16
|
|
|
16
17
|
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
@@ -99,6 +100,31 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
99
100
|
**/
|
|
100
101
|
[name: string]: any;
|
|
101
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Pallet `MultiBlockMigrations`'s constants
|
|
105
|
+
**/
|
|
106
|
+
multiBlockMigrations: {
|
|
107
|
+
/**
|
|
108
|
+
* The maximal length of an encoded cursor.
|
|
109
|
+
*
|
|
110
|
+
* A good default needs to selected such that no migration will ever have a cursor with MEL
|
|
111
|
+
* above this limit. This is statically checked in `integrity_test`.
|
|
112
|
+
**/
|
|
113
|
+
cursorMaxLen: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The maximal length of an encoded identifier.
|
|
117
|
+
*
|
|
118
|
+
* A good default needs to selected such that no migration will ever have an identifier
|
|
119
|
+
* with MEL above this limit. This is statically checked in `integrity_test`.
|
|
120
|
+
**/
|
|
121
|
+
identifierMaxLen: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Generic pallet constant
|
|
125
|
+
**/
|
|
126
|
+
[name: string]: any;
|
|
127
|
+
};
|
|
102
128
|
/**
|
|
103
129
|
* Pallet `Balances`'s constants
|
|
104
130
|
**/
|
|
@@ -250,6 +276,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
250
276
|
* Pallet `Session`'s constants
|
|
251
277
|
**/
|
|
252
278
|
session: {
|
|
279
|
+
/**
|
|
280
|
+
* The amount to be held when setting keys.
|
|
281
|
+
**/
|
|
282
|
+
keyDeposit: bigint;
|
|
283
|
+
|
|
253
284
|
/**
|
|
254
285
|
* Generic pallet constant
|
|
255
286
|
**/
|
|
@@ -324,12 +355,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
324
355
|
* Pallet `PolkadotXcm`'s constants
|
|
325
356
|
**/
|
|
326
357
|
polkadotXcm: {
|
|
358
|
+
/**
|
|
359
|
+
* This chain's Universal Location.
|
|
360
|
+
**/
|
|
361
|
+
universalLocation: StagingXcmV5Junctions;
|
|
362
|
+
|
|
327
363
|
/**
|
|
328
364
|
* The latest supported version that we advertise. Generally just set it to
|
|
329
365
|
* `pallet_xcm::CurrentXcmVersion`.
|
|
330
366
|
**/
|
|
331
367
|
advertisedXcmVersion: number;
|
|
332
368
|
|
|
369
|
+
/**
|
|
370
|
+
* The maximum number of local XCM locks that a single account may have.
|
|
371
|
+
**/
|
|
372
|
+
maxLockers: number;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* The maximum number of consumers a single remote lock may have.
|
|
376
|
+
**/
|
|
377
|
+
maxRemoteLockConsumers: number;
|
|
378
|
+
|
|
333
379
|
/**
|
|
334
380
|
* Generic pallet constant
|
|
335
381
|
**/
|
|
@@ -829,7 +875,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
829
875
|
/**
|
|
830
876
|
* Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
|
|
831
877
|
**/
|
|
832
|
-
poolSetupFeeAsset:
|
|
878
|
+
poolSetupFeeAsset: StagingXcmV5Location;
|
|
833
879
|
|
|
834
880
|
/**
|
|
835
881
|
* A fee to withdraw the liquidity.
|
|
@@ -101,6 +101,20 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
101
101
|
**/
|
|
102
102
|
[error: string]: GenericPalletError<Rv>;
|
|
103
103
|
};
|
|
104
|
+
/**
|
|
105
|
+
* Pallet `MultiBlockMigrations`'s errors
|
|
106
|
+
**/
|
|
107
|
+
multiBlockMigrations: {
|
|
108
|
+
/**
|
|
109
|
+
* The operation cannot complete since some MBMs are ongoing.
|
|
110
|
+
**/
|
|
111
|
+
Ongoing: GenericPalletError<Rv>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Generic pallet error
|
|
115
|
+
**/
|
|
116
|
+
[error: string]: GenericPalletError<Rv>;
|
|
117
|
+
};
|
|
104
118
|
/**
|
|
105
119
|
* Pallet `Balances`'s errors
|
|
106
120
|
**/
|
|
@@ -496,6 +510,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
496
510
|
|
|
497
511
|
/**
|
|
498
512
|
* Too many locations authorized to alias origin.
|
|
513
|
+
*
|
|
514
|
+
* @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
|
|
499
515
|
**/
|
|
500
516
|
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
501
517
|
|
|
@@ -509,6 +525,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
509
525
|
**/
|
|
510
526
|
AliasNotFound: GenericPalletError<Rv>;
|
|
511
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Local XCM execution incomplete with the actual XCM error and the index of the
|
|
530
|
+
* instruction that caused the error.
|
|
531
|
+
**/
|
|
532
|
+
LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
|
|
533
|
+
|
|
512
534
|
/**
|
|
513
535
|
* Generic pallet error
|
|
514
536
|
**/
|
|
@@ -982,6 +1004,26 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
982
1004
|
**/
|
|
983
1005
|
BidTooLow: GenericPalletError<Rv>;
|
|
984
1006
|
|
|
1007
|
+
/**
|
|
1008
|
+
* No metadata is found.
|
|
1009
|
+
**/
|
|
1010
|
+
NoMetadata: GenericPalletError<Rv>;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Wrong metadata key/value bytes supplied.
|
|
1014
|
+
**/
|
|
1015
|
+
WrongMetadata: GenericPalletError<Rv>;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* An attribute is not found.
|
|
1019
|
+
**/
|
|
1020
|
+
AttributeNotFound: GenericPalletError<Rv>;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Wrong attribute key/value bytes supplied.
|
|
1024
|
+
**/
|
|
1025
|
+
WrongAttribute: GenericPalletError<Rv>;
|
|
1026
|
+
|
|
985
1027
|
/**
|
|
986
1028
|
* Generic pallet error
|
|
987
1029
|
**/
|
|
@@ -1693,7 +1735,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1693
1735
|
ContractTrapped: GenericPalletError<Rv>;
|
|
1694
1736
|
|
|
1695
1737
|
/**
|
|
1696
|
-
*
|
|
1738
|
+
* Event body or storage item exceeds [`limits::PAYLOAD_BYTES`].
|
|
1697
1739
|
**/
|
|
1698
1740
|
ValueTooLarge: GenericPalletError<Rv>;
|
|
1699
1741
|
|
|
@@ -1713,18 +1755,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1713
1755
|
**/
|
|
1714
1756
|
TooManyTopics: GenericPalletError<Rv>;
|
|
1715
1757
|
|
|
1716
|
-
/**
|
|
1717
|
-
* The chain does not provide a chain extension. Calling the chain extension results
|
|
1718
|
-
* in this error. Note that this usually shouldn't happen as deploying such contracts
|
|
1719
|
-
* is rejected.
|
|
1720
|
-
**/
|
|
1721
|
-
NoChainExtension: GenericPalletError<Rv>;
|
|
1722
|
-
|
|
1723
|
-
/**
|
|
1724
|
-
* Failed to decode the XCM program.
|
|
1725
|
-
**/
|
|
1726
|
-
XcmDecodeFailed: GenericPalletError<Rv>;
|
|
1727
|
-
|
|
1728
1758
|
/**
|
|
1729
1759
|
* A contract with the same AccountId already exists.
|
|
1730
1760
|
**/
|
|
@@ -1789,8 +1819,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1789
1819
|
BlobTooLarge: GenericPalletError<Rv>;
|
|
1790
1820
|
|
|
1791
1821
|
/**
|
|
1792
|
-
* The
|
|
1793
|
-
* [`limits::code::STATIC_MEMORY_BYTES`].
|
|
1822
|
+
* The contract declares too much memory (ro + rw + stack).
|
|
1794
1823
|
**/
|
|
1795
1824
|
StaticMemoryTooLarge: GenericPalletError<Rv>;
|
|
1796
1825
|
|
|
@@ -1849,11 +1878,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1849
1878
|
**/
|
|
1850
1879
|
BalanceConversionFailed: GenericPalletError<Rv>;
|
|
1851
1880
|
|
|
1852
|
-
/**
|
|
1853
|
-
* Failed to convert an EVM balance to a native balance.
|
|
1854
|
-
**/
|
|
1855
|
-
DecimalPrecisionLoss: GenericPalletError<Rv>;
|
|
1856
|
-
|
|
1857
1881
|
/**
|
|
1858
1882
|
* Immutable data can only be set during deploys and only be read during calls.
|
|
1859
1883
|
* Additionally, it is only valid to set the data once and it must not be empty.
|
|
@@ -1883,14 +1907,19 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1883
1907
|
RefcountOverOrUnderflow: GenericPalletError<Rv>;
|
|
1884
1908
|
|
|
1885
1909
|
/**
|
|
1886
|
-
* Unsupported precompile address
|
|
1910
|
+
* Unsupported precompile address.
|
|
1887
1911
|
**/
|
|
1888
1912
|
UnsupportedPrecompileAddress: GenericPalletError<Rv>;
|
|
1889
1913
|
|
|
1890
1914
|
/**
|
|
1891
|
-
*
|
|
1915
|
+
* The calldata exceeds [`limits::CALLDATA_BYTES`].
|
|
1916
|
+
**/
|
|
1917
|
+
CallDataTooLarge: GenericPalletError<Rv>;
|
|
1918
|
+
|
|
1919
|
+
/**
|
|
1920
|
+
* The return data exceeds [`limits::CALLDATA_BYTES`].
|
|
1892
1921
|
**/
|
|
1893
|
-
|
|
1922
|
+
ReturnDataTooLarge: GenericPalletError<Rv>;
|
|
1894
1923
|
|
|
1895
1924
|
/**
|
|
1896
1925
|
* Generic pallet error
|