@pearcurve/sdk 0.1.0 → 0.1.1
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/README.md +2 -2
- package/dist/abis.js +19 -19
- package/dist/abis.js.map +1 -1
- package/package.json +5 -5
- package/dist/abis/json/collateralTokenRegistry.json +0 -257
- package/dist/abis/json/errors.json +0 -1034
- package/dist/abis/json/feeManager.json +0 -668
- package/dist/abis/json/intentRegistry.json +0 -1169
- package/dist/abis/json/intentRegistryViews.json +0 -958
- package/dist/abis/json/loanAssetRegistry.json +0 -220
- package/dist/abis/json/loanHealthViewer.json +0 -176
- package/dist/abis/json/loanManager.json +0 -1404
- package/dist/abis/json/loanMarketCaps.json +0 -1642
- package/dist/abis/json/loanPositionToken.json +0 -650
- package/dist/abis/json/main.json +0 -1951
- package/dist/abis/json/matchingEngine.json +0 -2060
- package/dist/abis/json/priceOracle.json +0 -453
- package/dist/abis/json/protocolViewer.json +0 -959
- package/dist/abis/json/secondaryMarket.json +0 -1348
- package/dist/abis/json/strategyRegistry.json +0 -237
- package/dist/abis/json/termCurveOracle.json +0 -346
- package/dist/abis/json/yieldSource.json +0 -298
- package/dist/abis/json/yieldSourceRegistry.json +0 -295
- package/src/abis/json/collateralTokenRegistry.json +0 -257
- package/src/abis/json/errors.json +0 -1034
- package/src/abis/json/feeManager.json +0 -668
- package/src/abis/json/intentRegistry.json +0 -1169
- package/src/abis/json/intentRegistryViews.json +0 -958
- package/src/abis/json/loanAssetRegistry.json +0 -220
- package/src/abis/json/loanHealthViewer.json +0 -176
- package/src/abis/json/loanManager.json +0 -1404
- package/src/abis/json/loanMarketCaps.json +0 -1642
- package/src/abis/json/loanPositionToken.json +0 -650
- package/src/abis/json/main.json +0 -1951
- package/src/abis/json/matchingEngine.json +0 -2060
- package/src/abis/json/priceOracle.json +0 -453
- package/src/abis/json/protocolViewer.json +0 -959
- package/src/abis/json/secondaryMarket.json +0 -1348
- package/src/abis/json/strategyRegistry.json +0 -237
- package/src/abis/json/termCurveOracle.json +0 -346
- package/src/abis/json/yieldSource.json +0 -298
- package/src/abis/json/yieldSourceRegistry.json +0 -295
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "constructor",
|
|
4
|
-
"inputs": [
|
|
5
|
-
{
|
|
6
|
-
"name": "governor_",
|
|
7
|
-
"type": "address",
|
|
8
|
-
"internalType": "address"
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"stateMutability": "nonpayable"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"type": "function",
|
|
15
|
-
"name": "acceptGovernance",
|
|
16
|
-
"inputs": [],
|
|
17
|
-
"outputs": [],
|
|
18
|
-
"stateMutability": "nonpayable"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "function",
|
|
22
|
-
"name": "governor",
|
|
23
|
-
"inputs": [],
|
|
24
|
-
"outputs": [
|
|
25
|
-
{
|
|
26
|
-
"name": "",
|
|
27
|
-
"type": "address",
|
|
28
|
-
"internalType": "address"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"stateMutability": "view"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"type": "function",
|
|
35
|
-
"name": "isApproved",
|
|
36
|
-
"inputs": [
|
|
37
|
-
{
|
|
38
|
-
"name": "",
|
|
39
|
-
"type": "address",
|
|
40
|
-
"internalType": "address"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"outputs": [
|
|
44
|
-
{
|
|
45
|
-
"name": "",
|
|
46
|
-
"type": "bool",
|
|
47
|
-
"internalType": "bool"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"stateMutability": "view"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"type": "function",
|
|
54
|
-
"name": "listApprovedLoanAssets",
|
|
55
|
-
"inputs": [],
|
|
56
|
-
"outputs": [
|
|
57
|
-
{
|
|
58
|
-
"name": "",
|
|
59
|
-
"type": "address[]",
|
|
60
|
-
"internalType": "address[]"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"stateMutability": "view"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"type": "function",
|
|
67
|
-
"name": "pendingGovernor",
|
|
68
|
-
"inputs": [],
|
|
69
|
-
"outputs": [
|
|
70
|
-
{
|
|
71
|
-
"name": "",
|
|
72
|
-
"type": "address",
|
|
73
|
-
"internalType": "address"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"stateMutability": "view"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"type": "function",
|
|
80
|
-
"name": "registerLoanAsset",
|
|
81
|
-
"inputs": [
|
|
82
|
-
{
|
|
83
|
-
"name": "token",
|
|
84
|
-
"type": "address",
|
|
85
|
-
"internalType": "address"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"outputs": [],
|
|
89
|
-
"stateMutability": "nonpayable"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"type": "function",
|
|
93
|
-
"name": "removeLoanAsset",
|
|
94
|
-
"inputs": [
|
|
95
|
-
{
|
|
96
|
-
"name": "token",
|
|
97
|
-
"type": "address",
|
|
98
|
-
"internalType": "address"
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"outputs": [],
|
|
102
|
-
"stateMutability": "nonpayable"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"type": "function",
|
|
106
|
-
"name": "requireApproved",
|
|
107
|
-
"inputs": [
|
|
108
|
-
{
|
|
109
|
-
"name": "token",
|
|
110
|
-
"type": "address",
|
|
111
|
-
"internalType": "address"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"outputs": [],
|
|
115
|
-
"stateMutability": "view"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"type": "function",
|
|
119
|
-
"name": "transferGovernance",
|
|
120
|
-
"inputs": [
|
|
121
|
-
{
|
|
122
|
-
"name": "newGovernor",
|
|
123
|
-
"type": "address",
|
|
124
|
-
"internalType": "address"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"outputs": [],
|
|
128
|
-
"stateMutability": "nonpayable"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"type": "event",
|
|
132
|
-
"name": "GovernorTransferInitiated",
|
|
133
|
-
"inputs": [
|
|
134
|
-
{
|
|
135
|
-
"name": "currentGovernor",
|
|
136
|
-
"type": "address",
|
|
137
|
-
"indexed": true,
|
|
138
|
-
"internalType": "address"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "pendingGovernor_",
|
|
142
|
-
"type": "address",
|
|
143
|
-
"indexed": true,
|
|
144
|
-
"internalType": "address"
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"anonymous": false
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"type": "event",
|
|
151
|
-
"name": "GovernorUpdated",
|
|
152
|
-
"inputs": [
|
|
153
|
-
{
|
|
154
|
-
"name": "oldGovernor",
|
|
155
|
-
"type": "address",
|
|
156
|
-
"indexed": true,
|
|
157
|
-
"internalType": "address"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"name": "newGovernor",
|
|
161
|
-
"type": "address",
|
|
162
|
-
"indexed": true,
|
|
163
|
-
"internalType": "address"
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
"anonymous": false
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"type": "event",
|
|
170
|
-
"name": "LoanAssetRegistered",
|
|
171
|
-
"inputs": [
|
|
172
|
-
{
|
|
173
|
-
"name": "token",
|
|
174
|
-
"type": "address",
|
|
175
|
-
"indexed": true,
|
|
176
|
-
"internalType": "address"
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"anonymous": false
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"type": "event",
|
|
183
|
-
"name": "LoanAssetRemoved",
|
|
184
|
-
"inputs": [
|
|
185
|
-
{
|
|
186
|
-
"name": "token",
|
|
187
|
-
"type": "address",
|
|
188
|
-
"indexed": true,
|
|
189
|
-
"internalType": "address"
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
"anonymous": false
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"type": "error",
|
|
196
|
-
"name": "CallerIsNotGovernor",
|
|
197
|
-
"inputs": []
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"type": "error",
|
|
201
|
-
"name": "CallerIsNotPendingGovernor",
|
|
202
|
-
"inputs": []
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"type": "error",
|
|
206
|
-
"name": "UnsupportedLoanAsset",
|
|
207
|
-
"inputs": [
|
|
208
|
-
{
|
|
209
|
-
"name": "token",
|
|
210
|
-
"type": "address",
|
|
211
|
-
"internalType": "address"
|
|
212
|
-
}
|
|
213
|
-
]
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"type": "error",
|
|
217
|
-
"name": "ZeroAddress",
|
|
218
|
-
"inputs": []
|
|
219
|
-
}
|
|
220
|
-
]
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "constructor",
|
|
4
|
-
"inputs": [
|
|
5
|
-
{
|
|
6
|
-
"name": "_loanManager",
|
|
7
|
-
"type": "address",
|
|
8
|
-
"internalType": "address"
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"stateMutability": "nonpayable"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"type": "function",
|
|
15
|
-
"name": "BPS",
|
|
16
|
-
"inputs": [],
|
|
17
|
-
"outputs": [
|
|
18
|
-
{
|
|
19
|
-
"name": "",
|
|
20
|
-
"type": "uint256",
|
|
21
|
-
"internalType": "uint256"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"stateMutability": "view"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"type": "function",
|
|
28
|
-
"name": "SECONDS_PER_YEAR",
|
|
29
|
-
"inputs": [],
|
|
30
|
-
"outputs": [
|
|
31
|
-
{
|
|
32
|
-
"name": "",
|
|
33
|
-
"type": "uint256",
|
|
34
|
-
"internalType": "uint256"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"stateMutability": "view"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"type": "function",
|
|
41
|
-
"name": "getLoanHealth",
|
|
42
|
-
"inputs": [
|
|
43
|
-
{
|
|
44
|
-
"name": "loanId",
|
|
45
|
-
"type": "uint256",
|
|
46
|
-
"internalType": "uint256"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"outputs": [
|
|
50
|
-
{
|
|
51
|
-
"name": "h",
|
|
52
|
-
"type": "tuple",
|
|
53
|
-
"internalType": "struct LoanHealth",
|
|
54
|
-
"components": [
|
|
55
|
-
{
|
|
56
|
-
"name": "healthFactor",
|
|
57
|
-
"type": "uint256",
|
|
58
|
-
"internalType": "uint256"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "collateralValueInAsset",
|
|
62
|
-
"type": "uint256",
|
|
63
|
-
"internalType": "uint256"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"name": "lltv",
|
|
67
|
-
"type": "uint256",
|
|
68
|
-
"internalType": "uint256"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "isPriceLiquidatable",
|
|
72
|
-
"type": "bool",
|
|
73
|
-
"internalType": "bool"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "durationFactor",
|
|
77
|
-
"type": "uint256",
|
|
78
|
-
"internalType": "uint256"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "timeRemaining",
|
|
82
|
-
"type": "uint256",
|
|
83
|
-
"internalType": "uint256"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": "isTimeExpired",
|
|
87
|
-
"type": "bool",
|
|
88
|
-
"internalType": "bool"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "accrualDebt",
|
|
92
|
-
"type": "uint256",
|
|
93
|
-
"internalType": "uint256"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"name": "principalDebt",
|
|
97
|
-
"type": "uint256",
|
|
98
|
-
"internalType": "uint256"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"name": "surplusCollateralValue",
|
|
102
|
-
"type": "uint256",
|
|
103
|
-
"internalType": "uint256"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "isLiquidatable",
|
|
107
|
-
"type": "bool",
|
|
108
|
-
"internalType": "bool"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "status",
|
|
112
|
-
"type": "uint8",
|
|
113
|
-
"internalType": "enum LoanStatus"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "oraclePriceStale",
|
|
117
|
-
"type": "bool",
|
|
118
|
-
"internalType": "bool"
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"stateMutability": "view"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"type": "function",
|
|
127
|
-
"name": "healthFactor",
|
|
128
|
-
"inputs": [
|
|
129
|
-
{
|
|
130
|
-
"name": "loanId",
|
|
131
|
-
"type": "uint256",
|
|
132
|
-
"internalType": "uint256"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
"outputs": [
|
|
136
|
-
{
|
|
137
|
-
"name": "",
|
|
138
|
-
"type": "uint256",
|
|
139
|
-
"internalType": "uint256"
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
"stateMutability": "view"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"type": "function",
|
|
146
|
-
"name": "isLiquidatable",
|
|
147
|
-
"inputs": [
|
|
148
|
-
{
|
|
149
|
-
"name": "loanId",
|
|
150
|
-
"type": "uint256",
|
|
151
|
-
"internalType": "uint256"
|
|
152
|
-
}
|
|
153
|
-
],
|
|
154
|
-
"outputs": [
|
|
155
|
-
{
|
|
156
|
-
"name": "",
|
|
157
|
-
"type": "bool",
|
|
158
|
-
"internalType": "bool"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"stateMutability": "view"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"type": "function",
|
|
165
|
-
"name": "loanManager",
|
|
166
|
-
"inputs": [],
|
|
167
|
-
"outputs": [
|
|
168
|
-
{
|
|
169
|
-
"name": "",
|
|
170
|
-
"type": "address",
|
|
171
|
-
"internalType": "address"
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
"stateMutability": "view"
|
|
175
|
-
}
|
|
176
|
-
]
|