Skip to content

Commit

Permalink
feat: update node config type for v2.3.3 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc authored Apr 18, 2024
1 parent 438b325 commit 8e0412d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/scripts/generateNodeConfigType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Project, WriterFunction, Writers } from 'ts-morph';
const { objectType } = Writers;

function getNitroNodeImageTag(): string {
const defaultNitroNodeTag = 'v2.3.0-3e14543';
const defaultNitroNodeTag = 'v2.3.3-6a1c1a7';
const argv = process.argv.slice(2);

if (argv.length < 2 || argv[0] !== '--nitro-node-tag') {
Expand Down
40 changes: 31 additions & 9 deletions src/types/NodeConfig.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// THIS FILE IS AUTOMATICALLY GENERATED AND SHOULD NOT BE EDITED MANUALLY
//
// IMAGE: offchainlabs/nitro-node:v2.3.0-3e14543
// TIMESTAMP: 2024-02-29T09:03:31.210Z
// IMAGE: offchainlabs/nitro-node:v2.3.3-6a1c1a7
// TIMESTAMP: 2024-04-18T09:36:12.267Z
//
// ---
/** Nitro node configuration options */
Expand All @@ -29,7 +29,7 @@ export type NodeConfig = {
'end-block'?: number;
/** mode to run the blocks-reexecutor on. Valid modes full and random. full - execute all the blocks in the given range. random - execute a random sample range of blocks with in a given range (default "random") */
'mode'?: string;
/** number of threads to parallelize blocks re-execution (default 10) */
/** number of threads to parallelize blocks re-execution (default 12) */
'room'?: number;
/** first block number of the block range for re-execution */
'start-block'?: number;
Expand Down Expand Up @@ -351,6 +351,8 @@ export type NodeConfig = {
'data-poster'?: {
/** if true, don't put transactions in the mempool that spend a total greater than the batch poster's balance (default true) */
'allocate-mempool-balance'?: boolean;
/** comma-separated list of durations since first posting a blob transaction to attempt a replace-by-fee (default "5m,10m,30m,1h,4h,8h,16h,22h") */
'blob-tx-replacement-times'?: string;
'dangerous'?: {
/** clear database storage */
'clear-dbstorage'?: boolean;
Expand All @@ -375,16 +377,22 @@ export type NodeConfig = {
};
/** encodes items in a legacy way (as it was before dropping generics) */
'legacy-storage-encoding'?: boolean;
/** the maximum tip cap to post EIP-4844 blob carrying transactions at (default 1) */
'max-blob-tx-tip-cap-gwei'?: number;
/** the maximum multiple of the current price to bid for a transaction's fees (may be exceeded due to min rbf increase, 0 = unlimited) (default 100000) */
'max-fee-bid-multiple-bips'?: number;
/** mathematical formula to calculate maximum fee cap gwei the result of which would be float64. This expression is expected to be evaluated please refer https://github.com/Knetic/govaluate/blob/master/MANUAL.md to find all available mathematical operators. Currently available variables to construct the formula are BacklogOfBatches, UrgencyGWei, ElapsedTime, ElapsedTimeBase, ElapsedTimeImportance, and TargetPriceGWei (default "((BacklogOfBatches * UrgencyGWei) ** 2) + ((ElapsedTime/ElapsedTimeBase) ** 2) * ElapsedTimeImportance + TargetPriceGWei") */
'max-fee-cap-formula'?: string;
/** the maximum number of transactions to have queued in the mempool at once (0 = unlimited) (default 20) */
/** the maximum number of transactions to have queued in the mempool at once (0 = unlimited) (default 18) */
'max-mempool-transactions'?: number;
/** the maximum number of weight (weight = min(1, tx.blobs)) to have queued in the mempool at once (0 = unlimited) (default 18) */
'max-mempool-weight'?: number;
/** the maximum number of unconfirmed transactions to track at once (0 = unlimited) */
'max-queued-transactions'?: number;
/** the maximum tip cap to post transactions at (default 5) */
'max-tip-cap-gwei'?: number;
/** the minimum fee cap to post transactions at */
'min-fee-cap-gwei'?: number;
/** the minimum tip cap to post EIP-4844 blob carrying transactions at (default 1) */
'min-blob-tx-tip-cap-gwei'?: number;
/** the minimum tip cap to post transactions at (default 0.05) */
'min-tip-cap-gwei'?: number;
/** the maximum probable reorg depth, used to determine when a transaction will no longer likely need replaced-by-fee (default 1) */
Expand Down Expand Up @@ -420,6 +428,8 @@ export type NodeConfig = {
'error-delay'?: string;
/** use this much more gas than estimation says is necessary to post batches (default 50000) */
'extra-batch-gas'?: number;
/** for gas estimation, use this multiple of the basefee (measured in basis points) as the max fee per gas (default 15000) */
'gas-estimate-base-fee-multiple-bips'?: number;
/** The gas refunder contract address (optional) */
'gas-refunder-address'?: string;
/** if the parent chain supports 4844 blobs and ignore-blob-price is true, post 4844 blobs even if it's not price efficient */
Expand Down Expand Up @@ -488,7 +498,7 @@ export type NodeConfig = {
'memory-free-limit'?: string;
/** pending upgrade wasm module root to additionally validate (hash, 'latest' or empty) (default "latest") */
'pending-upgrade-module-root'?: string;
/** record that many blocks ahead of validation (larger footprint) (default 20) */
/** record that many blocks ahead of validation (larger footprint) (default 24) */
'prerecorded-blocks'?: number;
/** poll time to check validations (default 1s) */
'validation-poll'?: string;
Expand Down Expand Up @@ -835,6 +845,8 @@ export type NodeConfig = {
'data-poster'?: {
/** if true, don't put transactions in the mempool that spend a total greater than the batch poster's balance (default true) */
'allocate-mempool-balance'?: boolean;
/** comma-separated list of durations since first posting a blob transaction to attempt a replace-by-fee (default "5m,10m,30m,1h,4h,8h,16h,22h") */
'blob-tx-replacement-times'?: string;
'dangerous'?: {
/** clear database storage */
'clear-dbstorage'?: boolean;
Expand All @@ -859,16 +871,22 @@ export type NodeConfig = {
};
/** encodes items in a legacy way (as it was before dropping generics) */
'legacy-storage-encoding'?: boolean;
/** the maximum tip cap to post EIP-4844 blob carrying transactions at (default 1) */
'max-blob-tx-tip-cap-gwei'?: number;
/** the maximum multiple of the current price to bid for a transaction's fees (may be exceeded due to min rbf increase, 0 = unlimited) (default 100000) */
'max-fee-bid-multiple-bips'?: number;
/** mathematical formula to calculate maximum fee cap gwei the result of which would be float64. This expression is expected to be evaluated please refer https://github.com/Knetic/govaluate/blob/master/MANUAL.md to find all available mathematical operators. Currently available variables to construct the formula are BacklogOfBatches, UrgencyGWei, ElapsedTime, ElapsedTimeBase, ElapsedTimeImportance, and TargetPriceGWei (default "((BacklogOfBatches * UrgencyGWei) ** 2) + ((ElapsedTime/ElapsedTimeBase) ** 2) * ElapsedTimeImportance + TargetPriceGWei") */
'max-fee-cap-formula'?: string;
/** the maximum number of transactions to have queued in the mempool at once (0 = unlimited) (default 1) */
'max-mempool-transactions'?: number;
/** the maximum number of weight (weight = min(1, tx.blobs)) to have queued in the mempool at once (0 = unlimited) (default 1) */
'max-mempool-weight'?: number;
/** the maximum number of unconfirmed transactions to track at once (0 = unlimited) */
'max-queued-transactions'?: number;
/** the maximum tip cap to post transactions at (default 5) */
'max-tip-cap-gwei'?: number;
/** the minimum fee cap to post transactions at */
'min-fee-cap-gwei'?: number;
/** the minimum tip cap to post EIP-4844 blob carrying transactions at (default 1) */
'min-blob-tx-tip-cap-gwei'?: number;
/** the minimum tip cap to post transactions at (default 0.05) */
'min-tip-cap-gwei'?: number;
/** the maximum probable reorg depth, used to determine when a transaction will no longer likely need replaced-by-fee (default 1) */
Expand Down Expand Up @@ -978,10 +996,14 @@ export type NodeConfig = {
};
'parent-chain'?: {
'blob-client'?: {
/** Value to send with the HTTP Authorization: header for Beacon REST requests, must include both scheme and scheme parameters */
'authorization'?: string;
/** Beacon Chain RPC URL to use for fetching blobs (normally on port 3500) */
'beacon-url'?: string;
/** Full path of the directory to save fetched blobs */
'blob-directory'?: string;
/** Backup beacon Chain RPC URL to use for fetching blobs (normally on port 3500) when unable to fetch from primary */
'secondary-beacon-url'?: string;
};
'connection'?: {
/** limit size of arguments in log entries (default 2048) */
Expand Down

0 comments on commit 8e0412d

Please sign in to comment.