package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev

# README

Mocks

We use mockery for generating mocks from Go interfaces for unit tests.

Adding a new Mock

To add a new mock, append a line to the Makefile in this directory in the following form:

mockery --name=InterfaceName --dir=path/to/package --recursive --output=./mocks

Note that if the mock being generated is for an external package, you'll need to use the $(GOPATH) variable to reference the package, otherwise the --dir argument should be relative to the root of this repository.

After adding your Mock to the Makefile, run make mock-gen from the repository root. Mocks are checked in to source control along with your tests.

Be aware that updating any of the interfaces used by mocks will require you to rerun make mock-gen, otherwise any tests using those mocks will fail to compile (as the interfaces will no longer match).

# Packages

No description provided by the author

# Functions

NewAnteDecorator creates a new instance of AnteDecorator.
NewAppOptions creates a new instance of AppOptions.
NewAssetsKeeper creates a new instance of AssetsKeeper.
NewBankKeeper creates a new instance of BankKeeper.
NewBridgeKeeper creates a new instance of BridgeKeeper.
NewBridgeQueryClient creates a new instance of BridgeQueryClient.
NewBridgeServiceClient creates a new instance of BridgeServiceClient.
NewCacheMultiStore creates a new instance of CacheMultiStore.
NewClobKeeper creates a new instance of ClobKeeper.
NewConfigurator creates a new instance of Configurator.
NewDelayMsgKeeper creates a new instance of DelayMsgKeeper.
NewEthClient creates a new instance of EthClient.
NewExchangeConfigUpdater creates a new instance of ExchangeConfigUpdater.
NewExchangeQueryHandler creates a new instance of ExchangeQueryHandler.
NewExchangeToMarketPrices creates a new instance of ExchangeToMarketPrices.
NewExtendVoteHandler creates a new instance of ExtendVoteHandler.
NewFileHandler creates a new instance of FileHandler.
NewGrpcClient creates a new instance of GrpcClient.
NewGrpcServer creates a new instance of GrpcServer.
NewHealthCheckable creates a new instance of HealthCheckable.
NewIndexerEventManager creates a new instance of IndexerEventManager.
NewIndexerMessageSender creates a new instance of IndexerMessageSender.
NewLogger creates a new instance of Logger.
NewMarketPairFetcher creates a new instance of MarketPairFetcher.
NewMarshaler creates a new instance of Marshaler.
NewMemClob creates a new instance of MemClob.
NewMemClobKeeper creates a new instance of MemClobKeeper.
NewMsg creates a new instance of Msg.
NewMsgRouter creates a new instance of MsgRouter.
NewMultiStore creates a new instance of MultiStore.
NewOracleClient creates a new instance of OracleClient.
NewPerpetualsClobKeeper creates a new instance of PerpetualsClobKeeper.
NewPerpetualsKeeper creates a new instance of PerpetualsKeeper.
NewPrepareBridgeKeeper creates a new instance of PrepareBridgeKeeper.
NewPrepareClobKeeper creates a new instance of PrepareClobKeeper.
NewPreparePerpetualsKeeper creates a new instance of PreparePerpetualsKeeper.
NewPreparePricesKeeper creates a new instance of PreparePricesKeeper.
NewPricefeedMutableMarketConfigs creates a new instance of PricefeedMutableMarketConfigs.
NewPriceFetcher creates a new instance of PriceFetcher.
NewPricesKeeper creates a new instance of PricesKeeper.
NewPriceUpdateGenerator creates a new instance of PriceUpdateGenerator.
NewProcessBridgeKeeper creates a new instance of ProcessBridgeKeeper.
NewProcessClobKeeper creates a new instance of ProcessClobKeeper.
NewProcessPerpetualKeeper creates a new instance of ProcessPerpetualKeeper.
NewProcessStakingKeeper creates a new instance of ProcessStakingKeeper.
NewQueryClient creates a new instance of QueryClient.
NewQueryServer creates a new instance of QueryServer.
NewRequestHandler creates a new instance of RequestHandler.
NewSendingKeeper creates a new instance of SendingKeeper.
NewServer creates a new instance of Server.
NewSubaccountsKeeper creates a new instance of SubaccountsKeeper.
NewTimeProvider creates a new instance of TimeProvider.
NewTxBuilder creates a new instance of TxBuilder.
NewTxConfig creates a new instance of TxConfig.
NewUpdateMarketPriceTxDecoder creates a new instance of UpdateMarketPriceTxDecoder.
NewVaultKeeper creates a new instance of VaultKeeper.

