Giter Site home page Giter Site logo

raffle-mytrevo's Introduction

MyRaffle -> MyTrevo

NOTE: If you're not interested in reading about the misadventures of a beginner, feel free to skip to Languages.

The lottery protocol was my first project in Solidity. Up until then, I had only been following video tutorials in search of the necessary basic learning. The idea for creating the study protocol came from Bozz, as well as the guidelines for it.

After three weeks of studying everything I could find about Solidity, I began the project. From 06/30/2023 to 08/14/2023, I dedicated, on average, 6 hours a day. Exploring everything that could help me accomplish the mission I was given.

The biggest challenge was the CCIP, by far. Everything else I found ample help on the internet and also from Bozz. However, CCIP had just been released, and therefore, there was no content about it other than the Chainlink documentation.

"Beginner" relying solely on documentation sometimes doesn't work out very well, right? But as they say, a mission given is a mission accomplished! I dissected the CCIP and implemented it in the protocol!

After the project was delivered, Bozz informed me that this was a 'real' project and that, after adjustments, it would become the MyTrevo.yxz protocol that is now active and working as expected.

๐Ÿ‘ฉโ€๐Ÿ’ป Languages that I used

Barba-Solidity Barba-Js

๐Ÿ› ๏ธ Tools

Barba-Chainlink - CCIP & VRF

๐Ÿ“„ About the project - [Summary]

MyRaffle or MyTrevo, as it's named, is a lottery protocol where any individual can register and create lotteries on the platform. Lotteries can involve:

  • Stablecoins
  • NFTs on Polygon or Ethereum.

When creating the lottery, the owner defines:

  • Period;
  • Prize;
    • It needs to be deposited immediately after the creation of the lottery;
  • Soft cap;

At the end of the period, if the softcap is reached, the lottery is conducted via Chainlink VRF. Once the winner is chosen, if the prize is on the Polygon network [project's network], the payment is made instantly. However, if the prize is an NFT on Ethereum, the CCIP on the Polygon network notifies the CCIP on the Ethereum network, and from there, the prize is paid to the winner.

๐Ÿง”๐Ÿปโ€โ™‚๏ธ My contribution

As a Solidity developer and co-author of the protocol, I was responsible for designing and building phase 1 of the MyTrevo.xyz. My work includes a simple structure of the protocol and the implementation of Chainlink Tools as Verifiable Random Numbers and Cross Chain Interoperability. So the protocol can raffle clients NFTs on the Ethereum blockchain through the protocol on the Polygon blockchain.

raffle-mytrevo's People

Contributors

i3arba avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.