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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
658 changes: 658 additions & 0 deletions zocksubgraph/abis/Token .json

Large diffs are not rendered by default.

Binary file added zocksubgraph/build/Token/Token.wasm
Binary file not shown.
1,112 changes: 1,112 additions & 0 deletions zocksubgraph/build/Token/abis/Token .json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions zocksubgraph/build/schema.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
type Token @entity {
id: ID!
tokenID: BigInt!
contentURI: String!
metadataURI: String!
createdAtTimestamp: BigInt!
creator: User!
owner: User!
}

type User @entity {
id: ID!
tokens: [Token!]! @derivedFrom(field: "owner")
created: [Token!]! @derivedFrom(field: "creator")
}
27 changes: 27 additions & 0 deletions zocksubgraph/build/subgraph.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
specVersion: 0.0.5
schema:
file: schema.graphql
dataSources:
- kind: ethereum
name: Token
network: mainnet
source:
address: "0xabEFBc9fD2F806065b4f3C237d4b59D9A97Bcac7"
abi: Token
startBlock: 11565020
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Token
- User
abis:
- name: Token
file: Token/abis/Token .json
eventHandlers:
- event: TokenURIUpdated(indexed uint256,address,string)
handler: handleTokenURIUpdated
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: Token/Token.wasm
Loading