mirror of
https://github.com/zoo-apps/exchange.git
synced 2026-10-30 15:02:24 +00:00
- Full app extraction from zoo monorepo (source only) - Configured for GitHub Pages deployment - Static export enabled - Custom domain: zoo.exchange - Excludes node_modules and build artifacts
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
specVersion: 0.0.5
|
|
schema:
|
|
file: ./schema.graphql
|
|
dataSources:
|
|
- kind: ethereum
|
|
name: Factory
|
|
network: lux
|
|
source:
|
|
address: "0x0000000000000000000000000000000000000000" # Replace with actual factory address
|
|
abi: Factory
|
|
startBlock: 0
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- Pair
|
|
- Token
|
|
- Factory
|
|
abis:
|
|
- name: Factory
|
|
file: ./abis/Factory.json
|
|
- name: Pair
|
|
file: ./abis/Pair.json
|
|
- name: ERC20
|
|
file: ./abis/ERC20.json
|
|
eventHandlers:
|
|
- event: PairCreated(indexed address,indexed address,address,uint256)
|
|
handler: handlePairCreated
|
|
file: ./src/factory.ts
|
|
templates:
|
|
- kind: ethereum/contract
|
|
name: Pair
|
|
network: lux
|
|
source:
|
|
abi: Pair
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- Pair
|
|
- Token
|
|
- Swap
|
|
- Mint
|
|
- Burn
|
|
abis:
|
|
- name: Pair
|
|
file: ./abis/Pair.json
|
|
- name: Factory
|
|
file: ./abis/Factory.json
|
|
eventHandlers:
|
|
- event: Mint(indexed address,uint256,uint256)
|
|
handler: handleMint
|
|
- event: Burn(indexed address,uint256,uint256,indexed address)
|
|
handler: handleBurn
|
|
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address)
|
|
handler: handleSwap
|
|
- event: Sync(uint112,uint112)
|
|
handler: handleSync
|
|
file: ./src/pair.ts |