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

Support Sphinx #1

Merged
merged 35 commits into from
Apr 9, 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
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export SPHINX_API_KEY=""
export PRIVATE_KEY=
export ALCHEMY_API_KEY=
export INFURA_KEY=
export ETHERSCAN_API_KEY=
export ETHERSCAN_ARBITRUM_KEY=
export ETHERSCAN_DARWINIA_KEY=

export IS_TEST="true"
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,3 @@ jobs:
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
/cache
/artifacts
/broadcast
/deployments/*/*/execution
/node_modules
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/sphinx"]
path = lib/sphinx
url = https://github.com/sphinx-labs/sphinx
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@

-include .env



all :; @forge build
fmt :; @forge fmt
clean :; @forge clean
deploy :; @SPHINX_API_KEY=$(SPHINX_API_KEY) npx sphinx deploy ./script/Deploy.s.sol --network $(chain) --confirm --verify
config :; @SPHINX_API_KEY=$(SPHINX_API_KEY) npx sphinx deploy ./script/Deploy.s.sol --network $(chain) --confirm --sig "config()"
connect:; @SPHINX_API_KEY=$(SPHINX_API_KEY) npx sphinx deploy ./script/Connect.s.sol --network $(chain) --confirm

sync :; @git submodule update --recursive
propose-deploy-test :; @SPHINX_API_KEY=$(SPHINX_API_KEY) npx sphinx propose ./script/Deploy.s.sol --networks testnets
propose-deploy-prod :; @SPHINX_API_KEY=$(SPHINX_API_KEY) npx sphinx propose ./script/Deploy.s.sol --networks mainnets
propose-connect-test :; @SPHINX_API_KEY=$(SPHINX_API_KEY) npx sphinx propose ./script/Connect.s.sol --networks testnets

sphinx :; @yarn sphinx install
sync :; @git submodule update --recursive
tools : foundry
foundry:; curl -L https://foundry.paradigm.xyz | bash
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# <h1 align="center"> Msgport Deploy </h1>

## V2 Deployments
### Canonical Cross-chain Deployment Addresses
| Contract | Canonical Cross-chain Deployment Address |
|------------------------|--------------------------------------------|
| SubAPIMultiSig | 0x1d3D009788BaDc05B8B81C7af51Dd7F7084435b0 |
| ORMP | 0x42165Ce95b51D1B845C190C96fB30c4FeF6Abce4 |
| Oracle | 0xf64a5353Cf2Da7EE514F53Ee949c43E1BC4f494e |
| Relayer | 0x305cdd9C20adC44BdD722B6A37F49Cb439623E49 |
| ORMPUpgradeablePort | 0xE21d9cf3E8EDb84ca74D6F24a754eE4474306319 |
| MsgDeployer | 0x701609866556Cb9A1FBD6B40201cD5899c9D2d56 |

## Supported Chains
### Mainnet
TODO

### Testnet
- Arbitrum Sepolia
- Sepolia
- Darwinia Pangolin
- Taiko Katla
Loading
Loading