Sample data. Built from the compile survey; nothing on this site is deployed or attested yet.
hyperdriveregistry

OpenSea Seaport

Seaport

failingnft-market

Seaport 1.6, OpenSea's order book settlement.

Not on Starknet yet. The lowering stops: blockhash is not supported by the lowering yet; see hyperdrive check
Ethereum
0x0000000000000068F116a894984e2DB1123eB395
Starknet Sepolia
Not deployed yet
Same code, not same state. The Starknet contract runs the same code as the Ethereum one, but it starts empty: balances, positions, owners and settings on Ethereum do not carry over.

What 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.

exact4,085

proved equivalent, no assumption

mapped67

equivalent under a recorded assumption

divergent10

behaves differently on Starknet

blocked0

cannot be preserved; the source must change

divergent 10 findings

HD0150gasleft() uses Starknet gas unitssrc/lib/LowLevelHelpers.sol:37
assembly {

acknowledge, or remove logic that depends on exact gas amounts

Acknowledged: survey: auto-acknowledged to measure the build

HD0150gasleft() uses Starknet gas unitssrc/lib/ReentrancyGuard.sol:449
(ok, ) = tloadTestContract.staticcall{ gas: gasleft() / 10 }("");

acknowledge, or remove logic that depends on exact gas amounts

Acknowledged: survey: auto-acknowledged to measure the build

HD0150gasleft() uses Starknet gas unitssrc/lib/TokenTransferrer.sol:120
assembly {

acknowledge, or remove logic that depends on exact gas amounts

Acknowledged: survey: auto-acknowledged to measure the build

HD0150gasleft() uses Starknet gas unitssrc/lib/TokenTransferrer.sol:350
assembly {

acknowledge, or remove logic that depends on exact gas amounts

Acknowledged: survey: auto-acknowledged to measure the build

HD0150gasleft() uses Starknet gas unitssrc/lib/TokenTransferrer.sol:490
assembly {

acknowledge, or remove logic that depends on exact gas amounts

Acknowledged: survey: auto-acknowledged to measure the build

HD0151block.timestamp / block.number follow Starknet block cadencesrc/lib/AmountDeriver.sol:62
elapsed = block.timestamp - startTime;

acknowledge if your logic uses wall-clock windows, not block counts

Acknowledged: survey: auto-acknowledged to measure the build

HD0151block.timestamp / block.number follow Starknet block cadencesrc/lib/BasicOrderFulfiller.sol:451
assembly {

acknowledge if your logic uses wall-clock windows, not block counts

Acknowledged: survey: auto-acknowledged to measure the build

HD0151block.timestamp / block.number follow Starknet block cadencesrc/lib/CounterManager.sol:43
assembly {

acknowledge if your logic uses wall-clock windows, not block counts

Acknowledged: survey: auto-acknowledged to measure the build

HD0151block.timestamp / block.number follow Starknet block cadencesrc/lib/Verifiers.sol:64
assembly {

acknowledge if your logic uses wall-clock windows, not block counts

Acknowledged: survey: auto-acknowledged to measure the build

HD0153blockhash uses Starknet block hashes, unavailable for the last 10 blockssrc/lib/CounterManager.sol:43
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

src/lib/BasicOrderFulfiller.sol:313msg.sender,
src/lib/BasicOrderFulfiller.sol:332msg.sender,
src/lib/BasicOrderFulfiller.sol:348msg.sender,
src/lib/BasicOrderFulfiller.sol:369msg.sender,
src/lib/BasicOrderFulfiller.sol:979assembly {
src/lib/BasicOrderFulfiller.sol:1172assembly {
src/lib/BasicOrderFulfiller.sol:1249_performERC721Transfer(token, from, msg.sender, identifier);
src/lib/BasicOrderFulfiller.sol:1258msg.sender,
src/lib/BasicOrderFulfiller.sol:1346payable(msg.sender),
src/lib/BasicOrderFulfiller.sol:1387assembly {
src/lib/BasicOrderFulfiller.sol:1397assembly {
src/lib/Consideration.sol:188msg.sender
src/lib/Consideration.sol:361msg.sender,
src/lib/Consideration.sol:553msg.sender
src/lib/ConsiderationEncoder.sol:169dstHead.write(msg.sender);
src/lib/ConsiderationEncoder.sol:412dstHead.offset(ZoneParameters_fulfiller_offset).write(msg.sender);
src/lib/CounterManager.sol:43assembly {
src/lib/FulfillmentApplier.sol:274msg.sender,
src/lib/LowLevelHelpers.sol:103assembly {
src/lib/OrderCombiner.sol:996payable(msg.sender),
src/lib/OrderCombiner.sol:1228assembly {
src/lib/OrderFulfiller.sol:481msg.sender,
src/lib/OrderValidator.sol:736assembly {
src/lib/Verifiers.sol:97assembly {
src/lib/ZoneInteraction.sol:387assembly {
HD0160external call routed through the alias registry11

target addresses resolve through aliases or link symbols in hyperdrive.toml

src/lib/ConsiderationBase.sol:109_CONDUIT_CONTROLLER.getConduitCodeHashes()
src/lib/Executor.sol:158assembly {
src/lib/Executor.sol:459assembly {
src/lib/OrderValidator.sol:633assembly {
src/lib/ReentrancyGuard.sol:449(ok, ) = tloadTestContract.staticcall{ gas: gasleft() / 10 }("");
src/lib/SignatureVerification.sol:72assembly {
src/lib/TokenTransferrer.sol:120assembly {
src/lib/TokenTransferrer.sol:350assembly {
src/lib/TokenTransferrer.sol:490assembly {
src/lib/ZoneInteraction.sol:418assembly {
src/lib/ZoneInteraction.sol:489assembly {
HD0130EVM log emitted as a Starknet event6

indexers read topics from event keys and data from event data

src/lib/BasicOrderFulfiller.sol:979assembly {
src/lib/CounterManager.sol:67emit CounterIncremented(newCounter, msg.sender);
src/lib/OrderCombiner.sol:1039assembly {
src/lib/OrderFulfiller.sol:536emit OrderFulfilled(
src/lib/OrderValidator.sol:767emit OrderCancelled(orderHash, offerer, zone);
src/lib/OrderValidator.sol:863emit OrderValidated(orderHash, orderParameters);
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

src/lib/OrderValidator.sol:633assembly {
src/lib/ReentrancyGuard.sol:449(ok, ) = tloadTestContract.staticcall{ gas: gasleft() / 10 }("");
src/lib/SignatureVerification.sol:72assembly {
src/lib/TokenTransferrer.sol:120assembly {
src/lib/ZoneInteraction.sol:489assembly {
HD0111balance reads the value token balance4

no action needed

src/lib/OrderCombiner.sol:832assembly {
src/lib/OrderCombiner.sol:989assembly {
src/lib/OrderFulfiller.sol:468assembly {
src/lib/OrderFulfiller.sol:492assembly {
HD0121transient storage is scoped by transaction hash4

no action needed

src/lib/ReentrancyGuard.sol:136assembly {
src/lib/ReentrancyGuard.sol:234assembly {
src/lib/ReentrancyGuard.sol:279assembly {
src/lib/ReentrancyGuard.sol:337assembly {
HD0140code size check means 'is deployed' on Starknet4

every Starknet account is a contract: code-length checks on users are always true

src/lib/SignatureVerification.sol:72assembly {
src/lib/TokenTransferrer.sol:120assembly {
src/lib/TokenTransferrer.sol:350assembly {
src/lib/TokenTransferrer.sol:490assembly {
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

src/lib/BasicOrderFulfiller.sol:193assembly {
src/lib/BasicOrderFulfiller.sol:1276uint256 nativeTokensRemaining = msg.value;
src/lib/ReentrancyGuard.sol:337assembly {
HD0152block.chainid is the Starknet chain id3

no action needed; EIP-712 domains will use the Starknet chain id

src/lib/ConsiderationBase.sol:101_CHAIN_ID = block.chainid;
src/lib/ConsiderationBase.sol:128assembly {
src/lib/GettersAndDerivers.sol:327block.chainid == _CHAIN_ID
HD0102address(this) is this contract's 160-bit alias1

no action needed

src/lib/ConsiderationBase.sol:128assembly {
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)

src/lib/ReentrancyGuard.sol:425assembly {

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.