-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update core proto files
- Loading branch information
Showing
21 changed files
with
2,708 additions
and
32 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
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,17 @@ | ||
syntax = "proto3"; | ||
package sifnode.clp.v1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/Sifchain/sifnode/x/clp/types"; | ||
|
||
message RewardsBucket { | ||
string denom = 1; | ||
string amount = 2 [ | ||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", | ||
(gogoproto.nullable) = false, | ||
(gogoproto.moretags) = "yaml:\"amount\"" | ||
]; | ||
|
||
} | ||
|
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,40 @@ | ||
syntax = "proto3"; | ||
package sifnode.epochs.v1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/protobuf/duration.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
option go_package = "github.com/Sifchain/sifnode/x/epochs/types"; | ||
|
||
// EpochInfo defines the message interface containing the relevant informations about | ||
// an epoch. | ||
message EpochInfo { | ||
// identifier of the epoch | ||
string identifier = 1; | ||
// start_time of the epoch | ||
google.protobuf.Timestamp start_time = 2 | ||
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false]; | ||
// duration of the epoch | ||
google.protobuf.Duration duration = 3 [ | ||
(gogoproto.nullable) = false, | ||
(gogoproto.stdduration) = true | ||
]; | ||
// current_epoch is the integer identifier of the epoch | ||
int64 current_epoch = 4; | ||
// current_epoch_start_time defines the timestamp of the start of the epoch | ||
google.protobuf.Timestamp current_epoch_start_time = 5 [ | ||
(gogoproto.stdtime) = true, | ||
(gogoproto.nullable) = false | ||
]; | ||
// epoch_counting_started reflects if the counting for the epoch has started | ||
bool epoch_counting_started = 6; | ||
// current_epoch_start_height of the epoch | ||
int64 current_epoch_start_height = 7; | ||
} | ||
|
||
// GenesisState defines the epochs module's genesis state. | ||
message GenesisState { | ||
// epochs is a slice of EpochInfo that defines the epochs in the genesis state | ||
repeated EpochInfo epochs = 1 [(gogoproto.nullable) = false]; | ||
} |
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,51 @@ | ||
syntax = "proto3"; | ||
package sifnode.epochs.v1; | ||
|
||
import "cosmos/base/query/v1beta1/pagination.proto"; | ||
import "sifnode/epochs/v1/genesis.proto"; | ||
import "gogoproto/gogo.proto"; | ||
import "google/api/annotations.proto"; | ||
|
||
option go_package = "github.com/Sifchain/sifnode/x/epochs/types"; | ||
|
||
// Query defines the gRPC querier service. | ||
service Query { | ||
// EpochInfos provide running epochInfos | ||
rpc EpochInfos(QueryEpochsInfoRequest) returns (QueryEpochsInfoResponse) { | ||
option (google.api.http).get = "/Sifchain/sifnode/epochs/v1/epochs"; | ||
} | ||
// CurrentEpoch provide current epoch of specified identifier | ||
rpc CurrentEpoch(QueryCurrentEpochRequest) returns (QueryCurrentEpochResponse) { | ||
option (google.api.http).get = "/Sifchain/sifnode/epochs/v1/current_epoch"; | ||
} | ||
} | ||
|
||
// QueryEpochsInfoRequest is the request type for the Query/EpochInfos RPC | ||
// method. | ||
message QueryEpochsInfoRequest { | ||
// pagination defines an optional pagination for the request. | ||
cosmos.base.query.v1beta1.PageRequest pagination = 1; | ||
} | ||
|
||
// QueryEpochsInfoResponse is the response type for the Query/EpochInfos RPC | ||
// method. | ||
message QueryEpochsInfoResponse { | ||
// epochs is a slice of all EpochInfos | ||
repeated EpochInfo epochs = 1 [(gogoproto.nullable) = false]; | ||
// pagination defines an optional pagination for the request. | ||
cosmos.base.query.v1beta1.PageResponse pagination = 2; | ||
} | ||
|
||
// QueryCurrentEpochRequest is the request type for the Query/EpochInfos RPC | ||
// method. | ||
message QueryCurrentEpochRequest { | ||
// identifier of the current epoch | ||
string identifier = 1; | ||
} | ||
|
||
// QueryCurrentEpochResponse is the response type for the Query/EpochInfos RPC | ||
// method. | ||
message QueryCurrentEpochResponse { | ||
// current_epoch is the number of the current epoch | ||
int64 current_epoch = 1; | ||
} |
Oops, something went wrong.
816c695
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.
Successfully deployed to the following URLs:
sifchain-ui – ./
dex.sifchain.finance
sifchain-ui-git-master-sifchain.vercel.app
sifchain-ui-sifchain.vercel.app