-
Notifications
You must be signed in to change notification settings - Fork 256
refactor(x/escrow): truncate dec part during payment withdraw #2024
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
Changes from all commits
Commits
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
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 |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| package upgrade | ||
|
|
||
| import ( | ||
| "encoding/json" | ||
|
|
||
| upgradetypes "cosmossdk.io/x/upgrade/types" | ||
| sdk "github.com/cosmos/cosmos-sdk/types" | ||
| ) | ||
|
|
||
| // These files defines sdk specific types necessary to perform upgrade simulation. | ||
| // we're not using SDK generated types to prevent import of different types of cosmos sdk | ||
|
|
||
| type nodeStatus struct { | ||
| SyncInfo struct { | ||
| LatestBlockHeight string `json:"latest_block_height"` | ||
| CatchingUp bool `json:"catching_up"` | ||
| } `json:"sync_info"` | ||
| } | ||
|
|
||
| type votingParams struct { | ||
| VotingPeriod string `json:"voting_period"` | ||
| } | ||
|
|
||
| type depositParams struct { | ||
| MinDeposit sdk.Coins `json:"min_deposit"` | ||
| } | ||
|
|
||
| type govParams struct { | ||
| VotingParams votingParams `json:"voting_params"` | ||
| DepositParams depositParams `json:"deposit_params"` | ||
| } | ||
|
|
||
| type proposalResp struct { | ||
| ID string `json:"id"` | ||
| Title string `json:"title"` | ||
| } | ||
|
|
||
| type proposalsResp struct { | ||
| Proposals []proposalResp `json:"proposals"` | ||
| } | ||
|
|
||
| type SoftwareUpgradeProposal struct { | ||
| Type string `json:"@type"` | ||
| Authority string `json:"authority"` | ||
| Plan upgradetypes.Plan `json:"plan"` | ||
| } | ||
|
|
||
| type ProposalMsg struct { | ||
| // Msgs defines an array of sdk.Msgs proto-JSON-encoded as Anys. | ||
| Messages []json.RawMessage `json:"messages,omitempty"` | ||
| Metadata string `json:"metadata"` | ||
| Deposit string `json:"deposit"` | ||
| Title string `json:"title"` | ||
| Summary string `json:"summary"` | ||
| Expedited bool `json:"expedited"` | ||
| } | ||
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 |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| { | ||
| "chain-id": "localakash", | ||
| "validators": [ | ||
| ".akash0", | ||
| ".akash1" | ||
| ".akash0" | ||
| ], | ||
| "work": { | ||
| "home": ".akash0", | ||
|
|
||
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.
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.
Clean up unused internal types flagged by golangci-lint
nodeStatus,votingParams,depositParams,govParams,proposalResp, andproposalsRespare defined but unused, and golangci-lint reports them as errors. Either wire them into tests or remove them for now to keep the test package clean.If they’re not needed yet, you can safely delete them:
📝 Committable suggestion
🧰 Tools
🪛 golangci-lint (2.5.0)
[error] 13-13: type nodeStatus is unused
(unused)
[error] 20-20: type votingParams is unused
(unused)
[error] 24-24: type depositParams is unused
(unused)
[error] 28-28: type govParams is unused
(unused)
[error] 33-33: type proposalResp is unused
(unused)
[error] 38-38: type proposalsResp is unused
(unused)
🤖 Prompt for AI Agents