We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
path path/hello.tx
txtx run path/hello.tx
path path/hello/ path/hello/inputs.tx path/hello/main.tx
txtx run path/hello
path path/txtx.json path/run/ path/run/dir-1/ path/run/dir-1/subdir-1/ path/run/dir-1/subdir-1/inputs.tx path/run/dir-1/subdir-1/main.tx
txtx run --runbook dir-1/subdir-1
Assuming path/hello.tx
path/hello.tx
input "token_name" { default_value = "stSTX" type = "string" } input "max_debt" { value = 3700000000000 type = "uint" } action "set_token_transaction" "stacks::encode_contract_call" { description = "Encodes the contract call, prompts the user to sign, and broadcasts the set-token function." network_id = input.network_id.value contract_id = "${input.contract_address.value}.arkadiko-vaults-tokens-v1-1" function_name = "set-token" function_args = [ cv_ascii(input.token_name.value), cv_uint(input.max_debt.value), ] } output "encoded_payload" { value = action.value }
Running
Should run the Web console UI.
txtx run path/hello.tx --input-token_name stSTX --input-max_debt 3700000000000
Should run the web console, replacing the default inputs.
Should execute the runbook, CLI prompt the values that have missing value (no value + default value), and display the outputs.
We could add --json-output formatting the outputs as json, and --output-encoded_payload to display one particular value.
--json-output
--output-encoded_payload
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Project Types
File-based
Typical Layout
Command
txtx run path/hello.tx
Directory-based
Typical Layout
Command
txtx run path/hello
Manifest-based
Typical Layout
Command
txtx run --runbook dir-1/subdir-1
Execution types
Assuming
path/hello.tx
Interactive
Running
txtx run path/hello.tx
Should run the Web console UI.
Running
txtx run path/hello.tx --input-token_name stSTX --input-max_debt 3700000000000
Should run the web console, replacing the default inputs.
Command line
Running
txtx run path/hello.tx --input-token_name stSTX --input-max_debt 3700000000000
Should execute the runbook, CLI prompt the values that have missing value (no value + default value), and display the outputs.
We could add
--json-output
formatting the outputs as json, and--output-encoded_payload
to display one particular value.The text was updated successfully, but these errors were encountered: