Documentation ¶
Index ¶
- type MockPairPublisher
- type PublisherMock
- func (p *PublisherMock) PublishBlock(ctx context.Context, block indexerdomain.Block) error
- func (p *PublisherMock) PublishPair(ctx context.Context, pair indexerdomain.Pair) error
- func (p *PublisherMock) PublishTokenSupply(ctx context.Context, tokenSupply indexerdomain.TokenSupply) error
- func (p *PublisherMock) PublishTokenSupplyOffset(ctx context.Context, tokenSupplyOffset indexerdomain.TokenSupplyOffset) error
- func (p *PublisherMock) PublishTransaction(ctx context.Context, txn indexerdomain.Transaction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPairPublisher ¶
type MockPairPublisher struct { PublishPoolPairsError error PublishPoolPairsCalled bool CalledWithPools []poolmanagertypes.PoolI CalledWithCreatedPoolIDs map[uint64]commondomain.PoolCreation NumPoolPairPublished int NumPoolPairWithCreationData int }
MockPairPublisher is a mock implementation of the PairPublisherI interface.
func (*MockPairPublisher) PublishPoolPairs ¶
func (m *MockPairPublisher) PublishPoolPairs(ctx sdk.Context, pools []poolmanagertypes.PoolI, createdPoolIDs map[uint64]commondomain.PoolCreation) error
type PublisherMock ¶
type PublisherMock struct { CalledWithPair indexerdomain.Pair CalledWithBlock indexerdomain.Block CalledWithTokenSupply indexerdomain.TokenSupply CalledWithTokenSupplyOffset indexerdomain.TokenSupplyOffset CalledWithTransaction indexerdomain.Transaction NumPublishPairCalls int NumPublishPairCallsWithCreation int PublishPairCallMutex sync.Mutex NumPublishBlockCalls int NumPublishTokenSupplyCalls int NumPublishTokenSupplyOffsetCalls int NumPublishTransactionCalls int ForcePairError error ForceBlockError error ForceTokenSupplyError error ForceTokenSupplyOffsetError error ForceTransactionError error }
PublisherMock is a mock for Publisher.
func (*PublisherMock) PublishBlock ¶
func (p *PublisherMock) PublishBlock(ctx context.Context, block indexerdomain.Block) error
PublishBlock implements domain.Publisher.
func (*PublisherMock) PublishPair ¶
func (p *PublisherMock) PublishPair(ctx context.Context, pair indexerdomain.Pair) error
PublishPair implements domain.Publisher.
func (*PublisherMock) PublishTokenSupply ¶
func (p *PublisherMock) PublishTokenSupply(ctx context.Context, tokenSupply indexerdomain.TokenSupply) error
PublishTokenSupply implements domain.Publisher.
func (*PublisherMock) PublishTokenSupplyOffset ¶
func (p *PublisherMock) PublishTokenSupplyOffset(ctx context.Context, tokenSupplyOffset indexerdomain.TokenSupplyOffset) error
PublishTokenSupplyOffset implements domain.Publisher.
func (*PublisherMock) PublishTransaction ¶
func (p *PublisherMock) PublishTransaction(ctx context.Context, txn indexerdomain.Transaction) error
PublishTransaction implements domain.Publisher.
Click to show internal directories.
Click to hide internal directories.