TypeScript client for the Quarry protocol programs, generated using Coda CLI with full ESM support.
bun add @macalinao/clients-quarry
This client includes all Quarry protocol programs:
This client is generated from multiple Quarry IDLs using Coda CLI:
# Generate the client from all IDLs in idls/
bun run codegen
# Build the TypeScript
bun run build
The coda.config.mjs file is configured to load all Quarry protocol IDLs and generate a unified client.
import {
getCreateMinerInstruction,
fetchMiner,
} from "@macalinao/clients-quarry";
// Fetch miner account
const miner = await fetchMiner(rpc, minerAddress);
// Create miner instruction
const instruction = getCreateMinerInstruction({
// ... instruction parameters
});
Copyright © 2025 Ian Macalinao
Licensed under the Apache License, Version 2.0