Nabarun
6d76de44e4
Part of [Part of Generate secured-finance subgraph watcher with codegen](https://www.notion.so/Generate-secured-finance-subgraph-watcher-with-codegen-2923413e0af54ea787c5435d6966f3bb) - Upgrade watcher package versions for event processing fix with null value in postgres text data type Reviewed-on: #3 Co-authored-by: Nabarun <nabarun@deepstacksoft.com> Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
147 lines
5.0 KiB
YAML
147 lines
5.0 KiB
YAML
specVersion: 0.0.5
|
|
description: Secured Finance is decentralized P2P banking business for digital assets
|
|
schema:
|
|
file: schema.graphql
|
|
dataSources:
|
|
- kind: ethereum
|
|
name: LendingMarketOperationLogic
|
|
network: filecoin-mainnet
|
|
source:
|
|
abi: LendingMarketController
|
|
address: "0x35e9D8e0223A75E51a67aa731127C91Ea0779Fe2"
|
|
startBlock: 3998055
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- LendingMarket
|
|
abis:
|
|
- name: LendingMarketController
|
|
file: LendingMarketOperationLogic/abis/LendingMarketOperationLogic.json
|
|
eventHandlers:
|
|
- event: LendingMarketInitialized(indexed
|
|
bytes32,uint256,uint256,uint256,uint256,address,address)
|
|
handler: handleLendingMarketInitialized
|
|
- event: OrderBookCreated(indexed bytes32,indexed uint8,uint256,uint256,uint256)
|
|
handler: handleOrderBookCreated
|
|
- event: OrderBooksRotated(bytes32,uint256,uint256)
|
|
handler: handleOrderBooksRotated
|
|
file: LendingMarketOperationLogic/LendingMarketOperationLogic.wasm
|
|
- kind: ethereum
|
|
name: TokenVault
|
|
network: filecoin-mainnet
|
|
source:
|
|
abi: TokenVault
|
|
address: "0xB74749b2213916b1dA3b869E41c7c57f1db69393"
|
|
startBlock: 3998059
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- User
|
|
abis:
|
|
- name: TokenVault
|
|
file: TokenVault/abis/TokenVault.json
|
|
eventHandlers:
|
|
- event: Deposit(indexed address,bytes32,uint256,address)
|
|
handler: handleDeposit
|
|
- event: Withdraw(indexed address,bytes32,uint256)
|
|
handler: handleWithdraw
|
|
file: TokenVault/TokenVault.wasm
|
|
- kind: ethereum
|
|
name: FundManagementLogic
|
|
network: filecoin-mainnet
|
|
source:
|
|
abi: LendingMarketController
|
|
address: "0x35e9D8e0223A75E51a67aa731127C91Ea0779Fe2"
|
|
startBlock: 3998055
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- Order
|
|
- Transaction
|
|
abis:
|
|
- name: LendingMarketController
|
|
file: FundManagementLogic/abis/FundManagementLogic.json
|
|
eventHandlers:
|
|
- event: OrderPartiallyFilled(uint48,indexed address,indexed
|
|
bytes32,uint8,uint256,uint256,uint256)
|
|
handler: handleOrderPartiallyFilled
|
|
file: FundManagementLogic/FundManagementLogic.wasm
|
|
- kind: ethereum
|
|
name: LiquidationLogic
|
|
network: filecoin-mainnet
|
|
source:
|
|
abi: LendingMarketController
|
|
address: "0x35e9D8e0223A75E51a67aa731127C91Ea0779Fe2"
|
|
startBlock: 3998055
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- Liquidation
|
|
abis:
|
|
- name: LendingMarketController
|
|
file: LiquidationLogic/abis/LiquidationLogic.json
|
|
eventHandlers:
|
|
- event: LiquidationExecuted(indexed address,bytes32,indexed bytes32,indexed
|
|
uint256,uint256)
|
|
handler: handleLiquidationExecuted
|
|
file: LiquidationLogic/LiquidationLogic.wasm
|
|
templates:
|
|
- kind: ethereum
|
|
name: OrderActionLogic
|
|
network: filecoin-mainnet
|
|
source:
|
|
abi: OrderActionLogic
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- Order
|
|
- Transaction
|
|
- DailyVolume
|
|
abis:
|
|
- name: OrderActionLogic
|
|
file: OrderActionLogic/abis/OrderActionLogic.json
|
|
eventHandlers:
|
|
- event: OrderExecuted(indexed address,uint8,indexed bytes32,indexed
|
|
uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint48,uint256,uint256,bool)
|
|
handler: handleOrderExecuted
|
|
- event: PreOrderExecuted(indexed address,uint8,indexed bytes32,indexed
|
|
uint256,uint256,uint256,uint48)
|
|
handler: handlePreOrderExecuted
|
|
- event: PositionUnwound(indexed address,uint8,indexed bytes32,indexed
|
|
uint256,uint256,uint256,uint256,uint256,uint256,bool)
|
|
handler: handlePositionUnwound
|
|
- event: OrderCanceled(uint48,indexed address,uint8,bytes32,uint256,uint256,uint256)
|
|
handler: handleOrderCanceled
|
|
- event: OrdersCleaned(uint48[],indexed address,uint8,indexed
|
|
bytes32,uint256,uint256,uint256)
|
|
handler: handleOrdersCleaned
|
|
file: templates/OrderActionLogic/OrderActionLogic.wasm
|
|
- kind: ethereum
|
|
name: OrderBookLogic
|
|
network: filecoin-mainnet
|
|
source:
|
|
abi: OrderBookLogic
|
|
mapping:
|
|
kind: ethereum/events
|
|
apiVersion: 0.0.7
|
|
language: wasm/assemblyscript
|
|
entities:
|
|
- LendingMarket
|
|
abis:
|
|
- name: OrderBookLogic
|
|
file: OrderBookLogic/abis/OrderBookLogic.json
|
|
eventHandlers:
|
|
- event: ItayoseExecuted(bytes32,uint256,uint256,uint256,uint256,uint256)
|
|
handler: handleItayoseExecuted
|
|
file: templates/OrderActionLogic/OrderActionLogic.wasm
|