Skip to content
Draft
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
290 changes: 290 additions & 0 deletions aurora/.openzeppelin/unknown-1313161560.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
{
"manifestVersion": "3.2",
"proxies": [
{
"address": "0x986CF4a9e44f439ADa6cf18Dd6CcF99D988Ad83b",
"txHash": "0x8a34fb5707ff84a51e0a82142593cca363150d9bc44bd7f65440b0ce9164e708",
"kind": "uups"
}
],
"impls": {
"f06b9dff8682273ab9ab8471c6fff8b0ccafc56df5644c8c43816f238108cbfe": {
"address": "0x1C3027551A415BEbAD99A2b1Db68b570e0248b0a",
"txHash": "0x3e1ef6f4676bfe85369ec55cab85469d0d8be53444cdaedb07363d8c23eec7db",
"layout": {
"solcVersion": "0.8.17",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC1967UpgradeUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169"
},
{
"label": "__gap",
"offset": 0,
"slot": "51",
"type": "t_array(t_uint256)50_storage",
"contract": "UUPSUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111"
},
{
"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)1837_storage)",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:62"
},
{
"label": "__gap",
"offset": 0,
"slot": "202",
"type": "t_array(t_uint256)49_storage",
"contract": "AccessControlUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:260"
},
{
"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": "near",
"offset": 0,
"slot": "301",
"type": "t_struct(NEAR)29_storage",
"contract": "AuroraErc20FastBridge",
"src": "contracts/src/AuroraErc20FastBridge.sol:43"
},
{
"label": "fastBridgeAccountIdOnNear",
"offset": 0,
"slot": "302",
"type": "t_string_storage",
"contract": "AuroraErc20FastBridge",
"src": "contracts/src/AuroraErc20FastBridge.sol:44"
},
{
"label": "auroraEngineAccountIdOnNear",
"offset": 0,
"slot": "303",
"type": "t_string_storage",
"contract": "AuroraErc20FastBridge",
"src": "contracts/src/AuroraErc20FastBridge.sol:45"
},
{
"label": "isWhitelistModeEnabled",
"offset": 0,
"slot": "304",
"type": "t_bool",
"contract": "AuroraErc20FastBridge",
"src": "contracts/src/AuroraErc20FastBridge.sol:46"
},
{
"label": "whitelistedUsers",
"offset": 0,
"slot": "305",
"type": "t_mapping(t_address,t_bool)",
"contract": "AuroraErc20FastBridge",
"src": "contracts/src/AuroraErc20FastBridge.sol:49"
},
{
"label": "registeredTokens",
"offset": 0,
"slot": "306",
"type": "t_mapping(t_string_memory_ptr,t_struct(TokenInfo)6731_storage)",
"contract": "AuroraErc20FastBridge",
"src": "contracts/src/AuroraErc20FastBridge.sol:53"
},
{
"label": "balance",
"offset": 0,
"slot": "307",
"type": "t_mapping(t_string_memory_ptr,t_mapping(t_address,t_uint128))",
"contract": "AuroraErc20FastBridge",
"src": "contracts/src/AuroraErc20FastBridge.sol:57"
},
{
"label": "nativeTokenAccountIdOnNear",
"offset": 0,
"slot": "308",
"type": "t_string_storage",
"contract": "AuroraErc20FastBridge",
"src": "contracts/src/AuroraErc20FastBridge.sol:58"
}
],
"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_contract(IERC20)5411": {
"label": "contract IERC20",
"numberOfBytes": "20"
},
"t_contract(IEvmErc20)8476": {
"label": "contract IEvmErc20",
"numberOfBytes": "20"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint128)": {
"label": "mapping(address => uint128)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(RoleData)1837_storage)": {
"label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)",
"numberOfBytes": "32"
},
"t_mapping(t_string_memory_ptr,t_mapping(t_address,t_uint128))": {
"label": "mapping(string => mapping(address => uint128))",
"numberOfBytes": "32"
},
"t_mapping(t_string_memory_ptr,t_struct(TokenInfo)6731_storage)": {
"label": "mapping(string => struct TokenInfo)",
"numberOfBytes": "32"
},
"t_string_memory_ptr": {
"label": "string",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_struct(NEAR)29_storage": {
"label": "struct NEAR",
"members": [
{
"label": "initialized",
"type": "t_bool",
"offset": 0,
"slot": "0"
},
{
"label": "wNEAR",
"type": "t_contract(IERC20)5411",
"offset": 1,
"slot": "0"
}
],
"numberOfBytes": "32"
},
"t_struct(RoleData)1837_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_struct(TokenInfo)6731_storage": {
"label": "struct TokenInfo",
"members": [
{
"label": "auroraTokenAddress",
"type": "t_contract(IEvmErc20)8476",
"offset": 0,
"slot": "0"
},
{
"label": "isStorageRegistered",
"type": "t_bool",
"offset": 20,
"slot": "0"
}
],
"numberOfBytes": "32"
},
"t_uint128": {
"label": "uint128",
"numberOfBytes": "16"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
9 changes: 9 additions & 0 deletions aurora/configs/enpower-mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"nearFastBridgeAccountId": "fast.bridge.near",
"auroraEngineAccountId": "silo-1.aurora-silo.near",
"nativeTokenAccountId": "aurora",
"auroraSdkAddress": "0x2E82a7dc2Cd5B392AFD5A415E21Fd7AeC3F032c1",
"auroraUtilsAddress": "0x609DcD21382c33Be97bbC031b11D15b0f9413641",
"auroraCodecAddress": "0xfaBF4429d83b0045260b2a3cb856EAF690cF7Bd3",
"wNearAddress": "0xc42c30ac6cc15fac9bd938618bcaa1a1fae8501d"
}
20 changes: 17 additions & 3 deletions aurora/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,18 @@ module.exports = {
ropsten: {
url: 'https://rpc.testnet.aurora.dev:8545',
accounts: [`0x${AURORA_PRIVATE_KEY}`]
}
},
mainnet_enpower: {
url: "http://powergold.aurora.dev",
accounts: [`0x${AURORA_PRIVATE_KEY}`],
chainId: 1313161560,
},
},
etherscan: {
apiKey: {
mainnet_aurora: `${ETHERSCAN_API_KEY}`,
testnet_aurora: `${ETHERSCAN_API_KEY}`
testnet_aurora: `${ETHERSCAN_API_KEY}`,
mainnet_enpower: `${ETHERSCAN_API_KEY}`
},
customChains: [
{
Expand All @@ -321,7 +327,15 @@ module.exports = {
apiURL: "https://explorer.testnet.aurora.dev/api",
browserURL: "https://explorer.testnet.aurora.dev"
}
}
},
{
network: "mainnet_enpower",
chainId: 1313161560,
urls: {
apiURL: "https://explorer.powergold.aurora.dev/api",
browserURL: "https://explorer.powergold.aurora.dev",
},
},
]
},
mocha: {
Expand Down