@dedot/chaintypes 0.54.0 → 0.56.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 +3 -3
- package/substrate/consts.d.ts +135 -38
- package/substrate/errors.d.ts +432 -11
- package/substrate/events.d.ts +510 -54
- package/substrate/json-rpc.d.ts +1 -0
- package/substrate/query.d.ts +330 -56
- package/substrate/runtime.d.ts +346 -44
- package/substrate/tx.d.ts +1439 -308
- package/substrate/types.d.ts +1973 -492
- package/westend-asset-hub/consts.d.ts +27 -3
- package/westend-asset-hub/errors.d.ts +19 -0
- package/westend-asset-hub/events.d.ts +136 -1
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +30 -0
- package/westend-asset-hub/runtime.d.ts +68 -0
- package/westend-asset-hub/tx.d.ts +107 -0
- package/westend-asset-hub/types.d.ts +244 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"copy": "cp -R ./src/* ./dist"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"dedot": "^0.
|
|
15
|
+
"dedot": "^0.7.0"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public",
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "9fef1d36b89ac11801bf99fe221e41ae0d25a62f",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/substrate/consts.d.ts
CHANGED
|
@@ -170,11 +170,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
170
170
|
/**
|
|
171
171
|
* The maximum number of locks that should exist on an account.
|
|
172
172
|
* Not strictly enforced, but used for weight estimation.
|
|
173
|
+
*
|
|
174
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
173
175
|
**/
|
|
174
176
|
maxLocks: number;
|
|
175
177
|
|
|
176
178
|
/**
|
|
177
179
|
* The maximum number of named reserves that can exist on an account.
|
|
180
|
+
*
|
|
181
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
178
182
|
**/
|
|
179
183
|
maxReserves: number;
|
|
180
184
|
|
|
@@ -222,15 +226,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
222
226
|
**/
|
|
223
227
|
[name: string]: any;
|
|
224
228
|
};
|
|
225
|
-
/**
|
|
226
|
-
* Pallet `AssetTxPayment`'s constants
|
|
227
|
-
**/
|
|
228
|
-
assetTxPayment: {
|
|
229
|
-
/**
|
|
230
|
-
* Generic pallet constant
|
|
231
|
-
**/
|
|
232
|
-
[name: string]: any;
|
|
233
|
-
};
|
|
234
229
|
/**
|
|
235
230
|
* Pallet `AssetConversionTxPayment`'s constants
|
|
236
231
|
**/
|
|
@@ -244,16 +239,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
244
239
|
* Pallet `ElectionProviderMultiPhase`'s constants
|
|
245
240
|
**/
|
|
246
241
|
electionProviderMultiPhase: {
|
|
247
|
-
/**
|
|
248
|
-
* Duration of the unsigned phase.
|
|
249
|
-
**/
|
|
250
|
-
unsignedPhase: number;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Duration of the signed phase.
|
|
254
|
-
**/
|
|
255
|
-
signedPhase: number;
|
|
256
|
-
|
|
257
242
|
/**
|
|
258
243
|
* The minimum amount of improvement to the solution score that defines a solution as
|
|
259
244
|
* "better" in the Signed phase.
|
|
@@ -647,22 +632,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
647
632
|
* Pallet `Treasury`'s constants
|
|
648
633
|
**/
|
|
649
634
|
treasury: {
|
|
650
|
-
/**
|
|
651
|
-
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
|
652
|
-
* An accepted proposal gets these back. A rejected proposal does not.
|
|
653
|
-
**/
|
|
654
|
-
proposalBond: Permill;
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
658
|
-
**/
|
|
659
|
-
proposalBondMinimum: bigint;
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
663
|
-
**/
|
|
664
|
-
proposalBondMaximum: bigint | undefined;
|
|
665
|
-
|
|
666
635
|
/**
|
|
667
636
|
* Period between successive spends.
|
|
668
637
|
**/
|
|
@@ -679,6 +648,9 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
679
648
|
palletId: FrameSupportPalletId;
|
|
680
649
|
|
|
681
650
|
/**
|
|
651
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
652
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
653
|
+
*
|
|
682
654
|
* The maximum number of approvals that can wait in the spending queue.
|
|
683
655
|
*
|
|
684
656
|
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
@@ -758,6 +730,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
758
730
|
**/
|
|
759
731
|
maxStorageKeyLen: number;
|
|
760
732
|
|
|
733
|
+
/**
|
|
734
|
+
* The maximum size of the transient storage in bytes.
|
|
735
|
+
* This includes keys, values, and previous entries used for storage rollback.
|
|
736
|
+
**/
|
|
737
|
+
maxTransientStorageSize: number;
|
|
738
|
+
|
|
761
739
|
/**
|
|
762
740
|
* The maximum number of delegate_dependencies that a contract can lock with
|
|
763
741
|
* [`chain_extension::Ext::lock_delegate_dependency`].
|
|
@@ -878,6 +856,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
878
856
|
**/
|
|
879
857
|
byteDeposit: bigint;
|
|
880
858
|
|
|
859
|
+
/**
|
|
860
|
+
* The amount held on deposit per registered username. This value should change only in
|
|
861
|
+
* runtime upgrades with proper migration of existing deposits.
|
|
862
|
+
**/
|
|
863
|
+
usernameDeposit: bigint;
|
|
864
|
+
|
|
881
865
|
/**
|
|
882
866
|
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
883
867
|
* that one storage item's value will increase by the size of an account ID, and there will
|
|
@@ -891,7 +875,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
891
875
|
maxSubAccounts: number;
|
|
892
876
|
|
|
893
877
|
/**
|
|
894
|
-
*
|
|
878
|
+
* Maximum number of registrars allowed in the system. Needed to bound the complexity
|
|
895
879
|
* of, e.g., updating judgements.
|
|
896
880
|
**/
|
|
897
881
|
maxRegistrars: number;
|
|
@@ -901,6 +885,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
901
885
|
**/
|
|
902
886
|
pendingUsernameExpiration: number;
|
|
903
887
|
|
|
888
|
+
/**
|
|
889
|
+
* The number of blocks that must pass to enable the permanent deletion of a username by
|
|
890
|
+
* its respective authority.
|
|
891
|
+
**/
|
|
892
|
+
usernameGracePeriod: number;
|
|
893
|
+
|
|
904
894
|
/**
|
|
905
895
|
* The maximum length of a suffix.
|
|
906
896
|
**/
|
|
@@ -1710,6 +1700,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1710
1700
|
**/
|
|
1711
1701
|
evidenceSize: number;
|
|
1712
1702
|
|
|
1703
|
+
/**
|
|
1704
|
+
* Represents the highest possible rank in this pallet.
|
|
1705
|
+
*
|
|
1706
|
+
* Increasing this value is supported, but decreasing it may lead to a broken state.
|
|
1707
|
+
**/
|
|
1708
|
+
maxRank: number;
|
|
1709
|
+
|
|
1713
1710
|
/**
|
|
1714
1711
|
* Generic pallet constant
|
|
1715
1712
|
**/
|
|
@@ -2132,13 +2129,23 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2132
2129
|
|
|
2133
2130
|
/**
|
|
2134
2131
|
* The amount of weight (if any) which should be provided to the message queue for
|
|
2135
|
-
* servicing enqueued items
|
|
2132
|
+
* servicing enqueued items `on_initialize`.
|
|
2136
2133
|
*
|
|
2137
2134
|
* This may be legitimately `None` in the case that you will call
|
|
2138
|
-
* `ServiceQueues::service_queues` manually
|
|
2135
|
+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
|
2136
|
+
* it run in `on_idle`.
|
|
2139
2137
|
**/
|
|
2140
2138
|
serviceWeight: SpWeightsWeightV2Weight | undefined;
|
|
2141
2139
|
|
|
2140
|
+
/**
|
|
2141
|
+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
|
2142
|
+
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
|
2143
|
+
* Useful for parachains to process messages at the same block they are received.
|
|
2144
|
+
*
|
|
2145
|
+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
|
2146
|
+
**/
|
|
2147
|
+
idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
|
|
2148
|
+
|
|
2142
2149
|
/**
|
|
2143
2150
|
* Generic pallet constant
|
|
2144
2151
|
**/
|
|
@@ -2303,6 +2310,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2303
2310
|
* Maximum number of system cores.
|
|
2304
2311
|
**/
|
|
2305
2312
|
maxReservedCores: number;
|
|
2313
|
+
maxAutoRenewals: number;
|
|
2306
2314
|
|
|
2307
2315
|
/**
|
|
2308
2316
|
* Generic pallet constant
|
|
@@ -2401,4 +2409,93 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2401
2409
|
**/
|
|
2402
2410
|
[name: string]: any;
|
|
2403
2411
|
};
|
|
2412
|
+
/**
|
|
2413
|
+
* Pallet `PalletExampleMbms`'s constants
|
|
2414
|
+
**/
|
|
2415
|
+
palletExampleMbms: {
|
|
2416
|
+
/**
|
|
2417
|
+
* Generic pallet constant
|
|
2418
|
+
**/
|
|
2419
|
+
[name: string]: any;
|
|
2420
|
+
};
|
|
2421
|
+
/**
|
|
2422
|
+
* Pallet `AssetConversionMigration`'s constants
|
|
2423
|
+
**/
|
|
2424
|
+
assetConversionMigration: {
|
|
2425
|
+
/**
|
|
2426
|
+
* Generic pallet constant
|
|
2427
|
+
**/
|
|
2428
|
+
[name: string]: any;
|
|
2429
|
+
};
|
|
2430
|
+
/**
|
|
2431
|
+
* Pallet `Revive`'s constants
|
|
2432
|
+
**/
|
|
2433
|
+
revive: {
|
|
2434
|
+
/**
|
|
2435
|
+
* The amount of balance a caller has to pay for each byte of storage.
|
|
2436
|
+
*
|
|
2437
|
+
* # Note
|
|
2438
|
+
*
|
|
2439
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
2440
|
+
**/
|
|
2441
|
+
depositPerByte: bigint;
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* The amount of balance a caller has to pay for each storage item.
|
|
2445
|
+
*
|
|
2446
|
+
* # Note
|
|
2447
|
+
*
|
|
2448
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
2449
|
+
**/
|
|
2450
|
+
depositPerItem: bigint;
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* The percentage of the storage deposit that should be held for using a code hash.
|
|
2454
|
+
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
|
|
2455
|
+
* protects the code from being removed. In order to prevent abuse these actions are
|
|
2456
|
+
* protected with a percentage of the code deposit.
|
|
2457
|
+
**/
|
|
2458
|
+
codeHashLockupDepositPercent: Perbill;
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
2462
|
+
*
|
|
2463
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
2464
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
2465
|
+
* experiment with new features.
|
|
2466
|
+
*
|
|
2467
|
+
* # Warning
|
|
2468
|
+
*
|
|
2469
|
+
* Do **not** set to `true` on productions chains.
|
|
2470
|
+
**/
|
|
2471
|
+
unsafeUnstableInterface: boolean;
|
|
2472
|
+
|
|
2473
|
+
/**
|
|
2474
|
+
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
|
2475
|
+
*
|
|
2476
|
+
* This is a unique identifier assigned to each blockchain network,
|
|
2477
|
+
* preventing replay attacks.
|
|
2478
|
+
**/
|
|
2479
|
+
chainId: bigint;
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* The ratio between the decimal representation of the native token and the ETH token.
|
|
2483
|
+
**/
|
|
2484
|
+
nativeToEthRatio: number;
|
|
2485
|
+
apiVersion: number;
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* Generic pallet constant
|
|
2489
|
+
**/
|
|
2490
|
+
[name: string]: any;
|
|
2491
|
+
};
|
|
2492
|
+
/**
|
|
2493
|
+
* Pallet `VerifySignature`'s constants
|
|
2494
|
+
**/
|
|
2495
|
+
verifySignature: {
|
|
2496
|
+
/**
|
|
2497
|
+
* Generic pallet constant
|
|
2498
|
+
**/
|
|
2499
|
+
[name: string]: any;
|
|
2500
|
+
};
|
|
2404
2501
|
}
|