Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 0 additions & 7 deletions eth/.env.example
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
PRIVATE_KEY=
PRIVATE_KEYS=

ALCHEMY_API_KEY =
INFURA_API_KEY =

MAINNET_URL =
RINKEBY_URL =
ROPSTEN_URL =
KOVAN_URL =
FORKING_URL =

ETHERSCAN_API_KEY =
ETHERSCAN_URL =

Expand Down
178 changes: 178 additions & 0 deletions eth/.openzeppelin/unknown-11155111.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
{
"manifestVersion": "3.2",
"proxies": [
{
"address": "0x0B2C4871C9bAD795746C05c1539A8B1f26c26357",
"txHash": "0x3fd0ac5bf0a542bd125aa0f6b31cc624c84f78ccfa0a8377f978829f570165d1",
"kind": "uups"
}
],
"impls": {
"c7e659fbda9fd170e261b3e7ac92cf11f59dae26cbd37f63b26ad565cb4f161a": {
"address": "0x2AfeAc16CaF352F4f2950C03b2f1d26d2d4E3D29",
"txHash": "0xdd6df7117261b9223dc4cab69169c2d14eeecb2f2b335fa9ee25634c7c10d69b",
"layout": {
"solcVersion": "0.8.11",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC1967UpgradeUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:197"
},
{
"label": "__gap",
"offset": 0,
"slot": "51",
"type": "t_array(t_uint256)50_storage",
"contract": "UUPSUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"label": "__gap",
"offset": 0,
"slot": "101",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "__gap",
"offset": 0,
"slot": "151",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC165Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol:41"
},
{
"label": "_roles",
"offset": 0,
"slot": "201",
"type": "t_mapping(t_bytes32,t_struct(RoleData)34_storage)",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:61"
},
{
"label": "__gap",
"offset": 0,
"slot": "202",
"type": "t_array(t_uint256)49_storage",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:259"
},
{
"label": "_paused",
"offset": 0,
"slot": "251",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "252",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:116"
},
{
"label": "whitelistedTokens",
"offset": 0,
"slot": "301",
"type": "t_mapping(t_address,t_bool)",
"contract": "EthErc20FastBridge",
"src": "contracts/EthErc20FastBridge.sol:16"
},
{
"label": "processedHashes",
"offset": 0,
"slot": "302",
"type": "t_mapping(t_bytes32,t_bool)",
"contract": "EthErc20FastBridge",
"src": "contracts/EthErc20FastBridge.sol:17"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(RoleData)34_storage)": {
"label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)",
"numberOfBytes": "32"
},
"t_struct(RoleData)34_storage": {
"label": "struct AccessControlUpgradeable.RoleData",
"members": [
{
"label": "members",
"type": "t_mapping(t_address,t_bool)",
"offset": 0,
"slot": "0"
},
{
"label": "adminRole",
"type": "t_bytes32",
"offset": 0,
"slot": "1"
}
],
"numberOfBytes": "64"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
23 changes: 9 additions & 14 deletions eth/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const bridgeArtifacts = require("./artifacts/contracts/EthErc20FastBridge.sol/Et
require('hardhat-storage-layout');


const PRIVATE_KEYS = process.env.PRIVATE_KEYS ? process.env.PRIVATE_KEYS.split(",") : [];
const PRIVATE_KEY = process.env.PRIVATE_KEY || "11".repeat(32);

const ALCHEMY_API_KEY = process.env.ALCHEMY_API_KEY;
Expand Down Expand Up @@ -77,20 +76,16 @@ module.exports = {
}
},
mainnet: {
url: process.env.MAINNET_URL || "",
accounts: [...PRIVATE_KEYS]
},
rinkeby: {
url: process.env.RINKEBY_URL || "",
accounts: [...PRIVATE_KEYS]
},
ropsten: {
url: process.env.ROPSTEN_URL || "",
accounts: [...PRIVATE_KEYS]
url: INFURA_API_KEY
? `https://mainnet.infura.io/v3/${INFURA_API_KEY}`
: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [`${PRIVATE_KEY}`]
},
kovan: {
url: process.env.KOVAN_URL || "",
accounts: [...PRIVATE_KEYS]
sepolia: {
url: INFURA_API_KEY
? `https://sepolia.infura.io/v3/${INFURA_API_KEY}`
: `https://eth-sepolia.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [`${PRIVATE_KEY}`]
},
goerli: {
url: INFURA_API_KEY
Expand Down