📜Contract
ZKSAFE Contract Description
Preparations
npm install -g snarkjsnpm install ethersSafeboxFactory Contract
createSafebox() Activate Safebox
getSafeboxAddr() derive the Safebox address
userToSafebox[] check the activated safebox address
changeSafeboxOwner() transfer Safebox's ownership
Safebox Contract - Normal Operation
owner() check the owner of the Safebox
transferOwnership() transfer Safebox
withdrawETH() withdraw native token
withdrawERC20() 提取ERC20代币
withdrawERC721() 提取ERC721标准NFT
Safebox Contract - Social Recovery
setSocialRecover() set guardians
getSocialRecover() check gurdians
transferOwnership2() transfer Safebox by gurdians
Last updated