Skip to content

Commit

Permalink
Milestone version
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightKrystian committed Mar 22, 2024
1 parent bcc8ff2 commit ea534d8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -11,4 +11,6 @@ target/

.DS_Store
scripts/docker/
scripts/addresses.json
scripts/addresses.json

.idea/
3 changes: 3 additions & 0 deletions .gitmodules
@@ -1,3 +1,6 @@
[submodule "aleph-node"]
path = aleph-node
url = git@github.com:bright/aleph-node.git
[submodule "ui"]
path = ui
url = git@github.com:bright/bright-disputes-showcase.git
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -50,6 +50,9 @@ bash scripts/deploy.sh

Please note, that this script is based on the [deploy.sh](https://github.com/Cardinal-Cryptography/zk-apps/blob/main/shielder/deploy/deploy.sh) created by the Cardinal-Cryptography.

## Running UI
To run a UI, please follow the instructions from the [README](./ui/README.md) file in ui folder.

## Tests
To run a unit test:
```
Expand Down
13 changes: 13 additions & 0 deletions scripts/deploy.sh
Expand Up @@ -221,6 +221,16 @@ generate_ink_types() {
log_progress "✅ Ink types were generated"
}

ui_setup() {
cd "${SCRIPT_DIR}"/..

(for v in "OWNER" "OWNER_PUBKEY" "DEFENDANT" "DEFENDANT_PUBKEY" "JUROR_1" "JUROR_1_PUBKEY" "JUROR_2" "JUROR_2_PUBKEY" "JUROR_3" "JUROR_3_PUBKEY" "JUROR_4" "JUROR_4_PUBKEY" "JUROR_5" "JUROR_5_PUBKEY" "JUROR_6" "JUROR_6_PUBKEY" "JUROR_7" "JUROR_7_PUBKEY"; do
echo "$v=${!v}"
done) > ./ui/.env

log_progress "✅ .env file for the showcase app generated"
}

# ------------------------------------------------------------------------------------------------------

deploy() {
Expand Down Expand Up @@ -256,6 +266,9 @@ deploy() {
# build cli
build_cli

# showcase app setup
ui_setup

log_progress "🙌 Deployment successful"
}

Expand Down
1 change: 1 addition & 0 deletions ui
Submodule ui added at 9cb557

0 comments on commit ea534d8

Please sign in to comment.