Documentation ¶
Index ¶
- type Wallet
- func (w *Wallet) AddAccount(account spchainvm.Account)
- func (w *Wallet) Balance() uint64
- func (w *Wallet) CreateAddress() (ids.ShortID, error)
- func (w *Wallet) GenerateTxs(numTxs int) error
- func (w *Wallet) ImportKey(sk *crypto.PrivateKeySECP256K1R)
- func (w *Wallet) MakeTx() (*spchainvm.Tx, error)
- func (w *Wallet) NextTx() *spchainvm.Tx
- func (w Wallet) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
Wallet is a holder for keys and UTXOs.
func (*Wallet) AddAccount ¶
AddAccount adds a new account to this wallet, if this wallet can spend it.
func (*Wallet) CreateAddress ¶
CreateAddress returns a brand new address! Ready to receive funds!
func (*Wallet) GenerateTxs ¶
GenerateTxs generates the transactions that will be sent during the test Generate them all on test initialization so tx generation is not bottleneck in testing
func (*Wallet) ImportKey ¶
func (w *Wallet) ImportKey(sk *crypto.PrivateKeySECP256K1R)
ImportKey imports a private key into this wallet
func (*Wallet) MakeTx ¶
MakeTx creates a new transaction and update the state to after the tx is accepted
Click to show internal directories.
Click to hide internal directories.