Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/client/src/actions/spokes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function spokePositionManagers(
* chainId: chainId(1),
* address: evmAddress('0x878...'),
* },
* user: evmAddress('0x123...'),
* userAddress: evmAddress('0x123...'),
* });
* ```
*
Expand Down
7 changes: 4 additions & 3 deletions packages/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,8 @@ input SpokePositionManagersRequest {
}

type SpokePositionManger {
name: String
address: EvmAddress!
active: Boolean!
}

input SpokeTokenInput {
Expand All @@ -1023,14 +1023,15 @@ input SpokeTokenInput {

input SpokeUserPositionManagersRequest {
spoke: SpokeInput!
userAddress: EvmAddress!
pageSize: PageSize!
cursor: Cursor
}

type SpokeUserPositionManger {
name: String
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add column to DB, make it nullable, make this return 'Unknown'

address: EvmAddress!
enabledAt: DateTime!
approved: Boolean!
active: Boolean!
}

input SpokesRequest @oneOf {
Expand Down
6 changes: 3 additions & 3 deletions packages/graphql/src/fragments/spoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const SpokePositionManagerFragment = graphql(
`fragment SpokePositionManager on SpokePositionManger {
__typename
address
name
active
}`,
);

Expand Down Expand Up @@ -60,8 +60,8 @@ export const SpokeUserPositionManagerFragment = graphql(
`fragment SpokeUserPositionManager on SpokeUserPositionManger {
__typename
address
enabledAt
name
approved
active
}`,
);

Expand Down
6 changes: 3 additions & 3 deletions packages/graphql/src/graphql-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ export type introspection_types = {
'SpokeConfig': { kind: 'OBJECT'; name: 'SpokeConfig'; fields: { 'active': { name: 'active'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; }; };
'SpokeInput': { kind: 'INPUT_OBJECT'; name: 'SpokeInput'; isOneOf: false; inputFields: [{ name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'chainId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ChainId'; ofType: null; }; }; defaultValue: null }]; };
'SpokePositionManagersRequest': { kind: 'INPUT_OBJECT'; name: 'SpokePositionManagersRequest'; isOneOf: false; inputFields: [{ name: 'spoke'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'SpokeInput'; ofType: null; }; }; defaultValue: null }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: null }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; };
'SpokePositionManger': { kind: 'OBJECT'; name: 'SpokePositionManger'; fields: { 'address': { name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; }; };
'SpokePositionManger': { kind: 'OBJECT'; name: 'SpokePositionManger'; fields: { 'active': { name: 'active'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'address': { name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; }; };
'SpokeTokenInput': { kind: 'INPUT_OBJECT'; name: 'SpokeTokenInput'; isOneOf: false; inputFields: [{ name: 'spoke'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'token'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'chainId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ChainId'; ofType: null; }; }; defaultValue: null }]; };
'SpokeUserPositionManagersRequest': { kind: 'INPUT_OBJECT'; name: 'SpokeUserPositionManagersRequest'; isOneOf: false; inputFields: [{ name: 'spoke'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'SpokeInput'; ofType: null; }; }; defaultValue: null }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: null }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; };
'SpokeUserPositionManger': { kind: 'OBJECT'; name: 'SpokeUserPositionManger'; fields: { 'address': { name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'enabledAt': { name: 'enabledAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; }; };
'SpokeUserPositionManagersRequest': { kind: 'INPUT_OBJECT'; name: 'SpokeUserPositionManagersRequest'; isOneOf: false; inputFields: [{ name: 'spoke'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'SpokeInput'; ofType: null; }; }; defaultValue: null }, { name: 'userAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'pageSize'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'PageSize'; ofType: null; }; }; defaultValue: null }, { name: 'cursor'; type: { kind: 'SCALAR'; name: 'Cursor'; ofType: null; }; defaultValue: null }]; };
'SpokeUserPositionManger': { kind: 'OBJECT'; name: 'SpokeUserPositionManger'; fields: { 'active': { name: 'active'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'address': { name: 'address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; } }; 'approved': { name: 'approved'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; }; };
'SpokesRequest': { kind: 'INPUT_OBJECT'; name: 'SpokesRequest'; isOneOf: true; inputFields: [{ name: 'hub'; type: { kind: 'INPUT_OBJECT'; name: 'HubInput'; ofType: null; }; defaultValue: null }, { name: 'chainIds'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ChainId'; ofType: null; }; }; }; defaultValue: null }]; };
'String': unknown;
'SupplyAPYHistoryRequest': { kind: 'INPUT_OBJECT'; name: 'SupplyAPYHistoryRequest'; isOneOf: false; inputFields: [{ name: 'spoke'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'SpokeInput'; ofType: null; }; }; defaultValue: null }, { name: 'reserve'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ReserveId'; ofType: null; }; }; defaultValue: null }, { name: 'window'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'TimeWindow'; ofType: null; }; }; defaultValue: null }]; };
Expand Down
24 changes: 15 additions & 9 deletions packages/graphql/src/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3570,15 +3570,18 @@
"name": "SpokePositionManger",
"fields": [
{
"name": "name",
"name": "address",
"type": {
"kind": "SCALAR",
"name": "Any"
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Any"
}
},
"args": []
},
{
"name": "address",
"name": "active",
"type": {
"kind": "NON_NULL",
"ofType": {
Expand All @@ -3596,15 +3599,18 @@
"name": "SpokeUserPositionManger",
"fields": [
{
"name": "name",
"name": "address",
"type": {
"kind": "SCALAR",
"name": "Any"
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Any"
}
},
"args": []
},
{
"name": "address",
"name": "approved",
"type": {
"kind": "NON_NULL",
"ofType": {
Expand All @@ -3615,7 +3621,7 @@
"args": []
},
{
"name": "enabledAt",
"name": "active",
"type": {
"kind": "NON_NULL",
"ofType": {
Expand Down