From 52c7e8b097177479b900851f7e273bb3f3eed367 Mon Sep 17 00:00:00 2001 From: ryanchristo <12519942+ryanchristo@users.noreply.github.com> Date: Mon, 29 Aug 2022 21:16:11 -0700 Subject: [PATCH] feat(x/ecocredit): forward contract proof-of-concept --- .../ecocredit/contract/v1alpha1/state.proto | 18 +++++----- .../ecocredit/contract/v1alpha1/tx.proto | 36 +++++++++---------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/proto/regen/ecocredit/contract/v1alpha1/state.proto b/proto/regen/ecocredit/contract/v1alpha1/state.proto index 24cd452163..3835c77b20 100644 --- a/proto/regen/ecocredit/contract/v1alpha1/state.proto +++ b/proto/regen/ecocredit/contract/v1alpha1/state.proto @@ -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 ]; } diff --git a/proto/regen/ecocredit/contract/v1alpha1/tx.proto b/proto/regen/ecocredit/contract/v1alpha1/tx.proto index 4c87bb6706..6e51d2775c 100644 --- a/proto/regen/ecocredit/contract/v1alpha1/tx.proto +++ b/proto/regen/ecocredit/contract/v1alpha1/tx.proto @@ -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. @@ -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.