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 Oasis Sapphire Test and Main Network Deployments #135

Merged
merged 2 commits into from
Sep 23, 2024
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
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.

Loading