Skip to content

Commit

Permalink
➕ Add World Chain Test and Main Network Deployments (#137)
Browse files Browse the repository at this point in the history
### 🕓 Changelog

Add World Chain test and main network deployments (closes #136):
- [World Chain Sepolia
Testnet](https://worldchain-sepolia.explorer.alchemy.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed),
- [World
Chain](https://worldchain-mainnet.explorer.alchemy.com/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://worldchain-sepolia.g.alchemy.com/public)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://worldchain-mainnet.g.alchemy.com/public)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
```

---------

Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio authored Sep 27, 2024
1 parent a7de3f6 commit 91c7b4a
Show file tree
Hide file tree
Showing 9 changed files with 150 additions and 97 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [ZetaChain](https://explorer.zetachain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [5ireChain](https://5irescan.io/contract/evm/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Oasis Sapphire](https://explorer.oasis.io/mainnet/sapphire/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [World Chain](https://worldchain-mainnet.explorer.alchemy.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down Expand Up @@ -2271,6 +2272,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [ZetaChain Testnet (Athens-3)](https://athens.explorer.zetachain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [5ireChain Testnet](https://testnet.5irescan.io/contract/evm/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Oasis Sapphire Testnet](https://explorer.oasis.io/testnet/sapphire/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [World Chain Sepolia Testnet](https://worldchain-sepolia.explorer.alchemy.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

## Integration With External Tooling

Expand Down
14 changes: 14 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,13 @@
"https://repo.sourcify.dev/contracts/partial_match/23294/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed/"
]
},
{
"name": "World Chain",
"chainId": 480,
"urls": [
"https://worldchain-mainnet.explorer.alchemy.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -690,5 +697,12 @@
"https://explorer.oasis.io/testnet/sapphire/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"https://repo.sourcify.dev/contracts/partial_match/23295/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed/"
]
},
{
"name": "World Chain Sepolia Testnet",
"chainId": 4801,
"urls": [
"https://worldchain-sepolia.explorer.alchemy.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
35 changes: 35 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,22 @@ const config: HardhatUserConfig = {
url: vars.get("SAPPHIRE_MAINNET_URL", "https://sapphire.oasis.io"),
accounts,
},
worldChainTestnet: {
chainId: 4801,
url: vars.get(
"WORLD_CHAIN_TESTNET_URL",
"https://worldchain-sepolia.g.alchemy.com/public",
),
accounts,
},
worldChainMain: {
chainId: 480,
url: vars.get(
"WORLD_CHAIN_MAINNET_URL",
"https://worldchain-mainnet.g.alchemy.com/public",
),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -840,6 +856,9 @@ const config: HardhatUserConfig = {
// For Oasis Sapphire testnet & mainnet
sapphire: vars.get("SAPPHIRE_API_KEY", ""),
sapphireTestnet: vars.get("SAPPHIRE_API_KEY", ""),
// For World Chain testnet & mainnet
worldChain: vars.get("WORLD_CHAIN_API_KEY", ""),
worldChainTestnet: vars.get("WORLD_CHAIN_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1480,6 +1499,22 @@ const config: HardhatUserConfig = {
browserURL: "https://explorer.oasis.io/testnet/sapphire",
},
},
{
network: "worldChain",
chainId: 480,
urls: {
apiURL: "https://worldchain-mainnet.explorer.alchemy.com/api",
browserURL: "https://worldchain-mainnet.explorer.alchemy.com",
},
},
{
network: "worldChainTestnet",
chainId: 4801,
urls: {
apiURL: "https://worldchain-sepolia.explorer.alchemy.com/api",
browserURL: "https://worldchain-sepolia.explorer.alchemy.com",
},
},
],
},
};
Expand Down
6 changes: 3 additions & 3 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
"@eslint/js": "^9.11.1",
"@next/eslint-plugin-next": "^14.2.13",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^22.7.1",
"@types/react": "^18.3.9",
"@types/node": "^22.7.4",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.13",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react": "^7.37.0",
"eslint-plugin-react-hooks": "^4.6.2",
"next-seo": "^6.6.0",
"postcss": "^8.4.47",
Expand Down
2 changes: 1 addition & 1 deletion lib/forge-std
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts
Submodule openzeppelin-contracts updated 35 files
+2 −2 contracts/finance/VestingWallet.sol
+4 −1 contracts/finance/VestingWalletCliff.sol
+1 −1 contracts/governance/Governor.sol
+2 −0 contracts/governance/extensions/GovernorCountingFractional.sol
+16 −6 contracts/governance/extensions/GovernorStorage.sol
+1 −1 contracts/governance/utils/Votes.sol
+1 −1 contracts/metatx/ERC2771Forwarder.sol
+2 −0 contracts/token/ERC1155/utils/ERC1155Utils.sol
+2 −0 contracts/token/ERC20/extensions/ERC1363.sol
+1 −1 contracts/token/ERC20/extensions/ERC4626.sol
+2 −0 contracts/token/ERC20/extensions/draft-ERC20TemporaryApproval.sol
+2 −0 contracts/token/ERC721/utils/ERC721Utils.sol
+4 −1 contracts/token/common/ERC2981.sol
+5 −0 contracts/utils/Comparators.sol
+2 −0 contracts/utils/Errors.sol
+2 −0 contracts/utils/Packing.sol
+2 −0 contracts/utils/Panic.sol
+4 −0 contracts/utils/README.adoc
+2 −0 contracts/utils/ReentrancyGuardTransient.sol
+2 −0 contracts/utils/SlotDerivation.sol
+10 −3 contracts/utils/cryptography/ECDSA.sol
+2 −0 contracts/utils/cryptography/Hashes.sol
+14 −8 contracts/utils/cryptography/P256.sol
+10 −7 contracts/utils/cryptography/RSA.sol
+30 −6 contracts/utils/structs/Checkpoints.sol
+2 −0 contracts/utils/structs/CircularBuffer.sol
+55 −55 contracts/utils/structs/EnumerableMap.sol
+34 −30 contracts/utils/structs/Heap.sol
+10 −10 contracts/utils/structs/MerkleTree.sol
+6 −3 contracts/utils/types/Time.sol
+1 −1 fv-requirements.txt
+10 −2 scripts/generate/templates/Checkpoints.js
+13 −13 scripts/generate/templates/EnumerableMap.js
+2 −0 scripts/generate/templates/Packing.js
+2 −0 scripts/generate/templates/SlotDerivation.js
2 changes: 1 addition & 1 deletion lib/solady
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@
"deploy:5irechainmain": "npx hardhat run --no-compile --network 5ireChainMain scripts/deploy.ts",
"deploy:sapphiretestnet": "npx hardhat run --no-compile --network sapphireTestnet scripts/deploy.ts",
"deploy:sapphiremain": "npx hardhat run --no-compile --network sapphireMain scripts/deploy.ts",
"deploy:worldchaintestnet": "npx hardhat run --no-compile --network worldChainTestnet scripts/deploy.ts",
"deploy:worldchainmain": "npx hardhat run --no-compile --network worldChainMain 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
Loading

0 comments on commit 91c7b4a

Please sign in to comment.