diff --git a/package.json b/package.json index 236642e..e8ef572 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,9 @@ "create:local-catenaxtestnet": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020", "create:local-mumbai": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020", "create:local-bsc": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020", + "create:local-celoalfajores": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020", + "create:local-energyweb": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020", + "create:local-moonriver": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020", "codegen": "graph codegen --output-dir src/@types", "build": "graph build", "deploy": "graph deploy oceanprotocol/ocean-subgraph --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/", @@ -30,6 +33,9 @@ "deploy:local-catenaxtestnet": "graph deploy oceanprotocol/ocean-subgraph subgraph.catenaxtestnet.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "deploy:local-mumbai": "graph deploy oceanprotocol/ocean-subgraph subgraph.mumbai.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "deploy:local-bsc": "graph deploy oceanprotocol/ocean-subgraph subgraph.bsc.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", + "deploy:local-celoalfajores": "graph deploy oceanprotocol/ocean-subgraph subgraph.celoalfajores.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", + "deploy:local-energyweb": "graph deploy oceanprotocol/ocean-subgraph subgraph.energyweb.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", + "deploy:local-moonriver": "graph deploy oceanprotocol/ocean-subgraph subgraph.moonriver.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020", "test": "npm run codegen && npm run lint && npm run type-check", "test-integration": "TS_NODE_PROJECT='test/integration/tsconfig.json' mocha --config=test/integration/.mocharc.json --node-env=test --exit 'test/integration/**/*.test.ts'", "lint": "eslint --ignore-path .gitignore --ext .js --ext .ts --ext .tsx .", diff --git a/src/helpers.ts b/src/helpers.ts index d7d667d..59075f0 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -51,6 +51,12 @@ export function getOceanAddress(): string { return '0x80e63f73cac60c1662f27d2dfd2ea834acddbaa8' if (network == 'mumbai') return '0xd8992ed72c445c35cb4a2be468568ed1079357c8' if (network == 'bsc') return '0xdce07662ca8ebc241316a15b611c89711414dd1a' + if (network == 'celoalfajores') + return '0xd8992ed72c445c35cb4a2be468568ed1079357c8' + if (network == 'energyweb') + return '0x593122aae80a6fc3183b2ac0c4ab3336debee528' + if (network == 'moonriver') + return '0x99c409e5f62e4bd2ac142f17cafb6810b8f0baae' return '0x967da4048cd07ab37855c090aaf366e4ce1b9f48' } diff --git a/subgraph.celoalfajores.yaml b/subgraph.celoalfajores.yaml new file mode 100644 index 0000000..d2ec9db --- /dev/null +++ b/subgraph.celoalfajores.yaml @@ -0,0 +1,213 @@ +specVersion: 0.0.2 +description: Ocean provides data sharing through IDOs +repository: https://github.com/oceanprotocol/ocean-subgraph +schema: + file: ./schema.graphql +dataSources: + - kind: ethereum/contract + name: Factory + network: celoalfajores + source: + address: '0x80E63f73cAc60c1662f27D2DFd2EA834acddBaa8' + abi: Factory + startBlock: 7542884 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/factory.ts + entities: + - PoolFactory + abis: + - name: Factory + file: ./abis/BFactory.json + eventHandlers: + - event: BPoolRegistered(address,indexed address) + handler: handleNewPool + - kind: ethereum/contract + name: DTFactory + network: celoalfajores + source: + address: '0x69B6E54Ad2b3c2801d11d8Ad56ea1d892555b776' + abi: DTFactory + startBlock: 7542879 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/dtfactory.ts + entities: + - DatatokenFactory + abis: + - name: DTFactory + file: ./abis/DTFactory.json + eventHandlers: + - event: TokenRegistered(indexed address,string,string,uint256,indexed address,indexed string) + handler: handleNewToken + - kind: ethereum/contract + name: Metadata + network: celoalfajores + source: + address: '0x30E4CC2C7A9c6aA2b2Ce93586E3Df24a3A00bcDD' + abi: Metadata + startBlock: 7542888 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/metadata.ts + entities: + - Metadata + abis: + - name: Metadata + file: ./abis/Metadata.json + eventHandlers: + - event: MetadataCreated(indexed address,indexed address,bytes,bytes) + handler: handleMetadataCreated + - event: MetadataUpdated(indexed address,indexed address,bytes,bytes) + handler: handleMetadataUpdated + - kind: ethereum/contract + name: FixedRateExchange + network: celoalfajores + source: + address: '0x3C5605202eD47C162450AE975415473e73F93072' + abi: FixedRateExchange + startBlock: 7542886 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/fixedrateexchange.ts + entities: + - FixedRateExchange + abis: + - name: FixedRateExchange + file: ./abis/FixedRateExchange.json + - name: ERC20 + file: ./abis/ERC20.json + - name: ERC20SymbolBytes + file: ./abis/ERC20SymbolBytes.json + - name: ERC20NameBytes + file: ./abis/ERC20NameBytes.json + eventHandlers: + - event: ExchangeCreated(indexed bytes32,indexed address,indexed address,address,uint256) + handler: handleExchangeCreated + - event: ExchangeActivated(indexed bytes32,indexed address) + handler: handleExchangeActivated + - event: ExchangeDeactivated(indexed bytes32,indexed address) + handler: handleExchangeDeactivated + - event: ExchangeRateChanged(indexed bytes32,indexed address,uint256) + handler: handleExchangeRateChanged + - event: Swapped(indexed bytes32,indexed address,uint256,uint256) + handler: handleSwapped + - kind: ethereum/contract + name: Dispenser + network: celoalfajores + source: + address: '0xDEfD0018969cd2d4E648209F876ADe184815f038' + abi: Dispenser + startBlock: 7542890 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/dispenser.ts + entities: + - Dispenser + abis: + - name: Dispenser + file: ./abis/Dispenser.json + eventHandlers: + - event: Activated(indexed address) + handler: handleDispenserActivated + - event: Deactivated(indexed address) + handler: handleDispenserDeactivated + - event: AcceptedMinter(indexed address) + handler: handleDispenserAcceptedMinter + - event: RemovedMinter(indexed address) + handler: handleDispenserRemovedMinter + - event: TokensDispensed(indexed address,indexed address,uint256) + handler: handleDispenserTokensDispensed + - event: OwnerWithdrawed(indexed address,indexed address,uint256) + handler: handleDispenserOwnerWithdrawed +templates: + - kind: ethereum/contract + name: Pool + network: celoalfajores + source: + abi: Pool + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/pool.ts + entities: + - Pool + - PoolFactory + - Swap + abis: + - name: Pool + file: ./abis/BPool.json + - name: BToken + file: ./abis/BToken.json + - name: ERC20 + file: ./abis/ERC20.json + - name: ERC20SymbolBytes + file: ./abis/ERC20SymbolBytes.json + - name: ERC20NameBytes + file: ./abis/ERC20NameBytes.json + eventHandlers: + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x34e1990700000000000000000000000000000000000000000000000000000000' + handler: handleSetSwapFee + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x92eefe9b00000000000000000000000000000000000000000000000000000000' + handler: handleSetController + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x49b5955200000000000000000000000000000000000000000000000000000000' + handler: handleSetPublicSwap + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x4bb278f300000000000000000000000000000000000000000000000000000000' + handler: handleFinalize + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0xd1d7bc9100000000000000000000000000000000000000000000000000000000' + handler: handleSetup + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x3fdddaa200000000000000000000000000000000000000000000000000000000' + handler: handleRebind + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0xe4e1e53800000000000000000000000000000000000000000000000000000000' + handler: handleRebind + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x8c28cbe800000000000000000000000000000000000000000000000000000000' + handler: handleGulp + - event: LOG_JOIN(indexed address,indexed address,uint256) + handler: handleJoinPool + - event: LOG_EXIT(indexed address,indexed address,uint256) + handler: handleExitPool + - event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256) + handler: handleSwap + - event: Transfer(indexed address,indexed address,uint256) + handler: handleTransfer + + - kind: ethereum/contract + name: DataToken + network: celoalfajores + source: + abi: DataToken + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/datatoken.ts + entities: + - DataToken + - DatatokenFactory + abis: + - name: DataToken + file: ./abis/DataTokenTemplate.json + eventHandlers: + - event: Transfer(indexed address,indexed address,uint256) + handler: handleTransfer + - event: OrderStarted(indexed address,indexed address,uint256,uint256,uint256,indexed address,uint256) + handler: handleOrderStarted diff --git a/subgraph.energyweb.yaml b/subgraph.energyweb.yaml new file mode 100644 index 0000000..028e8a8 --- /dev/null +++ b/subgraph.energyweb.yaml @@ -0,0 +1,213 @@ +specVersion: 0.0.2 +description: Ocean provides data sharing through IDOs +repository: https://github.com/oceanprotocol/ocean-subgraph +schema: + file: ./schema.graphql +dataSources: + - kind: ethereum/contract + name: Factory + network: energyweb + source: + address: '0x2112Eb973af1DBf83a4f11eda82f7a7527D7Fde5' + abi: Factory + startBlock: 14101890 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/factory.ts + entities: + - PoolFactory + abis: + - name: Factory + file: ./abis/BFactory.json + eventHandlers: + - event: BPoolRegistered(address,indexed address) + handler: handleNewPool + - kind: ethereum/contract + name: DTFactory + network: energyweb + source: + address: '0x1B083D8584dd3e6Ff37d04a6e7e82b5F622f3985' + abi: DTFactory + startBlock: 14101885 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/dtfactory.ts + entities: + - DatatokenFactory + abis: + - name: DTFactory + file: ./abis/DTFactory.json + eventHandlers: + - event: TokenRegistered(indexed address,string,string,uint256,indexed address,indexed string) + handler: handleNewToken + - kind: ethereum/contract + name: Metadata + network: energyweb + source: + address: '0x3C5605202eD47C162450AE975415473e73F93072' + abi: Metadata + startBlock: 14101894 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/metadata.ts + entities: + - Metadata + abis: + - name: Metadata + file: ./abis/Metadata.json + eventHandlers: + - event: MetadataCreated(indexed address,indexed address,bytes,bytes) + handler: handleMetadataCreated + - event: MetadataUpdated(indexed address,indexed address,bytes,bytes) + handler: handleMetadataUpdated + - kind: ethereum/contract + name: FixedRateExchange + network: energyweb + source: + address: '0x80E63f73cAc60c1662f27D2DFd2EA834acddBaa8' + abi: FixedRateExchange + startBlock: 14101892 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/fixedrateexchange.ts + entities: + - FixedRateExchange + abis: + - name: FixedRateExchange + file: ./abis/FixedRateExchange.json + - name: ERC20 + file: ./abis/ERC20.json + - name: ERC20SymbolBytes + file: ./abis/ERC20SymbolBytes.json + - name: ERC20NameBytes + file: ./abis/ERC20NameBytes.json + eventHandlers: + - event: ExchangeCreated(indexed bytes32,indexed address,indexed address,address,uint256) + handler: handleExchangeCreated + - event: ExchangeActivated(indexed bytes32,indexed address) + handler: handleExchangeActivated + - event: ExchangeDeactivated(indexed bytes32,indexed address) + handler: handleExchangeDeactivated + - event: ExchangeRateChanged(indexed bytes32,indexed address,uint256) + handler: handleExchangeRateChanged + - event: Swapped(indexed bytes32,indexed address,uint256,uint256) + handler: handleSwapped + - kind: ethereum/contract + name: Dispenser + network: energyweb + source: + address: '0x30E4CC2C7A9c6aA2b2Ce93586E3Df24a3A00bcDD' + abi: Dispenser + startBlock: 14101896 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/dispenser.ts + entities: + - Dispenser + abis: + - name: Dispenser + file: ./abis/Dispenser.json + eventHandlers: + - event: Activated(indexed address) + handler: handleDispenserActivated + - event: Deactivated(indexed address) + handler: handleDispenserDeactivated + - event: AcceptedMinter(indexed address) + handler: handleDispenserAcceptedMinter + - event: RemovedMinter(indexed address) + handler: handleDispenserRemovedMinter + - event: TokensDispensed(indexed address,indexed address,uint256) + handler: handleDispenserTokensDispensed + - event: OwnerWithdrawed(indexed address,indexed address,uint256) + handler: handleDispenserOwnerWithdrawed +templates: + - kind: ethereum/contract + name: Pool + network: energyweb + source: + abi: Pool + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/pool.ts + entities: + - Pool + - PoolFactory + - Swap + abis: + - name: Pool + file: ./abis/BPool.json + - name: BToken + file: ./abis/BToken.json + - name: ERC20 + file: ./abis/ERC20.json + - name: ERC20SymbolBytes + file: ./abis/ERC20SymbolBytes.json + - name: ERC20NameBytes + file: ./abis/ERC20NameBytes.json + eventHandlers: + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x34e1990700000000000000000000000000000000000000000000000000000000' + handler: handleSetSwapFee + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x92eefe9b00000000000000000000000000000000000000000000000000000000' + handler: handleSetController + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x49b5955200000000000000000000000000000000000000000000000000000000' + handler: handleSetPublicSwap + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x4bb278f300000000000000000000000000000000000000000000000000000000' + handler: handleFinalize + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0xd1d7bc9100000000000000000000000000000000000000000000000000000000' + handler: handleSetup + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x3fdddaa200000000000000000000000000000000000000000000000000000000' + handler: handleRebind + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0xe4e1e53800000000000000000000000000000000000000000000000000000000' + handler: handleRebind + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x8c28cbe800000000000000000000000000000000000000000000000000000000' + handler: handleGulp + - event: LOG_JOIN(indexed address,indexed address,uint256) + handler: handleJoinPool + - event: LOG_EXIT(indexed address,indexed address,uint256) + handler: handleExitPool + - event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256) + handler: handleSwap + - event: Transfer(indexed address,indexed address,uint256) + handler: handleTransfer + + - kind: ethereum/contract + name: DataToken + network: energyweb + source: + abi: DataToken + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/datatoken.ts + entities: + - DataToken + - DatatokenFactory + abis: + - name: DataToken + file: ./abis/DataTokenTemplate.json + eventHandlers: + - event: Transfer(indexed address,indexed address,uint256) + handler: handleTransfer + - event: OrderStarted(indexed address,indexed address,uint256,uint256,uint256,indexed address,uint256) + handler: handleOrderStarted diff --git a/subgraph.moonriver.yaml b/subgraph.moonriver.yaml new file mode 100644 index 0000000..68c41d6 --- /dev/null +++ b/subgraph.moonriver.yaml @@ -0,0 +1,213 @@ +specVersion: 0.0.2 +description: Ocean provides data sharing through IDOs +repository: https://github.com/oceanprotocol/ocean-subgraph +schema: + file: ./schema.graphql +dataSources: + - kind: ethereum/contract + name: Factory + network: moonriver + source: + address: '0x4dD281EB67DED07E76E413Df16176D66ae69e240' + abi: Factory + startBlock: 637156 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/factory.ts + entities: + - PoolFactory + abis: + - name: Factory + file: ./abis/BFactory.json + eventHandlers: + - event: BPoolRegistered(address,indexed address) + handler: handleNewPool + - kind: ethereum/contract + name: DTFactory + network: moonriver + source: + address: '0x1d535147a97bd87c8443125376E6671B60556E07' + abi: DTFactory + startBlock: 637150 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/dtfactory.ts + entities: + - DatatokenFactory + abis: + - name: DTFactory + file: ./abis/DTFactory.json + eventHandlers: + - event: TokenRegistered(indexed address,string,string,uint256,indexed address,indexed string) + handler: handleNewToken + - kind: ethereum/contract + name: Metadata + network: moonriver + source: + address: '0xe8c6Dc39602031A152440311e364818ba25C2Bc1' + abi: Metadata + startBlock: 637161 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/metadata.ts + entities: + - Metadata + abis: + - name: Metadata + file: ./abis/Metadata.json + eventHandlers: + - event: MetadataCreated(indexed address,indexed address,bytes,bytes) + handler: handleMetadataCreated + - event: MetadataUpdated(indexed address,indexed address,bytes,bytes) + handler: handleMetadataUpdated + - kind: ethereum/contract + name: FixedRateExchange + network: moonriver + source: + address: '0xFe7967A5176fDAFa8DE109b3507016B885a82D6e' + abi: FixedRateExchange + startBlock: 637158 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/fixedrateexchange.ts + entities: + - FixedRateExchange + abis: + - name: FixedRateExchange + file: ./abis/FixedRateExchange.json + - name: ERC20 + file: ./abis/ERC20.json + - name: ERC20SymbolBytes + file: ./abis/ERC20SymbolBytes.json + - name: ERC20NameBytes + file: ./abis/ERC20NameBytes.json + eventHandlers: + - event: ExchangeCreated(indexed bytes32,indexed address,indexed address,address,uint256) + handler: handleExchangeCreated + - event: ExchangeActivated(indexed bytes32,indexed address) + handler: handleExchangeActivated + - event: ExchangeDeactivated(indexed bytes32,indexed address) + handler: handleExchangeDeactivated + - event: ExchangeRateChanged(indexed bytes32,indexed address,uint256) + handler: handleExchangeRateChanged + - event: Swapped(indexed bytes32,indexed address,uint256,uint256) + handler: handleSwapped + - kind: ethereum/contract + name: Dispenser + network: moonriver + source: + address: '0xA4E108a4fa07C931cFe4bF2c1c6f9C1579d5a819' + abi: Dispenser + startBlock: 637162 + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/dispenser.ts + entities: + - Dispenser + abis: + - name: Dispenser + file: ./abis/Dispenser.json + eventHandlers: + - event: Activated(indexed address) + handler: handleDispenserActivated + - event: Deactivated(indexed address) + handler: handleDispenserDeactivated + - event: AcceptedMinter(indexed address) + handler: handleDispenserAcceptedMinter + - event: RemovedMinter(indexed address) + handler: handleDispenserRemovedMinter + - event: TokensDispensed(indexed address,indexed address,uint256) + handler: handleDispenserTokensDispensed + - event: OwnerWithdrawed(indexed address,indexed address,uint256) + handler: handleDispenserOwnerWithdrawed +templates: + - kind: ethereum/contract + name: Pool + network: moonriver + source: + abi: Pool + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/pool.ts + entities: + - Pool + - PoolFactory + - Swap + abis: + - name: Pool + file: ./abis/BPool.json + - name: BToken + file: ./abis/BToken.json + - name: ERC20 + file: ./abis/ERC20.json + - name: ERC20SymbolBytes + file: ./abis/ERC20SymbolBytes.json + - name: ERC20NameBytes + file: ./abis/ERC20NameBytes.json + eventHandlers: + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x34e1990700000000000000000000000000000000000000000000000000000000' + handler: handleSetSwapFee + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x92eefe9b00000000000000000000000000000000000000000000000000000000' + handler: handleSetController + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x49b5955200000000000000000000000000000000000000000000000000000000' + handler: handleSetPublicSwap + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x4bb278f300000000000000000000000000000000000000000000000000000000' + handler: handleFinalize + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0xd1d7bc9100000000000000000000000000000000000000000000000000000000' + handler: handleSetup + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x3fdddaa200000000000000000000000000000000000000000000000000000000' + handler: handleRebind + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0xe4e1e53800000000000000000000000000000000000000000000000000000000' + handler: handleRebind + - event: LOG_CALL(indexed bytes4,indexed address,bytes) + topic0: '0x8c28cbe800000000000000000000000000000000000000000000000000000000' + handler: handleGulp + - event: LOG_JOIN(indexed address,indexed address,uint256) + handler: handleJoinPool + - event: LOG_EXIT(indexed address,indexed address,uint256) + handler: handleExitPool + - event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256) + handler: handleSwap + - event: Transfer(indexed address,indexed address,uint256) + handler: handleTransfer + + - kind: ethereum/contract + name: DataToken + network: moonriver + source: + abi: DataToken + mapping: + kind: ethereum/events + apiVersion: 0.0.4 + language: wasm/assemblyscript + file: ./src/mappings/datatoken.ts + entities: + - DataToken + - DatatokenFactory + abis: + - name: DataToken + file: ./abis/DataTokenTemplate.json + eventHandlers: + - event: Transfer(indexed address,indexed address,uint256) + handler: handleTransfer + - event: OrderStarted(indexed address,indexed address,uint256,uint256,uint256,indexed address,uint256) + handler: handleOrderStarted