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/learn/fundamentals/stellar-data-structures/ledgers/entries.mdx
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,70 +17,70 @@ Each `LedgerKey` contains only the fields needed to identify its entry. Those id
17
17
18
18
The descriptions below summarize the linked conceptual documentation. The protocol XDR definitions of [`LedgerKey`](https://github.com/stellar/stellar-xdr/blob/v27.0/Stellar-ledger-entries.x#L588-L651) and [`LedgerEntry`](https://github.com/stellar/stellar-xdr/blob/v27.0/Stellar-ledger-entries.x#L548-L586) are the source of truth for the exact fields and types.
19
19
20
-
### 1. Account {#account}
20
+
### 1. Account {/*#account*/}
21
21
22
22
The `AccountEntry` holistically defines a Stellar account, including its balance, sequence number, thresholds, signers, and flags. Learn more in the [Accounts section](../accounts.mdx).
23
23
24
24
-**Key:** Identified by `AccountID`
25
25
-**Entry:** Full account record including balance, sequence number, thresholds, flags, home domain, and list of signers. Tracks [subentries](../accounts.mdx#subentries) that drive the minimum balance requirement.
26
26
27
-
### 2. Trustline {#trustline}
27
+
### 2. Trustline {/*#trustline*/}
28
28
29
29
The `TrustLineEntry` defines a balance line to a non-native asset issued on the network. It is created and updated via [`changeTrustOp`](../../transactions/list-of-operations.mdx#change-trust). Learn more in the [Trustlines section](../accounts.mdx#trustlines).
30
30
31
31
-**Key:**`(AccountID, asset)`
32
32
-**Entry:** Trustline state for a non-native asset. Stores the asset balance, limit, authorization flags, and trading liability counters.
33
33
34
-
### 3. Offer {#offer}
34
+
### 3. Offer {/*#offer*/}
35
35
36
36
The `OfferEntry` represents an offer made on the SDEX order book. Learn more in the [orderbooks DEX section](../../liquidity-on-stellar-sdex-liquidity-pools.mdx#orderbook).
37
37
38
38
-**Key:**`(sellerID, offerID)`
39
39
-**Entry:** A single offer on the DEX. Contains the selling and buying assets, amount, price, and [passive](../../liquidity-on-stellar-sdex-liquidity-pools.mdx#passive-offer) flags.
40
40
41
-
### 4. Account Data {#account-data}
41
+
### 4. Account Data {/*#account-data*/}
42
42
43
43
A `DataEntry` stores key-value data entries attached to an account. It is used through the [`manageDataOp`](../../transactions/list-of-operations.mdx#manage-data).
44
44
45
45
-**Key:**`(accountID, dataName)`
46
46
-**Entry:** Arbitrary key-value pair (`DataValue`) attached to an account.
47
47
48
-
### 5. Claimable Balance {#claimable-balance}
48
+
### 5. Claimable Balance {/*#claimable-balance*/}
49
49
50
50
The `ClaimableBalanceEntry` tracks a balance that may or may not actively be claimable. Learn more in the [Claimable Balances section](../../../../build/guides/transactions/claimable-balances.mdx).
51
51
52
52
-**Key:**`balanceID`
53
53
-**Entry:** Tracks the asset, amount, claimants, [predicates](../../../../build/guides/transactions/claimable-balances.mdx#other-parameters), and optional flags.
54
54
55
-
### 6. Liquidity Pool {#liquidity-pool}
55
+
### 6. Liquidity Pool {/*#liquidity-pool*/}
56
56
57
57
The `LiquidityPoolEntry` defines the configuration of a constant-product liquidity pool between two assets. Learn more in the [liquidity pools section](../../liquidity-on-stellar-sdex-liquidity-pools.mdx#liquidity-pools).
58
58
59
59
-**Key:**`liquidityPoolID`
60
60
-**Entry:** Holds pool parameters (two assets, fee rate), reserves, total pool shares, and a pool's trustline count (to prevent entry scanning).
61
61
62
-
### 7. Contract Data {#contract-data}
62
+
### 7. Contract Data {/*#contract-data*/}
63
63
64
64
`ContractDataEntry` stores a piece of data under a contract-defined key. Learn more in the [Persisting Contract Data section](../../contract-development/storage/persisting-data.mdx#ledger-entries).
65
65
66
66
-**Key:**`(contract, key, durability)`
67
67
-**Entry:** Stores the `SCVal` value associated with that key under the contract. Used for Soroban data storage alongside keys.
68
68
69
-
### 8. Contract Code {#contract-code}
69
+
### 8. Contract Code {/*#contract-code*/}
70
70
71
71
The `ContractCodeEntry` contains the Wasm bytecode of a Soroban contract. Learn more in the [Smart Contracts Overview section](../../../../build/smart-contracts/overview.mdx).
72
72
73
73
-**Key:**`hash` of the Wasm module.
74
74
-**Entry:** Contains the Wasm bytecode and associated cost inputs to deploy or invoke contracts. [Fee metadata](../../fees-resource-limits-metering.mdx#resource-fee) takes into account component factors like number of instructions, functions, and variables.
75
75
76
-
### 9. Config Setting {#config-setting}
76
+
### 9. Config Setting {/*#config-setting*/}
77
77
78
78
The `ConfigSettingEntry` holds governed network configuration values for over a dozen rules. Learn more in the [Soroban Settings section](../../../../validators/admin-guide/soroban-settings.mdx).
79
79
80
80
-**Key:**`configSettingID` (index of setting [in list](https://github.com/stellar/stellar-xdr/blob/v27.0/Stellar-contract-config-setting.x#L373-L396))
81
81
-**Entry:** Active value of a network-level parameter (e.g., protocol limits, compute fees, state archival). The whole validator quorum set has to agree on these values.
82
82
83
-
### 10. TTL {#ttl}
83
+
### 10. TTL {/*#ttl*/}
84
84
85
85
The `TTLEntry` defines the time-to-live of an associated contract data or code entry. Learn more in the [State archival section](../../contract-development/storage/state-archival.mdx#ttl).
0 commit comments