Skip to content

Instantly share code, notes, and snippets.

@kmjones1979
kmjones1979 / scaffold.config.ts
Created January 27, 2024 19:25 — forked from technophile-04/scaffold.config.ts
SE-2 frontend config for base mainnet
import * as chains from "wagmi/chains";
// Base chain
export const base = {
id: 8453,
network: "base",
name: "Base",
nativeCurrency: { name: "Base", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: {
@kmjones1979
kmjones1979 / generic.org
Created January 25, 2022 00:32 — forked from hrkrshnn/generic.org
Some generic writeup about common gas optimizations, etc.

Upgrade to at least 0.8.4

Using newer compiler versions and the optimizer gives gas optimizations and additional safety checks for free!

The advantages of versions 0.8.* over <0.8.0 are:

  • Safemath by default from 0.8.0 (can be more gas efficient than some library based safemath.)
  • Low level inliner from 0.8.2, leads to cheaper runtime gas. Especially relevant when the contract has small functions. For