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-testnet source: abi: LendingMarketController address: "0x015528f1c2D7676bFf39d50a6c5a2686E68e3376" startBlock: 1576704 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-testnet source: abi: TokenVault address: "0xc02Cf07B04B6AA45716BdC3D23656Ac55f70bdf5" startBlock: 1576708 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-testnet source: abi: LendingMarketController address: "0x015528f1c2D7676bFf39d50a6c5a2686E68e3376" startBlock: 1576704 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-testnet source: abi: LendingMarketController address: "0x015528f1c2D7676bFf39d50a6c5a2686E68e3376" startBlock: 1576704 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-testnet 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-testnet 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