Skip to content

Commit

Permalink
add arbitrum deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sethhrbek committed Nov 21, 2023
1 parent e53a56f commit 849b639
Show file tree
Hide file tree
Showing 25 changed files with 2,483 additions and 2,483 deletions.
11 changes: 3 additions & 8 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,18 @@ MAINNET_DEPLOYER_PRIVATE_KEY=
POLYGON_PROVIDER=
POLYGON_DEPLOYER_PRIVATE_KEY=

BASE_PROVIDER=
BASE_DEPLOYER_PRIVATE_KEY=

BASE_GOERLI_PROVIDER=
BASE_GOERLI_DEPLOYER_PRIVATE_KEY=

POLYGON_MUMBAI_PROVIDER=
POLYGON_MUMBAI_DEPLOYER_PRIVATE_KEY=

GOERLI_PROVIDER=
GOERLI_DEPLOYER_PRIVATE_KEY=
ARBITRUM_PROVIDER=
ARBITRUM_DEPLOYER_PRIVATE_KEY=

SEPOLIA_PROVIDER=
SEPOLIA_DEPLOYER_PRIVATE_KEY=

ETHERSCAN_API_KEY=
POLYGONSCAN_API_KEY=
BASESCAN_API_KEY=
ARBISCAN_API_KEY=

REPORT_GAS=true
1 change: 0 additions & 1 deletion contracts/storage/LibAppStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import "../libraries/LibTypes.sol";

/**
* Global diamond storage struct to be shared across facets
* TODO: Implement diamond storage pattern and consider splitting storage into facet specific structs
*/
struct AppStorage {
// SARCO token contract
Expand Down
34 changes: 16 additions & 18 deletions deploy/001_sarcophagus_facets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
log: true,
});
sarcoTokenAddress = sarcoTokenMock.address;
} else if (["goerli", "goerli-fork"].includes(hre.hardhatArguments.network)) {
sarcoTokenAddress = "0x4633b43990b41B57b3678c6F3Ac35bA75C3D8436";
} else if (["sepolia"].includes(hre.hardhatArguments.network)) {
sarcoTokenAddress = "0xfa1FA4d51FB2babf59e402c83327Ab5087441289";
} else if (
Expand All @@ -35,8 +33,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
sarcoTokenAddress = "0x2BC9019e6d9e6a26D7D8d8CDDa4e5dE9B787D7bb";
} else if (["polygon"].includes(hre.hardhatArguments.network)) {
sarcoTokenAddress = "0x80Ae3B3847E4e8Bd27A389f7686486CAC9C3f3e8";
} else if (["baseGoerli"].includes(hre.hardhatArguments.network)) {
sarcoTokenAddress = "0x2BC9019e6d9e6a26D7D8d8CDDa4e5dE9B787D7bb";
} else if (["arbitrum"].includes(hre.hardhatArguments.network)) {
sarcoTokenAddress = "0x82155Ab6b6c1113CFb352c7573B010a88f5974bD";
} else {
throw Error(
`Sarcophagus is not set up for this network: ${hre.hardhatArguments.network}`
Expand Down Expand Up @@ -68,20 +66,20 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
"ViewStateFacet",
"AdminFacet",
],
// Uncomment if fresh deploy and not upgrading
// execute: {
// contract: "AppStorageInit",
// methodName: "init",
// args: [
// sarcoTokenAddress,
// daoAgentAddress,
// protocolFeeBasePercentage,
// cursedBondPercentage,
// gracePeriod,
// embalmerClaimWindow,
// expirationThreshold,
// ],
// },
// Comment out if upgrading
execute: {
contract: "AppStorageInit",
methodName: "init",
args: [
sarcoTokenAddress,
daoAgentAddress,
protocolFeeBasePercentage,
cursedBondPercentage,
gracePeriod,
embalmerClaimWindow,
expirationThreshold,
],
},
log: true,
});
};
Expand Down
1 change: 1 addition & 0 deletions deployments/arbitrum/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
42161
363 changes: 363 additions & 0 deletions deployments/arbitrum/AdminFacet.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 849b639

Please sign in to comment.