-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdemo.sh
executable file
·32 lines (20 loc) · 1.47 KB
/
demo.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
#! /bin/bash
cleos push action addressbook upsert '["bob", "Bob", "Ross", 700, "123 Happy Tree Lane", "Daytona", "Florida"]' -p bob@active
cleos get table addressbook addressbook people
cleos push action addressbook upsert '["bob", "Bobert", "Ross", 700, "123 Happy Tree Lane", "Daytona", "Florida"]' -p bob@active
cleos get table addressbook addressbook people
## wrong authority
cleos push action addressbook upsert '["alice", "Larry", "Kittinger", 4, "100 Block.one Ln", "Blacksburg", "Virginia"]' -p bob@active
cleos push action addressbook upsert '["alice", "Larry", "Kittinger", 4, "100 Block.one Ln", "Blacksburg", "Virginia"]' -p alice@active
cleos get table addressbook addressbook people
cleos -v push action addressbook print '["bucky"]' -p bob@active
cleos -v push action addressbook print '["bob"]' -p bob@active
cleos -v push action addressbook print '["alice"]' -p alice@active
cleos -v push action addressbook ge '[40]' -p alice@active
cleos -v push action addressbook ge '[700]' -p alice@active
cleos -v push action addressbook ge '[701]' -p alice@active
cleos -v push action addressbook hi '["bob"]' -p bob
cleos push action eosio.token create '["eosio", "1000000.0000 SYS"]' -p eosio.token
cleos push action eosio.token issue '["eosio", "100000.0000 SYS", "issuing tokens"]' -p eosio
cleos push action eosio.token transfer '["eosio", "bob", "1000.0000 SYS", "start"]' -p eosio
cleos push action eosio.token transfer '["eosio", "alice", "1000.0000 SYS", "start"]' -p eosio