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 for building andromeda testnet on local #99

Closed
wants to merge 4 commits into from
Closed
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
4 changes: 2 additions & 2 deletions tomls/omnibus-base-goerli-andromeda/perps/feeCollector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ args = ["<%= imports.buyback_snx.contracts.buyback_snx.address %>"]
target = ["system.oracle_manager.Proxy"]
func = "registerNode"
args = [
5, # 5 = pyth aggregator type
"<%= defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pythSnxFeedId, false]) %>",
"<%= chainId == 13370 ? 8 : 5 %>", # 5 = pyth aggregator type, 8 = constant node
"<%= chainId == 13370 ? defaultAbiCoder.encode(['uint256'], [parseEther('1')]) : defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pythSnxFeedId, false]) %>",
[
],
]
Expand Down
3 changes: 2 additions & 1 deletion tomls/omnibus-base-goerli-andromeda/spot/usdc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ minDelegationD18 = "<%= parseEther('100') %>"
depositingEnabled = false

[provision.usdc_mock_collateral]
source = "mintable-token:1.3"
source = "mintable-token:1.7"
options.name = "Fake USD Coin"
options.symbol = "fUSDC"
options.owner = "<%= settings.owner %>"
options.decimals = "6"
6 changes: 3 additions & 3 deletions tomls/oracles/perps-keeper-cost.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ options.salt = "<%= settings.salt %>"
target = ["system.oracle_manager.Proxy"]
func = "registerNode"
args = [
# 2 = external node
2,
# 2 = external node, 8 = constant node
"<%= chainId == 13370 ? 8 : 2 %>",
# 7 parameters: 1 is the external node contract address, 2 to 7 gas units
"<%= defaultAbiCoder.encode(['address', 'uint256', 'uint256', 'uint256', 'uint256', 'uint256', 'uint256'], [imports.perps_gas_oracle_node.contracts.OpGasPriceOracle.address, settings.perps_keeper_l1_cost_settle_gas_units, settings.perps_keeper_l2_cost_settle_gas_units, settings.perps_keeper_l1_cost_flag_gas_units, settings.perps_keeper_l2_cost_flag_gas_units, settings.perps_keeper_l1_cost_liquidate_gas_units, settings.perps_keeper_l2_cost_liquidate_gas_units]) %>",
"<%= chainId == 13370 ? defaultAbiCoder.encode(['uint256'], [parseEther('0.001')]) : defaultAbiCoder.encode(['address', 'uint256', 'uint256', 'uint256', 'uint256', 'uint256', 'uint256'], [imports.perps_gas_oracle_node.contracts.OpGasPriceOracle.address, settings.perps_keeper_l1_cost_settle_gas_units, settings.perps_keeper_l2_cost_settle_gas_units, settings.perps_keeper_l1_cost_flag_gas_units, settings.perps_keeper_l2_cost_flag_gas_units, settings.perps_keeper_l1_cost_liquidate_gas_units, settings.perps_keeper_l2_cost_liquidate_gas_units]) %>",
[
],
]
Expand Down
4 changes: 2 additions & 2 deletions tomls/oracles/pyth-btc.toml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to swap the staleness circuit breaker node?

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ include = ["../core.toml"]
target = ["system.oracle_manager.Proxy"]
func = "registerNode"
args = [
5, # 5 = pyth aggregator type
"<%= defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pythBtcFeedId, false]) %>",
"<%= chainId == 13370 ? 8 : 5 %>", # 5 = pyth aggregator type, 8 = constant node
"<%= chainId == 13370 ? defaultAbiCoder.encode(['uint256'], [parseEther('1')]) : defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pythBtcFeedId, false]) %>",
[
],
]
Expand Down
4 changes: 2 additions & 2 deletions tomls/oracles/pyth-eth.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ include = ["../core.toml"]
target = ["system.oracle_manager.Proxy"]
func = "registerNode"
args = [
5, # 5 = pyth aggregator type
"<%= defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pythEthFeedId, false]) %>",
"<%= chainId == 13370 ? 8 : 5 %>", # 5 = pyth aggregator type, 8 = constant node
"<%= chainId == 13370 ? defaultAbiCoder.encode(['uint256'], [parseEther('1')]) : defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pythEthFeedId, false]) %>",
[
],
]
Expand Down
4 changes: 2 additions & 2 deletions tomls/oracles/pyth-snx.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ include = ["../core.toml"]
target = ["system.oracle_manager.Proxy"]
func = "registerNode"
args = [
5, # 5 = pyth aggregator type
"<%= defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pythSnxFeedId, false]) %>",
"<%= chainId == 13370 ? 8 : 5 %>", # 5 = pyth aggregator type, 8 = constant node
"<%= chainId == 13370 ? defaultAbiCoder.encode(['uint256'], [parseEther('1')]) : defaultAbiCoder.encode(['address', 'bytes32', 'bool'], [settings.pyth_price_verification_address, settings.pythSnxFeedId, false]) %>",
[
],
]
Expand Down