Skip to content

Commit

Permalink
feat(contracts): packaged updated PublicLock v15 (#15245)
Browse files Browse the repository at this point in the history
* use new purchase internally

* process payment helper

* common receipt event

* remove use of structs for renewals

* remove duplicate code

* storage gap

* make sure we pass the stored price when renewing

* cleanup comment

* add test to ctach storage layout failure

* update v15 in contracts package

* update evm version to shanghai

* refactor upgrade protocol task

* improve task

* fix deploy task

* delete base sepolia oz manifest

* bump

* update unlock too
  • Loading branch information
clemsos authored Dec 5, 2024
1 parent ae99fb8 commit a73fadf
Show file tree
Hide file tree
Showing 10 changed files with 186 additions and 627 deletions.
337 changes: 0 additions & 337 deletions governance/.openzeppelin/unknown-84532.json

This file was deleted.

8 changes: 5 additions & 3 deletions governance/scripts/upgrade/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ async function main({ proxyAddress, contractName, contractVersion }) {
throw Error('Need a version number')
}

console.log(`Setting up version ${contractVersion} from package`)
console.log(
`Setting up ${contractName} version ${contractVersion} from package`
)
const [qualifiedPath] = await copyAndBuildContractsAtVersion(__dirname, [
{
contractName,
Expand All @@ -33,12 +35,12 @@ async function main({ proxyAddress, contractName, contractVersion }) {
await copyAndBuildContractsAtVersion(__dirname, [
{
contractName,
version: contractVersion - 1,
version: contractVersion - 1n,
},
])
const PreviousContract = await ethers.getContractFactory(
`contracts/past-versions/${contractName}V${
contractVersion - 1
contractVersion - 1n
}.sol:${contractName}`
)

Expand Down
Loading

0 comments on commit a73fadf

Please sign in to comment.