Ham logoHam

Badges

About

Ham Chain is an OP stack Optimium L3 on Base enabling Tips and SocialFi on the Farcaster social network.


Value Locked

$129.94 K

4.57%

Canonically Bridged
$129.94 K
Externally Bridged
$0.00
Natively Minted
$0.00

  • Tokens
  • Daily TPS
    0.865.16%
  • 30D tx count
    2.08 M

  • Type
    Optimium
  • Purposes
    Social, Payments
  • Sequencer failureState validationData availabilityExit windowProposer failure

    Badges

    About

    Ham Chain is an OP stack Optimium L3 on Base enabling Tips and SocialFi on the Farcaster social network.


    Value Locked
    Activity
    Risk summary
    Fraud proof system is currently under development. Users need to trust the block proposer to submit correct L1 state roots.
    Risk analysis
    The L3 risks depend on the individual properties of L3 and those of the host chain combined.
    Fraud proof system is currently under development. Users need to trust the block proposer to submit correct L1 state roots.
    SEQUENCER
    FAILURE
    STATE
    VALIDATION
    DATA
    AVAILABILITY
    EXIT WINDOWPROPOSER
    FAILURE
    Base
    L2
    Self sequenceIn developmentOn chainNoneCannot withdraw
    Ham
    L3 • Individual
    Self sequenceIn developmentExternalNoneCannot withdraw
    Ham
    L3 • Combined
    Self sequenceIn developmentExternalNoneCannot withdraw
    L3 combined risks
    Sequencer failureState validationData availabilityExit windowProposer failure
    L2 & L3 individual risks
    Sequencer failureState validationData availabilityExit windowProposer failure

    L3 combined risks

    Sequencer failure

    Self sequence

    In the event of a sequencer failure, users can force transactions to be included in the project’s chain by sending them to L1. There is a 1d delay on this operation.

    State validation

    In development

    Currently the system permits invalid state roots. More details in project overview.

    Data availability

    External

    Proof construction and state derivation fully rely on data that is posted on Celestia. Sequencer tx roots are not checked against the Blobstream bridge data roots onchain, but L2 nodes can verify data availability by running a Celestia light client.

    Exit window

    None

    There is no window for users to exit in case of an unwanted regular upgrade since contracts are instantly upgradable.

    Proposer failure

    Cannot withdraw

    Only the whitelisted proposers can publish state roots on L1, so in the event of failure the withdrawals are frozen.

    Technology

    Fraud proofs are in development

    Ultimately, OP stack chains will use interactive fraud proofs to enforce state correctness. This feature is currently in development and the system permits invalid state roots.

    • Funds can be stolen if an invalid state root is submitted to the system (CRITICAL).

    1. L2OutputOracle.sol - Etherscan source code, deleteL2Outputs function

    Data is stored on Celestia

    Transactions roots are posted onchain and the full data is posted on Celestia. Since the Blobstream bridge is not used, availability of the data is not verified against Celestia validators, meaning that the Sequencer can single-handedly publish unavailable roots.

    • Funds can be lost if the sequencer posts an unavailable transaction root (CRITICAL).

    • Funds can be lost if the data is not available on the external provider (CRITICAL).

    1. Introducing Blobstream: streaming modular DA to Ethereum
    2. Derivation: Batch submission - OP Mainnet specs
    3. BatchInbox - Etherscan address
    4. OptimismPortal.sol - Etherscan source code, depositTransaction function
    Operator

    The system has a centralized operator

    The operator is the only entity that can propose blocks. A live and trustworthy operator is vital to the health of the system.

    • MEV can be extracted if the operator exploits their centralized position and frontruns user transactions.

    1. L2OutputOracle.sol - Etherscan source code, CHALLENGER address
    2. L2OutputOracle.sol - Etherscan source code, PROPOSER address
    3. Decentralizing the sequencer - OP Stack docs

    Users can force any transaction

    Because the state of the system is based on transactions submitted on the underlying host chain and anyone can submit their transactions there it allows the users to circumvent censorship by interacting with the smart contract on the host chain directly.

    1. Sequencing Window - OP Mainnet Specs
    2. OptimismPortal.sol - Etherscan source code, depositTransaction function
    Withdrawals

    Regular exit

    The user initiates the withdrawal by submitting a regular transaction on this chain. When the block containing that transaction is finalized the funds become available for withdrawal on L1. The process of block finalization takes a challenge period of 7d to complete. Finally the user submits an L1 transaction to claim the funds. This transaction requires a merkle proof.

    • Funds can be frozen if the centralized validator goes down. Users cannot produce blocks themselves and exiting the system requires new block production (CRITICAL).

    1. OptimismPortal.sol - Etherscan source code, proveWithdrawalTransaction function
    2. OptimismPortal.sol - Etherscan source code, finalizeWithdrawalTransaction function
    3. L2OutputOracle.sol - Etherscan source code, PROPOSER check

    Forced exit

    If the user experiences censorship from the operator with regular exit they can submit their withdrawal requests directly on L1. The system is then obliged to service this request or halt all withdrawals, including forced withdrawals from L1 and regular withdrawals initiated on L2. Once the force operation is submitted and if the request is serviced, the operation follows the flow of a regular exit.

    1. Forced withdrawal from an OP Stack blockchain
    Other considerations

    EVM compatible smart contracts are supported

    OP stack chains are pursuing the EVM Equivalence model. No changes to smart contracts are required regardless of the language they are written in, i.e. anything deployed on L1 can be deployed on L2.

    1. Introducing EVM Equivalence
    Permissions

    The system uses the following set of permissioned addresses:

    Challenger 0x0458…9022

    Challenger is an actor allowed to delete state roots proposed by a Proposer.

    Guardian 0x87Ef…156d

    Guardian is an actor allowed to pause deposits and withdrawals.

    Used in:

    Proposer 0x78c6…47fB

    Proposer is an actor allowed to post new state roots of current layer to the host chain.

    Sequencer 0x0A6F…4eDC

    Sequencer is an actor allowed to commit transactions from current layer to the host chain.

    HamMultisig1 0x211A…6aEA
    • This is a Gnosis Safe with 3 / 4 threshold.
    • Can act on behalf of ProxyAdmin.
    • Can change configuration of AddressManager (acting via ProxyAdmin).
    • Can upgrade implementation of L2OutputOracle, OptimismMintableERC20Factory, L1ERC721Bridge, SystemConfig, OptimismPortal, SuperchainConfig (acting via ProxyAdmin).
    • Can upgrade implementation of L1StandardBridge (acting via ProxyAdmin) - upgrading bridge implementation allows to access all funds and change every system component.

    Those are the participants of the HamMultisig1.

    HamMultisig2 0x87Ef…156d
    • This is a Gnosis Safe with 3 / 4 threshold.
    • A Guardian.
    • Can change configuration of SystemConfig - it can update the preconfer address, the batch submitter (Sequencer) address and the gas configuration of the system.

    Used in:

    Those are the participants of the HamMultisig2.

    Smart contracts

    The system consists of the following smart contracts on the host chain (Base):

    Contains a list of proposed state roots which Proposers assert to be a result of block execution. Currently only the PROPOSER address can submit new state roots.

    Can be upgraded by:

    Upgrade delay: No delay

    A helper contract that generates OptimismMintableERC20 contracts on the network it’s deployed to. OptimismMintableERC20 is a standard extension of the base ERC20 token contract designed to allow the L1StandardBridge contracts to mint and burn tokens. This makes it possible to use an OptimismMintablERC20 as this chain’s representation of a token on the host chain, or vice-versa.

    Can be upgraded by:

    Upgrade delay: No delay

    Sends messages from host chain to this chain, and relays messages back onto host chain. In the event that a message sent from host chain to this chain is rejected for exceeding this chain’s epoch gas limit, it can be resubmitted via this contract’s replay function.

    ProxyAdmin 0x5eC2…7B49
    • Can be used to configure AddressManager.
    • Can be used to upgrade implementation of L2OutputOracle, OptimismMintableERC20Factory, L1ERC721Bridge, SystemConfig, OptimismPortal, SuperchainConfig.
    • Can be used to upgrade implementation of L1StandardBridge - upgrading bridge implementation allows to access all funds and change every system component.

    Used to bridge ERC-721 tokens from host chain to this chain.

    Can be upgraded by:

    Upgrade delay: No delay

    The main entry point to deposit ERC20 tokens from host chain to this chain. This contract can store any token. This contract can store any token.

    Can be upgraded by:

    Upgrade delay: No delay

    Contains configuration parameters such as the Sequencer address, gas limit on this chain and the unsafe block signer address.

    Can be upgraded by:

    Upgrade delay: No delay

    AddressManager 0xd2e0…25eE

    The main entry point to deposit funds from host chain to this chain. It also allows to prove and finalize withdrawals. This contract stores the following tokens: ETH.

    Can be upgraded by:

    Upgrade delay: No delay

    Used to manage global configuration values for multiple OP Chains within a single Superchain network. The SuperchainConfig contract manages the PAUSED_SLOT, a boolean value indicating whether the Superchain is paused, and GUARDIAN_SLOT, the address of the guardian which can pause and unpause the system.

    Can be upgraded by:

    Upgrade delay: No delay

    Value Locked is calculated based on these smart contracts and tokens:

    Main entry point for users depositing ERC20 token that do not require custom gateway.

    Can be upgraded by:

    Upgrade delay: No delay

    Main entry point for users depositing ETH.

    Can be upgraded by:

    Upgrade delay: No delay

    The current deployment carries some associated risks:

    • Funds can be stolen if a contract receives a malicious code upgrade. There is no delay on code upgrades (CRITICAL).

    Knowledge nuggets