Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Counter PDA Tutorial - Easy #71

Merged
merged 12 commits into from Oct 28, 2022

Conversation

cleon30
Copy link
Contributor

@cleon30 cleon30 commented Oct 28, 2022

I have created a Counter PDA Tutorial for the Solana Playground. This will be an easy tutorial to get a better understanding of accounts, PDAs, and how basic operations work on Solana Anchor Programs.

Is designed to be an introductory tutorial, where the user will have to fill the gaps in functions following the instructions from the pages of the tutorial.

C and others added 11 commits October 28, 2022 10:33
- **Data Validators**: a section for all the accounts that we will have to create and declare. As you can see, the *Context*<Name> from the functions is actually the same as the Data validators.

- **Data Structures**: the structure of the accounts / rust structs that we will use to store info! In the program is pretty clear, the Counter account will store 2 things:
```bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bash should be rust

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also ideally, the images live under the tutorial's folder, not the existing tutorial template folder. You can create counter-easy folder inside public/tutorials to keep things more organized.

@acheroncrypto
Copy link
Member

Thank you so much for making this! I've requested a small change and could you please run yarn format because CI will fail with the current formatting.

Ok!
- I have changed the path of the images.

- The bash formats I have changed to Rust(with the exception of solana airdrop 2 because is not Rust)

- Add initial image in 1.md

- yarn format before commit
@acheroncrypto acheroncrypto changed the title Adding Counter PDA Tutorial - Easy Add Counter PDA Tutorial - Easy Oct 28, 2022
@acheroncrypto acheroncrypto merged commit 82656b8 into solana-playground:master Oct 28, 2022
@acheroncrypto
Copy link
Member

Merged! Thanks again, one more small thing: it would be better to name the folder with React's naming convention CounterEasy instead of Template_counter. It's not a big deal but it's nice to have a standart naming convention.

@cleon30
Copy link
Contributor Author

cleon30 commented Oct 28, 2022

Perfect!! I will change the folder name and pull request again.

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants