mocks

package
v25.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublisherMock added in v25.2.1

type PublisherMock struct {
}

func (*PublisherMock) PublishBlock added in v25.2.1

func (p *PublisherMock) PublishBlock(ctx context.Context, block domain.Block) error

PublishBlock implements domain.Publisher.

func (*PublisherMock) PublishPair added in v25.2.1

func (p *PublisherMock) PublishPair(ctx context.Context, pair domain.Pair) error

PublishPair implements domain.Publisher.

func (*PublisherMock) PublishPool added in v25.2.1

func (p *PublisherMock) PublishPool(ctx context.Context, pool domain.Pool) error

PublishPool implements domain.Publisher.

func (*PublisherMock) PublishPools added in v25.2.1

func (p *PublisherMock) PublishPools(ctx context.Context, pools []types.PoolI) error

PublishPools implements domain.Publisher.

func (*PublisherMock) PublishTokenSupply added in v25.2.1

func (p *PublisherMock) PublishTokenSupply(ctx context.Context, tokenSupply domain.TokenSupply) error

PublishTokenSupply implements domain.Publisher.

func (*PublisherMock) PublishTokenSupplyOffset added in v25.2.1

func (p *PublisherMock) PublishTokenSupplyOffset(ctx context.Context, tokenSupplyOffset domain.TokenSupplyOffset) error

PublishTokenSupplyOffset implements domain.Publisher.

func (*PublisherMock) PublishTransaction added in v25.2.1

func (p *PublisherMock) PublishTransaction(ctx context.Context, txn domain.Transaction) error

PublishTransaction implements domain.Publisher.

type TokenSupplyPublisherMock

type TokenSupplyPublisherMock struct {
	CalledWithTokenSupply indexerdomain.TokenSupply
	ForceTokenSupplyError error

	CalledWithTokenSupplyOffset indexerdomain.TokenSupplyOffset
	ForceTokenSupplyOffsetError error
}

TokenSupplyPublisherMock is a mock for TokenSupplyPublisher.

func (*TokenSupplyPublisherMock) PublishTokenSupply

func (p *TokenSupplyPublisherMock) PublishTokenSupply(ctx context.Context, tokenSupply indexerdomain.TokenSupply) error

PublishTokenSupply implements domain.PubSubClientI.

func (*TokenSupplyPublisherMock) PublishTokenSupplyOffset

func (p *TokenSupplyPublisherMock) PublishTokenSupplyOffset(ctx context.Context, tokenSupplyOffset indexerdomain.TokenSupplyOffset) error

PublishTokenSupplyOffset implements domain.PubSubClientI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL