Skip to content

feat(examples): add /{r:p}/pol/ packages #4071

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

Draft
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

paulogarithm
Copy link

@paulogarithm paulogarithm commented Apr 7, 2025

This PR adds the following

Features

realms:

  • r/pol/gnominers game
    • includes releases
    • includes DAO features (from p/pol/dao, see bellow)
    • include various of user/system libraries (md, txlink, users, ownables, hof, ufmt...)
  • r/pol/home page
    • showcase a simple dao example
    • includes latest release of gnominers game

pure:

  • p/pol/dao package
    • this is my own implementation of daos
    • it also have a simple example at p/pol/dao/simple
    • and a real example in the home (see above)
  • p/pol/notrandom package
    • because the actual math/rand have issues, i created a false random package
    • it will be removed in the future
  • p/pol/nfmt package
    • used to format big numbers
    • for example 3586188 will be 3.58M
  • p/pol/unsafe package
    • i tried to reimplement some usefull unsafe function (sizeof, tobits)
    • it's not recommanded to use it, since it is hardcoded for 64 bits systems

* includes gnominers
* includes home
* include pure packages
@github-actions github-actions bot added the 🧾 package/realm Tag used for new Realms or Packages. label Apr 7, 2025
@paulogarithm paulogarithm changed the title feat(examples): add 'pol' example page feat(examples): add /{r:p}/pol/ packages Apr 7, 2025
@Gno2D2 Gno2D2 requested a review from a team April 7, 2025 16:49
@Gno2D2
Copy link
Collaborator

Gno2D2 commented Apr 7, 2025

🛠 PR Checks Summary

🔴 Maintainers must be able to edit this pull request (more info)
🔴 Pending initial approval by a review team member, or review from tech-staff

Manual Checks (for Reviewers):
  • IGNORE the bot requirements for this PR (force green CI check)
  • The pull request description provides enough details
Read More

🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers.

✅ Automated Checks (for Contributors):

🔴 Maintainers must be able to edit this pull request (more info)
🔴 Pending initial approval by a review team member, or review from tech-staff

☑️ Contributor Actions:
  1. Fix any issues flagged by automated checks.
  2. Follow the Contributor Checklist to ensure your PR is ready for review.
    • Add new tests, or document why they are unnecessary.
    • Provide clear examples/screenshots, if necessary.
    • Update documentation, if required.
    • Ensure no breaking changes, or include BREAKING CHANGE notes.
    • Link related issues/PRs, where applicable.
☑️ Reviewer Actions:
  1. Complete manual checks for the PR, including the guidelines and additional checks if applicable.
📚 Resources:
Debug
Automated Checks
Maintainers must be able to edit this pull request (more info)

If

🟢 Condition met
└── 🟢 And
    ├── 🟢 The base branch matches this pattern: ^master$
    └── 🟢 The pull request was created from a fork (head branch repo: paulogarithm/gno)

Then

🔴 Requirement not satisfied
└── 🔴 Maintainer can modify this pull request

Pending initial approval by a review team member, or review from tech-staff

If

🟢 Condition met
└── 🟢 And
    ├── 🟢 The base branch matches this pattern: ^master$
    └── 🟢 Not (🔴 Pull request author is a member of the team: tech-staff)

Then

🔴 Requirement not satisfied
└── 🔴 If
    ├── 🟢 Condition
    │   └── 🟢 Or
    │       ├── 🔴 At least 1 user(s) of the organization reviewed the pull request (with state "APPROVED")
    │       ├── 🔴 At least 1 user(s) of the team tech-staff reviewed pull request
    │       └── 🟢 This pull request is a draft
    └── 🔴 Then
        └── 🔴 And
            ├── 🟢 Not (🔴 This label is applied to pull request: review/triage-pending)
            └── 🔴 At least 1 user(s) of the team tech-staff reviewed pull request

Manual Checks
**IGNORE** the bot requirements for this PR (force green CI check)

If

🟢 Condition met
└── 🟢 On every pull request

Can be checked by

  • Any user with comment edit permission
The pull request description provides enough details

If

🟢 Condition met
└── 🟢 And
    ├── 🟢 Not (🔴 Pull request author is a member of the team: core-contributors)
    └── 🟢 Not (🔴 Pull request author is user: dependabot[bot])

Can be checked by

  • team core-contributors

paulogarithm and others added 5 commits April 7, 2025 18:56
* reorganise gnominers into submodules
* create the dao submodule
* add the tofix folder with all broken features
* create the minerdao

/!\ DAO DOESNT WORK RN BECAUSE OF CYCLE DEPENDANCIES /!\
* i didnt use subfolders
@paulogarithm
Copy link
Author

in the previous commits, i tried to implement my own dao into the gnominers game. (it worked)

now, i need to make a better version to make requests using the UI, so i will make a request generator.

paulogarithm and others added 7 commits April 8, 2025 17:24
* add precisision flag ("%.2f")
* add 0 & ' ' flags ("%03d", "% 3d")
* add length parsing (not used rn)
* add # for hex ("%#02x")
* add %i & %X (%i is just %d, %X is big hex)
* change the home
* ass some tests to handle what ive done
* also changed my home page so it displays a number
Format -> FormatRound

because it rounds...
@paulogarithm
Copy link
Author

in the latest commits, i also changed the well demo/ufmt to add some flag parsing (not all of them) such as 0 and ' ' for ints and hexs, .number for float precision, # for hex strings...

@github-actions github-actions bot added the 📦 🤖 gnovm Issues or PRs gnovm related label Apr 11, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

I would separate this out into a fresh PR :)

Copy link
Author

Choose a reason for hiding this comment

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

alright i will do it 🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related 🧾 package/realm Tag used for new Realms or Packages.
Projects
Status: No status
Status: In Progress
Status: Triage
Development

Successfully merging this pull request may close these issues.

3 participants