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

feat(x/ecocredit): add basket API #610

Merged
merged 7 commits into from
Nov 16, 2021
Merged

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented Oct 29, 2021

Description

Adds basket functionality to x/ecocredit.

Currently editing basket criteria is not supported because it needs to be thought through more.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@aaronc aaronc added the Scope: x/ecocredit Issues that update the x/ecocredit module label Oct 29, 2021
@codecov
Copy link

codecov bot commented Oct 29, 2021

Codecov Report

Merging #610 (d721f3d) into master (081ae07) will increase coverage by 1.67%.
The diff coverage is n/a.

❗ Current head d721f3d differs from pull request most recent head c1ce1c8. Consider uploading reports for the commit c1ce1c8 to get more accurate results

@@            Coverage Diff             @@
##           master     #610      +/-   ##
==========================================
+ Coverage   74.09%   75.76%   +1.67%     
==========================================
  Files         104      104              
  Lines       14899    14222     -677     
==========================================
- Hits        11039    10775     -264     
+ Misses       3131     2801     -330     
+ Partials      729      646      -83     
Flag Coverage Δ
experimental-codecov 75.76% <ø> (+1.67%) ⬆️
stable-codecov 67.35% <ø> (+1.46%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@aaronc aaronc changed the title feat(x/ecocredit): add basket functionality feat(x/ecocredit): add basket API Oct 29, 2021
@blushi blushi self-assigned this Nov 2, 2021
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-approving, pending on #610 (comment) and #610 (comment)

@@ -52,6 +53,30 @@ service Msg {

// AllowAskDenom is a governance operation which authorizes a new ask denom to be used in sell orders
rpc AllowAskDenom (MsgAllowAskDenom) returns (MsgAllowAskDenomResponse);

// CreateBasket creates a bank denom which wraps credits.
Copy link
Contributor

@amaury1093 amaury1093 Nov 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// CreateBasket creates a bank denom which wraps credits.
// CreateBasket creates a bank denom which wraps credits.
// Baskets are managed and created by Regen Ledger governance (REGEN holders).
// This means that basket creation and basket composition updates goes through
// governance processes and module parameters.

adding 578bbbd from the sprint

Copy link
Member Author

@aaronc aaronc Nov 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But how is governance controlling this? Don't we need to modify the API?

@amaury1093 amaury1093 enabled auto-merge (squash) November 16, 2021 14:16
@amaury1093 amaury1093 merged commit 05dfaec into master Nov 16, 2021
@amaury1093 amaury1093 deleted the aaronc/ecocredit-basket branch November 16, 2021 14:17
This was referenced Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: x/ecocredit Issues that update the x/ecocredit module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants