gno icon indicating copy to clipboard operation
gno copied to clipboard

feat(tm2/pkg): allow customizable bech32 prefix

Open julienrbrt opened this issue 1 month ago β€’ 8 comments

Allow customizable bech32 prefixes.

julienrbrt avatar Nov 01 '25 18:11 julienrbrt

πŸ›  PR Checks Summary

πŸ”΄ Maintainers must be able to edit this pull request (more info)

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: allinbits/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 satisfied
└── 🟒 If
    β”œβ”€β”€ 🟒 Condition
    β”‚   └── 🟒 Or
    β”‚       β”œβ”€β”€ 🟒 User notJoon already reviewed PR 4873 with state APPROVED
    β”‚       β”œβ”€β”€ 🟒 At least 1 user(s) of the team tech-staff reviewed pull request
    β”‚       └── πŸ”΄ This pull request is a draft
    └── 🟒 Then
        └── 🟒 Not (πŸ”΄ This label is applied to pull request: review/triage-pending)

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

Gno2D2 avatar Nov 01 '25 18:11 Gno2D2

Could you please check the CI failures so we can proceed to the next step? Thank you

notJoon avatar Nov 03 '25 09:11 notJoon

Could you please check the CI failures so we can proceed to the next step? Thank you

done @notJoon

julienrbrt avatar Nov 03 '25 19:11 julienrbrt

Additionally, how about adding a test case that uses IsValid for addresses with custom prefixes?

We could, but that is somewhat annoying because if you modify the prefix it modifies is across all tests. So this test would need to run alone in a different go test.

julienrbrt avatar Nov 06 '25 08:11 julienrbrt

small ping @zivkovicmilos :)

julienrbrt avatar Nov 13 '25 19:11 julienrbrt

pong?

julienrbrt avatar Nov 21 '25 22:11 julienrbrt

While @notJoon’s point is valid, there’s a distinction. This PR allows for configuring a custom local prefix for a chain whereas #4008 concerns validating an β€œan” address which could be external. Therefore, I think that we should proceed with this one.

moul avatar Nov 28 '25 20:11 moul