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

Add proxy v5 support #163

Merged
merged 3 commits into from
Sep 12, 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
4 changes: 2 additions & 2 deletions migrations/upgrade.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {AutoSubmitter, Upgrader} from "@skalenetwork/upgrade-tools";
import {Instance, skaleContracts} from "@skalenetwork/skale-contracts-ethers-v6";
import {Submitter, Upgrader} from "@skalenetwork/upgrade-tools";
import {Paymaster} from "../typechain-types";
import {Transaction} from "ethers";
import chalk from "chalk";
Expand Down Expand Up @@ -35,7 +35,7 @@ interface UpgradeContext {
class PaymasterUpgrader extends Upgrader {
constructor(
context: UpgradeContext,
submitter = new AutoSubmitter()
submitter?: Submitter
) {
super(
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@quant-finance/solidity-datetime": "^2.2.0",
"@skalenetwork/paymaster-interfaces": "main",
"@skalenetwork/skale-contracts-ethers-v6": "^1.0.2-develop.0",
"@skalenetwork/upgrade-tools": "3.0.0-develop.13",
"@skalenetwork/upgrade-tools": "3.0.0-develop.21",
"chalk": "^4",
"dotenv": "^16.4.5"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ echo "Deploy previous version"
DEPLOY_OUTPUT_FILE="$GITHUB_WORKSPACE/data/deploy.txt"
VERSION=$DEPLOYED_VERSION yarn exec hardhat run migrations/deploy.ts --network localhost > $DEPLOY_OUTPUT_FILE
rm $GITHUB_WORKSPACE/.openzeppelin/unknown-*.json || true
cp .openzeppelin/unknown-*.json $GITHUB_WORKSPACE/.openzeppelin
cp .openzeppelin/unknown-*.json "$GITHUB_WORKSPACE/.openzeppelin/"
PAYMASTER_ADDRESS=$(cat $DEPLOY_OUTPUT_FILE | grep "Paymaster address" | awk '{print $NF}')

cd $GITHUB_WORKSPACE
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1904,9 +1904,9 @@ __metadata:
languageName: node
linkType: hard

"@skalenetwork/upgrade-tools@npm:3.0.0-develop.13":
version: 3.0.0-develop.13
resolution: "@skalenetwork/upgrade-tools@npm:3.0.0-develop.13"
"@skalenetwork/upgrade-tools@npm:3.0.0-develop.21":
version: 3.0.0-develop.21
resolution: "@skalenetwork/upgrade-tools@npm:3.0.0-develop.21"
dependencies:
"@safe-global/api-kit": ^2.4.1
"@safe-global/protocol-kit": ^4.0.1
Expand All @@ -1923,7 +1923,7 @@ __metadata:
"@types/mocha": ^9.1.0
ethers: ^6.7.1
hardhat: ^2.9.9
checksum: a9fc5a674ad69975bbaedd6f4116b5e05e8ba9250f0b6d4283921461abc3949a82900371ac6ca495d06288cb6e734df4a8e938a07ab19da45d2342f0bba2b128
checksum: a50d0ff7acfb9c7e940ee59217733dfad3721a6aeabd2b6427a4cda8a46f3c79ef389227690e156b62d59ede84205cb7f040e04d1b1de85013f05da12037b616
languageName: node
linkType: hard

Expand Down Expand Up @@ -7064,7 +7064,7 @@ __metadata:
"@quant-finance/solidity-datetime": ^2.2.0
"@skalenetwork/paymaster-interfaces": main
"@skalenetwork/skale-contracts-ethers-v6": ^1.0.2-develop.0
"@skalenetwork/upgrade-tools": 3.0.0-develop.13
"@skalenetwork/upgrade-tools": 3.0.0-develop.21
"@typechain/ethers-v6": ^0.5.1
"@typechain/hardhat": ^9.1.0
"@types/chai": ^4.3.11
Expand Down
Loading