-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: switch the client for alerts from rpc to grpc for new kava version #72
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
daae21b
feat: switch the client for alerts from rpc to grpc for updated kava …
boodyvo e6750af
feat: removed sdk.Int
boodyvo 28eb680
feat: update docker
boodyvo 087c398
feat: update docker
boodyvo 8d2e3c5
feat: small commets added
boodyvo 0e22d5a
feat: added test for old calculation
boodyvo c2c99a4
feat: remove extra prints
boodyvo f9983d0
feat: update tests running for ci and add docs
boodyvo 55fec5f
feat: update go mod
boodyvo cbbf9ad
feat: update docs
boodyvo df40d96
feat: update lint
boodyvo 8925b50
feat: update lint
boodyvo 8daf64a
feat: update lint
boodyvo b2ba06e
feat: update lint
boodyvo 4e7ac46
feat: small fixes
boodyvo f85a8a9
feat: small fixes
boodyvo 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 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 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
v1.59 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,137 @@ | ||
run: | ||
timeout: 20m # set maximum time allowed for the linter to run. If the linting process exceeds this duration, it will be terminated | ||
modules-download-mode: readonly # Ensures that modules are not modified during the linting process | ||
allow-parallel-runners: true # enables parallel execution of linters to speed up linting process | ||
skip-dirs: | ||
- vendor | ||
- hard-keeper-bot # TODO(boodyvo): a lot of errors for old code, need to fix during the hard-keeper-bot update | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
- decorder | ||
- dogsled | ||
# - dupl | ||
# - dupword | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
# - exhaustive | ||
- exportloopref | ||
- funlen | ||
- gci | ||
- ginkgolinter | ||
- gocheckcompilerdirectives | ||
# - gochecknoglobals | ||
# - gochecknoinits | ||
- goconst | ||
- gocritic | ||
- godox | ||
- gofmt | ||
# - gofumpt | ||
- goheader | ||
- goimports | ||
- mnd | ||
# - gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- govet | ||
- grouper | ||
- importas | ||
- ineffassign | ||
# - interfacebloat | ||
- lll | ||
- loggercheck | ||
- makezero | ||
- mirror | ||
- misspell | ||
- musttag | ||
# - nakedret | ||
# - nestif | ||
- nilerr | ||
# - nilnil | ||
# - noctx | ||
- nolintlint | ||
# - nonamedreturns | ||
- nosprintfhostport | ||
- prealloc | ||
- predeclared | ||
- promlinter | ||
# - reassign | ||
- revive | ||
- rowserrcheck | ||
- staticcheck | ||
# - stylecheck | ||
- tagalign | ||
# - testpackage | ||
# - thelper | ||
# - tparallel | ||
- typecheck | ||
# - unconvert | ||
- unparam | ||
- unused | ||
# - usestdlibvars | ||
- wastedassign | ||
# - whitespace | ||
- wrapcheck | ||
|
||
issues: | ||
exclude-rules: | ||
# Disable funlen for "func Test..." or func (suite *Suite) Test..." type functions | ||
# These functions tend to be descriptive and exceed length limits. | ||
- source: "^func (\\(.*\\) )?Test" | ||
linters: | ||
- funlen | ||
|
||
linters-settings: | ||
errcheck: | ||
check-blank: true # check for assignments to the blank identifier '_' when errors are returned | ||
check-type-assertions: false # check type assertion | ||
errorlint: | ||
check-generated: false # disabled linting of generated files | ||
default-signifies-exhaustive: false # exhaustive handling of error types | ||
exhaustive: | ||
default-signifies-exhaustive: false # exhaustive handling of error types | ||
gci: | ||
sections: # defines the order of import sections | ||
- standard | ||
- default | ||
- localmodule | ||
goconst: | ||
min-len: 3 # min length for string constants to be checked | ||
min-occurrences: 3 # min occurrences of the same constant before it's flagged | ||
godox: | ||
keywords: # specific keywords to flag for further action | ||
- BUG | ||
- FIXME | ||
- HACK | ||
gosec: | ||
exclude-generated: true | ||
lll: | ||
line-length: 120 | ||
misspell: | ||
locale: US | ||
ignore-words: expect | ||
nolintlint: | ||
allow-leading-space: false | ||
require-explanation: true | ||
require-specific: true | ||
prealloc: | ||
simple: true # enables simple preallocation checks | ||
range-loops: true # enabled preallocation checks in range loops | ||
for-loops: false # disables preallocation checks in for loops | ||
unparam: | ||
check-exported: true # checks exported functions and methods for unused params | ||
revive: | ||
rules: | ||
- name: unused-parameter | ||
severity: error |
This file contains 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package auctions | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestAuctionsTotal(t *testing.T) { | ||
usdValue, err := sdk.NewDecFromStr("0.000001705763333334") | ||
require.NoError(t, err) | ||
|
||
data, err := getAuctionDataAtHeight(dataQueryClient, 11800020) | ||
require.NoError(t, err) | ||
|
||
totalValue, err := CalculateTotalAuctionsUSDValue(data) | ||
require.NoError(t, err) | ||
|
||
require.True(t, totalValue.Equal(usdValue)) | ||
} |
Oops, something went wrong.
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.
can we add a readme to this folder?
Auction alerts tracks ongoing auctions on the Kava Chain and alerts for:
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.
Added to the module README.md as those alerts you described are actually 2 different services (one for auctions and one for usdx)