Documentation ¶
Index ¶
- type Energy
- func (e *Energy) Add(addr thor.Address, amount *big.Int)
- func (e *Energy) Get(addr thor.Address) *big.Int
- func (e *Energy) SetInitialSupply(token *big.Int, energy *big.Int)
- func (e *Energy) Sub(addr thor.Address, amount *big.Int) bool
- func (e *Energy) TokenTotalSupply() *big.Int
- func (e *Energy) TotalBurned() *big.Int
- func (e *Energy) TotalSupply() *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Energy ¶
type Energy struct {
// contains filtered or unexported fields
}
Energy implements energy operations.
func (*Energy) SetInitialSupply ¶
SetInitialSupply set initial token and energy supply, to help calculating total energy supply.
func (*Energy) Sub ¶
Sub sub amount of energy from given address. False is returned if no enough energy.
func (*Energy) TokenTotalSupply ¶
TokenTotalSupply returns total supply of VET.
func (*Energy) TotalBurned ¶
TotalBurned returns energy totally burned.
func (*Energy) TotalSupply ¶
TotalSupply returns total supply of energy.
Click to show internal directories.
Click to hide internal directories.