-
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.
feat: initialize fswap module (#1336)
* feat: initial fswap module Signed-off-by: 170210 <j170210@icloud.com> * chore: correct dependencies Signed-off-by: 170210 <j170210@icloud.com> * chore: remove unuse files Signed-off-by: 170210 <j170210@icloud.com> * feat: add proto files Signed-off-by: 170210 <j170210@icloud.com> * chore: make proto-gen Signed-off-by: 170210 <j170210@icloud.com> * chore: fix compile error Signed-off-by: 170210 <j170210@icloud.com> * chore: add new field in params proto Signed-off-by: 170210 <j170210@icloud.com> * fix: fix lint Signed-off-by: 170210 <j170210@icloud.com> * feat: add query&tx commands of fswap module Signed-off-by: 170210 <j170210@icloud.com> * fix: fix for comment Signed-off-by: 170210 <j170210@icloud.com> * docs: update CHANGLOG.md Signed-off-by: 170210 <j170210@icloud.com> * docs: fix error docs Signed-off-by: 170210 <j170210@icloud.com> * fix: fix consensusversion Signed-off-by: 170210 <j170210@icloud.com> * fix: remove route,type&getSignBytes in msgs.go Signed-off-by: 170210 <j170210@icloud.com> * fix: update proto files Signed-off-by: 170210 <j170210@icloud.com> * fix: fix NewKeeper Signed-off-by: 170210 <j170210@icloud.com> * fix: fix for comment Signed-off-by: 170210 <j170210@icloud.com> --------- Signed-off-by: 170210 <j170210@icloud.com>
- Loading branch information
Showing
42 changed files
with
4,689 additions
and
2 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
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,18 @@ | ||
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 EventSwapCoins { | ||
// holder's address | ||
string address = 1; | ||
// amount of the old currency | ||
cosmos.base.v1beta1.Coin old_coin_amount = 2 | ||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coin"]; | ||
// amount of the new currency | ||
cosmos.base.v1beta1.Coin new_coin_amount = 3 | ||
[(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
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
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 "lbm/fswap/v1/params.proto"; | ||
import "lbm/fswap/v1/fswap.proto"; | ||
|
||
// GenesisState defines the fswap module's genesis state. | ||
message GenesisState { | ||
Params params = 1 [(gogoproto.nullable) = false]; | ||
Swapped swapped =2 [(gogoproto.nullable) = false]; | ||
} |
Oops, something went wrong.