@dedot/chaintypes 0.215.0 → 0.217.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/hydration/index.d.ts +1 -1
- package/package.json +2 -2
- package/paseo/index.d.ts +1 -1
- package/paseo-asset-hub/consts.d.ts +9 -0
- package/paseo-asset-hub/errors.d.ts +20 -0
- package/paseo-asset-hub/events.d.ts +8 -3
- package/paseo-asset-hub/index.d.ts +2 -1
- package/paseo-asset-hub/tx.d.ts +41 -0
- package/paseo-asset-hub/types.d.ts +79 -7
- package/paseo-people/consts.d.ts +9 -0
- package/paseo-people/index.d.ts +2 -1
- package/paseo-people/types.d.ts +12 -0
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +10 -0
- package/polkadot/runtime.d.ts +0 -20
- package/polkadot/tx.d.ts +10 -10
- package/polkadot/types.d.ts +6970 -6969
- package/polkadot-asset-hub/consts.d.ts +130 -1
- package/polkadot-asset-hub/errors.d.ts +333 -0
- package/polkadot-asset-hub/events.d.ts +59 -3
- package/polkadot-asset-hub/index.d.ts +4 -1
- package/polkadot-asset-hub/query.d.ts +154 -0
- package/polkadot-asset-hub/runtime.d.ts +320 -0
- package/polkadot-asset-hub/tx.d.ts +555 -19
- package/polkadot-asset-hub/types.d.ts +14152 -12878
- package/polkadot-people/consts.d.ts +9 -0
- package/polkadot-people/index.d.ts +2 -1
- package/polkadot-people/query.d.ts +10 -0
- package/polkadot-people/types.d.ts +4313 -4297
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, Bytes, AccountId32, Permill, Perbill } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, Bytes, AccountId32, Permill, Perbill, FixedU128 } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
@@ -142,6 +142,15 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
142
142
|
**/
|
|
143
143
|
[name: string]: any;
|
|
144
144
|
};
|
|
145
|
+
/**
|
|
146
|
+
* Pallet `WeightReclaim`'s constants
|
|
147
|
+
**/
|
|
148
|
+
weightReclaim: {
|
|
149
|
+
/**
|
|
150
|
+
* Generic pallet constant
|
|
151
|
+
**/
|
|
152
|
+
[name: string]: any;
|
|
153
|
+
};
|
|
145
154
|
/**
|
|
146
155
|
* Pallet `Balances`'s constants
|
|
147
156
|
**/
|
|
@@ -1514,6 +1523,126 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1514
1523
|
**/
|
|
1515
1524
|
[name: string]: any;
|
|
1516
1525
|
};
|
|
1526
|
+
/**
|
|
1527
|
+
* Pallet `Revive`'s constants
|
|
1528
|
+
**/
|
|
1529
|
+
revive: {
|
|
1530
|
+
/**
|
|
1531
|
+
* The amount of balance a caller has to pay for each byte of storage.
|
|
1532
|
+
*
|
|
1533
|
+
* # Note
|
|
1534
|
+
*
|
|
1535
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1536
|
+
**/
|
|
1537
|
+
depositPerByte: bigint;
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* The amount of balance a caller has to pay for each storage item.
|
|
1541
|
+
*
|
|
1542
|
+
* # Note
|
|
1543
|
+
*
|
|
1544
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1545
|
+
**/
|
|
1546
|
+
depositPerItem: bigint;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* The amount of balance a caller has to pay for each child trie storage item.
|
|
1550
|
+
*
|
|
1551
|
+
* Those are the items created by a contract. In Solidity each value is a single
|
|
1552
|
+
* storage item. This is why we need to set a lower value here than for the main
|
|
1553
|
+
* trie items. Otherwise the storage deposit is too high.
|
|
1554
|
+
*
|
|
1555
|
+
* # Note
|
|
1556
|
+
*
|
|
1557
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1558
|
+
**/
|
|
1559
|
+
depositPerChildTrieItem: bigint;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* The percentage of the storage deposit that should be held for using a code hash.
|
|
1563
|
+
* Instantiating a contract, protects the code from being removed. In order to prevent
|
|
1564
|
+
* abuse these actions are protected with a percentage of the code deposit.
|
|
1565
|
+
**/
|
|
1566
|
+
codeHashLockupDepositPercent: Perbill;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
1570
|
+
*
|
|
1571
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
1572
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
1573
|
+
* experiment with new features.
|
|
1574
|
+
*
|
|
1575
|
+
* # Warning
|
|
1576
|
+
*
|
|
1577
|
+
* Do **not** set to `true` on productions chains.
|
|
1578
|
+
**/
|
|
1579
|
+
unsafeUnstableInterface: boolean;
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* Allow EVM bytecode to be uploaded and instantiated.
|
|
1583
|
+
**/
|
|
1584
|
+
allowEVMBytecode: boolean;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
|
1588
|
+
*
|
|
1589
|
+
* This is a unique identifier assigned to each blockchain network,
|
|
1590
|
+
* preventing replay attacks.
|
|
1591
|
+
**/
|
|
1592
|
+
chainId: bigint;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* The ratio between the decimal representation of the native token and the ETH token.
|
|
1596
|
+
**/
|
|
1597
|
+
nativeToEthRatio: number;
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* The fraction the maximum extrinsic weight `eth_transact` extrinsics are capped to.
|
|
1601
|
+
*
|
|
1602
|
+
* This is not a security measure but a requirement due to how we map gas to `(Weight,
|
|
1603
|
+
* StorageDeposit)`. The mapping might derive a `Weight` that is too large to fit into an
|
|
1604
|
+
* extrinsic. In this case we cap it to the limit specified here.
|
|
1605
|
+
*
|
|
1606
|
+
* `eth_transact` transactions that use more weight than specified will fail with an out of
|
|
1607
|
+
* gas error during execution. Larger fractions will allow more transactions to run.
|
|
1608
|
+
* Smaller values waste less block space: Choose as small as possible and as large as
|
|
1609
|
+
* necessary.
|
|
1610
|
+
*
|
|
1611
|
+
* Default: `0.5`.
|
|
1612
|
+
**/
|
|
1613
|
+
maxEthExtrinsicWeight: FixedU128;
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* Allows debug-mode configuration, such as enabling unlimited contract size.
|
|
1617
|
+
**/
|
|
1618
|
+
debugEnabled: boolean;
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* This determines the relative scale of our gas price and gas estimates.
|
|
1622
|
+
*
|
|
1623
|
+
* By default, the gas price (in wei) is `FeeInfo::next_fee_multiplier()` multiplied by
|
|
1624
|
+
* `NativeToEthRatio`. `GasScale` allows to scale this value: the actual gas price is the
|
|
1625
|
+
* default gas price multiplied by `GasScale`.
|
|
1626
|
+
*
|
|
1627
|
+
* As a consequence, gas cost (gas estimates and actual gas usage during transaction) is
|
|
1628
|
+
* scaled down by the same factor. Thus, the total transaction cost is not affected by
|
|
1629
|
+
* `GasScale` – apart from rounding differences: the transaction cost is always a multiple
|
|
1630
|
+
* of the gas price and is derived by rounded up, so that with higher `GasScales` this can
|
|
1631
|
+
* lead to higher gas cost as the rounding difference would be larger.
|
|
1632
|
+
*
|
|
1633
|
+
* The main purpose of changing the `GasScale` is to tune the gas cost so that it is closer
|
|
1634
|
+
* to standard EVM gas cost and contracts will not run out of gas when tools or code
|
|
1635
|
+
* assume hard coded gas limits.
|
|
1636
|
+
*
|
|
1637
|
+
* Requirement: `GasScale` must not be 0
|
|
1638
|
+
**/
|
|
1639
|
+
gasScale: number;
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* Generic pallet constant
|
|
1643
|
+
**/
|
|
1644
|
+
[name: string]: any;
|
|
1645
|
+
};
|
|
1517
1646
|
/**
|
|
1518
1647
|
* Pallet `AhOps`'s constants
|
|
1519
1648
|
**/
|
|
@@ -2812,6 +2812,319 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2812
2812
|
**/
|
|
2813
2813
|
[error: string]: GenericPalletError;
|
|
2814
2814
|
};
|
|
2815
|
+
/**
|
|
2816
|
+
* Pallet `Revive`'s errors
|
|
2817
|
+
**/
|
|
2818
|
+
revive: {
|
|
2819
|
+
/**
|
|
2820
|
+
* Invalid schedule supplied, e.g. with zero weight of a basic operation.
|
|
2821
|
+
**/
|
|
2822
|
+
InvalidSchedule: GenericPalletError;
|
|
2823
|
+
|
|
2824
|
+
/**
|
|
2825
|
+
* Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
|
|
2826
|
+
**/
|
|
2827
|
+
InvalidCallFlags: GenericPalletError;
|
|
2828
|
+
|
|
2829
|
+
/**
|
|
2830
|
+
* The executed contract exhausted its gas limit.
|
|
2831
|
+
**/
|
|
2832
|
+
OutOfGas: GenericPalletError;
|
|
2833
|
+
|
|
2834
|
+
/**
|
|
2835
|
+
* Performing the requested transfer failed. Probably because there isn't enough
|
|
2836
|
+
* free balance in the sender's account.
|
|
2837
|
+
**/
|
|
2838
|
+
TransferFailed: GenericPalletError;
|
|
2839
|
+
|
|
2840
|
+
/**
|
|
2841
|
+
* Performing a call was denied because the calling depth reached the limit
|
|
2842
|
+
* of what is specified in the schedule.
|
|
2843
|
+
**/
|
|
2844
|
+
MaxCallDepthReached: GenericPalletError;
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* No contract was found at the specified address.
|
|
2848
|
+
**/
|
|
2849
|
+
ContractNotFound: GenericPalletError;
|
|
2850
|
+
|
|
2851
|
+
/**
|
|
2852
|
+
* No code could be found at the supplied code hash.
|
|
2853
|
+
**/
|
|
2854
|
+
CodeNotFound: GenericPalletError;
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* No code info could be found at the supplied code hash.
|
|
2858
|
+
**/
|
|
2859
|
+
CodeInfoNotFound: GenericPalletError;
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* A buffer outside of sandbox memory was passed to a contract API function.
|
|
2863
|
+
**/
|
|
2864
|
+
OutOfBounds: GenericPalletError;
|
|
2865
|
+
|
|
2866
|
+
/**
|
|
2867
|
+
* Input passed to a contract API function failed to decode as expected type.
|
|
2868
|
+
**/
|
|
2869
|
+
DecodingFailed: GenericPalletError;
|
|
2870
|
+
|
|
2871
|
+
/**
|
|
2872
|
+
* Contract trapped during execution.
|
|
2873
|
+
**/
|
|
2874
|
+
ContractTrapped: GenericPalletError;
|
|
2875
|
+
|
|
2876
|
+
/**
|
|
2877
|
+
* Event body or storage item exceeds [`limits::STORAGE_BYTES`].
|
|
2878
|
+
**/
|
|
2879
|
+
ValueTooLarge: GenericPalletError;
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Termination of a contract is not allowed while the contract is already
|
|
2883
|
+
* on the call stack. Can be triggered by `seal_terminate`.
|
|
2884
|
+
**/
|
|
2885
|
+
TerminatedWhileReentrant: GenericPalletError;
|
|
2886
|
+
|
|
2887
|
+
/**
|
|
2888
|
+
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
|
2889
|
+
**/
|
|
2890
|
+
InputForwarded: GenericPalletError;
|
|
2891
|
+
|
|
2892
|
+
/**
|
|
2893
|
+
* The amount of topics passed to `seal_deposit_events` exceeds the limit.
|
|
2894
|
+
**/
|
|
2895
|
+
TooManyTopics: GenericPalletError;
|
|
2896
|
+
|
|
2897
|
+
/**
|
|
2898
|
+
* A contract with the same AccountId already exists.
|
|
2899
|
+
**/
|
|
2900
|
+
DuplicateContract: GenericPalletError;
|
|
2901
|
+
|
|
2902
|
+
/**
|
|
2903
|
+
* A contract self destructed in its constructor.
|
|
2904
|
+
*
|
|
2905
|
+
* This can be triggered by a call to `seal_terminate`.
|
|
2906
|
+
**/
|
|
2907
|
+
TerminatedInConstructor: GenericPalletError;
|
|
2908
|
+
|
|
2909
|
+
/**
|
|
2910
|
+
* A call tried to invoke a contract that is flagged as non-reentrant.
|
|
2911
|
+
**/
|
|
2912
|
+
ReentranceDenied: GenericPalletError;
|
|
2913
|
+
|
|
2914
|
+
/**
|
|
2915
|
+
* A contract called into the runtime which then called back into this pallet.
|
|
2916
|
+
**/
|
|
2917
|
+
ReenteredPallet: GenericPalletError;
|
|
2918
|
+
|
|
2919
|
+
/**
|
|
2920
|
+
* A contract attempted to invoke a state modifying API while being in read-only mode.
|
|
2921
|
+
**/
|
|
2922
|
+
StateChangeDenied: GenericPalletError;
|
|
2923
|
+
|
|
2924
|
+
/**
|
|
2925
|
+
* Origin doesn't have enough balance to pay the required storage deposits.
|
|
2926
|
+
**/
|
|
2927
|
+
StorageDepositNotEnoughFunds: GenericPalletError;
|
|
2928
|
+
|
|
2929
|
+
/**
|
|
2930
|
+
* More storage was created than allowed by the storage deposit limit.
|
|
2931
|
+
**/
|
|
2932
|
+
StorageDepositLimitExhausted: GenericPalletError;
|
|
2933
|
+
|
|
2934
|
+
/**
|
|
2935
|
+
* Code removal was denied because the code is still in use by at least one contract.
|
|
2936
|
+
**/
|
|
2937
|
+
CodeInUse: GenericPalletError;
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* The contract ran to completion but decided to revert its storage changes.
|
|
2941
|
+
* Please note that this error is only returned from extrinsics. When called directly
|
|
2942
|
+
* or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
|
|
2943
|
+
* to determine whether a reversion has taken place.
|
|
2944
|
+
**/
|
|
2945
|
+
ContractReverted: GenericPalletError;
|
|
2946
|
+
|
|
2947
|
+
/**
|
|
2948
|
+
* The contract failed to compile or is missing the correct entry points.
|
|
2949
|
+
*
|
|
2950
|
+
* A more detailed error can be found on the node console if debug messages are enabled
|
|
2951
|
+
* by supplying `-lruntime::revive=debug`.
|
|
2952
|
+
**/
|
|
2953
|
+
CodeRejected: GenericPalletError;
|
|
2954
|
+
|
|
2955
|
+
/**
|
|
2956
|
+
* The code blob supplied is larger than [`limits::code::BLOB_BYTES`].
|
|
2957
|
+
**/
|
|
2958
|
+
BlobTooLarge: GenericPalletError;
|
|
2959
|
+
|
|
2960
|
+
/**
|
|
2961
|
+
* The contract declares too much memory (ro + rw + stack).
|
|
2962
|
+
**/
|
|
2963
|
+
StaticMemoryTooLarge: GenericPalletError;
|
|
2964
|
+
|
|
2965
|
+
/**
|
|
2966
|
+
* The program contains a basic block that is larger than allowed.
|
|
2967
|
+
**/
|
|
2968
|
+
BasicBlockTooLarge: GenericPalletError;
|
|
2969
|
+
|
|
2970
|
+
/**
|
|
2971
|
+
* The program contains an invalid instruction.
|
|
2972
|
+
**/
|
|
2973
|
+
InvalidInstruction: GenericPalletError;
|
|
2974
|
+
|
|
2975
|
+
/**
|
|
2976
|
+
* The contract has reached its maximum number of delegate dependencies.
|
|
2977
|
+
**/
|
|
2978
|
+
MaxDelegateDependenciesReached: GenericPalletError;
|
|
2979
|
+
|
|
2980
|
+
/**
|
|
2981
|
+
* The dependency was not found in the contract's delegate dependencies.
|
|
2982
|
+
**/
|
|
2983
|
+
DelegateDependencyNotFound: GenericPalletError;
|
|
2984
|
+
|
|
2985
|
+
/**
|
|
2986
|
+
* The contract already depends on the given delegate dependency.
|
|
2987
|
+
**/
|
|
2988
|
+
DelegateDependencyAlreadyExists: GenericPalletError;
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* Can not add a delegate dependency to the code hash of the contract itself.
|
|
2992
|
+
**/
|
|
2993
|
+
CannotAddSelfAsDelegateDependency: GenericPalletError;
|
|
2994
|
+
|
|
2995
|
+
/**
|
|
2996
|
+
* Can not add more data to transient storage.
|
|
2997
|
+
**/
|
|
2998
|
+
OutOfTransientStorage: GenericPalletError;
|
|
2999
|
+
|
|
3000
|
+
/**
|
|
3001
|
+
* The contract tried to call a syscall which does not exist (at its current api level).
|
|
3002
|
+
**/
|
|
3003
|
+
InvalidSyscall: GenericPalletError;
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* Invalid storage flags were passed to one of the storage syscalls.
|
|
3007
|
+
**/
|
|
3008
|
+
InvalidStorageFlags: GenericPalletError;
|
|
3009
|
+
|
|
3010
|
+
/**
|
|
3011
|
+
* PolkaVM failed during code execution. Probably due to a malformed program.
|
|
3012
|
+
**/
|
|
3013
|
+
ExecutionFailed: GenericPalletError;
|
|
3014
|
+
|
|
3015
|
+
/**
|
|
3016
|
+
* Failed to convert a U256 to a Balance.
|
|
3017
|
+
**/
|
|
3018
|
+
BalanceConversionFailed: GenericPalletError;
|
|
3019
|
+
|
|
3020
|
+
/**
|
|
3021
|
+
* Immutable data can only be set during deploys and only be read during calls.
|
|
3022
|
+
* Additionally, it is only valid to set the data once and it must not be empty.
|
|
3023
|
+
**/
|
|
3024
|
+
InvalidImmutableAccess: GenericPalletError;
|
|
3025
|
+
|
|
3026
|
+
/**
|
|
3027
|
+
* An `AccountID32` account tried to interact with the pallet without having a mapping.
|
|
3028
|
+
*
|
|
3029
|
+
* Call [`Pallet::map_account`] in order to create a mapping for the account.
|
|
3030
|
+
**/
|
|
3031
|
+
AccountUnmapped: GenericPalletError;
|
|
3032
|
+
|
|
3033
|
+
/**
|
|
3034
|
+
* Tried to map an account that is already mapped.
|
|
3035
|
+
**/
|
|
3036
|
+
AccountAlreadyMapped: GenericPalletError;
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
* The transaction used to dry-run a contract is invalid.
|
|
3040
|
+
**/
|
|
3041
|
+
InvalidGenericTransaction: GenericPalletError;
|
|
3042
|
+
|
|
3043
|
+
/**
|
|
3044
|
+
* The refcount of a code either over or underflowed.
|
|
3045
|
+
**/
|
|
3046
|
+
RefcountOverOrUnderflow: GenericPalletError;
|
|
3047
|
+
|
|
3048
|
+
/**
|
|
3049
|
+
* Unsupported precompile address.
|
|
3050
|
+
**/
|
|
3051
|
+
UnsupportedPrecompileAddress: GenericPalletError;
|
|
3052
|
+
|
|
3053
|
+
/**
|
|
3054
|
+
* The calldata exceeds [`limits::CALLDATA_BYTES`].
|
|
3055
|
+
**/
|
|
3056
|
+
CallDataTooLarge: GenericPalletError;
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* The return data exceeds [`limits::CALLDATA_BYTES`].
|
|
3060
|
+
**/
|
|
3061
|
+
ReturnDataTooLarge: GenericPalletError;
|
|
3062
|
+
|
|
3063
|
+
/**
|
|
3064
|
+
* Invalid jump destination. Dynamic jumps points to invalid not jumpdest opcode.
|
|
3065
|
+
**/
|
|
3066
|
+
InvalidJump: GenericPalletError;
|
|
3067
|
+
|
|
3068
|
+
/**
|
|
3069
|
+
* Attempting to pop a value from an empty stack.
|
|
3070
|
+
**/
|
|
3071
|
+
StackUnderflow: GenericPalletError;
|
|
3072
|
+
|
|
3073
|
+
/**
|
|
3074
|
+
* Attempting to push a value onto a full stack.
|
|
3075
|
+
**/
|
|
3076
|
+
StackOverflow: GenericPalletError;
|
|
3077
|
+
|
|
3078
|
+
/**
|
|
3079
|
+
* Too much deposit was drawn from the shared txfee and deposit credit.
|
|
3080
|
+
*
|
|
3081
|
+
* This happens if the passed `gas` inside the ethereum transaction is too low.
|
|
3082
|
+
**/
|
|
3083
|
+
TxFeeOverdraw: GenericPalletError;
|
|
3084
|
+
|
|
3085
|
+
/**
|
|
3086
|
+
* When calling an EVM constructor `data` has to be empty.
|
|
3087
|
+
*
|
|
3088
|
+
* EVM constructors do not accept data. Their input data is part of the code blob itself.
|
|
3089
|
+
**/
|
|
3090
|
+
EvmConstructorNonEmptyData: GenericPalletError;
|
|
3091
|
+
|
|
3092
|
+
/**
|
|
3093
|
+
* Tried to construct an EVM contract via code hash.
|
|
3094
|
+
*
|
|
3095
|
+
* EVM contracts can only be instantiated via code upload as no initcode is
|
|
3096
|
+
* stored on-chain.
|
|
3097
|
+
**/
|
|
3098
|
+
EvmConstructedFromHash: GenericPalletError;
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* The contract does not have enough balance to refund the storage deposit.
|
|
3102
|
+
*
|
|
3103
|
+
* This is a bug and should never happen. It means the accounting got out of sync.
|
|
3104
|
+
**/
|
|
3105
|
+
StorageRefundNotEnoughFunds: GenericPalletError;
|
|
3106
|
+
|
|
3107
|
+
/**
|
|
3108
|
+
* This means there are locks on the contracts storage deposit that prevents refunding it.
|
|
3109
|
+
*
|
|
3110
|
+
* This would be the case if the contract used its storage deposits for governance
|
|
3111
|
+
* or other pallets that allow creating locks over held balance.
|
|
3112
|
+
**/
|
|
3113
|
+
StorageRefundLocked: GenericPalletError;
|
|
3114
|
+
|
|
3115
|
+
/**
|
|
3116
|
+
* Called a pre-compile that is not allowed to be delegate called.
|
|
3117
|
+
*
|
|
3118
|
+
* Some pre-compile functions will trap the caller context if being delegate
|
|
3119
|
+
* called or if their caller was being delegate called.
|
|
3120
|
+
**/
|
|
3121
|
+
PrecompileDelegateDenied: GenericPalletError;
|
|
3122
|
+
|
|
3123
|
+
/**
|
|
3124
|
+
* Generic pallet error
|
|
3125
|
+
**/
|
|
3126
|
+
[error: string]: GenericPalletError;
|
|
3127
|
+
};
|
|
2815
3128
|
/**
|
|
2816
3129
|
* Pallet `AhOps`'s errors
|
|
2817
3130
|
**/
|
|
@@ -2871,6 +3184,26 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2871
3184
|
**/
|
|
2872
3185
|
ZeroBalance: GenericPalletError;
|
|
2873
3186
|
|
|
3187
|
+
/**
|
|
3188
|
+
* Failed to transfer balance.
|
|
3189
|
+
**/
|
|
3190
|
+
FailedToTransfer: GenericPalletError;
|
|
3191
|
+
|
|
3192
|
+
/**
|
|
3193
|
+
* The account has already been translated.
|
|
3194
|
+
**/
|
|
3195
|
+
AlreadyTranslated: GenericPalletError;
|
|
3196
|
+
|
|
3197
|
+
/**
|
|
3198
|
+
* The derivation path is too long.
|
|
3199
|
+
**/
|
|
3200
|
+
TooLongDerivationPath: GenericPalletError;
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* Failed to force unstake.
|
|
3204
|
+
**/
|
|
3205
|
+
FailedToForceUnstake: GenericPalletError;
|
|
3206
|
+
|
|
2874
3207
|
/**
|
|
2875
3208
|
* Generic pallet error
|
|
2876
3209
|
**/
|
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
Bytes,
|
|
13
13
|
Permill,
|
|
14
14
|
Perbill,
|
|
15
|
+
H160,
|
|
15
16
|
} from 'dedot/codecs';
|
|
16
17
|
import type {
|
|
17
18
|
FrameSystemDispatchEventInfo,
|
|
@@ -3987,6 +3988,56 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
3987
3988
|
**/
|
|
3988
3989
|
[prop: string]: GenericPalletEvent;
|
|
3989
3990
|
};
|
|
3991
|
+
/**
|
|
3992
|
+
* Pallet `Revive`'s events
|
|
3993
|
+
**/
|
|
3994
|
+
revive: {
|
|
3995
|
+
/**
|
|
3996
|
+
* A custom event emitted by the contract.
|
|
3997
|
+
**/
|
|
3998
|
+
ContractEmitted: GenericPalletEvent<
|
|
3999
|
+
'Revive',
|
|
4000
|
+
'ContractEmitted',
|
|
4001
|
+
{
|
|
4002
|
+
/**
|
|
4003
|
+
* The contract that emitted the event.
|
|
4004
|
+
**/
|
|
4005
|
+
contract: H160;
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* Data supplied by the contract. Metadata generated during contract compilation
|
|
4009
|
+
* is needed to decode it.
|
|
4010
|
+
**/
|
|
4011
|
+
data: Bytes;
|
|
4012
|
+
|
|
4013
|
+
/**
|
|
4014
|
+
* A list of topics used to index the event.
|
|
4015
|
+
* Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
|
|
4016
|
+
**/
|
|
4017
|
+
topics: Array<H256>;
|
|
4018
|
+
}
|
|
4019
|
+
>;
|
|
4020
|
+
|
|
4021
|
+
/**
|
|
4022
|
+
* Contract deployed by deployer at the specified address.
|
|
4023
|
+
**/
|
|
4024
|
+
Instantiated: GenericPalletEvent<'Revive', 'Instantiated', { deployer: H160; contract: H160 }>;
|
|
4025
|
+
|
|
4026
|
+
/**
|
|
4027
|
+
* Emitted when an Ethereum transaction reverts.
|
|
4028
|
+
*
|
|
4029
|
+
* Ethereum transactions always complete successfully at the extrinsic level,
|
|
4030
|
+
* as even reverted calls must store their `ReceiptInfo`.
|
|
4031
|
+
* To distinguish reverted calls from successful ones, this event is emitted
|
|
4032
|
+
* for failed Ethereum transactions.
|
|
4033
|
+
**/
|
|
4034
|
+
EthExtrinsicRevert: GenericPalletEvent<'Revive', 'EthExtrinsicRevert', { dispatchError: DispatchError }>;
|
|
4035
|
+
|
|
4036
|
+
/**
|
|
4037
|
+
* Generic pallet event
|
|
4038
|
+
**/
|
|
4039
|
+
[prop: string]: GenericPalletEvent;
|
|
4040
|
+
};
|
|
3990
4041
|
/**
|
|
3991
4042
|
* Pallet `AhOps`'s events
|
|
3992
4043
|
**/
|
|
@@ -4020,7 +4071,7 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
4020
4071
|
/**
|
|
4021
4072
|
* The parachain ID that had its account migrated.
|
|
4022
4073
|
**/
|
|
4023
|
-
paraId:
|
|
4074
|
+
paraId: number;
|
|
4024
4075
|
|
|
4025
4076
|
/**
|
|
4026
4077
|
* The old account that was migrated out of.
|
|
@@ -4033,12 +4084,17 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
4033
4084
|
to: AccountId32;
|
|
4034
4085
|
|
|
4035
4086
|
/**
|
|
4036
|
-
*
|
|
4087
|
+
* The derivation path that was used to translate the account.
|
|
4037
4088
|
**/
|
|
4038
|
-
|
|
4089
|
+
derivationPath: Array<number>;
|
|
4039
4090
|
}
|
|
4040
4091
|
>;
|
|
4041
4092
|
|
|
4093
|
+
/**
|
|
4094
|
+
* Failed to re-bond some migrated funds.
|
|
4095
|
+
**/
|
|
4096
|
+
FailedToBond: GenericPalletEvent<'AhOps', 'FailedToBond', { account: AccountId32; amount: bigint }>;
|
|
4097
|
+
|
|
4042
4098
|
/**
|
|
4043
4099
|
* Generic pallet event
|
|
4044
4100
|
**/
|
|
@@ -15,6 +15,7 @@ import type {
|
|
|
15
15
|
FrameSystemExtensionsCheckWeight,
|
|
16
16
|
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
17
17
|
FrameMetadataHashExtensionCheckMetadataHash,
|
|
18
|
+
PalletReviveEvmTxExtensionSetOrigin,
|
|
18
19
|
StagingXcmV5Location,
|
|
19
20
|
} from './types.js';
|
|
20
21
|
import { ChainConsts } from './consts.js';
|
|
@@ -42,6 +43,8 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
42
43
|
FrameSystemExtensionsCheckWeight,
|
|
43
44
|
PalletAssetConversionTxPaymentChargeAssetTxPayment,
|
|
44
45
|
FrameMetadataHashExtensionCheckMetadataHash,
|
|
46
|
+
PalletReviveEvmTxExtensionSetOrigin,
|
|
47
|
+
[],
|
|
45
48
|
];
|
|
46
49
|
AssetId: StagingXcmV5Location;
|
|
47
50
|
EventRecord: FrameSystemEventRecord;
|
|
@@ -49,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
|
|
|
49
52
|
|
|
50
53
|
/**
|
|
51
54
|
* @name: PolkadotAssetHubApi
|
|
52
|
-
* @specVersion:
|
|
55
|
+
* @specVersion: 2000005
|
|
53
56
|
**/
|
|
54
57
|
export interface PolkadotAssetHubApi extends GenericSubstrateApi {
|
|
55
58
|
rpc: ChainJsonRpcApis;
|