Example Logs

Usage Example: Caching a Stylus Contract

This section demonstrates how to use the smart-cache CLI tool to cache a Stylus contract. The following logs show a successful run of the smart-cache add command.


Command


Process Breakdown

  1. Validation

    • Contract deployment is validated.

    • User registration and balance are checked.

    • Stylus program status is verified.

    ✅ Valid contract detected ✅ User registered and balance verified


  1. Bid Placement

    • A bid is placed on behalf of the user to cache the contract.

    • Direct placement occurs because the minimum bid is zero.

    ✅ Bid placement successful

    Bid Analysis:

    • Reason: Zero minimum bid – direct placement

    • ROI: 1e-17 ETH/contract call

    • Minimum Bid: 0 ETH

    • Market Bid: 0.000000000000000001 ETH - last latest non-zero bid

    • Gas Saved: 11,797 units

    • Savings Percentage: 90%

    • Gas Used: 156,308 units


  1. Contract Saved to Cache

    ✅ Contract successfully saved.

    Details:

    • Address: 0x9e0d82d65b7cb7ae7868f11e3d4588122781da08

    • Network: arbitrum-sepolia

    • Deployed By: 0xd649CB59755EbC44610a8e5F15D3C93C3aEb08F1

    • Tx Hash: 0x4f8f6b63ca868ea9945213a159e3e79afa228811b83e39271fba957f9cf58f1d

Last updated