/
compound_lens.go
661 lines (553 loc) · 46.1 KB
/
compound_lens.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package compound
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
_ = abi.ConvertType
)
// CompoundLensAccountLimits is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensAccountLimits struct {
Markets []common.Address
Liquidity *big.Int
Shortfall *big.Int
}
// CompoundLensCTokenBalances is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensCTokenBalances struct {
CToken common.Address
BalanceOf *big.Int
BorrowBalanceCurrent *big.Int
BalanceOfUnderlying *big.Int
TokenBalance *big.Int
TokenAllowance *big.Int
}
// CompoundLensCTokenMetadata is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensCTokenMetadata struct {
CToken common.Address
ExchangeRateCurrent *big.Int
SupplyRatePerBlock *big.Int
BorrowRatePerBlock *big.Int
ReserveFactorMantissa *big.Int
TotalBorrows *big.Int
TotalReserves *big.Int
TotalSupply *big.Int
TotalCash *big.Int
IsListed bool
CollateralFactorMantissa *big.Int
UnderlyingAssetAddress common.Address
CTokenDecimals *big.Int
UnderlyingDecimals *big.Int
CompSupplySpeed *big.Int
CompBorrowSpeed *big.Int
BorrowCap *big.Int
}
// CompoundLensCTokenUnderlyingPrice is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensCTokenUnderlyingPrice struct {
CToken common.Address
UnderlyingPrice *big.Int
}
// CompoundLensCompBalanceMetadata is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensCompBalanceMetadata struct {
Balance *big.Int
Votes *big.Int
Delegate common.Address
}
// CompoundLensCompBalanceMetadataExt is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensCompBalanceMetadataExt struct {
Balance *big.Int
Votes *big.Int
Delegate common.Address
Allocated *big.Int
}
// CompoundLensCompVotes is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensCompVotes struct {
BlockNumber *big.Int
Votes *big.Int
}
// CompoundLensGovBravoProposal is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensGovBravoProposal struct {
ProposalId *big.Int
Proposer common.Address
Eta *big.Int
Targets []common.Address
Values []*big.Int
Signatures []string
Calldatas [][]byte
StartBlock *big.Int
EndBlock *big.Int
ForVotes *big.Int
AgainstVotes *big.Int
AbstainVotes *big.Int
Canceled bool
Executed bool
}
// CompoundLensGovBravoReceipt is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensGovBravoReceipt struct {
ProposalId *big.Int
HasVoted bool
Support uint8
Votes *big.Int
}
// CompoundLensGovProposal is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensGovProposal struct {
ProposalId *big.Int
Proposer common.Address
Eta *big.Int
Targets []common.Address
Values []*big.Int
Signatures []string
Calldatas [][]byte
StartBlock *big.Int
EndBlock *big.Int
ForVotes *big.Int
AgainstVotes *big.Int
Canceled bool
Executed bool
}
// CompoundLensGovReceipt is an auto generated low-level Go binding around an user-defined struct.
type CompoundLensGovReceipt struct {
ProposalId *big.Int
HasVoted bool
Support bool
Votes *big.Int
}
// CompoundLensMetaData contains all meta data concerning the CompoundLens contract.
var CompoundLensMetaData = &bind.MetaData{
ABI: "[{\"constant\":false,\"inputs\":[{\"internalType\":\"contractCToken\",\"name\":\"cToken\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"cTokenBalances\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balanceOf\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowBalanceCurrent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceOfUnderlying\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenAllowance\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.CTokenBalances\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractCToken[]\",\"name\":\"cTokens\",\"type\":\"address[]\"},{\"internalType\":\"addresspayable\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"cTokenBalancesAll\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balanceOf\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowBalanceCurrent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceOfUnderlying\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenAllowance\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.CTokenBalances[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractCToken\",\"name\":\"cToken\",\"type\":\"address\"}],\"name\":\"cTokenMetadata\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"exchangeRateCurrent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyRatePerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowRatePerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveFactorMantissa\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBorrows\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalReserves\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCash\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isListed\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"collateralFactorMantissa\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"underlyingAssetAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"cTokenDecimals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"underlyingDecimals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"compSupplySpeed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"compBorrowSpeed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowCap\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.CTokenMetadata\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractCToken[]\",\"name\":\"cTokens\",\"type\":\"address[]\"}],\"name\":\"cTokenMetadataAll\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"exchangeRateCurrent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"supplyRatePerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowRatePerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveFactorMantissa\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBorrows\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalReserves\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalSupply\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCash\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isListed\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"collateralFactorMantissa\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"underlyingAssetAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"cTokenDecimals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"underlyingDecimals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"compSupplySpeed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"compBorrowSpeed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowCap\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.CTokenMetadata[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractCToken\",\"name\":\"cToken\",\"type\":\"address\"}],\"name\":\"cTokenUnderlyingPrice\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"underlyingPrice\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.CTokenUnderlyingPrice\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractCToken[]\",\"name\":\"cTokens\",\"type\":\"address[]\"}],\"name\":\"cTokenUnderlyingPriceAll\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"cToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"underlyingPrice\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.CTokenUnderlyingPrice[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractComptrollerLensInterface\",\"name\":\"comptroller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getAccountLimits\",\"outputs\":[{\"components\":[{\"internalType\":\"contractCToken[]\",\"name\":\"markets\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortfall\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.AccountLimits\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractComp\",\"name\":\"comp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getCompBalanceMetadata\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"votes\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"}],\"internalType\":\"structCompoundLens.CompBalanceMetadata\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractComp\",\"name\":\"comp\",\"type\":\"address\"},{\"internalType\":\"contractComptrollerLensInterface\",\"name\":\"comptroller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getCompBalanceMetadataExt\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"votes\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"allocated\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.CompBalanceMetadataExt\",\"name\":\"\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractComp\",\"name\":\"comp\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint32[]\",\"name\":\"blockNumbers\",\"type\":\"uint32[]\"}],\"name\":\"getCompVotes\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"votes\",\"type\":\"uint256\"}],\"internalType\":\"structCompoundLens.CompVotes[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractGovernorBravoInterface\",\"name\":\"governor\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"proposalIds\",\"type\":\"uint256[]\"}],\"name\":\"getGovBravoProposals\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"proposer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"eta\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"string[]\",\"name\":\"signatures\",\"type\":\"string[]\"},{\"internalType\":\"bytes[]\",\"name\":\"calldatas\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256\",\"name\":\"startBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forVotes\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"againstVotes\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"abstainVotes\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"canceled\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"executed\",\"type\":\"bool\"}],\"internalType\":\"structCompoundLens.GovBravoProposal[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractGovernorBravoInterface\",\"name\":\"governor\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"proposalIds\",\"type\":\"uint256[]\"}],\"name\":\"getGovBravoReceipts\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"hasVoted\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"support\",\"type\":\"uint8\"},{\"internalType\":\"uint96\",\"name\":\"votes\",\"type\":\"uint96\"}],\"internalType\":\"structCompoundLens.GovBravoReceipt[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractGovernorAlpha\",\"name\":\"governor\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"proposalIds\",\"type\":\"uint256[]\"}],\"name\":\"getGovProposals\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"proposer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"eta\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"string[]\",\"name\":\"signatures\",\"type\":\"string[]\"},{\"internalType\":\"bytes[]\",\"name\":\"calldatas\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256\",\"name\":\"startBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forVotes\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"againstVotes\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"canceled\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"executed\",\"type\":\"bool\"}],\"internalType\":\"structCompoundLens.GovProposal[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"contractGovernorAlpha\",\"name\":\"governor\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"proposalIds\",\"type\":\"uint256[]\"}],\"name\":\"getGovReceipts\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"proposalId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"hasVoted\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"support\",\"type\":\"bool\"},{\"internalType\":\"uint96\",\"name\":\"votes\",\"type\":\"uint96\"}],\"internalType\":\"structCompoundLens.GovReceipt[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
// CompoundLensABI is the input ABI used to generate the binding from.
// Deprecated: Use CompoundLensMetaData.ABI instead.
var CompoundLensABI = CompoundLensMetaData.ABI
// CompoundLens is an auto generated Go binding around an Ethereum contract.
type CompoundLens struct {
CompoundLensCaller // Read-only binding to the contract
CompoundLensTransactor // Write-only binding to the contract
CompoundLensFilterer // Log filterer for contract events
}
// CompoundLensCaller is an auto generated read-only Go binding around an Ethereum contract.
type CompoundLensCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// CompoundLensTransactor is an auto generated write-only Go binding around an Ethereum contract.
type CompoundLensTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// CompoundLensFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type CompoundLensFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// CompoundLensSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type CompoundLensSession struct {
Contract *CompoundLens // Generic contract binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// CompoundLensCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type CompoundLensCallerSession struct {
Contract *CompoundLensCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// CompoundLensTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type CompoundLensTransactorSession struct {
Contract *CompoundLensTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// CompoundLensRaw is an auto generated low-level Go binding around an Ethereum contract.
type CompoundLensRaw struct {
Contract *CompoundLens // Generic contract binding to access the raw methods on
}
// CompoundLensCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type CompoundLensCallerRaw struct {
Contract *CompoundLensCaller // Generic read-only contract binding to access the raw methods on
}
// CompoundLensTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type CompoundLensTransactorRaw struct {
Contract *CompoundLensTransactor // Generic write-only contract binding to access the raw methods on
}
// NewCompoundLens creates a new instance of CompoundLens, bound to a specific deployed contract.
func NewCompoundLens(address common.Address, backend bind.ContractBackend) (*CompoundLens, error) {
contract, err := bindCompoundLens(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &CompoundLens{CompoundLensCaller: CompoundLensCaller{contract: contract}, CompoundLensTransactor: CompoundLensTransactor{contract: contract}, CompoundLensFilterer: CompoundLensFilterer{contract: contract}}, nil
}
// NewCompoundLensCaller creates a new read-only instance of CompoundLens, bound to a specific deployed contract.
func NewCompoundLensCaller(address common.Address, caller bind.ContractCaller) (*CompoundLensCaller, error) {
contract, err := bindCompoundLens(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &CompoundLensCaller{contract: contract}, nil
}
// NewCompoundLensTransactor creates a new write-only instance of CompoundLens, bound to a specific deployed contract.
func NewCompoundLensTransactor(address common.Address, transactor bind.ContractTransactor) (*CompoundLensTransactor, error) {
contract, err := bindCompoundLens(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &CompoundLensTransactor{contract: contract}, nil
}
// NewCompoundLensFilterer creates a new log filterer instance of CompoundLens, bound to a specific deployed contract.
func NewCompoundLensFilterer(address common.Address, filterer bind.ContractFilterer) (*CompoundLensFilterer, error) {
contract, err := bindCompoundLens(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &CompoundLensFilterer{contract: contract}, nil
}
// bindCompoundLens binds a generic wrapper to an already deployed contract.
func bindCompoundLens(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := CompoundLensMetaData.GetAbi()
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_CompoundLens *CompoundLensRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _CompoundLens.Contract.CompoundLensCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_CompoundLens *CompoundLensRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _CompoundLens.Contract.CompoundLensTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_CompoundLens *CompoundLensRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _CompoundLens.Contract.CompoundLensTransactor.contract.Transact(opts, method, params...)
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_CompoundLens *CompoundLensCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _CompoundLens.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_CompoundLens *CompoundLensTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _CompoundLens.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_CompoundLens *CompoundLensTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _CompoundLens.Contract.contract.Transact(opts, method, params...)
}
// GetCompBalanceMetadata is a free data retrieval call binding the contract method 0x416405d7.
//
// Solidity: function getCompBalanceMetadata(address comp, address account) view returns((uint256,uint256,address))
func (_CompoundLens *CompoundLensCaller) GetCompBalanceMetadata(opts *bind.CallOpts, comp common.Address, account common.Address) (CompoundLensCompBalanceMetadata, error) {
var out []interface{}
err := _CompoundLens.contract.Call(opts, &out, "getCompBalanceMetadata", comp, account)
if err != nil {
return *new(CompoundLensCompBalanceMetadata), err
}
out0 := *abi.ConvertType(out[0], new(CompoundLensCompBalanceMetadata)).(*CompoundLensCompBalanceMetadata)
return out0, err
}
// GetCompBalanceMetadata is a free data retrieval call binding the contract method 0x416405d7.
//
// Solidity: function getCompBalanceMetadata(address comp, address account) view returns((uint256,uint256,address))
func (_CompoundLens *CompoundLensSession) GetCompBalanceMetadata(comp common.Address, account common.Address) (CompoundLensCompBalanceMetadata, error) {
return _CompoundLens.Contract.GetCompBalanceMetadata(&_CompoundLens.CallOpts, comp, account)
}
// GetCompBalanceMetadata is a free data retrieval call binding the contract method 0x416405d7.
//
// Solidity: function getCompBalanceMetadata(address comp, address account) view returns((uint256,uint256,address))
func (_CompoundLens *CompoundLensCallerSession) GetCompBalanceMetadata(comp common.Address, account common.Address) (CompoundLensCompBalanceMetadata, error) {
return _CompoundLens.Contract.GetCompBalanceMetadata(&_CompoundLens.CallOpts, comp, account)
}
// GetCompBalanceMetadataExt is a free data retrieval call binding the contract method 0x1ea63741.
//
// Solidity: function getCompBalanceMetadataExt(address comp, address comptroller, address account) view returns((uint256,uint256,address,uint256))
func (_CompoundLens *CompoundLensCaller) GetCompBalanceMetadataExt(opts *bind.CallOpts, comp common.Address, comptroller common.Address, account common.Address) (CompoundLensCompBalanceMetadataExt, error) {
var out []interface{}
err := _CompoundLens.contract.Call(opts, &out, "getCompBalanceMetadataExt", comp, comptroller, account)
if err != nil {
return *new(CompoundLensCompBalanceMetadataExt), err
}
out0 := *abi.ConvertType(out[0], new(CompoundLensCompBalanceMetadataExt)).(*CompoundLensCompBalanceMetadataExt)
return out0, err
}
// GetCompBalanceMetadataExt is a free data retrieval call binding the contract method 0x1ea63741.
//
// Solidity: function getCompBalanceMetadataExt(address comp, address comptroller, address account) view returns((uint256,uint256,address,uint256))
func (_CompoundLens *CompoundLensSession) GetCompBalanceMetadataExt(comp common.Address, comptroller common.Address, account common.Address) (CompoundLensCompBalanceMetadataExt, error) {
return _CompoundLens.Contract.GetCompBalanceMetadataExt(&_CompoundLens.CallOpts, comp, comptroller, account)
}
// GetCompBalanceMetadataExt is a free data retrieval call binding the contract method 0x1ea63741.
//
// Solidity: function getCompBalanceMetadataExt(address comp, address comptroller, address account) view returns((uint256,uint256,address,uint256))
func (_CompoundLens *CompoundLensCallerSession) GetCompBalanceMetadataExt(comp common.Address, comptroller common.Address, account common.Address) (CompoundLensCompBalanceMetadataExt, error) {
return _CompoundLens.Contract.GetCompBalanceMetadataExt(&_CompoundLens.CallOpts, comp, comptroller, account)
}
// GetCompVotes is a free data retrieval call binding the contract method 0x59564219.
//
// Solidity: function getCompVotes(address comp, address account, uint32[] blockNumbers) view returns((uint256,uint256)[])
func (_CompoundLens *CompoundLensCaller) GetCompVotes(opts *bind.CallOpts, comp common.Address, account common.Address, blockNumbers []uint32) ([]CompoundLensCompVotes, error) {
var out []interface{}
err := _CompoundLens.contract.Call(opts, &out, "getCompVotes", comp, account, blockNumbers)
if err != nil {
return *new([]CompoundLensCompVotes), err
}
out0 := *abi.ConvertType(out[0], new([]CompoundLensCompVotes)).(*[]CompoundLensCompVotes)
return out0, err
}
// GetCompVotes is a free data retrieval call binding the contract method 0x59564219.
//
// Solidity: function getCompVotes(address comp, address account, uint32[] blockNumbers) view returns((uint256,uint256)[])
func (_CompoundLens *CompoundLensSession) GetCompVotes(comp common.Address, account common.Address, blockNumbers []uint32) ([]CompoundLensCompVotes, error) {
return _CompoundLens.Contract.GetCompVotes(&_CompoundLens.CallOpts, comp, account, blockNumbers)
}
// GetCompVotes is a free data retrieval call binding the contract method 0x59564219.
//
// Solidity: function getCompVotes(address comp, address account, uint32[] blockNumbers) view returns((uint256,uint256)[])
func (_CompoundLens *CompoundLensCallerSession) GetCompVotes(comp common.Address, account common.Address, blockNumbers []uint32) ([]CompoundLensCompVotes, error) {
return _CompoundLens.Contract.GetCompVotes(&_CompoundLens.CallOpts, comp, account, blockNumbers)
}
// GetGovBravoProposals is a free data retrieval call binding the contract method 0x75d80e90.
//
// Solidity: function getGovBravoProposals(address governor, uint256[] proposalIds) view returns((uint256,address,uint256,address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,uint256,bool,bool)[])
func (_CompoundLens *CompoundLensCaller) GetGovBravoProposals(opts *bind.CallOpts, governor common.Address, proposalIds []*big.Int) ([]CompoundLensGovBravoProposal, error) {
var out []interface{}
err := _CompoundLens.contract.Call(opts, &out, "getGovBravoProposals", governor, proposalIds)
if err != nil {
return *new([]CompoundLensGovBravoProposal), err
}
out0 := *abi.ConvertType(out[0], new([]CompoundLensGovBravoProposal)).(*[]CompoundLensGovBravoProposal)
return out0, err
}
// GetGovBravoProposals is a free data retrieval call binding the contract method 0x75d80e90.
//
// Solidity: function getGovBravoProposals(address governor, uint256[] proposalIds) view returns((uint256,address,uint256,address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,uint256,bool,bool)[])
func (_CompoundLens *CompoundLensSession) GetGovBravoProposals(governor common.Address, proposalIds []*big.Int) ([]CompoundLensGovBravoProposal, error) {
return _CompoundLens.Contract.GetGovBravoProposals(&_CompoundLens.CallOpts, governor, proposalIds)
}
// GetGovBravoProposals is a free data retrieval call binding the contract method 0x75d80e90.
//
// Solidity: function getGovBravoProposals(address governor, uint256[] proposalIds) view returns((uint256,address,uint256,address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,uint256,bool,bool)[])
func (_CompoundLens *CompoundLensCallerSession) GetGovBravoProposals(governor common.Address, proposalIds []*big.Int) ([]CompoundLensGovBravoProposal, error) {
return _CompoundLens.Contract.GetGovBravoProposals(&_CompoundLens.CallOpts, governor, proposalIds)
}
// GetGovBravoReceipts is a free data retrieval call binding the contract method 0x43c811cc.
//
// Solidity: function getGovBravoReceipts(address governor, address voter, uint256[] proposalIds) view returns((uint256,bool,uint8,uint96)[])
func (_CompoundLens *CompoundLensCaller) GetGovBravoReceipts(opts *bind.CallOpts, governor common.Address, voter common.Address, proposalIds []*big.Int) ([]CompoundLensGovBravoReceipt, error) {
var out []interface{}
err := _CompoundLens.contract.Call(opts, &out, "getGovBravoReceipts", governor, voter, proposalIds)
if err != nil {
return *new([]CompoundLensGovBravoReceipt), err
}
out0 := *abi.ConvertType(out[0], new([]CompoundLensGovBravoReceipt)).(*[]CompoundLensGovBravoReceipt)
return out0, err
}
// GetGovBravoReceipts is a free data retrieval call binding the contract method 0x43c811cc.
//
// Solidity: function getGovBravoReceipts(address governor, address voter, uint256[] proposalIds) view returns((uint256,bool,uint8,uint96)[])
func (_CompoundLens *CompoundLensSession) GetGovBravoReceipts(governor common.Address, voter common.Address, proposalIds []*big.Int) ([]CompoundLensGovBravoReceipt, error) {
return _CompoundLens.Contract.GetGovBravoReceipts(&_CompoundLens.CallOpts, governor, voter, proposalIds)
}
// GetGovBravoReceipts is a free data retrieval call binding the contract method 0x43c811cc.
//
// Solidity: function getGovBravoReceipts(address governor, address voter, uint256[] proposalIds) view returns((uint256,bool,uint8,uint96)[])
func (_CompoundLens *CompoundLensCallerSession) GetGovBravoReceipts(governor common.Address, voter common.Address, proposalIds []*big.Int) ([]CompoundLensGovBravoReceipt, error) {
return _CompoundLens.Contract.GetGovBravoReceipts(&_CompoundLens.CallOpts, governor, voter, proposalIds)
}
// GetGovProposals is a free data retrieval call binding the contract method 0x96994869.
//
// Solidity: function getGovProposals(address governor, uint256[] proposalIds) view returns((uint256,address,uint256,address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,bool,bool)[])
func (_CompoundLens *CompoundLensCaller) GetGovProposals(opts *bind.CallOpts, governor common.Address, proposalIds []*big.Int) ([]CompoundLensGovProposal, error) {
var out []interface{}
err := _CompoundLens.contract.Call(opts, &out, "getGovProposals", governor, proposalIds)
if err != nil {
return *new([]CompoundLensGovProposal), err
}
out0 := *abi.ConvertType(out[0], new([]CompoundLensGovProposal)).(*[]CompoundLensGovProposal)
return out0, err
}
// GetGovProposals is a free data retrieval call binding the contract method 0x96994869.
//
// Solidity: function getGovProposals(address governor, uint256[] proposalIds) view returns((uint256,address,uint256,address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,bool,bool)[])
func (_CompoundLens *CompoundLensSession) GetGovProposals(governor common.Address, proposalIds []*big.Int) ([]CompoundLensGovProposal, error) {
return _CompoundLens.Contract.GetGovProposals(&_CompoundLens.CallOpts, governor, proposalIds)
}
// GetGovProposals is a free data retrieval call binding the contract method 0x96994869.
//
// Solidity: function getGovProposals(address governor, uint256[] proposalIds) view returns((uint256,address,uint256,address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,bool,bool)[])
func (_CompoundLens *CompoundLensCallerSession) GetGovProposals(governor common.Address, proposalIds []*big.Int) ([]CompoundLensGovProposal, error) {
return _CompoundLens.Contract.GetGovProposals(&_CompoundLens.CallOpts, governor, proposalIds)
}
// GetGovReceipts is a free data retrieval call binding the contract method 0x995ed99f.
//
// Solidity: function getGovReceipts(address governor, address voter, uint256[] proposalIds) view returns((uint256,bool,bool,uint96)[])
func (_CompoundLens *CompoundLensCaller) GetGovReceipts(opts *bind.CallOpts, governor common.Address, voter common.Address, proposalIds []*big.Int) ([]CompoundLensGovReceipt, error) {
var out []interface{}
err := _CompoundLens.contract.Call(opts, &out, "getGovReceipts", governor, voter, proposalIds)
if err != nil {
return *new([]CompoundLensGovReceipt), err
}
out0 := *abi.ConvertType(out[0], new([]CompoundLensGovReceipt)).(*[]CompoundLensGovReceipt)
return out0, err
}
// GetGovReceipts is a free data retrieval call binding the contract method 0x995ed99f.
//
// Solidity: function getGovReceipts(address governor, address voter, uint256[] proposalIds) view returns((uint256,bool,bool,uint96)[])
func (_CompoundLens *CompoundLensSession) GetGovReceipts(governor common.Address, voter common.Address, proposalIds []*big.Int) ([]CompoundLensGovReceipt, error) {
return _CompoundLens.Contract.GetGovReceipts(&_CompoundLens.CallOpts, governor, voter, proposalIds)
}
// GetGovReceipts is a free data retrieval call binding the contract method 0x995ed99f.
//
// Solidity: function getGovReceipts(address governor, address voter, uint256[] proposalIds) view returns((uint256,bool,bool,uint96)[])
func (_CompoundLens *CompoundLensCallerSession) GetGovReceipts(governor common.Address, voter common.Address, proposalIds []*big.Int) ([]CompoundLensGovReceipt, error) {
return _CompoundLens.Contract.GetGovReceipts(&_CompoundLens.CallOpts, governor, voter, proposalIds)
}
// CTokenBalances is a paid mutator transaction binding the contract method 0xbdf950c9.
//
// Solidity: function cTokenBalances(address cToken, address account) returns((address,uint256,uint256,uint256,uint256,uint256))
func (_CompoundLens *CompoundLensTransactor) CTokenBalances(opts *bind.TransactOpts, cToken common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.contract.Transact(opts, "cTokenBalances", cToken, account)
}
// CTokenBalances is a paid mutator transaction binding the contract method 0xbdf950c9.
//
// Solidity: function cTokenBalances(address cToken, address account) returns((address,uint256,uint256,uint256,uint256,uint256))
func (_CompoundLens *CompoundLensSession) CTokenBalances(cToken common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenBalances(&_CompoundLens.TransactOpts, cToken, account)
}
// CTokenBalances is a paid mutator transaction binding the contract method 0xbdf950c9.
//
// Solidity: function cTokenBalances(address cToken, address account) returns((address,uint256,uint256,uint256,uint256,uint256))
func (_CompoundLens *CompoundLensTransactorSession) CTokenBalances(cToken common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenBalances(&_CompoundLens.TransactOpts, cToken, account)
}
// CTokenBalancesAll is a paid mutator transaction binding the contract method 0x0972bf8b.
//
// Solidity: function cTokenBalancesAll(address[] cTokens, address account) returns((address,uint256,uint256,uint256,uint256,uint256)[])
func (_CompoundLens *CompoundLensTransactor) CTokenBalancesAll(opts *bind.TransactOpts, cTokens []common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.contract.Transact(opts, "cTokenBalancesAll", cTokens, account)
}
// CTokenBalancesAll is a paid mutator transaction binding the contract method 0x0972bf8b.
//
// Solidity: function cTokenBalancesAll(address[] cTokens, address account) returns((address,uint256,uint256,uint256,uint256,uint256)[])
func (_CompoundLens *CompoundLensSession) CTokenBalancesAll(cTokens []common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenBalancesAll(&_CompoundLens.TransactOpts, cTokens, account)
}
// CTokenBalancesAll is a paid mutator transaction binding the contract method 0x0972bf8b.
//
// Solidity: function cTokenBalancesAll(address[] cTokens, address account) returns((address,uint256,uint256,uint256,uint256,uint256)[])
func (_CompoundLens *CompoundLensTransactorSession) CTokenBalancesAll(cTokens []common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenBalancesAll(&_CompoundLens.TransactOpts, cTokens, account)
}
// CTokenMetadata is a paid mutator transaction binding the contract method 0x158eca8b.
//
// Solidity: function cTokenMetadata(address cToken) returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256,address,uint256,uint256,uint256,uint256,uint256))
func (_CompoundLens *CompoundLensTransactor) CTokenMetadata(opts *bind.TransactOpts, cToken common.Address) (*types.Transaction, error) {
return _CompoundLens.contract.Transact(opts, "cTokenMetadata", cToken)
}
// CTokenMetadata is a paid mutator transaction binding the contract method 0x158eca8b.
//
// Solidity: function cTokenMetadata(address cToken) returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256,address,uint256,uint256,uint256,uint256,uint256))
func (_CompoundLens *CompoundLensSession) CTokenMetadata(cToken common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenMetadata(&_CompoundLens.TransactOpts, cToken)
}
// CTokenMetadata is a paid mutator transaction binding the contract method 0x158eca8b.
//
// Solidity: function cTokenMetadata(address cToken) returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256,address,uint256,uint256,uint256,uint256,uint256))
func (_CompoundLens *CompoundLensTransactorSession) CTokenMetadata(cToken common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenMetadata(&_CompoundLens.TransactOpts, cToken)
}
// CTokenMetadataAll is a paid mutator transaction binding the contract method 0x4b70d84b.
//
// Solidity: function cTokenMetadataAll(address[] cTokens) returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256,address,uint256,uint256,uint256,uint256,uint256)[])
func (_CompoundLens *CompoundLensTransactor) CTokenMetadataAll(opts *bind.TransactOpts, cTokens []common.Address) (*types.Transaction, error) {
return _CompoundLens.contract.Transact(opts, "cTokenMetadataAll", cTokens)
}
// CTokenMetadataAll is a paid mutator transaction binding the contract method 0x4b70d84b.
//
// Solidity: function cTokenMetadataAll(address[] cTokens) returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256,address,uint256,uint256,uint256,uint256,uint256)[])
func (_CompoundLens *CompoundLensSession) CTokenMetadataAll(cTokens []common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenMetadataAll(&_CompoundLens.TransactOpts, cTokens)
}
// CTokenMetadataAll is a paid mutator transaction binding the contract method 0x4b70d84b.
//
// Solidity: function cTokenMetadataAll(address[] cTokens) returns((address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool,uint256,address,uint256,uint256,uint256,uint256,uint256)[])
func (_CompoundLens *CompoundLensTransactorSession) CTokenMetadataAll(cTokens []common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenMetadataAll(&_CompoundLens.TransactOpts, cTokens)
}
// CTokenUnderlyingPrice is a paid mutator transaction binding the contract method 0xc5ae5934.
//
// Solidity: function cTokenUnderlyingPrice(address cToken) returns((address,uint256))
func (_CompoundLens *CompoundLensTransactor) CTokenUnderlyingPrice(opts *bind.TransactOpts, cToken common.Address) (*types.Transaction, error) {
return _CompoundLens.contract.Transact(opts, "cTokenUnderlyingPrice", cToken)
}
// CTokenUnderlyingPrice is a paid mutator transaction binding the contract method 0xc5ae5934.
//
// Solidity: function cTokenUnderlyingPrice(address cToken) returns((address,uint256))
func (_CompoundLens *CompoundLensSession) CTokenUnderlyingPrice(cToken common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenUnderlyingPrice(&_CompoundLens.TransactOpts, cToken)
}
// CTokenUnderlyingPrice is a paid mutator transaction binding the contract method 0xc5ae5934.
//
// Solidity: function cTokenUnderlyingPrice(address cToken) returns((address,uint256))
func (_CompoundLens *CompoundLensTransactorSession) CTokenUnderlyingPrice(cToken common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenUnderlyingPrice(&_CompoundLens.TransactOpts, cToken)
}
// CTokenUnderlyingPriceAll is a paid mutator transaction binding the contract method 0x2b2d5ed6.
//
// Solidity: function cTokenUnderlyingPriceAll(address[] cTokens) returns((address,uint256)[])
func (_CompoundLens *CompoundLensTransactor) CTokenUnderlyingPriceAll(opts *bind.TransactOpts, cTokens []common.Address) (*types.Transaction, error) {
return _CompoundLens.contract.Transact(opts, "cTokenUnderlyingPriceAll", cTokens)
}
// CTokenUnderlyingPriceAll is a paid mutator transaction binding the contract method 0x2b2d5ed6.
//
// Solidity: function cTokenUnderlyingPriceAll(address[] cTokens) returns((address,uint256)[])
func (_CompoundLens *CompoundLensSession) CTokenUnderlyingPriceAll(cTokens []common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenUnderlyingPriceAll(&_CompoundLens.TransactOpts, cTokens)
}
// CTokenUnderlyingPriceAll is a paid mutator transaction binding the contract method 0x2b2d5ed6.
//
// Solidity: function cTokenUnderlyingPriceAll(address[] cTokens) returns((address,uint256)[])
func (_CompoundLens *CompoundLensTransactorSession) CTokenUnderlyingPriceAll(cTokens []common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.CTokenUnderlyingPriceAll(&_CompoundLens.TransactOpts, cTokens)
}
// GetAccountLimits is a paid mutator transaction binding the contract method 0x7dd8f6d9.
//
// Solidity: function getAccountLimits(address comptroller, address account) returns((address[],uint256,uint256))
func (_CompoundLens *CompoundLensTransactor) GetAccountLimits(opts *bind.TransactOpts, comptroller common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.contract.Transact(opts, "getAccountLimits", comptroller, account)
}
// GetAccountLimits is a paid mutator transaction binding the contract method 0x7dd8f6d9.
//
// Solidity: function getAccountLimits(address comptroller, address account) returns((address[],uint256,uint256))
func (_CompoundLens *CompoundLensSession) GetAccountLimits(comptroller common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.GetAccountLimits(&_CompoundLens.TransactOpts, comptroller, account)
}
// GetAccountLimits is a paid mutator transaction binding the contract method 0x7dd8f6d9.
//
// Solidity: function getAccountLimits(address comptroller, address account) returns((address[],uint256,uint256))
func (_CompoundLens *CompoundLensTransactorSession) GetAccountLimits(comptroller common.Address, account common.Address) (*types.Transaction, error) {
return _CompoundLens.Contract.GetAccountLimits(&_CompoundLens.TransactOpts, comptroller, account)
}