-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(iota-tx-test-runner/docs): documentation of init, run, publish , print-bytecode task commands #5128
base: sc-platform/transactional-tests-syntax
Are you sure you want to change the base?
Conversation
…print-bytecode task commands
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since init, run, publish and print-bytecode are fundamental, I would move them up in the list (before "view-object").
For each example write the output that is found in the .exp
file (use the real tests files if necessary).
Pls also run |
|
||
This command is **optional**, but if used, it must be the first command in the test sequence. | ||
|
||
Command should be use: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command should be use: | |
You should use the command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
//# init [OPTIONS] | ||
``` | ||
|
||
Example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example: | |
#### Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
### `print-bytecode` | ||
|
||
Command reads a compiled Move binary and prints its bytecode instructions in a readable format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command reads a compiled Move binary and prints its bytecode instructions in a readable format. | |
A command that reads a compiled Move binary and prints its bytecode instructions in a readable format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
#### What is the simulator mode? | ||
|
||
This type of execution when we can control the checkpoint, epoch creation process and manually advance clock as needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type of execution when we can control the checkpoint, epoch creation process and manually advance clock as needed. | |
This type of execution allows control of the checkpoint and epoch creation process and manually advances the clock as needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
//# print-bytecode | ||
``` | ||
|
||
Example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example: | |
#### Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
} | ||
``` | ||
|
||
- Publishes transfer.move on-chain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Publishes transfer.move on-chain. | |
- Publishes `transfer.move` on-chain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
``` | ||
|
||
- Publishes transfer.move on-chain. | ||
- acc1 is the sender. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- acc1 is the sender. | |
- `acc1` is the sender. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
--syntax <SYNTAX>: move syntax type (`source` or `ir`). | ||
``` | ||
|
||
Example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example: | |
### Example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with additional # :D
//# view-object 2,0 | ||
``` | ||
|
||
`test::transfer` should have been published already before `run` command execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`test::transfer` should have been published already before `run` command execution. | |
`test::transfer` should have been published already before you can `run` the command execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
- acc1 is the sender. | ||
- @acc2 is an identifier of recepient address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- acc1 is the sender. | |
- @acc2 is an identifier of recepient address. | |
- `acc1` is the sender. | |
- `@acc2` is an identifier of recipient address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Description of change
Documentation of
init
,run
,publish
,print-bytecode
task commands in order to have good usage perspective.Links to any relevant issues
Fixes #5122.
Type of change