Skip to content

Commit 4224728

Browse files
committed
fix: linting issue
1 parent 8efd508 commit 4224728

File tree

4 files changed

+100
-40
lines changed

4 files changed

+100
-40
lines changed

biome.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@
4747
}
4848
},
4949
"overrides": [
50+
{
51+
"includes": ["packages/graphql/src/graphql-env.d.ts"],
52+
"linter": {
53+
"enabled": false
54+
},
55+
"formatter": {
56+
"enabled": false
57+
}
58+
},
5059
{
5160
"includes": ["**/*.tsx"],
5261
"linter": {

packages/graphql/schema.graphql

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,16 +354,30 @@ type InsufficientBalanceError {
354354
}
355355

356356
input LiquidatePositionDebtAmount @oneOf {
357+
"""Exact amount"""
357358
exact: BigDecimal
359+
360+
"""The most you can liquidate"""
358361
max: AlwaysTrue
359362
}
360363

361364
input LiquidatePositionRequest {
365+
"""The spoke"""
362366
spoke: SpokeInput!
367+
368+
"""The collateral reserve id"""
363369
collateral: ReserveId!
370+
371+
"""The debt reserve id"""
364372
debt: ReserveId!
373+
374+
"""The amount to liquidate"""
365375
amount: LiquidatePositionDebtAmount!
376+
377+
"""The person liquidating the position"""
366378
liquidator: EvmAddress!
379+
380+
"""The user to liquidate"""
367381
user: EvmAddress!
368382
}
369383

@@ -618,9 +632,14 @@ type Query {
618632
}
619633

620634
input RenounceSpokeUserPositionManagerRequest {
635+
"""The spoke"""
621636
spoke: SpokeInput!
622-
managing: EvmAddress!
637+
638+
"""The address to remove as a position manager"""
623639
manager: EvmAddress!
640+
641+
"""The address to remove `manager` as position manager"""
642+
managing: EvmAddress!
624643
}
625644

626645
type RepayActivity {
@@ -774,16 +793,37 @@ input ReservesRequestQuery @oneOf {
774793
}
775794

776795
input SetSpokeUserPositionManagerRequest {
796+
"""The spoke"""
777797
spoke: SpokeInput!
798+
799+
"""The address to become the position manager"""
778800
manager: EvmAddress!
801+
802+
"""Approve or remove the manager"""
779803
approve: Boolean!
804+
805+
"""The user to set the position `manager` for"""
806+
user: EvmAddress!
807+
808+
"""The signature"""
809+
signature: ERC712Signature
780810
}
781811

782812
input SetUserSupplyAsCollateralRequest {
813+
"""The reserve input"""
783814
reserve: ReserveInput!
784-
user: EvmAddress!
815+
816+
"""The user sending the transaction (normally the user's wallet address)"""
817+
sender: EvmAddress!
818+
819+
"""
820+
If not supplied, this will use `sender` which is the normal route - you can only use on
821+
`onBehalfOf` if you're a position manager for that user
822+
"""
823+
onBehalfOf: EvmAddress
824+
825+
"""If you want to enable the collateral or disable"""
785826
enableCollateral: Boolean!
786-
signature: ERC712Signature
787827
}
788828

789829
scalar Signature
@@ -1079,8 +1119,14 @@ type TypeField {
10791119
}
10801120

10811121
input UpdateUserDynamicConfigRequest {
1122+
"""The spoke"""
10821123
spoke: SpokeInput!
1083-
user: EvmAddress!
1124+
1125+
"""The user sending the transaction (normally the user's wallet address)"""
1126+
sender: EvmAddress!
1127+
1128+
"""If not supplied, this will use `sender` which is the normal route"""
1129+
onBehalfOf: EvmAddress
10841130
}
10851131

10861132
input UpdateUserRiskPremiumRequest {

packages/graphql/src/fragments/misc.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ export const HasProcessedKnownTransactionQuery = graphql(
88
value: hasProcessedKnownTransaction(request: $request)
99
}`,
1010
);
11-
export type HasProcessedKnownTransactionRequest = RequestOf<typeof HasProcessedKnownTransactionQuery>;
11+
export type HasProcessedKnownTransactionRequest = RequestOf<
12+
typeof HasProcessedKnownTransactionQuery
13+
>;

0 commit comments

Comments
 (0)