api

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(mux *http.ServeMux, h *Handler)

Types

type GetAddressesResponse

type GetAddressesResponse struct {
	Addresses []WalletAddress `json:"addresses"`
}

type GetBalanceResponse deprecated

type GetBalanceResponse struct {
	Side     string    `json:"counting_side"`
	Balances []balance `json:"balances"`
}

Deprecated: GetBalance method renamed to GetIncome

type GetHistoryResponse

type GetHistoryResponse struct {
	Incomes []income `json:"incomes"`
}

type GetIncomeResponse

type GetIncomeResponse struct {
	Side         string        `json:"counting_side"`
	TotalIncomes []totalIncome `json:"total_income"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(s storage, b blockchain, token string, shard byte, hotWalletAddress address.Address) *Handler

type ServiceJettonWithdrawalRequest

type ServiceJettonWithdrawalRequest struct {
	Owner        string `json:"owner"`
	JettonMaster string `json:"jetton_master"`
}

type ServiceTonWithdrawalRequest

type ServiceTonWithdrawalRequest struct {
	From string `json:"from"`
}

type WalletAddress

type WalletAddress struct {
	Address  string `json:"address"`
	Currency string `json:"currency"`
}

type WithdrawalRequest

type WithdrawalRequest struct {
	UserID      string     `json:"user_id"`
	QueryID     string     `json:"query_id"`
	Currency    string     `json:"currency"`
	Amount      core.Coins `json:"amount"`
	Destination string     `json:"destination"`
	Comment     string     `json:"comment"`
}

type WithdrawalResponse

type WithdrawalResponse struct {
	ID int64 `json:"ID"`
}

type WithdrawalStatusResponse

type WithdrawalStatusResponse struct {
	Status core.WithdrawalStatus `json:"status"`
}

Jump to

Keyboard shortcuts

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