{"repo":"metaplex-foundation/solita","free":true,"listed":false,"github":"https://github.com/metaplex-foundation/solita","clone":"git clone https://github.com/metaplex-foundation/solita.git","description":"Genrates an SDK API from solana contract IDL.","language":"TypeScript","stars":176,"topics":["blockchain","js","metaplex","nft","solana"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"solita Sol ana I DL t o A PI generator. Table of Contents generated with DocToc - How does it Work? - Shank + Solita Example (Recommended) - Full Example: Token Metadata Solita + Shank Setup - Anchor + Solita Example (Recommended) - Full Example: MPL Candy Machine Solita + Anchor Setup - Type Aliases - Custom De/Serializers - Hooking into IDL Creation - Advanced Shank + Solita Example - Advanced Anchor + Solita Example - Solita in the Wild - LICENSE How does it Work? Solita generates a low level TypeScript SDK for your Solana Rust programs from the IDL extracted by anchor or shank. Shank + Solita Example (Recommended) In order to use solita with shank do the following: - add the shank library to your Rust project via cargo add shank - annotate your Rust program as outlined here - add solita to the dev dependencies of your SDK package via yarn add -D @metaplex-foundation/solita - add a config similar to the below into .solitarc.js in your SDK package root Now running yarn solita from the same folder will take care of installing the matching shank binary and generating the IDL and SDK. Run it each time you make a change to your program to generate the TypeScript SDK. Since we're writing the shank binary to .crates/ you should add that folder to your .gitignore . Full Example: Token Metadata Solita + Shank Setup - annotated instructions - annotated accounts - generated TypeScript Anchor + Solita Example (Recommended) In order to use solita with anchor do the following: - annotat","default_branch":null,"files":null,"tree":[],"storefront":"/r/metaplex-foundation","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/metaplex-foundation/solita/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}