feat(tm2/pkg): allow customizable bech32 prefix
Allow customizable bech32 prefixes.
π 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:
- Fix any issues flagged by automated checks.
- 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 CHANGEnotes. - Link related issues/PRs, where applicable.
βοΈ Reviewer Actions:
- 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 requestPending 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 requestCan 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
Codecov Report
:x: Patch coverage is 77.27273% with 5 lines in your changes missing coverage. Please review.
:loudspeaker: Thoughts on this report? Let us know!
Could you please check the CI failures so we can proceed to the next step? Thank you
Could you please check the CI failures so we can proceed to the next step? Thank you
done @notJoon
Additionally, how about adding a test case that uses
IsValidfor 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.
small ping @zivkovicmilos :)
pong?
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.