Cardano KEVM Smart Contracts demo walkthrough

Sdílet
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

Komentáře • 108

  • @everythingcardano5171
    @everythingcardano5171 Před 3 lety +142

    I'm here even though I don't understand any of this.

    • @aarons.3783
      @aarons.3783 Před 3 lety +32

      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.

    • @lucianalordelo9661
      @lucianalordelo9661 Před 3 lety +3

      @@aarons.3783 thank you!

    • @saintcoder
      @saintcoder Před 3 lety +8

      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.

    • @ballergs83
      @ballergs83 Před 3 lety

      @@saintcoder Novice here. So how does ADA play a role is the coin used to pay gas fees. how would it affect the price

    • @SebastiandAnconia
      @SebastiandAnconia Před 3 lety

      Same, going back every 25 seconds or so lol

  • @supernewuser
    @supernewuser Před 3 lety +31

    Excellent content. More low level walkthroughs like this would be appreciated.

    • @Carlos-td6bz
      @Carlos-td6bz Před 3 lety

      It would be awesome to have a step by step tutorial to get to know the insights

  • @json809
    @json809 Před 3 lety +67

    I feel like a caveman watching this lol

    • @rahimbuford
      @rahimbuford Před 3 lety +5

      As do I but I’m hanging in for the long run.

    • @zugdigitalx
      @zugdigitalx Před 3 lety +1

      Zug zug

    • @gabrielonofrei6154
      @gabrielonofrei6154 Před 3 lety +3

      I get depressed knowing I'll never learn compooper code

    • @1080LT
      @1080LT Před 3 lety +1

      The comments too 🤔
      Me:
      Cardano good

    • @T0ne13
      @T0ne13 Před 3 lety +2

      Hahahahahaha. *Grunts loudly

  • @SqueeblesMcklooflin
    @SqueeblesMcklooflin Před 3 lety +15

    I am a welding student by day, at night I am learning about blockchain.

    • @oluwaseunoliyide4520
      @oluwaseunoliyide4520 Před 3 lety +5

      Dont know who you are but....... I am proud of you. keep pushing

    • @BulatBulatCafe
      @BulatBulatCafe Před 3 lety

      Looking forward to innov8tions from you

    • @shannon-daygrant8754
      @shannon-daygrant8754 Před 3 lety +2

      You sound like a superhero.
      "Everyone knew him as a welder. We had no idea"
      BlockMan, coming soon.
      peaceandlove.

    • @oluwaseunoliyide4520
      @oluwaseunoliyide4520 Před 3 lety

      @@shannon-daygrant8754 😂😂😂

    • @it_is_mika
      @it_is_mika Před 3 lety

      welding can definitely be useful in block*chains* :D

  • @splitpierre
    @splitpierre Před 3 lety +14

    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!

    • @TheJpwzrd
      @TheJpwzrd Před 3 lety

      Where did you find those exercises? I’m learning Haskell atm

    • @stonekase
      @stonekase Před 3 lety

      @@TheJpwzrd same

  • @neomatrix3612
    @neomatrix3612 Před 3 lety +24

    This is really cool but I wish there was an entire series starting from zero.

    • @nesternunez8430
      @nesternunez8430 Před 3 lety +3

      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.

    • @TheGregcawthorne
      @TheGregcawthorne Před 3 lety +2

      To create an apple pie from scratch, you must first... invent.... the Universe...

    • @neomatrix3612
      @neomatrix3612 Před 3 lety

      @@nesternunez8430 I know Python.

    • @neomatrix3612
      @neomatrix3612 Před 3 lety

      @@TheGregcawthorne Seems a waste to have a Big Bang every time you want Apple pie.

    • @TheGregcawthorne
      @TheGregcawthorne Před 3 lety

      @@neomatrix3612 ikr

  • @panagiotiskaramichail8860
    @panagiotiskaramichail8860 Před 3 lety +24

    I have no idea what he is doing but it is awesome that he showing people how to do it.. 🤪🤪🤪🤪

    • @martiruda
      @martiruda Před 3 lety

      Ada has this covered with drag and drop marlowe

    • @rv8804
      @rv8804 Před 3 lety

      @@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.

    • @martiruda
      @martiruda Před 3 lety

      @@rv8804 from what I've seen you can modify the json code which is I hope where you can set those instructions.

  • @Jppnametaken
    @Jppnametaken Před 3 lety +1

    I have almost no experience with coding, but honestly this seems fairly simple, good job!

  • @kevinlemon195
    @kevinlemon195 Před 3 lety +1

    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???

  • @marcusjacob9117
    @marcusjacob9117 Před 3 lety +2

    Very useful! And your voice over is great, makes me want to watch Snooker matches, they sound so similar! 😆

  • @purrnama_
    @purrnama_ Před 3 lety +6

    this is an asmr for programmers :)

  • @Bluealein56
    @Bluealein56 Před 3 lety +14

    Running eth smart contracts on cardano devnet?

  • @klissmannrodriguez2292
    @klissmannrodriguez2292 Před 3 lety +15

    Cardano 🚀🚀🚀🚀🌝🌝🌝

  • @DomStockdale
    @DomStockdale Před 3 lety

    Excellent, thank you. Please do more like this

  • @sphereron
    @sphereron Před 3 lety +1

    Wow this is actually pretty easy to understand as a generic programmer

  • @KevinBeal
    @KevinBeal Před 3 lety

    Do the tools here also make bytecode from marlowe contracts?

  • @turtleguy8267
    @turtleguy8267 Před 3 lety

    Your the best!!!! Thank you so much!

  • @blackboxstakepoolblkbx4467

    Thank you James!

  • @womeninmovesolutionschanne1065

    Thanks for sharing, so cardano blockchain runs solidity smart contracts? Is that gas Ada or Eth? Will compile solidity to plutus core?

  • @rockstarxxx6009
    @rockstarxxx6009 Před 3 lety +2

    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)

  • @harshalgawai746
    @harshalgawai746 Před 3 lety +6

    I want to watch n re-watch it

  • @theartofcraft4480
    @theartofcraft4480 Před 3 lety +3

    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 ?

    • @guitaro
      @guitaro Před 3 lety +1

      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.

    • @BulatBulatCafe
      @BulatBulatCafe Před 3 lety

      You can watch Charles' explanation here: czcams.com/video/k8a6tX53YPs/video.html (of relevance on this particular topic would be ~3:40 onwards)

  • @bigmac5865
    @bigmac5865 Před 2 lety

    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

  • @EdwinTuzar
    @EdwinTuzar Před 3 lety

    does it work only with Solidity? Or can you use the binaries from other prog. language?

    • @BulatBulatCafe
      @BulatBulatCafe Před 3 lety

      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)

  • @haissambadih6773
    @haissambadih6773 Před 2 lety

    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

  • @erikonomics1400
    @erikonomics1400 Před 3 lety

    Any coding course suggestions to learn about smart contracts on blockchain?

  • @TradeStream
    @TradeStream Před 3 lety +1

    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.

    • @BulatBulatCafe
      @BulatBulatCafe Před 3 lety

      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)

  • @ffirstllast3328
    @ffirstllast3328 Před 3 lety +5

    Awesome game changer - Goodbye broken ethereum

  • @katekoala9475
    @katekoala9475 Před 3 lety +1

    woow

  • @MrDripNFT
    @MrDripNFT Před 3 lety

    Sounds legit

  • @KevinBeal
    @KevinBeal Před 3 lety +1

    Even I could do this! Cool. Now I just need to figure out what smart contracts are...

    • @elektroglow
      @elektroglow Před 3 lety

      A smart contract is a piece of software that runs in the blockchain. It is what u see in the video.

    • @KevinBeal
      @KevinBeal Před 3 lety

      @@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.

    • @elektroglow
      @elektroglow Před 3 lety

      @@KevinBeal well from what I can see u can replicate the whole ethereum smart contracts in cardano. There u have your use cases.

    • @KevinBeal
      @KevinBeal Před 3 lety

      @@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?

  • @bigmac5865
    @bigmac5865 Před 2 lety

    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 ?

  • @Steamerbeen
    @Steamerbeen Před 3 lety

    Always a Brit going mental! 🤣 they are so underrated as devs

  • @danzada7769
    @danzada7769 Před 3 lety

    Thanks 4 making = {PLAIN○}

  • @teddy-mryamz
    @teddy-mryamz Před 3 lety

    I like formal verifiability. Michelson on Tezos chain seems more secure by design.

    • @typodapsycho1734
      @typodapsycho1734 Před 3 lety

      Elaborate plz. What seems insecure about what was shown here?

  • @OfficialGOD_YT
    @OfficialGOD_YT Před 3 lety +1

    web3-ada-abi soon hopefully, someone fork it

  • @claudelew
    @claudelew Před 3 lety +2

    This hello world...is like chapter 20 already haha

    • @Cekios
      @Cekios Před 3 lety

      Ahh yes, the cope and seethe comment.

  • @jamaineekong8692
    @jamaineekong8692 Před 2 lety

    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.

  • @hanad276
    @hanad276 Před 3 lety

    Why use gas? Wouldn't electricity be cheaper?

  • @group5869
    @group5869 Před 3 lety

    37.8 - 38.8

  • @weektopeak
    @weektopeak Před 3 lety

    Writing smart contracts like this is like eating with a stick.

  • @stinkymotor
    @stinkymotor Před 3 lety

    What he said .

  • @nwedge4
    @nwedge4 Před 2 lety

    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.

  • @gabrielonofrei6154
    @gabrielonofrei6154 Před 3 lety +1

    Wat.

  • @OprichnikStyle
    @OprichnikStyle Před 3 lety +1

    I wish i understood 5% of what is shown here

    • @FishBarney
      @FishBarney Před 3 lety +4

      I understood the bit where he said "I hope this has been helpful, and thank you for watching"

  • @inq752
    @inq752 Před 3 lety

    Now start a "hello world" program

  • @hanad276
    @hanad276 Před 3 lety

    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

    • @DTrackful
      @DTrackful Před 3 lety

      Maybe not exactly but yeah you can use the Ethereum code on Cardano.

  • @Sydra.
    @Sydra. Před 3 lety +1

    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.

  • @harisnabeel542
    @harisnabeel542 Před 2 lety

    Facing this error
    Invalid JSON RPC response: undefined
    @IOHK help please