@underscore-finance/sdk 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +318 -318
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +699 -699
- package/dist/contracts/AgentTemplate.d.ts.map +1 -1
- package/dist/contracts/AgentTemplate.js +1 -1
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +399 -399
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +643 -643
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +749 -749
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +820 -820
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +664 -664
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +732 -732
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +674 -674
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +629 -629
- package/dist/contracts/LegoHelper.d.ts +22 -16
- package/dist/contracts/LegoHelper.d.ts.map +1 -1
- package/dist/contracts/LegoHelper.js +1057 -1057
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +649 -649
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +674 -674
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +406 -406
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +557 -557
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +749 -749
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +849 -849
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +585 -585
- package/dist/contracts/PriceSheets.d.ts +18 -15
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +718 -718
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +352 -352
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +352 -352
- package/dist/contracts/WalletConfig.d.ts +1 -1
- package/dist/contracts/WalletConfig.d.ts.map +1 -1
- package/dist/contracts/WalletConfig.js +1 -1
- package/dist/contracts/WalletFunds.d.ts.map +1 -1
- package/dist/contracts/WalletFunds.js +1 -1
- package/dist/contracts/sdk.d.ts +1 -1
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/package.json +1 -1
|
@@ -5,1181 +5,1181 @@
|
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
anonymous: false,
|
|
9
|
+
inputs: [
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
indexed: true,
|
|
12
|
+
name: 'agent',
|
|
13
|
+
type: 'address',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
indexed: true,
|
|
17
|
+
name: 'asset',
|
|
18
|
+
type: 'address',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
indexed: false,
|
|
22
|
+
name: 'usdValue',
|
|
23
|
+
type: 'uint256',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
indexed: false,
|
|
27
|
+
name: 'trialPeriod',
|
|
28
|
+
type: 'uint256',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
31
|
+
indexed: false,
|
|
32
|
+
name: 'payPeriod',
|
|
33
|
+
type: 'uint256',
|
|
34
|
+
},
|
|
35
35
|
],
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
name: 'AgentSubPriceSet',
|
|
37
|
+
type: 'event',
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
anonymous: false,
|
|
41
|
+
inputs: [
|
|
42
42
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
indexed: true,
|
|
44
|
+
name: 'agent',
|
|
45
|
+
type: 'address',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
indexed: true,
|
|
49
|
+
name: 'asset',
|
|
50
|
+
type: 'address',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
indexed: false,
|
|
54
|
+
name: 'usdValue',
|
|
55
|
+
type: 'uint256',
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
indexed: false,
|
|
59
|
+
name: 'trialPeriod',
|
|
60
|
+
type: 'uint256',
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
indexed: false,
|
|
64
|
+
name: 'payPeriod',
|
|
65
|
+
type: 'uint256',
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
68
|
+
indexed: false,
|
|
69
|
+
name: 'effectiveBlock',
|
|
70
|
+
type: 'uint256',
|
|
71
|
+
},
|
|
72
72
|
],
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
name: 'PendingAgentSubPriceSet',
|
|
74
|
+
type: 'event',
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
anonymous: false,
|
|
78
|
+
inputs: [
|
|
79
79
|
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
indexed: true,
|
|
81
|
+
name: 'asset',
|
|
82
|
+
type: 'address',
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
indexed: false,
|
|
86
|
+
name: 'usdValue',
|
|
87
|
+
type: 'uint256',
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
indexed: false,
|
|
91
|
+
name: 'trialPeriod',
|
|
92
|
+
type: 'uint256',
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
95
|
+
indexed: false,
|
|
96
|
+
name: 'payPeriod',
|
|
97
|
+
type: 'uint256',
|
|
98
|
+
},
|
|
99
99
|
],
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
name: 'ProtocolSubPriceSet',
|
|
101
|
+
type: 'event',
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
anonymous: false,
|
|
105
|
+
inputs: [
|
|
106
106
|
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
indexed: true,
|
|
108
|
+
name: 'agent',
|
|
109
|
+
type: 'address',
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
indexed: true,
|
|
113
|
+
name: 'asset',
|
|
114
|
+
type: 'address',
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
indexed: false,
|
|
118
|
+
name: 'usdValue',
|
|
119
|
+
type: 'uint256',
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
indexed: false,
|
|
123
|
+
name: 'trialPeriod',
|
|
124
|
+
type: 'uint256',
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
127
|
+
indexed: false,
|
|
128
|
+
name: 'payPeriod',
|
|
129
|
+
type: 'uint256',
|
|
130
|
+
},
|
|
131
131
|
],
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
name: 'AgentSubPriceRemoved',
|
|
133
|
+
type: 'event',
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
anonymous: false,
|
|
137
|
+
inputs: [
|
|
138
138
|
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
indexed: true,
|
|
140
|
+
name: 'asset',
|
|
141
|
+
type: 'address',
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
indexed: false,
|
|
145
|
+
name: 'usdValue',
|
|
146
|
+
type: 'uint256',
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
indexed: false,
|
|
150
|
+
name: 'trialPeriod',
|
|
151
|
+
type: 'uint256',
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
154
|
+
indexed: false,
|
|
155
|
+
name: 'payPeriod',
|
|
156
|
+
type: 'uint256',
|
|
157
|
+
},
|
|
158
158
|
],
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
name: 'ProtocolSubPriceRemoved',
|
|
160
|
+
type: 'event',
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
anonymous: false,
|
|
164
|
+
inputs: [
|
|
165
165
|
{
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
166
|
+
indexed: false,
|
|
167
|
+
name: 'isEnabled',
|
|
168
|
+
type: 'bool',
|
|
169
|
+
},
|
|
170
170
|
],
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
name: 'AgentSubPricingEnabled',
|
|
172
|
+
type: 'event',
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
anonymous: false,
|
|
176
|
+
inputs: [
|
|
177
177
|
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
indexed: false,
|
|
179
|
+
name: 'depositFee',
|
|
180
|
+
type: 'uint256',
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
indexed: false,
|
|
184
|
+
name: 'withdrawalFee',
|
|
185
|
+
type: 'uint256',
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
indexed: false,
|
|
189
|
+
name: 'rebalanceFee',
|
|
190
|
+
type: 'uint256',
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
indexed: false,
|
|
194
|
+
name: 'transferFee',
|
|
195
|
+
type: 'uint256',
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
indexed: false,
|
|
199
|
+
name: 'swapFee',
|
|
200
|
+
type: 'uint256',
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
indexed: false,
|
|
204
|
+
name: 'addLiqFee',
|
|
205
|
+
type: 'uint256',
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
indexed: false,
|
|
209
|
+
name: 'removeLiqFee',
|
|
210
|
+
type: 'uint256',
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
indexed: false,
|
|
214
|
+
name: 'claimRewardsFee',
|
|
215
|
+
type: 'uint256',
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
indexed: false,
|
|
219
|
+
name: 'borrowFee',
|
|
220
|
+
type: 'uint256',
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
223
|
+
indexed: false,
|
|
224
|
+
name: 'repayFee',
|
|
225
|
+
type: 'uint256',
|
|
226
|
+
},
|
|
227
227
|
],
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
name: 'ProtocolTxPriceSheetSet',
|
|
229
|
+
type: 'event',
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
anonymous: false,
|
|
233
|
+
inputs: [
|
|
234
234
|
{
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
indexed: false,
|
|
236
|
+
name: 'depositFee',
|
|
237
|
+
type: 'uint256',
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
indexed: false,
|
|
241
|
+
name: 'withdrawalFee',
|
|
242
|
+
type: 'uint256',
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
indexed: false,
|
|
246
|
+
name: 'rebalanceFee',
|
|
247
|
+
type: 'uint256',
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
indexed: false,
|
|
251
|
+
name: 'transferFee',
|
|
252
|
+
type: 'uint256',
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
indexed: false,
|
|
256
|
+
name: 'swapFee',
|
|
257
|
+
type: 'uint256',
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
indexed: false,
|
|
261
|
+
name: 'addLiqFee',
|
|
262
|
+
type: 'uint256',
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
indexed: false,
|
|
266
|
+
name: 'removeLiqFee',
|
|
267
|
+
type: 'uint256',
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
indexed: false,
|
|
271
|
+
name: 'claimRewardsFee',
|
|
272
|
+
type: 'uint256',
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
indexed: false,
|
|
276
|
+
name: 'borrowFee',
|
|
277
|
+
type: 'uint256',
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
280
|
+
indexed: false,
|
|
281
|
+
name: 'repayFee',
|
|
282
|
+
type: 'uint256',
|
|
283
|
+
},
|
|
284
284
|
],
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
name: 'ProtocolTxPriceSheetRemoved',
|
|
286
|
+
type: 'event',
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
anonymous: false,
|
|
290
|
+
inputs: [
|
|
291
291
|
{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
292
|
+
indexed: true,
|
|
293
|
+
name: 'recipient',
|
|
294
|
+
type: 'address',
|
|
295
|
+
},
|
|
296
296
|
],
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
name: 'ProtocolRecipientSet',
|
|
298
|
+
type: 'event',
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
anonymous: false,
|
|
302
|
+
inputs: [
|
|
303
303
|
{
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
304
|
+
indexed: false,
|
|
305
|
+
name: 'delayBlocks',
|
|
306
|
+
type: 'uint256',
|
|
307
|
+
},
|
|
308
308
|
],
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
name: 'PriceChangeDelaySet',
|
|
310
|
+
type: 'event',
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
anonymous: false,
|
|
314
|
+
inputs: [
|
|
315
315
|
{
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
316
|
+
indexed: false,
|
|
317
|
+
name: 'isActivated',
|
|
318
|
+
type: 'bool',
|
|
319
|
+
},
|
|
320
320
|
],
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
name: 'PriceSheetsActivated',
|
|
322
|
+
type: 'event',
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
anonymous: false,
|
|
326
|
+
inputs: [
|
|
327
327
|
{
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}
|
|
328
|
+
indexed: true,
|
|
329
|
+
name: 'addr',
|
|
330
|
+
type: 'address',
|
|
331
|
+
},
|
|
332
332
|
],
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
name: 'LocalGovernorSet',
|
|
334
|
+
type: 'event',
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
|
-
|
|
337
|
+
inputs: [
|
|
338
338
|
{
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}
|
|
339
|
+
name: '_address',
|
|
340
|
+
type: 'address',
|
|
341
|
+
},
|
|
342
342
|
],
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
name: 'isGovernor',
|
|
344
|
+
outputs: [
|
|
345
345
|
{
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
}
|
|
346
|
+
name: '',
|
|
347
|
+
type: 'bool',
|
|
348
|
+
},
|
|
349
349
|
],
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
stateMutability: 'view',
|
|
351
|
+
type: 'function',
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
|
-
|
|
354
|
+
inputs: [
|
|
355
355
|
{
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
}
|
|
356
|
+
name: '_newGovernor',
|
|
357
|
+
type: 'address',
|
|
358
|
+
},
|
|
359
359
|
],
|
|
360
|
-
|
|
361
|
-
|
|
360
|
+
name: 'isValidLocalGovernor',
|
|
361
|
+
outputs: [
|
|
362
362
|
{
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
363
|
+
name: '',
|
|
364
|
+
type: 'bool',
|
|
365
|
+
},
|
|
366
366
|
],
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
stateMutability: 'view',
|
|
368
|
+
type: 'function',
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
|
-
|
|
371
|
+
inputs: [
|
|
372
372
|
{
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
373
|
+
name: '_newGovernor',
|
|
374
|
+
type: 'address',
|
|
375
|
+
},
|
|
376
376
|
],
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
name: 'setLocalGovernor',
|
|
378
|
+
outputs: [
|
|
379
379
|
{
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
}
|
|
380
|
+
name: '',
|
|
381
|
+
type: 'bool',
|
|
382
|
+
},
|
|
383
383
|
],
|
|
384
|
-
|
|
385
|
-
|
|
384
|
+
stateMutability: 'nonpayable',
|
|
385
|
+
type: 'function',
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
388
|
+
inputs: [],
|
|
389
|
+
name: 'localGovernor',
|
|
390
|
+
outputs: [
|
|
391
391
|
{
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
392
|
+
name: '',
|
|
393
|
+
type: 'address',
|
|
394
|
+
},
|
|
395
395
|
],
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
stateMutability: 'view',
|
|
397
|
+
type: 'function',
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
|
-
|
|
400
|
+
inputs: [
|
|
401
401
|
{
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
name: '_user',
|
|
403
|
+
type: 'address',
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
name: '_agent',
|
|
407
|
+
type: 'address',
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
name: '_agentPaidThru',
|
|
411
|
+
type: 'uint256',
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
name: '_protocolPaidThru',
|
|
415
|
+
type: 'uint256',
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
418
|
+
name: '_oracleRegistry',
|
|
419
|
+
type: 'address',
|
|
420
|
+
},
|
|
421
421
|
],
|
|
422
|
-
|
|
423
|
-
|
|
422
|
+
name: 'getCombinedSubData',
|
|
423
|
+
outputs: [
|
|
424
424
|
{
|
|
425
|
-
|
|
425
|
+
components: [
|
|
426
426
|
{
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
name: 'recipient',
|
|
428
|
+
type: 'address',
|
|
429
429
|
},
|
|
430
430
|
{
|
|
431
|
-
|
|
432
|
-
|
|
431
|
+
name: 'asset',
|
|
432
|
+
type: 'address',
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
name: 'amount',
|
|
436
|
+
type: 'uint256',
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
name: 'usdValue',
|
|
440
|
+
type: 'uint256',
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
|
-
|
|
444
|
-
|
|
443
|
+
name: 'paidThroughBlock',
|
|
444
|
+
type: 'uint256',
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}
|
|
447
|
+
name: 'didChange',
|
|
448
|
+
type: 'bool',
|
|
449
|
+
},
|
|
450
450
|
],
|
|
451
|
-
|
|
452
|
-
|
|
451
|
+
name: '',
|
|
452
|
+
type: 'tuple',
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
|
-
|
|
455
|
+
components: [
|
|
456
456
|
{
|
|
457
|
-
|
|
458
|
-
|
|
457
|
+
name: 'recipient',
|
|
458
|
+
type: 'address',
|
|
459
459
|
},
|
|
460
460
|
{
|
|
461
|
-
|
|
462
|
-
|
|
461
|
+
name: 'asset',
|
|
462
|
+
type: 'address',
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
name: 'amount',
|
|
466
|
+
type: 'uint256',
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
name: 'usdValue',
|
|
470
|
+
type: 'uint256',
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
name: 'paidThroughBlock',
|
|
474
|
+
type: 'uint256',
|
|
475
475
|
},
|
|
476
476
|
{
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
}
|
|
477
|
+
name: 'didChange',
|
|
478
|
+
type: 'bool',
|
|
479
|
+
},
|
|
480
480
|
],
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
481
|
+
name: '',
|
|
482
|
+
type: 'tuple',
|
|
483
|
+
},
|
|
484
484
|
],
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
stateMutability: 'view',
|
|
486
|
+
type: 'function',
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
|
-
|
|
489
|
+
inputs: [
|
|
490
490
|
{
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
491
|
+
name: '_agent',
|
|
492
|
+
type: 'address',
|
|
493
|
+
},
|
|
494
494
|
],
|
|
495
|
-
|
|
496
|
-
|
|
495
|
+
name: 'getAgentSubPriceData',
|
|
496
|
+
outputs: [
|
|
497
497
|
{
|
|
498
|
-
|
|
498
|
+
components: [
|
|
499
499
|
{
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
name: 'asset',
|
|
501
|
+
type: 'address',
|
|
502
502
|
},
|
|
503
503
|
{
|
|
504
|
-
|
|
505
|
-
|
|
504
|
+
name: 'usdValue',
|
|
505
|
+
type: 'uint256',
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
|
-
|
|
509
|
-
|
|
508
|
+
name: 'trialPeriod',
|
|
509
|
+
type: 'uint256',
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
}
|
|
512
|
+
name: 'payPeriod',
|
|
513
|
+
type: 'uint256',
|
|
514
|
+
},
|
|
515
515
|
],
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}
|
|
516
|
+
name: '',
|
|
517
|
+
type: 'tuple',
|
|
518
|
+
},
|
|
519
519
|
],
|
|
520
|
-
|
|
521
|
-
|
|
520
|
+
stateMutability: 'view',
|
|
521
|
+
type: 'function',
|
|
522
522
|
},
|
|
523
523
|
{
|
|
524
|
-
|
|
524
|
+
inputs: [
|
|
525
525
|
{
|
|
526
|
-
|
|
527
|
-
|
|
526
|
+
name: '_asset',
|
|
527
|
+
type: 'address',
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
name: '_usdValue',
|
|
531
|
+
type: 'uint256',
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
|
-
|
|
535
|
-
|
|
534
|
+
name: '_trialPeriod',
|
|
535
|
+
type: 'uint256',
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}
|
|
538
|
+
name: '_payPeriod',
|
|
539
|
+
type: 'uint256',
|
|
540
|
+
},
|
|
541
541
|
],
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
name: 'isValidSubPrice',
|
|
543
|
+
outputs: [
|
|
544
544
|
{
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
}
|
|
545
|
+
name: '',
|
|
546
|
+
type: 'bool',
|
|
547
|
+
},
|
|
548
548
|
],
|
|
549
|
-
|
|
550
|
-
|
|
549
|
+
stateMutability: 'view',
|
|
550
|
+
type: 'function',
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
|
-
|
|
553
|
+
inputs: [
|
|
554
554
|
{
|
|
555
|
-
|
|
556
|
-
|
|
555
|
+
name: '_agent',
|
|
556
|
+
type: 'address',
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
|
-
|
|
560
|
-
|
|
559
|
+
name: '_asset',
|
|
560
|
+
type: 'address',
|
|
561
561
|
},
|
|
562
562
|
{
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
name: '_usdValue',
|
|
564
|
+
type: 'uint256',
|
|
565
565
|
},
|
|
566
566
|
{
|
|
567
|
-
|
|
568
|
-
|
|
567
|
+
name: '_trialPeriod',
|
|
568
|
+
type: 'uint256',
|
|
569
569
|
},
|
|
570
570
|
{
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
571
|
+
name: '_payPeriod',
|
|
572
|
+
type: 'uint256',
|
|
573
|
+
},
|
|
574
574
|
],
|
|
575
|
-
|
|
576
|
-
|
|
575
|
+
name: 'setAgentSubPrice',
|
|
576
|
+
outputs: [
|
|
577
577
|
{
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
}
|
|
578
|
+
name: '',
|
|
579
|
+
type: 'bool',
|
|
580
|
+
},
|
|
581
581
|
],
|
|
582
|
-
|
|
583
|
-
|
|
582
|
+
stateMutability: 'nonpayable',
|
|
583
|
+
type: 'function',
|
|
584
584
|
},
|
|
585
585
|
{
|
|
586
|
-
|
|
586
|
+
inputs: [
|
|
587
587
|
{
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
}
|
|
588
|
+
name: '_agent',
|
|
589
|
+
type: 'address',
|
|
590
|
+
},
|
|
591
591
|
],
|
|
592
|
-
|
|
593
|
-
|
|
592
|
+
name: 'finalizePendingAgentSubPrice',
|
|
593
|
+
outputs: [
|
|
594
594
|
{
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}
|
|
595
|
+
name: '',
|
|
596
|
+
type: 'bool',
|
|
597
|
+
},
|
|
598
598
|
],
|
|
599
|
-
|
|
600
|
-
|
|
599
|
+
stateMutability: 'nonpayable',
|
|
600
|
+
type: 'function',
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
|
-
|
|
603
|
+
inputs: [
|
|
604
604
|
{
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}
|
|
605
|
+
name: '_agent',
|
|
606
|
+
type: 'address',
|
|
607
|
+
},
|
|
608
608
|
],
|
|
609
|
-
|
|
610
|
-
|
|
609
|
+
name: 'removeAgentSubPrice',
|
|
610
|
+
outputs: [
|
|
611
611
|
{
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
}
|
|
612
|
+
name: '',
|
|
613
|
+
type: 'bool',
|
|
614
|
+
},
|
|
615
615
|
],
|
|
616
|
-
|
|
617
|
-
|
|
616
|
+
stateMutability: 'nonpayable',
|
|
617
|
+
type: 'function',
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
|
-
|
|
620
|
+
inputs: [
|
|
621
621
|
{
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
}
|
|
622
|
+
name: '_isEnabled',
|
|
623
|
+
type: 'bool',
|
|
624
|
+
},
|
|
625
625
|
],
|
|
626
|
-
|
|
627
|
-
|
|
626
|
+
name: 'setAgentSubPricingEnabled',
|
|
627
|
+
outputs: [
|
|
628
628
|
{
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
}
|
|
629
|
+
name: '',
|
|
630
|
+
type: 'bool',
|
|
631
|
+
},
|
|
632
632
|
],
|
|
633
|
-
|
|
634
|
-
|
|
633
|
+
stateMutability: 'nonpayable',
|
|
634
|
+
type: 'function',
|
|
635
635
|
},
|
|
636
636
|
{
|
|
637
|
-
|
|
637
|
+
inputs: [
|
|
638
638
|
{
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
name: '_asset',
|
|
640
|
+
type: 'address',
|
|
641
641
|
},
|
|
642
642
|
{
|
|
643
|
-
|
|
644
|
-
|
|
643
|
+
name: '_usdValue',
|
|
644
|
+
type: 'uint256',
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
|
-
|
|
648
|
-
|
|
647
|
+
name: '_trialPeriod',
|
|
648
|
+
type: 'uint256',
|
|
649
649
|
},
|
|
650
650
|
{
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}
|
|
651
|
+
name: '_payPeriod',
|
|
652
|
+
type: 'uint256',
|
|
653
|
+
},
|
|
654
654
|
],
|
|
655
|
-
|
|
656
|
-
|
|
655
|
+
name: 'setProtocolSubPrice',
|
|
656
|
+
outputs: [
|
|
657
657
|
{
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}
|
|
658
|
+
name: '',
|
|
659
|
+
type: 'bool',
|
|
660
|
+
},
|
|
661
661
|
],
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
stateMutability: 'nonpayable',
|
|
663
|
+
type: 'function',
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
666
|
+
inputs: [],
|
|
667
|
+
name: 'removeProtocolSubPrice',
|
|
668
|
+
outputs: [
|
|
669
669
|
{
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
}
|
|
670
|
+
name: '',
|
|
671
|
+
type: 'bool',
|
|
672
|
+
},
|
|
673
673
|
],
|
|
674
|
-
|
|
675
|
-
|
|
674
|
+
stateMutability: 'nonpayable',
|
|
675
|
+
type: 'function',
|
|
676
676
|
},
|
|
677
677
|
{
|
|
678
|
-
|
|
678
|
+
inputs: [
|
|
679
679
|
{
|
|
680
|
-
|
|
681
|
-
|
|
680
|
+
name: '_user',
|
|
681
|
+
type: 'address',
|
|
682
682
|
},
|
|
683
683
|
{
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}
|
|
684
|
+
name: '_action',
|
|
685
|
+
type: 'uint256',
|
|
686
|
+
},
|
|
687
687
|
],
|
|
688
|
-
|
|
689
|
-
|
|
688
|
+
name: 'getTransactionFeeData',
|
|
689
|
+
outputs: [
|
|
690
690
|
{
|
|
691
|
-
|
|
692
|
-
|
|
691
|
+
name: '',
|
|
692
|
+
type: 'uint256',
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}
|
|
695
|
+
name: '',
|
|
696
|
+
type: 'address',
|
|
697
|
+
},
|
|
698
698
|
],
|
|
699
|
-
|
|
700
|
-
|
|
699
|
+
stateMutability: 'view',
|
|
700
|
+
type: 'function',
|
|
701
701
|
},
|
|
702
702
|
{
|
|
703
|
-
|
|
703
|
+
inputs: [
|
|
704
704
|
{
|
|
705
|
-
|
|
706
|
-
|
|
705
|
+
name: '_depositFee',
|
|
706
|
+
type: 'uint256',
|
|
707
707
|
},
|
|
708
708
|
{
|
|
709
|
-
|
|
710
|
-
|
|
709
|
+
name: '_withdrawalFee',
|
|
710
|
+
type: 'uint256',
|
|
711
711
|
},
|
|
712
712
|
{
|
|
713
|
-
|
|
714
|
-
|
|
713
|
+
name: '_rebalanceFee',
|
|
714
|
+
type: 'uint256',
|
|
715
715
|
},
|
|
716
716
|
{
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
name: '_transferFee',
|
|
718
|
+
type: 'uint256',
|
|
719
719
|
},
|
|
720
720
|
{
|
|
721
|
-
|
|
722
|
-
|
|
721
|
+
name: '_swapFee',
|
|
722
|
+
type: 'uint256',
|
|
723
723
|
},
|
|
724
724
|
{
|
|
725
|
-
|
|
726
|
-
|
|
725
|
+
name: '_addLiqFee',
|
|
726
|
+
type: 'uint256',
|
|
727
727
|
},
|
|
728
728
|
{
|
|
729
|
-
|
|
730
|
-
|
|
729
|
+
name: '_removeLiqFee',
|
|
730
|
+
type: 'uint256',
|
|
731
731
|
},
|
|
732
732
|
{
|
|
733
|
-
|
|
734
|
-
|
|
733
|
+
name: '_claimRewardsFee',
|
|
734
|
+
type: 'uint256',
|
|
735
735
|
},
|
|
736
736
|
{
|
|
737
|
-
|
|
738
|
-
|
|
737
|
+
name: '_borrowFee',
|
|
738
|
+
type: 'uint256',
|
|
739
739
|
},
|
|
740
740
|
{
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}
|
|
741
|
+
name: '_repayFee',
|
|
742
|
+
type: 'uint256',
|
|
743
|
+
},
|
|
744
744
|
],
|
|
745
|
-
|
|
746
|
-
|
|
745
|
+
name: 'isValidTxPriceSheet',
|
|
746
|
+
outputs: [
|
|
747
747
|
{
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
}
|
|
748
|
+
name: '',
|
|
749
|
+
type: 'bool',
|
|
750
|
+
},
|
|
751
751
|
],
|
|
752
|
-
|
|
753
|
-
|
|
752
|
+
stateMutability: 'view',
|
|
753
|
+
type: 'function',
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
|
-
|
|
756
|
+
inputs: [
|
|
757
757
|
{
|
|
758
|
-
|
|
759
|
-
|
|
758
|
+
name: '_depositFee',
|
|
759
|
+
type: 'uint256',
|
|
760
760
|
},
|
|
761
761
|
{
|
|
762
|
-
|
|
763
|
-
|
|
762
|
+
name: '_withdrawalFee',
|
|
763
|
+
type: 'uint256',
|
|
764
764
|
},
|
|
765
765
|
{
|
|
766
|
-
|
|
767
|
-
|
|
766
|
+
name: '_rebalanceFee',
|
|
767
|
+
type: 'uint256',
|
|
768
768
|
},
|
|
769
769
|
{
|
|
770
|
-
|
|
771
|
-
|
|
770
|
+
name: '_transferFee',
|
|
771
|
+
type: 'uint256',
|
|
772
772
|
},
|
|
773
773
|
{
|
|
774
|
-
|
|
775
|
-
|
|
774
|
+
name: '_swapFee',
|
|
775
|
+
type: 'uint256',
|
|
776
776
|
},
|
|
777
777
|
{
|
|
778
|
-
|
|
779
|
-
|
|
778
|
+
name: '_addLiqFee',
|
|
779
|
+
type: 'uint256',
|
|
780
780
|
},
|
|
781
781
|
{
|
|
782
|
-
|
|
783
|
-
|
|
782
|
+
name: '_removeLiqFee',
|
|
783
|
+
type: 'uint256',
|
|
784
784
|
},
|
|
785
785
|
{
|
|
786
|
-
|
|
787
|
-
|
|
786
|
+
name: '_claimRewardsFee',
|
|
787
|
+
type: 'uint256',
|
|
788
788
|
},
|
|
789
789
|
{
|
|
790
|
-
|
|
791
|
-
|
|
790
|
+
name: '_borrowFee',
|
|
791
|
+
type: 'uint256',
|
|
792
792
|
},
|
|
793
793
|
{
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
}
|
|
794
|
+
name: '_repayFee',
|
|
795
|
+
type: 'uint256',
|
|
796
|
+
},
|
|
797
797
|
],
|
|
798
|
-
|
|
799
|
-
|
|
798
|
+
name: 'setProtocolTxPriceSheet',
|
|
799
|
+
outputs: [
|
|
800
800
|
{
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}
|
|
801
|
+
name: '',
|
|
802
|
+
type: 'bool',
|
|
803
|
+
},
|
|
804
804
|
],
|
|
805
|
-
|
|
806
|
-
|
|
805
|
+
stateMutability: 'nonpayable',
|
|
806
|
+
type: 'function',
|
|
807
807
|
},
|
|
808
808
|
{
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
809
|
+
inputs: [],
|
|
810
|
+
name: 'removeProtocolTxPriceSheet',
|
|
811
|
+
outputs: [
|
|
812
812
|
{
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
}
|
|
813
|
+
name: '',
|
|
814
|
+
type: 'bool',
|
|
815
|
+
},
|
|
816
816
|
],
|
|
817
|
-
|
|
818
|
-
|
|
817
|
+
stateMutability: 'nonpayable',
|
|
818
|
+
type: 'function',
|
|
819
819
|
},
|
|
820
820
|
{
|
|
821
|
-
|
|
821
|
+
inputs: [
|
|
822
822
|
{
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
}
|
|
823
|
+
name: '_recipient',
|
|
824
|
+
type: 'address',
|
|
825
|
+
},
|
|
826
826
|
],
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
name: 'setProtocolRecipient',
|
|
828
|
+
outputs: [
|
|
829
829
|
{
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
}
|
|
830
|
+
name: '',
|
|
831
|
+
type: 'bool',
|
|
832
|
+
},
|
|
833
833
|
],
|
|
834
|
-
|
|
835
|
-
|
|
834
|
+
stateMutability: 'nonpayable',
|
|
835
|
+
type: 'function',
|
|
836
836
|
},
|
|
837
837
|
{
|
|
838
|
-
|
|
838
|
+
inputs: [
|
|
839
839
|
{
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
}
|
|
840
|
+
name: '_delayBlocks',
|
|
841
|
+
type: 'uint256',
|
|
842
|
+
},
|
|
843
843
|
],
|
|
844
|
-
|
|
845
|
-
|
|
844
|
+
name: 'setPriceChangeDelay',
|
|
845
|
+
outputs: [
|
|
846
846
|
{
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
}
|
|
847
|
+
name: '',
|
|
848
|
+
type: 'bool',
|
|
849
|
+
},
|
|
850
850
|
],
|
|
851
|
-
|
|
852
|
-
|
|
851
|
+
stateMutability: 'nonpayable',
|
|
852
|
+
type: 'function',
|
|
853
853
|
},
|
|
854
854
|
{
|
|
855
|
-
|
|
855
|
+
inputs: [
|
|
856
856
|
{
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
}
|
|
857
|
+
name: '_shouldActivate',
|
|
858
|
+
type: 'bool',
|
|
859
|
+
},
|
|
860
860
|
],
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
861
|
+
name: 'activate',
|
|
862
|
+
outputs: [],
|
|
863
|
+
stateMutability: 'nonpayable',
|
|
864
|
+
type: 'function',
|
|
865
865
|
},
|
|
866
866
|
{
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
867
|
+
inputs: [],
|
|
868
|
+
name: 'protocolRecipient',
|
|
869
|
+
outputs: [
|
|
870
870
|
{
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
}
|
|
871
|
+
name: '',
|
|
872
|
+
type: 'address',
|
|
873
|
+
},
|
|
874
874
|
],
|
|
875
|
-
|
|
876
|
-
|
|
875
|
+
stateMutability: 'view',
|
|
876
|
+
type: 'function',
|
|
877
877
|
},
|
|
878
878
|
{
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
879
|
+
inputs: [],
|
|
880
|
+
name: 'protocolTxPriceData',
|
|
881
|
+
outputs: [
|
|
882
882
|
{
|
|
883
|
-
|
|
883
|
+
components: [
|
|
884
884
|
{
|
|
885
|
-
|
|
886
|
-
|
|
885
|
+
name: 'depositFee',
|
|
886
|
+
type: 'uint256',
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
name: 'withdrawalFee',
|
|
890
|
+
type: 'uint256',
|
|
891
891
|
},
|
|
892
892
|
{
|
|
893
|
-
|
|
894
|
-
|
|
893
|
+
name: 'rebalanceFee',
|
|
894
|
+
type: 'uint256',
|
|
895
895
|
},
|
|
896
896
|
{
|
|
897
|
-
|
|
898
|
-
|
|
897
|
+
name: 'transferFee',
|
|
898
|
+
type: 'uint256',
|
|
899
899
|
},
|
|
900
900
|
{
|
|
901
|
-
|
|
902
|
-
|
|
901
|
+
name: 'swapFee',
|
|
902
|
+
type: 'uint256',
|
|
903
903
|
},
|
|
904
904
|
{
|
|
905
|
-
|
|
906
|
-
|
|
905
|
+
name: 'addLiqFee',
|
|
906
|
+
type: 'uint256',
|
|
907
907
|
},
|
|
908
908
|
{
|
|
909
|
-
|
|
910
|
-
|
|
909
|
+
name: 'removeLiqFee',
|
|
910
|
+
type: 'uint256',
|
|
911
911
|
},
|
|
912
912
|
{
|
|
913
|
-
|
|
914
|
-
|
|
913
|
+
name: 'claimRewardsFee',
|
|
914
|
+
type: 'uint256',
|
|
915
915
|
},
|
|
916
916
|
{
|
|
917
|
-
|
|
918
|
-
|
|
917
|
+
name: 'borrowFee',
|
|
918
|
+
type: 'uint256',
|
|
919
919
|
},
|
|
920
920
|
{
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}
|
|
921
|
+
name: 'repayFee',
|
|
922
|
+
type: 'uint256',
|
|
923
|
+
},
|
|
924
924
|
],
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
}
|
|
925
|
+
name: '',
|
|
926
|
+
type: 'tuple',
|
|
927
|
+
},
|
|
928
928
|
],
|
|
929
|
-
|
|
930
|
-
|
|
929
|
+
stateMutability: 'view',
|
|
930
|
+
type: 'function',
|
|
931
931
|
},
|
|
932
932
|
{
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
933
|
+
inputs: [],
|
|
934
|
+
name: 'protocolSubPriceData',
|
|
935
|
+
outputs: [
|
|
936
936
|
{
|
|
937
|
-
|
|
937
|
+
components: [
|
|
938
938
|
{
|
|
939
|
-
|
|
940
|
-
|
|
939
|
+
name: 'asset',
|
|
940
|
+
type: 'address',
|
|
941
941
|
},
|
|
942
942
|
{
|
|
943
|
-
|
|
944
|
-
|
|
943
|
+
name: 'usdValue',
|
|
944
|
+
type: 'uint256',
|
|
945
945
|
},
|
|
946
946
|
{
|
|
947
|
-
|
|
948
|
-
|
|
947
|
+
name: 'trialPeriod',
|
|
948
|
+
type: 'uint256',
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}
|
|
951
|
+
name: 'payPeriod',
|
|
952
|
+
type: 'uint256',
|
|
953
|
+
},
|
|
954
954
|
],
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
}
|
|
955
|
+
name: '',
|
|
956
|
+
type: 'tuple',
|
|
957
|
+
},
|
|
958
958
|
],
|
|
959
|
-
|
|
960
|
-
|
|
959
|
+
stateMutability: 'view',
|
|
960
|
+
type: 'function',
|
|
961
961
|
},
|
|
962
962
|
{
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
963
|
+
inputs: [],
|
|
964
|
+
name: 'isAgentSubPricingEnabled',
|
|
965
|
+
outputs: [
|
|
966
966
|
{
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
}
|
|
967
|
+
name: '',
|
|
968
|
+
type: 'bool',
|
|
969
|
+
},
|
|
970
970
|
],
|
|
971
|
-
|
|
972
|
-
|
|
971
|
+
stateMutability: 'view',
|
|
972
|
+
type: 'function',
|
|
973
973
|
},
|
|
974
974
|
{
|
|
975
|
-
|
|
975
|
+
inputs: [
|
|
976
976
|
{
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}
|
|
977
|
+
name: 'arg0',
|
|
978
|
+
type: 'address',
|
|
979
|
+
},
|
|
980
980
|
],
|
|
981
|
-
|
|
982
|
-
|
|
981
|
+
name: 'agentSubPriceData',
|
|
982
|
+
outputs: [
|
|
983
983
|
{
|
|
984
|
-
|
|
984
|
+
components: [
|
|
985
985
|
{
|
|
986
|
-
|
|
987
|
-
|
|
986
|
+
name: 'asset',
|
|
987
|
+
type: 'address',
|
|
988
988
|
},
|
|
989
989
|
{
|
|
990
|
-
|
|
991
|
-
|
|
990
|
+
name: 'usdValue',
|
|
991
|
+
type: 'uint256',
|
|
992
992
|
},
|
|
993
993
|
{
|
|
994
|
-
|
|
995
|
-
|
|
994
|
+
name: 'trialPeriod',
|
|
995
|
+
type: 'uint256',
|
|
996
996
|
},
|
|
997
997
|
{
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
}
|
|
998
|
+
name: 'payPeriod',
|
|
999
|
+
type: 'uint256',
|
|
1000
|
+
},
|
|
1001
1001
|
],
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
}
|
|
1002
|
+
name: '',
|
|
1003
|
+
type: 'tuple',
|
|
1004
|
+
},
|
|
1005
1005
|
],
|
|
1006
|
-
|
|
1007
|
-
|
|
1006
|
+
stateMutability: 'view',
|
|
1007
|
+
type: 'function',
|
|
1008
1008
|
},
|
|
1009
1009
|
{
|
|
1010
|
-
|
|
1010
|
+
inputs: [
|
|
1011
1011
|
{
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1012
|
+
name: 'arg0',
|
|
1013
|
+
type: 'address',
|
|
1014
|
+
},
|
|
1015
1015
|
],
|
|
1016
|
-
|
|
1017
|
-
|
|
1016
|
+
name: 'pendingAgentSubPrices',
|
|
1017
|
+
outputs: [
|
|
1018
1018
|
{
|
|
1019
|
-
|
|
1019
|
+
components: [
|
|
1020
1020
|
{
|
|
1021
|
-
|
|
1021
|
+
components: [
|
|
1022
1022
|
{
|
|
1023
|
-
|
|
1024
|
-
|
|
1023
|
+
name: 'asset',
|
|
1024
|
+
type: 'address',
|
|
1025
1025
|
},
|
|
1026
1026
|
{
|
|
1027
|
-
|
|
1028
|
-
|
|
1027
|
+
name: 'usdValue',
|
|
1028
|
+
type: 'uint256',
|
|
1029
1029
|
},
|
|
1030
1030
|
{
|
|
1031
|
-
|
|
1032
|
-
|
|
1031
|
+
name: 'trialPeriod',
|
|
1032
|
+
type: 'uint256',
|
|
1033
1033
|
},
|
|
1034
1034
|
{
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
}
|
|
1035
|
+
name: 'payPeriod',
|
|
1036
|
+
type: 'uint256',
|
|
1037
|
+
},
|
|
1038
1038
|
],
|
|
1039
|
-
|
|
1040
|
-
|
|
1039
|
+
name: 'subInfo',
|
|
1040
|
+
type: 'tuple',
|
|
1041
1041
|
},
|
|
1042
1042
|
{
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
}
|
|
1043
|
+
name: 'effectiveBlock',
|
|
1044
|
+
type: 'uint256',
|
|
1045
|
+
},
|
|
1046
1046
|
],
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
}
|
|
1047
|
+
name: '',
|
|
1048
|
+
type: 'tuple',
|
|
1049
|
+
},
|
|
1050
1050
|
],
|
|
1051
|
-
|
|
1052
|
-
|
|
1051
|
+
stateMutability: 'view',
|
|
1052
|
+
type: 'function',
|
|
1053
1053
|
},
|
|
1054
1054
|
{
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1055
|
+
inputs: [],
|
|
1056
|
+
name: 'priceChangeDelay',
|
|
1057
|
+
outputs: [
|
|
1058
1058
|
{
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
}
|
|
1059
|
+
name: '',
|
|
1060
|
+
type: 'uint256',
|
|
1061
|
+
},
|
|
1062
1062
|
],
|
|
1063
|
-
|
|
1064
|
-
|
|
1063
|
+
stateMutability: 'view',
|
|
1064
|
+
type: 'function',
|
|
1065
1065
|
},
|
|
1066
1066
|
{
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1067
|
+
inputs: [],
|
|
1068
|
+
name: 'ADDY_REGISTRY',
|
|
1069
|
+
outputs: [
|
|
1070
1070
|
{
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
}
|
|
1071
|
+
name: '',
|
|
1072
|
+
type: 'address',
|
|
1073
|
+
},
|
|
1074
1074
|
],
|
|
1075
|
-
|
|
1076
|
-
|
|
1075
|
+
stateMutability: 'view',
|
|
1076
|
+
type: 'function',
|
|
1077
1077
|
},
|
|
1078
1078
|
{
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1079
|
+
inputs: [],
|
|
1080
|
+
name: 'isActivated',
|
|
1081
|
+
outputs: [
|
|
1082
1082
|
{
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
}
|
|
1083
|
+
name: '',
|
|
1084
|
+
type: 'bool',
|
|
1085
|
+
},
|
|
1086
1086
|
],
|
|
1087
|
-
|
|
1088
|
-
|
|
1087
|
+
stateMutability: 'view',
|
|
1088
|
+
type: 'function',
|
|
1089
1089
|
},
|
|
1090
1090
|
{
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1091
|
+
inputs: [],
|
|
1092
|
+
name: 'MIN_TRIAL_PERIOD',
|
|
1093
|
+
outputs: [
|
|
1094
1094
|
{
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
}
|
|
1095
|
+
name: '',
|
|
1096
|
+
type: 'uint256',
|
|
1097
|
+
},
|
|
1098
1098
|
],
|
|
1099
|
-
|
|
1100
|
-
|
|
1099
|
+
stateMutability: 'view',
|
|
1100
|
+
type: 'function',
|
|
1101
1101
|
},
|
|
1102
1102
|
{
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1103
|
+
inputs: [],
|
|
1104
|
+
name: 'MAX_TRIAL_PERIOD',
|
|
1105
|
+
outputs: [
|
|
1106
1106
|
{
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}
|
|
1107
|
+
name: '',
|
|
1108
|
+
type: 'uint256',
|
|
1109
|
+
},
|
|
1110
1110
|
],
|
|
1111
|
-
|
|
1112
|
-
|
|
1111
|
+
stateMutability: 'view',
|
|
1112
|
+
type: 'function',
|
|
1113
1113
|
},
|
|
1114
1114
|
{
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1115
|
+
inputs: [],
|
|
1116
|
+
name: 'MIN_PAY_PERIOD',
|
|
1117
|
+
outputs: [
|
|
1118
1118
|
{
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
}
|
|
1119
|
+
name: '',
|
|
1120
|
+
type: 'uint256',
|
|
1121
|
+
},
|
|
1122
1122
|
],
|
|
1123
|
-
|
|
1124
|
-
|
|
1123
|
+
stateMutability: 'view',
|
|
1124
|
+
type: 'function',
|
|
1125
1125
|
},
|
|
1126
1126
|
{
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1127
|
+
inputs: [],
|
|
1128
|
+
name: 'MAX_PAY_PERIOD',
|
|
1129
|
+
outputs: [
|
|
1130
1130
|
{
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
}
|
|
1131
|
+
name: '',
|
|
1132
|
+
type: 'uint256',
|
|
1133
|
+
},
|
|
1134
1134
|
],
|
|
1135
|
-
|
|
1136
|
-
|
|
1135
|
+
stateMutability: 'view',
|
|
1136
|
+
type: 'function',
|
|
1137
1137
|
},
|
|
1138
1138
|
{
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1139
|
+
inputs: [],
|
|
1140
|
+
name: 'MIN_PRICE_CHANGE_BUFFER',
|
|
1141
|
+
outputs: [
|
|
1142
1142
|
{
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
}
|
|
1143
|
+
name: '',
|
|
1144
|
+
type: 'uint256',
|
|
1145
|
+
},
|
|
1146
1146
|
],
|
|
1147
|
-
|
|
1148
|
-
|
|
1147
|
+
stateMutability: 'view',
|
|
1148
|
+
type: 'function',
|
|
1149
1149
|
},
|
|
1150
1150
|
{
|
|
1151
|
-
|
|
1151
|
+
inputs: [
|
|
1152
1152
|
{
|
|
1153
|
-
|
|
1154
|
-
|
|
1153
|
+
name: '_minTrialPeriod',
|
|
1154
|
+
type: 'uint256',
|
|
1155
1155
|
},
|
|
1156
1156
|
{
|
|
1157
|
-
|
|
1158
|
-
|
|
1157
|
+
name: '_maxTrialPeriod',
|
|
1158
|
+
type: 'uint256',
|
|
1159
1159
|
},
|
|
1160
1160
|
{
|
|
1161
|
-
|
|
1162
|
-
|
|
1161
|
+
name: '_minPayPeriod',
|
|
1162
|
+
type: 'uint256',
|
|
1163
1163
|
},
|
|
1164
1164
|
{
|
|
1165
|
-
|
|
1166
|
-
|
|
1165
|
+
name: '_maxPayPeriod',
|
|
1166
|
+
type: 'uint256',
|
|
1167
1167
|
},
|
|
1168
1168
|
{
|
|
1169
|
-
|
|
1170
|
-
|
|
1169
|
+
name: '_minPriceChangeBuffer',
|
|
1170
|
+
type: 'uint256',
|
|
1171
1171
|
},
|
|
1172
1172
|
{
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
}
|
|
1173
|
+
name: '_addyRegistry',
|
|
1174
|
+
type: 'address',
|
|
1175
|
+
},
|
|
1176
1176
|
],
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
}
|
|
1177
|
+
outputs: [],
|
|
1178
|
+
stateMutability: 'nonpayable',
|
|
1179
|
+
type: 'constructor',
|
|
1180
|
+
},
|
|
1181
1181
|
];
|
|
1182
|
-
export const deployAddress =
|
|
1182
|
+
export const deployAddress = '0x59918c90eD44a3D7a72375f60C0148Ae18001ADC';
|
|
1183
1183
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
1184
1184
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
1185
1185
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|