Skip to content

Commit

Permalink
➕ Add Oasis Sapphire Test and Main Network Deployments (#135)
Browse files Browse the repository at this point in the history
### 🕓 Changelog

Add Oasis Sapphire test and main network deployments:
- [Oasis Sapphire
Testnet](https://explorer.oasis.io/testnet/sapphire/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed),
- [Oasis
Sapphire](https://explorer.oasis.io/mainnet/sapphire/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://testnet.sapphire.oasis.io)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://sapphire.oasis.io)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
```

---------

Signed-off-by: Pascal Marco Caversaccio <[email protected]>
Co-authored-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
CedarMist and pcaversaccio authored Sep 23, 2024
1 parent 0d69fb3 commit 679ccc3
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 18 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2220,6 +2220,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Taiko](https://taikoscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [ZetaChain](https://explorer.zetachain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [5ireChain](https://5irescan.io/contract/evm/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Oasis Sapphire](https://explorer.oasis.io/mainnet/sapphire/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down Expand Up @@ -2269,6 +2270,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Taiko Holešky Testnet](https://hekla.taikoscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [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)

## Integration With External Tooling

Expand Down
16 changes: 16 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,14 @@
"https://5irescan.io/contract/evm/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Oasis Sapphire",
"chainId": 23294,
"urls": [
"https://explorer.oasis.io/mainnet/sapphire/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"https://repo.sourcify.dev/contracts/partial_match/23294/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed/"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -674,5 +682,13 @@
"urls": [
"https://testnet.5irescan.io/contract/evm/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Oasis Sapphire Testnet",
"chainId": 23295,
"urls": [
"https://explorer.oasis.io/testnet/sapphire/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"https://repo.sourcify.dev/contracts/partial_match/23295/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed/"
]
}
]
32 changes: 32 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,19 @@ const config: HardhatUserConfig = {
url: vars.get("5IRE_CHAIN_MAINNET_URL", "https://rpc.5ire.network"),
accounts,
},
sapphireTestnet: {
chainId: 23295,
url: vars.get(
"SAPPHIRE_TESTNET_URL",
"https://testnet.sapphire.oasis.io",
),
accounts,
},
sapphireMain: {
chainId: 23294,
url: vars.get("SAPPHIRE_MAINNET_URL", "https://sapphire.oasis.io"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -824,6 +837,9 @@ const config: HardhatUserConfig = {
// For 5ireChain testnet & mainnet
"5ireChain": vars.get("5IRE_CHAIN_API_KEY", ""),
"5ireChainTestnet": vars.get("5IRE_CHAIN_API_KEY", ""),
// For Oasis Sapphire testnet & mainnet
sapphire: vars.get("SAPPHIRE_API_KEY", ""),
sapphireTestnet: vars.get("SAPPHIRE_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1448,6 +1464,22 @@ const config: HardhatUserConfig = {
browserURL: "https://testnet.5irescan.io",
},
},
{
network: "sapphire",
chainId: 23294,
urls: {
apiURL: "https://explorer.oasis.io/mainnet/sapphire/api",
browserURL: "https://explorer.oasis.io/mainnet/sapphire",
},
},
{
network: "sapphireTestnet",
chainId: 23295,
urls: {
apiURL: "https://explorer.oasis.io/testnet/sapphire/api",
browserURL: "https://explorer.oasis.io/testnet/sapphire",
},
},
],
},
};
Expand Down
2 changes: 1 addition & 1 deletion interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "^3.4.12",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2",
"typescript-eslint": "^7.18.0"
}
Expand Down
2 changes: 1 addition & 1 deletion interface/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Home = () => {
id: 1,
href: "/deployments",
title: "Deployments",
subtitle: "Deployed on 80+ chains",
subtitle: "Deployed on 90+ chains",
},
{ id: 2, href: "/abi", title: "ABI", subtitle: "In any format" },
{
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@
"deploy:zetachainmain": "npx hardhat run --no-compile --network zetaChainMain scripts/deploy.ts",
"deploy:5irechaintestnet": "npx hardhat run --no-compile --network 5ireChainTestnet scripts/deploy.ts",
"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",
"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
30 changes: 15 additions & 15 deletions pnpm-lock.yaml

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

0 comments on commit 679ccc3

Please sign in to comment.