Skip to content
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

βž• Add Shape/Etherlink Test and Main Network Deployments #170

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2235,6 +2235,8 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [EVM on Flow](https://evm.flowscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Ink](https://explorer.inkonchain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Morph](https://explorer.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Shape](https://shapescan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Etherlink](https://explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down Expand Up @@ -2298,6 +2300,8 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [EVM on Flow Testnet](https://evm-testnet.flowscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Ink Sepolia Testnet](https://explorer-sepolia.inkonchain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Morph HoleΕ‘ky Testnet](https://explorer-holesky.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Shape Sepolia Testnet](https://explorer-sepolia.shape.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Etherlink Testnet (Ghostnet)](https://testnet.explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

## Integration With External Tooling

Expand Down
28 changes: 28 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,20 @@
"https://explorer.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Shape",
"chainId": 360,
"urls": [
"https://shapescan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Etherlink",
"chainId": 42793,
"urls": [
"https://explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -860,5 +874,19 @@
"urls": [
"https://explorer-holesky.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Shape Sepolia Testnet",
"chainId": 11011,
"urls": [
"https://explorer-sepolia.shape.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Etherlink Testnet (Ghostnet)",
"chainId": 128123,
"urls": [
"https://testnet.explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
64 changes: 64 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,32 @@ const config: HardhatUserConfig = {
url: vars.get("MORPH_MAINNET_URL", "https://rpc-quicknode.morphl2.io"),
accounts,
},
shapeTestnet: {
chainId: 11011,
url: vars.get("SHAPE_TESTNET_URL", "https://sepolia.shape.network"),
accounts,
},
shapeMain: {
chainId: 360,
url: vars.get("SHAPE_MAINNET_URL", "https://mainnet.shape.network"),
accounts,
},
etherlinkTestnet: {
chainId: 128123,
url: vars.get(
"ETHERLINK_TESTNET_URL",
"https://node.ghostnet.etherlink.com",
),
accounts,
},
etherlinkMain: {
chainId: 42793,
url: vars.get(
"ETHERLINK_MAINNET_URL",
"https://node.mainnet.etherlink.com",
),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -1012,6 +1038,12 @@ const config: HardhatUserConfig = {
// For Morph testnet & mainnet
morph: vars.get("MORPH_API_KEY", ""),
morphTestnet: vars.get("MORPH_API_KEY", ""),
// For Shape testnet & mainnet
shape: vars.get("SHAPE_API_KEY", ""),
shapeTestnet: vars.get("SHAPE_API_KEY", ""),
// For Etherlink testnet & mainnet
etherlink: vars.get("ETHERLINK_API_KEY", ""),
etherlinkTestnet: vars.get("ETHERLINK_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1844,6 +1876,38 @@ const config: HardhatUserConfig = {
browserURL: "https://explorer-holesky.morphl2.io",
},
},
{
network: "shape",
chainId: 360,
urls: {
apiURL: "https://shapescan.xyz/api",
browserURL: "https://shapescan.xyz",
},
},
{
network: "shapeTestnet",
chainId: 11011,
urls: {
apiURL: "https://explorer-sepolia.shape.network/api",
browserURL: "https://explorer-sepolia.shape.network",
},
},
{
network: "etherlink",
chainId: 42793,
urls: {
apiURL: "https://explorer.etherlink.com/api",
browserURL: "https://explorer.etherlink.com",
},
},
{
network: "etherlinkTestnet",
chainId: 128123,
urls: {
apiURL: "https://testnet.explorer.etherlink.com/api",
browserURL: "https://testnet.explorer.etherlink.com",
},
},
],
},
};
Expand Down
4 changes: 2 additions & 2 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"@next/eslint-plugin-next": "^15.1.4",
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
"@types/node": "^22.10.5",
"@types/react": "^19.0.5",
"@types/react": "^19.0.6",
"@types/react-dom": "^19.0.3",
"autoprefixer": "^10.4.20",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.4",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"next-seo": "^6.6.0",
"postcss": "^8.4.49",
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@
"deploy:inkmain": "npx hardhat run --no-compile --network inkMain scripts/deploy.ts",
"deploy:morphtestnet": "npx hardhat run --no-compile --network morphTestnet scripts/deploy.ts",
"deploy:morphmain": "npx hardhat run --no-compile --network morphMain scripts/deploy.ts",
"deploy:shapetestnet": "npx hardhat run --no-compile --network shapeTestnet scripts/deploy.ts",
"deploy:shapemain": "npx hardhat run --no-compile --network shapeMain scripts/deploy.ts",
"deploy:etherlinktestnet": "npx hardhat run --no-compile --network etherlinkTestnet scripts/deploy.ts",
"deploy:etherlinkmain": "npx hardhat run --no-compile --network etherlinkMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "pnpm -C interface prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading