Skip to content

Commit

Permalink
Merge pull request #383 from hirosystems/develop
Browse files Browse the repository at this point in the history
release new beta
  • Loading branch information
rafaelcr authored Jan 14, 2025
2 parents 1fbdcd9 + e609043 commit 126ce32
Show file tree
Hide file tree
Showing 107 changed files with 8,199 additions and 11,705 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Setup integration environment
run: |
sudo ufw disable
docker compose -f ../../dockerfiles/docker-compose.dev.postgres.yml up -d
docker compose -f ../../dockerfiles/docker-compose.dev.postgres.yml logs -t -f --no-color &> docker-compose-logs.txt &
- name: Update Rust
run: |
rustup update
Expand All @@ -59,6 +65,14 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
slug: hirosystems/ordhook

- name: Print integration environment logs
run: cat docker-compose-logs.txt
if: failure()

- name: Teardown integration environment
run: docker compose -f ../../dockerfiles/docker-compose.dev.postgres.yml down -v -t 0
if: always()

build-publish:
runs-on: ubuntu-latest
needs: test
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ components/chainhook-types-js/dist
*.tar.gz
*.zip
*.rdb
Ordhook.toml
/Ordhook.toml

cache/
./tests
Expand Down
65 changes: 65 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'chainhook-postgres'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=chainhook-postgres"],
"filter": {
"name": "chainhook-postgres",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "run: ordhook service",
"cargo": {
"args": ["build", "--bin=ordhook", "--package=ordhook-cli"],
"filter": {
"name": "ordhook",
"kind": "bin"
}
},
"args": [
"service",
"start",
"--config-path=${workspaceFolder}/.vscode/ordhook.toml",
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'ordhook'",
"cargo": {
"args": ["test", "--no-run", "--bin=ordhook", "--package=ordhook-cli"],
"filter": {
"name": "ordhook",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'ordhook'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=ordhook"],
"filter": {
"name": "ordhook",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
46 changes: 46 additions & 0 deletions .vscode/ordhook.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[storage]
working_dir = "tmp"
observers_working_dir = "tmp"

[ordinals_db]
database = "ordinals"
host = "localhost"
port = 5432
username = "postgres"
password = "postgres"

[brc20_db]
database = "brc20"
host = "localhost"
port = 5432
username = "postgres"
password = "postgres"

# The Http Api allows you to register / deregister
# dynamically predicates.
# Disable by default.
#
# [http_api]
# http_port = 20456

[network]
mode = "mainnet"
bitcoind_rpc_url = "http://localhost:8332"
bitcoind_rpc_username = "rafaelcr"
bitcoind_rpc_password = "developer"
bitcoind_zmq_url = "tcp://0.0.0.0:18543"

[resources]
ulimit = 2048
cpu_core_available = 6
memory_available = 16
bitcoind_rpc_threads = 2
bitcoind_rpc_timeout = 15
expected_observers_count = 1

[logs]
ordinals_internals = true
chainhook_internals = true

[meta_protocols]
brc20 = true
Loading

0 comments on commit 126ce32

Please sign in to comment.