@dedot/api 0.6.1 → 0.7.1-next.c1cff80e.4
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/chaintypes/substrate/consts.d.ts +124 -33
- package/chaintypes/substrate/errors.d.ts +354 -10
- package/chaintypes/substrate/events.d.ts +396 -53
- package/chaintypes/substrate/json-rpc.d.ts +1 -1
- package/chaintypes/substrate/query.d.ts +281 -43
- package/chaintypes/substrate/runtime.d.ts +254 -33
- package/chaintypes/substrate/tx.d.ts +1037 -190
- package/chaintypes/substrate/types.d.ts +2388 -600
- package/client/BaseSubstrateClient.d.ts +2 -3
- package/extrinsic/extensions/ExtraSignedExtension.d.ts +1 -1
- package/extrinsic/extensions/SignedExtension.d.ts +1 -2
- package/extrinsic/extensions/known/ChargeAssetTxPayment.d.ts +1 -1
- package/extrinsic/extensions/known/ChargeTransactionPayment.d.ts +1 -1
- package/extrinsic/extensions/known/CheckGenesis.d.ts +1 -1
- package/extrinsic/extensions/known/CheckMetadataHash.d.ts +1 -1
- package/extrinsic/extensions/known/CheckMortality.d.ts +1 -1
- package/extrinsic/extensions/known/CheckNonce.d.ts +1 -1
- package/extrinsic/extensions/known/CheckSpecVersion.d.ts +1 -1
- package/extrinsic/extensions/known/CheckTxVersion.d.ts +1 -1
- package/extrinsic/submittable/fakeSigner.d.ts +2 -2
- package/extrinsic/submittable/utils.d.ts +1 -2
- package/package.json +9 -12
- package/types.d.ts +3 -4
|
@@ -141,10 +141,14 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
141
141
|
/**
|
|
142
142
|
* The maximum number of locks that should exist on an account.
|
|
143
143
|
* Not strictly enforced, but used for weight estimation.
|
|
144
|
+
*
|
|
145
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
144
146
|
**/
|
|
145
147
|
maxLocks: number;
|
|
146
148
|
/**
|
|
147
149
|
* The maximum number of named reserves that can exist on an account.
|
|
150
|
+
*
|
|
151
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
148
152
|
**/
|
|
149
153
|
maxReserves: number;
|
|
150
154
|
/**
|
|
@@ -189,15 +193,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
189
193
|
**/
|
|
190
194
|
[name: string]: any;
|
|
191
195
|
};
|
|
192
|
-
/**
|
|
193
|
-
* Pallet `AssetTxPayment`'s constants
|
|
194
|
-
**/
|
|
195
|
-
assetTxPayment: {
|
|
196
|
-
/**
|
|
197
|
-
* Generic pallet constant
|
|
198
|
-
**/
|
|
199
|
-
[name: string]: any;
|
|
200
|
-
};
|
|
201
196
|
/**
|
|
202
197
|
* Pallet `AssetConversionTxPayment`'s constants
|
|
203
198
|
**/
|
|
@@ -211,14 +206,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
211
206
|
* Pallet `ElectionProviderMultiPhase`'s constants
|
|
212
207
|
**/
|
|
213
208
|
electionProviderMultiPhase: {
|
|
214
|
-
/**
|
|
215
|
-
* Duration of the unsigned phase.
|
|
216
|
-
**/
|
|
217
|
-
unsignedPhase: number;
|
|
218
|
-
/**
|
|
219
|
-
* Duration of the signed phase.
|
|
220
|
-
**/
|
|
221
|
-
signedPhase: number;
|
|
222
209
|
/**
|
|
223
210
|
* The minimum amount of improvement to the solution score that defines a solution as
|
|
224
211
|
* "better" in the Signed phase.
|
|
@@ -569,19 +556,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
569
556
|
* Pallet `Treasury`'s constants
|
|
570
557
|
**/
|
|
571
558
|
treasury: {
|
|
572
|
-
/**
|
|
573
|
-
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
|
574
|
-
* An accepted proposal gets these back. A rejected proposal does not.
|
|
575
|
-
**/
|
|
576
|
-
proposalBond: Permill;
|
|
577
|
-
/**
|
|
578
|
-
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
579
|
-
**/
|
|
580
|
-
proposalBondMinimum: bigint;
|
|
581
|
-
/**
|
|
582
|
-
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
583
|
-
**/
|
|
584
|
-
proposalBondMaximum: bigint | undefined;
|
|
585
559
|
/**
|
|
586
560
|
* Period between successive spends.
|
|
587
561
|
**/
|
|
@@ -595,6 +569,9 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
595
569
|
**/
|
|
596
570
|
palletId: FrameSupportPalletId;
|
|
597
571
|
/**
|
|
572
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
573
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
574
|
+
*
|
|
598
575
|
* The maximum number of approvals that can wait in the spending queue.
|
|
599
576
|
*
|
|
600
577
|
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
@@ -665,6 +642,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
665
642
|
* The maximum allowable length in bytes for storage keys.
|
|
666
643
|
**/
|
|
667
644
|
maxStorageKeyLen: number;
|
|
645
|
+
/**
|
|
646
|
+
* The maximum size of the transient storage in bytes.
|
|
647
|
+
* This includes keys, values, and previous entries used for storage rollback.
|
|
648
|
+
**/
|
|
649
|
+
maxTransientStorageSize: number;
|
|
668
650
|
/**
|
|
669
651
|
* The maximum number of delegate_dependencies that a contract can lock with
|
|
670
652
|
* [`chain_extension::Ext::lock_delegate_dependency`].
|
|
@@ -777,6 +759,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
777
759
|
* The amount held on deposit per encoded byte for a registered identity.
|
|
778
760
|
**/
|
|
779
761
|
byteDeposit: bigint;
|
|
762
|
+
/**
|
|
763
|
+
* The amount held on deposit per registered username. This value should change only in
|
|
764
|
+
* runtime upgrades with proper migration of existing deposits.
|
|
765
|
+
**/
|
|
766
|
+
usernameDeposit: bigint;
|
|
780
767
|
/**
|
|
781
768
|
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
782
769
|
* that one storage item's value will increase by the size of an account ID, and there will
|
|
@@ -788,7 +775,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
788
775
|
**/
|
|
789
776
|
maxSubAccounts: number;
|
|
790
777
|
/**
|
|
791
|
-
*
|
|
778
|
+
* Maximum number of registrars allowed in the system. Needed to bound the complexity
|
|
792
779
|
* of, e.g., updating judgements.
|
|
793
780
|
**/
|
|
794
781
|
maxRegistrars: number;
|
|
@@ -796,6 +783,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
796
783
|
* The number of blocks within which a username grant must be accepted.
|
|
797
784
|
**/
|
|
798
785
|
pendingUsernameExpiration: number;
|
|
786
|
+
/**
|
|
787
|
+
* The number of blocks that must pass to enable the permanent deletion of a username by
|
|
788
|
+
* its respective authority.
|
|
789
|
+
**/
|
|
790
|
+
usernameGracePeriod: number;
|
|
799
791
|
/**
|
|
800
792
|
* The maximum length of a suffix.
|
|
801
793
|
**/
|
|
@@ -1502,6 +1494,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1502
1494
|
* The maximum size in bytes submitted evidence is allowed to be.
|
|
1503
1495
|
**/
|
|
1504
1496
|
evidenceSize: number;
|
|
1497
|
+
/**
|
|
1498
|
+
* Represents the highest possible rank in this pallet.
|
|
1499
|
+
*
|
|
1500
|
+
* Increasing this value is supported, but decreasing it may lead to a broken state.
|
|
1501
|
+
**/
|
|
1502
|
+
maxRank: number;
|
|
1505
1503
|
/**
|
|
1506
1504
|
* Generic pallet constant
|
|
1507
1505
|
**/
|
|
@@ -1889,12 +1887,21 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1889
1887
|
maxStale: number;
|
|
1890
1888
|
/**
|
|
1891
1889
|
* The amount of weight (if any) which should be provided to the message queue for
|
|
1892
|
-
* servicing enqueued items
|
|
1890
|
+
* servicing enqueued items `on_initialize`.
|
|
1893
1891
|
*
|
|
1894
1892
|
* This may be legitimately `None` in the case that you will call
|
|
1895
|
-
* `ServiceQueues::service_queues` manually
|
|
1893
|
+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
|
1894
|
+
* it run in `on_idle`.
|
|
1896
1895
|
**/
|
|
1897
1896
|
serviceWeight: SpWeightsWeightV2Weight | undefined;
|
|
1897
|
+
/**
|
|
1898
|
+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
|
1899
|
+
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
|
1900
|
+
* Useful for parachains to process messages at the same block they are received.
|
|
1901
|
+
*
|
|
1902
|
+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
|
1903
|
+
**/
|
|
1904
|
+
idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
|
|
1898
1905
|
/**
|
|
1899
1906
|
* Generic pallet constant
|
|
1900
1907
|
**/
|
|
@@ -2042,6 +2049,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2042
2049
|
* Maximum number of system cores.
|
|
2043
2050
|
**/
|
|
2044
2051
|
maxReservedCores: number;
|
|
2052
|
+
maxAutoRenewals: number;
|
|
2045
2053
|
/**
|
|
2046
2054
|
* Generic pallet constant
|
|
2047
2055
|
**/
|
|
@@ -2129,4 +2137,87 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
2129
2137
|
**/
|
|
2130
2138
|
[name: string]: any;
|
|
2131
2139
|
};
|
|
2140
|
+
/**
|
|
2141
|
+
* Pallet `PalletExampleMbms`'s constants
|
|
2142
|
+
**/
|
|
2143
|
+
palletExampleMbms: {
|
|
2144
|
+
/**
|
|
2145
|
+
* Generic pallet constant
|
|
2146
|
+
**/
|
|
2147
|
+
[name: string]: any;
|
|
2148
|
+
};
|
|
2149
|
+
/**
|
|
2150
|
+
* Pallet `AssetConversionMigration`'s constants
|
|
2151
|
+
**/
|
|
2152
|
+
assetConversionMigration: {
|
|
2153
|
+
/**
|
|
2154
|
+
* Generic pallet constant
|
|
2155
|
+
**/
|
|
2156
|
+
[name: string]: any;
|
|
2157
|
+
};
|
|
2158
|
+
/**
|
|
2159
|
+
* Pallet `Revive`'s constants
|
|
2160
|
+
**/
|
|
2161
|
+
revive: {
|
|
2162
|
+
/**
|
|
2163
|
+
* The amount of balance a caller has to pay for each byte of storage.
|
|
2164
|
+
*
|
|
2165
|
+
* # Note
|
|
2166
|
+
*
|
|
2167
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
2168
|
+
**/
|
|
2169
|
+
depositPerByte: bigint;
|
|
2170
|
+
/**
|
|
2171
|
+
* The amount of balance a caller has to pay for each storage item.
|
|
2172
|
+
*
|
|
2173
|
+
* # Note
|
|
2174
|
+
*
|
|
2175
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
2176
|
+
**/
|
|
2177
|
+
depositPerItem: bigint;
|
|
2178
|
+
/**
|
|
2179
|
+
* The percentage of the storage deposit that should be held for using a code hash.
|
|
2180
|
+
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
|
|
2181
|
+
* protects the code from being removed. In order to prevent abuse these actions are
|
|
2182
|
+
* protected with a percentage of the code deposit.
|
|
2183
|
+
**/
|
|
2184
|
+
codeHashLockupDepositPercent: Perbill;
|
|
2185
|
+
/**
|
|
2186
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
2187
|
+
*
|
|
2188
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
2189
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
2190
|
+
* experiment with new features.
|
|
2191
|
+
*
|
|
2192
|
+
* # Warning
|
|
2193
|
+
*
|
|
2194
|
+
* Do **not** set to `true` on productions chains.
|
|
2195
|
+
**/
|
|
2196
|
+
unsafeUnstableInterface: boolean;
|
|
2197
|
+
/**
|
|
2198
|
+
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
|
2199
|
+
*
|
|
2200
|
+
* This is a unique identifier assigned to each blockchain network,
|
|
2201
|
+
* preventing replay attacks.
|
|
2202
|
+
**/
|
|
2203
|
+
chainId: bigint;
|
|
2204
|
+
/**
|
|
2205
|
+
* The ratio between the decimal representation of the native token and the ETH token.
|
|
2206
|
+
**/
|
|
2207
|
+
nativeToEthRatio: number;
|
|
2208
|
+
apiVersion: number;
|
|
2209
|
+
/**
|
|
2210
|
+
* Generic pallet constant
|
|
2211
|
+
**/
|
|
2212
|
+
[name: string]: any;
|
|
2213
|
+
};
|
|
2214
|
+
/**
|
|
2215
|
+
* Pallet `VerifySignature`'s constants
|
|
2216
|
+
**/
|
|
2217
|
+
verifySignature: {
|
|
2218
|
+
/**
|
|
2219
|
+
* Generic pallet constant
|
|
2220
|
+
**/
|
|
2221
|
+
[name: string]: any;
|
|
2222
|
+
};
|
|
2132
2223
|
}
|