From a9013e72d33a54d5fe068871acc0b1e1618c79a4 Mon Sep 17 00:00:00 2001 From: Wotori Movako <10486621+wotori@users.noreply.github.com> Date: Mon, 12 Jun 2023 01:46:13 +0300 Subject: [PATCH] v1.0.0 - version + readme. - p.s. contract tested in game and it works properly now! --- Cargo.toml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 62c3714..62632cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/README.md b/README.md index a7e8017..8072044 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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`