Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions mover/Z3roToHero/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Basic Information
- Sui Wallet Address: `0x2f01aee931c60603deb82dbd2df7523e93ccb733ac1b5c058e2062c50354575b`
> First-time participants must complete the registration of the wallet address through the first task to have it merged. You should use this address for subsequent tasks. We will also use this address to credit the learning rewards.
- Github: `ZeroToH3ro`

## Personal Introduction
- Work Experience: `2 years`
- Tech Stack: `Javascript`, `Python` , etc.
> Important: Please take your personal introduction seriously.
- I'm passionate about blockchain technology and eager to expand my knowledge and make contributions in this field. I'm joining the Move ecosystem to enhance my skills in blockchain development.
- Contact: telegram `ZeroDev2002`

## Tasks

### 01 hello move
- [x] Sui CLI Version: sui 1.39.1-homebrew
- [x] Sui Wallet Screenshot: ![](./images/sui-wallet.png)
- [x] Package ID: 0x6beb9ebfbbe614e53f066e884488ec878db13792bdad6347e3b8a81c703a7161
- [x] Package ID's Screenshot from Explorer: ![](./images/public-package.png)

### 02 move coin
- [ ] `My Coin` Package ID:
- [ ] `Faucet Coin` Package ID:
- [ ] Transfer `My Coin` hash:
- [ ] `Faucet Coin` address 1 mint hash:
- [ ] `Faucet Coin` address 2 mint hash:

### 03 move nft
- [ ] NFT Package ID:
- [ ] NFT Object ID:
- [ ] Transfer NFT hash:
- [ ] NFT's Screenshot from Explorer: Link to image uploaded to `images` folder.

### 04 move game
- [ ] Game Package ID:
- [ ] Deposit Coin Hash:
- [ ] Withdraw Coin Hash:
- [ ] Play Game Hash:

### 05 move swap
- [ ] Swap Package ID:
- [ ] Call Swap Coin A -> Coin B hash:
- [ ] Call Swap Coin B -> Coin A hash:

### 06 dapp-kit SDK PTB
- [ ] Save Hash:
Empty file added mover/Z3roToHero/code/README.md
Empty file.
Empty file.
34 changes: 34 additions & 0 deletions mover/Z3roToHero/code/task1/hello_move/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 3
manifest_digest = "8B7DC3EDF1D81F9E2D46D8251E70F4B8D7097878F02438454C30AEF9F05D81D0"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
dependencies = [
{ id = "Sui", name = "Sui" },
]

[[move.package]]
id = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
id = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
]

[move.toolchain-version]
compiler-version = "1.39.1"
edition = "2024.beta"
flavor = "sui"

[env]

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x6beb9ebfbbe614e53f066e884488ec878db13792bdad6347e3b8a81c703a7161"
latest-published-id = "0x6beb9ebfbbe614e53f066e884488ec878db13792bdad6347e3b8a81c703a7161"
published-version = "1"
37 changes: 37 additions & 0 deletions mover/Z3roToHero/code/task1/hello_move/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[package]
name = "hello_move"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."] # e.g., ["Joe Smith (joesmith@noemail.com)", "John Snow (johnsnow@noemail.com)"]

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }

# For remote import, use the `{ git = "...", subdir = "...", rev = "..." }`.
# Revision can be a branch, a tag, and a commit hash.
# MyRemotePackage = { git = "https://some.remote/host.git", subdir = "remote/path", rev = "main" }

# For local dependencies use `local = path`. Path is relative to the package root
# Local = { local = "../path/to" }

# To resolve a version conflict and force a specific version for dependency
# override use `override = true`
# Override = { local = "../conflicting/version", override = true }

[addresses]
hello_move = "0x0"

# Named addresses will be accessible in Move as `@name`. They're also exported:
# for example, `std = "0x1"` is exported by the Standard Library.
# alice = "0xA11CE"

[dev-dependencies]
# The dev-dependencies section allows overriding dependencies for `--test` and
# `--dev` modes. You can introduce test-only dependencies here.
# Local = { local = "../path/to/dev-build" }

[dev-addresses]
# The dev-addresses section allows overwriting named addresses for the `--test`
# and `--dev` modes.
# alice = "0xB0B"

23 changes: 23 additions & 0 deletions mover/Z3roToHero/code/task1/hello_move/sources/hello_move.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module hello_move::hello_move {
use sui::object::{Self, UID};
use sui::transfer;
use sui::tx_context::{Self, TxContext};
use std::string::{Self, String};

public struct HelloMove has key, store {
id: UID,
github_id: String
}

public entry fun create_hello(ctx: &mut TxContext) {
let github_object = HelloMove {
id: object::new(ctx),
github_id: string::utf8(b"Z3roToHero")
};
transfer::transfer(github_object, tx_context::sender(ctx))
}

public fun get_github_id(hello: &HelloMove): &String {
&hello.github_id
}
}
18 changes: 18 additions & 0 deletions mover/Z3roToHero/code/task1/hello_move/tests/hello_move_tests.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
#[test_only]
module hello_move::hello_move_tests;
// uncomment this line to import the module
// use hello_move::hello_move;

const ENotImplemented: u64 = 0;

#[test]
fun test_hello_move() {
// pass
}

#[test, expected_failure(abort_code = ::hello_move::hello_move_tests::ENotImplemented)]
fun test_hello_move_fail() {
abort ENotImplemented
}
*/
Empty file.
Binary file added mover/Z3roToHero/images/package-public.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mover/Z3roToHero/images/sui-wallet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.