dataSources:
  - kind: ethereum/contract
    mapping:
      abis:
        - file:
            /: /ipfs/QmSLxRcEz4ryJixTrsja9BeUyTHrXxNzWTgEd4vfiah2Tq
          name: BorrowerOperations
        - file:
            /: /ipfs/QmcZAnkpTDzReY4HzPcv3vcRmW5WZqdxitWWtpdh2Eg8FR
          name: BoldToken
        - file:
            /: /ipfs/QmSx2C2nWBRenvUbY5x7zfNk3QvAu3mPTY9VC3JGg7EwhH
          name: CollateralRegistry
        - file:
            /: /ipfs/QmZnFNAiTcDvBZH2LqWbtxQ3yJcGHAxPBmfbUwDEpjWwaL
          name: ERC20
        - file:
            /: /ipfs/QmVgPrpm2SvtL6RfRwRxYkciqYdC35F7j8FSEv3Sf4YjEm
          name: TroveManager
        - file:
            /: /ipfs/QmNX4ghgQvoch2st9Kx4GXT9kArs2NWRw6hERNAEacow7r
          name: TroveNFT
      apiVersion: 0.0.9
      entities:
        - Collateral
        - CollateralAddresses
        - Token
      eventHandlers:
        - event: CollateralRegistryAddressChanged(address)
          handler: handleCollateralRegistryAddressChanged
      file:
        /: /ipfs/QmTWjqtwnJAZppMbvDrNTLKYHq9K1rxMhEJrwz2ndvcjsc
      kind: ethereum/events
      language: wasm/assemblyscript
    name: BoldToken
    network: mainnet
    source:
      abi: BoldToken
      address: '0xb01dd87b29d187f3e3a4bf6cdaebfb97f3d9ab98'
      startBlock: 21640111
  - kind: ethereum/contract
    mapping:
      abis:
        - file:
            /: /ipfs/QmQXK33BR1r6rdCw6Rfp2FGtBvuNFrUmt5jVNuzNXwWXQW
          name: Governance
      apiVersion: 0.0.9
      entities:
        - GovernanceAllocation
        - GovernanceInitiative
        - GovernanceStats
        - GovernanceUser
      eventHandlers:
        - event: >-
            AllocateLQTY(indexed address,indexed
            address,int256,int256,uint256,uint8)
          handler: handleAllocateLQTY
        - event: 'ClaimForInitiative(indexed address,uint256,uint256,uint8)'
          handler: handleClaimForInitiative
        - event: >-
            DepositLQTY(indexed
            address,address,uint256,uint256,uint256,uint256,uint256)
          handler: handleDepositLQTY
        - event: 'RegisterInitiative(address,address,uint256,uint8)'
          handler: handleRegisterInitiative
        - event: 'SnapshotVotesForInitiative(indexed address,uint256,uint256,uint256)'
          handler: handleSnapshotVotesForInitiative
        - event: 'UnregisterInitiative(address,uint256,uint8)'
          handler: handleUnregisterInitiative
        - event: >-
            WithdrawLQTY(indexed
            address,address,uint256,uint256,uint256,uint256,uint256,uint256)
          handler: handleWithdrawLQTY
      file:
        /: /ipfs/QmV7qYXPDAvxr5TNyudJQPrBSBM3noiYwiVT3DCqBTMiAo
      kind: ethereum/events
      language: wasm/assemblyscript
    name: Governance
    network: mainnet
    source:
      abi: Governance
      address: '0x636deb767cd7d0f15ca4ab8ea9a9b26e98b426ac'
      startBlock: 21640111
schema:
  file:
    /: /ipfs/QmTH19htRRr4pTv95wp1G1o32UtvvXRdnpn63L4r2G8A2S
specVersion: 1.2.0
templates:
  - kind: ethereum/contract
    mapping:
      abis:
        - file:
            /: /ipfs/QmVgPrpm2SvtL6RfRwRxYkciqYdC35F7j8FSEv3Sf4YjEm
          name: TroveManager
        - file:
            /: /ipfs/QmNX4ghgQvoch2st9Kx4GXT9kArs2NWRw6hERNAEacow7r
          name: TroveNFT
      apiVersion: 0.0.9
      entities:
        - Trove
        - InterestRateBracket
        - InterestBatch
        - BorrowerInfo
        - Collateral
      eventHandlers:
        - event: >-
            TroveOperation(indexed
            uint256,uint8,uint256,uint256,uint256,int256,uint256,int256)
          handler: handleTroveOperation
          receipt: true
        - event: >-
            BatchUpdated(indexed
            address,uint8,uint256,uint256,uint256,uint256,uint256,uint256)
          handler: handleBatchUpdated
      file:
        /: /ipfs/QmSYW2W3RGNjP4WJNALENJhGnZJczHqDYbgvvc7V4RbPxq
      kind: ethereum/events
      language: wasm/assemblyscript
    name: TroveManager
    network: mainnet
    source:
      abi: TroveManager
  - kind: ethereum/contract
    mapping:
      abis:
        - file:
            /: /ipfs/QmNX4ghgQvoch2st9Kx4GXT9kArs2NWRw6hERNAEacow7r
          name: TroveNFT
      apiVersion: 0.0.9
      entities:
        - BorrowerInfo
        - Trove
      eventHandlers:
        - event: 'Transfer(indexed address,indexed address,indexed uint256)'
          handler: handleTransfer
      file:
        /: /ipfs/Qmby2AxhFZSR5eJNqcr9tP83cqpBvAqJoEMDDAzkRQBDGQ
      kind: ethereum/events
      language: wasm/assemblyscript
    name: TroveNFT
    network: mainnet
    source:
      abi: TroveNFT
  - kind: ethereum/contract
    mapping:
      abis:
        - file:
            /: /ipfs/QmX31iJ5Xgyrpxf77FBxPRQhezTHJcii5fas8UFTuKNTaF
          name: StabilityPool
      apiVersion: 0.0.9
      entities:
        - StabilityPool
        - StabilityPoolDeposit
      eventHandlers:
        - event: >-
            DepositUpdated(indexed
            address,uint256,uint256,uint256,uint256,uint256,uint256,uint256)
          handler: handleDepositUpdated
        - event: 'S_Updated(uint256,uint128,uint128)'
          handler: handleSUpdated
        - event: 'B_Updated(uint256,uint128,uint128)'
          handler: handleBUpdated
      file:
        /: /ipfs/QmQ4H3CuRf4ZFBsSQHPs12yqShCLiMdDMc2qsCMbSrRHCo
      kind: ethereum/events
      language: wasm/assemblyscript
    name: StabilityPool
    network: mainnet
    source:
      abi: StabilityPool