Skip to content

Commit

Permalink
➕ Add Gravity Alpha Main Network Deployment (#129)
Browse files Browse the repository at this point in the history
### 🕓 Changelog

Add Gravity Alpha main network deployment:
- [Gravity
Alpha](https://explorer.gravity.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed).

#### Verification

Compare the `keccak256` hash of the runtime bytecode with the canonical
`keccak256` hash of the runtime bytecode
[here](https://github.com/pcaversaccio/createx#security-considerations)
(`0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f`):

```console
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.gravity.xyz)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
```

---------
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
Co-authored-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
oyyblin authored Aug 18, 2024
1 parent 6608ff1 commit befb986
Show file tree
Hide file tree
Showing 7 changed files with 199 additions and 263 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2216,6 +2216,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Rootstock](https://rootstock.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Chiliz](https://chiliscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Taraxa](https://mainnet.explorer.taraxa.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Gravity Alpha](https://explorer.gravity.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down
7 changes: 7 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@
"https://mainnet.explorer.taraxa.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Gravity Alpha",
"chainId": 1625,
"urls": [
"https://explorer.gravity.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down
32 changes: 32 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,19 @@ const config: HardhatUserConfig = {
url: vars.get("TARAXA_MAINNET_URL", "https://rpc.mainnet.taraxa.io"),
accounts,
},
gravityAlphaTestnet: {
chainId: 13505,
url: vars.get(
"GRAVITY_ALPHA_TESTNET_URL",
"https://rpc-sepolia.gravity.xyz",
),
accounts,
},
gravityAlphaMain: {
chainId: 1625,
url: vars.get("GRAVITY_ALPHA_MAINNET_URL", "https://rpc.gravity.xyz"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -766,6 +779,9 @@ const config: HardhatUserConfig = {
// For Chiliz testnet & mainnet
chiliz: vars.get("CHILIZ_API_KEY", ""),
chilizTestnet: vars.get("CHILIZ_API_KEY", ""),
// For Gravity Alpha testnet & mainnet
gravityAlpha: vars.get("GRAVITY_ALPHA_API_KEY", ""),
gravityAlphaTestnet: vars.get("GRAVITY_ALPHA_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1326,6 +1342,22 @@ const config: HardhatUserConfig = {
browserURL: "https://explorer.testnet.harmony.one",
},
},
{
network: "gravityAlpha",
chainId: 1625,
urls: {
apiURL: "https://explorer.gravity.xyz/api",
browserURL: "https://explorer.gravity.xyz",
},
},
{
network: "gravityAlphaTestnet",
chainId: 13505,
urls: {
apiURL: "https://explorer-sepolia.gravity.xyz/api",
browserURL: "https://explorer-sepolia.gravity.xyz",
},
},
],
},
};
Expand Down
4 changes: 2 additions & 2 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
"prismjs": "^1.29.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sharp": "^0.33.4"
"sharp": "^0.33.5"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@next/eslint-plugin-next": "^14.2.5",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^22.3.0",
"@types/node": "^22.4.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
Expand Down
2 changes: 1 addition & 1 deletion lib/solady
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@
"deploy:chilizmain": "npx hardhat run --no-compile --network chilizMain scripts/deploy.ts",
"deploy:taraxatestnet": "npx hardhat run --no-compile --network taraxaTestnet scripts/deploy.ts",
"deploy:taraxamain": "npx hardhat run --no-compile --network taraxaMain scripts/deploy.ts",
"deploy:gravityalphatestnet": "npx hardhat run --no-compile --network gravityAlphaTestnet scripts/deploy.ts",
"deploy:gravityalphamain": "npx hardhat run --no-compile --network gravityAlphaMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "cd interface && pnpm prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand Down Expand Up @@ -161,7 +163,7 @@
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^2.2.1",
"prettier": "^3.3.3",
"prettier-plugin-solidity": "^1.3.1",
"prettier-plugin-solidity": "^1.4.1",
"solhint": "^5.0.3",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
Expand Down
Loading

0 comments on commit befb986

Please sign in to comment.