Skip to content

Commit

Permalink
Merge pull request #83 from martillansky/testnets
Browse files Browse the repository at this point in the history
Testnets
  • Loading branch information
martillansky authored Sep 27, 2024
2 parents 6de41d2 + c8170e9 commit 4ca6bc7
Show file tree
Hide file tree
Showing 11 changed files with 459 additions and 113 deletions.
1 change: 1 addition & 0 deletions schemas/request.gql
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ query Request($id: ID!) {
}
nbRounds
rounds(orderBy: creationTime) {
creationTime
requesterFund {
amount
}
Expand Down
20 changes: 20 additions & 0 deletions src/app/[pohid]/[chain]/[request]/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import RemoveVouch from "./RemoveVouch";
import Vouch from "./Vouch";
import { getMyData } from "data/user";
import useSWR from "swr";
import Appeal from "./Appeal";


enableReactUse();
Expand Down Expand Up @@ -425,13 +426,32 @@ export default withClientConnected<ActionBarProps>(function ActionBar({
)}
.
</span>

<div className="flex gap-4">
<Appeal
pohId={pohId}
requestIndex={index}
disputeId={currentChallenge.disputeId}
/* Subgraph does not update correctly arbitration data changes
arbitrator={contractData.arbitrationInfo.arbitrator}
extraData={contractData.arbitrationInfo.extraData} */
contributor={address!}
claimer={requester}
challenger={currentChallenge.challenger?.id}
// Appelate instance funds makes sense when current round is bigger than zero which is the initial round
/* Subgraph needs redesign to have created a fresh round right after appelate is created
challengerFunds={currentChallenge.rounds.length>1 && currentChallenge.rounds.at(0)?.challengerFund?.amount}
claimerFunds={currentChallenge.rounds.length>1 && currentChallenge.rounds.at(0)?.requesterFund.amount} */
chainId={chain.id}
/>

<ExternalLink
href={`https://resolve.kleros.io/cases/${currentChallenge.disputeId}`}
className="btn-main gradient px-[24px] h-[48px] rounded"
>
View case #{currentChallenge.disputeId}
</ExternalLink>
</div>
</>
)}

Expand Down
Loading

0 comments on commit 4ca6bc7

Please sign in to comment.