-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from cardano-scaling/lc/restructure
Restructure repo
- Loading branch information
Showing
56 changed files
with
7,095 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: "CI" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
on: | ||
merge_group: | ||
push: | ||
branches: | ||
- master | ||
- release | ||
pull_request: | ||
|
||
permissions: | ||
checks: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build-test: | ||
name: "Build & test" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 📥 Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: ❄ Prepare nix | ||
uses: cachix/install-nix-action@v30 | ||
with: | ||
extra_nix_config: | | ||
accept-flake-config = true | ||
log-lines = 1000 | ||
- name: ❄ Cachix cache of nix derivations | ||
uses: cachix/cachix-action@v15 | ||
with: | ||
name: cardano-scaling | ||
authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}' | ||
|
||
- name: ❓ Build and test | ||
run: | | ||
nix run .#apps.x86_64-linux.hydra-explorer -- --help | ||
# Note: The tests need to find `json-schemas/hydra-explorer-api.yaml`; | ||
# so they need to be run in this specific folder. | ||
cd hydra-explorer | ||
# We need the packages in the shell to run the tests | ||
nix develop -c cabal update | ||
nix develop -c cabal test all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
dist-newstyle | ||
result* | ||
|
||
test-results.xml | ||
hspec-results.md | ||
|
||
.pre-commit-config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# Hydra Explorer | ||
# hydra-explorer | ||
|
||
A small executable which connects to a chain like the `hydra-node`, but puts any | ||
observations as traces onto `stdout`. | ||
This is the system image repository for the hydra-explorer service. | ||
|
||
To run, pass a `--node-socket` and the corresponding network id. For example: | ||
## Deployment | ||
|
||
``` shell | ||
hydra-explorer \ | ||
--node-socket testnets/preprod/node.socket \ | ||
--testnet-magic 1 | ||
```sh | ||
nix run .#apps.x86_64-linux.nixinate.hydra-explorer | ||
``` | ||
|
||
Note: this assumes you are running a cardano-node in preprod. | ||
## Testing locally | ||
|
||
By definition, hydra-explorer will bind port 9090. | ||
```sh | ||
nix build .#qemu | ||
cp result/nixos.qcow2 . | ||
chmod 755 nixos.qcow2 | ||
qemu-system-x86_64 -enable-kvm -m 8000 -drive file=nixos.qcow2,media=disk,if=virtio -nic user,model=virtio | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
repository cardano-haskell-packages | ||
url: https://chap.intersectmbo.org/ | ||
secure: True | ||
root-keys: | ||
3e0cce471cf09815f930210f7827266fd09045445d65923e6d0238a6cd15126f | ||
443abb7fb497a134c343faf52f0b659bd7999bc06b7f63fa76dc99d631f9bea1 | ||
a86a1f6ce86c449c46666bda44268677abf29b5b2d2eb5ec7af903ec2f117a82 | ||
bcec67e8e99cabfa7764d75ad9b158d72bfacf70ca1d0ec8bc6b4406d1bf8413 | ||
c00aae8461a256275598500ea0e187588c35a5d5d7454fb57eac18d9edb86a56 | ||
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee | ||
|
||
index-state: | ||
, hackage.haskell.org 2024-10-14T02:12:15Z | ||
, cardano-haskell-packages 2024-10-14T23:19:53Z | ||
|
||
packages: | ||
hydra-explorer | ||
|
||
source-repository-package | ||
type: git | ||
location: https://github.com/cardano-scaling/hydra | ||
tag: d55c4efb896273dc39d4bdc4fc83ec361de55f73 | ||
--sha256: sha256-LziIjrdjMA8dVPKMwKskLyjlnx5HhpDwTjC9sek5Bfo= | ||
subdir: | ||
hydra-cardano-api | ||
hydra-chain-observer | ||
hydra-cluster | ||
hydra-node | ||
hydra-plutus | ||
hydra-plutus-extras | ||
hydra-prelude | ||
hydra-test-utils | ||
hydra-tx |
Oops, something went wrong.