-
Notifications
You must be signed in to change notification settings - Fork 0
/
myeosgroupon.sh
executable file
·116 lines (64 loc) · 6.84 KB
/
myeosgroupon.sh
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Network
# -u http://api-direct.eosasia.one
# -u https://api-kylin.eosasia.one
cleos wallet unlock --password PW5JaGpLtoM1vtD1WxiAC4RDsr82FRUczmKgocw1KJZqVahB4LZ1u
#/usr/local/eosio/bin/eosiocpp -g myeosgroupon/myeosgroupon.abi myeosgroupon/myeosgroupon.cpp
/usr/local/eosio/bin/eosiocpp -o myeosgroupon/myeosgroupon.wast myeosgroupon/myeosgroupon.cpp
# Set Contract
cleos -u http://api-direct.eosasia.one set contract myeosgroupon myeosgroupon -p myeosgroupon@active
cleos -u http://api-direct.eosasia.one push action dacincubator create ' [ "dacincubator" , "210000000.0000 CMU"]' -p dacincubator@active
cleos -u http://api-direct.eosasia.one push action dacincubator create ' [ "dacincubator" , "100000000.0000 YDAPP"]' -p dacincubator@active
cleos -u http://api-direct.eosasia.one push action dacincubator issue ' [ "dacincubator" , "1.0000 YDAPP", ""]' -p dacincubator@active
# cleos -u http://api-direct.eosasia.one push action myeosgroupon init '[]' -p myeosgroupon@active
#cleos -u http://api-direct.eosasia.one push action myeosgroupon claim '[ "" ]' -p myeosgroupon@active
# cleos -u http://api-direct.eosasia.one push action myeosgroupon claim2 '[ "" ]' -p myeosgroupon@active
#cleos -u http://api-direct.eosasia.one push action myeosgroupon distribute '[ "" ]' -p myeosgroupon@active
#cleos -u https://api.eosnewyork.io:443 push action myeosgroupon distribute '[ "" ]' -p myeosgroupon@active
#cleos -u http://api-direct.eosasia.one get table dacincubator myeosgroupon accounts
#cleos -u https://api.eosnewyork.io:443 get table myeosgroupon myeosgroupon global
#cleos -u https://api.eosnewyork.io:443 get table -l 65536 myeosgroupon myeosgroupon order
cleos -u http://api-direct.eosasia.one push action dacincubator transfer '[ "eosotcbackup", "fcoinservice", "37275.0000 KBY", ""]' -p eosotcbackup@active
cleos -u http://api-direct.eosasia.one push action eosio.token transfer '[ "myeosgroupon", "dacincubator", "54.0000 EOS", ""]' -p myeosgroupon@active
#fcoinservice
{"msg": "succeeded", "keys": {"active_key": {"public": "EOS6LUL5DdaFuUwjM3zdrkX11oA5fUpiDDjtUPqqiCaacJ4c3DQxF", "private": "5K2Q4CRY9Xqy9HwP3FNLxXGN2Lt7EgAL9WEwR3LGkyXoAeQTyCh"}, "owner_key": {"public": "EOS819Ww1vWMgbquchPvQnoLNEiocerrojfUKT9CrRFSU6FuKs5uW", "private": "5KBL1JPpKXJ34GBHiCajUtasFvMc2uuXPvBRVyXcgpeuymzxFH8"}}, "account": "pixelmaster2"}
#37275
#cleos -u http://api-direct.eosasia.one get table dacincubator eosotcbackup accounts
#cleos -u http://api-direct.eosasia.one push action dacincubator transfer '[ "myeosgroupon", "minakokojima", "70.0329 KBY", ""]' -p myeosgroupon@active
#cleos -u http://api-direct.eosasia.one push action dacincubator transfer '[ "minakokojima", "myeosgroupon", "10.0000 KBY", ""]' -p minakokojima@active
#cleos -u http://api-direct.eosasia.one push action dacincubator transfer '[ "myeosgroupon", "rukamoemoe51", "5.0000 KBY", ""]' -p myeosgroupon@active
#cleos -u http://api-direct.eosasia.one push action dacincubator transfer '[ "dacincubator", "myeosgroupon", "10.0000 KBY", ""]' -p dacincubator@active
#cleos -u http://api-direct.eosasia.one push action dacincubator transfer '[ "myeosgroupon", "rukamoemoe51", "124.0000 KBY", ""]' -p myeosgroupon@active
#cleos -u http://api-direct.eosasia.one get table -l 65536 myeosgroupon myeosgroupon order
#cleos -u http://api-direct.eosasia.one get table myeosgroupon myeosgroupon global
#cleos -u http://api-direct.eosasia.one push action dacincubator transfer '[ "minakokojima", "myeosgroupon", "5.0000 KBY", "" ]' -p minakokojima@active
#eosowangfeng TPT
#cleos -u http://api-direct.eosasia.one push action sieosmainnet transfer '[ "sieosmainnet", "jacklighteos", "1.9000 EOS", "eosowangfeng TPT"]' -p sieosmainnet@active
# ask order
# cleos -u http://api-direct.eosasia.one push action eosio.token transfer '[ "myeosgroupon", "dacincubator", "0.0020 EOS", "buy" ]' -p myeosgroupon@active
# cleos -u https://api-kylin.eosasia.one push action eosio.token transfer '[ "minakokojima", "myeosgroupon", "0.5000 EOS", "take,1.0000 HPY,happyeosslot,0" ]' -p minakokojima@active
# take order
# cleos -u https://api-kylin.eosasia.one push action eosio.token transfer '[ "minakokojima", "myeosgroupon", "0.5000 EOS", "take,1.0000 HPY,happyeosslot,0" ]' -p minakokojima@active
# cleos -u https://api-kylin.eosasia.one push action happyeosslot transfer '[ "minakokojima", "myeosgroupon", "0.0001 HPY", "ask,0.0001 EOS,eosio.token" ]' -p minakokojima@active
# cleos -u https://api-kylin.eosasia.one push action eosio.token transfer '[ "minakokojima", "myeosgroupon", "0.0001 EOS", "take,0.0001 HPY,happyeosslot,2" ]' -p minakokojima@active
#// take,1.0000 HPY,happyeosslot,0
# cleos -u https://api-kylin.eosasia.one push action happyeosslot transfer '[ "minakokojima", "myeosgroupon", "0.4999 HPY", "take,1.0000 EOS,eosio.token,1" ]' -p minakokojima@active
# Query Table
# cleos -u https://api-kylin.eosasia.one get table happyeosslot happyeosslot accounts
# cleos -u http://api-direct.eosasia.one get table myeosgroupon myeosgroupon txlog
# cleos -u https://api-kylin.eosasia.one get table myeosgroupon happyeosslot order
# cleos -u https://api-kylin.eosasia.one get table myeosgroupon myeosgroupon order
# /usr/local/eosio/bin/eosiocpp -g pomelo/pomelo.abi pomelo/pomelo.cpp
#
# cleos -u https://api-kylin.eosasia.one push action eosio.token transfer '[ "minakokojima", "happyeosslot", "10.0000 EOS", "buy" ]' -p minakokojima@active
# cleos -u https://api-kylin.eosasia.one push action happyeosslot transfer '[ "minakokojima", "myeosgroupon", "1.0000 HPY", "ask,0.5000 EOS,eosio.token" ]' -p minakokojima@active
# cleos -u https://api-kylin.eosasia.one set contract happyeosslot happyeosslot -p happyeosslot@active
#cleos -u https://api-kylin.eosasia.one push action happyeosslot transfer '[ "minakokojima", "myeosgroupon", "1.0000 HPY", "ask,2.0000 HPY,eosio.token" ]' -p minakokojima@active
# cleos -u https://api-kylin.eosasia.one push action myeosgroupon '[]' -p minakokojima@active
# cleos -u https://api-kylin.eosasia.one set contract pomelodex111 pomelo -p pomelodex111@active
# cleos -u https://api-kylin.eosasia.one set contract pomelodex111 pomelo -p pomelodex111@active
# cleos -u https://api-kylin.eosasia.one push action eosio.token transfer '[ "minakokojima", "happyeosslot", "1.0000 EOS", "buy" ]' -p minakokojima@active
# cleos -u https://api-kylin.eosasia.one push action eosio.token transfer '[ "minakokojima", "pomelodex111", "1.0000 EOS", "buy,happyeosslot,HPY,2.0000" ]' -p minakokojima@active
# /usr/local/eosio/bin/eosiocpp -g pomelo/pomelo.abi pomelo/pomelo.cpp
# cleos -u https://api-kylin.eosasia.one set contract pomelodex111 pomelo -p pomelodex111@active
# cleos -u https://api-kylin.eosasia.one system newaccount --stake-net '5.0000 EOS' --stake-cpu '1.0000 EOS' --buy-ram '20.0000 EOS' minakokojima pomelodex111 EOS5fY2dmpfXmzXN1DEJ6VfvhhCr55ZpE9MyTd9eX7Cw2EmzJcnFM EOS781pFN6TgUkuCDqmCdyxcp1cnJdtg3DYfajbAba6mvHvrFNuDy
# buy,happyeosslot,HPY,2.0000