#169 Dune->FreeTON Swap Implementation Stage 1

Period

  • Submission period
    June 28 - June 28, 2021
  • Judging period
    June 29 - 6 July, 2021

About

Short description

Implement Stage 1 of the winning architecture of the Dune → FreeTON Swap Architecture contest with the milestone “Initial Implementation”.

Type

Chained contest

Stages

1. Initial implementation (relays and smart contracts), testing on testnet and mainnet

2. Relays Deployment and Merge Execution

Motivation

Merge with the Dune Network blockchain and its community in order to increase the resources and joint development of the Free TON community.

The FreeTON part of the relay should be as generic as possible to be reused for following merges with other protocols.

General requirements

● Cross-chain passing of swap orders from Dune to FreeTON with censorship resistance

● The protocol must have protections against a minority of byzantin relays

● The possibility of trustless and non-custodial transfer of value between networks

● Code and documentation should be published in open-source at GitHub/GitLab or

another open repository

Fair play

As per Procedural remarks on contests.

Evaluation criteria and winning conditions

Hard criteria

● Implementation of smart contracts

● Implementation of relay nodes

● Implementation of user interfaces

● Documentation. Detailed structured documentation for development tools and

step-by-step examples to prove deliverables of this stage

Soft criteria

● Detailed and easily understandable charts explaining the architecture and business processes

● Brevity

● Mostly everyday English to facilitate understanding

● Readiness to participate in the implementation of the solution in the next stage

Artifacts

● Relay node source code:

○ Watching the Dune Network for new swap orders to update DB

○ Watching the DB to propagate swap orders to FreeTON, confirm them, reveal the

keys if known, or cancel them if expired

○ Watching the FreeTON network for revelations to update DB

○ Watching the DB to propagate revelations to Dune Network

○ Getting a relayer status

● FreeTON and Dune Network smart-contracts

● Web Interface for Dune holders to create swaps

● Link to documentation at Github/Gitlab or another open repository, with the obligatory

backlink to your submission in the repository’s README

Winning conditions

● Anybody can participate

● To apply for the next stage of the competition, you need:

○ take a prize in one of the first three places

○ score at least 5 points in the voting from the jury

Rewards

1 place ............................120 000 TON

2 place ............................90 000 TON

3 place ............................50 000 TON

Winners works