Skip to content

[TM-295] Add user-defined upgrades to morley

Kirill Kuvshinov requested to merge kkirka/tm295-user-upgrades into master

Description

Problem: upgradeableContracts.md mentions user-defined upgrades in the introduction and lists their benefits. However, the document features only an administrator-forced upgrades proposal. We need to describe user-defined upgrades as well and show how to implement them on Tezos.

Solution:

  1. Add a section about user-defined upgrades, make sure the approach is applicable to Athens.
  2. Provide example contracts for user-defined upgrades. Make them work in Athens using the lambda-based approach described in the doc. Provide tests to showcase the functionality and make sure it works.

Related issue(s)

https://issues.serokell.io/issue/TM-295

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Kirill Kuvshinov

Merge request reports