25da5d2e13
Replace all elements from `v2` to root directory. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
14 lines
354 B
Go
14 lines
354 B
Go
package accounting
|
|
|
|
import (
|
|
accounting "github.com/nspcc-dev/neofs-api-go/v2/accounting/grpc"
|
|
"github.com/nspcc-dev/neofs-api-go/v2/rpc/message"
|
|
)
|
|
|
|
func (d *Decimal) MarshalJSON() ([]byte, error) {
|
|
return message.MarshalJSON(d)
|
|
}
|
|
|
|
func (d *Decimal) UnmarshalJSON(data []byte) error {
|
|
return message.UnmarshalJSON(d, data, new(accounting.Decimal))
|
|
}
|