From 4310526fd3f81e8561f6fd19cc63191ab03fc5a5 Mon Sep 17 00:00:00 2001 From: aljo242 Date: Wed, 11 Dec 2024 10:50:08 -0500 Subject: [PATCH] mock-gen --- .../aggregator/mocks/mock_price_applier.go | 2 +- .../aggregator/mocks/mock_vote_aggregator.go | 2 +- .../codec/mocks/extended_commit_codec.go | 2 +- .../codec/mocks/vote_extension_codec.go | 2 +- .../mocks/mock_currency_pair_strategy.go | 2 +- .../currencypair/mocks/mock_oracle_keeper.go | 2 +- abci/types/mocks/mock_oracle_keeper.go | 2 +- oracle/metrics/mocks/mock_metrics.go | 24 +++++++------- oracle/metrics/mocks/mock_node_client.go | 4 +-- oracle/mocks/PriceAggregator.go | 16 +++++----- oracle/mocks/mock_oracle.go | 14 ++++---- .../mocks/mock_cc_validator_store.go | 2 +- pkg/math/voteweighted/mocks/mock_validator.go | 32 +++++++++---------- .../mocks/mock_validator_store.go | 2 +- .../defi/ethmulticlient/mocks/EVMClient.go | 2 +- providers/apis/defi/osmosis/mocks/client.go | 2 +- .../raydium/mocks/solana_jsonrpc_client.go | 2 +- .../api/handlers/mocks/api_data_handler.go | 2 +- .../base/api/handlers/mocks/api_fetcher.go | 2 +- .../api/handlers/mocks/api_query_handler.go | 4 +-- .../api/handlers/mocks/request_handler.go | 4 +-- .../base/api/metrics/mocks/mock_metrics.go | 10 +++--- providers/base/metrics/mocks/mock_metrics.go | 8 ++--- .../handlers/mocks/web_socket_conn_handler.go | 10 +++--- .../handlers/mocks/web_socket_data_handler.go | 6 ++-- .../mocks/web_socket_query_handler.go | 4 +-- .../websocket/metrics/mocks/mock_metrics.go | 8 ++--- providers/types/mocks/mock_provider.go | 10 +++--- .../oracle/mocks/mock_oracle_client.go | 4 +-- service/metrics/mocks/mock_metrics.go | 18 +++++------ .../oracle/mocks/mock_oracle_service.go | 2 +- x/marketmap/types/mocks/MarketMapHooks.go | 2 +- x/oracle/types/mocks/market_map_keeper.go | 2 +- 33 files changed, 105 insertions(+), 105 deletions(-) diff --git a/abci/strategies/aggregator/mocks/mock_price_applier.go b/abci/strategies/aggregator/mocks/mock_price_applier.go index eb2853de6..952506261 100644 --- a/abci/strategies/aggregator/mocks/mock_price_applier.go +++ b/abci/strategies/aggregator/mocks/mock_price_applier.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/abci/strategies/aggregator/mocks/mock_vote_aggregator.go b/abci/strategies/aggregator/mocks/mock_vote_aggregator.go index 66eb9fa22..4efd98476 100644 --- a/abci/strategies/aggregator/mocks/mock_vote_aggregator.go +++ b/abci/strategies/aggregator/mocks/mock_vote_aggregator.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/abci/strategies/codec/mocks/extended_commit_codec.go b/abci/strategies/codec/mocks/extended_commit_codec.go index 03d670d9f..7b5e9c9ad 100644 --- a/abci/strategies/codec/mocks/extended_commit_codec.go +++ b/abci/strategies/codec/mocks/extended_commit_codec.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/abci/strategies/codec/mocks/vote_extension_codec.go b/abci/strategies/codec/mocks/vote_extension_codec.go index 1c53ad013..ba918bba2 100644 --- a/abci/strategies/codec/mocks/vote_extension_codec.go +++ b/abci/strategies/codec/mocks/vote_extension_codec.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/abci/strategies/currencypair/mocks/mock_currency_pair_strategy.go b/abci/strategies/currencypair/mocks/mock_currency_pair_strategy.go index 84cc5bdbe..dbce7d2f4 100644 --- a/abci/strategies/currencypair/mocks/mock_currency_pair_strategy.go +++ b/abci/strategies/currencypair/mocks/mock_currency_pair_strategy.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/abci/strategies/currencypair/mocks/mock_oracle_keeper.go b/abci/strategies/currencypair/mocks/mock_oracle_keeper.go index 315feb181..c6fdc5602 100644 --- a/abci/strategies/currencypair/mocks/mock_oracle_keeper.go +++ b/abci/strategies/currencypair/mocks/mock_oracle_keeper.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/abci/types/mocks/mock_oracle_keeper.go b/abci/types/mocks/mock_oracle_keeper.go index 4372c943c..8ff80cbfb 100644 --- a/abci/types/mocks/mock_oracle_keeper.go +++ b/abci/types/mocks/mock_oracle_keeper.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/oracle/metrics/mocks/mock_metrics.go b/oracle/metrics/mocks/mock_metrics.go index 2e9e2b8fe..0fc26e2ce 100644 --- a/oracle/metrics/mocks/mock_metrics.go +++ b/oracle/metrics/mocks/mock_metrics.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -47,7 +47,7 @@ func (_c *Metrics_AddProviderCountForMarket_Call) Return() *Metrics_AddProviderC } func (_c *Metrics_AddProviderCountForMarket_Call) RunAndReturn(run func(string, int)) *Metrics_AddProviderCountForMarket_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -82,11 +82,11 @@ func (_c *Metrics_AddProviderTick_Call) Return() *Metrics_AddProviderTick_Call { } func (_c *Metrics_AddProviderTick_Call) RunAndReturn(run func(string, string, bool)) *Metrics_AddProviderTick_Call { - _c.Call.Return(run) + _c.Run(run) return _c } -// AddTick provides a mock function with given fields: +// AddTick provides a mock function with no fields func (_m *Metrics) AddTick() { _m.Called() } @@ -114,7 +114,7 @@ func (_c *Metrics_AddTick_Call) Return() *Metrics_AddTick_Call { } func (_c *Metrics_AddTick_Call) RunAndReturn(run func()) *Metrics_AddTick_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -147,11 +147,11 @@ func (_c *Metrics_AddTickerTick_Call) Return() *Metrics_AddTickerTick_Call { } func (_c *Metrics_AddTickerTick_Call) RunAndReturn(run func(string)) *Metrics_AddTickerTick_Call { - _c.Call.Return(run) + _c.Run(run) return _c } -// GetMissingPrices provides a mock function with given fields: +// GetMissingPrices provides a mock function with no fields func (_m *Metrics) GetMissingPrices() []string { ret := _m.Called() @@ -227,11 +227,11 @@ func (_c *Metrics_MissingPrices_Call) Return() *Metrics_MissingPrices_Call { } func (_c *Metrics_MissingPrices_Call) RunAndReturn(run func([]string)) *Metrics_MissingPrices_Call { - _c.Call.Return(run) + _c.Run(run) return _c } -// SetConnectBuildInfo provides a mock function with given fields: +// SetConnectBuildInfo provides a mock function with no fields func (_m *Metrics) SetConnectBuildInfo() { _m.Called() } @@ -259,7 +259,7 @@ func (_c *Metrics_SetConnectBuildInfo_Call) Return() *Metrics_SetConnectBuildInf } func (_c *Metrics_SetConnectBuildInfo_Call) RunAndReturn(run func()) *Metrics_SetConnectBuildInfo_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -294,7 +294,7 @@ func (_c *Metrics_UpdateAggregatePrice_Call) Return() *Metrics_UpdateAggregatePr } func (_c *Metrics_UpdateAggregatePrice_Call) RunAndReturn(run func(string, uint64, float64)) *Metrics_UpdateAggregatePrice_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -330,7 +330,7 @@ func (_c *Metrics_UpdatePrice_Call) Return() *Metrics_UpdatePrice_Call { } func (_c *Metrics_UpdatePrice_Call) RunAndReturn(run func(string, string, uint64, float64)) *Metrics_UpdatePrice_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/oracle/metrics/mocks/mock_node_client.go b/oracle/metrics/mocks/mock_node_client.go index 555bbba1c..1012f6e40 100644 --- a/oracle/metrics/mocks/mock_node_client.go +++ b/oracle/metrics/mocks/mock_node_client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -17,7 +17,7 @@ func (_m *NodeClient) EXPECT() *NodeClient_Expecter { return &NodeClient_Expecter{mock: &_m.Mock} } -// DeriveNodeIdentifier provides a mock function with given fields: +// DeriveNodeIdentifier provides a mock function with no fields func (_m *NodeClient) DeriveNodeIdentifier() (string, error) { ret := _m.Called() diff --git a/oracle/mocks/PriceAggregator.go b/oracle/mocks/PriceAggregator.go index abe0dbe6b..c0369c34c 100644 --- a/oracle/mocks/PriceAggregator.go +++ b/oracle/mocks/PriceAggregator.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -23,7 +23,7 @@ func (_m *PriceAggregator) EXPECT() *PriceAggregator_Expecter { return &PriceAggregator_Expecter{mock: &_m.Mock} } -// AggregatePrices provides a mock function with given fields: +// AggregatePrices provides a mock function with no fields func (_m *PriceAggregator) AggregatePrices() { _m.Called() } @@ -51,11 +51,11 @@ func (_c *PriceAggregator_AggregatePrices_Call) Return() *PriceAggregator_Aggreg } func (_c *PriceAggregator_AggregatePrices_Call) RunAndReturn(run func()) *PriceAggregator_AggregatePrices_Call { - _c.Call.Return(run) + _c.Run(run) return _c } -// GetPrices provides a mock function with given fields: +// GetPrices provides a mock function with no fields func (_m *PriceAggregator) GetPrices() map[string]*big.Float { ret := _m.Called() @@ -102,7 +102,7 @@ func (_c *PriceAggregator_GetPrices_Call) RunAndReturn(run func() map[string]*bi return _c } -// Reset provides a mock function with given fields: +// Reset provides a mock function with no fields func (_m *PriceAggregator) Reset() { _m.Called() } @@ -130,7 +130,7 @@ func (_c *PriceAggregator_Reset_Call) Return() *PriceAggregator_Reset_Call { } func (_c *PriceAggregator_Reset_Call) RunAndReturn(run func()) *PriceAggregator_Reset_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -164,7 +164,7 @@ func (_c *PriceAggregator_SetProviderPrices_Call) Return() *PriceAggregator_SetP } func (_c *PriceAggregator_SetProviderPrices_Call) RunAndReturn(run func(string, map[string]*big.Float)) *PriceAggregator_SetProviderPrices_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -197,7 +197,7 @@ func (_c *PriceAggregator_UpdateMarketMap_Call) Return() *PriceAggregator_Update } func (_c *PriceAggregator_UpdateMarketMap_Call) RunAndReturn(run func(types.MarketMap)) *PriceAggregator_UpdateMarketMap_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/oracle/mocks/mock_oracle.go b/oracle/mocks/mock_oracle.go index f53c370c6..a278fd863 100644 --- a/oracle/mocks/mock_oracle.go +++ b/oracle/mocks/mock_oracle.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -26,7 +26,7 @@ func (_m *Oracle) EXPECT() *Oracle_Expecter { return &Oracle_Expecter{mock: &_m.Mock} } -// GetLastSyncTime provides a mock function with given fields: +// GetLastSyncTime provides a mock function with no fields func (_m *Oracle) GetLastSyncTime() time.Time { ret := _m.Called() @@ -71,7 +71,7 @@ func (_c *Oracle_GetLastSyncTime_Call) RunAndReturn(run func() time.Time) *Oracl return _c } -// GetMarketMap provides a mock function with given fields: +// GetMarketMap provides a mock function with no fields func (_m *Oracle) GetMarketMap() types.MarketMap { ret := _m.Called() @@ -116,7 +116,7 @@ func (_c *Oracle_GetMarketMap_Call) RunAndReturn(run func() types.MarketMap) *Or return _c } -// GetPrices provides a mock function with given fields: +// GetPrices provides a mock function with no fields func (_m *Oracle) GetPrices() map[string]*big.Float { ret := _m.Called() @@ -163,7 +163,7 @@ func (_c *Oracle_GetPrices_Call) RunAndReturn(run func() map[string]*big.Float) return _c } -// IsRunning provides a mock function with given fields: +// IsRunning provides a mock function with no fields func (_m *Oracle) IsRunning() bool { ret := _m.Called() @@ -254,7 +254,7 @@ func (_c *Oracle_Start_Call) RunAndReturn(run func(context.Context) error) *Orac return _c } -// Stop provides a mock function with given fields: +// Stop provides a mock function with no fields func (_m *Oracle) Stop() { _m.Called() } @@ -282,7 +282,7 @@ func (_c *Oracle_Stop_Call) Return() *Oracle_Stop_Call { } func (_c *Oracle_Stop_Call) RunAndReturn(run func()) *Oracle_Stop_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/pkg/math/voteweighted/mocks/mock_cc_validator_store.go b/pkg/math/voteweighted/mocks/mock_cc_validator_store.go index 59f3b7832..8c82ac80a 100644 --- a/pkg/math/voteweighted/mocks/mock_cc_validator_store.go +++ b/pkg/math/voteweighted/mocks/mock_cc_validator_store.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/pkg/math/voteweighted/mocks/mock_validator.go b/pkg/math/voteweighted/mocks/mock_validator.go index 39dafb31c..a48cac9f3 100644 --- a/pkg/math/voteweighted/mocks/mock_validator.go +++ b/pkg/math/voteweighted/mocks/mock_validator.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -26,7 +26,7 @@ func (_m *ValidatorI) EXPECT() *ValidatorI_Expecter { return &ValidatorI_Expecter{mock: &_m.Mock} } -// ConsPubKey provides a mock function with given fields: +// ConsPubKey provides a mock function with no fields func (_m *ValidatorI) ConsPubKey() (types.PubKey, error) { ret := _m.Called() @@ -83,7 +83,7 @@ func (_c *ValidatorI_ConsPubKey_Call) RunAndReturn(run func() (types.PubKey, err return _c } -// GetBondedTokens provides a mock function with given fields: +// GetBondedTokens provides a mock function with no fields func (_m *ValidatorI) GetBondedTokens() math.Int { ret := _m.Called() @@ -128,7 +128,7 @@ func (_c *ValidatorI_GetBondedTokens_Call) RunAndReturn(run func() math.Int) *Va return _c } -// GetCommission provides a mock function with given fields: +// GetCommission provides a mock function with no fields func (_m *ValidatorI) GetCommission() math.LegacyDec { ret := _m.Called() @@ -173,7 +173,7 @@ func (_c *ValidatorI_GetCommission_Call) RunAndReturn(run func() math.LegacyDec) return _c } -// GetConsAddr provides a mock function with given fields: +// GetConsAddr provides a mock function with no fields func (_m *ValidatorI) GetConsAddr() ([]byte, error) { ret := _m.Called() @@ -276,7 +276,7 @@ func (_c *ValidatorI_GetConsensusPower_Call) RunAndReturn(run func(math.Int) int return _c } -// GetDelegatorShares provides a mock function with given fields: +// GetDelegatorShares provides a mock function with no fields func (_m *ValidatorI) GetDelegatorShares() math.LegacyDec { ret := _m.Called() @@ -321,7 +321,7 @@ func (_c *ValidatorI_GetDelegatorShares_Call) RunAndReturn(run func() math.Legac return _c } -// GetMinSelfDelegation provides a mock function with given fields: +// GetMinSelfDelegation provides a mock function with no fields func (_m *ValidatorI) GetMinSelfDelegation() math.Int { ret := _m.Called() @@ -366,7 +366,7 @@ func (_c *ValidatorI_GetMinSelfDelegation_Call) RunAndReturn(run func() math.Int return _c } -// GetMoniker provides a mock function with given fields: +// GetMoniker provides a mock function with no fields func (_m *ValidatorI) GetMoniker() string { ret := _m.Called() @@ -411,7 +411,7 @@ func (_c *ValidatorI_GetMoniker_Call) RunAndReturn(run func() string) *Validator return _c } -// GetOperator provides a mock function with given fields: +// GetOperator provides a mock function with no fields func (_m *ValidatorI) GetOperator() string { ret := _m.Called() @@ -456,7 +456,7 @@ func (_c *ValidatorI_GetOperator_Call) RunAndReturn(run func() string) *Validato return _c } -// GetStatus provides a mock function with given fields: +// GetStatus provides a mock function with no fields func (_m *ValidatorI) GetStatus() stakingtypes.BondStatus { ret := _m.Called() @@ -501,7 +501,7 @@ func (_c *ValidatorI_GetStatus_Call) RunAndReturn(run func() stakingtypes.BondSt return _c } -// GetTokens provides a mock function with given fields: +// GetTokens provides a mock function with no fields func (_m *ValidatorI) GetTokens() math.Int { ret := _m.Called() @@ -546,7 +546,7 @@ func (_c *ValidatorI_GetTokens_Call) RunAndReturn(run func() math.Int) *Validato return _c } -// IsBonded provides a mock function with given fields: +// IsBonded provides a mock function with no fields func (_m *ValidatorI) IsBonded() bool { ret := _m.Called() @@ -591,7 +591,7 @@ func (_c *ValidatorI_IsBonded_Call) RunAndReturn(run func() bool) *ValidatorI_Is return _c } -// IsJailed provides a mock function with given fields: +// IsJailed provides a mock function with no fields func (_m *ValidatorI) IsJailed() bool { ret := _m.Called() @@ -636,7 +636,7 @@ func (_c *ValidatorI_IsJailed_Call) RunAndReturn(run func() bool) *ValidatorI_Is return _c } -// IsUnbonded provides a mock function with given fields: +// IsUnbonded provides a mock function with no fields func (_m *ValidatorI) IsUnbonded() bool { ret := _m.Called() @@ -681,7 +681,7 @@ func (_c *ValidatorI_IsUnbonded_Call) RunAndReturn(run func() bool) *ValidatorI_ return _c } -// IsUnbonding provides a mock function with given fields: +// IsUnbonding provides a mock function with no fields func (_m *ValidatorI) IsUnbonding() bool { ret := _m.Called() @@ -838,7 +838,7 @@ func (_c *ValidatorI_SharesFromTokensTruncated_Call) RunAndReturn(run func(math. return _c } -// TmConsPublicKey provides a mock function with given fields: +// TmConsPublicKey provides a mock function with no fields func (_m *ValidatorI) TmConsPublicKey() (crypto.PublicKey, error) { ret := _m.Called() diff --git a/pkg/math/voteweighted/mocks/mock_validator_store.go b/pkg/math/voteweighted/mocks/mock_validator_store.go index b236b771c..005c8a9e6 100644 --- a/pkg/math/voteweighted/mocks/mock_validator_store.go +++ b/pkg/math/voteweighted/mocks/mock_validator_store.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/providers/apis/defi/ethmulticlient/mocks/EVMClient.go b/providers/apis/defi/ethmulticlient/mocks/EVMClient.go index cb4764533..c27e5ebb9 100644 --- a/providers/apis/defi/ethmulticlient/mocks/EVMClient.go +++ b/providers/apis/defi/ethmulticlient/mocks/EVMClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/providers/apis/defi/osmosis/mocks/client.go b/providers/apis/defi/osmosis/mocks/client.go index 92bb491c9..306b4f75a 100644 --- a/providers/apis/defi/osmosis/mocks/client.go +++ b/providers/apis/defi/osmosis/mocks/client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/providers/apis/defi/raydium/mocks/solana_jsonrpc_client.go b/providers/apis/defi/raydium/mocks/solana_jsonrpc_client.go index 27fa271f5..372ac91e9 100644 --- a/providers/apis/defi/raydium/mocks/solana_jsonrpc_client.go +++ b/providers/apis/defi/raydium/mocks/solana_jsonrpc_client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/providers/base/api/handlers/mocks/api_data_handler.go b/providers/base/api/handlers/mocks/api_data_handler.go index 6525037f9..45d969d48 100644 --- a/providers/base/api/handlers/mocks/api_data_handler.go +++ b/providers/base/api/handlers/mocks/api_data_handler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/providers/base/api/handlers/mocks/api_fetcher.go b/providers/base/api/handlers/mocks/api_fetcher.go index b567d6c33..0780624dd 100644 --- a/providers/base/api/handlers/mocks/api_fetcher.go +++ b/providers/base/api/handlers/mocks/api_fetcher.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/providers/base/api/handlers/mocks/api_query_handler.go b/providers/base/api/handlers/mocks/api_query_handler.go index ee5bd5ef2..9404837dc 100644 --- a/providers/base/api/handlers/mocks/api_query_handler.go +++ b/providers/base/api/handlers/mocks/api_query_handler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -54,7 +54,7 @@ func (_c *APIQueryHandler_Query_Call[K, V]) Return() *APIQueryHandler_Query_Call } func (_c *APIQueryHandler_Query_Call[K, V]) RunAndReturn(run func(context.Context, []K, chan<- types.GetResponse[K, V])) *APIQueryHandler_Query_Call[K, V] { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/providers/base/api/handlers/mocks/request_handler.go b/providers/base/api/handlers/mocks/request_handler.go index 73d53189f..53df3b35c 100644 --- a/providers/base/api/handlers/mocks/request_handler.go +++ b/providers/base/api/handlers/mocks/request_handler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -82,7 +82,7 @@ func (_c *RequestHandler_Do_Call) RunAndReturn(run func(context.Context, string) return _c } -// Type provides a mock function with given fields: +// Type provides a mock function with no fields func (_m *RequestHandler) Type() string { ret := _m.Called() diff --git a/providers/base/api/metrics/mocks/mock_metrics.go b/providers/base/api/metrics/mocks/mock_metrics.go index 51b5d28f6..0bc60b20b 100644 --- a/providers/base/api/metrics/mocks/mock_metrics.go +++ b/providers/base/api/metrics/mocks/mock_metrics.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -57,7 +57,7 @@ func (_c *APIMetrics_AddHTTPStatusCode_Call) Return() *APIMetrics_AddHTTPStatusC } func (_c *APIMetrics_AddHTTPStatusCode_Call) RunAndReturn(run func(string, *http.Response)) *APIMetrics_AddHTTPStatusCode_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -92,7 +92,7 @@ func (_c *APIMetrics_AddProviderResponse_Call) Return() *APIMetrics_AddProviderR } func (_c *APIMetrics_AddProviderResponse_Call) RunAndReturn(run func(string, string, types.ErrorCode)) *APIMetrics_AddProviderResponse_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -127,7 +127,7 @@ func (_c *APIMetrics_AddRPCStatusCode_Call) Return() *APIMetrics_AddRPCStatusCod } func (_c *APIMetrics_AddRPCStatusCode_Call) RunAndReturn(run func(string, string, metrics.RPCCode)) *APIMetrics_AddRPCStatusCode_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -162,7 +162,7 @@ func (_c *APIMetrics_ObserveProviderResponseLatency_Call) Return() *APIMetrics_O } func (_c *APIMetrics_ObserveProviderResponseLatency_Call) RunAndReturn(run func(string, string, time.Duration)) *APIMetrics_ObserveProviderResponseLatency_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/providers/base/metrics/mocks/mock_metrics.go b/providers/base/metrics/mocks/mock_metrics.go index 14a8c1993..ec232ffbd 100644 --- a/providers/base/metrics/mocks/mock_metrics.go +++ b/providers/base/metrics/mocks/mock_metrics.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -55,7 +55,7 @@ func (_c *ProviderMetrics_AddProviderResponse_Call) Return() *ProviderMetrics_Ad } func (_c *ProviderMetrics_AddProviderResponse_Call) RunAndReturn(run func(string, metrics.Status, types.ErrorCode, types.ProviderType)) *ProviderMetrics_AddProviderResponse_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -92,7 +92,7 @@ func (_c *ProviderMetrics_AddProviderResponseByID_Call) Return() *ProviderMetric } func (_c *ProviderMetrics_AddProviderResponseByID_Call) RunAndReturn(run func(string, string, metrics.Status, types.ErrorCode, types.ProviderType)) *ProviderMetrics_AddProviderResponseByID_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -127,7 +127,7 @@ func (_c *ProviderMetrics_LastUpdated_Call) Return() *ProviderMetrics_LastUpdate } func (_c *ProviderMetrics_LastUpdated_Call) RunAndReturn(run func(string, string, types.ProviderType)) *ProviderMetrics_LastUpdated_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/providers/base/websocket/handlers/mocks/web_socket_conn_handler.go b/providers/base/websocket/handlers/mocks/web_socket_conn_handler.go index b50f50010..88a2e7f9e 100644 --- a/providers/base/websocket/handlers/mocks/web_socket_conn_handler.go +++ b/providers/base/websocket/handlers/mocks/web_socket_conn_handler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -21,7 +21,7 @@ func (_m *WebSocketConnHandler) EXPECT() *WebSocketConnHandler_Expecter { return &WebSocketConnHandler_Expecter{mock: &_m.Mock} } -// Close provides a mock function with given fields: +// Close provides a mock function with no fields func (_m *WebSocketConnHandler) Close() error { ret := _m.Called() @@ -66,7 +66,7 @@ func (_c *WebSocketConnHandler_Close_Call) RunAndReturn(run func() error) *WebSo return _c } -// Copy provides a mock function with given fields: +// Copy provides a mock function with no fields func (_m *WebSocketConnHandler) Copy() handlers.WebSocketConnHandler { ret := _m.Called() @@ -113,7 +113,7 @@ func (_c *WebSocketConnHandler_Copy_Call) RunAndReturn(run func() handlers.WebSo return _c } -// Dial provides a mock function with given fields: +// Dial provides a mock function with no fields func (_m *WebSocketConnHandler) Dial() error { ret := _m.Called() @@ -158,7 +158,7 @@ func (_c *WebSocketConnHandler_Dial_Call) RunAndReturn(run func() error) *WebSoc return _c } -// Read provides a mock function with given fields: +// Read provides a mock function with no fields func (_m *WebSocketConnHandler) Read() ([]byte, error) { ret := _m.Called() diff --git a/providers/base/websocket/handlers/mocks/web_socket_data_handler.go b/providers/base/websocket/handlers/mocks/web_socket_data_handler.go index 4de65daf4..8323ad5c7 100644 --- a/providers/base/websocket/handlers/mocks/web_socket_data_handler.go +++ b/providers/base/websocket/handlers/mocks/web_socket_data_handler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -23,7 +23,7 @@ func (_m *WebSocketDataHandler[K, V]) EXPECT() *WebSocketDataHandler_Expecter[K, return &WebSocketDataHandler_Expecter[K, V]{mock: &_m.Mock} } -// Copy provides a mock function with given fields: +// Copy provides a mock function with no fields func (_m *WebSocketDataHandler[K, V]) Copy() handlers.WebSocketDataHandler[K, V] { ret := _m.Called() @@ -193,7 +193,7 @@ func (_c *WebSocketDataHandler_HandleMessage_Call[K, V]) RunAndReturn(run func([ return _c } -// HeartBeatMessages provides a mock function with given fields: +// HeartBeatMessages provides a mock function with no fields func (_m *WebSocketDataHandler[K, V]) HeartBeatMessages() ([]handlers.WebsocketEncodedMessage, error) { ret := _m.Called() diff --git a/providers/base/websocket/handlers/mocks/web_socket_query_handler.go b/providers/base/websocket/handlers/mocks/web_socket_query_handler.go index 676a2b6d0..0b6060e3f 100644 --- a/providers/base/websocket/handlers/mocks/web_socket_query_handler.go +++ b/providers/base/websocket/handlers/mocks/web_socket_query_handler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -25,7 +25,7 @@ func (_m *WebSocketQueryHandler[K, V]) EXPECT() *WebSocketQueryHandler_Expecter[ return &WebSocketQueryHandler_Expecter[K, V]{mock: &_m.Mock} } -// Copy provides a mock function with given fields: +// Copy provides a mock function with no fields func (_m *WebSocketQueryHandler[K, V]) Copy() handlers.WebSocketQueryHandler[K, V] { ret := _m.Called() diff --git a/providers/base/websocket/metrics/mocks/mock_metrics.go b/providers/base/websocket/metrics/mocks/mock_metrics.go index 19c9e80df..344b5d64b 100644 --- a/providers/base/websocket/metrics/mocks/mock_metrics.go +++ b/providers/base/websocket/metrics/mocks/mock_metrics.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -53,7 +53,7 @@ func (_c *WebSocketMetrics_AddWebSocketConnectionStatus_Call) Return() *WebSocke } func (_c *WebSocketMetrics_AddWebSocketConnectionStatus_Call) RunAndReturn(run func(string, metrics.ConnectionStatus)) *WebSocketMetrics_AddWebSocketConnectionStatus_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -87,7 +87,7 @@ func (_c *WebSocketMetrics_AddWebSocketDataHandlerStatus_Call) Return() *WebSock } func (_c *WebSocketMetrics_AddWebSocketDataHandlerStatus_Call) RunAndReturn(run func(string, metrics.HandlerStatus)) *WebSocketMetrics_AddWebSocketDataHandlerStatus_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -121,7 +121,7 @@ func (_c *WebSocketMetrics_ObserveWebSocketLatency_Call) Return() *WebSocketMetr } func (_c *WebSocketMetrics_ObserveWebSocketLatency_Call) RunAndReturn(run func(string, time.Duration)) *WebSocketMetrics_ObserveWebSocketLatency_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/providers/types/mocks/mock_provider.go b/providers/types/mocks/mock_provider.go index e0d2b38bd..a31585ddb 100644 --- a/providers/types/mocks/mock_provider.go +++ b/providers/types/mocks/mock_provider.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -23,7 +23,7 @@ func (_m *Provider[K, V]) EXPECT() *Provider_Expecter[K, V] { return &Provider_Expecter[K, V]{mock: &_m.Mock} } -// GetData provides a mock function with given fields: +// GetData provides a mock function with no fields func (_m *Provider[K, V]) GetData() map[K]types.ResolvedResult[V] { ret := _m.Called() @@ -70,7 +70,7 @@ func (_c *Provider_GetData_Call[K, V]) RunAndReturn(run func() map[K]types.Resol return _c } -// IsRunning provides a mock function with given fields: +// IsRunning provides a mock function with no fields func (_m *Provider[K, V]) IsRunning() bool { ret := _m.Called() @@ -115,7 +115,7 @@ func (_c *Provider_IsRunning_Call[K, V]) RunAndReturn(run func() bool) *Provider return _c } -// Name provides a mock function with given fields: +// Name provides a mock function with no fields func (_m *Provider[K, V]) Name() string { ret := _m.Called() @@ -206,7 +206,7 @@ func (_c *Provider_Start_Call[K, V]) RunAndReturn(run func(context.Context) erro return _c } -// Type provides a mock function with given fields: +// Type provides a mock function with no fields func (_m *Provider[K, V]) Type() types.ProviderType { ret := _m.Called() diff --git a/service/clients/oracle/mocks/mock_oracle_client.go b/service/clients/oracle/mocks/mock_oracle_client.go index 154f0fc6c..4480f3404 100644 --- a/service/clients/oracle/mocks/mock_oracle_client.go +++ b/service/clients/oracle/mocks/mock_oracle_client.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -219,7 +219,7 @@ func (_c *OracleClient_Start_Call) RunAndReturn(run func(context.Context) error) return _c } -// Stop provides a mock function with given fields: +// Stop provides a mock function with no fields func (_m *OracleClient) Stop() error { ret := _m.Called() diff --git a/service/metrics/mocks/mock_metrics.go b/service/metrics/mocks/mock_metrics.go index 10f3a5af8..c717fad0c 100644 --- a/service/metrics/mocks/mock_metrics.go +++ b/service/metrics/mocks/mock_metrics.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks @@ -55,7 +55,7 @@ func (_c *Metrics_AddABCIRequest_Call) Return() *Metrics_AddABCIRequest_Call { } func (_c *Metrics_AddABCIRequest_Call) RunAndReturn(run func(metrics.ABCIMethod, metrics.Labeller)) *Metrics_AddABCIRequest_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -88,7 +88,7 @@ func (_c *Metrics_AddOracleResponse_Call) Return() *Metrics_AddOracleResponse_Ca } func (_c *Metrics_AddOracleResponse_Call) RunAndReturn(run func(metrics.Labeller)) *Metrics_AddOracleResponse_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -123,7 +123,7 @@ func (_c *Metrics_AddValidatorPriceForTicker_Call) Return() *Metrics_AddValidato } func (_c *Metrics_AddValidatorPriceForTicker_Call) RunAndReturn(run func(string, types.CurrencyPair, float64)) *Metrics_AddValidatorPriceForTicker_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -158,7 +158,7 @@ func (_c *Metrics_AddValidatorReportForTicker_Call) Return() *Metrics_AddValidat } func (_c *Metrics_AddValidatorReportForTicker_Call) RunAndReturn(run func(string, types.CurrencyPair, metrics.ReportStatus)) *Metrics_AddValidatorReportForTicker_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -192,7 +192,7 @@ func (_c *Metrics_ObserveABCIMethodLatency_Call) Return() *Metrics_ObserveABCIMe } func (_c *Metrics_ObserveABCIMethodLatency_Call) RunAndReturn(run func(metrics.ABCIMethod, time.Duration)) *Metrics_ObserveABCIMethodLatency_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -226,7 +226,7 @@ func (_c *Metrics_ObserveMessageSize_Call) Return() *Metrics_ObserveMessageSize_ } func (_c *Metrics_ObserveMessageSize_Call) RunAndReturn(run func(metrics.MessageType, int)) *Metrics_ObserveMessageSize_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -259,7 +259,7 @@ func (_c *Metrics_ObserveOracleResponseLatency_Call) Return() *Metrics_ObserveOr } func (_c *Metrics_ObserveOracleResponseLatency_Call) RunAndReturn(run func(time.Duration)) *Metrics_ObserveOracleResponseLatency_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -293,7 +293,7 @@ func (_c *Metrics_ObservePriceForTicker_Call) Return() *Metrics_ObservePriceForT } func (_c *Metrics_ObservePriceForTicker_Call) RunAndReturn(run func(types.CurrencyPair, float64)) *Metrics_ObservePriceForTicker_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/service/servers/oracle/mocks/mock_oracle_service.go b/service/servers/oracle/mocks/mock_oracle_service.go index d46f76386..e40f7fcc7 100644 --- a/service/servers/oracle/mocks/mock_oracle_service.go +++ b/service/servers/oracle/mocks/mock_oracle_service.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/x/marketmap/types/mocks/MarketMapHooks.go b/x/marketmap/types/mocks/MarketMapHooks.go index e09a523f0..f7ad09d3d 100644 --- a/x/marketmap/types/mocks/MarketMapHooks.go +++ b/x/marketmap/types/mocks/MarketMapHooks.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks diff --git a/x/oracle/types/mocks/market_map_keeper.go b/x/oracle/types/mocks/market_map_keeper.go index 5aeb328f5..de89738f1 100644 --- a/x/oracle/types/mocks/market_map_keeper.go +++ b/x/oracle/types/mocks/market_map_keeper.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.46.0. DO NOT EDIT. +// Code generated by mockery v2.50.0. DO NOT EDIT. package mocks