Skip to content

Commit

Permalink
chore: update the template regarding signer (backport #130) (#131)
Browse files Browse the repository at this point in the history
* update the template regarding signer (#130)

(cherry picked from commit 980d77d)

* update the version

---------

Co-authored-by: Master Engineer <[email protected]>
Co-authored-by: mastereng12 <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent b4f7751 commit db99bf7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func main() {
Usage: "Prints the version of the Lagrange Client CLI",
Action: func(c *cli.Context) error {
w := os.Stdout
fmt.Fprintf(w, "Version: %s\n", "v1.0.0")
fmt.Fprintf(w, "Version: %s\n", "v1.1.0")
fmt.Fprintf(w, "Go version: %s\n", runtime.Version())
fmt.Fprintf(w, "OS/Arch: %s/%s\n", runtime.GOOS, runtime.GOARCH)
return nil
Expand Down
11 changes: 11 additions & 0 deletions templates/client_config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[Client]
GrpcURLs = "{{.ServerGrpcURL}}:9090"
SignerServerURL = "{{.SignerServerURL}}" # optional, can be empty
Chain = "{{.ChainName}}"
EthereumURL = "{{.EthereumRPCURL}}"
OperatorAddress = "{{.OperatorAddress}}"
Expand All @@ -8,9 +9,17 @@ BLSKeystorePath = "/app/config/keystore/bls.key"
BLSKeystorePasswordPath = "/app/config/keystore/bls.pass"
SignerECDSAKeystorePath = "/app/config/keystore/signer.key"
SignerECDSAKeystorePasswordPath = "/app/config/keystore/signer.pass"
BLSKeyAccountID = "bls-sign-key-1" # optional, can be empty
SignerKeyAccountID = "ecdsa-signer-key-1" # optional, can be empty
PullInterval = "1000ms"
BLSCurve = "BN254"

# optional, can be empty
[Client.TLSConfig]
CACertPath = "/app/config/ca-cert.pem"
NodeKeyPath = "/app/config/client-key.pem"
NodeCertPath = "/app/config/client-cert.pem"

[RpcClient]
#{{ if eq .ChainName "optimism" "base" }}
[RpcClient.Optimism]
Expand All @@ -20,6 +29,8 @@ BLSCurve = "BN254"
BatchInbox = "{{.BatchInbox}}"
BatchSender = "{{.BatchSender}}"
ConcurrentFetchers = 8
L1ParallelBlocks = 32
L2ParallelBlocks = 32

#{{ else if eq .ChainName "arbitrum" }}
[RpcClient.Arbitrum]
Expand Down

0 comments on commit db99bf7

Please sign in to comment.