Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaysaha committed Apr 30, 2024
2 parents 3f03015 + 2c01e35 commit 529afcb
Show file tree
Hide file tree
Showing 8 changed files with 17,336 additions and 17,972 deletions.
4 changes: 2 additions & 2 deletions exec/start_cw_local_node.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

CARDANO_WALLET="/home/nsaha/local/bin/cardano-wallet"
CARDANO_WALLET="/home/nsaha/.cabal/bin/cardano-wallet"
CONFIG_FILE="$HOME/projects/cardano-scripts/src/tconfig/mainnet/byron-genesis.json"
DB_DIR="$HOME/wallets/db"
SOCKET="$HOME/projects/cardano-scripts/exec/state-node-shelly-mainnet/node.socket"
SOCKET="$HOME/projects/cardano-scripts/exec/cardano-chain-data-store/node.socket"

$CARDANO_WALLET serve --port 8090 --mainnet --database $DB_DIR --node-socket $SOCKET --token-metadata-server https://tokens.cardano.org --trace-wallet-db=debug
8 changes: 8 additions & 0 deletions exec/start_cw_local_node_preview.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

CARDANO_WALLET="/home/nsaha/.cabal/bin/cardano-wallet"
CONFIG_FILE="$HOME/projects/cardano-scripts/src/tconfig/preview/byron-genesis.json"
DB_DIR="$HOME/wallets/db"
SOCKET="$HOME/projects/cardano-scripts/exec/cardano-chain-data-store/node.socket"

$CARDANO_WALLET serve --port 8090 --testnet $CONFIG_FILE --database $DB_DIR --node-socket $SOCKET --token-metadata-server https://tokens.cardano.org --trace-wallet-db=debug
19 changes: 19 additions & 0 deletions exec/system_script/shelley-cardano-wallet-preview.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Unit]
Description=Shelly-testnet cardano wallet service. Relies on a relay being run locally.

[Service]
User=nsaha
Group=nsaha
TimeoutStartSec=0
Type=simple
KillMode=process
Environment=LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH":
WorkingDirectory=/home/nsaha/project/cardano-scripts/exec
ExecStart=/home/nsaha/project/cardano-scripts/exec/start_cw_local_node_preview.sh
ExecStop=/usr/bin/pkill -15 cardano-wallet

[Service]


[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion exec/system_script/shelley-cardano-wallet.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Type=simple
KillMode=process
Environment=LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH":
WorkingDirectory=/home/nsaha/project/cardano-scripts/exec
ExecStart=/home/nsaha/project/cardano-scripts/exec/start_cw_local_node.sh
ExecStart=/home/nsaha/project/cardano-scripts/exec/start_cw_local_node_preview.sh
ExecStop=/usr/bin/pkill -15 cardano-wallet

[Service]
Expand Down
12 changes: 5 additions & 7 deletions src/db-sync/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ cd ${DB_SYNC_DIR}
# git checkout -b 13.1.0.0 tags/13.1.0.0
# nix-build -A cardano-db-sync -o db-sync-node

CS_DIR="/home/nsaha/projects/cardano-scripts"
DBSYNC_DIR="${HOME}/projects/cardano-db-sync"

SOCKET_DIR="${CS_DIR}/exec/state-node-shelly-mainnet/node.socket" #relative to cardano-db-sync as we are now thre.
LEDGER_STATE_DIR="${CS_DIR}/exec/state-node-shelly-mainnet/db-ff/ledger/"
DB_SYNC_CONFIG="${HOME}/projects/cardano-db-sync/config/mainnet-config.yaml"
DB_SYNC_SCHEMA="${HOME}/projects/cardano-db-sync/cardano-db-sync/schema/"
CS_DIR="${HOME}/projects/cardano-scripts"
SOCKET_DIR="${CS_DIR}/exec/cardano-chain-data-store/node.socket" #relative to cardano-db-sync as we are now thre.
LEDGER_STATE_DIR="${CS_DIR}/exec/cardano-chain-data-store//db-ff/ledger/"
DB_SYNC_CONFIG="${DB_SYNC_DIR}/config/testnet-config.yaml"
DB_SYNC_SCHEMA="${DB_SYNC_DIR}/schema/"


# ${DB_SYNC_DIR}/scripts/postgresql-setup.sh --createdb
Expand Down
Loading

0 comments on commit 529afcb

Please sign in to comment.