From 594f17b334b0e05a59d12718aa02e38e5da39624 Mon Sep 17 00:00:00 2001 From: Luis Carvalho Date: Thu, 3 Oct 2024 10:59:33 +0100 Subject: [PATCH] chore: update mocks --- chain/evm/mock_ethClientConn_test.go | 2 +- chain/evm/mock_ethClientToFilterLogs_test.go | 5 ++--- chain/evm/mock_ethClienter_test.go | 5 ++--- chain/evm/mock_evmClienter_test.go | 10 +++++----- chain/evm/mock_mevClient_test.go | 5 ++--- chain/evm/mocks/CompassBinding.go | 5 ++--- chain/evm/mocks/PalomaClienter.go | 2 +- chain/mocks/Processor.go | 5 ++--- chain/paloma/mocks/IonClient.go | 5 ++--- chain/paloma/mocks/MessageSender.go | 15 ++++++--------- health/mocks/PalomaStatuser.go | 5 ++--- relayer/mocks/EvmFactorier.go | 5 ++--- relayer/mocks/PalomaClienter.go | 5 ++--- util/time/mocks/Time.go | 5 ++--- 14 files changed, 33 insertions(+), 46 deletions(-) diff --git a/chain/evm/mock_ethClientConn_test.go b/chain/evm/mock_ethClientConn_test.go index 2601d88..d08ee92 100644 --- a/chain/evm/mock_ethClientConn_test.go +++ b/chain/evm/mock_ethClientConn_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package evm diff --git a/chain/evm/mock_ethClientToFilterLogs_test.go b/chain/evm/mock_ethClientToFilterLogs_test.go index 249277c..0e434fe 100644 --- a/chain/evm/mock_ethClientToFilterLogs_test.go +++ b/chain/evm/mock_ethClientToFilterLogs_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package evm @@ -83,8 +83,7 @@ func (_m *mockEthClientToFilterLogs) HeaderByNumber(ctx context.Context, number func newMockEthClientToFilterLogs(t interface { mock.TestingT Cleanup(func()) -}, -) *mockEthClientToFilterLogs { +}) *mockEthClientToFilterLogs { mock := &mockEthClientToFilterLogs{} mock.Mock.Test(t) diff --git a/chain/evm/mock_ethClienter_test.go b/chain/evm/mock_ethClienter_test.go index ae0a31e..aba34ec 100644 --- a/chain/evm/mock_ethClienter_test.go +++ b/chain/evm/mock_ethClienter_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package evm @@ -339,8 +339,7 @@ func (_m *mockEthClienter) SuggestGasTipCap(ctx context.Context) (*big.Int, erro func newMockEthClienter(t interface { mock.TestingT Cleanup(func()) -}, -) *mockEthClienter { +}) *mockEthClienter { mock := &mockEthClienter{} mock.Mock.Test(t) diff --git a/chain/evm/mock_evmClienter_test.go b/chain/evm/mock_evmClienter_test.go index 629ab17..1aa1d16 100644 --- a/chain/evm/mock_evmClienter_test.go +++ b/chain/evm/mock_evmClienter_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package evm @@ -95,7 +95,7 @@ func (_m *mockEvmClienter) DeployContract(ctx context.Context, chainID *big.Int, } // ExecuteSmartContract provides a mock function with given fields: ctx, chainID, contractAbi, addr, opts, method, arguments -func (_m *mockEvmClienter) ExecuteSmartContract(ctx context.Context, chainID *big.Int, contractAbi abi.ABI, addr common.Address, opts callOptions, method string, arguments []interface{}) (*types.Transaction, error) { +func (_m *mockEvmClienter) ExecuteSmartContract(ctx context.Context, chainID *big.Int, contractAbi abi.ABI, addr common.Address, opts callOptions, method string, arguments []any) (*types.Transaction, error) { ret := _m.Called(ctx, chainID, contractAbi, addr, opts, method, arguments) if len(ret) == 0 { @@ -104,10 +104,10 @@ func (_m *mockEvmClienter) ExecuteSmartContract(ctx context.Context, chainID *bi var r0 *types.Transaction var r1 error - if rf, ok := ret.Get(0).(func(context.Context, *big.Int, abi.ABI, common.Address, callOptions, string, []interface{}) (*types.Transaction, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, *big.Int, abi.ABI, common.Address, callOptions, string, []any) (*types.Transaction, error)); ok { return rf(ctx, chainID, contractAbi, addr, opts, method, arguments) } - if rf, ok := ret.Get(0).(func(context.Context, *big.Int, abi.ABI, common.Address, callOptions, string, []interface{}) *types.Transaction); ok { + if rf, ok := ret.Get(0).(func(context.Context, *big.Int, abi.ABI, common.Address, callOptions, string, []any) *types.Transaction); ok { r0 = rf(ctx, chainID, contractAbi, addr, opts, method, arguments) } else { if ret.Get(0) != nil { @@ -115,7 +115,7 @@ func (_m *mockEvmClienter) ExecuteSmartContract(ctx context.Context, chainID *bi } } - if rf, ok := ret.Get(1).(func(context.Context, *big.Int, abi.ABI, common.Address, callOptions, string, []interface{}) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *big.Int, abi.ABI, common.Address, callOptions, string, []any) error); ok { r1 = rf(ctx, chainID, contractAbi, addr, opts, method, arguments) } else { r1 = ret.Error(1) diff --git a/chain/evm/mock_mevClient_test.go b/chain/evm/mock_mevClient_test.go index c79597a..ca8ad9d 100644 --- a/chain/evm/mock_mevClient_test.go +++ b/chain/evm/mock_mevClient_test.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package evm @@ -53,8 +53,7 @@ func (_m *mockMevClient) Relay(_a0 context.Context, _a1 *big.Int, _a2 *types.Tra func newMockMevClient(t interface { mock.TestingT Cleanup(func()) -}, -) *mockMevClient { +}) *mockMevClient { mock := &mockMevClient{} mock.Mock.Test(t) diff --git a/chain/evm/mocks/CompassBinding.go b/chain/evm/mocks/CompassBinding.go index f3cb001..1806364 100644 --- a/chain/evm/mocks/CompassBinding.go +++ b/chain/evm/mocks/CompassBinding.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks @@ -415,8 +415,7 @@ func (_m *CompassBinding) WatchValsetUpdated(opts *bind.WatchOpts, sink chan<- * func NewCompassBinding(t interface { mock.TestingT Cleanup(func()) -}, -) *CompassBinding { +}) *CompassBinding { mock := &CompassBinding{} mock.Mock.Test(t) diff --git a/chain/evm/mocks/PalomaClienter.go b/chain/evm/mocks/PalomaClienter.go index 7ccfa9e..78e0f34 100644 --- a/chain/evm/mocks/PalomaClienter.go +++ b/chain/evm/mocks/PalomaClienter.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks diff --git a/chain/mocks/Processor.go b/chain/mocks/Processor.go index 04b4f31..24f55fa 100644 --- a/chain/mocks/Processor.go +++ b/chain/mocks/Processor.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks @@ -352,8 +352,7 @@ func (_m *Processor) SupportedQueues() []string { func NewProcessor(t interface { mock.TestingT Cleanup(func()) -}, -) *Processor { +}) *Processor { mock := &Processor{} mock.Mock.Test(t) diff --git a/chain/paloma/mocks/IonClient.go b/chain/paloma/mocks/IonClient.go index f9a35a5..967e661 100644 --- a/chain/paloma/mocks/IonClient.go +++ b/chain/paloma/mocks/IonClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks @@ -153,8 +153,7 @@ func (_m *IonClient) Status(_a0 context.Context) (*coretypes.ResultStatus, error func NewIonClient(t interface { mock.TestingT Cleanup(func()) -}, -) *IonClient { +}) *IonClient { mock := &IonClient{} mock.Mock.Test(t) diff --git a/chain/paloma/mocks/MessageSender.go b/chain/paloma/mocks/MessageSender.go index c9323a4..1ebd125 100644 --- a/chain/paloma/mocks/MessageSender.go +++ b/chain/paloma/mocks/MessageSender.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks @@ -8,8 +8,6 @@ import ( ion "github.com/palomachain/pigeon/util/ion" mock "github.com/stretchr/testify/mock" - proto "github.com/cosmos/gogoproto/proto" - types "github.com/cosmos/cosmos-sdk/types" ) @@ -19,7 +17,7 @@ type MessageSender struct { } // SendMsg provides a mock function with given fields: ctx, msg, memo, opts -func (_m *MessageSender) SendMsg(ctx context.Context, msg proto.Message, memo string, opts ...ion.SendMsgOption) (*types.TxResponse, error) { +func (_m *MessageSender) SendMsg(ctx context.Context, msg types.Msg, memo string, opts ...ion.SendMsgOption) (*types.TxResponse, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -35,10 +33,10 @@ func (_m *MessageSender) SendMsg(ctx context.Context, msg proto.Message, memo st var r0 *types.TxResponse var r1 error - if rf, ok := ret.Get(0).(func(context.Context, proto.Message, string, ...ion.SendMsgOption) (*types.TxResponse, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, types.Msg, string, ...ion.SendMsgOption) (*types.TxResponse, error)); ok { return rf(ctx, msg, memo, opts...) } - if rf, ok := ret.Get(0).(func(context.Context, proto.Message, string, ...ion.SendMsgOption) *types.TxResponse); ok { + if rf, ok := ret.Get(0).(func(context.Context, types.Msg, string, ...ion.SendMsgOption) *types.TxResponse); ok { r0 = rf(ctx, msg, memo, opts...) } else { if ret.Get(0) != nil { @@ -46,7 +44,7 @@ func (_m *MessageSender) SendMsg(ctx context.Context, msg proto.Message, memo st } } - if rf, ok := ret.Get(1).(func(context.Context, proto.Message, string, ...ion.SendMsgOption) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, types.Msg, string, ...ion.SendMsgOption) error); ok { r1 = rf(ctx, msg, memo, opts...) } else { r1 = ret.Error(1) @@ -60,8 +58,7 @@ func (_m *MessageSender) SendMsg(ctx context.Context, msg proto.Message, memo st func NewMessageSender(t interface { mock.TestingT Cleanup(func()) -}, -) *MessageSender { +}) *MessageSender { mock := &MessageSender{} mock.Mock.Test(t) diff --git a/health/mocks/PalomaStatuser.go b/health/mocks/PalomaStatuser.go index 464fa62..3b06ed9 100644 --- a/health/mocks/PalomaStatuser.go +++ b/health/mocks/PalomaStatuser.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks @@ -36,8 +36,7 @@ func (_m *PalomaStatuser) PalomaStatus(ctx context.Context) error { func NewPalomaStatuser(t interface { mock.TestingT Cleanup(func()) -}, -) *PalomaStatuser { +}) *PalomaStatuser { mock := &PalomaStatuser{} mock.Mock.Test(t) diff --git a/relayer/mocks/EvmFactorier.go b/relayer/mocks/EvmFactorier.go index 108626b..f7359ae 100644 --- a/relayer/mocks/EvmFactorier.go +++ b/relayer/mocks/EvmFactorier.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks @@ -55,8 +55,7 @@ func (_m *EvmFactorier) Build(cfg config.EVM, chainReferenceID string, smartCont func NewEvmFactorier(t interface { mock.TestingT Cleanup(func()) -}, -) *EvmFactorier { +}) *EvmFactorier { mock := &EvmFactorier{} mock.Mock.Test(t) diff --git a/relayer/mocks/PalomaClienter.go b/relayer/mocks/PalomaClienter.go index 08c9c40..e7570d5 100644 --- a/relayer/mocks/PalomaClienter.go +++ b/relayer/mocks/PalomaClienter.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks @@ -705,8 +705,7 @@ func (_m *PalomaClienter) SkywayQueryLastUnsignedBatch(ctx context.Context, chai func NewPalomaClienter(t interface { mock.TestingT Cleanup(func()) -}, -) *PalomaClienter { +}) *PalomaClienter { mock := &PalomaClienter{} mock.Mock.Test(t) diff --git a/util/time/mocks/Time.go b/util/time/mocks/Time.go index 2a45d77..c4f117f 100644 --- a/util/time/mocks/Time.go +++ b/util/time/mocks/Time.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.2. DO NOT EDIT. package mocks @@ -36,8 +36,7 @@ func (_m *Time) Now() time.Time { func NewTime(t interface { mock.TestingT Cleanup(func()) -}, -) *Time { +}) *Time { mock := &Time{} mock.Mock.Test(t)