api

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: GPL-3.0 Imports: 23 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

type GetBalanceResponse struct {
	Balance          string `json:"balance"`
	Status           string `json:"status,omitempty"`
	ProcessingAmount string `json:"total_processing_amount,omitempty"`
	PendingAmount    string `json:"total_pending_amount,omitempty"`
}

type GetHistoryResponse

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

type GetIncomeByTxResponse added in v0.5.0

type GetIncomeByTxResponse struct {
	Currency string `json:"currency"`
	Income   income `json:"income"`
}

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 ResolveResponse added in v0.5.0

type ResolveResponse struct {
	Address string `json:"address"`
}

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"`
	BinaryComment string     `json:"binary_comment"`
}

type WithdrawalResponse

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

type WithdrawalStatusResponse

type WithdrawalStatusResponse struct {
	UserID  string                `json:"user_id"`
	QueryID string                `json:"query_id"`
	Status  core.WithdrawalStatus `json:"status"`
	TxHash  string                `json:"tx_hash,omitempty"`
}

Jump to

Keyboard shortcuts

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