Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public and private plan creation (#11)
* add proposal proto for public proposal plan messages * update proto files * temp * change method name to prevent from duplicate * WIP: designing what args to accept for adding plan proposal... * change binary name to farmingd * change proposal design - update proposal proto messages * add private plans and public plans are work in progress * update cli commands for private plans * add tests for private farming plan command line interfaces * add public plan proposal * add nolint:errcheck for now * fix golint by adding return value for sdkerrors.Wrapf * add name filed in both create fixed amount plan and ratio plan messages * apply feedback * add validation and fix public ratio plan creation logic * remove empty name field and use the one from the passed argument * remove unused rest code * move the name field inside the AddRequestProposal * add description on PublicPlanProposal message * fix typo and add 09_proposal.md * add name field in update plan proposal * make indentation consistent and change variable name * reformat json * fix broken app * use three ifs instead of switch case and use else if to prevent from creating more than one plan type * add detailed validation logics for AddRequestProposal, UpdateRequestProposal, DeleteRequestProposal * re: add detailed validation logics for AddRequestProposal, UpdateRequestProposal, DeleteRequestProposal * add skeleton for docs #21 * add How-To farming_plans.md * update comment * add validation for duplicate plan name * update date time format to RFC3339 * feat: update public plan proposal * feat: adding validation logic for an epoch ratio must not exceed 1 with the same account * feat: add validation logic for overflow epoch ratio * fix: add another if statement to check when both epoch amount and ratio are provided * chore: update public plan proposal logics - add validation logic for ratio plans - add test codes for the validation - clean up error messages * docs: add command-line interfaces and update context
- Loading branch information