Skip to content

Commit cc9c308

Browse files
committed
chore: Add keystore start script
1 parent 2a1967a commit cc9c308

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ src/contracts
4141
# env
4242
.env
4343
config.*.yaml
44-
!config.example.yaml
44+
!config.example.yaml
45+
*.keystore

Diff for: docker-compose.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ services:
4646
- NODE_ENV=${NODE_ENV}
4747
- REDIS_HOST=redis
4848
- SPY_HOST=spy
49+
- RELAYER_PRIVATE_KEY=${RELAYER_PRIVATE_KEY}
4950
expose:
5051
- ${RELAYER_PORT}:${RELAYER_PORT}
5152
container_name: relayer

Diff for: scripts/start-docker-keystore.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
PRIVATE_KEY_RESPONSE=$(cast wallet decrypt-keystore --keystore-dir ./ $NODE_ENV.keystore) || exit 1
3+
RELAYER_PRIVATE_KEY="${PRIVATE_KEY_RESPONSE: -66}"
4+
RELAYER_PRIVATE_KEY="$RELAYER_PRIVATE_KEY" docker compose up -d

0 commit comments

Comments
 (0)