Documentation
¶
Index ¶
- func MineBlock(cm *chain.Manager, minerAddress types.Address) types.Block
- func Network() (*consensus.Network, types.Block)
- type EphemeralWalletStore
- func (es *EphemeralWalletStore) ProcessChainApplyUpdate(cau *chain.ApplyUpdate, mayCommit bool) error
- func (es *EphemeralWalletStore) ProcessChainRevertUpdate(cru *chain.RevertUpdate) error
- func (es *EphemeralWalletStore) Tip() (types.ChainIndex, error)
- func (es *EphemeralWalletStore) UnspentSiacoinElements() (utxos []wallet.SiacoinElement, _ error)
- func (es *EphemeralWalletStore) WalletEventCount() (uint64, error)
- func (es *EphemeralWalletStore) WalletEvents(offset, limit int) ([]wallet.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EphemeralWalletStore ¶
type EphemeralWalletStore struct {
// contains filtered or unexported fields
}
An EphemeralWalletStore is a Store that does not persist its state to disk. It is primarily useful for testing or as a reference implementation.
func NewEphemeralWalletStore ¶
func NewEphemeralWalletStore(pk types.PrivateKey) *EphemeralWalletStore
NewEphemeralWalletStore returns a new EphemeralWalletStore.
func (*EphemeralWalletStore) ProcessChainApplyUpdate ¶
func (es *EphemeralWalletStore) ProcessChainApplyUpdate(cau *chain.ApplyUpdate, mayCommit bool) error
ProcessChainApplyUpdate implements chain.Subscriber.
func (*EphemeralWalletStore) ProcessChainRevertUpdate ¶
func (es *EphemeralWalletStore) ProcessChainRevertUpdate(cru *chain.RevertUpdate) error
ProcessChainRevertUpdate implements chain.Subscriber.
func (*EphemeralWalletStore) Tip ¶
func (es *EphemeralWalletStore) Tip() (types.ChainIndex, error)
Tip returns the last indexed tip of the wallet.
func (*EphemeralWalletStore) UnspentSiacoinElements ¶
func (es *EphemeralWalletStore) UnspentSiacoinElements() (utxos []wallet.SiacoinElement, _ error)
UnspentSiacoinElements returns the wallet's unspent siacoin outputs.
func (*EphemeralWalletStore) WalletEventCount ¶ added in v0.0.2
func (es *EphemeralWalletStore) WalletEventCount() (uint64, error)
WalletEventCount returns the number of events relevant to the wallet.
func (*EphemeralWalletStore) WalletEvents ¶ added in v0.0.2
func (es *EphemeralWalletStore) WalletEvents(offset, limit int) ([]wallet.Event, error)
WalletEvents returns the wallet's events.
Click to show internal directories.
Click to hide internal directories.