Skip to content

Commit

Permalink
build(arb-sepolia-depoloyment): deployed contracts and marketplace to…
Browse files Browse the repository at this point in the history
… arb sepolia
  • Loading branch information
0xRowdy committed Aug 20, 2024
1 parent 15f3980 commit 67731f5
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 7 deletions.
6 changes: 2 additions & 4 deletions contracts/hardhat.config.cts
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,15 @@ function getChainConfig(chain: keyof typeof chainIds) {
if (chain === "arb-sepolia") {
config = {
...config,
url: "https://virtual.arbitrum-sepolia.rpc.tenderly.co/812559a3-7c71-4c3b-b4c2-2a817bf3234f",
// url: `https://arb-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
gasPrice: 10000000
url: `https://arb-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
};
}

if (chain === "arb-mainnet") {
config = {
...config,
url: `https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
gasPrice: 10000000
gasPrice: 10000000,
};
}

Expand Down
55 changes: 55 additions & 0 deletions contracts/src/deployments/deployment-marketplace-arb-sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"TransferManager": {
"address": "0xf66abbE1c3FE57851010f2Ad5d1A78067fEDE58B",
"fullNamespace": "TransferManager",
"args": ["0x5d36971451ae593685cab8815d644f9b4b66ec99"],
"encodedArgs": "0x5d36971451ae593685cab8815d644f9b4b66ec99",
"tx": "0x42610c6d7d3766fbbaa25e76d7781865f2983c2a3d88d23540cef384f25ef017"
},
"ProtocolFeeRecipient": {
"address": "0xf9aBC43c85808A720CFC296C5eee4516C7F429F6",
"fullNamespace": "ProtocolFeeRecipient",
"args": ["0x5d36971451AE593685Cab8815d644f9B4B66Ec99", "0x3031a6D5D9648BA5f50f656Cd4a1672E1167a34A"],
"encodedArgs": "0x5d36971451ae593685cab8815d644f9b4b66ec993031a6d5d9648ba5f50f656cd4a1672e1167a34a",
"tx": "0x859ebe02a45909d01850b479b7849ff0d40741db5d50b4a3a5c4c1314dc0434a"
},
"HypercertExchange": {
"address": "0x1d905Bec93E48C64649300688B99D5F7d11ac412",
"fullNamespace": "LooksRareProtocol",
"args": [
"0x5d36971451ae593685cab8815d644f9b4b66ec99",
"0xf9aBC43c85808A720CFC296C5eee4516C7F429F6",
"0xf66abbE1c3FE57851010f2Ad5d1A78067fEDE58B",
"0x3031a6D5D9648BA5f50f656Cd4a1672E1167a34A"
],
"encodedArgs": "0x5d36971451ae593685cab8815d644f9b4b66ec99f9abc43c85808a720cfc296c5eee4516c7f429f6f66abbe1c3fe57851010f2ad5d1a78067fede58b3031a6d5d9648ba5f50f656cd4a1672e1167a34a",
"tx": "0xeec15808a49fec00f53906ef9ad71ab40521fe8fb30103293957a0ef332d8f30"
},
"RoyaltyFeeRegistry": {
"address": "0xfCb6A37b57497E4418058BbdEfc680e2e3fe2a7f",
"fullNamespace": "RoyaltyFeeRegistry",
"args": ["1000"],
"encodedArgs": "0x00000000000000000000000000000000000000000000000000000000000003e8",
"tx": "0x48dbc49140fbdfba587ff538522b5fd904b33b89c52eebdd2a859d23e7d8564d"
},
"OrderValidator": {
"address": "0x976427894fAE68821289f6D71388802273CAc33e",
"fullNamespace": "OrderValidatorV2A",
"args": ["0x1d905Bec93E48C64649300688B99D5F7d11ac412"],
"encodedArgs": "0x1d905bec93e48c64649300688b99d5f7d11ac412"
},
"CreatorFeeManager": {
"address": "0xa3d5438ba3d65677d8531340da201d93e06eb5b7",
"fullNamespace": "CreatorFeeManagerWithRoyalties",
"args": ["0xfCb6A37b57497E4418058BbdEfc680e2e3fe2a7f"],
"encodedArgs": "0xfcb6a37b57497e4418058bbdefc680e2e3fe2a7f",
"tx": "0xe18a640375b419caa7d71bcee5ab5fb0681fd83142ef99c3aa4112944ce6e690"
},
"StrategyHypercertFractionOffer": {
"address": "0x58fc599e0afd4e526a5ff69933d7a00721d28bb1",
"fullNamespace": "StrategyHypercertFractionOffer",
"args": [],
"encodedArgs": "0x",
"tx": "0xcafff6f303d32fcd7d34a6c235b573edc27a31f4c2f2e332d492b2414cae106b"
}
}
8 changes: 8 additions & 0 deletions contracts/src/deployments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import deployments_marketplace_base_sepolia from "./deployment-marketplace-base-
import deployments_marketplace_optimism_mainnet from "./deployment-marketplace-optimism-mainnet.json";
import deployments_marketplace_sepolia from "./deployment-marketplace-sepolia.json";
import deployments_protocol from "./deployments-protocol.json";
import deployments_marketplace_arb_sepolia from "./deployment-marketplace-arb-sepolia.json";

