Code Monkey home page Code Monkey logo

sdcworkshop's Introduction

Developing Smart Contracts with TypeScript on XPR Network

This repository contains all contents of the workshop held at the Social Developers Conference 2024 organized by the Social Developers Club in Hamburg, Germany.

The workshop is sponsored by the XPR Network community.

Workshop Contracts

During the workshop, participants will create 3 different workshop-contracts to learn and understand core principles for creating & testing Smart Contracts on XPR Network.

For each of these contracts, the required contract files are already provided. The logic is missing and needs to be added by the participants with one single goal:

  • Let the predefined tests pass! ;-)

Note:

  • The first hello-world contract will be solved and demonstrated by the workshop facilitators to ensure everybody understands what needs to be done.

XPR Rewards

Everybody who participates in the workshop, will be eligible to get XPR in two ways:

Redemption of Gift Cards (Immediately, On-Site)

Gift cards will be created and distributed to all on-site participants.

A paper will be handed out to each particpant that contains 2 QR codes:

  • Link to download WebAuth Wallet
  • Link to the Gift Card in order to claim the 3000.0000 XPR

Development of Smart Contracts (Homework)

A total amount of 900000.0000 XPR is reserved to be claimed by workshop participants.

Workshop participants can develop a Smart Contract that must execute a specific logic in order to trigger the xpr-reward-pool contract deployed at sdcworkshop account. An equal share of the XPR reward pool will be distributed to each developer who executes the action on their deployed contract that fullfils the requirement.

The solution needs to be implemented, deployed and executed within 30 days after the workshop. Eligibility to claim ends exactly at unix timestamp 1713180600 (Monday, 15 April 2024, 13:30:00).

Following steps are required in order to allow participants to claim the XPR reward:

  1. Developer registers here for the reward task.
  2. Workshop facilitator adds the XPR account of the developer to the list of eligible developers in the xpr-reward-pool contract deployed at the sdcworkshop account.
  3. Developer forks this repository and implements the missing logic in the homework contract which is required to claim the share of the reward pool.
  4. Developer provides a separate account where the homework-claim-contract which is used to claim the reward will be deployed at.
    • It is recommended to set up a separate account via CLI which is used to deploy the contract.
    • This can be done by calling the setcontract action.
  5. Developer deploys the homework-contract at the provided account which should be used to claim the reward.
  6. Developer performs an action of the homework-contract that will trigger the claim and distribute the XPR to the account of the homework-claim-contract.

Note

  • Join the Developer Chat on Telegram to ask questions related to Smart Contract development.
  • Unclaimed shares of the reward pool will be returned to the xprgrants account after 30 days.

Example XPR distribution

  • 20 developers register
    • each developer can claim 900000.0000 XPR / 20 = 45000.0000 XPR
  • 10 developers successfully claim the reward by solving the homework task
    • 10 * 45000.0000 XPR = 450000.0000 XPR will be returned to xprgrants

Links & Resources

sdcworkshop's People

Contributors

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