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/guide/debugging-teal.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ If it displays the `tealdbg` help, you're good to go.
26
26
27
27
Creating transaction data (via `goal --dryrun-dump` or SDK) could be a lengthy process, especially when using a transaction group. `Algob` provides an easy way to use debugger: by simply supplying the transactions as an input to the `TealDbg` method (same transaction parameters that we supply to [executeTx](https://algobuilder.dev/api/algob/modules.html#executeTransaction) to execute same transaction on network).
28
28
29
-
NOTE: You use the `TealDbg` method in an algob script, which can be run using `algob deploy`/`algob run --script` commands.
29
+
NOTE: You use the `TealDbg` method in an algob script, which can be run using `algob deploy`/`algob run` commands.
30
30
31
31
### Using dry run for debugging a TEAL program in an algob script
Copy file name to clipboardExpand all lines: docs/guide/deployer.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Deployer class has the following modes:
22
22
- Run Mode: In run mode user can access/read checkpoints, create logs but cannot write(create) checkpoints. Files placed in nested folders (non-direct children, eg: `scripts/transfer/run-script.js`) of `scripts/` folder are considered to be run in this mode.
23
23
To run a script in the _run_ mode (the script will receive deployer instance in _run_ mode\_):
24
24
25
-
yarn run algob run --script scripts/transfer/run-script.js
25
+
yarn run algob run scripts/transfer/run-script.js
26
26
27
27
**Note:** In run mode user can `deploy`, `update`, `delete` or perform all these operations in a group transaction using [`executeTx`](https://algobuilder.dev/api/algob/modules.html#executetransaction) function but the `checkpoints will not be created when using run mode.`
Copy file name to clipboardExpand all lines: docs/guide/user-script-execution.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ layout: splash
8
8
9
9
In algob, scripts are JS files stored in the `scripts` directory and are meant to interact with the blockchain (deploy ASA, ASC1, run transactions...).
10
10
11
-
Scripts are run through `algob run --script` and `algob deploy` commands. `algob` is using `algob.config.js` to get information about network and accounts and is executing incremental scripts found in `scripts/`.
11
+
Scripts are run through `algob run` and `algob deploy` commands. `algob` is using `algob.config.js` to get information about network and accounts and is executing incremental scripts found in `scripts/`.
12
12
13
13
Please see the [architecture document](https://paper.dropbox.com/published/Algorand-builder-specs--A7njBF~7_VHYy0l3m3RAKgYVBg-c4ycJtlcmEaRIbptAPqNYS6#:h2=Scripts) to see how the scripts are organized and how to use them.
14
14
15
15
### Script execution
16
16
17
17
As noted above there are two commands to execute scripts:
18
18
19
-
-`algob run --script`
19
+
-`algob run`
20
20
-`algob deploy`
21
21
22
22
#### Run
@@ -25,7 +25,7 @@ Runs provided scripts and doesn't save script checkpoints.
Copy file name to clipboardExpand all lines: docs/tutorials/t-01.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -356,9 +356,9 @@ async function run(runtimeEnv, deployer) {
356
356
module.exports = { default: run };
357
357
```
358
358
359
-
Similarly to `scripts/0-gold.js`, this file exports one default function. This function, however, will not be run using `algob deploy`. Instead, we will use `algob run --script`:
359
+
Similarly to `scripts/0-gold.js`, this file exports one default function. This function, however, will not be run using `algob deploy`. Instead, we will use `algob run`:
360
360
361
-
algob run --script scripts/transfer/gold-to-john.js
361
+
algob run scripts/transfer/gold-to-john.js
362
362
363
363
The main difference between `run` and `deploy` is that:
Copy file name to clipboardExpand all lines: examples/asa/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,10 @@ To deploy all assets simply run:
19
19
20
20
It will go through all files in directly placed in the `scripts/` directory (so, it doesn't go recursively into the subdirectories) and run them in the _deploy_ mode. For more information about the deployer read the [deployer guide](https://algobuilder.dev/guide/deployer.html).
21
21
22
-
Transfers can be executed by executing `algob run --script scripts/transfer/gold-to-john.js` and other scripts in `scripts/transfer/`.
22
+
Transfers can be executed by executing `algob run scripts/transfer/gold-to-john.js` and other scripts in `scripts/transfer/`.
23
23
These scripts contain logic to transfer assets to `john-account` but other accounts can be configured as well.
24
24
25
-
Balances can be queried by executing `algob run --script scripts/query/john-balances.js`.
25
+
Balances can be queried by executing `algob run scripts/query/john-balances.js`.
26
26
27
27
This example also includes smart signatures in (`assets/` directory) that showcase the two different modes of operation (contract & signature delegation):
28
28
@@ -58,5 +58,5 @@ This example is using PyTEAL, so make sure to follow the Python3 setup described
58
58
59
59
```
60
60
yarn algob deploy
61
-
yarn algob run --script scripts/query/john-balances.js
Copy file name to clipboardExpand all lines: packages/algob/sample-project/js/README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@ To run the `sample-project`:
26
26
27
27
- To interact with your deployments you can create a script and run it using:
28
28
29
-
*`algob run --script scripts/path_to/file1`
30
-
* Don’t use algob run --script for deployments. This should be used only for auxiliary scripts, like ad-hock transactions (example: draining an account).
29
+
*`algob run scripts/path_to/file1`
30
+
* Don’t use algob run for deployments. This should be used only for auxiliary scripts, like ad-hock transactions (example: draining an account).
0 commit comments