Skip to content

chore: upgrade wallet-lib to v2.5.1#222

Merged
r4mmer merged 38 commits intomasterfrom
feat/upgrade-wallet-lib-v2.1.1
Jul 17, 2025
Merged

chore: upgrade wallet-lib to v2.5.1#222
r4mmer merged 38 commits intomasterfrom
feat/upgrade-wallet-lib-v2.1.1

Conversation

@r4mmer
Copy link
Copy Markdown
Member

@r4mmer r4mmer commented Mar 25, 2025

Acceptance Criteria

  • Upgrade wallet-lib version to 2.5.1

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged
  • Make sure either the unit tests and/or the QA tests are capable of testing the new features
  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@r4mmer r4mmer self-assigned this Mar 25, 2025
@r4mmer r4mmer moved this from Todo to In Progress (WIP) in Hathor Network Mar 25, 2025
r4mmer added 25 commits March 25, 2025 13:32
…-lib-v2.1.1

* origin/master:
  fix: io decoded handling (#229)
  chore: bump version v1.8.0 (#226)
  fix: nft utils should be imported from common index (#223)
  fix: daemon was always using ssl regardless of config (#224)
…-lib-v2.1.1

* origin/master:
  chore: update lock file
  chore: bump wallet-lib v1.15.0
…-lib-v2.1.1

* origin/master:
  feat: error handler middleware (#234)
…-lib-v2.1.1

* origin/master:
  chore: better eslint (#228)
…-lib-v2.1.1

* origin/master:
  chore: bump v1.8.2 (#237)
  chore: bump v1.8.1
@r4mmer r4mmer moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Apr 11, 2025
r4mmer added 2 commits July 3, 2025 12:14
…-lib-v2.1.1

* origin/master:
  chore: bumped to v1.9.0 (#259)
  chore: nano-testnet-hackaton (#243)
  fix: address invalid parameter (#235)
  chore: added htr token seed (#256)
  fix: invalid assert in release tx proposal utxos (#251)
  fix: we should await mark utxos with proposal id to prevent a race condition (#250)
  Merge pull request #248 from HathorNetwork/feat/version-camel-case
  fix: v1.8.2-rc.3 qa issues (#246)
  fix: firebase env variables should be optional (#245)
  chore: remove error handler middleware from authorization lambda (#242)
  feat: version data validation (#241)
  fix: Mainnet release script (#203)
@r4mmer r4mmer moved this from In Progress (Done) to In Progress (WIP) in Hathor Network Jul 3, 2025
@r4mmer r4mmer changed the title chore: upgrade wallet-lib to v2.1.1 chore: upgrade wallet-lib to v2.5.1 Jul 3, 2025
@r4mmer r4mmer moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Jul 3, 2025
Comment thread packages/daemon/src/utils/cache.ts
Comment thread packages/wallet-service/tests/utils/pushnotification.utils.test.ts Outdated
Comment thread packages/daemon/src/actors/WebSocketActor.ts Outdated

export interface EventTxOutput {
value: number;
value: bigint;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this a full node event? Does the value come as string?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You are correct, I was changing instances of value to bigint and did not consider how the data is generated.
This comes from the reliable integration, so it is a json event from a fullnode websocket, maybe we should create zod schemas to parse and validate the event data.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense to do it in another PR. Can you create an issue so we can track this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Created the issue #266 to track this

Comment on lines +155 to +157
function abs(num: bigint) {
return num >= 0n ? num : -num;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You had to create this method twice already. Maybe we could have a util bigIntAbs for this. What do you think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I did create 2 instances of this method, but both of these were inside a sortBalanceValueByAbsTotal which is a method that is duplicated on the wallet-service and daemon packages.

This issue is because some utilities should be moved to the common package to avoid duplicating code.
So I think we should move the sortBalanceValueByAbsTotal instead of the internal abs and this seems a little outside the scope of this PR which is already huge.

What do you think?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree. Can you create an issue in this repo with this discussion so we can improve this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Created issue

Comment thread packages/wallet-service/src/db/index.ts Outdated
Comment thread packages/wallet-service/src/types.ts
Comment thread packages/wallet-service/src/types.ts
@r4mmer r4mmer moved this from In Progress (Done) to In Review (Done) in Hathor Network Jul 15, 2025
@r4mmer r4mmer moved this from In Review (Done) to In Progress (Done) in Hathor Network Jul 16, 2025
@r4mmer r4mmer requested a review from andreabadesso July 17, 2025 16:36
@r4mmer r4mmer moved this from In Progress (Done) to In Review (WIP) in Hathor Network Jul 17, 2025
@andreabadesso andreabadesso moved this from In Review (WIP) to Waiting to be deployed in Hathor Network Jul 17, 2025
@andreabadesso andreabadesso moved this from Waiting to be deployed to In Review (Done) in Hathor Network Jul 17, 2025
@r4mmer r4mmer merged commit 0f15833 into master Jul 17, 2025
1 check passed
@github-project-automation github-project-automation Bot moved this from In Review (Done) to Waiting to be deployed in Hathor Network Jul 17, 2025
@r4mmer r4mmer deleted the feat/upgrade-wallet-lib-v2.1.1 branch July 17, 2025 18:50
r4mmer added a commit that referenced this pull request Jul 18, 2025
…ntract-tx

* origin/master:
  chore: upgrade wallet-lib to v2.5.1 (#222)
@r4mmer r4mmer moved this from Waiting to be deployed to Done in Hathor Network Aug 21, 2025
This was referenced Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants