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 { Stake(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error) UnStake(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error) GetSlash(ctx context.Context, address common.Address) (*big.Int, error) GetTotalSlash(ctx context.Context) (*big.Int, error) AvailableBalance(ctx context.Context, address common.Address) (*big.Int, 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.