github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/types/coin.proto (about)

     1  syntax = "proto3";
     2  package cosmos.base.v1beta1;
     3  
     4  import "gogoproto/gogo.proto";
     5  
     6  option go_package                       = "github.com/cosmos/cosmos-sdk/types";
     7  option (gogoproto.goproto_stringer_all) = false;
     8  option (gogoproto.stringer_all)         = false;
     9  
    10  // Coin defines a token with a denomination and an amount.
    11  //
    12  // NOTE: The amount field is an Int which implements the custom method
    13  // signatures required by gogoproto.
    14  message CoinAdapter {
    15    option (gogoproto.equal) = true;
    16  
    17    string denom  = 1;
    18    string amount = 2 [(gogoproto.customtype) = "Int", (gogoproto.nullable) = false];
    19  }
    20  
    21  // DecCoin defines a token with a denomination and a decimal amount.
    22  //
    23  // NOTE: The amount field is an Dec which implements the custom method
    24  // signatures required by gogoproto.
    25  message DecCoinAdapter {
    26    option (gogoproto.equal) = true;
    27  
    28    string denom  = 1;
    29    string amount = 2 [(gogoproto.customtype) = "Dec", (gogoproto.nullable) = false];
    30  }
    31  
    32  // IntProto defines a Protobuf wrapper around an Int object.
    33  message IntProtoAdapter {
    34    string int = 1 [(gogoproto.customtype) = "Int", (gogoproto.nullable) = false];
    35  }
    36  
    37  // DecProto defines a Protobuf wrapper around a Dec object.
    38  message DecProtoAdapter {
    39    string dec = 1 [(gogoproto.customtype) = "Dec", (gogoproto.nullable) = false];
    40  }