Documentation
¶
Index ¶
- type MockDistributionAccountResolver
- func (_m *MockDistributionAccountResolver) DistributionAccount(ctx context.Context, tenantID string) (schema.TransactionAccount, error)
- func (_m *MockDistributionAccountResolver) DistributionAccountFromContext(ctx context.Context) (schema.TransactionAccount, error)
- func (_m *MockDistributionAccountResolver) HostDistributionAccount() schema.TransactionAccount
- type MockSignatureClient
- func (_m *MockSignatureClient) BatchInsert(ctx context.Context, number int) ([]string, error)
- func (_m *MockSignatureClient) Delete(ctx context.Context, publicKey string) error
- func (_m *MockSignatureClient) NetworkPassphrase() string
- func (_m *MockSignatureClient) SignFeeBumpStellarTransaction(ctx context.Context, feeBumpStellarTx *txnbuild.FeeBumpTransaction, ...) (*txnbuild.FeeBumpTransaction, error)
- func (_m *MockSignatureClient) SignStellarTransaction(ctx context.Context, stellarTx *txnbuild.Transaction, ...) (*txnbuild.Transaction, error)
- type MockSignerRouter
- func (_m *MockSignerRouter) BatchInsert(ctx context.Context, accountType schema.AccountType, number int) ([]schema.TransactionAccount, error)
- func (_m *MockSignerRouter) Delete(ctx context.Context, stellarAccount schema.TransactionAccount) error
- func (_m *MockSignerRouter) NetworkPassphrase() string
- func (_m *MockSignerRouter) SignFeeBumpStellarTransaction(ctx context.Context, feeBumpStellarTx *txnbuild.FeeBumpTransaction, ...) (*txnbuild.FeeBumpTransaction, error)
- func (_m *MockSignerRouter) SignStellarTransaction(ctx context.Context, stellarTx *txnbuild.Transaction, ...) (*txnbuild.Transaction, error)
- func (_m *MockSignerRouter) SupportedAccountTypes() []schema.AccountType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDistributionAccountResolver ¶
MockDistributionAccountResolver is an autogenerated mock type for the DistributionAccountResolver type
func NewMockDistributionAccountResolver ¶
func NewMockDistributionAccountResolver(t interface { mock.TestingT Cleanup(func()) }) *MockDistributionAccountResolver
NewMockDistributionAccountResolver creates a new instance of MockDistributionAccountResolver. 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 (*MockDistributionAccountResolver) DistributionAccount ¶
func (_m *MockDistributionAccountResolver) DistributionAccount(ctx context.Context, tenantID string) (schema.TransactionAccount, error)
DistributionAccount provides a mock function with given fields: ctx, tenantID
func (*MockDistributionAccountResolver) DistributionAccountFromContext ¶
func (_m *MockDistributionAccountResolver) DistributionAccountFromContext(ctx context.Context) (schema.TransactionAccount, error)
DistributionAccountFromContext provides a mock function with given fields: ctx
func (*MockDistributionAccountResolver) HostDistributionAccount ¶
func (_m *MockDistributionAccountResolver) HostDistributionAccount() schema.TransactionAccount
HostDistributionAccount provides a mock function with given fields:
type MockSignatureClient ¶
MockSignatureClient is an autogenerated mock type for the SignatureClient type
func NewMockSignatureClient ¶
func NewMockSignatureClient(t interface { mock.TestingT Cleanup(func()) }) *MockSignatureClient
NewMockSignatureClient creates a new instance of MockSignatureClient. 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 (*MockSignatureClient) BatchInsert ¶
BatchInsert provides a mock function with given fields: ctx, number
func (*MockSignatureClient) Delete ¶
func (_m *MockSignatureClient) Delete(ctx context.Context, publicKey string) error
Delete provides a mock function with given fields: ctx, publicKey
func (*MockSignatureClient) NetworkPassphrase ¶
func (_m *MockSignatureClient) NetworkPassphrase() string
NetworkPassphrase provides a mock function with given fields:
func (*MockSignatureClient) SignFeeBumpStellarTransaction ¶
func (_m *MockSignatureClient) SignFeeBumpStellarTransaction(ctx context.Context, feeBumpStellarTx *txnbuild.FeeBumpTransaction, stellarAccounts ...string) (*txnbuild.FeeBumpTransaction, error)
SignFeeBumpStellarTransaction provides a mock function with given fields: ctx, feeBumpStellarTx, stellarAccounts
func (*MockSignatureClient) SignStellarTransaction ¶
func (_m *MockSignatureClient) SignStellarTransaction(ctx context.Context, stellarTx *txnbuild.Transaction, stellarAccounts ...string) (*txnbuild.Transaction, error)
SignStellarTransaction provides a mock function with given fields: ctx, stellarTx, stellarAccounts
type MockSignerRouter ¶
MockSignerRouter is an autogenerated mock type for the SignerRouter type
func NewMockSignerRouter ¶
func NewMockSignerRouter(t interface { mock.TestingT Cleanup(func()) }) *MockSignerRouter
NewMockSignerRouter creates a new instance of MockSignerRouter. 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 (*MockSignerRouter) BatchInsert ¶
func (_m *MockSignerRouter) BatchInsert(ctx context.Context, accountType schema.AccountType, number int) ([]schema.TransactionAccount, error)
BatchInsert provides a mock function with given fields: ctx, accountType, number
func (*MockSignerRouter) Delete ¶
func (_m *MockSignerRouter) Delete(ctx context.Context, stellarAccount schema.TransactionAccount) error
Delete provides a mock function with given fields: ctx, stellarAccount
func (*MockSignerRouter) NetworkPassphrase ¶
func (_m *MockSignerRouter) NetworkPassphrase() string
NetworkPassphrase provides a mock function with given fields:
func (*MockSignerRouter) SignFeeBumpStellarTransaction ¶
func (_m *MockSignerRouter) SignFeeBumpStellarTransaction(ctx context.Context, feeBumpStellarTx *txnbuild.FeeBumpTransaction, stellarAccounts ...schema.TransactionAccount) (*txnbuild.FeeBumpTransaction, error)
SignFeeBumpStellarTransaction provides a mock function with given fields: ctx, feeBumpStellarTx, stellarAccounts
func (*MockSignerRouter) SignStellarTransaction ¶
func (_m *MockSignerRouter) SignStellarTransaction(ctx context.Context, stellarTx *txnbuild.Transaction, stellarAccounts ...schema.TransactionAccount) (*txnbuild.Transaction, error)
SignStellarTransaction provides a mock function with given fields: ctx, stellarTx, stellarAccounts
func (*MockSignerRouter) SupportedAccountTypes ¶
func (_m *MockSignerRouter) SupportedAccountTypes() []schema.AccountType
SupportedAccountTypes provides a mock function with given fields: