-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support base sepolia #1520
Support base sepolia #1520
Changes from all commits
716d8a4
66d455c
d488336
562d47c
722f530
4702830
359c701
52ee0c5
c605e22
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ VITE_APP_ALCHEMY_MAINNET_API_KEY="" | |
VITE_APP_ALCHEMY_POLYGON_API_KEY="" | ||
# Alchemy provider API key, used on Sepolia | ||
VITE_APP_ALCHEMY_SEPOLIA_API_KEY="" | ||
# Alchemy provider API key, used on Base Sepolia | ||
VITE_APP_ALCHEMY_BASE_SEPOLIA_API_KEY="" | ||
# Alchemy automated testing workflows | ||
VITE_APP_ALCHEMY_TESTING_API_KEY="" | ||
|
||
|
@@ -21,6 +23,8 @@ VITE_APP_ETHERSCAN_MAINNET_API_KEY="" | |
VITE_APP_ETHERSCAN_POLYGON_API_KEY="" | ||
# ABI selector, used on Sepolia | ||
VITE_APP_ETHERSCAN_SEPOLIA_API_KEY="" | ||
# ABI selector, used on Base Sepolia | ||
VITE_APP_ETHERSCAN_BASE_SEPOLIA_API_KEY="" | ||
Comment on lines
+26
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This env var has been added to netlify dev and prod sites, with keys |
||
|
||
# IPFS pinning | ||
VITE_APP_INFURA_IPFS_API_KEY="" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,12 @@ | |
"@ethersproject/providers": "^5.7.2", | ||
"@fontsource/ibm-plex-mono": "^4.5.12", | ||
"@fontsource/ibm-plex-sans": "^4.5.13", | ||
"@fractal-framework/fractal-contracts": "^0.4.0", | ||
"@fractal-framework/fractal-contracts": "^0.5.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To get the Fractal contract addresses that are deployed on Base Sepolia |
||
"@graphprotocol/client-apollo": "^1.0.16", | ||
"@lido-sdk/contracts": "^3.0.2", | ||
"@netlify/blobs": "^6.5.0", | ||
"@netlify/functions": "^2.6.0", | ||
"@safe-global/safe-deployments": "^1.23.0", | ||
"@safe-global/safe-deployments": "^1.34.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To get the Safe contract addresses that are deployed on Base Sepolia |
||
"@safe-global/safe-ethers-lib": "^1.9.2", | ||
"@safe-global/safe-service-client": "^1.5.2", | ||
"@sentry/react": "^7.104.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import Azorius from '@fractal-framework/fractal-contracts/deployments/baseSepolia/Azorius.json'; | ||
import AzoriusFreezeGuard from '@fractal-framework/fractal-contracts/deployments/baseSepolia/AzoriusFreezeGuard.json'; | ||
import ERC20Claim from '@fractal-framework/fractal-contracts/deployments/baseSepolia/ERC20Claim.json'; | ||
import ERC20FreezeVoting from '@fractal-framework/fractal-contracts/deployments/baseSepolia/ERC20FreezeVoting.json'; | ||
import ERC721FreezeVoting from '@fractal-framework/fractal-contracts/deployments/baseSepolia/ERC721FreezeVoting.json'; | ||
import FractalModule from '@fractal-framework/fractal-contracts/deployments/baseSepolia/FractalModule.json'; | ||
import FractalRegistry from '@fractal-framework/fractal-contracts/deployments/baseSepolia/FractalRegistry.json'; | ||
import KeyValuePairs from '@fractal-framework/fractal-contracts/deployments/baseSepolia/KeyValuePairs.json'; | ||
import LinearERC20Voting from '@fractal-framework/fractal-contracts/deployments/baseSepolia/LinearERC20Voting.json'; | ||
import LinearVotingERC721 from '@fractal-framework/fractal-contracts/deployments/baseSepolia/LinearERC721Voting.json'; | ||
import ModuleProxyFactory from '@fractal-framework/fractal-contracts/deployments/baseSepolia/ModuleProxyFactory.json'; | ||
import MultisigFreezeGuard from '@fractal-framework/fractal-contracts/deployments/baseSepolia/MultisigFreezeGuard.json'; | ||
import MultisigFreezeVoting from '@fractal-framework/fractal-contracts/deployments/baseSepolia/MultisigFreezeVoting.json'; | ||
import VotesERC20 from '@fractal-framework/fractal-contracts/deployments/baseSepolia/VotesERC20.json'; | ||
import VotesERC20Wrapper from '@fractal-framework/fractal-contracts/deployments/baseSepolia/VotesERC20Wrapper.json'; | ||
import { | ||
getProxyFactoryDeployment, | ||
getMultiSendCallOnlyDeployment, | ||
getSafeL2SingletonDeployment, | ||
getCompatibilityFallbackHandlerDeployment, | ||
} from '@safe-global/safe-deployments'; | ||
import { baseSepolia } from 'wagmi/chains'; | ||
import { GovernanceType } from '../../../types'; | ||
import { NetworkConfig } from '../../../types/network'; | ||
|
||
const CHAIN_ID = 84532; | ||
const SAFE_VERSION = '1.3.0'; | ||
|
||
export const baseSepoliaConfig: NetworkConfig = { | ||
safeBaseURL: 'https://safe-transaction-base-sepolia.safe.global', | ||
etherscanBaseURL: 'https://basescan.org/', | ||
etherscanAPIUrl: `https://api.basescan.com/api?apikey=${import.meta.env.VITE_APP_ETHERSCAN_BASE_SEPOLIA_API_KEY}`, | ||
chainId: CHAIN_ID, | ||
name: baseSepolia.name, | ||
addressPrefix: 'basesep', | ||
color: 'gold.300', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a point for this PR - but we aren't using this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know! |
||
nativeTokenSymbol: baseSepolia.nativeCurrency.symbol, | ||
nativeTokenIcon: '/images/coin-icon-eth.svg', | ||
wagmiChain: baseSepolia, | ||
subgraphChainName: 'base-sepolia', | ||
contracts: { | ||
fractalAzoriusMasterCopy: Azorius.address, | ||
fractalModuleMasterCopy: FractalModule.address, | ||
fractalRegistry: FractalRegistry.address, | ||
votesERC20MasterCopy: VotesERC20.address, | ||
linearVotingERC721MasterCopy: LinearVotingERC721.address, | ||
claimingMasterCopy: ERC20Claim.address, | ||
azoriusFreezeGuardMasterCopy: AzoriusFreezeGuard.address, | ||
multisigFreezeVotingMasterCopy: MultisigFreezeVoting.address, | ||
erc20FreezeVotingMasterCopy: ERC20FreezeVoting.address, | ||
erc721FreezeVotingMasterCopy: ERC721FreezeVoting.address, | ||
multisigFreezeGuardMasterCopy: MultisigFreezeGuard.address, | ||
fallbackHandler: getCompatibilityFallbackHandlerDeployment({ | ||
version: SAFE_VERSION, | ||
network: CHAIN_ID.toString(), | ||
})?.networkAddresses[CHAIN_ID.toString()]!, | ||
safe: getSafeL2SingletonDeployment({ version: SAFE_VERSION, network: CHAIN_ID.toString() }) | ||
?.networkAddresses[CHAIN_ID.toString()]!, | ||
safeFactory: getProxyFactoryDeployment({ | ||
version: SAFE_VERSION, | ||
network: CHAIN_ID.toString(), | ||
})?.networkAddresses[CHAIN_ID.toString()]!, | ||
zodiacModuleProxyFactory: ModuleProxyFactory.address, | ||
linearVotingMasterCopy: LinearERC20Voting.address, | ||
multisend: getMultiSendCallOnlyDeployment({ | ||
version: SAFE_VERSION, | ||
network: CHAIN_ID.toString(), | ||
})?.networkAddresses[CHAIN_ID.toString()]!, | ||
votesERC20WrapperMasterCopy: VotesERC20Wrapper.address, | ||
keyValuePairs: KeyValuePairs.address, | ||
}, | ||
staking: {}, | ||
createOptions: [ | ||
GovernanceType.MULTISIG, | ||
GovernanceType.AZORIUS_ERC20, | ||
GovernanceType.AZORIUS_ERC721, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We DO support ERC721 strategy on Base Sepolia |
||
], | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export * from './sepolia'; | ||
export * from './mainnet'; | ||
export * from './polygon'; | ||
export * from './baseSepolia'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This env var has been added to netlify dev and prod sites, with keys