Documentation ¶
Index ¶
- type Chain
- func (_m *Chain) Close() error
- func (_m *Chain) Config() config.Config
- func (_m *Chain) HealthReport() map[string]error
- func (_m *Chain) ID() string
- func (_m *Chain) Name() string
- func (_m *Chain) Reader() (client.Reader, error)
- func (_m *Chain) Ready() error
- func (_m *Chain) Start(_a0 context.Context) error
- func (_m *Chain) TxManager() solana.TxManager
- type ChainSet
- type Reader
- func (_m *Reader) Balance(addr solana.PublicKey) (uint64, error)
- func (_m *Reader) ChainID() (string, error)
- func (_m *Reader) GetAccountInfoWithOpts(ctx context.Context, addr solana.PublicKey, opts *rpc.GetAccountInfoOpts) (*rpc.GetAccountInfoResult, error)
- func (_m *Reader) GetFeeForMessage(msg string) (uint64, error)
- func (_m *Reader) LatestBlockhash() (*rpc.GetLatestBlockhashResult, error)
- func (_m *Reader) SlotHeight() (uint64, error)
- type TxManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
Chain is an autogenerated mock type for the Chain type
func NewChain ¶
func NewChain(t mockConstructorTestingTNewChain) *Chain
NewChain creates a new instance of Chain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Chain) HealthReport ¶
HealthReport provides a mock function with given fields:
type ChainSet ¶
ChainSet is an autogenerated mock type for the ChainSet type
func NewChainSet ¶
func NewChainSet(t mockConstructorTestingTNewChainSet) *ChainSet
NewChainSet creates a new instance of ChainSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ChainSet) HealthReport ¶
HealthReport provides a mock function with given fields:
type Reader ¶
Reader is an autogenerated mock type for the Reader type
func NewReader ¶
func NewReader(t mockConstructorTestingTNewReader) *Reader
NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Reader) GetAccountInfoWithOpts ¶
func (_m *Reader) GetAccountInfoWithOpts(ctx context.Context, addr solana.PublicKey, opts *rpc.GetAccountInfoOpts) (*rpc.GetAccountInfoResult, error)
GetAccountInfoWithOpts provides a mock function with given fields: ctx, addr, opts
func (*Reader) GetFeeForMessage ¶
GetFeeForMessage provides a mock function with given fields: msg
func (*Reader) LatestBlockhash ¶
func (_m *Reader) LatestBlockhash() (*rpc.GetLatestBlockhashResult, error)
LatestBlockhash provides a mock function with given fields:
func (*Reader) SlotHeight ¶
SlotHeight provides a mock function with given fields:
type TxManager ¶
TxManager is an autogenerated mock type for the TxManager type
func NewTxManager ¶
func NewTxManager(t mockConstructorTestingTNewTxManager) *TxManager
NewTxManager creates a new instance of TxManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.