Hack the Horizon
harmony-one
solidity, ethereum, cross-chain, bitcoin, defi, nft, stablecoin, smart contracts
### Hack the Horizon
This is going to be an amazing hackathon. Details are below and please check out our [main landing page to view the list of AMAZING judges and mentors.](https://hackhorizon.harmony.one/)
### Prize Bounty
A total of $55,000 worth of prizes will be allocated to this hackathon. The breakdown of these prizes to be awarded are the following:
**First Prize (5 winners)**
- $3,000 in ONE Tokens
- 1 year subscription to Messari Pro worth $360
- 1 year subscription to The Defiant worth $100
- .crypto domain from Unstoppable Domains worth $40
- Coingecko Shirt and Notebook
- Harmony T-shirt
**Second Prize (7 winners)**
- $2,000 in ONE Tokens
- .crypto domain from Unstoppable Domains worth $40
- Harmony T-shirt
**Third Prize (10 winners)**
- $1,000 in ONE Tokens
- .crypto domain from Unstoppable Domains worth $40
- Harmony T-shirt
**Band Protocol Partner Prize**
- $3,000
- NOTE: The Band Protocol Partner Prize will be awarded $1,500 in BAND and $1,500 in ONE tokens. The criteria for this is "Best use of BandChain on Harmony" and will be a prize awarded by Band and Harmony.
**Binance.us Partner Prize**
- $3,000
- NOTE: The Binance.us Partner Prize. The criteria for this is "Best use of Binance.us API on Harmony" and will be a prize awarded by Binance.us and Harmony.
### Challenge Description
Priority will go to applications that utilize Horizon, our [Harmony-to-Ethereum Bridge](https://bridge.harmony.one/). And while we'll consider submissions that don't use our bridge, for this hackathon, we are prioritizing applications that will help build our ecosystem in 3 major categories:
- Cross-chain infrastructure
- Decentralized finance showcases
- Fiat utility products
### Cross-chain Infrastructure
We are focused on bridging Harmony with other layer 1 blockchains. We are looking for developers to build protocols for cross-chain lending, DEX and additional components for the trustless Horizon bridge.
- Cross-chain lending protocols: create a money market lending protocol that allows users to lock assets on Ethereum and access an equivalent value of assets on Harmony, and vice versa. The protocol should be non-custodial and could include an additional mechanism to immediately provide liquidity for assets transferred cross-chain for a fee.
- Cross-chain liquidity: build a cross-chain DEX aggregator that allows users to get liquidity and the best prices across different DeFi products including cross-chain DEXes.
- Build bots /smart contracts that identify arbitrage opportunities across chains and automatically fulfills orders.
- Cross chain staking derivatives: build a protocol for users to stake ONEs on Harmony and receive a derivative token on Ethereum to use in other applications.
- Build out components for Harmony’s [trustless Horizon bridge](https://github.com/harmony-one/horizon) including: **Provers**: a program that provides a proof of user transaction. **Relayers**: downloads blocks from chains, extracts relevant information and sends it to light client smart contracts. **Light clients and verifiers**: smart contracts that maintain cross-chain information and verifies the proofs sent by the user.
- Build [ONEBTC](https://github.com/harmony-one/onebtc) (using XCLAIM and BTC-Relay) bridge components:
Port BTC-Relay (a stateful SPV client for Bitcoin) as a Harmony smart contract that stores BTC headers and verifies merkle proofs
- Implement the ONE-BTC issue and redeem protocols
- Vault manager modules for vault register and replace, and treasury smart contract for handling of the ONE-BTC currency (mint, transfer, lock, burn), Collateral module that handles locking, releasing and slashing of collateral & exchange rate manager for getting oracle price
- Staked relayers & security module that handles registration and stake of Staked Relayers as well as voting on bridge status changes
- Harmony has integrated the Rosetta API. Create a new CLI tool specific to Harmony to view blocks, transactions, sign transactions, deploy contracts view chain information, etc.
### DeFi Showcases
We are looking for developers to build and port finance protocols utilizing our Horizon bridge. Bridge liquidity from Ethereum and demonstrate applications that take advantage of Harmony’s fast finality and low fees.
- Swoop DEX: fork the [Swoop](https://github.com/swoop-ex/) cross-chain DEX and build additional components including a governance token, similar to the UNI token for Uniswap, [dashboard info](https://info.uniswap.org/home), mobile wallet support and analytic page with all user and pool information/earnings.
- DEX ecosystem: build out other features for DEXes including integrating with centralized and decentralized exchanges to bring liquidity, on-chain oracles, and arbitrage bots to mitigate price discrepancies. Also build stop loss protocols to protect liquidity providers against impermanent losses.
- On-chain decentralized order book: implement a matching engine as a smart contract on Harmony that also allows users to create limit orders for trading pairs.
- Money market lending protocol native on Harmony: build both lending protocols and aggregators with a single interface consolidating lending protocols, including cross-chain protocols, for the best rates. This also could include aggregators for yield farming.
- Tokenized synthetic assets: build an issuance protocol to mint and support tokenized synthetic assets using Chainlink and Band oracles and listing the assets on Swoop or other Harmony DEXes.
- Build other DeFi showcases including collective savings (PoolTogether, Flavor.finance), decentralized mutual funds (Supertrader), insurance for deposits and smart contract risks (Opyn, Nexus Mutual), prediction markets (Augur, catnip.exchange), decentralized stablecoins (Maker on Harmony).
- Build NFT and gaming showcases: build applications that allow users to create, share, sell and buy digital collectibles.
### Fiat Utility
Build integrations that would allow fiat currency holders to access ONE and HRC20 tokens and connect ONE to fiat merchants and users.
- Fiat loans & lending: build an app for users to deposit Harmony ONE token and receive a fiat (USD, EURO, etc.) loan at a specific collateral ratio.
- Remittance and vouchers: allow users to send remittance in the form of cash or gift cards and vouchers across borders to their home countries.
- Fiat gateways: build a non-custodial peer-to-peer on/off ramp for ONE tokens and fiat currencies using open banking API for country markets such as India and other countries.
- Decentralized currency pegged stablecoins: build a digital currency that keeps a 1:1 peg to the price of that currency with a primary market that buys/sells for the spot rate of 1:1 currency or another mechanism.
- Integrations with fiat gateways and merchants: integrate ONE for payments and allow merchants to accept ONE while denominating and settling sales in their national currency.
- Investment products: build applications that allow users to invest in a derivative of the equity of any company.
### Submission Requirements
- All submissions must be open source
- To qualify for First Prize, all projects must utilize the Horizon Harmony to Ethereum Bridge
- The application must be USEFUL or INTERESTING.
- If there is wide appeal for the application, it will score better.
- A demo video must be submitted for a complete submission
### Judging Criteria
A panel of [distinguished judges](https://hackhorizon.harmony.one/) will evaluate your submission. Here's the criteria by which your work will be judged:
- Teams are limited to 4 members at most.
- Alignment to the challenges above (Cross-chain, DeFi Showcases, and Fiat Utility - read the details above)
- Is the application useful? Is it interesting?
- Originality and innovation: Because Harmony is EVM-compatible, porting anything from Ethereum is easy. If you're going to fork something, that's ok. But add your own flare to it and make it worth using. If it's just a plain-vanilla fork with nothing new, you'll win nada. zip.
- Technicality of implementation: how difficult was it to create your application? If it was easy, that will reduce the likelihood of winning anything.
- Design and usability: Have some pride in what you create; add some craftmanship to it.
### Workshop Schedule
We will be sending an email a few days prior to the workshop and also via notifications in Town Square. So keep an eye out for those. Below are the scheduled workshops. Time is TBD, but the topics are final.
- Nov 18, Opening Ceremonies
- Nov 19, What is the Harmony Protocol
- Nov 23, How to create a simple dapp on harmony protocol
- Nov 24, Office Hours
- Nov 30, Using Bandchain on Harmony
- Dec 2, Horizon: Harmony to Ethereum Bridge
- Dec 3, Office Hours
- Dec 8, Using Magic Link to build a dapp on Harmony
- Dec 10, Office Hours
- Dec 15, Chainlink on Harmony Protocol
- Dec 17, Office Hours
- Dec 18-Jan 3 on Discord and as-needed basis
- Jan 4, Office hours
- Jan 11, The Harmony Grant Program
- Jan 14, Office hours
### Critical Dates
- Nov 9, Open registration
- Nov 17, Hackathon begins
- Jan 17, Submission Deadline 11:00PM Pacific Standard Time
- Jan 18, Closing Ceremonies
- Jan 19-24, Judging
- Jan 25, Winners Announced
- Jan 26, by 6PM PST winners submit wallet addresses
- Jan 28, by 11PM PST all payouts will be complete by this date
### Important Links
- Getting Started: https://docs.harmony.one/home/developers/getting-started
- Horizon trusted bridge smart contracts: https://github.com/harmony-one/ethhmy-bridge
- Bridge SDK: https://github.com/harmony-one/ethhmy-bridge.sdk
- Bridge UI widget: https://github.com/harmony-one/ethhmy-bridge.ui-sdk
- Bridge RPC (fine-grained control): https://docs.harmony.one/home/showcases/crosschain/horizon-bridge/bridge-api
- Harmony JS SDK (mostly used): https://github.com/harmony-one/sdk (contains examples and apps built during previous hackathons)
- Other SDK and general docs: https://docs.harmony.one/home/developers
- Note: We expect developers to use the trusted bridge (also called Horizon) via the SDK. This is the bridge currently running at: https://bridge.harmony.one/ for mainnet and https://testnet.bridge.hmny.io/ for testnet. The trustless Horizon is still under development. If you would like to contribute to its development as part of your hackathon project refer here: https://github.com/harmony-one/horizon
- [Harmony SDKs](https://github.com/harmony-one/sdk)
- Join us on [Discord](https://discord.gg/f98bmsuYe7)
- Follow us on [Twitter](https://twitter.com/harmonyprotocol)
### Notes
- For calculating the amount of ONE tokens as payment in USD, Harmony uses the 24-hour volume-weighted average price using the Binance API (“weightedAvgPrice”) around the time of transfer.