# edgeX v1 Markdown version of https://l2beat.com/layer2s/projects/edgex ## Summary **Warning:** This project is archived and no longer maintained. **Warning:** The edgeX v1 StarkPerpetual contract was frozen on 14th August 2026. It can no longer process trades, deposits or state updates. Remaining funds can only be recovered via the escape hatch. **Warning:** Critical contracts can be upgraded by an EOA which could result in the loss of all funds. **Warning:** Why is the project listed in others? The data availability committee threshold is too low. Consequence: projects with a low DAC threshold rely on the honesty of few entities to safely attest data availability on Ethereum. These entities can collude with the proposer to finalize an unavailable state, which can cause loss of funds. Learn more about the [recategorisation](https://medium.com/l2beat/framework-update-l2-projects-recategorisation-5d43b0d1fe50). - Total Value Secured: $2.55 M (-0.28% compared to seven days ago; canonically bridged $2.55 M, natively minted $0.00, externally bridged $0.00; 0.00% with additional trust assumptions compared to the tokens involved and the Stage assigned to the project's canonical messaging bridge) - TVS by asset: Stablecoins $2.55 M (100%) - Past day UOPS: No data - Type: Other - Purpose: Exchange - Host chain: Ethereum ### Risks - Sequencer failure: Force via L1 (7d delay; sentiment: good) - State validation: Validity proofs (ST) (No execution delay; sentiment: good) - Data availability: External (DAC) (sentiment: bad) - Exit window: None (sentiment: bad) - Proposer failure: Use escape hatch (sentiment: good) ### About edgeX v1 was a high-performance on-chain trading platform, built as an L2 on Starknet's StarkEx tech. ### Links - Website: https://edgex.exchange - Bridge: https://pro.edgex.exchange - Docs: https://edgex-1.gitbook.io/edgeX-documentation - Social: https://x.com/edgeX_exchange, https://discord.com/invite/edgeX, https://medium.com/@edgexexchange, https://t.me/edgeX_exchange - Contracts explorer (Disco): https://disco.l2beat.com/ui/p/edgex ### Badges - CairoVM: This project uses the Cairo Virtual Machine to run its smart contracts and supports the Cairo programming language - Data Availability Committee: There is a Data Availability Committee that provides/attests to data availability - StarkEx: This project was deployed utilizing the StarkEx technology from StarkWare - Uses SHARP: The project uses a shared prover contract - SHARP ## Value Secured The interactive TVS charts are shown on [the HTML page](https://l2beat.com/layer2s/projects/edgex#tvs). Token by token: [TVS breakdown](https://l2beat.com/layer2s/projects/edgex/tvs-breakdown). - [TVS chart (JSON)](https://l2beat.com/api/scaling/tvs/edgex?range=max) - [TVS breakdown by token (JSON)](https://l2beat.com/api/scaling/tvs/edgex/breakdown) ## Activity The interactive activity chart is shown on [the HTML page](https://l2beat.com/layer2s/projects/edgex#activity). Data source: StarkEx Aggregations API - [Activity chart (JSON)](https://l2beat.com/api/scaling/activity/edgex?range=max) ## Onchain costs The section shows the operating costs that L2s pay to Ethereum. The interactive costs chart is shown on [the HTML page](https://l2beat.com/layer2s/projects/edgex#onchain-costs). ### Tracked transactions #### Proof submissions - sharpSubmission: 2024-07-08 10:51 UTC - now; currently used; address: [0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60); selector: 0x9b3b76cc; program hashes: `2530337539466159944237001094809327283009177793361359619481044346150483328860` #### State updates - functionCall: 2024-07-08 10:56 UTC - now; currently used; address: [0xfAaE2946e846133af314d1Df13684c89fA7d83DD](https://etherscan.io/address/0xfAaE2946e846133af314d1Df13684c89fA7d83DD); selector: 0x538f9406; signature: `function updateState(uint256[] programOutput, uint256[] applicationData)` ## Liveness This section shows how "live" the project's operators are by displaying how frequently they submit transactions of the selected type. It also highlights anomalies - significant deviations from their typical schedule. The interactive liveness chart is shown on [the HTML page](https://l2beat.com/layer2s/projects/edgex#liveness). ### Tracked transactions #### Proof submissions - sharpSubmission: 2024-07-08 10:51 UTC - now; currently used; address: [0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60); selector: 0x9b3b76cc; program hashes: `2530337539466159944237001094809327283009177793361359619481044346150483328860` #### State updates - functionCall: 2024-07-08 10:56 UTC - now; currently used; address: [0xfAaE2946e846133af314d1Df13684c89fA7d83DD](https://etherscan.io/address/0xfAaE2946e846133af314d1Df13684c89fA7d83DD); selector: 0x538f9406; signature: `function updateState(uint256[] programOutput, uint256[] applicationData)` ## Milestones & Incidents - 2026-08-14 (incident): [edgeX v1 stops operating](https://etherscan.io/tx/0xf67c799e5f555a6b65d48f4c96ae94e391c38e522d4724c49ec3614ceeac511c). Following an unprocessed forced withdrawal on L1, edgeX v1 contract freezes. - 2026-05-26: [edgeX v2 live on EDGE Chain](https://x.com/edgeX_exchange/status/2059258266006479101). edgeX v2 goes live, moving all trading from the StarkEx-based v1 to EDGE Chain. - 2026-03-10: [EDGE Chain announced](https://blog.arbitrum.io/edgex-announces-edge-chain-on-arbitrum/). edgeX announces EDGE Chain, an app-specific rollup on Arbitrum, as the execution layer for edgeX v2. - 2024-08-03: [edgeX live on Mainnet](https://x.com/edgeX_exchange/status/1819614179760001039). edgeX, a non-custodial decentralized exchange powered by StarkeX, is now live on Mainnet. ## Risk summary **Warning:** 1 address has unverified source code (CRITICAL). - StarkPerpetual: 0xfAaE2946e846133af314d1Df13684c89fA7d83DD ### Funds can be stolen if 1. a contract receives a malicious code upgrade. There is no delay on code upgrades (CRITICAL), 2. the source code of unverified contracts contains malicious code (CRITICAL). ### Funds can be lost if 3. the external data becomes unavailable (CRITICAL), 4. the user is unable to find the counterparty for the force trade. ### Users can be censored if 5. the committee restricts their access to the external data, 6. the operator refuses to include their transactions. However, there exists a mechanism to independently exit the system. ### MEV can be extracted if 7. the operator exploits their centralized position and frontruns user transactions. ## Risk analysis **Warning:** 1 address has unverified source code (CRITICAL). - StarkPerpetual: 0xfAaE2946e846133af314d1Df13684c89fA7d83DD **Warning:** Critical contracts can be upgraded by an EOA which could result in the loss of all funds. ### Sequencer failure Force via L1 (7d delay; sentiment: good) Users can force the sequencer to include a trade or a withdrawal transaction by submitting a request through L1. If the sequencer censors or is down for 7d, users can use the exit hatch to withdraw their funds. Users are required to find a counterparty for the trade by out of system means. ### State validation Validity proofs (ST) (No execution delay; sentiment: good) STARKs are zero knowledge proofs that ensure state correctness. ### Data availability External (DAC) (sentiment: bad) Proof construction relies fully on data that is NOT published onchain. There exists a Data Availability Committee (DAC) with a threshold of 2/6 that is tasked with protecting and supplying the data. ### Exit window None (sentiment: bad) There is no window for users to exit in case of an unwanted upgrade since contracts are instantly upgradable. ### Proposer failure Use escape hatch (sentiment: good) Users are able to trustlessly exit by submitting a Merkle proof of funds. Positions will be closed using the average price from the last batch state update. ## Data availability Set of parties responsible for signing and attesting to the availability of data. ### Risk analysis #### Economic security None (sentiment: bad) There are no onchain assets at risk of being slashed in case of a data withholding attack, and the committee members are not publicly known. #### Fraud detection None (sentiment: bad) There is no fraud detection mechanism in place. A data withholding attack can only be detected by nodes downloading the full data from the DA layer. #### Committee security 2/6 (sentiment: bad) The committee does not meet basic security standards, either due to insufficient size, lack of member diversity, or poorly defined threshold parameters. The system lacks an effective DA bridge and it is reliant on the assumption of an honest sequencer, creating significant risks to data integrity and availability. #### Upgradeability Immutable (sentiment: bad) The bridge smart contract is immutable and cannot be updated. The bridge committee security is low and cannot be improved. #### Relayer failure Self propose (sentiment: good) Anyone can relay data availability commitments to the DA bridge. In case of current relayer failure, users can collect attestations from committee members and propose new data availability commitments to the DA bridge. ### Technology #### Architecture ![starkex architecture](https://l2beat.com/images/da-layer-technology/starkex/architecture.png#center) The Starkware application utilizes a data availability solution that relies on a Committee Service to ensure data persistence. This architecture comprises the following components: - **Availability Gateway**: The primary interface provided by the operator for committee members to access new batch information and submit signed availability claims. - **Data Availability Committee (DAC)**: A group of nodes responsible for storing state data associated with each Merkle root and attesting to data availability by signing claims. - **Data Batches**: Collections of transactions processed in batches that update the state of accounts, resulting in a new Merkle root representing the updated state. Committee members run services that interact with the Availability Gateway to obtain information about new batches and submit their signed availability claims. Each batch includes a unique batch_id, a reference to a previous batch, and a list of account updates. Committee members combine this information with data from the reference batch to compute the new state and verify the Merkle root. When the operator produces a new batch, it must be signed by a minimum number of committee members—as defined by the application's configuration—for it to be accepted onchain. This includes all members designated as mandatory signers. If the operator attempts to submit a batch without the required signatures, it will be rejected, thereby ensuring that data remains available and consistent. Committee members are expected to maintain a database that stores the data associated with each batch, making use of storage solutions with a replication factor of at least 2. #### DA Bridge Architecture ![starkex bridge architecture](https://l2beat.com/images/da-bridge-technology/starkex/architectureL2.png#center) The DA commitments are posted to the destination chain, using the Committee Verifier contract as a DA bridge. The DA commitment consists of a data hash of the transaction batch the Committee has signed off on and a concatenation of ec-signatures by signatories. The Committee Verifier contract verifies the signatures and the data hash and if the required threshold of Committee members has signed off on the data, the hash is stored as a registeredFact in the StarkEx contract. In a separate transaction, the operator calls the updateState() function on the StarkEx contract to update the state. Before the state update is accepted, the StarkEx contract verifies the transaction public inputs by calling the isValid() function, which verifies the hash derived from state update inputs matches the hash stored by the Committee Verifier contract. **Risks** - Funds can be lost if a malicious committee signs a data availability attestation for an unavailable transaction batch. **References** - [StarkEx Committee Service - Source Code](https://github.com/starkware-libs/starkex-data-availability-committee) ## State validation ### Validity proofs Each update to the system state must be accompanied by a ZK proof that ensures that the new state was derived by correctly applying a series of valid user transactions to the previous state. These proofs are then verified on Ethereum by a smart contract. The system state is represented using Merkle roots. **References** - [Enforcing Consistency on the On-Chain State - StarkEx documentation](https://docs.starkware.co/starkex/spot/shared/README-off-chain-state.html#enforcing_consistency_in_the_on_chain_state_spot) ### Prover: [Stone](https://l2beat.com/zk-catalog/stone) The prover is plausibly quantum resistant. There is no publicly known quantum algorithm that efficiently breaks prover's cryptography. #### Trusted setups - Stone (STARK): - Transparent setup, risk N/A (no trusted setup) per the [Trusted Setups Risk Framework](https://forum.l2beat.com/t/the-trusted-setups-framework-for-zk-catalog/381): No trusted setup and no additional setup-related trust assumptions. - Onchain verifiers: [SHARPVerifier](https://etherscan.io/address/0x4956bda1d23F75B988644329c5B06BD1494a72b6#code) (1 successful) - Used in: [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) - Verifiers: 1 successful ### Program Hashes #### StarkEx program ApeX Pro and EdgeX Cairo program that implements an application-specific L2 with spot and perpetual trading functionality. - Hash: `2530337539466159944237001094809327283009177793361359619481044346150483328860` - Repository: code unknown - Verification: not verified - Used in: [edgeX v1](https://l2beat.com/layer2s/projects/edgex) #### Outer bootloader Cairo program StarkWare_GpsStatementVerifier_2026_13 Top-level Cairo program executed by SHARP. - Hash: `3427958597398434235135013788958741576989752718219267963615783564775551242024` - Repository: https://github.com/starkware-libs/cairo-lang/tree/56407b69f3f19f69302a8623baa8c5f71f967eed/src/starkware/cairo/bootloaders/bootloader - Verification: successful - Used in: [Starknet](https://l2beat.com/layer2s/projects/starknet), [Paradex](https://l2beat.com/layer2s/projects/paradex), [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) ##### Verification steps These steps reproduce the current 1,166-felt SHARP outer bootloader on Linux. Dependencies: Git, Bazelisk configured to use Bazel 7.4.1, JDK 21, GMP development headers, Python 3, and Foundry `cast`. 1. Check out the exact public source revision: ```bash git clone https://github.com/starkware-libs/cairo-lang.git cd cairo-lang git checkout 56407b69f3f19f69302a8623baa8c5f71f967eed ``` The Cairo compiler version at this revision is `0.15.0a0`. The entrypoint is `src/starkware/cairo/bootloaders/bootloader/bootloader.cairo`. 2. Build the official proof-mode target: ```bash USE_BAZEL_VERSION=7.4.1 bazelisk build \ //src/starkware/cairo/bootloaders/bootloader:bootloader_program ``` The destination for the compiled program will be printed by the build script, the instruction array will be in the `"data"` json field in hex format. The target uses `--proof_mode --debug_info_with_source`. 3. Check that the compiled instruction array is identical to the one pinned by the immutable Ethereum contract at `0x24105e6697AdD9B4B1BDE04079a91BDFCCa24A47`, which could be fetched by calling: ```bash cast call 0x24105e6697AdD9B4B1BDE04079a91BDFCCa24A47 \ 'getCompiledProgram()(uint256[1166])' \ --rpc-url "$ETHEREUM_RPC_URL" \ --json > /tmp/sharp_outer_bootloader_onchain.json ``` #### Supported simple bootloader programs commitment StarkWare_GpsStatementVerifier_2026_13 Pedersen commitment to the ordered list of accepted simple-bootloader executable hashes. - Hash: `3442855748187296636739564186904728563385971901122957091055928358173521721079` - Repository: https://github.com/starkware-libs/cairo-lang/tree/1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab/src/starkware/cairo/bootloaders/simple_bootloader - Verification: successful - Used in: [Starknet](https://l2beat.com/layer2s/projects/starknet), [Paradex](https://l2beat.com/layer2s/projects/paradex), [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) ##### Verification steps The steps below are supposed to be run on linux OS. They could also be run on macOS, but several tweaks need to be made: update from `lru-dict==1.1.8` to `lru-dict==1.3.0` in `scripts/requirements.txt` and update `python_interpreter` in `bazel_utils/python/stub.sh` to the correct location. 1. Install [bazel](https://bazel.build) version 7.4.1 and `gmp` library using [brew](https://brew.sh): ``` brew install bazelisk USE_BAZEL_VERSION=7.4.1 bazelisk version brew install gmp # or sudo apt-get install libgmp-dev ``` 2. On linux, install JDK if you don't have it: `sudo apt install openjdk-21-jre`. 3. Check out the correct commit of repo: ``` git clone https://github.com/starkware-libs/cairo-lang.git cd cairo-lang git checkout 1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab ``` 4. Update `cairo-lang/src/starkware/cairo/bootloaders/BUILD` file by appending [this snippet](https://l2beat.com/files/starkware_proghash_artifacts/56407b69f3f19f69302a8623baa8c5f71f967eed/BUILD_ADDITION) at the end. 5. Copy [this hash_bootloaders.py script](https://l2beat.com/files/starkware_proghash_artifacts/1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab/hash_bootloaders.py) that computes bootloader hashes into `cairo-lang/src/starkware/cairo/bootloaders/`. 6. Execute the script above by `USE_BAZEL_VERSION=7.4.1 bazel run //src/starkware/cairo/bootloaders:cairo_hash_bootloaders_exe`. The output of the script should contain the correct hash. #### Applicative bootloader Cairo program StarkWare_GpsStatementVerifier_2026_13 Runs an aggregator program, checks that its input matches the recursively unpacked task outputs, and relabels the resulting fact with the domain-separated aggregator program hash. - Hash: `2358844945297786488640123814540854423585455959362109345448922524567546993330` - Repository: https://github.com/starkware-libs/cairo-lang/tree/1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab/src/starkware/cairo/bootloaders/applicative_bootloader - Verification: successful - Used in: [Starknet](https://l2beat.com/layer2s/projects/starknet), [Paradex](https://l2beat.com/layer2s/projects/paradex), [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) ##### Verification steps The steps below are supposed to be run on linux OS. They could also be run on macOS, but several tweaks need to be made: update from `lru-dict==1.1.8` to `lru-dict==1.3.0` in `scripts/requirements.txt` and update `python_interpreter` in `bazel_utils/python/stub.sh` to the correct location. 1. Install [bazel](https://bazel.build) version 7.4.1 and `gmp` library using [brew](https://brew.sh): ``` brew install bazelisk USE_BAZEL_VERSION=7.4.1 bazelisk version brew install gmp # or sudo apt-get install libgmp-dev ``` 2. On linux, install JDK if you don't have it: `sudo apt install openjdk-21-jre`. 3. Check out the correct commit of repo: ``` git clone https://github.com/starkware-libs/cairo-lang.git cd cairo-lang git checkout 1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab ``` 4. Update `cairo-lang/src/starkware/cairo/bootloaders/BUILD` file by appending [this snippet](https://l2beat.com/files/starkware_proghash_artifacts/56407b69f3f19f69302a8623baa8c5f71f967eed/BUILD_ADDITION) at the end. 5. Copy [this hash_bootloaders.py script](https://l2beat.com/files/starkware_proghash_artifacts/1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab/hash_bootloaders.py) that computes bootloader hashes into `cairo-lang/src/starkware/cairo/bootloaders/`. 6. Execute the script above by `USE_BAZEL_VERSION=7.4.1 bazel run //src/starkware/cairo/bootloaders:cairo_hash_bootloaders_exe`. The output of the script should contain the correct hash. #### Supported recursive Cairo verifier programs commitment StarkWare_GpsStatementVerifier_2026_13_4 Pedersen commitment to the ordered allowlist of Cairo programs that may recursively verify and unpack nested SHARP proofs. - Hash: `2549868507195840500193135872505150687001846773665388230794631345999578394351` - Repository: https://github.com/starkware-libs/cairo-lang/blob/cf9bf972bede402a125e8638bb258e77563ae933/src/starkware/cairo/bootloaders/bootloader/supported_program_hashes.json - Verification: successful - Used in: [Starknet](https://l2beat.com/layer2s/projects/starknet), [Paradex](https://l2beat.com/layer2s/projects/paradex), [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) ##### Verification steps This value is not a hash of a single program. It is a Pedersen hash chain committing to the ordered 30-entry `supported_cairo_verifier_program_hashes` list from [supported_program_hashes.json](https://github.com/starkware-libs/cairo-lang/blob/cf9bf972bede402a125e8638bb258e77563ae933/src/starkware/cairo/bootloaders/bootloader/supported_program_hashes.json) at cairo-lang `cf9bf972bede402a125e8638bb258e77563ae933` (v0.14.3). The list contains the program hashes of all Cairo verifier programs that the SHARP bootloader accepts for recursive proof verification: - 21 entries are Stone Cairo verifiers built from the same cairo-lang commit: 7 layouts (`dex`, `recursive`, `small`, `starknet`, `starknet_with_keccak`, `dynamic`, `recursive_with_poseidon`), each hashed with the pedersen (entries 1-7), poseidon (11-17) and blake (21-27) program hash function. - 9 entries are Stwo Cairo verifiers built from [stwo-cairo](https://github.com/starkware-libs/stwo-cairo/tree/sharp-7.4.RC3) at tag `sharp-7.4.RC3` (commit `9b93cc39c87838cee3132ee1f8237590700f0689`): 3 feature builds (`poseidon252_verifier` with poseidon output packing, `qm31_opcode` with poseidon output packing, `qm31_opcode` with blake output packing), each hashed with pedersen (entries 8-10), poseidon (18-20) and blake (28-30). 1. Reproduce the 21 Stone verifier hashes following [these steps](https://l2beat.com/files/starkware_proghash_artifacts/cf9bf972bede402a125e8638bb258e77563ae933/stone_verifier_steps.md). 2. Reproduce the 9 Stwo verifier hashes following [these steps](https://l2beat.com/files/starkware_proghash_artifacts/cf9bf972bede402a125e8638bb258e77563ae933/stwo_verifier_steps.md). You will need [this stwo_features.patch](https://l2beat.com/files/starkware_proghash_artifacts/cf9bf972bede402a125e8638bb258e77563ae933/stwo_features.patch) and [this hash_stwo_verifiers.py helper script](https://l2beat.com/files/starkware_proghash_artifacts/cf9bf972bede402a125e8638bb258e77563ae933/hash_stwo_verifiers.py). 3. From the cairo-lang checkout, using a python 3.9 environment with `scripts/requirements.txt` installed, compute the commitment to the now-verified list: ``` PYTHONPATH=src python -c " import json from starkware.cairo.common.hash_state import compute_hash_on_elements doc = json.load(open('src/starkware/cairo/ bootloaders/bootloader/supported_program_hashes.json')) print(compute_hash_on_elements([int(h, 16) for h in doc['supported_cairo_verifier_program_hashes']])) " ``` The output should be the program hash. ## Upgrades & Governance ### Past upgrades The metrics include upgrades on the currently used proxy contracts. Historical proxy contracts and changes of such are not included. - Count of upgrades: 14 - Last upgrade: 3mo 10d ago - Avg upgrade interval: 5mo 16d - 2026-07-12 11:53 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x7f1e6f9a7268ea6ce5b3b2ce055c3ce420ee776c63c41f57823a0e9cb782e254](https://etherscan.io/tx/0x7f1e6f9a7268ea6ce5b3b2ce055c3ce420ee776c63c41f57823a0e9cb782e254), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2026-07-05 07:25 UTC, upgrade of [StarkPerpetual](https://etherscan.io/address/0xfAaE2946e846133af314d1Df13684c89fA7d83DD#code): transaction [0xa613c279b34ee7e5e767125c40a99b77136d6c4fd69042f618a5e3687a24c939](https://etherscan.io/tx/0xa613c279b34ee7e5e767125c40a99b77136d6c4fd69042f618a5e3687a24c939), implementations: [0x8C43C9bec15d82D153C52518030e0a9590ABD35d](https://etherscan.io/address/0x8C43C9bec15d82D153C52518030e0a9590ABD35d#code) ([diff](https://disco.l2beat.com/diff/eth:0x8C43C9bec15d82D153C52518030e0a9590ABD35d/eth:0x8C43C9bec15d82D153C52518030e0a9590ABD35d)), [0x540Ad8576d2F90f28994ab001622F964945854A8](https://etherscan.io/address/0x540Ad8576d2F90f28994ab001622F964945854A8#code) ([diff](https://disco.l2beat.com/diff/eth:0x540Ad8576d2F90f28994ab001622F964945854A8/eth:0x540Ad8576d2F90f28994ab001622F964945854A8)), [0x80961E33198fa91C43De1Bc1d07516148099D58D](https://etherscan.io/address/0x80961E33198fa91C43De1Bc1d07516148099D58D#code) ([diff](https://disco.l2beat.com/diff/eth:0x1BC9C618B7FA6b5EfAAD31DC801eB55c608B9310/eth:0x80961E33198fa91C43De1Bc1d07516148099D58D)), [0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175](https://etherscan.io/address/0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175#code) ([diff](https://disco.l2beat.com/diff/eth:0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175/eth:0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175)), [0x31e2d974BaC547101413c24C23443AD488423f64](https://etherscan.io/address/0x31e2d974BaC547101413c24C23443AD488423f64#code) ([diff](https://disco.l2beat.com/diff/eth:0x31e2d974BaC547101413c24C23443AD488423f64/eth:0x31e2d974BaC547101413c24C23443AD488423f64)) - 2026-06-21 09:15 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x57f323ff6c828c8fe0c65c9c89d5b242264455cd5f3a5bacd25a78efa17b0ed4](https://etherscan.io/tx/0x57f323ff6c828c8fe0c65c9c89d5b242264455cd5f3a5bacd25a78efa17b0ed4), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2026-04-29 12:20 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0xf088946bc461774cf86ce348fcee4d52bb27ebf049d99f3fab806226053b0d5b](https://etherscan.io/tx/0xf088946bc461774cf86ce348fcee4d52bb27ebf049d99f3fab806226053b0d5b), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2026-02-01 14:05 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x257cfdefacd18f0c221b1e486ee002cb974d14bb292884dfaf7f5aa987cc7170](https://etherscan.io/tx/0x257cfdefacd18f0c221b1e486ee002cb974d14bb292884dfaf7f5aa987cc7170), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2025-12-08 11:08 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0xed93cf713d33ac63297d8c7e2eafc0d9f277b718b4074600536eb9a4205bcb81](https://etherscan.io/tx/0xed93cf713d33ac63297d8c7e2eafc0d9f277b718b4074600536eb9a4205bcb81), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2025-10-19 08:27 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x7b4a25af246b28b6d5bed86942696273a84e57abc629b83072be370df2bdb797](https://etherscan.io/tx/0x7b4a25af246b28b6d5bed86942696273a84e57abc629b83072be370df2bdb797), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2025-05-12 16:09 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x0764cd09cc5c9a96b151dd222bf14b9c33111c80bdddf27721a6406f4c0e1f3f](https://etherscan.io/tx/0x0764cd09cc5c9a96b151dd222bf14b9c33111c80bdddf27721a6406f4c0e1f3f), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2024-07-28 20:08 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x4b25445a8e86b4620b9a19f747122b518d8973975ea73aa474b210395e277b66](https://etherscan.io/tx/0x4b25445a8e86b4620b9a19f747122b518d8973975ea73aa474b210395e277b66), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2024-07-28 10:07 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x7c71592ea4c455371365d843f1a21bbf647aad7d6fae12f7187650ce24805f00](https://etherscan.io/tx/0x7c71592ea4c455371365d843f1a21bbf647aad7d6fae12f7187650ce24805f00), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2024-07-08 10:52 UTC, deployment of [StarkPerpetual](https://etherscan.io/address/0xfAaE2946e846133af314d1Df13684c89fA7d83DD#code): transaction [0xb4a37a973c29b0213d2622a6ab1faac67ac73ca271c14664818b3f9604cb7eaf](https://etherscan.io/tx/0xb4a37a973c29b0213d2622a6ab1faac67ac73ca271c14664818b3f9604cb7eaf), implementations: [0x8C43C9bec15d82D153C52518030e0a9590ABD35d](https://etherscan.io/address/0x8C43C9bec15d82D153C52518030e0a9590ABD35d#code), [0x540Ad8576d2F90f28994ab001622F964945854A8](https://etherscan.io/address/0x540Ad8576d2F90f28994ab001622F964945854A8#code), [0x1BC9C618B7FA6b5EfAAD31DC801eB55c608B9310](https://etherscan.io/address/0x1BC9C618B7FA6b5EfAAD31DC801eB55c608B9310#code), [0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175](https://etherscan.io/address/0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175#code), [0x31e2d974BaC547101413c24C23443AD488423f64](https://etherscan.io/address/0x31e2d974BaC547101413c24C23443AD488423f64#code) - 2024-02-26 09:25 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x31e3caf3940dde662a1e98580259f79963dc5e098793b6519311e201d4e19312](https://etherscan.io/tx/0x31e3caf3940dde662a1e98580259f79963dc5e098793b6519311e201d4e19312), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2023-03-06 12:34 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0xbaa8ffb1b7e5177dbf75de753b9b2ff2fc313b244ff910cfd6d7f1f6254b6e1a](https://etherscan.io/tx/0xbaa8ffb1b7e5177dbf75de753b9b2ff2fc313b244ff910cfd6d7f1f6254b6e1a), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2022-08-07 10:50 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0xc31b74237a0c68aa1b95fe2ed28ad54cf6d7df42a8beab1ea947532c95dda20a](https://etherscan.io/tx/0xc31b74237a0c68aa1b95fe2ed28ad54cf6d7df42a8beab1ea947532c95dda20a), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2022-05-02 16:49 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x604e235c6207b7909f6fc8dc0bd86b410e935dcf2f6f6bd37a5567a89379353a](https://etherscan.io/tx/0x604e235c6207b7909f6fc8dc0bd86b410e935dcf2f6f6bd37a5567a89379353a), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2021-10-24 13:06 UTC, deployment of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x80ebb7a22a207d00e26464db2f8a719d43eb3b836740a693aad13d5ef922f5e4](https://etherscan.io/tx/0x80ebb7a22a207d00e26464db2f8a719d43eb3b836740a693aad13d5ef922f5e4), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ## Updates Each date links the update on the HTML page, which also shows its contract diffs. ### [2026-08-17 11:07 UTC](https://l2beat.com/layer2s/projects/edgex?update=7c187fcb) (1 change) EdgeX v1 StarkEx deployment stops operating and freezes due to a forced withdrawal on L1 not being processed for 7 days. Observable trading activity stopped even before this, so it's a planned sunset of StarkEx deployment as a part of migration to EDGE L3 on arbitrum. ### [2026-07-13 10:31 UTC](https://l2beat.com/layer2s/projects/edgex?update=cb9e7864) (2 changes) Added a DAC member and increased DAC min signatures required to 2. ### [2026-07-08 09:11 UTC](https://l2beat.com/layer2s/projects/edgex?update=b1fb5752) (1 change) Updated global configuration hash that commits to a set of offchain configs. Global configuration contains perp dex parameters and asset info for each synthetic asset: https://docs.starkware.co/starkex/perpetual/on-chain-configuration-perpetual-trading.html#global_configuration. ### [2026-07-06 10:18 UTC](https://l2beat.com/layer2s/projects/edgex?update=b2fea368) (9 changes) Upgraded PerpetualTokensAndRamping facet of Stark diamond to an unverified contract. The diamond changed to not finalized, so probably there will be further upgrades. ### [2026-05-04 10:43 UTC](https://l2beat.com/layer2s/projects/edgex?update=a028fc85) (1 change) Verifier upgrade finalized, it is now actively used. ### [2026-04-30 10:46 UTC](https://l2beat.com/layer2s/projects/edgex?update=253abbdc) (2 changes) Removed one operator (out of two). Verifier automatically changed hasRegisteredFact flag, indicating that verifier upgrade is not finalized yet. ### [2026-01-29 13:58 UTC](https://l2beat.com/layer2s/projects/edgex?update=d45d6989) (1 change) Rotated multisig member. ### [2025-12-29 10:32 UTC](https://l2beat.com/layer2s/projects/edgex?update=87c5f83c) (high severity, 11 changes) Upgraded Safe multisig to version 1.4.1. Also rotated one multisig member, added a new one and increased the threshold. ### [2025-10-31 07:23 UTC](https://l2beat.com/layer2s/projects/edgex?update=2839b398) (high severity, 6 changes) New admin. ### [2025-10-14 08:50 UTC](https://l2beat.com/layer2s/projects/edgex?update=b3d7f3c0) (8 changes) Init discovery of EdgeX. ## Operator ### The system has a centralized operator The operator is the only entity that can propose blocks. A live and trustworthy operator is vital to the health of the system. Typically, the Operator is the hot wallet of the StarkEx service submitting state updates for which proofs have been already submitted and verified. **Risks** - MEV can be extracted if the operator exploits their centralized position and frontruns user transactions. **References** - [Operator - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/shared/contract-management.html#operator_perpetual) ### Users can force exit the system Force exit allows the users to escape censorship by withdrawing their funds. The system allows users to force the withdrawal of funds by submitting a request directly to the contract onchain. The request must be served within 7d. If this does not happen, the system will halt regular operation and permit trustless withdrawal of funds. Perpetual positions can also be force closed before withdrawing, however this requires the user to find the counterparty for the trade themselves. **Risks** - Users can be censored if the operator refuses to include their transactions. However, there exists a mechanism to independently exit the system. - Funds can be lost if the user is unable to find the counterparty for the force trade. **References** - [Censorship Prevention - StarkEx documentation](https://docs.starkware.co/starkex/architecture/overview-architecture.html#8_censorship_prevention) - [Forced Trade - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/forced-actions-escape-hatch-perpetual.html#forcedtrade) ## Withdrawals ### Regular exit The user initiates the withdrawal by submitting a regular transaction on this chain. When the block containing that transaction is settled the funds become available for withdrawal on L1. ZK proofs are required to settle blocks. Finally the user submits an L1 transaction to claim the funds. **References** - [Withdrawal - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/withdrawal-perpetual.html) ### Forced exit If the user experiences censorship from the operator with regular exit they can submit their withdrawal requests directly on L1. The system is then obliged to service this request. Once the force operation is submitted and if the request is serviced, the operation follows the flow of a regular exit. **References** - [Forced Operations - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/shared/README-forced-operations.html) - [Forced Withdrawal - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/perpetual-trading-forced-withdrawal-and-forced-trade.html#forced_withdrawal) - [Forced Trade - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/perpetual-trading-forced-withdrawal-and-forced-trade.html#forced_trade) ### Emergency exit If the enough time deadline passes and the forced exit is still ignored the user can put the system into a frozen state, disallowing further state updates. In that case everybody can withdraw by submitting a merkle proof of their funds with their L1 transaction. **References** - [Forced Operations - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/shared/README-forced-operations.html) - [Forced Withdrawal - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/perpetual-trading-forced-withdrawal-and-forced-trade.html#forced_withdrawal) - [Forced Trade - StarkEx documentation](https://docs.starkware.co/starkex/perpetual/perpetual-trading-forced-withdrawal-and-forced-trade.html#forced_trade) ## Permissions Explore these contracts and permissions in Disco, L2BEAT's contract explorer: https://disco.l2beat.com/ui/p/edgex ### Ethereum #### Actors ##### Safe (0x5781…54d8) Addresses: [0x57814cC6e075f517781cB7c3B42897B3Bb2C54d8](https://etherscan.io/address/0x57814cC6e075f517781cB7c3B42897B3Bb2C54d8) A Multisig with 3/5 threshold. - Can upgrade **with no delay** - StarkPerpetual - Can interact with StarkPerpetual - manage the token admin role - Permissioned to appoint and remove the Operator, register additional verifier and availability verifier contracts (removals are delayed), unfreeze the exchange and manage the governor set Participants (5): [0xb8E3c28e88F33B9F61a37E0eE86d29C48f1cAE09](https://etherscan.io/address/0xb8E3c28e88F33B9F61a37E0eE86d29C48f1cAE09), [0x656A28457C85483AA80499A4E8A739129CC77247](https://etherscan.io/address/0x656A28457C85483AA80499A4E8A739129CC77247), [0xDcaA8bfe9644c27eF3b40EaCB7cE7535D3223798](https://etherscan.io/address/0xDcaA8bfe9644c27eF3b40EaCB7cE7535D3223798), [0x0a7B0Ac8d40754545D5C1fD3607Ba64678a6CBC5](https://etherscan.io/address/0x0a7B0Ac8d40754545D5C1fD3607Ba64678a6CBC5), [0x2818035FC753cAf8843C440919cc183bF7Da3742](https://etherscan.io/address/0x2818035FC753cAf8843C440919cc183bF7Da3742) ##### SHARP Multisig Addresses: [0x21F9eC47b19d95b5C2DDFB6Ae5D4F92fAdacAEc4](https://etherscan.io/address/0x21F9eC47b19d95b5C2DDFB6Ae5D4F92fAdacAEc4) A Multisig with 2/4 threshold. - Can upgrade **with 8d delay** - SHARPVerifierCallProxy [via: - acting directly with 8d delay] - Can interact with SHARPVerifierCallProxy - Administer the CallProxy's `GOVERNANCE_ADMIN` and role-admin hierarchy. This AccessControl role is separate from the outer proxy governor that schedules implementation upgrades - Grant and revoke application roles, including the `APP_GOVERNOR` role that controls caller-specific fallback routes - Route fallback calls from specific callers to a still-active registry in the default verifier's reference chain. This principally determines which verifier and bootloader configuration processes their proof submissions; the proxy's explicit `isValid` entry point always queries the default target Participants (4): [0x0405107a60391Eb51821be373ff978115Ee58488](https://etherscan.io/address/0x0405107a60391Eb51821be373ff978115Ee58488), [0x59232aC80E6d403b6381393e52f4665ECA328558](https://etherscan.io/address/0x59232aC80E6d403b6381393e52f4665ECA328558), [0xebc8416179fE90854fe8B3f774801165572cfD7F](https://etherscan.io/address/0xebc8416179fE90854fe8B3f774801165572cfD7F), [0x955B978F3ee7818dA71fA25c676062E6BC462Fec](https://etherscan.io/address/0x955B978F3ee7818dA71fA25c676062E6BC462Fec) Used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#SHARP%20Multisig), [Starknet](https://l2beat.com/layer2s/projects/starknet#SHARP%20Multisig) ##### Safe (0x5E89…d7D1) Addresses: [0x5E89f8d81C74E311458277EA1Be3d3247c7cd7D1](https://etherscan.io/address/0x5E89f8d81C74E311458277EA1Be3d3247c7cd7D1) A Multisig with 3/4 threshold. - Can interact with AggregationRouterV5 - destroy the contract and rescue funds from it Participants (4): [0xD8A6A3ca1739423de5F634dFAa8BA224EAf16d0e](https://etherscan.io/address/0xD8A6A3ca1739423de5F634dFAa8BA224EAf16d0e), [0x223c0EF36fEe905a40175d92704b1d3624218EE7](https://etherscan.io/address/0x223c0EF36fEe905a40175d92704b1d3624218EE7), [0xd6970196Ff8CeF3Cdd61256C1841A085EEcD3ae8](https://etherscan.io/address/0xd6970196Ff8CeF3Cdd61256C1841A085EEcD3ae8), [0x3A6ED6885608Ead8174789a81Eb2B05600ca89F8](https://etherscan.io/address/0x3A6ED6885608Ead8174789a81Eb2B05600ca89F8) ##### EOA 1 Addresses: [0xCBe6fbf5e3c427013688E04D0fDE56705890c4bE](https://etherscan.io/address/0xCBe6fbf5e3c427013688E04D0fDE56705890c4bE) - Can interact with StarkPerpetual - Permissioned to regularly update the state of the L2 on L1. Each state update must have been proven via the SHARP verifier and contains state diffs for data availability ##### EOA 2 Addresses: [0x17b287122363a0a6dBA7F185347DFcfb9816dA6e](https://etherscan.io/address/0x17b287122363a0a6dBA7F185347DFcfb9816dA6e) - Can upgrade **with no delay** - FinalizableGpsFactAdapter ##### 3 EOAs Addresses: [0x38ACC82ED19e303841e222d7e933846001F969F8](https://etherscan.io/address/0x38ACC82ED19e303841e222d7e933846001F969F8) (EOA 3), [0x5C37D9fCD71F8d0D9E11a58b73D49148cf3A0323](https://etherscan.io/address/0x5C37D9fCD71F8d0D9E11a58b73D49148cf3A0323) (EOA 4), [0x811aBa59F2486A0a6D93b8c708086d9A789dcFe2](https://etherscan.io/address/0x811aBa59F2486A0a6D93b8c708086d9A789dcFe2) (EOA 5) - Can interact with EdgeXDepositor - withdraw any funds from this deposit wrapper contract by reaching a threshold of 2 signers ## Smart contracts ![A diagram of the smart contract architecture](https://l2beat.com/static/images/architecture/edgex.03240be7.png) Explore these contracts and permissions in Disco, L2BEAT's contract explorer: https://disco.l2beat.com/ui/p/edgex ### Ethereum #### StarkPerpetual (escrow) Addresses: [0xfAaE2946e846133af314d1Df13684c89fA7d83DD](https://etherscan.io/address/0xfAaE2946e846133af314d1Df13684c89fA7d83DD#code) (unverified), [0x8C43C9bec15d82D153C52518030e0a9590ABD35d](https://etherscan.io/address/0x8C43C9bec15d82D153C52518030e0a9590ABD35d#code) (Implementation #1 (Upgradable), unverified), [0x540Ad8576d2F90f28994ab001622F964945854A8](https://etherscan.io/address/0x540Ad8576d2F90f28994ab001622F964945854A8#code) (Implementation #2 (Upgradable), unverified), [0x80961E33198fa91C43De1Bc1d07516148099D58D](https://etherscan.io/address/0x80961E33198fa91C43De1Bc1d07516148099D58D#code) (Implementation #3 (Upgradable), unverified), [0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175](https://etherscan.io/address/0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175#code) (Implementation #4 (Upgradable), unverified), [0x31e2d974BaC547101413c24C23443AD488423f64](https://etherscan.io/address/0x31e2d974BaC547101413c24C23443AD488423f64#code) (Implementation #5 (Upgradable), unverified), [0x57814cC6e075f517781cB7c3B42897B3Bb2C54d8](https://etherscan.io/address/0x57814cC6e075f517781cB7c3B42897B3Bb2C54d8#code) (Admin, unverified) **Past upgrades** (Count of upgrades: 1, Last upgrade: 3mo 17d ago, Avg upgrade interval: 1y 1mo) - 2026-07-05 07:25 UTC, upgrade of [StarkPerpetual](https://etherscan.io/address/0xfAaE2946e846133af314d1Df13684c89fA7d83DD#code): transaction [0xa613c279b34ee7e5e767125c40a99b77136d6c4fd69042f618a5e3687a24c939](https://etherscan.io/tx/0xa613c279b34ee7e5e767125c40a99b77136d6c4fd69042f618a5e3687a24c939), implementations: [0x8C43C9bec15d82D153C52518030e0a9590ABD35d](https://etherscan.io/address/0x8C43C9bec15d82D153C52518030e0a9590ABD35d#code) ([diff](https://disco.l2beat.com/diff/eth:0x8C43C9bec15d82D153C52518030e0a9590ABD35d/eth:0x8C43C9bec15d82D153C52518030e0a9590ABD35d)), [0x540Ad8576d2F90f28994ab001622F964945854A8](https://etherscan.io/address/0x540Ad8576d2F90f28994ab001622F964945854A8#code) ([diff](https://disco.l2beat.com/diff/eth:0x540Ad8576d2F90f28994ab001622F964945854A8/eth:0x540Ad8576d2F90f28994ab001622F964945854A8)), [0x80961E33198fa91C43De1Bc1d07516148099D58D](https://etherscan.io/address/0x80961E33198fa91C43De1Bc1d07516148099D58D#code) ([diff](https://disco.l2beat.com/diff/eth:0x1BC9C618B7FA6b5EfAAD31DC801eB55c608B9310/eth:0x80961E33198fa91C43De1Bc1d07516148099D58D)), [0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175](https://etherscan.io/address/0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175#code) ([diff](https://disco.l2beat.com/diff/eth:0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175/eth:0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175)), [0x31e2d974BaC547101413c24C23443AD488423f64](https://etherscan.io/address/0x31e2d974BaC547101413c24C23443AD488423f64#code) ([diff](https://disco.l2beat.com/diff/eth:0x31e2d974BaC547101413c24C23443AD488423f64/eth:0x31e2d974BaC547101413c24C23443AD488423f64)) - 2024-07-08 10:52 UTC, deployment of [StarkPerpetual](https://etherscan.io/address/0xfAaE2946e846133af314d1Df13684c89fA7d83DD#code): transaction [0xb4a37a973c29b0213d2622a6ab1faac67ac73ca271c14664818b3f9604cb7eaf](https://etherscan.io/tx/0xb4a37a973c29b0213d2622a6ab1faac67ac73ca271c14664818b3f9604cb7eaf), implementations: [0x8C43C9bec15d82D153C52518030e0a9590ABD35d](https://etherscan.io/address/0x8C43C9bec15d82D153C52518030e0a9590ABD35d#code), [0x540Ad8576d2F90f28994ab001622F964945854A8](https://etherscan.io/address/0x540Ad8576d2F90f28994ab001622F964945854A8#code), [0x1BC9C618B7FA6b5EfAAD31DC801eB55c608B9310](https://etherscan.io/address/0x1BC9C618B7FA6b5EfAAD31DC801eB55c608B9310#code), [0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175](https://etherscan.io/address/0x45de249eEa8f9CDB70943B17CceDeb42F5BA0175#code), [0x31e2d974BaC547101413c24C23443AD488423f64](https://etherscan.io/address/0x31e2d974BaC547101413c24C23443AD488423f64#code) Central Validium contract. Receives (verified) state roots from the Operator, allows users to consume L2 -> L1 messages and send L1 -> L2 messages. Critical configuration values for the L2's logic are defined here by various governance roles. - Roles: - **admin**: Safe - **operators**: EOA 1 The source code of this contract is not verified on Etherscan. The following tokens are included in the value secured calculation: USDT Can be upgraded by: Safe with no delay #### CpuVerifierAllSolidity_2026_13 Addresses: [0x015381651F240Ed6C44122dCba6Cf807c9442CD6](https://etherscan.io/address/0x015381651F240Ed6C44122dCba6Cf807c9442CD6#code) Immutable Solidity verifier for one Cairo CPU layout. It checks the STARK proof using layout-specific constraint, OODS, Merkle, FRI, and periodic-column helper contracts. The SHARP verifier can select any configured layout by `cairoVerifierId`. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuVerifierAllSolidity_2026_13), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuVerifierAllSolidity_2026_13) #### CpuVerifierDex_2026_13 Addresses: [0x0cD0cDf0132c566db61B691BCEEBA2c4D8cA5CdC](https://etherscan.io/address/0x0cD0cDf0132c566db61B691BCEEBA2c4D8cA5CdC#code) Immutable Solidity verifier for one Cairo CPU layout. It checks the STARK proof using layout-specific constraint, OODS, Merkle, FRI, and periodic-column helper contracts. The SHARP verifier can select any configured layout by `cairoVerifierId`. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuVerifierDex_2026_13), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuVerifierDex_2026_13) #### CairoBootloaderProgram Addresses: [0x24105e6697AdD9B4B1BDE04079a91BDFCCa24A47](https://etherscan.io/address/0x24105e6697AdD9B4B1BDE04079a91BDFCCa24A47#code) Stores the complete compiled Cairo outer bootloader used as the top-level program of a SHARP proof. The SHARP verifier copies these words into public memory, pinning this exact executable onchain independently of the separately committed simple, applicative, and recursive-verifier programs. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CairoBootloaderProgram), [Starknet](https://l2beat.com/layer2s/projects/starknet#CairoBootloaderProgram) #### CpuVerifierRecursive_2026_13 Addresses: [0x2867A4509B0969531641A42a3D4A9B0A07109B6B](https://etherscan.io/address/0x2867A4509B0969531641A42a3D4A9B0A07109B6B#code) Immutable Solidity verifier for one Cairo CPU layout. It checks the STARK proof using layout-specific constraint, OODS, Merkle, FRI, and periodic-column helper contracts. The SHARP verifier can select any configured layout by `cairoVerifierId`. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuVerifierRecursive_2026_13), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuVerifierRecursive_2026_13) #### CpuVerifierSmall_2026_13 Addresses: [0x30F3AB988Cb00fe3Fb5ab891F50c13684770419b](https://etherscan.io/address/0x30F3AB988Cb00fe3Fb5ab891F50c13684770419b#code) Immutable Solidity verifier for one Cairo CPU layout. It checks the STARK proof using layout-specific constraint, OODS, Merkle, FRI, and periodic-column helper contracts. The SHARP verifier can select any configured layout by `cairoVerifierId`. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuVerifierSmall_2026_13), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuVerifierSmall_2026_13) #### MemoryPageFactRegistry_2023_9 Addresses: [0x40864568f679c10aC9e72211500096a5130770fA](https://etherscan.io/address/0x40864568f679c10aC9e72211500096a5130770fA#code) Permissionless commitment calculator and registry used by the Solidity STARK verifiers. Anyone may submit a public-memory page and interaction elements; the contract computes its hash and cumulative product and registers the fact key committing to them, which the CPU verifier must bind to the proof. It is part of the proof verifier, not an application-level program registry. A malicious or nonconforming implementation can break public-memory soundness; binding to a different honest registry generally causes a liveness failure instead. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#MemoryPageFactRegistry_2023_9), [Starknet](https://l2beat.com/layer2s/projects/starknet#MemoryPageFactRegistry_2023_9) #### SHARPVerifierCallProxy Addresses: [0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code), [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) (Implementation (Upgradable)), [0x21F9eC47b19d95b5C2DDFB6Ae5D4F92fAdacAEc4](https://etherscan.io/address/0x21F9eC47b19d95b5C2DDFB6Ae5D4F92fAdacAEc4#code) (Admin) **Past upgrades** (Count of upgrades: 14, Last upgrade: 3mo 10d ago, Avg upgrade interval: 4mo 1d) - 2026-07-12 11:53 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x7f1e6f9a7268ea6ce5b3b2ce055c3ce420ee776c63c41f57823a0e9cb782e254](https://etherscan.io/tx/0x7f1e6f9a7268ea6ce5b3b2ce055c3ce420ee776c63c41f57823a0e9cb782e254), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2026-06-21 09:15 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x57f323ff6c828c8fe0c65c9c89d5b242264455cd5f3a5bacd25a78efa17b0ed4](https://etherscan.io/tx/0x57f323ff6c828c8fe0c65c9c89d5b242264455cd5f3a5bacd25a78efa17b0ed4), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2026-04-29 12:20 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0xf088946bc461774cf86ce348fcee4d52bb27ebf049d99f3fab806226053b0d5b](https://etherscan.io/tx/0xf088946bc461774cf86ce348fcee4d52bb27ebf049d99f3fab806226053b0d5b), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2026-02-01 14:05 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x257cfdefacd18f0c221b1e486ee002cb974d14bb292884dfaf7f5aa987cc7170](https://etherscan.io/tx/0x257cfdefacd18f0c221b1e486ee002cb974d14bb292884dfaf7f5aa987cc7170), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2025-12-08 11:08 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0xed93cf713d33ac63297d8c7e2eafc0d9f277b718b4074600536eb9a4205bcb81](https://etherscan.io/tx/0xed93cf713d33ac63297d8c7e2eafc0d9f277b718b4074600536eb9a4205bcb81), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2025-10-19 08:27 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x7b4a25af246b28b6d5bed86942696273a84e57abc629b83072be370df2bdb797](https://etherscan.io/tx/0x7b4a25af246b28b6d5bed86942696273a84e57abc629b83072be370df2bdb797), implementations: [0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb](https://etherscan.io/address/0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0x3597c5CBCbCB30079a0bD2A68cDE5f98272f9feb)) - 2025-05-12 16:09 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x0764cd09cc5c9a96b151dd222bf14b9c33111c80bdddf27721a6406f4c0e1f3f](https://etherscan.io/tx/0x0764cd09cc5c9a96b151dd222bf14b9c33111c80bdddf27721a6406f4c0e1f3f), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2024-07-28 20:08 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x4b25445a8e86b4620b9a19f747122b518d8973975ea73aa474b210395e277b66](https://etherscan.io/tx/0x4b25445a8e86b4620b9a19f747122b518d8973975ea73aa474b210395e277b66), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2024-07-28 10:07 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x7c71592ea4c455371365d843f1a21bbf647aad7d6fae12f7187650ce24805f00](https://etherscan.io/tx/0x7c71592ea4c455371365d843f1a21bbf647aad7d6fae12f7187650ce24805f00), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2024-02-26 09:25 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x31e3caf3940dde662a1e98580259f79963dc5e098793b6519311e201d4e19312](https://etherscan.io/tx/0x31e3caf3940dde662a1e98580259f79963dc5e098793b6519311e201d4e19312), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2024-02-26 09:25 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x31e3caf3940dde662a1e98580259f79963dc5e098793b6519311e201d4e19312](https://etherscan.io/tx/0x31e3caf3940dde662a1e98580259f79963dc5e098793b6519311e201d4e19312), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2023-03-06 12:34 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0xbaa8ffb1b7e5177dbf75de753b9b2ff2fc313b244ff910cfd6d7f1f6254b6e1a](https://etherscan.io/tx/0xbaa8ffb1b7e5177dbf75de753b9b2ff2fc313b244ff910cfd6d7f1f6254b6e1a), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2022-08-07 10:50 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0xc31b74237a0c68aa1b95fe2ed28ad54cf6d7df42a8beab1ea947532c95dda20a](https://etherscan.io/tx/0xc31b74237a0c68aa1b95fe2ed28ad54cf6d7df42a8beab1ea947532c95dda20a), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2022-05-02 16:49 UTC, upgrade of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x604e235c6207b7909f6fc8dc0bd86b410e935dcf2f6f6bd37a5567a89379353a](https://etherscan.io/tx/0x604e235c6207b7909f6fc8dc0bd86b410e935dcf2f6f6bd37a5567a89379353a), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) ([diff](https://disco.l2beat.com/diff/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458/eth:0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458)) - 2021-10-24 13:06 UTC, deployment of [SHARPVerifierCallProxy](https://etherscan.io/address/0x47312450B3Ac8b5b8e247a6bB6d523e7605bDb60#code): transaction [0x80ebb7a22a207d00e26464db2f8a719d43eb3b836740a693aad13d5ef922f5e4](https://etherscan.io/tx/0x80ebb7a22a207d00e26464db2f8a719d43eb3b836740a693aad13d5ef922f5e4), implementations: [0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458](https://etherscan.io/address/0xD4C4044ACa68ebBcB81B13cC2699e1Bca2d3F458#code) Upgradeable call router through which Starknet and other applications access SHARP fact registries. It uses `call`, not `delegatecall`, so facts and immutable verifier configuration remain at each target registry. The explicit `isValid` entry point always queries the default target. Other calls handled by the fallback, principally proof submissions, can be routed per caller to a still-active registry in the default target's reference chain. The default target can be replaced by SHARP Multisig after 8d. - Roles: - **admin**: SHARP Multisig - **appGovernor**: SHARP Multisig - **appRoleAdmin**: SHARP Multisig - **governanceAdmin**: SHARP Multisig Can be upgraded by: SHARP Multisig with 8d delay Proxy used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#SHARPVerifierCallProxy), [Starknet](https://l2beat.com/layer2s/projects/starknet#SHARPVerifierCallProxy) #### SHARPVerifier Addresses: [0x4956bda1d23F75B988644329c5B06BD1494a72b6](https://etherscan.io/address/0x4956bda1d23F75B988644329c5B06BD1494a72b6#code) Immutable GPS statement verifier shared by Starknet and other StarkWare systems. It verifies a STARK proof of the exact Cairo bootloader stored onchain, forces the bootloader configuration into public memory, and registers a fact for every bootloader task. A fact is also considered valid when it exists in the time-limited reference fact registry. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#SHARPVerifier), [Starknet](https://l2beat.com/layer2s/projects/starknet#SHARPVerifier) #### SHARPVerifier_2026_13_1 Addresses: [0x5C1Ce45534A9c5f7F3E6683Cd79a8ad57EE3a9fe](https://etherscan.io/address/0x5C1Ce45534A9c5f7F3E6683Cd79a8ad57EE3a9fe#code) Immutable GPS statement verifier shared by Starknet and other StarkWare systems. It verifies a STARK proof of the exact Cairo bootloader stored onchain, forces the bootloader configuration into public memory, and registers a fact for every bootloader task. A fact is also considered valid when it exists in the time-limited reference fact registry. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#SHARPVerifier_2026_13_1), [Starknet](https://l2beat.com/layer2s/projects/starknet#SHARPVerifier_2026_13_1) #### CpuVerifierDexWithBitwise_2026_13 Addresses: [0x6a67796ee97700B5B5f5aFBCFFDCbc5F80803F11](https://etherscan.io/address/0x6a67796ee97700B5B5f5aFBCFFDCbc5F80803F11#code) Immutable Solidity verifier for one Cairo CPU layout. It checks the STARK proof using layout-specific constraint, OODS, Merkle, FRI, and periodic-column helper contracts. The SHARP verifier can select any configured layout by `cairoVerifierId`. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuVerifierDexWithBitwise_2026_13), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuVerifierDexWithBitwise_2026_13) #### CpuVerifierStarknet_2026_13 Addresses: [0x71574057D12541ccDa98643aC56441838353A26D](https://etherscan.io/address/0x71574057D12541ccDa98643aC56441838353A26D#code) Immutable Solidity verifier for one Cairo CPU layout. It checks the STARK proof using layout-specific constraint, OODS, Merkle, FRI, and periodic-column helper contracts. The SHARP verifier can select any configured layout by `cairoVerifierId`. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuVerifierStarknet_2026_13), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuVerifierStarknet_2026_13) #### SHARPVerifier_2026_13_2 Addresses: [0x7Da1225C752ab37E610a242D9D8a0548262E3fF7](https://etherscan.io/address/0x7Da1225C752ab37E610a242D9D8a0548262E3fF7#code) Immutable GPS statement verifier shared by Starknet and other StarkWare systems. It verifies a STARK proof of the exact Cairo bootloader stored onchain, forces the bootloader configuration into public memory, and registers a fact for every bootloader task. A fact is also considered valid when it exists in the time-limited reference fact registry. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#SHARPVerifier_2026_13_2), [Starknet](https://l2beat.com/layer2s/projects/starknet#SHARPVerifier_2026_13_2) #### CpuVerifierRecursiveLargeOutput_2026_13 Addresses: [0xbe0F8F150Fd10798524B4de80eD75751658CAEF3](https://etherscan.io/address/0xbe0F8F150Fd10798524B4de80eD75751658CAEF3#code) Immutable Solidity verifier for one Cairo CPU layout. It checks the STARK proof using layout-specific constraint, OODS, Merkle, FRI, and periodic-column helper contracts. The SHARP verifier can select any configured layout by `cairoVerifierId`. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuVerifierRecursiveLargeOutput_2026_13), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuVerifierRecursiveLargeOutput_2026_13) #### MemoryPageFactRegistry Addresses: [0xe583BcDE0160b637330b27a3ea1F3c02ba2eC460](https://etherscan.io/address/0xe583BcDE0160b637330b27a3ea1F3c02ba2eC460#code) Permissionless commitment calculator and registry used by the Solidity STARK verifiers. Anyone may submit a public-memory page and interaction elements; the contract computes its hash and cumulative product and registers the fact key committing to them, which the CPU verifier must bind to the proof. It is part of the proof verifier, not an application-level program registry. A malicious or nonconforming implementation can break public-memory soundness; binding to a different honest registry generally causes a liveness failure instead. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#MemoryPageFactRegistry), [Starknet](https://l2beat.com/layer2s/projects/starknet#MemoryPageFactRegistry) #### SHARPVerifier_2026_13_3 Addresses: [0xE67515a751291445B85b2F176c1eCdf08e86b406](https://etherscan.io/address/0xE67515a751291445B85b2F176c1eCdf08e86b406#code) Immutable GPS statement verifier shared by Starknet and other StarkWare systems. It verifies a STARK proof of the exact Cairo bootloader stored onchain, forces the bootloader configuration into public memory, and registers a fact for every bootloader task. A fact is also considered valid when it exists in the time-limited reference fact registry. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#SHARPVerifier_2026_13_3), [Starknet](https://l2beat.com/layer2s/projects/starknet#SHARPVerifier_2026_13_3) #### CpuVerifierPerpetual_2026_13 Addresses: [0xFFC7974cd74b95f631f454cd787AAc28F0476b44](https://etherscan.io/address/0xFFC7974cd74b95f631f454cd787AAc28F0476b44#code) Immutable Solidity verifier for one Cairo CPU layout. It checks the STARK proof using layout-specific constraint, OODS, Merkle, FRI, and periodic-column helper contracts. The SHARP verifier can select any configured layout by `cairoVerifierId`. Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuVerifierPerpetual_2026_13), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuVerifierPerpetual_2026_13) #### AggregationRouterV5 Addresses: [0x1111111254EEB25477B68fb85Ed929f73A960582](https://etherscan.io/address/0x1111111254EEB25477B68fb85Ed929f73A960582#code) 1inch DEX aggregator supporting RFQ fills, limit-order fills and direct DEX swaps. - Roles: - **owner**: Safe #### FinalizableCommittee Addresses: [0x23bf3dcc14680162b7f5355aAbb56D31823c946e](https://etherscan.io/address/0x23bf3dcc14680162b7f5355aAbb56D31823c946e#code) DAC with admin funtions to manage members. Admins are not discoverable and thus not shown here. #### FinalizableGpsFactAdapter Addresses: [0x4abBc1826389aC0FEaA49E70c30a041b665e8562](https://etherscan.io/address/0x4abBc1826389aC0FEaA49E70c30a041b665e8562#code) Adapter between the core contract and the SHARPVerifierCallProxy. Stores the Cairo programHash (`2530337539466159944237001094809327283009177793361359619481044346150483328860`), which can be changed until the adapter is finalized. - Roles: - **owner**: EOA 2 if the adapter is not finalized Can be upgraded by: EOA 2 with no delay #### PerpetualEscapeVerifier Addresses: [0xaadFdB9CAc145c65f2284fBe24600d07fb37F7BD](https://etherscan.io/address/0xaadFdB9CAc145c65f2284fBe24600d07fb37F7BD#code) Special verifier for the escape() function. #### EdgeXDepositor Addresses: [0xC0a1a1e4AF873E9A37a0caC37F3aB81152432Cc5](https://etherscan.io/address/0xC0a1a1e4AF873E9A37a0caC37F3aB81152432Cc5#code) A deposit wrapper that allows users to deposit arbitrary tokens to EdgeX. Tokens are swapped to USDT via 1inch and deposited to edgeX. This deposit wrapper also has fast withdrawal support using liquidity providers, but it seems deprecated in practice. Standard direct deposits and withdrawals of USDT at the StarkPerpetual contract are fully supported. - Roles: - **signers**: EOA 3, EOA 4, EOA 5 #### CpuFrilessVerifier (8 instances) Addresses: [0x03Fa911dfCa026D9C8Edb508851b390accF912e8](https://etherscan.io/address/0x03Fa911dfCa026D9C8Edb508851b390accF912e8#code), [0x217750c27bE9147f9e358D9FF26a8224F8aCC214](https://etherscan.io/address/0x217750c27bE9147f9e358D9FF26a8224F8aCC214#code), [0x630A97901Ac29590DF83f4A64B8D490D54caf239](https://etherscan.io/address/0x630A97901Ac29590DF83f4A64B8D490D54caf239#code), [0x78Af2BFB12Db15d35f7dE8DD77f29C299C78c590](https://etherscan.io/address/0x78Af2BFB12Db15d35f7dE8DD77f29C299C78c590#code), [0x8488e8f4e26eBa40faE229AB653d98E341cbE57B](https://etherscan.io/address/0x8488e8f4e26eBa40faE229AB653d98E341cbE57B#code), [0x9E614a417f8309575fC11b175A51599661f2Bd21](https://etherscan.io/address/0x9E614a417f8309575fC11b175A51599661f2Bd21#code), [0xC879aF7D5eD80e4676C203FD300E640C297F31e3](https://etherscan.io/address/0xC879aF7D5eD80e4676C203FD300E640C297F31e3#code), [0xe9664D230490d5A515ef7Ef30033d8075a8D0E24](https://etherscan.io/address/0xe9664D230490d5A515ef7Ef30033d8075a8D0E24#code) Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CpuFrilessVerifier), [Starknet](https://l2beat.com/layer2s/projects/starknet#CpuFrilessVerifier) #### CairoBootloaderProgram_2022_7 Addresses: [0x5d07afFAfc8721Ef3dEe4D11A2D1484CBf6A9dDf](https://etherscan.io/address/0x5d07afFAfc8721Ef3dEe4D11A2D1484CBf6A9dDf#code) Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#CairoBootloaderProgram_2022_7), [Starknet](https://l2beat.com/layer2s/projects/starknet#CairoBootloaderProgram_2022_7) #### MemoryPageFactRegistry_2022_7 Addresses: [0xFD14567eaf9ba941cB8c8a94eEC14831ca7fD1b4](https://etherscan.io/address/0xFD14567eaf9ba941cB8c8a94eEC14831ca7fD1b4#code) Implementation used in: [Paradex](https://l2beat.com/layer2s/projects/paradex#MemoryPageFactRegistry_2022_7), [Starknet](https://l2beat.com/layer2s/projects/starknet#MemoryPageFactRegistry_2022_7) The current deployment carries some associated risks: - Funds can be stolen if a contract receives a malicious code upgrade. There is no delay on code upgrades (CRITICAL). - Funds can be stolen if the source code of unverified contracts contains malicious code (CRITICAL). ### Program Hashes #### StarkEx program ApeX Pro and EdgeX Cairo program that implements an application-specific L2 with spot and perpetual trading functionality. - Hash: `2530337539466159944237001094809327283009177793361359619481044346150483328860` - Repository: code unknown - Verification: not verified - Used in: [edgeX v1](https://l2beat.com/layer2s/projects/edgex) #### Outer bootloader Cairo program StarkWare_GpsStatementVerifier_2026_13 Top-level Cairo program executed by SHARP. - Hash: `3427958597398434235135013788958741576989752718219267963615783564775551242024` - Repository: https://github.com/starkware-libs/cairo-lang/tree/56407b69f3f19f69302a8623baa8c5f71f967eed/src/starkware/cairo/bootloaders/bootloader - Verification: successful - Used in: [Starknet](https://l2beat.com/layer2s/projects/starknet), [Paradex](https://l2beat.com/layer2s/projects/paradex), [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) ##### Verification steps These steps reproduce the current 1,166-felt SHARP outer bootloader on Linux. Dependencies: Git, Bazelisk configured to use Bazel 7.4.1, JDK 21, GMP development headers, Python 3, and Foundry `cast`. 1. Check out the exact public source revision: ```bash git clone https://github.com/starkware-libs/cairo-lang.git cd cairo-lang git checkout 56407b69f3f19f69302a8623baa8c5f71f967eed ``` The Cairo compiler version at this revision is `0.15.0a0`. The entrypoint is `src/starkware/cairo/bootloaders/bootloader/bootloader.cairo`. 2. Build the official proof-mode target: ```bash USE_BAZEL_VERSION=7.4.1 bazelisk build \ //src/starkware/cairo/bootloaders/bootloader:bootloader_program ``` The destination for the compiled program will be printed by the build script, the instruction array will be in the `"data"` json field in hex format. The target uses `--proof_mode --debug_info_with_source`. 3. Check that the compiled instruction array is identical to the one pinned by the immutable Ethereum contract at `0x24105e6697AdD9B4B1BDE04079a91BDFCCa24A47`, which could be fetched by calling: ```bash cast call 0x24105e6697AdD9B4B1BDE04079a91BDFCCa24A47 \ 'getCompiledProgram()(uint256[1166])' \ --rpc-url "$ETHEREUM_RPC_URL" \ --json > /tmp/sharp_outer_bootloader_onchain.json ``` #### Supported simple bootloader programs commitment StarkWare_GpsStatementVerifier_2026_13 Pedersen commitment to the ordered list of accepted simple-bootloader executable hashes. - Hash: `3442855748187296636739564186904728563385971901122957091055928358173521721079` - Repository: https://github.com/starkware-libs/cairo-lang/tree/1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab/src/starkware/cairo/bootloaders/simple_bootloader - Verification: successful - Used in: [Starknet](https://l2beat.com/layer2s/projects/starknet), [Paradex](https://l2beat.com/layer2s/projects/paradex), [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) ##### Verification steps The steps below are supposed to be run on linux OS. They could also be run on macOS, but several tweaks need to be made: update from `lru-dict==1.1.8` to `lru-dict==1.3.0` in `scripts/requirements.txt` and update `python_interpreter` in `bazel_utils/python/stub.sh` to the correct location. 1. Install [bazel](https://bazel.build) version 7.4.1 and `gmp` library using [brew](https://brew.sh): ``` brew install bazelisk USE_BAZEL_VERSION=7.4.1 bazelisk version brew install gmp # or sudo apt-get install libgmp-dev ``` 2. On linux, install JDK if you don't have it: `sudo apt install openjdk-21-jre`. 3. Check out the correct commit of repo: ``` git clone https://github.com/starkware-libs/cairo-lang.git cd cairo-lang git checkout 1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab ``` 4. Update `cairo-lang/src/starkware/cairo/bootloaders/BUILD` file by appending [this snippet](https://l2beat.com/files/starkware_proghash_artifacts/56407b69f3f19f69302a8623baa8c5f71f967eed/BUILD_ADDITION) at the end. 5. Copy [this hash_bootloaders.py script](https://l2beat.com/files/starkware_proghash_artifacts/1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab/hash_bootloaders.py) that computes bootloader hashes into `cairo-lang/src/starkware/cairo/bootloaders/`. 6. Execute the script above by `USE_BAZEL_VERSION=7.4.1 bazel run //src/starkware/cairo/bootloaders:cairo_hash_bootloaders_exe`. The output of the script should contain the correct hash. #### Applicative bootloader Cairo program StarkWare_GpsStatementVerifier_2026_13 Runs an aggregator program, checks that its input matches the recursively unpacked task outputs, and relabels the resulting fact with the domain-separated aggregator program hash. - Hash: `2358844945297786488640123814540854423585455959362109345448922524567546993330` - Repository: https://github.com/starkware-libs/cairo-lang/tree/1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab/src/starkware/cairo/bootloaders/applicative_bootloader - Verification: successful - Used in: [Starknet](https://l2beat.com/layer2s/projects/starknet), [Paradex](https://l2beat.com/layer2s/projects/paradex), [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) ##### Verification steps The steps below are supposed to be run on linux OS. They could also be run on macOS, but several tweaks need to be made: update from `lru-dict==1.1.8` to `lru-dict==1.3.0` in `scripts/requirements.txt` and update `python_interpreter` in `bazel_utils/python/stub.sh` to the correct location. 1. Install [bazel](https://bazel.build) version 7.4.1 and `gmp` library using [brew](https://brew.sh): ``` brew install bazelisk USE_BAZEL_VERSION=7.4.1 bazelisk version brew install gmp # or sudo apt-get install libgmp-dev ``` 2. On linux, install JDK if you don't have it: `sudo apt install openjdk-21-jre`. 3. Check out the correct commit of repo: ``` git clone https://github.com/starkware-libs/cairo-lang.git cd cairo-lang git checkout 1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab ``` 4. Update `cairo-lang/src/starkware/cairo/bootloaders/BUILD` file by appending [this snippet](https://l2beat.com/files/starkware_proghash_artifacts/56407b69f3f19f69302a8623baa8c5f71f967eed/BUILD_ADDITION) at the end. 5. Copy [this hash_bootloaders.py script](https://l2beat.com/files/starkware_proghash_artifacts/1c5dace6fbd1dc9d1ae2eb878dc1dd85f23512ab/hash_bootloaders.py) that computes bootloader hashes into `cairo-lang/src/starkware/cairo/bootloaders/`. 6. Execute the script above by `USE_BAZEL_VERSION=7.4.1 bazel run //src/starkware/cairo/bootloaders:cairo_hash_bootloaders_exe`. The output of the script should contain the correct hash. #### Supported recursive Cairo verifier programs commitment StarkWare_GpsStatementVerifier_2026_13_4 Pedersen commitment to the ordered allowlist of Cairo programs that may recursively verify and unpack nested SHARP proofs. - Hash: `2549868507195840500193135872505150687001846773665388230794631345999578394351` - Repository: https://github.com/starkware-libs/cairo-lang/blob/cf9bf972bede402a125e8638bb258e77563ae933/src/starkware/cairo/bootloaders/bootloader/supported_program_hashes.json - Verification: successful - Used in: [Starknet](https://l2beat.com/layer2s/projects/starknet), [Paradex](https://l2beat.com/layer2s/projects/paradex), [Sorare](https://l2beat.com/layer2s/projects/sorare), [edgeX v1](https://l2beat.com/layer2s/projects/edgex), [tanX](https://l2beat.com/layer2s/projects/tanx), [Myria](https://l2beat.com/layer2s/projects/myria) ##### Verification steps This value is not a hash of a single program. It is a Pedersen hash chain committing to the ordered 30-entry `supported_cairo_verifier_program_hashes` list from [supported_program_hashes.json](https://github.com/starkware-libs/cairo-lang/blob/cf9bf972bede402a125e8638bb258e77563ae933/src/starkware/cairo/bootloaders/bootloader/supported_program_hashes.json) at cairo-lang `cf9bf972bede402a125e8638bb258e77563ae933` (v0.14.3). The list contains the program hashes of all Cairo verifier programs that the SHARP bootloader accepts for recursive proof verification: - 21 entries are Stone Cairo verifiers built from the same cairo-lang commit: 7 layouts (`dex`, `recursive`, `small`, `starknet`, `starknet_with_keccak`, `dynamic`, `recursive_with_poseidon`), each hashed with the pedersen (entries 1-7), poseidon (11-17) and blake (21-27) program hash function. - 9 entries are Stwo Cairo verifiers built from [stwo-cairo](https://github.com/starkware-libs/stwo-cairo/tree/sharp-7.4.RC3) at tag `sharp-7.4.RC3` (commit `9b93cc39c87838cee3132ee1f8237590700f0689`): 3 feature builds (`poseidon252_verifier` with poseidon output packing, `qm31_opcode` with poseidon output packing, `qm31_opcode` with blake output packing), each hashed with pedersen (entries 8-10), poseidon (18-20) and blake (28-30). 1. Reproduce the 21 Stone verifier hashes following [these steps](https://l2beat.com/files/starkware_proghash_artifacts/cf9bf972bede402a125e8638bb258e77563ae933/stone_verifier_steps.md). 2. Reproduce the 9 Stwo verifier hashes following [these steps](https://l2beat.com/files/starkware_proghash_artifacts/cf9bf972bede402a125e8638bb258e77563ae933/stwo_verifier_steps.md). You will need [this stwo_features.patch](https://l2beat.com/files/starkware_proghash_artifacts/cf9bf972bede402a125e8638bb258e77563ae933/stwo_features.patch) and [this hash_stwo_verifiers.py helper script](https://l2beat.com/files/starkware_proghash_artifacts/cf9bf972bede402a125e8638bb258e77563ae933/hash_stwo_verifiers.py). 3. From the cairo-lang checkout, using a python 3.9 environment with `scripts/requirements.txt` installed, compute the commitment to the now-verified list: ``` PYTHONPATH=src python -c " import json from starkware.cairo.common.hash_state import compute_hash_on_elements doc = json.load(open('src/starkware/cairo/ bootloaders/bootloader/supported_program_hashes.json')) print(compute_hash_on_elements([int(h, 16) for h in doc['supported_cairo_verifier_program_hashes']])) " ``` The output should be the program hash.