types

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 9 Imported by: 2

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 EmbeddedWallet interface {
	SignTransactionWith(pk crypto.PublicKey, tx proto.Transaction) error
	FindPublicKeyByAddress(address proto.WavesAddress, scheme proto.Scheme) (crypto.PublicKey, error)
	BLSPairByWavesPK(publicKey crypto.PublicKey) (bls.SecretKey, bls.PublicKey, error)
	Load(password []byte) error
	AccountSeeds() [][]byte
	KeyPairsBLS() ([]bls.PublicKey, []bls.SecretKey, error)
}

type EndorsementPool added in v0.11.0

type EndorsementPool interface {
	Add(e *proto.EndorseBlock, endorserPublicKey bls.PublicKey,
		lastFinalizedHeight proto.Height, lastFinalizedBlockID proto.BlockID, balance uint64,
		parentBlockID proto.BlockID) (bool, error)
	GetAll() []proto.EndorseBlock
	GetEndorsers() []bls.PublicKey
	SaveBlockGenerator(blockGenerator *crypto.PublicKey)
	BlockGenerator() (crypto.PublicKey, error)
	FormFinalization(lastFinalizationHeight proto.Height) (proto.FinalizationVoting, error)
	Verify() (bool, error)
	Len() int
	CleanAll()
}

EndorsementPool storage interface.

type EnrichedSmartState added in v0.11.0

type EnrichedSmartState interface {
	SmartState

	// WavesBalanceProfile returns WavesBalanceProfile structure retrieved by proto.AddressID of an account.
	// This function always returns the newest available state of Waves balance of account.
	// Thought, it can't be used during transaction processing, because the state does no hold changes between txs.
	// The method must be used ONLY in the Ride environment for retrieving data from state.
	// The boundaries of the generating balance are calculated for the current height of applying block,
	// instead of the last block height.
	//
	// For example, for the block validation we are use min effective balance of the account from height 1 to 1000.
	// This function uses heights from 2 to 1001, where 1001 is the height of the applying block.
	// All changes of effective balance during the applying block are affecting the generating balance.
	WavesBalanceProfile(id proto.AddressID) (*WavesBalanceProfile, error)

	// NewestAssetBalanceByAddressID returns the most actual asset balance by given proto.AddressID and
	// assets crypto.Digest.
	NewestAssetBalanceByAddressID(id proto.AddressID, asset crypto.Digest) (uint64, error)
}

EnrichedSmartState is enriched SmartState interface for ride WrappedState. So it also can be used as SmartState interface.

type Handler

type Handler interface {
	Handle()
}

Handler is an abstract function that called when an event happens.

type ID added in v0.5.0

type ID interface {
	ID() string
}

type InvRequester added in v0.5.0

type InvRequester interface {
	Request(MessageSender, []byte)
}

type MessageSender added in v0.5.0

type MessageSender interface {
	SendMessage(proto.Message)
}

type Miner added in v0.5.0

type Miner interface {
	MineKeyBlock(ctx context.Context, t proto.Timestamp, k proto.KeyPair, parent proto.BlockID, baseTarget BaseTarget, gs []byte, vrf []byte) (*proto.Block, proto.MiningLimits, error)
}

type MinerConsensus added in v0.5.0

type MinerConsensus interface {
	IsMiningAllowed() bool
}

type MockEnrichedSmartState added in v0.11.0

type MockEnrichedSmartState struct {
	mock.Mock
}

MockEnrichedSmartState is an autogenerated mock type for the EnrichedSmartState type

func NewMockEnrichedSmartState added in v0.11.0

func NewMockEnrichedSmartState(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEnrichedSmartState

NewMockEnrichedSmartState creates a new instance of MockEnrichedSmartState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockEnrichedSmartState) AddingBlockHeight added in v0.11.0

func (_mock *MockEnrichedSmartState) AddingBlockHeight() (uint64, error)

AddingBlockHeight provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) EXPECT added in v0.11.0

func (*MockEnrichedSmartState) EstimatorVersion added in v0.11.0

func (_mock *MockEnrichedSmartState) EstimatorVersion() (int, error)

EstimatorVersion provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) IsNotFound added in v0.11.0

func (_mock *MockEnrichedSmartState) IsNotFound(err error) bool

IsNotFound provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) IsStateUntouched added in v0.11.0

func (_mock *MockEnrichedSmartState) IsStateUntouched(account proto.Recipient) (bool, error)

IsStateUntouched provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestAddrByAlias added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestAddrByAlias(alias proto.Alias) (proto.WavesAddress, error)

NewestAddrByAlias provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestAssetBalance added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestAssetBalance(account proto.Recipient, assetID crypto.Digest) (uint64, error)

NewestAssetBalance provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestAssetBalanceByAddressID added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestAssetBalanceByAddressID(id proto.AddressID, asset crypto.Digest) (uint64, error)

NewestAssetBalanceByAddressID provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestAssetConstInfo added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestAssetConstInfo(assetID proto.AssetID) (*proto.AssetConstInfo, error)

NewestAssetConstInfo provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestAssetInfo added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestAssetInfo(assetID crypto.Digest) (*proto.AssetInfo, error)

NewestAssetInfo provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestAssetIsSponsored added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestAssetIsSponsored(assetID crypto.Digest) (bool, error)

NewestAssetIsSponsored provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestBlockInfoByHeight added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestBlockInfoByHeight(height proto.Height) (*proto.BlockInfo, error)

NewestBlockInfoByHeight provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestFullAssetInfo added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestFullAssetInfo(assetID crypto.Digest) (*proto.FullAssetInfo, error)

NewestFullAssetInfo provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestFullWavesBalance added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestFullWavesBalance(account proto.Recipient) (*proto.FullWavesBalance, error)

NewestFullWavesBalance provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestLeasingInfo added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestLeasingInfo(id crypto.Digest) (*proto.LeaseInfo, error)

NewestLeasingInfo provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestRecipientToAddress added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestRecipientToAddress(recipient proto.Recipient) (proto.WavesAddress, error)

NewestRecipientToAddress provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestScriptByAccount added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestScriptByAccount(account proto.Recipient) (*ast.Tree, error)

NewestScriptByAccount provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestScriptByAsset added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestScriptByAsset(assetID crypto.Digest) (*ast.Tree, error)

NewestScriptByAsset provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestScriptBytesByAccount added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestScriptBytesByAccount(account proto.Recipient) (proto.Script, error)

NewestScriptBytesByAccount provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestScriptPKByAddr added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestScriptPKByAddr(addr proto.WavesAddress) (crypto.PublicKey, error)

NewestScriptPKByAddr provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestTransactionByID added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestTransactionByID(bytes []byte) (proto.Transaction, error)

NewestTransactionByID provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestTransactionHeightByID added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestTransactionHeightByID(bytes []byte) (uint64, error)

NewestTransactionHeightByID provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) NewestWavesBalance added in v0.11.0

func (_mock *MockEnrichedSmartState) NewestWavesBalance(account proto.Recipient) (uint64, error)

NewestWavesBalance provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) RetrieveEntries added in v0.11.0

func (_mock *MockEnrichedSmartState) RetrieveEntries(account proto.Recipient) ([]proto.DataEntry, error)

