Skip to content
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

chore: refactor to use snake_case in proto (backport #1396) #1397

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (x/fbridge) [\#1369](https://github.com/Finschia/finschia-sdk/pull/1369) Add the event of `SetBridgeStatus`
* (x/fswap) [\#1372](https://github.com/Finschia/finschia-sdk/pull/1372) support message based proposals
* (x/fswap) [\#1387](https://github.com/Finschia/finschia-sdk/pull/1387) add new Swap query to get a single swap
* (x/fswap) [\#1382](https://github.com/Finschia/finschia-sdk/pull/1382) add validation & unit tests in fswap module
* (x/fswap) [\#1382](https://github.com/Finschia/finschia-sdk/pull/1382) add validation & unit tests in fswap module
* (x/fswap) [\#1396](https://github.com/Finschia/finschia-sdk/pull/1396) refactor to use snake_case in proto

### Bug Fixes
* (x/auth) [#1281](https://github.com/Finschia/finschia-sdk/pull/1281) `ModuleAccount.Validate` now reports a nil `.BaseAccount` instead of panicking. (backport #1274)
Expand Down
12 changes: 6 additions & 6 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35356,11 +35356,11 @@ paths:
type: string
format: byte
parameters:
- name: fromDenom
- name: from_denom
in: query
required: false
type: string
- name: toDenom
- name: to_denom
in: query
required: false
type: string
Expand Down Expand Up @@ -35433,11 +35433,11 @@ paths:
type: string
format: byte
parameters:
- name: fromDenom
- name: from_denom
in: query
required: false
type: string
- name: toDenom
- name: to_denom
in: query
required: false
type: string
Expand Down Expand Up @@ -35626,11 +35626,11 @@ paths:
type: string
format: byte
parameters:
- name: fromDenom
- name: from_denom
in: query
required: false
type: string
- name: toDenom
- name: to_denom
in: query
required: false
type: string
Expand Down
12 changes: 6 additions & 6 deletions docs/core/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14727,8 +14727,8 @@ GenesisState defines the fswap module's genesis state.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `fromDenom` | [string](#string) | | |
| `toDenom` | [string](#string) | | |
| `from_denom` | [string](#string) | | |
| `to_denom` | [string](#string) | | |



Expand Down Expand Up @@ -14758,8 +14758,8 @@ GenesisState defines the fswap module's genesis state.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `fromDenom` | [string](#string) | | |
| `toDenom` | [string](#string) | | |
| `from_denom` | [string](#string) | | |
| `to_denom` | [string](#string) | | |



Expand Down Expand Up @@ -14821,8 +14821,8 @@ GenesisState defines the fswap module's genesis state.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `fromDenom` | [string](#string) | | |
| `toDenom` | [string](#string) | | |
| `from_denom` | [string](#string) | | |
| `to_denom` | [string](#string) | | |



Expand Down
12 changes: 6 additions & 6 deletions proto/lbm/fswap/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ service Query {
}

message QuerySwappedRequest {
string fromDenom = 1;
string toDenom = 2;
string from_denom = 1;
string to_denom = 2;
}
message QuerySwappedResponse {
cosmos.base.v1beta1.Coin from_coin_amount = 1
Expand All @@ -42,17 +42,17 @@ message QuerySwappedResponse {
}

message QueryTotalSwappableToCoinAmountRequest {
string fromDenom = 1;
string toDenom = 2;
string from_denom = 1;
string to_denom = 2;
}
message QueryTotalSwappableToCoinAmountResponse {
cosmos.base.v1beta1.Coin swappable_amount = 1
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coin"];
}

message QuerySwapRequest {
string fromDenom = 1;
string toDenom = 2;
string from_denom = 1;
string to_denom = 2;
}
message QuerySwapResponse {
Swap swap = 1 [(gogoproto.nullable) = false];
Expand Down
94 changes: 47 additions & 47 deletions x/fswap/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading