@aave/graphql 0.7.0 → 1.0.0-next.0
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/index.cjs +962 -621
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29733 -10484
- package/dist/index.d.ts +29733 -10484
- package/dist/index.js +962 -621
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +2 -0
- package/dist/schema.cjs.map +1 -0
- package/dist/schema.d.cts +216 -0
- package/dist/schema.d.ts +216 -0
- package/dist/schema.js +2 -0
- package/dist/schema.js.map +1 -0
- package/dist/test-utils.cjs +1301 -1634
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js +1301 -1634
- package/dist/test-utils.js.map +1 -1
- package/package.json +20 -7
package/dist/index.cjs
CHANGED
|
@@ -1,890 +1,1231 @@
|
|
|
1
|
-
'use strict';var gql_tada=require('gql.tada');var
|
|
1
|
+
'use strict';var gql_tada=require('gql.tada'),types=require('@aave/types');var ce=(s=>(s.Asc="ASC",s.Desc="DESC",s))(ce||{}),le=(s=>(s.Ten="TEN",s.Fifty="FIFTY",s))(le||{}),ge=(m=>(m.LastDay="LAST_DAY",m.LastWeek="LAST_WEEK",m.LastMonth="LAST_MONTH",m.LastSixMonths="LAST_SIX_MONTHS",m.LastYear="LAST_YEAR",m.All="ALL",m))(ge||{}),fe=(l=>(l.SpokeBorrow="SPOKE_BORROW",l.SpokeRepay="SPOKE_REPAY",l.SpokeSupply="SPOKE_SUPPLY",l.SpokeWithdraw="SPOKE_WITHDRAW",l.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",l.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",l.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",l.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",l))(fe||{}),de=(r=>(r.TESTNET_ONLY="TESTNET_ONLY",r.MAINNET_ONLY="MAINNET_ONLY",r.ALL="ALL",r))(de||{}),Se=(r=>(r.Active="ACTIVE",r.Frozen="FROZEN",r.Paused="PAUSED",r))(Se||{}),Re=(s=>(s.Balance="BALANCE",s.Name="NAME",s))(Re||{}),qe=(m=>(m.Borrow="BORROW",m.Supply="SUPPLY",m.Withdraw="WITHDRAW",m.Repay="REPAY",m.Liquidated="LIQUIDATED",m.SetAsCollateral="SET_AS_COLLATERAL",m))(qe||{}),Fe=(r=>(r.Highest="HIGHEST",r.Lowest="LOWEST",r.Average="AVERAGE",r))(Fe||{}),Ae=(r=>(r.Usd="USD",r.Eur="EUR",r.Gbp="GBP",r))(Ae||{}),xe=(r=>(r.Supply="SUPPLY",r.Borrow="BORROW",r.All="ALL",r))(xe||{}),Ie=(s=>(s.Buy="BUY",s.Sell="SELL",s))(Ie||{}),we=(I=>(I.Cancelled="CANCELLED",I.Expired="EXPIRED",I.Fulfilled="FULFILLED",I.Open="OPEN",I.PendingSignature="PENDING_SIGNATURE",I))(we||{});var e=gql_tada.initGraphQLTada();var c=e(`fragment DecimalNumber on DecimalNumber {
|
|
2
2
|
__typename
|
|
3
|
-
|
|
4
|
-
icon
|
|
5
|
-
chainId
|
|
6
|
-
explorerUrl
|
|
7
|
-
isTestnet
|
|
8
|
-
nativeWrappedToken
|
|
9
|
-
}`);var l=e(`fragment DecimalValue on DecimalValue {
|
|
10
|
-
__typename
|
|
11
|
-
raw
|
|
3
|
+
onChainValue
|
|
12
4
|
decimals
|
|
13
5
|
value
|
|
14
|
-
}`),
|
|
6
|
+
}`),_=e(`fragment DecimalNumberWithChange on DecimalNumberWithChange {
|
|
7
|
+
__typename
|
|
8
|
+
current {
|
|
9
|
+
...DecimalNumber
|
|
10
|
+
}
|
|
11
|
+
change(window: $timeWindow) {
|
|
12
|
+
...DecimalNumber
|
|
13
|
+
}
|
|
14
|
+
}`,[c]),a=e(`fragment PercentNumber on PercentNumber {
|
|
15
15
|
__typename
|
|
16
|
-
|
|
16
|
+
onChainValue
|
|
17
17
|
decimals
|
|
18
18
|
value
|
|
19
|
-
|
|
20
|
-
}`),
|
|
19
|
+
normalized
|
|
20
|
+
}`),y=e(`fragment FiatAmount on FiatAmount {
|
|
21
21
|
__typename
|
|
22
|
-
|
|
23
|
-
imageUrl
|
|
22
|
+
value
|
|
24
23
|
name
|
|
25
24
|
symbol
|
|
26
|
-
|
|
27
|
-
chainId
|
|
28
|
-
}`),V=e(`fragment NativeCurrency on NativeCurrency {
|
|
25
|
+
}`),w=e(`fragment TokenInfo on TokenInfo {
|
|
29
26
|
__typename
|
|
30
|
-
imageUrl
|
|
31
27
|
name
|
|
32
28
|
symbol
|
|
29
|
+
icon
|
|
33
30
|
decimals
|
|
34
|
-
|
|
35
|
-
wrappedToken
|
|
36
|
-
}`),t=e(`fragment TokenAmount on TokenAmount {
|
|
31
|
+
}`),n=e(`fragment Chain on Chain {
|
|
37
32
|
__typename
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
name
|
|
34
|
+
icon
|
|
35
|
+
chainId
|
|
36
|
+
explorerUrl
|
|
37
|
+
isTestnet
|
|
38
|
+
nativeWrappedToken
|
|
39
|
+
nativeGateway
|
|
40
|
+
signatureGateway
|
|
41
|
+
nativeInfo {
|
|
42
|
+
...TokenInfo
|
|
41
43
|
}
|
|
42
|
-
|
|
43
|
-
}`,[l]),c=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
44
|
+
}`,[w]),S=e(`fragment Erc20Token on Erc20Token {
|
|
44
45
|
__typename
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
name
|
|
46
|
+
info {
|
|
47
|
+
...TokenInfo
|
|
48
|
+
}
|
|
49
|
+
address
|
|
50
50
|
chain {
|
|
51
51
|
...Chain
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}`,[
|
|
53
|
+
isWrappedNativeToken
|
|
54
|
+
permitSupported
|
|
55
|
+
}`,[w,n]),$=e(`fragment NativeToken on NativeToken {
|
|
56
56
|
__typename
|
|
57
|
-
|
|
58
|
-
...
|
|
57
|
+
info {
|
|
58
|
+
...TokenInfo
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
__typename
|
|
63
|
-
borrowAprDiscount {
|
|
64
|
-
...PercentValue
|
|
60
|
+
chain {
|
|
61
|
+
...Chain
|
|
65
62
|
}
|
|
66
|
-
|
|
67
|
-
}`,[r]),L=e(`fragment MeritBorrowAndSupplyIncentiveCondition on MeritBorrowAndSupplyIncentiveCondition {
|
|
63
|
+
}`,[w,n]),p=e(`fragment Erc20Amount on Erc20Amount {
|
|
68
64
|
__typename
|
|
69
|
-
|
|
70
|
-
...
|
|
65
|
+
token {
|
|
66
|
+
...Erc20Token
|
|
71
67
|
}
|
|
72
|
-
|
|
73
|
-
...
|
|
68
|
+
amount {
|
|
69
|
+
...DecimalNumber
|
|
74
70
|
}
|
|
75
|
-
|
|
76
|
-
...
|
|
71
|
+
fiatAmount(currency: $currency){
|
|
72
|
+
...FiatAmount
|
|
77
73
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
__typename
|
|
81
|
-
extraSupplyApr {
|
|
82
|
-
...PercentValue
|
|
74
|
+
fiatRate(currency: $currency){
|
|
75
|
+
...DecimalNumber
|
|
83
76
|
}
|
|
84
|
-
|
|
85
|
-
rewardTokenSymbol
|
|
86
|
-
}`,[r]),b=e(`fragment AaveBorrowIncentive on AaveBorrowIncentive {
|
|
77
|
+
}`,[S,c,y]),he=e(`fragment NativeAmount on NativeAmount {
|
|
87
78
|
__typename
|
|
88
|
-
|
|
89
|
-
...
|
|
79
|
+
token {
|
|
80
|
+
...NativeToken
|
|
90
81
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}`,[r]),U=e(`fragment ReserveIncentive on ReserveIncentive {
|
|
94
|
-
__typename
|
|
95
|
-
... on MeritSupplyIncentive {
|
|
96
|
-
...MeritSupplyIncentive
|
|
82
|
+
amount {
|
|
83
|
+
...DecimalNumber
|
|
97
84
|
}
|
|
98
|
-
|
|
99
|
-
...
|
|
85
|
+
fiatAmount(currency: $currency){
|
|
86
|
+
...FiatAmount
|
|
100
87
|
}
|
|
101
|
-
|
|
102
|
-
...
|
|
88
|
+
fiatRate(currency: $currency){
|
|
89
|
+
...DecimalNumber
|
|
103
90
|
}
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
}`,[$,c,y]),g=e(`fragment TokenAmount on TokenAmount {
|
|
92
|
+
__typename
|
|
93
|
+
... on Erc20Amount {
|
|
94
|
+
...Erc20Amount
|
|
106
95
|
}
|
|
107
|
-
... on
|
|
108
|
-
...
|
|
96
|
+
... on NativeAmount {
|
|
97
|
+
...NativeAmount
|
|
109
98
|
}
|
|
110
|
-
}`,[
|
|
99
|
+
}`,[p,he]),D=e(`fragment Token on Token {
|
|
111
100
|
__typename
|
|
112
|
-
|
|
113
|
-
...
|
|
114
|
-
}
|
|
115
|
-
underlyingToken {
|
|
116
|
-
...Currency
|
|
101
|
+
... on Erc20Token {
|
|
102
|
+
...Erc20Token
|
|
117
103
|
}
|
|
118
|
-
|
|
119
|
-
...
|
|
104
|
+
... on NativeToken {
|
|
105
|
+
...NativeToken
|
|
120
106
|
}
|
|
121
|
-
|
|
122
|
-
|
|
107
|
+
}`,[S,$]),R=e(`fragment FiatAmountWithChange on FiatAmountWithChange {
|
|
108
|
+
__typename
|
|
109
|
+
current {
|
|
110
|
+
...FiatAmount
|
|
123
111
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
incentives {
|
|
127
|
-
...ReserveIncentive
|
|
112
|
+
change(window: $timeWindow){
|
|
113
|
+
...PercentNumber
|
|
128
114
|
}
|
|
129
|
-
}`,[
|
|
115
|
+
}`,[y,a]),Q=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
130
116
|
__typename
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
maxLTV {
|
|
134
|
-
...PercentValue
|
|
117
|
+
current {
|
|
118
|
+
...PercentNumber
|
|
135
119
|
}
|
|
136
|
-
|
|
137
|
-
...
|
|
120
|
+
change(window: $timeWindow){
|
|
121
|
+
...PercentNumber
|
|
138
122
|
}
|
|
139
|
-
|
|
140
|
-
...PercentValue
|
|
141
|
-
}
|
|
142
|
-
canBeCollateral
|
|
143
|
-
canBeBorrowed
|
|
144
|
-
}`,[r]),W=e(`fragment ReserveSupplyInfo on ReserveSupplyInfo {
|
|
123
|
+
}`,[a]),f=e(`fragment PaginatedResultInfo on PaginatedResultInfo {
|
|
145
124
|
__typename
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
125
|
+
prev
|
|
126
|
+
next
|
|
127
|
+
}`),N=e(`fragment PercentNumberVariation on PercentNumberVariation {
|
|
128
|
+
__typename
|
|
129
|
+
current {
|
|
130
|
+
...PercentNumber
|
|
151
131
|
}
|
|
152
|
-
|
|
153
|
-
...
|
|
132
|
+
after {
|
|
133
|
+
...PercentNumber
|
|
154
134
|
}
|
|
155
|
-
|
|
156
|
-
|
|
135
|
+
}`,[a]),W=e(`fragment FiatAmountValueVariation on FiatAmountValueVariation {
|
|
136
|
+
__typename
|
|
137
|
+
current {
|
|
138
|
+
...FiatAmount
|
|
157
139
|
}
|
|
158
|
-
|
|
159
|
-
...
|
|
140
|
+
after {
|
|
141
|
+
...FiatAmount
|
|
160
142
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
143
|
+
}`,[y]),L=e(`fragment HealthFactorWithChange on HealthFactorWithChange {
|
|
144
|
+
__typename
|
|
145
|
+
current
|
|
146
|
+
change(window: $timeWindow) {
|
|
147
|
+
...PercentNumber
|
|
164
148
|
}
|
|
165
|
-
|
|
166
|
-
|
|
149
|
+
}`,[a]),Te=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
150
|
+
__typename
|
|
151
|
+
current
|
|
152
|
+
after
|
|
153
|
+
}`),ve=e(`fragment HealthFactorError on HealthFactorError {
|
|
167
154
|
__typename
|
|
168
|
-
|
|
169
|
-
|
|
155
|
+
reason
|
|
156
|
+
current
|
|
157
|
+
after
|
|
158
|
+
}`),M=e(`fragment HealthFactorResult on HealthFactorResult {
|
|
159
|
+
__typename
|
|
160
|
+
... on HealthFactorVariation {
|
|
161
|
+
...HealthFactorVariation
|
|
170
162
|
}
|
|
171
|
-
|
|
172
|
-
...
|
|
163
|
+
... on HealthFactorError {
|
|
164
|
+
...HealthFactorError
|
|
173
165
|
}
|
|
174
|
-
|
|
175
|
-
|
|
166
|
+
}`,[Te,ve]);var be=e(`fragment HubSummary on HubSummary {
|
|
167
|
+
__typename
|
|
168
|
+
totalBorrowed {
|
|
169
|
+
...FiatAmount
|
|
170
|
+
}
|
|
171
|
+
totalBorrowCap {
|
|
172
|
+
...FiatAmount
|
|
173
|
+
}
|
|
174
|
+
totalSupplied {
|
|
175
|
+
...FiatAmount
|
|
176
|
+
}
|
|
177
|
+
totalSupplyCap {
|
|
178
|
+
...FiatAmount
|
|
179
|
+
}
|
|
180
|
+
utilizationRate
|
|
181
|
+
}`,[y]),P=e(`fragment Hub on Hub {
|
|
182
|
+
__typename
|
|
183
|
+
id
|
|
184
|
+
name
|
|
185
|
+
address
|
|
186
|
+
chain {
|
|
187
|
+
...Chain
|
|
188
|
+
}
|
|
189
|
+
summary(currency: $currency) {
|
|
190
|
+
...HubSummary
|
|
191
|
+
}
|
|
192
|
+
}`,[n,be]);var Ue=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
193
|
+
__typename
|
|
194
|
+
supplied {
|
|
195
|
+
...Erc20Amount
|
|
196
|
+
}
|
|
197
|
+
borrowed {
|
|
198
|
+
...Erc20Amount
|
|
199
|
+
}
|
|
200
|
+
availableLiquidity {
|
|
201
|
+
...Erc20Amount
|
|
202
|
+
}
|
|
203
|
+
supplyApy {
|
|
204
|
+
...PercentNumber
|
|
205
|
+
}
|
|
206
|
+
borrowApy {
|
|
207
|
+
...PercentNumber
|
|
208
|
+
}
|
|
209
|
+
netApy {
|
|
210
|
+
...PercentNumber
|
|
211
|
+
}
|
|
212
|
+
utilizationRate {
|
|
213
|
+
...PercentNumber
|
|
214
|
+
}
|
|
215
|
+
}`,[p,a]),Ce=e(`fragment HubAssetSettings on HubAssetSettings {
|
|
216
|
+
__typename
|
|
217
|
+
feeReceiver
|
|
218
|
+
liquidityFee {
|
|
219
|
+
...PercentNumber
|
|
220
|
+
}
|
|
221
|
+
irStrategy
|
|
222
|
+
reinvestmentController
|
|
223
|
+
}`,[a]),ke=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
224
|
+
__typename
|
|
225
|
+
balance {
|
|
226
|
+
...Erc20Amount
|
|
227
|
+
}
|
|
228
|
+
}`,[p]),h=e(`fragment HubAsset on HubAsset {
|
|
229
|
+
__typename
|
|
230
|
+
id
|
|
231
|
+
onchainAssetId
|
|
232
|
+
hub {
|
|
233
|
+
...Hub
|
|
234
|
+
}
|
|
235
|
+
underlying {
|
|
236
|
+
...Erc20Token
|
|
237
|
+
}
|
|
238
|
+
summary {
|
|
239
|
+
...HubAssetSummary
|
|
240
|
+
}
|
|
241
|
+
settings {
|
|
242
|
+
...HubAssetSettings
|
|
243
|
+
}
|
|
244
|
+
userState {
|
|
245
|
+
...HubAssetUserState
|
|
246
|
+
}
|
|
247
|
+
}`,[P,S,Ue,Ce,ke]);var i=e(`fragment Spoke on Spoke {
|
|
248
|
+
__typename
|
|
249
|
+
id
|
|
250
|
+
name
|
|
251
|
+
address
|
|
252
|
+
chain {
|
|
253
|
+
...Chain
|
|
176
254
|
}
|
|
177
|
-
|
|
178
|
-
|
|
255
|
+
}`,[n]),Ee=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
256
|
+
__typename
|
|
257
|
+
address
|
|
258
|
+
active
|
|
259
|
+
name
|
|
260
|
+
}`),V=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
261
|
+
__typename
|
|
262
|
+
items {
|
|
263
|
+
...SpokePositionManager
|
|
264
|
+
}
|
|
265
|
+
pageInfo {
|
|
266
|
+
...PaginatedResultInfo
|
|
179
267
|
}
|
|
180
|
-
|
|
181
|
-
|
|
268
|
+
}`,[Ee,f]),Oe=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
269
|
+
__typename
|
|
270
|
+
address
|
|
271
|
+
approvedOn
|
|
272
|
+
active
|
|
273
|
+
name
|
|
274
|
+
}`),Y=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
275
|
+
__typename
|
|
276
|
+
items {
|
|
277
|
+
...SpokeUserPositionManager
|
|
182
278
|
}
|
|
183
|
-
|
|
184
|
-
...
|
|
279
|
+
pageInfo {
|
|
280
|
+
...PaginatedResultInfo
|
|
185
281
|
}
|
|
186
|
-
|
|
187
|
-
|
|
282
|
+
}`,[Oe,f]);var Be=e(`fragment ReserveSettings on ReserveSettings {
|
|
283
|
+
__typename
|
|
284
|
+
collateralFactor {
|
|
285
|
+
...PercentNumber
|
|
188
286
|
}
|
|
189
|
-
|
|
190
|
-
...
|
|
287
|
+
maxLiquidationBonus {
|
|
288
|
+
...PercentNumber
|
|
191
289
|
}
|
|
192
|
-
|
|
193
|
-
...
|
|
290
|
+
collateralRisk {
|
|
291
|
+
...PercentNumber
|
|
194
292
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
293
|
+
borrowable
|
|
294
|
+
collateral
|
|
295
|
+
suppliable
|
|
296
|
+
}`,[a]),He=e(`fragment ReserveStatus on ReserveStatus {
|
|
198
297
|
__typename
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
298
|
+
frozen
|
|
299
|
+
paused
|
|
300
|
+
active
|
|
301
|
+
}`),_e=e(`fragment ReserveSummary on ReserveSummary {
|
|
302
|
+
__typename
|
|
303
|
+
supplied {
|
|
304
|
+
...Erc20Amount
|
|
203
305
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
306
|
+
borrowed {
|
|
307
|
+
...Erc20Amount
|
|
308
|
+
}
|
|
309
|
+
supplyApy {
|
|
310
|
+
...PercentNumber
|
|
207
311
|
}
|
|
208
|
-
|
|
312
|
+
borrowApy {
|
|
313
|
+
...PercentNumber
|
|
314
|
+
}
|
|
315
|
+
}`,[p,a]),$e=e(`fragment ReserveUserState on ReserveUserState {
|
|
209
316
|
__typename
|
|
210
317
|
balance {
|
|
211
|
-
...
|
|
318
|
+
...Erc20Amount
|
|
212
319
|
}
|
|
213
320
|
suppliable {
|
|
214
|
-
...
|
|
321
|
+
...Erc20Amount
|
|
215
322
|
}
|
|
216
323
|
borrowable {
|
|
217
|
-
...
|
|
324
|
+
...Erc20Amount
|
|
218
325
|
}
|
|
219
|
-
|
|
220
|
-
...
|
|
326
|
+
borrowApy {
|
|
327
|
+
...PercentNumber
|
|
221
328
|
}
|
|
222
|
-
|
|
223
|
-
canBeBorrowed
|
|
224
|
-
isInIsolationMode
|
|
225
|
-
}`,[t,w]),m=e(`fragment Reserve on Reserve {
|
|
329
|
+
}`,[p,a]),q=e(`fragment Reserve on Reserve {
|
|
226
330
|
__typename
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
...Currency
|
|
232
|
-
}
|
|
233
|
-
aToken {
|
|
234
|
-
...Currency
|
|
235
|
-
}
|
|
236
|
-
vToken {
|
|
237
|
-
...Currency
|
|
238
|
-
}
|
|
239
|
-
acceptsNative {
|
|
240
|
-
...NativeCurrency
|
|
241
|
-
}
|
|
242
|
-
size {
|
|
243
|
-
...TokenAmount
|
|
244
|
-
}
|
|
245
|
-
usdExchangeRate
|
|
246
|
-
usdOracleAddress
|
|
247
|
-
isFrozen
|
|
248
|
-
isPaused
|
|
249
|
-
flashLoanEnabled
|
|
250
|
-
interestRateStrategyAddress
|
|
251
|
-
permitSupported
|
|
252
|
-
supplyInfo {
|
|
253
|
-
...ReserveSupplyInfo
|
|
331
|
+
id
|
|
332
|
+
onChainId
|
|
333
|
+
spoke {
|
|
334
|
+
...Spoke
|
|
254
335
|
}
|
|
255
|
-
|
|
256
|
-
|
|
336
|
+
borrowCap
|
|
337
|
+
supplyCap
|
|
338
|
+
chain {
|
|
339
|
+
...Chain
|
|
257
340
|
}
|
|
258
|
-
|
|
259
|
-
...
|
|
341
|
+
summary {
|
|
342
|
+
...ReserveSummary
|
|
260
343
|
}
|
|
261
|
-
|
|
262
|
-
...
|
|
344
|
+
settings {
|
|
345
|
+
...ReserveSettings
|
|
263
346
|
}
|
|
264
|
-
|
|
265
|
-
...
|
|
347
|
+
status {
|
|
348
|
+
...ReserveStatus
|
|
266
349
|
}
|
|
350
|
+
canBorrow
|
|
351
|
+
canSupply
|
|
352
|
+
canUseAsCollateral
|
|
267
353
|
userState {
|
|
268
354
|
...ReserveUserState
|
|
269
355
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
netWorth
|
|
273
|
-
netAPY {
|
|
274
|
-
...PercentValue
|
|
275
|
-
}
|
|
276
|
-
healthFactor
|
|
277
|
-
eModeEnabled
|
|
278
|
-
totalCollateralBase
|
|
279
|
-
totalDebtBase
|
|
280
|
-
availableBorrowsBase
|
|
281
|
-
currentLiquidationThreshold {
|
|
282
|
-
...PercentValue
|
|
283
|
-
}
|
|
284
|
-
ltv {
|
|
285
|
-
...PercentValue
|
|
286
|
-
}
|
|
287
|
-
isInIsolationMode
|
|
288
|
-
}`,[r]),K=e(`fragment EmodeMarketReserveInfo on EmodeMarketReserveInfo {
|
|
289
|
-
__typename
|
|
290
|
-
underlyingToken {
|
|
291
|
-
...Currency
|
|
356
|
+
asset {
|
|
357
|
+
...HubAsset
|
|
292
358
|
}
|
|
293
|
-
|
|
294
|
-
canBeBorrowed
|
|
295
|
-
}`,[o]),z=e(`fragment EmodeMarketCategory on EmodeMarketCategory {
|
|
359
|
+
}`,[i,n,_e,Be,He,$e,h]),d=e(`fragment ReserveInfo on ReserveInfo {
|
|
296
360
|
__typename
|
|
297
361
|
id
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
...PercentValue
|
|
301
|
-
}
|
|
302
|
-
liquidationThreshold {
|
|
303
|
-
...PercentValue
|
|
304
|
-
}
|
|
305
|
-
liquidationPenalty {
|
|
306
|
-
...PercentValue
|
|
307
|
-
}
|
|
308
|
-
reserves {
|
|
309
|
-
...EmodeMarketReserveInfo
|
|
362
|
+
asset {
|
|
363
|
+
...HubAsset
|
|
310
364
|
}
|
|
311
|
-
}`,[
|
|
312
|
-
__typename
|
|
365
|
+
}`,[h]);var b=e(`fragment TypeField on TypeField {
|
|
313
366
|
name
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
icon
|
|
319
|
-
totalMarketSize
|
|
320
|
-
totalAvailableLiquidity
|
|
321
|
-
eModeCategories {
|
|
322
|
-
...EmodeMarketCategory
|
|
323
|
-
}
|
|
324
|
-
userState {
|
|
325
|
-
...MarketUserState
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
borrowReserves: reserves(request: { reserveType: BORROW, orderBy: $borrowsOrderBy }) {
|
|
329
|
-
...Reserve
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
supplyReserves: reserves(request: { reserveType: SUPPLY, orderBy: $suppliesOrderBy }) {
|
|
333
|
-
...Reserve
|
|
334
|
-
}
|
|
335
|
-
}`,[p,z,m,q]);var S=e(`fragment MarketUserReserveBorrowPosition on MarketUserReserveBorrowPosition {
|
|
336
|
-
__typename
|
|
337
|
-
market {
|
|
338
|
-
...MarketInfo
|
|
339
|
-
}
|
|
340
|
-
currency {
|
|
341
|
-
...Currency
|
|
342
|
-
}
|
|
343
|
-
debt {
|
|
344
|
-
...TokenAmount
|
|
345
|
-
}
|
|
346
|
-
apy {
|
|
347
|
-
...PercentValue
|
|
367
|
+
type
|
|
368
|
+
}`),De=e(`fragment TypeDefinition on TypeDefinition {
|
|
369
|
+
EIP712Domain {
|
|
370
|
+
...TypeField
|
|
348
371
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
market {
|
|
352
|
-
...MarketInfo
|
|
372
|
+
Permit {
|
|
373
|
+
...TypeField
|
|
353
374
|
}
|
|
354
|
-
|
|
355
|
-
|
|
375
|
+
}`,[b]),U=e(`fragment DomainData on DomainData {
|
|
376
|
+
name
|
|
377
|
+
version
|
|
378
|
+
chainId
|
|
379
|
+
verifyingContract
|
|
380
|
+
}`),Qe=e(`fragment PermitMessageData on PermitMessageData {
|
|
381
|
+
owner
|
|
382
|
+
spender
|
|
383
|
+
value
|
|
384
|
+
nonce
|
|
385
|
+
deadline
|
|
386
|
+
}`),Ne=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
387
|
+
types {
|
|
388
|
+
...TypeDefinition
|
|
356
389
|
}
|
|
357
|
-
|
|
358
|
-
|
|
390
|
+
primaryType
|
|
391
|
+
domain {
|
|
392
|
+
...DomainData
|
|
359
393
|
}
|
|
360
|
-
|
|
361
|
-
...
|
|
394
|
+
message {
|
|
395
|
+
...PermitMessageData
|
|
362
396
|
}
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
__typename
|
|
367
|
-
avgRate {
|
|
368
|
-
...PercentValue
|
|
397
|
+
}`,[De,U,Qe]),Dt=e(`query PermitTypedData($request: PermitRequest!) {
|
|
398
|
+
value: permitTypedData(request: $request) {
|
|
399
|
+
...PermitTypedDataResponse
|
|
369
400
|
}
|
|
370
|
-
|
|
371
|
-
}`,[r]);var a=e(`fragment TransactionRequest on TransactionRequest {
|
|
401
|
+
}`,[Ne]);var u=e(`fragment TransactionRequest on TransactionRequest {
|
|
372
402
|
__typename
|
|
373
403
|
to
|
|
374
404
|
from
|
|
375
405
|
data
|
|
376
406
|
value
|
|
377
407
|
chainId
|
|
378
|
-
|
|
379
|
-
}`),
|
|
408
|
+
operations
|
|
409
|
+
}`),k=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
380
410
|
__typename
|
|
381
|
-
|
|
411
|
+
transaction {
|
|
382
412
|
...TransactionRequest
|
|
383
413
|
}
|
|
384
414
|
reason
|
|
385
415
|
requiredAmount {
|
|
386
|
-
...
|
|
416
|
+
...DecimalNumber
|
|
387
417
|
}
|
|
388
418
|
currentAllowance {
|
|
389
|
-
...
|
|
419
|
+
...DecimalNumber
|
|
420
|
+
}
|
|
421
|
+
originalTransaction {
|
|
422
|
+
...TransactionRequest
|
|
423
|
+
}
|
|
424
|
+
}`,[u,c]),We=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
425
|
+
__typename
|
|
426
|
+
transaction {
|
|
427
|
+
...TransactionRequest
|
|
390
428
|
}
|
|
429
|
+
reason
|
|
391
430
|
originalTransaction {
|
|
392
431
|
...TransactionRequest
|
|
393
432
|
}
|
|
394
|
-
}`,[
|
|
433
|
+
}`,[u]),F=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
395
434
|
__typename
|
|
396
435
|
required {
|
|
397
|
-
...
|
|
436
|
+
...DecimalNumber
|
|
398
437
|
}
|
|
399
438
|
available {
|
|
400
|
-
...
|
|
439
|
+
...DecimalNumber
|
|
401
440
|
}
|
|
402
|
-
}`,[
|
|
441
|
+
}`,[c]),T=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
403
442
|
__typename
|
|
404
443
|
... on TransactionRequest {
|
|
405
444
|
...TransactionRequest
|
|
406
445
|
}
|
|
407
|
-
... on
|
|
408
|
-
...
|
|
446
|
+
... on Erc20ApprovalRequired {
|
|
447
|
+
...Erc20ApprovalRequired
|
|
448
|
+
}
|
|
449
|
+
... on PreContractActionRequired {
|
|
450
|
+
...PreContractActionRequired
|
|
409
451
|
}
|
|
410
452
|
... on InsufficientBalanceError {
|
|
411
453
|
...InsufficientBalanceError
|
|
412
454
|
}
|
|
413
|
-
}`,[
|
|
455
|
+
}`,[u,k,We,F]);var Le=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
414
456
|
__typename
|
|
415
|
-
|
|
457
|
+
networkCosts {
|
|
416
458
|
...TokenAmount
|
|
417
459
|
}
|
|
418
|
-
|
|
419
|
-
...
|
|
460
|
+
partnerFee {
|
|
461
|
+
...TokenAmount
|
|
420
462
|
}
|
|
421
|
-
|
|
422
|
-
txHash
|
|
423
|
-
timestamp
|
|
424
|
-
}`,[t,i]),Z=e(`fragment UserWithdrawTransaction on UserWithdrawTransaction {
|
|
463
|
+
}`,[g]),v=e(`fragment SwapQuote on SwapQuote {
|
|
425
464
|
__typename
|
|
426
|
-
|
|
465
|
+
quoteId
|
|
466
|
+
suggestedSlippage {
|
|
467
|
+
...PercentNumber
|
|
468
|
+
}
|
|
469
|
+
desiredSell {
|
|
427
470
|
...TokenAmount
|
|
428
471
|
}
|
|
429
|
-
|
|
430
|
-
...
|
|
472
|
+
desiredBuy {
|
|
473
|
+
...TokenAmount
|
|
431
474
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
__typename
|
|
437
|
-
amount {
|
|
475
|
+
costs {
|
|
476
|
+
...SwapQuoteCosts
|
|
477
|
+
}
|
|
478
|
+
minimumReceived {
|
|
438
479
|
...TokenAmount
|
|
439
480
|
}
|
|
440
|
-
|
|
441
|
-
|
|
481
|
+
}`,[a,g,Le]),Me=e(`fragment SwapByIntentTypeDefinition on SwapByIntentTypeDefinition {
|
|
482
|
+
EIP712Domain {
|
|
483
|
+
...TypeField
|
|
442
484
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}`,[
|
|
485
|
+
Order {
|
|
486
|
+
...TypeField
|
|
487
|
+
}
|
|
488
|
+
}`,[b]),G=e(`fragment SwapByIntentTypedData on SwapByIntentTypedData {
|
|
447
489
|
__typename
|
|
448
|
-
|
|
449
|
-
...
|
|
490
|
+
types {
|
|
491
|
+
...SwapByIntentTypeDefinition
|
|
450
492
|
}
|
|
451
|
-
|
|
452
|
-
|
|
493
|
+
primaryType
|
|
494
|
+
domain {
|
|
495
|
+
...DomainData
|
|
453
496
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
timestamp
|
|
457
|
-
}`,[t,i]),re=e(`fragment UserUsageAsCollateralTransaction on UserUsageAsCollateralTransaction {
|
|
497
|
+
message
|
|
498
|
+
}`,[Me,U]),Ve=e(`fragment SwapByIntent on SwapByIntent {
|
|
458
499
|
__typename
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
...ReserveInfo
|
|
500
|
+
quote {
|
|
501
|
+
...SwapQuote
|
|
462
502
|
}
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}`,[
|
|
503
|
+
data {
|
|
504
|
+
...SwapByIntentTypedData
|
|
505
|
+
}
|
|
506
|
+
}`,[v,G]),Ye=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
467
507
|
__typename
|
|
468
|
-
|
|
469
|
-
...
|
|
508
|
+
approval {
|
|
509
|
+
...TransactionRequest
|
|
470
510
|
}
|
|
471
|
-
|
|
472
|
-
...
|
|
511
|
+
quote {
|
|
512
|
+
...SwapQuote
|
|
513
|
+
}
|
|
514
|
+
data {
|
|
515
|
+
...SwapByIntentTypedData
|
|
473
516
|
}
|
|
474
|
-
}`,[
|
|
517
|
+
}`,[u,v,G]),Ge=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
475
518
|
__typename
|
|
476
|
-
|
|
477
|
-
...
|
|
519
|
+
quote {
|
|
520
|
+
...SwapQuote
|
|
478
521
|
}
|
|
479
|
-
|
|
480
|
-
|
|
522
|
+
}`,[v]),K=e(`fragment SwapReceipt on SwapReceipt {
|
|
523
|
+
__typename
|
|
524
|
+
id
|
|
525
|
+
explorerLink
|
|
526
|
+
createdAt
|
|
527
|
+
}`),z=e(`fragment PrepareSwapResult on PrepareSwapResult {
|
|
528
|
+
__typename
|
|
529
|
+
... on SwapByIntent {
|
|
530
|
+
...SwapByIntent
|
|
531
|
+
}
|
|
532
|
+
... on SwapByIntentWithApprovalRequired {
|
|
533
|
+
...SwapByIntentWithApprovalRequired
|
|
481
534
|
}
|
|
482
|
-
|
|
535
|
+
... on SwapByTransaction {
|
|
536
|
+
...SwapByTransaction
|
|
537
|
+
}
|
|
538
|
+
... on InsufficientBalanceError {
|
|
539
|
+
...InsufficientBalanceError
|
|
540
|
+
}
|
|
541
|
+
}`,[Ve,Ye,Ge,F]),Z=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
483
542
|
__typename
|
|
484
|
-
|
|
485
|
-
...
|
|
543
|
+
transaction {
|
|
544
|
+
...TransactionRequest
|
|
486
545
|
}
|
|
487
|
-
|
|
488
|
-
...
|
|
546
|
+
orderReceipt {
|
|
547
|
+
...SwapReceipt
|
|
489
548
|
}
|
|
490
|
-
|
|
491
|
-
txHash
|
|
492
|
-
timestamp
|
|
493
|
-
}`,[ae,ne]),se=e(`fragment UserTransactionItem on UserTransactionItem {
|
|
549
|
+
}`,[u,K]),Ke=e(`fragment SwapApprovalRequired on SwapApprovalRequired {
|
|
494
550
|
__typename
|
|
495
|
-
|
|
496
|
-
...
|
|
551
|
+
approval {
|
|
552
|
+
...TransactionRequest
|
|
497
553
|
}
|
|
498
|
-
|
|
499
|
-
...
|
|
554
|
+
originalTransaction {
|
|
555
|
+
...SwapTransactionRequest
|
|
500
556
|
}
|
|
501
|
-
|
|
502
|
-
|
|
557
|
+
}`,[u,Z]),J=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
558
|
+
__typename
|
|
559
|
+
... on SwapTransactionRequest {
|
|
560
|
+
...SwapTransactionRequest
|
|
503
561
|
}
|
|
504
|
-
... on
|
|
505
|
-
...
|
|
562
|
+
... on SwapApprovalRequired {
|
|
563
|
+
...SwapApprovalRequired
|
|
506
564
|
}
|
|
507
|
-
... on
|
|
508
|
-
...
|
|
565
|
+
... on InsufficientBalanceError {
|
|
566
|
+
...InsufficientBalanceError
|
|
509
567
|
}
|
|
510
|
-
... on
|
|
511
|
-
...
|
|
568
|
+
... on SwapReceipt {
|
|
569
|
+
...SwapReceipt
|
|
512
570
|
}
|
|
513
|
-
}`,[
|
|
571
|
+
}`,[Z,Ke,F,K]),X=e(`fragment SwapCancelled on SwapCancelled {
|
|
514
572
|
__typename
|
|
515
|
-
|
|
516
|
-
|
|
573
|
+
createdAt
|
|
574
|
+
cancelledAt
|
|
575
|
+
explorerLink
|
|
576
|
+
}`),ze=e(`fragment SwapExpired on SwapExpired {
|
|
577
|
+
__typename
|
|
578
|
+
createdAt
|
|
579
|
+
expiredAt
|
|
580
|
+
explorerLink
|
|
581
|
+
}`),Ze=e(`fragment SwapOpen on SwapOpen {
|
|
582
|
+
__typename
|
|
583
|
+
swapId
|
|
584
|
+
createdAt
|
|
585
|
+
deadline
|
|
586
|
+
explorerLink
|
|
587
|
+
desiredSell {
|
|
588
|
+
...TokenAmount
|
|
517
589
|
}
|
|
518
|
-
|
|
519
|
-
...
|
|
590
|
+
desiredBuy {
|
|
591
|
+
...TokenAmount
|
|
520
592
|
}
|
|
521
|
-
}`,[
|
|
593
|
+
}`,[g]),Je=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
594
|
+
__typename
|
|
595
|
+
createdAt
|
|
596
|
+
deadline
|
|
597
|
+
explorerLink
|
|
598
|
+
}`),Xe=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
522
599
|
__typename
|
|
523
|
-
|
|
600
|
+
txHash
|
|
601
|
+
desiredSell {
|
|
524
602
|
...TokenAmount
|
|
525
603
|
}
|
|
526
|
-
|
|
604
|
+
desiredBuy {
|
|
527
605
|
...TokenAmount
|
|
528
606
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
address
|
|
532
|
-
split {
|
|
533
|
-
...PercentValue
|
|
607
|
+
sold {
|
|
608
|
+
...TokenAmount
|
|
534
609
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
__typename
|
|
538
|
-
address
|
|
539
|
-
entries {
|
|
540
|
-
...VaultFeesRecipientSplit
|
|
610
|
+
bought {
|
|
611
|
+
...TokenAmount
|
|
541
612
|
}
|
|
542
|
-
|
|
613
|
+
createdAt
|
|
614
|
+
fulfilledAt
|
|
615
|
+
explorerLink
|
|
616
|
+
refundTxHash
|
|
617
|
+
}`,[g]),E=e(`fragment SwapStatus on SwapStatus {
|
|
543
618
|
__typename
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
shareName
|
|
547
|
-
shareSymbol
|
|
548
|
-
usedReserve {
|
|
549
|
-
...Reserve
|
|
619
|
+
... on SwapOpen {
|
|
620
|
+
...SwapOpen
|
|
550
621
|
}
|
|
551
|
-
|
|
552
|
-
...
|
|
622
|
+
... on SwapPendingSignature {
|
|
623
|
+
...SwapPendingSignature
|
|
553
624
|
}
|
|
554
|
-
|
|
555
|
-
...
|
|
625
|
+
... on SwapCancelled {
|
|
626
|
+
...SwapCancelled
|
|
556
627
|
}
|
|
557
|
-
|
|
558
|
-
...
|
|
628
|
+
... on SwapExpired {
|
|
629
|
+
...SwapExpired
|
|
559
630
|
}
|
|
560
|
-
|
|
561
|
-
...
|
|
631
|
+
... on SwapFulfilled {
|
|
632
|
+
...SwapFulfilled
|
|
562
633
|
}
|
|
563
|
-
|
|
564
|
-
|
|
634
|
+
}`,[Ze,Je,X,ze,Xe]),je=e(`fragment CancelSwapTypeDefinition on CancelSwapTypeDefinition {
|
|
635
|
+
OrderCancellations {
|
|
636
|
+
...TypeField
|
|
565
637
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
...PercentValue
|
|
638
|
+
EIP712Domain {
|
|
639
|
+
...TypeField
|
|
569
640
|
}
|
|
570
|
-
|
|
571
|
-
|
|
641
|
+
}`,[b]),et=e(`fragment CancelSwapTypedData on CancelSwapTypedData {
|
|
642
|
+
types {
|
|
643
|
+
...CancelSwapTypeDefinition
|
|
644
|
+
}
|
|
645
|
+
primaryType
|
|
646
|
+
domain {
|
|
647
|
+
...DomainData
|
|
648
|
+
}
|
|
649
|
+
message
|
|
650
|
+
}`,[je,U]),j=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
651
|
+
__typename
|
|
652
|
+
data {
|
|
653
|
+
...CancelSwapTypedData
|
|
572
654
|
}
|
|
573
|
-
}`,[
|
|
655
|
+
}`,[et]),ee=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
656
|
+
__typename
|
|
657
|
+
... on TransactionRequest {
|
|
658
|
+
...TransactionRequest
|
|
659
|
+
}
|
|
660
|
+
... on SwapCancelled {
|
|
661
|
+
...SwapCancelled
|
|
662
|
+
}
|
|
663
|
+
}`,[u,X]),te=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
574
664
|
__typename
|
|
575
665
|
items {
|
|
576
|
-
...
|
|
666
|
+
...SwapStatus
|
|
577
667
|
}
|
|
578
668
|
pageInfo {
|
|
579
669
|
...PaginatedResultInfo
|
|
580
670
|
}
|
|
581
|
-
}`,[
|
|
671
|
+
}`,[E,f]);var re=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
582
672
|
__typename
|
|
583
|
-
|
|
584
|
-
|
|
673
|
+
id
|
|
674
|
+
reserve {
|
|
675
|
+
...Reserve
|
|
585
676
|
}
|
|
586
|
-
|
|
587
|
-
...
|
|
677
|
+
interest {
|
|
678
|
+
...Erc20Amount
|
|
588
679
|
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
timestamp
|
|
592
|
-
}`,[t]),le=e(`fragment VaultUserWithdrawItem on VaultUserWithdrawItem {
|
|
593
|
-
__typename
|
|
594
|
-
asset {
|
|
595
|
-
...TokenAmount
|
|
680
|
+
principal {
|
|
681
|
+
...Erc20Amount
|
|
596
682
|
}
|
|
597
|
-
|
|
598
|
-
...
|
|
683
|
+
withdrawable {
|
|
684
|
+
...Erc20Amount
|
|
599
685
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
}`,[t]),me=e(`fragment VaultUserTransactionItem on VaultUserTransactionItem {
|
|
686
|
+
isCollateral
|
|
687
|
+
createdAt
|
|
688
|
+
}`,[p,q]),ae=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
604
689
|
__typename
|
|
605
|
-
|
|
606
|
-
|
|
690
|
+
id
|
|
691
|
+
principal {
|
|
692
|
+
...Erc20Amount
|
|
607
693
|
}
|
|
608
|
-
|
|
609
|
-
...
|
|
694
|
+
interest {
|
|
695
|
+
...Erc20Amount
|
|
610
696
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
items {
|
|
614
|
-
...VaultUserTransactionItem
|
|
697
|
+
debt {
|
|
698
|
+
...Erc20Amount
|
|
615
699
|
}
|
|
616
|
-
|
|
617
|
-
...
|
|
700
|
+
reserve {
|
|
701
|
+
...Reserve
|
|
618
702
|
}
|
|
619
|
-
|
|
703
|
+
createdAt
|
|
704
|
+
}`,[p,q]),ne=e(`fragment UserSummary on UserSummary {
|
|
620
705
|
__typename
|
|
621
|
-
|
|
622
|
-
|
|
706
|
+
totalPositions
|
|
707
|
+
netBalance(currency: $currency) {
|
|
708
|
+
...FiatAmountWithChange
|
|
623
709
|
}
|
|
624
|
-
|
|
625
|
-
...
|
|
710
|
+
totalCollateral(currency: $currency) {
|
|
711
|
+
...FiatAmount
|
|
626
712
|
}
|
|
627
|
-
|
|
628
|
-
...
|
|
713
|
+
totalSupplied(currency: $currency) {
|
|
714
|
+
...FiatAmount
|
|
629
715
|
}
|
|
630
|
-
|
|
631
|
-
...
|
|
716
|
+
totalDebt(currency: $currency) {
|
|
717
|
+
...FiatAmount
|
|
718
|
+
}
|
|
719
|
+
netApy {
|
|
720
|
+
...PercentNumber
|
|
632
721
|
}
|
|
633
|
-
|
|
634
|
-
|
|
722
|
+
netFeeEarned {
|
|
723
|
+
...FiatAmount
|
|
724
|
+
}
|
|
725
|
+
lowestHealthFactor
|
|
726
|
+
}`,[R,y,a]),O=e(`fragment UserPosition on UserPosition {
|
|
635
727
|
__typename
|
|
636
|
-
|
|
637
|
-
|
|
728
|
+
id
|
|
729
|
+
spoke {
|
|
730
|
+
...Spoke
|
|
638
731
|
}
|
|
639
|
-
|
|
640
|
-
|
|
732
|
+
user
|
|
733
|
+
createdAt
|
|
734
|
+
netApy {
|
|
735
|
+
...PercentNumber
|
|
641
736
|
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
...TokenAmount
|
|
737
|
+
netCollateral(currency: $currency) {
|
|
738
|
+
...FiatAmountWithChange
|
|
645
739
|
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
...ExecutionPlan
|
|
740
|
+
netBalance(currency: $currency) {
|
|
741
|
+
...FiatAmountWithChange
|
|
649
742
|
}
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
743
|
+
totalCollateral(currency: $currency) {
|
|
744
|
+
...FiatAmountWithChange
|
|
745
|
+
}
|
|
746
|
+
totalSupplied(currency: $currency) {
|
|
747
|
+
...FiatAmountWithChange
|
|
748
|
+
}
|
|
749
|
+
totalDebt(currency: $currency) {
|
|
750
|
+
...FiatAmountWithChange
|
|
751
|
+
}
|
|
752
|
+
netSupplyApy {
|
|
753
|
+
...PercentNumberWithChange
|
|
754
|
+
}
|
|
755
|
+
netBorrowApy {
|
|
756
|
+
...PercentNumberWithChange
|
|
757
|
+
}
|
|
758
|
+
healthFactor {
|
|
759
|
+
...HealthFactorWithChange
|
|
760
|
+
}
|
|
761
|
+
riskPremium {
|
|
762
|
+
...PercentNumber
|
|
653
763
|
}
|
|
654
|
-
|
|
764
|
+
betterRiskPremium {
|
|
765
|
+
...PercentNumber
|
|
766
|
+
}
|
|
767
|
+
averageCollateralFactor {
|
|
768
|
+
...PercentNumber
|
|
769
|
+
}
|
|
770
|
+
}`,[i,a,R,Q,L]),oe=e(`fragment UserBalance on UserBalance {
|
|
655
771
|
__typename
|
|
656
|
-
|
|
772
|
+
id
|
|
773
|
+
info {
|
|
774
|
+
...TokenInfo
|
|
775
|
+
}
|
|
776
|
+
totalAmount {
|
|
777
|
+
...DecimalNumber
|
|
778
|
+
}
|
|
779
|
+
balances {
|
|
657
780
|
...TokenAmount
|
|
658
781
|
}
|
|
659
|
-
currency {
|
|
660
|
-
...
|
|
782
|
+
fiatAmount(currency: $currency) {
|
|
783
|
+
...FiatAmount
|
|
661
784
|
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
chain
|
|
665
|
-
claimable {
|
|
666
|
-
...ClaimableMeritReward
|
|
785
|
+
highestSupplyApy: supplyApy(metric: HIGHEST) {
|
|
786
|
+
...PercentNumber
|
|
667
787
|
}
|
|
668
|
-
|
|
669
|
-
...
|
|
788
|
+
highestBorrowApy: borrowApy(metric: HIGHEST) {
|
|
789
|
+
...PercentNumber
|
|
790
|
+
}
|
|
791
|
+
lowestSupplyApy: supplyApy(metric: LOWEST) {
|
|
792
|
+
...PercentNumber
|
|
670
793
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
...UserMeritRewards
|
|
794
|
+
lowestBorrowApy: borrowApy(metric: LOWEST) {
|
|
795
|
+
...PercentNumber
|
|
674
796
|
}
|
|
675
|
-
}`,[
|
|
676
|
-
|
|
677
|
-
|
|
797
|
+
}`,[w,c,g,y,a]),pe=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
798
|
+
__typename
|
|
799
|
+
netBalance(currency: $currency) {
|
|
800
|
+
...FiatAmount
|
|
678
801
|
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
...Market
|
|
802
|
+
borrows(currency: $currency) {
|
|
803
|
+
...FiatAmount
|
|
682
804
|
}
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
...MarketUserState
|
|
805
|
+
supplies(currency: $currency) {
|
|
806
|
+
...FiatAmount
|
|
686
807
|
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
808
|
+
healthFactor
|
|
809
|
+
date
|
|
810
|
+
}`,[y]),B=e(`fragment APYSample on APYSample {
|
|
811
|
+
__typename
|
|
812
|
+
date
|
|
813
|
+
avgRate {
|
|
814
|
+
...PercentNumber
|
|
815
|
+
}
|
|
816
|
+
}`,[a]);var ar=e(`query Hub($request: HubRequest!, $currency: Currency!) {
|
|
817
|
+
value: hub(request: $request) {
|
|
818
|
+
...Hub
|
|
819
|
+
}
|
|
820
|
+
}`,[P]),nr=e(`query Hubs($request: HubsRequest!, $currency: Currency!) {
|
|
821
|
+
value: hubs(request: $request) {
|
|
822
|
+
...Hub
|
|
823
|
+
}
|
|
824
|
+
}`,[P]),or=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!) {
|
|
825
|
+
value: hubAssets(request: $request) {
|
|
826
|
+
...HubAsset
|
|
827
|
+
}
|
|
828
|
+
}`,[h]);function me(t){return new TextDecoder().decode(Uint8Array.from(atob(t),x=>x.charCodeAt(0)))}function H(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var A="::";function ur(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid AssetId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`AssetId must be valid base64: ${t}`),t}function tt(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid HubId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubId must be valid base64: ${t}`),t}function ir(t){return tt(H(`${t.chainId}${A}${t.address}`))}function mr(t){let x=me(t),[s,r]=x.split(A);return {chainId:types.chainId(Number.parseInt(s,10)),address:types.evmAddress(r)}}function yr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid HubAssetId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubAssetId must be valid base64: ${t}`),t}function cr(t){return t}function lr(t){let x=me(t),[s,r,ye]=x.split(A);return {chainId:types.chainId(Number.parseInt(s,10)),spoke:types.evmAddress(r),onChainId:ye}}function gr(t){return H(`${t.chainId}${A}${t.spoke}${A}${t.onChainId}`)}function fr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserPositionId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserPositionId must be valid base64: ${t}`),t}function dr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapId: ${t}`),t}function Sr(t){return types.invariant(types.isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function Rr(t){return rt(H(`${t.chainId}${A}${t.address}`))}function rt(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid SpokeId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`SpokeId must be valid base64: ${t}`),t}function qr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserBalanceId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBalanceId must be valid base64: ${t}`),t}function Fr(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserBorrowItemId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBorrowItemId must be valid base64: ${t}`),t}function Ar(t){return types.invariant(typeof t=="string"&&t.length>0,`Invalid UserSupplyItemId: ${t}`),types.invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserSupplyItemId must be valid base64: ${t}`),t}function wr(t){return types.isObject(t)&&"hubInput"in t&&t.hubInput!=null}function Pr(t){return types.isObject(t)&&"chainIds"in t&&t.chainIds!=null}function hr(t){return types.isObject(t)&&"spoke"in t&&t.spoke!=null}function Tr(t){return types.isObject(t)&&"txHash"in t&&t.txHash!=null}var Cr=e(`query Chain($request: ChainRequest!) {
|
|
829
|
+
value: chain(request: $request) {
|
|
830
|
+
...Chain
|
|
831
|
+
}
|
|
832
|
+
}`,[n]),kr=e(`query Chains($filter: ChainsFilter!) {
|
|
690
833
|
value: chains(filter: $filter) {
|
|
691
834
|
...Chain
|
|
692
835
|
}
|
|
693
|
-
}`,[
|
|
836
|
+
}`,[n]),Er=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
694
837
|
value: hasProcessedKnownTransaction(request: $request)
|
|
695
|
-
}`),
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
838
|
+
}`),Or=e(`query Health {
|
|
839
|
+
value: health
|
|
840
|
+
}`),Br=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
841
|
+
value: exchangeRate(request: $request) {
|
|
842
|
+
...FiatAmount
|
|
843
|
+
}
|
|
844
|
+
}`,[y]);var at=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
845
|
+
__typename
|
|
846
|
+
date
|
|
847
|
+
price
|
|
848
|
+
}`),nt=e(`fragment AssetSupplySample on AssetSupplySample {
|
|
849
|
+
__typename
|
|
850
|
+
date
|
|
851
|
+
amount {
|
|
852
|
+
...DecimalNumber
|
|
853
|
+
}
|
|
854
|
+
}`,[c]),ot=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
855
|
+
__typename
|
|
856
|
+
date
|
|
857
|
+
amount {
|
|
858
|
+
...DecimalNumber
|
|
859
|
+
}
|
|
860
|
+
}`,[c]),pt=e(`fragment AssetSummary on AssetSummary {
|
|
861
|
+
__typename
|
|
862
|
+
totalSupplyCap {
|
|
863
|
+
...DecimalNumberWithChange
|
|
864
|
+
}
|
|
865
|
+
totalSupplied {
|
|
866
|
+
...DecimalNumberWithChange
|
|
867
|
+
}
|
|
868
|
+
totalSuppliable {
|
|
869
|
+
...DecimalNumberWithChange
|
|
870
|
+
}
|
|
871
|
+
totalBorrowCap {
|
|
872
|
+
...DecimalNumberWithChange
|
|
873
|
+
}
|
|
874
|
+
totalBorrowed {
|
|
875
|
+
...DecimalNumberWithChange
|
|
876
|
+
}
|
|
877
|
+
totalBorrowable {
|
|
878
|
+
...DecimalNumberWithChange
|
|
879
|
+
}
|
|
880
|
+
totalSuppliedFiat(currency: $currency) {
|
|
881
|
+
...FiatAmountWithChange
|
|
882
|
+
}
|
|
883
|
+
totalBorrowedFiat(currency: $currency) {
|
|
884
|
+
...FiatAmountWithChange
|
|
885
|
+
}
|
|
886
|
+
averageBorrowApy: borrowApy(metric: AVERAGE) {
|
|
887
|
+
...PercentNumber
|
|
888
|
+
}
|
|
889
|
+
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
890
|
+
...PercentNumber
|
|
891
|
+
}
|
|
892
|
+
}`,[_,R,a]),st=e(`fragment Asset on Asset {
|
|
893
|
+
__typename
|
|
894
|
+
id
|
|
895
|
+
token {
|
|
896
|
+
...Erc20Token
|
|
897
|
+
}
|
|
898
|
+
summary {
|
|
899
|
+
...AssetSummary
|
|
900
|
+
}
|
|
901
|
+
price(currency: $currency) {
|
|
902
|
+
...FiatAmountWithChange
|
|
903
|
+
}
|
|
904
|
+
}`,[S,pt,R]),Dr=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
905
|
+
value: asset(request: $request) {
|
|
906
|
+
...Asset
|
|
907
|
+
}
|
|
908
|
+
}`,[st]),Qr=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
909
|
+
value: assetPriceHistory(request: $request) {
|
|
910
|
+
...AssetPriceSample
|
|
911
|
+
}
|
|
912
|
+
}`,[at]),Nr=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
913
|
+
value: assetSupplyHistory(request: $request) {
|
|
914
|
+
...AssetSupplySample
|
|
915
|
+
}
|
|
916
|
+
}`,[nt]),Wr=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
917
|
+
value: assetBorrowHistory(request: $request) {
|
|
918
|
+
...AssetBorrowSample
|
|
919
|
+
}
|
|
920
|
+
}`,[ot]);var Yr=e(`query BorrowApyHistory($request: BorrowAPYHistoryRequest!) {
|
|
921
|
+
value: borrowApyHistory(request: $request) {
|
|
922
|
+
...APYSample
|
|
699
923
|
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
...UsdExchangeRate
|
|
924
|
+
}`,[B]),Gr=e(`query SupplyApyHistory($request: SupplyAPYHistoryRequest!) {
|
|
925
|
+
value: supplyApyHistory(request: $request) {
|
|
926
|
+
...APYSample
|
|
704
927
|
}
|
|
705
|
-
}`,[
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
after
|
|
709
|
-
}`),Ut=e(`query HealthFactorPreview($request: HealthFactorPreviewRequest!) {
|
|
710
|
-
value: healthFactorPreview(request: $request) {
|
|
711
|
-
...HealthFactorPreviewResponse
|
|
928
|
+
}`,[B]),Kr=e(`query Reserve($request: ReserveRequest!, $currency: Currency!) {
|
|
929
|
+
value: reserve(request: $request) {
|
|
930
|
+
...Reserve
|
|
712
931
|
}
|
|
713
|
-
}`,[
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}`),de=e(`fragment TypeDefinition on TypeDefinition {
|
|
717
|
-
EIP712Domain {
|
|
718
|
-
...TypeField
|
|
932
|
+
}`,[q]),zr=e(`query Reserves($request: ReservesRequest!, $currency: Currency!) {
|
|
933
|
+
value: reserves(request: $request) {
|
|
934
|
+
...Reserve
|
|
719
935
|
}
|
|
720
|
-
|
|
721
|
-
|
|
936
|
+
}`,[q]);var jr=e(`query Spoke($request: SpokeRequest!) {
|
|
937
|
+
value: spoke(request: $request) {
|
|
938
|
+
...Spoke
|
|
722
939
|
}
|
|
723
|
-
}`,[
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
chainId
|
|
727
|
-
verifyingContract
|
|
728
|
-
}`),Fe=e(`fragment MessageData on MessageData {
|
|
729
|
-
owner
|
|
730
|
-
spender
|
|
731
|
-
value
|
|
732
|
-
nonce
|
|
733
|
-
deadline
|
|
734
|
-
}`),xe=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
735
|
-
types {
|
|
736
|
-
...TypeDefinition
|
|
940
|
+
}`,[i]),ea=e(`query Spokes($request: SpokesRequest!) {
|
|
941
|
+
value: spokes(request: $request) {
|
|
942
|
+
...Spoke
|
|
737
943
|
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
...
|
|
944
|
+
}`,[i]),ta=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
945
|
+
value: spokePositionManagers(request: $request) {
|
|
946
|
+
...PaginatedSpokePositionManagerResult
|
|
741
947
|
}
|
|
742
|
-
|
|
743
|
-
|
|
948
|
+
}`,[V]),ra=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
949
|
+
value: spokeUserPositionManagers(request: $request) {
|
|
950
|
+
...PaginatedSpokeUserPositionManagerResult
|
|
744
951
|
}
|
|
745
|
-
}`,[
|
|
746
|
-
value:
|
|
747
|
-
...
|
|
952
|
+
}`,[Y]);var pa=e(`query SwapQuote($request: SwapQuoteRequest!, $currency: Currency!) {
|
|
953
|
+
value: swapQuote(request: $request) {
|
|
954
|
+
...SwapQuote
|
|
748
955
|
}
|
|
749
|
-
}`,[
|
|
750
|
-
value:
|
|
751
|
-
...
|
|
956
|
+
}`,[v]),sa=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
957
|
+
value: swappableTokens(request: $request) {
|
|
958
|
+
...Token
|
|
752
959
|
}
|
|
753
|
-
}`,[
|
|
754
|
-
value:
|
|
755
|
-
...
|
|
960
|
+
}`,[D]),ua=e(`query PrepareSwap($request: PrepareSwapRequest!, $currency: Currency!) {
|
|
961
|
+
value: prepareSwap(request: $request) {
|
|
962
|
+
...PrepareSwapResult
|
|
756
963
|
}
|
|
757
|
-
}`,[
|
|
758
|
-
value:
|
|
759
|
-
...
|
|
964
|
+
}`,[z]),ia=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!) {
|
|
965
|
+
value: swapStatus(request: $request) {
|
|
966
|
+
...SwapStatus
|
|
967
|
+
}
|
|
968
|
+
}`,[E]),ma=e(`query Swap($request: SwapRequest!) {
|
|
969
|
+
value: swap(request: $request) {
|
|
970
|
+
...SwapExecutionPlan
|
|
971
|
+
}
|
|
972
|
+
}`,[J]),ya=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
973
|
+
value: prepareSwapCancel(request: $request) {
|
|
974
|
+
...PrepareSwapCancelResult
|
|
760
975
|
}
|
|
761
|
-
}`,[
|
|
976
|
+
}`,[j]),ca=e(`query CancelSwap($request: CancelSwapRequest!) {
|
|
977
|
+
value: cancelSwap(request: $request) {
|
|
978
|
+
...CancelSwapExecutionPlan
|
|
979
|
+
}
|
|
980
|
+
}`,[ee]),la=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!) {
|
|
981
|
+
value: userSwaps(request: $request) {
|
|
982
|
+
...PaginatedUserSwapsResult
|
|
983
|
+
}
|
|
984
|
+
}`,[te]);var Sa=e(`query Borrow($request: BorrowRequest!) {
|
|
762
985
|
value: borrow(request: $request) {
|
|
763
986
|
...ExecutionPlan
|
|
764
987
|
}
|
|
765
|
-
}`,[
|
|
988
|
+
}`,[T]),Ra=e(`query Supply($request: SupplyRequest!) {
|
|
766
989
|
value: supply(request: $request) {
|
|
767
990
|
...ExecutionPlan
|
|
768
991
|
}
|
|
769
|
-
}`,[
|
|
992
|
+
}`,[T]),qa=e(`query Repay($request: RepayRequest!) {
|
|
770
993
|
value: repay(request: $request) {
|
|
771
994
|
...ExecutionPlan
|
|
772
995
|
}
|
|
773
|
-
}`,[
|
|
996
|
+
}`,[T]),Fa=e(`query Withdraw($request: WithdrawRequest!) {
|
|
774
997
|
value: withdraw(request: $request) {
|
|
775
998
|
...ExecutionPlan
|
|
776
999
|
}
|
|
777
|
-
}`,[
|
|
778
|
-
|
|
1000
|
+
}`,[T]),ut=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1001
|
+
__typename
|
|
1002
|
+
... on TransactionRequest {
|
|
779
1003
|
...TransactionRequest
|
|
780
1004
|
}
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
...ExecutionPlan
|
|
1005
|
+
... on Erc20ApprovalRequired {
|
|
1006
|
+
...Erc20ApprovalRequired
|
|
784
1007
|
}
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
...TransactionRequest
|
|
1008
|
+
... on InsufficientBalanceError {
|
|
1009
|
+
...InsufficientBalanceError
|
|
788
1010
|
}
|
|
789
|
-
}`,[
|
|
790
|
-
value:
|
|
791
|
-
...
|
|
1011
|
+
}`,[u,k,F]),Aa=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1012
|
+
value: liquidatePosition(request: $request) {
|
|
1013
|
+
...LiquidatePositionExecutionPlan
|
|
792
1014
|
}
|
|
793
|
-
}`,[
|
|
794
|
-
value:
|
|
1015
|
+
}`,[ut]),xa=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1016
|
+
value: setSpokeUserPositionManager(request: $request) {
|
|
795
1017
|
...TransactionRequest
|
|
796
1018
|
}
|
|
797
|
-
}`,[
|
|
798
|
-
value:
|
|
1019
|
+
}`,[u]),Ia=e(`query SetUserSupplyAsCollateral($request: SetUserSupplyAsCollateralRequest!) {
|
|
1020
|
+
value: setUserSupplyAsCollateral(request: $request) {
|
|
799
1021
|
...TransactionRequest
|
|
800
1022
|
}
|
|
801
|
-
}`,[
|
|
802
|
-
value:
|
|
1023
|
+
}`,[u]),wa=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1024
|
+
value: renounceSpokeUserPositionManager(request: $request) {
|
|
803
1025
|
...TransactionRequest
|
|
804
1026
|
}
|
|
805
|
-
}`,[
|
|
806
|
-
value:
|
|
807
|
-
...ExecutionPlan
|
|
808
|
-
}
|
|
809
|
-
}`,[s]),Jt=e(`query CollateralToggle($request: CollateralToggleRequest!) {
|
|
810
|
-
value: collateralToggle(request: $request) {
|
|
1027
|
+
}`,[u]),Pa=e(`query UpdateUserRiskPremium($request: UpdateUserRiskPremiumRequest!) {
|
|
1028
|
+
value: updateUserRiskPremium(request: $request) {
|
|
811
1029
|
...TransactionRequest
|
|
812
1030
|
}
|
|
813
|
-
}`,[
|
|
814
|
-
|
|
815
|
-
|
|
1031
|
+
}`,[u]),it=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1032
|
+
__typename
|
|
1033
|
+
id
|
|
1034
|
+
healthFactor {
|
|
1035
|
+
...HealthFactorResult
|
|
1036
|
+
}
|
|
1037
|
+
netApy {
|
|
1038
|
+
...PercentNumberVariation
|
|
1039
|
+
}
|
|
1040
|
+
riskPremium {
|
|
1041
|
+
...PercentNumberVariation
|
|
1042
|
+
}
|
|
1043
|
+
netCollateral(currency: $currency) {
|
|
1044
|
+
...FiatAmountValueVariation
|
|
1045
|
+
}
|
|
1046
|
+
netBalance(currency: $currency) {
|
|
1047
|
+
...FiatAmountValueVariation
|
|
1048
|
+
}
|
|
1049
|
+
}`,[M,N,W]),ha=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1050
|
+
value: preview(request: $request) {
|
|
1051
|
+
...PreviewUserPosition
|
|
816
1052
|
}
|
|
817
|
-
}`,[
|
|
818
|
-
value:
|
|
1053
|
+
}`,[it]),Ta=e(`query UpdateUserDynamicConfig($request: UpdateUserDynamicConfigRequest!) {
|
|
1054
|
+
value: updateUserDynamicConfig(request: $request) {
|
|
819
1055
|
...TransactionRequest
|
|
1056
|
+
}
|
|
1057
|
+
}`,[u]),mt=e(`fragment BorrowActivity on BorrowActivity {
|
|
1058
|
+
__typename
|
|
1059
|
+
id
|
|
1060
|
+
user
|
|
1061
|
+
timestamp
|
|
1062
|
+
txHash
|
|
1063
|
+
spoke {
|
|
1064
|
+
...Spoke
|
|
820
1065
|
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
...TokenAmount
|
|
1066
|
+
reserve {
|
|
1067
|
+
...ReserveInfo
|
|
824
1068
|
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
...MarketUserReserveSupplyPosition
|
|
1069
|
+
borrowed {
|
|
1070
|
+
...Erc20Amount
|
|
828
1071
|
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
...MarketUserReserveBorrowPosition
|
|
1072
|
+
chain {
|
|
1073
|
+
...Chain
|
|
832
1074
|
}
|
|
833
|
-
}`,[
|
|
834
|
-
|
|
835
|
-
|
|
1075
|
+
}`,[i,p,d,n]),yt=e(`fragment SupplyActivity on SupplyActivity {
|
|
1076
|
+
__typename
|
|
1077
|
+
id
|
|
1078
|
+
user
|
|
1079
|
+
timestamp
|
|
1080
|
+
txHash
|
|
1081
|
+
spoke {
|
|
1082
|
+
...Spoke
|
|
836
1083
|
}
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
...Vault
|
|
1084
|
+
reserve {
|
|
1085
|
+
...ReserveInfo
|
|
840
1086
|
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
...PaginatedVaultsResult
|
|
1087
|
+
supplied {
|
|
1088
|
+
...Erc20Amount
|
|
844
1089
|
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
...PaginatedVaultsResult
|
|
1090
|
+
chain {
|
|
1091
|
+
...Chain
|
|
848
1092
|
}
|
|
849
|
-
}`,[
|
|
850
|
-
|
|
851
|
-
|
|
1093
|
+
}`,[i,p,d,n]),ct=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1094
|
+
__typename
|
|
1095
|
+
id
|
|
1096
|
+
user
|
|
1097
|
+
timestamp
|
|
1098
|
+
txHash
|
|
1099
|
+
spoke {
|
|
1100
|
+
...Spoke
|
|
852
1101
|
}
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
...TokenAmount
|
|
1102
|
+
reserve {
|
|
1103
|
+
...ReserveInfo
|
|
856
1104
|
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
...TokenAmount
|
|
1105
|
+
withdrawn {
|
|
1106
|
+
...Erc20Amount
|
|
860
1107
|
}
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
...TokenAmount
|
|
1108
|
+
chain {
|
|
1109
|
+
...Chain
|
|
864
1110
|
}
|
|
865
|
-
}`,[
|
|
866
|
-
|
|
867
|
-
|
|
1111
|
+
}`,[i,p,d,n]),lt=e(`fragment RepayActivity on RepayActivity {
|
|
1112
|
+
__typename
|
|
1113
|
+
id
|
|
1114
|
+
user
|
|
1115
|
+
timestamp
|
|
1116
|
+
txHash
|
|
1117
|
+
spoke {
|
|
1118
|
+
...Spoke
|
|
868
1119
|
}
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
...VaultUserActivityResult
|
|
1120
|
+
reserve {
|
|
1121
|
+
...ReserveInfo
|
|
872
1122
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
...TransactionRequest
|
|
1123
|
+
repaid {
|
|
1124
|
+
...Erc20Amount
|
|
876
1125
|
}
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
...TransactionRequest
|
|
1126
|
+
chain {
|
|
1127
|
+
...Chain
|
|
880
1128
|
}
|
|
881
|
-
}`,[
|
|
882
|
-
|
|
883
|
-
|
|
1129
|
+
}`,[i,p,d,n]),gt=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1130
|
+
__typename
|
|
1131
|
+
id
|
|
1132
|
+
user
|
|
1133
|
+
timestamp
|
|
1134
|
+
txHash
|
|
1135
|
+
spoke {
|
|
1136
|
+
...Spoke
|
|
1137
|
+
}
|
|
1138
|
+
collateralReserve {
|
|
1139
|
+
...ReserveInfo
|
|
1140
|
+
}
|
|
1141
|
+
debtReserve {
|
|
1142
|
+
...ReserveInfo
|
|
1143
|
+
}
|
|
1144
|
+
collateral {
|
|
1145
|
+
...Erc20Amount
|
|
1146
|
+
}
|
|
1147
|
+
debt {
|
|
1148
|
+
...Erc20Amount
|
|
1149
|
+
}
|
|
1150
|
+
liquidator
|
|
1151
|
+
chain {
|
|
1152
|
+
...Chain
|
|
1153
|
+
}
|
|
1154
|
+
}`,[i,p,d,n]),ft=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1155
|
+
__typename
|
|
1156
|
+
id
|
|
1157
|
+
user
|
|
1158
|
+
timestamp
|
|
1159
|
+
txHash
|
|
1160
|
+
spoke {
|
|
1161
|
+
...Spoke
|
|
1162
|
+
}
|
|
1163
|
+
reserve {
|
|
1164
|
+
...ReserveInfo
|
|
1165
|
+
}
|
|
1166
|
+
enabledAsCollateral
|
|
1167
|
+
chain {
|
|
1168
|
+
...Chain
|
|
1169
|
+
}
|
|
1170
|
+
}`,[i,d,n]),dt=e(`fragment ActivityItem on ActivityItem {
|
|
1171
|
+
__typename
|
|
1172
|
+
... on BorrowActivity {
|
|
1173
|
+
...BorrowActivity
|
|
1174
|
+
}
|
|
1175
|
+
... on SupplyActivity {
|
|
1176
|
+
...SupplyActivity
|
|
1177
|
+
}
|
|
1178
|
+
... on WithdrawActivity {
|
|
1179
|
+
...WithdrawActivity
|
|
1180
|
+
}
|
|
1181
|
+
... on RepayActivity {
|
|
1182
|
+
...RepayActivity
|
|
1183
|
+
}
|
|
1184
|
+
... on LiquidatedActivity {
|
|
1185
|
+
...LiquidatedActivity
|
|
1186
|
+
}
|
|
1187
|
+
... on UsingAsCollateralActivity {
|
|
1188
|
+
...UsingAsCollateralActivity
|
|
1189
|
+
}
|
|
1190
|
+
}`,[mt,yt,ct,lt,gt,ft]),St=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1191
|
+
__typename
|
|
1192
|
+
items {
|
|
1193
|
+
...ActivityItem
|
|
1194
|
+
}
|
|
1195
|
+
pageInfo {
|
|
1196
|
+
...PaginatedResultInfo
|
|
1197
|
+
}
|
|
1198
|
+
}`,[dt,f]),va=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!) {
|
|
1199
|
+
value: activities(request: $request) {
|
|
1200
|
+
...PaginatedActivitiesResult
|
|
1201
|
+
}
|
|
1202
|
+
}`,[St]);var ka=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!) {
|
|
1203
|
+
value: userSupplies(request: $request) {
|
|
1204
|
+
...UserSupplyItem
|
|
1205
|
+
}
|
|
1206
|
+
}`,[re]),Ea=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!) {
|
|
1207
|
+
value: userBorrows(request: $request) {
|
|
1208
|
+
...UserBorrowItem
|
|
1209
|
+
}
|
|
1210
|
+
}`,[ae]),Oa=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1211
|
+
value: userSummary(request: $request) {
|
|
1212
|
+
...UserSummary
|
|
1213
|
+
}
|
|
1214
|
+
}`,[ne]),Ba=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1215
|
+
value: userPositions(request: $request) {
|
|
1216
|
+
...UserPosition
|
|
1217
|
+
}
|
|
1218
|
+
}`,[O]),Ha=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1219
|
+
value: userPosition(request: $request) {
|
|
1220
|
+
...UserPosition
|
|
1221
|
+
}
|
|
1222
|
+
}`,[O]),_a=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1223
|
+
value: userBalances(request: $request) {
|
|
1224
|
+
...UserBalance
|
|
884
1225
|
}
|
|
885
|
-
}`,[
|
|
886
|
-
value:
|
|
887
|
-
...
|
|
1226
|
+
}`,[oe]),$a=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1227
|
+
value: userSummaryHistory(request: $request) {
|
|
1228
|
+
...UserSummaryHistoryItem
|
|
888
1229
|
}
|
|
889
|
-
}`,[
|
|
1230
|
+
}`,[pe]);exports.APYSampleFragment=B;exports.ActivitiesQuery=va;exports.ActivityItemFragment=dt;exports.ActivityType=qe;exports.ApyMetric=Fe;exports.AssetBorrowHistoryQuery=Wr;exports.AssetBorrowSampleFragment=ot;exports.AssetFragment=st;exports.AssetPriceHistoryQuery=Qr;exports.AssetPriceSampleFragment=at;exports.AssetQuery=Dr;exports.AssetSummaryFragment=pt;exports.AssetSupplyHistoryQuery=Nr;exports.AssetSupplySampleFragment=nt;exports.BorrowActivityFragment=mt;exports.BorrowApyHistoryQuery=Yr;exports.BorrowQuery=Sa;exports.CancelSwapExecutionPlanFragment=ee;exports.CancelSwapQuery=ca;exports.CancelSwapTypeDefinitionFragment=je;exports.CancelSwapTypedDataFragment=et;exports.ChainFragment=n;exports.ChainQuery=Cr;exports.ChainsFilter=de;exports.ChainsQuery=kr;exports.Currency=Ae;exports.DecimalNumberFragment=c;exports.DecimalNumberWithChangeFragment=_;exports.DomainDataFragment=U;exports.Erc20AmountFragment=p;exports.Erc20ApprovalRequiredFragment=k;exports.Erc20TokenFragment=S;exports.ExchangeRateQuery=Br;exports.ExecutionPlanFragment=T;exports.FiatAmountFragment=y;exports.FiatAmountValueVariationFragment=W;exports.FiatAmountWithChangeFragment=R;exports.HasProcessedKnownTransactionQuery=Er;exports.HealthFactorErrorFragment=ve;exports.HealthFactorResultFragment=M;exports.HealthFactorVariationFragment=Te;exports.HealthFactorWithChangeFragment=L;exports.HealthQuery=Or;exports.HubAssetFragment=h;exports.HubAssetSettingsFragment=Ce;exports.HubAssetStatusType=Se;exports.HubAssetSummaryFragment=Ue;exports.HubAssetUserStateFragment=ke;exports.HubAssetsQuery=or;exports.HubAssetsRequestOrderBy=Re;exports.HubFragment=P;exports.HubQuery=ar;exports.HubSummaryFragment=be;exports.HubsQuery=nr;exports.InsufficientBalanceErrorFragment=F;exports.LiquidatePositionExecutionPlanFragment=ut;exports.LiquidatePositionQuery=Aa;exports.LiquidatedActivityFragment=gt;exports.NativeAmountFragment=he;exports.NativeTokenFragment=$;exports.OperationType=fe;exports.OrderDirection=ce;exports.PageSize=le;exports.PaginatedActivitiesResultFragment=St;exports.PaginatedResultInfoFragment=f;exports.PaginatedSpokePositionManagerResultFragment=V;exports.PaginatedSpokeUserPositionManagerResultFragment=Y;exports.PaginatedUserSwapsResultFragment=te;exports.PercentNumberFragment=a;exports.PercentNumberVariationFragment=N;exports.PercentNumberWithChangeFragment=Q;exports.PermitMessageDataFragment=Qe;exports.PermitTypedDataQuery=Dt;exports.PermitTypedDataResponseFragment=Ne;exports.PreContractActionRequiredFragment=We;exports.PrepareSwapCancelQuery=ya;exports.PrepareSwapCancelResultFragment=j;exports.PrepareSwapQuery=ua;exports.PrepareSwapResultFragment=z;exports.PreviewQuery=ha;exports.PreviewUserPositionFragment=it;exports.RenounceSpokeUserPositionManagerQuery=wa;exports.RepayActivityFragment=lt;exports.RepayQuery=qa;exports.ReserveFragment=q;exports.ReserveInfoFragment=d;exports.ReserveQuery=Kr;exports.ReserveSettingsFragment=Be;exports.ReserveStatusFragment=He;exports.ReserveSummaryFragment=_e;exports.ReserveUserStateFragment=$e;exports.ReservesQuery=zr;exports.ReservesRequestFilter=xe;exports.SetSpokeUserPositionManagerQuery=xa;exports.SetUserSupplyAsCollateralQuery=Ia;exports.SpokeFragment=i;exports.SpokePositionManagerFragment=Ee;exports.SpokePositionManagersQuery=ta;exports.SpokeQuery=jr;exports.SpokeUserPositionManagerFragment=Oe;exports.SpokeUserPositionManagersQuery=ra;exports.SpokesQuery=ea;exports.SupplyActivityFragment=yt;exports.SupplyApyHistoryQuery=Gr;exports.SupplyQuery=Ra;exports.SwapApprovalRequiredFragment=Ke;exports.SwapByIntentFragment=Ve;exports.SwapByIntentTypeDefinitionFragment=Me;exports.SwapByIntentTypedDataFragment=G;exports.SwapByIntentWithApprovalRequiredFragment=Ye;exports.SwapByTransactionFragment=Ge;exports.SwapCancelledFragment=X;exports.SwapExecutionPlanFragment=J;exports.SwapExpiredFragment=ze;exports.SwapFulfilledFragment=Xe;exports.SwapKind=Ie;exports.SwapOpenFragment=Ze;exports.SwapPendingSignatureFragment=Je;exports.SwapQuery=ma;exports.SwapQuoteCostsFragment=Le;exports.SwapQuoteFragment=v;exports.SwapQuoteQuery=pa;exports.SwapReceiptFragment=K;exports.SwapStatusFilter=we;exports.SwapStatusFragment=E;exports.SwapStatusQuery=ia;exports.SwapTransactionRequestFragment=Z;exports.SwappableTokensQuery=sa;exports.TimeWindow=ge;exports.TokenAmountFragment=g;exports.TokenFragment=D;exports.TokenInfoFragment=w;exports.TransactionRequestFragment=u;exports.TypeDefinitionFragment=De;exports.TypeFieldFragment=b;exports.UpdateUserDynamicConfigQuery=Ta;exports.UpdateUserRiskPremiumQuery=Pa;exports.UserBalanceFragment=oe;exports.UserBalancesQuery=_a;exports.UserBorrowItemFragment=ae;exports.UserBorrowsQuery=Ea;exports.UserPositionFragment=O;exports.UserPositionQuery=Ha;exports.UserPositionsQuery=Ba;exports.UserSummaryFragment=ne;exports.UserSummaryHistoryItemFragment=pe;exports.UserSummaryHistoryQuery=$a;exports.UserSummaryQuery=Oa;exports.UserSuppliesQuery=ka;exports.UserSupplyItemFragment=re;exports.UserSwapsQuery=la;exports.UsingAsCollateralActivityFragment=ft;exports.WithdrawActivityFragment=ct;exports.WithdrawQuery=Fa;exports.assetId=ur;exports.decodeHubId=mr;exports.decodeReserveId=lr;exports.encodeHubId=ir;exports.encodeReserveId=gr;exports.encodeSpokeId=Rr;exports.graphql=e;exports.hubAssetId=yr;exports.hubId=tt;exports.isChainIdsVariant=Pr;exports.isHubInputVariant=wr;exports.isSpokeInputVariant=hr;exports.isTxHashInputVariant=Tr;exports.reserveId=cr;exports.spokeId=rt;exports.swapId=dr;exports.swapQuoteId=Sr;exports.userBalanceId=qr;exports.userBorrowItemId=Fr;exports.userPositionId=fr;exports.userSupplyItemId=Ar;//# sourceMappingURL=index.cjs.map
|
|
890
1231
|
//# sourceMappingURL=index.cjs.map
|