Skip to content

Commit

Permalink
feat(x/ecocredit): forward contract proof-of-concept
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo committed Aug 30, 2022
1 parent b55e0c5 commit 52c7e8b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions proto/regen/ecocredit/contract/v1alpha1/state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ message Contract {
// status is the status of the contract (e.g. "proposed", "approved").
ContractStatus status = 3;

// metadata is any arbitrary string that includes or references additional
// information about the contract such as estimated total supply, forward
// contract supply, and estimated price per credit type unit.
google.protobuf.Timestamp metadata = 4;

// funds_to_collect is the denom and amount the project is collecting.
cosmos.base.v1beta1.Coin funds_to_collect = 4;
cosmos.base.v1beta1.Coin funds_to_collect = 5;

// volume_percentage is the percent of all credits issued that will be
// available to purchase in shares.
cosmos.base.v1beta1.Coin volume_percentage = 5;
string volume_percentage = 6;

// start_date is the delivery start date.
google.protobuf.Timestamp start_date = 6 [ (gogoproto.stdtime) = true ];
google.protobuf.Timestamp start_date = 7 [ (gogoproto.stdtime) = true ];

// end_date is the delivery end date.
google.protobuf.Timestamp end_date = 7 [ (gogoproto.stdtime) = true ];

// metadata is any arbitrary string that includes or references additional
// information about the contract such as estimated total supply, forward
// contract supply, and estimated price per credit type unit.
google.protobuf.Timestamp metadata = 8;
google.protobuf.Timestamp end_date = 8 [ (gogoproto.stdtime) = true ];
}
36 changes: 18 additions & 18 deletions proto/regen/ecocredit/contract/v1alpha1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ message MsgCreate {
// project_admin is the admin of the project.
string project_admin = 2;

// metadata is any arbitrary string that includes or references additional
// information about the contract such as estimated total supply, forward
// contract supply, and estimated price per credit type unit.
string metadata = 3;

// funds_to_collect is the denom and amount the project is collecting.
cosmos.base.v1beta1.Coin funds_to_collect = 3;
cosmos.base.v1beta1.Coin funds_to_collect = 4;

// volume_percentage is the percent of all credits issued that will be
// available to purchase in shares.
cosmos.base.v1beta1.Coin volume_percentage = 4;
string volume_percentage = 6;

// start_date is the delivery start date.
google.protobuf.Timestamp start_date = 5 [ (gogoproto.stdtime) = true ];
google.protobuf.Timestamp start_date = 6 [ (gogoproto.stdtime) = true ];

// end_date is the delivery end date.
google.protobuf.Timestamp end_date = 6 [ (gogoproto.stdtime) = true ];

// metadata is any arbitrary string that includes or references additional
// information about the contract such as estimated total supply, forward
// contract supply, and estimated price per credit type unit.
google.protobuf.Timestamp metadata = 7;
google.protobuf.Timestamp end_date = 7 [ (gogoproto.stdtime) = true ];
}

// MsgCreateResponse is the Msg/Create response type.
Expand All @@ -74,23 +74,23 @@ message MsgUpdate {
// project_admin is the admin of the project.
string project_admin = 2;

// metadata is any arbitrary string that includes or references additional
// information about the contract such as estimated total supply, forward
// contract supply, and estimated price per credit type unit.
string metadata = 3;

// funds_to_collect is the denom and amount the project is collecting.
cosmos.base.v1beta1.Coin funds_to_collect = 3;
cosmos.base.v1beta1.Coin funds_to_collect = 4;

// volume_percentage is the percent of all credits issued that will be
// available to purchase in shares.
cosmos.base.v1beta1.Coin volume_percentage = 4;
string volume_percentage = 6;

// start_date is the delivery start date.
google.protobuf.Timestamp start_date = 5 [ (gogoproto.stdtime) = true ];
google.protobuf.Timestamp start_date = 6 [ (gogoproto.stdtime) = true ];

// end_date is the delivery end date.
google.protobuf.Timestamp end_date = 6 [ (gogoproto.stdtime) = true ];

// metadata is any arbitrary string that includes or references additional
// information about the contract such as estimated total supply, forward
// contract supply, and estimated price per credit type unit.
google.protobuf.Timestamp metadata = 7;
google.protobuf.Timestamp end_date = 7 [ (gogoproto.stdtime) = true ];
}

// MsgUpdateResponse is the Msg/Update response type.
Expand Down

0 comments on commit 52c7e8b

Please sign in to comment.