-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CATS support #179
base: main
Are you sure you want to change the base?
CATS support #179
Conversation
7eb4f00
to
cc7703c
Compare
cc7703c
to
28ae44c
Compare
28ae44c
to
0884694
Compare
cli/generateconfigs/params.go
Outdated
@@ -204,7 +216,7 @@ func (p *generateConfigsParams) validateFlags() error { | |||
return fmt.Errorf("invalid %s: %s", primeNetworkAddressFlag, p.primeNetworkAddress) | |||
} | |||
|
|||
if p.primeBlockfrostURL == "" && p.primeSocketPath == "" && p.primeOgmiosURL == "" { | |||
if p.primeBlockfrostURL == "" && p.primeSocketPath == "" && p.primeOgmiosURL == "" && p.primeCatsURL == "" { | |||
return fmt.Errorf("specify at least one of: %s, %s, %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return fmt.Errorf("specify at least one of: %s, %s, %s, %s",
primeBlockfrostURLFlag, primeSocketPathFlag, primeOgmiosURLFlag, primeCatsURLFlag)
cli/generateconfigs/params.go
Outdated
if !common.IsValidNetworkAddress(p.vectorNetworkAddress) { | ||
return fmt.Errorf("invalid %s: %s", vectorNetworkAddressFlag, p.vectorNetworkAddress) | ||
} | ||
|
||
if p.vectorBlockfrostURL == "" && p.vectorSocketPath == "" && p.vectorOgmiosURL == "" { | ||
if p.vectorBlockfrostURL == "" && p.vectorSocketPath == "" && p.vectorOgmiosURL == "" && p.vectorCatsURL == "" { | ||
return fmt.Errorf("specify at least one of: %s, %s, %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return fmt.Errorf("specify at least one of: %s, %s, %s, %s",
vectorBlockfrostURLFlag, vectorSocketPathFlag, vectorOgmiosURLFlag, vectorCatsURLFlag)
cli/generateconfigs/params.go
Outdated
@@ -217,11 +229,15 @@ func (p *generateConfigsParams) validateFlags() error { | |||
return fmt.Errorf("invalid prime ogmios url: %s", p.primeOgmiosURL) | |||
} | |||
|
|||
if p.primeCatsURL != "" && !common.IsValidHTTPURL(p.primeCatsURL) { | |||
return fmt.Errorf("invalid prime cats url: %s", p.primeCatsURL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should you also validate cats api key, if cats url is specified?
cli/generateconfigs/params.go
Outdated
@@ -234,6 +250,10 @@ func (p *generateConfigsParams) validateFlags() error { | |||
return fmt.Errorf("invalid vector ogmios url: %s", p.vectorOgmiosURL) | |||
} | |||
|
|||
if p.vectorCatsURL != "" && !common.IsValidHTTPURL(p.vectorCatsURL) { | |||
return fmt.Errorf("invalid vector cats url: %s", p.vectorCatsURL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should you also validate cats api key, if cats url is specified?
CI RUN: https://github.com/Ethernal-Tech/blade-apex-bridge/actions/runs/11610247253