diff --git a/hardhat.config.ts b/hardhat.config.ts index e16b9059..1d070b4e 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -9,12 +9,15 @@ require("dotenv").config(); const { RINKEBY_URL, PRIVATE_KEY, + PRIVATE_KEY3, POLYGON_URL, ETHEREUM_URL, MUMBAI_URL, POLYGONSCAN_API_KEY, GOERLI_URL, + SEPOLIA_URL, ETHERSCAN_API_KEY, + ARBITRUM_API_KEY } = process.env; export const config = { @@ -32,7 +35,7 @@ export const config = { matic: { url: POLYGON_URL || "", accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], - gasPrice: 141900000000, + gasPrice: 262000000000, }, mumbai: { url: MUMBAI_URL || "https://rpc-mumbai.maticvigil.com", @@ -41,14 +44,19 @@ export const config = { }, goerli: { url: GOERLI_URL || "", - accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], - gasPrice: 16000000000, + accounts: PRIVATE_KEY3 ? [`0x${PRIVATE_KEY3}`] : [], + gasPrice: 22000000000, }, ethereum: { url: ETHEREUM_URL || "", accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], gasPrice: 22000000000, }, + sepolia: { + url: SEPOLIA_URL || "", + accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], + gasPrice: 22000000000, + }, }, solidity: { compilers: [ @@ -66,7 +74,17 @@ export const config = { etherscan: { // Your API key for Etherscan // Obtain one at https://etherscan.io/ - apiKey: ETHERSCAN_API_KEY, + apiKey: ARBITRUM_API_KEY, + customChains: [ + { + network: "arbitrum sepolia", + chainId: 421614, + urls: { + apiURL: "https://api-sepolia.arbiscan.io/api", + browserURL: "https://sepolia.arbiscan.io/" + } + } + ] }, gasReporter: { currency: "USD", diff --git a/scripts/constructorArguments/offchainAssetReceiptVault_Goerli.ts b/scripts/constructorArguments/offchainAssetReceiptVault_Goerli.ts index c8210552..e4e7bbcc 100644 --- a/scripts/constructorArguments/offchainAssetReceiptVault_Goerli.ts +++ b/scripts/constructorArguments/offchainAssetReceiptVault_Goerli.ts @@ -1,6 +1,6 @@ module.exports = [ { - implementation: "0x576FBc9ab2693d6e748e85B301eD0FC6b14fC708", - receiptFactory: "0x431C85E807a1bc810538121db2E9934822e13643", + implementation: "0xeEbC089D9CbeC08BB10CdE85D2A17502EeA04544", + receiptFactory: "0xbECC502aF9E8476cb9A0616F7C1549D31670a806", }, ]; diff --git a/scripts/constructorArguments/offchainAssetReceiptVault_Polygon.ts b/scripts/constructorArguments/offchainAssetReceiptVault_Polygon.ts index b327b245..a1cfadfc 100644 --- a/scripts/constructorArguments/offchainAssetReceiptVault_Polygon.ts +++ b/scripts/constructorArguments/offchainAssetReceiptVault_Polygon.ts @@ -1,6 +1,6 @@ module.exports = [ { - implementation: "0x52324308A8dC7240Bcce870A10733A1DA4633CFC", - receiptFactory: "0x5C5663c76147CFa47d5bb19570B8F1e1AB292492", + implementation: "0x1331b50cBDE17d2ff04ca87797178721430A698e", + receiptFactory: "0xdEE8d59c6C2925b83C678A7f8c26D9C228a52621", }, ]; diff --git a/scripts/constructorArguments/offchainAssetReceiptVault_Sepolia.ts b/scripts/constructorArguments/offchainAssetReceiptVault_Sepolia.ts new file mode 100644 index 00000000..c8210552 --- /dev/null +++ b/scripts/constructorArguments/offchainAssetReceiptVault_Sepolia.ts @@ -0,0 +1,6 @@ +module.exports = [ + { + implementation: "0x576FBc9ab2693d6e748e85B301eD0FC6b14fC708", + receiptFactory: "0x431C85E807a1bc810538121db2E9934822e13643", + }, +]; diff --git a/test/offchainAsset/OffChainAssetReceiptVault.test.ts b/test/offchainAsset/OffChainAssetReceiptVault.test.ts index 80eea4c4..6f003388 100644 --- a/test/offchainAsset/OffChainAssetReceiptVault.test.ts +++ b/test/offchainAsset/OffChainAssetReceiptVault.test.ts @@ -672,7 +672,7 @@ describe("OffChainAssetReceiptVault", async function () { .grantRole(await vault.connect(alice).DEPOSITOR(), alice.address); const assetToDeposit = aliceAssets.div(2); - const assetToReDeposit = ethers.BigNumber.from(10); + const assetToReDeposit = ethers.BigNumber.from(0); await vault .connect(alice) ["deposit(uint256,address,uint256,bytes)"](