Skip to content

Commit

Permalink
Add alpha config for cmd line river_node tool (#577)
Browse files Browse the repository at this point in the history
+add missing addrs for other envs.
For example
```
./core/node/env/alpha/run.sh registry streams --count
```
Prints stream count from alpha registry contract.
  • Loading branch information
sergekh2 authored Jul 30, 2024
1 parent 1f0711b commit 21a0bb4
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 4 deletions.
36 changes: 36 additions & 0 deletions core/node/env/alpha/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# For running server in info mode ('info' command)
port: 4040
useHttps: false

# Blockchain configuration
baseChain:
chainId: 84532
networkUrl: 'https://sepolia.base.org'
blockTimeMs: 2000
riverChain:
chainId: 6524490
networkUrl: 'https://devnet.rpc.river.build'
blockTimeMs: 2000

# Base contracts
architectContract:
address: '0xc09ac0ffeecaae5100158247512dc177aeaca3e3'

# River contracts
registryContract:
address: '0x44354786eacbebf981453a05728e1653bc3c5def'

# Disable logging
log:
file: ''
level: info
console: true
noColor: false
format: text

# For reference:
# Space: 0xB712844A05245fBD17dADA91615C7c9521985873
# SpaceOwner: 0x0443258849016da8Af08e2984Bce8C0ef6Cfc9A0
# SpaceFactory: 0xc09ac0ffeecaae5100158247512dc177aeaca3e3
# BaseRegistry: 0x0230a9d28bc48a90d6f5e5112b24319ec1b14c52
# RiverRegistry: 0x44354786eacbebf981453a05728e1653bc3c5def
5 changes: 5 additions & 0 deletions core/node/env/alpha/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")"

go run ../../../river_node/main.go --config config.yaml $@
2 changes: 1 addition & 1 deletion core/node/env/gamma-arch/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ useHttps: false
# Blockchain configuration
baseChain:
chainId: 84532
networkUrl: ''
networkUrl: 'https://sepolia.base.org'
blockTimeMs: 2000
riverChain:
chainId: 6524490
Expand Down
2 changes: 1 addition & 1 deletion core/node/env/gamma/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ useHttps: false
# Blockchain configuration
baseChain:
chainId: 84532
networkUrl: ''
networkUrl: 'https://sepolia.base.org'
blockTimeMs: 2000
riverChain:
chainId: 6524490
Expand Down
4 changes: 2 additions & 2 deletions core/node/env/omega/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ useHttps: false
# Blockchain configuration
baseChain:
chainId: 84532
networkUrl: ''
networkUrl: 'https://mainnet.base.org'
blockTimeMs: 2000
riverChain:
chainId: 550
Expand All @@ -14,7 +14,7 @@ riverChain:

# Base contracts TODO: not set yet
architectContract:
address: '0x0000000000000000000000000000000000000000'
address: '0x9978c826d93883701522d2CA645d5436e5654252'

# River contracts
registryContract:
Expand Down

0 comments on commit 21a0bb4

Please sign in to comment.