@dedot/chaintypes 0.205.0 → 0.207.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/astar/json-rpc.d.ts +11 -9
- package/basilisk/consts.d.ts +86 -19
- package/basilisk/errors.d.ts +66 -24
- package/basilisk/events.d.ts +211 -51
- package/basilisk/index.d.ts +1 -1
- package/basilisk/json-rpc.d.ts +10 -7
- package/basilisk/query.d.ts +120 -61
- package/basilisk/runtime.d.ts +389 -84
- package/basilisk/tx.d.ts +404 -48
- package/basilisk/types.d.ts +1068 -386
- package/package.json +2 -2
- package/paseo-hydration/events.d.ts +10 -12
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +9 -0
- package/paseo-hydration/tx.d.ts +14 -21
- package/paseo-hydration/types.d.ts +20 -28
package/astar/json-rpc.d.ts
CHANGED
|
@@ -5,15 +5,15 @@ import type { JsonRpcApis } from 'dedot/types/json-rpc';
|
|
|
5
5
|
|
|
6
6
|
export type ChainJsonRpcApis = Pick<
|
|
7
7
|
JsonRpcApis,
|
|
8
|
-
| '
|
|
9
|
-
| '
|
|
10
|
-
| '
|
|
11
|
-
| '
|
|
12
|
-
| '
|
|
13
|
-
| '
|
|
14
|
-
| '
|
|
15
|
-
| '
|
|
16
|
-
| '
|
|
8
|
+
| 'archive_v1_body'
|
|
9
|
+
| 'archive_v1_call'
|
|
10
|
+
| 'archive_v1_finalizedHeight'
|
|
11
|
+
| 'archive_v1_genesisHash'
|
|
12
|
+
| 'archive_v1_hashByHeight'
|
|
13
|
+
| 'archive_v1_header'
|
|
14
|
+
| 'archive_v1_storage'
|
|
15
|
+
| 'archive_v1_storageDiff'
|
|
16
|
+
| 'archive_v1_storageDiff_stopStorageDiff'
|
|
17
17
|
| 'author_hasKey'
|
|
18
18
|
| 'author_hasSessionKeys'
|
|
19
19
|
| 'author_insertKey'
|
|
@@ -82,6 +82,7 @@ export type ChainJsonRpcApis = Pick<
|
|
|
82
82
|
| 'eth_newBlockFilter'
|
|
83
83
|
| 'eth_newFilter'
|
|
84
84
|
| 'eth_newPendingTransactionFilter'
|
|
85
|
+
| 'eth_pendingTransactions'
|
|
85
86
|
| 'eth_protocolVersion'
|
|
86
87
|
| 'eth_sendRawTransaction'
|
|
87
88
|
| 'eth_sendTransaction'
|
|
@@ -94,6 +95,7 @@ export type ChainJsonRpcApis = Pick<
|
|
|
94
95
|
| 'net_listening'
|
|
95
96
|
| 'net_peerCount'
|
|
96
97
|
| 'net_version'
|
|
98
|
+
| 'offchain_localStorageClear'
|
|
97
99
|
| 'offchain_localStorageGet'
|
|
98
100
|
| 'offchain_localStorageSet'
|
|
99
101
|
| 'payment_queryFeeDetails'
|
package/basilisk/consts.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, Permill,
|
|
4
|
+
import type { RuntimeVersion, Permill, AccountId32, FixedBytes } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
9
|
FrameSupportPalletId,
|
|
10
10
|
SpWeightsWeightV2Weight,
|
|
11
|
-
|
|
11
|
+
PalletReferendaTrackDetails,
|
|
12
12
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
StagingXcmV5Junctions,
|
|
14
|
+
BasiliskTraitsOracleOraclePeriod,
|
|
15
|
+
StagingXcmV5Location,
|
|
15
16
|
} from './types.js';
|
|
16
17
|
|
|
17
18
|
export interface ChainConsts extends GenericChainConsts {
|
|
@@ -196,6 +197,9 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
196
197
|
palletId: FrameSupportPalletId;
|
|
197
198
|
|
|
198
199
|
/**
|
|
200
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
201
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
202
|
+
*
|
|
199
203
|
* The maximum number of approvals that can wait in the spending queue.
|
|
200
204
|
*
|
|
201
205
|
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
@@ -207,6 +211,11 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
207
211
|
**/
|
|
208
212
|
payoutPeriod: number;
|
|
209
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Gets this pallet's derived pot account.
|
|
216
|
+
**/
|
|
217
|
+
potAccount: AccountId32;
|
|
218
|
+
|
|
210
219
|
/**
|
|
211
220
|
* Generic pallet constant
|
|
212
221
|
**/
|
|
@@ -400,6 +409,36 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
400
409
|
* Pallet `CollatorSelection`'s constants
|
|
401
410
|
**/
|
|
402
411
|
collatorSelection: {
|
|
412
|
+
/**
|
|
413
|
+
* Account Identifier from which the internal Pot is generated.
|
|
414
|
+
**/
|
|
415
|
+
potId: FrameSupportPalletId;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Maximum number of candidates that we should have.
|
|
419
|
+
*
|
|
420
|
+
* This does not take into account the invulnerables.
|
|
421
|
+
**/
|
|
422
|
+
maxCandidates: number;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Minimum number eligible collators. Should always be greater than zero. This includes
|
|
426
|
+
* Invulnerable collators. This ensures that there will always be one collator who can
|
|
427
|
+
* produce a block.
|
|
428
|
+
**/
|
|
429
|
+
minEligibleCollators: number;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Maximum number of invulnerables.
|
|
433
|
+
**/
|
|
434
|
+
maxInvulnerables: number;
|
|
435
|
+
kickThreshold: number;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Gets this pallet's derived pot account.
|
|
439
|
+
**/
|
|
440
|
+
potAccount: AccountId32;
|
|
441
|
+
|
|
403
442
|
/**
|
|
404
443
|
* Generic pallet constant
|
|
405
444
|
**/
|
|
@@ -513,6 +552,12 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
513
552
|
**/
|
|
514
553
|
byteDeposit: bigint;
|
|
515
554
|
|
|
555
|
+
/**
|
|
556
|
+
* The amount held on deposit per registered username. This value should change only in
|
|
557
|
+
* runtime upgrades with proper migration of existing deposits.
|
|
558
|
+
**/
|
|
559
|
+
usernameDeposit: bigint;
|
|
560
|
+
|
|
516
561
|
/**
|
|
517
562
|
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
518
563
|
* that one storage item's value will increase by the size of an account ID, and there will
|
|
@@ -536,6 +581,12 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
536
581
|
**/
|
|
537
582
|
pendingUsernameExpiration: number;
|
|
538
583
|
|
|
584
|
+
/**
|
|
585
|
+
* The number of blocks that must pass to enable the permanent deletion of a username by
|
|
586
|
+
* its respective authority.
|
|
587
|
+
**/
|
|
588
|
+
usernameGracePeriod: number;
|
|
589
|
+
|
|
539
590
|
/**
|
|
540
591
|
* The maximum length of a suffix.
|
|
541
592
|
**/
|
|
@@ -669,9 +720,11 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
669
720
|
alarmInterval: number;
|
|
670
721
|
|
|
671
722
|
/**
|
|
672
|
-
*
|
|
723
|
+
* A list of tracks.
|
|
724
|
+
*
|
|
725
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
673
726
|
**/
|
|
674
|
-
tracks: Array<[number,
|
|
727
|
+
tracks: Array<[number, PalletReferendaTrackDetails]>;
|
|
675
728
|
|
|
676
729
|
/**
|
|
677
730
|
* Generic pallet constant
|
|
@@ -746,6 +799,27 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
746
799
|
* Pallet `PolkadotXcm`'s constants
|
|
747
800
|
**/
|
|
748
801
|
polkadotXcm: {
|
|
802
|
+
/**
|
|
803
|
+
* This chain's Universal Location.
|
|
804
|
+
**/
|
|
805
|
+
universalLocation: StagingXcmV5Junctions;
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* The latest supported version that we advertise. Generally just set it to
|
|
809
|
+
* `pallet_xcm::CurrentXcmVersion`.
|
|
810
|
+
**/
|
|
811
|
+
advertisedXcmVersion: number;
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* The maximum number of local XCM locks that a single account may have.
|
|
815
|
+
**/
|
|
816
|
+
maxLockers: number;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* The maximum number of consumers a single remote lock may have.
|
|
820
|
+
**/
|
|
821
|
+
maxRemoteLockConsumers: number;
|
|
822
|
+
|
|
749
823
|
/**
|
|
750
824
|
* Generic pallet constant
|
|
751
825
|
**/
|
|
@@ -908,17 +982,8 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
908
982
|
**/
|
|
909
983
|
duster: {
|
|
910
984
|
/**
|
|
911
|
-
*
|
|
912
|
-
|
|
913
|
-
reward: bigint;
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Native Asset Id
|
|
917
|
-
**/
|
|
918
|
-
nativeCurrencyId: number;
|
|
919
|
-
|
|
920
|
-
/**
|
|
921
|
-
* Default account for `reward_account` and `dust_account` in genesis config.
|
|
985
|
+
* Duster for accounts with AToken dusts
|
|
986
|
+
* Treasury account, which receives the dust.
|
|
922
987
|
**/
|
|
923
988
|
treasuryAccountId: AccountId32;
|
|
924
989
|
|
|
@@ -1004,7 +1069,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1004
1069
|
/**
|
|
1005
1070
|
* Oracle's price aggregation period.
|
|
1006
1071
|
**/
|
|
1007
|
-
oraclePeriod:
|
|
1072
|
+
oraclePeriod: BasiliskTraitsOracleOraclePeriod;
|
|
1008
1073
|
|
|
1009
1074
|
/**
|
|
1010
1075
|
* Generic pallet constant
|
|
@@ -1079,6 +1144,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1079
1144
|
* Reward Asset Id
|
|
1080
1145
|
**/
|
|
1081
1146
|
rewardCurrencyId: number;
|
|
1147
|
+
rewardsBag: AccountId32;
|
|
1082
1148
|
|
|
1083
1149
|
/**
|
|
1084
1150
|
* Generic pallet constant
|
|
@@ -1112,6 +1178,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1112
1178
|
* Pallet `Currencies`'s constants
|
|
1113
1179
|
**/
|
|
1114
1180
|
currencies: {
|
|
1181
|
+
reserveAccount: AccountId32;
|
|
1115
1182
|
getNativeCurrencyId: number;
|
|
1116
1183
|
|
|
1117
1184
|
/**
|
|
@@ -1151,7 +1218,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1151
1218
|
/**
|
|
1152
1219
|
* Self chain location.
|
|
1153
1220
|
**/
|
|
1154
|
-
selfLocation:
|
|
1221
|
+
selfLocation: StagingXcmV5Location;
|
|
1155
1222
|
|
|
1156
1223
|
/**
|
|
1157
1224
|
* Base XCM weight.
|
package/basilisk/errors.d.ts
CHANGED
|
@@ -467,6 +467,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
467
467
|
**/
|
|
468
468
|
PrimeAccountNotMember: GenericPalletError;
|
|
469
469
|
|
|
470
|
+
/**
|
|
471
|
+
* Proposal is still active.
|
|
472
|
+
**/
|
|
473
|
+
ProposalActive: GenericPalletError;
|
|
474
|
+
|
|
470
475
|
/**
|
|
471
476
|
* Generic pallet error
|
|
472
477
|
**/
|
|
@@ -970,6 +975,27 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
970
975
|
**/
|
|
971
976
|
NotExpired: GenericPalletError;
|
|
972
977
|
|
|
978
|
+
/**
|
|
979
|
+
* The username cannot be removed because it's still in the grace period.
|
|
980
|
+
**/
|
|
981
|
+
TooEarly: GenericPalletError;
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* The username cannot be removed because it is not unbinding.
|
|
985
|
+
**/
|
|
986
|
+
NotUnbinding: GenericPalletError;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* The username cannot be unbound because it is already unbinding.
|
|
990
|
+
**/
|
|
991
|
+
AlreadyUnbinding: GenericPalletError;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* The action cannot be performed because of insufficient privileges (e.g. authority
|
|
995
|
+
* trying to unbind a username provided by the system).
|
|
996
|
+
**/
|
|
997
|
+
InsufficientPrivileges: GenericPalletError;
|
|
998
|
+
|
|
973
999
|
/**
|
|
974
1000
|
* Generic pallet error
|
|
975
1001
|
**/
|
|
@@ -1015,12 +1041,13 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1015
1041
|
SenderInSignatories: GenericPalletError;
|
|
1016
1042
|
|
|
1017
1043
|
/**
|
|
1018
|
-
* Multisig operation not found
|
|
1044
|
+
* Multisig operation not found in storage.
|
|
1019
1045
|
**/
|
|
1020
1046
|
NotFound: GenericPalletError;
|
|
1021
1047
|
|
|
1022
1048
|
/**
|
|
1023
|
-
* Only the account that originally created the multisig is able to cancel it
|
|
1049
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
1050
|
+
* its deposits.
|
|
1024
1051
|
**/
|
|
1025
1052
|
NotOwner: GenericPalletError;
|
|
1026
1053
|
|
|
@@ -1360,16 +1387,6 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1360
1387
|
**/
|
|
1361
1388
|
NotScheduled: GenericPalletError;
|
|
1362
1389
|
|
|
1363
|
-
/**
|
|
1364
|
-
* No code upgrade has been authorized.
|
|
1365
|
-
**/
|
|
1366
|
-
NothingAuthorized: GenericPalletError;
|
|
1367
|
-
|
|
1368
|
-
/**
|
|
1369
|
-
* The given code upgrade has not been authorized.
|
|
1370
|
-
**/
|
|
1371
|
-
Unauthorized: GenericPalletError;
|
|
1372
|
-
|
|
1373
1390
|
/**
|
|
1374
1391
|
* Generic pallet error
|
|
1375
1392
|
**/
|
|
@@ -1502,6 +1519,21 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1502
1519
|
**/
|
|
1503
1520
|
LocalExecutionIncomplete: GenericPalletError;
|
|
1504
1521
|
|
|
1522
|
+
/**
|
|
1523
|
+
* Too many locations authorized to alias origin.
|
|
1524
|
+
**/
|
|
1525
|
+
TooManyAuthorizedAliases: GenericPalletError;
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* Expiry block number is in the past.
|
|
1529
|
+
**/
|
|
1530
|
+
ExpiresInPast: GenericPalletError;
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* The alias to remove authorization for was not found.
|
|
1534
|
+
**/
|
|
1535
|
+
AliasNotFound: GenericPalletError;
|
|
1536
|
+
|
|
1505
1537
|
/**
|
|
1506
1538
|
* Generic pallet error
|
|
1507
1539
|
**/
|
|
@@ -1798,12 +1830,12 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1798
1830
|
/**
|
|
1799
1831
|
* Account is excluded from dusting.
|
|
1800
1832
|
**/
|
|
1801
|
-
|
|
1833
|
+
AccountWhitelisted: GenericPalletError;
|
|
1802
1834
|
|
|
1803
1835
|
/**
|
|
1804
1836
|
* Account is not present in the non-dustable list.
|
|
1805
1837
|
**/
|
|
1806
|
-
|
|
1838
|
+
AccountNotWhitelisted: GenericPalletError;
|
|
1807
1839
|
|
|
1808
1840
|
/**
|
|
1809
1841
|
* The balance is zero.
|
|
@@ -1811,14 +1843,14 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1811
1843
|
ZeroBalance: GenericPalletError;
|
|
1812
1844
|
|
|
1813
1845
|
/**
|
|
1814
|
-
* The balance is
|
|
1846
|
+
* The balance was not fully dusted, there is some leftover on the account. Normally, it should never happen.
|
|
1815
1847
|
**/
|
|
1816
|
-
|
|
1848
|
+
NonZeroBalance: GenericPalletError;
|
|
1817
1849
|
|
|
1818
1850
|
/**
|
|
1819
|
-
*
|
|
1851
|
+
* The balance is sufficient to keep account open.
|
|
1820
1852
|
**/
|
|
1821
|
-
|
|
1853
|
+
BalanceSufficient: GenericPalletError;
|
|
1822
1854
|
|
|
1823
1855
|
/**
|
|
1824
1856
|
* Reserve account is not set.
|
|
@@ -2238,11 +2270,6 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2238
2270
|
**/
|
|
2239
2271
|
LiquidityMiningIsNotStopped: GenericPalletError;
|
|
2240
2272
|
|
|
2241
|
-
/**
|
|
2242
|
-
* LP shares amount is not valid.
|
|
2243
|
-
**/
|
|
2244
|
-
InvalidDepositAmount: GenericPalletError;
|
|
2245
|
-
|
|
2246
2273
|
/**
|
|
2247
2274
|
* Account is not allowed to perform action.
|
|
2248
2275
|
**/
|
|
@@ -2349,6 +2376,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2349
2376
|
**/
|
|
2350
2377
|
IncentivizedAssetNotRegistered: GenericPalletError;
|
|
2351
2378
|
|
|
2379
|
+
/**
|
|
2380
|
+
* Provided `amm_pool_id` doesn't match deposit's `amm_pool_id`.
|
|
2381
|
+
**/
|
|
2382
|
+
AmmPoolIdMismatch: GenericPalletError;
|
|
2383
|
+
|
|
2352
2384
|
/**
|
|
2353
2385
|
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
2354
2386
|
* to protocol maintainers.
|
|
@@ -2373,6 +2405,16 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2373
2405
|
* Pallet `Broadcast`'s errors
|
|
2374
2406
|
**/
|
|
2375
2407
|
broadcast: {
|
|
2408
|
+
/**
|
|
2409
|
+
* The execution context call stack has reached its maximum size
|
|
2410
|
+
**/
|
|
2411
|
+
ExecutionCallStackOverflow: GenericPalletError;
|
|
2412
|
+
|
|
2413
|
+
/**
|
|
2414
|
+
* The execution context call stack is empty, unable to decrease level
|
|
2415
|
+
**/
|
|
2416
|
+
ExecutionCallStackUnderflow: GenericPalletError;
|
|
2417
|
+
|
|
2376
2418
|
/**
|
|
2377
2419
|
* Generic pallet error
|
|
2378
2420
|
**/
|
|
@@ -2565,7 +2607,7 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2565
2607
|
ZeroFee: GenericPalletError;
|
|
2566
2608
|
|
|
2567
2609
|
/**
|
|
2568
|
-
* The
|
|
2610
|
+
* The transferring asset amount is zero.
|
|
2569
2611
|
**/
|
|
2570
2612
|
ZeroAmount: GenericPalletError;
|
|
2571
2613
|
|