Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTarget ¶ added in v0.5.0
type BaseTarget = uint64
type EmbeddedWallet ¶ added in v0.5.0
type Handler ¶
type Handler interface {
Handle()
}
Handler is an abstract function that called when an event happens.
type InvRequester ¶ added in v0.5.0
type InvRequester interface {
Request(MessageSender, []byte)
}
type MessageSender ¶ added in v0.5.0
type MinerConsensus ¶ added in v0.5.0
type MinerConsensus interface {
IsMiningAllowed() bool
}
type ScoreSender ¶ added in v0.5.0
type ScoreSender interface {
Priority()
NonPriority()
}
type SmartState ¶
type SmartState interface {
NewestScriptPKByAddr(addr proto.Address) (crypto.PublicKey, error)
AddingBlockHeight() (uint64, error)
NewestTransactionByID([]byte) (proto.Transaction, error)
NewestTransactionHeightByID([]byte) (uint64, error)
GetByteTree(recipient proto.Recipient) (proto.Script, error)
NewestRecipientToAddress(recipient proto.Recipient) (*proto.Address, error)
NewestAddrByAlias(alias proto.Alias) (proto.Address, error)
NewestLeasingInfo(id crypto.Digest) (*proto.LeaseInfo, error)
IsStateUntouched(account proto.Recipient) (bool, error)
// NewestAccountBalance retrieves balance of address in specific currency, asset is asset's ID.
// nil asset = Waves.
NewestAccountBalance(account proto.Recipient, assetID []byte) (uint64, error)
NewestFullWavesBalance(account proto.Recipient) (*proto.FullWavesBalance, error)
RetrieveNewestIntegerEntry(account proto.Recipient, key string) (*proto.IntegerDataEntry, error)
RetrieveNewestBooleanEntry(account proto.Recipient, key string) (*proto.BooleanDataEntry, error)
RetrieveNewestStringEntry(account proto.Recipient, key string) (*proto.StringDataEntry, error)
RetrieveNewestBinaryEntry(account proto.Recipient, key string) (*proto.BinaryDataEntry, error)
NewestAssetIsSponsored(assetID crypto.Digest) (bool, error)
NewestAssetInfo(assetID crypto.Digest) (*proto.AssetInfo, error)
NewestFullAssetInfo(assetID crypto.Digest) (*proto.FullAssetInfo, error)
NewestScriptByAsset(asset proto.OptionalAsset) (proto.Script, error)
NewestHeaderByHeight(height proto.Height) (*proto.BlockHeader, error)
BlockVRF(blockHeader *proto.BlockHeader, height proto.Height) ([]byte, error)
EstimatorVersion() (int, error)
IsNotFound(err error) bool
}
SmartState is a part of state used by smart contracts.
type TransactionWithBytes ¶
type TransactionWithBytes struct {
T proto.Transaction
B []byte
}
type UtxPool ¶
type UtxPool interface {
Add(t proto.Transaction) error
AddWithBytes(t proto.Transaction, b []byte) error
Exists(t proto.Transaction) bool
Pop() *TransactionWithBytes
AllTransactions() []*TransactionWithBytes
Count() int
ExistsByID(id []byte) bool
}
UtxPool storage interface
Click to show internal directories.
Click to hide internal directories.