Skip to content

Commit ea30b54

Browse files
authored
Merge pull request #102 from kleros/feat/payouts-refactor
Expose payouts to answer descriptions
2 parents b59bf52 + c638e4f commit ea30b54

25 files changed

+4078
-1954
lines changed

.yarn/releases/yarn-4.2.2.cjs

Lines changed: 0 additions & 894 deletions
This file was deleted.

.yarn/releases/yarn-4.6.0.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ enableGlobalCache: false
44

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.2.2.cjs
7+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

contracts/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
1616
### Devnet
1717
#### Arbitrum Sepolia
1818

19-
- [EscrowUniversal](https://sepolia.arbiscan.io/address/0x6e2aC8E5E18191bBa2894F9317d6F2fc50d0830E)
19+
- [EscrowUniversal](https://sepolia.arbiscan.io/address/0x11aB737EDB1c6b181919a95ccD07c8DAA3e8E687)
20+
- [EscrowView](https://sepolia.arbiscan.io/address/0x7aea8849539a23b25E1681041308aA90175aF026)
2021

2122
#### Sepolia
2223

contracts/deploy/00-escrow.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { HardhatRuntimeEnvironment } from "hardhat/types";
22
import { DeployFunction } from "hardhat-deploy/types";
33
import { HomeChains, isSkipped } from "./utils";
4+
import { EscrowUniversal } from "../typechain-types";
45

56
const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
67
const { deployments, getNamedAccounts, getChainId, ethers } = hre;
@@ -34,7 +35,7 @@ const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
3435
});
3536

3637
// Set the value cap to about USD 1000
37-
const escrow = await deployments.get("EscrowUniversal");
38+
const escrow = (await ethers.getContract("EscrowUniversal")) as EscrowUniversal;
3839
const WETH = await deployments.get("WETH");
3940
const DAI = await deployments.get("DAI");
4041
const caps = {
@@ -46,6 +47,14 @@ const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
4647
console.log("Setting cap for", token, cap);
4748
await escrow.changeAmountCap(token, cap);
4849
}
50+
51+
await deploy("EscrowView", {
52+
from: deployer,
53+
args: [escrow.target],
54+
gasLimit: 50000000,
55+
log: true,
56+
});
57+
4958
};
5059

5160
deploy.tags = ["Escrow"];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
42161

0 commit comments

Comments
 (0)