Skip to content

Functions

DISCLAIMER // NFA // DYOR

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.

⊙ generated by robots | curated by humans

METADATA
Contract Address 0x00a9F390...0d25BA (etherscan)
Network Ethereum Mainnet
Analysis Date 2026-11-27

Function Selectors

SELECTOR FUNCTION SIGNATURE CATEGORY
0x32ee2d4e addChunk(bytes) Admin
0xa1b43c92 addWidgetChunk(bytes) Admin
0x10b744bf setChunks(address[],bool) Admin
0x66b9eeef setWidgetChunks(address[]) Admin
0x788bc78c setVersion(string) Admin
0xf83d08ba lock() Admin
0xf2fde38b transferOwnership(address) Admin (Ownable)
0x715018a6 renounceOwnership() Admin (Ownable)
0xf04e283e completeOwnershipHandover(address) Admin (Ownable)
0x25692962 requestOwnershipHandover() User (Ownable)
0x54d1f13d cancelOwnershipHandover() User (Ownable)
0x33c34ac3 html() View
0x700e4707 widget() View
0x1374c460 request(string[],(string,string)[]) View
0xdd473fae resolveMode() View (pure)
0x5a2bc22d chunks(uint256) View
0x328f9c58 widgetChunks(uint256) View
0xf91f0937 chunkCount() View
0xc106800d widgetChunkCount() View
0x963870e6 gzipped() View
0xcf309012 locked() View
0x54fd4d50 version() View
0x8da5cb5b owner() View (Ownable)
0xfee81cf4 ownershipHandoverExpiresAt(address) View (Ownable)

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)
CONDITION REVERT MESSAGE
Caller is not the owner Unauthorized()
App is locked Locked()
Chunk contract cannot be created DeploymentFailed()
function addChunk(bytes calldata data) external onlyOwner returns (address ptr) {
    if (locked) revert Locked();
    ptr = SSTORE2.write(data);
    chunks.push(ptr);
    emit ChunksSet(chunks.length, gzipped);
}

Function: addWidgetChunk(bytes data)

The widget counterpart of addChunk: deploys data as an SSTORE2 chunk and appends it to widgetChunks.

ATTRIBUTE VALUE
Selector 0xa1b43c92
Parameters data: up to 24,575 bytes
Access External, owner only
Returns address ptr
Events WidgetChunksSet(uint256 count)
CONDITION REVERT MESSAGE
Caller is not the owner Unauthorized()
App is locked Locked()
Chunk contract cannot be created DeploymentFailed()
function addWidgetChunk(bytes calldata data) external onlyOwner returns (address ptr) {
    if (locked) revert Locked();
    ptr = SSTORE2.write(data);
    widgetChunks.push(ptr);
    emit WidgetChunksSet(widgetChunks.length);
}

Function: setChunks(address[] ptrs, bool gzipped_)

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
CONDITION REQUIREMENT
Caller Owner
Lock locked == false
List At least one pointer
Each pointer extcodesize > 0 and first code byte 0x00
CONDITION REVERT MESSAGE
Caller is not the owner Unauthorized()
App is locked Locked()
Empty list EmptyDocument()
Pointer with no code CodelessChunk(ptr)
Pointer whose code does not start with 0x00 ForeignChunk(ptr)
function setChunks(address[] calldata ptrs, bool gzipped_) external onlyOwner {
    if (locked) revert Locked();
    if (ptrs.length == 0) revert EmptyDocument();
    delete chunks;
    for (uint256 i; i < ptrs.length; ++i) {
        _requireChunk(ptrs[i]);
        chunks.push(ptrs[i]);
    }
    gzipped = gzipped_;
    emit ChunksSet(ptrs.length, gzipped_);
}

Function: setWidgetChunks(address[] ptrs)

Replaces the whole widget pointer list. There is no compression flag: the widget is always served as stored.

ATTRIBUTE VALUE
Selector 0x66b9eeef
Parameters ptrs: chunk addresses in order
Access External, owner only
Returns None
Events WidgetChunksSet(uint256 count)
FLAG OBSERVATION
◇ An empty list reverts, so once a widget exists this function cannot remove it. Only addWidgetChunk and this function touch the list
◇ The pointers are checked for readability only. A dapp chunk was accepted as a widget pointer in simulation
CONDITION REVERT MESSAGE
Caller is not the owner Unauthorized()
App is locked Locked()
Empty list EmptyDocument()
Pointer with no code CodelessChunk(ptr)
Pointer whose code does not start with 0x00 ForeignChunk(ptr)
function setWidgetChunks(address[] calldata ptrs) external onlyOwner {
    if (locked) revert Locked();
    if (ptrs.length == 0) revert EmptyDocument();
    delete widgetChunks;
    for (uint256 i; i < ptrs.length; ++i) {
        _requireChunk(ptrs[i]);
        widgetChunks.push(ptrs[i]);
    }
    emit WidgetChunksSet(ptrs.length);
}

