@dedot/chaintypes 0.173.0 → 0.175.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/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/runtime.d.ts +26 -0
- package/kusama-asset-hub/types.d.ts +7 -0
- package/package.json +2 -2
- package/paseo-hydration/consts.d.ts +46 -12
- package/paseo-hydration/errors.d.ts +103 -13
- package/paseo-hydration/events.d.ts +416 -0
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +239 -15
- package/paseo-hydration/runtime.d.ts +121 -0
- package/paseo-hydration/tx.d.ts +353 -19
- package/paseo-hydration/types.d.ts +889 -42
|
@@ -58,7 +58,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @name: KusamaAssetHubApi
|
|
61
|
-
* @specVersion:
|
|
61
|
+
* @specVersion: 1009003
|
|
62
62
|
**/
|
|
63
63
|
export interface KusamaAssetHubApi {
|
|
64
64
|
legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
|
|
@@ -30,6 +30,8 @@ import type {
|
|
|
30
30
|
SpRuntimeTransactionValidityValidTransaction,
|
|
31
31
|
SpRuntimeTransactionValidityTransactionSource,
|
|
32
32
|
SpCoreCryptoKeyTypeId,
|
|
33
|
+
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
34
|
+
FrameSupportViewFunctionsViewFunctionId,
|
|
33
35
|
StagingXcmV5Location,
|
|
34
36
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
35
37
|
PalletTransactionPaymentFeeDetails,
|
|
@@ -345,6 +347,30 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
345
347
|
**/
|
|
346
348
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
347
349
|
};
|
|
350
|
+
/**
|
|
351
|
+
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
352
|
+
**/
|
|
353
|
+
runtimeViewFunction: {
|
|
354
|
+
/**
|
|
355
|
+
* Execute a view function query.
|
|
356
|
+
*
|
|
357
|
+
* @callname: RuntimeViewFunction_execute_view_function
|
|
358
|
+
* @param {FrameSupportViewFunctionsViewFunctionId} query_id
|
|
359
|
+
* @param {BytesLike} input
|
|
360
|
+
**/
|
|
361
|
+
executeViewFunction: GenericRuntimeApiMethod<
|
|
362
|
+
Rv,
|
|
363
|
+
(
|
|
364
|
+
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
365
|
+
input: BytesLike,
|
|
366
|
+
) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
|
|
367
|
+
>;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Generic runtime api call
|
|
371
|
+
**/
|
|
372
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
373
|
+
};
|
|
348
374
|
/**
|
|
349
375
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
350
376
|
**/
|
|
@@ -23450,6 +23450,13 @@ export type SpRuntimeTransactionValidityValidTransaction = {
|
|
|
23450
23450
|
propagate: boolean;
|
|
23451
23451
|
};
|
|
23452
23452
|
|
|
23453
|
+
export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
|
|
23454
|
+
|
|
23455
|
+
export type FrameSupportViewFunctionsViewFunctionDispatchError =
|
|
23456
|
+
| { type: 'NotImplemented' }
|
|
23457
|
+
| { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
|
|
23458
|
+
| { type: 'Codec' };
|
|
23459
|
+
|
|
23453
23460
|
export type PalletTransactionPaymentRuntimeDispatchInfo = {
|
|
23454
23461
|
weight: SpWeightsWeightV2Weight;
|
|
23455
23462
|
class: FrameSupportDispatchDispatchClass;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.175.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "9bfe2b4e07c85a2ae2b0c3551c758620f1208571",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, Permill, AccountId32, FixedBytes, Perbill, FixedU128, Percent } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, Permill, AccountId32, FixedBytes, Perbill, FixedU128, H160, Percent } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
@@ -768,17 +768,8 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
768
768
|
**/
|
|
769
769
|
duster: {
|
|
770
770
|
/**
|
|
771
|
-
*
|
|
772
|
-
|
|
773
|
-
reward: bigint;
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* Native Asset Id
|
|
777
|
-
**/
|
|
778
|
-
nativeCurrencyId: number;
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* Default account for `reward_account` and `dust_account` in genesis config.
|
|
771
|
+
* Duster for accounts with AToken dusts
|
|
772
|
+
* Treasury account, which receives the dust.
|
|
782
773
|
**/
|
|
783
774
|
treasuryAccountId: AccountId32;
|
|
784
775
|
|
|
@@ -1234,6 +1225,8 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1234
1225
|
* Pallet ID to determine HSM account
|
|
1235
1226
|
**/
|
|
1236
1227
|
palletId: FrameSupportPalletId;
|
|
1228
|
+
minArbitrageAmount: bigint;
|
|
1229
|
+
flashLoanReceiver: H160;
|
|
1237
1230
|
|
|
1238
1231
|
/**
|
|
1239
1232
|
* The gas limit for the execution of EVM calls
|
|
@@ -1739,6 +1732,47 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1739
1732
|
**/
|
|
1740
1733
|
[name: string]: any;
|
|
1741
1734
|
};
|
|
1735
|
+
/**
|
|
1736
|
+
* Pallet `Ismp`'s constants
|
|
1737
|
+
**/
|
|
1738
|
+
ismp: {
|
|
1739
|
+
/**
|
|
1740
|
+
* Generic pallet constant
|
|
1741
|
+
**/
|
|
1742
|
+
[name: string]: any;
|
|
1743
|
+
};
|
|
1744
|
+
/**
|
|
1745
|
+
* Pallet `IsmpParachain`'s constants
|
|
1746
|
+
**/
|
|
1747
|
+
ismpParachain: {
|
|
1748
|
+
/**
|
|
1749
|
+
* Generic pallet constant
|
|
1750
|
+
**/
|
|
1751
|
+
[name: string]: any;
|
|
1752
|
+
};
|
|
1753
|
+
/**
|
|
1754
|
+
* Pallet `Hyperbridge`'s constants
|
|
1755
|
+
**/
|
|
1756
|
+
hyperbridge: {
|
|
1757
|
+
/**
|
|
1758
|
+
* Generic pallet constant
|
|
1759
|
+
**/
|
|
1760
|
+
[name: string]: any;
|
|
1761
|
+
};
|
|
1762
|
+
/**
|
|
1763
|
+
* Pallet `TokenGateway`'s constants
|
|
1764
|
+
**/
|
|
1765
|
+
tokenGateway: {
|
|
1766
|
+
/**
|
|
1767
|
+
* The decimals of the native currency
|
|
1768
|
+
**/
|
|
1769
|
+
decimals: number;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Generic pallet constant
|
|
1773
|
+
**/
|
|
1774
|
+
[name: string]: any;
|
|
1775
|
+
};
|
|
1742
1776
|
/**
|
|
1743
1777
|
* Pallet `EmaOracle`'s constants
|
|
1744
1778
|
**/
|
|
@@ -1452,12 +1452,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Account is excluded from dusting.
|
|
1454
1454
|
**/
|
|
1455
|
-
|
|
1455
|
+
AccountWhitelisted: GenericPalletError<Rv>;
|
|
1456
1456
|
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Account is not present in the non-dustable list.
|
|
1459
1459
|
**/
|
|
1460
|
-
|
|
1460
|
+
AccountNotWhitelisted: GenericPalletError<Rv>;
|
|
1461
1461
|
|
|
1462
1462
|
/**
|
|
1463
1463
|
* The balance is zero.
|
|
@@ -1465,14 +1465,14 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1465
1465
|
ZeroBalance: GenericPalletError<Rv>;
|
|
1466
1466
|
|
|
1467
1467
|
/**
|
|
1468
|
-
* The balance is
|
|
1468
|
+
* The balance was not fully dusted, there is some leftover on the account. Normally, it should never happen.
|
|
1469
1469
|
**/
|
|
1470
|
-
|
|
1470
|
+
NonZeroBalance: GenericPalletError<Rv>;
|
|
1471
1471
|
|
|
1472
1472
|
/**
|
|
1473
|
-
*
|
|
1473
|
+
* The balance is sufficient to keep account open.
|
|
1474
1474
|
**/
|
|
1475
|
-
|
|
1475
|
+
BalanceSufficient: GenericPalletError<Rv>;
|
|
1476
1476
|
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Reserve account is not set.
|
|
@@ -2641,13 +2641,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2641
2641
|
**/
|
|
2642
2642
|
NoArbitrageOpportunity: GenericPalletError<Rv>;
|
|
2643
2643
|
|
|
2644
|
-
/**
|
|
2645
|
-
* Offchain lock error
|
|
2646
|
-
*
|
|
2647
|
-
* Failed to acquire the lock for offchain workers, likely because another operation is in progress.
|
|
2648
|
-
**/
|
|
2649
|
-
OffchainLockError: GenericPalletError<Rv>;
|
|
2650
|
-
|
|
2651
2644
|
/**
|
|
2652
2645
|
* Asset not in the pool
|
|
2653
2646
|
*
|
|
@@ -3901,6 +3894,103 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3901
3894
|
**/
|
|
3902
3895
|
[error: string]: GenericPalletError<Rv>;
|
|
3903
3896
|
};
|
|
3897
|
+
/**
|
|
3898
|
+
* Pallet `Ismp`'s errors
|
|
3899
|
+
**/
|
|
3900
|
+
ismp: {
|
|
3901
|
+
/**
|
|
3902
|
+
* Invalid ISMP message
|
|
3903
|
+
**/
|
|
3904
|
+
InvalidMessage: GenericPalletError<Rv>;
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* Requested message was not found
|
|
3908
|
+
**/
|
|
3909
|
+
MessageNotFound: GenericPalletError<Rv>;
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
* Encountered an error while creating the consensus client.
|
|
3913
|
+
**/
|
|
3914
|
+
ConsensusClientCreationFailed: GenericPalletError<Rv>;
|
|
3915
|
+
|
|
3916
|
+
/**
|
|
3917
|
+
* Couldn't update unbonding period
|
|
3918
|
+
**/
|
|
3919
|
+
UnbondingPeriodUpdateFailed: GenericPalletError<Rv>;
|
|
3920
|
+
|
|
3921
|
+
/**
|
|
3922
|
+
* Couldn't update challenge period
|
|
3923
|
+
**/
|
|
3924
|
+
ChallengePeriodUpdateFailed: GenericPalletError<Rv>;
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* Generic pallet error
|
|
3928
|
+
**/
|
|
3929
|
+
[error: string]: GenericPalletError<Rv>;
|
|
3930
|
+
};
|
|
3931
|
+
/**
|
|
3932
|
+
* Pallet `Hyperbridge`'s errors
|
|
3933
|
+
**/
|
|
3934
|
+
hyperbridge: {
|
|
3935
|
+
/**
|
|
3936
|
+
* Generic pallet error
|
|
3937
|
+
**/
|
|
3938
|
+
[error: string]: GenericPalletError<Rv>;
|
|
3939
|
+
};
|
|
3940
|
+
/**
|
|
3941
|
+
* Pallet `TokenGateway`'s errors
|
|
3942
|
+
**/
|
|
3943
|
+
tokenGateway: {
|
|
3944
|
+
/**
|
|
3945
|
+
* A asset that has not been registered
|
|
3946
|
+
**/
|
|
3947
|
+
UnregisteredAsset: GenericPalletError<Rv>;
|
|
3948
|
+
|
|
3949
|
+
/**
|
|
3950
|
+
* Error while teleporting asset
|
|
3951
|
+
**/
|
|
3952
|
+
AssetTeleportError: GenericPalletError<Rv>;
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* Coprocessor was not configured in the runtime
|
|
3956
|
+
**/
|
|
3957
|
+
CoprocessorNotConfigured: GenericPalletError<Rv>;
|
|
3958
|
+
|
|
3959
|
+
/**
|
|
3960
|
+
* Asset or update Dispatch Error
|
|
3961
|
+
**/
|
|
3962
|
+
DispatchError: GenericPalletError<Rv>;
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* Asset Id creation failed
|
|
3966
|
+
**/
|
|
3967
|
+
AssetCreationError: GenericPalletError<Rv>;
|
|
3968
|
+
|
|
3969
|
+
/**
|
|
3970
|
+
* Asset decimals not found
|
|
3971
|
+
**/
|
|
3972
|
+
AssetDecimalsNotFound: GenericPalletError<Rv>;
|
|
3973
|
+
|
|
3974
|
+
/**
|
|
3975
|
+
* Protocol Params have not been initialized
|
|
3976
|
+
**/
|
|
3977
|
+
NotInitialized: GenericPalletError<Rv>;
|
|
3978
|
+
|
|
3979
|
+
/**
|
|
3980
|
+
* Unknown Asset
|
|
3981
|
+
**/
|
|
3982
|
+
UnknownAsset: GenericPalletError<Rv>;
|
|
3983
|
+
|
|
3984
|
+
/**
|
|
3985
|
+
* Only root or asset owner can update asset
|
|
3986
|
+
**/
|
|
3987
|
+
NotAssetOwner: GenericPalletError<Rv>;
|
|
3988
|
+
|
|
3989
|
+
/**
|
|
3990
|
+
* Generic pallet error
|
|
3991
|
+
**/
|
|
3992
|
+
[error: string]: GenericPalletError<Rv>;
|
|
3993
|
+
};
|
|
3904
3994
|
/**
|
|
3905
3995
|
* Pallet `EmaOracle`'s errors
|
|
3906
3996
|
**/
|