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.
The shape
put_all("dup") writes the same key in persistent and temporary storage and in instance storage. Contract-data identity is (contract, key, durability): the two created entries are distinct. Readers keyed by (contract, key) merge them.
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 |
|---|---|---|
| A persistent entry "dup" is created. p30-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| A persistent entry "dup" is created. p28-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| A persistent entry "dup" is created. p30-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| A persistent entry "dup" is created. p28-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| A temporary entry "dup" is created. p30-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| A temporary entry "dup" is created. p28-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| A temporary entry "dup" is created. p30-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| A temporary entry "dup" is created. p28-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| The instance is updated (instance storage). p30-mainnet-generated | some change where 1 fields match | snapshotcorewalker |
| The instance is updated (instance storage). p28-mainnet-generated | some change where 1 fields match | snapshotcorewalker |
| The instance is updated (instance storage). p30-testnet-generated | some change where 1 fields match | snapshotcorewalker |
| The instance is updated (instance storage). p28-testnet-generated | some change where 1 fields match | snapshotcorewalker |
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.one-key-two-durabilities · compiled from catalog/contract-data.one-key-two-durabilities.json · entry.json
An executable-reference entry keyed by SCV_EXECUTABLE_TAG
CA1 stores the v1 kit Wasm hash under an SCV_EXECUTABLE_TAG key "kit" (CAP-0085): other contracts may run that Wasm by reference.
A plain contract stores a key shaped like a SAC balance
kit0 (not a Stellar Asset Contract) stores ["Balance", bob] → i128 1234.