-
Notifications
You must be signed in to change notification settings - Fork 6
Release to Beta #120
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
Release to Beta #120
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
73483ed
feat: whitelisted USDC and USDC.e on Arbitrum with 000 cap
jaybuidl 282a30d
feat: whitelisted PNK on Arbitrum
jaybuidl 50110c1
feat(Escrow): add custom buyer option
unknownunknown1 b2c6959
feat(Escrow): add function to interface
unknownunknown1 3ca5c73
chore: bumped @kleros/kleros-v2-contracts to pick up the latest devne…
jaybuidl 0ef0d8b
refactor(Escrow): use inheritance for custom buyer
unknownunknown1 1fbe1fa
feat: buffer between delivery deadline and dispute deadline
kemuru bac270d
fix: use creation timestamp instead of deliverydeadline timestamp
kemuru 301fcd7
fix: ux impro, test 1 year buffer to check retrocompatibility
kemuru 46b416b
chore: revert test buffer
kemuru 2ef44e8
feat: hide the buffer warning if the transaction status moved away fr…
kemuru bbb6ab7
Merge pull request #119 from kleros/feat/buffer-of-one-week-between-d…
jaybuidl 2686fa7
chore: changeArbitrator script
jaybuidl 30ed1df
Merge pull request #118 from kleros/chore/devnet-redeploy-jul2025
jaybuidl 8b3cf07
chore: deployment scripts for both escrow contract flavors, custom bu…
jaybuidl 0e73cf4
Merge pull request #117 from kleros/feat/custom-buyer
jaybuidl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
import { DeployFunction } from "hardhat-deploy/types"; | ||
import { HomeChains, isSkipped } from "./utils"; | ||
import deployEscrow from "./shared"; | ||
|
||
const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => { | ||
await deployEscrow(hre, "customBuyer"); | ||
}; | ||
|
||
deploy.tags = ["EscrowCustomBuyer"]; | ||
deploy.skip = async ({ network }) => { | ||
return isSkipped(network, !HomeChains[network.config.chainId ?? 0]); | ||
}; | ||
|
||
export default deploy; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
import { DeployFunction } from "hardhat-deploy/types"; | ||
import { HomeChains, isSkipped } from "./utils"; | ||
import deployEscrow from "./shared"; | ||
|
||
const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => { | ||
await deployEscrow(hre, "universal"); | ||
}; | ||
|
||
deploy.tags = ["EscrowUniversal"]; | ||
deploy.skip = async ({ network }) => { | ||
return isSkipped(network, !HomeChains[network.config.chainId ?? 0]); | ||
}; | ||
|
||
export default deploy; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify the "customBuyer" parameter matches shared deployment logic.
Ensure the "customBuyer" parameter is correctly handled in the shared deployment function.
🏁 Script executed:
Length of output: 62
🏁 Script executed:
Length of output: 483
🏁 Script executed:
Length of output: 3524
Ensure
customBuyer
is configured before deployingThe
deployEscrow
helper assumesconfig[network.name].escrowDeployments.customBuyer
is defined. On networks likearbitrum
, this entry isundefined
, so running:will throw at runtime. Please address this by:
contracts/deploy/shared.ts
, adding a guard or explicit error whenescrowDeployments[escrowDeployment]
is undefined before accessing.escrow
/.view
.contracts/deploy/00-escrow-custom-buyer.ts
, wrapping thedeployEscrow(hre, "customBuyer")
call in a conditional that skips or falls back whencustomBuyer
isn’t configured.🤖 Prompt for AI Agents