Skip to content

Commit

Permalink
fix: Remove old fields from wallet network configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinTrinque committed Oct 2, 2023
1 parent bb1593f commit a3ea32b
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 62 deletions.
2 changes: 1 addition & 1 deletion config/wallet_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type WalletConfig struct {

/*
description: |
[Go template](templates.md) of a Vega Wallet config.
[Go template](templates.md) of a Vega Wallet network configuration.
The [wallet.ConfigTemplateContext](templates.md#walletconfigtemplatecontext) can be used in the template.
Example can be found in [default network config](net_confs/config.hcl).
Expand Down
3 changes: 2 additions & 1 deletion generator/initiate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"fmt"
"sync"

"golang.org/x/sync/errgroup"

"code.vegaprotocol.io/vegacapsule/config"
"code.vegaprotocol.io/vegacapsule/generator/nomad"
"code.vegaprotocol.io/vegacapsule/generator/wallet"
"code.vegaprotocol.io/vegacapsule/types"
"golang.org/x/sync/errgroup"
)

func (g *Generator) initiateNodeSet(absoluteIndex, relativeIndex, groupIndex int, nc config.NodeConfig) (*types.NodeSet, error) {
Expand Down
5 changes: 0 additions & 5 deletions net_confs/config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:{{add 300 $i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_checkpoint.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_clef.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_data_node_snapshot.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_external_postgres.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_frontends.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:{{add 300 $i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_nullchain.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_nullchain_no_erc20.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_sentry_datanode.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .NonValidators}}{{if eq $v.GroupName "sentry-0" "sentry-1" "sentry-2"}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$v.Index}}2"{{end}}{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_visor_mixed.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/config_visor_only.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down
5 changes: 0 additions & 5 deletions net_confs/stagnet_config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ EOT
wallet "wallet-1" {
template = <<-EOT
Name = "DV"
Level = "info"
TokenExpiry = "168h0m0s"
Port = 1789
Host = "0.0.0.0"
[API]
[API.GRPC]
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
Retries = 5
EOT
}

Expand Down

0 comments on commit a3ea32b

Please sign in to comment.