Documentation ¶
Index ¶
- type Bus
- type Coins
- func (c *Coins) AddReserve(symbol types.CoinSymbol, amount *big.Int)
- func (c *Coins) AddVolume(symbol types.CoinSymbol, amount *big.Int)
- func (c *Coins) Commit() error
- func (c *Coins) Create(symbol types.CoinSymbol, name string, volume *big.Int, crr uint, ...)
- func (c *Coins) Exists(symbol types.CoinSymbol) bool
- func (c *Coins) Export(state *types.AppState)
- func (c *Coins) GetCoin(symbol types.CoinSymbol) *Model
- func (c *Coins) SubReserve(symbol types.CoinSymbol, amount *big.Int)
- func (c *Coins) SubVolume(symbol types.CoinSymbol, amount *big.Int)
- type Info
- type Model
- func (m *Model) AddReserve(amount *big.Int)
- func (m *Model) AddVolume(amount *big.Int)
- func (m *Model) CheckReserveUnderflow(delta *big.Int) error
- func (m Model) Crr() uint
- func (m Model) IsDirty() bool
- func (m Model) IsInfoDirty() bool
- func (m Model) MaxSupply() *big.Int
- func (m Model) Name() string
- func (m Model) Reserve() *big.Int
- func (m *Model) SetReserve(reserve *big.Int)
- func (m *Model) SetVolume(volume *big.Int)
- func (m *Model) SubReserve(amount *big.Int)
- func (m *Model) SubVolume(amount *big.Int)
- func (m Model) Symbol() types.CoinSymbol
- func (m Model) Volume() *big.Int
- type RCoins
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
func (*Bus) SubCoinReserve ¶
func (b *Bus) SubCoinReserve(symbol types.CoinSymbol, amount *big.Int)
func (*Bus) SubCoinVolume ¶
func (b *Bus) SubCoinVolume(symbol types.CoinSymbol, amount *big.Int)
type Coins ¶
type Coins struct {
// contains filtered or unexported fields
}
func (*Coins) AddReserve ¶
func (c *Coins) AddReserve(symbol types.CoinSymbol, amount *big.Int)
func (*Coins) SubReserve ¶
func (c *Coins) SubReserve(symbol types.CoinSymbol, amount *big.Int)
type Model ¶
type Model struct { CName string CCrr uint CMaxSupply *big.Int // contains filtered or unexported fields }
func (*Model) AddReserve ¶
func (Model) IsInfoDirty ¶
func (*Model) SetReserve ¶
func (*Model) SubReserve ¶
func (Model) Symbol ¶
func (m Model) Symbol() types.CoinSymbol
type RCoins ¶ added in v1.2.0
type RCoins interface { Export(state *types.AppState) Exists(symbol types.CoinSymbol) bool SubReserve(symbol types.CoinSymbol, amount *big.Int) GetCoin(symbol types.CoinSymbol) *Model }
Click to show internal directories.
Click to hide internal directories.