-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands_for_client
26 lines (18 loc) · 1.35 KB
/
commands_for_client
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
Current contract module reference: 44f8634aedb78224013388abd1fa0876f0a3129ec0a32e97fcea737a041480d8
Contrat init address:5124
Optimize:
wasm-opt -Oz -o ./target/concordium/wasm32-unknown-unknown/release/voting.wasm ./target/concordium/wasm32-unknown-unknown/release/voting.wasm
Deploy:
concordium-client module deploy ./target/concordium/wasm32-unknown-unknown/release/voting.wasm.v1 --sender testing3
Init:
concordium-client contract init 22f793848b4b145cfef2d0ab3d8c99fdbc7a10fae56e6519ac7722b0c94b0551 --sender voter1 --contract voting --energy 100000 --parameter-json ../data/parameters/voteconfig.json
Register:
concordium-client contract update 5093 --entrypoint register --sender testing --parameter-binary parameters/register_msgs/register_msg0.bin --energy 200000 --amount 1
Commit:
concordium-client contract update 5099 --entrypoint commit --sender voter13 --parameter-binary parameters/commit_msgs/commit_msg13.bin --energy 200000
Vote:
concordium-client contract update 5087 --entrypoint vote --sender testing --parameter-binary parameters/vote_msgs/vote_msg0.bin --energy 200000
Result:
concordium-client contract update 5124 --entrypoint result --sender voter1 --energy 200000
Change_phase:
concordium-client contract update 5124 --entrypoint change_phase --sender voter1 --energy 200000