Documentation ¶
Index ¶
- Variables
- type AddressInfo
- type Alert
- type AssetInfo
- type Backend
- func (b *Backend) AddAddressBook(name string, address string) error
- func (b *Backend) AddAsset(asset string) error
- func (b *Backend) CreateAsset(symbol string, decimals string, metadata string) error
- func (b *Backend) GetAccountStats() []*GenericInfo
- func (b *Backend) GetAddress() string
- func (b *Backend) GetAddressBook() []*AddressInfo
- func (b *Backend) GetAllAssets() []*AssetInfo
- func (b *Backend) GetBalance() ([]*BalanceInfo, error)
- func (b *Backend) GetChainID() string
- func (b *Backend) GetFaucetSolutions() *FaucetSolutions
- func (b *Backend) GetFeed() ([]*FeedObject, error)
- func (b *Backend) GetFeedInfo() (*FeedInfo, error)
- func (b *Backend) GetLatestBlocks() []*BlockInfo
- func (b *Backend) GetMyAssets() []*AssetInfo
- func (b *Backend) GetTransactionStats() []*GenericInfo
- func (b *Backend) GetTransactions() *Transactions
- func (b *Backend) GetUnitPrices() []*GenericInfo
- func (b *Backend) Message(message string, url string) error
- func (b *Backend) MintAsset(asset string, address string, amount string) error
- func (b *Backend) Shutdown(context.Context) error
- func (b *Backend) Start(ctx context.Context) error
- func (b *Backend) StartFaucetSearch() (*FaucetSearchInfo, error)
- func (b *Backend) Transfer(asset string, address string, amount string, memo string) error
- type BalanceInfo
- type BlockInfo
- type Config
- type FaucetSearchInfo
- type FaucetSolutions
- type FeedInfo
- type FeedObject
- type GenericInfo
- type HTMLMeta
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) DeleteDBKey(k []byte) error
- func (s *Storage) GetAddresses() ([]*AddressInfo, error)
- func (s *Storage) GetAssets() ([]ids.ID, []bool, error)
- func (s *Storage) GetKey() (ed25519.PrivateKey, error)
- func (s *Storage) GetSolutions() ([]*FaucetSearchInfo, error)
- func (s *Storage) GetTransactions() ([]*TransactionInfo, error)
- func (s *Storage) HasAsset(assetID ids.ID) (bool, error)
- func (s *Storage) StoreAddress(address string, nickname string) error
- func (s *Storage) StoreAsset(assetID ids.ID, owned bool) error
- func (s *Storage) StoreKey(privateKey ed25519.PrivateKey) error
- func (s *Storage) StoreSolution(solution *FaucetSearchInfo) error
- func (s *Storage) StoreTransaction(tx *TransactionInfo) error
- type TimeStat
- type TransactionInfo
- type Transactions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicate = errors.New("duplicate") ErrAssetMissing = errors.New("asset missing") )
Functions ¶
This section is empty.
Types ¶
type AddressInfo ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) AddAddressBook ¶
Any existing address will be overwritten with a new name
func (*Backend) CreateAsset ¶
func (*Backend) GetAccountStats ¶
func (b *Backend) GetAccountStats() []*GenericInfo
func (*Backend) GetAddress ¶
func (*Backend) GetAddressBook ¶
func (b *Backend) GetAddressBook() []*AddressInfo
func (*Backend) GetAllAssets ¶
func (*Backend) GetBalance ¶
func (b *Backend) GetBalance() ([]*BalanceInfo, error)
func (*Backend) GetChainID ¶
func (*Backend) GetFaucetSolutions ¶
func (b *Backend) GetFaucetSolutions() *FaucetSolutions
func (*Backend) GetFeed ¶
func (b *Backend) GetFeed() ([]*FeedObject, error)
func (*Backend) GetFeedInfo ¶
func (*Backend) GetLatestBlocks ¶
func (*Backend) GetMyAssets ¶
func (*Backend) GetTransactionStats ¶
func (b *Backend) GetTransactionStats() []*GenericInfo
func (*Backend) GetTransactions ¶
func (b *Backend) GetTransactions() *Transactions
func (*Backend) GetUnitPrices ¶
func (b *Backend) GetUnitPrices() []*GenericInfo
func (*Backend) StartFaucetSearch ¶
func (b *Backend) StartFaucetSearch() (*FaucetSearchInfo, error)
type FaucetSearchInfo ¶
type FaucetSolutions ¶
type FaucetSolutions struct { Alerts []*Alert CurrentSearch *FaucetSearchInfo PastSearches []*FaucetSearchInfo }
type FeedObject ¶
type GenericInfo ¶
type HTMLMeta ¶
type HTMLMeta struct { URL string Host string SiteName string Title string Description string Image string }
Inspiration: https://gist.github.com/inotnako/c4a82f6723f6ccea5d83c5d3689373dd
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func OpenStorage ¶
func (*Storage) DeleteDBKey ¶
func (*Storage) GetAddresses ¶
func (s *Storage) GetAddresses() ([]*AddressInfo, error)
func (*Storage) GetSolutions ¶
func (s *Storage) GetSolutions() ([]*FaucetSearchInfo, error)
func (*Storage) GetTransactions ¶
func (s *Storage) GetTransactions() ([]*TransactionInfo, error)
func (*Storage) StoreAddress ¶
func (*Storage) StoreSolution ¶
func (s *Storage) StoreSolution(solution *FaucetSearchInfo) error
func (*Storage) StoreTransaction ¶
func (s *Storage) StoreTransaction(tx *TransactionInfo) error
type TransactionInfo ¶
type Transactions ¶
type Transactions struct { Alerts []*Alert TxInfos []*TransactionInfo }
Click to show internal directories.
Click to hide internal directories.