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

Temporarily disable Base Sepolia Andromeda tests due to deployment issue (to be reverted later) #185

Merged
merged 2 commits into from
Apr 8, 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
28 changes: 14 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,13 +593,13 @@ workflows:
jobs:
- lint

- fork-test:
name: base-sepolia-andromeda
toml: omnibus-base-sepolia-andromeda.toml
package: "synthetix-omnibus:latest"
preset: "andromeda"
chain-id: 84532
provider-url: https://base-sepolia.infura.io/v3/$INFURA_API_KEY
#- fork-test:
# name: base-sepolia-andromeda
# toml: omnibus-base-sepolia-andromeda.toml
# package: "synthetix-omnibus:latest"
# preset: "andromeda"
# chain-id: 84532
# provider-url: https://base-sepolia.infura.io/v3/$INFURA_API_KEY

- fork-test:
name: base-mainnet-andromeda
Expand Down Expand Up @@ -786,10 +786,10 @@ workflows:
chain-id: 8453
provider-url: https://base-mainnet.infura.io/v3/$INFURA_API_KEY

- preview:
name: preview-base-sepolia-andromeda
toml: omnibus-base-sepolia-andromeda.toml
package: "synthetix-omnibus:latest"
preset: "andromeda"
chain-id: 84532
provider-url: https://base-sepolia.infura.io/v3/$INFURA_API_KEY
#- preview:
# name: preview-base-sepolia-andromeda
# toml: omnibus-base-sepolia-andromeda.toml
# package: "synthetix-omnibus:latest"
# preset: "andromeda"
# chain-id: 84532
# provider-url: https://base-sepolia.infura.io/v3/$INFURA_API_KEY
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,16 @@ describe(require('path').basename(__filename, '.e2e.js'), function () {
);
});

it('should increase max collateral for the test to 10_000_000', async () => {
it('should increase max collateral for the test to 1_000_000_000_000', async () => {
await configureMaximumMarketCollateral({
marketId: require('../../deployments/extras.json').synth_usdc_market_id,
symbol: 'USDC',
targetAmount: String(10_000_000),
targetAmount: String(1_000_000_000_000),
});
await setSpotWrapper({
marketId: require('../../deployments/extras.json').synth_usdc_market_id,
symbol: 'USDC',
targetAmount: String(10_000_000),
targetAmount: String(1_000_000_000_000),
});
});

Expand Down
17 changes: 17 additions & 0 deletions e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_SNX.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const {
} = require('../../tasks/getTokenRewardsDistributorRewardsAmount');
const { getAvailableRewards } = require('../../tasks/getAvailableRewards');
const { claimRewards } = require('../../tasks/claimRewards');
const { setSpotWrapper } = require('../../tasks/setSpotWrapper');
const {
configureMaximumMarketCollateral,
} = require('../../tasks/configureMaximumMarketCollateral');

const {
contracts: {
Expand Down Expand Up @@ -156,6 +160,19 @@ describe(require('path').basename(__filename, '.e2e.js'), function () {
);
});

it('should increase max collateral for the test to 1_000_000_000_000', async () => {
await configureMaximumMarketCollateral({
marketId: require('../../deployments/extras.json').synth_usdc_market_id,
symbol: 'USDC',
targetAmount: String(1_000_000_000_000),
});
await setSpotWrapper({
marketId: require('../../deployments/extras.json').synth_usdc_market_id,
symbol: 'USDC',
targetAmount: String(1_000_000_000_000),
});
});

it(`should wrap 1_000 USDC`, async () => {
const balance = await wrapCollateral({ wallet, symbol: 'USDC', amount: 1_000 });
assert.equal(balance, 1_000);
Expand Down
17 changes: 17 additions & 0 deletions e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_USDC.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ const {
SynthUSDCToken: collateralType,
},
} = require('../../deployments/meta.json');
const { setSpotWrapper } = require('../../tasks/setSpotWrapper');
const {
configureMaximumMarketCollateral,
} = require('../../tasks/configureMaximumMarketCollateral');

describe(require('path').basename(__filename, '.e2e.js'), function () {
const accountId = parseInt(`1337${crypto.randomInt(1000)}`);
Expand Down Expand Up @@ -150,6 +154,19 @@ describe(require('path').basename(__filename, '.e2e.js'), function () {
);
});

it('should increase max collateral for the test to 1_000_000_000_000', async () => {
await configureMaximumMarketCollateral({
marketId: require('../../deployments/extras.json').synth_usdc_market_id,
symbol: 'USDC',
targetAmount: String(1_000_000_000_000),
});
await setSpotWrapper({
marketId: require('../../deployments/extras.json').synth_usdc_market_id,
symbol: 'USDC',
targetAmount: String(1_000_000_000_000),
});
});

it(`should wrap 1_000 USDC`, async () => {
const balance = await wrapCollateral({ wallet, symbol: 'USDC', amount: 1_000 });
assert.equal(balance, 1_000);
Expand Down