Function: setVersion(string v)

Replaces the version string. The value is not used by any other function.

ATTRIBUTE VALUE
Selector 0x788bc78c
Parameters v: any string
Access External, owner only
Returns None
Events VersionSet(string version)
FLAG OBSERVATION
◇ The stored value is v0.1. The dapp's own configuration line says 0.1alpha. The two are independent
CONDITION REVERT MESSAGE
Caller is not the owner Unauthorized()
App is locked Locked()
function setVersion(string calldata v) external onlyOwner {
    if (locked) revert Locked();
    version = v;
    emit VersionSet(v);
}

Function: lock()

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
CONDITION REVERT MESSAGE
Caller is not the owner Unauthorized()
No dapp chunks EmptyDocument()
A pointer in either list with no code CodelessChunk(ptr)
A pointer in either list not starting with 0x00 ForeignChunk(ptr)
function lock() external onlyOwner {
    uint256 n = chunks.length;
    if (n == 0) revert EmptyDocument();
    for (uint256 i; i < n; ++i) {
        _requireChunk(chunks[i]);
    }
    uint256 w = widgetChunks.length;
    for (uint256 i; i < w; ++i) {
        _requireChunk(widgetChunks[i]);
    }
    locked = true;
    emit AppLocked();
}

function _requireChunk(address ptr) private view {
    uint256 n;
    bytes32 first;
    assembly {
        n := extcodesize(ptr)
        extcodecopy(ptr, 0x00, 0x00, 0x01)
        first := mload(0x00)
    }
    if (n == 0) revert CodelessChunk(ptr);
    if (first[0] != 0x00) revert ForeignChunk(ptr);
}

Ownership Functions (Solady Ownable)

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()
ownershipHandoverExpiresAt(a) Anyone Expiry timestamp of a's request, or zero

Events: OwnershipTransferred(address indexed oldOwner, address indexed newOwner), OwnershipHandoverRequested(address indexed pendingOwner), OwnershipHandoverCanceled(address indexed pendingOwner).

FLAG OBSERVATION
△ 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
function html() public view returns (string memory) {
    bytes memory doc = _raw(chunks);
    if (!gzipped) return string(doc);
    return string.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
function widget() public view returns (string memory) {
    return string(_raw(widgetChunks));
}

Function: request(string[] resource, KeyValue[] params)

The ERC-5219 entry point. Routes a path, given as segments, to the dapp, the widget or a 404.

ATTRIBUTE VALUE
Selector 0x1374c460
Parameters resource: path segments; second argument (request headers) ignored
Access Anyone
Returns (uint16 statusCode, string body, KeyValue[] headers)
PATH SEGMENTS STATUS BODY CONTENT-TYPE
[], [""], ["index.html"] 200 html() text/html; charset=utf-8
["widget.js"], widget present 200 widget() application/javascript; charset=utf-8
["widget.js"], no widget 404 empty none
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.

function request(string[] memory resource, KeyValue[] memory)
    external view returns (uint16 statusCode, string memory body, KeyValue[] memory headers)
{
    bool root = resource.length == 0
        || (resource.length == 1 && (_eq(resource[0], "") || _eq(resource[0], "index.html")));
    if (root) {
        headers = new KeyValue[](1);
        headers[0] = KeyValue("Content-Type", "text/html; charset=utf-8");
        return (200, html(), headers);
    }
    if (resource.length == 1 && _eq(resource[0], "widget.js") && widgetChunks.length != 0) {
        headers = new KeyValue[](1);
        headers[0] = KeyValue("Content-Type", "application/javascript; charset=utf-8");
        return (200, widget(), headers);
    }
    return (404, "", new KeyValue[](0));
}

Function: resolveMode()

Returns bytes32("5219"), the signal a web3:// client reads to route paths through request().

ATTRIBUTE VALUE
Selector 0xdd473fae
Access Anyone, pure
Returns 0x35323139 followed by zero bytes

Getters

FUNCTION RETURNS VALUE AT ANALYSIS (MAINNET)
chunks(i) Dapp chunk pointer i 3 pointers, see Storage Layout
widgetChunks(i) Widget chunk pointer i 1 pointer
chunkCount() chunks.length 3
widgetChunkCount() widgetChunks.length 1
gzipped() Compression flag true
locked() Lock flag false
version() Version string v0.1
owner() Owner Ops vault
ownershipHandoverExpiresAt(a) Handover expiry for a 0 for the Ops vault

chunks(i) and widgetChunks(i) revert with empty data for an index past the end.