/
SendingKeeper.go
100 lines (77 loc) · 2.87 KB
/
SendingKeeper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// Code generated by mockery v2.14.0. DO NOT EDIT.
package mocks
import (
cosmos_sdktypes "github.com/cosmos/cosmos-sdk/types"
mock "github.com/stretchr/testify/mock"
types "github.com/furyanprotocol/v4-chain/protocol/x/sending/types"
)
// SendingKeeper is an autogenerated mock type for the SendingKeeper type
type SendingKeeper struct {
mock.Mock
}
// HasAuthority provides a mock function with given fields: authority
func (_m *SendingKeeper) HasAuthority(authority string) bool {
ret := _m.Called(authority)
var r0 bool
if rf, ok := ret.Get(0).(func(string) bool); ok {
r0 = rf(authority)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// ProcessDepositToSubaccount provides a mock function with given fields: ctx, msgDepositToSubaccount
func (_m *SendingKeeper) ProcessDepositToSubaccount(ctx cosmos_sdktypes.Context, msgDepositToSubaccount *types.MsgDepositToSubaccount) error {
ret := _m.Called(ctx, msgDepositToSubaccount)
var r0 error
if rf, ok := ret.Get(0).(func(cosmos_sdktypes.Context, *types.MsgDepositToSubaccount) error); ok {
r0 = rf(ctx, msgDepositToSubaccount)
} else {
r0 = ret.Error(0)
}
return r0
}
// ProcessTransfer provides a mock function with given fields: ctx, transfer
func (_m *SendingKeeper) ProcessTransfer(ctx cosmos_sdktypes.Context, transfer *types.Transfer) error {
ret := _m.Called(ctx, transfer)
var r0 error
if rf, ok := ret.Get(0).(func(cosmos_sdktypes.Context, *types.Transfer) error); ok {
r0 = rf(ctx, transfer)
} else {
r0 = ret.Error(0)
}
return r0
}
// ProcessWithdrawFromSubaccount provides a mock function with given fields: ctx, msgWithdrawFromSubaccount
func (_m *SendingKeeper) ProcessWithdrawFromSubaccount(ctx cosmos_sdktypes.Context, msgWithdrawFromSubaccount *types.MsgWithdrawFromSubaccount) error {
ret := _m.Called(ctx, msgWithdrawFromSubaccount)
var r0 error
if rf, ok := ret.Get(0).(func(cosmos_sdktypes.Context, *types.MsgWithdrawFromSubaccount) error); ok {
r0 = rf(ctx, msgWithdrawFromSubaccount)
} else {
r0 = ret.Error(0)
}
return r0
}
// SendFromModuleToAccount provides a mock function with given fields: ctx, msg
func (_m *SendingKeeper) SendFromModuleToAccount(ctx cosmos_sdktypes.Context, msg *types.MsgSendFromModuleToAccount) error {
ret := _m.Called(ctx, msg)
var r0 error
if rf, ok := ret.Get(0).(func(cosmos_sdktypes.Context, *types.MsgSendFromModuleToAccount) error); ok {
r0 = rf(ctx, msg)
} else {
r0 = ret.Error(0)
}
return r0
}
type mockConstructorTestingTNewSendingKeeper interface {
mock.TestingT
Cleanup(func())
}
// NewSendingKeeper creates a new instance of SendingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewSendingKeeper(t mockConstructorTestingTNewSendingKeeper) *SendingKeeper {
mock := &SendingKeeper{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}