# Structs

AnteDecorator is an autogenerated mock type for the AnteDecorator type.
AppOptions is an autogenerated mock type for the AppOptions type.
AssetsKeeper is an autogenerated mock type for the AssetsKeeper type.
BankKeeper is an autogenerated mock type for the Keeper type.
BridgeKeeper is an autogenerated mock type for the BridgeKeeper type.
BridgeQueryClient is an autogenerated mock type for the BridgeQueryClient type.
BridgeServiceClient is an autogenerated mock type for the BridgeServiceClient type.
CacheMultiStore is an autogenerated mock type for the CacheMultiStore type.
ClobKeeper is an autogenerated mock type for the ClobKeeper type.
Configurator is an autogenerated mock type for the Configurator type.
DelayMsgKeeper is an autogenerated mock type for the DelayMsgKeeper type.
EthClient is an autogenerated mock type for the EthClient type.
ExchangeConfigUpdater is an autogenerated mock type for the ExchangeConfigUpdater type.
ExchangeQueryHandler is an autogenerated mock type for the ExchangeQueryHandler type.
ExchangeToMarketPrices is an autogenerated mock type for the ExchangeToMarketPrices type.
ExtendVoteHandler is an autogenerated mock type for the ExtendVoteHandler type.
FileHandler is an autogenerated mock type for the FileHandler type.
GrpcClient is an autogenerated mock type for the GrpcClient type.
GrpcServer is an autogenerated mock type for the GrpcServer type.
HealthCheckable is an autogenerated mock type for the HealthCheckable type.
IndexerEventManager is an autogenerated mock type for the IndexerEventManager type.
IndexerMessageSender is an autogenerated mock type for the IndexerMessageSender type.
Logger is an autogenerated mock type for the Logger type.
MarketPairFetcher is an autogenerated mock type for the MarketPairFetcher type.
Marshaler is an autogenerated mock type for the Marshaler type.
MemClob is an autogenerated mock type for the MemClob type.
MemClobKeeper is an autogenerated mock type for the MemClobKeeper type.
Msg is an autogenerated mock type for the Msg type.
MsgRouter is an autogenerated mock type for the MsgRouter type.
MultiStore is an autogenerated mock type for the MultiStore type.
OracleClient is an autogenerated mock type for the OracleClient type.
PerpetualsClobKeeper is an autogenerated mock type for the PerpetualsClobKeeper type.
PerpetualsKeeper is an autogenerated mock type for the PerpetualsKeeper type.
PrepareBridgeKeeper is an autogenerated mock type for the PrepareBridgeKeeper type.
PrepareClobKeeper is an autogenerated mock type for the PrepareClobKeeper type.
PreparePerpetualsKeeper is an autogenerated mock type for the PreparePerpetualsKeeper type.
PreparePricesKeeper is an autogenerated mock type for the PreparePricesKeeper type.
PricefeedMutableMarketConfigs is an autogenerated mock type for the PricefeedMutableMarketConfigs type.
PriceFetcher is an autogenerated mock type for the PriceFetcher type.
PricesKeeper is an autogenerated mock type for the PricesKeeper type.
PriceUpdateGenerator is an autogenerated mock type for the PriceUpdateGenerator type.
ProcessBridgeKeeper is an autogenerated mock type for the ProcessBridgeKeeper type.
ProcessClobKeeper is an autogenerated mock type for the ProcessClobKeeper type.
ProcessPerpetualKeeper is an autogenerated mock type for the ProcessPerpetualKeeper type.
ProcessStakingKeeper is an autogenerated mock type for the ProcessStakingKeeper type.
QueryClient is an autogenerated mock type for the QueryClient type.
QueryServer is an autogenerated mock type for the QueryServer type.
RequestHandler is an autogenerated mock type for the RequestHandler type.
SendingKeeper is an autogenerated mock type for the SendingKeeper type.
Server is an autogenerated mock type for the Server type.
SubaccountsKeeper is an autogenerated mock type for the SubaccountsKeeper type.
TimeProvider is an autogenerated mock type for the TimeProvider type.
TxBuilder is an autogenerated mock type for the TxBuilder type.
TxConfig is an autogenerated mock type for the TxConfig type.
UpdateMarketPriceTxDecoder is an autogenerated mock type for the UpdateMarketPriceTxDecoder type.
VaultKeeper is an autogenerated mock type for the VaultKeeper type.