MCPcopy Create free account

hub / github.com/a16z/magi / functions

Functions297 in github.com/a16z/magi

↓ 1 callersMethodfetch_beacon_spec
Fetch the beacon chain spec.
src/l1/blob_fetcher.rs:113
↓ 1 callersMethodfetch_blob_sidecars
Fetch the blob sidecars for a given slot.
src/l1/blob_fetcher.rs:84
↓ 1 callersMethodfill_bank
Pull the next batcher transaction from the BatcherTransactions stage
src/derive/stages/channels.rs:84
↓ 1 callersMethodfilter_inputs
Returns Block Input elements that are newer than the current `safe_head`.
src/derive/stages/batches.rs:173
↓ 1 callersMethodfull_sync
Full sync mode. Syncs via L1 block derivation from the latest finalized block the execution client has synced to. Otherwise syncs from genesis
src/runner/mod.rs:93
↓ 1 callersMethodget_deposits
(&mut self, block_num: u64)
src/l1/chain_watcher.rs:407
↓ 1 callersFunctionget_ecotone_upgrade_transactions
Return the generated Ecotone upgrade RLP-encoded transactions as defined in the [specs]. [specs]: https://specs.optimism.io/protocol/derivation.html#
src/derive/ecotone_upgrade.rs:11
↓ 1 callersFunctionget_expected_hashes
(block_num: u64)
src/derive/mod.rs:183
↓ 1 callersMethodget_finalized
(&self)
src/l1/chain_watcher.rs:373
↓ 1 callersMethodget_head
(&self)
src/l1/chain_watcher.rs:389
↓ 1 callersMethodget_payload
Sends an `engine_getPayloadV2` (V3 post Ecotone) message to the engine.
src/engine/api.rs:233
↓ 1 callersFunctionget_rolling_file_appender
Get a rolling file appender for the given directory, rotation and file name prefix.
src/telemetry/logging.rs:235
↓ 1 callersFunctionget_rotation_strategy
Get the rotation strategy from the given string. Defaults to rotating daily.
src/telemetry/logging.rs:220
↓ 1 callersMethodget_slot_from_time
Given a timestamp, return the slot number at which the timestamp was included in the beacon chain. This method uses a cached genesis timestamp and se
src/l1/blob_fetcher.rs:49
↓ 1 callersFunctionget_tx_hashes
(txs: &[RawTransaction])
src/derive/mod.rs:194
↓ 1 callersMethodhandle_attributes
Initiates validation & production of a new L2 block from the given [PayloadAttributes] and updates the forkchoice
src/driver/engine_driver.rs:39
↓ 1 callersMethodhandle_next_block_update
Ingests the next update from the block update channel
src/driver/mod.rs:267
↓ 1 callersMethodhandle_unsafe_payload
Instructs the engine to create a block and updates the forkchoice, based on a payload received via p2p gossip.
src/driver/engine_driver.rs:55
↓ 1 callersMethodhas_invalid_transactions
If any transactions are empty or deposited transaction types.
src/derive/stages/single_batch.rs:47
↓ 1 callersMethodis_available
Calls the engine to verify it's available to receive requests
src/engine/api.rs:177
↓ 1 callersMethodis_complete
Checks if we have seen the last frame for this channel
src/derive/stages/channels.rs:182
↓ 1 callersMethodis_ecotone_but_not_first_block
Returns true if Ecotone hardfork is active but the block is not the first block subject to the hardfork. Ecotone activation at genesis does not count.
src/config/mod.rs:300
↓ 1 callersMethodis_timed_out
Checks if the channel has timed out
src/derive/stages/channels.rs:187
↓ 1 callersMethodis_valid_batcher_transaction
(&self, tx: &Transaction)
src/l1/chain_watcher.rs:510
↓ 1 callersFunctionis_valid_node
Returns `true` if a node [Enr] contains an `opstack` key and is on the same network.
src/network/service/discovery.rs:57
↓ 1 callersMethodjwt_secret
(&self)
bin/magi.rs:91
↓ 1 callersMethodjwt_secret_from_file
(&self)
bin/magi.rs:95
↓ 1 callersMethodl1_inclusion_block
The highest L1 inclusion block of frames in the channel.
src/derive/stages/channels.rs:201
↓ 1 callersMethodl1_info_by_number
Returns a cached L1 block by block number
src/derive/state.rs:60
↓ 1 callersFunctionl2_refs
Returns the L2 blocks from the given ``head_num`` - (``max_seq_drift`` / ``blocktime``) to ``head_num``. If the lookback period is before the genesis
src/derive/state.rs:164
↓ 1 callersMethodnext
Processes frames until there are either none left or a channel is ready
src/derive/stages/channels.rs:27
↓ 1 callersMethodnext
Attempts to decode batches in the next channel and returns a Block Input.
src/derive/stages/batches.rs:41
↓ 1 callersMethodprocess_frames
Processes frames until there are either none left or a channel is ready
src/derive/stages/channels.rs:106
↓ 1 callersMethodprune
Removes keys from ``l1_info`` & ``l1_hashes`` mappings if older than ``self.safe_epoch.number`` - ``seq_window_size``. Removes keys from the ``l2_ref
src/derive/state.rs:133
↓ 1 callersMethodprune
Prunes channels to the max size
src/derive/stages/channels.rs:141
↓ 1 callersMethodreorg
Sets the [EngineDriver] unsafe & safe heads, and safe epoch to the current finalized head & epoch.
src/driver/engine_driver.rs:76
↓ 1 callersMethodrestart
Resets the chain watcher at the given block numbers
src/l1/chain_watcher.rs:135
↓ 1 callersMethodrun
Begins the syncing process
src/runner/mod.rs:69
↓ 1 callersFunctionshould_skip
True if transactions in [PayloadAttributes] are not the same as those in a fetched L2 [Block]
src/driver/engine_driver.rs:220
↓ 1 callersMethodsignature_message
The expected message that should be signed by the unsafe block signer.
src/network/handlers/block_handler.rs:183
↓ 1 callersMethodsingle_batch_status
Returns the validity of a Single Batch.
src/derive/stages/batches.rs:189
↓ 1 callersMethodskip_attributes
Updates the forkchoice by sending `engine_forkchoiceUpdatedV2` (v3 post Ecotone) to the engine with no payload.
src/driver/engine_driver.rs:116
↓ 1 callersMethodspan_batch_status
Returns the validity of a Span Batch.
src/derive/stages/batches.rs:272
↓ 1 callersMethodstart
Starts the Discv5 peer discovery & libp2p services and continually listens for new peers and messages to handle
src/network/service/mod.rs:59
↓ 1 callersMethodstart_epoch_num
Returns the L1 origin number of the last L2 block in the batch
src/derive/stages/span_batch.rs:100
↓ 1 callersMethodto_config
(self)
bin/magi.rs:84
↓ 1 callersMethodtotal_size
Gets the total size of all pending channels
src/derive/stages/channels.rs:133
↓ 1 callersMethodtry_ingest_block
(&mut self)
src/l1/chain_watcher.rs:232
↓ 1 callersMethodtry_next
Initiates the process of building a channel from channel frames. Decodes batches from the built channel and inserts them into the batches mapping. C
src/derive/stages/batches.rs:87
↓ 1 callersMethodtry_recv_from_channel
Attempts to receive a message from the block update channel. Returns an error if the channel contains no messages.
src/l1/chain_watcher.rs:152
↓ 1 callersMethodtry_start_networking
Begins p2p networking if fully synced with no unfinalized blocks
src/driver/mod.rs:342
↓ 1 callersMethodupdate_finalized
Updates the current finalized L2 block in the [EngineDriver] based on their inclusion in finalized L1 blocks
src/driver/mod.rs:324
↓ 1 callersMethodupdate_metrics
Updates Prometheus metrics
src/driver/mod.rs:353
↓ 1 callersMethodupdate_safe_head
Sets ``safe_head`` & ``safe_epoch`` to the given parameters. Also inserts these details into ``l2_refs``.
src/derive/state.rs:122
↓ 1 callersMethodupdate_sequence_number
Sets the current sequence number. If `self.epoch_hash` != `batch_epoch_hash` this is set to 0; otherwise it increments by 1. Also sets `self.epoch_ha
src/derive/stages/attributes.rs:188
↓ 1 callersMethodupdate_state_head
Updates the [State] `safe_head`
src/driver/mod.rs:255
↓ 1 callersMethodupdate_system_config
(&mut self)
src/l1/chain_watcher.rs:298
↓ 1 callersFunctionvalid_block
()
src/driver/info.rs:119
↓ 1 callersMethodwith_checkpoint_hash
Sets the `checkpoint_hash` if running in checkpoint [SyncMode]
src/runner/mod.rs:63
↓ 1 callersMethodwith_full_epoch
Returns the Block Input with full [Epoch] details.
src/derive/stages/block_input.rs:30
↓ 1 callersMethodwith_sync_mode
Sets the [SyncMode]
src/runner/mod.rs:57
Methodauth_url_from_addr
Constructs the base engine api url for the given address
src/engine/api.rs:72
Methodbase
[ChainConfig] for Base
src/config/mod.rs:405
Methodbase_sepolia
[ChainConfig] for Base Sepolia
src/config/mod.rs:451
Methodblock_input
Returns a Block Input instance for this batch. Represents a single L2 block.
src/derive/stages/single_batch.rs:54
Methodcheck_secret
Returns if the provided secret matches the secret used to authenticate with the engine api.
src/engine/api.rs:80
Functioncompute_message_id
Computes the message ID of a `gossipsub` message
src/network/service/mod.rs:97
Functionconstruct_valid_raw_claims
()
src/engine/auth.rs:120
Functionconstruct_valid_secret_claims
()
src/engine/auth.rs:132
Methoddecode
Decodes RLP encoded bytes into [RawTransaction] bytes
src/common/mod.rs:115
Methoddecode
Decodes a sequence of bytes into a Span Batch
src/derive/stages/span_batch.rs:36
Methoddecode
Decodes RLP bytes into a [SingleBatch]
src/derive/stages/single_batch.rs:29
Functiondecode_from_bytes_bedrock
()
src/common/attributes_deposited.rs:208
Functiondecode_from_bytes_ecotone
()
src/common/attributes_deposited.rs:232
Functiondecode_pre_ecotone_block_msg
Decodes a sequence of bytes to an [ExecutionPayloadEnvelope]
src/network/handlers/block_handler.rs:118
Methoddefault
Defaults to the Optimism [ChainConfig]
src/config/mod.rs:191
Functiondefault_blocktime
Returns default blocktime of 2 (seconds).
src/config/mod.rs:519
Functiondefault_head_info
()
src/driver/info.rs:93
Methoddefault_jwt_secret
()
bin/magi.rs:103
Methoddeserialize
(deserializer: D)
src/common/mod.rs:134
Functiondeserialize_blob_bytes
(deserializer: D)
src/l1/blob_fetcher.rs:132
Functiondeserialize_string_to_u64
(deserializer: D)
src/l1/blob_fetcher.rs:124
Methoddrop
(&mut self)
src/l1/chain_watcher.rs:96
Functionencode_secret
()
src/engine/auth.rs:139
Methodepoch_by_hash
Returns an epoch from an L1 block hash
src/derive/state.rs:76
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/engine/auth.rs:87
Methodfmt
Formatted as: {name}{version}-{meta}
src/version/mod.rs:31
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/common/mod.rs:122
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/config/mod.rs:40
Methodforkchoice_updated
( &self, _forkchoice_state: ForkchoiceState, payload_attributes: Option<PayloadAttribu
src/engine/mock_engine.rs:24
Methodfrom
Converts [ping::Event] to [Event]
src/network/service/mod.rs:230
Methodfrom
Converts a Network Address to a [Multiaddr]
src/network/service/types.rs:37
Methodfrom
Converts Op Stack Enr data to a vector of bytes.
src/network/service/discovery.rs:108
Methodfrom
Returns the Keccak256 hash of a sequence of bytes
src/network/handlers/block_handler.rs:176
Methodfrom
Converts a [Provider] to a [HeadInfoFetcher]
src/driver/info.rs:25
Methodfrom
(value: BlockInfo)
src/common/mod.rs:46
Methodfrom
Converts [AttributesDeposited] to a [DepositedTransaction]
src/derive/stages/attributes.rs:222
Methodfrom
Converts a [PendingChannel] to a [Channel]
src/derive/stages/channels.rs:247
Methodfrom
(value: ChainConfig)
src/config/mod.rs:240
Methodfrom
(value: Cli)
bin/magi.rs:116
← previousnext →101–200 of 297, ranked by callers