Skip to content

Commit

Permalink
Base goerli (#37)
Browse files Browse the repository at this point in the history
* Update new available base goerli settings

* Support optional providerUrl matrix param

* Deploy spot market for ETH on Base Goerli

* Fix action matrix config

* Add links to external docs
  • Loading branch information
noisekit authored Sep 7, 2023
1 parent b0c4045 commit 2e91f66
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 18 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/simulate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
network: [mainnet, optimism-mainnet, goerli, optimism-goerli]
manifest: [omnibus.toml]
network: [mainnet, optimism-mainnet, goerli, optimism-goerli, base-goerli]
include:
- network: mainnet
chainId: 1
Expand All @@ -26,8 +25,9 @@ jobs:
chainId: 5
- network: optimism-goerli
chainId: 420
#- network: base-goerli
# chainId: 84531
- network: base-goerli
chainId: 84531
providerUrl: "https://base-goerli.public.blastapi.io"
steps:
- name: Install Foundry (Cannon)
uses: foundry-rs/foundry-toolchain@v1
Expand All @@ -38,11 +38,14 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm i -g @usecannon/cli
- run: npx @usecannon/cli plugin add cannon-plugin-router
- run: |
npm i -g @usecannon/cli
- run: |
npx @usecannon/cli plugin add cannon-plugin-router
- run: |
if [ -z "${{ matrix.providerUrl }}" ]; then
export CANNON_PROVIDER_URL="https://${{ matrix.network }}.infura.io/v3/$INFURA_API_KEY"
else
export CANNON_PROVIDER_URL="${{ matrix.providerUrl }}"
fi
npx @usecannon/cli build \
omnibus-${{ matrix.network }}.toml \
--upgrade-from synthetix-omnibus:latest \
Expand Down
58 changes: 51 additions & 7 deletions omnibus-base-goerli.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ include = [
"tomls/collaterals/weth.toml",
"tomls/pools/spartan-council.toml",
"tomls/pools/passive-snx.toml",
"tomls/markets/spot/eth.toml",
"tomls/permit-all-createPool.toml",
"tomls/permit-all-registerMarket.toml",
"tomls/permit-all-transferCrossChain.toml",
Expand All @@ -29,12 +30,6 @@ defaultValue = "0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9"
[setting.weth_address]
defaultValue = "0x4200000000000000000000000000000000000006"

[setting.weth_aggregator_address]
defaultValue = "0xcD2A119bD1F7DF95d706DE6F2057fDD45A0503E2"

#[setting.snx_liquidation_reward]
#defaultValue = "10000000000000000000"

[setting.eth_aggregator_address]
defaultValue = "0xcD2A119bD1F7DF95d706DE6F2057fDD45A0503E2"

Expand All @@ -54,7 +49,56 @@ defaultValue = "1"
defaultValue = "0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9"

[setting.ccip_router]
defaultValue = "0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9"
# https://docs.chain.link/ccip/supported-networks#base-goerli
defaultValue = "0xa8c0c11bf64af62cdca6f93d3769b88bdd7cb93d"

[setting.ccip_token_pool]
# TODO: There is no CCIP token pool available yet, using temporary address
defaultValue = "0x48914229deDd5A9922f44441ffCCfC2Cb7856Ee9"

# ETH Synth Configuration
[setting.synthEthAsyncFixedFee]
defaultValue = "0.001"

[setting.synthEthMaxMarketCollateral]
defaultValue = "100"

[setting.synthEthSkewScale]
defaultValue = "100000"

[setting.synthEthWrapFee]
defaultValue = "0.0001"

[setting.synthEthUnwrapFee]
defaultValue = "0.0001"

[setting.ethSettlementWindowDuration]
defaultValue = "60"

[setting.ethSettlementDelay]
defaultValue = "15"

# Pyth settlement strategy config
[setting.pythFeedUrl]
defaultValue = "https://api.synthetix.io/pyth-mainnet/api/get_vaa_ccip?data={data}"

[setting.pythEthFeedId]
# https://pyth.network/developers/price-feed-ids#pyth-evm-testnet
defaultValue = "0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6"

[setting.pythPriceVerificationAddress]
# https://docs.pyth.network/documentation/pythnet-price-feeds/evm
defaultValue = "0x5955C1478F0dAD753C7E2B4dD1b4bC530C64749f"

[invoke.setScPoolConfig]
target = ["system.CoreProxy"]
fromCall.func = "getPoolOwner"
fromCall.args = ["<%= settings.sc_pool_id %>"]
func = "setPoolConfiguration"
args = [
"<%= settings.sc_pool_id %>",
[
{ marketId = "<%= extras.synth_eth_market_id %>", weightD18 = 1, maxDebtShareValueD18 = "<%= parseEther('1') %>" }
],
]
depends=["invoke.createScPool", "invoke.createEthSynth"]
7 changes: 4 additions & 3 deletions tomls/settings-testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ include = [
target = ["system.CoreProxy"]
fromCall.func = "owner"
func = "setSupportedCrossChainNetworks"
# https://docs.chain.link/ccip/supported-networks
args = [
["11155111", "420", "421613", "80001"],
["16015286601757825753", "2664363617261496610", "6101244977088475029", "12532609583862916517"]
["11155111", "420", "421613", "80001", "84531"],
["16015286601757825753", "2664363617261496610", "6101244977088475029", "12532609583862916517", "5790810961207155433"]
]
depends = ["provision.system"]
depends = ["provision.system"]

0 comments on commit 2e91f66

Please sign in to comment.