-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: 🤖 fix make install + version display * add: scaffold incentive * add: declare incentive params -LP &Stake * add: implement hook interface functions in incentive module * add: implement staking hook interface functions in incentive module * add: add commitmentKeeper as incentive newkeeper param, declare keeper functions for staking hooks * add: calls appropriate keeper functions ffrom hook functions * fix: add one more param in calling newkeeper of testutil-incentive.go * fix: remove exception handling for checking block height in hook functions in order to be succeed in unit test --------- Co-authored-by: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com>
- Loading branch information
1 parent
d114d36
commit ff0ef6b
Showing
40 changed files
with
3,158 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
syntax = "proto3"; | ||
package elysnetwork.elys.incentive; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "elys/incentive/params.proto"; | ||
|
||
option go_package = "github.com/elys-network/elys/x/incentive/types"; | ||
|
||
// GenesisState defines the incentive module's genesis state. | ||
message GenesisState { | ||
Params params = 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,20 @@ | ||
syntax = "proto3"; | ||
package elysnetwork.elys.incentive; | ||
import "gogoproto/gogo.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
option go_package = "github.com/elys-network/elys/x/incentive/types"; | ||
|
||
// Incentive Info | ||
message IncentiveInfo { | ||
// reward amount | ||
string amount = 1 | ||
[ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"amount\""]; | ||
// epoch identifier | ||
string epochIdentifier = 2; | ||
// start_time of the distribution | ||
google.protobuf.Timestamp start_time = 3 | ||
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"start_time\""]; | ||
// distribution duration | ||
int64 numEpochs = 4; | ||
} |
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 elysnetwork.elys.incentive; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "elys/incentive/incentive.proto"; | ||
|
||
option go_package = "github.com/elys-network/elys/x/incentive/types"; | ||
|
||
// Params defines the parameters for the module. | ||
message Params { | ||
option (gogoproto.goproto_stringer) = false; | ||
repeated IncentiveInfo LPIncentives = 1 [(gogoproto.nullable) = false]; | ||
repeated IncentiveInfo StakeIncentives = 2 [(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,26 @@ | ||
syntax = "proto3"; | ||
package elysnetwork.elys.incentive; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/api/annotations.proto"; | ||
import "cosmos/base/query/v1beta1/pagination.proto"; | ||
import "elys/incentive/params.proto"; | ||
|
||
option go_package = "github.com/elys-network/elys/x/incentive/types"; | ||
|
||
// Query defines the gRPC querier service. | ||
service Query { | ||
// Parameters queries the parameters of the module. | ||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { | ||
option (google.api.http).get = "/elys-network/elys/incentive/params"; | ||
} | ||
} | ||
|
||
// QueryParamsRequest is request type for the Query/Params RPC method. | ||
message QueryParamsRequest {} | ||
|
||
// QueryParamsResponse is response type for the Query/Params RPC method. | ||
message QueryParamsResponse { | ||
// params holds all the parameters of this module. | ||
Params params = 1 [(gogoproto.nullable) = false]; | ||
} |
Oops, something went wrong.