Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/deploy-faucet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,16 @@ jobs:

cat > .env <<-EOF
export PRIVATE_KEY=${{ secrets.FAUCET_PRIVATE_KEY }}
export TXM_DB_PATH=${{ env.TXM_DB_PATH }}
export FAUCET_DB_PATH=${{ env.FAUCET_DB_PATH }}
export TURNSTILE_SECRET=${{ secrets.FAUCET_TURNSTILE_SECRET }}
export ${{vars.FAUCET_ENV}}
export BLOCK_TIME=2
export CHAIN_ID=216
export RPC_URL=https://rpc.testnet.happy.tech/http
export APP_PORT=49533
export NODE_ENV=production
export TOKEN_AMOUNT=10000000000000000
export FAUCET_RATE_LIMIT_WINDOW_SECONDS=86400
export TXM_DB_PATH=/home/faucet/txm.sqlite
export FAUCET_DB_PATH=/home/faucet/faucet.sqlite
EOF

dos2unix .env
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/deploy-monitoring-randomness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,12 @@ jobs:
rm -f .env

cat > .env <<-EOF
${{vars.RANDOMNESS_MONITOR_ENV}}
LOG_COLORS=false
LOG_TIMESTAMPS=false
export MONITORING_DB_PATH=/home/randomness-monitor/monitor.sqlite
export RPC_URL=wss://rpc.testnet.happy.tech/ws
export CHAIN_ID=216
export RANDOM_CONTRACT_ADDRESS=0xd7dafcdC292906540Cc3357E9fD913390256b978
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably import from deployments for this.

export LOG_COLORS=true
export LOG_TIMESTAMPS=true
EOF

npm rebuild
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/deploy-randomness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,22 @@ jobs:

cat > .env <<-EOF
export PRIVATE_KEY=${{ secrets.RANDOMNESS_PRIVATE_KEY }}
export TXM_DB_PATH=${{ env.TXM_DB_PATH }}
export RANDOMNESS_DB_PATH=${{ env.RANDOMNESS_DB_PATH }}
export ${{vars.RANDOMNESS_ENV}}
export LOG_COLORS=false
export LOG_TIMESTAMPS=false
export TXM_DB_PATH=/home/randomness/txm.sqlite
export RANDOMNESS_DB_PATH=/home/randomness/randomness.sqlite
export RANDOM_CONTRACT_ADDRESS=0xd7dafcdC292906540Cc3357E9fD913390256b978
export PRECOMMIT_DELAY=20
export POST_COMMIT_MARGIN=10
export BLOCK_TIME=2
export RPC_URL=https://rpc.testnet.happy.tech/http
export EVM_DRAND_GENESIS_TIMESTAMP_SECONDS=1727521075
export EVM_DRAND_PERIOD_SECONDS=3
export EVM_DRAND_MARGIN=10
export EVM_DRAND_URL=https://api.drand.sh/v2/beacons/evmnet
export HAPPY_GENESIS_TIMESTAMP_SECONDS=1741715688
export CHAIN_ID=216
export OTEL_EXPORTER_OTLP_ENDPOINT=http://148.113.212.211:4318/v1/traces
export LOG_COLORS=true
export LOG_TIMESTAMPS=true
EOF

npm rebuild
Expand Down