Skip to content

Commit

Permalink
scripts adjusted and added (mostly for sets)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Oct 10, 2023
1 parent 96dd28d commit ef6a47b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
5 changes: 2 additions & 3 deletions scripts/migrate_with_data.py
Expand Up @@ -50,9 +50,8 @@
new_dict = json.load(file)


# delete all sets # TODO REMOVE THIS PART ONCE EVERYTHING IS FINE
#print(old_dict["app_state"]["cardchain"]["sets"])
old_dict["app_state"]["cardchain"]["sets"] = []
# delete all sets
#old_dict["app_state"]["cardchain"]["sets"] = []


params = new_dict["app_state"]["cardchain"]["params"]
Expand Down
7 changes: 7 additions & 0 deletions scripts/sets/add-artwork.sh

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/sets/add-to-set.sh → scripts/sets/add-cards.sh
Expand Up @@ -8,4 +8,4 @@ Cardchaind tx cardchain add-card-to-set $1 12 --from jannik
Cardchaind tx cardchain add-card-to-set $1 13 --from jannik
Cardchaind tx cardchain add-card-to-set $1 14 --from jannik
Cardchaind tx cardchain add-card-to-set $1 15 --from jannik
Cardchaind tx cardchain add-card-to-set $1 16 --from jannik
Cardchaind tx cardchain add-card-to-set $1 16 --from jannik
4 changes: 2 additions & 2 deletions scripts/sets/finalize-set.sh
Expand Up @@ -4,8 +4,8 @@ if [ $# -lt 1 ]; then
exit 2
fi

Cardchaind tx cardchain finalize-set $1 --from jannik
Cardchaind tx cardchain finalize-set $1 --from jannik --gas auto

Cardchaind tx cardchain submit-set-proposal $1 10000000ubpf --from jannik
Cardchaind tx cardchain submit-set-proposal $1 10000000ubpf --from jannik --gas auto

Cardchaind q gov proposals
7 changes: 7 additions & 0 deletions scripts/sets/story.sh
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
if [ $# -lt 1 ]; then
echo 1>&2 "Please specify set id via argument"
exit 2
fi

Cardchaind tx cardchain add-story-to-set $1 "Once upon a time a great set was created. It was the set of all sets that do not contain themselves. End of story." --from jannik
2 changes: 1 addition & 1 deletion scripts/sets/vote.sh
Expand Up @@ -4,6 +4,6 @@ if [ $# -lt 1 ]; then
exit 2
fi

echo "voting! (I hope you have staked ubpf)"
echo "\033[0;36mvoting! (I hope jannik has staked ubpf)\033[0m"

Cardchaind tx gov vote $1 yes --from jannik

0 comments on commit ef6a47b

Please sign in to comment.