{"id":1143,"date":"2022-12-13T16:07:52","date_gmt":"2022-12-13T16:07:52","guid":{"rendered":"https:\/\/dodona.software\/?p=1143"},"modified":"2022-12-13T22:08:02","modified_gmt":"2022-12-13T22:08:02","slug":"better-onboarding-the-myth-busters-use-case","status":"publish","type":"post","link":"https:\/\/brandweaver.ai\/blog\/better-onboarding-the-myth-busters-use-case\/","title":{"rendered":"Better Onboarding & The Myth Busters Use Case"},"content":{"rendered":"\n
GM frens \ud83d\udc4b and welcome to the inaugural newsletter for our developer audience. In this post, we cover what’s new, what’s been fixed, and use cases from our community. We look forward to hearing from you!<\/p>\n\n\n\n
We fixed a bug that occurred when users first uploaded ABI files and then connected a chain, which caused the UI to enter a glitchy loop:<\/p>\n\n\n\n The front-end catches this flow and guides the user to connect a local chain or connect via MetaMask. This fix also solved the large number of getBalance() requests. <\/p>\n\n\n\n Users asked for improved browser console.logs to understand errors. We added that in our most recent release: <\/p>\n\n\n\n We also provide in-browser instructions if you prefer to connect with MetaMask: <\/p>\n\n\n\n We got feedback that our Sync Directory<\/strong> feature was too slow, which occurred because the web app polled (most) files in the sync’ed directory to determine if each file contained ABIs and addresses. We drastically improved this feature, especially for users on Foundry. If you tried this before, we suggest giving it another whirl. <\/p>\n\n\n\n Note, the principle use case for uploading an entire directory is limited to scenarios where you have many local contracts that you want to import into Sidekik. If you’re interested in exploring one or a few contracts from your local environment, we strongly recommend using a JSON file and uploading it using the “Sync File(s)” button. Regardless, you must identify each contract address and its ABI<\/strong>. There are three ways to do this:<\/p>\n\n\n\n 1. You output a JSON file during your compile process that saves the deployed addresses and ABI to a local file. [Strongly Recommended \ud83d\udcaa<\/strong>]<\/p>\n\n\n\n 2. You point Sidekik to a directory to identify all ABIs (and addresses if you are storing them to a file<\/em>).<\/p>\n\n\n\n 3. You manually enter a contract addresses and ABI in the input box. <\/p>\n\n\n\n The third method is useful for contracts that are deployed to a chain. In a dev environment, that’s not the best way because addresses may change every time you deploy contracts. Thanks to feedback from @ChiliPaneer, we’ve added support for overloaded functions. As a reminder, overloading a function means that you can create a function that has the same name but different arguments and\/or types. This is seen as three separate function calls in Sidekik, each with different input parameters: <\/p>\n\n\n\n Maybe you’ve heard that having more zeroes in a wallet address can save on gas fees. In this short video, Sandeep investigates this claim using Sidekik. Too-long-didn’t-watch (TLDW): Sandeep loads up the DAI contract and then impersonates a whale’s address. In one path, he transfers DAI to a typical wallet address and then measures the amount of gas it took. In a second path, he transfers DAI to an impersonated wallet address that is full of zeroes and measures its gas. After comparing the gas usage, he concludes that, yes, having more zeroes in your wallet address can result in gas savings! Watch the video for more details.<\/p>\n\n\n\n<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
Better Error Messaging via Console.Logs \ud83d\udc7e<\/h1>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
Sync Directory is Faster \ud83d\udc7e<\/h1>\n\n\n\n
<\/figure>\n\n\n\n
For step-by-step instructions, along with a how-to video, go here: https:\/\/docs.brandweaver.ai\/setup\/overview\/setting-up-contracts-with-sidekik<\/a> <\/p>\n\n\n\nNow Supporting Overloaded Functions \ud83c\udd95 \ud83c\udf89<\/h1>\n\n\n\n
<\/figure>\n\n\n\n
Use Case: Exploring Hypotheses \ud83d\uddfa \ud83e\uddd0<\/h1>\n\n\n\n