diff --git a/mover/Rosepineux/code/task1/.gitignore b/mover/Rosepineux/code/task1/.gitignore new file mode 100644 index 000000000..a007feab0 --- /dev/null +++ b/mover/Rosepineux/code/task1/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/mover/Rosepineux/code/task1/Move.lock b/mover/Rosepineux/code/task1/Move.lock new file mode 100644 index 000000000..b51f937c2 --- /dev/null +++ b/mover/Rosepineux/code/task1/Move.lock @@ -0,0 +1,56 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 3 +manifest_digest = "F6DCF04755C04940D70A8F78F4CDE24C55FD62A8F72E70CE5477B61ED8FC5184" +deps_digest = "F9B494B64F0615AED0E98FC12A85B85ECD2BC5185C22D30E7F67786BB52E507C" +dependencies = [ + { id = "Bridge", name = "Bridge" }, + { id = "MoveStdlib", name = "MoveStdlib" }, + { id = "Sui", name = "Sui" }, + { id = "SuiSystem", name = "SuiSystem" }, +] + +[[move.package]] +id = "Bridge" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "209f0da8e316", subdir = "crates/sui-framework/packages/bridge" } + +dependencies = [ + { id = "MoveStdlib", name = "MoveStdlib" }, + { id = "Sui", name = "Sui" }, + { id = "SuiSystem", name = "SuiSystem" }, +] + +[[move.package]] +id = "MoveStdlib" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "209f0da8e316", subdir = "crates/sui-framework/packages/move-stdlib" } + +[[move.package]] +id = "Sui" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "209f0da8e316", subdir = "crates/sui-framework/packages/sui-framework" } + +dependencies = [ + { id = "MoveStdlib", name = "MoveStdlib" }, +] + +[[move.package]] +id = "SuiSystem" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "209f0da8e316", subdir = "crates/sui-framework/packages/sui-system" } + +dependencies = [ + { id = "MoveStdlib", name = "MoveStdlib" }, + { id = "Sui", name = "Sui" }, +] + +[move.toolchain-version] +compiler-version = "1.52.2" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.testnet] +chain-id = "4c78adac" +original-published-id = "0xb9937ffc86f66df945a86d4e486076b3c2f5434d825ec4122e8ac487ae0348ef" +latest-published-id = "0xb9937ffc86f66df945a86d4e486076b3c2f5434d825ec4122e8ac487ae0348ef" +published-version = "1" diff --git a/mover/Rosepineux/code/task1/Move.toml b/mover/Rosepineux/code/task1/Move.toml new file mode 100644 index 000000000..cbcc77314 --- /dev/null +++ b/mover/Rosepineux/code/task1/Move.toml @@ -0,0 +1,36 @@ +[package] +name = "task1" +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] + +# 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] +task1 = "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" + diff --git a/mover/Rosepineux/code/task1/sources/task1.move b/mover/Rosepineux/code/task1/sources/task1.move new file mode 100644 index 000000000..f4a231735 --- /dev/null +++ b/mover/Rosepineux/code/task1/sources/task1.move @@ -0,0 +1,19 @@ +module task1::helloworld { + use std::ascii::{String, string}; + use sui::object::{Self,UID}; + use sui::transfer::transfer; + use sui::tx_context::{TxContext, sender}; + + public struct Hello has key{ + id:UID, + say: String + } + + fun init(ctx: &mut TxContext) { + let hello_world = Hello { + id:object::new(ctx), + say: string(b"hello Rosepineux"), + }; + transfer(hello_world, sender(ctx)); + } +} diff --git a/mover/Rosepineux/code/task1/tests/task1_tests.move b/mover/Rosepineux/code/task1/tests/task1_tests.move new file mode 100644 index 000000000..4a6af24ca --- /dev/null +++ b/mover/Rosepineux/code/task1/tests/task1_tests.move @@ -0,0 +1,18 @@ +/* +#[test_only] +module task1::task1_tests; +// uncomment this line to import the module +// use task1::task1; + +const ENotImplemented: u64 = 0; + +#[test] +fun test_task1() { + // pass +} + +#[test, expected_failure(abort_code = ::task1::task1_tests::ENotImplemented)] +fun test_task1_fail() { + abort ENotImplemented +} +*/