Documentation ¶
Index ¶
- func RemoveSlashFromUrl(url string) string
- func StellarPublicKeyToEd25519(stellarPublicKey string) ([]byte, error)
- type AssetDetails
- type DepositResponse
- type ErrorResponse
- type ExchangeDetails
- type Features
- type FeeDetails
- type FetchError
- type FieldDetails
- type FinancialAccountField
- type InfoResponse
- type Sep6Client
- func (c *Sep6Client) CreateDeposit(assetCode string, amount float32, memo int, account string, ...) (*DepositResponse, error)
- func (c *Sep6Client) GetInfo() (*InfoResponse, error)
- func (c *Sep6Client) GetTransaction(transactionID string) (*Transaction, error)
- func (c *Sep6Client) GetTransactions(account string, memo *int, assetCode string, limit *int, order *string) ([]Transaction, error)
- func (c *Sep6Client) RegisterCallbackRoute(server *gin.Engine, path string, handler func(txUpdate Transaction)) error
- type StellarToml
- type SupplyComponents
- type SupplyDetails
- type Transaction
- type TransactionDetails
- type TransactionResponse
- type TransactionsDetails
- type TransactionsResponse
- type ValidationError
- type WithdrawDetails
- type WithdrawTypeDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveSlashFromUrl ¶
Types ¶
type AssetDetails ¶
type DepositResponse ¶
type DepositResponse struct { How string `json:"how"` Instructions map[string]FinancialAccountField `json:"instructions"` ID string `json:"id"` ETA int `json:"eta"` MinAmount string `json:"min_amount"` MaxAmount string `json:"max_amount"` FeeFixed string `json:"fee_fixed"` FeePercent float64 `json:"fee_percent"` ExtraInfo map[string]interface{} `json:"extra_info"` }
type ErrorResponse ¶
type ExchangeDetails ¶
type FeeDetails ¶
type FetchError ¶
func (*FetchError) Error ¶
func (e *FetchError) Error() string
type FieldDetails ¶
type FinancialAccountField ¶
type InfoResponse ¶
type InfoResponse struct { Deposit map[string]AssetDetails `json:"deposit"` Withdraw map[string]WithdrawDetails `json:"withdraw"` Transaction TransactionDetails `json:"transaction"` Transactions TransactionsDetails `json:"transactions"` Features Features `json:"features"` Fee FeeDetails `json:"fee"` DepositExchange ExchangeDetails `json:"deposit-exchange"` WithdrawExchange ExchangeDetails `json:"withdraw-exchange"` Supply map[string]SupplyDetails `json:"supply"` }
type Sep6Client ¶
type Sep6Client struct { SecretKey string AnchorUrl string HorizonServer string Address string HomeDomain string // contains filtered or unexported fields }
func NewSep6Client ¶
func (*Sep6Client) CreateDeposit ¶
func (c *Sep6Client) CreateDeposit( assetCode string, amount float32, memo int, account string, onChangeCallback *string, ) (*DepositResponse, error)
func (*Sep6Client) GetInfo ¶
func (c *Sep6Client) GetInfo() (*InfoResponse, error)
func (*Sep6Client) GetTransaction ¶
func (c *Sep6Client) GetTransaction(transactionID string) (*Transaction, error)
func (*Sep6Client) GetTransactions ¶
func (c *Sep6Client) GetTransactions(account string, memo *int, assetCode string, limit *int, order *string) ([]Transaction, error)
func (*Sep6Client) RegisterCallbackRoute ¶
func (c *Sep6Client) RegisterCallbackRoute(server *gin.Engine, path string, handler func(txUpdate Transaction)) error
type StellarToml ¶
type StellarToml struct {
SigningKey string `toml:"SIGNING_KEY"`
}
type SupplyComponents ¶
type SupplyDetails ¶
type SupplyDetails struct { CirculatingSupply float64 `json:"circulating_supply"` CirculatingSupplyComponents SupplyComponents `json:"circulating_supply_components"` HotwalletReserves float64 `json:"hotwallet_reserves"` ColdwalletReserves float64 `json:"coldwallet_reserves"` TotalReserves float64 `json:"total_reserves"` }
type Transaction ¶
type Transaction struct { ID string `json:"id"` Kind string `json:"kind"` Status string `json:"status"` MoreInfoURL string `json:"more_info_url,omitempty"` AmountIn string `json:"amount_in,omitempty"` AmountOut string `json:"amount_out,omitempty"` AmountFee string `json:"amount_fee,omitempty"` StartedAt string `json:"started_at,omitempty"` CompletedAt *string `json:"completed_at,omitempty"` StellarTxID *string `json:"stellar_transaction_id,omitempty"` ExternalTxID *string `json:"external_transaction_id,omitempty"` }
type TransactionDetails ¶
type TransactionResponse ¶
type TransactionResponse struct {
Transaction Transaction `json:"transaction"`
}
type TransactionsDetails ¶
type TransactionsDetails TransactionDetails
TransactionsDetails mirrors the structure of TransactionDetails since their JSON structure is identical.
type TransactionsResponse ¶
type TransactionsResponse struct {
Transactions []Transaction `json:"transactions"`
}
type ValidationError ¶
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
type WithdrawDetails ¶
type WithdrawDetails struct { AssetDetails Types map[string]WithdrawTypeDetails `json:"types"` }
type WithdrawTypeDetails ¶
type WithdrawTypeDetails struct {
Fields map[string]FieldDetails `json:"fields"`
}
Click to show internal directories.
Click to hide internal directories.