Documentation ¶
Index ¶
- type SoftwareWallet
- func (w *SoftwareWallet) AccountBalance(ctx context.Context, client *ethclient.Client, account accounts.Account, ...) (*big.Int, error)
- func (w *SoftwareWallet) AccountBalanceEth(ctx context.Context, client *ethclient.Client, account accounts.Account, ...) (*big.Float, error)
- func (w *SoftwareWallet) CreateTransaction(ctx context.Context, client *ethclient.Client, account accounts.Account, ...) (*types.Transaction, error)
- func (w *SoftwareWallet) PendingAccountBalance(ctx context.Context, client *ethclient.Client, account accounts.Account) (*big.Int, error)
- func (w *SoftwareWallet) PendingAccountBallanceEth(ctx context.Context, client *ethclient.Client, account accounts.Account) (*big.Float, error)
- type Wallet
- type WalletImp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoftwareWallet ¶
type SoftwareWallet struct {
WalletImp
}
func (*SoftwareWallet) AccountBalance ¶
func (*SoftwareWallet) AccountBalanceEth ¶
func (*SoftwareWallet) CreateTransaction ¶
func (*SoftwareWallet) PendingAccountBalance ¶
type Wallet ¶
type Wallet interface { WalletImp AccountBalance(context.Context, *ethclient.Client, accounts.Account, *big.Int) (*big.Int, error) AccountBalanceEth(context.Context, *ethclient.Client, accounts.Account, *big.Int) (*big.Float, error) PendingAccountBalance(context.Context, *ethclient.Client, accounts.Account) (*big.Int, error) PendingAccountBallanceEth(context.Context, *ethclient.Client, accounts.Account) (*big.Float, error) CreateTransaction(context.Context, *ethclient.Client, accounts.Account, common.Address, *big.Int, uint64) (*types.Transaction, error) }
type WalletImp ¶
type WalletImp interface { accounts.Wallet SignHash(accounts.Account, []byte) ([]byte, error) SignHashWithPassphrase(accounts.Account, string, []byte) ([]byte, error) Unpin(accounts.Account) error PrivateKey(accounts.Account) (*ecdsa.PrivateKey, error) PrivateKeyBytes(accounts.Account) ([]byte, error) PrivateKeyHex(accounts.Account) (string, error) PublicKey(accounts.Account) (*ecdsa.PublicKey, error) PublicKeyBytes(accounts.Account) ([]byte, error) PublicKeyHex(accounts.Account) (string, error) Address(accounts.Account) (common.Address, error) AddressBytes(accounts.Account) ([]byte, error) AddressHex(accounts.Account) (string, error) Path(accounts.Account) (string, error) }
Click to show internal directories.
Click to hide internal directories.