diff --git a/mover/brainsk/code/task2/faucetcoin/Move.lock b/mover/brainsk/code/task2/faucetcoin/Move.lock index ed4a0deb6..bd4d87a57 100644 --- a/mover/brainsk/code/task2/faucetcoin/Move.lock +++ b/mover/brainsk/code/task2/faucetcoin/Move.lock @@ -29,8 +29,8 @@ flavor = "sui" [env.testnet] chain-id = "4c78adac" -original-published-id = "0x168d6ca257ae1f954f15f72b1cea96e7d5a8c72468f35d0b5c639d2cb0d4de5a" -latest-published-id = "0x168d6ca257ae1f954f15f72b1cea96e7d5a8c72468f35d0b5c639d2cb0d4de5a" +original-published-id = "0x9cb7346a837dbbe61f1fbb7d96e768ac904b2b969a11a9a10d2b2d8bce07e34d" +latest-published-id = "0x9cb7346a837dbbe61f1fbb7d96e768ac904b2b969a11a9a10d2b2d8bce07e34d" published-version = "1" [env.mainnet] diff --git a/mover/brainsk/code/task4/Makefile b/mover/brainsk/code/task4/Makefile new file mode 100644 index 000000000..8b492ed9b --- /dev/null +++ b/mover/brainsk/code/task4/Makefile @@ -0,0 +1,5 @@ + +query: + sui client call --package 0xd593563f21c3598ab5109488d634de8cbfe59b3463856b4dacf1cd90357a65b6 --module task4 --function query_prize --args 0x1439204a54be461586c088ced490ecdb74874d20efdcc808130b5d1bea304ecd +start_game: + sui client call --package 0xd593563f21c3598ab5109488d634de8cbfe59b3463856b4dacf1cd90357a65b6 --module task4 --function start_game --args 0x1439204a54be461586c088ced490ecdb74874d20efdcc808130b5d1bea304ecd 8 0x9a5671fd2a300c700e410d2b37823b943efee8a470fadf40c14cc1bdd484369c diff --git a/mover/brainsk/code/task4/Move.lock b/mover/brainsk/code/task4/Move.lock new file mode 100644 index 000000000..2a91d7d82 --- /dev/null +++ b/mover/brainsk/code/task4/Move.lock @@ -0,0 +1,49 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 3 +manifest_digest = "AE9016CD7391A4C668A0331A1F53A001C32DD709924ABFBB6F22843DAE89A682" +deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600" +dependencies = [ + { id = "Sui", name = "Sui" }, + { id = "faucetcoin", name = "faucetcoin" }, +] + +[[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 = "faucetcoin" +source = { local = "../task2/faucetcoin" } + +dependencies = [ + { id = "Sui", name = "Sui" }, +] + +[move.toolchain-version] +compiler-version = "1.38.0" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.testnet] +chain-id = "4c78adac" +original-published-id = "0x08b514dd9efa92018cc695cd22d9f26f47e0e1137254e7e1ae27a54e852e1397" +latest-published-id = "0x08b514dd9efa92018cc695cd22d9f26f47e0e1137254e7e1ae27a54e852e1397" +published-version = "1" + +[env.mainnet] +chain-id = "35834a8a" +original-published-id = "0xd593563f21c3598ab5109488d634de8cbfe59b3463856b4dacf1cd90357a65b6" +latest-published-id = "0xd593563f21c3598ab5109488d634de8cbfe59b3463856b4dacf1cd90357a65b6" +published-version = "1" diff --git a/mover/brainsk/code/task4/Move.toml b/mover/brainsk/code/task4/Move.toml new file mode 100644 index 000000000..87f037215 --- /dev/null +++ b/mover/brainsk/code/task4/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "task4" +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" } +faucetcoin = { local = "../task2/faucetcoin" } +# 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] +task4 = "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/brainsk/code/task4/sources/task4.move b/mover/brainsk/code/task4/sources/task4.move new file mode 100644 index 000000000..c98697ebb --- /dev/null +++ b/mover/brainsk/code/task4/sources/task4.move @@ -0,0 +1,108 @@ +/// Module: task4 +module task4::task4 { + use sui::object::{Self, UID}; + use sui::balance::Balance; + use sui::coin::{Self, Coin}; + use sui::transfer::{transfer, share_object, public_transfer}; + use sui::tx_context::{Self, sender}; + use sui::bcs; + use faucetcoin::faucetcoin::FAUCETCOIN; + use std::debug::print; + use std::string::utf8; + + const ENotAllow: u64 = 0; + const EInvalidStake: u64 = 1; + const Rate: u64 = 2; + const MaxStake: u64 = 100000000000000000; + const MinStake: u64 = 10; + + // otw + public struct TASK4 has drop {} + + // 奖金池,管理员为brainsk + public struct PrizePool has key { + id: UID, + prize: Balance, + brainsk: address // github id + } + + // 用于创建、初始化奖金池,之后删除 + public struct PrizePoolCap has key { + id: UID + } + + // 创建Cap,并发送给brainsk + fun init(_otw: TASK4, ctx: &mut TxContext) { + let prize_pool_cap = PrizePoolCap { + id: object::new(ctx) + }; + transfer(prize_pool_cap, tx_context::sender(ctx)); + } + + // 用于创建奖金池,并注入初始奖金 + public entry fun initialize_pool(cap: PrizePoolCap, coin: Coin, ctx: &mut TxContext) { + let prize_pool = PrizePool { + id: object::new(ctx), + prize: coin.into_balance(), + brainsk: sender(ctx) + }; + share_object(prize_pool); + let PrizePoolCap { id } = cap; + object::delete(id); + } + + // 给奖金池注入更多奖金,任何人都有权限 + public entry fun deposit(pool: &mut PrizePool, coin: Coin) { + coin::put(&mut pool.prize, coin) + } + + // 在奖金池取出指定数量金额 + public entry fun withdraw(pool: &mut PrizePool, amount: u64, ctx: &mut TxContext) { + assert!(pool.brainsk == sender(ctx), ENotAllow); + let balance = pool.prize.split(amount); + let coin = coin::from_balance(balance, ctx); + public_transfer(coin, sender(ctx)); + } + + // 在奖金池取出所有奖金 + public fun withdraw_all(pool: &mut PrizePool, ctx: &mut TxContext) { + // 确保调用者是奖金池的拥有者 + assert!(pool.brainsk == sender(ctx), ENotAllow); + let balance = pool.prize.withdraw_all(); + let coin = coin::from_balance(balance, ctx); + // 由于已经确认了调用者是奖金池的拥有者,这里不需要再次检查 + public_transfer(coin, sender(ctx)); + } + + // 查询奖金池中剩余的金额 + public fun query_prize(pool: &mut PrizePool):u64 { + pool.prize.value() + } + + // 通过交易hash的方式获取随机数 + fun random_num(ctx: &mut TxContext): u8 { + let tx_digest = tx_context::digest(ctx); + let tx_digest_u64= bcs::peel_u8(&mut bcs::new(*tx_digest)); + let random_index: u8 = tx_digest_u64 % 3; + random_index + } + + // 开始游戏 + public entry fun start_game(pool: &mut PrizePool, geuss_number: u8, stake: Coin, ctx: &mut TxContext): bool { + let balance = stake.into_balance(); + let value = balance.value(); + let mut res = false; + assert!(value < MaxStake && value > MinStake, EInvalidStake); + pool.prize.join(balance); + let the_number = random_num(ctx); + print(&utf8(b"The number is:")); + print(&the_number); + if (geuss_number == the_number) { + let prize_value = pool.prize.split(Rate * value); + let prize_coin = coin::from_balance(prize_value, ctx); + public_transfer(prize_coin, sender(ctx)); + res = true; + }; + res + } +} \ No newline at end of file diff --git a/mover/brainsk/code/task4/tests/task4_tests.move b/mover/brainsk/code/task4/tests/task4_tests.move new file mode 100644 index 000000000..178d33b9e --- /dev/null +++ b/mover/brainsk/code/task4/tests/task4_tests.move @@ -0,0 +1,18 @@ +/* +#[test_only] +module task4::task4_tests; +// uncomment this line to import the module +// use task4::task4; + +const ENotImplemented: u64 = 0; + +#[test] +fun test_task4() { + // pass +} + +#[test, expected_failure(abort_code = ::task4::task4_tests::ENotImplemented)] +fun test_task4_fail() { + abort ENotImplemented +} +*/ diff --git a/mover/brainsk/code/task5/brainsk/Makefile b/mover/brainsk/code/task5/brainsk/Makefile new file mode 100644 index 000000000..e7cc798e5 --- /dev/null +++ b/mover/brainsk/code/task5/brainsk/Makefile @@ -0,0 +1,9 @@ + +deposit_mycoin: + sui client call --package 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 --module brainsk --function deposit_mycoin --args 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 0x05f29334ed951b1748ddd65e502056175a83582b077949ad4299670449f3a430 +deposit_faucetcoin: + sui client call --package 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 --module brainsk --function deposit_faucetcoin --args 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 0xa404c780507a31981dc02c3ed95cf63965f78a66c3963c6065d432ca7b71971f +faucte_swap_my: + sui client call --package 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 --module brainsk --function faucte_swap_my --args 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 0xc0b59caa882ecc24c77bb0848c893b0fbfdf419bc52b592329fdb634564a30cb +my_swap_faucet: + sui client call --package 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 --module brainsk --function my_swap_faucet --args 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 0xc77d969fdc7b17f7e4fcb609277772c58191ddb53208ce8ded44fab3626d28c5 diff --git a/mover/brainsk/code/task5/brainsk/Move.lock b/mover/brainsk/code/task5/brainsk/Move.lock new file mode 100644 index 000000000..8977d283f --- /dev/null +++ b/mover/brainsk/code/task5/brainsk/Move.lock @@ -0,0 +1,52 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 3 +manifest_digest = "7E391F177F35AAA09364D249E82FC27924488069285497FF7FBD9FA8534BC6A6" +deps_digest = "060AD7E57DFB13104F21BE5F5C3759D03F0553FC3229247D9A7A6B45F50D03A3" +dependencies = [ + { id = "Sui", name = "Sui" }, + { id = "faucetcoin", name = "faucetcoin" }, + { id = "mycoin", name = "mycoin" }, +] + +[[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 = "faucetcoin" +source = { local = "../../task2/faucetcoin" } + +dependencies = [ + { id = "Sui", name = "Sui" }, +] + +[[move.package]] +id = "mycoin" +source = { local = "../../task2/mycoin" } + +dependencies = [ + { id = "Sui", name = "Sui" }, +] + +[move.toolchain-version] +compiler-version = "1.38.0" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.mainnet] +chain-id = "35834a8a" +original-published-id = "0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264" +latest-published-id = "0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264" +published-version = "1" diff --git a/mover/brainsk/code/task5/brainsk/Move.toml b/mover/brainsk/code/task5/brainsk/Move.toml new file mode 100644 index 000000000..07a574803 --- /dev/null +++ b/mover/brainsk/code/task5/brainsk/Move.toml @@ -0,0 +1,38 @@ +[package] +name = "brainsk" +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" } +faucetcoin = { local = "../../task2/faucetcoin" } +mycoin = { local = "../../task2/mycoin" } +# 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] +brainsk = "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/brainsk/code/task5/brainsk/sources/brainsk.move b/mover/brainsk/code/task5/brainsk/sources/brainsk.move new file mode 100644 index 000000000..c70365505 --- /dev/null +++ b/mover/brainsk/code/task5/brainsk/sources/brainsk.move @@ -0,0 +1,76 @@ + +/// Module: brainsk +module brainsk::brainsk{ + use sui::coin::{Self, Coin}; + use sui::balance::{Self, Balance}; + use sui::transfer::{Self, transfer, share_object, public_transfer}; + use mycoin::mycoin::MYCOIN; + use faucetcoin::faucetcoin::FAUCETCOIN; + use sui::tx_context::sender; + + public struct BrainskSwapBank has key { + id: UID, + faucetcoin: Balance, + mycoin: Balance, + mc_prop: u64, + fc_prop: u64 + } + + public struct AdaminCap has key { + id: UID + } + + fun init(ctx: &mut TxContext) { + let bank = BrainskSwapBank { + id: object::new(ctx), + faucetcoin: balance::zero(), + mycoin: balance::zero(), + mc_prop: 1000, + fc_prop: 7300 + }; + share_object(bank); + let adamin_cap = AdaminCap { + id: object::new(ctx) + }; + transfer(adamin_cap, sender(ctx)); + } + + public entry fun deposit_mycoin(bank: &mut BrainskSwapBank, mycoin: Coin, _ctx: &mut TxContext) { + let balance = coin::into_balance(mycoin); + bank.mycoin.join(balance); + } + + public entry fun deposit_faucetcoin(bank: &mut BrainskSwapBank, faucetcoin: Coin, _ctx: &mut TxContext) { + let balance = coin::into_balance(faucetcoin); + bank.faucetcoin.join(balance); + } + + public entry fun withdraw_mycoin(_: &AdaminCap, bank: &mut BrainskSwapBank, amount: u64, ctx: &mut TxContext) { + let amount = bank.mycoin.split(amount); + let mycoin = coin::from_balance(amount, ctx); + public_transfer(mycoin, sender(ctx)); + } + + public entry fun withdraw_faucetcoin(_: &AdaminCap, bank: &mut BrainskSwapBank, amount: u64, ctx: &mut TxContext) { + let amount = bank.mycoin.split(amount); + let mycoin = coin::from_balance(amount, ctx); + public_transfer(mycoin, sender(ctx)); + } + + public entry fun faucte_swap_my(bank: &mut BrainskSwapBank, faucetcoin: Coin, ctx: &mut TxContext) { + let fc_balance = faucetcoin.into_balance(); + let fc_amt = fc_balance.value(); + let mc_amt = bank.mycoin.split(fc_amt * bank.mc_prop / bank.fc_prop); + bank.faucetcoin.join(fc_balance); + public_transfer(coin::from_balance(mc_amt, ctx), sender(ctx)); + } + + public entry fun my_swap_faucet(bank: &mut BrainskSwapBank, mycoin: Coin, ctx: &mut TxContext) { + let mc_balance = mycoin.into_balance(); + let mc_amt = mc_balance.value(); + let fc_amt = bank.faucetcoin.split(mc_amt * bank.fc_prop / bank.mc_prop); + bank.mycoin.join(mc_balance); + public_transfer(coin::from_balance(fc_amt, ctx), sender(ctx)); + } +} + diff --git a/mover/brainsk/code/task5/brainsk/tests/brainsk_tests.move b/mover/brainsk/code/task5/brainsk/tests/brainsk_tests.move new file mode 100644 index 000000000..3d5b48bd3 --- /dev/null +++ b/mover/brainsk/code/task5/brainsk/tests/brainsk_tests.move @@ -0,0 +1,18 @@ +/* +#[test_only] +module brainsk::brainsk_tests; +// uncomment this line to import the module +// use brainsk::brainsk; + +const ENotImplemented: u64 = 0; + +#[test] +fun test_brainsk() { + // pass +} + +#[test, expected_failure(abort_code = ::brainsk::brainsk_tests::ENotImplemented)] +fun test_brainsk_fail() { + abort ENotImplemented +} +*/ diff --git a/mover/brainsk/notes/task4.md b/mover/brainsk/notes/task4.md new file mode 100644 index 000000000..5843c5e5c --- /dev/null +++ b/mover/brainsk/notes/task4.md @@ -0,0 +1,419 @@ +sui client publish +[warning] Client/Server api version mismatch, client api version : 1.38.0, server api version : 1.37.3 +UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git +remote: Enumerating objects: 1, done. +remote: Counting objects: 100% (1/1), done. +remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) +展开对象中: 100% (1/1), 1.17 KiB | 1.17 MiB/s, 完成. +来自 ssh://github.com/MystenLabs/sui + e1a85c2418..2542d8e47d main -> origin/main +INCLUDING DEPENDENCY faucetcoin +INCLUDING DEPENDENCY Sui +INCLUDING DEPENDENCY MoveStdlib +BUILDING task4 +warning[W02021]: duplicate alias + ┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:3:23 + │ +3 │ use sui::object::{Self, UID}; + │ ^^^^ Unnecessary alias 'object' for module 'sui::object'. This alias is provided by default + │ + = This warning can be suppressed with '#[allow(duplicate_alias)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +warning[W02021]: duplicate alias + ┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:3:29 + │ +3 │ use sui::object::{Self, UID}; + │ ^^^ Unnecessary alias 'UID' for module member 'sui::object::UID'. This alias is provided by default + │ + = This warning can be suppressed with '#[allow(duplicate_alias)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +warning[W02021]: duplicate alias + ┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:7:27 + │ +7 │ use sui::tx_context::{Self, sender}; + │ ^^^^ Unnecessary alias 'tx_context' for module 'sui::tx_context'. This alias is provided by default + │ + = This warning can be suppressed with '#[allow(duplicate_alias)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +warning[Lint W99001]: non-composable transfer to sender + ┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:74:9 + │ +68 │ public fun withdraw_all(pool: &mut PrizePool, ctx: &mut TxContext) { + │ ------------ Returning an object from a function, allows a caller to use the object and enables composability via programmable transactions. + · +74 │ public_transfer(coin, sender(ctx)); + │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + │ │ │ + │ │ Transaction sender address coming from here + │ Transfer of an object to transaction sender address + │ + = This warning can be suppressed with '#[allow(lint(self_transfer))]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +Please report feedback on the linter warnings at https://forums.sui.io + +Successfully verified dependencies on-chain against source. +Transaction Digest: C7rqxhWHnuifMmoRAX1v7Uie6JjP4GzsFkh2xUZJQA9e +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Owner: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Budget: 19717200 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x7b3cea15957015caddf167891d7fd31bff6c164623475265c99c196e4cec71df │ +│ │ Version: 416792403 │ +│ │ Digest: 7pKNhtqpvdZrQK7UgCVhFEcsdNJgMvJZKn833dXUWCjZ │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Pure Arg: Type: address, Value: "0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc" │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭─────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├─────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Publish: │ │ +│ │ ┌ │ │ +│ │ │ Dependencies: │ │ +│ │ │ 0x0000000000000000000000000000000000000000000000000000000000000001 │ │ +│ │ │ 0x0000000000000000000000000000000000000000000000000000000000000002 │ │ +│ │ │ 0xf55b7f267fbf88f6e195bdb979316293ec492882273e7deffc078a6615ec2bfd │ │ +│ │ └ │ │ +│ │ │ │ +│ │ 1 TransferObjects: │ │ +│ │ ┌ │ │ +│ │ │ Arguments: │ │ +│ │ │ Result 0 │ │ +│ │ │ Address: Input 0 │ │ +│ │ └ │ │ +│ ╰─────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ UMFlWeRr0k9oa3+LYk2yNjCMw3UnU20q3Qlk7P/G+2s05sypI/eRO90R+7aF8KNX3drBZf1RYUd0UjsSYY+7Cw== │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: C7rqxhWHnuifMmoRAX1v7Uie6JjP4GzsFkh2xUZJQA9e │ +│ Status: Success │ +│ Executed Epoch: 588 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0x643f02eef5ff8a872309f1647b3ddbba4d3106885d48873af08f2504c8d1c59a │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 416792404 │ +│ │ Digest: Ac8sRXMP9fHTLL6Msz6ws9jXoYthh23WcUJjJbfDwX7b │ +│ └── │ +│ ┌── │ +│ │ ID: 0xdfe442aa11b54567d792481c88ee024ccc385e5df84d36b5b86ba4b211fa6908 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 416792404 │ +│ │ Digest: 5u4ZYFAX8Tm1EPGmRkR5r25g1DoY3UKTykSSoLn61SSJ │ +│ └── │ +│ ┌── │ +│ │ ID: 0xef7100c6cd8ca6ae82c927385b10f10d839eee3fbd533adb887866a72902a1f6 │ +│ │ Owner: Immutable │ +│ │ Version: 1 │ +│ │ Digest: DQU7ZAi52FXPTECAAwbWc6bTAkXJ1j2gQnMaUdcL2LPT │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x7b3cea15957015caddf167891d7fd31bff6c164623475265c99c196e4cec71df │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 416792404 │ +│ │ Digest: J67ayKVGtbtMVdw8yDwzsVUXadWyMotqQVFVR7Zm3MNQ │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x7b3cea15957015caddf167891d7fd31bff6c164623475265c99c196e4cec71df │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 416792404 │ +│ │ Digest: J67ayKVGtbtMVdw8yDwzsVUXadWyMotqQVFVR7Zm3MNQ │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 18217200 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 978120 MIST │ +│ Non-refundable Storage Fee: 9880 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 9TidEfi5awA7a8BwvkvhHguFkmR2ZBVCHT2FRLacVcrq │ +│ AwbRrs46HSRGTA4cveqF8JceQFJodqijT4QhjFtntVj3 │ +│ FPQJirZF6XaBX9wcmQbPUPPX9CzbpymnF3c8vtnpHqWt │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├─────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0x643f02eef5ff8a872309f1647b3ddbba4d3106885d48873af08f2504c8d1c59a │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x2::package::UpgradeCap │ +│ │ Version: 416792404 │ +│ │ Digest: Ac8sRXMP9fHTLL6Msz6ws9jXoYthh23WcUJjJbfDwX7b │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0xdfe442aa11b54567d792481c88ee024ccc385e5df84d36b5b86ba4b211fa6908 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0xef7100c6cd8ca6ae82c927385b10f10d839eee3fbd533adb887866a72902a1f6::task4::PrizePoolCap │ +│ │ Version: 416792404 │ +│ │ Digest: 5u4ZYFAX8Tm1EPGmRkR5r25g1DoY3UKTykSSoLn61SSJ │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x7b3cea15957015caddf167891d7fd31bff6c164623475265c99c196e4cec71df │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 416792404 │ +│ │ Digest: J67ayKVGtbtMVdw8yDwzsVUXadWyMotqQVFVR7Zm3MNQ │ +│ └── │ +│ Published Objects: │ +│ ┌── │ +│ │ PackageID: 0xef7100c6cd8ca6ae82c927385b10f10d839eee3fbd533adb887866a72902a1f6 │ +│ │ Version: 1 │ +│ │ Digest: DQU7ZAi52FXPTECAAwbWc6bTAkXJ1j2gQnMaUdcL2LPT │ +│ │ Modules: task4 │ +│ └── │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -17989080 │ +│ └── │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ + + + + + +---------------- + + + + + +sui client publish +[warning] Client/Server api version mismatch, client api version : 1.38.0, server api version : 1.37.3 +UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git +remote: Enumerating objects: 6, done. +remote: Counting objects: 100% (6/6), done. +remote: Total 6 (delta 5), reused 6 (delta 5), pack-reused 0 (from 0) +展开对象中: 100% (6/6), 1.01 KiB | 172.00 KiB/s, 完成. +来自 ssh://github.com/MystenLabs/sui +* [新分支] pat/rosetta-performance-fix -> origin/pat/rosetta-performance-fix + INCLUDING DEPENDENCY faucetcoin + INCLUDING DEPENDENCY Sui + INCLUDING DEPENDENCY MoveStdlib + BUILDING task4 + warning[W02021]: duplicate alias + ┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:3:23 + │ + 3 │ use sui::object::{Self, UID}; + │ ^^^^ Unnecessary alias 'object' for module 'sui::object'. This alias is provided by default + │ + = This warning can be suppressed with '#[allow(duplicate_alias)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +warning[W02021]: duplicate alias +┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:3:29 +│ +3 │ use sui::object::{Self, UID}; +│ ^^^ Unnecessary alias 'UID' for module member 'sui::object::UID'. This alias is provided by default +│ += This warning can be suppressed with '#[allow(duplicate_alias)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +warning[W02021]: duplicate alias +┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:7:27 +│ +7 │ use sui::tx_context::{Self, sender}; +│ ^^^^ Unnecessary alias 'tx_context' for module 'sui::tx_context'. This alias is provided by default +│ += This warning can be suppressed with '#[allow(duplicate_alias)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +warning[Lint W99001]: non-composable transfer to sender +┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:74:9 +│ +68 │ public fun withdraw_all(pool: &mut PrizePool, ctx: &mut TxContext) { +│ ------------ Returning an object from a function, allows a caller to use the object and enables composability via programmable transactions. +· +74 │ public_transfer(coin, sender(ctx)); +│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +│ │ │ +│ │ Transaction sender address coming from here +│ Transfer of an object to transaction sender address +│ += This warning can be suppressed with '#[allow(lint(self_transfer))]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +warning[W09014]: unused mutable reference '&mut' parameter +┌─ /Users/tianming/Documents/project/code/rustlang/letsmove/mover/brainsk/code/task4/sources/task4.move:83:25 +│ +83 │ fun random_num(ctx: &mut TxContext): u8 { +│ --- ^^^^^^^^^^^^^^ Mutable reference is never used mutably, consider switching to an immutable reference '&' instead +│ │ +│ For parameters, this can be silenced by prefixing the name with an underscore, e.g. '_ctx' +│ += This warning can be suppressed with '#[allow(unused_mut_parameter)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +Please report feedback on the linter warnings at https://forums.sui.io + +Successfully verified dependencies on-chain against source. +Transaction Digest: akb98XSbYBXmToZ1h2KCuBBzS8w8sgGwHdhETvwZoac +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Owner: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Budget: 19648800 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Version: 422681842 │ +│ │ Digest: 4KWJShettCwqTdJKzdAVvRu7hhirVE6YVZMhnhzDF5aY │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Pure Arg: Type: address, Value: "0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc" │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭─────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├─────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Publish: │ │ +│ │ ┌ │ │ +│ │ │ Dependencies: │ │ +│ │ │ 0x0000000000000000000000000000000000000000000000000000000000000001 │ │ +│ │ │ 0x0000000000000000000000000000000000000000000000000000000000000002 │ │ +│ │ │ 0xf55b7f267fbf88f6e195bdb979316293ec492882273e7deffc078a6615ec2bfd │ │ +│ │ └ │ │ +│ │ │ │ +│ │ 1 TransferObjects: │ │ +│ │ ┌ │ │ +│ │ │ Arguments: │ │ +│ │ │ Result 0 │ │ +│ │ │ Address: Input 0 │ │ +│ │ └ │ │ +│ ╰─────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ CvOmIMGFRqEzIx/UHRBkpOYK68XIFx2cRriSCnI88vmlybuTD3oy0uIjzJtkILnBiQl7tU4+fI6BAv99kj1cCA== │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: akb98XSbYBXmToZ1h2KCuBBzS8w8sgGwHdhETvwZoac │ +│ Status: Success │ +│ Executed Epoch: 589 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0xa112e6f57983116763123aacd0fdaa0e3c4a3f882abb2e632d30ae1342ef2806 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681843 │ +│ │ Digest: CHsKkU85tTb73vYkovX5wDRHa1BroSKRfVh3WWKe2SEe │ +│ └── │ +│ ┌── │ +│ │ ID: 0xd593563f21c3598ab5109488d634de8cbfe59b3463856b4dacf1cd90357a65b6 │ +│ │ Owner: Immutable │ +│ │ Version: 1 │ +│ │ Digest: DgihjbQgchYnAanMbjtx1dVk1ZqerUKPwztixWW5juZv │ +│ └── │ +│ ┌── │ +│ │ ID: 0xd8a19111d280a015a6f93e257be21af8c912708014b67a30b51dd78266ea994c │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681843 │ +│ │ Digest: H5esvEQgBv4XikaDpVthz6cT6G8t7MfSxK9XJdVdV3hA │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681843 │ +│ │ Digest: GF4SRApXykDPkELGq3s2TE7JpnYKNSRj5pycedz1Bw8w │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681843 │ +│ │ Digest: GF4SRApXykDPkELGq3s2TE7JpnYKNSRj5pycedz1Bw8w │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 18148800 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 978120 MIST │ +│ Non-refundable Storage Fee: 9880 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 5JuUZiPE5h23bMjTnwx74k5vgTcjBbY3fDGY6VtY3rxX │ +│ AwbRrs46HSRGTA4cveqF8JceQFJodqijT4QhjFtntVj3 │ +│ FPQJirZF6XaBX9wcmQbPUPPX9CzbpymnF3c8vtnpHqWt │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├─────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0xa112e6f57983116763123aacd0fdaa0e3c4a3f882abb2e632d30ae1342ef2806 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x2::package::UpgradeCap │ +│ │ Version: 422681843 │ +│ │ Digest: CHsKkU85tTb73vYkovX5wDRHa1BroSKRfVh3WWKe2SEe │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0xd8a19111d280a015a6f93e257be21af8c912708014b67a30b51dd78266ea994c │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0xd593563f21c3598ab5109488d634de8cbfe59b3463856b4dacf1cd90357a65b6::task4::PrizePoolCap │ +│ │ Version: 422681843 │ +│ │ Digest: H5esvEQgBv4XikaDpVthz6cT6G8t7MfSxK9XJdVdV3hA │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 422681843 │ +│ │ Digest: GF4SRApXykDPkELGq3s2TE7JpnYKNSRj5pycedz1Bw8w │ +│ └── │ +│ Published Objects: │ +│ ┌── │ +│ │ PackageID: 0xd593563f21c3598ab5109488d634de8cbfe59b3463856b4dacf1cd90357a65b6 │ +│ │ Version: 1 │ +│ │ Digest: DgihjbQgchYnAanMbjtx1dVk1ZqerUKPwztixWW5juZv │ +│ │ Modules: task4 │ +│ └── │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -17920680 │ +│ └── │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/mover/brainsk/notes/task5.md b/mover/brainsk/notes/task5.md new file mode 100644 index 000000000..16db94cf6 --- /dev/null +++ b/mover/brainsk/notes/task5.md @@ -0,0 +1,448 @@ +INCLUDING DEPENDENCY faucetcoin +INCLUDING DEPENDENCY mycoin +INCLUDING DEPENDENCY Sui +INCLUDING DEPENDENCY MoveStdlib +BUILDING brainsk +warning[W02021]: duplicate alias +┌─ /Users/tm/Documents/project/rust/letsmove/mover/brainsk/code/task5/brainsk/sources/brainsk.move:6:25 +│ +6 │ use sui::transfer::{Self, transfer, share_object, public_transfer}; +│ ^^^^ Unnecessary alias 'transfer' for module 'sui::transfer'. This alias is provided by default +│ += This warning can be suppressed with '#[allow(duplicate_alias)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +warning[W09001]: unused alias +┌─ /Users/tm/Documents/project/rust/letsmove/mover/brainsk/code/task5/brainsk/sources/brainsk.move:6:25 +│ +6 │ use sui::transfer::{Self, transfer, share_object, public_transfer}; +│ ^^^^ Unused 'use' of alias 'transfer'. Consider removing it +│ += This warning can be suppressed with '#[allow(unused_use)]' applied to the 'module' or module member ('const', 'fun', or 'struct') + +Successfully verified dependencies on-chain against source. +Transaction Digest: DR6YACGqTRmgcoX82tHbKytcMiMo6tfDSwv6LRsp6a8Q +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Owner: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Budget: 19732400 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Version: 422681860 │ +│ │ Digest: 9V1TeY8ifFaxDnuPkistSFz83B2YbJxXfXLzWq1LRTY6 │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Pure Arg: Type: address, Value: "0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc" │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭─────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├─────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Publish: │ │ +│ │ ┌ │ │ +│ │ │ Dependencies: │ │ +│ │ │ 0x0000000000000000000000000000000000000000000000000000000000000001 │ │ +│ │ │ 0x0000000000000000000000000000000000000000000000000000000000000002 │ │ +│ │ │ 0xf55b7f267fbf88f6e195bdb979316293ec492882273e7deffc078a6615ec2bfd │ │ +│ │ │ 0x6873544ffc55c257a31c4fac905c730ed5f69c6340528314580b0c499a23c6fb │ │ +│ │ └ │ │ +│ │ │ │ +│ │ 1 TransferObjects: │ │ +│ │ ┌ │ │ +│ │ │ Arguments: │ │ +│ │ │ Result 0 │ │ +│ │ │ Address: Input 0 │ │ +│ │ └ │ │ +│ ╰─────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ hzhLL8T9mDbEx/vwJnu7xTZ/8mDH5eP2yA2CWgwpS3oqOmfIiXTP8wLhQ0/jkhGmS0boFajnY8mPyPOgh5mDAQ== │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: DR6YACGqTRmgcoX82tHbKytcMiMo6tfDSwv6LRsp6a8Q │ +│ Status: Success │ +│ Executed Epoch: 589 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ +│ │ Owner: Shared( 422681861 ) │ +│ │ Version: 422681861 │ +│ │ Digest: BRjZkh15HgGVYq8RBpokvpcYhXT9m8JQ4eb7W7zpyhMo │ +│ └── │ +│ ┌── │ +│ │ ID: 0x8084ba0b80164530fe2c3df1d7c95238ca6c59f32c96f52a6167732b951c0f5b │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681861 │ +│ │ Digest: GYEcihqPrnCvDvAohK2rK8S5nh3Sv2AS65m7KcddTN3Q │ +│ └── │ +│ ┌── │ +│ │ ID: 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 │ +│ │ Owner: Immutable │ +│ │ Version: 1 │ +│ │ Digest: 7FuztekmgNYBqvmWXKzk6zEAr2ZxRY9jBJe2y6yGvtkH │ +│ └── │ +│ ┌── │ +│ │ ID: 0xb9c7d85062fc8b29182c85761d9886b6ecec91c61dc8872bcae022e17e2e02f2 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681861 │ +│ │ Digest: 2Brjgc6GMMbBYaKqSuyfCjeRn1Qe4sCjnL2AwtEMiZKo │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681861 │ +│ │ Digest: CWnTFNj1g2GHfEeWFoBYY8mKwednSyBLR2p5UCyWQ3fy │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681861 │ +│ │ Digest: CWnTFNj1g2GHfEeWFoBYY8mKwednSyBLR2p5UCyWQ3fy │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 18232400 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 978120 MIST │ +│ Non-refundable Storage Fee: 9880 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 2eAquiKg3vGPAmS6khNTttxiYgpLSnKGSMLqWQorRqui │ +│ AwbRrs46HSRGTA4cveqF8JceQFJodqijT4QhjFtntVj3 │ +│ FPQJirZF6XaBX9wcmQbPUPPX9CzbpymnF3c8vtnpHqWt │ +│ Hiybm73HN9n8UWMHNc6K63cTNtqdPz2jphpfckaZjNpW │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Shared( 422681861 ) │ +│ │ ObjectType: 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264::brainsk::BrainskSwapBank │ +│ │ Version: 422681861 │ +│ │ Digest: BRjZkh15HgGVYq8RBpokvpcYhXT9m8JQ4eb7W7zpyhMo │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0x8084ba0b80164530fe2c3df1d7c95238ca6c59f32c96f52a6167732b951c0f5b │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264::brainsk::AdaminCap │ +│ │ Version: 422681861 │ +│ │ Digest: GYEcihqPrnCvDvAohK2rK8S5nh3Sv2AS65m7KcddTN3Q │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0xb9c7d85062fc8b29182c85761d9886b6ecec91c61dc8872bcae022e17e2e02f2 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x2::package::UpgradeCap │ +│ │ Version: 422681861 │ +│ │ Digest: 2Brjgc6GMMbBYaKqSuyfCjeRn1Qe4sCjnL2AwtEMiZKo │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 422681861 │ +│ │ Digest: CWnTFNj1g2GHfEeWFoBYY8mKwednSyBLR2p5UCyWQ3fy │ +│ └── │ +│ Published Objects: │ +│ ┌── │ +│ │ PackageID: 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 │ +│ │ Version: 1 │ +│ │ Digest: 7FuztekmgNYBqvmWXKzk6zEAr2ZxRY9jBJe2y6yGvtkH │ +│ │ Modules: brainsk │ +│ └── │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -18004280 │ +│ └── │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ + + + +--- mycoin +make deposit_mycoin +sui client call --package 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 --module brainsk --function deposit_mycoin --args 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 0x05f29334ed951b1748ddd65e502056175a83582b077949ad4299670449f3a430 +[warning] Client/Server api version mismatch, client api version : 1.38.0, server api version : 1.37.3 +Transaction Digest: JBZA3U5a3grRFdCBBjv8wpy5TDn6D4npe1fpWEUy1CDN +╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├─────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Owner: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Budget: 1500000 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Version: 422681862 │ +│ │ Digest: 6UwEgJUECA8FS5HBJGrUdStqWpQWJE6e2BXPXh7HmB4w │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├─────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Shared Object ID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ │ +│ │ 1 Imm/Owned Object ID: 0x05f29334ed951b1748ddd65e502056175a83582b077949ad4299670449f3a430 │ │ +│ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭──────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: deposit_mycoin │ │ +│ │ │ Module: brainsk │ │ +│ │ │ Package: 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ └ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ lI0tzzD542qCIlPT3oHPcc0N1QjnwHAbaLOon15q3exbqwYTe4qynjeCXPsgw0w90QFn1BH7ac4ZawZNZXPkCA== │ +│ │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: JBZA3U5a3grRFdCBBjv8wpy5TDn6D4npe1fpWEUy1CDN │ +│ Status: Success │ +│ Executed Epoch: 589 │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ +│ │ Owner: Shared( 422681861 ) │ +│ │ Version: 422681863 │ +│ │ Digest: 3vufCGUoEL9e4Cv44qwf73RRMsudukMTe5AdGQQGdTX7 │ +│ └── │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681863 │ +│ │ Digest: 2Ts72JFVAx6ix57E2gfrPmZM1r25vnveby3gQoRdWmAJ │ +│ └── │ +│ Shared Objects: │ +│ ┌── │ +│ │ ID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ +│ │ Version: 422681861 │ +│ │ Digest: BRjZkh15HgGVYq8RBpokvpcYhXT9m8JQ4eb7W7zpyhMo │ +│ └── │ +│ Deleted Objects: │ +│ ┌── │ +│ │ ID: 0x05f29334ed951b1748ddd65e502056175a83582b077949ad4299670449f3a430 │ +│ │ Version: 422681863 │ +│ │ Digest: 7gyGAp71YXQRoxmFBaHxofQXAipvgHyBKPyxmdSJxyvz │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681863 │ +│ │ Digest: 2Ts72JFVAx6ix57E2gfrPmZM1r25vnveby3gQoRdWmAJ │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 2591600 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 3904956 MIST │ +│ Non-refundable Storage Fee: 39444 MIST │ +│ │ +│ Transaction Dependencies: │ +│ DR6YACGqTRmgcoX82tHbKytcMiMo6tfDSwv6LRsp6a8Q │ +│ FFTzzSwfjLYR8YiLKT8khRCfWNZhbUJkeTq4bqXag3JH │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Shared( 422681861 ) │ +│ │ ObjectType: 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264::brainsk::BrainskSwapBank │ +│ │ Version: 422681863 │ +│ │ Digest: 3vufCGUoEL9e4Cv44qwf73RRMsudukMTe5AdGQQGdTX7 │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 422681863 │ +│ │ Digest: 2Ts72JFVAx6ix57E2gfrPmZM1r25vnveby3gQoRdWmAJ │ +│ └── │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: 563356 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ CoinType: 0x6873544ffc55c257a31c4fac905c730ed5f69c6340528314580b0c499a23c6fb::mycoin::MYCOIN │ +│ │ Amount: -80000 │ +│ └── │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +make deposit_faucetcoin +sui client call --package 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 --module brainsk --function deposit_faucetcoin --args 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 0xa404c780507a31981dc02c3ed95cf63965f78a66c3963c6065d432ca7b71971f +[warning] Client/Server api version mismatch, client api version : 1.38.0, server api version : 1.37.3 +Transaction Digest: H7U7wcq1xTJzaGJ751hsktxwDzU8qaVYNpWAqqTN58DA +╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├─────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Owner: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ Gas Budget: 1500000 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Version: 422681864 │ +│ │ Digest: H3w2rXmUoJ1bSNqBW5YeF7Wv9D7T4jVKc71MGBHmfbKP │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├─────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Shared Object ID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ │ +│ │ 1 Imm/Owned Object ID: 0xa404c780507a31981dc02c3ed95cf63965f78a66c3963c6065d432ca7b71971f │ │ +│ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭──────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: deposit_faucetcoin │ │ +│ │ │ Module: brainsk │ │ +│ │ │ Package: 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ └ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ jQJh9t5jUKBVA+9EzufE1cIBD782YA31dTKYJzebIoyvtw0mVFpLgxST6Xa0wL22R7r/uDWCNz7DcKEpXvHEBw== │ +│ │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: H7U7wcq1xTJzaGJ751hsktxwDzU8qaVYNpWAqqTN58DA │ +│ Status: Success │ +│ Executed Epoch: 589 │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ +│ │ Owner: Shared( 422681861 ) │ +│ │ Version: 422681865 │ +│ │ Digest: Bxxp8u1m6QsJsHGoiA52CMCpDJNZW9K1aQnwvBAZZGL │ +│ └── │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681865 │ +│ │ Digest: 7M93HXEnjL27dUBS3UtTWz2fV9pCjskUpAP8kUHNpTT8 │ +│ └── │ +│ Shared Objects: │ +│ ┌── │ +│ │ ID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ +│ │ Version: 422681863 │ +│ │ Digest: 3vufCGUoEL9e4Cv44qwf73RRMsudukMTe5AdGQQGdTX7 │ +│ └── │ +│ Deleted Objects: │ +│ ┌── │ +│ │ ID: 0xa404c780507a31981dc02c3ed95cf63965f78a66c3963c6065d432ca7b71971f │ +│ │ Version: 422681865 │ +│ │ Digest: 7gyGAp71YXQRoxmFBaHxofQXAipvgHyBKPyxmdSJxyvz │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ Version: 422681865 │ +│ │ Digest: 7M93HXEnjL27dUBS3UtTWz2fV9pCjskUpAP8kUHNpTT8 │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 2591600 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 3965148 MIST │ +│ Non-refundable Storage Fee: 40052 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 21j4KxbEG1hnWUcgAf2PcUmMmf3ZEYEVDhtee5ASGZYv │ +│ DR6YACGqTRmgcoX82tHbKytcMiMo6tfDSwv6LRsp6a8Q │ +│ JBZA3U5a3grRFdCBBjv8wpy5TDn6D4npe1fpWEUy1CDN │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x38c79f4b37e56ec98cfdd56c72faea011d4dab9eae0775c399ff975ac003a1c8 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Shared( 422681861 ) │ +│ │ ObjectType: 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264::brainsk::BrainskSwapBank │ +│ │ Version: 422681865 │ +│ │ Digest: Bxxp8u1m6QsJsHGoiA52CMCpDJNZW9K1aQnwvBAZZGL │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0xbf03beac2f0712cd5f950bd957ec06dc6efd420e04866ea0af2f9c06320a36a1 │ +│ │ Sender: 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 422681865 │ +│ │ Digest: 7M93HXEnjL27dUBS3UtTWz2fV9pCjskUpAP8kUHNpTT8 │ +│ └── │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: 623548 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0x9f0389fccd23a7a307c9c18bc2b9a1eafd9b3c2d28c26c026781b40602e225dc ) │ +│ │ CoinType: 0xf55b7f267fbf88f6e195bdb979316293ec492882273e7deffc078a6615ec2bfd::faucetcoin::FAUCETCOIN │ +│ │ Amount: -100000 │ +│ └── │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/mover/brainsk/readme.md b/mover/brainsk/readme.md index 565337501..fbb912f6f 100644 --- a/mover/brainsk/readme.md +++ b/mover/brainsk/readme.md @@ -26,21 +26,21 @@ - [√] `Faucet Coin` address2 mint hash: GVGDJiH6Km8edU58uagitcrfA35cjhA4H1fxRMyxBp7y ## 03 move NFT -- [] nft package id : 0x03defdabcae9c45534df08f5cdd4f119cd94fbbe80117a6179328ba45555b01d -- [] nft object id : 0x95c4ad856bc9da78cc54d1183c5933f812e17ea913f01cda5be228bf08fcd8b4 -- [] 转账 nft hash: 9TidEfi5awA7a8BwvkvhHguFkmR2ZBVCHT2FRLacVcrq -- [] scan上的NFT截图:![Scan截图](./images/nft.png) +- [√] nft package id : 0x03defdabcae9c45534df08f5cdd4f119cd94fbbe80117a6179328ba45555b01d +- [√] nft object id : 0x95c4ad856bc9da78cc54d1183c5933f812e17ea913f01cda5be228bf08fcd8b4 +- [√] 转账 nft hash: 9TidEfi5awA7a8BwvkvhHguFkmR2ZBVCHT2FRLacVcrq +- [√] scan上的NFT截图:![Scan截图](./images/nft.png) ## 04 Move Game -- [] game package id : -- [] deposit Coin hash: -- [] withdraw `Coin` hash: -- [] play game hash: +- [√] game package id : 0xd593563f21c3598ab5109488d634de8cbfe59b3463856b4dacf1cd90357a65b6 +- [√] deposit Coin hash: 9LfqjZQg6Wh3FQeS9sRE9W9va7x6jRsdf1fdwoa4xEbj +- [√] withdraw `Coin` hash: HTrpXRECgm1qWjPLB7d6PK6fdhnpMFsZmSa6d9di54KN +- [√] play game hash: Hiybm73HN9n8UWMHNc6K63cTNtqdPz2jphpfckaZjNpW ## 05 Move Swap -- [] swap package id : -- [] call swap CoinA-> CoinB hash : -- [] call swap CoinB-> CoinA hash : +- [√] swap package id : 0x8fce92f5a9044de1b3b19a622c2f2beb74c080321612ca546a8ddfbae089c264 +- [√] call swap CoinA-> CoinB hash : Fa4jYo1BY8msNRfWdScog3rwgh1Zybjh1vpD2tGjRwjJ +- [√] call swap CoinB-> CoinA hash : GXDtyEBzEegurzVaqvtyPvqDYwC8szzg1ES26SU8PRGM ## 06 Dapp-kit SDK PTB - [] save hash :