Skip to content

TokenStaking upgrade scripts - #140

Closed
cygnusv wants to merge 12 commits into
mainfrom
advisory-fix-1
Closed

cygnusv wants to merge 12 commits into
mainfrom
advisory-fix-1

Conversation

@cygnusv

@cygnusv cygnusv commented May 12, 2023

Copy link
Copy Markdown
Contributor

This mainnet TokenStaking upgrade proposal is obsolete following the retirement of the contract and its proxy.

The two unique historical implementation records from this branch are preserved unchanged in #173, commit 487e5e7. Validation confirmed their creation transactions, constructor arguments, manifest version hashes, reproduced creation bytecode, normalized runtime bytecode, and compiled storage layouts. Their creation dates are May 11 and November 20, 2023; the original proposal separately reports a November 22 upgrade date.

Active Sepolia upgrade tooling continues in #176, consumer proxy deployment support in #186, and supported verification in #185 coordinated with #182. Retained deployment scripts and tests still use the OpenZeppelin upgrades dependency. This proposal's mainnet upgrade scripts and dedicated CI are retired; the branch remains available as a historical reference.


Original proposal:

  • Hardhat deploy scripts for:
    • Validating if a potential upgrade is storage-compatible with existing TokenStaking
    • Deploying the new implementation contract
  • These scripts were used to validate and deploy the last 2 upgrades to TokenStaking (on May 11th and Nov 22nd).
  • Adds a brief instructions guide to validate and deploy upgrades to TokenStaking. This process can be further automated, but this is left as future work for the moment.
  • Adds a CI job to validate that changes to TokenStaking are not incompatible.

@github-actions

Copy link
Copy Markdown

Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/6983216791 check.

@github-actions

Copy link
Copy Markdown

Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/7017206666 check.

@github-actions

Copy link
Copy Markdown

Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/7017401128 check.

@github-actions

Copy link
Copy Markdown

Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/7017438377 check.

@cygnusv
cygnusv marked this pull request as ready for review November 28, 2023 10:46
mswilkison added a commit that referenced this pull request Sep 8, 2026
Copy both historical implementation records unchanged from advisory-fix-1 at 6ec3ad0. Validate the creation transactions, constructor arguments, implementation version keys, compiled bytecode, and storage layouts before retiring the obsolete mainnet upgrade proposal.
@mswilkison mswilkison closed this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants