Skip to content

Commit

Permalink
Upgrade SponsorPaymaster to V15, update deployment scripts and addres…
Browse files Browse the repository at this point in the history
…ses, and replace contract addresses in transaction logs and test artifacts for chain 7887.
  • Loading branch information
ylv-io committed Dec 5, 2024
1 parent c220c7b commit 921eab0
Show file tree
Hide file tree
Showing 5 changed files with 215 additions and 51 deletions.
163 changes: 163 additions & 0 deletions broadcast/134-upgrade-paymaster.s.sol/7887/run-1733360951.json

Large diffs are not rendered by default.

92 changes: 46 additions & 46 deletions broadcast/134-upgrade-paymaster.s.sol/7887/run-latest.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions script/migrations/134-upgrade-paymaster.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ contract Script is MigrationHelper {
type(SponsorPaymaster).creationCode,
abi.encode(_getChainDeployment("EntryPoint"), _getChainDeployment("KintoWalletFactory"))
);
address impl = _deployImplementationAndUpgrade("SponsorPaymaster", "V14", bytecode);
saveContractAddress("SponsorPaymasterV14-impl", impl);
address impl = _deployImplementationAndUpgrade("SponsorPaymaster", "V15", bytecode);
saveContractAddress("SponsorPaymasterV15-impl", impl);

ISponsorPaymaster paymaster = ISponsorPaymaster(_getChainDeployment("SponsorPaymaster"));

Expand Down
2 changes: 1 addition & 1 deletion src/paymasters/SponsorPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,6 @@ contract SponsorPaymaster is Initializable, BasePaymaster, UUPSUpgradeable, Reen
}
}

contract SponsorPaymasterV14 is SponsorPaymaster {
contract SponsorPaymasterV15 is SponsorPaymaster {
constructor(IEntryPoint entryPoint, IKintoWalletFactory factory) SponsorPaymaster(entryPoint, factory) {}
}
5 changes: 3 additions & 2 deletions test/artifacts/7887/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,6 @@
"cbBTC": "0xCBb7c0F98bb7312b821e78AB76312Cd3950fBFca",
"AAVE-impl": "0x87a0D1c12f83ce5aB21C88f7459891586C32B875",
"AAVE": "0xaa0e00F095Eb986CB65FD3FA328782c7Fe4ceFD9",
"KintoAppRegistryV22": "0xb9cE6BC89b79c713f34fd15D82a70900fEFD0de1"
}
"KintoAppRegistryV22": "0xb9cE6BC89b79c713f34fd15D82a70900fEFD0de1",
"SponsorPaymasterV15-impl": "0x2A10b80bE8Ee546C52Fde9b58d65D089C6B929BB"
}

0 comments on commit 921eab0

Please sign in to comment.