wallet

package
v0.0.0-...-cdfdfff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	Coin     string  `json:"coin"`
	Free     float64 `json:"free"`
	Total    float64 `json:"total"`
	USDValue float64 `json:"usdvalue"`
}

type Coin

type Coin struct {
	ID   string `json:"id"`
	Name string `json:"name"`

	CanDeposit  bool `json:"canDeposit"`
	CanWithdraw bool `json:"canWithdraw"`
	HasTag      bool `json:"hasTag"`
}

type History

type History struct {
	Coin   string `json:"coin"`
	Status string `json:"status"`
	Txid   string `json:"txid"`

	Size float64 `json:"size"`
	Fee  float64 `json:"fee"`

	Confirmations int `json:"confirmations"`
	ID            int `json:"id"`

	ConfirmedTime time.Time `json:"confirmedTime"`
	SentTime      time.Time `json:"sentTime"`
	Time          time.Time `json:"time"`
	Notes         string    `json:"notes,omitempty"`
}

type RequestForBalances

type RequestForBalances struct {
}

func (*RequestForBalances) Method

func (req *RequestForBalances) Method() string

func (*RequestForBalances) Path

func (req *RequestForBalances) Path() string

func (*RequestForBalances) Payload

func (req *RequestForBalances) Payload() []byte

func (*RequestForBalances) Query

func (req *RequestForBalances) Query() string

type RequestForBalancesAll

type RequestForBalancesAll struct {
}

func (*RequestForBalancesAll) Method

func (req *RequestForBalancesAll) Method() string

func (*RequestForBalancesAll) Path

func (req *RequestForBalancesAll) Path() string

func (*RequestForBalancesAll) Payload

func (req *RequestForBalancesAll) Payload() []byte

func (*RequestForBalancesAll) Query

func (req *RequestForBalancesAll) Query() string

type RequestForCoins

type RequestForCoins struct {
}

func (*RequestForCoins) Method

func (req *RequestForCoins) Method() string

func (*RequestForCoins) Path

func (req *RequestForCoins) Path() string

func (*RequestForCoins) Payload

func (req *RequestForCoins) Payload() []byte

func (*RequestForCoins) Query

func (req *RequestForCoins) Query() string

type RequestForDepositAddress

type RequestForDepositAddress struct {
	Coin string `json:"-"`
}

func (*RequestForDepositAddress) Method

func (req *RequestForDepositAddress) Method() string

func (*RequestForDepositAddress) Path

func (req *RequestForDepositAddress) Path() string

func (*RequestForDepositAddress) Payload

func (req *RequestForDepositAddress) Payload() []byte

func (*RequestForDepositAddress) Query

func (req *RequestForDepositAddress) Query() string

type RequestForDepositHistories

type RequestForDepositHistories struct {
}

func (*RequestForDepositHistories) Method

func (req *RequestForDepositHistories) Method() string

func (*RequestForDepositHistories) Path

func (req *RequestForDepositHistories) Path() string

func (*RequestForDepositHistories) Payload

func (req *RequestForDepositHistories) Payload() []byte

func (*RequestForDepositHistories) Query

func (req *RequestForDepositHistories) Query() string

type RequestForWithdraw

type RequestForWithdraw struct {
	Coin    string  `url:"coin"`
	Size    float64 `url:"size"`
	Address string  `url:"address"`
	// Optionals
	Tag      string `url:"tag,omitempty"`
	Password string `url:"password,omitempty"`
	Code     int    `url:"code,omitempty"`
}

func (*RequestForWithdraw) Method

func (req *RequestForWithdraw) Method() string

func (*RequestForWithdraw) Path

func (req *RequestForWithdraw) Path() string

func (*RequestForWithdraw) Payload

func (req *RequestForWithdraw) Payload() []byte

func (*RequestForWithdraw) Query

func (req *RequestForWithdraw) Query() string

type RequestForWithdrawHistories

type RequestForWithdrawHistories struct {
}

func (*RequestForWithdrawHistories) Method

func (req *RequestForWithdrawHistories) Method() string

func (*RequestForWithdrawHistories) Path

func (req *RequestForWithdrawHistories) Path() string

func (*RequestForWithdrawHistories) Payload

func (req *RequestForWithdrawHistories) Payload() []byte

func (*RequestForWithdrawHistories) Query

func (req *RequestForWithdrawHistories) Query() string

type ResponseForBalances

type ResponseForBalances []Balance

type ResponseForBalancesAll

type ResponseForBalancesAll map[string][]Balance

type ResponseForCoins

type ResponseForCoins []Coin

type ResponseForDepositAddress

type ResponseForDepositAddress struct {
	Address string `json:"address"`
	Tag     string `json:"tag"`
}

type ResponseForDepositHistories

type ResponseForDepositHistories []History

type ResponseForWithdraw

type ResponseForWithdraw Withdraw

type ResponseForWithdrawHistories

type ResponseForWithdrawHistories []Withdraw

type Withdraw

type Withdraw struct {
	Coin    string `json:"coin"`
	Address string `json:"address"`
	Tag     string `json:"tag"`
	Status  string `json:"status"`
	Txid    string `json:"txid"`

	Fee  float64 `json:"fee"`
	Size float64 `json:"size"`

	Time time.Time `json:"time"`

	ID    int    `json:"id"`
	Notes string `json:"notes,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL