Skip to content

Commit

Permalink
Merge branch 'main' into alias-override
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando authored Jan 21, 2025
2 parents 915618a + ed692a0 commit 19315d1
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions cookbook/contract-lifecycle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Contract Lifecycle
hide_table_of_contents: true
description: Manage the lifecycle of a Stellar smart contract using the CLI
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/contract-lifecycle.mdx
---

To manage the lifecycle of a Stellar smart contract using the CLI, follow these steps:
Expand Down
1 change: 1 addition & 0 deletions cookbook/deploy-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Deploy a contract from installed Wasm bytecode
hide_table_of_contents: true
description: Deploy an instance of a compiled contract that is already installed on the network
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/deploy-contract.mdx
---

To deploy an instance of a compiled smart contract that has already been installed onto the Stellar network, use the `stellar contract deploy` command:
Expand Down
1 change: 1 addition & 0 deletions cookbook/deploy-stellar-asset-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Deploy the Stellar Asset Contract for a Stellar asset
hide_table_of_contents: true
description: Deploy an SAC for a Stellar asset so that it can interact with smart contracts
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/deploy-stellar-asset-contract.mdx
---

The Stellar CLI can deploy a [Stellar Asset Contract] for a Stellar asset so that any Stellar smart contract can interact with the asset.
Expand Down
1 change: 1 addition & 0 deletions cookbook/extend-contract-instance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Extend a deployed contract instance's TTL
hide_table_of_contents: true
description: Use the CLI to extend the time to live (TTL) of a contract instance
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/extend-contract-instance.mdx
---

You can use the Stellar CLI to extend the TTL of a contract instance like so:
Expand Down
1 change: 1 addition & 0 deletions cookbook/extend-contract-storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Extend a deployed contract's storage entry TTL
hide_table_of_contents: true
description: Use the CLI to extend the time to live (TTL) of a contract's persistent storage entry
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/extend-contract-storage.mdx
---

You can use the Stellar CLI to extend the TTL of a contract's persistent storage entry. For a storage entry that uses a simple `Symbol` as its storage key, you can run a command like so:
Expand Down
1 change: 1 addition & 0 deletions cookbook/extend-contract-wasm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Extend a deployed contract's Wasm code TTL
hide_table_of_contents: true
description: Use Stellar CLI to extend contract's Wasm bytecode TTL, with or without local binary
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/extend-contract-wasm.mdx
---

You can use the Stellar CLI to extend the TTL of a contract's Wasm bytecode. This can be done in two forms: if you do or do not have the compiled contract locally. If you do have the compiled binary on your local machine:
Expand Down
1 change: 1 addition & 0 deletions cookbook/install-deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Install and deploy a smart contract
hide_table_of_contents: true
description: Combine the install and deploy commands in the Stellar CLI to accomplish both tasks
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/install-deploy.mdx
---

You can combine the `install` and `deploy` commands of the Stellar CLI to accomplish both tasks:
Expand Down
1 change: 1 addition & 0 deletions cookbook/install-wasm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Install Wasm bytecode
hide_table_of_contents: true
description: Use the Stellar CLI to install a compiled smart contract on the ledger
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/install-wasm.mdx
---

To use the Stellar CLI to install a compiled smart contract on the ledger, use the `stellar contract install` command:
Expand Down
1 change: 1 addition & 0 deletions cookbook/payments-and-assets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Payments and Assets
hide_table_of_contents: true
description: Send XLM, stellar classic, or a soroban asset using the Stellar CLI
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/payments-and-assets.mdx
---

To send payments and work with assets using the Stellar CLI, follow these steps:
Expand Down
1 change: 1 addition & 0 deletions cookbook/restore-contract-instance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Restore an archived contract using the Stellar CLI
hide_table_of_contents: true
description: Restore an archived contract instance using the Stellar CLI
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/restore-contract-instance.mdx
---

If your contract instance has been archived, it can easily be restored using the Stellar CLI.
Expand Down
1 change: 1 addition & 0 deletions cookbook/restore-contract-storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Restore archived contract data using the Stellar CLI
hide_table_of_contents: true
description: Restore archived contract storage entries using Stellar CLI
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/restore-contract-storage.mdx
---

If a contract's persistent storage entry has been archived, you can restore it using the Stellar CLI. For a storage entry that uses a simple `Symbol` as its storage key, you can run a command like so:
Expand Down
1 change: 1 addition & 0 deletions cookbook/tx-new.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: `tx` Commands
hide_table_of_contents: true
description: Create stellar transactions using the Stellar CLI
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/tx-new.mdx
---

So far the examples of the CLI interacting with the blockchain have been through the `contract` command. Uploading contracts, deploying contracts, and invoking them.
Expand Down
3 changes: 2 additions & 1 deletion cookbook/tx-op-add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: `tx op add`
hide_table_of_contents: true
description: Create stellar transactions using the Stellar CLI
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/tx-op-add.mdx
---

As see before you can use pipes to pass a transaction envolope between commands. Before we have only been looking at transactions with one operation,
Expand Down Expand Up @@ -48,4 +49,4 @@ stellar tx new set-trustline-flags --fee 1000 --build-only --source issuer --ass
| stellar tx op add set-trustline-flags --asset $ASSET --trustor distributor --clear-authorize \
| stellar tx sign --sign-with-key issuer \
| stellar tx send
```
```
3 changes: 2 additions & 1 deletion cookbook/tx-sign.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: `tx sign` and `tx send`
hide_table_of_contents: true
description: Create stellar transactions using the Stellar CLI
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/tx-sign.mdx
---

The previous examples of using `tx new` showed how to create transactions. However, these transactions were immediately ready to be signed and submitted to the network.
Expand Down Expand Up @@ -69,4 +70,4 @@ stellar tx new create-account \
--build-only \
| stellar tx sign --sign-with-key alice \
| stellar tx send
```
```

0 comments on commit 19315d1

Please sign in to comment.