-
Notifications
You must be signed in to change notification settings - Fork 80
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
refactor!: eliminate sdk codec dependency from remote mode #107
Merged
dadamu
merged 8 commits into
cosmos/v0.47.x
from
paul/SDK-72/eliminate-sdk-codec-in-remote-mode
Mar 19, 2024
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
80e4111
feat: add api config for remote node
dadamu 09f6168
refactor: replace getting tx from gRPC into API
dadamu 22b7af7
fix: parse ModeInfo correctly inside SignerInfo
dadamu f76ee0b
refactor: eliminate sdk codec
dadamu afd4cf8
chore: run go mod tidy
dadamu b4341a2
chore: finx lint and improve message unmarshaling
dadamu 53f635f
fix: fix save message sql query and its type
dadamu ff597c7
chore: remove unused docs
dadamu 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ coverage.txt | |
# Configuration | ||
*.toml | ||
*.yaml | ||
|
||
vendor/ |
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
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ package database | |
|
||
import ( | ||
"github.com/forbole/juno/v5/logging" | ||
"github.com/forbole/juno/v5/types/params" | ||
|
||
databaseconfig "github.com/forbole/juno/v5/database/config" | ||
|
||
|
@@ -33,7 +32,7 @@ type Database interface { | |
|
||
// SaveTx will be called to save each transaction contained inside a block. | ||
// An error is returned if the operation fails. | ||
SaveTx(tx *types.Tx) error | ||
SaveTx(tx *types.Transaction) error | ||
|
||
// HasValidator returns true if a given validator by consensus address exists. | ||
// An error is returned if the operation fails. | ||
|
@@ -49,7 +48,7 @@ type Database interface { | |
|
||
// SaveMessage stores a single message. | ||
// An error is returned if the operation fails. | ||
SaveMessage(msg *types.Message) error | ||
SaveMessage(height int64, txHash string, msg types.Message, addresses []string) error | ||
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. Message is unmarshaled from TxBody which does not contain |
||
|
||
// Close closes the connection to the database | ||
Close() | ||
|
@@ -69,17 +68,15 @@ type PruningDb interface { | |
|
||
// Context contains the data that might be used to build a Database instance | ||
type Context struct { | ||
Cfg databaseconfig.Config | ||
EncodingConfig params.EncodingConfig | ||
Logger logging.Logger | ||
Cfg databaseconfig.Config | ||
Logger logging.Logger | ||
} | ||
|
||
// NewContext allows to build a new Context instance | ||
func NewContext(cfg databaseconfig.Config, encodingConfig params.EncodingConfig, logger logging.Logger) *Context { | ||
func NewContext(cfg databaseconfig.Config, logger logging.Logger) *Context { | ||
return &Context{ | ||
Cfg: cfg, | ||
EncodingConfig: encodingConfig, | ||
Logger: logger, | ||
Cfg: cfg, | ||
Logger: logger, | ||
} | ||
} | ||
|
||
|
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
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.
Remove it, the Codec should be manually defined by users who wants to use local mode node.