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

Plastic credit issuer #328

Closed
5 tasks done
Tracked by #327
gjermundgaraba opened this issue Nov 17, 2022 · 0 comments · Fixed by #333, #335 or #343
Closed
5 tasks done
Tracked by #327

Plastic credit issuer #328

gjermundgaraba opened this issue Nov 17, 2022 · 0 comments · Fixed by #333, #335 or #343
Assignees
Labels
C:x/plasticcredit Plastic credit component

Comments

@gjermundgaraba
Copy link
Contributor

gjermundgaraba commented Nov 17, 2022

A plastic credit issuer is an entity that is allowed to create credit classes and issue credits to projects.

Creating a new issuer should be governance controlled, but needs to be possible for governance to hand over control to a sub-dao/group for easier management.

Access control for creating an issuer should therefore be limited to a single address, which is set by a governance parameter. The default genesis value should be set to the governance module.

  • Document the Issuer state in x/plasticcredit/spec
  • Implement an "IssuerCreator" param that can be changed with a gov proposal
  • Implement create issuer msg
  • Implement queries for "issuer", "issuers"
  • Create a smoke test that does this as well from the CLI (see scripts/tests)

Unit and integration tests everywhere!

Simulation testing will be implemented after Cosmos SDK 0.47 is out and upgraded.

image

@gjermundgaraba gjermundgaraba changed the title Create issuer Plastic credit issuer Nov 17, 2022
@gjermundgaraba gjermundgaraba added the C:x/plasticcredit Plastic credit component label Nov 21, 2022
@gjermundgaraba gjermundgaraba added this to the V1 milestone Nov 21, 2022
@gjermundgaraba gjermundgaraba self-assigned this Nov 21, 2022
This was linked to pull requests Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/plasticcredit Plastic credit component
Projects
None yet
1 participant