coral-xyz / anchor-book

The Anchor Book
https://book.anchor-lang.com
Apache License 2.0
100 stars 59 forks source link

use ts builder api #13

Closed paul-schaaf closed 2 years ago

paul-schaaf commented 2 years ago

adjust all client code in the book and the /programs folder to use the new program.methods API.

The PDA inference is still behind a feature gate and should not be included in the book yet.

LoneStarDev commented 2 years ago

Is there anything a newbie can do here?

paul-schaaf commented 2 years ago

yea totally this is pretty straightforward to do!

just a switch from one syntax to another

LoneStarDev commented 2 years ago

let me take a look. Im newish to Git and coding in general. Created a couple simple programs with anchor. Trying to figure out how to contribute, but one has to have knowledge to do so. Only learn by doing I guess. Thanks Paul!

LoneStarDev commented 2 years ago

by any chance could you point me to where the new program.methods API is? Documentation? I am assuming the task is to replace the old methods with the new methods right?

paul-schaaf commented 2 years ago

yes that is the task. theres no documentation. check out the tests/pda-derivation dir in the repo for examples

LoneStarDev commented 2 years ago

I probably don't have the skillset yet for this. I will be interested once someone does this so I have reference to what this all means.

lucasig11 commented 2 years ago

can i work on this?

paul-schaaf commented 2 years ago

@lucasig11 yes!