const deployments_marketplace = {
"10": {
Expand All @@ -25,6 +26,13 @@ const deployments_marketplace = {
RoyaltyFeeRegistry: deployments_marketplace_sepolia.RoyaltyFeeRegistry.address,
StrategyHypercertFractionOffer: deployments_marketplace_sepolia.StrategyHypercertFractionOffer.address,
},
"421614": {
TransferManager: deployments_marketplace_arb_sepolia.TransferManager.address,
HypercertExchange: deployments_marketplace_arb_sepolia.HypercertExchange.address,
OrderValidatorV2A: deployments_marketplace_arb_sepolia.OrderValidator.address,
RoyaltyFeeRegistry: deployments_marketplace_arb_sepolia.RoyaltyFeeRegistry.address,
StrategyHypercertFractionOffer: deployments_marketplace_arb_sepolia.StrategyHypercertFractionOffer.address,
},
};

export default { marketplace: deployments_marketplace, protocol: deployments_protocol };
1 change: 1 addition & 0 deletions contracts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const deployments = {
},
421614: {
...DEPLOYMENTS.protocol["421614"],
...DEPLOYMENTS.marketplace["421614"],
},
} as Record<DeployedChains, Deployment>;

Expand Down
4 changes: 2 additions & 2 deletions contracts/tasks/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ADMIN_ACCOUNT: { [key: string]: string } = {
celo: "0x14ae502FEF3843fF3a1735B3209D39B320130af9",
base: "0x14ae502FEF3843fF3a1735B3209D39B320130af9",
arbitrum: "0x14ae502FEF3843fF3a1735B3209D39B320130af9",
"arb-sepolia": "0xdf2C3dacE6F31e650FD03B8Ff72beE82Cb1C199A",
"arb-sepolia": "0x5d36971451AE593685Cab8815d644f9B4B66Ec99",
};

export const getAdminAccount = (network: string): string => {
Expand All @@ -69,7 +69,7 @@ const FEE_RECIPIENT: { [key: string]: string } = {
celo: "0xE7C4531ad8828794904D332a12702beC8ff1A498",
base: "0xE7C4531ad8828794904D332a12702beC8ff1A498",
arbitrum: "0xE7C4531ad8828794904D332a12702beC8ff1A498",
"arb-sepolia": "0xdf2C3dacE6F31e650FD03B8Ff72beE82Cb1C199A",
"arb-sepolia": "0x5d36971451AE593685Cab8815d644f9B4B66Ec99",
};

export const getFeeRecipient = (network: string): string => {
Expand Down
2 changes: 1 addition & 1 deletion contracts/tasks/deploy-marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const runCreate2Deployment = async (
abi: create2Instance.abi,
functionName: "safeCreate2",
args: [create2.salt, create2.deployData],
account: "0xdc6d6f9ab5fcc398b92b017e8482749ae5afbf35",
account: "0x5d36971451ae593685cab8815d644f9b4b66ec99", // update method to take account as arg
});

const hash = await create2Instance.write.safeCreate2([create2.salt, create2.deployData]);
Expand Down

0 comments on commit 67731f5

Please sign in to comment.