https://github.com/samparsky/ink-blind-auction
Blind auction implemented using Substrate INK
https://github.com/samparsky/ink-blind-auction
Last synced: 3 months ago
JSON representation
Blind auction implemented using Substrate INK
- Host: GitHub
- URL: https://github.com/samparsky/ink-blind-auction
- Owner: samparsky
- License: mit
- Created: 2020-09-22T03:33:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T16:54:38.000Z (over 4 years ago)
- Last Synced: 2023-10-26T11:51:40.463Z (over 1 year ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ink-blind-auction
Blind auction implemented using Substrate INK smart contract programming language.
It implements a basic blind auction name registration system in with Substrate ink! dsl.
# How it works
- User submits in plain text the name they want to register and an auction process starts immediately
- User submits a hash of the name with salt they want to register and a value via `new_bid` function. This prevents anyone from knowing which name the user is bidding
- After the auction period has ended any user can reveal their bid for the `reveal_period_duration` period of time configured
- After the reveal period has ended, the auction winner can call `finalize_auction` to claim their name
- If the user wants to renew for the configured `expiration_duration` he can call `renew` and it get's renewed# TODO
- Complete tests
- Add possibility to move from `finalize_auction` to `start_auction` if no one bids for a submitted name# License
MIT