2021-12-07 10:47:58 +01:00
|
|
|
specVersion: 0.0.3
|
2021-01-20 09:35:53 +01:00
|
|
|
description: Ocean provides data sharing through IDOs
|
|
|
|
repository: https://github.com/oceanprotocol/ocean-subgraph
|
|
|
|
schema:
|
|
|
|
file: ./schema.graphql
|
|
|
|
dataSources:
|
|
|
|
- kind: ethereum/contract
|
2021-12-07 10:47:58 +01:00
|
|
|
name: ERC721Factory
|
2022-02-14 09:35:55 +01:00
|
|
|
network: __NETWORK__
|
2021-01-20 09:35:53 +01:00
|
|
|
source:
|
2022-02-14 09:35:55 +01:00
|
|
|
address: __ERC721FACTORYADDRESS__
|
2021-12-07 10:47:58 +01:00
|
|
|
abi: ERC721Factory
|
2022-02-14 09:35:55 +01:00
|
|
|
startBlock: __STARTBLOCK__
|
2021-01-20 09:35:53 +01:00
|
|
|
mapping:
|
|
|
|
kind: ethereum/events
|
2022-01-14 15:51:23 +01:00
|
|
|
apiVersion: 0.0.6
|
2021-01-20 09:35:53 +01:00
|
|
|
language: wasm/assemblyscript
|
2021-12-07 10:47:58 +01:00
|
|
|
file: ./src/mappings/erc721Factory.ts
|
2021-01-20 09:35:53 +01:00
|
|
|
entities:
|
2021-12-07 10:47:58 +01:00
|
|
|
- ERC721Factory
|
2021-01-20 09:35:53 +01:00
|
|
|
abis:
|
2021-12-07 10:47:58 +01:00
|
|
|
- name: ERC721Factory
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/ERC721Factory.sol/ERC721Factory.json
|
2022-02-18 12:09:18 +01:00
|
|
|
- name: ERC20
|
|
|
|
file: ./abis/ERC20.json
|
2021-01-20 09:35:53 +01:00
|
|
|
eventHandlers:
|
2022-04-04 14:52:30 +02:00
|
|
|
- event: NFTCreated(address,indexed address,string,indexed address,string,string,bool,indexed address)
|
2021-12-07 10:47:58 +01:00
|
|
|
handler: handleNftCreated
|
|
|
|
- event: TokenCreated(indexed address,indexed address,string,string,uint256,address)
|
|
|
|
handler: handleNewToken
|
2022-02-23 18:12:51 +01:00
|
|
|
|
2022-01-14 15:51:23 +01:00
|
|
|
- kind: ethereum/contract
|
|
|
|
name: FactoryRouter
|
2022-02-14 09:35:55 +01:00
|
|
|
network: __NETWORK__
|
2022-01-14 15:51:23 +01:00
|
|
|
source:
|
2022-02-14 09:35:55 +01:00
|
|
|
address: __FACTORYROUTERADDRESS__
|
2022-01-14 15:51:23 +01:00
|
|
|
abi: FactoryRouter
|
2022-02-14 09:35:55 +01:00
|
|
|
startBlock: __STARTBLOCK__
|
2022-01-14 15:51:23 +01:00
|
|
|
mapping:
|
|
|
|
kind: ethereum/events
|
|
|
|
apiVersion: 0.0.6
|
|
|
|
language: wasm/assemblyscript
|
|
|
|
file: ./src/mappings/factoryRouter.ts
|
|
|
|
entities:
|
|
|
|
- FactoryRouter
|
|
|
|
abis:
|
|
|
|
- name: FactoryRouter
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/FactoryRouter.sol/FactoryRouter.json
|
2022-02-18 12:09:18 +01:00
|
|
|
- name: ERC20
|
|
|
|
file: ./abis/ERC20.json
|
2022-01-14 15:51:23 +01:00
|
|
|
eventHandlers:
|
|
|
|
- event: NewPool(indexed address,bool)
|
|
|
|
handler: handleNewPool
|
2022-02-18 16:38:51 +01:00
|
|
|
- event: TokenAdded(indexed address,indexed address)
|
|
|
|
handler: handleTokenAdded
|
2022-02-21 11:45:24 +01:00
|
|
|
- event: TokenRemoved(indexed address,indexed address)
|
|
|
|
handler: handleTokenRemoved
|
2022-02-18 16:38:51 +01:00
|
|
|
- event: OPCFeeChanged(indexed address,uint256,uint256,uint256,uint256)
|
|
|
|
handler: handleOPCFeeChanged
|
2022-02-21 11:45:24 +01:00
|
|
|
- event: SSContractAdded(indexed address,indexed address)
|
|
|
|
handler: handleSSContractAdded
|
|
|
|
- event: SSContractRemoved(indexed address,indexed address)
|
|
|
|
handler: handleSSContractRemoved
|
|
|
|
- event: FixedRateContractAdded(indexed address,indexed address)
|
|
|
|
handler: handleFixedRateContractAdded
|
|
|
|
- event: FixedRateContractRemoved(indexed address,indexed address)
|
|
|
|
handler: handleFixedRateContractRemoved
|
|
|
|
- event: DispenserContractAdded(indexed address,indexed address)
|
|
|
|
handler: handleDispenserContractAdded
|
|
|
|
- event: DispenserContractRemoved(indexed address,indexed address)
|
|
|
|
handler: handleDispenserContractRemoved
|
2022-01-14 15:51:23 +01:00
|
|
|
|
2021-12-07 10:47:58 +01:00
|
|
|
templates:
|
|
|
|
- name: ERC20Template
|
|
|
|
kind: ethereum/contract
|
2022-02-14 09:35:55 +01:00
|
|
|
network: __NETWORK__
|
2021-03-10 22:36:51 +01:00
|
|
|
source:
|
2021-12-07 10:47:58 +01:00
|
|
|
abi: ERC20Template
|
2021-03-10 22:36:51 +01:00
|
|
|
mapping:
|
|
|
|
kind: ethereum/events
|
2022-01-14 15:51:23 +01:00
|
|
|
apiVersion: 0.0.6
|
2021-03-10 22:36:51 +01:00
|
|
|
language: wasm/assemblyscript
|
2021-12-07 10:47:58 +01:00
|
|
|
file: ./src/mappings/erc20Templates.ts
|
2021-03-10 22:36:51 +01:00
|
|
|
entities:
|
2021-12-07 10:47:58 +01:00
|
|
|
- ERC20Template
|
2021-03-10 22:36:51 +01:00
|
|
|
abis:
|
2021-12-07 10:47:58 +01:00
|
|
|
- name: ERC20Template
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/templates/ERC20Template.sol/ERC20Template.json
|
2021-12-07 10:47:58 +01:00
|
|
|
- name: ERC20TemplateEnterprise
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/templates/ERC20TemplateEnterprise.sol/ERC20TemplateEnterprise.json
|
2021-08-13 16:04:18 +02:00
|
|
|
- name: ERC20
|
|
|
|
file: ./abis/ERC20.json
|
2021-12-07 10:47:58 +01:00
|
|
|
- name: ERC20Roles
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/utils/ERC20Roles.sol/ERC20Roles.json
|
2021-03-10 22:36:51 +01:00
|
|
|
eventHandlers:
|
2022-01-28 12:05:04 +01:00
|
|
|
- event: OrderStarted(indexed address,address,uint256,uint256,uint256,indexed address,uint256)
|
2021-12-07 10:47:58 +01:00
|
|
|
handler: handleOrderStarted
|
2022-05-25 19:04:26 +02:00
|
|
|
- event: OrderReused(bytes32,address,uint256,uint256)
|
|
|
|
handler: handlerOrderReused
|
2021-12-07 10:47:58 +01:00
|
|
|
- event: NewPaymentCollector(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleNewPaymentCollector
|
2022-02-14 18:25:55 +01:00
|
|
|
- event: PublishMarketFee(indexed address,indexed address,uint256)
|
|
|
|
handler: handlePublishMarketFee
|
2022-02-17 11:26:05 +01:00
|
|
|
- event: PublishMarketFeeChanged(address,address,address,uint256)
|
|
|
|
handler: handlePublishMarketFeeChanged
|
2022-02-18 12:09:18 +01:00
|
|
|
- event: AddedMinter(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleAddedMinter
|
|
|
|
- event: AddedPaymentManager(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleAddedPaymentManager
|
|
|
|
- event: RemovedMinter(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleRemovedMinter
|
|
|
|
- event: RemovedPaymentManager(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleRemovedPaymentManager
|
|
|
|
- event: CleanedPermissions(indexed address,uint256,uint256)
|
|
|
|
handler: handleCleanedPermissions
|
2022-06-28 17:05:01 +02:00
|
|
|
- event: ProviderFee(indexed address,indexed address,uint256,bytes,uint8,bytes32,bytes32,uint256)
|
|
|
|
handler: handleProviderFee
|
2022-02-18 12:09:18 +01:00
|
|
|
|
2022-01-14 15:51:23 +01:00
|
|
|
- name: BPool
|
|
|
|
kind: ethereum/contract
|
2022-02-14 09:35:55 +01:00
|
|
|
network: __NETWORK__
|
2021-01-20 09:35:53 +01:00
|
|
|
source:
|
2021-12-07 10:47:58 +01:00
|
|
|
abi: BPool
|
2021-01-20 09:35:53 +01:00
|
|
|
mapping:
|
|
|
|
kind: ethereum/events
|
2022-01-14 15:51:23 +01:00
|
|
|
apiVersion: 0.0.6
|
2021-01-20 09:35:53 +01:00
|
|
|
language: wasm/assemblyscript
|
|
|
|
file: ./src/mappings/pool.ts
|
|
|
|
entities:
|
2021-12-07 10:47:58 +01:00
|
|
|
- BPool
|
2021-01-20 09:35:53 +01:00
|
|
|
abis:
|
2021-12-07 10:47:58 +01:00
|
|
|
- name: BPool
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/balancer/BPool.sol/BPool.json
|
2021-01-20 09:35:53 +01:00
|
|
|
- name: BToken
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/balancer/BToken.sol/BToken.json
|
2021-12-07 10:47:58 +01:00
|
|
|
- name: BMath
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/balancer/BMath.sol/BMath.json
|
2022-01-14 15:51:23 +01:00
|
|
|
- name: ERC20
|
|
|
|
file: ./abis/ERC20.json
|
2021-01-20 09:35:53 +01:00
|
|
|
eventHandlers:
|
2022-04-04 14:52:30 +02:00
|
|
|
- event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256,uint256,uint256,uint256,uint256)
|
2021-01-20 09:35:53 +01:00
|
|
|
handler: handleSwap
|
2021-12-07 10:47:58 +01:00
|
|
|
- event: LOG_JOIN(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleJoin
|
|
|
|
- event: LOG_EXIT(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleExit
|
|
|
|
- event: LOG_SETUP(indexed address,indexed address,uint256,uint256,indexed address,uint256,uint256)
|
|
|
|
handler: handleSetup
|
2022-01-18 15:20:02 +01:00
|
|
|
- event: Transfer(indexed address,indexed address,uint256)
|
|
|
|
handler: handlerBptTransfer
|
2022-02-17 11:26:05 +01:00
|
|
|
- event: PublishMarketFeeChanged(address,address,uint256)
|
|
|
|
handler: handlePublishMarketFeeChanged
|
|
|
|
- event: SwapFeeChanged(address,uint256)
|
|
|
|
handler: handleSwapFeeChanged
|
2022-02-21 11:45:24 +01:00
|
|
|
|
2021-12-07 10:47:58 +01:00
|
|
|
- name: ERC721Template
|
|
|
|
kind: ethereum/contract
|
2022-02-14 09:35:55 +01:00
|
|
|
network: __NETWORK__
|
2021-01-20 09:35:53 +01:00
|
|
|
source:
|
2021-12-07 10:47:58 +01:00
|
|
|
abi: ERC721Template
|
2021-01-20 09:35:53 +01:00
|
|
|
mapping:
|
|
|
|
kind: ethereum/events
|
2022-01-14 15:51:23 +01:00
|
|
|
apiVersion: 0.0.6
|
2021-01-20 09:35:53 +01:00
|
|
|
language: wasm/assemblyscript
|
2021-12-07 10:47:58 +01:00
|
|
|
file: ./src/mappings/nftUpdate.ts
|
2021-01-20 09:35:53 +01:00
|
|
|
entities:
|
2021-12-07 10:47:58 +01:00
|
|
|
- ERC721Template
|
2021-01-20 09:35:53 +01:00
|
|
|
abis:
|
2021-12-07 10:47:58 +01:00
|
|
|
- name: ERC721Template
|
2022-02-14 09:35:55 +01:00
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/templates/ERC721Template.sol/ERC721Template.json
|
|
|
|
- name: ERC721RolesAddress
|
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/utils/ERC721RolesAddress.sol/ERC721RolesAddress.json
|
2022-02-18 12:09:18 +01:00
|
|
|
- name: ERC20
|
|
|
|
file: ./abis/ERC20.json
|
2021-01-20 09:35:53 +01:00
|
|
|
eventHandlers:
|
2022-01-28 12:05:04 +01:00
|
|
|
- event: MetadataCreated(indexed address,uint8,string,bytes,bytes,bytes32,uint256,uint256)
|
2022-02-18 12:09:18 +01:00
|
|
|
handler: handleMetadataCreated
|
2022-01-28 12:05:04 +01:00
|
|
|
- event: MetadataUpdated(indexed address,uint8,string,bytes,bytes,bytes32,uint256,uint256)
|
2022-02-18 12:09:18 +01:00
|
|
|
handler: handleMetadataUpdated
|
2021-12-07 10:47:58 +01:00
|
|
|
- event: MetadataState(indexed address,uint8,uint256,uint256)
|
2022-02-18 12:09:18 +01:00
|
|
|
handler: handleMetadataState
|
2021-12-07 10:47:58 +01:00
|
|
|
- event: TokenURIUpdate(indexed address,string,uint256,uint256,uint256)
|
2022-02-18 12:09:18 +01:00
|
|
|
handler: handleTokenUriUpdate
|
|
|
|
- event: AddedManager(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleAddedManager
|
|
|
|
- event: AddedTo725StoreList(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleAddedTo725StoreList
|
|
|
|
- event: AddedToCreateERC20List(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleAddedToCreateERC20List
|
|
|
|
- event: AddedToMetadataList(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleAddedToMetadataList
|
|
|
|
- event: RemovedFrom725StoreList(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleRemovedFrom725StoreList
|
|
|
|
- event: RemovedFromCreateERC20List(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleRemovedFromCreateERC20List
|
|
|
|
- event: RemovedFromMetadataList(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleRemovedFromMetadataList
|
|
|
|
- event: RemovedManager(indexed address,indexed address,uint256,uint256)
|
|
|
|
handler: handleRemovedManager
|
|
|
|
- event: CleanedPermissions(indexed address,uint256,uint256)
|
|
|
|
handler: handleCleanedPermissions
|
2022-06-24 09:06:44 +02:00
|
|
|
- event: Transfer(indexed address,indexed address,indexed uint256)
|
|
|
|
handler: handleNftTransferred
|
2022-02-21 11:45:24 +01:00
|
|
|
|
|
|
|
- name: Dispenser
|
|
|
|
kind: ethereum/contract
|
|
|
|
network: __NETWORK__
|
|
|
|
source:
|
|
|
|
abi: Dispenser
|
|
|
|
mapping:
|
|
|
|
kind: ethereum/events
|
|
|
|
apiVersion: 0.0.6
|
|
|
|
language: wasm/assemblyscript
|
|
|
|
file: ./src/mappings/dispenser.ts
|
|
|
|
entities:
|
|
|
|
- Dispenser
|
|
|
|
abis:
|
|
|
|
- name: Dispenser
|
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/dispenser/Dispenser.sol/Dispenser.json
|
|
|
|
- name: ERC20
|
|
|
|
file: ./abis/ERC20.json
|
|
|
|
eventHandlers:
|
|
|
|
- event: DispenserCreated(indexed address,indexed address,uint256,uint256,address)
|
|
|
|
handler: handleNewDispenser
|
|
|
|
- event: DispenserActivated(indexed address)
|
|
|
|
handler: handleActivate
|
|
|
|
- event: DispenserDeactivated(indexed address)
|
|
|
|
handler: handleDeactivate
|
|
|
|
- event: DispenserAllowedSwapperChanged(indexed address,indexed address)
|
|
|
|
handler: handleAllowedSwapperChanged
|
|
|
|
- event: TokensDispensed(indexed address,indexed address,uint256)
|
|
|
|
handler: handleTokensDispensed
|
|
|
|
- event: OwnerWithdrawed(indexed address,indexed address,uint256)
|
|
|
|
handler: handleOwnerWinthdraw
|
|
|
|
|
|
|
|
- name: FixedRateExchange
|
|
|
|
kind: ethereum/contract
|
|
|
|
network: __NETWORK__
|
|
|
|
source:
|
|
|
|
abi: FixedRateExchange
|
|
|
|
mapping:
|
|
|
|
kind: ethereum/events
|
|
|
|
apiVersion: 0.0.6
|
|
|
|
language: wasm/assemblyscript
|
|
|
|
file: ./src/mappings/fixedRateExchange.ts
|
|
|
|
entities:
|
|
|
|
- FixedRateExchange
|
|
|
|
abis:
|
|
|
|
- name: FixedRateExchange
|
|
|
|
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json
|
|
|
|
- name: ERC20
|
|
|
|
file: ./abis/ERC20.json
|
|
|
|
eventHandlers:
|
|
|
|
- event: ExchangeCreated(indexed bytes32,indexed address,indexed address,address,uint256)
|
|
|
|
handler: handleExchangeCreated
|
|
|
|
- event: ExchangeRateChanged(indexed bytes32,indexed address,uint256)
|
|
|
|
handler: handleRateChange
|
|
|
|
- event: ExchangeMintStateChanged(indexed bytes32,indexed address,bool)
|
|
|
|
handler: handleMintStateChanged
|
|
|
|
- event: ExchangeActivated(indexed bytes32,indexed address)
|
|
|
|
handler: handleActivated
|
|
|
|
- event: ExchangeDeactivated(indexed bytes32,indexed address)
|
|
|
|
handler: handleDeactivated
|
|
|
|
- event: ExchangeAllowedSwapperChanged(indexed bytes32,indexed address)
|
|
|
|
handler: handleAllowedSwapperChanged
|
|
|
|
- event: Swapped(indexed bytes32,indexed address,uint256,uint256,address,uint256,uint256,uint256)
|
|
|
|
handler: handleSwap
|
|
|
|
- event: PublishMarketFeeChanged(indexed bytes32,address,address,uint256)
|
2022-02-23 16:47:34 +01:00
|
|
|
handler: handlePublishMarketFeeChanged
|
2022-02-23 18:12:51 +01:00
|
|
|
- event: TokenCollected(indexed bytes32,indexed address,indexed address,uint256)
|
|
|
|
handler: handleTokenCollected
|