Documentation ¶
Index ¶
- type Asset
- type AssetAmount
- func (s *AssetAmount) Add(other *AssetAmount) (assetAmount *AssetAmount, err error)
- func (s *AssetAmount) Eq(other *AssetAmount) (bool, error)
- func (s *AssetAmount) Gt(other *AssetAmount) (bool, error)
- func (s *AssetAmount) Lt(other *AssetAmount) (bool, error)
- func (s *AssetAmount) Mul(other float64) (assetAmount *AssetAmount)
- func (s *AssetAmount) String() string
- func (s *AssetAmount) Sub(other *AssetAmount) (assetAmount *AssetAmount, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
func (*Asset) Call ¶
func (s *Asset) Call(amount string) (assetAmount *AssetAmount)
type AssetAmount ¶
func NewAssetAmount ¶
func NewAssetAmount(asset *Asset, amount string) *AssetAmount
func (*AssetAmount) Add ¶
func (s *AssetAmount) Add(other *AssetAmount) (assetAmount *AssetAmount, err error)
func (*AssetAmount) Eq ¶
func (s *AssetAmount) Eq(other *AssetAmount) (bool, error)
func (*AssetAmount) Gt ¶
func (s *AssetAmount) Gt(other *AssetAmount) (bool, error)
func (*AssetAmount) Lt ¶
func (s *AssetAmount) Lt(other *AssetAmount) (bool, error)
func (*AssetAmount) Mul ¶
func (s *AssetAmount) Mul(other float64) (assetAmount *AssetAmount)
func (*AssetAmount) String ¶
func (s *AssetAmount) String() string
func (*AssetAmount) Sub ¶
func (s *AssetAmount) Sub(other *AssetAmount) (assetAmount *AssetAmount, err error)
Click to show internal directories.
Click to hide internal directories.