Documentation
¶
Index ¶
- type Accounts
- type App
- type Bus
- func (b *Bus) Accounts() Accounts
- func (b *Bus) App() App
- func (b *Bus) Candidates() Candidates
- func (b *Bus) Checker() Checker
- func (b *Bus) Coins() Coins
- func (b *Bus) Events() eventsdb.IEventsDB
- func (b *Bus) FrozenFunds() FrozenFunds
- func (b *Bus) SetAccounts(accounts Accounts)
- func (b *Bus) SetApp(app App)
- func (b *Bus) SetCandidates(candidates Candidates)
- func (b *Bus) SetChecker(checker Checker)
- func (b *Bus) SetCoins(coins Coins)
- func (b *Bus) SetEvents(events eventsdb.IEventsDB)
- func (b *Bus) SetFrozenFunds(frozenfunds FrozenFunds)
- type Candidate
- type Candidates
- type Checker
- type Coin
- type Coins
- type FrozenFunds
- type Stake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts interface {
DeleteCoin(types.Address, types.CoinSymbol)
AddBalance(types.Address, types.CoinSymbol, *big.Int)
}
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
func (*Bus) Candidates ¶
func (b *Bus) Candidates() Candidates
func (*Bus) FrozenFunds ¶
func (b *Bus) FrozenFunds() FrozenFunds
func (*Bus) SetAccounts ¶
func (*Bus) SetCandidates ¶
func (b *Bus) SetCandidates(candidates Candidates)
func (*Bus) SetChecker ¶
func (*Bus) SetFrozenFunds ¶
func (b *Bus) SetFrozenFunds(frozenfunds FrozenFunds)
type Candidates ¶
type Checker ¶
type Checker interface {
AddCoin(types.CoinSymbol, *big.Int, ...string)
AddCoinVolume(types.CoinSymbol, *big.Int)
}
type Coins ¶
type Coins interface {
GetCoin(types.CoinSymbol) *Coin
SubCoinVolume(types.CoinSymbol, *big.Int)
SubCoinReserve(types.CoinSymbol, *big.Int)
}
type FrozenFunds ¶
Click to show internal directories.
Click to hide internal directories.