New Ethereum talks, every Monday. The week's conference uploads by event, in your inbox.

Loading player…

ETHWarsaw 2023: Enso Finance - Workshop

ETH WarsawMon, Oct 7, 2024, 12:00 AM

Workshop - Enso API Workshop Follow us for more updates: https://twitter.com/ETHWarsaw

Transcript

cool uh let's just get started shall we so today we're going to do a more interactive Workshop where everyone's going to be coding we've created kind of a template file so you can start building upon to give you some context before starting what inso is inso is one unified API to interact with all def5 Primitives so what applications you can build on top really is only limited by your own imagination so if you want to build a cross chain router you want to build the def aggregation tool you want to build a DI telegram bot which we will be doing today you can plug into all of these Primitives and instead of needing to have many API interactions for all of different dii Primitives you can simply just use one we have two different parts of the API that we'll be using today we have the execution framework so you're able to bundle and execute into many different D5 protocols so for example if you want to go from eth into let's say 10 curve pools lend on ay borrow on a Le leverage up again you're able to do this all within one contract call we also have all of the metadata as well so you can simply plug into tvl apy presenting this all to your users as well so you can see this as affiliate out of the box dii kit we are here to help so there's four of us Oscar's back there Ben Milos and myself Connor we also have a dedicated telegram group just created for this Workshop so if there's any questions that you don't want to ask someone feel free to just drop it inside of there rewards um so we have beer if you want a beer we also have stickers and we also have three t-shirts so the top three participants of how much code they've been able to complete or even additional features that they've added will be given a t-shirt the tools that we're going to use today we're going to use telegram hopefully everyone's got telegram set up we're going to be using Grammy which is just a telegram bot framework instead of needing to use directly the telegram API abstracts a lot of this logic away we're going to be using tenderly for simulations the reason why we're using tenderly means you don't need to upload your AP uh your private key we don't need to manage approvals all of this is just out of the box so you can get directly to the Eno API and then last but definitely not least is the Eno API for execution and metadata and we're combining all of these together one thing to note the tender API key we have a let's say a premium API key and we put it inside of there so you don't need to bring your own API key and this API key will cease to exist after this Workshop pretty much the telegram you will need to create your own API key and there is examples of how to create it in all the steps inside of the repo and the NSO API key is also in the repo itself so what we're going to do today really is build a defi telegram bot so you can see Maestro uniball all of these new trends of sniping interacting with Defi and swapping through telegram so instead of needing to worry about react in front end you just directly plug in into the API I will show you kind of what the end product will look like to a certain degree and what we're going to be doing today is just writing a typescript the repo itself has a bunch of steps of completion feel free to follow it feel free to add on top if you want to add more like say complex strategies such as lending borrowing um and leveraging it's really up to you how you would like to to use this here are four resources that I'll keep on the screen throughout the workshop one is the repository two is the Swagger three is the API Dock and four is a dedicated telegram group what I'll do now is kind of show you a bit about the repository so you can see all of the different steps inside of it so if you just go and clone this you will see that the there's certain commands that you can use there is some Easter eggs inside of this if you're able to find them and maybe a little uh hint is Caesar salad and then some of the challenges are fetching all the projects so being able to display in the telegram bot all the different projects that are available through inso all the different pills that are related also to this project apy and so forth and then on the execution side we'll be doing get route get route is applicable to swaps and also defi deposits so if you want to deposit in a beefy Vault you're able to do this all within one API call and then you can also do bundles so if you want to enter 10 curve pills in one transaction you will kind of add this query now there is some additional challenges which you can see inside of here if somebody gets to the gigabrain stuff fair play to you um this is a one of the steps to be able to make this Philly production and for us we see anyone that wants to build on top of this repository can probably make a production grade product within four or 5 days cool so let's get started shall we yeah tegam telegram chat is here inside of the repo yeah yeah sure sounds good in the meanwhile whilst my phone is charging here's the repository to get you started and if you want to know the the URL directly it's on the so Finance uh get repo get uh organization so here is the workshop link for has everyone got the repo yeah cool for and for the telegram B API you just contact bot father and then you just press Start set a name and you'll get an API key and then put it inside of your environment variable for one thing to note whenever we're doing this we're not specifying a token that goes in the default is just ether so you don't need to manage all of the approvals and so forth and the amount ether amount that goes in we've already pared it for the decimal amount as well every single time that you put this in and then you confirm we've hardcoded a from address as well for the transaction so you don't need to manage that part you'll get a 10 yearly emulation so you can check it all out we also you'll find inside the of the repository a folder called helpers with values so you don't need to go to co gecko fetch all the addresses and you can just copy and paste the stuff inside of here consider this amount in is used to trim this down as well know hey for you cool so we have 5 minutes left to the workshop and Ben you good for minutes so we've only got 5 minutes left uh thank you everyone for coming it was really good fun I think we learned a lot as well and I hope everyone else did if you want to start using enone production or for any mini projects or during the hackathon we're happy to continue to support you we have a wider telegram group where we have more projects that are using Eno and just to kind of give you who we are collaborating with we have a partnership with socket with the ganos es and also um cow swap we're one of the solvers and we have maybe around 15 20 projects that are using Eno in production as of today so the telegram group is eno API and if any project you want to build just feel free to message us and who would like a t-shirt who wants a T-shirt oh there's too many ah so so wait so who got the route endpoint so who got the route endpoint done okay that doesn't change it who got the bundle endpoint done okay cool so we've got two there should we verify or not here you go there you go no problem and and who were the last two for the route you got the route done yeah oh and you also got the route done okay so one teacher left and leave you both to it um okay awesome so we also have a fourth t-shirt here as well so we can give a t-shirt to both of you and thank you everyone for coming it's good fun have a nice [Applause] hackathon

Automatic transcript — names and jargon may be misspelled.