smart-signature / smart-gift-contract

Gift library based on smart signature
1 stars 2 forks source link

The design of the signature table. #1

Open lychees opened 5 years ago

lychees commented 5 years ago
    // @abi table signs
    struct sign_info {
        uint64_t id;
        account_name creator = 0;
        account_name owner = 0;
        uint64_t creator_fee;
        uint64_t ref_fee;
        uint64_t k;        
        uint64_t price;
        uint64_t last_anti_bot_fee = 0;
        uint64_t anti_bot_init_fee;
        time anti_bot_timer;
        time last_buy_timer;        
        time st;
        uint64_t primary_key()const { return id; }
        uint64_t next_price() const {
            return price * k / 1000;
        }
    };    

Involve UGC (User generator content) is a key part in dapp design. In Smart Signature, every independent user can upload his own article and issue his own signature on the top of it. And of course, according to our slogan ("Give the power back to users!"), we should also trust and give our users as much freedom as possible to make their own choices.

The user can choose:

yukiexe@, would mind to help me to:

Don't forget to examine the boundary conditions for each of them.