From 67731f5aaa41d95ffe11b5baa8726a4c1cd216a1 Mon Sep 17 00:00:00 2001 From: Rowdy Date: Tue, 20 Aug 2024 10:27:30 -0600 Subject: [PATCH] build(arb-sepolia-depoloyment): deployed contracts and marketplace to arb sepolia --- contracts/hardhat.config.cts | 6 +- .../deployment-marketplace-arb-sepolia.json | 55 +++++++++++++++++++ contracts/src/deployments/index.ts | 8 +++ contracts/src/index.ts | 1 + contracts/tasks/config.ts | 4 +- contracts/tasks/deploy-marketplace.ts | 2 +- 6 files changed, 69 insertions(+), 7 deletions(-) create mode 100644 contracts/src/deployments/deployment-marketplace-arb-sepolia.json diff --git a/contracts/hardhat.config.cts b/contracts/hardhat.config.cts index 5af2aeb4..e43097fc 100644 --- a/contracts/hardhat.config.cts +++ b/contracts/hardhat.config.cts @@ -106,9 +106,7 @@ 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}`, }; } @@ -116,7 +114,7 @@ function getChainConfig(chain: keyof typeof chainIds) { config = { ...config, url: `https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}`, - gasPrice: 10000000 + gasPrice: 10000000, }; } diff --git a/contracts/src/deployments/deployment-marketplace-arb-sepolia.json b/contracts/src/deployments/deployment-marketplace-arb-sepolia.json new file mode 100644 index 00000000..69356a04 --- /dev/null +++ b/contracts/src/deployments/deployment-marketplace-arb-sepolia.json @@ -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" + } +} diff --git a/contracts/src/deployments/index.ts b/contracts/src/deployments/index.ts index 64c7f776..3fb1600c 100644 --- a/contracts/src/deployments/index.ts +++ b/contracts/src/deployments/index.ts @@ -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": { @@ -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 }; diff --git a/contracts/src/index.ts b/contracts/src/index.ts index e25bc80c..ab38273b 100644 --- a/contracts/src/index.ts +++ b/contracts/src/index.ts @@ -79,6 +79,7 @@ const deployments = { }, 421614: { ...DEPLOYMENTS.protocol["421614"], + ...DEPLOYMENTS.marketplace["421614"], }, } as Record; diff --git a/contracts/tasks/config.ts b/contracts/tasks/config.ts index 450c6bd9..89c508b0 100644 --- a/contracts/tasks/config.ts +++ b/contracts/tasks/config.ts @@ -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 => { @@ -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 => { diff --git a/contracts/tasks/deploy-marketplace.ts b/contracts/tasks/deploy-marketplace.ts index 38e4fa8f..7f22b2bb 100644 --- a/contracts/tasks/deploy-marketplace.ts +++ b/contracts/tasks/deploy-marketplace.ts @@ -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]);