RetrieveEntries provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) RetrieveNewestBinaryEntry added in v0.11.0

func (_mock *MockEnrichedSmartState) RetrieveNewestBinaryEntry(account proto.Recipient, key string) (*proto.BinaryDataEntry, error)

RetrieveNewestBinaryEntry provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) RetrieveNewestBooleanEntry added in v0.11.0

func (_mock *MockEnrichedSmartState) RetrieveNewestBooleanEntry(account proto.Recipient, key string) (*proto.BooleanDataEntry, error)

RetrieveNewestBooleanEntry provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) RetrieveNewestIntegerEntry added in v0.11.0

func (_mock *MockEnrichedSmartState) RetrieveNewestIntegerEntry(account proto.Recipient, key string) (*proto.IntegerDataEntry, error)

RetrieveNewestIntegerEntry provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) RetrieveNewestStringEntry added in v0.11.0

func (_mock *MockEnrichedSmartState) RetrieveNewestStringEntry(account proto.Recipient, key string) (*proto.StringDataEntry, error)

RetrieveNewestStringEntry provides a mock function for the type MockEnrichedSmartState

func (*MockEnrichedSmartState) WavesBalanceProfile added in v0.11.0

func (_mock *MockEnrichedSmartState) WavesBalanceProfile(id proto.AddressID) (*WavesBalanceProfile, error)

WavesBalanceProfile provides a mock function for the type MockEnrichedSmartState

type MockEnrichedSmartState_AddingBlockHeight_Call added in v0.11.0

type MockEnrichedSmartState_AddingBlockHeight_Call struct {
	*mock.Call
}

MockEnrichedSmartState_AddingBlockHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddingBlockHeight'

func (*MockEnrichedSmartState_AddingBlockHeight_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_AddingBlockHeight_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_AddingBlockHeight_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_EstimatorVersion_Call added in v0.11.0

type MockEnrichedSmartState_EstimatorVersion_Call struct {
	*mock.Call
}

MockEnrichedSmartState_EstimatorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimatorVersion'

func (*MockEnrichedSmartState_EstimatorVersion_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_EstimatorVersion_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_EstimatorVersion_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_Expecter added in v0.11.0

type MockEnrichedSmartState_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockEnrichedSmartState_Expecter) AddingBlockHeight added in v0.11.0

AddingBlockHeight is a helper method to define mock.On call

func (*MockEnrichedSmartState_Expecter) EstimatorVersion added in v0.11.0

EstimatorVersion is a helper method to define mock.On call

func (*MockEnrichedSmartState_Expecter) IsNotFound added in v0.11.0

IsNotFound is a helper method to define mock.On call

  • err error

func (*MockEnrichedSmartState_Expecter) IsStateUntouched added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) IsStateUntouched(account interface{}) *MockEnrichedSmartState_IsStateUntouched_Call

IsStateUntouched is a helper method to define mock.On call

  • account proto.Recipient

func (*MockEnrichedSmartState_Expecter) NewestAddrByAlias added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestAddrByAlias(alias interface{}) *MockEnrichedSmartState_NewestAddrByAlias_Call

NewestAddrByAlias is a helper method to define mock.On call

  • alias proto.Alias

func (*MockEnrichedSmartState_Expecter) NewestAssetBalance added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestAssetBalance(account interface{}, assetID interface{}) *MockEnrichedSmartState_NewestAssetBalance_Call

NewestAssetBalance is a helper method to define mock.On call

  • account proto.Recipient
  • assetID crypto.Digest

func (*MockEnrichedSmartState_Expecter) NewestAssetBalanceByAddressID added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestAssetBalanceByAddressID(id interface{}, asset interface{}) *MockEnrichedSmartState_NewestAssetBalanceByAddressID_Call

NewestAssetBalanceByAddressID is a helper method to define mock.On call

  • id proto.AddressID
  • asset crypto.Digest

func (*MockEnrichedSmartState_Expecter) NewestAssetConstInfo added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestAssetConstInfo(assetID interface{}) *MockEnrichedSmartState_NewestAssetConstInfo_Call

NewestAssetConstInfo is a helper method to define mock.On call

  • assetID proto.AssetID

func (*MockEnrichedSmartState_Expecter) NewestAssetInfo added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestAssetInfo(assetID interface{}) *MockEnrichedSmartState_NewestAssetInfo_Call

NewestAssetInfo is a helper method to define mock.On call

  • assetID crypto.Digest

func (*MockEnrichedSmartState_Expecter) NewestAssetIsSponsored added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestAssetIsSponsored(assetID interface{}) *MockEnrichedSmartState_NewestAssetIsSponsored_Call

NewestAssetIsSponsored is a helper method to define mock.On call

  • assetID crypto.Digest

func (*MockEnrichedSmartState_Expecter) NewestBlockInfoByHeight added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestBlockInfoByHeight(height interface{}) *MockEnrichedSmartState_NewestBlockInfoByHeight_Call

NewestBlockInfoByHeight is a helper method to define mock.On call

  • height proto.Height

func (*MockEnrichedSmartState_Expecter) NewestFullAssetInfo added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestFullAssetInfo(assetID interface{}) *MockEnrichedSmartState_NewestFullAssetInfo_Call

NewestFullAssetInfo is a helper method to define mock.On call

  • assetID crypto.Digest

func (*MockEnrichedSmartState_Expecter) NewestFullWavesBalance added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestFullWavesBalance(account interface{}) *MockEnrichedSmartState_NewestFullWavesBalance_Call

NewestFullWavesBalance is a helper method to define mock.On call

  • account proto.Recipient

func (*MockEnrichedSmartState_Expecter) NewestLeasingInfo added in v0.11.0

NewestLeasingInfo is a helper method to define mock.On call

  • id crypto.Digest

func (*MockEnrichedSmartState_Expecter) NewestRecipientToAddress added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestRecipientToAddress(recipient interface{}) *MockEnrichedSmartState_NewestRecipientToAddress_Call

NewestRecipientToAddress is a helper method to define mock.On call

  • recipient proto.Recipient

func (*MockEnrichedSmartState_Expecter) NewestScriptByAccount added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestScriptByAccount(account interface{}) *MockEnrichedSmartState_NewestScriptByAccount_Call

NewestScriptByAccount is a helper method to define mock.On call

  • account proto.Recipient

func (*MockEnrichedSmartState_Expecter) NewestScriptByAsset added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestScriptByAsset(assetID interface{}) *MockEnrichedSmartState_NewestScriptByAsset_Call

NewestScriptByAsset is a helper method to define mock.On call

  • assetID crypto.Digest

func (*MockEnrichedSmartState_Expecter) NewestScriptBytesByAccount added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestScriptBytesByAccount(account interface{}) *MockEnrichedSmartState_NewestScriptBytesByAccount_Call

NewestScriptBytesByAccount is a helper method to define mock.On call

  • account proto.Recipient

func (*MockEnrichedSmartState_Expecter) NewestScriptPKByAddr added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestScriptPKByAddr(addr interface{}) *MockEnrichedSmartState_NewestScriptPKByAddr_Call

NewestScriptPKByAddr is a helper method to define mock.On call

  • addr proto.WavesAddress

func (*MockEnrichedSmartState_Expecter) NewestTransactionByID added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestTransactionByID(bytes interface{}) *MockEnrichedSmartState_NewestTransactionByID_Call

NewestTransactionByID is a helper method to define mock.On call

  • bytes []byte

func (*MockEnrichedSmartState_Expecter) NewestTransactionHeightByID added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestTransactionHeightByID(bytes interface{}) *MockEnrichedSmartState_NewestTransactionHeightByID_Call

NewestTransactionHeightByID is a helper method to define mock.On call

  • bytes []byte

func (*MockEnrichedSmartState_Expecter) NewestWavesBalance added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) NewestWavesBalance(account interface{}) *MockEnrichedSmartState_NewestWavesBalance_Call

NewestWavesBalance is a helper method to define mock.On call

  • account proto.Recipient

func (*MockEnrichedSmartState_Expecter) RetrieveEntries added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) RetrieveEntries(account interface{}) *MockEnrichedSmartState_RetrieveEntries_Call

RetrieveEntries is a helper method to define mock.On call

  • account proto.Recipient

func (*MockEnrichedSmartState_Expecter) RetrieveNewestBinaryEntry added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) RetrieveNewestBinaryEntry(account interface{}, key interface{}) *MockEnrichedSmartState_RetrieveNewestBinaryEntry_Call

RetrieveNewestBinaryEntry is a helper method to define mock.On call

  • account proto.Recipient
  • key string

func (*MockEnrichedSmartState_Expecter) RetrieveNewestBooleanEntry added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) RetrieveNewestBooleanEntry(account interface{}, key interface{}) *MockEnrichedSmartState_RetrieveNewestBooleanEntry_Call

RetrieveNewestBooleanEntry is a helper method to define mock.On call

  • account proto.Recipient
  • key string

func (*MockEnrichedSmartState_Expecter) RetrieveNewestIntegerEntry added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) RetrieveNewestIntegerEntry(account interface{}, key interface{}) *MockEnrichedSmartState_RetrieveNewestIntegerEntry_Call

RetrieveNewestIntegerEntry is a helper method to define mock.On call

  • account proto.Recipient
  • key string

func (*MockEnrichedSmartState_Expecter) RetrieveNewestStringEntry added in v0.11.0

func (_e *MockEnrichedSmartState_Expecter) RetrieveNewestStringEntry(account interface{}, key interface{}) *MockEnrichedSmartState_RetrieveNewestStringEntry_Call

RetrieveNewestStringEntry is a helper method to define mock.On call

  • account proto.Recipient
  • key string

func (*MockEnrichedSmartState_Expecter) WavesBalanceProfile added in v0.11.0

WavesBalanceProfile is a helper method to define mock.On call

  • id proto.AddressID

type MockEnrichedSmartState_IsNotFound_Call added in v0.11.0

type MockEnrichedSmartState_IsNotFound_Call struct {
	*mock.Call
}

MockEnrichedSmartState_IsNotFound_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsNotFound'

