Skip to content

Commit

Permalink
multi: rename last instances of drivechain-server to bitwindow
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Oct 31, 2024
1 parent f13f6fe commit 7fb7c93
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- uses: extractions/setup-just@v1
# Setup go for building drivechain-server
# Setup go for building bitwindowd
- uses: actions/setup-go@v5
with:
go-version: "1.23"
Expand Down
12 changes: 6 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"type": "dart",
"toolArgs": [
"--dart-define",
"DRIVECHAIN_HOST=localhost",
"BITWINDOWD_HOST=localhost",
"--dart-define",
"DRIVECHAIN_PORT=8080"
"BITWINDOWD_PORT=8080"
]
},
{
Expand All @@ -24,9 +24,9 @@
"flutterMode": "profile",
"toolArgs": [
"--dart-define",
"DRIVECHAIN_HOST=localhost",
"BITWINDOWD_HOST=localhost",
"--dart-define",
"DRIVECHAIN_PORT=8080"
"BITWINDOWD_PORT=8080"
]
},
{
Expand All @@ -37,9 +37,9 @@
"flutterMode": "release",
"toolArgs": [
"--dart-define",
"DRIVECHAIN_HOST=localhost",
"BITWINDOWD_HOST=localhost",
"--dart-define",
"DRIVECHAIN_PORT=8080"
"BITWINDOWD_PORT=8080"
]
},
{
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
A collection of various Drivechain-related applications.

- [SideSail](packages/sidesail/README.md)
- [Faucet frontend](packages/faucet/README.md)
- [Faucet backend](faucet-backend/README.md)
- [Drivechain server](drivechain-server/README.md)
- [SideSail](clients/sidesail/README.md)

- [Faucet frontend](clients/faucet/README.md)
- [Faucet server](servers/faucet/README.md)

- [Bitwindow frontend](clients/bitwindow/README.md)
- [Bitwindow server](servers/bitwindow/README.md)
2 changes: 1 addition & 1 deletion clients/bitwindow/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ format:
find . -name "*.dart" -not -path "./lib/gen/*" | xargs dart format -l 120

gen:
buf generate ../../drivechain-server
buf generate ../../bitwindow

gen-enforcer:
buf generate --template buf.gen.yaml https://github.com/LayerTwo-Labs/cusf_sidechain_proto.git
6 changes: 3 additions & 3 deletions clients/bitwindow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ This package contains a frontend for interacting with a Drivechain-enabled layer
To get the app(s) up and running, make sure you have the following dependencies:

* The [Flutter SDK](https://flutter.dev)
* An instance of [drivechain-server](../../drivechain-server) running
* The `DRIVECHAIN_HOST` and `DRIVECHAIN_PORT` environment variable pointing to the above instance
* An instance of [bitwindowd](../../servers/bitwindow) running
* The `BITWINDOWD_HOST` and `BITWINDOWD_PORT` environment variable pointing to the above instance
* A BIP 300/301 enabled node running

Running the app is as simple as the following command:

```bash
flutter run --dart-define DRIVECHAIN_HOST=localhost --dart-define DRIVECHAIN_PORT=8080
flutter run --dart-define BITWINDOWD_HOST=localhost --dart-define BITWINDOWD_PORT=8080
```

The project is set up with launch configurations for Visual Studio Code as well.
14 changes: 7 additions & 7 deletions clients/bitwindow/scripts/download-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,24 @@ fi
echo Going back to $old_cwd
cd $old_cwd

cd ../../drivechain-server
cd ../../servers/bitwindow
server_cwd=$(pwd)

# Build bdk-cli and drivechain-server
echo "Building bdk-cli and drivechain-server in $server_cwd"
# Build bdk-cli and bitwindowd
echo "Building bdk-cli and bitwindowd in $server_cwd"

# Build bdk-cli
echo "Building bdk-cli"
just build-bdk-cli

# Build drivechain-server
echo "Building drivechain-server"
# Build bitwindowd
echo "Building bitwindowd"
just build-go

# Move the necessary binaries to the assets directory
mv bin/drivechain-server $assets_dir/
mv bin/bitwindowd $assets_dir/

echo "drivechain-server with embedded bdk-cli have been built and moved to $assets_dir"
echo "bitwindowd with embedded bdk-cli have been built and moved to $assets_dir"

echo Going back to $old_cwd
cd $old_cwd

0 comments on commit 7fb7c93

Please sign in to comment.