-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
aggregator_v3_interface.go
173 lines (139 loc) · 4.38 KB
/
aggregator_v3_interface.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
// Code generated by mockery v2.22.1. DO NOT EDIT.
package mocks
import (
big "math/big"
aggregator_v3_interface "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated/aggregator_v3_interface"
bind "github.com/ethereum/go-ethereum/accounts/abi/bind"
common "github.com/ethereum/go-ethereum/common"
mock "github.com/stretchr/testify/mock"
)
// AggregatorV3Interface is an autogenerated mock type for the AggregatorV3InterfaceInterface type
type AggregatorV3Interface struct {
mock.Mock
}
// Address provides a mock function with given fields:
func (_m *AggregatorV3Interface) Address() common.Address {
ret := _m.Called()
var r0 common.Address
if rf, ok := ret.Get(0).(func() common.Address); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(common.Address)
}
}
return r0
}
// Decimals provides a mock function with given fields: opts
func (_m *AggregatorV3Interface) Decimals(opts *bind.CallOpts) (uint8, error) {
ret := _m.Called(opts)
var r0 uint8
var r1 error
if rf, ok := ret.Get(0).(func(*bind.CallOpts) (uint8, error)); ok {
return rf(opts)
}
if rf, ok := ret.Get(0).(func(*bind.CallOpts) uint8); ok {
r0 = rf(opts)
} else {
r0 = ret.Get(0).(uint8)
}
if rf, ok := ret.Get(1).(func(*bind.CallOpts) error); ok {
r1 = rf(opts)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Description provides a mock function with given fields: opts
func (_m *AggregatorV3Interface) Description(opts *bind.CallOpts) (string, error) {
ret := _m.Called(opts)
var r0 string
var r1 error
if rf, ok := ret.Get(0).(func(*bind.CallOpts) (string, error)); ok {
return rf(opts)
}
if rf, ok := ret.Get(0).(func(*bind.CallOpts) string); ok {
r0 = rf(opts)
} else {
r0 = ret.Get(0).(string)
}
if rf, ok := ret.Get(1).(func(*bind.CallOpts) error); ok {
r1 = rf(opts)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetRoundData provides a mock function with given fields: opts, _roundId
func (_m *AggregatorV3Interface) GetRoundData(opts *bind.CallOpts, _roundId *big.Int) (aggregator_v3_interface.GetRoundData, error) {
ret := _m.Called(opts, _roundId)
var r0 aggregator_v3_interface.GetRoundData
var r1 error
if rf, ok := ret.Get(0).(func(*bind.CallOpts, *big.Int) (aggregator_v3_interface.GetRoundData, error)); ok {
return rf(opts, _roundId)
}
if rf, ok := ret.Get(0).(func(*bind.CallOpts, *big.Int) aggregator_v3_interface.GetRoundData); ok {
r0 = rf(opts, _roundId)
} else {
r0 = ret.Get(0).(aggregator_v3_interface.GetRoundData)
}
if rf, ok := ret.Get(1).(func(*bind.CallOpts, *big.Int) error); ok {
r1 = rf(opts, _roundId)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// LatestRoundData provides a mock function with given fields: opts
func (_m *AggregatorV3Interface) LatestRoundData(opts *bind.CallOpts) (aggregator_v3_interface.LatestRoundData, error) {
ret := _m.Called(opts)
var r0 aggregator_v3_interface.LatestRoundData
var r1 error
if rf, ok := ret.Get(0).(func(*bind.CallOpts) (aggregator_v3_interface.LatestRoundData, error)); ok {
return rf(opts)
}
if rf, ok := ret.Get(0).(func(*bind.CallOpts) aggregator_v3_interface.LatestRoundData); ok {
r0 = rf(opts)
} else {
r0 = ret.Get(0).(aggregator_v3_interface.LatestRoundData)
}
if rf, ok := ret.Get(1).(func(*bind.CallOpts) error); ok {
r1 = rf(opts)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Version provides a mock function with given fields: opts
func (_m *AggregatorV3Interface) Version(opts *bind.CallOpts) (*big.Int, error) {
ret := _m.Called(opts)
var r0 *big.Int
var r1 error
if rf, ok := ret.Get(0).(func(*bind.CallOpts) (*big.Int, error)); ok {
return rf(opts)
}
if rf, ok := ret.Get(0).(func(*bind.CallOpts) *big.Int); ok {
r0 = rf(opts)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*big.Int)
}
}
if rf, ok := ret.Get(1).(func(*bind.CallOpts) error); ok {
r1 = rf(opts)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type mockConstructorTestingTNewAggregatorV3Interface interface {
mock.TestingT
Cleanup(func())
}
// NewAggregatorV3Interface creates a new instance of AggregatorV3Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewAggregatorV3Interface(t mockConstructorTestingTNewAggregatorV3Interface) *AggregatorV3Interface {
mock := &AggregatorV3Interface{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}