@dein-fi/contracts
v0.2.2
Published
Smart contract ABIs and TypeChain bindings for the DEIN protocol
Downloads
493
Readme
@dein-fi/contracts
Smart contract ABIs and TypeChain bindings for the DEIN protocol.
Install
npm install @dein-fi/contractsRequires ethers v6 as a peer dependency:
npm install ethers@^6Usage
Typed contract factories (ethers v6)
import { DemandBook__factory } from '@dein-fi/contracts';
const contract = DemandBook__factory.connect(address, signerOrProvider);All ABIs as named exports
import { DemandBook, PolicyBook } from '@dein-fi/contracts/abis';Individual raw ABI JSON
import DemandBookAbi from '@dein-fi/contracts/abis/DemandBook.json';Updating ABIs
- Upload
abis.zipto the repository's Bitbucket Downloads (drag & drop in Bitbucket UI). The archive should contain ABI JSON files at the root level. - Go to Pipelines in Bitbucket → Run pipeline → select
update-abis. - The pipeline extracts ABIs, rebuilds, version-bumps, commits, tags, and publishes to npm.
Versioning
- Patch: new or changed ABI files
- Minor: removed ABI files (potentially breaking)
- Major: structural package changes (manual)
