Skip to content

Commit

Permalink
Merge pull request #1695 from skalenetwork/beta
Browse files Browse the repository at this point in the history
Merge beta to develop
  • Loading branch information
DimaStebaev authored Mar 27, 2024
2 parents fae872b + afb3e06 commit eeb0e0e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion proxy/DEPLOYED
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0-stable.1
2.1.0-stable.0
2 changes: 1 addition & 1 deletion proxy/migrations/upgradeMainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function getImaMainnetAbiAndAddress(): Promise<SkaleABIFile> {

async function main() {
const upgrader = new ImaMainnetUpgrader(
"1.5.0",
"2.1.0",
await getImaMainnetAbiAndAddress(),
contracts
);
Expand Down
2 changes: 1 addition & 1 deletion proxy/migrations/upgradeSchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function main() {
const pathToManifest: string = process.env.MANIFEST || "";
await manifestSetup(pathToManifest);
const upgrader = new ImaSchainUpgrader(
"1.5.0",
"2.1.0",
await getImaSchainAbiAndAddress(),
contracts
);
Expand Down
21 changes: 17 additions & 4 deletions proxy/scripts/test_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ git clone --branch "$DEPLOYED_TAG" "https://github.com/$GITHUB_REPOSITORY.git" "
ACCOUNTS_FILENAME="$DEPLOYED_DIR/proxy/generatedAccounts.json"
GANACHE=$(npx ganache \
--😈 \
--miner.blockGasLimit 9000000 \
--miner.blockGasLimit 12000000 \
--logging.quiet \
--chain.allowUnlimitedContractSize \
--wallet.accountKeysPath "$ACCOUNTS_FILENAME" \
Expand All @@ -35,9 +35,20 @@ yarn install
cd proxy
PRIVATE_KEY_FOR_ETHEREUM=$(cat "$ACCOUNTS_FILENAME" | jq -r '.private_keys | to_entries | .[8].value')
PRIVATE_KEY_FOR_SCHAIN=$(cat "$ACCOUNTS_FILENAME" | jq -r '.private_keys | to_entries | .[9].value')
CHAIN_NAME_SCHAIN="Test" VERSION="$DEPLOYED_VERSION" PRIVATE_KEY_FOR_ETHEREUM="$PRIVATE_KEY_FOR_ETHEREUM" PRIVATE_KEY_FOR_SCHAIN="$PRIVATE_KEY_FOR_SCHAIN" npx hardhat run migrations/deploySkaleManagerComponents.ts --network localhost
URL_W3_S_CHAIN="http://127.0.0.1:8545"

CHAIN_NAME_SCHAIN="Test" \
VERSION="$DEPLOYED_VERSION" \
PRIVATE_KEY_FOR_ETHEREUM="$PRIVATE_KEY_FOR_ETHEREUM" \
PRIVATE_KEY_FOR_SCHAIN="$PRIVATE_KEY_FOR_SCHAIN" \
npx hardhat run migrations/deploySkaleManagerComponents.ts --network localhost
VERSION="$DEPLOYED_VERSION" npx hardhat run migrations/deployMainnet.ts --network localhost
CHAIN_NAME_SCHAIN="Test" VERSION="$DEPLOYED_VERSION" npx hardhat run migrations/deploySchain.ts --network localhost

CHAIN_NAME_SCHAIN="Test" \
VERSION="$DEPLOYED_VERSION" \
URL_W3_S_CHAIN="$URL_W3_S_CHAIN" \
PRIVATE_KEY_FOR_SCHAIN="$PRIVATE_KEY_FOR_SCHAIN" \
npx hardhat run migrations/deploySchain.ts --network schain

ABI_FILENAME_SCHAIN="proxySchain_Test.json"
ABI="data/$ABI_FILENAME_SCHAIN" \
Expand Down Expand Up @@ -70,6 +81,8 @@ MANIFEST="data/ima-schain-$DEPLOYED_VERSION-manifest.json" \
CHAIN_NAME_SCHAIN="Test" \
ALLOW_NOT_ATOMIC_UPGRADE="OK" \
VERSION=$VERSION_TAG \
npx hardhat run migrations/upgradeSchain.ts --network localhost
URL_W3_S_CHAIN="$URL_W3_S_CHAIN" \
PRIVATE_KEY_FOR_SCHAIN="$PRIVATE_KEY_FOR_SCHAIN" \
npx hardhat run migrations/upgradeSchain.ts --network schain

npx ganache instances stop "$GANACHE"

0 comments on commit eeb0e0e

Please sign in to comment.