Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

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

Closed
wuuer wants to merge 17 commits into
solana-foundation:mainfrom
wuuer:wuuer
Closed

fix and improve token-program.md,token-program-advance.md and close-mint.md#342
wuuer wants to merge 17 commits into
solana-foundation:mainfrom
wuuer:wuuer

Conversation

@wuuer

@wuuer wuuer commented Aug 24, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

wuuer commented Aug 26, 2024

Copy link
Copy Markdown
Contributor Author

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

@mikemaccana mikemaccana left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread content/courses/tokens-and-nfts/token-program-advanced.md Outdated
Comment thread content/courses/tokens-and-nfts/token-program-advanced.md Outdated
Comment thread content/courses/tokens-and-nfts/token-program.md Outdated

@mikemaccana mikemaccana left a comment

Copy link
Copy Markdown
Contributor

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

wuuer commented Sep 27, 2024

Copy link
Copy Markdown
Contributor Author

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

@mikemaccana Okay.

@mikemaccana

Copy link
Copy Markdown
Contributor

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

@wuuer

wuuer commented Oct 3, 2024

Copy link
Copy Markdown
Contributor Author

@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

wuuer commented Oct 3, 2024

Copy link
Copy Markdown
Contributor Author

@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)

@github-actions

github-actions Bot commented Dec 3, 2024

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants