mocks

package
v0.0.0-...-c1cf6bf Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NilHederaTransaction *hedera.TransferTransaction
	NilOperations        types.OperationSlice
	NilSigners           []types.AccountId
)
View Source
var NilBlock *types.Block
View Source
var NilError *rTypes.Error
View Source
var NilTransaction *types.Transaction

Functions

This section is empty.

Types

type MockAccountRepository

type MockAccountRepository struct {
	mock.Mock
}

func (*MockAccountRepository) GetAccountAlias

func (m *MockAccountRepository) GetAccountAlias(ctx context.Context, accountId types.AccountId) (
	types.AccountId,
	*rTypes.Error,
)

func (*MockAccountRepository) GetAccountId

func (m *MockAccountRepository) GetAccountId(ctx context.Context, accountId types.AccountId) (
	types.AccountId,
	*rTypes.Error,
)

func (*MockAccountRepository) RetrieveBalanceAtBlock

func (m *MockAccountRepository) RetrieveBalanceAtBlock(
	ctx context.Context,
	accountId types.AccountId,
	consensusEnd int64,
) (types.AmountSlice, string, *rTypes.Error)

type MockAddressBookEntryRepository

type MockAddressBookEntryRepository struct {
	mock.Mock
}

func (*MockAddressBookEntryRepository) Entries

type MockBlockRepository

type MockBlockRepository struct {
	mock.Mock
}

func (*MockBlockRepository) FindByHash

func (m *MockBlockRepository) FindByHash(ctx context.Context, hash string) (*types.Block, *rTypes.Error)

func (*MockBlockRepository) FindByIdentifier

func (m *MockBlockRepository) FindByIdentifier(ctx context.Context, index int64, hash string) (
	*types.Block,
	*rTypes.Error,
)

func (*MockBlockRepository) FindByIndex

func (m *MockBlockRepository) FindByIndex(ctx context.Context, index int64) (*types.Block, *rTypes.Error)

func (*MockBlockRepository) RetrieveGenesis

func (m *MockBlockRepository) RetrieveGenesis(ctx context.Context) (*types.Block, *rTypes.Error)

func (*MockBlockRepository) RetrieveLatest

func (m *MockBlockRepository) RetrieveLatest(ctx context.Context) (*types.Block, *rTypes.Error)

type MockTransactionConstructor

type MockTransactionConstructor struct {
	mock.Mock
}

func (*MockTransactionConstructor) Construct

func (*MockTransactionConstructor) GetDefaultMaxTransactionFee

func (m *MockTransactionConstructor) GetDefaultMaxTransactionFee(operationType string) (
	types.HbarAmount,
	*rTypes.Error,
)

func (*MockTransactionConstructor) Parse

func (*MockTransactionConstructor) Preprocess

func (m *MockTransactionConstructor) Preprocess(ctx context.Context, operations types.OperationSlice) (
	[]types.AccountId,
	*rTypes.Error,
)

type MockTransactionConstructorWithType

type MockTransactionConstructorWithType struct {
	mock.Mock
}

func (*MockTransactionConstructorWithType) Construct

func (*MockTransactionConstructorWithType) GetDefaultMaxTransactionFee

func (m *MockTransactionConstructorWithType) GetDefaultMaxTransactionFee() types.HbarAmount

func (*MockTransactionConstructorWithType) GetOperationType

func (m *MockTransactionConstructorWithType) GetOperationType() string

func (*MockTransactionConstructorWithType) GetSdkTransactionType

func (m *MockTransactionConstructorWithType) GetSdkTransactionType() string

func (*MockTransactionConstructorWithType) Parse

func (*MockTransactionConstructorWithType) Preprocess

type MockTransactionRepository

type MockTransactionRepository struct {
	mock.Mock
}

func (*MockTransactionRepository) FindBetween

func (m *MockTransactionRepository) FindBetween(ctx context.Context, start, end int64) (
	[]*types.Transaction,
	*rTypes.Error,
)

func (*MockTransactionRepository) FindByHashInBlock

func (m *MockTransactionRepository) FindByHashInBlock(
	ctx context.Context,
	identifier string,
	consensusStart int64,
	consensusEnd int64,
) (*types.Transaction, *rTypes.Error)

Jump to

Keyboard shortcuts

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