Skip to content

Commit 70b1de5

Browse files
authored
Merge branch 'dev' into fix(web)/styling-feedback-plinio
2 parents 767a427 + ae3d854 commit 70b1de5

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

subgraph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"create-local": "graph create --node http://localhost:8020/ kleros/kleros-v2-core-local",
1616
"remove-local": "graph remove --node http://localhost:8020/ kleros/kleros-v2-core-local",
1717
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 kleros/kleros-v2-core-local --version-label v$(date +%s)",
18-
"rebuild-deploy-local": "yarn update:local && yarn codegen && yarn create-local && yarn deploy-local",
18+
"rebuild-deploy-local": "yarn update:local && yarn codegen && yarn build && yarn create-local && yarn deploy-local",
1919
"start-local-indexer": "docker compose -f ../services/graph-node/docker-compose.yml up -d && docker compose -f ../services/graph-node/docker-compose.yml logs -f",
2020
"stop-local-indexer": "docker compose -f ../services/graph-node/docker-compose.yml down && rm -rf ../services/graph-node/data"
2121
},

subgraph/src/entities/Round.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import { BigInt } from "@graphprotocol/graph-ts";
2-
import { KlerosCore__getRoundInfoResult } from "../../generated/KlerosCore/KlerosCore";
2+
import { KlerosCore__getRoundInfoResultValue0Struct } from "../../generated/KlerosCore/KlerosCore";
33
import { Round } from "../../generated/schema";
44

55
export function createRoundFromRoundInfo(
66
disputeID: BigInt,
77
roundIndex: BigInt,
8-
roundInfo: KlerosCore__getRoundInfoResult
8+
roundInfo: KlerosCore__getRoundInfoResultValue0Struct
99
): void {
1010
const roundID = `${disputeID.toString()}-${roundIndex.toString()}`;
1111
const round = new Round(roundID);
12-
const feeToken = roundInfo.getFeeToken().toHexString();
12+
const feeToken = roundInfo.feeToken.toHexString();
1313
round.feeToken = feeToken === "0x0000000000000000000000000000000000000000" ? null : feeToken;
14-
round.disputeKit = roundInfo.getDisputeKitID().toString();
15-
round.tokensAtStakePerJuror = roundInfo.getPnkAtStakePerJuror();
16-
round.totalFeesForJurors = roundInfo.getTotalFeesForJurors();
17-
round.nbVotes = roundInfo.getNbVotes();
18-
round.repartitions = roundInfo.getRepartitions();
19-
round.penalties = roundInfo.getPnkPenalties();
14+
round.disputeKit = roundInfo.disputeKitID.toString();
15+
round.tokensAtStakePerJuror = roundInfo.pnkAtStakePerJuror;
16+
round.totalFeesForJurors = roundInfo.totalFeesForJurors;
17+
round.nbVotes = roundInfo.nbVotes;
18+
round.repartitions = roundInfo.repartitions;
19+
round.penalties = roundInfo.pnkPenalties;
2020
round.dispute = disputeID.toString();
2121
round.save();
2222
}

subgraph/subgraph.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dataSources:
66
name: KlerosCore
77
network: arbitrum-goerli
88
source:
9-
address: "0x791812B0B9f2ba260B2DA432BB02Ee23BC1bB509"
9+
address: "0x813DCc76dbA91DD9f6bDD038aea0877FC95656bE"
1010
abi: KlerosCore
11-
startBlock: 33640331
11+
startBlock: 43823780
1212
mapping:
1313
kind: ethereum/events
1414
apiVersion: 0.0.6
@@ -26,9 +26,9 @@ dataSources:
2626
- Counter
2727
abis:
2828
- name: DisputeKitClassic
29-
file: ../contracts/deployments/arbitrumGoerli/DisputeKitClassic.json
29+
file: ../contracts/deployments/arbitrumGoerliDevnet/DisputeKitClassic.json
3030
- name: KlerosCore
31-
file: ../contracts/deployments/arbitrumGoerli/KlerosCore.json
31+
file: ../contracts/deployments/arbitrumGoerliDevnet/KlerosCore.json
3232
eventHandlers:
3333
- event: AppealDecision(indexed uint256,indexed address)
3434
handler: handleAppealDecision
@@ -48,7 +48,7 @@ dataSources:
4848
handler: handleDisputeKitEnabled
4949
- event: StakeSet(indexed address,uint256,uint256)
5050
handler: handleStakeSet
51-
- event: StakeDelayed(indexed address,uint256,uint256,uint256)
51+
- event: StakeDelayed(indexed address,uint256,uint256)
5252
handler: handleStakeDelayed
5353
- event: TokenAndETHShift(indexed address,indexed uint256,indexed uint256,uint256,int256,int256,address)
5454
handler: handleTokenAndETHShift
@@ -61,9 +61,9 @@ dataSources:
6161
name: PolicyRegistry
6262
network: arbitrum-goerli
6363
source:
64-
address: "0x4c129b9836E4CC3Cf6D833b39a4B7cfA25D86c86"
64+
address: "0x0d7EeA661C1f9cB1AD389c9Df90B3beDE86a1529"
6565
abi: PolicyRegistry
66-
startBlock: 33436566
66+
startBlock: 43823685
6767
mapping:
6868
kind: ethereum/events
6969
apiVersion: 0.0.6
@@ -72,7 +72,7 @@ dataSources:
7272
- Court
7373
abis:
7474
- name: PolicyRegistry
75-
file: ../contracts/deployments/arbitrumGoerli/PolicyRegistry.json
75+
file: ../contracts/deployments/arbitrumGoerliDevnet/PolicyRegistry.json
7676
eventHandlers:
7777
- event: PolicyUpdate(indexed uint256,string,string)
7878
handler: handlePolicyUpdate
@@ -81,9 +81,9 @@ dataSources:
8181
name: DisputeKitClassic
8282
network: arbitrum-goerli
8383
source:
84-
address: "0x439f92b61783A752462527f9dA9C6c6180C9253a"
84+
address: "0x6394A70cADD1376FdE5C38bA331761256DDd03E2"
8585
abi: DisputeKitClassic
86-
startBlock: 34139950
86+
startBlock: 43823737
8787
mapping:
8888
kind: ethereum/events
8989
apiVersion: 0.0.6
@@ -97,9 +97,9 @@ dataSources:
9797
- ClassicContribution
9898
abis:
9999
- name: DisputeKitClassic
100-
file: ../contracts/deployments/arbitrumGoerli/DisputeKitClassic.json
100+
file: ../contracts/deployments/arbitrumGoerliDevnet/DisputeKitClassic.json
101101
- name: KlerosCore
102-
file: ../contracts/deployments/arbitrumGoerli/KlerosCore.json
102+
file: ../contracts/deployments/arbitrumGoerliDevnet/KlerosCore.json
103103
eventHandlers:
104104
- event: DisputeCreation(indexed uint256,uint256,bytes)
105105
handler: handleDisputeCreation

0 commit comments

Comments
 (0)