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

fix and improve token-program.md,token-program-advance.md and close-mint.md #342

Closed
wants to merge 17 commits into from

Conversation

wuuer
Copy link
Contributor

@wuuer wuuer commented Aug 24, 2024

Problem

token-program.md

no try/catch for async/await calls, which is not following CONTRIBUTING.md.
[Token Extensions Program] link is wrong.
[add a second account on devnet] link is wrong.
wrong ts command in the section [Create an Associated Token Account to store the tokens].
console.log displays a wrong explorer link due to "!".

token-program-advance.md

[creating NFTs with Metaplex] link is wrong.
[previous chapter] link is wrong.
[Transfering Tokens] link is wrong.
The import @solana/web3.js statements in the section Brun Tokens are wrong.
The return value type "web3.Transaction" is wrong in the section Brun Tokens.
Missing delegate account for demonstration for the section Delegating tokens.
A wrong argument passes to calling the revoke function in the typescript for Revoke Delegate.
Missing some instructions for Delegating tokens, Revoke Delegate, and Burn Tokens.

close-mint.md

TERMINOLOGY "mint" is not proper in the context "In this lab, we'll create a mint with the close mint extension.".
missing typescript code example for using an account on devnet while calling "initializeKeypair" in the section [2. Run validator node]
missing typescript code example for importing our
new function in the section [3. Create a mint with close authority]
"mintInfo" is redeclared in the typescript.

Summary of Changes

token-program.md

add try/catch for async/await calls following CONTRIBUTING.md.
delete unnecessary "!" for generating a wrong explorer link.
add some missing instructions.
fix a wrong ts command for the section [Create an Associated Token Account to store the tokens].

token-program-advance.md

Delete "web3." for "web3.Transaction" in the section Brun Tokens.
Using the system program as the delegate in the typescript of Delegating tokens.
Add some instructions for Delegating tokens, Revoke Delegate, and Burn Tokens.
Fix [creating NFTs with Metaplex] link.
Fix [previous chapter] link.
Fix [Transferring Tokens] link.
Fix the import @solana/web3.js statements in the section Brun Tokens.
Fix a wrong argument passed to calling the revoke function in the typescript for Revoke Delegate.

close-mint.md

change "mint" to "token mint account".
add a typescript code example for using an account on devnet while calling "initializeKeypair" in the section [2. Run validator node]
add a typescript code example for importing our new function in the section [3. Create a mint with close authority]
change "const mintInfo" to "let mintInfo" because "mintInfo" is used again in the "CLOSE MINT" code part.

Jeff Wood added 4 commits August 24, 2024 03:12
@wuuer wuuer requested a review from nickfrosty as a code owner August 24, 2024 10:00
@wuuer wuuer closed this Aug 24, 2024
@wuuer wuuer reopened this Aug 24, 2024
wuuer added 2 commits August 24, 2024 18:59
Using the system program as the delegate in the typescript of Delegating tokens.
Add some instructions for Delegating tokens, Revoke Delegate, and Burn Tokens.
Fix [creating NFTs with Metaplex] link.
Fix [previous chapter] link.
Fix [Transferring Tokens] link.
Fix the import @solana/web3.js statements in the section Brun Tokens.
Fix a wrong argument passed to calling the revoke function in the typescript for Revoke Delegate.
@wuuer wuuer changed the title fix and improve token-program.md fix and improve token-program.md and token-program-advance.md Aug 25, 2024
@mikemaccana
Copy link
Contributor

Thanks @wuuer ! Just double checking - is this for the superteam lesson updates bounty?

add a typescript code example for using an account on devnet while calling "initializeKeypair" in the section [2. Run validator node]
add a typescript code example for importing our
new function in the section [3. Create a mint with close authority]
change "const mintInfo" to "let mintInfo" because "mintInfo" is used again in "CLOSE MINT".
@wuuer
Copy link
Contributor Author

wuuer commented Aug 26, 2024

Thanks @wuuer ! Just double checking - is this for the superteam lesson updates bounty?

Yes.

@wuuer wuuer changed the title fix and improve token-program.md and token-program-advance.md fix and improve token-program.md,token-program-advance.md and close-mint.md Aug 26, 2024
Copy link
Contributor

@mikemaccana mikemaccana left a comment

Choose a reason for hiding this comment

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

Thanks @wuuer this is a really comprehensive set of fixes.

content/courses/tokens-and-nfts/token-program-advanced.md Outdated Show resolved Hide resolved
content/courses/tokens-and-nfts/token-program-advanced.md Outdated Show resolved Hide resolved
content/courses/tokens-and-nfts/token-program.md Outdated Show resolved Hide resolved
Copy link
Contributor

@mikemaccana mikemaccana left a comment

Choose a reason for hiding this comment

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

Hi @wuuer! Just a reminder to get the unboxed repos updated as discussed.

@wuuer
Copy link
Contributor Author

wuuer commented Sep 27, 2024

Hi @wuuer! Just a reminder to get the unboxed repos updated as discussed.

@mikemaccana Okay.

@mikemaccana
Copy link
Contributor

@wuuer one more reminder! You have a good chance of winning this one if you get the other repos updated.

@wuuer
Copy link
Contributor Author

wuuer commented Oct 3, 2024

@wuuer one more reminder! You have a good chance of winning this one if you get the other repos updated.

token and nfts

token-program

token extensions

close-mint

@wuuer
Copy link
Contributor Author

wuuer commented Oct 3, 2024

@wuuer one more reminder! You have a good chance of winning this one if you get the other repos updated.

@mikemaccana

token and nfts

token-program

token extensions

close-mint

All of PRs are splited out:

#372 (comment)

Copy link

github-actions bot commented Dec 3, 2024

This pull request has been automatically marked as stale because it has not had recent activity. Remove stale label or comment or this will be closed in 7 days.

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

Successfully merging this pull request may close these issues.

3 participants