IPriceOracle
Also available on Github.
IPriceOracle.sol
ABI
1
// SPDX-License-Identifier: agpl-3.0
2
pragma solidity 0.6.12;
3
4
interface IPriceOracleGetter {
5
function getAssetPrice(address _asset) external view returns (uint256);
6
function getAssetsPrices(address[] calldata _assets) external view returns(uint256[] memory);
7
function getSourceOfAsset(address _asset) external view returns(address);
8
function getFallbackOracle() external view returns(address);
9
}
Copied!
1
[
2
{
3
"inputs": [
4
{
5
"internalType": "address[]",
6
"name": "_assets",
7
"type": "address[]"
8
},
9
{
10
"internalType": "address[]",
11
"name": "_sources",
12
"type": "address[]"
13
},
14
{
15
"internalType": "address",
16
"name": "_fallbackOracle",
17
"type": "address"
18
}
19
],
20
"payable": false,
21
"stateMutability": "nonpayable",
22
"type": "constructor"
23
},
24
{
25
"anonymous": false,
26
"inputs": [
27
{
28
"indexed": true,
29
"internalType": "address",
30
"name": "asset",
31
"type": "address"
32
},
33
{
34
"indexed": true,
35
"internalType": "address",
36
"name": "source",
37
"type": "address"
38
}
39
],
40
"name": "AssetSourceUpdated",
41
"type": "event"
42
},
43
{
44
"anonymous": false,
45
"inputs": [
46
{
47
"indexed": true,
48
"internalType": "address",
49
"name": "fallbackOracle",
50
"type": "address"
51
}
52
],
53
"name": "FallbackOracleUpdated",
54
"type": "event"
55
},
56
{
57
"anonymous": false,
58
"inputs": [
59
{
60
"indexed": true,
61
"internalType": "address",
62
"name": "previousOwner",
63
"type": "address"
64
},
65
{
66
"indexed": true,
67
"internalType": "address",
68
"name": "newOwner",
69
"type": "address"
70
}
71
],
72
"name": "OwnershipTransferred",
73
"type": "event"
74
},
75
{
76
"constant": true,
77
"inputs": [],
78
"name": "isOwner",
79
"outputs": [
80
{
81
"internalType": "bool",
82
"name": "",
83
"type": "bool"
84
}
85
],
86
"payable": false,
87
"stateMutability": "view",
88
"type": "function"
89
},
90
{
91
"constant": true,
92
"inputs": [],
93
"name": "owner",
94
"outputs": [
95
{
96
"internalType": "address",
97
"name": "",
98
"type": "address"
99
}
100
],
101
"payable": false,
102
"stateMutability": "view",
103
"type": "function"
104
},
105
{
106
"constant": false,
107
"inputs": [],
108
"name": "renounceOwnership",
109
"outputs": [],
110
"payable": false,
111
"stateMutability": "nonpayable",
112
"type": "function"
113
},
114
{
115
"constant": false,
116
"inputs": [
117
{
118
"internalType": "address",
119
"name": "newOwner",
120
"type": "address"
121
}
122
],
123
"name": "transferOwnership",
124
"outputs": [],
125
"payable": false,
126
"stateMutability": "nonpayable",
127
"type": "function"
128
},
129
{
130
"constant": false,
131
"inputs": [
132
{
133
"internalType": "address[]",
134
"name": "_assets",
135
"type": "address[]"
136
},
137
{
138
"internalType": "address[]",
139
"name": "_sources",
140
"type": "address[]"
141
}
142
],
143
"name": "setAssetSources",
144
"outputs": [],
145
"payable": false,
146
"stateMutability": "nonpayable",
147
"type": "function"
148
},
149
{
150
"constant": false,
151
"inputs": [
152
{
153
"internalType": "address",
154
"name": "_fallbackOracle",
155
"type": "address"
156
}
157
],
158
"name": "setFallbackOracle",
159
"outputs": [],
160
"payable": false,
161
"stateMutability": "nonpayable",
162
"type": "function"
163
},
164
{
165
"constant": true,
166
"inputs": [
167
{
168
"internalType": "address",
169
"name": "_asset",
170
"type": "address"
171
}
172
],
173
"name": "getAssetPrice",
174
"outputs": [
175
{
176
"internalType": "uint256",
177
"name": "",
178
"type": "uint256"
179
}
180
],
181
"payable": false,
182
"stateMutability": "view",
183
"type": "function"
184
},
185
{
186
"constant": true,
187
"inputs": [
188
{
189
"internalType": "address[]",
190
"name": "_assets",
191
"type": "address[]"
192
}
193
],
194
"name": "getAssetsPrices",
195
"outputs": [
196
{
197
"internalType": "uint256[]",
198
"name": "",
199
"type": "uint256[]"
200
}
201
],
202
"payable": false,
203
"stateMutability": "view",
204
"type": "function"
205
},
206
{
207
"constant": true,
208
"inputs": [
209
{
210
"internalType": "address",
211
"name": "_asset",
212
"type": "address"
213
}
214
],
215
"name": "getSourceOfAsset",
216
"outputs": [
217
{
218
"internalType": "address",
219
"name": "",
220
"type": "address"
221
}
222
],
223
"payable": false,
224
"stateMutability": "view",
225
"type": "function"
226
},
227
{
228
"constant": true,
229
"inputs": [],
230
"name": "getFallbackOracle",
231
"outputs": [
232
{
233
"internalType": "address",
234
"name": "",
235
"type": "address"
236
}
237
],
238
"payable": false,
239
"stateMutability": "view",
240
"type": "function"
241
}
242
]
Copied!
Last modified 11mo ago
Copy link