specVersion: 0.0.2
description: Synthetix Depot API
repository: https://github.com/Synthetixio/synthetix-subgraph
schema:
  file: ./subgraphs/synthetix-depot.graphql
dataSources:
  - kind: ethereum/contract
    name: Depot
    network: mainnet
    source:
      address: '0x172E09691DfBbC035E37c73B62095caa16Ee2388'
      abi: Depot
    mapping:
      kind: ethereum/events
      apiVersion: 0.0.3
      language: wasm/assemblyscript
      file: ./src/depot-mapping.ts
      entities:
        - SynthWithdrawal
        - SynthDeposit
        - SynthDepositRemoved
        - SynthDepositNotAccepted
        - ClearedDeposit
      abis:
        - name: Depot
          file: ./abis/Depot.json
      eventHandlers:
        - event: ClearedDeposit(indexed address,indexed address,uint256,uint256,indexed uint256)
          handler: handleClearedDeposit
        - event: SynthWithdrawal(address,uint256)
          handler: handleSynthWithdrawal
        - event: SynthDeposit(indexed address,uint256,indexed uint256)
          handler: handleSynthDeposit
        - event: SynthDepositRemoved(indexed address,uint256,indexed uint256)
          handler: handleSynthDepositRemoved
        - event: SynthDepositNotAccepted(address,uint256,uint256)
          handler: handleSynthDepositNotAccepted
  # - kind: ethereum/contract
  #   name: Depot
  #   network: kovan
  #   source:
  #     address: '0x73a61f7D7401096ccB4AC883ebeb7bE7605c3955'
  #     abi: Depot
  #   mapping:
  #     kind: ethereum/events
  #     apiVersion: 0.0.3
  #     language: wasm/assemblyscript
  #     file: ./src/depot-mapping.ts
  #     entities:
  #       - SynthWithdrawal
  #       - SynthDeposit
  #       - SynthDepositRemoved
  #       - SynthDepositNotAccepted
  #       - ClearedDeposit
  #     abis:
  #       - name: Depot
  #         file: ./abis/Depot.json
  #     eventHandlers:
  #       - event: ClearedDeposit(indexed address,indexed address,uint256,uint256,indexed uint256)
  #         handler: handleClearedDepositKovan
  #       - event: SynthWithdrawal(address,uint256)
  #         handler: handleSynthWithdrawalKovan
  #       - event: SynthDeposit(indexed address,uint256,indexed uint256)
  #         handler: handleSynthDepositKovan
  #       - event: SynthDepositRemoved(indexed address,uint256,indexed uint256)
  #         handler: handleSynthDepositRemovedKovan
  #       - event: SynthDepositNotAccepted(address,uint256,uint256)
  #         handler: handleSynthDepositNotAcceptedKovan
  # - kind: ethereum/contract
  #   name: Depot
  #   network: rinkeby
  #   source:
  #     address: '0xDFd3CAde426Fc6A014fd2e0E1Cb3158F972A1A0D'
  #     abi: Depot
  #   mapping:
  #     kind: ethereum/events
  #     apiVersion: 0.0.3
  #     language: wasm/assemblyscript
  #     file: ./src/depot-mapping.ts
  #     entities:
  #       - SynthWithdrawal
  #       - SynthDeposit
  #       - SynthDepositRemoved
  #       - SynthDepositNotAccepted
  #       - ClearedDeposit
  #     abis:
  #       - name: Depot
  #         file: ./abis/Depot.json
  #     eventHandlers:
  #       - event: ClearedDeposit(indexed address,indexed address,uint256,uint256,indexed uint256)
  #         handler: handleClearedDepositRinkeby
  #       - event: SynthWithdrawal(address,uint256)
  #         handler: handleSynthWithdrawalRinkeby
  #       - event: SynthDeposit(indexed address,uint256,indexed uint256)
  #         handler: handleSynthDepositRinkeby
  #       - event: SynthDepositRemoved(indexed address,uint256,indexed uint256)
  #         handler: handleSynthDepositRemovedRinkeby
  #       - event: SynthDepositNotAccepted(address,uint256,uint256)
  #         handler: handleSynthDepositNotAcceptedRinkeby
  # - kind: ethereum/contract
  #   name: Depot
  #   network: ropsten
  #   source:
  #     address: '0x85a02d90B62c454d69eE1F3660BA5c2135Da0cd2'
  #     abi: Depot
  #   mapping:
  #     kind: ethereum/events
  #     apiVersion: 0.0.3
  #     language: wasm/assemblyscript
  #     file: ./src/depot-mapping.ts
  #     entities:
  #       - SynthWithdrawal
  #       - SynthDeposit
  #       - SynthDepositRemoved
  #       - SynthDepositNotAccepted
  #       - ClearedDeposit
  #     abis:
  #       - name: Depot
  #         file: ./abis/Depot.json
  #     eventHandlers:
  #       - event: ClearedDeposit(indexed address,indexed address,uint256,uint256,indexed uint256)
  #         handler: handleClearedDepositRopsten
  #       - event: SynthWithdrawal(address,uint256)
  #         handler: handleSynthWithdrawalRopsten
  #       - event: SynthDeposit(indexed address,uint256,indexed uint256)
  #         handler: handleSynthDepositRopsten
  #       - event: SynthDepositRemoved(indexed address,uint256,indexed uint256)
  #         handler: handleSynthDepositRemovedRopsten
  #       - event: SynthDepositNotAccepted(address,uint256,uint256)
  #         handler: handleSynthDepositNotAcceptedRopsten
