Skip to content

Commit

Permalink
[sdk-core] chore: change out the graph's hosted endpoints used in ci/…
Browse files Browse the repository at this point in the history
…cd (#1984)

* chore: change out the graph's hosted endpoints used in ci/cd

* chore: fetch latest schema (no effect on sdk-core version)
  • Loading branch information
kasparkallas authored Jul 4, 2024
1 parent 60dc875 commit 635bb8a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
5 changes: 2 additions & 3 deletions packages/sdk-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@
"generate:graphql-types": "graphql-codegen --config subgraph-codegen.yml",
"generate-graphql-schema": "yarn generate-graphql-schema:v1",
"generate-graphql-schema:local": "get-graphql-schema http://localhost:8000/subgraphs/name/superfluid-test > src/subgraph/schema.graphql",
"generate-graphql-schema:v1": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-v1-optimism-sepolia > src/subgraph/schema.graphql",
"generate-graphql-schema:dev": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-dev-optimism-sepolia > src/subgraph/schema.graphql",
"generate-graphql-schema:feature": "get-graphql-schema https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-feature-matic > src/subgraph/schema.graphql",
"generate-graphql-schema:v1": "get-graphql-schema https://subgraph-endpoints.superfluid.dev/optimism-mainnet/protocol-v1 > src/subgraph/schema.graphql",
"generate-graphql-schema:dev": "get-graphql-schema https://subgraph-endpoints.superfluid.dev/optimism-sepolia/protocol-v1 > src/subgraph/schema.graphql",
"cloc": "sh tasks/cloc.sh"
},
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/src/subgraph/.graphqlconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"extensions": {
"endpoints": {
"Default GraphQL Endpoint": {
"url": "https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-dev-optimism-sepolia",
"url": "https://subgraph-endpoints.superfluid.dev/optimism-mainnet/protocol-v1",
"headers": {
"user-agent": "JS GraphQL"
},
Expand Down
37 changes: 29 additions & 8 deletions packages/sdk-core/src/subgraph/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ type _Block_ {

"""Integer representation of the timestamp stored in blocks for the chain"""
timestamp: Int

"""The hash of the parent block"""
parentHash: Bytes
}

"""The type for the top-level _meta field"""
Expand Down Expand Up @@ -176,6 +173,8 @@ type AccountTokenSnapshot {

"""
id: ID!
createdAtTimestamp: BigInt!
createdAtBlockNumber: BigInt!
updatedAtTimestamp: BigInt!
updatedAtBlockNumber: BigInt!

Expand Down Expand Up @@ -419,6 +418,22 @@ input AccountTokenSnapshot_filter {
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
createdAtTimestamp: BigInt
createdAtTimestamp_not: BigInt
createdAtTimestamp_gt: BigInt
createdAtTimestamp_lt: BigInt
createdAtTimestamp_gte: BigInt
createdAtTimestamp_lte: BigInt
createdAtTimestamp_in: [BigInt!]
createdAtTimestamp_not_in: [BigInt!]
createdAtBlockNumber: BigInt
createdAtBlockNumber_not: BigInt
createdAtBlockNumber_gt: BigInt
createdAtBlockNumber_lt: BigInt
createdAtBlockNumber_gte: BigInt
createdAtBlockNumber_lte: BigInt
createdAtBlockNumber_in: [BigInt!]
createdAtBlockNumber_not_in: [BigInt!]
updatedAtTimestamp: BigInt
updatedAtTimestamp_not: BigInt
updatedAtTimestamp_gt: BigInt
Expand Down Expand Up @@ -772,6 +787,8 @@ input AccountTokenSnapshot_filter {

enum AccountTokenSnapshot_orderBy {
id
createdAtTimestamp
createdAtBlockNumber
updatedAtTimestamp
updatedAtBlockNumber
isLiquidationEstimateOptimistic
Expand Down Expand Up @@ -1546,6 +1563,8 @@ enum AccountTokenSnapshotLog_orderBy {
token__underlyingAddress
accountTokenSnapshot
accountTokenSnapshot__id
accountTokenSnapshot__createdAtTimestamp
accountTokenSnapshot__createdAtBlockNumber
accountTokenSnapshot__updatedAtTimestamp
accountTokenSnapshot__updatedAtBlockNumber
accountTokenSnapshot__isLiquidationEstimateOptimistic
Expand Down Expand Up @@ -1586,11 +1605,6 @@ enum AccountTokenSnapshotLog_orderBy {
accountTokenSnapshot__totalAmountTransferredUntilUpdatedAt
}

enum Aggregation_interval {
hour
day
}

type AgreementClassRegisteredEvent implements Event {
id: ID!
transactionHash: Bytes!
Expand Down Expand Up @@ -5371,6 +5385,8 @@ enum FlowOperator_orderBy {
token__underlyingAddress
accountTokenSnapshot
accountTokenSnapshot__id
accountTokenSnapshot__createdAtTimestamp
accountTokenSnapshot__createdAtBlockNumber
accountTokenSnapshot__updatedAtTimestamp
accountTokenSnapshot__updatedAtBlockNumber
accountTokenSnapshot__isLiquidationEstimateOptimistic
Expand Down Expand Up @@ -20346,6 +20362,11 @@ type Token {

"""
underlyingToken: Token

"""
If `governanceConfig.id` is the zero address, the token uses the default governance config.

"""
governanceConfig: TokenGovernanceConfig
}

Expand Down

0 comments on commit 635bb8a

Please sign in to comment.