frostfs-api-go/decimal/decimal.proto

18 lines
457 B
Protocol Buffer
Raw Normal View History

2019-11-18 13:34:06 +00:00
syntax = "proto3";
package decimal;
option go_package = "github.com/nspcc-dev/neofs-proto/decimal";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.stable_marshaler_all) = true;
2019-11-20 16:07:48 +00:00
// Decimal is a structure used for representation of assets amount
2019-11-18 13:34:06 +00:00
message Decimal {
option (gogoproto.goproto_stringer) = false;
2019-11-20 16:07:48 +00:00
// Value is value number
2019-11-18 13:34:06 +00:00
int64 Value = 1;
2019-11-20 16:07:48 +00:00
// Precision is precision number
2019-11-18 13:34:06 +00:00
uint32 Precision = 2;
}