mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
add Gaia-X testnet, BSC & Mumbai (#140)
This commit is contained in:
parent
977381f1ab
commit
7aad411e74
@ -12,6 +12,9 @@
|
|||||||
"create:local-ropsten": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020",
|
"create:local-ropsten": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020",
|
||||||
"create:local-polygon": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020",
|
"create:local-polygon": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020",
|
||||||
"create:local-moonbeamalpha": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020",
|
"create:local-moonbeamalpha": "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020",
|
||||||
|
"create:local-gaiaxtestnet": "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",
|
||||||
"codegen": "graph codegen --output-dir src/@types",
|
"codegen": "graph codegen --output-dir src/@types",
|
||||||
"build": "graph build",
|
"build": "graph build",
|
||||||
"deploy": "graph deploy oceanprotocol/ocean-subgraph --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/",
|
"deploy": "graph deploy oceanprotocol/ocean-subgraph --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/",
|
||||||
@ -22,6 +25,9 @@
|
|||||||
"deploy:local-ropsten": "graph deploy oceanprotocol/ocean-subgraph subgraph.ropsten.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020",
|
"deploy:local-ropsten": "graph deploy oceanprotocol/ocean-subgraph subgraph.ropsten.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020",
|
||||||
"deploy:local-polygon": "graph deploy oceanprotocol/ocean-subgraph subgraph.polygon.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020",
|
"deploy:local-polygon": "graph deploy oceanprotocol/ocean-subgraph subgraph.polygon.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020",
|
||||||
"deploy:local-moonbeamalpha": "graph deploy oceanprotocol/ocean-subgraph subgraph.moonbeamalpha.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020",
|
"deploy:local-moonbeamalpha": "graph deploy oceanprotocol/ocean-subgraph subgraph.moonbeamalpha.yaml --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020",
|
||||||
|
"deploy:local-gaiaxtestnet": "graph deploy oceanprotocol/ocean-subgraph subgraph.gaiaxtestnet.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",
|
||||||
"test": "npm run codegen && npm run lint && npm run type-check",
|
"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'",
|
"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 .",
|
"lint": "eslint --ignore-path .gitignore --ext .js --ext .ts --ext .tsx .",
|
||||||
|
@ -41,7 +41,10 @@ function getOceanAddress(): string {
|
|||||||
if (network == 'polygon') return '0x282d8efce846a88b159800bd4130ad77443fa1a1'
|
if (network == 'polygon') return '0x282d8efce846a88b159800bd4130ad77443fa1a1'
|
||||||
if (network == 'moonbeamalpha')
|
if (network == 'moonbeamalpha')
|
||||||
return '0x3c21a90599b5b7f37014ca5bf30d3f1b73d7e391'
|
return '0x3c21a90599b5b7f37014ca5bf30d3f1b73d7e391'
|
||||||
|
if (network == 'gaiaxtestnet')
|
||||||
|
return '0x80e63f73cac60c1662f27d2dfd2ea834acddbaa8'
|
||||||
|
if (network == 'mumbai') return '0xd8992ed72c445c35cb4a2be468568ed1079357c8'
|
||||||
|
if (network == 'bsc') return '0xdce07662ca8ebc241316a15b611c89711414dd1a'
|
||||||
return '0x967da4048cd07ab37855c090aaf366e4ce1b9f48'
|
return '0x967da4048cd07ab37855c090aaf366e4ce1b9f48'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
201
subgraph.bsc.yaml
Normal file
201
subgraph.bsc.yaml
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
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: bsc
|
||||||
|
source:
|
||||||
|
address: '0xc313e19146Fc9a04470689C9d41a4D3054693531'
|
||||||
|
abi: Factory
|
||||||
|
startBlock: 8114772
|
||||||
|
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: bsc
|
||||||
|
source:
|
||||||
|
address: '0xE9397625Df9B63f0C152f975234b7988b54710B8'
|
||||||
|
abi: DTFactory
|
||||||
|
startBlock: 8114772
|
||||||
|
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: bsc
|
||||||
|
source:
|
||||||
|
address: '0x1d535147a97bd87c8443125376E6671B60556E07'
|
||||||
|
abi: Metadata
|
||||||
|
startBlock: 8114772
|
||||||
|
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: bsc
|
||||||
|
source:
|
||||||
|
address: '0x98679D582AB3398C03D3308dEB9c7AeC50B52ded'
|
||||||
|
abi: FixedRateExchange
|
||||||
|
startBlock: 8114772
|
||||||
|
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
|
||||||
|
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: bsc
|
||||||
|
source:
|
||||||
|
address: '0xFe7967A5176fDAFa8DE109b3507016B885a82D6e'
|
||||||
|
abi: Dispenser
|
||||||
|
startBlock: 8114772
|
||||||
|
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: bsc
|
||||||
|
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
|
||||||
|
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: bsc
|
||||||
|
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
|
201
subgraph.gaiaxtestnet.yaml
Normal file
201
subgraph.gaiaxtestnet.yaml
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
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: gaiaxtestnet
|
||||||
|
source:
|
||||||
|
address: '0xc37F8341Ac6e4a94538302bCd4d49Cf0852D30C0'
|
||||||
|
abi: Factory
|
||||||
|
startBlock: 177644
|
||||||
|
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: gaiaxtestnet
|
||||||
|
source:
|
||||||
|
address: '0x2720d405ef7cDC8a2E2e5AeBC8883C99611d893C'
|
||||||
|
abi: DTFactory
|
||||||
|
startBlock: 177644
|
||||||
|
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: gaiaxtestnet
|
||||||
|
source:
|
||||||
|
address: '0xCfDdA22C9837aE76E0faA845354f33C62E03653a'
|
||||||
|
abi: Metadata
|
||||||
|
startBlock: 177644
|
||||||
|
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: gaiaxtestnet
|
||||||
|
source:
|
||||||
|
address: '0x3c21a90599b5B7f37014cA5Bf30d3f1b73d7e391'
|
||||||
|
abi: FixedRateExchange
|
||||||
|
startBlock: 177644
|
||||||
|
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
|
||||||
|
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: gaiaxtestnet
|
||||||
|
source:
|
||||||
|
address: '0x4E6058dC00e90C0DCA47A5d0D3346F409939A5ab'
|
||||||
|
abi: Dispenser
|
||||||
|
startBlock: 177644
|
||||||
|
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: gaiaxtestnet
|
||||||
|
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
|
||||||
|
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: gaiaxtestnet
|
||||||
|
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
|
201
subgraph.mumbai.yaml
Normal file
201
subgraph.mumbai.yaml
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
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: mumbai
|
||||||
|
source:
|
||||||
|
address: '0x159924ca0F47D6F704B97E29099b89e518A17B5E'
|
||||||
|
abi: Factory
|
||||||
|
startBlock: 14791845
|
||||||
|
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: mumbai
|
||||||
|
source:
|
||||||
|
address: '0x4E6058dC00e90C0DCA47A5d0D3346F409939A5ab'
|
||||||
|
abi: DTFactory
|
||||||
|
startBlock: 14791845
|
||||||
|
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: mumbai
|
||||||
|
source:
|
||||||
|
address: '0x98679D582AB3398C03D3308dEB9c7AeC50B52ded'
|
||||||
|
abi: Metadata
|
||||||
|
startBlock: 14791845
|
||||||
|
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: mumbai
|
||||||
|
source:
|
||||||
|
address: '0xc313e19146Fc9a04470689C9d41a4D3054693531'
|
||||||
|
abi: FixedRateExchange
|
||||||
|
startBlock: 14791845
|
||||||
|
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
|
||||||
|
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: mumbai
|
||||||
|
source:
|
||||||
|
address: '0x1d535147a97bd87c8443125376E6671B60556E07'
|
||||||
|
abi: Dispenser
|
||||||
|
startBlock: 14791845
|
||||||
|
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: mumbai
|
||||||
|
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
|
||||||
|
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: mumbai
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user