Documentation ¶
Index ¶
- func DotFromPlanck(planck *big.Int) *big.Float
- func PlanckFromDot(dot *big.Float) *big.Int
- type Client
- func (c *Client) AcceptProposal(ctx context.Context, p Proposal) error
- func (c *Client) Account() dotwallet.Address
- func (c *Client) Balance() (types.U128, error)
- func (c *Client) Game() (*Game, error)
- func (c *Client) NewTransactionContext() (context.Context, context.CancelFunc)
- func (c *Client) Proposals() chan Proposal
- func (c *Client) ProposeGame(ctx context.Context, peer wire.Address, stake channel.Bal, ...) (*Game, error)
- func (c *Client) RegisterPeer(addr wire.Address, host string)
- func (c *Client) RejectProposal(ctx context.Context, p Proposal, reason string) error
- type Game
- type Proposal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AcceptProposal ¶
func (*Client) NewTransactionContext ¶
func (c *Client) NewTransactionContext() (context.Context, context.CancelFunc)
func (*Client) ProposeGame ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.