diff --git a/package.json b/package.json index dc54492..e9b3f8b 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "deploy:aurora-testnet": "yarn manifest aurora-testnet && graph deploy --product hosted-service lemonadesocial/lemonade-marketplace-aurora-testnet", "deploy:aurora": "yarn manifest aurora && graph deploy --product hosted-service lemonadesocial/lemonade-marketplace-aurora", "deploy:astar": "yarn manifest astar && graph deploy --node http://localhost:8020/ --ipfs http://localhost:9095 lemonade-astar", + "deploy:avalanche": "yarn manifest avalanche && graph deploy --product hosted-service lemonadesocial/lemonade-avalanche", "deploy:bnb-testnet": "yarn manifest bnb-testnet && graph deploy --product hosted-service lemonadesocial/lemonade-marketplace-bnb-testnet", "deploy:bnb": "yarn manifest bnb && graph deploy --product hosted-service lemonadesocial/lemonade-marketplace-bnb", "deploy:celo": "yarn manifest celo && graph deploy --product hosted-service lemonadesocial/lemonade-celo", diff --git a/subgraph.avalanche.yaml b/subgraph.avalanche.yaml new file mode 100644 index 0000000..d9d93a9 --- /dev/null +++ b/subgraph.avalanche.yaml @@ -0,0 +1,50 @@ +specVersion: 0.0.4 +schema: + file: ./schema.graphql +dataSources: + - kind: ethereum/contract + name: LemonadeMarketplace + network: avalanche + source: + abi: LemonadeMarketplace + mapping: + kind: ethereum/events + apiVersion: 0.0.6 + language: wasm/assemblyscript + entities: + - Order + abis: + - name: LemonadeMarketplace + file: ./abis/LemonadeMarketplace.json + - name: IERC20Metadata + file: ./abis/IERC20Metadata.json + eventHandlers: + - event: OrderCreated(indexed uint256,uint8,uint256,uint256,indexed address,address,uint256,address,uint256) + handler: handleOrderCreated + - event: OrderBid(indexed uint256,indexed address,uint256) + handler: handleOrderBid + - event: OrderFilled(indexed uint256,indexed address,uint256) + handler: handleOrderFilled + - event: OrderCancelled(indexed uint256) + handler: handleOrderCancelled + file: ./src/mapping.ts + - kind: ethereum/contract + name: IERC721 + network: avalanche + source: + abi: IERC721 + mapping: + kind: ethereum/events + apiVersion: 0.0.6 + language: wasm/assemblyscript + entities: + - Token + abis: + - name: IERC165 + file: ./abis/IERC165.json + - name: IERC721 + file: ./abis/IERC721.json + eventHandlers: + - event: Transfer(indexed address,indexed address,indexed uint256) + handler: handleTransfer + file: ./src/mapping.ts