laconicd/third_party/proto/cosmos/base/v1beta1/coin.proto

41 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

2021-04-17 10:00:07 +00:00
syntax = "proto3";
package cosmos.base.v1beta1;
import "gogoproto/gogo.proto";
2021-04-18 15:54:18 +00:00
option go_package = "github.com/cosmos/cosmos-sdk/types";
2021-04-17 10:00:07 +00:00
option (gogoproto.goproto_stringer_all) = false;
2021-04-18 15:54:18 +00:00
option (gogoproto.stringer_all) = false;
2021-04-17 10:00:07 +00:00
// Coin defines a token with a denomination and an amount.
//
// NOTE: The amount field is an Int which implements the custom method
// signatures required by gogoproto.
message Coin {
option (gogoproto.equal) = true;
2021-04-18 15:54:18 +00:00
string denom = 1;
string amount = 2 [(gogoproto.customtype) = "Int", (gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
}
// DecCoin defines a token with a denomination and a decimal amount.
//
// NOTE: The amount field is an Dec which implements the custom method
// signatures required by gogoproto.
message DecCoin {
option (gogoproto.equal) = true;
2021-04-18 15:54:18 +00:00
string denom = 1;
string amount = 2 [(gogoproto.customtype) = "Dec", (gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
}
// IntProto defines a Protobuf wrapper around an Int object.
message IntProto {
2021-04-18 15:54:18 +00:00
string int = 1 [(gogoproto.customtype) = "Int", (gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
}
// DecProto defines a Protobuf wrapper around a Dec object.
message DecProto {
2021-04-18 15:54:18 +00:00
string dec = 1 [(gogoproto.customtype) = "Dec", (gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
}