Skip to content

Commit 65f0458

Browse files
committed
added add-risk-admin to v1 data
1 parent e9a60a4 commit 65f0458

File tree

14 files changed

+146
-54
lines changed

14 files changed

+146
-54
lines changed

.github/workflows/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
CARGO_TERM_COLOR: always
1111
GITHUB_ACTIONS: true
1212
APTOS_NETWORK: local
13-
MOVE_VERSION: 2.1
13+
MOVE_VERSION: 2.2
1414
COMPILER_VERSION: 2.0
1515
ARTIFACTS_LEVEL: all
1616
DEFAULT_FUND_AMOUNT: 40000000

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
CARGO_TERM_COLOR: always
1414
GITHUB_ACTIONS: true
15-
MOVE_VERSION: 2.1
15+
MOVE_VERSION: 2.2
1616
COMPILER_VERSION: 2.0
1717
ARTIFACTS_LEVEL: all
1818

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
CI: true
1313
GITHUB_ACTIONS: true
1414
APTOS_NETWORK: local
15-
MOVE_VERSION: 2.1
15+
MOVE_VERSION: 2.2
1616
COMPILER_VERSION: 2.0
1717
ARTIFACTS_LEVEL: all
1818
AAVE_LARGE_PACKAGES_PRIVATE_KEY: ${{ secrets.GH_AAVE_LARGE_PACKAGES_PRIVATE_KEY }} # temp hack: remove after large packages is no longer needed

.github/workflows/move-audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ env:
99
CARGO_TERM_COLOR: always
1010
GITHUB_ACTIONS: true
1111
APTOS_NETWORK: local
12-
MOVE_VERSION: 2
13-
COMPILER_VERSION: 2
12+
MOVE_VERSION: 2.2
13+
COMPILER_VERSION: 2.0
1414
ARTIFACTS_LEVEL: all
1515
DEFAULT_FUND_AMOUNT: 40000000
1616
DEFAULT_FUNDER_PRIVATE_KEY: ${{ secrets.GH_DEFAULT_FUNDER_PRIVATE_KEY }}

.github/workflows/move-v2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ env:
99
CARGO_TERM_COLOR: always
1010
GITHUB_ACTIONS: true
1111
APTOS_NETWORK: local
12-
MOVE_VERSION: 2
13-
COMPILER_VERSION: 2
12+
MOVE_VERSION: 2.2
13+
COMPILER_VERSION: 2.0
1414
ARTIFACTS_LEVEL: all
1515
DEFAULT_FUND_AMOUNT: 40000000
1616
DEFAULT_FUNDER_PRIVATE_KEY: ${{ secrets.GH_DEFAULT_FUNDER_PRIVATE_KEY }}

.github/workflows/testnet-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# common settings
3030
CARGO_TERM_COLOR: always
3131
GITHUB_ACTIONS: true
32-
MOVE_VERSION: 2.1
32+
MOVE_VERSION: 2.2
3333
COMPILER_VERSION: 2.0
3434
ARTIFACTS_LEVEL: all
3535
DEFAULT_FUND_AMOUNT: 100000000

.github/workflows/typescript-integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
CARGO_TERM_COLOR: always
1111
GITHUB_ACTIONS: true
1212
APTOS_NETWORK: local
13-
MOVE_VERSION: 2.1
13+
MOVE_VERSION: 2.2
1414
COMPILER_VERSION: 2.0
1515
ARTIFACTS_LEVEL: all
1616
DEFAULT_FUND_AMOUNT: 100000000

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
CARGO_TERM_COLOR: always
1111
GITHUB_ACTIONS: true
1212
APTOS_NETWORK: local
13-
MOVE_VERSION: 2.1
13+
MOVE_VERSION: 2.2
1414
COMPILER_VERSION: 2.0
1515
ARTIFACTS_LEVEL: all
1616
DEFAULT_FUND_AMOUNT: 40000000

Deployment.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ be triggered by a second transaction that executes the approved proposal.
5353
./deploy.py testnet --deployer "<deployer_profile_name>" setup-configure-reserves
5454
./deploy.py testnet --deployer "<deployer_profile_name>" setup-configure-interest-rates
5555
./deploy.py testnet --deployer "<deployer_profile_name>" setup-configure-price-feeds
56-
57-
(optional if gho reserve is to be configured too)
58-
./deploy.py testnet --deployer "<deployer_profile_name>" setup-gho-reserve
59-
60-
(optional if changes to the data values are being made one needs to reset too)
61-
./deploy.py testnet --deployer "<deployer_profile_name>" admin-reset-data
6256
```
6357

6458
### Transfer Package Ownerships
@@ -117,3 +111,23 @@ or reusing an existing one.
117111
After that, package publishing and the setup steps will be executed by
118112
themselves. Setup also goes through a multisig account on localnet, but no
119113
additional approval is needed and the proposal execution is automated as well.
114+
115+
### GHO reserve deployment
116+
117+
If the protocol is already deployed, one has to first run to re-initialize the initial deployer config for the gho configuration to be made available for the `setup-gho-reserve` method
118+
119+
```bash
120+
./deploy.py testnet --deployer "<deployer_profile_name>" admin-reset-data
121+
```
122+
123+
Then, adding the gho reserve to the protocol is simply a matter of running:
124+
125+
```bash
126+
./deploy.py testnet --deployer "<deployer_profile_name>" setup-gho-reserve
127+
```
128+
129+
Finally, the direct minter address (whether it is an object or account) has to be given the risk admin role via:
130+
131+
```bash
132+
./deploy.py testnet --deployer "<deployer_profile_name>" --gho-direct-minter "<gho_direct_minter_address>" add-risk-admin
133+
```

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ---- Defaults (used if nothing else sets them) ----
22
APTOS_NETWORK ?= local
33
ARTIFACTS_LEVEL ?= all
4-
MOVE_VERSION ?= 2.1
4+
MOVE_VERSION ?= 2.2
55
COMPILER_VERSION ?= 2.0
66
DEFAULT_FUND_AMOUNT ?= 100000000
77

0 commit comments

Comments
 (0)