frostfs-api/accounting/types.proto
Stanislav Bogatyrev 99e701e70d Update accounting package docs
Adding comments on the formats used in messages.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-10-16 12:37:19 +03:00

22 lines
760 B
Protocol Buffer

syntax = "proto3";
package neo.fs.v2.accounting;
option go_package = "github.com/nspcc-dev/neofs-api-go/v2/accounting/grpc;accounting";
option csharp_namespace = "NeoFS.API.v2.Accounting";
// Standard floating point data type can't be used in NeoFS due to inexactness
// of the result when doing lots of small number operations. To solve the lost
// precision issue, special `Decimal` format is used for monetary computations.
//
// Please see [The General Decimal Arithmetic
// Specification](http://speleotrove.com/decimal/) for detailed problem
// description.
message Decimal {
// Number in smallest Token fractions.
int64 value = 1;
// Precision value indicating how many smallest fractions can be in one
// integer.
uint32 precision = 2;
}