Skip to content

berachain/abis-ts

Repository files navigation

@berachain/abis

npm version

Typed ABI exports for Berachain contracts, compatible with viem and wagmi.

Install

pnpm add @berachain/abis

Versioning

This package does not follow semver. Any release may add, remove, or restructure exports to match the latest contract deployments. Pin an exact version in your package.json to avoid surprises, for instance:

{
  "dependencies": {
    "@berachain/abis": "0.1.0"
  }
}

Check the GitHub releases for details on what changed in each version.

Usage

Each contract ABI is available as a separate subpath import for tree-shaking:

import { rewardVaultAbi } from "@berachain/abis/pol/rewards/rewardVault";
import { bgtAbi } from "@berachain/abis/pol/bgt";
import { vaultAbi } from "@berachain/abis/bex/vault";

All exports are typed as const for full viem type inference.

Available ABIs

Sources

ABIs are generated from these contract repositories:

Export prefix Repository
(top-level) berachain/contracts
staking-pools/ berachain/contracts-staking-pools
bend/ berachain/morpho-blue
bex/ berachain/balancer-v2-monorepo

License

MIT

About

Typed ABI TypeScript package generated from Solidity artifacts

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors