2019-11-18 13:34:06 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package decimal;
|
2020-01-30 13:32:50 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api/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;
|
|
|
|
}
|