-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (41 loc) · 1.04 KB
/
Makefile
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
.PHONY: all
all: build
.PHONY: build
.SILENT: build
build:
./did.sh
dfx generate backend
dfx deploy backend
run:
npm run dev
.PHONY: clean
.SILENT: clean
clean:
rm -rf .dfx
.PHONY: create_test_identities
create_test_identities:
dfx identity new --storage-mode plaintext --force alice
dfx identity new --storage-mode plaintext --force bob
dfx identity new --storage-mode plaintext --force charlie
@echo "created alice, bob, and charlie"
.PHONY: test_create_member
test_create_member:
@echo "adding alice to the dao"
dfx identity use alice
dfx canister call backend create_member \
'( "alice" )'
dfx canister call backend get_all_members
@echo ""
@echo "adding bob to the dao"
dfx identity use bob
dfx canister call backend create_member \
'( "bob" )'
dfx canister call backend get_all_members
@echo ""
@echo "adding alice to the dao (again)"
dfx identity use alice
dfx canister call backend create_member \
'( "alice" )'
dfx canister call backend get_all_members
#cleanup - changing identity to default
dfx identity use default