kleros/kleros-v2

View on GitHub
subgraph/core-university/subgraph.yaml

Summary

Maintainability
Test Coverage
specVersion: 0.0.4
schema:
  file: ./schema.graphql
features:
  - fullTextSearch

dataSources:
  - kind: ethereum
    name: KlerosCore
    network: arbitrum-sepolia
    source:
      address: "0x10BaAFDe8B4d3164CA781571e2F1513317f57980"
      abi: KlerosCore
      startBlock: 12264702
    mapping:
      kind: ethereum/events
      apiVersion: 0.0.6
      language: wasm/assemblyscript
      entities:
        - User
        - Arbitrable
        - TokenAndETHShift
        - JurorTokensPerCourt
        - Court
        - Dispute
        - Round
        - Draw
        - DisputeKit
        - Counter
      abis:
        - name: SortitionModule
          file: ../../contracts/deployments/arbitrumSepoliaDevnet/SortitionModuleUniversity.json
        - name: DisputeKitClassic
          file: ../../contracts/deployments/arbitrumSepoliaDevnet/DisputeKitClassicUniversity.json
        - name: KlerosCore
          file: ../../contracts/deployments/arbitrumSepoliaDevnet/KlerosCoreUniversity.json
      eventHandlers:
        - event: AppealDecision(indexed uint256,indexed address)
          handler: handleAppealDecision
        - event: DisputeCreation(indexed uint256,indexed address)
          handler: handleDisputeCreation
        - event: Draw(indexed address,indexed uint256,uint256,uint256)
          handler: handleDraw
        - event: NewPeriod(indexed uint256,uint8)
          handler: handleNewPeriod
        - event: CourtCreated(indexed uint256,indexed uint96,bool,uint256,uint256,uint256,uint256,uint256[4],uint256[])
          handler: handleCourtCreated
        - event: CourtModified(indexed uint96,bool,uint256,uint256,uint256,uint256,uint256[4])
          handler: handleCourtModified
        - event: DisputeKitCreated(indexed uint256,indexed address)
          handler: handleDisputeKitCreated
        - event: DisputeKitEnabled(indexed uint96,indexed uint256,indexed bool)
          handler: handleDisputeKitEnabled
        - event: TokenAndETHShift(indexed address,indexed uint256,indexed uint256,uint256,int256,int256,address)
          handler: handleTokenAndETHShift
        - event: Ruling(indexed address,indexed uint256,uint256)
          handler: handleRuling
        - event: AcceptedFeeToken(indexed address,indexed bool)
          handler: handleAcceptedFeeToken
        - event: CourtJump(indexed uint256,indexed uint256,indexed uint96,uint96)
          handler: handleCourtJump
      file: ./src/KlerosCore.ts
  - kind: ethereum
    name: PolicyRegistry
    network: arbitrum-sepolia
    source:
      address: "0x2AC2EdFD336732bc6963f1AD03ED98B22dB949da"
      abi: PolicyRegistry
      startBlock: 3084568
    mapping:
      kind: ethereum/events
      apiVersion: 0.0.6
      language: wasm/assemblyscript
      entities:
        - Court
      abis:
        - name: PolicyRegistry
          file: ../../contracts/deployments/arbitrumSepoliaDevnet/PolicyRegistry.json
      eventHandlers:
        - event: PolicyUpdate(indexed uint256,string,string)
          handler: handlePolicyUpdate
      file: ./src/PolicyRegistry.ts
  - kind: ethereum
    name: DisputeKitClassic
    network: arbitrum-sepolia
    source:
      address: "0xDaE66157D72Baa099cd63a833c353776206feea4"
      abi: DisputeKitClassic
      startBlock: 12264683
    mapping:
      kind: ethereum/events
      apiVersion: 0.0.6
      language: wasm/assemblyscript
      entities:
        - ClassicDispute
        - ClassicRound
        - ClassicVote
        - ClassicContribution
      abis:
        - name: DisputeKitClassic
          file: ../../contracts/deployments/arbitrumSepoliaDevnet/DisputeKitClassicUniversity.json
        - name: KlerosCore
          file: ../../contracts/deployments/arbitrumSepoliaDevnet/KlerosCoreUniversity.json
      eventHandlers:
        - event: DisputeCreation(indexed uint256,uint256,bytes)
          handler: handleDisputeCreation
        - event: Contribution(indexed uint256,indexed uint256,uint256,indexed address,uint256)
          handler: handleContributionEvent
        - event: Withdrawal(indexed uint256,indexed uint256,uint256,indexed address,uint256)
          handler: handleWithdrawal
        - event: ChoiceFunded(indexed uint256,indexed uint256,indexed uint256)
          handler: handleChoiceFunded
        - event: VoteCast(indexed uint256,indexed address,uint256[],indexed uint256,string)
          handler: handleVoteCast
        - event: CommitCast(indexed uint256,indexed address,uint256[],bytes32)
          handler: handleCommitCast
      file: ./src/DisputeKitClassic.ts
  - kind: ethereum
    name: EvidenceModule
    network: arbitrum-sepolia
    source:
      address: "0x57fd453FB0d16f8ca174E7386102D7170E17Be09"
      abi: EvidenceModule
      startBlock: 3638735
    mapping:
      kind: ethereum/events
      apiVersion: 0.0.6
      language: wasm/assemblyscript
      entities:
        - ClassicEvidenceGroup
        - ClassicEvidence
      abis:
        - name: EvidenceModule
          file: ../../contracts/deployments/arbitrumSepoliaDevnet/EvidenceModule.json
      eventHandlers:
        - event: Evidence(indexed uint256,indexed address,string)
          handler: handleEvidenceEvent
      file: ./src/EvidenceModule.ts
  - kind: ethereum
    name: SortitionModule
    network: arbitrum-sepolia
    source:
      address: "0xBEEb15EF1DEf96c569c97A703E649B0251ceFB04"
      abi: SortitionModule
      startBlock: 12264691
    mapping:
      kind: ethereum/events
      apiVersion: 0.0.6
      language: wasm/assemblyscript
      entities:
        - JurorTokensPerCourt
      abis:
        - name: SortitionModule
          file: ../../contracts/deployments/arbitrumSepoliaDevnet/SortitionModuleUniversity.json
      eventHandlers:
        - event: StakeLocked(indexed address,uint256,bool)
          handler: handleStakeLocked
        - event: StakeSet(indexed address,uint256,uint256)
          handler: handleStakeSet
      file: ./src/SortitionModule.ts