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

faucet realm package #372

Closed
wants to merge 0 commits into from
Closed

faucet realm package #372

wants to merge 0 commits into from

Conversation

piux2
Copy link
Contributor

@piux2 piux2 commented Oct 26, 2022

The code is to complete the example. We don't need to load it when starting test3 gnoland. We will deploy the contract separately since it requires a large amount of deposit to fund the faucet when deploying the contract.

@piux2
Copy link
Contributor Author

piux2 commented Oct 26, 2022

#361
#364

@moul moul marked this pull request as draft October 28, 2022 01:43
gInPause = false
gMessage = "# Community Faucet.\n\n"
gAdminAddr std.Address = "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5"
gControllers [3]std.Address = [3]std.Address{} // limit it to 3
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
gControllers [3]std.Address = [3]std.Address{} // limit it to 3
gControllers []std.Address = []std.Address{}

why a limit of 3?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. I think we should always use an array instead of a slice to limit resource usage to avoid abuse.

  2. We can set the number to 100 if necessary. I think three faucet bot controllers are good enough for now, and we can replace each one of these controllers with provided API.

Copy link
Member

Choose a reason for hiding this comment

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

I see your point, and it's a good idea to show good practices.

Let's update the limit to 10.

Suggested change
gControllers [3]std.Address = [3]std.Address{} // limit it to 3
gControllers [10]std.Address = [10]std.Address{} // limit it to 10

@piux2 piux2 marked this pull request as ready for review October 31, 2022 18:10
@moul moul added this to the 🏗4️⃣ test4.gno.land (next) milestone Nov 9, 2022
@moul
Copy link
Member

moul commented Nov 21, 2022

Hey @piux2,

Can you:

  • remove the conflicts
  • move the realm to this new location: examples/gno.land/r/gnoland/faucet please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants