Crates.io | litemint-auction-contract |
lib.rs | litemint-auction-contract |
version | 0.1.7 |
source | src |
created_at | 2023-12-19 08:38:02.404494 |
updated_at | 2024-02-07 03:06:31.518141 |
description | Auction smart contract for the Litemint marketplace, implementing timed auctions with support for sealed bids, ascending and descending price mechanisms. |
homepage | |
repository | https://github.com/litemint/litemint-soroban-contracts |
max_upload_size | |
id | 1074092 |
size | 57,904 |
Litemint auction smart contract powering the Litemint marketplace.
Licensed under MIT. This software is provided "AS IS", no liability assumed. More details.
Since 2021, the Litemint marketplace has utilized the Stellar DEX for time-based auctions, leveraging time-bound, pre-auth transactions details in our blog. While these auctions offer security and interoperability, they lack flexibilities, such as anti-snipe mechanisms and varied bidding strategies like descending auctions.
The Litemint Auction Contract on Soroban (Stellar's Rust-based smart contracts platform), addresses these limitations. The smart contract enhances the Litemint marketplace while co-existing with our SDEX-based method, offering users a comprehensive and versatile auction experience.
reserve price
and ask price
.soroban-kit
provides fast, lightweight functions and macros with lean, targeted functionality for Soroban smart contract development:
https://github.com/FredericRezeau/soroban-kit.
The Litemint auction contract uses the following features from soroban-kit
:
commitment-scheme
to implement sealed bid auctions.state-machine
to manage auction phases.storage
for type safety with storage operations.From the workspace root:
git clone https://github.com/Litemint/litemint-soroban-contracts.git
soroban contract build
cargo test -- --nocapture
soroban contract deploy --wasm target/wasm32-unknown-unknown/release/litemint_auction_contract.wasm --source ACCOUNT --rpc-url https://soroban-testnet.stellar.org:443 --network-passphrase "Test SDF Network ; September 2015"
output > CONTRACT_ID
soroban contract invoke --id CONTRACT_ID --source ACCOUNT --rpc-url https://soroban-testnet.stellar.org:443 --network-passphrase "Test SDF Network ; September 2015" -- initialize --admin ACCOUNT --anti_snipe_time 60 --commission_rate 5 --extendable_auctions true
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/feature
)git commit -m 'Add some feature'
)git push origin feature/feature
)Distributed under the MIT License. See LICENSE for more information.
LitemintHQ on X - @LitemintHQ
Litemint Marketplace: https://litemint.com
Join our discord server: https://litemint.gg