Skip to content
Permalink
a002a98487
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
specVersion: 0.0.2
description: PancakeSwap is a decentralized protocol for automated token exchange on Binance Smart Chain.
repository: https://github.com/pancakeswap
schema:
file: ./exchange.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: bsc
source:
address: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73'
abi: Factory
startBlock: 6809737
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/exchange/factory.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ../abis/Factory.json
- name: BEP20
file: ../abis/BEP20.json
- name: BEP20NameBytes
file: ../abis/BEP20NameBytes.json
- name: BEP20SymbolBytes
file: ../abis/BEP20SymbolBytes.json
eventHandlers:
- event: PairCreated(indexed address,indexed address,address,uint256)
handler: handlePairCreated
templates:
- kind: ethereum/contract
name: Pair
network: bsc
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/exchange/core.ts
entities:
- Pair
- Token
abis:
- name: Factory
file: ../abis/Factory.json
- name: Pair
file: ../abis/Pair.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: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Sync(uint112,uint112)
handler: handleSync