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

[Chore]: Use wrapper structs for bitcoin and stacks block height #1405

Open
2 tasks
MCJOHN974 opened this issue Feb 20, 2025 · 0 comments · May be fixed by #1448
Open
2 tasks

[Chore]: Use wrapper structs for bitcoin and stacks block height #1405

MCJOHN974 opened this issue Feb 20, 2025 · 0 comments · May be fixed by #1448
Assignees
Labels
chore good first issue Good for newcomers P3 Low Priority

Comments

@MCJOHN974
Copy link
Collaborator

Chore - Use wrapper structs for bitcoin and stacks block height

1. Description

We want to create structs like struct BitcoinBlockHeight(u64) and struct StacksBlockHeight(u64) and switch from using raw integers to using this structs

2. Why It's Necessary

It shows semantics of variable more explicitly. It can prevent some confusions and misunderstandings.

3. Execution Checklist

  • structs for bitcoin and stacks heights are implemented with all necessary functions
  • all raw integers representing stacks/bitcoin block height replaced by this structs
@MCJOHN974 MCJOHN974 added chore good first issue Good for newcomers P3 Low Priority labels Feb 20, 2025
@MCJOHN974 MCJOHN974 added this to the sBTC: Nice to have milestone Feb 20, 2025
@MCJOHN974 MCJOHN974 added this to sBTC Feb 20, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in sBTC Feb 20, 2025
@MCJOHN974 MCJOHN974 self-assigned this Feb 26, 2025
@MCJOHN974 MCJOHN974 moved this from Needs Triage to In Progress in sBTC Feb 26, 2025
@MCJOHN974 MCJOHN974 linked a pull request Feb 28, 2025 that will close this issue
4 tasks
@djordon djordon moved this from In Progress to In Review in sBTC Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore good first issue Good for newcomers P3 Low Priority
Projects
Status: In Review
Development

Successfully merging a pull request may close this issue.

1 participant