2024-05-21 12:04:28 +00:00
|
|
|
specVersion: 0.0.5
|
|
|
|
description: Secured Finance is decentralized P2P banking business for digital assets
|
|
|
|
schema:
|
|
|
|
file: schema.graphql
|
|
|
|
dataSources:
|
|
|
|
- kind: ethereum
|
|
|
|
name: LendingMarketOperationLogic
|
2024-06-14 08:32:34 +00:00
|
|
|
network: filecoin-mainnet
|
2024-05-21 12:04:28 +00:00
|
|
|
source:
|
|
|
|
abi: LendingMarketController
|
2024-06-14 08:32:34 +00:00
|
|
|
address: "0x35e9D8e0223A75E51a67aa731127C91Ea0779Fe2"
|
|
|
|
startBlock: 3998055
|
2024-05-21 12:04:28 +00:00
|
|
|
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
|
2024-06-14 08:32:34 +00:00
|
|
|
network: filecoin-mainnet
|
2024-05-21 12:04:28 +00:00
|
|
|
source:
|
|
|
|
abi: TokenVault
|
2024-06-14 08:32:34 +00:00
|
|
|
address: "0xB74749b2213916b1dA3b869E41c7c57f1db69393"
|
|
|
|
startBlock: 3998059
|
2024-05-21 12:04:28 +00:00
|
|
|
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
|
2024-06-14 08:32:34 +00:00
|
|
|
network: filecoin-mainnet
|
2024-05-21 12:04:28 +00:00
|
|
|
source:
|
|
|
|
abi: LendingMarketController
|
2024-06-14 08:32:34 +00:00
|
|
|
address: "0x35e9D8e0223A75E51a67aa731127C91Ea0779Fe2"
|
|
|
|
startBlock: 3998055
|
2024-05-21 12:04:28 +00:00
|
|
|
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
|
2024-06-14 08:32:34 +00:00
|
|
|
network: filecoin-mainnet
|
2024-05-21 12:04:28 +00:00
|
|
|
source:
|
|
|
|
abi: LendingMarketController
|
2024-06-14 08:32:34 +00:00
|
|
|
address: "0x35e9D8e0223A75E51a67aa731127C91Ea0779Fe2"
|
|
|
|
startBlock: 3998055
|
2024-05-21 12:04:28 +00:00
|
|
|
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
|
2024-06-14 08:32:34 +00:00
|
|
|
network: filecoin-mainnet
|
2024-05-21 12:04:28 +00:00
|
|
|
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
|
2024-06-14 08:32:34 +00:00
|
|
|
network: filecoin-mainnet
|
2024-05-21 12:04:28 +00:00
|
|
|
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
|