-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from VenusProtocol/add-etherfi-bnb-subgraph
feat: add etherfi promo subgraph for bnb
- Loading branch information
Showing
3 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
specVersion: 0.0.4 | ||
description: Venus is an open-source protocol for algorithmic, efficient Money Markets on the BSC blockchain. | ||
repository: https://github.com/VenusProtocol/subgraphs | ||
schema: | ||
file: ./schema.graphql | ||
dataSources: | ||
- kind: ethereum/contract | ||
name: vWeETH | ||
network: {{ network }} | ||
source: | ||
address: "{{ vWeEthAddress }}" | ||
abi: VToken | ||
startBlock: {{ vWeEthStartBlock }} | ||
mapping: | ||
kind: ethereum/events | ||
apiVersion: 0.0.9 | ||
language: wasm/assemblyscript | ||
file: ./src/mappings/vToken.ts | ||
entities: | ||
- SupplierAccount | ||
- BorrowerAccount | ||
abis: | ||
- name: VToken | ||
file: ../../node_modules/@venusprotocol/isolated-pools/artifacts/contracts/VToken.sol/VToken.json | ||
- name: ERC20 | ||
file: ../../node_modules/@venusprotocol/isolated-pools/artifacts/contracts/test/ERC20.sol/ERC20.json | ||
eventHandlers: | ||
- event: Mint(indexed address,uint256,uint256,uint256) | ||
handler: handleMint | ||
- event: Borrow(indexed address,uint256,uint256,uint256) | ||
handler: handleBorrow | ||
- event: Transfer(indexed address,indexed address,uint256) | ||
handler: handleTransfer | ||
- event: AccrueInterest(uint256,uint256,uint256,uint256) | ||
handler: handleAccrueInterest |