gill
Version:
a modern javascript/typescript client library for interacting with the Solana blockchain
43 lines • 1.13 kB
TypeScript
/**
* Codama dependency map to utilize gill imports
*/
export declare const GILL_EXTERNAL_MODULE_MAP: Record<string, string>;
/**
* Create a Codama CLI configuration to generate a program client from an IDL.
* Normally saved to `codama.js`.
*
* @example
* ```ts
* import { createCodamaConfig } from "gill";
*
* export default createCodamaConfig({
* idl: "program/idl.json",
* clientJs: "clients/js/src/generated",
* // clientRust: "clients/rust/src/generated",
* });
* ```
*/
export declare function createCodamaConfig({ idl, clientJs, clientRust, dependencyMap, }: {
idl: string;
clientJs: string;
clientRust?: string;
dependencyMap?: Record<string, string>;
}): {
idl: string;
scripts: {
js: {
args: (string | {
dependencyMap: Record<string, string>;
})[];
from: string;
};
rust: {
from: string;
args: (string | {
crateFolder: string;
formatCode: boolean;
})[];
} | undefined;
};
};
//# sourceMappingURL=create-codama-config.d.ts.map