π«Deploy a Wallet
https://github.com/KintoXYZ/kinto-core/blob/aa/script/test.sol#L24
This script:
Checks and mint test Kinto IDs for a given EOA
Create KintoWallets for KYC'd EOAs
This script is meant to be used on your local fork. If you are using mainnet, you must head to https://engen.kinto.xyz to KYC and create a Kinto Wallet.
Step 1: We set up the forge script, Kinto utilities will be checking that AA is properly deployed and getting the contract addresses needed for the Kinto ID, the EntryPoint, the KintoWalletFactory and the SponsorPaymaster.
Step 2: At the beginning, we take the deployer private key (this is the key of the address that has deployed the contracts in your chain). After that, through the Kinto ID, we check if the intended recipient wallet has already been KYC'd. If it has not been KYC'd yet we mint the Kinto ID (on Kinto mainnet this will happen automatically after the KYC/KYB process).
Step 3: Finally, once we ensure that the EOA intended to become the first signer of a wallet has the Kinto ID we are ready to use the KintoWalletFactory to create a smart account.
TIP: If you want to create more than one wallet, rerun the script and modify the salt variable.
Last updated