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.
The shape
CREATE_CONTRACT_V2 whose executable is CONTRACT_EXECUTABLE_EXTERNAL_REF {owner CA1, tag "kit"}: the instance names no Wasm hash. Readers that expect executable to be wasm or stellar_asset fail.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,760 B | 6ac841d1e50a… |
p28-mainnet-generated | P28 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,752 B | b4135a7ed69f… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 2,760 B | 30f52baa8c4d… |
p28-testnet-generated | P28 | testnet passphrase | generated by stellar-core v30.0.0 | 2,752 B | 320f9cfaa980… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The instance's executable is an external reference to (CA1, "kit"). p30-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| The instance's executable is an external reference to (CA1, "kit"). p28-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| The instance's executable is an external reference to (CA1, "kit"). p30-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| The instance's executable is an external reference to (CA1, "kit"). p28-testnet-generated | some change where 2 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.deploy · compiled from catalog/executable-ref.deploy.json · entry.json
A deploy from a liquidity-pool address: included, trapped
The host refuses SC_ADDRESS_TYPE_LIQUIDITY_POOL anywhere (CAP-0067); the transaction is still in the ledger.
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.