forked from ITE-Organization/ite-supernova
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitedata.cpp
More file actions
84 lines (67 loc) · 2.71 KB
/
Copy pathitedata.cpp
File metadata and controls
84 lines (67 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#include <eosiolib/currency.hpp>
#define GAME_SYMBOL S(4, EOS)
#define ITE1_CONTRACT N(iteblackhole)
#define ITE2_CONTRACT N(itedeathstar)
#define ITE3_CONTRACT N(iteecosystem)
using namespace eosio;
using namespace std;
namespace ite1
{
// air drop for ite1
struct userinfo
{
uint64_t gameid;
account_name owner;
int64_t hodl;
int64_t claim_status;
uint64_t primary_key() const { return gameid; }
EOSLIB_SERIALIZE(userinfo, (gameid)(owner)(hodl)(claim_status))
};
typedef multi_index<N(userinfo), userinfo> ite1user_index;
}
namespace ite2
{
// air drop for ite2
struct userinfo
{
uint64_t gameid;
account_name owner;
int64_t hodl; // 持有智子数量
int64_t claim_status; // 见证奖领取状态
int64_t action_count; // 累计操作次数
int64_t last_action_time = current_time(); // 上一次操作时间
asset fee_amount = asset(0, GAME_SYMBOL); // 累计手续费
asset in = asset(0, GAME_SYMBOL); // 累计收入
asset out = asset(0, GAME_SYMBOL); // 累计支出
uint64_t primary_key() const { return gameid; }
EOSLIB_SERIALIZE(userinfo, (gameid)(owner)(hodl)(claim_status)(action_count)(last_action_time)(fee_amount)(in)(out))
};
typedef multi_index<N(userinfo), userinfo> ite2user_index;
}
namespace ite3
{
// air drop for ite3
struct userinfo
{
int64_t id;
account_name owner;
account_name referrer; // 推荐人
int64_t hodl; // 持有ITE数量
int64_t total_share_ite; // 累计推荐奖励ITE
int64_t ref_count; // 累计推荐人
int64_t claim_count; // 参与领分红次数
int64_t action_count; // 累计操作次数
int64_t last_action_time = now(); // 上一次操作时间
int64_t last_claim_time; // 上一次领分红时间
int64_t next_claim_time; // 下一次可领分红时间
int64_t staked_time; // 锁币时间
asset fee_amount = asset(0, GAME_SYMBOL); // 累计手续费
asset in = asset(0, GAME_SYMBOL); // 累计收入
asset out = asset(0, GAME_SYMBOL); // 累计支出
asset claim = asset(0, GAME_SYMBOL); // 累计分红
int64_t join_time = now();
uint64_t primary_key() const { return id; }
EOSLIB_SERIALIZE(userinfo, (id)(owner)(referrer)(hodl)(total_share_ite)(ref_count)(claim_count)(action_count)(last_action_time)(last_claim_time)(next_claim_time)(staked_time)(fee_amount)(in)(out)(claim)(join_time))
};
typedef multi_index<N(userinfo), userinfo> ite3user_index;
}