Skip to content

Commit

Permalink
Merge pull request #111 from Bananapus/feat/sphinx
Browse files Browse the repository at this point in the history
feat: add sphinx deployment
  • Loading branch information
xBA5ED authored Mar 19, 2024
2 parents 70a8614 + e60887d commit 62158c4
Show file tree
Hide file tree
Showing 50 changed files with 60,682 additions and 261 deletions.
15 changes: 3 additions & 12 deletions .example.env
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
ETHERSCAN_API_KEY=
OPTIMISTIC_ETHERSCAN_API_KEY=
POLYSCAN_API_KEY=
# https://www.sphinx.dev/
SPHINX_API_KEY=

# the deployer address, when using a ledger or a seed phrase
SENDER_ETHEREUM_MAINNET=
SENDER_ETHEREUM_SEPOLIA=
SENDER_OPTIMISM_MAINNET=
SENDER_OPTIMISM_SEPOLIA=
SENDER_POLYGON_MAINNET=
SENDER_POLYGON_MUMBAI=

# public rpc:
# public rpc (these defaults might have too low of a rate limit):
RPC_ETHEREUM_MAINNET="https://rpc.ankr.com/eth"
RPC_ETHEREUM_SEPOLIA="https://rpc.ankr.com/eth_sepolia"
RPC_OPTIMISM_MAINNET="https://rpc.ankr.com/optimism"
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/deploy_testnet.yml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# name: Sphinx Dry Run
# env:
# SPHINX_API_KEY: ${{ secrets.SPHINX_API_KEY }}
# RPC_ETHEREUM_MAINNET: "https://rpc.ankr.com/eth"
# RPC_ETHEREUM_SEPOLIA: "https://eth-sepolia.g.alchemy.com/v2/${{ secrets.ALCHEMY_API_KEY }}"
# RPC_OPTIMISM_MAINNET: "https://rpc.ankr.com/optimism"
# RPC_OPTIMISM_SEPOLIA: "https://opt-sepolia.g.alchemy.com/v2/${{ secrets.ALCHEMY_API_KEY }}"
# RPC_POLYGON_MAINNET: "https://rpc.ankr.com/polygon"
# RPC_POLYGON_MUMBAI: "https://polygon-mumbai.g.alchemy.com/v2/${{ secrets.ALCHEMY_API_KEY }}"

# # Trigger the dry run when a pull request is opened or updated.
# on: pull_request

# jobs:
# sphinx-dry-run:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - uses: actions/setup-node@v4
# with:
# node-version: latest
# - name: Install npm dependencies
# run: npm ci
# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly
# # - name: Install Sphinx Solidity Library
# # run: npx sphinx install
# - name: Dry Run
# run: npx sphinx propose script/Deploy.s.sol --dry-run --networks testnets
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/sphinx"]
path = lib/sphinx
url = https://github.com/sphinx-labs/sphinx
410 changes: 410 additions & 0 deletions deployments/compiler-inputs/b2112d617c776ac2cceb92d11c578094.json

Large diffs are not rendered by default.

Loading

0 comments on commit 62158c4

Please sign in to comment.