KintoWalletFactory
Deployment Address
Mainnet: 0x8a4720488CA32f1223ccFE5A087e250fE3BC5D75
Interface: IKintoWalletFactory.sol
Basics
Creates
KintoWallet
instances using a beacon proxy pattern.Method to fund a
KintoWallet
account with ETH.Ensures KYC compliance of wallet owners through integration with
KintoID
.Supports deployment of custom contracts using
CREATE2
.Manages wallet recovery process.
Handles ETH transfers to various entities within the Kinto ecosystem.
Implements an upgradeable beacon for wallet implementations.
Constructor
Constructor Parameters:
Parameter | Type | Explanation |
---|---|---|
|
| Address of the KintoWallet implementation |
|
| Address of the KintoAppRegistry contract |
|
| Address of the KintoID contract |
Initialize
Initialize Function:
Initializes the contract, setting up the beacon and initial wallet version.
State Functions
1. upgradeAllWalletImplementations
(Admin only)
upgradeAllWalletImplementations
(Admin only)Upgrades all wallet implementations to the specified new implementation.
Parameter | Type | Explanation |
---|---|---|
|
| New wallet implementation address. |
2. createAccount
createAccount
Creates an account and returns its address, using bytes32
for salt
.
Parameter | Type | Explanation |
---|---|---|
|
| The owner address. |
|
| The recoverer address. |
|
| The salt to use for the calculation. |
3. startWalletRecovery
(Only callable by recoverer)
startWalletRecovery
(Only callable by recoverer)Initiates the wallet recovery process.
Parameter | Type | Explanation |
---|---|---|
|
| The wallet address |
4. completeWalletRecovery
(Only callable by recoverer)
completeWalletRecovery
(Only callable by recoverer)Completes the wallet recovery process.
Parameter | Type | Explanation |
---|---|---|
|
| The wallet address |
|
| New signers array |
5. approveWalletRecovery
(Admin only)
approveWalletRecovery
(Admin only)Approves a wallet for recovery.
Parameter | Type | Explanation |
---|---|---|
|
| The wallet address to approve recovery. |
6. changeWalletRecoverer
(Only callable by recoverer)
changeWalletRecoverer
(Only callable by recoverer)Changes the wallet's recoverer.
Parameter | Type | Explanation |
---|---|---|
|
| The wallet address |
|
| New recoverer address |
7. fundWallet
fundWallet
Funds a KintoWallet
through the factory.
Parameter | Type | Explanation |
---|---|---|
|
| The wallet address to fund. |
8. claimFromFaucet
claimFromFaucet
Claims from a faucet on behalf of a user.
Parameter | Type | Explanation |
---|---|---|
|
| The faucet address to claim from. |
|
| The signature data for the claim. |
9. sendMoneyToAccount
sendMoneyToAccount
Allows sending money to an account from privileged accounts or KYC accounts.
Parameter | Type | Explanation |
---|---|---|
|
| The target account address to send money to. |
10. sendMoneyToRecoverer
sendMoneyToRecoverer
Sends money to a recoverer from a wallet to facilitate the recovery process.
Parameter | Type | Explanation |
---|---|---|
|
| The wallet address. |
|
| The recoverer address to fund. |
11. sendETHToDeployer
sendETHToDeployer
Sends ETH to the deployer of a wallet.
Parameter | Type | Explanation |
---|---|---|
|
| The deployer address to fund. |
12. sendETHToEOA
sendETHToEOA
Sends ETH to the EOA of an app.
Parameter | Type | Explanation |
---|---|---|
|
| The EOA address to receive funds. |
|
| The associated app address. |
View Functions
1. getWalletTimestamp
getWalletTimestamp
Returns the creation timestamp of a wallet.
Parameter | Type | Explanation |
---|---|---|
|
| The wallet address to query. |
2. getAddress
getAddress
Calculates the counterfactual address of an account.
Parameter | Type | Explanation |
---|---|---|
|
| The owner address of the account. |
|
| The address that can recover the account. |
|
| The salt used for the address calculation. |
Events
KintoWalletFactoryCreation
: Emitted when a new wallet is created.KintoWalletFactoryUpgraded
: Emitted when the wallet implementation is upgraded.
Last updated