Skip to content

A proxy for relaying cross chain transactions between Ethereum Mainnet and Optimism. Holds tokens for exclusive use from the origin chain address registered.

License

Notifications You must be signed in to change notification settings

portaldiscovery/optimism-cross-chain-proxy

Repository files navigation

Cross Chain Proxy

Overview

This repo contains cross chain proxy contracts, which are used to hold assets and execute transactions on behalf of addresses from other chains. An example of this is OptimismL1Proxy, which allows an L1 address to have a proxy in Optimism, allowing it to hold assets on Optimism and execute arbitrary transactions on Optimism.

Testing

forge test

will run all the tests in the repo.

Deployment

To deploy the OptimismL1Proxy on Optimism, use

forge script scripts/DeployOptimismL1Proxy.sol \
--sig "run(address)" <desired L1 owner address> \
--rpc-url <your optimism provider URL>

to simulate the deployment transaction, and then

forge script scripts/DeployOptimismL1Proxy.sol \
--sig "run(address)" <desired L1 owner address> \
--rpc-url <your optimism provider URL> \
--private-key <your private key> \
--broadcast

to deploy the contract.

Latest deployment

Optimism

Contract Address
OptimismL1Proxy 0x4d6EC0e31c9177c696Fb49c2Ad04aB766e91F38f

About

A proxy for relaying cross chain transactions between Ethereum Mainnet and Optimism. Holds tokens for exclusive use from the origin chain address registered.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published