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

Add public and private plan creation #11

Merged
merged 45 commits into from
Aug 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
17fb505
add proposal proto for public proposal plan messages
jaybxyz Jul 19, 2021
fdc9b93
Merge branch 'master' into kogisin/add-public-plan
jaybxyz Jul 19, 2021
b694ba1
update proto files
jaybxyz Jul 19, 2021
f557438
temp
jaybxyz Jul 19, 2021
13fcc46
change method name to prevent from duplicate
jaybxyz Jul 19, 2021
b47f8e3
WIP: designing what args to accept for adding plan proposal...
jaybxyz Jul 19, 2021
b0a61c8
Merge branch 'master' into kogisin/add-public-plan
jaybxyz Jul 20, 2021
3d230f3
change binary name to farmingd
jaybxyz Jul 20, 2021
25e83e8
change proposal design
jaybxyz Jul 20, 2021
edd2090
Merge branch 'master' into kogisin/add-public-plan
jaybxyz Jul 21, 2021
7ad06bd
Merge branch 'master' into kogisin/add-public-plan
jaybxyz Jul 24, 2021
ddf5eec
add private plans and public plans are work in progress
jaybxyz Jul 24, 2021
1cd663c
update cli commands for private plans
jaybxyz Jul 26, 2021
a5bb036
add tests for private farming plan command line interfaces
jaybxyz Jul 26, 2021
ed0520f
add public plan proposal
jaybxyz Jul 26, 2021
2edf4f7
add nolint:errcheck for now
jaybxyz Jul 26, 2021
6dbf2bb
fix golint by adding return value for sdkerrors.Wrapf
jaybxyz Jul 26, 2021
2eafadd
add name filed in both create fixed amount plan and ratio plan messages
jaybxyz Jul 27, 2021
e26e4cc
apply feedback
jaybxyz Jul 27, 2021
ac0d515
add validation and fix public ratio plan creation logic
jaybxyz Jul 27, 2021
af70b8e
remove empty name field and use the one from the passed argument
jaybxyz Jul 27, 2021
5ad0c33
remove unused rest code
jaybxyz Jul 27, 2021
7c56ea7
move the name field inside the AddRequestProposal
jaybxyz Jul 27, 2021
195ae66
add description on PublicPlanProposal message
jaybxyz Jul 27, 2021
ce77054
fix typo and add 09_proposal.md
jaybxyz Jul 27, 2021
e8b2924
add name field in update plan proposal
jaybxyz Jul 28, 2021
c40d32f
make indentation consistent and change variable name
jaybxyz Jul 28, 2021
adf7f92
reformat json
jaybxyz Jul 28, 2021
1dea61b
fix broken app
jaybxyz Jul 28, 2021
132026e
use three ifs instead of switch case and use else if to prevent from …
jaybxyz Jul 28, 2021
154b903
add detailed validation logics for AddRequestProposal, UpdateRequestP…
jaybxyz Jul 28, 2021
672bb5a
re: add detailed validation logics for AddRequestProposal, UpdateRequ…
jaybxyz Jul 28, 2021
e6a004b
add skeleton for docs #21
jaybxyz Jul 28, 2021
e6aadfc
add How-To farming_plans.md
jaybxyz Jul 28, 2021
adc1b61
update comment
jaybxyz Jul 28, 2021
95044e1
add validation for duplicate plan name
jaybxyz Jul 28, 2021
dd77f21
update date time format to RFC3339
jaybxyz Jul 29, 2021
ee1cf1b
feat: update public plan proposal
jaybxyz Jul 29, 2021
0a48a98
feat: adding validation logic for an epoch ratio must not exceed 1 wi…
jaybxyz Jul 29, 2021
bfe2ece
feat: add validation logic for overflow epoch ratio
jaybxyz Jul 30, 2021
876f696
Merge branch 'master' into kogisin/add-public-plan
jaybxyz Jul 30, 2021
8c79779
fix: add another if statement to check when both epoch amount and rat…
jaybxyz Aug 2, 2021
1f57a89
Merge commit '639a96bb38ab9bda41ab15cc74534f520bf4302b' into kogisin/…
jaybxyz Aug 2, 2021
f3abdf7
chore: update public plan proposal logics
jaybxyz Aug 2, 2021
d707cfd
docs: add command-line interfaces and update context
jaybxyz Aug 2, 2021
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: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ import (

farmingparams "github.com/tendermint/farming/app/params"
"github.com/tendermint/farming/x/farming"
farmingclient "github.com/tendermint/farming/x/farming/client"
farmingkeeper "github.com/tendermint/farming/x/farming/keeper"
farmingtypes "github.com/tendermint/farming/x/farming/types"

Expand All @@ -114,6 +115,7 @@ var (
distr.AppModuleBasic{},
gov.NewAppModuleBasic(
paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler,
farmingclient.ProposalHandler,
// todo: farming proposal handler
),
params.AppModuleBasic{},
Expand Down
1 change: 0 additions & 1 deletion contrib/devtools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ENV GOLANG_PROTOBUF_VERSION=1.3.5 \
GOGO_PROTOBUF_VERSION=1.3.2 \
GRPC_GATEWAY_VERSION=1.14.7


RUN GO111MODULE=on go get \
github.com/golang/protobuf/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION} \
github.com/gogo/protobuf/protoc-gen-gogo@v${GOGO_PROTOBUF_VERSION} \
Expand Down
11 changes: 11 additions & 0 deletions docs/Explanation/ADR/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Architecture Decision Records (ADR)

Use this location to record all high-level architecture decisions in the farming module

## Definitions

## Rationale

## Creating new ADR

## ADR Table of Contents
Empty file added docs/How-To/README.md
Empty file.
Loading