diff --git a/subgraph.template.yaml b/subgraph.template.yaml index ba76adc..6e8534a 100644 --- a/subgraph.template.yaml +++ b/subgraph.template.yaml @@ -1890,3 +1890,46 @@ dataSources: - event: CleanedPermissions(indexed address,uint256,uint256) handler: handleCleanedPermissions + - name: ERC20Template__20 + kind: ethereum/contract + network: __NETWORK__ + source: + address: "0xfa69b2c1224cebb3b6a36fb5b8c3c419afab08dd" + abi: ERC20Template + startBlock: 4615045 + mapping: + kind: ethereum/events + apiVersion: 0.0.7 + language: wasm/assemblyscript + file: ./src/mappings/erc20Templates.ts + entities: + - ERC20Template + abis: + - name: ERC20Template + file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/templates/ERC20Template.sol/ERC20Template.json + - name: ERC20 + file: ./abis/ERC20.json + - name: ERC20Roles + file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/utils/ERC20Roles.sol/ERC20Roles.json + eventHandlers: + - event: OrderStarted(indexed address,address,uint256,uint256,uint256,indexed address,uint256) + handler: handleOrderStarted + receipt: true + - event: NewPaymentCollector(indexed address,indexed address,uint256,uint256) + handler: handleNewPaymentCollector + - event: PublishMarketFee(indexed address,indexed address,uint256) + handler: handlePublishMarketFee + - event: PublishMarketFeeChanged(address,address,address,uint256) + handler: handlePublishMarketFeeChanged + - event: ConsumeMarketFee(indexed address,indexed address,uint256) + handler: handleConsumeMarketFee + - 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