art/scripts/Script4Demo.sh
#!/bin/bash

echo '################# STARTED POST USERS #################'
peer chaincode deploy -l golang -n mycc -c '{"Function": "init", "Args":["INITIALIZE"]}'
sleep 1
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["200", "USER", "Heritage Auctions", "AH",  "3500 Maple Avenue, 17th Floor Dallas, Texas 75219 ", "214-528-3500", "admin@ha.com", "Standard Chartered", "0001732345", "0234678"]}'
sleep 1
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["300", "USER", "Barry Smith", "TRD",  "155 Regency Parkway, #111, Cary, 27518 ", "919-806-3535", "barrys@us.ibm.com", "RBC Centura", "0001732345", "1634678"]}'
sleep 1
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["400", "USER", "Cindy Patterson", "TRD",  "155 Sunset Blvd, Beverly Hills, CA, USA ", "905-806-3535", "cpatterson@hotmail.com", "RBC Centura", "0001732345", "0234678"]}'
sleep 1
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["500", "USER", "Tamara Haskins", "TRD",  "155 Sunset Blvd, Beverly Hills, CA, USA ", "9058063535", "tamara@yahoo.com", "RBC Centura", "0001732345", "5235678"]}'
sleep 1
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["600", "USER", "Jacob", "TRD",  "155 Broadway, New York, NY, USA ", "118-806-3535", "jacob@gmail.com", "RBC Centura", "0001732345", "0234678"]}'
sleep 1
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["700", "USER", "Suntrust", "BNK",  "155 Sunset Blvd, Beverly Hills, CA, USA ", "9058063535", "admin@suntrust.com", "Suntrust", "0001732345", "2023678"]}'
sleep 1
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["800", "USER", "J B Hunt", "SHP",  "One Johnny Blvd, Rogers, AR, USA ", "9058063535", "jess@jbhunt.com", "RBC Centura", "0001732345", "1023687"]}'
sleep 1
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["900", "USER", "Metlife", "MET",  "201 MetLife Way Cary, NC 27513", "215-806-3535", "admin@metlife.com", "Standard Chartered", "3001745345", "9734678"]}'
sleep 1
echo '################# COMPLETED POST USERS #################'
echo '################# STARTED POST ITEMS #################'
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostItem", "Args":["1100", "ARTINV", "Bowl Of Grapes", "jacques Linard", "01-08-2008", "Reprint", "landscape", "Canvas", "45 x 45 in", "item-004.jpg","8500", "300"]}'
sleep 3
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostItem", "Args":["1200", "ARTINV", "Modern Wall Painting", "Scott Palmer", "02-02-2010", "Reprint", "modern", "Acrylic", "10 x 10 in", "art1.png","6000", "300"]}'
sleep 3
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostItem", "Args":["1300", "ARTINV", "Splash of Color", "Jennifer Drew", "06-05-2016", "Reprint", "modern", "Water Color", "15 x 15 in", "art2.png","8000", "300"]}'
sleep 3
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostItem", "Args":["1400", "ARTINV", "Female Water Color", "David Crest", "01-15-1990", "Reprint", "modern", "Water Color", "15 x 15 in", "art3.png","5000", "300"]}'
sleep 3
peer chaincode invoke -l golang -n mycc -c '{"Function": "PostItem", "Args":["1500", "ARTINV", "Mother and Child", "Hugues Merle", "02-08-1600", "Original", "landscape", "Canvas", "17 x 17 in", "item-003.jpg","4000", "300"]}'
sleep 3
echo '################# COMPLETED POST ITEMS #################'
