Skip to content

Commit

Permalink
Add DYJJ folder with related files
Browse files Browse the repository at this point in the history
  • Loading branch information
DYJJ committed Oct 11, 2024
1 parent b17a315 commit 661448c
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
Binary file added mover/DYJJ/images/package id.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/DYJJ/images/sui钱包.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions mover/DYJJ/task1/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 3
manifest_digest = "DC24100B500088544405AC31A41101CCED2A8F27DD593AA63ACCE809282B414A"
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.35.0"
edition = "2024.beta"
flavor = "sui"

[env]

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x26bc718fb0cfd4897b7d7ca321814eca33215afc54ddffed7ebe1c981bf6f918"
latest-published-id = "0x26bc718fb0cfd4897b7d7ca321814eca33215afc54ddffed7ebe1c981bf6f918"
published-version = "1"

[env.ed25519]
chain-id = "4c78adac"
original-published-id = "0xaab6c0c35bbe8225ff658fbe18a31a923c29e6a696fdd0272056556bbd041e59"
latest-published-id = "0xaab6c0c35bbe8225ff658fbe18a31a923c29e6a696fdd0272056556bbd041e59"
published-version = "1"
36 changes: 36 additions & 0 deletions mover/DYJJ/task1/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[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"
20 changes: 20 additions & 0 deletions mover/DYJJ/task1/sources/hello_move.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Module: hello_move
module 0x0::hello_move { // 将模块地址更改为 0x0
use std::string;
use sui::object::{Self, UID};
use sui::transfer;
use sui::tx_context::{Self, TxContext};

public struct HelloObj has key, store {
id: UID,
say: string::String
}

public fun mint(ctx: &mut TxContext) {
let object = HelloObj {
id: object::new(ctx),
say: string::utf8(b"Hello DYJJ!")
};
transfer::public_transfer(object, tx_context::sender(ctx));
}
}

0 comments on commit 661448c

Please sign in to comment.