Skip to content

Commit

Permalink
Base deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuanx committed Apr 29, 2024
1 parent fa6b0ee commit 439e8eb
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,8 @@ yarn-error.log

# EthSign custom
package-lock.json
storageLayout
storageLayout

# Foundry
out
cache_forge
29 changes: 27 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import '@matterlabs/hardhat-zksync-verify'
import '@openzeppelin/hardhat-upgrades'
import 'solidity-docgen'
import 'hardhat-gas-reporter'
import '@nomicfoundation/hardhat-foundry'

if (process.env.NODE_ENV !== 'PRODUCTION') {
config()
Expand Down Expand Up @@ -169,6 +170,20 @@ export default {
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
},
base: {
chainId: 8453,
url: 'https://mainnet.base.org',
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
},
baseSepolia: {
chainId: 84532,
url: 'https://sepolia.base.org',
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
}
},
solidity: {
Expand Down Expand Up @@ -219,7 +234,9 @@ export default {
zetachainTestnet: process.env.ZETA_KEY,
zetachain: process.env.ZETA_KEY,
scrollSepolia: process.env.SCROLL_API_KEY!,
scroll: process.env.SCROLL_API_KEY!
scroll: process.env.SCROLL_API_KEY!,
base: process.env.BASE_API_KEY!,
baseSepolia: process.env.BASE_API_KEY!
},
customChains: [
{
Expand Down Expand Up @@ -278,6 +295,14 @@ export default {
apiURL: 'https://api.scrollscan.com/api',
browserURL: 'https://scrollscan.com/'
}
},
{
network: 'baseSepolia',
chainId: 84532,
urls: {
apiURL: 'https://api-sepolia.basescan.org/api',
browserURL: 'https://sepolia.basescan.org'
}
}
]
},
Expand All @@ -286,6 +311,6 @@ export default {
exclude: ['libraries', 'mock']
},
gasReporter: {
enabled: true
enabled: false
}
}
5 changes: 5 additions & 0 deletions subgraph/config/base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"network": "base",
"address": "0x88f861053345d52f3B4168F7852Dd9Ff2E1BC62c",
"startBlock": 13784647
}
5 changes: 5 additions & 0 deletions subgraph/config/baseSepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"network": "base-sepolia",
"address": "0x4beB86Aa48569885fc21e21709Ce7A5e365cF96a",
"startBlock": 9295598
}
2 changes: 2 additions & 0 deletions subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"prep:zetachain": "mustache config/zetachain.json subgraph.template.yaml > subgraph.yaml",
"prep:scroll": "mustache config/scroll.json subgraph.template.yaml > subgraph.yaml",
"prep:scrollSepolia": "mustache config/scrollSepolia.json subgraph.template.yaml > subgraph.yaml",
"prep:base": "mustache config/base.json subgraph.template.yaml > subgraph.yaml",
"prep:baseSepolia": "mustache config/baseSepolia.json subgraph.template.yaml > subgraph.yaml",
"test": "graph test"
},
"dependencies": {
Expand Down

0 comments on commit 439e8eb

Please sign in to comment.