A contract deployed from an address and salt
CREATE_CONTRACT_V2 from alice with salt sha256("xdrproof:kit:0"): the contract ID is derived from the network ID, the deployer and the salt.
The shape
CREATE_CONTRACT_V2 from alice with salt sha256("xdrproof:kit:0"): the contract ID is derived from the network ID, the deployer and the salt.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,668 B | 751487df393d… |
p28-mainnet-generated | P28 | mainnet passphrase | generated by stellar-core v30.0.0 | 2,660 B | 0d2ca04b7715… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 2,668 B | 41c8cd4b609b… |
p28-testnet-generated | P28 | testnet passphrase | generated by stellar-core v30.0.0 | 2,660 B | 82b73a9e8baa… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The instance is created for the derived contract ID. p30-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| The instance is created for the derived contract ID. p28-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| The instance is created for the derived contract ID. p30-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| The instance is created for the derived contract ID. 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 contract.deploy-from-address-salt · compiled from catalog/contract.deploy-from-address-salt.json · entry.json
A contract deployed with constructor arguments
CREATE_CONTRACT_V2 with three constructor arguments (owner, tag, signers): the constructor runs inside the deploy and writes instance and persistent storage.
A Stellar Asset Contract deployed from a classic asset
CREATE_CONTRACT (v1 host function) with a contract-ID preimage from the asset XPF: the instance's executable is stellar_asset, not a Wasm hash.