-
Notifications
You must be signed in to change notification settings - Fork 4
/
addtestdata.sh
15 lines (13 loc) · 1.49 KB
/
addtestdata.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e
echo "Adding videos...."
echo "Their ids will be printed"
dfx canister call asset_storage store "(\"Test video\", \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEX/TQBcNTh/AAAACklEQVR4nGNiAAAABgADNjd8qAAAAABJRU5ErkJggg==\", \"\", vec {\"dark\"}, principal \"$(dfx identity get-principal)\", vec {}, 0)"
dfx canister call asset_storage store "(\"Another test video\", \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEX/APiqhHMZAAAACklEQVR4nGNiAAAABgADNjd8qAAAAABJRU5ErkJggg==\", \"\", vec {}, principal \"$(dfx identity get-principal)\", vec {}, 0)"
dfx canister call asset_storage store "(\"Video with birds\", \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUA/0k7XjmcAAAACklEQVR4nGNiAAAABgADNjd8qAAAAABJRU5ErkJggg==\", \"\", vec {}, principal \"$(dfx identity get-principal)\", vec {}, 0)"
# dfx canister call asset_storage store "(\"B@B Fundamentals Lecture #2\", \"4...\", principal \"$(dfx identity get-principal)\", [], 0)"
# dfx canister call asset_storage store "(\"B@B Fundamentals Lecture #3\", \"5...\", []principal \"$(dfx identity get-principal)\", 0, 0)"
# dfx canister call asset_storage store "(\"B@B Fundamentals Lecture #4\", \"6...\", [], principal \"$(dfx identity get-principal)\", 0, 0)"
# dfx canister call asset_storage store "(\"B@B Fundamentals Lecture #5\", \"7...\", [], principal \"$(dfx identity get-principal)\", 0, 0)"
echo "Printing all videos..."
dfx canister call asset_storage all