func (*MockEnrichedSmartState_IsNotFound_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_IsNotFound_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_IsNotFound_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_IsStateUntouched_Call added in v0.11.0

type MockEnrichedSmartState_IsStateUntouched_Call struct {
	*mock.Call
}

MockEnrichedSmartState_IsStateUntouched_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsStateUntouched'

func (*MockEnrichedSmartState_IsStateUntouched_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_IsStateUntouched_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_IsStateUntouched_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestAddrByAlias_Call added in v0.11.0

type MockEnrichedSmartState_NewestAddrByAlias_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestAddrByAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAddrByAlias'

func (*MockEnrichedSmartState_NewestAddrByAlias_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestAddrByAlias_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestAddrByAlias_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestAssetBalanceByAddressID_Call added in v0.11.0

type MockEnrichedSmartState_NewestAssetBalanceByAddressID_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestAssetBalanceByAddressID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetBalanceByAddressID'

func (*MockEnrichedSmartState_NewestAssetBalanceByAddressID_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetBalanceByAddressID_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetBalanceByAddressID_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestAssetBalance_Call added in v0.11.0

type MockEnrichedSmartState_NewestAssetBalance_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestAssetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetBalance'

func (*MockEnrichedSmartState_NewestAssetBalance_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetBalance_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetBalance_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestAssetConstInfo_Call added in v0.11.0

type MockEnrichedSmartState_NewestAssetConstInfo_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestAssetConstInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetConstInfo'

func (*MockEnrichedSmartState_NewestAssetConstInfo_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetConstInfo_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetConstInfo_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestAssetInfo_Call added in v0.11.0

type MockEnrichedSmartState_NewestAssetInfo_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestAssetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetInfo'

func (*MockEnrichedSmartState_NewestAssetInfo_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetInfo_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetInfo_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestAssetIsSponsored_Call added in v0.11.0

type MockEnrichedSmartState_NewestAssetIsSponsored_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestAssetIsSponsored_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetIsSponsored'

func (*MockEnrichedSmartState_NewestAssetIsSponsored_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetIsSponsored_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestAssetIsSponsored_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestBlockInfoByHeight_Call added in v0.11.0

type MockEnrichedSmartState_NewestBlockInfoByHeight_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestBlockInfoByHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestBlockInfoByHeight'

func (*MockEnrichedSmartState_NewestBlockInfoByHeight_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestBlockInfoByHeight_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestBlockInfoByHeight_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestFullAssetInfo_Call added in v0.11.0

type MockEnrichedSmartState_NewestFullAssetInfo_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestFullAssetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestFullAssetInfo'

func (*MockEnrichedSmartState_NewestFullAssetInfo_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestFullAssetInfo_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestFullAssetInfo_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestFullWavesBalance_Call added in v0.11.0

type MockEnrichedSmartState_NewestFullWavesBalance_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestFullWavesBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestFullWavesBalance'

func (*MockEnrichedSmartState_NewestFullWavesBalance_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestFullWavesBalance_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestFullWavesBalance_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestLeasingInfo_Call added in v0.11.0

type MockEnrichedSmartState_NewestLeasingInfo_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestLeasingInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestLeasingInfo'

func (*MockEnrichedSmartState_NewestLeasingInfo_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestLeasingInfo_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestLeasingInfo_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestRecipientToAddress_Call added in v0.11.0

type MockEnrichedSmartState_NewestRecipientToAddress_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestRecipientToAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestRecipientToAddress'

func (*MockEnrichedSmartState_NewestRecipientToAddress_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestRecipientToAddress_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestRecipientToAddress_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestScriptByAccount_Call added in v0.11.0

type MockEnrichedSmartState_NewestScriptByAccount_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestScriptByAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestScriptByAccount'

func (*MockEnrichedSmartState_NewestScriptByAccount_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestScriptByAccount_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestScriptByAccount_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestScriptByAsset_Call added in v0.11.0

type MockEnrichedSmartState_NewestScriptByAsset_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestScriptByAsset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestScriptByAsset'

func (*MockEnrichedSmartState_NewestScriptByAsset_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestScriptByAsset_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestScriptByAsset_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestScriptBytesByAccount_Call added in v0.11.0

type MockEnrichedSmartState_NewestScriptBytesByAccount_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestScriptBytesByAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestScriptBytesByAccount'

func (*MockEnrichedSmartState_NewestScriptBytesByAccount_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestScriptBytesByAccount_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestScriptBytesByAccount_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestScriptPKByAddr_Call added in v0.11.0

type MockEnrichedSmartState_NewestScriptPKByAddr_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestScriptPKByAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestScriptPKByAddr'

func (*MockEnrichedSmartState_NewestScriptPKByAddr_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestScriptPKByAddr_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestScriptPKByAddr_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestTransactionByID_Call added in v0.11.0

type MockEnrichedSmartState_NewestTransactionByID_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestTransactionByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestTransactionByID'

func (*MockEnrichedSmartState_NewestTransactionByID_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestTransactionByID_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestTransactionByID_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestTransactionHeightByID_Call added in v0.11.0

type MockEnrichedSmartState_NewestTransactionHeightByID_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestTransactionHeightByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestTransactionHeightByID'

func (*MockEnrichedSmartState_NewestTransactionHeightByID_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestTransactionHeightByID_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestTransactionHeightByID_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_NewestWavesBalance_Call added in v0.11.0

type MockEnrichedSmartState_NewestWavesBalance_Call struct {
	*mock.Call
}

MockEnrichedSmartState_NewestWavesBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestWavesBalance'

func (*MockEnrichedSmartState_NewestWavesBalance_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_NewestWavesBalance_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_NewestWavesBalance_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_RetrieveEntries_Call added in v0.11.0

type MockEnrichedSmartState_RetrieveEntries_Call struct {
	*mock.Call
}

MockEnrichedSmartState_RetrieveEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveEntries'

func (*MockEnrichedSmartState_RetrieveEntries_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_RetrieveEntries_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_RetrieveEntries_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_RetrieveNewestBinaryEntry_Call added in v0.11.0

type MockEnrichedSmartState_RetrieveNewestBinaryEntry_Call struct {
	*mock.Call
}

MockEnrichedSmartState_RetrieveNewestBinaryEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveNewestBinaryEntry'

func (*MockEnrichedSmartState_RetrieveNewestBinaryEntry_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_RetrieveNewestBinaryEntry_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_RetrieveNewestBinaryEntry_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_RetrieveNewestBooleanEntry_Call added in v0.11.0

type MockEnrichedSmartState_RetrieveNewestBooleanEntry_Call struct {
	*mock.Call
}

MockEnrichedSmartState_RetrieveNewestBooleanEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveNewestBooleanEntry'

func (*MockEnrichedSmartState_RetrieveNewestBooleanEntry_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_RetrieveNewestBooleanEntry_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_RetrieveNewestBooleanEntry_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_RetrieveNewestIntegerEntry_Call added in v0.11.0

type MockEnrichedSmartState_RetrieveNewestIntegerEntry_Call struct {
	*mock.Call
}

MockEnrichedSmartState_RetrieveNewestIntegerEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveNewestIntegerEntry'

func (*MockEnrichedSmartState_RetrieveNewestIntegerEntry_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_RetrieveNewestIntegerEntry_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_RetrieveNewestIntegerEntry_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_RetrieveNewestStringEntry_Call added in v0.11.0

type MockEnrichedSmartState_RetrieveNewestStringEntry_Call struct {
	*mock.Call
}

MockEnrichedSmartState_RetrieveNewestStringEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveNewestStringEntry'

func (*MockEnrichedSmartState_RetrieveNewestStringEntry_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_RetrieveNewestStringEntry_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_RetrieveNewestStringEntry_Call) RunAndReturn added in v0.11.0

type MockEnrichedSmartState_WavesBalanceProfile_Call added in v0.11.0

type MockEnrichedSmartState_WavesBalanceProfile_Call struct {
	*mock.Call
}

MockEnrichedSmartState_WavesBalanceProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WavesBalanceProfile'

func (*MockEnrichedSmartState_WavesBalanceProfile_Call) Return added in v0.11.0

func (*MockEnrichedSmartState_WavesBalanceProfile_Call) Run added in v0.11.0

func (*MockEnrichedSmartState_WavesBalanceProfile_Call) RunAndReturn added in v0.11.0

type MockSmartState added in v0.11.0

type MockSmartState struct {
	mock.Mock
}

MockSmartState is an autogenerated mock type for the SmartState type

func NewMockSmartState added in v0.11.0

func NewMockSmartState(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSmartState

NewMockSmartState creates a new instance of MockSmartState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockSmartState) AddingBlockHeight added in v0.11.0

func (_mock *MockSmartState) AddingBlockHeight() (uint64, error)

AddingBlockHeight provides a mock function for the type MockSmartState

func (*MockSmartState) EXPECT added in v0.11.0

func (*MockSmartState) EstimatorVersion added in v0.11.0

func (_mock *MockSmartState) EstimatorVersion() (int, error)

EstimatorVersion provides a mock function for the type MockSmartState

func (*MockSmartState) IsNotFound added in v0.11.0

func (_mock *MockSmartState) IsNotFound(err error) bool

IsNotFound provides a mock function for the type MockSmartState

func (*MockSmartState) IsStateUntouched added in v0.11.0

func (_mock *MockSmartState) IsStateUntouched(account proto.Recipient) (bool, error)

IsStateUntouched provides a mock function for the type MockSmartState

func (*MockSmartState) NewestAddrByAlias added in v0.11.0

func (_mock *MockSmartState) NewestAddrByAlias(alias proto.Alias) (proto.WavesAddress, error)

NewestAddrByAlias provides a mock function for the type MockSmartState

func (*MockSmartState) NewestAssetBalance added in v0.11.0

func (_mock *MockSmartState) NewestAssetBalance(account proto.Recipient, assetID crypto.Digest) (uint64, error)

NewestAssetBalance provides a mock function for the type MockSmartState

func (*MockSmartState) NewestAssetConstInfo added in v0.11.0

func (_mock *MockSmartState) NewestAssetConstInfo(assetID proto.AssetID) (*proto.AssetConstInfo, error)

NewestAssetConstInfo provides a mock function for the type MockSmartState

func (*MockSmartState) NewestAssetInfo added in v0.11.0

func (_mock *MockSmartState) NewestAssetInfo(assetID crypto.Digest) (*proto.AssetInfo, error)

NewestAssetInfo provides a mock function for the type MockSmartState

func (*MockSmartState) NewestAssetIsSponsored added in v0.11.0

func (_mock *MockSmartState) NewestAssetIsSponsored(assetID crypto.Digest) (bool, error)

NewestAssetIsSponsored provides a mock function for the type MockSmartState

func (*MockSmartState) NewestBlockInfoByHeight added in v0.11.0

func (_mock *MockSmartState) NewestBlockInfoByHeight(height proto.Height) (*proto.BlockInfo, error)

NewestBlockInfoByHeight provides a mock function for the type MockSmartState

func (*MockSmartState) NewestFullAssetInfo added in v0.11.0

func (_mock *MockSmartState) NewestFullAssetInfo(assetID crypto.Digest) (*proto.FullAssetInfo, error)

NewestFullAssetInfo provides a mock function for the type MockSmartState

func (*MockSmartState) NewestFullWavesBalance added in v0.11.0

func (_mock *MockSmartState) NewestFullWavesBalance(account proto.Recipient) (*proto.FullWavesBalance, error)

NewestFullWavesBalance provides a mock function for the type MockSmartState

func (*MockSmartState) NewestLeasingInfo added in v0.11.0

func (_mock *MockSmartState) NewestLeasingInfo(id crypto.Digest) (*proto.LeaseInfo, error)

NewestLeasingInfo provides a mock function for the type MockSmartState

func (*MockSmartState) NewestRecipientToAddress added in v0.11.0

func (_mock *MockSmartState) NewestRecipientToAddress(recipient proto.Recipient) (proto.WavesAddress, error)

NewestRecipientToAddress provides a mock function for the type MockSmartState

func (*MockSmartState) NewestScriptByAccount added in v0.11.0

func (_mock *MockSmartState) NewestScriptByAccount(account proto.Recipient) (*ast.Tree, error)

NewestScriptByAccount provides a mock function for the type MockSmartState

func (*MockSmartState) NewestScriptByAsset added in v0.11.0

func (_mock *MockSmartState) NewestScriptByAsset(assetID crypto.Digest) (*ast.Tree, error)

NewestScriptByAsset provides a mock function for the type MockSmartState

func (*MockSmartState) NewestScriptBytesByAccount added in v0.11.0

func (_mock *MockSmartState) NewestScriptBytesByAccount(account proto.Recipient) (proto.Script, error)

NewestScriptBytesByAccount provides a mock function for the type MockSmartState

func (*MockSmartState) NewestScriptPKByAddr added in v0.11.0

func (_mock *MockSmartState) NewestScriptPKByAddr(addr proto.WavesAddress) (crypto.PublicKey, error)

NewestScriptPKByAddr provides a mock function for the type MockSmartState

func (*MockSmartState) NewestTransactionByID added in v0.11.0

func (_mock *MockSmartState) NewestTransactionByID(bytes []byte) (proto.Transaction, error)

NewestTransactionByID provides a mock function for the type MockSmartState

func (*MockSmartState) NewestTransactionHeightByID added in v0.11.0

func (_mock *MockSmartState) NewestTransactionHeightByID(bytes []byte) (uint64, error)

NewestTransactionHeightByID provides a mock function for the type MockSmartState

func (*MockSmartState) NewestWavesBalance added in v0.11.0

func (_mock *MockSmartState) NewestWavesBalance(account proto.Recipient) (uint64, error)

NewestWavesBalance provides a mock function for the type MockSmartState

func (*MockSmartState) RetrieveEntries added in v0.11.0

func (_mock *MockSmartState) RetrieveEntries(account proto.Recipient) ([]proto.DataEntry, error)

RetrieveEntries provides a mock function for the type MockSmartState

func (*MockSmartState) RetrieveNewestBinaryEntry added in v0.11.0

func (_mock *MockSmartState) RetrieveNewestBinaryEntry(account proto.Recipient, key string) (*proto.BinaryDataEntry, error)

RetrieveNewestBinaryEntry provides a mock function for the type MockSmartState

func (*MockSmartState) RetrieveNewestBooleanEntry added in v0.11.0

func (_mock *MockSmartState) RetrieveNewestBooleanEntry(account proto.Recipient, key string) (*proto.BooleanDataEntry, error)

RetrieveNewestBooleanEntry provides a mock function for the type MockSmartState

func (*MockSmartState) RetrieveNewestIntegerEntry added in v0.11.0

func (_mock *MockSmartState) RetrieveNewestIntegerEntry(account proto.Recipient, key string) (*proto.IntegerDataEntry, error)

RetrieveNewestIntegerEntry provides a mock function for the type MockSmartState

func (*MockSmartState) RetrieveNewestStringEntry added in v0.11.0

func (_mock *MockSmartState) RetrieveNewestStringEntry(account proto.Recipient, key string) (*proto.StringDataEntry, error)

RetrieveNewestStringEntry provides a mock function for the type MockSmartState

type MockSmartState_AddingBlockHeight_Call added in v0.11.0

type MockSmartState_AddingBlockHeight_Call struct {
	*mock.Call
}

MockSmartState_AddingBlockHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddingBlockHeight'

func (*MockSmartState_AddingBlockHeight_Call) Return added in v0.11.0

func (*MockSmartState_AddingBlockHeight_Call) Run added in v0.11.0

func (*MockSmartState_AddingBlockHeight_Call) RunAndReturn added in v0.11.0

type MockSmartState_EstimatorVersion_Call added in v0.11.0

type MockSmartState_EstimatorVersion_Call struct {
	*mock.Call
}

MockSmartState_EstimatorVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimatorVersion'

func (*MockSmartState_EstimatorVersion_Call) Return added in v0.11.0

func (*MockSmartState_EstimatorVersion_Call) Run added in v0.11.0

func (*MockSmartState_EstimatorVersion_Call) RunAndReturn added in v0.11.0

type MockSmartState_Expecter added in v0.11.0

type MockSmartState_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockSmartState_Expecter) AddingBlockHeight added in v0.11.0

AddingBlockHeight is a helper method to define mock.On call

func (*MockSmartState_Expecter) EstimatorVersion added in v0.11.0

EstimatorVersion is a helper method to define mock.On call

func (*MockSmartState_Expecter) IsNotFound added in v0.11.0

func (_e *MockSmartState_Expecter) IsNotFound(err interface{}) *MockSmartState_IsNotFound_Call

IsNotFound is a helper method to define mock.On call

  • err error

func (*MockSmartState_Expecter) IsStateUntouched added in v0.11.0

func (_e *MockSmartState_Expecter) IsStateUntouched(account interface{}) *MockSmartState_IsStateUntouched_Call

IsStateUntouched is a helper method to define mock.On call

  • account proto.Recipient

func (*MockSmartState_Expecter) NewestAddrByAlias added in v0.11.0

func (_e *MockSmartState_Expecter) NewestAddrByAlias(alias interface{}) *MockSmartState_NewestAddrByAlias_Call

NewestAddrByAlias is a helper method to define mock.On call

  • alias proto.Alias

func (*MockSmartState_Expecter) NewestAssetBalance added in v0.11.0

func (_e *MockSmartState_Expecter) NewestAssetBalance(account interface{}, assetID interface{}) *MockSmartState_NewestAssetBalance_Call

NewestAssetBalance is a helper method to define mock.On call

  • account proto.Recipient
  • assetID crypto.Digest

func (*MockSmartState_Expecter) NewestAssetConstInfo added in v0.11.0

func (_e *MockSmartState_Expecter) NewestAssetConstInfo(assetID interface{}) *MockSmartState_NewestAssetConstInfo_Call

NewestAssetConstInfo is a helper method to define mock.On call

  • assetID proto.AssetID

func (*MockSmartState_Expecter) NewestAssetInfo added in v0.11.0

func (_e *MockSmartState_Expecter) NewestAssetInfo(assetID interface{}) *MockSmartState_NewestAssetInfo_Call

NewestAssetInfo is a helper method to define mock.On call

  • assetID crypto.Digest

func (*MockSmartState_Expecter) NewestAssetIsSponsored added in v0.11.0

func (_e *MockSmartState_Expecter) NewestAssetIsSponsored(assetID interface{}) *MockSmartState_NewestAssetIsSponsored_Call

NewestAssetIsSponsored is a helper method to define mock.On call

  • assetID crypto.Digest

func (*MockSmartState_Expecter) NewestBlockInfoByHeight added in v0.11.0

func (_e *MockSmartState_Expecter) NewestBlockInfoByHeight(height interface{}) *MockSmartState_NewestBlockInfoByHeight_Call

NewestBlockInfoByHeight is a helper method to define mock.On call

  • height proto.Height

func (*MockSmartState_Expecter) NewestFullAssetInfo added in v0.11.0

func (_e *MockSmartState_Expecter) NewestFullAssetInfo(assetID interface{}) *MockSmartState_NewestFullAssetInfo_Call

NewestFullAssetInfo is a helper method to define mock.On call

  • assetID crypto.Digest

func (*MockSmartState_Expecter) NewestFullWavesBalance added in v0.11.0

func (_e *MockSmartState_Expecter) NewestFullWavesBalance(account interface{}) *MockSmartState_NewestFullWavesBalance_Call

NewestFullWavesBalance is a helper method to define mock.On call

  • account proto.Recipient

func (*MockSmartState_Expecter) NewestLeasingInfo added in v0.11.0

func (_e *MockSmartState_Expecter) NewestLeasingInfo(id interface{}) *MockSmartState_NewestLeasingInfo_Call

NewestLeasingInfo is a helper method to define mock.On call

  • id crypto.Digest

func (*MockSmartState_Expecter) NewestRecipientToAddress added in v0.11.0

func (_e *MockSmartState_Expecter) NewestRecipientToAddress(recipient interface{}) *MockSmartState_NewestRecipientToAddress_Call

NewestRecipientToAddress is a helper method to define mock.On call

  • recipient proto.Recipient

func (*MockSmartState_Expecter) NewestScriptByAccount added in v0.11.0

func (_e *MockSmartState_Expecter) NewestScriptByAccount(account interface{}) *MockSmartState_NewestScriptByAccount_Call

NewestScriptByAccount is a helper method to define mock.On call

  • account proto.Recipient

func (*MockSmartState_Expecter) NewestScriptByAsset added in v0.11.0

func (_e *MockSmartState_Expecter) NewestScriptByAsset(assetID interface{}) *MockSmartState_NewestScriptByAsset_Call

NewestScriptByAsset is a helper method to define mock.On call

  • assetID crypto.Digest

func (*MockSmartState_Expecter) NewestScriptBytesByAccount added in v0.11.0

func (_e *MockSmartState_Expecter) NewestScriptBytesByAccount(account interface{}) *MockSmartState_NewestScriptBytesByAccount_Call

NewestScriptBytesByAccount is a helper method to define mock.On call

  • account proto.Recipient

func (*MockSmartState_Expecter) NewestScriptPKByAddr added in v0.11.0

func (_e *MockSmartState_Expecter) NewestScriptPKByAddr(addr interface{}) *MockSmartState_NewestScriptPKByAddr_Call

NewestScriptPKByAddr is a helper method to define mock.On call

  • addr proto.WavesAddress

func (*MockSmartState_Expecter) NewestTransactionByID added in v0.11.0

func (_e *MockSmartState_Expecter) NewestTransactionByID(bytes interface{}) *MockSmartState_NewestTransactionByID_Call

NewestTransactionByID is a helper method to define mock.On call

  • bytes []byte

func (*MockSmartState_Expecter) NewestTransactionHeightByID added in v0.11.0

func (_e *MockSmartState_Expecter) NewestTransactionHeightByID(bytes interface{}) *MockSmartState_NewestTransactionHeightByID_Call

NewestTransactionHeightByID is a helper method to define mock.On call

  • bytes []byte

func (*MockSmartState_Expecter) NewestWavesBalance added in v0.11.0

func (_e *MockSmartState_Expecter) NewestWavesBalance(account interface{}) *MockSmartState_NewestWavesBalance_Call

NewestWavesBalance is a helper method to define mock.On call

  • account proto.Recipient

func (*MockSmartState_Expecter) RetrieveEntries added in v0.11.0

func (_e *MockSmartState_Expecter) RetrieveEntries(account interface{}) *MockSmartState_RetrieveEntries_Call

RetrieveEntries is a helper method to define mock.On call

  • account proto.Recipient

func (*MockSmartState_Expecter) RetrieveNewestBinaryEntry added in v0.11.0

func (_e *MockSmartState_Expecter) RetrieveNewestBinaryEntry(account interface{}, key interface{}) *MockSmartState_RetrieveNewestBinaryEntry_Call

RetrieveNewestBinaryEntry is a helper method to define mock.On call

  • account proto.Recipient
  • key string

func (*MockSmartState_Expecter) RetrieveNewestBooleanEntry added in v0.11.0

func (_e *MockSmartState_Expecter) RetrieveNewestBooleanEntry(account interface{}, key interface{}) *MockSmartState_RetrieveNewestBooleanEntry_Call

RetrieveNewestBooleanEntry is a helper method to define mock.On call

  • account proto.Recipient
  • key string

func (*MockSmartState_Expecter) RetrieveNewestIntegerEntry added in v0.11.0

func (_e *MockSmartState_Expecter) RetrieveNewestIntegerEntry(account interface{}, key interface{}) *MockSmartState_RetrieveNewestIntegerEntry_Call

RetrieveNewestIntegerEntry is a helper method to define mock.On call

  • account proto.Recipient
  • key string

func (*MockSmartState_Expecter) RetrieveNewestStringEntry added in v0.11.0

func (_e *MockSmartState_Expecter) RetrieveNewestStringEntry(account interface{}, key interface{}) *MockSmartState_RetrieveNewestStringEntry_Call

RetrieveNewestStringEntry is a helper method to define mock.On call

  • account proto.Recipient
  • key string

type MockSmartState_IsNotFound_Call added in v0.11.0

type MockSmartState_IsNotFound_Call struct {
	*mock.Call
}

MockSmartState_IsNotFound_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsNotFound'

func (*MockSmartState_IsNotFound_Call) Return added in v0.11.0

func (*MockSmartState_IsNotFound_Call) Run added in v0.11.0

func (*MockSmartState_IsNotFound_Call) RunAndReturn added in v0.11.0

type MockSmartState_IsStateUntouched_Call added in v0.11.0

type MockSmartState_IsStateUntouched_Call struct {
	*mock.Call
}

MockSmartState_IsStateUntouched_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsStateUntouched'

func (*MockSmartState_IsStateUntouched_Call) Return added in v0.11.0

func (*MockSmartState_IsStateUntouched_Call) Run added in v0.11.0

func (*MockSmartState_IsStateUntouched_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestAddrByAlias_Call added in v0.11.0

type MockSmartState_NewestAddrByAlias_Call struct {
	*mock.Call
}

MockSmartState_NewestAddrByAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAddrByAlias'

func (*MockSmartState_NewestAddrByAlias_Call) Return added in v0.11.0

func (*MockSmartState_NewestAddrByAlias_Call) Run added in v0.11.0

func (*MockSmartState_NewestAddrByAlias_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestAssetBalance_Call added in v0.11.0

type MockSmartState_NewestAssetBalance_Call struct {
	*mock.Call
}

MockSmartState_NewestAssetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetBalance'

func (*MockSmartState_NewestAssetBalance_Call) Return added in v0.11.0

func (*MockSmartState_NewestAssetBalance_Call) Run added in v0.11.0

func (*MockSmartState_NewestAssetBalance_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestAssetConstInfo_Call added in v0.11.0

type MockSmartState_NewestAssetConstInfo_Call struct {
	*mock.Call
}

MockSmartState_NewestAssetConstInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetConstInfo'

func (*MockSmartState_NewestAssetConstInfo_Call) Return added in v0.11.0

func (*MockSmartState_NewestAssetConstInfo_Call) Run added in v0.11.0

func (*MockSmartState_NewestAssetConstInfo_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestAssetInfo_Call added in v0.11.0

type MockSmartState_NewestAssetInfo_Call struct {
	*mock.Call
}

MockSmartState_NewestAssetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetInfo'

func (*MockSmartState_NewestAssetInfo_Call) Return added in v0.11.0

func (*MockSmartState_NewestAssetInfo_Call) Run added in v0.11.0

func (*MockSmartState_NewestAssetInfo_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestAssetIsSponsored_Call added in v0.11.0

type MockSmartState_NewestAssetIsSponsored_Call struct {
	*mock.Call
}

MockSmartState_NewestAssetIsSponsored_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestAssetIsSponsored'

func (*MockSmartState_NewestAssetIsSponsored_Call) Return added in v0.11.0

func (*MockSmartState_NewestAssetIsSponsored_Call) Run added in v0.11.0

func (*MockSmartState_NewestAssetIsSponsored_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestBlockInfoByHeight_Call added in v0.11.0

type MockSmartState_NewestBlockInfoByHeight_Call struct {
	*mock.Call
}

MockSmartState_NewestBlockInfoByHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestBlockInfoByHeight'

func (*MockSmartState_NewestBlockInfoByHeight_Call) Return added in v0.11.0

func (*MockSmartState_NewestBlockInfoByHeight_Call) Run added in v0.11.0

func (*MockSmartState_NewestBlockInfoByHeight_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestFullAssetInfo_Call added in v0.11.0

type MockSmartState_NewestFullAssetInfo_Call struct {
	*mock.Call
}

MockSmartState_NewestFullAssetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestFullAssetInfo'

func (*MockSmartState_NewestFullAssetInfo_Call) Return added in v0.11.0

func (*MockSmartState_NewestFullAssetInfo_Call) Run added in v0.11.0

func (*MockSmartState_NewestFullAssetInfo_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestFullWavesBalance_Call added in v0.11.0

type MockSmartState_NewestFullWavesBalance_Call struct {
	*mock.Call
}

MockSmartState_NewestFullWavesBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestFullWavesBalance'

func (*MockSmartState_NewestFullWavesBalance_Call) Return added in v0.11.0

func (*MockSmartState_NewestFullWavesBalance_Call) Run added in v0.11.0

func (*MockSmartState_NewestFullWavesBalance_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestLeasingInfo_Call added in v0.11.0

type MockSmartState_NewestLeasingInfo_Call struct {
	*mock.Call
}

MockSmartState_NewestLeasingInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestLeasingInfo'

func (*MockSmartState_NewestLeasingInfo_Call) Return added in v0.11.0

func (*MockSmartState_NewestLeasingInfo_Call) Run added in v0.11.0

func (*MockSmartState_NewestLeasingInfo_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestRecipientToAddress_Call added in v0.11.0

type MockSmartState_NewestRecipientToAddress_Call struct {
	*mock.Call
}

MockSmartState_NewestRecipientToAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestRecipientToAddress'

func (*MockSmartState_NewestRecipientToAddress_Call) Return added in v0.11.0

func (*MockSmartState_NewestRecipientToAddress_Call) Run added in v0.11.0

func (*MockSmartState_NewestRecipientToAddress_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestScriptByAccount_Call added in v0.11.0

type MockSmartState_NewestScriptByAccount_Call struct {
	*mock.Call
}

MockSmartState_NewestScriptByAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestScriptByAccount'

func (*MockSmartState_NewestScriptByAccount_Call) Return added in v0.11.0

func (*MockSmartState_NewestScriptByAccount_Call) Run added in v0.11.0

func (*MockSmartState_NewestScriptByAccount_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestScriptByAsset_Call added in v0.11.0

type MockSmartState_NewestScriptByAsset_Call struct {
	*mock.Call
}

MockSmartState_NewestScriptByAsset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestScriptByAsset'

func (*MockSmartState_NewestScriptByAsset_Call) Return added in v0.11.0

func (*MockSmartState_NewestScriptByAsset_Call) Run added in v0.11.0

func (*MockSmartState_NewestScriptByAsset_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestScriptBytesByAccount_Call added in v0.11.0

type MockSmartState_NewestScriptBytesByAccount_Call struct {
	*mock.Call
}

MockSmartState_NewestScriptBytesByAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestScriptBytesByAccount'

func (*MockSmartState_NewestScriptBytesByAccount_Call) Return added in v0.11.0

func (*MockSmartState_NewestScriptBytesByAccount_Call) Run added in v0.11.0

func (*MockSmartState_NewestScriptBytesByAccount_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestScriptPKByAddr_Call added in v0.11.0

type MockSmartState_NewestScriptPKByAddr_Call struct {
	*mock.Call
}

MockSmartState_NewestScriptPKByAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestScriptPKByAddr'

func (*MockSmartState_NewestScriptPKByAddr_Call) Return added in v0.11.0

func (*MockSmartState_NewestScriptPKByAddr_Call) Run added in v0.11.0

func (*MockSmartState_NewestScriptPKByAddr_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestTransactionByID_Call added in v0.11.0

type MockSmartState_NewestTransactionByID_Call struct {
	*mock.Call
}

MockSmartState_NewestTransactionByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestTransactionByID'

func (*MockSmartState_NewestTransactionByID_Call) Return added in v0.11.0

func (*MockSmartState_NewestTransactionByID_Call) Run added in v0.11.0

func (*MockSmartState_NewestTransactionByID_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestTransactionHeightByID_Call added in v0.11.0

type MockSmartState_NewestTransactionHeightByID_Call struct {
	*mock.Call
}

MockSmartState_NewestTransactionHeightByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestTransactionHeightByID'

func (*MockSmartState_NewestTransactionHeightByID_Call) Return added in v0.11.0

func (*MockSmartState_NewestTransactionHeightByID_Call) Run added in v0.11.0

func (*MockSmartState_NewestTransactionHeightByID_Call) RunAndReturn added in v0.11.0

type MockSmartState_NewestWavesBalance_Call added in v0.11.0

type MockSmartState_NewestWavesBalance_Call struct {
	*mock.Call
}

MockSmartState_NewestWavesBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestWavesBalance'

func (*MockSmartState_NewestWavesBalance_Call) Return added in v0.11.0

func (*MockSmartState_NewestWavesBalance_Call) Run added in v0.11.0

func (*MockSmartState_NewestWavesBalance_Call) RunAndReturn added in v0.11.0

type MockSmartState_RetrieveEntries_Call added in v0.11.0

type MockSmartState_RetrieveEntries_Call struct {
	*mock.Call
}

MockSmartState_RetrieveEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveEntries'

func (*MockSmartState_RetrieveEntries_Call) Return added in v0.11.0

func (*MockSmartState_RetrieveEntries_Call) Run added in v0.11.0

func (*MockSmartState_RetrieveEntries_Call) RunAndReturn added in v0.11.0

type MockSmartState_RetrieveNewestBinaryEntry_Call added in v0.11.0

type MockSmartState_RetrieveNewestBinaryEntry_Call struct {
	*mock.Call
}

MockSmartState_RetrieveNewestBinaryEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveNewestBinaryEntry'

func (*MockSmartState_RetrieveNewestBinaryEntry_Call) Return added in v0.11.0

func (*MockSmartState_RetrieveNewestBinaryEntry_Call) Run added in v0.11.0

func (*MockSmartState_RetrieveNewestBinaryEntry_Call) RunAndReturn added in v0.11.0

type MockSmartState_RetrieveNewestBooleanEntry_Call added in v0.11.0

type MockSmartState_RetrieveNewestBooleanEntry_Call struct {
	*mock.Call
}

MockSmartState_RetrieveNewestBooleanEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveNewestBooleanEntry'

func (*MockSmartState_RetrieveNewestBooleanEntry_Call) Return added in v0.11.0

func (*MockSmartState_RetrieveNewestBooleanEntry_Call) Run added in v0.11.0

func (*MockSmartState_RetrieveNewestBooleanEntry_Call) RunAndReturn added in v0.11.0

type MockSmartState_RetrieveNewestIntegerEntry_Call added in v0.11.0

type MockSmartState_RetrieveNewestIntegerEntry_Call struct {
	*mock.Call
}

MockSmartState_RetrieveNewestIntegerEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveNewestIntegerEntry'

func (*MockSmartState_RetrieveNewestIntegerEntry_Call) Return added in v0.11.0

func (*MockSmartState_RetrieveNewestIntegerEntry_Call) Run added in v0.11.0

func (*MockSmartState_RetrieveNewestIntegerEntry_Call) RunAndReturn added in v0.11.0

type MockSmartState_RetrieveNewestStringEntry_Call added in v0.11.0

type MockSmartState_RetrieveNewestStringEntry_Call struct {
	*mock.Call
}

MockSmartState_RetrieveNewestStringEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveNewestStringEntry'

func (*MockSmartState_RetrieveNewestStringEntry_Call) Return added in v0.11.0

func (*MockSmartState_RetrieveNewestStringEntry_Call) Run added in v0.11.0

func (*MockSmartState_RetrieveNewestStringEntry_Call) RunAndReturn added in v0.11.0

type Scheduler

type Scheduler interface {
	Reschedule()
}

type ScoreSender added in v0.5.0

type ScoreSender interface {
	Priority()
	NonPriority()
}

type SmartState

type SmartState interface {
	NewestScriptPKByAddr(addr proto.WavesAddress) (crypto.PublicKey, error)
	AddingBlockHeight() (uint64, error)
	// NewestTransactionByID returns a transaction, BUT returns error if a transaction exists but failed or elided.
	NewestTransactionByID([]byte) (proto.Transaction, error)
	// NewestTransactionHeightByID returns a transaction height, BUT returns error if a transaction
	//  exists but failed or elided.
	NewestTransactionHeightByID([]byte) (uint64, error)
	NewestScriptByAccount(account proto.Recipient) (*ast.Tree, error)
	NewestScriptBytesByAccount(account proto.Recipient) (proto.Script, error)
	NewestRecipientToAddress(recipient proto.Recipient) (proto.WavesAddress, error)
	NewestAddrByAlias(alias proto.Alias) (proto.WavesAddress, error)
	NewestLeasingInfo(id crypto.Digest) (*proto.LeaseInfo, error)
	IsStateUntouched(account proto.Recipient) (bool, error)
	NewestAssetBalance(account proto.Recipient, assetID crypto.Digest) (uint64, error)
	NewestWavesBalance(account proto.Recipient) (uint64, error)
	// NewestFullWavesBalance returns a full Waves balance of account.
	// The method must be used ONLY in the Ride environment.
	// The boundaries of the generating balance are calculated for the current height of applying block,
	// instead of the last block height.
	//
	// For example, for the block validation we are use min effective balance of the account from height 1 to 1000.
	// This function uses heights from 2 to 1001, where 1001 is the height of the applying block.
	// All changes of effective balance during the applying block are affecting the generating balance.
	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)
	RetrieveEntries(account proto.Recipient) ([]proto.DataEntry, error)
	NewestAssetIsSponsored(assetID crypto.Digest) (bool, error)
	NewestAssetConstInfo(assetID proto.AssetID) (*proto.AssetConstInfo, error)
	NewestAssetInfo(assetID crypto.Digest) (*proto.AssetInfo, error)
	NewestFullAssetInfo(assetID crypto.Digest) (*proto.FullAssetInfo, error)
	NewestScriptByAsset(assetID crypto.Digest) (*ast.Tree, error)
	NewestBlockInfoByHeight(height proto.Height) (*proto.BlockInfo, error)

	EstimatorVersion() (int, error)
	IsNotFound(err error) bool
}

type StateSync added in v0.5.0

type StateSync interface {
	Sync()
	SetEnabled(enabled bool)
	Close()
	Run(ctx context.Context)
}

type Subscribe added in v0.5.0

type Subscribe interface {
	Subscribe(p ID, responseMessage proto.Message) (chan proto.Message, func(), error)
	Receive(p ID, responseMessage proto.Message) bool
}

type Time added in v0.5.0

type Time interface {
	Now() time.Time
}

type TransactionWithBytes

type TransactionWithBytes struct {
	T proto.Transaction
	B []byte
}

type UtxPool

type UtxPool interface {
	Add(st UtxPoolValidatorState, t proto.Transaction) error
	AddWithBytes(st UtxPoolValidatorState, t proto.Transaction, b []byte) error
	AddWithBytesRaw(t proto.Transaction, b []byte) error
	Exists(t proto.Transaction) bool
	Pop() *TransactionWithBytes
	AllTransactions() []proto.Transaction
	Len() int
	ExistsByID(id []byte) bool
	Clean(ctx context.Context, shouldDrop func(tx proto.Transaction) bool) (int, int)
}

UtxPool storage interface

type UtxPoolValidatorState added in v0.11.0

type UtxPoolValidatorState interface {
	TopBlock() *proto.Block
	TxValidation(func(validation nextTxValidator) error) error
}

type WavesBalanceProfile added in v0.10.0

type WavesBalanceProfile struct {
	Balance    uint64
	LeaseIn    int64
	LeaseOut   int64
	Generating uint64
	Challenged bool // if Challenged true, the account considered as challenged at the current height.
}

WavesBalanceProfile contains essential parts of Waves balance and must be used to pass this information if SmartState only.

func (*WavesBalanceProfile) EffectiveBalance added in v0.11.0

func (bp *WavesBalanceProfile) EffectiveBalance() (uint64, error)

EffectiveBalance returns effective balance with checking for account challenging. The function MUST be used ONLY in the context where account challenging IS CHECKED.

func (*WavesBalanceProfile) SpendableBalance added in v0.11.0

func (bp *WavesBalanceProfile) SpendableBalance() (uint64, error)

func (*WavesBalanceProfile) ToFullWavesBalance added in v0.11.0

func (bp *WavesBalanceProfile) ToFullWavesBalance() (*proto.FullWavesBalance, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL