Shannon (@Shannonhereok) profile picture

Will be documenting some of my forays into web3 development here.

Joined May 2024
Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)Photo by Shannon (@Shannonhereok)
My next goal is to create a version of this escrow site that accepts sepolia ERC-20s and not just sepolia ETH. I also think I should learn how to integrate open zeppelin.
61
Made it so there's a creation date
1
23
chatgpt helped with the component (wrote it all except for me having to format a bit here or there, do Number() on the blockNumber cuz it was a string...
22
and I'm using that component here, too:
Replying to @Shannonhereok
And chat-GPT wrote the whole component. Thanks @OpenAI
11
Made it so you can see the time left in modern (Gregorian calendar?) time and not just "sepolia block" time.
web3sepoliaescrow.web.app/ ... might change something here or there.
1
8
And chat-GPT wrote the whole component. Thanks @OpenAI
1
1
18
web3sepoliaescrow.web.app/ ... might change something here or there.
some screenshots from the almost(?) finished escrow app. sepolia network only. obviously not audited but may tinker a little more and then post a link to it.
1
49
some screenshots from the almost(?) finished escrow app. sepolia network only. obviously not audited but may tinker a little more and then post a link to it.
1
1
24
Now I'm learning that I can indeed hardcode the ABI for the dynamically generated Escrow contracts into my react component. I thought I might have to use etherscan's api or something. thanks, chat-gpt.
Working now with ethers.js in a simple vite react app. Got some stuff working. But I wonder the best way to get the ABI for these dynamically created contracts for this escrow site. Will update here on what I go with.
39
Working now with ethers.js in a simple vite react app. Got some stuff working. But I wonder the best way to get the ABI for these dynamically created contracts for this escrow site. Will update here on what I go with.
1
59
remix has your back. if the function you're triggering will likely revert, it doesn't want you to lose your highly treasured sepolia eth. or w/e reason. testing escrow contracts means I should see this message when I try to withdraw eth before the specified time, though.
23
mining sepolia ETH on this pow faucet...sepolia-faucet.pk910.de/ this seems like the best route, although I had to set up a gitcoin passport first. also doing the other faucets that limit you to 0.05 or w/e a day...
26
my next goal is to make a simple configurable escrow site.
18
It's not perfect, there are still some stuff that annoys me (sometimes the message appears when it shouldn't after a user locks the account - will look into fixing that) but here is the basic wallet connect flow (hosted via google's firebase): web3walletexampletestsite.we…
24
So I've got a wallet connect flow going, and I think I've minimized some annoying parts of it: 1) the useEffect triggering the connectWallet() function (the function with "await window.ethereum.request({ method: 'eth_requestAccounts' });" in it) doesn't go on mount
1
16
^ it waits for isWalletConnected to be true, and that's actually some localStorage: const [isWalletConnected, setIsWalletConnected] = useState(localStorage.getItem('isConnected') === 'true'); the goal being, have metamask only pop up when the user clicks connect wallet...
1
6
So here's a stack overflow screenshot of the tldr re: this issue, with a couple suggestions on how to handle it from a user experience pov. stackoverflow.com/questions/…
I don't love how when you have a useEffect opening M*t*mask when a user's on a page and the user closes the pop up, the user can no longer open M*t*mask from a <connectWallet/> button. They must go to the browser extension and open it from there.
11
I don't love how when you have a useEffect opening M*t*mask when a user's on a page and the user closes the pop up, the user can no longer open M*t*mask from a <connectWallet/> button. They must go to the browser extension and open it from there.
2
1
24
I think I've noticed this from other mainstream sites, too? In the future, I want to see if this can be solved. Will document that on this page.
8
ok did a little tinkering and got ethers.js up and running on localhost using react. chatgpt I think hasn't been trained on v6+ of ethers.js and was advising certain things that aren't needed in v6.
1
10
E.g. with the below code, gpt kept wanting me to do ethers.utils.formatEther..the below code works; using ethers.utils did not const connectedBalance = await provider.getBalance(connectedAccount); const balanceInEther = formatEther(connectedBalance); setBalance(balanceInEther);
9
Been working a little bit on a project idea. A motivation-tech project where users pledge crypto assets to a learning goal (i.e. I want to do french vocab lessons daily for 1 month) and if I don't do the lessons, my pledge assets are seized; if I do the lessons, I get them back
1
7
So far I have a contractFactory that users would interact with, configure their specs etc... then this interaction would create their escrowContract with their specs, it woudl be funded and associated with their lessons...
1
3
I tried getting Foundry up and running on my Mac, but kept getting OS error:32 when doing "forge test" or "forge build". Couldn't find a solution and am now suspecting it's because my macOS is 11.x and I might need a newer OS.
6
I've been getting more comfortable with Remix, coding escrow contracts etc. But the Remix VM doesn't have time-based blocks, so it's a bit odd. Will get those somehow soon either in Remix or elsewhere.
5