Skip to content

Commit

Permalink
task4
Browse files Browse the repository at this point in the history
  • Loading branch information
zerokk246 committed Dec 5, 2024
1 parent e777176 commit 16e6aa6
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
6 changes: 6 additions & 0 deletions mover/zerokk246/code/task2/faucet_coin/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ chain-id = "4c78adac"
original-published-id = "0x5d0648b63188eec5a74c027f5bd781dce8a7653bdf64f086efb8af3213c7b214"
latest-published-id = "0x5d0648b63188eec5a74c027f5bd781dce8a7653bdf64f086efb8af3213c7b214"
published-version = "1"

[env.mainnet]
chain-id = "35834a8a"
original-published-id = "0xa03f42f57279ce7534ba0e07c4311c073751b6f40d25c2596c3a7ce41ddbc9da"
latest-published-id = "0xa03f42f57279ce7534ba0e07c4311c073751b6f40d25c2596c3a7ce41ddbc9da"
published-version = "1"
2 changes: 1 addition & 1 deletion mover/zerokk246/code/task2/faucet_coin/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-fram
# Override = { local = "../conflicting/version", override = true }

[addresses]
faucet_coin = "0x5d0648b63188eec5a74c027f5bd781dce8a7653bdf64f086efb8af3213c7b214"
faucet_coin = "0xa03f42f57279ce7534ba0e07c4311c073751b6f40d25c2596c3a7ce41ddbc9da"

# Named addresses will be accessible in Move as `@name`. They're also exported:
# for example, `std = "0x1"` is exported by the Standard Library.
Expand Down
8 changes: 7 additions & 1 deletion mover/zerokk246/code/task4/game/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 3
manifest_digest = "77A689AF8C059EF1786A22A5CF10A5FC344BCB225DBCEF5F29EACA2398A33591"
manifest_digest = "ABFF912E02E5E1D0C70ACDE9D6579AADDEBB71A7EB0011105336DDCD0604A203"
deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"
dependencies = [
{ id = "Sui", name = "Sui" },
Expand Down Expand Up @@ -41,3 +41,9 @@ chain-id = "4c78adac"
original-published-id = "0x56a7257f9f296157d2bed41e7640e5075df2820d9b789c02c31eb2a57224f7f4"
latest-published-id = "0x56a7257f9f296157d2bed41e7640e5075df2820d9b789c02c31eb2a57224f7f4"
published-version = "1"

[env.mainnet]
chain-id = "35834a8a"
original-published-id = "0x49b7e2f1587b5150f3ec99349f6f78c831521ccea0824d0c543a77aa909c8f03"
latest-published-id = "0x49b7e2f1587b5150f3ec99349f6f78c831521ccea0824d0c543a77aa909c8f03"
published-version = "1"
2 changes: 1 addition & 1 deletion mover/zerokk246/code/task4/game/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ faucet_coin = { local = "../../task2/faucet_coin" }

[addresses]
game = "0x0"
faucet_coin = "0x5d0648b63188eec5a74c027f5bd781dce8a7653bdf64f086efb8af3213c7b214"
faucet_coin = "0xa03f42f57279ce7534ba0e07c4311c073751b6f40d25c2596c3a7ce41ddbc9da"

# Named addresses will be accessible in Move as `@name`. They're also exported:
# for example, `std = "0x1"` is exported by the Standard Library.
Expand Down
3 changes: 3 additions & 0 deletions mover/zerokk246/code/task4/game/sources/game.move
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ use sui::balance;
use sui::random;
use sui::coin::{Coin, from_balance, into_balance};
use faucet_coin::faucetcoin::FAUCETCOIN;
use std::string::String;

public struct Game has key {
id: UID,
balance: Balance<FAUCETCOIN>,
name: String,
reward_rate: u64,
}

Expand All @@ -21,6 +23,7 @@ fun init(ctx: &mut TxContext) {
let game = Game {
id: object::new(ctx),
balance: balance::zero(),
name: b"zerokk246's Game".to_string(),
reward_rate: 1,
};

Expand Down
8 changes: 4 additions & 4 deletions mover/zerokk246/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
- [ x ] scan上的NFT截图:![Scan截图](./co-learn-2411/images/nft.png)

## 04 Move Game
- [ x ] game package id : 0x56a7257f9f296157d2bed41e7640e5075df2820d9b789c02c31eb2a57224f7f4
- [ x ] deposit Coin hash: AZ6bcikwfSKYsMU2MRr2P38A9nujn9jLe87A2vehrKbR
- [ x ] withdraw `Coin` hash: 3XH1UxQFcMQSaV3jPCLViM6qLioHmyY8cVzNMn523stv
- [ x ] play game hash: EToDBaGfFFcUatwFNQTazYMedzVXY4qX9Lduq3nN1gZ6
- [ x ] game package id : 0x49b7e2f1587b5150f3ec99349f6f78c831521ccea0824d0c543a77aa909c8f03
- [ x ] deposit Coin hash: EBrw6crTaLd7dojUuv4dNDwsjAFdYSXRHWYLwZCi7ymV
- [ x ] withdraw `Coin` hash: 52Qkmm34YM8Ln3BcMVVkLdWMjRWWy53PKbtv1wahuD6d
- [ x ] play game hash: AAa6mgLYhTDQXch5V5LQPTGn1dLgwE8ZfoqetgJBDwwx

## 05 Move Swap
- [] swap package id :
Expand Down

0 comments on commit 16e6aa6

Please sign in to comment.