Skip to content

Commit

Permalink
feat: add avalanche chain
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lahaye <[email protected]>
  • Loading branch information
ChrisLahaye committed May 3, 2023
1 parent 4d89eb3 commit 67c8a44
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
50 changes: 50 additions & 0 deletions subgraph.avalanche.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 67c8a44

Please sign in to comment.