Documentation
¶
Index ¶
- func RandomBytes(t testing.TB, size int) []byte
- func RandomCID(t testing.TB) cid.Cid
- type FakeChainClient
- func (c *FakeChainClient) AdvanceByHeight(epochs int64) abi.ChainEpoch
- func (c *FakeChainClient) AdvanceChain() abi.ChainEpoch
- func (c *FakeChainClient) ChainHead(ctx context.Context) (*types.TipSet, error)
- func (c *FakeChainClient) ChainNotify(ctx context.Context) (<-chan []*api.HeadChange, error)
- func (c *FakeChainClient) CurrentHeight() abi.ChainEpoch
- func (c *FakeChainClient) StateGetRandomnessDigestFromBeacon(ctx context.Context, randEpoch abi.ChainEpoch, tsk types.TipSetKey) (abi.Randomness, error)
- type MockContractBackendWrapper
- type MockEthClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeChainClient ¶
type FakeChainClient struct {
// contains filtered or unexported fields
}
func NewFakeChainClient ¶
func NewFakeChainClient(t testing.TB) *FakeChainClient
func (*FakeChainClient) AdvanceByHeight ¶
func (c *FakeChainClient) AdvanceByHeight(epochs int64) abi.ChainEpoch
AdvanceHeight advances the chain by the specified number of epochs
func (*FakeChainClient) AdvanceChain ¶
func (c *FakeChainClient) AdvanceChain() abi.ChainEpoch
func (*FakeChainClient) ChainNotify ¶
func (c *FakeChainClient) ChainNotify(ctx context.Context) (<-chan []*api.HeadChange, error)
func (*FakeChainClient) CurrentHeight ¶
func (c *FakeChainClient) CurrentHeight() abi.ChainEpoch
func (*FakeChainClient) StateGetRandomnessDigestFromBeacon ¶
func (c *FakeChainClient) StateGetRandomnessDigestFromBeacon(ctx context.Context, randEpoch abi.ChainEpoch, tsk types.TipSetKey) (abi.Randomness, error)
type MockContractBackendWrapper ¶
type MockContractBackendWrapper struct {
*mocks.MockContractBackend
}
MockContractBackendWrapper wraps MockContractBackend but excludes the conflicting method
type MockEthClient ¶
type MockEthClient struct {
*mocks.MockSenderETHClient
*mocks.MockMessageWatcherEthClient
*MockContractBackendWrapper
}
MockEthClient combines all mock interfaces for EthClient
func NewMockEthClient ¶
func NewMockEthClient(ctrl *gomock.Controller) *MockEthClient
NewMockEthClient creates a new mock instance that implements all required interfaces
func (*MockEthClient) SuggestGasTipCap ¶
SuggestGasTipCap delegates to MockSenderETHClient's implementation This overrides the method from MockContractBackend to avoid the conflict
Click to show internal directories.
Click to hide internal directories.