Skip to content

Commit

Permalink
Deploy on enpower silo
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Dec 20, 2023
1 parent f6fc53a commit 66042ba
Show file tree
Hide file tree
Showing 4 changed files with 302 additions and 9 deletions.
282 changes: 282 additions & 0 deletions silo-to-silo/.openzeppelin/unknown-1313161560.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
{
"manifestVersion": "3.2",
"proxies": [
{
"address": "0xAB73F7deb72dD71954F7EF48eb116f6e96EcCAf2",
"txHash": "0xc80f28d5e9b30e39858d2b18270f72c10d85d0acc1d8b0f6edc4d350cece2e82",
"kind": "uups"
}
],
"impls": {
"0e6c014f0bb4e2f0ac5f10340262ccf93f77faffc526b9a1fe474faf3ea7fe40": {
"address": "0x93BcaDcCcC02620c2882C2A7e62a868C086C9F07",
"txHash": "0x7accbe4a103e20870ff030c3c257d266762a4596e99b4bfb9c86e5c0f2ed58f5",
"layout": {
"solcVersion": "0.8.21",
"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)1839_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": "SiloToSilo",
"src": "contracts/src/SiloToSilo.sol:36"
},
{
"label": "siloAccountId",
"offset": 0,
"slot": "302",
"type": "t_string_storage",
"contract": "SiloToSilo",
"src": "contracts/src/SiloToSilo.sol:37"
},
{
"label": "ftTransferCallCounter",
"offset": 0,
"slot": "303",
"type": "t_uint256",
"contract": "SiloToSilo",
"src": "contracts/src/SiloToSilo.sol:38"
},
{
"label": "registeredTokens",
"offset": 0,
"slot": "304",
"type": "t_mapping(t_contract(IEvmErc20)6720,t_struct(TokenInfo)6744_storage)",
"contract": "SiloToSilo",
"src": "contracts/src/SiloToSilo.sol:41"
},
{
"label": "balance",
"offset": 0,
"slot": "305",
"type": "t_mapping(t_contract(IEvmErc20)6720,t_mapping(t_address,t_uint128))",
"contract": "SiloToSilo",
"src": "contracts/src/SiloToSilo.sol:44"
},
{
"label": "registeredRecipients",
"offset": 0,
"slot": "306",
"type": "t_mapping(t_contract(IEvmErc20)6720,t_mapping(t_string_memory_ptr,t_bool))",
"contract": "SiloToSilo",
"src": "contracts/src/SiloToSilo.sol:47"
}
],
"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)5413": {
"label": "contract IERC20",
"numberOfBytes": "20"
},
"t_contract(IEvmErc20)6720": {
"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)1839_storage)": {
"label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)",
"numberOfBytes": "32"
},
"t_mapping(t_contract(IEvmErc20)6720,t_mapping(t_address,t_uint128))": {
"label": "mapping(contract IEvmErc20 => mapping(address => uint128))",
"numberOfBytes": "32"
},
"t_mapping(t_contract(IEvmErc20)6720,t_mapping(t_string_memory_ptr,t_bool))": {
"label": "mapping(contract IEvmErc20 => mapping(string => bool))",
"numberOfBytes": "32"
},
"t_mapping(t_contract(IEvmErc20)6720,t_struct(TokenInfo)6744_storage)": {
"label": "mapping(contract IEvmErc20 => struct TokenInfo)",
"numberOfBytes": "32"
},
"t_mapping(t_string_memory_ptr,t_bool)": {
"label": "mapping(string => bool)",
"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)5413",
"offset": 1,
"slot": "0"
}
],
"numberOfBytes": "32"
},
"t_struct(RoleData)1839_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)6744_storage": {
"label": "struct TokenInfo",
"members": [
{
"label": "nearTokenAccountId",
"type": "t_string_storage",
"offset": 0,
"slot": "0"
},
{
"label": "isStorageRegistered",
"type": "t_bool",
"offset": 0,
"slot": "1"
}
],
"numberOfBytes": "64"
},
"t_uint128": {
"label": "uint128",
"numberOfBytes": "16"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
9 changes: 9 additions & 0 deletions silo-to-silo/configs/enpower-mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"siloAccountId": "silo-1.aurora-silo.near",
"nativeTokenAccountId": "aurora",
"auroraSdkAddress": "0x2E82a7dc2Cd5B392AFD5A415E21Fd7AeC3F032c1",
"auroraUtilsAddress": "0x609DcD21382c33Be97bbC031b11D15b0f9413641",
"auroraCodecAddress": "0xfaBF4429d83b0045260b2a3cb856EAF690cF7Bd3",
"wNearAddress": "0xc42c30ac6cc15fac9bd938618bcaa1a1fae8501d",
"siloToSiloProxyAddress": "0xAB73F7deb72dD71954F7EF48eb116f6e96EcCAf2"
}
6 changes: 0 additions & 6 deletions silo-to-silo/configs/enpower-silo-testnet.json

This file was deleted.

14 changes: 11 additions & 3 deletions silo-to-silo/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ module.exports = {
url: "https://develop.rpc.testnet.aurora.dev:8545",
accounts: [`0x${AURORA_PRIVATE_KEY}`],
},
enpower_silo_aurora: {
url: "https://enpower.aurora.dev",
mainnet_enpower: {
url: "http://powergold.aurora.dev",
accounts: [`0x${AURORA_PRIVATE_KEY}`],
},
},
Expand All @@ -239,7 +239,7 @@ module.exports = {
customChains: [
{
network: "mainnet_aurora",
chainId: 1313161554,
chainId: 1313161560,
urls: {
apiURL: "https://explorer.mainnet.aurora.dev/api",
browserURL: "https://explorer.mainnet.aurora.dev",
Expand All @@ -253,6 +253,14 @@ module.exports = {
browserURL: "https://explorer.testnet.aurora.dev",
},
},
{
network: "mainnet_enpower",
chainId: 1313161555,
urls: {
apiURL: "https://explorer.powergold.aurora.dev/api",
browserURL: "https://explorer.powergold.aurora.dev",
},
},
],
},
mocha: {
Expand Down

0 comments on commit 66042ba

Please sign in to comment.