Documentation ¶
Index ¶
- type Chain
- func (_m *Chain) Close() error
- func (_m *Chain) Config() config.Config
- func (_m *Chain) Healthy() error
- func (_m *Chain) ID() 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
- func (_m *Chain) UpdateConfig(_a0 *db.ChainCfg)
- 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 ¶ added in v1.5.0
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) UpdateConfig ¶ added in v1.5.0
UpdateConfig provides a mock function with given fields: _a0
type ChainSet ¶
ChainSet is an autogenerated mock type for the ChainSet type
func NewChainSet ¶ added in v1.5.0
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.
type Reader ¶
Reader is an autogenerated mock type for the Reader type
func NewReader ¶ added in v1.5.0
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 ¶ added in v1.5.0
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.