-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 170210 <[email protected]>
- Loading branch information
Showing
9 changed files
with
553 additions
and
272 deletions.
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,14 @@ | ||
syntax = "proto3"; | ||
package lbm.fswap.v1; | ||
|
||
option go_package = "github.com/Finschia/finschia-sdk/x/fswap/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/v1beta1/coin.proto"; | ||
|
||
message Swapped{ | ||
cosmos.base.v1beta1.Coin old_coin_amount = 1 | ||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coin"]; | ||
cosmos.base.v1beta1.Coin new_coin_amount = 2 | ||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coin"]; | ||
} |
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 |
---|---|---|
@@ -1,22 +1,13 @@ | ||
|
||
syntax = "proto3"; | ||
package lbm.fswap.v1; | ||
|
||
option go_package = "github.com/Finschia/finschia-sdk/x/fswap/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/v1beta1/coin.proto"; | ||
|
||
// Params defines the parameters for the module. | ||
message Params { | ||
option (gogoproto.goproto_stringer) = false; | ||
// upper limit in new coin that this module can swap | ||
cosmos.base.v1beta1.Coin new_coin_swap_total_limit = 1 | ||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coin"]; | ||
// constant value representing the exchange rate, without decimal (148079656) | ||
uint64 swap_rate = 2; | ||
// The number shows how to get the true exchange rate by dividing swap_rate by 10 to the power | ||
int32 swap_rate_decimals = 3; | ||
// new denomination for new coin after swap | ||
string new_coin_denom = 4; | ||
string new_coin_denom = 1; | ||
} |
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.