Skip to content

Commit

Permalink
Merge branch 'development' into council_overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
lxgr-linux committed Nov 17, 2023
2 parents a1801eb + 8813fdb commit df259aa
Show file tree
Hide file tree
Showing 16 changed files with 296 additions and 40 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ release/
.idea/
.vscode/
.DS_Store
/build
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BUILDDIR := ./build
build: go.sum $(BUILDDIR)/
@echo "Warning: Building without version information"
@echo "Warning: To build with version info and defaults please use './ignite chain build'"
go build -mod=readonly -o $(BUILDDIR)/ ./...
go build -tags=ledger -mod=readonly -o $(BUILDDIR)/ ./...

# Create the build directory
$(BUILDDIR)/:
Expand Down
2 changes: 1 addition & 1 deletion scripts/createUser.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

ARGS="--node tcp://localhost:26659 --gas auto"
ARGS="--node tcp://localhost:26657 --gas auto"

Cardchaind keys add $1

Expand Down
25 changes: 13 additions & 12 deletions scripts/migrate_with_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,19 @@
for card in del_cards:
new_dict["app_state"]["cardchain"]["cardRecords"][card] = {}

# write rarities into cards
for card in rarities:
if card[1] == "C":
new_dict["app_state"]["cardchain"]["cardRecords"][int(card[0])]["rarity"] = "common"
if card[1] == "U":
new_dict["app_state"]["cardchain"]["cardRecords"][int(card[0])]["rarity"] = "uncommon"
if card[1] == "R":
new_dict["app_state"]["cardchain"]["cardRecords"][int(card[0])]["rarity"] = "rare"

# set starter cards
for card in starters:
new_dict["app_state"]["cardchain"]["cardRecords"][int(card)]["starterCard"] = True
if new_dict["app_state"]["cardchain"]["cardRecords"]:
# write rarities into cards
for card in rarities:
if card[1] == "C":
new_dict["app_state"]["cardchain"]["cardRecords"][int(card[0])]["rarity"] = "common"
if card[1] == "U":
new_dict["app_state"]["cardchain"]["cardRecords"][int(card[0])]["rarity"] = "uncommon"
if card[1] == "R":
new_dict["app_state"]["cardchain"]["cardRecords"][int(card[0])]["rarity"] = "rare"

# set starter cards
for card in starters:
new_dict["app_state"]["cardchain"]["cardRecords"][int(card)]["starterCard"] = True

