Documentation ¶
Index ¶
- Variables
- func SetupViews()
- type DisplayTKSWallet
- type TKSPayment
- type TKSPaymentResult
- type TKSWallet
- func (w TKSWallet) CurrentBalance() (*TKSWalletBalance, error)
- func (w TKSWallet) Save() error
- func (w TKSWallet) SaveToDatabase() error
- func (w TKSWallet) Send(to string, value int64) (TKSPaymentResult, error)
- func (w TKSWallet) UpdateBalance() (*TKSWalletBalance, error)
- func (w TKSWallet) Validate() error
- type TKSWalletBalance
- type TKSWallets
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PAYMENT_GATE_SETTINGS = settings.LoadPaymentGateSettings()
)
Functions ¶
func SetupViews ¶
func SetupViews()
Types ¶
type DisplayTKSWallet ¶
type TKSPayment ¶
type TKSPaymentResult ¶
type TKSWallet ¶
type TKSWallet struct { PublicKey string `json:"address" gorm:"primary_key"` PrivateKey string `json:"private_key,omitempty" sql:"type:varchar(1024)"` Type string `json:"type"` CreatedAt *time.Time `json:"created_at" gorm:"index"` UpdatedAt *time.Time `json:"updated_at" gorm:"index"` DeletedAt *time.Time `json:"deleted_at" gorm:"index"` }
func CreateTKSWallet ¶
func GetAllTKSWallets ¶
func (TKSWallet) CurrentBalance ¶
func (w TKSWallet) CurrentBalance() (*TKSWalletBalance, error)
func (TKSWallet) SaveToDatabase ¶
func (TKSWallet) UpdateBalance ¶
func (w TKSWallet) UpdateBalance() (*TKSWalletBalance, error)
type TKSWalletBalance ¶
type TKSWalletBalance struct { ID int `json:"id" gorm:"primary_key"` PublicKey string `json:"address" gorm:"index"` ETHBalance uint64 `json:"eth_balance` TKSBalance uint64 `json:"tks_balance` TKSWallet TKSWallet `json:"-" gorm:"ForeignKey:PublicKey;AssociationForeignKey:PublicKey"` CreatedAt *time.Time `json:"created_at" gorm:"index"` UpdatedAt *time.Time `json:"updated_at" gorm:"index"` DeletedAt *time.Time `json:"deleted_at" gorm:"index"` }
func FindTKSWalletsWithNonZeroBalance ¶
func FindTKSWalletsWithNonZeroBalance() ([]TKSWalletBalance, error)
func (TKSWalletBalance) DisplayTKSWallet ¶
func (w TKSWalletBalance) DisplayTKSWallet() DisplayTKSWallet
func (TKSWalletBalance) Save ¶
func (w TKSWalletBalance) Save() error
type TKSWallets ¶
type TKSWallets []TKSWallet
Click to show internal directories.
Click to hide internal directories.