Skip to content

Commit

Permalink
Merge pull request #1981 from Funnyyanne/Funnyyanne
Browse files Browse the repository at this point in the history
完成task7,8
  • Loading branch information
Sifotd authored Nov 22, 2024
2 parents 0fa43e7 + 7cc885e commit 0a8fd7a
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 4 deletions.
43 changes: 43 additions & 0 deletions mover/Funnyyanne/code/task8/get_challenge_bsc/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 3
manifest_digest = "C2243F49C326CD9A1C6AF4521CEE54DD8356D3AC90257183B95ECBC12818E4A7"
deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600"
dependencies = [
{ id = "Sui", name = "Sui" },
{ id = "lets_move", name = "lets_move" },
]

[[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.package]]
id = "lets_move"
source = { local = "../lets_move" }

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

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

[env]

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

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }
lets_move ={local = "../lets_move"}
# 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]
get_challenge_bsc = "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"

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

module get_challenge_bsc::get_challenge_bsc{
use lets_move::lets_move::Challenge;
use sui::bcs;
use sui::event;

public struct ChallengeByte has copy, drop {
challenge_bytes: vector<u8>

}
public entry fun get_challenge_bsc(challenge: &Challenge){
let challenge_bytes = bcs::to_bytes(challenge);
event::emit(ChallengeByte { challenge_bytes });
}
}



Binary file added mover/Funnyyanne/images/task7.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/Funnyyanne/images/task8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions mover/Funnyyanne/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
- [] save hash :JAbfWwAHS1VkCNtsRHtmckFpfJMSnp36CCYxa3oj7VGw

## 07 Move CTF Check In
- [] CLI call 截图 : ![截图](./images)
- [] flag hash :
- [] CLI call 截图 : ![截图](./images/task7.png)
- [] flag hash :2C1VTmQ17J7wXQGRsz4sBDMQS1tuxWMGCb1L1cYD7FV2

## 08 Move CTF Lets Move
- [] proof :
- [] flag hash :
- [] proof : [195, 57, 129, 1, 0, 0, 0, 0]
- [] flag hash :Ek1WgRUCpE5vfXdKZLDrZy9anyHQp9Hh2ACaSnzSqqre

0 comments on commit 0a8fd7a

Please sign in to comment.