Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.37 KB

File metadata and controls

47 lines (36 loc) · 1.37 KB


Base_lockup_white



Base Standard Library

A collection of Solidity interfaces, libraries, and mock implementations for Base precompiles.

Installation

forge install base/base-std

Standard Precompiles

src
├── StdPrecompiles.sol: Collection of precompiles and their interfaces
└── interfaces
    ├── IB20.sol: Core Token Standard
    ├── IB20Stablecoin.sol: Stablecoin variant of B20
    ├── IB20Security.sol: Security variant of B20
    ├── IPolicyRegistry.sol: Policy registry shared across B20s
    └── ITokenFactory.sol: B20 factory contract

Development

forge build
forge test

Solidity version: 0.8.30 for reference implementations. Interfaces are written for broader compatibility (>=0.8.20 <0.9.0) so consumers can import them without forcing a specific compiler.

License

MIT