mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-15 15:59:10 -05:00
rename all packages and other names from bisq to haveno
This commit is contained in:
parent
ab0b9e3b77
commit
1a1fb130c0
1775 changed files with 14575 additions and 16767 deletions
|
|
@ -4,10 +4,10 @@
|
|||
- [CONTRIBUTING.md](CONTRIBUTING.md) - Guidelines for contributors
|
||||
- [developer-guide.md](developer-guide.md) - Guide for developers
|
||||
- [bounties.md](bounties.md) - Rules and description of the bounty program
|
||||
- [import-haveno.md](import-haveno.md) - Instructions for importing Haveno into Eclipse IDE or IntelliJ IDEA (from Bisq)
|
||||
- [import-haveno.md](import-haveno.md) - Instructions for importing Haveno into Eclipse IDE or IntelliJ IDEA (from Haveno)
|
||||
- [trade-protocol.md](trade_protocol/trade-protocol.md) - Haveno's trade protocol
|
||||
- [data-stores.md](data-stores.md) - Instructions for updating data stores (from Bisq)
|
||||
- [tor-upgrade.md](tor-upgrade.md) - Instructions for upgrading the Tor dependencies used by Haveno (from Bisq)
|
||||
- [data-stores.md](data-stores.md) - Instructions for updating data stores (from Haveno)
|
||||
- [tor-upgrade.md](tor-upgrade.md) - Instructions for upgrading the Tor dependencies used by Haveno (from Haveno)
|
||||
- [README.md](README.md) - This file
|
||||
|
||||
Documents outside of this folder:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
With every release we include the latest snapshot of Mainnet and Testnet data from the P2P network within the client.
|
||||
|
||||
* Start your Bisq client on Mainnet and Testnet and let it run until it is fully synced.
|
||||
* Start your Haveno client on Mainnet and Testnet and let it run until it is fully synced.
|
||||
* Run [copy_dbs.sh](https://github.com/bisq-network/bisq/blob/master/desktop/package/macosx/copy_dbs.sh) to copy the
|
||||
required files into the [p2p resources directory](https://github.com/bisq-network/bisq/blob/master/p2p/src/main/resources).
|
||||
* To add a new trade statistic snapshot just add it to the list of trade statistic snapshots in https://github.com/bisq-network/bisq/blob/0345c795e2c227d827a1f239a323dda1250f4e69/common/src/main/java/bisq/common/app/Version.java#L40
|
||||
* To add a new trade statistic snapshot just add it to the list of trade statistic snapshots in https://github.com/bisq-network/bisq/blob/0345c795e2c227d827a1f239a323dda1250f4e69/common/src/main/java/haveno/common/app/Version.java#L40
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ This document is a guide for Haveno development.
|
|||
|
||||
Follow [instructions](https://github.com/haveno-dex/haveno-ts#run-in-a-browser) to run Haveno's UI proof of concept in a browser.
|
||||
|
||||
This proof of concept demonstrates using Haveno's gRPC server with a web frontend (react and typescript) instead of Bisq's JFX application.
|
||||
This proof of concept demonstrates using Haveno's gRPC server with a web frontend (react and typescript) instead of Haveno's JFX application.
|
||||
|
||||
## Importing Haveno into development environment
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ Follow [instructions](https://github.com/haveno-dex/haveno-ts#run-tests) to run
|
|||
2. Define the new service or message in Haveno's [protobuf definition](../proto/src/main/proto/grpc.proto).
|
||||
3. Clean and build Haveno after modifying the protobuf definition: `make clean && make`
|
||||
4. Implement the new service in Haveno's backend, following existing patterns.<br>
|
||||
For example, the gRPC function to get offers is implemented by [`GrpcServer`](https://github.com/haveno-dex/haveno/blob/master/daemon/src/main/java/bisq/daemon/grpc/GrpcServer.java) > [`GrpcOffersService.getOffers(...)`](https://github.com/haveno-dex/haveno/blob/b761dbfd378faf49d95090c126318b419af7926b/daemon/src/main/java/bisq/daemon/grpc/GrpcOffersService.java#L104) > [`CoreApi.getOffers(...)`](https://github.com/haveno-dex/haveno/blob/b761dbfd378faf49d95090c126318b419af7926b/core/src/main/java/bisq/core/api/CoreApi.java#L128) > [`CoreOffersService.getOffers(...)`](https://github.com/haveno-dex/haveno/blob/b761dbfd378faf49d95090c126318b419af7926b/core/src/main/java/bisq/core/api/CoreOffersService.java#L126) > [`OfferBookService.getOffers()`](https://github.com/haveno-dex/haveno/blob/b761dbfd378faf49d95090c126318b419af7926b/core/src/main/java/bisq/core/offer/OfferBookService.java#L193).
|
||||
For example, the gRPC function to get offers is implemented by [`GrpcServer`](https://github.com/haveno-dex/haveno/blob/master/daemon/src/main/java/haveno/daemon/grpc/GrpcServer.java) > [`GrpcOffersService.getOffers(...)`](https://github.com/haveno-dex/haveno/blob/b761dbfd378faf49d95090c126318b419af7926b/daemon/src/main/java/haveno/daemon/grpc/GrpcOffersService.java#L104) > [`CoreApi.getOffers(...)`](https://github.com/haveno-dex/haveno/blob/b761dbfd378faf49d95090c126318b419af7926b/core/src/main/java/haveno/core/api/CoreApi.java#L128) > [`CoreOffersService.getOffers(...)`](https://github.com/haveno-dex/haveno/blob/b761dbfd378faf49d95090c126318b419af7926b/core/src/main/java/haveno/core/api/CoreOffersService.java#L126) > [`OfferBookService.getOffers()`](https://github.com/haveno-dex/haveno/blob/b761dbfd378faf49d95090c126318b419af7926b/core/src/main/java/haveno/core/offer/OfferBookService.java#L193).
|
||||
5. Build Haveno: `make`
|
||||
6. Update the gRPC client in haveno-ts: `npm install`
|
||||
7. Add the corresponding typescript method(s) to [haveno.ts](https://github.com/haveno-dex/haveno-ts/blob/master/src/haveno.ts) with clear and concise documentation.
|
||||
|
|
|
|||
|
|
@ -28,14 +28,14 @@ You are now ready to make, run, and test changes to the Haveno project!
|
|||
|
||||
## Importing Haveno into IntelliJ IDEA
|
||||
|
||||
> Note: These instructions are outdated and for Bisq.
|
||||
> Note: These instructions are outdated and for Haveno.
|
||||
|
||||
Most Bisq contributors use IDEA for development. The following instructions have been tested on IDEA 2021.1.
|
||||
Most Haveno contributors use IDEA for development. The following instructions have been tested on IDEA 2021.1.
|
||||
|
||||
1. Follow the instructions in [build.md](build.md) to clone and build Bisq at the command line.
|
||||
1. Follow the instructions in [build.md](build.md) to clone and build Haveno at the command line.
|
||||
1. Open IDEA
|
||||
1. Go to `File -> Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors` and check the `Enable annotation processing` option to enable processing of Lombok annotations (Lombok plugin installed by default since v2020.3)
|
||||
1. Go to `File -> New -> Project from Existing Sources...` and then select the main Bisq folder to load automatically the related Gradle project
|
||||
1. Go to `File -> New -> Project from Existing Sources...` and then select the main Haveno folder to load automatically the related Gradle project
|
||||
1. If you did not yet setup JDK11 in IntelliJ, go to `File-> Project Structure -> Project` and under the `Project SDK` option locate your JDK11 folder
|
||||
1. Select JDK 11 for Gradle as well. Go to `File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle` and select the JDK11 location for the Gradle JVM value
|
||||
1. Go to `Build -> Build Project`. Everything should build cleanly
|
||||
|
|
@ -43,9 +43,9 @@ Most Bisq contributors use IDEA for development. The following instructions have
|
|||
|
||||

|
||||
|
||||
9. Now you should be able to run Bisq by clicking on the _Play_ button or via `Run -> Run 'Bisq Desktop'`
|
||||
10. If you want to debug the application and execute breakpoints, use `Run -> Debug 'Bisq Desktop'`
|
||||
9. Now you should be able to run Haveno by clicking on the _Play_ button or via `Run -> Run 'Haveno Desktop'`
|
||||
10. If you want to debug the application and execute breakpoints, use `Run -> Debug 'Haveno Desktop'`
|
||||
|
||||
> TIP: If you encounter compilation errors in IDEA related to the `protobuf.*` classes, it is probably because you didn't build Bisq at the command line as instructed above. You need to run the `generateProto` task in the `other` project. You can do this via the Gradle tool window in IDEA, or you can do it the command line with `./gradlew :other:generateProto`. Once you've done that, run `Build -> Build Project` again and you should have no errors.
|
||||
> TIP: If you encounter compilation errors in IDEA related to the `protobuf.*` classes, it is probably because you didn't build Haveno at the command line as instructed above. You need to run the `generateProto` task in the `other` project. You can do this via the Gradle tool window in IDEA, or you can do it the command line with `./gradlew :other:generateProto`. Once you've done that, run `Build -> Build Project` again and you should have no errors.
|
||||
>
|
||||
> If this does not solve the issue, try to execute `./gradlew clean` and then rebuild the project again.
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
# Tor upgrade in Bisq
|
||||
# Tor upgrade in Haveno
|
||||
|
||||
This guide describes the steps necessary to upgrade the tor dependencies used by Bisq.
|
||||
This guide describes the steps necessary to upgrade the tor dependencies used by Haveno.
|
||||
|
||||
## Background
|
||||
|
||||
Bisq uses two libraries for tor: [netlayer][1] and [tor-binary][2].
|
||||
Haveno uses two libraries for tor: [netlayer][1] and [tor-binary][2].
|
||||
|
||||
As per the project's authors, `netlayer` is _"essentially a wrapper around the official Tor releases, pre-packaged for
|
||||
easy use and convenient integration into Kotlin/Java projects"_.
|
||||
|
|
@ -12,7 +12,7 @@ easy use and convenient integration into Kotlin/Java projects"_.
|
|||
Similarly, `tor-binary` is _"[the] Tor binary packaged in a way that can be used for java projects"_. The project
|
||||
unpacks the tor browser binaries to extract and repackage the tor binaries themselves.
|
||||
|
||||
Therefore, upgrading tor in Bisq comes down to upgrading these two artefacts.
|
||||
Therefore, upgrading tor in Haveno comes down to upgrading these two artefacts.
|
||||
|
||||
|
||||
## Upgrade steps
|
||||
|
|
@ -20,8 +20,8 @@ Therefore, upgrading tor in Bisq comes down to upgrading these two artefacts.
|
|||
|
||||
### 1. Decide if upgrade necessary
|
||||
|
||||
- Find out which tor version Bisq currently uses
|
||||
- Find out the current `netlayer` version (see `netlayerVersion` in `bisq/build.gradle`)
|
||||
- Find out which tor version Haveno currently uses
|
||||
- Find out the current `netlayer` version (see `netlayerVersion` in `haveno/build.gradle`)
|
||||
- Find that release on the project's [releases page][3]
|
||||
- The release description says which tor version it includes
|
||||
- Find out the latest available tor release
|
||||
|
|
@ -96,13 +96,13 @@ git push origin 0.7.0
|
|||
```
|
||||
|
||||
|
||||
### 4. Update dependency in Bisq
|
||||
### 4. Update dependency in Haveno
|
||||
|
||||
Create a Bisq PR with the following changes:
|
||||
Create a Haveno PR with the following changes:
|
||||
|
||||
- In `bisq/build.gradle` update `netlayerVersion` to the `netlayer` commit ID from above
|
||||
- In `haveno/build.gradle` update `netlayerVersion` to the `netlayer` commit ID from above
|
||||
- Update the gradle dependency checksums
|
||||
- See instructions in `bisq/gradle/witness/gradle-witness.gradle`
|
||||
- See instructions in `haveno/gradle/witness/gradle-witness.gradle`
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue