02Sheet 02.03.040 · Entries
Calling a contract whose code comes from a reference
The external-ref contract runs the v1 kit's put: its footprint must include the owner's tag entry and the referenced Wasm.
FIG. · Where it sits · inside LedgerCloseMetaCAP-0085 · H-D11
InvokeHostFunction on an external-ref contract
The shape
The external-ref contract runs the v1 kit's put: its footprint must include the owner's tag entry and the referenced Wasm.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,644 B | b9b3dea25e3b… |
p28-mainnet-generated | P28 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,636 B | b4308d3f237c… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 2,644 B | 8b5da2dc9074… |
p28-testnet-generated | P28 | testnet passphrase | generated by stellar-core v30.0.0 | 2,636 B | c880988df1be… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| It stores via_ref = 85 under its own address. p30-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| It stores via_ref = 85 under its own address. p28-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| It stores via_ref = 85 under its own address. p30-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| It stores via_ref = 85 under its own address. p28-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| The footprint reads the owner's executable_tag entry. | some change where 1 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 executable-ref.invoke · compiled from catalog/executable-ref.invoke.json · entry.json
A contract deployed with an external-reference executable
CREATE_CONTRACT_V2 whose executable is CONTRACT_EXECUTABLE_EXTERNAL_REF {owner CA1, tag "kit"}: the instance names no Wasm hash.
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.