Documentation ¶
Index ¶
- Variables
- type MockAccountRepository
- func (m *MockAccountRepository) GetAccountAlias(ctx context.Context, accountId types.AccountId) (types.AccountId, *rTypes.Error)
- func (m *MockAccountRepository) GetAccountId(ctx context.Context, accountId types.AccountId) (types.AccountId, *rTypes.Error)
- func (m *MockAccountRepository) RetrieveBalanceAtBlock(ctx context.Context, accountId types.AccountId, consensusEnd int64) (types.AmountSlice, string, *rTypes.Error)
- type MockAddressBookEntryRepository
- type MockBlockRepository
- func (m *MockBlockRepository) FindByHash(ctx context.Context, hash string) (*types.Block, *rTypes.Error)
- func (m *MockBlockRepository) FindByIdentifier(ctx context.Context, index int64, hash string) (*types.Block, *rTypes.Error)
- func (m *MockBlockRepository) FindByIndex(ctx context.Context, index int64) (*types.Block, *rTypes.Error)
- func (m *MockBlockRepository) RetrieveGenesis(ctx context.Context) (*types.Block, *rTypes.Error)
- func (m *MockBlockRepository) RetrieveLatest(ctx context.Context) (*types.Block, *rTypes.Error)
- type MockTransactionConstructor
- func (m *MockTransactionConstructor) Construct(ctx context.Context, operations types.OperationSlice) (interfaces.Transaction, []types.AccountId, *rTypes.Error)
- func (m *MockTransactionConstructor) GetDefaultMaxTransactionFee(operationType string) (types.HbarAmount, *rTypes.Error)
- func (m *MockTransactionConstructor) Parse(ctx context.Context, transaction interfaces.Transaction) (types.OperationSlice, []types.AccountId, *rTypes.Error)
- func (m *MockTransactionConstructor) Preprocess(ctx context.Context, operations types.OperationSlice) ([]types.AccountId, *rTypes.Error)
- type MockTransactionConstructorWithType
- func (m *MockTransactionConstructorWithType) Construct(ctx context.Context, operations types.OperationSlice) (interfaces.Transaction, []types.AccountId, *rTypes.Error)
- func (m *MockTransactionConstructorWithType) GetDefaultMaxTransactionFee() types.HbarAmount
- func (m *MockTransactionConstructorWithType) GetOperationType() string
- func (m *MockTransactionConstructorWithType) GetSdkTransactionType() string
- func (m *MockTransactionConstructorWithType) Parse(ctx context.Context, transaction interfaces.Transaction) (types.OperationSlice, []types.AccountId, *rTypes.Error)
- func (m *MockTransactionConstructorWithType) Preprocess(ctx context.Context, operations types.OperationSlice) ([]types.AccountId, *rTypes.Error)
- type MockTransactionRepository
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 NilEntries *types.AddressBookEntries
View Source
var NilError *rTypes.Error
View Source
var NilTransaction *types.Transaction
Functions ¶
This section is empty.
Types ¶
type MockAccountRepository ¶
func (*MockAccountRepository) GetAccountAlias ¶
func (*MockAccountRepository) GetAccountId ¶
func (*MockAccountRepository) RetrieveBalanceAtBlock ¶
type MockAddressBookEntryRepository ¶
func (*MockAddressBookEntryRepository) Entries ¶
func (m *MockAddressBookEntryRepository) Entries(ctx context.Context) (*types.AddressBookEntries, *rTypes.Error)
type MockBlockRepository ¶
func (*MockBlockRepository) FindByHash ¶
func (*MockBlockRepository) FindByIdentifier ¶
func (*MockBlockRepository) FindByIndex ¶
func (*MockBlockRepository) RetrieveGenesis ¶
func (*MockBlockRepository) RetrieveLatest ¶
type MockTransactionConstructor ¶
func (*MockTransactionConstructor) Construct ¶
func (m *MockTransactionConstructor) Construct( ctx context.Context, operations types.OperationSlice, ) (interfaces.Transaction, []types.AccountId, *rTypes.Error)
func (*MockTransactionConstructor) GetDefaultMaxTransactionFee ¶
func (m *MockTransactionConstructor) GetDefaultMaxTransactionFee(operationType string) ( types.HbarAmount, *rTypes.Error, )
func (*MockTransactionConstructor) Parse ¶
func (m *MockTransactionConstructor) Parse(ctx context.Context, transaction interfaces.Transaction) ( types.OperationSlice, []types.AccountId, *rTypes.Error, )
func (*MockTransactionConstructor) Preprocess ¶
func (m *MockTransactionConstructor) Preprocess(ctx context.Context, operations types.OperationSlice) ( []types.AccountId, *rTypes.Error, )
type MockTransactionConstructorWithType ¶
func (*MockTransactionConstructorWithType) Construct ¶
func (m *MockTransactionConstructorWithType) Construct( ctx context.Context, operations types.OperationSlice, ) (interfaces.Transaction, []types.AccountId, *rTypes.Error)
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 (m *MockTransactionConstructorWithType) Parse(ctx context.Context, transaction interfaces.Transaction) ( types.OperationSlice, []types.AccountId, *rTypes.Error, )
func (*MockTransactionConstructorWithType) Preprocess ¶
func (m *MockTransactionConstructorWithType) Preprocess(ctx context.Context, operations types.OperationSlice) ( []types.AccountId, *rTypes.Error, )
type MockTransactionRepository ¶
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)
Click to show internal directories.
Click to hide internal directories.