🚀Getting Started
Install
forge install alfheimrShiven/guardian-smart-wallet-contracts
Deploy
On Anvil (Locally):
make deploy_smart_wallet_factory
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
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
import {AccountFactory} from "@guardian-wallet/contracts/non-upgradeable/AccountFactory.sol;
import {Guardian} from "@guardian-wallet/contracts/utils/Guardian.sol;
import {AccountGuardian} from "@guardian-wallet/contracts/utils/AccountGuardian.sol;
import {AccountLock} from "@guardian-wallet/contracts/utils/AccountLock.sol;
import {AccountRecovery} from "@guardian-wallet/contracts/utils/AccountRecovery.sol;
Last updated
Was this helpful?