@dedot/chaintypes 0.0.1-alpha.104 → 0.0.1-alpha.106

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/consts.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Generated by @dedot/codegen
2
2
 
3
3
  import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
- import type { RuntimeVersion, AccountId32, Perbill } from 'dedot/codecs';
4
+ import type { RuntimeVersion, FixedU128, AccountId32, Perbill } from 'dedot/codecs';
5
5
  import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
@@ -337,6 +337,18 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
337
337
  * Pallet `DappStaking`'s constants
338
338
  **/
339
339
  dappStaking: {
340
+ /**
341
+ * Base native currency price used to calculate base number of slots.
342
+ * This is used to adjust tier configuration, tier thresholds specifically, based on the native token price changes.
343
+ *
344
+ * When dApp staking thresholds were modeled, a base price was set from which the initial configuration is derived.
345
+ * E.g. for a price of 0.05$, we get 100 slots, and certain tier thresholds.
346
+ * Using these values as the base, we can adjust the configuration based on the current price.
347
+ *
348
+ * This is connected with the `TierSlots` associated type, since it's used to calculate the total number of slots for the given price.
349
+ **/
350
+ baseNativeCurrencyPrice: FixedU128;
351
+
340
352
  /**
341
353
  * Maximum length of a single era reward span length entry.
342
354
  **/
@@ -36,6 +36,53 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
36
36
  | 'childstate_getStorageHash'
37
37
  | 'childstate_getStorageSize'
38
38
  | 'dev_getBlockStats'
39
+ | 'eth_accounts'
40
+ | 'eth_blockNumber'
41
+ | 'eth_call'
42
+ | 'eth_chainId'
43
+ | 'eth_coinbase'
44
+ | 'eth_estimateGas'
45
+ | 'eth_feeHistory'
46
+ | 'eth_gasPrice'
47
+ | 'eth_getBalance'
48
+ | 'eth_getBlockByHash'
49
+ | 'eth_getBlockByNumber'
50
+ | 'eth_getBlockReceipts'
51
+ | 'eth_getBlockTransactionCountByHash'
52
+ | 'eth_getBlockTransactionCountByNumber'
53
+ | 'eth_getCode'
54
+ | 'eth_getFilterChanges'
55
+ | 'eth_getFilterLogs'
56
+ | 'eth_getLogs'
57
+ | 'eth_getStorageAt'
58
+ | 'eth_getTransactionByBlockHashAndIndex'
59
+ | 'eth_getTransactionByBlockNumberAndIndex'
60
+ | 'eth_getTransactionByHash'
61
+ | 'eth_getTransactionCount'
62
+ | 'eth_getTransactionReceipt'
63
+ | 'eth_getUncleByBlockHashAndIndex'
64
+ | 'eth_getUncleByBlockNumberAndIndex'
65
+ | 'eth_getUncleCountByBlockHash'
66
+ | 'eth_getUncleCountByBlockNumber'
67
+ | 'eth_getWork'
68
+ | 'eth_hashrate'
69
+ | 'eth_maxPriorityFeePerGas'
70
+ | 'eth_mining'
71
+ | 'eth_newBlockFilter'
72
+ | 'eth_newFilter'
73
+ | 'eth_newPendingTransactionFilter'
74
+ | 'eth_protocolVersion'
75
+ | 'eth_sendRawTransaction'
76
+ | 'eth_sendTransaction'
77
+ | 'eth_submitHashrate'
78
+ | 'eth_submitWork'
79
+ | 'eth_subscribe'
80
+ | 'eth_syncing'
81
+ | 'eth_uninstallFilter'
82
+ | 'eth_unsubscribe'
83
+ | 'net_listening'
84
+ | 'net_peerCount'
85
+ | 'net_version'
39
86
  | 'offchain_localStorageGet'
40
87
  | 'offchain_localStorageSet'
41
88
  | 'payment_queryFeeDetails'
@@ -78,5 +125,7 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
78
125
  | 'system_version'
79
126
  | 'transaction_unstable_submitAndWatch'
80
127
  | 'transaction_unstable_unwatch'
128
+ | 'web3_clientVersion'
129
+ | 'web3_sha3'
81
130
  > &
82
131
  GenericJsonRpcApis<Rv>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.0.1-alpha.104",
3
+ "version": "0.0.1-alpha.106",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "498e55ffa3e27a1f275d25a13180aa992e947f1f",
22
+ "gitHead": "cc9fd876b7f68786a81eac66e8af3b4f7d8ae482",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
package/rococo/types.d.ts CHANGED
@@ -14550,6 +14550,10 @@ export type FrameSystemExtensionsCheckWeight = {};
14550
14550
 
14551
14551
  export type PalletTransactionPaymentChargeTransactionPayment = bigint;
14552
14552
 
14553
+ export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
14554
+
14555
+ export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
14556
+
14553
14557
  export type RococoRuntimeRuntime = {};
14554
14558
 
14555
14559
  export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };