@@ -14,8 +14,7 @@ CONTRACT cryptomeetup : public council {
14
14
council ( receiver, code, ds ),
15
15
_market (receiver, receiver.value ),
16
16
_land (receiver, receiver.value ),
17
- _portal (receiver, receiver.value ),
18
- _player (receiver, receiver.value ) {}
17
+ _portal (receiver, receiver.value ) {}
19
18
20
19
TABLE global : public global_info {};
21
20
TABLE voters : public voter_info {};
@@ -48,15 +47,11 @@ CONTRACT cryptomeetup : public council {
48
47
};
49
48
50
49
TABLE player {
51
- name account;
52
50
uint64_t portal_approved;
53
51
uint64_t meetup_attended;
54
- uint64_t land_profit ; // 卖land/portal收入 EOS
52
+ uint64_t game_profit ; // 游戏收入 EOS
55
53
uint64_t ref_profit; // 拉人收入(land/portal两种情况) CMU
56
- uint64_t fee_profit; // creator创建地标收入(仅portal) EOS
57
- uint64_t pool_profit; // 奖池收入 CMU(仅land)。奖池收入全网一直为0,只有某轮结束后最后那个玩家的奖池收入才变化
58
- // 还有个抵押分红,记录在global和voters里面。这里不涉及。
59
- uint64_t primary_key () const {return account.value ;}
54
+ uint64_t fee_profit; // creator创建地标收入(仅portal) CMU
60
55
void withdraw () {
61
56
}
62
57
};
@@ -67,13 +62,12 @@ CONTRACT cryptomeetup : public council {
67
62
};
68
63
69
64
typedef eosio::multi_index<" land" _n, land> land_t ;
70
- land_t _land;
65
+ land_t _land;
71
66
typedef eosio::multi_index<" portal" _n, portal> portal_t ;
72
67
portal_t _portal;
73
68
74
- typedef eosio::multi_index<" players" _n, player> player_t ;
75
- player_t _player;
76
-
69
+ typedef singleton<" players" _n, player> singleton_global;
70
+
77
71
typedef eosio::multi_index<" market" _n, market> market_t ;
78
72
market_t _market;
79
73
@@ -88,6 +82,9 @@ CONTRACT cryptomeetup : public council {
88
82
council::unstake (from, delta);
89
83
}
90
84
ACTION claim (name from) {
85
+
86
+ eosio_assert (false , " not start yet." );
87
+
91
88
council::claim (from);
92
89
93
90
@@ -145,6 +142,7 @@ CONTRACT cryptomeetup : public council {
145
142
void sell (name from, extended_asset in, const vector<string>& params);
146
143
147
144
void apply (uint64_t receiver, uint64_t code, uint64_t action) {
145
+
148
146
auto &thiscontract = *this ;
149
147
if (action == name (" transfer" ).value ) {
150
148
auto transfer_data = unpack_action_data<st_transfer>();
0 commit comments