models

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 1 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 {
	CurrencyID uint16     `json:"currency_id"`
	Available  *big.Float `json:"available"`
	Locked     *big.Float `json:"locked"`
	Frozen     *big.Float `json:"frozen"`
}

Balance model.

type Currency

type Currency struct {
	ID                uint16     `json:"id"`
	Currency          string     `json:"currency"`
	FullName          string     `json:"fullname"`
	LogoURL           string     `json:"logo_url"`
	Chain             string     `json:"chain"`
	Contract          string     `json:"contract"`
	Decimals          uint8      `json:"decimals"`
	Confirm           uint8      `json:"confirm"`
	DepositEnabled    bool       `json:"deposit_enabled"`
	WithdrawEnabled   bool       `json:"withdraw_enabled"`
	DepositMinAmount  *big.Float `json:"deposit_min_amount"`
	WithdrawMinAmount *big.Float `json:"withdraw_min_amount"`
	WithdrawMaxAmount *big.Float `json:"withdraw_max_amount"`
	WithdrawFeeRate   *big.Float `json:"withdraw_fee_rate"`

	WithdrawPrecision uint8 `json:"withdraw_precision"`
}

Currency model.

type DepositInfo

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

DepositInfo model.

type LockBalance

type LockBalance struct {
	IsIdempotentRequest bool `json:"is_idempotent_request"`
}

LockBalance model.

type LockedBalance

type LockedBalance struct {
	CurrencyID   uint16     `json:"currency_id"`
	AmountLocked *big.Float `json:"amount_locked"`
}

LockedBalance model.

type Transfer

type Transfer struct {
	TransactionID       uint64 `json:"transaction_id"`
	IsIdempotentRequest bool   `json:"is_idempotent_request"`
}

Transfer model.

type UnlockBalance

type UnlockBalance struct {
	IsIdempotentRequest bool `json:"is_idempotent_request"`
}

UnlockBalance model.

type UserInfo

type UserInfo struct {
	UserID   string `json:"user_id"`
	WalletID uint64 `json:"wallet_id"`
}

UserInfo model.

type Withdraw

type Withdraw struct {
	TransactionID       uint64 `json:"transaction_id"`
	IsIdempotentRequest bool   `json:"is_idempotent_request"`
}

Withdraw model.

Jump to

Keyboard shortcuts

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