This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An example that removes spending permissions of hacker controlled addresses on erc20 tokens using the paymaster | |
// | |
import { Provider, types, Wallet, utils } from "zksync-ethers"; | |
import { ethers } from "ethers"; | |
const PRIVATE_KEY = "0000000000000000000000000000000000000000000000000000000000000000" | |
const paymasterAddress = "0x0000000000000000000000000000000000000000"; // Paymaster | |
const walletAddresses = [ | |
'0x0000000000000000000000000000000000000000', | |
'0x0000000000000000000000000000000000000000', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Quick way to spin up paymaster for specific wallets | |
// Effective for whitehat recoveries on zk | |
// | |
// Replace Addresses on line 54 - 56 | |
// | |
// what are paymasters? https://docs.zksync.io/build/zksync-101/paymaster | |
// @kuro_lytes | |
// | |
pragma solidity ^0.8.0; |