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

edit farming.proto #187

Merged
merged 2 commits into from
Oct 25, 2021
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
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ paths:
private_plan_creation_fee specifies the fee for plan
creation

this fee prevents from spamming and it is collected in the
this fee prevents from spamming and is collected in the
community pool
next_epoch_days:
type: integer
Expand Down Expand Up @@ -2213,11 +2213,9 @@ definitions:

NOTE: The amount field is an Int which implements the custom method
signatures required by gogoproto.
title: >-
title: |-
private_plan_creation_fee specifies the fee for plan creation

this fee prevents from spamming and it is collected in the community
pool
this fee prevents from spamming and is collected in the community pool
next_epoch_days:
type: integer
format: int64
Expand Down Expand Up @@ -2275,8 +2273,8 @@ definitions:
title: >-
private_plan_creation_fee specifies the fee for plan creation

this fee prevents from spamming and it is collected in the
community pool
this fee prevents from spamming and is collected in the community
pool
next_epoch_days:
type: integer
format: int64
Expand Down
28 changes: 14 additions & 14 deletions proto/tendermint/farming/v1beta1/farming.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ message Params {
option (gogoproto.goproto_stringer) = false;

// private_plan_creation_fee specifies the fee for plan creation
// this fee prevents from spamming and it is collected in the community pool
// this fee prevents from spamming and is collected in the community pool
repeated cosmos.base.v1beta1.Coin private_plan_creation_fee = 1 [
(gogoproto.moretags) = "yaml:\"private_plan_creation_fee\"",
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
Expand All @@ -38,9 +38,9 @@ message Params {
];
}

// BasePlan defines a base plan type. It contains all the necessary fields
// for basic farming plan functionality. Any custom farming plan type should
// extend this type for additional functionality (e.g. fixed amount plan, ratio
// BasePlan defines a base plan type and contains the required fields
// for basic farming plan functionality. Any custom farming plan type must
// extend this type for additional functionality (for example, fixed amount plan, ratio
// plan).
message BasePlan {
option (gogoproto.goproto_getters) = false;
Expand All @@ -62,12 +62,12 @@ message BasePlan {
// farming_pool_address defines the bech32-encoded address of the farming pool
string farming_pool_address = 4 [(gogoproto.moretags) = "yaml:\"farming_pool_address\""];

// termination_address defines the bech32-encoded address that terminates plan
// when the plan ends after the end time, the balance of farming pool address
// termination_address defines the Bech32-encoded address that terminates the plan
// when the plan ends after the end time, the balance of the farming pool address
// is transferred to the termination address
string termination_address = 5 [(gogoproto.moretags) = "yaml:\"termination_address\""];

// staking_coin_weights specifies coin weights for the plan
// staking_coin_weights specifies the coin weights for the plan
repeated cosmos.base.v1beta1.DecCoin staking_coin_weights = 6 [
(gogoproto.moretags) = "yaml:\"staking_coin_weights\"",
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
Expand All @@ -85,7 +85,7 @@ message BasePlan {
// terminated indicates whether the plan has been terminated or not
bool terminated = 9;

// last_distribution_time specifies the last time a distribution happened
// last_distribution_time specifies the last time a distribution occurred
google.protobuf.Timestamp last_distribution_time = 10
[(gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"last_distribution_time\""];

Expand All @@ -97,8 +97,8 @@ message BasePlan {
];
}

// FixedAmountPlan defines a fixed amount plan that fixed amount of coins are
// distributed for every epoch.
// FixedAmountPlan defines a fixed amount plan that distributes a fixed amount
// of coins for every epoch.
message FixedAmountPlan {
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
Expand All @@ -113,8 +113,8 @@ message FixedAmountPlan {
];
}

// RatioPlan defines a ratio plan that ratio of total coins in farming pool
// address is distributed for every epoch.
// RatioPlan defines a plan that distributes to farmers by ratio
// distribution for every epoch day.
message RatioPlan {
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
Expand Down Expand Up @@ -173,9 +173,9 @@ message HistoricalRewards {
];
}

// OutstandingRewards represents outstanding(un-withdrawn) rewards
// OutstandingRewards represents outstanding (un-withdrawn) rewards
// for a staking coin denom.
message OutstandingRewards {
repeated cosmos.base.v1beta1.DecCoin rewards = 1
[(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false];
}
}
26 changes: 13 additions & 13 deletions x/farming/types/farming.pb.go

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