OpenSea Seaport
Seaport
failingnft-marketSeaport 1.6, OpenSea's order book settlement.
blockhash is not supported by the lowering yet; see hyperdrive checkWhat is different on Starknet#
hyperdrive check reports every place this contract depends on the EVM, at its Solidity line. Exact counts operations; the other tiers count findings. About tiers.
proved equivalent, no assumption
equivalent under a recorded assumption
behaves differently on Starknet
cannot be preserved; the source must change
divergent 10 findings
assembly {acknowledge, or remove logic that depends on exact gas amounts
Acknowledged: survey: auto-acknowledged to measure the build
(ok, ) = tloadTestContract.staticcall{ gas: gasleft() / 10 }("");acknowledge, or remove logic that depends on exact gas amounts
Acknowledged: survey: auto-acknowledged to measure the build
assembly {acknowledge, or remove logic that depends on exact gas amounts
Acknowledged: survey: auto-acknowledged to measure the build
assembly {acknowledge, or remove logic that depends on exact gas amounts
Acknowledged: survey: auto-acknowledged to measure the build
assembly {acknowledge, or remove logic that depends on exact gas amounts
Acknowledged: survey: auto-acknowledged to measure the build
elapsed = block.timestamp - startTime;acknowledge if your logic uses wall-clock windows, not block counts
Acknowledged: survey: auto-acknowledged to measure the build
assembly {acknowledge if your logic uses wall-clock windows, not block counts
Acknowledged: survey: auto-acknowledged to measure the build
assembly {acknowledge if your logic uses wall-clock windows, not block counts
Acknowledged: survey: auto-acknowledged to measure the build
assembly {acknowledge if your logic uses wall-clock windows, not block counts
Acknowledged: survey: auto-acknowledged to measure the build
assembly {acknowledge, or avoid blockhash
Acknowledged: survey: auto-acknowledged to measure the build
mapped Mapped: equivalent under the assumptions below
HD0101msg.sender is the caller's 160-bit alias25
no action needed; Ethereum-key accounts keep their Ethereum address
HD0160external call routed through the alias registry11
target addresses resolve through aliases or link symbols in hyperdrive.toml
HD0130EVM log emitted as a Starknet event6
indexers read topics from event keys and data from event data
HD0161a failing external call returns false with its revert data (Starknet v0.13.4 or later)5
no action needed; deploy to a network running Starknet v0.13.4 or later
HD0111balance reads the value token balance4
no action needed
HD0121transient storage is scoped by transaction hash4
no action needed
HD0140code size check means 'is deployed' on Starknet4
every Starknet account is a contract: code-length checks on users are always true
HD0110msg.value is an amount of the network's value token3
no action needed; the registry admin sets the value token (ETH or STRK) once per network
HD0152block.chainid is the Starknet chain id3
no action needed; EIP-712 domains will use the Starknet chain id
HD0102address(this) is this contract's 160-bit alias1
no action needed
HD0163new Contract deploys the child's class declared in the alias registry1
declare each child class once per network: registry.declare(selector(name), class_hash)
The other 4,085 operations translate exactly: proved equivalent, with no assumption.
Assumptions#
From the build's certificate: what this contract's equivalence rests on, beyond the Lean proof. What these mean.
Not recorded yet for this contract.
Tested against the EVM#
The same calls run on the compiled Cairo and on revm, compared on return data, reverts, events, storage and balances.
Differential runs: not yet measured.
Cost#
EVM gas on Ethereum next to Starknet L2 gas for the same call. They are different units with different prices, so compare contracts, not the two columns. Raw is the EVM calldata entry point; typed is the Starknet ABI entry point. About costs.
Per-call cost: not yet measured.
Classes#
Starknet limits a class to 81,920 CASM felts. A larger contract is split by function selector into classes that call each other by library call.
Classes: not built yet.
Reproduce#
Rebuild from the Sourcify source and compare class hashes with the deployed ones. Nothing here needs trusting the registry.
hyperdrive verify 0x0000000000000068F116a894984e2DB1123eB395- solc (deployed)
0.8.24- Optimizer runs
- 9,999,999
- Via IR (deployed)
- yes
- Compilation target
src/Seaport.sol:Seaport- Sourcify match
partial
Attestations#
Each attestation is an on-chain record that someone rebuilt this contract and got the deployed class hashes. Anyone who runs hyperdrive verify can add one.
No attestations yet.