🚀Getting Started
Install
Add @guardian-wallet/contracts=lib/guardian-smart-wallet-contracts/contracts/prebuilts/account
in the remappings.txt or remappings list of your foundry.toml file.
Deploy
On Anvil (Locally):
Please make sure that the Anvil chain is running locally on your system. Run anvil
in your terminal to run the Anvil chain.
Deploying AccountFactory.sol
will auto-deploy the following contracts along with it to enable the default features of the Guardian Smart wallet:
AccountFactory.sol
Guardian.sol
AccountGuardian.sol
AccountLock.sol
AccountRecovery.sol
You can capture the deployed contract addresses from the console logs or the events emitted.
To know more about the util contracts deployed by the factory and their scope, visit the Architecture page.
Usage
On the client side:
Use the AccountFactory address directly on the client side to interact with the deployed factory contract.
In smart-contract projects
Last updated