02Sheet 02.03.043 · Entries
A plain contract stores a key shaped like a SAC balance
kit0 (not a Stellar Asset Contract) stores ["Balance", bob] → i128 1234.
FIG. · Where it sits · inside LedgerCloseMetaCAP-0046 · H-D10
a non-SAC ["Balance", G] contract-data key
The shape
kit0 (not a Stellar Asset Contract) stores ["Balance", bob] → i128 1234. Readers that detect token balances by key shape record a balance that does not exist.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 change order varies: 9 orderings in 20 runs | 5,496 B | 2a59a9ef0a8c… |
p28-mainnet-generated | P28 | mainnet passphrase | generated by stellar-core v30.0.0 change order varies: 2 orderings in 2 runs | 5,488 B | fbb943eb46fe… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 change order varies: 2 orderings in 2 runs | 5,496 B | 224d4ba6aaa6… |
p28-testnet-generated | P28 | testnet passphrase | generated by stellar-core v30.0.0 change order varies: 2 orderings in 2 runs | 5,488 B | 90c2d3912c0b… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| kit0 stores key ["Balance", bob]. p30-mainnet-generated | some change where 3 fields match | constructionsnapshotcorewalker |
| kit0 stores key ["Balance", bob]. p28-mainnet-generated | some change where 3 fields match | constructionsnapshotcorewalker |
| kit0 stores key ["Balance", bob]. p30-testnet-generated | some change where 3 fields match | constructionsnapshotcorewalker |
| kit0 stores key ["Balance", bob]. p28-testnet-generated | some change where 3 fields match | constructionsnapshotcorewalker |
Check it yourself
make verify # schema, hashes, the byte-for-byte round trip and every fact above
make oracle # the facts' values, re-read by stellar-core and the schema walkerEntry id contract-data.sac-shaped-balance-key · compiled from catalog/contract-data.sac-shaped-balance-key.json · entry.json
One contract, one key, persistent and temporary: two different entries
put_all("dup") writes the same key in persistent and temporary storage and in instance storage.
Address credentials V2: the signature payload is bound to the address
SOROBAN_CREDENTIALS_ADDRESS_V2 (CAP-0071-02): same fields as ADDRESS, but the signed payload includes the address.