Documentation ¶
Index ¶
- func GetRequest(ki types.KeyInfo, addr types.Address, bankAddress string, route string, ...) (*request.Response, error)
- func PostRequest(ki types.KeyInfo, addr types.Address, bankAddress string, route string, ...) (*request.Response, error)
- func ProxyBanksRequest(proxyAddress string, route string) (*request.Response, error)
- func ProxyRetrieveRequest(proxyAddress string, options RetrievalOptions, route string) (*request.Response, error)
- func RegisterValidators(cli CLI) error
- func Retrieval(route string, options RetrievalOptions) error
- type AuthorizeOptions
- type AuthorizeResponse
- type AuthorizeResponseData
- type BalanceOptions
- type BalanceResponse
- type BalanceResponseData
- type Bank
- type BanksOptions
- type BanksResponse
- type CLI
- type Config
- type DepositOptions
- type RefundOptions
- type RefundResponse
- type RefundResponseData
- type RetrievalOptions
- type Route
- type TransactionResponse
- type TransactionResponseData
- type WithdrawOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequest ¶
func PostRequest ¶
func ProxyBanksRequest ¶
func ProxyRetrieveRequest ¶
func RegisterValidators ¶
func Retrieval ¶
func Retrieval(route string, options RetrievalOptions) error
Types ¶
type AuthorizeOptions ¶
type AuthorizeResponse ¶
type AuthorizeResponse struct { Status string `json:"status"` Data AuthorizeResponseData `json:"data"` }
func Authorize ¶
func Authorize(ki types.KeyInfo, addr types.Address, route string, options AuthorizeOptions) (*AuthorizeResponse, error)
type AuthorizeResponseData ¶
type BalanceOptions ¶
type BalanceOptions struct {
BankAddress string `json:"bankAddress"`
}
type BalanceResponse ¶
type BalanceResponse struct { Status string `json:"status"` Data BalanceResponseData `json:"data"` }
func Balance ¶
func Balance(ki types.KeyInfo, addr types.Address, route string, options BalanceOptions) (*BalanceResponse, error)
type BalanceResponseData ¶
type BanksOptions ¶
type BanksOptions struct {
ProxyAddress string `json:"proxyAddress"`
}
type BanksResponse ¶
func Banks ¶
func Banks(route string, options BanksOptions) (*BanksResponse, error)
type Config ¶
type Config struct { Env string `toml:"env"` Route Route `toml:"route"` Wallet types.Wallet `toml:"wallet"` }
func LoadConfiguration ¶
type DepositOptions ¶
type RefundOptions ¶
type RefundOptions struct {
BankAddress string `json:"bankAddress"`
}
type RefundResponse ¶
type RefundResponse struct { Status string `json:"status"` Data RefundResponseData `json:"data"` }
func Refund ¶
func Refund(ki types.KeyInfo, addr types.Address, route string, options RefundOptions) (*RefundResponse, error)
type RefundResponseData ¶
type RetrievalOptions ¶
type TransactionResponse ¶
type TransactionResponse struct { Status string `json:"status"` Data TransactionResponseData `json:"data"` }
func Deposit ¶
func Deposit(ki types.KeyInfo, addr types.Address, route string, options DepositOptions) (*TransactionResponse, error)
func Withdraw ¶
func Withdraw(ki types.KeyInfo, addr types.Address, route string, options WithdrawOptions) (*TransactionResponse, error)
type TransactionResponseData ¶
type WithdrawOptions ¶
Click to show internal directories.
Click to hide internal directories.