Ceramic anchor contract utilities
Getting started
Installation
$ npm install @ceramicnetwork/anchor-utils
Usage
import {
ANCHOR_CONTRACT_ADDRESSES,
type SupportedNetwork,
} from "@ceramicnetwork/anchor-utils";
function getContractAddress(network: SupportedNetwork): string {
const address = ANCHOR_CONTRACT_ADDRESSES[network];
if (address == null) {
throw new Error(`Unsupported contract network: ${network}`);
}
}
Development
Run tests:
npm test
Run linter:
npm run lint
Contributing
We are happy to accept small and large contributions. Make sure to check out the
Ceramic specifications
for details of how the protocol works.
License
MIT or Apache-2.0