-
Notifications
You must be signed in to change notification settings - Fork 103
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
Balance/Denom credit design #117
Comments
I didn't go through all details of the |
That new module could do things like: checked transfers / whitelisting, compliance etc... |
Some of the changes I'm suggesting to |
It seams that #125 supersedes this issue, and it will be easier to keep discussion in one place. Shall we remove this issue , and other references to this issue (to keep focus in one place)? You can add Consequences section to a README file or to a PR description. |
Summary
This proposes an architecture for ecosystem service credits (#107) based on the existing Cosmos SDK
x/bank
andx/ibc/applications/transfer
Coin
model.Problem Definition
See #107
Proposal
This is based off of work done in https://github.com/regen-network/reDAOmint/tree/reDAOmint/x/ecocredit and updated to actually use an updated
x/bank
under the hood.In ADR 001 a convention for modules defining a "namespace" of denom identifiers is outlined.
We define a denom identifier for a credit batch as:
fmt.Sprintf("ecs/%s/%s", classId, batchId)
whereclassId
arebatchId
unique string identifiers for the credit class and batch.The
ecs
(ecosystem-service credit) module, defines the followingMsg
s for creating credit classes and batches, and retiring credits:Consequences
Pros
sdk.Coin
,x/bank
and IBC transfer)Cons
x/bank
to be performant (Index supply by denom cosmos/cosmos-sdk#7092) and elegant (Do Proper Ocaps for x/bank (or not): A Case Study cosmos/cosmos-sdk#7093 and Use decimals in x/bank cosmos/cosmos-sdk#7113).Neutral
ecs
module will need to track balances of retired/burned coinsThe text was updated successfully, but these errors were encountered: