Documentation ¶
Index ¶
- Variables
- func BigIntSub(a, b *big.Int) *big.Int
- func BigIntSum(a, b *big.Int) *big.Int
- type Decimal
- func (x *Decimal) BigInt() (*big.Int, error)
- func (*Decimal) Descriptor() ([]byte, []int)deprecated
- func (x *Decimal) GetScale() int32
- func (x *Decimal) GetValue() string
- func (*Decimal) ProtoMessage()
- func (x *Decimal) ProtoReflect() protoreflect.Message
- func (x *Decimal) Reset()
- func (x *Decimal) String() string
- func (this *Decimal) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConvertStringInt = errors.New("failed to convert string to big int")
View Source
var File_token_decimal_decimal_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Decimal ¶
type Decimal struct { Scale int32 `protobuf:"varint,1,opt,name=scale,proto3" json:"scale,omitempty"` // scale ( same as decimal in ERC-20 ) Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // big.Int as string // contains filtered or unexported fields }
func (*Decimal) Descriptor
deprecated
func (*Decimal) ProtoMessage ¶
func (*Decimal) ProtoMessage()
func (*Decimal) ProtoReflect ¶
func (x *Decimal) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.