@aave/graphql 1.0.0-next.6 → 1.0.0-next.7
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 +146 -130
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +114 -36
- package/dist/index.d.ts +114 -36
- package/dist/index.js +146 -130
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/schema.js.map +1 -1
- package/dist/test-utils.cjs +49 -39
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js +49 -39
- package/dist/test-utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isValidHexString,isObject}from'@aave/types';var le=(p=>(p.Asc="ASC",p.Desc="DESC",p))(le||{}),de=(p=>(p.Ten="TEN",p.Fifty="FIFTY",p))(de||{}),fe=(
|
|
1
|
+
import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isValidHexString,isObject}from'@aave/types';var le=(p=>(p.Asc="ASC",p.Desc="DESC",p))(le||{}),de=(p=>(p.Ten="TEN",p.Fifty="FIFTY",p))(de||{}),fe=(x=>(x.LastDay="LAST_DAY",x.LastWeek="LAST_WEEK",x.LastMonth="LAST_MONTH",x.LastSixMonths="LAST_SIX_MONTHS",x.LastYear="LAST_YEAR",x.All="ALL",x))(fe||{}),Se=(c=>(c.SpokeBorrow="SPOKE_BORROW",c.SpokeRepay="SPOKE_REPAY",c.SpokeSupply="SPOKE_SUPPLY",c.SpokeWithdraw="SPOKE_WITHDRAW",c.SpokeUpdateUserRiskPremium="SPOKE_UPDATE_USER_RISK_PREMIUM",c.SpokeSetUserUsingAsCollateral="SPOKE_SET_USER_USING_AS_COLLATERAL",c.SpokeSetUserPositionManager="SPOKE_SET_USER_POSITION_MANAGER",c.RenounceSpokeUserPositionManager="RENOUNCE_SPOKE_USER_POSITION_MANAGER",c.Liquidation="LIQUIDATION",c))(Se||{}),Re=(a=>(a.TESTNET_ONLY="TESTNET_ONLY",a.MAINNET_ONLY="MAINNET_ONLY",a.ALL="ALL",a))(Re||{}),qe=(a=>(a.Active="ACTIVE",a.Frozen="FROZEN",a.Paused="PAUSED",a))(qe||{}),xe=(p=>(p.Balance="BALANCE",p.Name="NAME",p))(xe||{}),Ae=(g=>(g.Borrow="BORROW",g.Supply="SUPPLY",g.Withdraw="WITHDRAW",g.Repay="REPAY",g.Liquidated="LIQUIDATED",g.SetAsCollateral="SET_AS_COLLATERAL",g.UpdatedDynamicConfig="UPDATED_DYNAMIC_CONFIG",g.UpdatedRiskPremium="UPDATED_RISK_PREMIUM",g))(Ae||{}),he=(a=>(a.Highest="HIGHEST",a.Lowest="LOWEST",a.Average="AVERAGE",a))(he||{}),Fe=(a=>(a.Usd="USD",a.Eur="EUR",a.Gbp="GBP",a))(Fe||{}),Pe=(q=>(q.Supply="SUPPLY",q.Borrow="BORROW",q.Collateral="COLLATERAL",q.All="ALL",q))(Pe||{}),Ie=(p=>(p.Buy="BUY",p.Sell="SELL",p))(Ie||{}),we=(I=>(I.Cancelled="CANCELLED",I.Expired="EXPIRED",I.Fulfilled="FULFILLED",I.Open="OPEN",I.PendingSignature="PENDING_SIGNATURE",I))(we||{}),Te=(p=>(p.Stablecoin="STABLECOIN",p.EthCorrelated="ETH_CORRELATED",p))(Te||{});var e=initGraphQLTada();var y=e(`fragment DecimalNumber on DecimalNumber {
|
|
2
2
|
__typename
|
|
3
3
|
onChainValue
|
|
4
4
|
decimals
|
|
@@ -9,7 +9,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
9
9
|
decimals
|
|
10
10
|
value
|
|
11
11
|
normalized
|
|
12
|
-
}`),
|
|
12
|
+
}`),O=e(`fragment DecimalNumberWithChange on DecimalNumberWithChange {
|
|
13
13
|
__typename
|
|
14
14
|
current {
|
|
15
15
|
...DecimalNumber
|
|
@@ -17,14 +17,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
17
17
|
change(window: $timeWindow) {
|
|
18
18
|
...PercentNumber
|
|
19
19
|
}
|
|
20
|
-
}`,[y,r]),
|
|
20
|
+
}`,[y,r]),u=e(`fragment ExchangeAmount on ExchangeAmount {
|
|
21
21
|
__typename
|
|
22
22
|
value
|
|
23
23
|
name
|
|
24
24
|
symbol
|
|
25
25
|
icon
|
|
26
26
|
decimals
|
|
27
|
-
}`),
|
|
27
|
+
}`),w=e(`fragment TokenInfo on TokenInfo {
|
|
28
28
|
__typename
|
|
29
29
|
id
|
|
30
30
|
name
|
|
@@ -32,7 +32,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
32
32
|
icon
|
|
33
33
|
decimals
|
|
34
34
|
categories
|
|
35
|
-
}`),
|
|
35
|
+
}`),n=e(`fragment Chain on Chain {
|
|
36
36
|
__typename
|
|
37
37
|
name
|
|
38
38
|
icon
|
|
@@ -47,7 +47,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
47
47
|
nativeInfo {
|
|
48
48
|
...TokenInfo
|
|
49
49
|
}
|
|
50
|
-
}`,[
|
|
50
|
+
}`,[w]),l=e(`fragment Erc20Token on Erc20Token {
|
|
51
51
|
__typename
|
|
52
52
|
info {
|
|
53
53
|
...TokenInfo
|
|
@@ -58,7 +58,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
58
58
|
}
|
|
59
59
|
isWrappedNativeToken
|
|
60
60
|
permitSupported
|
|
61
|
-
}`,[
|
|
61
|
+
}`,[w,n]),N=e(`fragment NativeToken on NativeToken {
|
|
62
62
|
__typename
|
|
63
63
|
info {
|
|
64
64
|
...TokenInfo
|
|
@@ -66,7 +66,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
66
66
|
chain {
|
|
67
67
|
...Chain
|
|
68
68
|
}
|
|
69
|
-
}`,[
|
|
69
|
+
}`,[w,n]),s=e(`fragment Erc20Amount on Erc20Amount {
|
|
70
70
|
__typename
|
|
71
71
|
token {
|
|
72
72
|
...Erc20Token
|
|
@@ -80,7 +80,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
80
80
|
exchangeRate(currency: $currency){
|
|
81
81
|
...DecimalNumber
|
|
82
82
|
}
|
|
83
|
-
}`,[l,y,
|
|
83
|
+
}`,[l,y,u]),be=e(`fragment NativeAmount on NativeAmount {
|
|
84
84
|
__typename
|
|
85
85
|
token {
|
|
86
86
|
...NativeToken
|
|
@@ -94,7 +94,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
94
94
|
exchangeRate(currency: $currency){
|
|
95
95
|
...DecimalNumber
|
|
96
96
|
}
|
|
97
|
-
}`,[
|
|
97
|
+
}`,[N,y,u]),S=e(`fragment TokenAmount on TokenAmount {
|
|
98
98
|
__typename
|
|
99
99
|
... on Erc20Amount {
|
|
100
100
|
...Erc20Amount
|
|
@@ -102,7 +102,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
102
102
|
... on NativeAmount {
|
|
103
103
|
...NativeAmount
|
|
104
104
|
}
|
|
105
|
-
}`,[s,
|
|
105
|
+
}`,[s,be]),Q=e(`fragment Token on Token {
|
|
106
106
|
__typename
|
|
107
107
|
... on Erc20Token {
|
|
108
108
|
...Erc20Token
|
|
@@ -110,7 +110,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
110
110
|
... on NativeToken {
|
|
111
111
|
...NativeToken
|
|
112
112
|
}
|
|
113
|
-
}`,[l,
|
|
113
|
+
}`,[l,N]),d=e(`fragment ExchangeAmountWithChange on ExchangeAmountWithChange {
|
|
114
114
|
__typename
|
|
115
115
|
current {
|
|
116
116
|
...ExchangeAmount
|
|
@@ -118,7 +118,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
118
118
|
change(window: $timeWindow){
|
|
119
119
|
...PercentNumber
|
|
120
120
|
}
|
|
121
|
-
}`,[
|
|
121
|
+
}`,[u,r]),W=e(`fragment PercentNumberWithChange on PercentNumberWithChange {
|
|
122
122
|
__typename
|
|
123
123
|
current {
|
|
124
124
|
...PercentNumber
|
|
@@ -130,7 +130,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
130
130
|
__typename
|
|
131
131
|
prev
|
|
132
132
|
next
|
|
133
|
-
}`),
|
|
133
|
+
}`),L=e(`fragment PercentNumberVariation on PercentNumberVariation {
|
|
134
134
|
__typename
|
|
135
135
|
current {
|
|
136
136
|
...PercentNumber
|
|
@@ -138,7 +138,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
138
138
|
after {
|
|
139
139
|
...PercentNumber
|
|
140
140
|
}
|
|
141
|
-
}`,[r]),
|
|
141
|
+
}`,[r]),M=e(`fragment ExchangeAmountValueVariation on ExchangeAmountValueVariation {
|
|
142
142
|
__typename
|
|
143
143
|
current {
|
|
144
144
|
...ExchangeAmount
|
|
@@ -146,7 +146,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
146
146
|
after {
|
|
147
147
|
...ExchangeAmount
|
|
148
148
|
}
|
|
149
|
-
}`,[
|
|
149
|
+
}`,[u]),V=e(`fragment HealthFactorWithChange on HealthFactorWithChange {
|
|
150
150
|
__typename
|
|
151
151
|
current
|
|
152
152
|
change(window: $timeWindow) {
|
|
@@ -161,7 +161,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
161
161
|
reason
|
|
162
162
|
current
|
|
163
163
|
after
|
|
164
|
-
}`),
|
|
164
|
+
}`),K=e(`fragment HealthFactorResult on HealthFactorResult {
|
|
165
165
|
__typename
|
|
166
166
|
... on HealthFactorVariation {
|
|
167
167
|
...HealthFactorVariation
|
|
@@ -186,7 +186,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
186
186
|
utilizationRate {
|
|
187
187
|
...PercentNumber
|
|
188
188
|
}
|
|
189
|
-
}`,[
|
|
189
|
+
}`,[u,d,r]),T=e(`fragment Hub on Hub {
|
|
190
190
|
__typename
|
|
191
191
|
id
|
|
192
192
|
name
|
|
@@ -197,7 +197,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
197
197
|
summary(currency: $currency) {
|
|
198
198
|
...HubSummary
|
|
199
199
|
}
|
|
200
|
-
}`,[
|
|
200
|
+
}`,[n,Ue]);var ke=e(`fragment HubAssetSummary on HubAssetSummary {
|
|
201
201
|
__typename
|
|
202
202
|
supplied {
|
|
203
203
|
...Erc20Amount
|
|
@@ -228,12 +228,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
228
228
|
}
|
|
229
229
|
irStrategy
|
|
230
230
|
reinvestmentController
|
|
231
|
-
}`,[r]),
|
|
231
|
+
}`,[r]),He=e(`fragment HubAssetUserState on HubAssetUserState {
|
|
232
232
|
__typename
|
|
233
233
|
balance {
|
|
234
234
|
...Erc20Amount
|
|
235
235
|
}
|
|
236
|
-
}`,[s]),
|
|
236
|
+
}`,[s]),E=e(`fragment HubAsset on HubAsset {
|
|
237
237
|
__typename
|
|
238
238
|
id
|
|
239
239
|
onchainAssetId
|
|
@@ -252,7 +252,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
252
252
|
userState {
|
|
253
253
|
...HubAssetUserState
|
|
254
254
|
}
|
|
255
|
-
}`,[
|
|
255
|
+
}`,[T,l,ke,Oe,He]);var i=e(`fragment Spoke on Spoke {
|
|
256
256
|
__typename
|
|
257
257
|
id
|
|
258
258
|
name
|
|
@@ -260,12 +260,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
260
260
|
chain {
|
|
261
261
|
...Chain
|
|
262
262
|
}
|
|
263
|
-
}`,[
|
|
263
|
+
}`,[n]),Be=e(`fragment SpokePositionManager on SpokePositionManger {
|
|
264
264
|
__typename
|
|
265
265
|
address
|
|
266
266
|
active
|
|
267
267
|
name
|
|
268
|
-
}`),
|
|
268
|
+
}`),G=e(`fragment PaginatedSpokePositionManagerResult on PaginatedSpokePositionManagerResult {
|
|
269
269
|
__typename
|
|
270
270
|
items {
|
|
271
271
|
...SpokePositionManager
|
|
@@ -273,13 +273,13 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
273
273
|
pageInfo {
|
|
274
274
|
...PaginatedResultInfo
|
|
275
275
|
}
|
|
276
|
-
}`,[
|
|
276
|
+
}`,[Be,R]),_e=e(`fragment SpokeUserPositionManager on SpokeUserPositionManager {
|
|
277
277
|
__typename
|
|
278
278
|
address
|
|
279
279
|
approvedOn
|
|
280
280
|
active
|
|
281
281
|
name
|
|
282
|
-
}`),
|
|
282
|
+
}`),Y=e(`fragment PaginatedSpokeUserPositionManagerResult on PaginatedSpokeUserPositionManagerResult {
|
|
283
283
|
__typename
|
|
284
284
|
items {
|
|
285
285
|
...SpokeUserPositionManager
|
|
@@ -352,7 +352,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
352
352
|
}
|
|
353
353
|
dynamicConfigKey
|
|
354
354
|
isUsingLatestDynamicConfigKey
|
|
355
|
-
}`,[s,r]),
|
|
355
|
+
}`,[s,r]),A=e(`fragment Reserve on Reserve {
|
|
356
356
|
__typename
|
|
357
357
|
id
|
|
358
358
|
onChainId
|
|
@@ -382,13 +382,13 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
382
382
|
asset {
|
|
383
383
|
...HubAsset
|
|
384
384
|
}
|
|
385
|
-
}`,[i,
|
|
385
|
+
}`,[i,n,Ne,$e,De,Qe,E]),f=e(`fragment ReserveInfo on ReserveInfo {
|
|
386
386
|
__typename
|
|
387
387
|
id
|
|
388
388
|
asset {
|
|
389
389
|
...HubAsset
|
|
390
390
|
}
|
|
391
|
-
}`,[
|
|
391
|
+
}`,[E]);var v=e(`fragment TypeField on TypeField {
|
|
392
392
|
name
|
|
393
393
|
type
|
|
394
394
|
}`),We=e(`fragment TypeDefinition on TypeDefinition {
|
|
@@ -398,7 +398,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
398
398
|
Permit {
|
|
399
399
|
...TypeField
|
|
400
400
|
}
|
|
401
|
-
}`,[
|
|
401
|
+
}`,[v]),U=e(`fragment DomainData on DomainData {
|
|
402
402
|
name
|
|
403
403
|
version
|
|
404
404
|
chainId
|
|
@@ -420,11 +420,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
420
420
|
message {
|
|
421
421
|
...PermitMessageData
|
|
422
422
|
}
|
|
423
|
-
}`,[We,
|
|
423
|
+
}`,[We,U,Le]),Yt=e(`query PermitTypedData($request: PermitRequest!) {
|
|
424
424
|
value: permitTypedData(request: $request) {
|
|
425
425
|
...PermitTypedDataResponse
|
|
426
426
|
}
|
|
427
|
-
}`,[Me]);var
|
|
427
|
+
}`,[Me]);var m=e(`fragment TransactionRequest on TransactionRequest {
|
|
428
428
|
__typename
|
|
429
429
|
to
|
|
430
430
|
from
|
|
@@ -432,7 +432,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
432
432
|
value
|
|
433
433
|
chainId
|
|
434
434
|
operations
|
|
435
|
-
}`),
|
|
435
|
+
}`),H=e(`fragment Erc20ApprovalRequired on Erc20ApprovalRequired {
|
|
436
436
|
__typename
|
|
437
437
|
transaction {
|
|
438
438
|
...TransactionRequest
|
|
@@ -447,7 +447,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
447
447
|
originalTransaction {
|
|
448
448
|
...TransactionRequest
|
|
449
449
|
}
|
|
450
|
-
}`,[
|
|
450
|
+
}`,[m,y]),Ve=e(`fragment PreContractActionRequired on PreContractActionRequired {
|
|
451
451
|
__typename
|
|
452
452
|
transaction {
|
|
453
453
|
...TransactionRequest
|
|
@@ -456,7 +456,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
456
456
|
originalTransaction {
|
|
457
457
|
...TransactionRequest
|
|
458
458
|
}
|
|
459
|
-
}`,[
|
|
459
|
+
}`,[m]),h=e(`fragment InsufficientBalanceError on InsufficientBalanceError {
|
|
460
460
|
__typename
|
|
461
461
|
required {
|
|
462
462
|
...DecimalNumber
|
|
@@ -478,7 +478,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
478
478
|
... on InsufficientBalanceError {
|
|
479
479
|
...InsufficientBalanceError
|
|
480
480
|
}
|
|
481
|
-
}`,[
|
|
481
|
+
}`,[m,H,Ve,h]);var Ke=e(`fragment SwapQuoteCosts on SwapQuoteCosts {
|
|
482
482
|
__typename
|
|
483
483
|
networkCosts {
|
|
484
484
|
...TokenAmount
|
|
@@ -486,7 +486,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
486
486
|
partnerFee {
|
|
487
487
|
...TokenAmount
|
|
488
488
|
}
|
|
489
|
-
}`,[S]),
|
|
489
|
+
}`,[S]),C=e(`fragment SwapQuote on SwapQuote {
|
|
490
490
|
__typename
|
|
491
491
|
quoteId
|
|
492
492
|
suggestedSlippage {
|
|
@@ -504,14 +504,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
504
504
|
minimumReceived {
|
|
505
505
|
...TokenAmount
|
|
506
506
|
}
|
|
507
|
-
}`,[r,S,
|
|
507
|
+
}`,[r,S,Ke]),Ge=e(`fragment SwapByIntentTypeDefinition on SwapByIntentTypeDefinition {
|
|
508
508
|
EIP712Domain {
|
|
509
509
|
...TypeField
|
|
510
510
|
}
|
|
511
511
|
Order {
|
|
512
512
|
...TypeField
|
|
513
513
|
}
|
|
514
|
-
}`,[
|
|
514
|
+
}`,[v]),z=e(`fragment SwapByIntentTypedData on SwapByIntentTypedData {
|
|
515
515
|
__typename
|
|
516
516
|
types {
|
|
517
517
|
...SwapByIntentTypeDefinition
|
|
@@ -521,7 +521,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
521
521
|
...DomainData
|
|
522
522
|
}
|
|
523
523
|
message
|
|
524
|
-
}`,[
|
|
524
|
+
}`,[Ge,U]),Ye=e(`fragment SwapByIntent on SwapByIntent {
|
|
525
525
|
__typename
|
|
526
526
|
quote {
|
|
527
527
|
...SwapQuote
|
|
@@ -529,7 +529,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
529
529
|
data {
|
|
530
530
|
...SwapByIntentTypedData
|
|
531
531
|
}
|
|
532
|
-
}`,[
|
|
532
|
+
}`,[C,z]),ze=e(`fragment SwapByIntentWithApprovalRequired on SwapByIntentWithApprovalRequired {
|
|
533
533
|
__typename
|
|
534
534
|
approval {
|
|
535
535
|
...TransactionRequest
|
|
@@ -540,17 +540,17 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
540
540
|
data {
|
|
541
541
|
...SwapByIntentTypedData
|
|
542
542
|
}
|
|
543
|
-
}`,[
|
|
543
|
+
}`,[m,C,z]),Ze=e(`fragment SwapByTransaction on SwapByTransaction {
|
|
544
544
|
__typename
|
|
545
545
|
quote {
|
|
546
546
|
...SwapQuote
|
|
547
547
|
}
|
|
548
|
-
}`,[
|
|
548
|
+
}`,[C]),Z=e(`fragment SwapReceipt on SwapReceipt {
|
|
549
549
|
__typename
|
|
550
550
|
id
|
|
551
551
|
explorerLink
|
|
552
552
|
createdAt
|
|
553
|
-
}`),
|
|
553
|
+
}`),J=e(`fragment PrepareSwapResult on PrepareSwapResult {
|
|
554
554
|
__typename
|
|
555
555
|
... on SwapByIntent {
|
|
556
556
|
...SwapByIntent
|
|
@@ -564,7 +564,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
564
564
|
... on InsufficientBalanceError {
|
|
565
565
|
...InsufficientBalanceError
|
|
566
566
|
}
|
|
567
|
-
}`,[
|
|
567
|
+
}`,[Ye,ze,Ze,h]),X=e(`fragment SwapTransactionRequest on SwapTransactionRequest {
|
|
568
568
|
__typename
|
|
569
569
|
transaction {
|
|
570
570
|
...TransactionRequest
|
|
@@ -572,7 +572,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
572
572
|
orderReceipt {
|
|
573
573
|
...SwapReceipt
|
|
574
574
|
}
|
|
575
|
-
}`,[
|
|
575
|
+
}`,[m,Z]),Je=e(`fragment SwapApprovalRequired on SwapApprovalRequired {
|
|
576
576
|
__typename
|
|
577
577
|
approval {
|
|
578
578
|
...TransactionRequest
|
|
@@ -580,7 +580,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
580
580
|
originalTransaction {
|
|
581
581
|
...SwapTransactionRequest
|
|
582
582
|
}
|
|
583
|
-
}`,[
|
|
583
|
+
}`,[m,X]),j=e(`fragment SwapExecutionPlan on SwapExecutionPlan {
|
|
584
584
|
__typename
|
|
585
585
|
... on SwapTransactionRequest {
|
|
586
586
|
...SwapTransactionRequest
|
|
@@ -594,7 +594,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
594
594
|
... on SwapReceipt {
|
|
595
595
|
...SwapReceipt
|
|
596
596
|
}
|
|
597
|
-
}`,[
|
|
597
|
+
}`,[X,Je,h,Z]),ee=e(`fragment SwapCancelled on SwapCancelled {
|
|
598
598
|
__typename
|
|
599
599
|
createdAt
|
|
600
600
|
cancelledAt
|
|
@@ -657,14 +657,14 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
657
657
|
... on SwapFulfilled {
|
|
658
658
|
...SwapFulfilled
|
|
659
659
|
}
|
|
660
|
-
}`,[je,et,
|
|
660
|
+
}`,[je,et,ee,Xe,tt]),rt=e(`fragment CancelSwapTypeDefinition on CancelSwapTypeDefinition {
|
|
661
661
|
OrderCancellations {
|
|
662
662
|
...TypeField
|
|
663
663
|
}
|
|
664
664
|
EIP712Domain {
|
|
665
665
|
...TypeField
|
|
666
666
|
}
|
|
667
|
-
}`,[
|
|
667
|
+
}`,[v]),nt=e(`fragment CancelSwapTypedData on CancelSwapTypedData {
|
|
668
668
|
types {
|
|
669
669
|
...CancelSwapTypeDefinition
|
|
670
670
|
}
|
|
@@ -673,12 +673,12 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
673
673
|
...DomainData
|
|
674
674
|
}
|
|
675
675
|
message
|
|
676
|
-
}`,[rt,
|
|
676
|
+
}`,[rt,U]),te=e(`fragment PrepareSwapCancelResult on PrepareSwapCancelResult {
|
|
677
677
|
__typename
|
|
678
678
|
data {
|
|
679
679
|
...CancelSwapTypedData
|
|
680
680
|
}
|
|
681
|
-
}`,[nt]),
|
|
681
|
+
}`,[nt]),re=e(`fragment CancelSwapExecutionPlan on CancelSwapExecutionPlan {
|
|
682
682
|
__typename
|
|
683
683
|
... on TransactionRequest {
|
|
684
684
|
...TransactionRequest
|
|
@@ -686,7 +686,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
686
686
|
... on SwapCancelled {
|
|
687
687
|
...SwapCancelled
|
|
688
688
|
}
|
|
689
|
-
}`,[
|
|
689
|
+
}`,[m,ee]),ne=e(`fragment PaginatedUserSwapsResult on PaginatedUserSwapsResult {
|
|
690
690
|
__typename
|
|
691
691
|
items {
|
|
692
692
|
...SwapStatus
|
|
@@ -694,7 +694,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
694
694
|
pageInfo {
|
|
695
695
|
...PaginatedResultInfo
|
|
696
696
|
}
|
|
697
|
-
}`,[B,R]);var
|
|
697
|
+
}`,[B,R]);var ae=e(`fragment UserSupplyItem on UserSupplyItem {
|
|
698
698
|
__typename
|
|
699
699
|
id
|
|
700
700
|
reserve {
|
|
@@ -711,7 +711,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
711
711
|
}
|
|
712
712
|
isCollateral
|
|
713
713
|
createdAt
|
|
714
|
-
}`,[s,
|
|
714
|
+
}`,[s,A]),oe=e(`fragment UserBorrowItem on UserBorrowItem {
|
|
715
715
|
__typename
|
|
716
716
|
id
|
|
717
717
|
principal {
|
|
@@ -727,7 +727,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
727
727
|
...Reserve
|
|
728
728
|
}
|
|
729
729
|
createdAt
|
|
730
|
-
}`,[s,
|
|
730
|
+
}`,[s,A]),pe=e(`fragment UserSummary on UserSummary {
|
|
731
731
|
__typename
|
|
732
732
|
totalPositions
|
|
733
733
|
netBalance(currency: $currency) {
|
|
@@ -749,7 +749,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
749
749
|
...ExchangeAmount
|
|
750
750
|
}
|
|
751
751
|
lowestHealthFactor
|
|
752
|
-
}`,[d,
|
|
752
|
+
}`,[d,u,r]),at=e(`fragment UserRiskPremiumBreakdownItem on UserRiskPremiumBreakdownItem {
|
|
753
753
|
__typename
|
|
754
754
|
token {
|
|
755
755
|
...Erc20Token
|
|
@@ -771,7 +771,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
771
771
|
breakdown {
|
|
772
772
|
...UserRiskPremiumBreakdownItem
|
|
773
773
|
}
|
|
774
|
-
}`,[r,at]),
|
|
774
|
+
}`,[r,at]),_=e(`fragment UserPosition on UserPosition {
|
|
775
775
|
__typename
|
|
776
776
|
id
|
|
777
777
|
spoke {
|
|
@@ -822,7 +822,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
822
822
|
averageCollateralFactor {
|
|
823
823
|
...PercentNumber
|
|
824
824
|
}
|
|
825
|
-
}`,[i,r,d,
|
|
825
|
+
}`,[i,r,d,u,W,V,ot]),se=e(`fragment UserBalance on UserBalance {
|
|
826
826
|
__typename
|
|
827
827
|
id
|
|
828
828
|
info {
|
|
@@ -855,7 +855,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
855
855
|
lowestCollateralFactor: collateralFactor(metric: LOWEST) {
|
|
856
856
|
...PercentNumber
|
|
857
857
|
}
|
|
858
|
-
}`,[
|
|
858
|
+
}`,[w,y,S,u,r]),ie=e(`fragment UserSummaryHistoryItem on UserSummaryHistoryItem {
|
|
859
859
|
__typename
|
|
860
860
|
netBalance(currency: $currency) {
|
|
861
861
|
...ExchangeAmount
|
|
@@ -868,41 +868,41 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
868
868
|
}
|
|
869
869
|
healthFactor
|
|
870
870
|
date
|
|
871
|
-
}`,[
|
|
871
|
+
}`,[u]),$=e(`fragment ApySample on ApySample {
|
|
872
872
|
__typename
|
|
873
873
|
date
|
|
874
874
|
avgRate {
|
|
875
875
|
...PercentNumber
|
|
876
876
|
}
|
|
877
|
-
}`,[r]);var
|
|
877
|
+
}`,[r]);var cr=e(`query Hub($request: HubRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
878
878
|
value: hub(request: $request) {
|
|
879
879
|
...Hub
|
|
880
880
|
}
|
|
881
|
-
}`,[
|
|
881
|
+
}`,[T]),gr=e(`query Hubs($request: HubsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
882
882
|
value: hubs(request: $request) {
|
|
883
883
|
...Hub
|
|
884
884
|
}
|
|
885
|
-
}`,[
|
|
885
|
+
}`,[T]),lr=e(`query HubAssets($request: HubAssetsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
886
886
|
value: hubAssets(request: $request) {
|
|
887
887
|
...HubAsset
|
|
888
888
|
}
|
|
889
|
-
}`,[
|
|
889
|
+
}`,[E]);function ce(t){return new TextDecoder().decode(Uint8Array.from(atob(t),P=>P.charCodeAt(0)))}function D(t){return btoa(String.fromCharCode(...new TextEncoder().encode(t)))}var F="::";function Sr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid AssetId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`AssetId must be valid base64: ${t}`),t}function pt(t){return invariant(typeof t=="string"&&t.length>0,`Invalid HubId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubId must be valid base64: ${t}`),t}function Rr(t){return pt(D(`${t.chainId}${F}${t.address}`))}function qr(t){let P=ce(t),[p,a]=P.split(F);return {chainId:chainId(Number.parseInt(p,10)),address:evmAddress(a)}}function xr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid HubAssetId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`HubAssetId must be valid base64: ${t}`),t}function Ar(t){return t}function hr(t){let P=ce(t),[p,a,q]=P.split(F);return {chainId:chainId(Number.parseInt(p,10)),spoke:evmAddress(a),onChainId:q}}function Fr(t){return D(`${t.chainId}${F}${t.spoke}${F}${t.onChainId}`)}function Pr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid UserPositionId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserPositionId must be valid base64: ${t}`),t}function Ir(t){return invariant(isValidHexString(t),`Invalid SwapId: ${t}`),t}function wr(t){return invariant(isValidHexString(t),`Invalid SwapQuoteId: ${t}`),t}function Tr(t){return st(D(`${t.chainId}${F}${t.address}`))}function st(t){return invariant(typeof t=="string"&&t.length>0,`Invalid SpokeId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`SpokeId must be valid base64: ${t}`),t}function Er(t){return invariant(typeof t=="string"&&t.length>0,`Invalid UserBalanceId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBalanceId must be valid base64: ${t}`),t}function br(t){return invariant(typeof t=="string"&&t.length>0,`Invalid UserBorrowItemId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserBorrowItemId must be valid base64: ${t}`),t}function Cr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid UserSupplyItemId: ${t}`),invariant(/^[A-Za-z0-9+/]*={0,2}$/.test(t),`UserSupplyItemId must be valid base64: ${t}`),t}function vr(t){return invariant(typeof t=="string"&&t.length>0,`Invalid TokenInfoId: ${t}`),t}function Or(t){return isObject(t)&&"hubInput"in t&&t.hubInput!=null}function Hr(t){return isObject(t)&&"chainIds"in t&&t.chainIds!=null}function Br(t){return isObject(t)&&"spoke"in t&&t.spoke!=null}function _r(t){return isObject(t)&&"txHash"in t&&t.txHash!=null}var Qr=e(`query Chain($request: ChainRequest!) {
|
|
890
890
|
value: chain(request: $request) {
|
|
891
891
|
...Chain
|
|
892
892
|
}
|
|
893
|
-
}`,[
|
|
893
|
+
}`,[n]),Wr=e(`query Chains($request: ChainsRequest!) {
|
|
894
894
|
value: chains(request: $request) {
|
|
895
895
|
...Chain
|
|
896
896
|
}
|
|
897
|
-
}`,[
|
|
897
|
+
}`,[n]),Lr=e(`query HasProcessedKnownTransaction($request: HasProcessedKnownTransactionRequest!) {
|
|
898
898
|
value: hasProcessedKnownTransaction(request: $request)
|
|
899
|
-
}`),
|
|
899
|
+
}`),Mr=e(`query Health {
|
|
900
900
|
value: health
|
|
901
|
-
}`),
|
|
901
|
+
}`),Vr=e(`query ExchangeRate($request: ExchangeRateRequest!) {
|
|
902
902
|
value: exchangeRate(request: $request) {
|
|
903
903
|
...ExchangeAmount
|
|
904
904
|
}
|
|
905
|
-
}`,[
|
|
905
|
+
}`,[u]);var it=e(`fragment AssetPriceSample on AssetPriceSample {
|
|
906
906
|
__typename
|
|
907
907
|
date
|
|
908
908
|
price
|
|
@@ -912,10 +912,10 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
912
912
|
amount {
|
|
913
913
|
...DecimalNumber
|
|
914
914
|
}
|
|
915
|
-
|
|
915
|
+
highestApy {
|
|
916
916
|
...PercentNumber
|
|
917
917
|
}
|
|
918
|
-
|
|
918
|
+
lowestApy {
|
|
919
919
|
...PercentNumber
|
|
920
920
|
}
|
|
921
921
|
}`,[y,r]),mt=e(`fragment AssetBorrowSample on AssetBorrowSample {
|
|
@@ -924,10 +924,10 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
924
924
|
amount {
|
|
925
925
|
...DecimalNumber
|
|
926
926
|
}
|
|
927
|
-
|
|
927
|
+
highestApy {
|
|
928
928
|
...PercentNumber
|
|
929
929
|
}
|
|
930
|
-
|
|
930
|
+
lowestApy {
|
|
931
931
|
...PercentNumber
|
|
932
932
|
}
|
|
933
933
|
}`,[y,r]),yt=e(`fragment AssetAmountWithChange on AssetAmountWithChange {
|
|
@@ -938,7 +938,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
938
938
|
exchange(currency: $currency) {
|
|
939
939
|
...ExchangeAmountWithChange
|
|
940
940
|
}
|
|
941
|
-
}`,[
|
|
941
|
+
}`,[O,d]),ct=e(`fragment AssetSummary on AssetSummary {
|
|
942
942
|
__typename
|
|
943
943
|
totalSupplyCap {
|
|
944
944
|
...DecimalNumberWithChange
|
|
@@ -964,7 +964,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
964
964
|
averageSupplyApy: supplyApy(metric: AVERAGE) {
|
|
965
965
|
...PercentNumber
|
|
966
966
|
}
|
|
967
|
-
}`,[yt,
|
|
967
|
+
}`,[yt,O,r]),gt=e(`fragment Asset on Asset {
|
|
968
968
|
__typename
|
|
969
969
|
id
|
|
970
970
|
token {
|
|
@@ -976,103 +976,119 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
976
976
|
price(currency: $currency) {
|
|
977
977
|
...ExchangeAmountWithChange
|
|
978
978
|
}
|
|
979
|
-
}`,[l,ct,d]),
|
|
979
|
+
}`,[l,ct,d]),zr=e(`query Asset($request: AssetRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
980
980
|
value: asset(request: $request) {
|
|
981
981
|
...Asset
|
|
982
982
|
}
|
|
983
|
-
}`,[gt]),
|
|
983
|
+
}`,[gt]),Zr=e(`query AssetPriceHistory($request: AssetPriceHistoryRequest!) {
|
|
984
984
|
value: assetPriceHistory(request: $request) {
|
|
985
985
|
...AssetPriceSample
|
|
986
986
|
}
|
|
987
|
-
}`,[it]),
|
|
987
|
+
}`,[it]),Jr=e(`query AssetSupplyHistory($request: AssetSupplyHistoryRequest!) {
|
|
988
988
|
value: assetSupplyHistory(request: $request) {
|
|
989
989
|
...AssetSupplySample
|
|
990
990
|
}
|
|
991
|
-
}`,[ut]),
|
|
991
|
+
}`,[ut]),Xr=e(`query AssetBorrowHistory($request: AssetBorrowHistoryRequest!) {
|
|
992
992
|
value: assetBorrowHistory(request: $request) {
|
|
993
993
|
...AssetBorrowSample
|
|
994
994
|
}
|
|
995
|
-
}`,[mt])
|
|
995
|
+
}`,[mt]),lt=e(`fragment ProtocolHistorySample on ProtocolHistorySample {
|
|
996
|
+
__typename
|
|
997
|
+
date
|
|
998
|
+
deposits {
|
|
999
|
+
...ExchangeAmount
|
|
1000
|
+
}
|
|
1001
|
+
borrows {
|
|
1002
|
+
...ExchangeAmount
|
|
1003
|
+
}
|
|
1004
|
+
earnings {
|
|
1005
|
+
...ExchangeAmount
|
|
1006
|
+
}
|
|
1007
|
+
}`,[u]),jr=e(`query ProtocolHistory($request: ProtocolHistoryRequest!) {
|
|
1008
|
+
value: protocolHistory(request: $request) {
|
|
1009
|
+
...ProtocolHistorySample
|
|
1010
|
+
}
|
|
1011
|
+
}`,[lt]);var nn=e(`query BorrowApyHistory($request: BorrowApyHistoryRequest!) {
|
|
996
1012
|
value: borrowApyHistory(request: $request) {
|
|
997
|
-
...
|
|
1013
|
+
...ApySample
|
|
998
1014
|
}
|
|
999
|
-
}`,[
|
|
1015
|
+
}`,[$]),an=e(`query SupplyApyHistory($request: SupplyApyHistoryRequest!) {
|
|
1000
1016
|
value: supplyApyHistory(request: $request) {
|
|
1001
|
-
...
|
|
1017
|
+
...ApySample
|
|
1002
1018
|
}
|
|
1003
|
-
}`,[
|
|
1019
|
+
}`,[$]),on=e(`query Reserve($request: ReserveRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1004
1020
|
value: reserve(request: $request) {
|
|
1005
1021
|
...Reserve
|
|
1006
1022
|
}
|
|
1007
|
-
}`,[
|
|
1023
|
+
}`,[A]),pn=e(`query Reserves($request: ReservesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1008
1024
|
value: reserves(request: $request) {
|
|
1009
1025
|
...Reserve
|
|
1010
1026
|
}
|
|
1011
|
-
}`,[
|
|
1027
|
+
}`,[A]);var yn=e(`query Spoke($request: SpokeRequest!) {
|
|
1012
1028
|
value: spoke(request: $request) {
|
|
1013
1029
|
...Spoke
|
|
1014
1030
|
}
|
|
1015
|
-
}`,[i]),
|
|
1031
|
+
}`,[i]),cn=e(`query Spokes($request: SpokesRequest!) {
|
|
1016
1032
|
value: spokes(request: $request) {
|
|
1017
1033
|
...Spoke
|
|
1018
1034
|
}
|
|
1019
|
-
}`,[i]),
|
|
1035
|
+
}`,[i]),gn=e(`query SpokePositionManagers($request: SpokePositionManagersRequest!) {
|
|
1020
1036
|
value: spokePositionManagers(request: $request) {
|
|
1021
1037
|
...PaginatedSpokePositionManagerResult
|
|
1022
1038
|
}
|
|
1023
|
-
}`,[
|
|
1039
|
+
}`,[G]),ln=e(`query SpokeUserPositionManagers($request: SpokeUserPositionManagersRequest!) {
|
|
1024
1040
|
value: spokeUserPositionManagers(request: $request) {
|
|
1025
1041
|
...PaginatedSpokeUserPositionManagerResult
|
|
1026
1042
|
}
|
|
1027
|
-
}`,[
|
|
1043
|
+
}`,[Y]);var Rn=e(`query SwapQuote($request: SwapQuoteRequest!, $currency: Currency!) {
|
|
1028
1044
|
value: swapQuote(request: $request) {
|
|
1029
1045
|
...SwapQuote
|
|
1030
1046
|
}
|
|
1031
|
-
}`,[
|
|
1047
|
+
}`,[C]),qn=e(`query SwappableTokens($request: SwappableTokensRequest!) {
|
|
1032
1048
|
value: swappableTokens(request: $request) {
|
|
1033
1049
|
...Token
|
|
1034
1050
|
}
|
|
1035
|
-
}`,[
|
|
1051
|
+
}`,[Q]),xn=e(`query PrepareSwap($request: PrepareSwapRequest!, $currency: Currency!) {
|
|
1036
1052
|
value: prepareSwap(request: $request) {
|
|
1037
1053
|
...PrepareSwapResult
|
|
1038
1054
|
}
|
|
1039
|
-
}`,[
|
|
1055
|
+
}`,[J]),An=e(`query SwapStatus($request: SwapStatusRequest!, $currency: Currency!) {
|
|
1040
1056
|
value: swapStatus(request: $request) {
|
|
1041
1057
|
...SwapStatus
|
|
1042
1058
|
}
|
|
1043
|
-
}`,[B]),
|
|
1059
|
+
}`,[B]),hn=e(`query Swap($request: SwapRequest!) {
|
|
1044
1060
|
value: swap(request: $request) {
|
|
1045
1061
|
...SwapExecutionPlan
|
|
1046
1062
|
}
|
|
1047
|
-
}`,[
|
|
1063
|
+
}`,[j]),Fn=e(`query PrepareSwapCancel($request: PrepareSwapCancelRequest!) {
|
|
1048
1064
|
value: prepareSwapCancel(request: $request) {
|
|
1049
1065
|
...PrepareSwapCancelResult
|
|
1050
1066
|
}
|
|
1051
|
-
}`,[
|
|
1067
|
+
}`,[te]),Pn=e(`query CancelSwap($request: CancelSwapRequest!) {
|
|
1052
1068
|
value: cancelSwap(request: $request) {
|
|
1053
1069
|
...CancelSwapExecutionPlan
|
|
1054
1070
|
}
|
|
1055
|
-
}`,[
|
|
1071
|
+
}`,[re]),In=e(`query UserSwaps($request: UserSwapsRequest!, $currency: Currency!) {
|
|
1056
1072
|
value: userSwaps(request: $request) {
|
|
1057
1073
|
...PaginatedUserSwapsResult
|
|
1058
1074
|
}
|
|
1059
|
-
}`,[
|
|
1075
|
+
}`,[ne]);var bn=e(`query Borrow($request: BorrowRequest!) {
|
|
1060
1076
|
value: borrow(request: $request) {
|
|
1061
1077
|
...ExecutionPlan
|
|
1062
1078
|
}
|
|
1063
|
-
}`,[b]),
|
|
1079
|
+
}`,[b]),Cn=e(`query Supply($request: SupplyRequest!) {
|
|
1064
1080
|
value: supply(request: $request) {
|
|
1065
1081
|
...ExecutionPlan
|
|
1066
1082
|
}
|
|
1067
|
-
}`,[b]),
|
|
1083
|
+
}`,[b]),vn=e(`query Repay($request: RepayRequest!) {
|
|
1068
1084
|
value: repay(request: $request) {
|
|
1069
1085
|
...ExecutionPlan
|
|
1070
1086
|
}
|
|
1071
|
-
}`,[b]),
|
|
1087
|
+
}`,[b]),Un=e(`query Withdraw($request: WithdrawRequest!) {
|
|
1072
1088
|
value: withdraw(request: $request) {
|
|
1073
1089
|
...ExecutionPlan
|
|
1074
1090
|
}
|
|
1075
|
-
}`,[b]),
|
|
1091
|
+
}`,[b]),dt=e(`fragment LiquidatePositionExecutionPlan on LiquidatePositionExecutionPlan {
|
|
1076
1092
|
__typename
|
|
1077
1093
|
... on TransactionRequest {
|
|
1078
1094
|
...TransactionRequest
|
|
@@ -1083,27 +1099,27 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1083
1099
|
... on InsufficientBalanceError {
|
|
1084
1100
|
...InsufficientBalanceError
|
|
1085
1101
|
}
|
|
1086
|
-
}`,[
|
|
1102
|
+
}`,[m,H,h]),kn=e(`query LiquidatePosition($request: LiquidatePositionRequest!) {
|
|
1087
1103
|
value: liquidatePosition(request: $request) {
|
|
1088
1104
|
...LiquidatePositionExecutionPlan
|
|
1089
1105
|
}
|
|
1090
|
-
}`,[
|
|
1106
|
+
}`,[dt]),On=e(`query SetSpokeUserPositionManager($request: SetSpokeUserPositionManagerRequest!) {
|
|
1091
1107
|
value: setSpokeUserPositionManager(request: $request) {
|
|
1092
1108
|
...TransactionRequest
|
|
1093
1109
|
}
|
|
1094
|
-
}`,[
|
|
1110
|
+
}`,[m]),Hn=e(`query SetUserSuppliesAsCollateral($request: SetUserSuppliesAsCollateralRequest!) {
|
|
1095
1111
|
value: setUserSuppliesAsCollateral(request: $request) {
|
|
1096
1112
|
...TransactionRequest
|
|
1097
1113
|
}
|
|
1098
|
-
}`,[
|
|
1114
|
+
}`,[m]),Bn=e(`query RenounceSpokeUserPositionManager($request: RenounceSpokeUserPositionManagerRequest!) {
|
|
1099
1115
|
value: renounceSpokeUserPositionManager(request: $request) {
|
|
1100
1116
|
...TransactionRequest
|
|
1101
1117
|
}
|
|
1102
|
-
}`,[
|
|
1118
|
+
}`,[m]),_n=e(`query UpdateUserPositionConditions($request: UpdateUserPositionConditionsRequest!) {
|
|
1103
1119
|
value: updateUserPositionConditions(request: $request) {
|
|
1104
1120
|
...TransactionRequest
|
|
1105
1121
|
}
|
|
1106
|
-
}`,[
|
|
1122
|
+
}`,[m]),ft=e(`fragment PreviewUserPosition on PreviewUserPosition {
|
|
1107
1123
|
__typename
|
|
1108
1124
|
id
|
|
1109
1125
|
healthFactor {
|
|
@@ -1121,11 +1137,11 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1121
1137
|
netBalance(currency: $currency) {
|
|
1122
1138
|
...ExchangeAmountValueVariation
|
|
1123
1139
|
}
|
|
1124
|
-
}`,[
|
|
1140
|
+
}`,[K,L,M]),$n=e(`query Preview($request: PreviewRequest!, $currency: Currency! = USD) {
|
|
1125
1141
|
value: preview(request: $request) {
|
|
1126
1142
|
...PreviewUserPosition
|
|
1127
1143
|
}
|
|
1128
|
-
}`,[
|
|
1144
|
+
}`,[ft]),ge=e(`fragment PercentNumberChangeSnapshot on PercentNumberChangeSnapshot {
|
|
1129
1145
|
__typename
|
|
1130
1146
|
before {
|
|
1131
1147
|
...PercentNumber
|
|
@@ -1133,7 +1149,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1133
1149
|
after {
|
|
1134
1150
|
...PercentNumber
|
|
1135
1151
|
}
|
|
1136
|
-
}`,[r]),
|
|
1152
|
+
}`,[r]),St=e(`fragment BorrowActivity on BorrowActivity {
|
|
1137
1153
|
__typename
|
|
1138
1154
|
id
|
|
1139
1155
|
user
|
|
@@ -1151,7 +1167,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1151
1167
|
chain {
|
|
1152
1168
|
...Chain
|
|
1153
1169
|
}
|
|
1154
|
-
}`,[i,s,f,
|
|
1170
|
+
}`,[i,s,f,n]),Rt=e(`fragment SupplyActivity on SupplyActivity {
|
|
1155
1171
|
__typename
|
|
1156
1172
|
id
|
|
1157
1173
|
user
|
|
@@ -1169,7 +1185,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1169
1185
|
chain {
|
|
1170
1186
|
...Chain
|
|
1171
1187
|
}
|
|
1172
|
-
}`,[i,s,f,
|
|
1188
|
+
}`,[i,s,f,n]),qt=e(`fragment WithdrawActivity on WithdrawActivity {
|
|
1173
1189
|
__typename
|
|
1174
1190
|
id
|
|
1175
1191
|
user
|
|
@@ -1187,7 +1203,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1187
1203
|
chain {
|
|
1188
1204
|
...Chain
|
|
1189
1205
|
}
|
|
1190
|
-
}`,[i,s,f,
|
|
1206
|
+
}`,[i,s,f,n]),xt=e(`fragment RepayActivity on RepayActivity {
|
|
1191
1207
|
__typename
|
|
1192
1208
|
id
|
|
1193
1209
|
user
|
|
@@ -1205,7 +1221,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1205
1221
|
chain {
|
|
1206
1222
|
...Chain
|
|
1207
1223
|
}
|
|
1208
|
-
}`,[i,s,f,
|
|
1224
|
+
}`,[i,s,f,n]),At=e(`fragment LiquidatedActivity on LiquidatedActivity {
|
|
1209
1225
|
__typename
|
|
1210
1226
|
id
|
|
1211
1227
|
user
|
|
@@ -1230,7 +1246,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1230
1246
|
chain {
|
|
1231
1247
|
...Chain
|
|
1232
1248
|
}
|
|
1233
|
-
}`,[i,s,f,
|
|
1249
|
+
}`,[i,s,f,n]),ht=e(`fragment UsingAsCollateralActivity on UsingAsCollateralActivity {
|
|
1234
1250
|
__typename
|
|
1235
1251
|
id
|
|
1236
1252
|
user
|
|
@@ -1246,7 +1262,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1246
1262
|
chain {
|
|
1247
1263
|
...Chain
|
|
1248
1264
|
}
|
|
1249
|
-
}`,[i,f,
|
|
1265
|
+
}`,[i,f,n]),Ft=e(`fragment UpdatedDynamicConfigActivity on UpdatedDynamicConfigActivity {
|
|
1250
1266
|
__typename
|
|
1251
1267
|
id
|
|
1252
1268
|
user
|
|
@@ -1270,7 +1286,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1270
1286
|
chain {
|
|
1271
1287
|
...Chain
|
|
1272
1288
|
}
|
|
1273
|
-
}`,[i,f,
|
|
1289
|
+
}`,[i,f,ge,n]),Pt=e(`fragment UpdatedRiskPremiumActivity on UpdatedRiskPremiumActivity {
|
|
1274
1290
|
__typename
|
|
1275
1291
|
id
|
|
1276
1292
|
user
|
|
@@ -1285,7 +1301,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1285
1301
|
chain {
|
|
1286
1302
|
...Chain
|
|
1287
1303
|
}
|
|
1288
|
-
}`,[i,
|
|
1304
|
+
}`,[i,ge,n]),It=e(`fragment ActivityItem on ActivityItem {
|
|
1289
1305
|
__typename
|
|
1290
1306
|
... on BorrowActivity {
|
|
1291
1307
|
...BorrowActivity
|
|
@@ -1311,7 +1327,7 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1311
1327
|
... on UpdatedRiskPremiumActivity {
|
|
1312
1328
|
...UpdatedRiskPremiumActivity
|
|
1313
1329
|
}
|
|
1314
|
-
}`,[
|
|
1330
|
+
}`,[St,Rt,qt,xt,At,ht,Ft,Pt]),wt=e(`fragment PaginatedActivitiesResult on PaginatedActivitiesResult {
|
|
1315
1331
|
__typename
|
|
1316
1332
|
items {
|
|
1317
1333
|
...ActivityItem
|
|
@@ -1319,37 +1335,37 @@ import {initGraphQLTada}from'gql.tada';import {invariant,evmAddress,chainId,isVa
|
|
|
1319
1335
|
pageInfo {
|
|
1320
1336
|
...PaginatedResultInfo
|
|
1321
1337
|
}
|
|
1322
|
-
}`,[
|
|
1338
|
+
}`,[It,R]),Dn=e(`query Activities($request: ActivitiesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1323
1339
|
value: activities(request: $request) {
|
|
1324
1340
|
...PaginatedActivitiesResult
|
|
1325
1341
|
}
|
|
1326
|
-
}`,[
|
|
1342
|
+
}`,[wt]);var Ln=e(`query UserSupplies($request: UserSuppliesRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1327
1343
|
value: userSupplies(request: $request) {
|
|
1328
1344
|
...UserSupplyItem
|
|
1329
1345
|
}
|
|
1330
|
-
}`,[
|
|
1346
|
+
}`,[ae]),Mn=e(`query UserBorrows($request: UserBorrowsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1331
1347
|
value: userBorrows(request: $request) {
|
|
1332
1348
|
...UserBorrowItem
|
|
1333
1349
|
}
|
|
1334
|
-
}`,[
|
|
1350
|
+
}`,[oe]),Vn=e(`query UserSummary($request: UserSummaryRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1335
1351
|
value: userSummary(request: $request) {
|
|
1336
1352
|
...UserSummary
|
|
1337
1353
|
}
|
|
1338
|
-
}`,[
|
|
1354
|
+
}`,[pe]),Kn=e(`query UserPositions($request: UserPositionsRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1339
1355
|
value: userPositions(request: $request) {
|
|
1340
1356
|
...UserPosition
|
|
1341
1357
|
}
|
|
1342
|
-
}`,[
|
|
1358
|
+
}`,[_]),Gn=e(`query UserPosition($request: UserPositionRequest!, $currency: Currency!, $timeWindow: TimeWindow!) {
|
|
1343
1359
|
value: userPosition(request: $request) {
|
|
1344
1360
|
...UserPosition
|
|
1345
1361
|
}
|
|
1346
|
-
}`,[
|
|
1362
|
+
}`,[_]),Yn=e(`query UserBalances($request: UserBalancesRequest!, $currency: Currency!) {
|
|
1347
1363
|
value: userBalances(request: $request) {
|
|
1348
1364
|
...UserBalance
|
|
1349
1365
|
}
|
|
1350
|
-
}`,[
|
|
1366
|
+
}`,[se]),zn=e(`query UserSummaryHistory($request: UserSummaryHistoryRequest!, $currency: Currency!) {
|
|
1351
1367
|
value: userSummaryHistory(request: $request) {
|
|
1352
1368
|
...UserSummaryHistoryItem
|
|
1353
1369
|
}
|
|
1354
|
-
}`,[
|
|
1370
|
+
}`,[ie]);export{Dn as ActivitiesQuery,It as ActivityItemFragment,Ae as ActivityType,he as ApyMetric,$ as ApySampleFragment,yt as AssetAmountWithChangeFragment,Xr as AssetBorrowHistoryQuery,mt as AssetBorrowSampleFragment,gt as AssetFragment,Zr as AssetPriceHistoryQuery,it as AssetPriceSampleFragment,zr as AssetQuery,ct as AssetSummaryFragment,Jr as AssetSupplyHistoryQuery,ut as AssetSupplySampleFragment,St as BorrowActivityFragment,nn as BorrowApyHistoryQuery,bn as BorrowQuery,re as CancelSwapExecutionPlanFragment,Pn as CancelSwapQuery,rt as CancelSwapTypeDefinitionFragment,nt as CancelSwapTypedDataFragment,n as ChainFragment,Qr as ChainQuery,Re as ChainsFilter,Wr as ChainsQuery,Fe as Currency,y as DecimalNumberFragment,O as DecimalNumberWithChangeFragment,U as DomainDataFragment,s as Erc20AmountFragment,H as Erc20ApprovalRequiredFragment,l as Erc20TokenFragment,u as ExchangeAmountFragment,M as ExchangeAmountValueVariationFragment,d as ExchangeAmountWithChangeFragment,Vr as ExchangeRateQuery,b as ExecutionPlanFragment,Lr as HasProcessedKnownTransactionQuery,ve as HealthFactorErrorFragment,K as HealthFactorResultFragment,Ce as HealthFactorVariationFragment,V as HealthFactorWithChangeFragment,Mr as HealthQuery,E as HubAssetFragment,Oe as HubAssetSettingsFragment,qe as HubAssetStatusType,ke as HubAssetSummaryFragment,He as HubAssetUserStateFragment,lr as HubAssetsQuery,xe as HubAssetsRequestOrderBy,T as HubFragment,cr as HubQuery,Ue as HubSummaryFragment,gr as HubsQuery,h as InsufficientBalanceErrorFragment,dt as LiquidatePositionExecutionPlanFragment,kn as LiquidatePositionQuery,At as LiquidatedActivityFragment,be as NativeAmountFragment,N as NativeTokenFragment,Se as OperationType,le as OrderDirection,de as PageSize,wt as PaginatedActivitiesResultFragment,R as PaginatedResultInfoFragment,G as PaginatedSpokePositionManagerResultFragment,Y as PaginatedSpokeUserPositionManagerResultFragment,ne as PaginatedUserSwapsResultFragment,ge as PercentNumberChangeSnapshotFragment,r as PercentNumberFragment,L as PercentNumberVariationFragment,W as PercentNumberWithChangeFragment,Le as PermitMessageDataFragment,Yt as PermitTypedDataQuery,Me as PermitTypedDataResponseFragment,Ve as PreContractActionRequiredFragment,Fn as PrepareSwapCancelQuery,te as PrepareSwapCancelResultFragment,xn as PrepareSwapQuery,J as PrepareSwapResultFragment,$n as PreviewQuery,ft as PreviewUserPositionFragment,jr as ProtocolHistoryQuery,lt as ProtocolHistorySampleFragment,Bn as RenounceSpokeUserPositionManagerQuery,xt as RepayActivityFragment,vn as RepayQuery,A as ReserveFragment,f as ReserveInfoFragment,on as ReserveQuery,$e as ReserveSettingsFragment,De as ReserveStatusFragment,Ne as ReserveSummaryFragment,Qe as ReserveUserStateFragment,pn as ReservesQuery,Pe as ReservesRequestFilter,On as SetSpokeUserPositionManagerQuery,Hn as SetUserSuppliesAsCollateralQuery,i as SpokeFragment,Be as SpokePositionManagerFragment,gn as SpokePositionManagersQuery,yn as SpokeQuery,_e as SpokeUserPositionManagerFragment,ln as SpokeUserPositionManagersQuery,cn as SpokesQuery,Rt as SupplyActivityFragment,an as SupplyApyHistoryQuery,Cn as SupplyQuery,Je as SwapApprovalRequiredFragment,Ye as SwapByIntentFragment,Ge as SwapByIntentTypeDefinitionFragment,z as SwapByIntentTypedDataFragment,ze as SwapByIntentWithApprovalRequiredFragment,Ze as SwapByTransactionFragment,ee as SwapCancelledFragment,j as SwapExecutionPlanFragment,Xe as SwapExpiredFragment,tt as SwapFulfilledFragment,Ie as SwapKind,je as SwapOpenFragment,et as SwapPendingSignatureFragment,hn as SwapQuery,Ke as SwapQuoteCostsFragment,C as SwapQuoteFragment,Rn as SwapQuoteQuery,Z as SwapReceiptFragment,we as SwapStatusFilter,B as SwapStatusFragment,An as SwapStatusQuery,X as SwapTransactionRequestFragment,qn as SwappableTokensQuery,fe as TimeWindow,S as TokenAmountFragment,Te as TokenCategory,Q as TokenFragment,w as TokenInfoFragment,m as TransactionRequestFragment,We as TypeDefinitionFragment,v as TypeFieldFragment,_n as UpdateUserPositionConditionsQuery,Ft as UpdatedDynamicConfigActivityFragment,Pt as UpdatedRiskPremiumActivityFragment,se as UserBalanceFragment,Yn as UserBalancesQuery,oe as UserBorrowItemFragment,Mn as UserBorrowsQuery,_ as UserPositionFragment,Gn as UserPositionQuery,ot as UserPositionRiskPremiumFragment,Kn as UserPositionsQuery,at as UserRiskPremiumBreakdownItemFragment,pe as UserSummaryFragment,ie as UserSummaryHistoryItemFragment,zn as UserSummaryHistoryQuery,Vn as UserSummaryQuery,Ln as UserSuppliesQuery,ae as UserSupplyItemFragment,In as UserSwapsQuery,ht as UsingAsCollateralActivityFragment,qt as WithdrawActivityFragment,Un as WithdrawQuery,Sr as assetId,qr as decodeHubId,hr as decodeReserveId,Rr as encodeHubId,Fr as encodeReserveId,Tr as encodeSpokeId,e as graphql,xr as hubAssetId,pt as hubId,Hr as isChainIdsVariant,Or as isHubInputVariant,Br as isSpokeInputVariant,_r as isTxHashInputVariant,Ar as reserveId,st as spokeId,Ir as swapId,wr as swapQuoteId,vr as tokenInfoId,Er as userBalanceId,br as userBorrowItemId,Pr as userPositionId,Cr as userSupplyItemId};//# sourceMappingURL=index.js.map
|
|
1355
1371
|
//# sourceMappingURL=index.js.map
|