Skip to content

Commit

Permalink
fix: comment gnosis subgraph (#5087)
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-zhipeng authored Oct 30, 2023
1 parent 4eacd4f commit 8f88161
Show file tree
Hide file tree
Showing 27 changed files with 212,550 additions and 127,750 deletions.
114,002 changes: 59,754 additions & 54,248 deletions packages/adapters/subgraph/.graphclient/index.ts

Large diffs are not rendered by default.

100,106 changes: 52,664 additions & 47,442 deletions packages/adapters/subgraph/.graphclient/schema.graphql

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

38,313 changes: 31,636 additions & 6,677 deletions packages/adapters/subgraph/.graphclient/sources/Connext_Local1337/introspectionSchema.ts

Large diffs are not rendered by default.

3,216 changes: 2,625 additions & 591 deletions packages/adapters/subgraph/.graphclient/sources/Connext_Local1337/schema.graphql

Large diffs are not rendered by default.

3,180 changes: 2,579 additions & 601 deletions packages/adapters/subgraph/.graphclient/sources/Connext_Local1337/types.ts

Large diffs are not rendered by default.

38,313 changes: 31,636 additions & 6,677 deletions packages/adapters/subgraph/.graphclient/sources/Connext_Local1338/introspectionSchema.ts

Large diffs are not rendered by default.

3,216 changes: 2,625 additions & 591 deletions packages/adapters/subgraph/.graphclient/sources/Connext_Local1338/schema.graphql

Large diffs are not rendered by default.

3,180 changes: 2,579 additions & 601 deletions packages/adapters/subgraph/.graphclient/sources/Connext_Local1338/types.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,69 @@ directive @subgraphId(id: String!) on OBJECT
"creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API."
directive @derivedFrom(field: String!) on FIELD_DEFINITION

type staginggoerli_AggregateRootSavedSlow {
id: ID!
aggregateRoot: staginggoerli_Bytes!
count: BigInt!
aggregatedRoots: [staginggoerli_Bytes!]
rootTimestamp: BigInt!
}

input staginggoerli_AggregateRootSavedSlow_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
aggregateRoot: staginggoerli_Bytes
aggregateRoot_not: staginggoerli_Bytes
aggregateRoot_gt: staginggoerli_Bytes
aggregateRoot_lt: staginggoerli_Bytes
aggregateRoot_gte: staginggoerli_Bytes
aggregateRoot_lte: staginggoerli_Bytes
aggregateRoot_in: [staginggoerli_Bytes!]
aggregateRoot_not_in: [staginggoerli_Bytes!]
aggregateRoot_contains: staginggoerli_Bytes
aggregateRoot_not_contains: staginggoerli_Bytes
count: BigInt
count_not: BigInt
count_gt: BigInt
count_lt: BigInt
count_gte: BigInt
count_lte: BigInt
count_in: [BigInt!]
count_not_in: [BigInt!]
aggregatedRoots: [staginggoerli_Bytes!]
aggregatedRoots_not: [staginggoerli_Bytes!]
aggregatedRoots_contains: [staginggoerli_Bytes!]
aggregatedRoots_contains_nocase: [staginggoerli_Bytes!]
aggregatedRoots_not_contains: [staginggoerli_Bytes!]
aggregatedRoots_not_contains_nocase: [staginggoerli_Bytes!]
rootTimestamp: BigInt
rootTimestamp_not: BigInt
rootTimestamp_gt: BigInt
rootTimestamp_lt: BigInt
rootTimestamp_gte: BigInt
rootTimestamp_lte: BigInt
rootTimestamp_in: [BigInt!]
rootTimestamp_not_in: [BigInt!]
"""Filter for the block changed event."""
_change_block: staginggoerli_BlockChangedFilter
and: [staginggoerli_AggregateRootSavedSlow_filter]
or: [staginggoerli_AggregateRootSavedSlow_filter]
}

enum staginggoerli_AggregateRootSavedSlow_orderBy {
id
aggregateRoot
count
aggregatedRoots
rootTimestamp
}

