@gearbox-protocol/sdk 3.0.0-vfour.125 → 3.0.0-vfour.127
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/cjs/sdk/index.cjs +530 -218
- package/dist/cjs/sdk/index.d.ts +399 -301
- package/dist/esm/sdk/index.d.mts +399 -301
- package/dist/esm/sdk/index.mjs +531 -220
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -58,224 +58,6 @@ var iAddressProviderV3EventsAbi = [
|
|
|
58
58
|
name: "SetAddress"
|
|
59
59
|
}
|
|
60
60
|
];
|
|
61
|
-
var iAddressProviderV3_1Abi = [
|
|
62
|
-
{
|
|
63
|
-
type: "function",
|
|
64
|
-
inputs: [
|
|
65
|
-
{ name: "_marketConfigurator", internalType: "address", type: "address" }
|
|
66
|
-
],
|
|
67
|
-
name: "addMarketConfigurator",
|
|
68
|
-
outputs: [],
|
|
69
|
-
stateMutability: "nonpayable"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
type: "function",
|
|
73
|
-
inputs: [
|
|
74
|
-
{ name: "key", internalType: "string", type: "string" },
|
|
75
|
-
{ name: "_version", internalType: "uint256", type: "uint256" }
|
|
76
|
-
],
|
|
77
|
-
name: "addresses",
|
|
78
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
79
|
-
stateMutability: "view"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: "function",
|
|
83
|
-
inputs: [],
|
|
84
|
-
name: "contractType",
|
|
85
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
86
|
-
stateMutability: "view"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
type: "function",
|
|
90
|
-
inputs: [
|
|
91
|
-
{ name: "key", internalType: "string", type: "string" },
|
|
92
|
-
{ name: "_version", internalType: "uint256", type: "uint256" }
|
|
93
|
-
],
|
|
94
|
-
name: "getAddressOrRevert",
|
|
95
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
96
|
-
stateMutability: "view"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
type: "function",
|
|
100
|
-
inputs: [
|
|
101
|
-
{ name: "key", internalType: "bytes32", type: "bytes32" },
|
|
102
|
-
{ name: "_version", internalType: "uint256", type: "uint256" }
|
|
103
|
-
],
|
|
104
|
-
name: "getAddressOrRevert",
|
|
105
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
106
|
-
stateMutability: "view"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
type: "function",
|
|
110
|
-
inputs: [],
|
|
111
|
-
name: "getAllSavedContracts",
|
|
112
|
-
outputs: [
|
|
113
|
-
{
|
|
114
|
-
name: "",
|
|
115
|
-
internalType: "struct ContractValue[]",
|
|
116
|
-
type: "tuple[]",
|
|
117
|
-
components: [
|
|
118
|
-
{ name: "key", internalType: "string", type: "string" },
|
|
119
|
-
{ name: "value", internalType: "address", type: "address" },
|
|
120
|
-
{ name: "version", internalType: "uint256", type: "uint256" }
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
stateMutability: "view"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
type: "function",
|
|
128
|
-
inputs: [{ name: "_key", internalType: "bytes32", type: "bytes32" }],
|
|
129
|
-
name: "getLatestAddressOrRevert",
|
|
130
|
-
outputs: [{ name: "result", internalType: "address", type: "address" }],
|
|
131
|
-
stateMutability: "view"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
type: "function",
|
|
135
|
-
inputs: [{ name: "key", internalType: "string", type: "string" }],
|
|
136
|
-
name: "getLatestAddressOrRevert",
|
|
137
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
138
|
-
stateMutability: "view"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
type: "function",
|
|
142
|
-
inputs: [{ name: "riskCurator", internalType: "address", type: "address" }],
|
|
143
|
-
name: "isMarketConfigurator",
|
|
144
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
145
|
-
stateMutability: "view"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
type: "function",
|
|
149
|
-
inputs: [
|
|
150
|
-
{ name: "creditManager", internalType: "address", type: "address" }
|
|
151
|
-
],
|
|
152
|
-
name: "marketConfiguratorByCreditManager",
|
|
153
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
154
|
-
stateMutability: "view"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
type: "function",
|
|
158
|
-
inputs: [
|
|
159
|
-
{ name: "creditManager", internalType: "address", type: "address" }
|
|
160
|
-
],
|
|
161
|
-
name: "marketConfiguratorByPool",
|
|
162
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
163
|
-
stateMutability: "view"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
type: "function",
|
|
167
|
-
inputs: [],
|
|
168
|
-
name: "marketConfigurators",
|
|
169
|
-
outputs: [{ name: "", internalType: "address[]", type: "address[]" }],
|
|
170
|
-
stateMutability: "view"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
type: "function",
|
|
174
|
-
inputs: [],
|
|
175
|
-
name: "owner",
|
|
176
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
177
|
-
stateMutability: "view"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
type: "function",
|
|
181
|
-
inputs: [
|
|
182
|
-
{ name: "creditManager", internalType: "address", type: "address" }
|
|
183
|
-
],
|
|
184
|
-
name: "registerCreditManager",
|
|
185
|
-
outputs: [],
|
|
186
|
-
stateMutability: "nonpayable"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
type: "function",
|
|
190
|
-
inputs: [{ name: "pool", internalType: "address", type: "address" }],
|
|
191
|
-
name: "registerPool",
|
|
192
|
-
outputs: [],
|
|
193
|
-
stateMutability: "nonpayable"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
type: "function",
|
|
197
|
-
inputs: [
|
|
198
|
-
{ name: "_marketConfigurator", internalType: "address", type: "address" }
|
|
199
|
-
],
|
|
200
|
-
name: "removeMarketConfigurator",
|
|
201
|
-
outputs: [],
|
|
202
|
-
stateMutability: "nonpayable"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
type: "function",
|
|
206
|
-
inputs: [
|
|
207
|
-
{ name: "key", internalType: "string", type: "string" },
|
|
208
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
209
|
-
{ name: "saveVersion", internalType: "bool", type: "bool" }
|
|
210
|
-
],
|
|
211
|
-
name: "setAddress",
|
|
212
|
-
outputs: [],
|
|
213
|
-
stateMutability: "nonpayable"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
type: "function",
|
|
217
|
-
inputs: [
|
|
218
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
219
|
-
{ name: "saveVersion", internalType: "bool", type: "bool" }
|
|
220
|
-
],
|
|
221
|
-
name: "setAddress",
|
|
222
|
-
outputs: [],
|
|
223
|
-
stateMutability: "nonpayable"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
type: "function",
|
|
227
|
-
inputs: [],
|
|
228
|
-
name: "version",
|
|
229
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
230
|
-
stateMutability: "view"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
type: "event",
|
|
234
|
-
anonymous: false,
|
|
235
|
-
inputs: [
|
|
236
|
-
{
|
|
237
|
-
name: "marketConfigurator",
|
|
238
|
-
internalType: "address",
|
|
239
|
-
type: "address",
|
|
240
|
-
indexed: true
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
name: "AddMarketConfigurator"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
type: "event",
|
|
247
|
-
anonymous: false,
|
|
248
|
-
inputs: [
|
|
249
|
-
{
|
|
250
|
-
name: "marketConfigurator",
|
|
251
|
-
internalType: "address",
|
|
252
|
-
type: "address",
|
|
253
|
-
indexed: true
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
|
-
name: "RemoveMarketConfigurator"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
type: "event",
|
|
260
|
-
anonymous: false,
|
|
261
|
-
inputs: [
|
|
262
|
-
{ name: "key", internalType: "string", type: "string", indexed: false },
|
|
263
|
-
{
|
|
264
|
-
name: "value",
|
|
265
|
-
internalType: "address",
|
|
266
|
-
type: "address",
|
|
267
|
-
indexed: true
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
name: "version",
|
|
271
|
-
internalType: "uint256",
|
|
272
|
-
type: "uint256",
|
|
273
|
-
indexed: false
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
name: "SetAddress"
|
|
277
|
-
}
|
|
278
|
-
];
|
|
279
61
|
var iCreditAccountCompressorAbi = [
|
|
280
62
|
{
|
|
281
63
|
type: "function",
|
|
@@ -50270,6 +50052,523 @@ var yearnWithdrawerAbi = [
|
|
|
50270
50052
|
];
|
|
50271
50053
|
|
|
50272
50054
|
// src/sdk/abi/v310.ts
|
|
50055
|
+
var iAddressProviderV3_1Abi = [
|
|
50056
|
+
{
|
|
50057
|
+
type: "constructor",
|
|
50058
|
+
inputs: [],
|
|
50059
|
+
stateMutability: "nonpayable"
|
|
50060
|
+
},
|
|
50061
|
+
{
|
|
50062
|
+
type: "function",
|
|
50063
|
+
name: "acceptOwnership",
|
|
50064
|
+
inputs: [],
|
|
50065
|
+
outputs: [],
|
|
50066
|
+
stateMutability: "nonpayable"
|
|
50067
|
+
},
|
|
50068
|
+
{
|
|
50069
|
+
type: "function",
|
|
50070
|
+
name: "addMarketConfigurator",
|
|
50071
|
+
inputs: [
|
|
50072
|
+
{
|
|
50073
|
+
name: "_marketConfigurator",
|
|
50074
|
+
type: "address",
|
|
50075
|
+
internalType: "address"
|
|
50076
|
+
}
|
|
50077
|
+
],
|
|
50078
|
+
outputs: [],
|
|
50079
|
+
stateMutability: "nonpayable"
|
|
50080
|
+
},
|
|
50081
|
+
{
|
|
50082
|
+
type: "function",
|
|
50083
|
+
name: "addresses",
|
|
50084
|
+
inputs: [
|
|
50085
|
+
{
|
|
50086
|
+
name: "",
|
|
50087
|
+
type: "string",
|
|
50088
|
+
internalType: "string"
|
|
50089
|
+
},
|
|
50090
|
+
{
|
|
50091
|
+
name: "",
|
|
50092
|
+
type: "uint256",
|
|
50093
|
+
internalType: "uint256"
|
|
50094
|
+
}
|
|
50095
|
+
],
|
|
50096
|
+
outputs: [
|
|
50097
|
+
{
|
|
50098
|
+
name: "",
|
|
50099
|
+
type: "address",
|
|
50100
|
+
internalType: "address"
|
|
50101
|
+
}
|
|
50102
|
+
],
|
|
50103
|
+
stateMutability: "view"
|
|
50104
|
+
},
|
|
50105
|
+
{
|
|
50106
|
+
type: "function",
|
|
50107
|
+
name: "contractType",
|
|
50108
|
+
inputs: [],
|
|
50109
|
+
outputs: [
|
|
50110
|
+
{
|
|
50111
|
+
name: "",
|
|
50112
|
+
type: "bytes32",
|
|
50113
|
+
internalType: "bytes32"
|
|
50114
|
+
}
|
|
50115
|
+
],
|
|
50116
|
+
stateMutability: "view"
|
|
50117
|
+
},
|
|
50118
|
+
{
|
|
50119
|
+
type: "function",
|
|
50120
|
+
name: "getAddressOrRevert",
|
|
50121
|
+
inputs: [
|
|
50122
|
+
{
|
|
50123
|
+
name: "key",
|
|
50124
|
+
type: "string",
|
|
50125
|
+
internalType: "string"
|
|
50126
|
+
},
|
|
50127
|
+
{
|
|
50128
|
+
name: "_version",
|
|
50129
|
+
type: "uint256",
|
|
50130
|
+
internalType: "uint256"
|
|
50131
|
+
}
|
|
50132
|
+
],
|
|
50133
|
+
outputs: [
|
|
50134
|
+
{
|
|
50135
|
+
name: "result",
|
|
50136
|
+
type: "address",
|
|
50137
|
+
internalType: "address"
|
|
50138
|
+
}
|
|
50139
|
+
],
|
|
50140
|
+
stateMutability: "view"
|
|
50141
|
+
},
|
|
50142
|
+
{
|
|
50143
|
+
type: "function",
|
|
50144
|
+
name: "getAddressOrRevert",
|
|
50145
|
+
inputs: [
|
|
50146
|
+
{
|
|
50147
|
+
name: "key",
|
|
50148
|
+
type: "bytes32",
|
|
50149
|
+
internalType: "bytes32"
|
|
50150
|
+
},
|
|
50151
|
+
{
|
|
50152
|
+
name: "_version",
|
|
50153
|
+
type: "uint256",
|
|
50154
|
+
internalType: "uint256"
|
|
50155
|
+
}
|
|
50156
|
+
],
|
|
50157
|
+
outputs: [
|
|
50158
|
+
{
|
|
50159
|
+
name: "result",
|
|
50160
|
+
type: "address",
|
|
50161
|
+
internalType: "address"
|
|
50162
|
+
}
|
|
50163
|
+
],
|
|
50164
|
+
stateMutability: "view"
|
|
50165
|
+
},
|
|
50166
|
+
{
|
|
50167
|
+
type: "function",
|
|
50168
|
+
name: "getAllSavedContracts",
|
|
50169
|
+
inputs: [],
|
|
50170
|
+
outputs: [
|
|
50171
|
+
{
|
|
50172
|
+
name: "",
|
|
50173
|
+
type: "tuple[]",
|
|
50174
|
+
internalType: "struct ContractValue[]",
|
|
50175
|
+
components: [
|
|
50176
|
+
{
|
|
50177
|
+
name: "key",
|
|
50178
|
+
type: "string",
|
|
50179
|
+
internalType: "string"
|
|
50180
|
+
},
|
|
50181
|
+
{
|
|
50182
|
+
name: "value",
|
|
50183
|
+
type: "address",
|
|
50184
|
+
internalType: "address"
|
|
50185
|
+
},
|
|
50186
|
+
{
|
|
50187
|
+
name: "version",
|
|
50188
|
+
type: "uint256",
|
|
50189
|
+
internalType: "uint256"
|
|
50190
|
+
}
|
|
50191
|
+
]
|
|
50192
|
+
}
|
|
50193
|
+
],
|
|
50194
|
+
stateMutability: "view"
|
|
50195
|
+
},
|
|
50196
|
+
{
|
|
50197
|
+
type: "function",
|
|
50198
|
+
name: "getLatestAddressOrRevert",
|
|
50199
|
+
inputs: [
|
|
50200
|
+
{
|
|
50201
|
+
name: "_key",
|
|
50202
|
+
type: "bytes32",
|
|
50203
|
+
internalType: "bytes32"
|
|
50204
|
+
}
|
|
50205
|
+
],
|
|
50206
|
+
outputs: [
|
|
50207
|
+
{
|
|
50208
|
+
name: "result",
|
|
50209
|
+
type: "address",
|
|
50210
|
+
internalType: "address"
|
|
50211
|
+
}
|
|
50212
|
+
],
|
|
50213
|
+
stateMutability: "view"
|
|
50214
|
+
},
|
|
50215
|
+
{
|
|
50216
|
+
type: "function",
|
|
50217
|
+
name: "getLatestAddressOrRevert",
|
|
50218
|
+
inputs: [
|
|
50219
|
+
{
|
|
50220
|
+
name: "key",
|
|
50221
|
+
type: "string",
|
|
50222
|
+
internalType: "string"
|
|
50223
|
+
}
|
|
50224
|
+
],
|
|
50225
|
+
outputs: [
|
|
50226
|
+
{
|
|
50227
|
+
name: "result",
|
|
50228
|
+
type: "address",
|
|
50229
|
+
internalType: "address"
|
|
50230
|
+
}
|
|
50231
|
+
],
|
|
50232
|
+
stateMutability: "view"
|
|
50233
|
+
},
|
|
50234
|
+
{
|
|
50235
|
+
type: "function",
|
|
50236
|
+
name: "isMarketConfigurator",
|
|
50237
|
+
inputs: [
|
|
50238
|
+
{
|
|
50239
|
+
name: "riskCurator",
|
|
50240
|
+
type: "address",
|
|
50241
|
+
internalType: "address"
|
|
50242
|
+
}
|
|
50243
|
+
],
|
|
50244
|
+
outputs: [
|
|
50245
|
+
{
|
|
50246
|
+
name: "",
|
|
50247
|
+
type: "bool",
|
|
50248
|
+
internalType: "bool"
|
|
50249
|
+
}
|
|
50250
|
+
],
|
|
50251
|
+
stateMutability: "view"
|
|
50252
|
+
},
|
|
50253
|
+
{
|
|
50254
|
+
type: "function",
|
|
50255
|
+
name: "latestVersions",
|
|
50256
|
+
inputs: [
|
|
50257
|
+
{
|
|
50258
|
+
name: "",
|
|
50259
|
+
type: "string",
|
|
50260
|
+
internalType: "string"
|
|
50261
|
+
}
|
|
50262
|
+
],
|
|
50263
|
+
outputs: [
|
|
50264
|
+
{
|
|
50265
|
+
name: "",
|
|
50266
|
+
type: "uint256",
|
|
50267
|
+
internalType: "uint256"
|
|
50268
|
+
}
|
|
50269
|
+
],
|
|
50270
|
+
stateMutability: "view"
|
|
50271
|
+
},
|
|
50272
|
+
{
|
|
50273
|
+
type: "function",
|
|
50274
|
+
name: "marketConfiguratorByCreditManager",
|
|
50275
|
+
inputs: [
|
|
50276
|
+
{
|
|
50277
|
+
name: "creditManager",
|
|
50278
|
+
type: "address",
|
|
50279
|
+
internalType: "address"
|
|
50280
|
+
}
|
|
50281
|
+
],
|
|
50282
|
+
outputs: [
|
|
50283
|
+
{
|
|
50284
|
+
name: "",
|
|
50285
|
+
type: "address",
|
|
50286
|
+
internalType: "address"
|
|
50287
|
+
}
|
|
50288
|
+
],
|
|
50289
|
+
stateMutability: "view"
|
|
50290
|
+
},
|
|
50291
|
+
{
|
|
50292
|
+
type: "function",
|
|
50293
|
+
name: "marketConfiguratorByPool",
|
|
50294
|
+
inputs: [
|
|
50295
|
+
{
|
|
50296
|
+
name: "",
|
|
50297
|
+
type: "address",
|
|
50298
|
+
internalType: "address"
|
|
50299
|
+
}
|
|
50300
|
+
],
|
|
50301
|
+
outputs: [
|
|
50302
|
+
{
|
|
50303
|
+
name: "",
|
|
50304
|
+
type: "address",
|
|
50305
|
+
internalType: "address"
|
|
50306
|
+
}
|
|
50307
|
+
],
|
|
50308
|
+
stateMutability: "view"
|
|
50309
|
+
},
|
|
50310
|
+
{
|
|
50311
|
+
type: "function",
|
|
50312
|
+
name: "marketConfigurators",
|
|
50313
|
+
inputs: [],
|
|
50314
|
+
outputs: [
|
|
50315
|
+
{
|
|
50316
|
+
name: "",
|
|
50317
|
+
type: "address[]",
|
|
50318
|
+
internalType: "address[]"
|
|
50319
|
+
}
|
|
50320
|
+
],
|
|
50321
|
+
stateMutability: "view"
|
|
50322
|
+
},
|
|
50323
|
+
{
|
|
50324
|
+
type: "function",
|
|
50325
|
+
name: "owner",
|
|
50326
|
+
inputs: [],
|
|
50327
|
+
outputs: [
|
|
50328
|
+
{
|
|
50329
|
+
name: "",
|
|
50330
|
+
type: "address",
|
|
50331
|
+
internalType: "address"
|
|
50332
|
+
}
|
|
50333
|
+
],
|
|
50334
|
+
stateMutability: "view"
|
|
50335
|
+
},
|
|
50336
|
+
{
|
|
50337
|
+
type: "function",
|
|
50338
|
+
name: "pendingOwner",
|
|
50339
|
+
inputs: [],
|
|
50340
|
+
outputs: [
|
|
50341
|
+
{
|
|
50342
|
+
name: "",
|
|
50343
|
+
type: "address",
|
|
50344
|
+
internalType: "address"
|
|
50345
|
+
}
|
|
50346
|
+
],
|
|
50347
|
+
stateMutability: "view"
|
|
50348
|
+
},
|
|
50349
|
+
{
|
|
50350
|
+
type: "function",
|
|
50351
|
+
name: "registerCreditManager",
|
|
50352
|
+
inputs: [
|
|
50353
|
+
{
|
|
50354
|
+
name: "creditManager",
|
|
50355
|
+
type: "address",
|
|
50356
|
+
internalType: "address"
|
|
50357
|
+
}
|
|
50358
|
+
],
|
|
50359
|
+
outputs: [],
|
|
50360
|
+
stateMutability: "nonpayable"
|
|
50361
|
+
},
|
|
50362
|
+
{
|
|
50363
|
+
type: "function",
|
|
50364
|
+
name: "registerPool",
|
|
50365
|
+
inputs: [
|
|
50366
|
+
{
|
|
50367
|
+
name: "pool",
|
|
50368
|
+
type: "address",
|
|
50369
|
+
internalType: "address"
|
|
50370
|
+
}
|
|
50371
|
+
],
|
|
50372
|
+
outputs: [],
|
|
50373
|
+
stateMutability: "nonpayable"
|
|
50374
|
+
},
|
|
50375
|
+
{
|
|
50376
|
+
type: "function",
|
|
50377
|
+
name: "removeMarketConfigurator",
|
|
50378
|
+
inputs: [
|
|
50379
|
+
{
|
|
50380
|
+
name: "_marketConfigurator",
|
|
50381
|
+
type: "address",
|
|
50382
|
+
internalType: "address"
|
|
50383
|
+
}
|
|
50384
|
+
],
|
|
50385
|
+
outputs: [],
|
|
50386
|
+
stateMutability: "nonpayable"
|
|
50387
|
+
},
|
|
50388
|
+
{
|
|
50389
|
+
type: "function",
|
|
50390
|
+
name: "renounceOwnership",
|
|
50391
|
+
inputs: [],
|
|
50392
|
+
outputs: [],
|
|
50393
|
+
stateMutability: "nonpayable"
|
|
50394
|
+
},
|
|
50395
|
+
{
|
|
50396
|
+
type: "function",
|
|
50397
|
+
name: "setAddress",
|
|
50398
|
+
inputs: [
|
|
50399
|
+
{
|
|
50400
|
+
name: "key",
|
|
50401
|
+
type: "string",
|
|
50402
|
+
internalType: "string"
|
|
50403
|
+
},
|
|
50404
|
+
{
|
|
50405
|
+
name: "value",
|
|
50406
|
+
type: "address",
|
|
50407
|
+
internalType: "address"
|
|
50408
|
+
},
|
|
50409
|
+
{
|
|
50410
|
+
name: "saveVersion",
|
|
50411
|
+
type: "bool",
|
|
50412
|
+
internalType: "bool"
|
|
50413
|
+
}
|
|
50414
|
+
],
|
|
50415
|
+
outputs: [],
|
|
50416
|
+
stateMutability: "nonpayable"
|
|
50417
|
+
},
|
|
50418
|
+
{
|
|
50419
|
+
type: "function",
|
|
50420
|
+
name: "setAddress",
|
|
50421
|
+
inputs: [
|
|
50422
|
+
{
|
|
50423
|
+
name: "addr",
|
|
50424
|
+
type: "address",
|
|
50425
|
+
internalType: "address"
|
|
50426
|
+
},
|
|
50427
|
+
{
|
|
50428
|
+
name: "saveVersion",
|
|
50429
|
+
type: "bool",
|
|
50430
|
+
internalType: "bool"
|
|
50431
|
+
}
|
|
50432
|
+
],
|
|
50433
|
+
outputs: [],
|
|
50434
|
+
stateMutability: "nonpayable"
|
|
50435
|
+
},
|
|
50436
|
+
{
|
|
50437
|
+
type: "function",
|
|
50438
|
+
name: "transferOwnership",
|
|
50439
|
+
inputs: [
|
|
50440
|
+
{
|
|
50441
|
+
name: "newOwner",
|
|
50442
|
+
type: "address",
|
|
50443
|
+
internalType: "address"
|
|
50444
|
+
}
|
|
50445
|
+
],
|
|
50446
|
+
outputs: [],
|
|
50447
|
+
stateMutability: "nonpayable"
|
|
50448
|
+
},
|
|
50449
|
+
{
|
|
50450
|
+
type: "function",
|
|
50451
|
+
name: "version",
|
|
50452
|
+
inputs: [],
|
|
50453
|
+
outputs: [
|
|
50454
|
+
{
|
|
50455
|
+
name: "",
|
|
50456
|
+
type: "uint256",
|
|
50457
|
+
internalType: "uint256"
|
|
50458
|
+
}
|
|
50459
|
+
],
|
|
50460
|
+
stateMutability: "view"
|
|
50461
|
+
},
|
|
50462
|
+
{
|
|
50463
|
+
type: "event",
|
|
50464
|
+
name: "AddMarketConfigurator",
|
|
50465
|
+
inputs: [
|
|
50466
|
+
{
|
|
50467
|
+
name: "marketConfigurator",
|
|
50468
|
+
type: "address",
|
|
50469
|
+
indexed: true,
|
|
50470
|
+
internalType: "address"
|
|
50471
|
+
}
|
|
50472
|
+
],
|
|
50473
|
+
anonymous: false
|
|
50474
|
+
},
|
|
50475
|
+
{
|
|
50476
|
+
type: "event",
|
|
50477
|
+
name: "OwnershipTransferStarted",
|
|
50478
|
+
inputs: [
|
|
50479
|
+
{
|
|
50480
|
+
name: "previousOwner",
|
|
50481
|
+
type: "address",
|
|
50482
|
+
indexed: true,
|
|
50483
|
+
internalType: "address"
|
|
50484
|
+
},
|
|
50485
|
+
{
|
|
50486
|
+
name: "newOwner",
|
|
50487
|
+
type: "address",
|
|
50488
|
+
indexed: true,
|
|
50489
|
+
internalType: "address"
|
|
50490
|
+
}
|
|
50491
|
+
],
|
|
50492
|
+
anonymous: false
|
|
50493
|
+
},
|
|
50494
|
+
{
|
|
50495
|
+
type: "event",
|
|
50496
|
+
name: "OwnershipTransferred",
|
|
50497
|
+
inputs: [
|
|
50498
|
+
{
|
|
50499
|
+
name: "previousOwner",
|
|
50500
|
+
type: "address",
|
|
50501
|
+
indexed: true,
|
|
50502
|
+
internalType: "address"
|
|
50503
|
+
},
|
|
50504
|
+
{
|
|
50505
|
+
name: "newOwner",
|
|
50506
|
+
type: "address",
|
|
50507
|
+
indexed: true,
|
|
50508
|
+
internalType: "address"
|
|
50509
|
+
}
|
|
50510
|
+
],
|
|
50511
|
+
anonymous: false
|
|
50512
|
+
},
|
|
50513
|
+
{
|
|
50514
|
+
type: "event",
|
|
50515
|
+
name: "RemoveMarketConfigurator",
|
|
50516
|
+
inputs: [
|
|
50517
|
+
{
|
|
50518
|
+
name: "marketConfigurator",
|
|
50519
|
+
type: "address",
|
|
50520
|
+
indexed: true,
|
|
50521
|
+
internalType: "address"
|
|
50522
|
+
}
|
|
50523
|
+
],
|
|
50524
|
+
anonymous: false
|
|
50525
|
+
},
|
|
50526
|
+
{
|
|
50527
|
+
type: "event",
|
|
50528
|
+
name: "SetAddress",
|
|
50529
|
+
inputs: [
|
|
50530
|
+
{
|
|
50531
|
+
name: "key",
|
|
50532
|
+
type: "string",
|
|
50533
|
+
indexed: false,
|
|
50534
|
+
internalType: "string"
|
|
50535
|
+
},
|
|
50536
|
+
{
|
|
50537
|
+
name: "value",
|
|
50538
|
+
type: "address",
|
|
50539
|
+
indexed: true,
|
|
50540
|
+
internalType: "address"
|
|
50541
|
+
},
|
|
50542
|
+
{
|
|
50543
|
+
name: "version",
|
|
50544
|
+
type: "uint256",
|
|
50545
|
+
indexed: false,
|
|
50546
|
+
internalType: "uint256"
|
|
50547
|
+
}
|
|
50548
|
+
],
|
|
50549
|
+
anonymous: false
|
|
50550
|
+
},
|
|
50551
|
+
{
|
|
50552
|
+
type: "error",
|
|
50553
|
+
name: "AddressNotFoundException",
|
|
50554
|
+
inputs: []
|
|
50555
|
+
},
|
|
50556
|
+
{
|
|
50557
|
+
type: "error",
|
|
50558
|
+
name: "CantRemoveMarketConfiguratorWithExistingPoolsException",
|
|
50559
|
+
inputs: []
|
|
50560
|
+
},
|
|
50561
|
+
{
|
|
50562
|
+
type: "error",
|
|
50563
|
+
name: "MarketConfiguratorNotFoundException",
|
|
50564
|
+
inputs: []
|
|
50565
|
+
},
|
|
50566
|
+
{
|
|
50567
|
+
type: "error",
|
|
50568
|
+
name: "MarketConfiguratorsOnlyException",
|
|
50569
|
+
inputs: []
|
|
50570
|
+
}
|
|
50571
|
+
];
|
|
50273
50572
|
var iCreditFacadeV310Abi = [
|
|
50274
50573
|
{
|
|
50275
50574
|
type: "function",
|
|
@@ -57566,6 +57865,18 @@ var chains = {
|
|
|
57566
57865
|
Optimism: chains$1.optimism,
|
|
57567
57866
|
Base: chains$1.base
|
|
57568
57867
|
};
|
|
57868
|
+
async function detectChain(transportOrRPC) {
|
|
57869
|
+
const transport = typeof transportOrRPC === "string" ? viem.http(transportOrRPC) : transportOrRPC;
|
|
57870
|
+
const tempClient = viem.createPublicClient({ transport });
|
|
57871
|
+
const [networkType, chainId] = await Promise.all([
|
|
57872
|
+
detectNetwork(tempClient),
|
|
57873
|
+
tempClient.getChainId()
|
|
57874
|
+
]);
|
|
57875
|
+
return viem.defineChain({
|
|
57876
|
+
...chains[networkType],
|
|
57877
|
+
id: chainId
|
|
57878
|
+
});
|
|
57879
|
+
}
|
|
57569
57880
|
function createTransport(opts) {
|
|
57570
57881
|
const { timeout = 12e4, retryCount } = opts;
|
|
57571
57882
|
if ("transport" in opts) {
|
|
@@ -59898,6 +60209,7 @@ exports.curveV1AdapterStableNgAbi = curveV1AdapterStableNgAbi;
|
|
|
59898
60209
|
exports.dataCompressorV3Abi = dataCompressorV3Abi;
|
|
59899
60210
|
exports.degenDistributorV3Abi = degenDistributorV3Abi;
|
|
59900
60211
|
exports.degenNftv2Abi = degenNftv2Abi;
|
|
60212
|
+
exports.detectChain = detectChain;
|
|
59901
60213
|
exports.detectNetwork = detectNetwork;
|
|
59902
60214
|
exports.erc20Abi = erc20Abi;
|
|
59903
60215
|
exports.erc4626AdapterAbi = erc4626AdapterAbi;
|