Skip to content

Instantly share code, notes, and snippets.

@samlaf
samlaf / gasOracles.rs
Created May 23, 2022 13:15
Gas Oracles (ethers-rs)
use ethers::prelude::*;
use eyre::Result;
use gas_oracle::{
EthGasStation, Etherchain, Etherscan,
GasCategory::{Fast, Fastest, SafeLow, Standard},
GasOracle,
};
#[tokio::main]
async fn main() -> Result<()> {
@samlaf
samlaf / ko-build-flags.md
Last active May 27, 2024 05:21
Ko build flags
@samlaf
samlaf / cert-size-comparisons.go
Created May 6, 2025 11:04
Comparing various eigenda cert sizes under different encoding/compression
package main
import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/Layr-Labs/eigenda/api/clients/v2/coretypes"
certbindings "github.com/Layr-Labs/eigenda/contracts/bindings/IEigenDACertTypeBindings"
"github.com/ethereum/go-ethereum/rlp"