Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockchainConfig ¶
type Config ¶
type Config struct {
Mnemonic string `json:"mnemonic"`
Ethereum BlockchainConfig `json:"ethereum"`
Bitcoin BlockchainConfig `json:"bitcoin"`
}
type ECDSASigner ¶
type Wallet ¶
type Wallet interface {
ID(password, idType string) (string, error)
SupportedTokens() []blockchain.Token
Balances(password string) (map[blockchain.TokenName]blockchain.Balance, error)
Balance(password string, token blockchain.Token) (blockchain.Balance, error)
Lookup(token blockchain.Token, txHash string) (transfer.UpdateReceipt, error)
Transfer(password string, token blockchain.Token, to string, amount *big.Int) (string, error)
GetAddress(password string, blockchainName blockchain.BlockchainName) (string, error)
Addresses(password string) (map[blockchain.TokenName]string, error)
VerifyAddress(blockchain blockchain.BlockchainName, address string) error
VerifyBalance(password string, token blockchain.Token, balance *big.Int) error
EthereumAccount(password string) (beth.Account, error)
BitcoinAccount(password string) (libbtc.Account, error)
ECDSASigner(password string) (ECDSASigner, error)
}
Click to show internal directories.
Click to hide internal directories.