alpha-fi / cheddar-auction Goto Github PK
View Code? Open in Web Editor NEWUser based auctions in Cheddar or NEAR
License: MIT License
User based auctions in Cheddar or NEAR
License: MIT License
cheddar-auction/nft-auction/src/sale.rs
Line 59 in 3425ed7
assert_one_yocto()
in top of function instead
cheddar-auction/nft-auction/src/sale.rs
Line 56 in 3425ed7
cheddar-auction/nft-auction/src/lib.rs
Line 36 in 3425ed7
cheddar-auction/nft-auction/src/sale.rs
Line 83 in 3425ed7
(env::block_timestamp() / 1_000_000_000) as u32
and FIVE_MINS
should be equal to FIVE_MIN_IN_SEC: u32 = 5 * 60;
. You are using now as seconds and FIVE_MINS const as milliseconds
cheddar-auction/nft-auction/src/sale.rs
Line 111 in 3425ed7
Should panic if it calls not by owner_id
cheddar-auction/nft-auction/src/sale.rs
Line 40 in 3425ed7
cheddar-auction/nft-auction/src/sale.rs
Line 125 in 3425ed7
cheddar-auction/nft-auction/src/sale.rs
Line 242 in 3425ed7
ft_on_transfer
you are comparing string and AccountId - token_id = env::predeccessor_account_id()
to sale.token_type: String
cheddar-auction/nft-auction/src/sale.rs
Line 19 in ee01b6d
cheddar-auction/nft-auction/src/lib.rs
Line 41 in ee01b6d
How storage_management realized? Why it removed, v1_cheddar_auction.testnet
(which last updated as I see) didn’t have any StorageManagement?
better using env::predecessor_id() its more efficiently because of less size of msg parsed and can be compared in asserts without calling as_ref() or to_string()
first time -
cheddar-auction/nft-auction/src/sale.rs
Line 109 in ee01b6d
u8::MAX
)
use like this:
if bids.len() + 1 > self.bid_history_length as usize {
bids.remove(0);
};
//and then:
bids.push(new_bid);
How about gas? FT transfer get 5Tgas, each callback - 5Tgas. What if it will be more than 20 accounts to refund FTs, for example? Or it covered on front-end?
Here you are have limit - max payouts is 10
cheddar-auction/nft-auction/src/sale.rs
Line 194 in ee01b6d
cheddar-auction/nft-auction/src/sale.rs
Line 255 in ee01b6d
Where it used, or will be? -> payout.with_cheddar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.