Documentation ¶
Index ¶
- type Energy
- func (e *Energy) Add(addr thor.Address, amount *big.Int) error
- func (e *Energy) Get(addr thor.Address) (*big.Int, error)
- func (e *Energy) SetInitialSupply(token *big.Int, energy *big.Int) error
- func (e *Energy) Sub(addr thor.Address, amount *big.Int) (bool, error)
- func (e *Energy) TokenTotalSupply() (*big.Int, error)
- func (e *Energy) TotalBurned() (*big.Int, error)
- func (e *Energy) TotalSupply() (*big.Int, error)
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.
Click to show internal directories.
Click to hide internal directories.