Skip to content

Commit

Permalink
chore: rename to holoom and add readme (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
8e8b2c authored Apr 29, 2024
1 parent 7a79b9d commit 5620e2d
Show file tree
Hide file tree
Showing 70 changed files with 306 additions and 285 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: game-identity-dna-${{ hashFiles('**/Cargo.lock') }}
key: holoom-dna-${{ hashFiles('**/Cargo.lock') }}
- name: Build DNA
run: |
nix develop --command \
Expand All @@ -52,13 +52,13 @@ jobs:
docker run -i \
-v "$(pwd):/proj" \
-w /proj rocket-builder bash -c \
"cargo build --release --package game_identity_rocket_server"
"cargo build --release --package holoom_rocket_server"
- run: ls -l target
# - run: ls -l target/release
- run: whoami
- run: sudo chown -R $(whoami) target
- name: Ready artifact dir
run: mkdir artifact && mv target/release/game_identity_rocket_server artifact/
run: mkdir artifact && mv target/release/holoom_rocket_server artifact/
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: game-identity-dna-tests-${{ hashFiles('**/Cargo.lock') }}
key: holoom-dna-tests-${{ hashFiles('**/Cargo.lock') }}
- run: rm -rf workdir
- name: Download DNA
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -124,13 +124,13 @@ jobs:
with:
name: rocket
path: rocket-artifact
- run: mv rocket-artifact/game_identity_rocket_server docker/rocket/
- run: mv rocket-artifact/holoom_rocket_server docker/rocket/
- name: Build images
run: |
docker build --target local-services -t game-identity/local-services docker/misc_hc
docker build --target authority-agent-sandbox -t game-identity/authority-agent-sandbox docker/misc_hc
docker build --target holo-dev-server -t game-identity/holo-dev-server docker/misc_hc
docker build -t game-identity/rocket docker/rocket
docker build --target local-services -t holoom/local-services docker/misc_hc
docker build --target authority-agent-sandbox -t holoom/authority-agent-sandbox docker/misc_hc
docker build --target holo-dev-server -t holoom/holo-dev-server docker/misc_hc
docker build -t holoom/rocket docker/rocket
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand All @@ -145,6 +145,6 @@ jobs:
- run: npx puppeteer browsers install chrome
- run: npm run build:client
- name: Start frontend in background
run: npm run dev -w @holochain-game-identity/e2e &
run: npm run dev -w @holoom/e2e &
- name: Run e2e tests
run: npm run test -w @holochain-game-identity/e2e
run: npm run test -w @holoom/e2e
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ node_modules
dist

docker/misc_hc/happ_workdir
docker/rocket/game_identity_rocket_server
docker/rocket/holoom_rocket_server
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"cSpell.words": ["Dalek", "Holochain", "pubkey", "Solana", "zome", "zomes"]
"cSpell.words": [
"Dalek",
"Holochain",
"Holoom",
"pubkey",
"Solana",
"zome",
"zomes"
]
}
166 changes: 83 additions & 83 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ holochain_zome_types = "0.2.6"
rocket = "0.5.0"
rocket_okapi = { version = "0.8.0", features = ["swagger"] }

[workspace.dependencies.game_identity_types]
path = "crates/game_identity_types"
[workspace.dependencies.holoom_types]
path = "crates/holoom_types"

[workspace.dependencies.username_registry_validation]
path = "crates/username_registry_validation"
Expand All @@ -43,11 +43,11 @@ path = "crates/username_registry_coordinator"
[workspace.dependencies.signer_coordinator]
path = "crates/signer_coordinator"

[workspace.dependencies.game_identity_rocket_types]
path = "crates/game_identity_rocket_types"
[workspace.dependencies.holoom_rocket_types]
path = "crates/holoom_rocket_types"

[workspace.dependencies.game_identity_rocket_state]
path = "crates/game_identity_rocket_state"
[workspace.dependencies.holoom_rocket_state]
path = "crates/holoom_rocket_state"

[workspace.dependencies.game_identity_rocket_controllers]
path = "crates/game_identity_rocket_controllers"
[workspace.dependencies.holoom_rocket_controllers]
path = "crates/holoom_rocket_controllers"
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Holoom

Tools for weaving blockchain data into holochain.

## Key Components

### Holoom hApp

A Holoom hApp network provides a space in which users can:

- Register a unique username to their holochain agent (made possible by an authority agent)
- Bind their various blockchain wallets to their agent with use of signatures
- Curate freeform metadata strings linked to their own agent

### `@holoom/client`

An npm library that provides helpers for interacting with a Holoom hApp agent, whether that be via the holo network, or with a conductor directly.

### Holoom Rocket Server

Provides a REST API wrapper for a Holoom conductor instance (usually the authority agent). This is useful for building services around a Holoom network that are intended to be accessed without requiring ownership of an agent within the network.

## The Authority Agent

Each Holoom network is intialised with an authority agent specified in the network's DNA properties. The role of the authority agent is to maintain a registry of unique usernames, and is expected to be run on a server maintained by the instigator of the network. The authority agent is considered to be a partially trusted node in that users can validate its correct execution, but cannot prevent its downtime or censorship decisions.

## Testing

### `crates/holoom_dna_tests`

This provides coverage for the holoom hApp's various zomes, and can be invoked locally using `npm run test:dna`.

### `packages/e2e`

This provides coverage for using the hApp in conjunction with the `@holoom/client` and `holoom_rocket_server` components.
12 changes: 0 additions & 12 deletions crates/game_identity_rocket_server/Cargo.toml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "game_identity_tests"
name = "holoom_dna_tests"
version = "0.0.1"
edition = "2021"

[lib]
crate-type = ["cdylib", "rlib"]
name = "game_identity_tests"
name = "holoom_dna_tests"

[dependencies]
serde = { workspace = true }
game_identity_types = { workspace = true }
holoom_types = { workspace = true }
hdk = { workspace = true, features = ["encoding", "test_utils"] }
holochain = { workspace = true, default-features = false, features = [
"test_utils",
Expand Down
Loading

0 comments on commit 5620e2d

Please sign in to comment.