Skip to content

Commit

Permalink
Upgrade KintoAppRegistry to version V21, update deployment scripts, a…
Browse files Browse the repository at this point in the history
…nd modify test artifacts with new contract addresses.
  • Loading branch information
ylv-io committed Oct 31, 2024
1 parent c81fe5c commit 9b31522
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 45 deletions.
148 changes: 148 additions & 0 deletions broadcast/111-upgrade_app_registry.s.sol/7887/run-1730390196.json

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions broadcast/111-upgrade_app_registry.s.sol/7887/run-latest.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions script/migrations/111-upgrade_app_registry.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ contract DeployScript is MigrationHelper {
type(KintoAppRegistry).creationCode,
abi.encode(_getChainDeployment("KintoWalletFactory"), _getChainDeployment("SponsorPaymaster"))
);
address impl = _deployImplementationAndUpgrade("KintoAppRegistry", "V20", bytecode);
saveContractAddress("KintoAppRegistryV20", impl);
address impl = _deployImplementationAndUpgrade("KintoAppRegistry", "V21", bytecode);
saveContractAddress("KintoAppRegistryV21", impl);

KintoAppRegistry registry = KintoAppRegistry(_getChainDeployment("KintoAppRegistry"));

Expand Down
2 changes: 1 addition & 1 deletion src/apps/KintoAppRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ contract KintoAppRegistry is
}
}

contract KintoAppRegistryV20 is KintoAppRegistry {
contract KintoAppRegistryV21 is KintoAppRegistry {
constructor(IKintoWalletFactory _walletFactory, SponsorPaymaster _paymaster)
KintoAppRegistry(_walletFactory, _paymaster)
{}
Expand Down
1 change: 1 addition & 0 deletions test/artifacts/7887/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"KintoAppRegistryV18-impl": "0xa592FB45C110F1540D1f13D6563Bb8E1a429Ab4a",
"KintoAppRegistryV19-impl": "0xeC00432A044271A906427554906302e6408B5225",
"KintoAppRegistryV20": "0x226FCf8657ca310b375a7e23B87092cD1e3af92f",
"KintoAppRegistryV21": "0xb94240Ff4aB45811c550ee3c5Ea19bC692210A29",
"KintoAppRegistryV3-impl": "0xA82F30210F7dB1642bc20a5adCECbB16f766435B",
"KintoAppRegistryV5-impl": "0xe1F135742dE49A5A3337A59440b1B7a986F634ea",
"KintoAppRegistryV6-impl": "0x48D2b947B1aa3A23A890dd456a404394fb2F1636",
Expand Down

0 comments on commit 9b31522

Please sign in to comment.