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

Caravan Health Package #112

Merged
merged 93 commits into from
Aug 30, 2024
Merged

Conversation

Harshil-Jani
Copy link
Contributor

@Harshil-Jani Harshil-Jani commented Jul 3, 2024

TODO :

  • Discuss if we really want a standalone app or can we integrate it into the existing coordinator.
  • Complete all the bitcoind or block explorer client related configurations. (I would need to use lots of caravan-bitcoin functionalities)
  • Finalize the frontend design
  • Take a decision of showing Z-Score.
  • Writing a blog and linking it at top of the package so people don't get confused on math.

Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Copy link

changeset-bot bot commented Jul 3, 2024

🦋 Changeset detected

Latest commit: b07b5a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@caravan/bitcoin Minor
@caravan/clients Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jul 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
caravan-coordinator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 7:59pm

@bucko13
Copy link
Contributor

bucko13 commented Jul 3, 2024

Finalize the frontend design

Let's separate this work from the frontend work. I think formalizing the "backend" functions can be merged in without having the UI fully formalized.

Complete all the bitcoind or block explorer client related configurations. (I would need to use lots of caravan-bitcoin functionalities)

Take a look at the @caravan/clients package. The older client stuff is deprecated (we should probably add a notice for that...), and clients has more up to date functionality as well as some interfaces to generalize operations a bit more.

Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Copy link
Contributor

@bucko13 bucko13 left a comment

Choose a reason for hiding this comment

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

Looking good! left some comments and questions. Biggest thing though is that I'd like better typescript support before anything is merged.

packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/feescore.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/feescore.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/feescore.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/feescore.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
…inability

Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
@@ -172,6 +194,24 @@ export class BlockchainClient extends ClientBase {
}
}

public async getAddressTransactions(address: string): Promise<any> {
Copy link
Contributor

Choose a reason for hiding this comment

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

can this be typed? ideally use the unified client to standardize the return type

packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/privacy.ts Outdated Show resolved Hide resolved
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Co-authored-by: buck <buck.perley@protonmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
- Consolidation (more than 1 input, 1 output)
- CoinJoin or Mixing (more than 1 input, more than 1 output)
*/
getTopologyScore(transaction: Transaction): number {
Copy link
Contributor

Choose a reason for hiding this comment

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

This could also be used in the preview transaction view right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, We can give some degree that how it will behave privacy wise if this previewed transaction is actually made.

Copy link
Contributor

@bucko13 bucko13 left a comment

Choose a reason for hiding this comment

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

Couple final nits.

packages/caravan-health/src/utility.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/waste.ts Outdated Show resolved Hide resolved
packages/caravan-health/src/waste.ts Show resolved Hide resolved
packages/caravan-health/src/waste.ts Show resolved Hide resolved
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Harshil-Jani and others added 3 commits August 30, 2024 02:53
Co-authored-by: buck <buck.perley@protonmail.com>
Co-authored-by: buck <buck.perley@protonmail.com>
Co-authored-by: buck <buck.perley@protonmail.com>
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
Copy link
Contributor

@bucko13 bucko13 left a comment

Choose a reason for hiding this comment

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

This looks good to me!

@bucko13 bucko13 merged commit 7cf2bf4 into caravan-bitcoin:main Aug 30, 2024
3 checks passed
@github-actions github-actions bot mentioned this pull request Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants