Skip to content

Expose payouts to answer descriptions #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.2.2.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
yarnPath: .yarn/releases/yarn-4.6.0.cjs
3 changes: 2 additions & 1 deletion contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Refresh the list of deployed contracts by running `./scripts/generateDeployments
### Devnet
#### Arbitrum Sepolia

- [EscrowUniversal](https://sepolia.arbiscan.io/address/0x6e2aC8E5E18191bBa2894F9317d6F2fc50d0830E)
- [EscrowUniversal](https://sepolia.arbiscan.io/address/0xb551978A48612e9Bf03CD0c5F1130021915d72ac)
- [EscrowView](https://sepolia.arbiscan.io/address/0xB219345918EcaE794ae0c1480C280686d65E560d)

#### Sepolia

Expand Down
11 changes: 10 additions & 1 deletion contracts/deploy/00-escrow.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { HomeChains, isSkipped } from "./utils";
import { EscrowUniversal } from "../typechain-types";

const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const { deployments, getNamedAccounts, getChainId, ethers } = hre;
Expand Down Expand Up @@ -34,7 +35,7 @@ const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
});

// Set the value cap to about USD 1000
const escrow = await deployments.get("EscrowUniversal");
const escrow = (await ethers.getContract("EscrowUniversal")) as EscrowUniversal;
const WETH = await deployments.get("WETH");
const DAI = await deployments.get("DAI");
const caps = {
Expand All @@ -46,6 +47,14 @@ const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
console.log("Setting cap for", token, cap);
await escrow.changeAmountCap(token, cap);
}

await deploy("EscrowView", {
from: deployer,
args: [escrow.target],
gasLimit: 50000000,
log: true,
});

};

deploy.tags = ["Escrow"];
Expand Down
1 change: 1 addition & 0 deletions contracts/deployments/arbitrum/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42161
Loading
Loading