Skip to content
Open
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
680 changes: 680 additions & 0 deletions .graphclient/index.ts

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .graphclient/persisted_operations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"49c785dfed7e9bf3a94e3c41f465868cdcbe3b8841ea4ab67c33eaaea420c320": "query AllPokemon {\n pokemons {\n id\n owner\n }\n}"
}
274 changes: 274 additions & 0 deletions .graphclient/schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,274 @@
schema {
query: Query
}

"""
Marks the GraphQL type as indexable entity. Each type that should be an entity is required to be annotated with this directive.
"""
directive @entity on OBJECT

"""Defined a Subgraph ID for an object type"""
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

enum Aggregation_interval {
hour
day
}

scalar BigDecimal

scalar BigInt

input BlockChangedFilter {
number_gte: Int!
}

input Block_height {
hash: Bytes
number: Int
number_gte: Int
}

scalar Bytes

"""
8 bytes signed integer

"""
scalar Int8

"""Defines the order direction, either ascending or descending"""
enum OrderDirection {
asc
desc
}

type Pokemon {
id: ID!
owner: Bytes!
}

input Pokemon_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!]
owner: Bytes
owner_not: Bytes
owner_gt: Bytes
owner_lt: Bytes
owner_gte: Bytes
owner_lte: Bytes
owner_in: [Bytes!]
owner_not_in: [Bytes!]
owner_contains: Bytes
owner_not_contains: Bytes
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [Pokemon_filter]
or: [Pokemon_filter]
}

enum Pokemon_orderBy {
id
owner
}

type Query {
transfer(
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: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Transfer
transfers(
skip: Int = 0
first: Int = 100
orderBy: Transfer_orderBy
orderDirection: OrderDirection
where: Transfer_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: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Transfer!]!
pokemon(
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: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Pokemon
pokemons(
skip: Int = 0
first: Int = 100
orderBy: Pokemon_orderBy
orderDirection: OrderDirection
where: Pokemon_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: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Pokemon!]!
"""Access to subgraph metadata"""
_meta(block: Block_height): _Meta_
}

"""
A string representation of microseconds UNIX timestamp (16 digits)

"""
scalar Timestamp

type Transfer {
id: Bytes!
from: Bytes!
to: Bytes!
tokenId: BigInt!
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}

input Transfer_filter {
id: Bytes
id_not: Bytes
id_gt: Bytes
id_lt: Bytes
id_gte: Bytes
id_lte: Bytes
id_in: [Bytes!]
id_not_in: [Bytes!]
id_contains: Bytes
id_not_contains: Bytes
from: Bytes
from_not: Bytes
from_gt: Bytes
from_lt: Bytes
from_gte: Bytes
from_lte: Bytes
from_in: [Bytes!]
from_not_in: [Bytes!]
from_contains: Bytes
from_not_contains: Bytes
to: Bytes
to_not: Bytes
to_gt: Bytes
to_lt: Bytes
to_gte: Bytes
to_lte: Bytes
to_in: [Bytes!]
to_not_in: [Bytes!]
to_contains: Bytes
to_not_contains: Bytes
tokenId: BigInt
tokenId_not: BigInt
tokenId_gt: BigInt
tokenId_lt: BigInt
tokenId_gte: BigInt
tokenId_lte: BigInt
tokenId_in: [BigInt!]
tokenId_not_in: [BigInt!]
blockNumber: BigInt
blockNumber_not: BigInt
blockNumber_gt: BigInt
blockNumber_lt: BigInt
blockNumber_gte: BigInt
blockNumber_lte: BigInt
blockNumber_in: [BigInt!]
blockNumber_not_in: [BigInt!]
blockTimestamp: BigInt
blockTimestamp_not: BigInt
blockTimestamp_gt: BigInt
blockTimestamp_lt: BigInt
blockTimestamp_gte: BigInt
blockTimestamp_lte: BigInt
blockTimestamp_in: [BigInt!]
blockTimestamp_not_in: [BigInt!]
transactionHash: Bytes
transactionHash_not: Bytes
transactionHash_gt: Bytes
transactionHash_lt: Bytes
transactionHash_gte: Bytes
transactionHash_lte: Bytes
transactionHash_in: [Bytes!]
transactionHash_not_in: [Bytes!]
transactionHash_contains: Bytes
transactionHash_not_contains: Bytes
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
and: [Transfer_filter]
or: [Transfer_filter]
}

enum Transfer_orderBy {
id
from
to
tokenId
blockNumber
blockTimestamp
transactionHash
}

type _Block_ {
"""The hash of the block"""
hash: Bytes
"""The block number"""
number: Int!
"""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"""
type _Meta_ {
"""
Information about a specific subgraph block. The hash of the block
will be null if the _meta field has a block constraint that asks for
a block number. It will be filled if the _meta field has no block constraint
and therefore asks for the latest block

"""
block: _Block_!
"""The deployment ID"""
deployment: String!
"""If `true`, the subgraph encountered indexing errors at some past block"""
hasIndexingErrors: Boolean!
}

enum _SubgraphErrorPolicy_ {
"""Data will be returned even if the subgraph has indexing errors"""
allow
"""
If the subgraph has indexing errors, data will be omitted. The default.
"""
deny
}
Loading