-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deploy): base-sepolia and update contracts pacakge
- Loading branch information
1 parent
055efcd
commit 618e445
Showing
6 changed files
with
96 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
export type TokenAddressType = { sepolia: string; [key: string]: string }; | ||
|
||
const WETH: TokenAddressType = { | ||
localhost: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9", //dummy | ||
hardhat: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9", //dummy | ||
sepolia: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9", | ||
"optimism-mainnet": "0x4200000000000000000000000000000000000006", | ||
"base-sepolia": "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9", | ||
}; | ||
|
||
// LINK faucet for Sepolia: https://faucets.chain.link/ | ||
const DAI: TokenAddressType = { | ||
localhost: "0x779877A7B0D9E8603169DdbD7836e478b4624789", | ||
hardhat: "0x779877A7B0D9E8603169DdbD7836e478b4624789", | ||
sepolia: "0x779877A7B0D9E8603169DdbD7836e478b4624789", | ||
"optimism-mainnet": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1", | ||
"base-sepolia": "0xE4aB69C077896252FAFBD49EFD26B5D171A32410", | ||
}; | ||
|
||
// USDC https://faucet.circle.com/ | ||
// https://developers.circle.com/stablecoins/docs/usdc-on-main-networks | ||
const USDC: TokenAddressType = { | ||
localhost: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", | ||
hardhat: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", | ||
sepolia: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", | ||
"optimism-mainnet": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85", | ||
"base-sepolia": "0x036CbD53842c5426634e7929541eC2318f3dCF7e", | ||
}; | ||
|
||
export const getTokenAddresses = (network: string) => { | ||
return { | ||
wethAddress: WETH[network], | ||
usdceAddress: USDC[network], | ||
daiAddress: DAI[network], | ||
}; | ||
}; | ||
|
||
const ADMIN_ACCOUNT: { [key: string]: string } = { | ||
localhost: "0x4f37308832c6eFE5A74737955cBa96257d76De17", | ||
hardhat: "0x4f37308832c6eFE5A74737955cBa96257d76De17", | ||
sepolia: "0x4f37308832c6eFE5A74737955cBa96257d76De17", | ||
"base-sepolia": "0xA2Cb9D926b090577AD45fC0F40C753BF369B82Ff", | ||
"optimism-mainnet": "0x560adA72a80b4707e493cA8c3B7B7528930E7Be5", | ||
celo: "0x14ae502FEF3843fF3a1735B3209D39B320130af9", | ||
base: "0x14ae502FEF3843fF3a1735B3209D39B320130af9", | ||
arbitrum: "0x14ae502FEF3843fF3a1735B3209D39B320130af9", | ||
}; | ||
|
||
export const getAdminAccount = (network: string): string => { | ||
const account = ADMIN_ACCOUNT[network]; | ||
|
||
if (!account || account === null || account.trim() === "") { | ||
throw new Error(`Admin account for network "${network}" is not defined, null, or empty.`); | ||
} | ||
|
||
return account; | ||
}; | ||
|
||
const FEE_RECIPIENT: { [key: string]: string } = { | ||
localhost: "0x4f37308832c6eFE5A74737955cBa96257d76De17", | ||
hardhat: "0x4f37308832c6eFE5A74737955cBa96257d76De17", | ||
sepolia: "0x4f37308832c6eFE5A74737955cBa96257d76De17", | ||
"base-sepolia": "0xe518aED97D9d45174a06bB8EF663B4fB51330725", | ||
"optimism-mainnet": "0xE7C4531ad8828794904D332a12702beC8ff1A498", | ||
celo: "0xE7C4531ad8828794904D332a12702beC8ff1A498", | ||
base: "0xE7C4531ad8828794904D332a12702beC8ff1A498", | ||
arbitrum: "0xE7C4531ad8828794904D332a12702beC8ff1A498", | ||
}; | ||
|
||
export const getFeeRecipient = (network: string): string => { | ||
const recipient = FEE_RECIPIENT[network]; | ||
|
||
if (!recipient || recipient === null || recipient.trim() === "") { | ||
throw new Error(`Fee recipient for network "${network}" is not defined, null, or empty.`); | ||
} | ||
|
||
return recipient; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters