You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migrating_V1_to_V2.md
+16-12Lines changed: 16 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
-
v1) to the new version presents complexities.
1
+
# Migrating from Contract v1 to v2
2
+
3
+
In the evolution of our smart contract environment, we embark on deploying a more stable and robust version 2 (v2). However, the path to directly transfer user balances from the original contract (v1) to the new version presents complexities.
2
4
3
5
This document outlines a plan to migrate funds safely from v1 to v2, ensuring the v1 token frontend's address remains operational as a legacy interface.
4
6
@@ -8,7 +10,7 @@ Our aim is to facilitate a seamless transition, maintaining continuity for our u
8
10
To proceed with the migration process, ensure the following prerequisites are met:
9
11
10
12
-[ ] The SmartController is upgraded to version **1.2.2**, incorporating the `pausable` feature.
11
-
-[ ] Possession of the `TokenFrontend`address.
13
+
-[ ] Possession of the `TokenFrontend`address.
12
14
-[ ] Access to the **version 2 (v2) foundry repository**, including all dependencies.
13
15
14
16
## Versions
@@ -23,10 +25,12 @@ To proceed with the migration process, ensure the following prerequisites are me
23
25
24
26
## Architectural Overview
25
27
*Legacy V1 architecture VS the new V2 architecture*
3. Your V2 `Proxy` and `Implementation` contracts are now deployed and verified on the blockchain explorer.
67
+
68
+
Your V2 `Proxy` and `Implementation` contracts are now deployed and verified on the blockchain explorer.
64
69
65
70
### 2. Configuring the `V2` contract.
66
71
67
-
Provide `admin` and `system` roles to the `wallet` used for the migration (the same one used for deployment). These roles are crucial early in the fund migration process for adding`MintAllowance`.
72
+
Provide `admin` and `system` roles to the `wallet` used for the migration (the same one used for deployment). These roles are crucial early in the fund migration process to set`MintAllowance`.
68
73
69
74
1. Set the following environment variables in your terminal:
70
75
```sh
@@ -77,7 +82,8 @@ Provide `admin` and `system` roles to the `wallet` used for the migration (the s
0 commit comments