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 "Your Firsts" Example #14

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Add "Your Firsts" Example #14

merged 2 commits into from
Jun 14, 2024

Conversation

h0ngcha0
Copy link
Member

@h0ngcha0 h0ngcha0 commented Jun 13, 2024

  • First transactions (transfer ALPH & token)
  • First fungible tokens
  • First non-fungible tokens

To be used in the doc.

@h0ngcha0 h0ngcha0 requested review from polarker and Lbqds June 13, 2024 14:41
const signer = await testNodeWallet()
const issueTokenAmount = 10000n
// Deoloy `ShinyToken` contract and issue `10000` shiny tokens to `issueTokenTo` address.
const shinyToken = await ShinyToken.deploy(signer, {
Copy link
Member

Choose a reason for hiding this comment

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

It might be confusing to educate new developers on deploying contracts using two different methods:

  1. Raw approach: ShinyToken.deploy(...)
  2. Using deploy scripts: deployer.deployContract(...)

But I don't have a better solution here.

Copy link
Member Author

Choose a reason for hiding this comment

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

If we had to pick one maybe deployer.deployContract is better? Since it is probably what's gonna be used in production.

Copy link
Member Author

@h0ngcha0 h0ngcha0 Jun 13, 2024

Choose a reason for hiding this comment

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

But i tried to avoid deployment scripts in the example, since it is another concept. Same for the AwesomeNFT template id, it feels a lot easier that everything happens in one ts file.
WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

Let's keep it this way for now, I don't have any better ideas.

Copy link
Member

@Lbqds Lbqds left a comment

Choose a reason for hiding this comment

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

LGTM 👍 , only one miner comment


## Compile

Compile the TypeScript files into JavaScript:
Copy link
Member

Choose a reason for hiding this comment

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

Should it be Compile the contract files?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch, thanks!

@polarker polarker merged commit ba937f7 into master Jun 14, 2024
1 check passed
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.

3 participants