A minimal smart contract wallet that can be operated from remote chain using Polygon LxLy Bridge.
MiniExecImplementation
-- the main implementation contract that will receive messages from LxLy bridge, validate that they are from correct owner, correct network and correct bridge contract. The metadata i.e.remoteOwner
andremoteNetworkId
is stored in theMiniExecFactory
contract and is queried before validating the callback.MiniExecProxy
-- A simple upgradable proxy that gets its implementation address fromMiniExecFactory
. It can only be upgraded if it itself callsupdateImplementation
, i.e. the call itself needs to come from the remote owner and network via the LxLy bridge.MiniExecFactory
-- Factory contract for people to create accounts. Accounts are created as upgradable proxies i.e.MiniExecProxy
. It also stores account metadata likeowner
andnetworkId
. This metadata is immutable. It also stores the current implementation address for all the account proxies.