type staginggoerli_AggregatedMessageRoot {
id: ID!
index: BigInt!
Expand Down Expand Up @@ -1056,6 +1119,32 @@ type Query {
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [staginggoerli_RootMessageProcessed!]!
staginggoerli_aggregateRootSavedSlow(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: staginggoerli_Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): staginggoerli_AggregateRootSavedSlow
staginggoerli_aggregateRootSavedSlows(
skip: Int = 0
first: Int = 100
orderBy: staginggoerli_AggregateRootSavedSlow_orderBy
orderDirection: staginggoerli_OrderDirection
where: staginggoerli_AggregateRootSavedSlow_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: staginggoerli_Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [staginggoerli_AggregateRootSavedSlow!]!
"""Access to subgraph metadata"""
staginggoerli__meta(block: staginggoerli_Block_height): staginggoerli__Meta_
}
Expand Down Expand Up @@ -1766,6 +1855,32 @@ type Subscription {
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [staginggoerli_RootMessageProcessed!]!
staginggoerli_aggregateRootSavedSlow(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: staginggoerli_Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): staginggoerli_AggregateRootSavedSlow
staginggoerli_aggregateRootSavedSlows(
skip: Int = 0
first: Int = 100
orderBy: staginggoerli_AggregateRootSavedSlow_orderBy
orderDirection: staginggoerli_OrderDirection
where: staginggoerli_AggregateRootSavedSlow_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: staginggoerli_Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [staginggoerli_AggregateRootSavedSlow!]!
"""Access to subgraph metadata"""
staginggoerli__meta(block: staginggoerli_Block_height): staginggoerli__Meta_
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,68 @@ export type Scalars = {
staginggoerli_Int8: any;
};

export type staginggoerli_AggregateRootSavedSlow = {
id: Scalars['ID'];
aggregateRoot: Scalars['staginggoerli_Bytes'];
count: Scalars['BigInt'];
aggregatedRoots?: Maybe<Array<Scalars['staginggoerli_Bytes']>>;
rootTimestamp: Scalars['BigInt'];
};

export type staginggoerli_AggregateRootSavedSlow_filter = {
id?: InputMaybe<Scalars['ID']>;
id_not?: InputMaybe<Scalars['ID']>;
id_gt?: InputMaybe<Scalars['ID']>;
id_lt?: InputMaybe<Scalars['ID']>;
id_gte?: InputMaybe<Scalars['ID']>;
id_lte?: InputMaybe<Scalars['ID']>;
id_in?: InputMaybe<Array<Scalars['ID']>>;
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
aggregateRoot?: InputMaybe<Scalars['staginggoerli_Bytes']>;
aggregateRoot_not?: InputMaybe<Scalars['staginggoerli_Bytes']>;
aggregateRoot_gt?: InputMaybe<Scalars['staginggoerli_Bytes']>;
aggregateRoot_lt?: InputMaybe<Scalars['staginggoerli_Bytes']>;
aggregateRoot_gte?: InputMaybe<Scalars['staginggoerli_Bytes']>;
aggregateRoot_lte?: InputMaybe<Scalars['staginggoerli_Bytes']>;
aggregateRoot_in?: InputMaybe<Array<Scalars['staginggoerli_Bytes']>>;
aggregateRoot_not_in?: InputMaybe<Array<Scalars['staginggoerli_Bytes']>>;
aggregateRoot_contains?: InputMaybe<Scalars['staginggoerli_Bytes']>;
aggregateRoot_not_contains?: InputMaybe<Scalars['staginggoerli_Bytes']>;
count?: InputMaybe<Scalars['BigInt']>;
count_not?: InputMaybe<Scalars['BigInt']>;
count_gt?: InputMaybe<Scalars['BigInt']>;
count_lt?: InputMaybe<Scalars['BigInt']>;
count_gte?: InputMaybe<Scalars['BigInt']>;
count_lte?: InputMaybe<Scalars['BigInt']>;
count_in?: InputMaybe<Array<Scalars['BigInt']>>;
count_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
aggregatedRoots?: InputMaybe<Array<Scalars['staginggoerli_Bytes']>>;
aggregatedRoots_not?: InputMaybe<Array<Scalars['staginggoerli_Bytes']>>;
aggregatedRoots_contains?: InputMaybe<Array<Scalars['staginggoerli_Bytes']>>;
aggregatedRoots_contains_nocase?: InputMaybe<Array<Scalars['staginggoerli_Bytes']>>;
aggregatedRoots_not_contains?: InputMaybe<Array<Scalars['staginggoerli_Bytes']>>;
aggregatedRoots_not_contains_nocase?: InputMaybe<Array<Scalars['staginggoerli_Bytes']>>;
rootTimestamp?: InputMaybe<Scalars['BigInt']>;
rootTimestamp_not?: InputMaybe<Scalars['BigInt']>;
rootTimestamp_gt?: InputMaybe<Scalars['BigInt']>;
rootTimestamp_lt?: InputMaybe<Scalars['BigInt']>;
rootTimestamp_gte?: InputMaybe<Scalars['BigInt']>;
rootTimestamp_lte?: InputMaybe<Scalars['BigInt']>;
rootTimestamp_in?: InputMaybe<Array<Scalars['BigInt']>>;
rootTimestamp_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
/** Filter for the block changed event. */
_change_block?: InputMaybe<staginggoerli_BlockChangedFilter>;
and?: InputMaybe<Array<InputMaybe<staginggoerli_AggregateRootSavedSlow_filter>>>;
or?: InputMaybe<Array<InputMaybe<staginggoerli_AggregateRootSavedSlow_filter>>>;
};

export type staginggoerli_AggregateRootSavedSlow_orderBy =
| 'id'
| 'aggregateRoot'
| 'count'
| 'aggregatedRoots'
| 'rootTimestamp';

export type staginggoerli_AggregatedMessageRoot = {
id: Scalars['ID'];
index: Scalars['BigInt'];
Expand Down Expand Up @@ -684,6 +746,8 @@ export type Query = {
staginggoerli_zkSyncConnectorMetas: Array<staginggoerli_ZkSyncConnectorMeta>;
staginggoerli_rootMessageProcessed?: Maybe<staginggoerli_RootMessageProcessed>;
staginggoerli_rootMessageProcesseds: Array<staginggoerli_RootMessageProcessed>;
staginggoerli_aggregateRootSavedSlow?: Maybe<staginggoerli_AggregateRootSavedSlow>;
staginggoerli_aggregateRootSavedSlows: Array<staginggoerli_AggregateRootSavedSlow>;
/** Access to subgraph metadata */
staginggoerli__meta?: Maybe<staginggoerli__Meta_>;
};
Expand Down Expand Up @@ -959,6 +1023,24 @@ export type Querystaginggoerli_rootMessageProcessedsArgs = {
};


export type Querystaginggoerli_aggregateRootSavedSlowArgs = {
id: Scalars['ID'];
block?: InputMaybe<staginggoerli_Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};


export type Querystaginggoerli_aggregateRootSavedSlowsArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<staginggoerli_AggregateRootSavedSlow_orderBy>;
orderDirection?: InputMaybe<staginggoerli_OrderDirection>;
where?: InputMaybe<staginggoerli_AggregateRootSavedSlow_filter>;
block?: InputMaybe<staginggoerli_Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};


export type Querystaginggoerli__metaArgs = {
block?: InputMaybe<staginggoerli_Block_height>;
};
Expand Down Expand Up @@ -1304,6 +1386,8 @@ export type Subscription = {
staginggoerli_zkSyncConnectorMetas: Array<staginggoerli_ZkSyncConnectorMeta>;
staginggoerli_rootMessageProcessed?: Maybe<staginggoerli_RootMessageProcessed>;
staginggoerli_rootMessageProcesseds: Array<staginggoerli_RootMessageProcessed>;
staginggoerli_aggregateRootSavedSlow?: Maybe<staginggoerli_AggregateRootSavedSlow>;
staginggoerli_aggregateRootSavedSlows: Array<staginggoerli_AggregateRootSavedSlow>;
/** Access to subgraph metadata */
staginggoerli__meta?: Maybe<staginggoerli__Meta_>;
};
Expand Down Expand Up @@ -1579,6 +1663,24 @@ export type Subscriptionstaginggoerli_rootMessageProcessedsArgs = {
};


export type Subscriptionstaginggoerli_aggregateRootSavedSlowArgs = {
id: Scalars['ID'];
block?: InputMaybe<staginggoerli_Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};


export type Subscriptionstaginggoerli_aggregateRootSavedSlowsArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<staginggoerli_AggregateRootSavedSlow_orderBy>;
orderDirection?: InputMaybe<staginggoerli_OrderDirection>;
where?: InputMaybe<staginggoerli_AggregateRootSavedSlow_filter>;
block?: InputMaybe<staginggoerli_Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};


export type Subscriptionstaginggoerli__metaArgs = {
block?: InputMaybe<staginggoerli_Block_height>;
};
Expand Down Expand Up @@ -1753,6 +1855,10 @@ export type _SubgraphErrorPolicy_ =
staginggoerli_rootMessageProcessed: InContextSdkMethod<Query['staginggoerli_rootMessageProcessed'], Querystaginggoerli_rootMessageProcessedArgs, MeshContext>,
/** null **/
staginggoerli_rootMessageProcesseds: InContextSdkMethod<Query['staginggoerli_rootMessageProcesseds'], Querystaginggoerli_rootMessageProcessedsArgs, MeshContext>,
/** null **/
staginggoerli_aggregateRootSavedSlow: InContextSdkMethod<Query['staginggoerli_aggregateRootSavedSlow'], Querystaginggoerli_aggregateRootSavedSlowArgs, MeshContext>,
/** null **/
staginggoerli_aggregateRootSavedSlows: InContextSdkMethod<Query['staginggoerli_aggregateRootSavedSlows'], Querystaginggoerli_aggregateRootSavedSlowsArgs, MeshContext>,
/** Access to subgraph metadata **/
staginggoerli__meta: InContextSdkMethod<Query['staginggoerli__meta'], Querystaginggoerli__metaArgs, MeshContext>
};
Expand Down Expand Up @@ -1822,6 +1928,10 @@ export type _SubgraphErrorPolicy_ =
staginggoerli_rootMessageProcessed: InContextSdkMethod<Subscription['staginggoerli_rootMessageProcessed'], Subscriptionstaginggoerli_rootMessageProcessedArgs, MeshContext>,
/** null **/
staginggoerli_rootMessageProcesseds: InContextSdkMethod<Subscription['staginggoerli_rootMessageProcesseds'], Subscriptionstaginggoerli_rootMessageProcessedsArgs, MeshContext>,
/** null **/
staginggoerli_aggregateRootSavedSlow: InContextSdkMethod<Subscription['staginggoerli_aggregateRootSavedSlow'], Subscriptionstaginggoerli_aggregateRootSavedSlowArgs, MeshContext>,
/** null **/
staginggoerli_aggregateRootSavedSlows: InContextSdkMethod<Subscription['staginggoerli_aggregateRootSavedSlows'], Subscriptionstaginggoerli_aggregateRootSavedSlowsArgs, MeshContext>,
/** Access to subgraph metadata **/
staginggoerli__meta: InContextSdkMethod<Subscription['staginggoerli__meta'], Subscriptionstaginggoerli__metaArgs, MeshContext>
};
Expand Down
8 changes: 4 additions & 4 deletions packages/adapters/subgraph/.graphclientrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ sources:
- name: Connext_ConsensysTest
handler:
graphql:
endpoint: https://thegraph.goerli.zkevm.consensys.net/subgraphs/name/connext/amarok-runtime-v0-consensys-test
endpoint: https://graph-query.goerli.linea.build/subgraphs/name/connext/amarok-runtime-v0-linea-goerli
retry: 5
timeout: 30000 # 30 seconds
transforms:
Expand Down Expand Up @@ -455,9 +455,9 @@ sources:
graphql:
strategy: fallback
sources:
- endpoint: "https://gateway.thegraph.com/api/{env.GRAPH_API_KEY}/subgraphs/id/EdS5b1Zbw8A5KHs4JRnWDKdM5K2Hnq97UuE8RG9b61Ey"
retry: 2
timeout: 30000 # 30 seconds
#- endpoint: "https://gateway.thegraph.com/api/{env.GRAPH_API_KEY}/subgraphs/id/EdS5b1Zbw8A5KHs4JRnWDKdM5K2Hnq97UuE8RG9b61Ey"
# retry: 2
# timeout: 30000 # 30 seconds
- endpoint: "https://api.thegraph.com/subgraphs/name/connext/amarok-runtime-v0-gnosis"
retry: 5
timeout: 30000 # 30 seconds
Expand Down

0 comments on commit 8f88161

Please sign in to comment.