Versions in this module Expand all Collapse all v0 v0.0.2 Jun 5, 2026 Changes in this version + type MockChain struct + func NewMockChain(t interface{ ... }) *MockChain + func (_m *MockChain) Close() error + func (_m *MockChain) Config() *config.TOMLConfig + func (_m *MockChain) EXPECT() *MockChain_Expecter + func (_m *MockChain) FinalizedHead(ctx context.Context) (types.Head, error) + func (_m *MockChain) GetChainInfo(ctx context.Context) (types.ChainInfo, error) + func (_m *MockChain) GetChainStatus(ctx context.Context) (types.ChainStatus, error) + func (_m *MockChain) GetClient() (chain.RPCClient, error) + func (_m *MockChain) HealthReport() map[string]error + func (_m *MockChain) ID() string + func (_m *MockChain) KeyStore() loop.Keystore + func (_m *MockChain) LatestHead(ctx context.Context) (types.Head, error) + func (_m *MockChain) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) ([]types.NodeStatus, string, int, error) + func (_m *MockChain) Name() string + func (_m *MockChain) Ready() error + func (_m *MockChain) Replay(ctx context.Context, fromBlock string, args map[string]any) error + func (_m *MockChain) Start(_a0 context.Context) error + func (_m *MockChain) Transact(ctx context.Context, from string, to string, amount *big.Int, ...) error + func (_m *MockChain) TxManager() *txm.StellarTxm + type MockChain_Close_Call struct + func (_c *MockChain_Close_Call) Return(_a0 error) *MockChain_Close_Call + func (_c *MockChain_Close_Call) Run(run func()) *MockChain_Close_Call + func (_c *MockChain_Close_Call) RunAndReturn(run func() error) *MockChain_Close_Call + type MockChain_Config_Call struct + func (_c *MockChain_Config_Call) Return(_a0 *config.TOMLConfig) *MockChain_Config_Call + func (_c *MockChain_Config_Call) Run(run func()) *MockChain_Config_Call + func (_c *MockChain_Config_Call) RunAndReturn(run func() *config.TOMLConfig) *MockChain_Config_Call + type MockChain_Expecter struct + func (_e *MockChain_Expecter) Close() *MockChain_Close_Call + func (_e *MockChain_Expecter) Config() *MockChain_Config_Call + func (_e *MockChain_Expecter) FinalizedHead(ctx interface{}) *MockChain_FinalizedHead_Call + func (_e *MockChain_Expecter) GetChainInfo(ctx interface{}) *MockChain_GetChainInfo_Call + func (_e *MockChain_Expecter) GetChainStatus(ctx interface{}) *MockChain_GetChainStatus_Call + func (_e *MockChain_Expecter) GetClient() *MockChain_GetClient_Call + func (_e *MockChain_Expecter) HealthReport() *MockChain_HealthReport_Call + func (_e *MockChain_Expecter) ID() *MockChain_ID_Call + func (_e *MockChain_Expecter) KeyStore() *MockChain_KeyStore_Call + func (_e *MockChain_Expecter) LatestHead(ctx interface{}) *MockChain_LatestHead_Call + func (_e *MockChain_Expecter) ListNodeStatuses(ctx interface{}, pageSize interface{}, pageToken interface{}) *MockChain_ListNodeStatuses_Call + func (_e *MockChain_Expecter) Name() *MockChain_Name_Call + func (_e *MockChain_Expecter) Ready() *MockChain_Ready_Call + func (_e *MockChain_Expecter) Replay(ctx interface{}, fromBlock interface{}, args interface{}) *MockChain_Replay_Call + func (_e *MockChain_Expecter) Start(_a0 interface{}) *MockChain_Start_Call + func (_e *MockChain_Expecter) Transact(ctx interface{}, from interface{}, to interface{}, amount interface{}, ...) *MockChain_Transact_Call + func (_e *MockChain_Expecter) TxManager() *MockChain_TxManager_Call + type MockChain_FinalizedHead_Call struct + func (_c *MockChain_FinalizedHead_Call) Return(_a0 types.Head, _a1 error) *MockChain_FinalizedHead_Call + func (_c *MockChain_FinalizedHead_Call) Run(run func(ctx context.Context)) *MockChain_FinalizedHead_Call + func (_c *MockChain_FinalizedHead_Call) RunAndReturn(run func(context.Context) (types.Head, error)) *MockChain_FinalizedHead_Call + type MockChain_GetChainInfo_Call struct + func (_c *MockChain_GetChainInfo_Call) Return(_a0 types.ChainInfo, _a1 error) *MockChain_GetChainInfo_Call + func (_c *MockChain_GetChainInfo_Call) Run(run func(ctx context.Context)) *MockChain_GetChainInfo_Call + func (_c *MockChain_GetChainInfo_Call) RunAndReturn(run func(context.Context) (types.ChainInfo, error)) *MockChain_GetChainInfo_Call + type MockChain_GetChainStatus_Call struct + func (_c *MockChain_GetChainStatus_Call) Return(_a0 types.ChainStatus, _a1 error) *MockChain_GetChainStatus_Call + func (_c *MockChain_GetChainStatus_Call) Run(run func(ctx context.Context)) *MockChain_GetChainStatus_Call + func (_c *MockChain_GetChainStatus_Call) RunAndReturn(run func(context.Context) (types.ChainStatus, error)) *MockChain_GetChainStatus_Call + type MockChain_GetClient_Call struct + func (_c *MockChain_GetClient_Call) Return(_a0 chain.RPCClient, _a1 error) *MockChain_GetClient_Call + func (_c *MockChain_GetClient_Call) Run(run func()) *MockChain_GetClient_Call + func (_c *MockChain_GetClient_Call) RunAndReturn(run func() (chain.RPCClient, error)) *MockChain_GetClient_Call + type MockChain_HealthReport_Call struct + func (_c *MockChain_HealthReport_Call) Return(_a0 map[string]error) *MockChain_HealthReport_Call + func (_c *MockChain_HealthReport_Call) Run(run func()) *MockChain_HealthReport_Call + func (_c *MockChain_HealthReport_Call) RunAndReturn(run func() map[string]error) *MockChain_HealthReport_Call + type MockChain_ID_Call struct + func (_c *MockChain_ID_Call) Return(_a0 string) *MockChain_ID_Call + func (_c *MockChain_ID_Call) Run(run func()) *MockChain_ID_Call + func (_c *MockChain_ID_Call) RunAndReturn(run func() string) *MockChain_ID_Call + type MockChain_KeyStore_Call struct + func (_c *MockChain_KeyStore_Call) Return(_a0 loop.Keystore) *MockChain_KeyStore_Call + func (_c *MockChain_KeyStore_Call) Run(run func()) *MockChain_KeyStore_Call + func (_c *MockChain_KeyStore_Call) RunAndReturn(run func() loop.Keystore) *MockChain_KeyStore_Call + type MockChain_LatestHead_Call struct + func (_c *MockChain_LatestHead_Call) Return(_a0 types.Head, _a1 error) *MockChain_LatestHead_Call + func (_c *MockChain_LatestHead_Call) Run(run func(ctx context.Context)) *MockChain_LatestHead_Call + func (_c *MockChain_LatestHead_Call) RunAndReturn(run func(context.Context) (types.Head, error)) *MockChain_LatestHead_Call + type MockChain_ListNodeStatuses_Call struct + func (_c *MockChain_ListNodeStatuses_Call) Return(stats []types.NodeStatus, nextPageToken string, total int, err error) *MockChain_ListNodeStatuses_Call + func (_c *MockChain_ListNodeStatuses_Call) Run(run func(ctx context.Context, pageSize int32, pageToken string)) *MockChain_ListNodeStatuses_Call + func (_c *MockChain_ListNodeStatuses_Call) RunAndReturn(...) *MockChain_ListNodeStatuses_Call + type MockChain_Name_Call struct + func (_c *MockChain_Name_Call) Return(_a0 string) *MockChain_Name_Call + func (_c *MockChain_Name_Call) Run(run func()) *MockChain_Name_Call + func (_c *MockChain_Name_Call) RunAndReturn(run func() string) *MockChain_Name_Call + type MockChain_Ready_Call struct + func (_c *MockChain_Ready_Call) Return(_a0 error) *MockChain_Ready_Call + func (_c *MockChain_Ready_Call) Run(run func()) *MockChain_Ready_Call + func (_c *MockChain_Ready_Call) RunAndReturn(run func() error) *MockChain_Ready_Call + type MockChain_Replay_Call struct + func (_c *MockChain_Replay_Call) Return(_a0 error) *MockChain_Replay_Call + func (_c *MockChain_Replay_Call) Run(run func(ctx context.Context, fromBlock string, args map[string]any)) *MockChain_Replay_Call + func (_c *MockChain_Replay_Call) RunAndReturn(run func(context.Context, string, map[string]any) error) *MockChain_Replay_Call + type MockChain_Start_Call struct + func (_c *MockChain_Start_Call) Return(_a0 error) *MockChain_Start_Call + func (_c *MockChain_Start_Call) Run(run func(_a0 context.Context)) *MockChain_Start_Call + func (_c *MockChain_Start_Call) RunAndReturn(run func(context.Context) error) *MockChain_Start_Call + type MockChain_Transact_Call struct + func (_c *MockChain_Transact_Call) Return(_a0 error) *MockChain_Transact_Call + func (_c *MockChain_Transact_Call) Run(run func(ctx context.Context, from string, to string, amount *big.Int, ...)) *MockChain_Transact_Call + func (_c *MockChain_Transact_Call) RunAndReturn(run func(context.Context, string, string, *big.Int, bool) error) *MockChain_Transact_Call + type MockChain_TxManager_Call struct + func (_c *MockChain_TxManager_Call) Return(_a0 *txm.StellarTxm) *MockChain_TxManager_Call + func (_c *MockChain_TxManager_Call) Run(run func()) *MockChain_TxManager_Call + func (_c *MockChain_TxManager_Call) RunAndReturn(run func() *txm.StellarTxm) *MockChain_TxManager_Call + type MockInvoker struct + func NewMockInvoker(t interface{ ... }) *MockInvoker + func (_m *MockInvoker) EXPECT() *MockInvoker_Expecter + func (_m *MockInvoker) GetEvents(ctx context.Context, contractID string, startLedger uint32, topics []string) ([]protocol.EventInfo, error) + func (_m *MockInvoker) InvokeContract(ctx context.Context, contractID string, functionName string, args []xdr.ScVal) (*xdr.ScVal, error) + func (_m *MockInvoker) SimulateContract(ctx context.Context, contractID string, functionName string, args []xdr.ScVal) (*xdr.ScVal, error) + type MockInvoker_Expecter struct + func (_e *MockInvoker_Expecter) GetEvents(ctx interface{}, contractID interface{}, startLedger interface{}, ...) *MockInvoker_GetEvents_Call + func (_e *MockInvoker_Expecter) InvokeContract(ctx interface{}, contractID interface{}, functionName interface{}, ...) *MockInvoker_InvokeContract_Call + func (_e *MockInvoker_Expecter) SimulateContract(ctx interface{}, contractID interface{}, functionName interface{}, ...) *MockInvoker_SimulateContract_Call + type MockInvoker_GetEvents_Call struct + func (_c *MockInvoker_GetEvents_Call) Return(_a0 []protocol.EventInfo, _a1 error) *MockInvoker_GetEvents_Call + func (_c *MockInvoker_GetEvents_Call) Run(...) *MockInvoker_GetEvents_Call + func (_c *MockInvoker_GetEvents_Call) RunAndReturn(...) *MockInvoker_GetEvents_Call + type MockInvoker_InvokeContract_Call struct + func (_c *MockInvoker_InvokeContract_Call) Return(_a0 *xdr.ScVal, _a1 error) *MockInvoker_InvokeContract_Call + func (_c *MockInvoker_InvokeContract_Call) Run(...) *MockInvoker_InvokeContract_Call + func (_c *MockInvoker_InvokeContract_Call) RunAndReturn(run func(context.Context, string, string, []xdr.ScVal) (*xdr.ScVal, error)) *MockInvoker_InvokeContract_Call + type MockInvoker_SimulateContract_Call struct + func (_c *MockInvoker_SimulateContract_Call) Return(_a0 *xdr.ScVal, _a1 error) *MockInvoker_SimulateContract_Call + func (_c *MockInvoker_SimulateContract_Call) Run(...) *MockInvoker_SimulateContract_Call + func (_c *MockInvoker_SimulateContract_Call) RunAndReturn(run func(context.Context, string, string, []xdr.ScVal) (*xdr.ScVal, error)) *MockInvoker_SimulateContract_Call + type MockRPCClient struct + func NewMockRPCClient(t interface{ ... }) *MockRPCClient + func (_m *MockRPCClient) Close() error + func (_m *MockRPCClient) EXPECT() *MockRPCClient_Expecter + func (_m *MockRPCClient) GetEvents(ctx context.Context, req protocol.GetEventsRequest) (protocol.GetEventsResponse, error) + func (_m *MockRPCClient) GetFeeStats(ctx context.Context) (protocol.GetFeeStatsResponse, error) + func (_m *MockRPCClient) GetLatestLedger(ctx context.Context) (protocol.GetLatestLedgerResponse, error) + func (_m *MockRPCClient) GetLedgerEntries(ctx context.Context, req protocol.GetLedgerEntriesRequest) (protocol.GetLedgerEntriesResponse, error) + func (_m *MockRPCClient) GetLedgers(ctx context.Context, req protocol.GetLedgersRequest) (protocol.GetLedgersResponse, error) + func (_m *MockRPCClient) GetTransaction(ctx context.Context, req protocol.GetTransactionRequest) (protocol.GetTransactionResponse, error) + func (_m *MockRPCClient) SendTransaction(ctx context.Context, req protocol.SendTransactionRequest) (protocol.SendTransactionResponse, error) + func (_m *MockRPCClient) SimulateTransaction(ctx context.Context, req protocol.SimulateTransactionRequest) (protocol.SimulateTransactionResponse, error) + type MockRPCClient_Close_Call struct + func (_c *MockRPCClient_Close_Call) Return(_a0 error) *MockRPCClient_Close_Call + func (_c *MockRPCClient_Close_Call) Run(run func()) *MockRPCClient_Close_Call + func (_c *MockRPCClient_Close_Call) RunAndReturn(run func() error) *MockRPCClient_Close_Call + type MockRPCClient_Expecter struct + func (_e *MockRPCClient_Expecter) Close() *MockRPCClient_Close_Call + func (_e *MockRPCClient_Expecter) GetEvents(ctx interface{}, req interface{}) *MockRPCClient_GetEvents_Call + func (_e *MockRPCClient_Expecter) GetFeeStats(ctx interface{}) *MockRPCClient_GetFeeStats_Call + func (_e *MockRPCClient_Expecter) GetLatestLedger(ctx interface{}) *MockRPCClient_GetLatestLedger_Call + func (_e *MockRPCClient_Expecter) GetLedgerEntries(ctx interface{}, req interface{}) *MockRPCClient_GetLedgerEntries_Call + func (_e *MockRPCClient_Expecter) GetLedgers(ctx interface{}, req interface{}) *MockRPCClient_GetLedgers_Call + func (_e *MockRPCClient_Expecter) GetTransaction(ctx interface{}, req interface{}) *MockRPCClient_GetTransaction_Call + func (_e *MockRPCClient_Expecter) SendTransaction(ctx interface{}, req interface{}) *MockRPCClient_SendTransaction_Call + func (_e *MockRPCClient_Expecter) SimulateTransaction(ctx interface{}, req interface{}) *MockRPCClient_SimulateTransaction_Call + type MockRPCClient_GetEvents_Call struct + func (_c *MockRPCClient_GetEvents_Call) Return(_a0 protocol.GetEventsResponse, _a1 error) *MockRPCClient_GetEvents_Call + func (_c *MockRPCClient_GetEvents_Call) Run(run func(ctx context.Context, req protocol.GetEventsRequest)) *MockRPCClient_GetEvents_Call + func (_c *MockRPCClient_GetEvents_Call) RunAndReturn(...) *MockRPCClient_GetEvents_Call + type MockRPCClient_GetFeeStats_Call struct + func (_c *MockRPCClient_GetFeeStats_Call) Return(_a0 protocol.GetFeeStatsResponse, _a1 error) *MockRPCClient_GetFeeStats_Call + func (_c *MockRPCClient_GetFeeStats_Call) Run(run func(ctx context.Context)) *MockRPCClient_GetFeeStats_Call + func (_c *MockRPCClient_GetFeeStats_Call) RunAndReturn(run func(context.Context) (protocol.GetFeeStatsResponse, error)) *MockRPCClient_GetFeeStats_Call + type MockRPCClient_GetLatestLedger_Call struct + func (_c *MockRPCClient_GetLatestLedger_Call) Return(_a0 protocol.GetLatestLedgerResponse, _a1 error) *MockRPCClient_GetLatestLedger_Call + func (_c *MockRPCClient_GetLatestLedger_Call) Run(run func(ctx context.Context)) *MockRPCClient_GetLatestLedger_Call + func (_c *MockRPCClient_GetLatestLedger_Call) RunAndReturn(run func(context.Context) (protocol.GetLatestLedgerResponse, error)) *MockRPCClient_GetLatestLedger_Call + type MockRPCClient_GetLedgerEntries_Call struct + func (_c *MockRPCClient_GetLedgerEntries_Call) Return(_a0 protocol.GetLedgerEntriesResponse, _a1 error) *MockRPCClient_GetLedgerEntries_Call + func (_c *MockRPCClient_GetLedgerEntries_Call) Run(run func(ctx context.Context, req protocol.GetLedgerEntriesRequest)) *MockRPCClient_GetLedgerEntries_Call + func (_c *MockRPCClient_GetLedgerEntries_Call) RunAndReturn(...) *MockRPCClient_GetLedgerEntries_Call + type MockRPCClient_GetLedgers_Call struct + func (_c *MockRPCClient_GetLedgers_Call) Return(_a0 protocol.GetLedgersResponse, _a1 error) *MockRPCClient_GetLedgers_Call + func (_c *MockRPCClient_GetLedgers_Call) Run(run func(ctx context.Context, req protocol.GetLedgersRequest)) *MockRPCClient_GetLedgers_Call + func (_c *MockRPCClient_GetLedgers_Call) RunAndReturn(...) *MockRPCClient_GetLedgers_Call + type MockRPCClient_GetTransaction_Call struct + func (_c *MockRPCClient_GetTransaction_Call) Return(_a0 protocol.GetTransactionResponse, _a1 error) *MockRPCClient_GetTransaction_Call + func (_c *MockRPCClient_GetTransaction_Call) Run(run func(ctx context.Context, req protocol.GetTransactionRequest)) *MockRPCClient_GetTransaction_Call + func (_c *MockRPCClient_GetTransaction_Call) RunAndReturn(...) *MockRPCClient_GetTransaction_Call + type MockRPCClient_SendTransaction_Call struct + func (_c *MockRPCClient_SendTransaction_Call) Return(_a0 protocol.SendTransactionResponse, _a1 error) *MockRPCClient_SendTransaction_Call + func (_c *MockRPCClient_SendTransaction_Call) Run(run func(ctx context.Context, req protocol.SendTransactionRequest)) *MockRPCClient_SendTransaction_Call + func (_c *MockRPCClient_SendTransaction_Call) RunAndReturn(...) *MockRPCClient_SendTransaction_Call + type MockRPCClient_SimulateTransaction_Call struct + func (_c *MockRPCClient_SimulateTransaction_Call) Return(_a0 protocol.SimulateTransactionResponse, _a1 error) *MockRPCClient_SimulateTransaction_Call + func (_c *MockRPCClient_SimulateTransaction_Call) Run(run func(ctx context.Context, req protocol.SimulateTransactionRequest)) *MockRPCClient_SimulateTransaction_Call + func (_c *MockRPCClient_SimulateTransaction_Call) RunAndReturn(...) *MockRPCClient_SimulateTransaction_Call v0.0.1 Apr 29, 2026