Skip to content

Cardano Vending Machine for Stake Pool delegators

Notifications You must be signed in to change notification settings

wowica/simple_drop

Repository files navigation

SimpleDrop

A Simple Reward system for Cardano written in Phoenix Live View

Use the following delegator address as an example:

addr_test1qp4fsmany20eqfjwcr47tspq2xly9r8qf7yx3e502cfqernqvt7dxydvf9k33mjl2fvj3fanz9gqrrkwaxzn6cx20p7sn4ea7d

This should display you are eligible 🎉

Steps needed for eligibility:

  1. Create an address on Cardano's Preview Testnet
  2. Grab some tADA from the faucet
  3. Delegate to the JUNGLE Stake Pool on Preview testnet using the following pool id: pool1j3x329u0uxh9s9vjvsad9kx37tzal8gndz6ttxumcz4nw947djw
  4. Wait a few seconds for the transaction to go through
  5. Use a staking address (must include staking information) to check for eligibility. If your delegation went through, then you should be eligible!

Running in development

An existing Blockfrost project_id is required to be set on following ENV:

BLOCKFROST_PROJECT_ID=""

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.