Vitalik's CREATE factory: pre-computes child address via RLP([self,0]), deploys moose.se, calls moose() to verify, emits Lol event
Key Facts
Description
Deployed by Vitalik Buterin. A CREATE factory demonstration: it pre-computes the child contract address via RLP([self, nonce]) and deploys a child contract (moose.se). Illustrates deterministic contract address derivation.
Source Verified
Compiled with Serpent 2.0.7. Trailing 4 dead bytes (5b6000f3) stripped before deployment. Source: factory.se + moose.se.
DAO Fork Era
The controversial fork to recover funds from The DAO hack.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Serpent)
# factory.se
event Lol(x:int256, y:int256)
extern moose_contract: [moose:[]:int256]
temp = (0xd694000000000000000000000000000000000000000000 + self * 0x100) + 0x80
z = ~extcodesize(temp)
x = create('moose.se')
y = x.moose()
unless (iszero(z or iszero(y))):
invalid()
log(type=Lol, z, y)
# moose.se
def moose():
return(extcodesize(self) * codesize())External Links
Related contracts
SerpentGamble
Same deployerProvably-fair betting game where players choose their own odds. The owner settles bets with a commit-reveal random seed. Includes a 2-day emergency refund.
0x034df8...200e2fSeptember 20, 2015SerpentGamble
Same deployerSibling of 0x034dF870 (SerpentGamble). Provably-fair Serpent betting game; players choose their own odds, owner settles via commit-reveal seed, 2-day refund.
0x9ca7e9...fa8bb4September 21, 2015SerpentGamble
Same deployerSibling of 0x034dF870 (SerpentGamble). Provably-fair Serpent betting game; players choose their own odds, owner settles via commit-reveal seed, 2-day refund.
0x75649a...176028September 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xe1a99f...0d2457September 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xdc00a9...15861fSeptember 21, 2015SerpentGamble
Same deployerIntermediate build of serpent_gamble, a provably-fair betting dapp (Bet/Win/Loss/NewSeed), related to verified sibling 0x59375871. Source not yet reconstructed.
0xd0ed09...300b48September 21, 2015