for param in params:
if param in old_dict["app_state"]["cardchain"]["params"]:
Expand Down
8 changes: 4 additions & 4 deletions scripts/paramchange/paramchange.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"title": "Param change uncommonsPerPack: 2",
"description": "We want to change the unCommonsPerPack",
"title": "Param change setSize: 140",
"description": "We want to change the set size",
"changes": [
{
"subspace": "cardchain",
"key": "UnCommonsPerPack",
"value": "2"
"key": "SetSize",
"value": "120"
}
],
"deposit": "10000000ubpf"
Expand Down
125 changes: 120 additions & 5 deletions scripts/sets/add-cards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,123 @@ if [ $# -lt 1 ]; then
exit 2
fi

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 71 --from jannik
Cardchaind tx cardchain add-card-to-set $1 44 --from jannik
Cardchaind tx cardchain add-card-to-set $1 142 --from jannik
Cardchaind tx cardchain add-card-to-set $1 143 --from jannik
Cardchaind tx cardchain add-card-to-set $1 252 --from jannik
Cardchaind tx cardchain add-card-to-set $1 45 --from jannik
Cardchaind tx cardchain add-card-to-set $1 25 --from jannik
Cardchaind tx cardchain add-card-to-set $1 27 --from jannik
Cardchaind tx cardchain add-card-to-set $1 51 --from jannik
Cardchaind tx cardchain add-card-to-set $1 54 --from jannik
Cardchaind tx cardchain add-card-to-set $1 225 --from jannik
Cardchaind tx cardchain add-card-to-set $1 140 --from jannik
Cardchaind tx cardchain add-card-to-set $1 46 --from jannik
Cardchaind tx cardchain add-card-to-set $1 53 --from jannik
Cardchaind tx cardchain add-card-to-set $1 55 --from jannik
Cardchaind tx cardchain add-card-to-set $1 56 --from jannik
Cardchaind tx cardchain add-card-to-set $1 67 --from jannik
Cardchaind tx cardchain add-card-to-set $1 85 --from jannik
Cardchaind tx cardchain add-card-to-set $1 299 --from jannik
Cardchaind tx cardchain add-card-to-set $1 167 --from jannik
Cardchaind tx cardchain add-card-to-set $1 191 --from jannik
Cardchaind tx cardchain add-card-to-set $1 52 --from jannik
Cardchaind tx cardchain add-card-to-set $1 247 --from jannik
Cardchaind tx cardchain add-card-to-set $1 43 --from jannik
Cardchaind tx cardchain add-card-to-set $1 62 --from jannik
Cardchaind tx cardchain add-card-to-set $1 284 --from jannik
Cardchaind tx cardchain add-card-to-set $1 59 --from jannik
Cardchaind tx cardchain add-card-to-set $1 139 --from jannik
Cardchaind tx cardchain add-card-to-set $1 253 --from jannik
Cardchaind tx cardchain add-card-to-set $1 381 --from jannik
Cardchaind tx cardchain add-card-to-set $1 412 --from jannik
Cardchaind tx cardchain add-card-to-set $1 407 --from jannik
Cardchaind tx cardchain add-card-to-set $1 73 --from jannik
Cardchaind tx cardchain add-card-to-set $1 411 --from jannik SHIT
Cardchaind tx cardchain add-card-to-set $1 154 --from jannik
Cardchaind tx cardchain add-card-to-set $1 147 --from jannik
Cardchaind tx cardchain add-card-to-set $1 156 --from jannik
Cardchaind tx cardchain add-card-to-set $1 0 --from jannik
Cardchaind tx cardchain add-card-to-set $1 155 --from jannik
Cardchaind tx cardchain add-card-to-set $1 122 --from jannik
Cardchaind tx cardchain add-card-to-set $1 464 --from jannik
Cardchaind tx cardchain add-card-to-set $1 77 --from jannik
Cardchaind tx cardchain add-card-to-set $1 246 --from jannik
Cardchaind tx cardchain add-card-to-set $1 119 --from jannik
Cardchaind tx cardchain add-card-to-set $1 75 --from jannik
Cardchaind tx cardchain add-card-to-set $1 149 --from jannik
Cardchaind tx cardchain add-card-to-set $1 112 --from jannik
Cardchaind tx cardchain add-card-to-set $1 380 --from jannik
Cardchaind tx cardchain add-card-to-set $1 227 --from jannik
Cardchaind tx cardchain add-card-to-set $1 63 --from jannik
Cardchaind tx cardchain add-card-to-set $1 64 --from jannik
Cardchaind tx cardchain add-card-to-set $1 21 --from jannik
Cardchaind tx cardchain add-card-to-set $1 254 --from jannik
Cardchaind tx cardchain add-card-to-set $1 108 --from jannik
Cardchaind tx cardchain add-card-to-set $1 74 --from jannik
Cardchaind tx cardchain add-card-to-set $1 28 --from jannik
Cardchaind tx cardchain add-card-to-set $1 125 --from jannik
Cardchaind tx cardchain add-card-to-set $1 397 --from jannik
Cardchaind tx cardchain add-card-to-set $1 159 --from jannik
Cardchaind tx cardchain add-card-to-set $1 410 --from jannik
Cardchaind tx cardchain add-card-to-set $1 158 --from jannik
Cardchaind tx cardchain add-card-to-set $1 47 --from jannik
Cardchaind tx cardchain add-card-to-set $1 36 --from jannik
Cardchaind tx cardchain add-card-to-set $1 65 --from jannik
Cardchaind tx cardchain add-card-to-set $1 95 --from jannik
Cardchaind tx cardchain add-card-to-set $1 100 --from jannik
Cardchaind tx cardchain add-card-to-set $1 17 --from jannik
Cardchaind tx cardchain add-card-to-set $1 23 --from jannik
Cardchaind tx cardchain add-card-to-set $1 216 --from jannik
Cardchaind tx cardchain add-card-to-set $1 101 --from jannik
Cardchaind tx cardchain add-card-to-set $1 103 --from jannik
Cardchaind tx cardchain add-card-to-set $1 18 --from jannik
Cardchaind tx cardchain add-card-to-set $1 223 --from jannik
Cardchaind tx cardchain add-card-to-set $1 12 --from jannik
Cardchaind tx cardchain add-card-to-set $1 222 --from jannik
Cardchaind tx cardchain add-card-to-set $1 232 --from jannik
Cardchaind tx cardchain add-card-to-set $1 97 --from jannik
Cardchaind tx cardchain add-card-to-set $1 33 --from jannik
Cardchaind tx cardchain add-card-to-set $1 98 --from jannik
Cardchaind tx cardchain add-card-to-set $1 150 --from jannik
Cardchaind tx cardchain add-card-to-set $1 66 --from jannik
Cardchaind tx cardchain add-card-to-set $1 42 --from jannik
Cardchaind tx cardchain add-card-to-set $1 114 --from jannik
Cardchaind tx cardchain add-card-to-set $1 151 --from jannik
Cardchaind tx cardchain add-card-to-set $1 168 --from jannik
Cardchaind tx cardchain add-card-to-set $1 135 --from jannik
Cardchaind tx cardchain add-card-to-set $1 99 --from jannik
Cardchaind tx cardchain add-card-to-set $1 24 --from jannik
Cardchaind tx cardchain add-card-to-set $1 102 --from jannik
Cardchaind tx cardchain add-card-to-set $1 104 --from jannik
Cardchaind tx cardchain add-card-to-set $1 224 --from jannik
Cardchaind tx cardchain add-card-to-set $1 255 --from jannik
Cardchaind tx cardchain add-card-to-set $1 41 --from jannik
Cardchaind tx cardchain add-card-to-set $1 8 --from jannik
Cardchaind tx cardchain add-card-to-set $1 84 --from jannik
Cardchaind tx cardchain add-card-to-set $1 83 --from jannik
Cardchaind tx cardchain add-card-to-set $1 15 --from jannik
Cardchaind tx cardchain add-card-to-set $1 256 --from jannik
Cardchaind tx cardchain add-card-to-set $1 107 --from jannik
Cardchaind tx cardchain add-card-to-set $1 50 --from jannik
Cardchaind tx cardchain add-card-to-set $1 170 --from jannik
Cardchaind tx cardchain add-card-to-set $1 109 --from jannik
Cardchaind tx cardchain add-card-to-set $1 105 --from jannik
Cardchaind tx cardchain add-card-to-set $1 372 --from jannik
Cardchaind tx cardchain add-card-to-set $1 9 --from jannik
Cardchaind tx cardchain add-card-to-set $1 10 --from jannik
Cardchaind tx cardchain add-card-to-set $1 49 --from jannik
Cardchaind tx cardchain add-card-to-set $1 110 --from jannik
Cardchaind tx cardchain add-card-to-set $1 248 --from jannik
Cardchaind tx cardchain add-card-to-set $1 38 --from jannik
Cardchaind tx cardchain add-card-to-set $1 86 --from jannik
Cardchaind tx cardchain add-card-to-set $1 19 --from jannik
Cardchaind tx cardchain add-card-to-set $1 14 --from jannik
Cardchaind tx cardchain add-card-to-set $1 123 --from jannik
Cardchaind tx cardchain add-card-to-set $1 31 --from jannik
Cardchaind tx cardchain add-card-to-set $1 20 --from jannik
Cardchaind tx cardchain add-card-to-set $1 141 --from jannik
Cardchaind tx cardchain add-card-to-set $1 257 --from jannik
Cardchaind tx cardchain add-card-to-set $1 16 --from jannik
Cardchaind tx cardchain add-card-to-set $1 138 --from jannik
7 changes: 7 additions & 0 deletions scripts/sets/buy-booster-pack.sh
Original file line number Diff line number Diff line change
@@ -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 buy-booster-pack 1 --from jannik --gas auto
125 changes: 120 additions & 5 deletions scripts/sets/card-rarity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,123 @@ if [ $# -lt 1 ]; then
exit 2
fi

Cardchaind tx cardchain set-card-rarity 12 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 13 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 14 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 15 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 16 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 71 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 44 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 142 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 143 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 252 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 45 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 25 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 27 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 51 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 54 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 225 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 140 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 46 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 53 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 55 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 56 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 67 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 85 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 299 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 167 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 191 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 52 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 247 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 43 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 62 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 284 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 59 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 139 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 253 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 381 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 412 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 407 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 73 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 411 $1 common --from jannik SHIT
Cardchaind tx cardchain set-card-rarity 154 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 147 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 156 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 0 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 155 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 122 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 464 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 77 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 246 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 119 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 75 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 149 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 112 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 380 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 227 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 63 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 64 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 21 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 254 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 108 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 74 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 28 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 125 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 397 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 159 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 410 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 158 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 47 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 36 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 65 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 95 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 100 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 17 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 23 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 216 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 101 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 103 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 18 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 223 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 12 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 222 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 232 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 97 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 33 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 98 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 150 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 66 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 42 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 114 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 151 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 168 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 135 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 99 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 24 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 102 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 104 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 224 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 255 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 41 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 8 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 84 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 83 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 15 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 256 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 107 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 50 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 170 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 109 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 105 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 372 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 9 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 10 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 49 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 110 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 248 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 38 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 86 $1 uncommon --from jannik
Cardchaind tx cardchain set-card-rarity 19 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 14 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 123 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 31 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 20 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 141 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 257 $1 common --from jannik
Cardchaind tx cardchain set-card-rarity 16 $1 rare --from jannik
Cardchaind tx cardchain set-card-rarity 138 $1 uncommon --from jannik
2 changes: 1 addition & 1 deletion scripts/sets/create-set.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

Cardchaind tx cardchain create-set testset cc14km80077s0hch3sh38wh2hfk7kxfau4456r3ej cc14km80077s0hch3sh38wh2hfk7kxfau4456r3ej [] --from jannik
Cardchaind tx cardchain create-set alpha cc14km80077s0hch3sh38wh2hfk7kxfau4456r3ej cc14km80077s0hch3sh38wh2hfk7kxfau4456r3ej [] --from jannik
3 changes: 1 addition & 2 deletions scripts/sets/finalize-set.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ fi

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

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

Cardchaind q gov proposals
11 changes: 11 additions & 0 deletions scripts/tests/test_reporting.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#./createUser.sh player1
#./createUser.sh player2
#./createUser.sh reporter1

NUM=43

Cardchaind tx cardchain open-match `Cardchaind keys show player1 --address` `Cardchaind keys show player2 --address` "[1,2,3,7,8,624]" "[4,5,6,10,11,12,672]" --from reporter1 --gas auto

Cardchaind tx cardchain confirm-match $NUM BWon "[{\"cardId\": 672, \"voteType\": 3}]" --from player1 --gas auto
Cardchaind tx cardchain confirm-match $NUM BWon "[{\"cardId\": 624, \"voteType\": 2}]" --from player2 --gas auto
Cardchaind tx cardchain report-match $NUM "[2,3,8,624]" "[4,5,6,12,672]" BWon --from reporter1 --gas auto
Loading

0 comments on commit df259aa

Please sign in to comment.