-
Notifications
You must be signed in to change notification settings - Fork 32
feat: add PostageTTL and PostageLabel options to all Beekeeper checks #454
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
Merged
Merged
Changes from 24 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f77bbbd
feat: enable PostageLabel option for all checks creating batches
gacevicljubisa e8f004d
refactor: use geth-url as global flag
gacevicljubisa aaaa451
feat(stamper): introduce postage-label as filter
gacevicljubisa eddd25a
fix(stamper): log price in bzz
gacevicljubisa e188da5
feat(swap): add offset option for FetchBlockTime
gacevicljubisa a8fb443
feat: replace postage-amount with postage-ttl
gacevicljubisa 1f3049b
chore: remove unused code
gacevicljubisa adc4496
chore: bump version to 0.26.0
gacevicljubisa d37aee5
Merge branch 'master' into postage-option
gacevicljubisa 951694c
chore: go mod tidy
gacevicljubisa b907c87
fix: resolve deps
gacevicljubisa 9f95aba
chore: update configs
gacevicljubisa 8a77005
chore: update configs
gacevicljubisa e480b97
fix: set amount to 1000 if price is 0
gacevicljubisa 7200d48
fix(stake): set geth-url
gacevicljubisa 9e55a67
fix(redundancy): set PostageLabel type to string
gacevicljubisa c74f966
feat: automatically set semantic version number
gacevicljubisa 76b8183
fix(swap): set options offset default to 1
gacevicljubisa 8d38c86
fix(swap): improve FetchBlockTime if offset is too large
gacevicljubisa 9df75f7
chore(swap): add log msg when offset too large
gacevicljubisa 1173172
fix(swap): limit offset to at most of half of the latest block
gacevicljubisa ff0b7f2
fix(swap): increase offset to 1000
gacevicljubisa 17ef902
Merge branch 'master' into postage-option
gacevicljubisa 7ae4246
Merge branch 'master' into postage-option
gacevicljubisa caac25e
fix: improve error msgs and flag descriptions
gacevicljubisa f88f6b4
fix(orchestration): ensure that SwapClient is initialized
gacevicljubisa 66115dd
fix(stamper): ensure that SwapClient is initialized
gacevicljubisa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,21 +27,27 @@ import ( | |
|
|
||
| const ( | ||
| optionNameConfigDir = "config-dir" | ||
| optionNameConfigGitRepo = "config-git-repo" | ||
| optionNameConfigGitDir = "config-git-dir" | ||
| optionNameConfigGitBranch = "config-git-branch" | ||
| optionNameConfigGitUsername = "config-git-username" | ||
| optionNameConfigGitDir = "config-git-dir" | ||
| optionNameConfigGitPassword = "config-git-password" | ||
| optionNameConfigGitRepo = "config-git-repo" | ||
| optionNameConfigGitUsername = "config-git-username" | ||
| optionNameEnableK8S = "enable-k8s" | ||
| optionNameGethURL = "geth-url" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rename to
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this would require changes in helm charts? |
||
| optionNameInCluster = "in-cluster" | ||
| optionNameKubeconfig = "kubeconfig" | ||
| optionNameLogVerbosity = "log-verbosity" | ||
| optionNameLokiEndpoint = "loki-endpoint" | ||
| optionNameTracingEnabled = "tracing-enable" | ||
| optionNameTracingEndpoint = "tracing-endpoint" | ||
| optionNameTracingHost = "tracing-host" | ||
| optionNameTracingPort = "tracing-port" | ||
| optionNameTracingServiceName = "tracing-service-name" | ||
| optionNameEnableK8S = "enable-k8s" | ||
| optionNameInCluster = "in-cluster" | ||
| optionNameKubeconfig = "kubeconfig" | ||
| ) | ||
|
|
||
| var ( | ||
| errBlockchainEndpointNotProvided = errors.New("URL of the RPC blockchain endpoint not provided") | ||
| errMissingClusterName = errors.New("cluster name not provided") | ||
| ) | ||
|
|
||
| func init() { | ||
|
|
@@ -154,6 +160,7 @@ func (c *command) initGlobalFlags() { | |
| globalFlags.String(optionNameConfigGitBranch, "main", "Git branch to use for configuration files") | ||
| globalFlags.String(optionNameConfigGitUsername, "", "Git username for authentication (required for private repositories)") | ||
| globalFlags.String(optionNameConfigGitPassword, "", "Git password or personal access token for authentication (required for private repositories)") | ||
| globalFlags.String(optionNameGethURL, "", "URL of the RPC blockchain endpoint") | ||
| globalFlags.String(optionNameLogVerbosity, "info", "Log verbosity level (0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace)") | ||
| globalFlags.String(optionNameLokiEndpoint, "", "HTTP endpoint for sending logs to Loki (e.g., http://loki.testnet.internal/loki/api/v1/push)") | ||
| globalFlags.Bool(optionNameTracingEnabled, false, "Enable tracing for performance monitoring and debugging") | ||
|
|
@@ -169,11 +176,12 @@ func (c *command) initGlobalFlags() { | |
| func (c *command) bindGlobalFlags() error { | ||
| for _, flag := range []string{ | ||
| optionNameConfigDir, | ||
| optionNameConfigGitRepo, | ||
| optionNameConfigGitBranch, | ||
| optionNameConfigGitDir, | ||
| optionNameConfigGitUsername, | ||
| optionNameConfigGitPassword, | ||
| optionNameConfigGitRepo, | ||
| optionNameConfigGitUsername, | ||
| optionNameGethURL, | ||
| optionNameLogVerbosity, | ||
| optionNameLokiEndpoint, | ||
| } { | ||
|
|
@@ -412,8 +420,8 @@ func (c *command) executePeriodically(ctx context.Context, action func(ctx conte | |
| } | ||
|
|
||
| func (c *command) setSwapClient() (err error) { | ||
| if len(c.globalConfig.GetString("geth-url")) > 0 { | ||
| gethUrl, err := url.Parse(c.globalConfig.GetString("geth-url")) | ||
| if c.globalConfig.IsSet(optionNameGethURL) { | ||
| gethUrl, err := url.Parse(c.globalConfig.GetString(optionNameGethURL)) | ||
| if err != nil { | ||
| return fmt.Errorf("parsing Geth URL: %w", err) | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe
URL of the ethereum compatible blockchain RPC endpoint?