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

Loading player…

Build Cross Chain Applications With Chainlink CCIP - ETHGlobal Singapore 2024

ETHGlobalWed, Oct 9, 2024, 12:00 AM

Join us for a workshop with Solange Gueiros and Frank Kong titled, "Build Cross Chain Applications With Chainlink CCIP." Why develop a project for a single blockchain when you can easily create a powerful cross-chain dApp? In this workshop, learn how to write secure cross-chain smart contracts and build advanced applications for the increasingly multi-chain Web3 ecosystem. This workshop took place at ETHGlobal Singapore 2024, a 3-day hackathon held from September 20 to 22, 2024, that brought together the most skilled web3 developers, designers and product builders from all around the globe for a weekend-long adventure to advance the Ethereum ecosystem! ________ Follow us: x.com/ethglobal Website: https://ethglobal.com Email us at: hello@ethglobal.com

Transcript

[Music] so welcome everyone and we are here to talk about chain link and to talk about ccip so this is me you can call me so uh but my name is Sol Gus I came from Brazil I am a d engineer and Frank yeah my name is the Frank and uh I'm in the drio team from chain Ling so I will be here all the it's Global Singapore so if you have any technical issues please come to our boots and I will help you okay let's go first of all we must know our B bounes we have two kind of bounties you can uh do the two tracks as well one is the CCP where we are giving away three prices of 2,000 each and the other one is the other chaining Services that's not CP and can be um any of these data feeds data streams and uh we can have two winners with 2,000 each as well if you use both Services you can win both we don't know can happen happen in the past okay and this this oh this is the backpack can you see that backpack over there yes uh if you go and uh if you build on chaining if you pitch to us Sunday you we are giving away the backpacks for you even even if you're not a winner but you must pitch to us okay and this this this is the most important slide for you because how that things that we are talking now is here so get the presentation be ready yes I may giveing one more minute okay last minute okay get take a picture or get with your friend late last time last change yes okay so what's the Oracle when talk about oracles you are uh talking about any kind of connection that you can have with the external word something that is not in the same blockchain so can be something like this uh related to sports to my watch or satellites or financial information any of that but uh it's important to you to have a decentralized Oracle Network to be sure that uh everything that you are bringing to the blockchain you have a consensus in a way that you are bringing the information and this information is not manipulated so this is chain link so chain L it's a platform with some services that you can bring information to the blockchain when you talk about data feeds we are talking about prices we are talking about caches and also there are different ways that you can have this we can have this like the data feed that you can push the information or like the data stream that you can get the cod in the moment that you need also we have more about ccip that Frank is talking few in a few minutes we have a chaining functions chaining functions is so important because imagine that you can call any external API using JavaScript code the inside your smart content yes you can do that using chaining functions so any external information that you have you can bring it to chaining also we have a vrf to Generate random numbers and automation if you needed to automate any kind of information like based on time or basing some business rule that if this happen this is true so I'd like to do that and this should be automated and this should be in a decentralized way you can use Automation and also you can use the proof of reserving to get some reserves that we already have on chaining and prove it this exist and this is right for you okay and this is a overview really overview for you so it's important that chain link is not a blockchain chain link it's a set of services deployed in different blockchains and now I'm passing to Frank should talk a bit more about CCAP okay so thank you thank you so so next I'm going to cover some technical details about a chain link CCP so as you can see here the full name of the CCP is a cross chain interoperability protocol and here is a very very high level of the how chain link CCP works so as a developer I think that is easy to understand so for the left panel you have a source chain on the on the right hand uh on the right panel you have a desk chain and if you want to send some tokens or informations or token plus informations from The Source chain to the destination Chan we can help you with the chain link ccip as you can see here you only need to write two smart contract if you want to do this the sender on the left panel and receiver on the right panel on the destination chain so in the left panel on the source chain you write everything together like the JavaScript code or some other code or the trans the cross change message as mentioned by so and wrap all all of them together and send it to the rter smart contract which is a deployed by the chaining CCP and then the CCP will detect your request and relay your request from The Source chain to the destination chain and next slide please so what you can do with the CCP so first one is that we have a list of tokens supported by CCAP uh if you want to just cross chain these tokens from your Source chain to the destination chain you can directly uh find the correct token address and send the message through the CCN and the token will be burned and a new token will be minted on the destination chain or lock and unlock and the second thing is that uh you can also send an arbitary message so the arbitary message means that a transaction in the bite code so if you want to for example if you want to Mint an nft uh which is not deployed in in the blockchain your using and you can send a cross chain transaction from the blockchain to the destination chain uh where you have no fund on the destination chain and the new nft will be minted by this cross chain transaction and a new nft will be minted under your address on the destination chain and also if you want to do something called a programmable token transfer uh which means that uh uh we can bind the tokens and instructions uh together and uh then to wrap this messages and send it to the CCP and CCP will relay this message to the destination chain and that can that can be done okay so this is a really uh recap of what I'm talking so for the workflow uh for the chain link we have a very core infrastructure called decentralized Oracle Network it is a decentralized network and each node operator under this network uh is able to fetch some dat data from the web to or from any specific blockchain and each one fetch the data and then we talk to each other and the data will be aggregated and finally a aggregated report will be relayed so in order to relay one message from The Source chain to the destination chain we actually employee uh three decentralized Oracle networks and the first one is to relay the data just to copy the data from The Source chain to the destination chain which is called uh this one committing D the committing decentralized Oracle Network and when this data is committed in the destination chain and we also have another one called the uh risk management Network and this one will check if the message related by the CCP match the merrye proof on the source chain and if everything is good that means the transactions or verified if the transaction is verified and yeah thank you so so first infrastructure called the execution decentralized Oracle Network this network will execute whatever Sav On the destination chain that has already verified and this transaction can be executed on the destination chain and you are able to send a cross chain transaction from The Source chain to the destination chain okay so so next one is called a CCAP local simulator uh I don't know if you have ever do a cross chain transaction because it's going to take a very long time we need to wait for the transaction on the source chain to be finalized which means there are at least two app which means uh 64 blocks happened after the block you have your transaction on and then this transaction will be considered as finalized it's going to be a very long time for example in the ifet we need to wait for like 30 minutes before this uh block considered as finalized so in order to help every developers to test in in a fast pace we have a CCP local simulator and if you have that QR code you can scan and go to this page uh we have the uh URL here and we have a report on our GitHub with the CCP local simulator you can uh creas your cross chain transactions and test in local within few seconds and that will help the developers to to Quick test if your codee is uh working as you expected Okay so so yeah that is for the CCP local simulator no waiting time during the test and the development environment for of choices we have a hard hat and a fundry starter kit and also you can use that on the remix and uh if you are using the CCAP local simulator especially for this hphone you can directly move your testnet or local uh code to the minet or testet without any change yeah and if you need uh some test tokens we provide a forets for a lot of the different test test Nets uh and yeah for CCAP so with the local simulator you can uh direct you can fast try your code is good or not and you can get a test tokens from our forets and uh yeah you don't need to run any of CH infrastructures by yourself you can directly integrate the CCF by implementing some function functions in your smart contract on the sender and receiver smart contract in the SCE chain and a destination chain respectively and to to give it a try to see everything is work and yeah I think uh next I will pass a microphone to so yes it's is so uh you know that you have the fet from it Global uh as well so if you need more tokens you can use our fet as well you can get link even if you need more help I used to give tokens when the people need so uh come and talk with us okay remember about our bounties I already show you but I'd like to be sh that you know our bounties and when you talk about bounties uh I'd like to talk about the cross chain bounties this is the bounties that we can use chain link and another sponsor that is here in the haon using ccip so you can use a circle for example because we have usdc and you can use coros chain transfer using usdc or we have theosis chain as well so you are using any other chain and do cross chain with ginis you can try to get the prices from gnosis and us as well so we have Crossing bounties okay and uh talk about this for example related to usdc I'm not doing coding now uh but one of the examples that we have to you is how to transfer the usdc from Avalanche Fuji to a seia and this is all the informations that you must have since starting getting the usdc in the circle fet how is that and this is the uh example for you so feel free to get this example is one that you can use later okay and uh when I talk about chaining for Hons as well this is important because okay we uh give to you gave to you a overview of CCP but we can have more in the haon one of the things that you can use I talk a bit about this is the chain link functions this is so powerful and this is the functions. chain. link where you can get all the information related to this and even we have some tool kits that uh to make your project faster here so you can use the functions tool kit as well okay and this has the local Simulator for functions in the same way that we have for CCP this has a local simulation for function and you can try it out your functions uh out the JavaScript part as well to be sure that is working local okay also we have a playground for the chain link functions so you can test your Cod code over there it's a online to to test the JavaScript part before uh brings to your smart content and this is something like is on this way the playground and also we have a lot of um plugins from chain link that speed up your development here we have the hard hard chain link plugin and also a Foundry chain link to Kit as well okay everything is here to help you and be build faster and uh to be successful using chaining and remember these are our bounties again uh we have uh three prices related to CCAP 2,000 each and we have two prices related to the other chaining Services 28 one comment related to this in the past we have a a service called any API this is not uh we are not using this anymore this is depurated so don't use that because you not get nothing with that okay don't try to refresh out project is not working okay and this is the presentation again if you didn't get in the beginning last chance get your presentation everyone is good with the presentation no I think you need a minute I have more people reading the care code almost done yes I used to call live here but uh I used to not have H enough time to do that so uh I'm now presenting more and me and Frank you be in the boo in different time so feel free to go over there and talk with us if you have if you need any help if you have any problem and also we have people online during the night go to the Discord to the chaining Channel we have people in the other part of the world in United States that is take care of you as well okay and it's so important uh all the information that you need everything that I talk about and this is in the presentation you you can go directly to the dev. chain. link this is our developer portal and we have including we launched a new developer portal like some days ago on this week in the token 249 week so go over there and we have used cases I know that you'd like to have used cases uh the hackers ask me oh uh what is the kind of project that you'd like to see with chain link we don't have a preference can be any kind of project any use case uh what matter to us is how you are using chaining this make sense to your chaining is this project good good enough is this okay so doesn't matter like if it's uh Financial case or nft case we'd like to see the best of chain l in your project okay and is this thank you so much and we are around see you thank you so much everyone [Music]

Automatic transcript — names and jargon may be misspelled.