frostfs-api-go/decimal/decimal.proto

19 lines
505 B
Protocol Buffer
Raw Normal View History

2019-11-18 13:34:06 +00:00
syntax = "proto3";
package decimal;
2020-03-31 07:05:26 +00:00
option go_package = "github.com/nspcc-dev/neofs-api-go/decimal";
2020-02-05 13:58:06 +00:00
option csharp_namespace = "NeoFS.API.Decimal";
2019-11-18 13:34:06 +00:00
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;
}