Contest: Dune->FreeTON Swap Implementation Stage 1 Proposal

Following the previous architecture contest: Contest: Dune → FreeTON Swap Architecture - #2 by cryonyx

Contest dates

Submission period : 3 calendar weeks after approving this proposal in the governance interface;

Judging period : 1 calendar week after the submission period.

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

Procedural remarks to jurors

As per Procedural remarks on contests.

This contest is judged by the Jury of DeFi Subgovernance.

Jury rewards

As per Procedural remarks on contests.

Governance rewards

As per Procedural remarks on contests.

Procedural reminders to all contestants

As per Procedural remarks on contests.

3 Likes

Great! I think time for this contest should be a bit longer

Please think about Dune people who are waiting for this swap.
It’s already too long, very too long.

The swap should already have been begin !!!

So, now, please stop doing proposals and proposals.

Ça devient complètement dingue, après cela on arrivera à 6 mois pour créer un swap :disappointed:

As I told Pavel, we lost a lot of time because we didn’t really understand the whole governance process for a while. Having a completely decentralized governance is great, but it comes with some drawbacks… Anyway, if this proposal is voted, the merge should start just at the end, in about 4 weeks, and the Dune community will be part of the Free TON community a few days after. I think it’s close enough that it’s worth being patient. It gives us some time to better test the merge and document the whole process for users.

The ORL team is going to send his submission !

Contact on Telegram: @fabrice_dune
Surf wallet: 0:60a74bf0a86b3ab44de42b8ccac944ff8fa95745add04b2505cb84fd42265783

1 Like

Due to the issue with jurors’ notification about the contest I propose to extend the voting period for 1 additional week.

Contest

Dune → FreeTON Swap Implementation Stage 1

New voting deadline

2021-06-28T23:59:00Z

Special remarks

The currently existing single vote of juror 0:104bfaf ···· ec848ad61 should be counted together with the votes received with the extension period. This juror should be eligible for getting the corresponding jury reward.

For the sake of keeping the track record of this vote, I hereby attach its screenshot.

1 Like

We are already quite late on this merge, I don’t really see the benefit of adding one extra week just for this single-submission contest. What about starting a short “Audit” contest instead ? I think it would give an extra opportunity for jurors to look at the code, and benefit the project with reviews and maybe catching some bugs.

1 Like

Thanks Fabrice, that’s great idea. we’re all been waiting for the swap to start so we can participate in the TON ecosystem. Owning the token is the start!

This merge is too long.
Ok for one more week (already started by the way…), but after that, swap has to be online !

Does anybody know the TON contract address for the Dune-TON SWAP?

The swap is still under development, as this proposal contains modifications from the original specification. So the contract is not yet deployed on the network.