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
* update sections name for different platforms
* update file name [platform]
* create new page for solana upgrade
* rename file detailing [platform]
* update link to new file
* introduction
* Key Considerations for Upgrade section
* upgrading multigov on solana steps
* grammarly check
* remove spaces
* consitency update
* update index with new page on solana
* llm check
* refactors key consideration bullet list
* llm check
* removes example admonitions
* llms
* Update build/contract-integrations/multigov/upgrade-evm.md
Co-authored-by: Dawn Kelly <83190195+dawnkelly09@users.noreply.github.com>
* Update build/contract-integrations/multigov/upgrade-solana.md
Co-authored-by: Dawn Kelly <83190195+dawnkelly09@users.noreply.github.com>
* llm check
---------
Co-authored-by: DAWN KELLY <dawnkelly09@gmail.com>
Co-authored-by: Dawn Kelly <83190195+dawnkelly09@users.noreply.github.com>
- :octicons-file-code-16:{ .lg .middle } **Upgrade MultiGov on EVM**
38
38
39
39
---
40
40
41
41
Learn the process and key considerations for upgrading MultiGov contracts, ensuring system integrity and careful planning across cross-chain components.
42
42
43
-
[:custom-arrow: Discover how to upgrade MultiGov](/docs/build/contract-integrations/multigov/upgrade/)
43
+
[:custom-arrow: Discover how to upgrade MultiGov](/docs/build/contract-integrations/multigov/upgrade-evm/)
44
+
45
+
- :octicons-file-code-16:{ .lg .middle } **Upgrade MultiGov on Solana**
46
+
47
+
---
48
+
49
+
Learn how to upgrade the MultiGov Staking Program on Solana, including updating the program binary, IDL, and more.
50
+
51
+
[:custom-arrow: Discover how to upgrade MultiGov on Solana](/docs/build/contract-integrations/multigov/upgrade-solana/)
Copy file name to clipboardexpand all lines: build/contract-integrations/multigov/upgrade-evm.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
-
title: Upgrading MultiGov
3
-
description: Learn the process and key considerations for upgrading MultiGov, ensuring system integrity and careful planning across cross-chain components.
2
+
title: Upgrading MultiGov on EVM
3
+
description: Learn the process and key considerations for upgrading MultiGov on EVM, ensuring system integrity and careful planning across cross-chain components.
4
4
---
5
5
6
-
# Upgrade MultiGov Contracts
6
+
# Upgrade MultiGov Contracts on EVM
7
7
8
-
MultiGov is designed to be flexible but stable. Upgrades should be rare and carefully considered due to the system's complexity and cross-chain nature. When upgrades are necessary, they must be meticulously planned and executed to ensure system integrity and continuity.
8
+
MultiGov is designed to be flexible but stable. Due to the system's complexity and cross-chain nature, upgrades should be rare and carefully considered. When upgrades are necessary, they must be meticulously planned and executed to ensure system integrity and continuity.
description: Learn the process and key considerations for upgrading MultiGov on Solana, ensuring system integrity and careful planning across cross-chain components.
4
+
---
5
+
6
+
# Upgrade MultiGov Contracts on Solana
7
+
8
+
The MultiGov Staking Program on Solana is designed to be upgradeable while maintaining stability. Upgrades introduce improvements, bug fixes, and new features but must be carefully planned and executed to prevent disruptions.
9
+
10
+
This guide covers the key considerations and step-by-step process for upgrading the MultiGov Staking Program, including updating the program binary, Interface Description Language (IDL), and `HubProposalMetadata` while ensuring cross-chain compatibility.
11
+
12
+
## Key Considerations for Upgrades
13
+
14
+
-**Program upgradeability** - you can upgrade the MultiGov Staking Program on Solana using the `anchor upgrade` command
15
+
- You need the program's new bytecode (`.so` file) and an updated IDL file to reflect any changes in the program's interface to complete an upgrade
16
+
- The program's authority (deployer) must execute the upgrade
17
+
18
+
-**`HubProposalMetadata`** - can be updated without redeploying the entire program. You can do this by invoking the `updateHubProposalMetadata` instruction
19
+
- You must carefully validate updates to `HubProposalMetadata` to ensure compatibility with the existing system
20
+
21
+
-**Cross-chain compatibility** - ensure any changes to the Solana program do not break compatibility with the Ethereum-based `HubGovernor`
22
+
- Test upgrades thoroughly on devnet before deploying to mainnet
23
+
24
+
## Upgrade the MultiGov Program
25
+
26
+
Follow these steps to upgrade the MultiGov Staking Program on Solana.
27
+
28
+
1.**Prepare the new program binary** - build the updated program using the provided script
29
+
30
+
```bash
31
+
./scripts/build_verifiable_staking_program.sh
32
+
```
33
+
34
+
The new program binary will be located at:
35
+
36
+
```bash
37
+
target/deploy/staking.so
38
+
```
39
+
40
+
2. **Upgrade the program** - use the anchor upgrade command to deploy the new program binary
4. **Update `HubProposalMetadata`** - if `HubProposalMetadata` requires an update, run the following script to invoke the `updateHubProposalMetadata` instruction and apply the changes
- :octicons-file-code-16:{ .lg .middle } **Upgrade MultiGov on EVM**
9296
9297
9297
9298
---
9298
9299
9299
9300
Learn the process and key considerations for upgrading MultiGov contracts, ensuring system integrity and careful planning across cross-chain components.
9300
9301
9301
-
[:custom-arrow: Discover how to upgrade MultiGov](/docs/build/contract-integrations/multigov/upgrade/)
9302
+
[:custom-arrow: Discover how to upgrade MultiGov](/docs/build/contract-integrations/multigov/upgrade-evm/)
9303
+
9304
+
- :octicons-file-code-16:{ .lg .middle } **Upgrade MultiGov on Solana**
9305
+
9306
+
---
9307
+
9308
+
Learn how to upgrade the MultiGov Staking Program on Solana, including updating the program binary, IDL, and more.
9309
+
9310
+
[:custom-arrow: Discover how to upgrade MultiGov on Solana](/docs/build/contract-integrations/multigov/upgrade-solana/)
description: Learn the process and key considerations for upgrading MultiGov, ensuring system integrity and careful planning across cross-chain components.
9348
+
title: Upgrading MultiGov on EVM
9349
+
description: Learn the process and key considerations for upgrading MultiGov on EVM, ensuring system integrity and careful planning across cross-chain components.
9341
9350
---
9342
9351
9343
-
# Upgrade MultiGov Contracts
9352
+
# Upgrade MultiGov Contracts on EVM
9344
9353
9345
-
MultiGov is designed to be flexible but stable. Upgrades should be rare and carefully considered due to the system's complexity and cross-chain nature. When upgrades are necessary, they must be meticulously planned and executed to ensure system integrity and continuity.
9354
+
MultiGov is designed to be flexible but stable. Due to the system's complexity and cross-chain nature, upgrades should be rare and carefully considered. When upgrades are necessary, they must be meticulously planned and executed to ensure system integrity and continuity.
9346
9355
9347
9356
## Key Considerations for Upgrades
9348
9357
@@ -9402,6 +9411,76 @@ MultiGov is designed to be flexible but stable. Upgrades should be rare and care
9402
9411
- Always test upgrades extensively on testnets before implementing in production
description: Learn the process and key considerations for upgrading MultiGov on Solana, ensuring system integrity and careful planning across cross-chain components.
9419
+
---
9420
+
9421
+
# Upgrade MultiGov Contracts on Solana
9422
+
9423
+
The MultiGov Staking Program on Solana is designed to be upgradeable while maintaining stability. Upgrades introduce improvements, bug fixes, and new features but must be carefully planned and executed to prevent disruptions.
9424
+
9425
+
This guide covers the key considerations and step-by-step process for upgrading the MultiGov Staking Program, including updating the program binary, Interface Description Language (IDL), and `HubProposalMetadata` while ensuring cross-chain compatibility.
9426
+
9427
+
## Key Considerations for Upgrades
9428
+
9429
+
- **Program upgradeability** - you can upgrade the MultiGov Staking Program on Solana using the `anchor upgrade` command
9430
+
- You need the program's new bytecode (`.so` file) and an updated IDL file to reflect any changes in the program's interface to complete an upgrade
9431
+
- The program's authority (deployer) must execute the upgrade
9432
+
9433
+
- **`HubProposalMetadata`** - can be updated without redeploying the entire program. You can do this by invoking the `updateHubProposalMetadata` instruction
9434
+
- You must carefully validate updates to `HubProposalMetadata` to ensure compatibility with the existing system
9435
+
9436
+
- **Cross-chain compatibility** - ensure any changes to the Solana program do not break compatibility with the Ethereum-based `HubGovernor`
9437
+
- Test upgrades thoroughly on devnet before deploying to mainnet
9438
+
9439
+
## Upgrade the MultiGov Program
9440
+
9441
+
Follow these steps to upgrade the MultiGov Staking Program on Solana.
9442
+
9443
+
1. **Prepare the new program binary** - build the updated program using the provided script
9444
+
9445
+
```bash
9446
+
./scripts/build_verifiable_staking_program.sh
9447
+
```
9448
+
9449
+
The new program binary will be located at:
9450
+
9451
+
```bash
9452
+
target/deploy/staking.so
9453
+
```
9454
+
9455
+
2. **Upgrade the program** - use the anchor upgrade command to deploy the new program binary
4. **Update `HubProposalMetadata`** - if `HubProposalMetadata` requires an update, run the following script to invoke the `updateHubProposalMetadata` instruction and apply the changes
0 commit comments