Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
    - version + readme.
    - p.s. contract tested in game and it works properly now!
  • Loading branch information
wotori committed Jun 11, 2023
1 parent 9002c08 commit a9013e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cw-arcade"
version = "0.1.2"
version = "1.0.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A Cosmos-based (CosmWasm) smart contract for building a decentralized arcade whe

Investigate all potential queries and execute commands within the ./schema folder.

### deploy msg
### instantiate msg
`{"admins": ["archway10mxcxvyjnpcmnkg0sxf7r25f3wzjqdz6jp4jux"], "arcade": "Pac-Man", "max_top_score": 10, "denom":"aconst", "price_peer_game": "250000000000000000"}`

### 1. Admins List Management
Expand All @@ -28,7 +28,7 @@ query admins:
- Add top users with their address, nickname, and score

**store user record**
`archway tx --args '{"AddTopUser": {"user": {"address":"archway1uwew6p8k70xa2lkzeujqcw430uky49zthsvc0y", "name":"Wotori", "score":27000}}}'`
`archway tx --args '{"AddTopUser": {"user": {"address":"archway1uwew6p8k70xa2lkzeujqcw430uky49zthsvc0y", "name":"Wotori", "score":1}}}'`

**store user record raw**
`archwayd tx wasm execute --chain-id constantine-3 --gas auto --gas-prices $(archwayd q rewards estimate-fees 1 --node 'https://rpc.constantine.archway.tech:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)') --gas-adjustment 1.4 archway1tykvjvpvfqr5g7f8uqqg5du8tp0h99jcgvf05xumtgcq3vf5vajsvp9v2e '{"AddTopUser": {"user": {"address":"archway1uwew6p8k70xa2lkzeujqcw430uky49zthsvc0y", "name":"Wotori", "score":27000}}}' --from wallet_name --node https://rpc.constantine.archway.tech:443 -y`
Expand Down

0 comments on commit a9013e7

Please sign in to comment.