Home

Awesome

cairo-dutch

Dutch Auctions implementation on StarkNet.

Overview

Dutch auctions are a way to conduct discrete sales of multiple homogeneous units of a good. Here is an implementation of Dutch Auctions that allows for a large sale of a token on StarkNet. Specifically, we enable the following behavior:

Milestones

[x] Set up dev environment / project skeleton with Nile.

[ ] Implement + briefly test token helper contract

[ ] Figure out how to run and read/write to contracts locally to perform basic contract prodding.

[ ] Find basic token contracts that allow incrementing of account value through public function call. Copy/paste into here, and make two tokens.

[ ] Test out messing around with both tokens, increasing and decreasing token balance.

[ ] Implement + briefly test dutch auction contract

[ ] Implement token that can be bridged L1 <-> L2

[ ] Implement an L1 contract that issues a wrapped token. This will be an ERC20 with the added functionality that our L2 contract is the only entity that can modify how much is owned by each account. This will be used to wrap the base and quote assets.

[ ] Integrate the L2 Dutch auction contract to deposit / withdraw to/from the L1 contract.

[ ] Integrate the L1 contract to withraw / deposit from/to the L2 contract.