Skip to content
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

Guide Cleanup (continued) #924

Merged
merged 3 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Deploy a Stellar Asset Contract (SAC) from within a contract
hide_table_of_contents: true
description: Deploy a SAC from another smart contract using the Rust SDK
---

Expand Down
2 changes: 1 addition & 1 deletion docs/build/guides/tokens/stellar-asset-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ hide_table_of_contents: true
description: Test and use Stellar assets in a Stellar smart contract
---

When interacting with assets in a smart contract, the Stellar Asset Contract is not different from any other token that implements the Stellar [SEP-41 Token Interface].
When interacting with assets in a smart contract, the [Stellar Asset Contract](../../../tokens/stellar-asset-contract.mdx) is not different from any other token that implements the Stellar [SEP-41 Token Interface].

## Contract Code

Expand Down
2 changes: 1 addition & 1 deletion docs/learn/encyclopedia/storage/state-archival.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: Smart contract state archival.

Contract data is made up of three different types: `Persistent`, `Temporary`, and `Instance`. In a contract, these are accessed with `env.storage().persistent()`, `env.storage().temporary()`, and `env.storage().instance()` respectively; see the [`storage()` docs](https://docs.rs/soroban-sdk/latest/soroban_sdk/storage/struct.Storage.html).

Learn about choosing the right storage for your use case in this [How-To Guide](../../../build/guides/archival/choosing-the-right-storage.mdx) and other state archival related guides [here](../../../build/guides/archival).
Learn about choosing the right storage for your use case in this [How-To Guide](../../../build/guides/storage/choosing-the-right-storage.mdx) and other state archival related guides [here](../../../build/guides/archival).

All contract data has a Time To Live (TTL) that must be periodically extended. If an entry's TTL is not periodically extended, the entry's TTL will eventually go to 0 and either become "archived" or permanently deleted depending on the storage type. Each type of storage functions similarly, but has different fees and archival behavior:

Expand Down
2 changes: 2 additions & 0 deletions docs/learn/fundamentals/fees-resource-limits-metering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ The implementation details for fee computation are provided by the following [li

Find current resource fees in the [Resource Limits & Fees](../../networks/resource-limits-fees.mdx) page in the Networks section.

For help in analyzing smart contract cost and efficiency, see this [How-To Guide](../../build/guides/fees/analyzing-smart-contract-cost.mdx).

### Refundable and non-refundable resource fees

The resource fee is calculated with a non-refundable fees portion and a refundable fees portion: `ResourceFee(sorobanData.resourceFee) = Non-refundable resource fee + Refundable resource fees`.
Expand Down
4 changes: 3 additions & 1 deletion docs/tokens/stellar-asset-contract.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
sidebar_position: 50
title: Stellar Asset Contract
description: Use Stellar assets on Soroban.
description: Use Stellar assets in smart contracts
---

<head>
Expand All @@ -16,6 +16,8 @@ description: Use Stellar assets on Soroban.

The Stellar Asset Contract (SAC) is an implementation of [CAP-46-6 Smart Contract Standardized Asset] and [SEP-41 Token Interface] for Stellar [assets].

See examples of how to use the SAC in the [Tokens How-To Guides](../build/guides/tokens/).

## Overview

:::note
Expand Down
Loading