regolith-labs / ore

ORE is a cryptocurrency everyone can mine.
https://ore.supply
688 stars 235 forks source link

Add IDL and JavaScript client #104

Closed febo closed 2 weeks ago

febo commented 3 weeks ago

This PR uses Codama to generate an IDL and JavaScript client for the ORE program.

The steps required for this were:

To generate the JavaScript client using Codama from the root of the repository, you may use the following command.

pnpm install
pnpm generate

This will generate the IDL from the API annotation and generate the JavaScript client.

To build the client, go into the client directory and use the following commands.

pnpm install
pnpm build

The Codama IDL for the program is located in ./api/idl.codama.json.

febo commented 2 weeks ago

Closed in favour of #105