-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[upgrades] fix upgrade script generation and patch final smoke tests (#…
…45)
- Loading branch information
1 parent
2593c98
commit 04a9e8d
Showing
75 changed files
with
3,129 additions
and
3,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Governance fixtures | ||
|
||
To test governance scripts and framework upgrade we place | ||
tests in `tools/txs/tests` and fixture scripts in `tools/txs/tests/fixtures`. | ||
|
||
To generate these fixtures we use the `libra-framework cli`. | ||
|
||
## generate a noop governance script | ||
|
||
1. A template Move script package must exist. The CLI can create a template. | ||
|
||
``` | ||
cd libra-framework | ||
cargo r governance --output-dir ../tools/txs/tests/fixtures --framework-local-dir ./libra-framework --only-make-template | ||
``` | ||
|
||
2. Don't make changes to this file. It should compile as-is. Run the cli tool again. | ||
``` | ||
cd libra-framework | ||
cargo r governance --output-dir ../tools/txs/tests/fixtures --framework-local-dir ./libra-framework | ||
``` | ||
|
||
3. check the files are as expected | ||
You should have | ||
``` | ||
../tools/txs/tests/fixtures/governance_script_template/ | ||
| | ||
+ - /sources/ | ||
| | | ||
| +-- governance_script_template.move | ||
+ - Move.toml | ||
+ - script_sha3 // hash of the script needed for authorization | ||
+ - script.mv // compiled script which is submitted | ||
``` | ||
|
||
You're done. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
[move-book]: https://aptos.dev/guides/move-guides/book/SUMMARY | ||
Oops, something went wrong.