Skip to content

Commit

Permalink
➕ Add Fraxtal Main Network Deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed May 22, 2024
1 parent 3e1c050 commit ac9b715
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 49 deletions.
4 changes: 1 addition & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ Please:
- [ ] Because this PR includes a **new feature**, the change was previously discussed in an [issue](https://github.com/pcaversaccio/createx/issues) or in the [discussions](https://github.com/pcaversaccio/createx/discussions) section.
- [x] I didn't do anything of this.

---
### 🕓 Changelog

<!-- Add a description of your PR here -->

---

#### 🐶 Cute Animal Picture

![Put a link to a cute animal picture inside the parenthesis-->]()
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 👮‍♂️ Sanity checks
on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{github.workflow}}-${{github.ref}}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 🔍️ CodeQL
on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{github.workflow}}-${{github.ref}}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
category: "/language:${{ matrix.language }}"
4 changes: 2 additions & 2 deletions .github/workflows/test-createx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 🕵️‍♂️ Test CreateX
on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{github.workflow}}-${{github.ref}}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand All @@ -19,7 +19,7 @@ jobs:
node_version:
- 20
go_version:
- 1.22.0
- 1.22

steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2204,6 +2204,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Manta Pacific](https://pacific-explorer.manta.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Blast](https://blastscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [DOS Chain](https://doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Fraxtal](https://fraxscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Endurance](https://explorer-endurance.fusionist.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Kava](https://kavascan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Metis Andromeda](https://andromeda-explorer.metis.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
Expand Down
8 changes: 8 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,14 @@
"https://doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Fraxtal",
"chainId": 252,
"urls": [
"https://fraxscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"https://repo.sourcify.dev/contracts/partial_match/252/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed/"
]
},
{
"name": "Endurance",
"chainId": 648,
Expand Down
16 changes: 15 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ const config: HardhatUserConfig = {
url: vars.get("FRAXTAL_TESTNET_URL", "https://rpc.testnet.frax.com"),
accounts,
},
fraxtalMain: {
chainId: 252,
url: vars.get("FRAXTAL_MAINNET_URL", "https://rpc.frax.com"),
accounts,
},
kavaMain: {
chainId: 2222,
url: vars.get("KAVA_MAINNET_URL", "https://evm.kava-rpc.com"),
Expand Down Expand Up @@ -679,7 +684,8 @@ const config: HardhatUserConfig = {
// For DOS Chain testnet & mainnet
dos: vars.get("DOS_API_KEY", ""),
dosTestnet: vars.get("DOS_API_KEY", ""),
// For Fraxtal testnet
// For Fraxtal testnet & mainnet
fraxtal: vars.get("FRAXTAL_API_KEY", ""),
fraxtalTestnet: vars.get("FRAXTAL_API_KEY", ""),
// For Kava mainnet
kava: vars.get("KAVA_API_KEY", ""),
Expand Down Expand Up @@ -1083,6 +1089,14 @@ const config: HardhatUserConfig = {
browserURL: "https://test.doscan.io",
},
},
{
network: "fraxtal",
chainId: 252,
urls: {
apiURL: "https://api.fraxscan.com/api",
browserURL: "https://fraxscan.com",
},
},
{
network: "fraxtalTestnet",
chainId: 2522,
Expand Down
2 changes: 1 addition & 1 deletion lib/solady
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"deploy:dostestnet": "npx hardhat run --no-compile --network dosTestnet scripts/deploy.ts",
"deploy:dosmain": "npx hardhat run --no-compile --network dosMain scripts/deploy.ts",
"deploy:fraxtaltestnet": "npx hardhat run --no-compile --network fraxtalTestnet scripts/deploy.ts",
"deploy:fraxtalmain": "npx hardhat run --no-compile --network fraxtalMain scripts/deploy.ts",
"deploy:kavamain": "npx hardhat run --no-compile --network kavaMain scripts/deploy.ts",
"deploy:metistestnet": "npx hardhat run --no-compile --network metisTestnet scripts/deploy.ts",
"deploy:metismain": "npx hardhat run --no-compile --network metisMain scripts/deploy.ts",
Expand Down
Loading

0 comments on commit ac9b715

Please sign in to comment.