metaplex-foundation / kinobi

Generate powerful clients for your Solana programs.
https://kinobi-docs.vercel.app/
MIT License
111 stars 17 forks source link

How to integrate Kinobi in my own project #27

Closed nicholasoxford closed 1 year ago

nicholasoxford commented 1 year ago

Hey there, when getting mpl-token-metadata/alpha to work I noticed you used generated files in your example. I just copy and pasted the generated files, but I would like to know how to generate them my self. Thanks!

lorisleiva commented 1 year ago

Hi there, Kinobi still needs to be fully documented but if you can't wait to use it, feel free to check the configs/kinobi.cjs files in the latest Metaplex repositories. For instance:

nicholasoxford commented 1 year ago

Hey there, sorry to ask this again. But lets say I want to use Kinobi specifically for findMetadataPda, deserializeMetadata, etc.. Do I need to provide Kinobi with any idl files?

I am trying to figure out how to use this guide barebones with umi client:

Screenshot 2023-08-04 at 3 34 47 PM

Last time I used Kinobi, I just copied files I am pretty sure. It worked but I want to use it correctly

lorisleiva commented 1 year ago

Hi @nicholasoxford, Sorry I'm not sure I fully understand what you are trying to achieve but, typically, yes it is better to create your Kinobi instance by starting with an IDL (or multiple IDLs) and adjusting the tree for a better developer experience.