ocean-subgraph/subgraph.yaml

90 lines
2.7 KiB
YAML

specVersion: 0.0.3
description: Ocean provides data sharing through IDOs
repository: https://github.com/oceanprotocol/ocean-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ERC721Factory
network: barge
source:
address: '0x0599a4a2873B38D836E10302De1ca4834F7BDF4E'
abi: ERC721Factory
startBlock: 0
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/erc721Factory.ts
entities:
- ERC721Factory
abis:
- name: ERC721Factory
file: ./abis/ERC721Factory.json
eventHandlers:
- event: NFTCreated(indexed address,indexed address,indexed string,address)
handler: handleNftCreated
- event: TokenCreated(indexed address,indexed address,indexed string)
handler: handleNewToken
- kind: ethereum/contract
name: FixedRateExchange
network: barge
source:
address: '0x2356DeCd8CFB6c6f2bf46b5ED4531818B4662337'
abi: FixedRateExchange
startBlock: 0
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/fixedRateExchange.ts
entities:
- FixedRateExchange
abis:
- name: FixedRateExchange
file: ./abis/FixedRateExchange.json
eventHandlers:
- event: ExchangeCreated(indexed bytes32,indexed address,indexed address,address,uint256)
handler: handleExchangeCreated
- kind: ethereum/contract
name: FactoryRouter
network: barge
source:
address: '0x5509dc151e25BdA96d508A5994654980b7574883'
abi: FactoryRouter
startBlock: 0
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/factoryRouter.ts
entities:
- FactoryRouter
abis:
- name: FactoryRouter
file: ./abis/FactoryRouter.json
eventHandlers:
- event: NewPool(indexed address,bool)
handler: handleNewPool
templates:
- name: ERC20Template
kind: ethereum/contract
network: barge
source:
abi: ERC20Template
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/erc20Template.ts
entities:
- ERC20Template
abis:
- name: ERC20Template
file: ./abis/ERC20Template.json
eventHandlers:
- event: OrderStarted(indexed address,address,uint256,uint256,uint256,indexed address,indexed address,uint256)
handler: handleOrderStarted
- event: MinterApproved(address,address)
handler: handleMinterApproved