Documentation ¶
Index ¶
- type BlocksApplier
- type MockStateManager
- func (a *MockStateManager) AccountBalance(_ proto.Recipient, _ []byte) (uint64, error)
- func (a *MockStateManager) ActivationHeight(_ int16) (uint64, error)
- func (a *MockStateManager) AddBlock([]byte) (*proto.Block, error)
- func (a *MockStateManager) AddBlocks(_ [][]byte, _ bool) error
- func (a *MockStateManager) AddDeserializedBlock(block *proto.Block) (*proto.Block, error)
- func (a *MockStateManager) AddDeserializedBlocks(blocks []*proto.Block) (*proto.Block, error)
- func (a *MockStateManager) AddingBlockHeight() (proto.Height, error)
- func (a *MockStateManager) AddrByAlias(_ proto.Alias) (proto.WavesAddress, error)
- func (a *MockStateManager) AddressesNumber(_ bool) (uint64, error)
- func (a *MockStateManager) AllFeatures() ([]int16, error)
- func (a *MockStateManager) ApprovalHeight(_ int16) (uint64, error)
- func (a *MockStateManager) AssetInfo(_ crypto.Digest) (*proto.AssetInfo, error)
- func (a *MockStateManager) AssetIsSponsored(_ crypto.Digest) (bool, error)
- func (a *MockStateManager) Block(blockID proto.BlockID) (*proto.Block, error)
- func (a *MockStateManager) BlockByHeight(height proto.Height) (*proto.Block, error)
- func (a *MockStateManager) BlockBytes(_ proto.BlockID) ([]byte, error)
- func (a *MockStateManager) BlockBytesByHeight(_ proto.Height) ([]byte, error)
- func (a *MockStateManager) BlockIDToHeight(blockID proto.BlockID) (uint64, error)
- func (a *MockStateManager) BlockchainSettings() (*settings.BlockchainSettings, error)
- func (a *MockStateManager) Close() error
- func (a *MockStateManager) CurrentScore() (*big.Int, error)
- func (a *MockStateManager) EffectiveBalanceStable(_ proto.Recipient, _, _ uint64) (uint64, error)
- func (a *MockStateManager) FullAssetInfo(_ crypto.Digest) (*proto.FullAssetInfo, error)
- func (a *MockStateManager) FullWavesBalance(_ proto.Recipient) (*proto.FullWavesBalance, error)
- func (a *MockStateManager) Header(_ proto.BlockID) (*proto.BlockHeader, error)
- func (a *MockStateManager) HeaderByHeight(height uint64) (*proto.BlockHeader, error)
- func (a *MockStateManager) HeaderBytes(_ proto.BlockID) ([]byte, error)
- func (a *MockStateManager) HeaderBytesByHeight(_ uint64) ([]byte, error)
- func (a *MockStateManager) Height() (proto.Height, error)
- func (a *MockStateManager) HeightToBlockID(_ uint64) (proto.BlockID, error)
- func (a *MockStateManager) HitSourceAtHeight(_ proto.Height) ([]byte, error)
- func (a *MockStateManager) InvokeResultByID(_ crypto.Digest) (*proto.ScriptResult, error)
- func (a *MockStateManager) IsActivated(_ int16) (bool, error)
- func (a *MockStateManager) IsActiveAtHeight(_ int16, _ proto.Height) (bool, error)
- func (a *MockStateManager) IsActiveLeasing(_ crypto.Digest) (bool, error)
- func (a *MockStateManager) IsApproved(_ int16) (bool, error)
- func (a *MockStateManager) IsApprovedAtHeight(_ int16, _ uint64) (bool, error)
- func (a *MockStateManager) IsNotFound(_ error) bool
- func (a *MockStateManager) Map(func(state.State) error) error
- func (a *MockStateManager) Mutex() *lock.RwMutex
- func (a *MockStateManager) NewAddrTransactionsIterator(_ proto.WavesAddress) (state.TransactionIterator, error)
- func (a *MockStateManager) Peers() ([]proto.TCPAddr, error)
- func (a *MockStateManager) ProvidesExtendedApi() (bool, error)
- func (a *MockStateManager) ProvidesStateHashes() (bool, error)
- func (a *MockStateManager) ResetValidationList()
- func (a *MockStateManager) RetrieveBinaryEntry(_ proto.Recipient, _ string) (*proto.BinaryDataEntry, error)
- func (a *MockStateManager) RetrieveBooleanEntry(_ proto.Recipient, _ string) (*proto.BooleanDataEntry, error)
- func (a *MockStateManager) RetrieveEntries(_ proto.Recipient) ([]proto.DataEntry, error)
- func (a *MockStateManager) RetrieveEntry(_ proto.Recipient, _ string) (proto.DataEntry, error)
- func (a *MockStateManager) RetrieveIntegerEntry(_ proto.Recipient, _ string) (*proto.IntegerDataEntry, error)
- func (a *MockStateManager) RetrieveStringEntry(_ proto.Recipient, _ string) (*proto.StringDataEntry, error)
- func (a *MockStateManager) RollbackTo(_ proto.BlockID) error
- func (a *MockStateManager) RollbackToHeight(height uint64) error
- func (a *MockStateManager) SavePeers([]proto.TCPAddr) error
- func (a *MockStateManager) ScoreAtHeight(height uint64) (*big.Int, error)
- func (a *MockStateManager) ScriptInfoByAccount(_ proto.Recipient) (*proto.ScriptInfo, error)
- func (a *MockStateManager) ScriptInfoByAsset(_ crypto.Digest) (*proto.ScriptInfo, error)
- func (a *MockStateManager) StartProvidingExtendedApi() error
- func (a *MockStateManager) StateHashAtHeight(_ uint64) (*proto.StateHash, error)
- func (a *MockStateManager) TopBlock() *proto.Block
- func (a *MockStateManager) TransactionByID(_ []byte) (proto.Transaction, error)
- func (a *MockStateManager) TransactionHeightByID(_ []byte) (proto.Height, error)
- func (a *MockStateManager) ValidateNextTx(_ proto.Transaction, _, _ uint64, _ proto.BlockVersion, _ bool) error
- func (a *MockStateManager) VotesNum(_ int16) (uint64, error)
- func (a *MockStateManager) VotesNumAtHeight(_ int16, _ proto.Height) (uint64, error)
- func (a *MockStateManager) WavesAddressesNumber() (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlocksApplier ¶
type BlocksApplier struct {
// contains filtered or unexported fields
}
func NewBlocksApplier ¶
func NewBlocksApplier() *BlocksApplier
func (*BlocksApplier) ApplyMicro ¶ added in v0.8.8
func (*BlocksApplier) BlockExists ¶ added in v0.8.8
type MockStateManager ¶
func NewMockStateManager ¶
func NewMockStateManager(blocks ...*proto.Block) (*MockStateManager, error)
func (*MockStateManager) AccountBalance ¶
func (*MockStateManager) ActivationHeight ¶
func (a *MockStateManager) ActivationHeight(_ int16) (uint64, error)
func (*MockStateManager) AddBlock ¶
func (a *MockStateManager) AddBlock([]byte) (*proto.Block, error)
func (*MockStateManager) AddDeserializedBlock ¶
func (*MockStateManager) AddDeserializedBlocks ¶ added in v0.10.0
func (*MockStateManager) AddingBlockHeight ¶
func (a *MockStateManager) AddingBlockHeight() (proto.Height, error)
func (*MockStateManager) AddrByAlias ¶
func (a *MockStateManager) AddrByAlias(_ proto.Alias) (proto.WavesAddress, error)
func (*MockStateManager) AddressesNumber ¶
func (a *MockStateManager) AddressesNumber(_ bool) (uint64, error)
func (*MockStateManager) AllFeatures ¶
func (a *MockStateManager) AllFeatures() ([]int16, error)
func (*MockStateManager) ApprovalHeight ¶
func (a *MockStateManager) ApprovalHeight(_ int16) (uint64, error)
func (*MockStateManager) AssetIsSponsored ¶
func (a *MockStateManager) AssetIsSponsored(_ crypto.Digest) (bool, error)
func (*MockStateManager) BlockByHeight ¶
func (*MockStateManager) BlockBytes ¶
func (a *MockStateManager) BlockBytes(_ proto.BlockID) ([]byte, error)
func (*MockStateManager) BlockBytesByHeight ¶
func (a *MockStateManager) BlockBytesByHeight(_ proto.Height) ([]byte, error)
func (*MockStateManager) BlockIDToHeight ¶
func (a *MockStateManager) BlockIDToHeight(blockID proto.BlockID) (uint64, error)
func (*MockStateManager) BlockchainSettings ¶
func (a *MockStateManager) BlockchainSettings() (*settings.BlockchainSettings, error)
func (*MockStateManager) Close ¶
func (a *MockStateManager) Close() error
func (*MockStateManager) CurrentScore ¶
func (a *MockStateManager) CurrentScore() (*big.Int, error)
func (*MockStateManager) EffectiveBalanceStable ¶
func (*MockStateManager) FullAssetInfo ¶
func (a *MockStateManager) FullAssetInfo(_ crypto.Digest) (*proto.FullAssetInfo, error)
func (*MockStateManager) FullWavesBalance ¶
func (a *MockStateManager) FullWavesBalance(_ proto.Recipient) (*proto.FullWavesBalance, error)
func (*MockStateManager) Header ¶
func (a *MockStateManager) Header(_ proto.BlockID) (*proto.BlockHeader, error)
func (*MockStateManager) HeaderByHeight ¶
func (a *MockStateManager) HeaderByHeight(height uint64) (*proto.BlockHeader, error)
func (*MockStateManager) HeaderBytes ¶
func (a *MockStateManager) HeaderBytes(_ proto.BlockID) ([]byte, error)
func (*MockStateManager) HeaderBytesByHeight ¶
func (a *MockStateManager) HeaderBytesByHeight(_ uint64) ([]byte, error)
func (*MockStateManager) HeightToBlockID ¶
func (a *MockStateManager) HeightToBlockID(_ uint64) (proto.BlockID, error)
func (*MockStateManager) HitSourceAtHeight ¶
func (a *MockStateManager) HitSourceAtHeight(_ proto.Height) ([]byte, error)
func (*MockStateManager) InvokeResultByID ¶
func (a *MockStateManager) InvokeResultByID(_ crypto.Digest) (*proto.ScriptResult, error)
func (*MockStateManager) IsActivated ¶
func (a *MockStateManager) IsActivated(_ int16) (bool, error)
func (*MockStateManager) IsActiveAtHeight ¶
func (*MockStateManager) IsActiveLeasing ¶
func (a *MockStateManager) IsActiveLeasing(_ crypto.Digest) (bool, error)
func (*MockStateManager) IsApproved ¶
func (a *MockStateManager) IsApproved(_ int16) (bool, error)
func (*MockStateManager) IsApprovedAtHeight ¶
func (a *MockStateManager) IsApprovedAtHeight(_ int16, _ uint64) (bool, error)
func (*MockStateManager) IsNotFound ¶
func (a *MockStateManager) IsNotFound(_ error) bool
func (*MockStateManager) Mutex ¶
func (a *MockStateManager) Mutex() *lock.RwMutex
func (*MockStateManager) NewAddrTransactionsIterator ¶
func (a *MockStateManager) NewAddrTransactionsIterator(_ proto.WavesAddress) (state.TransactionIterator, error)
func (*MockStateManager) ProvidesExtendedApi ¶
func (a *MockStateManager) ProvidesExtendedApi() (bool, error)
func (*MockStateManager) ProvidesStateHashes ¶
func (a *MockStateManager) ProvidesStateHashes() (bool, error)
func (*MockStateManager) ResetValidationList ¶
func (a *MockStateManager) ResetValidationList()
func (*MockStateManager) RetrieveBinaryEntry ¶
func (a *MockStateManager) RetrieveBinaryEntry(_ proto.Recipient, _ string) (*proto.BinaryDataEntry, error)
func (*MockStateManager) RetrieveBooleanEntry ¶
func (a *MockStateManager) RetrieveBooleanEntry(_ proto.Recipient, _ string) (*proto.BooleanDataEntry, error)
func (*MockStateManager) RetrieveEntries ¶
func (*MockStateManager) RetrieveEntry ¶
func (*MockStateManager) RetrieveIntegerEntry ¶
func (a *MockStateManager) RetrieveIntegerEntry(_ proto.Recipient, _ string) (*proto.IntegerDataEntry, error)
func (*MockStateManager) RetrieveStringEntry ¶
func (a *MockStateManager) RetrieveStringEntry(_ proto.Recipient, _ string) (*proto.StringDataEntry, error)
func (*MockStateManager) RollbackTo ¶
func (a *MockStateManager) RollbackTo(_ proto.BlockID) error
func (*MockStateManager) RollbackToHeight ¶
func (a *MockStateManager) RollbackToHeight(height uint64) error
func (*MockStateManager) ScoreAtHeight ¶
func (a *MockStateManager) ScoreAtHeight(height uint64) (*big.Int, error)
func (*MockStateManager) ScriptInfoByAccount ¶
func (a *MockStateManager) ScriptInfoByAccount(_ proto.Recipient) (*proto.ScriptInfo, error)
func (*MockStateManager) ScriptInfoByAsset ¶
func (a *MockStateManager) ScriptInfoByAsset(_ crypto.Digest) (*proto.ScriptInfo, error)
func (*MockStateManager) StartProvidingExtendedApi ¶
func (a *MockStateManager) StartProvidingExtendedApi() error
func (*MockStateManager) StateHashAtHeight ¶
func (a *MockStateManager) StateHashAtHeight(_ uint64) (*proto.StateHash, error)
func (*MockStateManager) TopBlock ¶
func (a *MockStateManager) TopBlock() *proto.Block
func (*MockStateManager) TransactionByID ¶
func (a *MockStateManager) TransactionByID(_ []byte) (proto.Transaction, error)
func (*MockStateManager) TransactionHeightByID ¶
func (a *MockStateManager) TransactionHeightByID(_ []byte) (proto.Height, error)
func (*MockStateManager) ValidateNextTx ¶
func (a *MockStateManager) ValidateNextTx(_ proto.Transaction, _, _ uint64, _ proto.BlockVersion, _ bool) error
func (*MockStateManager) VotesNumAtHeight ¶
func (*MockStateManager) WavesAddressesNumber ¶
func (a *MockStateManager) WavesAddressesNumber() (uint64, error)
Click to show internal directories.
Click to hide internal directories.