This analysis is based on observations of the contract behavior. We are not smart contract security experts. This document aims to explain what the contract appears to do based on the code. It should not be considered a comprehensive security audit or financial advice. Always verify critical information independently and consult with blockchain security professionals for important decisions.
The runtime dispatcher matches these 24 selectors and reverts with empty data on anything else. There is no receive or fallback.
Errors
SELECTOR
ERROR
RAISED BY
0x0f2e5b6c
Locked()
Every content write after lock()
0xef9230eb
CodelessChunk(address)
A pointer with no code, in setChunks, setWidgetChunks or lock
0x449e1ab9
ForeignChunk(address)
A pointer whose code does not begin with 0x00, same functions
0x62c33689
EmptyDocument()
An empty list passed to setChunks or setWidgetChunks, or lock with no dapp chunks
0x82b42900
Unauthorized()
Any owner-only function called by someone else
0x7448fbae
NewOwnerIsZeroAddress()
transferOwnership(address(0))
0x6f5e8818
NoHandoverRequest()
completeOwnershipHandover for an address with no live request
SSTORE2.write can also revert DeploymentFailed() (0x30116425) if the chunk contract cannot be created, for example when the data exceeds the code size limit.
Summary
CATEGORY
COUNT
Total Functions
24
User Functions
2
Admin Functions
9
View Functions
13
The constructor is not counted. It takes owner_ and version_, writes the owner into Solady's owner slot with an OwnershipTransferred(0, owner_) event, and stores the version string. On mainnet it was called with the Ops vault 0x00c0e887...1F3790 (etherscan) and v0.1.
Admin Functions
Function: addChunk(bytes data)
Deploys data as a new SSTORE2 chunk and appends the chunk's address to chunks. Returns the address.
ATTRIBUTE
VALUE
Selector
0x32ee2d4e
Parameters
data: up to 24,575 bytes
Access
External, owner only
Returns
address ptr
Events
ChunksSet(uint256 count, bool gzipped) with the new length and the unchanged flag
FLAG
OBSERVATION
☑
The pointer is created by App itself, so no code check is needed
◇
Does not touch gzipped. Appending compressed data to an uncompressed list, or the reverse, makes html() return bytes the browser cannot use until setChunks corrects the flag
◇
The chunk address follows App's account nonce, so it can be computed in advance with cast compute-address. The next one on mainnet is nonce 5, 0x12B3361f...27a607 (etherscan)
Replaces the whole dapp pointer list and sets the gzipped flag. Used to reorder chunks, reuse chunks that already exist, or switch compression.
ATTRIBUTE
VALUE
Selector
0x10b744bf
Parameters
ptrs: chunk addresses in order; gzipped_: whether html() should wrap the payload in the inflate bootstrap
Access
External, owner only
Returns
None
Events
ChunksSet(uint256 count, bool gzipped)
FLAG
OBSERVATION
☑
Each pointer must hold code beginning with 0x00. An Externally Owned Account (EOA), an EIP-7702 account and an ordinary contract were each refused in simulation
◇
Any SSTORE2-shaped contract passes, including chunks written by other contracts or by other people. The check is for readability, not origin
◇
The flag is set by the caller. The contract cannot tell whether the bytes are gzip
Freezes both pointer lists and the version permanently. Before setting the flag it re-checks every pointer in both lists and requires at least one dapp chunk.
ATTRIBUTE
VALUE
Selector
0xf83d08ba
Parameters
None
Access
External, owner only
Returns
None
Events
AppLocked()
FLAG
OBSERVATION
☑
One-way. No function clears locked
☑
Refuses any pointer that is not code starting with 0x00. Code that begins with STOP halts on its first instruction, so it cannot self-destruct or change, and an EIP-7702 designator (0xef0100…), which its key holder could re-point, fails the check
◇
Does not check that the chunks decode to a working page, or that html() fits a gateway's gas limit
◇
Ownership survives the lock. The owner can still transfer or renounce it, but no remaining function lets the owner change content
◇
Can be called more than once; a second call re-runs the checks and emits AppLocked() again
△
Not called on either chain at the time of analysis; see Potential Risks
Inherited unchanged from Solady. The owner lives at the fixed slot not(0x8b78c6d8) rather than in sequential storage, and handover expiries in a mapping derived from a separate seed, 0x389a75e1.
FUNCTION
ACCESS
EFFECT
transferOwnership(newOwner)
Owner
Sets the owner immediately. Reverts NewOwnerIsZeroAddress() for zero
renounceOwnership()
Owner
Sets the owner to zero
requestOwnershipHandover()
Anyone
Records a request for the caller, valid for 48 hours (172,800 seconds)
cancelOwnershipHandover()
Anyone
Clears the caller's own request
completeOwnershipHandover(pendingOwner)
Owner
Transfers to pendingOwner if its request is live; otherwise NoHandoverRequest()
transferOwnership is a single step. A wrong address receives full control of an unlocked App at once (Low risk)
◇
All five state-changing ownership functions are payable; ETH sent with them has no way out of App
◇
No handover request was live for the Ops vault at the time of analysis
User Functions
The only functions a non-owner can call that write state are requestOwnershipHandover and cancelOwnershipHandover, covered above. Both affect only the caller's own handover record.
View Functions
Function: html()
Returns the dapp document. Concatenates the bytes of every chunk in chunks. If gzipped is false, returns them as a string. If true, returns a fixed HTML bootstrap with the payload base64-encoded inside it.
ATTRIBUTE
VALUE
Selector
0x33c34ac3
Parameters
None
Access
Anyone
Returns
string — 72,417 bytes on mainnet at the time of analysis
FLAG
OBSERVATION
☑
The base64 in the returned bootstrap decodes to the concatenated chunks, which inflate to the 170,381-byte stored document
◇
The bootstrap needs a browser with DecompressionStream; without it the page stays blank
◇
The call costs about 3.38 million gas as an eth_call (Informational)
◇
The bootstrap re-creates each parsed <script> element so it runs; the source comment says this keeps document order only for inline scripts without attributes
functionhtml()publicviewreturns(stringmemory){bytesmemorydoc=_raw(chunks);if(!gzipped)returnstring(doc);returnstring.concat('<!DOCTYPE html><html><head><meta charset="utf-8"><title>app</title></head><body><script>','(async()=>{const b=atob("',Base64.encode(doc),'");',"const u=new Uint8Array(b.length);for(let i=0;i<b.length;i++)u[i]=b.charCodeAt(i);","const t=await new Response(new Blob([u]).stream().pipeThrough(new DecompressionStream('gzip'))).text();","const d=new DOMParser().parseFromString(t,'text/html');","document.replaceChild(document.importNode(d.documentElement,true),document.documentElement);","for(const s of[...document.querySelectorAll('script')]){const n=document.createElement('script');","for(const a of s.attributes)n.setAttribute(a.name,a.value);","n.textContent=s.textContent;s.replaceWith(n);}})();","</script></body></html>");}
Function: widget()
Returns the concatenated widget chunks as a string, never wrapped or decoded.
ATTRIBUTE
VALUE
Selector
0x700e4707
Parameters
None
Access
Anyone
Returns
string — 8,525 bytes of JavaScript at the time of analysis
Anything else, including ["/"], ["Index.html"], ["widget.js", ""]
404
empty
none
Each row was checked with cast call; the no-widget case used a state override setting widgetChunks to length zero. Matching is exact and case-sensitive.