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 admin to project info #888

Merged
merged 7 commits into from
Mar 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
209 changes: 104 additions & 105 deletions api/regen/ecocredit/v1/events.pulsar.go

Large diffs are not rendered by default.

296 changes: 186 additions & 110 deletions api/regen/ecocredit/v1/state.pulsar.go

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions proto/regen/ecocredit/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ message EventCreateProject {
// project_id is the unique ID of the project.
string project_id = 1;

// class_id is the unique ID of credit class for this project.
string class_id = 2;
// admin is the admin of the project.
string admin = 2;

// issuer is the issuer of the credit batches for this project.
string issuer = 3;
// class_id is the unique ID of credit class for this project.
string class_id = 3;

// project_location is the location of the project.
// Full documentation can be found in MsgCreateProject.project_location.
Expand Down
13 changes: 8 additions & 5 deletions proto/regen/ecocredit/v1/state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,26 @@ message ProjectInfo {
index: {id: 2, fields: "class_id,name", unique: true}
};

// id is the unique ID of the project
// id is the unique ID of the project.
uint64 id = 1;

// name is the unique name of the project either formed from its credit
// class name and an auto-generated number or a custom name provided
// upon creation.
string name = 3;
string name = 2;

// admin is the admin of the project.
bytes admin = 3;

// class_id is the ID of credit class for this project.
uint64 class_id = 2;
uint64 class_id = 4;

// project_location is the location of the project.
// Full documentation can be found in MsgCreateProject.project_location.
string project_location = 4;
string project_location = 5;

// metadata is any arbitrary metadata attached to the project.
string metadata = 5;
string metadata = 6;
}

// BatchInfo represents the high-level on-chain information for a credit batch.
Expand Down
105 changes: 52 additions & 53 deletions x/ecocredit/core/events.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading