Skip to content

Instantly share code, notes, and snippets.

@pllearns
Last active February 6, 2019 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pllearns/0de5c45374b3fd50a3d2b5cd8b09c1e7 to your computer and use it in GitHub Desktop.
Save pllearns/0de5c45374b3fd50a3d2b5cd8b09c1e7 to your computer and use it in GitHub Desktop.
XYO APP Hackathon Challenges

XYO ETHDenver Challenges

A few things to consider

  • It would be wise before you start to develop your contracts in a local environment. We have some [resources] for you to get started.
  • Don't rush to code, you have some time to think this problem through. In fact, it's far more effective to fully understand the challenge and whiteboarding/brainstorming through the problem before writing pragma solidity...
  • Have fun and ask questions!

Pre-requisites

  • Web3 working knowledge
  • Use dApper - required
  • React skills
  • We recommend following our style guide

The Challenges

Build an Interface

Note For any of these challenges you will need to access our smart contracts (scsc) [here]

  1. Onboard a Diviner - how can we get an XYO Diviner responding to questions on a testnet away from local development? Make sure you follow the SDK NodeJS Package and it would be helpful to follow the Payable on Delivery Demo Prior to figuring out an onboarding process.

  2. Stake/unstake/withdraw/activate a Diviner - In order for any component on XYO to participate, especially the Diviner, needs to put a stake in (Proof of Stake) to legitimize their responses on-chain. How would you approach this?

  3. Governance - In order for fair rewards upon successful completion of an question/response session, we need to provide rewards from the stake pool. Write and implement a smart contract that can govern an XYO chain with a staking model.

  4. Withdraw rewards - Write and implement a smart contract that can ask for a widthdraw from a 'master wallet' which holds the totals of successful question/response sessions. Do this without any reentrancy and ensure that the contract is secure and modular, and has a consensus model.

  5. Submit Requests {Pool} - This pool will be holding all total active stake. How, using an assumed governance with staking model would you submit a request to/from the pool?

Set up a device with the SDK-BLE

Utilize our robust BLE SDK for Android on a device on XYO

  1. Can you create an powerhouse sentinel that has multiple sensors and can offload bound witness heuristics using the bridge and sentinel libraries to a fixed archivist on site? Think about querying the archivist for data using GraphQL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment