Cardano KEVM Smart Contracts demo walkthrough
Vložit
- čas přidán 30. 07. 2024
- In this video, test engineer James Browning demonstrates how to compile, deploy and interact with two Solidity smart contracts in the KEVM Cardano DevNet.
The first is showing how to increment integer state variables and query the values of these variables. The second is showing how to deposit funds to the contract address and query the contract account balance. - Věda a technologie
I'm here even though I don't understand any of this.
Let me try to translate. The blockchain is a sort of like spreadsheet stored out on lots of other peoples computers (for security) and he is creating a new sheet with values on it, then updating those cells by issuing commands. The spreadsheet and commands are in the language solidity, but he is translating his instructions from a human readable format into solidity bytecode, aka cardano executable commands, using a javascript library called web3/web3-eth-abi. Each transaction that changes the blockchain needs to be paid for with gas.
@@aarons.3783 thank you!
This video demonstrates how an Ethereum's smartcontract code can be deployed into ADA Cardano blockchain. What does it means to non technical people ? It means that when Alonzo HFC go lives (ADA's smartcontract feature is enabled), migrating Ethereum Defi Dapp into ADA Cardano would be possible and almost effortless , which in turn, we are going to see Sushi runs on Cardano with far more cheaper transaction fee and faster transaction processing speed compared when it ran on Ethereum.
@@saintcoder Novice here. So how does ADA play a role is the coin used to pay gas fees. how would it affect the price
Same, going back every 25 seconds or so lol
Excellent content. More low level walkthroughs like this would be appreciated.
It would be awesome to have a step by step tutorial to get to know the insights
I feel like a caveman watching this lol
As do I but I’m hanging in for the long run.
Zug zug
I get depressed knowing I'll never learn compooper code
The comments too 🤔
Me:
Cardano good
Hahahahahaha. *Grunts loudly
I am a welding student by day, at night I am learning about blockchain.
Dont know who you are but....... I am proud of you. keep pushing
Looking forward to innov8tions from you
You sound like a superhero.
"Everyone knew him as a welder. We had no idea"
BlockMan, coming soon.
peaceandlove.
@@shannon-daygrant8754 😂😂😂
welding can definitely be useful in block*chains* :D
I finally completed my exercises on running the node and getting used to CLI, next stop, Native Tokens and Plutos.
Keep it up IOHK, awesome progress!
Where did you find those exercises? I’m learning Haskell atm
@@TheJpwzrd same
This is really cool but I wish there was an entire series starting from zero.
There is.
First step, learn object oriented Java. You can also do python. Some say c ++ is needed. You must learn the basics. This will help in your understanding of solidity. Then, learn how to write a smart contract. Lastly, forget what you think you know.
To create an apple pie from scratch, you must first... invent.... the Universe...
@@nesternunez8430 I know Python.
@@TheGregcawthorne Seems a waste to have a Big Bang every time you want Apple pie.
@@neomatrix3612 ikr
I have no idea what he is doing but it is awesome that he showing people how to do it.. 🤪🤪🤪🤪
Ada has this covered with drag and drop marlowe
@@martiruda not quite. With Marlowe you can't make very complicated contracts that for example store funds etc. From what I can tell it's for quick transactions. So for example you can't make lending protocols as funds are stored in a contract. Marlowe empties the contracts after some time. Someone correct me if I'm wrong and I miss understood Marlowe.
@@rv8804 from what I've seen you can modify the json code which is I hope where you can set those instructions.
I have almost no experience with coding, but honestly this seems fairly simple, good job!
this is exactly the kind of video i tought i wanted to see. Could you maybe start with what youre trying to accomplish ??? Smart contract for what? a house? morgage? borrowing money???
Very useful! And your voice over is great, makes me want to watch Snooker matches, they sound so similar! 😆
this is an asmr for programmers :)
Haha I have no idea what you mean 😉
Running eth smart contracts on cardano devnet?
yep and Java, C++, JScript, etc
@@tradefeedz3560 JS*
@IOHK scammer
🥳
Cardano 🚀🚀🚀🚀🌝🌝🌝
Excellent, thank you. Please do more like this
Wow this is actually pretty easy to understand as a generic programmer
Do the tools here also make bytecode from marlowe contracts?
Your the best!!!! Thank you so much!
Thank you James!
Thanks for sharing, so cardano blockchain runs solidity smart contracts? Is that gas Ada or Eth? Will compile solidity to plutus core?
I was thinking how about converting source code I think a lot is already available open source.. Just tie the knots. solidity-->uml-->typescript-->plutus(hasskel)
I want to watch n re-watch it
si is it correct that this is testnet for smart contracts already relesed?? or is it demonstration of how to write smart contract on cardano ?
Testnet and devnet for Solidity (Ethereum language) smart contracts were already released in December. You can write Solidity contracts and the KEVM compiles them to run on Cardano testnet and devnet.
Alonzo testnet is coming end of April or early May and will bring Cardano's own version of smart contracts to the testnet. This means you will be able to write and deploy testnet contracts using Plutus and Marlowe instead of Ethereum's Solidity.
You can watch Charles' explanation here: czcams.com/video/k8a6tX53YPs/video.html (of relevance on this particular topic would be ~3:40 onwards)
About Mallet !! The Video was helpful but should we use a Bash Command or a Windows ? Most Commands seemed to fail then seemed to run ? I lacked a bignumber.js file ? Are you trying to include People or exclude them ? H
does it work only with Solidity? Or can you use the binaries from other prog. language?
Am not sure if this will really answer your question but you can watch Charles' vision/explanation here: czcams.com/video/k8a6tX53YPs/video.html (of relevance on the different environments would be ~3:40 onwards)
Hi I tried to compile the smart contract and this is what I did docker run -v ${pwd}:/sources ethereum/solc:0.8.0 -o /sources/output --bin --abi /sources/CounterXY.sol but I get this "/sources/CounterXY.sol" is not found. Any idea
Any coding course suggestions to learn about smart contracts on blockchain?
My understanding is for those who are not devs (and I am by no means the oracle here) that we witnessed an Ethereum smart contract get deployed to the KEVM (albeit the testnet/demo blockchain) which is a sidechain for linking the Cardano blockchain to the Ethereum blockchain for interoperobility. This was done at a fraction of the cost and significantly faster than if it were to be done via the EVM. I do hope if this is wrong/ missing info I am corrected however.
I think that is pretty much it. For context you can watch Charles' vision/explanation here: czcams.com/video/k8a6tX53YPs/video.html (of relevance on this particular topic would be ~3:40 onwards)
Awesome game changer - Goodbye broken ethereum
woow
Sounds legit
Even I could do this! Cool. Now I just need to figure out what smart contracts are...
A smart contract is a piece of software that runs in the blockchain. It is what u see in the video.
@@elektroglow thank you. I understand that it runs on chain. I am mostly trying to grok the use cases and how the example above relates to existing things like deFi.
@@KevinBeal well from what I can see u can replicate the whole ethereum smart contracts in cardano. There u have your use cases.
@@elektroglow I see that it can run Solidity programs on their VM, so I assume it runs any Ethereum contracts ported over (but cheaper!).
AFAIK, it can manage some state and move funds. Apparently this is enough to do some things like NFTs, DEXs, etc. The gap between the capabilities described here and the actual projects built on it confuse me. Clearly I'm missing something fundamental.
Does the UI code exist on-chain?
Does it allow network requests?
How does it create tokens?
How does it make tokens non-fungible?
So James ? 1/ Is Mallet key to this Demo ? What is Mallet ? (What is NIX ? What is Linox ? )And you assume People know what it is and how to install it and check it works ? BIG ASSUMPTIONs. I've spent about 3hrs now trying to get the basics of KEVM set up. 2/ Next what is the Screen Editor you are using ? What should we be using ?
Always a Brit going mental! 🤣 they are so underrated as devs
Thanks 4 making = {PLAIN○}
I like formal verifiability. Michelson on Tezos chain seems more secure by design.
Elaborate plz. What seems insecure about what was shown here?
web3-ada-abi soon hopefully, someone fork it
This hello world...is like chapter 20 already haha
Ahh yes, the cope and seethe comment.
I'm here cause I'm trying to figure out how to use smart contracts with my NFT project on the cardano network. There's barely any helpful material out rn.
Why use gas? Wouldn't electricity be cheaper?
37.8 - 38.8
Writing smart contracts like this is like eating with a stick.
What he said .
Seems like you skipped a lot of environment details that needed to be included for the new people. THERE'S a lot of new people who are devs in other enironments or aren't even devs by trade.
Wat.
I wish i understood 5% of what is shown here
I understood the bit where he said "I hope this has been helpful, and thank you for watching"
Now start a "hello world" program
Hmm so you can copy and paste ethereum code and run it on Cardano 🤔🤨 im trying to be smart 🤓 got a headache from watching this
Maybe not exactly but yeah you can use the Ethereum code on Cardano.
It's like being a developer in 1980.
In 2021 it's not hard to hack some UI together and serialize data to get a proper IDE.
It's like you try to scare away people from Cardano.
Who tries to scare away people??
Facing this error
Invalid JSON RPC response: undefined
@IOHK help please