Documentation ¶
Index ¶
- Variables
- type BalanceResponse
- type Gondlr
- func (g *Gondlr) Balance() (*big.Int, error)
- func (g *Gondlr) Base() float64
- func (g *Gondlr) Currency() []string
- func (g *Gondlr) Fund()
- func (g *Gondlr) Network() string
- func (g *Gondlr) Price(bytes string) (*big.Float, error)
- func (g *Gondlr) Upload()
- func (g *Gondlr) UploadDir()
- func (g *Gondlr) Withdraw()
- type HTTPClient
- type Network
- type Option
- type Signer
- type Transaction
- type Wallet
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorHTTP = func(expected int, received int) error { return fmt.Errorf("request returned [ %s ] not [ %s ]", http.StatusText(received), http.StatusText(expected)) } ErrorJSONUnmarshal = func(err error) error { return fmt.Errorf("unable to unmarshal json: %w", err) } ErrorUnmarshalTextToBigInt = func(e error) error { return fmt.Errorf("unable to unmarshal text to big.Int: %w", e) } )
Functions ¶
This section is empty.
Types ¶
type BalanceResponse ¶
type BalanceResponse struct {
Balance string `json:"balance"`
}
type Option ¶
func WithClient ¶
func WithClient(client HTTPClient) Option
WithClient allows the user to implement their own HTTP client and supply it to Gondlr
func WithNetwork ¶
func WithSigner ¶
func WithWallet ¶
type Transaction ¶
type Transaction struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.