Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInsufficientFunds = errors.New("insufficient token balance")
)
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { TokenAddress(ctx context.Context) (common.Address, error) SystemTokenAddress(ctx context.Context) (common.Address, error) GetSystemReward(ctx context.Context, address common.Address) (*big.Int, error) GetCashedReward(ctx context.Context, address common.Address) (*big.Int, error) GetUnCashReward(ctx context.Context, address common.Address) (*big.Int, error) DoSystemReward(ctx context.Context, addresses []common.Address, values []*big.Int) (common.Hash, error) DoReward(ctx context.Context, addresses []common.Address, values []*big.Int) (common.Hash, error) Cash(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error) Txs() ([]string, error) }
func New ¶
func New(stateStore storage.StateStorer, backend transaction.Backend, transactionService transaction.Service, address common.Address) Service
Click to show internal directories.
Click to hide internal directories.