Skip to content

Rewarding workshop participants at the Social Developers Conference 2024 in $XPR if they successfully execute the task within 30 days.

License

Notifications You must be signed in to change notification settings

kryptokrauts/sdcworkshop

Repository files navigation

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

About

Rewarding workshop participants at the Social Developers Conference 2024 in $XPR if they successfully execute the task within 30 days.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published