Skip to content
Open
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7c3b506
ignore glitch in prettier new contract
jose-compu Oct 20, 2025
f3434de
feat: Add Sepolia deployment script and update hardhat config
jose-compu Oct 24, 2025
b6c6024
NTT Paths Configure Script
jose-compu Nov 4, 2025
2b55794
format simple-deploy.ts
jose-compu Nov 6, 2025
1ee1e7a
Merge branch 'threshold-network:main' into ntt-deploy-fixes
jose-compu Nov 6, 2025
8c40f8c
fix(L1BTCDepositorNttWithExecutor): prevent deposit theft via malicio…
jose-compu Dec 1, 2025
92b8efa
fix(L1BTCDepositorNttWithExecutor): prevent deposit loss through para…
jose-compu Dec 1, 2025
c67d535
fix(refund): prevent unlimited gas refund exploitation (MB-H1)
jose-compu Dec 1, 2025
afb9080
fix(refund): prevent deposit blocking on pool unavailability (MB-H2)
jose-compu Dec 1, 2025
3fb047f
feat: MB-H1, MB-H2, MB-H3 - Create AbstractL1BTCDepositorV2 with refu…
jose-compu Dec 1, 2025
b0c4dff
fix: MB-M2 - Query underlying NTT manager for delivery prices
jose-compu Dec 1, 2025
dacf177
docs: MB-L1 - Fix MAX_BPS documentation, 10000 represents 10% not 100%
jose-compu Dec 1, 2025
e82d98c
refactor: MB-L2 - Code quality improvements
jose-compu Dec 1, 2025
0258ab1
fix: MB-L3 - Lock parameter expiration at creation time
jose-compu Dec 1, 2025
ebbb8b3
feat(sei): migrate to hardhat-verify with Etherscan v2 API support
jose-compu Dec 24, 2025
ab71ebc
fix(sei): use canonical ethereum-rpc.publicnode.com URL
jose-compu Dec 24, 2025
6ecd790
revert: restore AbstractL1BTCDepositor to original state for backward…
jose-compu Dec 24, 2025
bdeaa83
fix: use ethereum-rpc.publicnode.com constant for mainnet RPC
jose-compu Dec 24, 2025
86c4a07
Merge branch 'main' into ntt-deploy-fixes
jose-compu Dec 24, 2025
edea556
prettier and format
jose-compu Dec 24, 2025
3ca45bf
chore: more prettier and formatting
jose-compu Dec 24, 2025
dc0e9b1
chore: other format and prettier missing
jose-compu Dec 24, 2025
98e7451
chore: minor lint on L1BTCDepositorNttWithExecutor.sol
jose-compu Dec 24, 2025
6391b41
chore: slither warnings bypassed, not applicables
jose-compu Dec 24, 2025
0ab388a
chore: v2 final prettier and format
jose-compu Dec 24, 2025
a54aeeb
chore: prettier command only
jose-compu Dec 24, 2025
e80f450
modified: contracts/cross-chain/AbstractL1BTCDepositorV2.sol
jose-compu Dec 24, 2025
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
48 changes: 45 additions & 3 deletions cross-chain/sei/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config: HardhatUserConfig = {
settings: {
optimizer: {
enabled: true,
runs: 1000,
runs: 200, // Reduced from 1000 to prioritize bytecode size over gas efficiency
},
},
},
Expand All @@ -28,15 +28,30 @@ const config: HardhatUserConfig = {
settings: {
optimizer: {
enabled: true,
runs: 1000,
runs: 200, // Reduced from 1000 to prioritize bytecode size over gas efficiency
},
},
},
],
overrides: {
// Optimize L1BTCDepositorNttWithExecutor for minimal bytecode size
"contracts/cross-chain/wormhole/L1BTCDepositorNttWithExecutor.sol": {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 1, // Minimal runs to minimize bytecode size
},
},
},
},
},

paths: {
artifacts: "./build",
artifacts: "../../solidity/build",
sources: "./contracts",
cache: "./cache",
tests: "./test",
},

// Compile external dependencies so their artifacts are available
Expand All @@ -47,6 +62,15 @@ const config: HardhatUserConfig = {
],
},

// External configuration to use artifacts from solidity directory
external: {
contracts: [
{
artifacts: "../../solidity/build",
},
],
},

// Hardhat-deploy configuration
namedAccounts: {
deployer: {
Expand Down Expand Up @@ -104,6 +128,15 @@ const config: HardhatUserConfig = {
tags: ["etherscan"],
gasPrice: 20000000000, // 20 gwei
},
mainnet: {
url: process.env.MAINNET_RPC_URL || "https://ethereum.publicnode.com",
chainId: 1,
accounts: process.env.ACCOUNTS_PRIVATE_KEYS
? process.env.ACCOUNTS_PRIVATE_KEYS.split(",")
: [],
tags: ["etherscan"],
gasPrice: 20000000000, // 20 gwei
},
},

mocha: {
Expand All @@ -118,6 +151,7 @@ const config: HardhatUserConfig = {
apiKey: {
seiTestnet: "dummy",
seiMainnet: "dummy",
mainnet: process.env.ETHERSCAN_API_KEY,
},
customChains: [
{
Expand All @@ -136,6 +170,14 @@ const config: HardhatUserConfig = {
browserURL: "https://seitrace.com/pacific-1",
},
},
{
network: "mainnet",
chainId: 1,
urls: {
apiURL: "https://api.etherscan.io/v2/api?chainid=1",
browserURL: "https://etherscan.io"
}
}
],
},
}
Expand Down
Loading