Skip to content

Commit

Permalink
feat(arb): setup arb testnet params
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeckers committed Aug 20, 2024
1 parent ac7a67b commit 15f3980
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions contracts/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ETHERSCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
OPTIMISTIC_ETHERSCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
CELOSCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
BASESCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
ARBISCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"

# Unused, ignore below
REPORT_GAS=false
Expand Down
6 changes: 4 additions & 2 deletions contracts/hardhat.config.cts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ function getChainConfig(chain: keyof typeof chainIds) {
if (chain === "optimism-mainnet") {
config = {
...config,
// url: "https://virtual.optimism.rpc.tenderly.co/41aca07e-03d1-4a5c-807a-e43c1777100a"
url: `https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
};
}
Expand All @@ -107,14 +106,17 @@ function getChainConfig(chain: keyof typeof chainIds) {
if (chain === "arb-sepolia") {
config = {
...config,
url: `https://arb-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}`,
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
};
}

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

Expand Down
5 changes: 5 additions & 0 deletions contracts/tasks/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const WETH: TokenAddressType = {
sepolia: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
"optimism-mainnet": "0x4200000000000000000000000000000000000006",
"base-sepolia": "0x4200000000000000000000000000000000000006",
"arb-sepolia": "0x3031a6D5D9648BA5f50f656Cd4a1672E1167a34A",
};

// LINK faucet for Sepolia: https://faucets.chain.link/
Expand All @@ -15,6 +16,7 @@ const DAI: TokenAddressType = {
sepolia: "0x779877A7B0D9E8603169DdbD7836e478b4624789",
"optimism-mainnet": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
"base-sepolia": "0xE4aB69C077896252FAFBD49EFD26B5D171A32410",
"arb-sepolia": "0xb1D4538B4571d411F07960EF2838Ce337FE1E80E",
};

// USDC https://faucet.circle.com/
Expand All @@ -25,6 +27,7 @@ const USDC: TokenAddressType = {
sepolia: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"optimism-mainnet": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
"base-sepolia": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"arb-sepolia": "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
};

export const getTokenAddresses = (network: string) => {
Expand All @@ -44,6 +47,7 @@ const ADMIN_ACCOUNT: { [key: string]: string } = {
celo: "0x14ae502FEF3843fF3a1735B3209D39B320130af9",
base: "0x14ae502FEF3843fF3a1735B3209D39B320130af9",
arbitrum: "0x14ae502FEF3843fF3a1735B3209D39B320130af9",
"arb-sepolia": "0xdf2C3dacE6F31e650FD03B8Ff72beE82Cb1C199A",
};

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

export const getFeeRecipient = (network: string): string => {
Expand Down
5 changes: 5 additions & 0 deletions contracts/tasks/deploy-marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ task("deploy-marketplace", "Deploy marketplace contracts and verify")

// 10_000 = 100%
// Sepolia admin Safe = sep:0x4f37308832c6eFE5A74737955cBa96257d76De17

/**
* DEPLOYMENT CONFIGURATION
*/

const marketplaceParameters = {
owner: getAdminAccount(network.name), // hc admin safe
protocolFeeRecipient: getFeeRecipient(network.name), // hc fee safe
Expand Down
Binary file removed graph/tests/.bin/hypercert-minter-allowlist.wasm
Binary file not shown.
Binary file removed graph/tests/.bin/hypercert-minter-burn.wasm
Binary file not shown.
Binary file removed graph/tests/.bin/hypercert-minter-claim.wasm
Binary file not shown.
Binary file removed graph/tests/.bin/hypercert-minter-fraction.wasm
Binary file not shown.
Empty file removed scripts/cleanup-allowlist.ts
Empty file.
10 changes: 0 additions & 10 deletions scripts/update-claimids-in-supabase-to-multichain.sql

This file was deleted.

0 comments on commit 15f3980

Please sign in to comment.