Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabaseConnection ¶
Types ¶
type TXHistory ¶
type TXHistory struct {
ID uint `json:"id"`
Alias string `json:"alias"`
Amount int64 `json:"amount"`
Sender string `json:"sender"`
Receiver string `json:"receiver"`
Fee int64 `json:"fee"`
Hash string `json:"hash"`
LastTransactionRef struct {
Hash string `json:"hash"`
Ordinal int `json:"ordinal"`
} `json:"lastTransactionRef"`
TS string `json:"date"`
Status string `json:"status"`
Failed bool
}
type Wallet ¶
type Wallet struct {
ID uint `gorm:"AUTO_INCREMENT"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt *time.Time
Path Path `gorm:"foreignkey:Alias"`
KeystorePasswordHash string
KeyPasswordHash string
KeyStorePath string
WalletAlias string `gorm:"primary_key;unique"`
Addresses []Address `sql:"-"`
TXHistory []TXHistory `gorm:"foreignkey:Alias"`
ProfilePicture string
WalletTag string
Balance float64 `json:"balance"`
AvailableBalance float64 `json:"available_balance"`
Nonce float64 `json:"nonce"`
TotalBalance float64 `json:"total_balance"`
Delegated float64 `json:"delegated"`
Deposit float64 `json:"deposit"`
Address string `json:"address"`
TokenPrice struct {
DAG struct {
BTC float64 `json:"BTC,omitempty"`
USD float64 `json:"USD,omitempty"`
EUR float64 `json:"EUR,omitempty"`
} `json:"DAG"`
} `json:"token_price"`
}
Wallet holds all wallet information.
Click to show internal directories.
Click to hide internal directories.