@aave/graphql 0.8.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 -626
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29986 -10807
- package/dist/index.d.ts +29986 -10807
- package/dist/index.js +962 -626
- 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 -1640
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js +1301 -1640
- package/dist/test-utils.js.map +1 -1
- package/package.json +20 -7
package/dist/index.cjs
CHANGED
|
@@ -1,895 +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
|
-
}`,[r,l,t]),N=e(`fragment ReserveBorrowInfo on ReserveBorrowInfo {
|
|
149
|
+
}`,[a]),Te=e(`fragment HealthFactorVariation on HealthFactorVariation {
|
|
167
150
|
__typename
|
|
168
|
-
|
|
169
|
-
|
|
151
|
+
current
|
|
152
|
+
after
|
|
153
|
+
}`),ve=e(`fragment HealthFactorError on HealthFactorError {
|
|
154
|
+
__typename
|
|
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
|
|
311
|
+
}
|
|
312
|
+
borrowApy {
|
|
313
|
+
...PercentNumber
|
|
207
314
|
}
|
|
208
|
-
}`,[
|
|
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
|
-
userEarnedAPY {
|
|
277
|
-
...PercentValue
|
|
278
|
-
}
|
|
279
|
-
userDebtAPY {
|
|
280
|
-
...PercentValue
|
|
281
|
-
}
|
|
282
|
-
healthFactor
|
|
283
|
-
eModeEnabled
|
|
284
|
-
totalCollateralBase
|
|
285
|
-
totalDebtBase
|
|
286
|
-
availableBorrowsBase
|
|
287
|
-
currentLiquidationThreshold {
|
|
288
|
-
...PercentValue
|
|
289
|
-
}
|
|
290
|
-
ltv {
|
|
291
|
-
...PercentValue
|
|
292
|
-
}
|
|
293
|
-
isInIsolationMode
|
|
294
|
-
}`,[r]),K=e(`fragment EmodeMarketReserveInfo on EmodeMarketReserveInfo {
|
|
295
|
-
__typename
|
|
296
|
-
underlyingToken {
|
|
297
|
-
...Currency
|
|
356
|
+
asset {
|
|
357
|
+
...HubAsset
|
|
298
358
|
}
|
|
299
|
-
|
|
300
|
-
canBeBorrowed
|
|
301
|
-
}`,[o]),z=e(`fragment EmodeMarketCategory on EmodeMarketCategory {
|
|
359
|
+
}`,[i,n,_e,Be,He,$e,h]),d=e(`fragment ReserveInfo on ReserveInfo {
|
|
302
360
|
__typename
|
|
303
361
|
id
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
...PercentValue
|
|
307
|
-
}
|
|
308
|
-
liquidationThreshold {
|
|
309
|
-
...PercentValue
|
|
310
|
-
}
|
|
311
|
-
liquidationPenalty {
|
|
312
|
-
...PercentValue
|
|
313
|
-
}
|
|
314
|
-
reserves {
|
|
315
|
-
...EmodeMarketReserveInfo
|
|
362
|
+
asset {
|
|
363
|
+
...HubAsset
|
|
316
364
|
}
|
|
317
|
-
}`,[
|
|
318
|
-
__typename
|
|
365
|
+
}`,[h]);var b=e(`fragment TypeField on TypeField {
|
|
319
366
|
name
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
icon
|
|
325
|
-
totalMarketSize
|
|
326
|
-
totalAvailableLiquidity
|
|
327
|
-
eModeCategories {
|
|
328
|
-
...EmodeMarketCategory
|
|
329
|
-
}
|
|
330
|
-
userState {
|
|
331
|
-
...MarketUserState
|
|
332
|
-
}
|
|
333
|
-
borrowReserves: reserves(request: { reserveType: BORROW, orderBy: $borrowsOrderBy }) {
|
|
334
|
-
...Reserve
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
supplyReserves: reserves(request: { reserveType: SUPPLY, orderBy: $suppliesOrderBy }) {
|
|
338
|
-
...Reserve
|
|
339
|
-
}
|
|
340
|
-
}`,[p,z,m,q]);var S=e(`fragment MarketUserReserveBorrowPosition on MarketUserReserveBorrowPosition {
|
|
341
|
-
__typename
|
|
342
|
-
market {
|
|
343
|
-
...MarketInfo
|
|
344
|
-
}
|
|
345
|
-
currency {
|
|
346
|
-
...Currency
|
|
347
|
-
}
|
|
348
|
-
debt {
|
|
349
|
-
...TokenAmount
|
|
350
|
-
}
|
|
351
|
-
apy {
|
|
352
|
-
...PercentValue
|
|
367
|
+
type
|
|
368
|
+
}`),De=e(`fragment TypeDefinition on TypeDefinition {
|
|
369
|
+
EIP712Domain {
|
|
370
|
+
...TypeField
|
|
353
371
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
market {
|
|
357
|
-
...MarketInfo
|
|
372
|
+
Permit {
|
|
373
|
+
...TypeField
|
|
358
374
|
}
|
|
359
|
-
|
|
360
|
-
|
|
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
|
|
361
389
|
}
|
|
362
|
-
|
|
363
|
-
|
|
390
|
+
primaryType
|
|
391
|
+
domain {
|
|
392
|
+
...DomainData
|
|
364
393
|
}
|
|
365
|
-
|
|
366
|
-
...
|
|
394
|
+
message {
|
|
395
|
+
...PermitMessageData
|
|
367
396
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
__typename
|
|
372
|
-
avgRate {
|
|
373
|
-
...PercentValue
|
|
397
|
+
}`,[De,U,Qe]),Dt=e(`query PermitTypedData($request: PermitRequest!) {
|
|
398
|
+
value: permitTypedData(request: $request) {
|
|
399
|
+
...PermitTypedDataResponse
|
|
374
400
|
}
|
|
375
|
-
|
|
376
|
-
}`,[r]);var a=e(`fragment TransactionRequest on TransactionRequest {
|
|
401
|
+
}`,[Ne]);var u=e(`fragment TransactionRequest on TransactionRequest {
|
|
377
402
|
__typename
|
|
378
403
|
to
|
|
379
404
|
from
|
|
380
405
|
data
|
|
381
406
|
value
|
|
382
407
|
chainId
|
|
383
|
-
|
|
384
|
-
}`),
|
|
408
|
+
operations
|
|
409
|
+
}`),k=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
385
410
|
__typename
|
|
386
|
-
|
|
411
|
+
transaction {
|
|
387
412
|
...TransactionRequest
|
|
388
413
|
}
|
|
389
414
|
reason
|
|
390
415
|
requiredAmount {
|
|
391
|
-
...
|
|
416
|
+
...DecimalNumber
|
|
392
417
|
}
|
|
393
418
|
currentAllowance {
|
|
394
|
-
...
|
|
419
|
+
...DecimalNumber
|
|
420
|
+
}
|
|
421
|
+
originalTransaction {
|
|
422
|
+
...TransactionRequest
|
|
423
|
+
}
|
|
424
|
+
}`,[u,c]),We=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
425
|
+
__typename
|
|
426
|
+
transaction {
|
|
427
|
+
...TransactionRequest
|
|
395
428
|
}
|
|
429
|
+
reason
|
|
396
430
|
originalTransaction {
|
|
397
431
|
...TransactionRequest
|
|
398
432
|
}
|
|
399
|
-
}`,[
|
|
433
|
+
}`,[u]),F=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
400
434
|
__typename
|
|
401
435
|
required {
|
|
402
|
-
...
|
|
436
|
+
...DecimalNumber
|
|
403
437
|
}
|
|
404
438
|
available {
|
|
405
|
-
...
|
|
439
|
+
...DecimalNumber
|
|
406
440
|
}
|
|
407
|
-
}`,[
|
|
441
|
+
}`,[c]),T=e(`fragment ExecutionPlan on ExecutionPlan {
|
|
408
442
|
__typename
|
|
409
443
|
... on TransactionRequest {
|
|
410
444
|
...TransactionRequest
|
|
411
445
|
}
|
|
412
|
-
... on
|
|
413
|
-
...
|
|
446
|
+
... on Erc20ApprovalRequired {
|
|
447
|
+
...Erc20ApprovalRequired
|
|
448
|
+
}
|
|
449
|
+
... on PreContractActionRequired {
|
|
450
|
+
...PreContractActionRequired
|
|
414
451
|
}
|
|
415
452
|
... on InsufficientBalanceError {
|
|
416
453
|
...InsufficientBalanceError
|
|
417
454
|
}
|
|
418
|
-
}`,[
|
|
455
|
+
}`,[u,k,We,F]);var Le=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
419
456
|
__typename
|
|
420
|
-
|
|
457
|
+
networkCosts {
|
|
421
458
|
...TokenAmount
|
|
422
459
|
}
|
|
423
|
-
|
|
424
|
-
...
|
|
460
|
+
partnerFee {
|
|
461
|
+
...TokenAmount
|
|
425
462
|
}
|
|
426
|
-
|
|
427
|
-
txHash
|
|
428
|
-
timestamp
|
|
429
|
-
}`,[t,i]),Z=e(`fragment UserWithdrawTransaction on UserWithdrawTransaction {
|
|
463
|
+
}`,[g]),v=e(`fragment SwapQuote on SwapQuote {
|
|
430
464
|
__typename
|
|
431
|
-
|
|
465
|
+
quoteId
|
|
466
|
+
suggestedSlippage {
|
|
467
|
+
...PercentNumber
|
|
468
|
+
}
|
|
469
|
+
desiredSell {
|
|
432
470
|
...TokenAmount
|
|
433
471
|
}
|
|
434
|
-
|
|
435
|
-
...
|
|
472
|
+
desiredBuy {
|
|
473
|
+
...TokenAmount
|
|
436
474
|
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
__typename
|
|
442
|
-
amount {
|
|
475
|
+
costs {
|
|
476
|
+
...SwapQuoteCosts
|
|
477
|
+
}
|
|
478
|
+
minimumReceived {
|
|
443
479
|
...TokenAmount
|
|
444
480
|
}
|
|
445
|
-
|
|
446
|
-
|
|
481
|
+
}`,[a,g,Le]),Me=e(`fragment SwapByIntentTypeDefinition on SwapByIntentTypeDefinition {
|
|
482
|
+
EIP712Domain {
|
|
483
|
+
...TypeField
|
|
447
484
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}`,[
|
|
485
|
+
Order {
|
|
486
|
+
...TypeField
|
|
487
|
+
}
|
|
488
|
+
}`,[b]),G=e(`fragment SwapByIntentTypedData on SwapByIntentTypedData {
|
|
452
489
|
__typename
|
|
453
|
-
|
|
454
|
-
...
|
|
490
|
+
types {
|
|
491
|
+
...SwapByIntentTypeDefinition
|
|
455
492
|
}
|
|
456
|
-
|
|
457
|
-
|
|
493
|
+
primaryType
|
|
494
|
+
domain {
|
|
495
|
+
...DomainData
|
|
458
496
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
timestamp
|
|
462
|
-
}`,[t,i]),re=e(`fragment UserUsageAsCollateralTransaction on UserUsageAsCollateralTransaction {
|
|
497
|
+
message
|
|
498
|
+
}`,[Me,U]),Ve=e(`fragment SwapByIntent on SwapByIntent {
|
|
463
499
|
__typename
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
...ReserveInfo
|
|
500
|
+
quote {
|
|
501
|
+
...SwapQuote
|
|
467
502
|
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}`,[
|
|
503
|
+
data {
|
|
504
|
+
...SwapByIntentTypedData
|
|
505
|
+
}
|
|
506
|
+
}`,[v,G]),Ye=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
472
507
|
__typename
|
|
473
|
-
|
|
474
|
-
...
|
|
508
|
+
approval {
|
|
509
|
+
...TransactionRequest
|
|
475
510
|
}
|
|
476
|
-
|
|
477
|
-
...
|
|
511
|
+
quote {
|
|
512
|
+
...SwapQuote
|
|
478
513
|
}
|
|
479
|
-
|
|
514
|
+
data {
|
|
515
|
+
...SwapByIntentTypedData
|
|
516
|
+
}
|
|
517
|
+
}`,[u,v,G]),Ge=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
480
518
|
__typename
|
|
481
|
-
|
|
482
|
-
...
|
|
519
|
+
quote {
|
|
520
|
+
...SwapQuote
|
|
483
521
|
}
|
|
484
|
-
|
|
485
|
-
|
|
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
|
|
534
|
+
}
|
|
535
|
+
... on SwapByTransaction {
|
|
536
|
+
...SwapByTransaction
|
|
537
|
+
}
|
|
538
|
+
... on InsufficientBalanceError {
|
|
539
|
+
...InsufficientBalanceError
|
|
486
540
|
}
|
|
487
|
-
}`,[
|
|
541
|
+
}`,[Ve,Ye,Ge,F]),Z=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
488
542
|
__typename
|
|
489
|
-
|
|
490
|
-
...
|
|
543
|
+
transaction {
|
|
544
|
+
...TransactionRequest
|
|
491
545
|
}
|
|
492
|
-
|
|
493
|
-
...
|
|
546
|
+
orderReceipt {
|
|
547
|
+
...SwapReceipt
|
|
494
548
|
}
|
|
495
|
-
|
|
496
|
-
txHash
|
|
497
|
-
timestamp
|
|
498
|
-
}`,[ae,ne]),se=e(`fragment UserTransactionItem on UserTransactionItem {
|
|
549
|
+
}`,[u,K]),Ke=e(`fragment SwapApprovalRequired on SwapApprovalRequired {
|
|
499
550
|
__typename
|
|
500
|
-
|
|
501
|
-
...
|
|
551
|
+
approval {
|
|
552
|
+
...TransactionRequest
|
|
502
553
|
}
|
|
503
|
-
|
|
504
|
-
...
|
|
554
|
+
originalTransaction {
|
|
555
|
+
...SwapTransactionRequest
|
|
505
556
|
}
|
|
506
|
-
|
|
507
|
-
|
|
557
|
+
}`,[u,Z]),J=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
558
|
+
__typename
|
|
559
|
+
... on SwapTransactionRequest {
|
|
560
|
+
...SwapTransactionRequest
|
|
508
561
|
}
|
|
509
|
-
... on
|
|
510
|
-
...
|
|
562
|
+
... on SwapApprovalRequired {
|
|
563
|
+
...SwapApprovalRequired
|
|
511
564
|
}
|
|
512
|
-
... on
|
|
513
|
-
...
|
|
565
|
+
... on InsufficientBalanceError {
|
|
566
|
+
...InsufficientBalanceError
|
|
514
567
|
}
|
|
515
|
-
... on
|
|
516
|
-
...
|
|
568
|
+
... on SwapReceipt {
|
|
569
|
+
...SwapReceipt
|
|
517
570
|
}
|
|
518
|
-
}`,[
|
|
571
|
+
}`,[Z,Ke,F,K]),X=e(`fragment SwapCancelled on SwapCancelled {
|
|
519
572
|
__typename
|
|
520
|
-
|
|
521
|
-
|
|
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
|
|
522
589
|
}
|
|
523
|
-
|
|
524
|
-
...
|
|
590
|
+
desiredBuy {
|
|
591
|
+
...TokenAmount
|
|
525
592
|
}
|
|
526
|
-
}`,[
|
|
593
|
+
}`,[g]),Je=e(`fragment SwapPendingSignature on SwapPendingSignature {
|
|
527
594
|
__typename
|
|
528
|
-
|
|
595
|
+
createdAt
|
|
596
|
+
deadline
|
|
597
|
+
explorerLink
|
|
598
|
+
}`),Xe=e(`fragment SwapFulfilled on SwapFulfilled {
|
|
599
|
+
__typename
|
|
600
|
+
txHash
|
|
601
|
+
desiredSell {
|
|
529
602
|
...TokenAmount
|
|
530
603
|
}
|
|
531
|
-
|
|
604
|
+
desiredBuy {
|
|
532
605
|
...TokenAmount
|
|
533
606
|
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
address
|
|
537
|
-
split {
|
|
538
|
-
...PercentValue
|
|
607
|
+
sold {
|
|
608
|
+
...TokenAmount
|
|
539
609
|
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
__typename
|
|
543
|
-
address
|
|
544
|
-
entries {
|
|
545
|
-
...VaultFeesRecipientSplit
|
|
610
|
+
bought {
|
|
611
|
+
...TokenAmount
|
|
546
612
|
}
|
|
547
|
-
|
|
613
|
+
createdAt
|
|
614
|
+
fulfilledAt
|
|
615
|
+
explorerLink
|
|
616
|
+
refundTxHash
|
|
617
|
+
}`,[g]),E=e(`fragment SwapStatus on SwapStatus {
|
|
548
618
|
__typename
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
shareName
|
|
552
|
-
shareSymbol
|
|
553
|
-
usedReserve {
|
|
554
|
-
...Reserve
|
|
619
|
+
... on SwapOpen {
|
|
620
|
+
...SwapOpen
|
|
555
621
|
}
|
|
556
|
-
|
|
557
|
-
...
|
|
622
|
+
... on SwapPendingSignature {
|
|
623
|
+
...SwapPendingSignature
|
|
558
624
|
}
|
|
559
|
-
|
|
560
|
-
...
|
|
625
|
+
... on SwapCancelled {
|
|
626
|
+
...SwapCancelled
|
|
561
627
|
}
|
|
562
|
-
|
|
563
|
-
...
|
|
628
|
+
... on SwapExpired {
|
|
629
|
+
...SwapExpired
|
|
564
630
|
}
|
|
565
|
-
|
|
566
|
-
...
|
|
631
|
+
... on SwapFulfilled {
|
|
632
|
+
...SwapFulfilled
|
|
567
633
|
}
|
|
568
|
-
|
|
569
|
-
|
|
634
|
+
}`,[Ze,Je,X,ze,Xe]),je=e(`fragment CancelSwapTypeDefinition on CancelSwapTypeDefinition {
|
|
635
|
+
OrderCancellations {
|
|
636
|
+
...TypeField
|
|
570
637
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
...PercentValue
|
|
638
|
+
EIP712Domain {
|
|
639
|
+
...TypeField
|
|
574
640
|
}
|
|
575
|
-
|
|
576
|
-
|
|
641
|
+
}`,[b]),et=e(`fragment CancelSwapTypedData on CancelSwapTypedData {
|
|
642
|
+
types {
|
|
643
|
+
...CancelSwapTypeDefinition
|
|
577
644
|
}
|
|
578
|
-
|
|
645
|
+
primaryType
|
|
646
|
+
domain {
|
|
647
|
+
...DomainData
|
|
648
|
+
}
|
|
649
|
+
message
|
|
650
|
+
}`,[je,U]),j=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
651
|
+
__typename
|
|
652
|
+
data {
|
|
653
|
+
...CancelSwapTypedData
|
|
654
|
+
}
|
|
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 {
|
|
579
664
|
__typename
|
|
580
665
|
items {
|
|
581
|
-
...
|
|
666
|
+
...SwapStatus
|
|
582
667
|
}
|
|
583
668
|
pageInfo {
|
|
584
669
|
...PaginatedResultInfo
|
|
585
670
|
}
|
|
586
|
-
}`,[
|
|
671
|
+
}`,[E,f]);var re=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
587
672
|
__typename
|
|
588
|
-
|
|
589
|
-
|
|
673
|
+
id
|
|
674
|
+
reserve {
|
|
675
|
+
...Reserve
|
|
590
676
|
}
|
|
591
|
-
|
|
592
|
-
...
|
|
677
|
+
interest {
|
|
678
|
+
...Erc20Amount
|
|
593
679
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
timestamp
|
|
597
|
-
}`,[t]),le=e(`fragment VaultUserWithdrawItem on VaultUserWithdrawItem {
|
|
598
|
-
__typename
|
|
599
|
-
asset {
|
|
600
|
-
...TokenAmount
|
|
680
|
+
principal {
|
|
681
|
+
...Erc20Amount
|
|
601
682
|
}
|
|
602
|
-
|
|
603
|
-
...
|
|
683
|
+
withdrawable {
|
|
684
|
+
...Erc20Amount
|
|
604
685
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}`,[t]),me=e(`fragment VaultUserTransactionItem on VaultUserTransactionItem {
|
|
686
|
+
isCollateral
|
|
687
|
+
createdAt
|
|
688
|
+
}`,[p,q]),ae=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
609
689
|
__typename
|
|
610
|
-
|
|
611
|
-
|
|
690
|
+
id
|
|
691
|
+
principal {
|
|
692
|
+
...Erc20Amount
|
|
612
693
|
}
|
|
613
|
-
|
|
614
|
-
...
|
|
694
|
+
interest {
|
|
695
|
+
...Erc20Amount
|
|
615
696
|
}
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
items {
|
|
619
|
-
...VaultUserTransactionItem
|
|
697
|
+
debt {
|
|
698
|
+
...Erc20Amount
|
|
620
699
|
}
|
|
621
|
-
|
|
622
|
-
...
|
|
700
|
+
reserve {
|
|
701
|
+
...Reserve
|
|
623
702
|
}
|
|
624
|
-
|
|
703
|
+
createdAt
|
|
704
|
+
}`,[p,q]),ne=e(`fragment UserSummary on UserSummary {
|
|
625
705
|
__typename
|
|
626
|
-
|
|
627
|
-
|
|
706
|
+
totalPositions
|
|
707
|
+
netBalance(currency: $currency) {
|
|
708
|
+
...FiatAmountWithChange
|
|
628
709
|
}
|
|
629
|
-
|
|
630
|
-
...
|
|
710
|
+
totalCollateral(currency: $currency) {
|
|
711
|
+
...FiatAmount
|
|
631
712
|
}
|
|
632
|
-
|
|
633
|
-
...
|
|
713
|
+
totalSupplied(currency: $currency) {
|
|
714
|
+
...FiatAmount
|
|
634
715
|
}
|
|
635
|
-
|
|
636
|
-
...
|
|
716
|
+
totalDebt(currency: $currency) {
|
|
717
|
+
...FiatAmount
|
|
637
718
|
}
|
|
638
|
-
|
|
639
|
-
|
|
719
|
+
netApy {
|
|
720
|
+
...PercentNumber
|
|
721
|
+
}
|
|
722
|
+
netFeeEarned {
|
|
723
|
+
...FiatAmount
|
|
724
|
+
}
|
|
725
|
+
lowestHealthFactor
|
|
726
|
+
}`,[R,y,a]),O=e(`fragment UserPosition on UserPosition {
|
|
640
727
|
__typename
|
|
641
|
-
|
|
642
|
-
|
|
728
|
+
id
|
|
729
|
+
spoke {
|
|
730
|
+
...Spoke
|
|
643
731
|
}
|
|
644
|
-
|
|
645
|
-
|
|
732
|
+
user
|
|
733
|
+
createdAt
|
|
734
|
+
netApy {
|
|
735
|
+
...PercentNumber
|
|
646
736
|
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
...TokenAmount
|
|
737
|
+
netCollateral(currency: $currency) {
|
|
738
|
+
...FiatAmountWithChange
|
|
650
739
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
...ExecutionPlan
|
|
740
|
+
netBalance(currency: $currency) {
|
|
741
|
+
...FiatAmountWithChange
|
|
654
742
|
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
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
|
|
658
760
|
}
|
|
659
|
-
|
|
761
|
+
riskPremium {
|
|
762
|
+
...PercentNumber
|
|
763
|
+
}
|
|
764
|
+
betterRiskPremium {
|
|
765
|
+
...PercentNumber
|
|
766
|
+
}
|
|
767
|
+
averageCollateralFactor {
|
|
768
|
+
...PercentNumber
|
|
769
|
+
}
|
|
770
|
+
}`,[i,a,R,Q,L]),oe=e(`fragment UserBalance on UserBalance {
|
|
660
771
|
__typename
|
|
661
|
-
|
|
772
|
+
id
|
|
773
|
+
info {
|
|
774
|
+
...TokenInfo
|
|
775
|
+
}
|
|
776
|
+
totalAmount {
|
|
777
|
+
...DecimalNumber
|
|
778
|
+
}
|
|
779
|
+
balances {
|
|
662
780
|
...TokenAmount
|
|
663
781
|
}
|
|
664
|
-
currency {
|
|
665
|
-
...
|
|
782
|
+
fiatAmount(currency: $currency) {
|
|
783
|
+
...FiatAmount
|
|
666
784
|
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
chain
|
|
670
|
-
claimable {
|
|
671
|
-
...ClaimableMeritReward
|
|
785
|
+
highestSupplyApy: supplyApy(metric: HIGHEST) {
|
|
786
|
+
...PercentNumber
|
|
672
787
|
}
|
|
673
|
-
|
|
674
|
-
...
|
|
788
|
+
highestBorrowApy: borrowApy(metric: HIGHEST) {
|
|
789
|
+
...PercentNumber
|
|
675
790
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
...UserMeritRewards
|
|
791
|
+
lowestSupplyApy: supplyApy(metric: LOWEST) {
|
|
792
|
+
...PercentNumber
|
|
679
793
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
...Market
|
|
794
|
+
lowestBorrowApy: borrowApy(metric: LOWEST) {
|
|
795
|
+
...PercentNumber
|
|
683
796
|
}
|
|
684
|
-
}`,[
|
|
685
|
-
|
|
686
|
-
|
|
797
|
+
}`,[w,c,g,y,a]),pe=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
798
|
+
__typename
|
|
799
|
+
netBalance(currency: $currency) {
|
|
800
|
+
...FiatAmount
|
|
687
801
|
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
...MarketUserState
|
|
802
|
+
borrows(currency: $currency) {
|
|
803
|
+
...FiatAmount
|
|
691
804
|
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
805
|
+
supplies(currency: $currency) {
|
|
806
|
+
...FiatAmount
|
|
807
|
+
}
|
|
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!) {
|
|
695
833
|
value: chains(filter: $filter) {
|
|
696
834
|
...Chain
|
|
697
835
|
}
|
|
698
|
-
}`,[
|
|
836
|
+
}`,[n]),Er=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
699
837
|
value: hasProcessedKnownTransaction(request: $request)
|
|
700
|
-
}`),
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
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
|
|
704
923
|
}
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
...UsdExchangeRate
|
|
924
|
+
}`,[B]),Gr=e(`query SupplyApyHistory($request: SupplyAPYHistoryRequest!) {
|
|
925
|
+
value: supplyApyHistory(request: $request) {
|
|
926
|
+
...APYSample
|
|
709
927
|
}
|
|
710
|
-
}`,[
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
after
|
|
714
|
-
}`),Ut=e(`query HealthFactorPreview($request: HealthFactorPreviewRequest!) {
|
|
715
|
-
value: healthFactorPreview(request: $request) {
|
|
716
|
-
...HealthFactorPreviewResponse
|
|
928
|
+
}`,[B]),Kr=e(`query Reserve($request: ReserveRequest!, $currency: Currency!) {
|
|
929
|
+
value: reserve(request: $request) {
|
|
930
|
+
...Reserve
|
|
717
931
|
}
|
|
718
|
-
}`,[
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}`),de=e(`fragment TypeDefinition on TypeDefinition {
|
|
722
|
-
EIP712Domain {
|
|
723
|
-
...TypeField
|
|
932
|
+
}`,[q]),zr=e(`query Reserves($request: ReservesRequest!, $currency: Currency!) {
|
|
933
|
+
value: reserves(request: $request) {
|
|
934
|
+
...Reserve
|
|
724
935
|
}
|
|
725
|
-
|
|
726
|
-
|
|
936
|
+
}`,[q]);var jr=e(`query Spoke($request: SpokeRequest!) {
|
|
937
|
+
value: spoke(request: $request) {
|
|
938
|
+
...Spoke
|
|
727
939
|
}
|
|
728
|
-
}`,[
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
chainId
|
|
732
|
-
verifyingContract
|
|
733
|
-
}`),Fe=e(`fragment MessageData on MessageData {
|
|
734
|
-
owner
|
|
735
|
-
spender
|
|
736
|
-
value
|
|
737
|
-
nonce
|
|
738
|
-
deadline
|
|
739
|
-
}`),xe=e(`fragment PermitTypedDataResponse on PermitTypedDataResponse {
|
|
740
|
-
types {
|
|
741
|
-
...TypeDefinition
|
|
940
|
+
}`,[i]),ea=e(`query Spokes($request: SpokesRequest!) {
|
|
941
|
+
value: spokes(request: $request) {
|
|
942
|
+
...Spoke
|
|
742
943
|
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
...
|
|
944
|
+
}`,[i]),ta=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
945
|
+
value: spokePositionManagers(request: $request) {
|
|
946
|
+
...PaginatedSpokePositionManagerResult
|
|
746
947
|
}
|
|
747
|
-
|
|
748
|
-
|
|
948
|
+
}`,[V]),ra=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
949
|
+
value: spokeUserPositionManagers(request: $request) {
|
|
950
|
+
...PaginatedSpokeUserPositionManagerResult
|
|
749
951
|
}
|
|
750
|
-
}`,[
|
|
751
|
-
value:
|
|
752
|
-
...
|
|
952
|
+
}`,[Y]);var pa=e(`query SwapQuote($request: SwapQuoteRequest!, $currency: Currency!) {
|
|
953
|
+
value: swapQuote(request: $request) {
|
|
954
|
+
...SwapQuote
|
|
753
955
|
}
|
|
754
|
-
}`,[
|
|
755
|
-
value:
|
|
756
|
-
...
|
|
956
|
+
}`,[v]),sa=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
957
|
+
value: swappableTokens(request: $request) {
|
|
958
|
+
...Token
|
|
757
959
|
}
|
|
758
|
-
}`,[
|
|
759
|
-
value:
|
|
760
|
-
...
|
|
960
|
+
}`,[D]),ua=e(`query PrepareSwap($request: PrepareSwapRequest!, $currency: Currency!) {
|
|
961
|
+
value: prepareSwap(request: $request) {
|
|
962
|
+
...PrepareSwapResult
|
|
761
963
|
}
|
|
762
|
-
}`,[
|
|
763
|
-
value:
|
|
764
|
-
...
|
|
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
|
|
765
971
|
}
|
|
766
|
-
}`,[
|
|
972
|
+
}`,[J]),ya=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
973
|
+
value: prepareSwapCancel(request: $request) {
|
|
974
|
+
...PrepareSwapCancelResult
|
|
975
|
+
}
|
|
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!) {
|
|
767
985
|
value: borrow(request: $request) {
|
|
768
986
|
...ExecutionPlan
|
|
769
987
|
}
|
|
770
|
-
}`,[
|
|
988
|
+
}`,[T]),Ra=e(`query Supply($request: SupplyRequest!) {
|
|
771
989
|
value: supply(request: $request) {
|
|
772
990
|
...ExecutionPlan
|
|
773
991
|
}
|
|
774
|
-
}`,[
|
|
992
|
+
}`,[T]),qa=e(`query Repay($request: RepayRequest!) {
|
|
775
993
|
value: repay(request: $request) {
|
|
776
994
|
...ExecutionPlan
|
|
777
995
|
}
|
|
778
|
-
}`,[
|
|
996
|
+
}`,[T]),Fa=e(`query Withdraw($request: WithdrawRequest!) {
|
|
779
997
|
value: withdraw(request: $request) {
|
|
780
998
|
...ExecutionPlan
|
|
781
999
|
}
|
|
782
|
-
}`,[
|
|
783
|
-
|
|
1000
|
+
}`,[T]),ut=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1001
|
+
__typename
|
|
1002
|
+
... on TransactionRequest {
|
|
784
1003
|
...TransactionRequest
|
|
785
1004
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
...ExecutionPlan
|
|
1005
|
+
... on Erc20ApprovalRequired {
|
|
1006
|
+
...Erc20ApprovalRequired
|
|
789
1007
|
}
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
...TransactionRequest
|
|
1008
|
+
... on InsufficientBalanceError {
|
|
1009
|
+
...InsufficientBalanceError
|
|
793
1010
|
}
|
|
794
|
-
}`,[
|
|
795
|
-
value:
|
|
796
|
-
...
|
|
1011
|
+
}`,[u,k,F]),Aa=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1012
|
+
value: liquidatePosition(request: $request) {
|
|
1013
|
+
...LiquidatePositionExecutionPlan
|
|
797
1014
|
}
|
|
798
|
-
}`,[
|
|
799
|
-
value:
|
|
1015
|
+
}`,[ut]),xa=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1016
|
+
value: setSpokeUserPositionManager(request: $request) {
|
|
800
1017
|
...TransactionRequest
|
|
801
1018
|
}
|
|
802
|
-
}`,[
|
|
803
|
-
value:
|
|
1019
|
+
}`,[u]),Ia=e(`query SetUserSupplyAsCollateral($request: SetUserSupplyAsCollateralRequest!) {
|
|
1020
|
+
value: setUserSupplyAsCollateral(request: $request) {
|
|
804
1021
|
...TransactionRequest
|
|
805
1022
|
}
|
|
806
|
-
}`,[
|
|
807
|
-
value:
|
|
1023
|
+
}`,[u]),wa=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1024
|
+
value: renounceSpokeUserPositionManager(request: $request) {
|
|
808
1025
|
...TransactionRequest
|
|
809
1026
|
}
|
|
810
|
-
}`,[
|
|
811
|
-
value:
|
|
812
|
-
...ExecutionPlan
|
|
813
|
-
}
|
|
814
|
-
}`,[s]),Jt=e(`query CollateralToggle($request: CollateralToggleRequest!) {
|
|
815
|
-
value: collateralToggle(request: $request) {
|
|
1027
|
+
}`,[u]),Pa=e(`query UpdateUserRiskPremium($request: UpdateUserRiskPremiumRequest!) {
|
|
1028
|
+
value: updateUserRiskPremium(request: $request) {
|
|
816
1029
|
...TransactionRequest
|
|
817
1030
|
}
|
|
818
|
-
}`,[
|
|
819
|
-
|
|
820
|
-
|
|
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
|
|
821
1048
|
}
|
|
822
|
-
}`,[
|
|
823
|
-
value:
|
|
1049
|
+
}`,[M,N,W]),ha=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1050
|
+
value: preview(request: $request) {
|
|
1051
|
+
...PreviewUserPosition
|
|
1052
|
+
}
|
|
1053
|
+
}`,[it]),Ta=e(`query UpdateUserDynamicConfig($request: UpdateUserDynamicConfigRequest!) {
|
|
1054
|
+
value: updateUserDynamicConfig(request: $request) {
|
|
824
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
|
|
825
1065
|
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
...TokenAmount
|
|
1066
|
+
reserve {
|
|
1067
|
+
...ReserveInfo
|
|
829
1068
|
}
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
...MarketUserReserveSupplyPosition
|
|
1069
|
+
borrowed {
|
|
1070
|
+
...Erc20Amount
|
|
833
1071
|
}
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
...MarketUserReserveBorrowPosition
|
|
1072
|
+
chain {
|
|
1073
|
+
...Chain
|
|
837
1074
|
}
|
|
838
|
-
}`,[
|
|
839
|
-
|
|
840
|
-
|
|
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
|
|
841
1083
|
}
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
...Vault
|
|
1084
|
+
reserve {
|
|
1085
|
+
...ReserveInfo
|
|
845
1086
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
...PaginatedVaultsResult
|
|
1087
|
+
supplied {
|
|
1088
|
+
...Erc20Amount
|
|
849
1089
|
}
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
...PaginatedVaultsResult
|
|
1090
|
+
chain {
|
|
1091
|
+
...Chain
|
|
853
1092
|
}
|
|
854
|
-
}`,[
|
|
855
|
-
|
|
856
|
-
|
|
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
|
|
857
1101
|
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
...TokenAmount
|
|
1102
|
+
reserve {
|
|
1103
|
+
...ReserveInfo
|
|
861
1104
|
}
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
...TokenAmount
|
|
1105
|
+
withdrawn {
|
|
1106
|
+
...Erc20Amount
|
|
865
1107
|
}
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
...TokenAmount
|
|
1108
|
+
chain {
|
|
1109
|
+
...Chain
|
|
869
1110
|
}
|
|
870
|
-
}`,[
|
|
871
|
-
|
|
872
|
-
|
|
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
|
|
873
1119
|
}
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
...VaultUserActivityResult
|
|
1120
|
+
reserve {
|
|
1121
|
+
...ReserveInfo
|
|
877
1122
|
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
...TransactionRequest
|
|
1123
|
+
repaid {
|
|
1124
|
+
...Erc20Amount
|
|
881
1125
|
}
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
...TransactionRequest
|
|
1126
|
+
chain {
|
|
1127
|
+
...Chain
|
|
885
1128
|
}
|
|
886
|
-
}`,[
|
|
887
|
-
|
|
888
|
-
|
|
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
|
|
889
1225
|
}
|
|
890
|
-
}`,[
|
|
891
|
-
value:
|
|
892
|
-
...
|
|
1226
|
+
}`,[oe]),$a=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1227
|
+
value: userSummaryHistory(request: $request) {
|
|
1228
|
+
...UserSummaryHistoryItem
|
|
893
1229
|
}
|
|
894
|
-
}`,[
|
|
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
|
|
895
1231
|
//# sourceMappingURL=index.cjs.map
|