Skip to content

docs: Add Solana Playground quickstart page, and add examples page for anchor contraints and types. #2703

Merged
acheroncrypto merged 6 commits intosolana-foundation:masterfrom
ZYJLiu:add-solpg-examples
Nov 20, 2023
Merged

docs: Add Solana Playground quickstart page, and add examples page for anchor contraints and types. #2703
acheroncrypto merged 6 commits intosolana-foundation:masterfrom
ZYJLiu:add-solpg-examples

Conversation

@ZYJLiu
Copy link
Copy Markdown
Contributor

@ZYJLiu ZYJLiu commented Nov 16, 2023

Added the following pages to Anchor docs:

  • A "quickstart" page that walks through how to build, deploy, and test an Anchor program using Solana Playground
  • An Anchor account constraints reference page with minimal examples (github and Solpg links)
  • An Anchor account types reference page with minimal examples (github and Solpg links)

Lmk any suggestions you have to improve the examples!
(I didn't include one for rent_exempt constraint because I'm not quite sure how its used)

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 16, 2023

@ZYJLiu is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Collaborator

@acheroncrypto acheroncrypto left a comment

Choose a reason for hiding this comment

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

Lmk any suggestions you have to improve the examples!

They look great!

(I didn't include one for rent_exempt constraint because I'm not quite sure how its used)

It was added in back in Jan 2021(#17) when one could create a rent paying account. Runtime doesn't allow creating rent paying accounts anymore(solana-labs/solana#22292) but I think it was kept because there were still rent paying accounts in the network. We might remove it in the future since rent collection is being disabled(solana-labs/solana#33945).

Comment thread docs/src/pages/docs/solana-playground.md
Comment thread docs/src/pages/docs/account-types.md
@acheroncrypto acheroncrypto added the documentation Improvements or additions to documentation label Nov 17, 2023
@jacobcreech
Copy link
Copy Markdown
Collaborator

I think it was kept because there were still rent paying accounts in the network. We might remove it in the future since rent collection is being disabled

Just fyi, the last rent paying account ran out of funds and was garbage collected last Thursday, so it should be good to remove now

Copy link
Copy Markdown
Collaborator

@acheroncrypto acheroncrypto left a comment

Choose a reason for hiding this comment

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

I think playground should support multiple Anchor versions but we can merge this PR now since most of the examples already work.

Thank you!

@acheroncrypto acheroncrypto merged commit 227ccb2 into solana-foundation:master Nov 20, 2023
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants