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

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.0
change order varies: 9 orderings in 20 runs
5,496 B2a59a9ef0a8c…
p28-mainnet-generatedP28mainnet passphrasegenerated by stellar-core v30.0.0
change order varies: 2 orderings in 2 runs
5,488 Bfbb943eb46fe…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.0
change order varies: 2 orderings in 2 runs
5,496 B224d4ba6aaa6…
p28-testnet-generatedP28testnet passphrasegenerated by stellar-core v30.0.0
change order varies: 2 orderings in 2 runs
5,488 B90c2d3912c0b…

What a correct reader returns

A correct reader findsValueBacked by
kit0 stores key ["Balance", bob].
p30-mainnet-generated
some change where 3 fields matchconstructionsnapshotcorewalker
kit0 stores key ["Balance", bob].
p28-mainnet-generated
some change where 3 fields matchconstructionsnapshotcorewalker
kit0 stores key ["Balance", bob].
p30-testnet-generated
some change where 3 fields matchconstructionsnapshotcorewalker
kit0 stores key ["Balance", bob].
p28-testnet-generated
some change where 3 fields matchconstructionsnapshotcorewalker

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 walker

Entry id contract-data.sac-shaped-balance-key · compiled from catalog/contract-data.sac-shaped-balance-key.json · entry.json

On this page