I need to create a program similar to this: https://youtu.be/Wecy7pvpZi8 but with some changes.
I need this program to interact with the zkSync network automatically on as many wallets as possible, while consuming as little fees as possible.(I can create a list of private keys which I upload to netlify environment variables) This is the TLDR overview of the project:
Take Eth from Arbitrum network Send it to zkSync network Perform tasks on zkSync network Send Eth back to Arbitrum Transfer Eth to next wallet Repeat
I really like the setup from the above video so I'd prefer something like that. If you have better ideas I'd love to hear them.
These are the specific tasks in more detail:
Wallet 1 tasks:
1. Bridge some Eth to from Arbitrum to zkSync Lite using the Orbiter bridge (https://www.orbiter.finance/) (https://lite.zksync.io/) 2. Mint NFT in zkSync Lite using a CCID from a provided list 3. Make a swap to USDC and back to ETH using ZigZag exchange (https://trade.zigzag.exchange/?market=ETH-USDC&network=zksync)
(zk Lite tasks done, now for zkSync Era)
4. Bridge some Eth to zkSync Era using Orbiter bridge. 5. Make a swap using SyncSwap to USDC and back to ETH (https://syncswap.xyz/)
6. Send funds back to Arbitrum using Orbiter bridge from zkSync Era and zkSync Lite
7. Transfer funds from Wallet 1 to Wallet 2 and repeat.
Features I'd like implemented: -It should check if the network is busy (meaning higher fees) and wait for gas to cool down before going through with the transaction. -I'd like to see what the beginning and end ETH balance was after a complete cycle across all wallets.(and perhaps from wallet to wallet?) -Scalable to as many wallets as possible -each task should be easily removable if not required any longer, and additional tasks easily addable to the total steps performed on zkSync.
I will provide RPC URL's from infura, CCID list for minting NFT's, and any other info required from me.