Documentation
¶
Index ¶
- func Transaction(db *DB, fn func(fidl.Queryable) error) (err error)
- type Account
- type AccountType
- type Authorization
- type AuthorizationStatus
- type BankConfig
- type BankService
- func (s BankService) Authorize(address string, proxy string) (bank.AuthModel, error)
- func (s BankService) Balance(address string) (types.FIL, types.FIL, error)
- func (s BankService) Deposit(address string, amount types.FIL, transactionHash string) (types.FIL, error)
- func (s BankService) Redeem(address string, id uuid.UUID, amount types.FIL) (bank.RedeemModel, error)
- func (s BankService) Refund(address string) (bank.RefundModel, error)
- func (s BankService) RegisterProxy(spid string, walletAddress string, price types.FIL) error
- func (s BankService) RegisterWithdrawTransaction(address string, destination string, amount types.FIL, transactionHash string) error
- func (s BankService) ValidateBlockchainTransaction(hash string) (bool, error)
- func (s BankService) Verify(address string, uuid uuid.UUID, amount types.FIL) error
- func (s BankService) Withdraw(address string, destination string, amount types.FIL) (types.FIL, error)
- type Config
- type DB
- type TransactionStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountType ¶
type AccountType int8
const ( StorageProvider AccountType = iota + 1 Client )
func (AccountType) String ¶
func (a AccountType) String() string
type Authorization ¶
type AuthorizationStatus ¶
type AuthorizationStatus int8
const ( AuthorizationOpen AuthorizationStatus = iota + 1 AuthorizationLocked )
func (AuthorizationStatus) String ¶
func (a AuthorizationStatus) String() string
type BankConfig ¶
type BankService ¶
type BankService struct {
// contains filtered or unexported fields
}
func NewBankService ¶
func NewBankService(db *DB, cfg *BankConfig) *BankService
func (BankService) Redeem ¶
func (s BankService) Redeem(address string, id uuid.UUID, amount types.FIL) (bank.RedeemModel, error)
func (BankService) Refund ¶
func (s BankService) Refund(address string) (bank.RefundModel, error)
func (BankService) RegisterProxy ¶
func (BankService) RegisterWithdrawTransaction ¶
func (BankService) ValidateBlockchainTransaction ¶
func (s BankService) ValidateBlockchainTransaction(hash string) (bool, error)
type TransactionStatus ¶
type TransactionStatus int8
const ( TransactionPending TransactionStatus = iota + 1 TransactionCompleted )
func (TransactionStatus) String ¶
func (a TransactionStatus) String() string
Click to show internal directories.
Click to hide internal directories.