From 4f984d8076ec88b4a3833dbe094709a932dd39dc Mon Sep 17 00:00:00 2001 From: poshitou Date: Fri, 6 Dec 2024 01:27:47 +0800 Subject: [PATCH] commit task5 --- mover/poshitou/code/task5/poshitou/Move.lock | 43 +++ mover/poshitou/code/task5/poshitou/Move.toml | 40 +++ mover/poshitou/code/task5/poshitou/call.sh | 49 +++ .../poshitou/log/deposit_faucet_coin.log | 128 ++++++++ .../task5/poshitou/log/deposit_my_coin.log | 128 ++++++++ ...624f8aacd2c6108b7909db433a6394b435f57c.log | 302 ++++++++++++++++++ ...624f8aacd2c6108b7909db433a6394b435f57c.log | 293 +++++++++++++++++ ...624f8aacd2c6108b7909db433a6394b435f57c.log | 159 +++++++++ .../log/swap_faucet_coin_to_my_coin.log | 150 +++++++++ .../log/swap_my_coin_to_faucet_coin.log | 150 +++++++++ .../code/task5/poshitou/sources/swap.move | 89 ++++++ .../code/task5/poshitou/tests/swap_tests.move | 11 + mover/poshitou/readme.md | 6 +- 13 files changed, 1545 insertions(+), 3 deletions(-) create mode 100644 mover/poshitou/code/task5/poshitou/Move.lock create mode 100644 mover/poshitou/code/task5/poshitou/Move.toml create mode 100644 mover/poshitou/code/task5/poshitou/call.sh create mode 100644 mover/poshitou/code/task5/poshitou/log/deposit_faucet_coin.log create mode 100644 mover/poshitou/code/task5/poshitou/log/deposit_my_coin.log create mode 100644 mover/poshitou/code/task5/poshitou/log/mint_and_transfer_faucet_coin_to_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log create mode 100644 mover/poshitou/code/task5/poshitou/log/mint_and_transfer_my_coin_to_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log create mode 100644 mover/poshitou/code/task5/poshitou/log/publish_by_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log create mode 100644 mover/poshitou/code/task5/poshitou/log/swap_faucet_coin_to_my_coin.log create mode 100644 mover/poshitou/code/task5/poshitou/log/swap_my_coin_to_faucet_coin.log create mode 100644 mover/poshitou/code/task5/poshitou/sources/swap.move create mode 100644 mover/poshitou/code/task5/poshitou/tests/swap_tests.move diff --git a/mover/poshitou/code/task5/poshitou/Move.lock b/mover/poshitou/code/task5/poshitou/Move.lock new file mode 100644 index 000000000..b476833ef --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/Move.lock @@ -0,0 +1,43 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 3 +manifest_digest = "CC65AC05941F0A9C03541FE25A770AB77B6A2DAE7202D6D418C30A5561CE4D40" +deps_digest = "3C4103934B1E040BB6B23F1D610B4EF9F2F1166A50A104EADCF77467C004C600" +dependencies = [ + { id = "Sui", name = "Sui" }, + { id = "my_coin", name = "my_coin" }, +] + +[[move.package]] +id = "MoveStdlib" +source = { git = "https://gitee.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates\\sui-framework\\packages\\move-stdlib" } + +[[move.package]] +id = "Sui" +source = { git = "https://gitee.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" } + +dependencies = [ + { id = "MoveStdlib", name = "MoveStdlib" }, +] + +[[move.package]] +id = "my_coin" +source = { local = "..\\..\\task2\\my_coin" } + +dependencies = [ + { id = "Sui", name = "Sui" }, +] + +[move.toolchain-version] +compiler-version = "1.35.0" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.mainnet] +chain-id = "35834a8a" +original-published-id = "0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad" +latest-published-id = "0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad" +published-version = "1" diff --git a/mover/poshitou/code/task5/poshitou/Move.toml b/mover/poshitou/code/task5/poshitou/Move.toml new file mode 100644 index 000000000..ad4bce640 --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/Move.toml @@ -0,0 +1,40 @@ +[package] +name = "poshitou" +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)"] +published-at = "0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad" + + +[dependencies] +Sui = { git = "https://gitee.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" } +my_coin = {local = "../../task2/my_coin"} + +# 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] +poshitou = "0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad" + +# 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/poshitou/code/task5/poshitou/call.sh b/mover/poshitou/code/task5/poshitou/call.sh new file mode 100644 index 000000000..c7967865d --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/call.sh @@ -0,0 +1,49 @@ +# build +sui move build --skip-fetch-latest-git-deps + +# publish +sui client publish --skip-fetch-latest-git-deps + +sui client call ` +--package 0x2 ` +--module coin ` +--function mint_and_transfer ` +--type-args '0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN' ` +--args 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb 100 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c + + +# mint and transfer +sui client call ` +--package 0x2 ` +--module coin ` +--function mint_and_transfer ` +--type-args '0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN' ` +--args 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d 100 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c + + +sui client call ` +--package 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad ` +--module poshitou_swap ` +--function deposit_faucet_coin ` +--args 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 0x6e7af64e816d7c9c143591ddfabf1f156b62e4d273c2b7e6479e1aec19884882 + + +sui client call ` +--package 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad ` +--module poshitou_swap ` +--function deposit_my_coin ` +--args 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 0xf67236272ffee5eb128b3e900fbc0dc620f03f7df2690ddca7fca527d2e07d8c + + +sui client call ` +--package 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad ` +--module poshitou_swap ` +--function swap_faucet_coin_to_my_coin ` +--args 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 0xb9385eabb1083466c0833a10b9c3c705ccd183a7adf20998ef9494fcbf843249 + + +sui client call ` +--package 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad ` +--module poshitou_swap ` +--function swap_mycoin_to_faucet_coin ` +--args 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 0xb08529c699ee47bf530f8d38aefd12232371fe26cc3517b2b89a7c51b92bea5e \ No newline at end of file diff --git a/mover/poshitou/code/task5/poshitou/log/deposit_faucet_coin.log b/mover/poshitou/code/task5/poshitou/log/deposit_faucet_coin.log new file mode 100644 index 000000000..f6d150934 --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/log/deposit_faucet_coin.log @@ -0,0 +1,128 @@ +Transaction Digest: D8VMFXNcvq27Veu8A5QunKVDX1yS4iSPSZ2E34hnfzZE +╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├─────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 1500000 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Version: 435202762 │ +│ │ Digest: 3Y6PSHF3jQSpxSSc4X6eufYRd29RknCoYnCnPbzvTJNw │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├─────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Shared Object ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ │ +│ │ 1 Imm/Owned Object ID: 0x6e7af64e816d7c9c143591ddfabf1f156b62e4d273c2b7e6479e1aec19884882 │ │ +│ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭──────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: deposit_faucet_coin │ │ +│ │ │ Module: poshitou_swap │ │ +│ │ │ Package: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ └ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ bLYvhaYY6UuNfp+uTaQhcZ5zwubbIdZnuw8PKM/uSpwVVCmLfxgWw39Jv4zn54RmDo73osiYFKOdm39Xe2f9Bw== │ +│ │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: D8VMFXNcvq27Veu8A5QunKVDX1yS4iSPSZ2E34hnfzZE │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Owner: Shared( 435911712 ) │ +│ │ Version: 435911713 │ +│ │ Digest: Fm8aAToZNeAwHqQfwYgjUyvrqaSmmsUYz6J6bQdQdLKb │ +│ └── │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911713 │ +│ │ Digest: 2vXpLs9bwSWxXX6KgPBuosVWwu7H6BfuxQYeDic9vwHe │ +│ └── │ +│ Shared Objects: │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Version: 435911712 │ +│ │ Digest: FKHCxUPBs61VbTJZqXRFmahgukKhdopK4wDEdQoyb2m2 │ +│ └── │ +│ Deleted Objects: │ +│ ┌── │ +│ │ ID: 0x6e7af64e816d7c9c143591ddfabf1f156b62e4d273c2b7e6479e1aec19884882 │ +│ │ Version: 435911713 │ +│ │ Digest: 7gyGAp71YXQRoxmFBaHxofQXAipvgHyBKPyxmdSJxyvz │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911713 │ +│ │ Digest: 2vXpLs9bwSWxXX6KgPBuosVWwu7H6BfuxQYeDic9vwHe │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 2432000 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 3822192 MIST │ +│ Non-refundable Storage Fee: 38608 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 7eXcktYu2gfu4xuP1aYfequSaV9j1rtWvbntM8U3Deue │ +│ FRShsKAV7QvLecHpqYRjeeWdb74RrofAdoPrq9uY6V4q │ +│ HLY4E7grfaP9qqQCp3BtRFJZbY87YB84xQCtRJ1msMwL │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├─────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Shared( 435911712 ) │ +│ │ ObjectType: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad::poshitou_swap::Bank │ +│ │ Version: 435911713 │ +│ │ Digest: Fm8aAToZNeAwHqQfwYgjUyvrqaSmmsUYz6J6bQdQdLKb │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435911713 │ +│ │ Digest: 2vXpLs9bwSWxXX6KgPBuosVWwu7H6BfuxQYeDic9vwHe │ +│ └── │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: 640192 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN │ +│ │ Amount: -100 │ +│ └── │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/mover/poshitou/code/task5/poshitou/log/deposit_my_coin.log b/mover/poshitou/code/task5/poshitou/log/deposit_my_coin.log new file mode 100644 index 000000000..efc509354 --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/log/deposit_my_coin.log @@ -0,0 +1,128 @@ +Transaction Digest: 8aApciDTX9CDJxuALq4xBGQAPAZgjSim6bzXV4M2TnNo +╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├─────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 1500000 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Version: 435911713 │ +│ │ Digest: 2vXpLs9bwSWxXX6KgPBuosVWwu7H6BfuxQYeDic9vwHe │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├─────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Shared Object ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ │ +│ │ 1 Imm/Owned Object ID: 0xf67236272ffee5eb128b3e900fbc0dc620f03f7df2690ddca7fca527d2e07d8c │ │ +│ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭──────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: deposit_my_coin │ │ +│ │ │ Module: poshitou_swap │ │ +│ │ │ Package: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ └ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ BgYFUQxiKZO+CcmE1oMqHkVRF9y8S1OUVWDAccG9iRJDj+zCf41C26IrbKzQ7gywOczp5OXBbD7CvPnM92cfQA== │ +│ │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: 8aApciDTX9CDJxuALq4xBGQAPAZgjSim6bzXV4M2TnNo │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Owner: Shared( 435911712 ) │ +│ │ Version: 435911714 │ +│ │ Digest: HL2WQz1qjtq7c5q2SbQUu3kjedm5KCEEauYyQPUETEN3 │ +│ └── │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911714 │ +│ │ Digest: 4nGsVUywXq1xYUBUrbqonFG8Lz7vju4fF2xuaFbcp8rX │ +│ └── │ +│ Shared Objects: │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Version: 435911713 │ +│ │ Digest: Fm8aAToZNeAwHqQfwYgjUyvrqaSmmsUYz6J6bQdQdLKb │ +│ └── │ +│ Deleted Objects: │ +│ ┌── │ +│ │ ID: 0xf67236272ffee5eb128b3e900fbc0dc620f03f7df2690ddca7fca527d2e07d8c │ +│ │ Version: 435911714 │ +│ │ Digest: 7gyGAp71YXQRoxmFBaHxofQXAipvgHyBKPyxmdSJxyvz │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911714 │ +│ │ Digest: 4nGsVUywXq1xYUBUrbqonFG8Lz7vju4fF2xuaFbcp8rX │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 2432000 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 3762000 MIST │ +│ Non-refundable Storage Fee: 38000 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 7eXcktYu2gfu4xuP1aYfequSaV9j1rtWvbntM8U3Deue │ +│ D8VMFXNcvq27Veu8A5QunKVDX1yS4iSPSZ2E34hnfzZE │ +│ FRShsKAV7QvLecHpqYRjeeWdb74RrofAdoPrq9uY6V4q │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├─────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Shared( 435911712 ) │ +│ │ ObjectType: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad::poshitou_swap::Bank │ +│ │ Version: 435911714 │ +│ │ Digest: HL2WQz1qjtq7c5q2SbQUu3kjedm5KCEEauYyQPUETEN3 │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435911714 │ +│ │ Digest: 4nGsVUywXq1xYUBUrbqonFG8Lz7vju4fF2xuaFbcp8rX │ +│ └── │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: 580000 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN │ +│ │ Amount: -100 │ +│ └── │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/mover/poshitou/code/task5/poshitou/log/mint_and_transfer_faucet_coin_to_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log b/mover/poshitou/code/task5/poshitou/log/mint_and_transfer_faucet_coin_to_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log new file mode 100644 index 000000000..4e9c32d2e --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/log/mint_and_transfer_faucet_coin_to_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log @@ -0,0 +1,302 @@ +sui client call ` +--package 0x2 ` +--module coin ` +--function mint_and_transfer ` +--type-args '0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN' ` +--args 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb 100 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c +Transaction Digest: HLY4E7grfaP9qqQCp3BtRFJZbY87YB84xQCtRJ1msMwL +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 3934888 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Version: 410395985 │ +│ │ Digest: HBYT1AtByozEaKAKwqT4KK9fHghZoMBiAa7Ebi5UmRuo │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Shared Object ID: 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb │ │ +│ │ 1 Pure Arg: Type: u64, Value: "100" │ │ +│ │ 2 Pure Arg: Type: address, Value: "0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c" │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├───────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: mint_and_transfer │ │ +│ │ │ Module: coin │ │ +│ │ │ Package: 0x0000000000000000000000000000000000000000000000000000000000000002 │ │ +│ │ │ Type Arguments: │ │ +│ │ │ 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ │ Input 2 │ │ +│ │ └ │ │ +│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ TV3NCrZKW7r9EwA6nX1G8PnZ4klpUDcEX918+6/E9eJfjom3yIYqMQmtSLl83xiXnEnG6Fhf5I0l0C1hi8xrjA== │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: HLY4E7grfaP9qqQCp3BtRFJZbY87YB84xQCtRJ1msMwL │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0x6e7af64e816d7c9c143591ddfabf1f156b62e4d273c2b7e6479e1aec19884882 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435202761 │ +│ │ Digest: 2X2a5Kh2a74dZj9UYqPTNrLms2q1Mc76oih5HnccbJW2 │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435202761 │ +│ │ Digest: 4mczq3eW3K9hq7QHBhzM5C3kNpV8mbXrdxa59EK8QR3g │ +│ └── │ +│ ┌── │ +│ │ ID: 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb │ +│ │ Owner: Shared( 410395976 ) │ +│ │ Version: 435202761 │ +│ │ Digest: 6465hHaDyzosgcUwTvaqCAmDwt4hXCeGESbwKvgbtFAp │ +│ └── │ +│ Shared Objects: │ +│ ┌── │ +│ │ ID: 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb │ +│ │ Version: 435202760 │ +│ │ Digest: 9wW4QnHJ3kPMLsXj3y9ApJnBeUns1K6LKATEkKnam2Tf │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435202761 │ +│ │ Digest: 4mczq3eW3K9hq7QHBhzM5C3kNpV8mbXrdxa59EK8QR3g │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 4225600 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 2768832 MIST │ +│ Non-refundable Storage Fee: 27968 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 4ueMWExEYyCMGDAAbRxfZ3B4JoYwPtSQr2p92z7srhRe │ +│ 7Rt36wXxhB8ppmeLhwT94aXYXPbvyF9LMzMoGCBdhK1E │ +│ F1sGugmqoxq3LRNeiqsAZtqdaT3xxfgZGQHJRPbx37U1 │ +│ FPQJirZF6XaBX9wcmQbPUPPX9CzbpymnF3c8vtnpHqWt │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0x6e7af64e816d7c9c143591ddfabf1f156b62e4d273c2b7e6479e1aec19884882 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN> │ +│ │ Version: 435202761 │ +│ │ Digest: 2X2a5Kh2a74dZj9UYqPTNrLms2q1Mc76oih5HnccbJW2 │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435202761 │ +│ │ Digest: 4mczq3eW3K9hq7QHBhzM5C3kNpV8mbXrdxa59EK8QR3g │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Shared( 410395976 ) │ +│ │ ObjectType: 0x2::coin::TreasuryCap<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN> │ +│ │ Version: 435202761 │ +│ │ Digest: 6465hHaDyzosgcUwTvaqCAmDwt4hXCeGESbwKvgbtFAp │ +│ └── │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -2206768 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN │ +│ │ Amount: 100 │ +│ └── │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ + +--------------------------------------------------------------------------------------------------------------------------------------------------- +sui client call ` +--package 0x2 ` +--module coin ` +--function mint_and_transfer ` +--type-args '0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN' ` +--args 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb 1 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c +Transaction Digest: 9QcfBzooaVSxUzeGGc2YJDYRwZBMSNB7UqFyDdYBYqyC +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 3934888 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Version: 435911714 │ +│ │ Digest: 4nGsVUywXq1xYUBUrbqonFG8Lz7vju4fF2xuaFbcp8rX │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Shared Object ID: 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb │ │ +│ │ 1 Pure Arg: Type: u64, Value: "1" │ │ +│ │ 2 Pure Arg: Type: address, Value: "0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c" │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├───────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: mint_and_transfer │ │ +│ │ │ Module: coin │ │ +│ │ │ Package: 0x0000000000000000000000000000000000000000000000000000000000000002 │ │ +│ │ │ Type Arguments: │ │ +│ │ │ 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ │ Input 2 │ │ +│ │ └ │ │ +│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ EYGehz1wsf+U0xJPAzTwC2VqG16mF2z73ejkWnW+TPAK5TZxpoR1LteqjjAIKM20IPhy/ZoTl3QBbMBk6TDAdQ== │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: 9QcfBzooaVSxUzeGGc2YJDYRwZBMSNB7UqFyDdYBYqyC │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0xb9385eabb1083466c0833a10b9c3c705ccd183a7adf20998ef9494fcbf843249 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911715 │ +│ │ Digest: 88kCCaLSAitNg9GmpTVsTkVMVmjC9gfx7teCnq3ufhGc │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911715 │ +│ │ Digest: GhxyjNV6qUim4Nyv3NvSPYW3C1GRFK1PeDRgRKfBvT7U │ +│ └── │ +│ ┌── │ +│ │ ID: 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb │ +│ │ Owner: Shared( 410395976 ) │ +│ │ Version: 435911715 │ +│ │ Digest: FsppiQefkxZu8tU4YDAuYShN8awVf8Spgr4WxvTpVKGG │ +│ └── │ +│ Shared Objects: │ +│ ┌── │ +│ │ ID: 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb │ +│ │ Version: 435202761 │ +│ │ Digest: 6465hHaDyzosgcUwTvaqCAmDwt4hXCeGESbwKvgbtFAp │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911715 │ +│ │ Digest: GhxyjNV6qUim4Nyv3NvSPYW3C1GRFK1PeDRgRKfBvT7U │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 4225600 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 2768832 MIST │ +│ Non-refundable Storage Fee: 27968 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 4ueMWExEYyCMGDAAbRxfZ3B4JoYwPtSQr2p92z7srhRe │ +│ 8aApciDTX9CDJxuALq4xBGQAPAZgjSim6bzXV4M2TnNo │ +│ FPQJirZF6XaBX9wcmQbPUPPX9CzbpymnF3c8vtnpHqWt │ +│ HLY4E7grfaP9qqQCp3BtRFJZbY87YB84xQCtRJ1msMwL │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0xb9385eabb1083466c0833a10b9c3c705ccd183a7adf20998ef9494fcbf843249 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN> │ +│ │ Version: 435911715 │ +│ │ Digest: 88kCCaLSAitNg9GmpTVsTkVMVmjC9gfx7teCnq3ufhGc │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435911715 │ +│ │ Digest: GhxyjNV6qUim4Nyv3NvSPYW3C1GRFK1PeDRgRKfBvT7U │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0xc1ecb008f20a5c4504545de9107057c2ce0674ca34ebf614ebed8e5a77772ccb │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Shared( 410395976 ) │ +│ │ ObjectType: 0x2::coin::TreasuryCap<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN> │ +│ │ Version: 435911715 │ +│ │ Digest: FsppiQefkxZu8tU4YDAuYShN8awVf8Spgr4WxvTpVKGG │ +│ └── │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -2206768 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN │ +│ │ Amount: 1 │ +│ └── │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/mover/poshitou/code/task5/poshitou/log/mint_and_transfer_my_coin_to_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log b/mover/poshitou/code/task5/poshitou/log/mint_and_transfer_my_coin_to_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log new file mode 100644 index 000000000..b7260d104 --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/log/mint_and_transfer_my_coin_to_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log @@ -0,0 +1,293 @@ +>> --package 0x2 ` +>> --module coin ` +>> --function mint_and_transfer ` +>> --type-args '0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN' ` +>> --args 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d 100 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c + +Transaction Digest: FRShsKAV7QvLecHpqYRjeeWdb74RrofAdoPrq9uY6V4q +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 3873480 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Version: 435202761 │ +│ │ Digest: 4mczq3eW3K9hq7QHBhzM5C3kNpV8mbXrdxa59EK8QR3g │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Imm/Owned Object ID: 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d │ │ +│ │ 1 Pure Arg: Type: u64, Value: "100" │ │ +│ │ 2 Pure Arg: Type: address, Value: "0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c" │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├───────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: mint_and_transfer │ │ +│ │ │ Module: coin │ │ +│ │ │ Package: 0x0000000000000000000000000000000000000000000000000000000000000002 │ │ +│ │ │ Type Arguments: │ │ +│ │ │ 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ │ Input 2 │ │ +│ │ └ │ │ +│ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ DN01edA5QwCIo0oMvMf4ZwQNwcnS0ms/KJ2I6F49DTs39BgZlhYnnwwmXXFTrCnOfqDTkuAls1YIsj7I/b56Rw== │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: FRShsKAV7QvLecHpqYRjeeWdb74RrofAdoPrq9uY6V4q │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0xf67236272ffee5eb128b3e900fbc0dc620f03f7df2690ddca7fca527d2e07d8c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435202762 │ +│ │ Digest: 79ZtNdc8ZzBudD8GH6bs6AsYT6d2VsuZRyzu43z1hrQL │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435202762 │ +│ │ Digest: 3Y6PSHF3jQSpxSSc4X6eufYRd29RknCoYnCnPbzvTJNw │ +│ └── │ +│ ┌── │ +│ │ ID: 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435202762 │ +│ │ Digest: CTomqQJXJGNupahxYkiGnoumiG3pKqeZcPVqZxVvpYiV │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435202762 │ +│ │ Digest: 3Y6PSHF3jQSpxSSc4X6eufYRd29RknCoYnCnPbzvTJNw │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 4104000 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 2708640 MIST │ +│ Non-refundable Storage Fee: 27360 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 4ueMWExEYyCMGDAAbRxfZ3B4JoYwPtSQr2p92z7srhRe │ +│ 6uoiAJdExVurr1bTUwx129PdvEUQGYtYa9TLwjJVgEs7 │ +│ FPQJirZF6XaBX9wcmQbPUPPX9CzbpymnF3c8vtnpHqWt │ +│ HLY4E7grfaP9qqQCp3BtRFJZbY87YB84xQCtRJ1msMwL │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0xf67236272ffee5eb128b3e900fbc0dc620f03f7df2690ddca7fca527d2e07d8c │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN> │ +│ │ Version: 435202762 │ +│ │ Digest: 79ZtNdc8ZzBudD8GH6bs6AsYT6d2VsuZRyzu43z1hrQL │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435202762 │ +│ │ Digest: 3Y6PSHF3jQSpxSSc4X6eufYRd29RknCoYnCnPbzvTJNw │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::TreasuryCap<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN> │ +│ │ Version: 435202762 │ +│ │ Digest: CTomqQJXJGNupahxYkiGnoumiG3pKqeZcPVqZxVvpYiV │ +│ └── │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -2145360 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN │ +│ │ Amount: 100 │ +│ └── │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ + + + +--------------------------------------------------------------------------------------------------------------------------------------------------- +>> --package 0x2 ` +>> --module coin ` +>> --function mint_and_transfer ` +>> --type-args '0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN' ` +>> --args 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d 10 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c + +Transaction Digest: 75AKjVhRRAfPKX8EBevymfTvmaJJPvnZxeKWPfeTGpf +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 3873480 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x76ea60827637be52cd876e59a8bb7bab9e96d137f7a05316f51cf9013cc64708 │ +│ │ Version: 435911712 │ +│ │ Digest: 5J5fLfGbRhB6BzZvrH4M9CFF8C2GyRvp3scCF7fUXFS2 │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Imm/Owned Object ID: 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d │ │ +│ │ 1 Pure Arg: Type: u64, Value: "10" │ │ +│ │ 2 Pure Arg: Type: address, Value: "0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c" │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├───────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: mint_and_transfer │ │ +│ │ │ Module: coin │ │ +│ │ │ Package: 0x0000000000000000000000000000000000000000000000000000000000000002 │ │ +│ │ │ Type Arguments: │ │ +│ │ │ 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ │ Input 2 │ │ +│ │ └ │ │ +│ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ 42obXkO/RO7bSKM3JPu5fvXUEXbHvbw2fD0lBN6loI5HfUM9g0C0bGKe8ypfNIHJJGYtzOaTt6Q4zM/HL6heqw== │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: 75AKjVhRRAfPKX8EBevymfTvmaJJPvnZxeKWPfeTGpf │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0xb08529c699ee47bf530f8d38aefd12232371fe26cc3517b2b89a7c51b92bea5e │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911713 │ +│ │ Digest: 5QmfBsdPkKoubRPH5c25Eo1KHzTrETNjgAbvK1X4Rmsy │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x76ea60827637be52cd876e59a8bb7bab9e96d137f7a05316f51cf9013cc64708 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911713 │ +│ │ Digest: 6B5nxVJBD8Qh7ht6sa3TPLpqp1JBQzF1C25NeNjHsnfA │ +│ └── │ +│ ┌── │ +│ │ ID: 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911713 │ +│ │ Digest: JBLoN17GjUa6pCjqmWD66EbnWF8aM224BM87MHiP9mJ5 │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x76ea60827637be52cd876e59a8bb7bab9e96d137f7a05316f51cf9013cc64708 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911713 │ +│ │ Digest: 6B5nxVJBD8Qh7ht6sa3TPLpqp1JBQzF1C25NeNjHsnfA │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 4104000 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 2708640 MIST │ +│ Non-refundable Storage Fee: 27360 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 4ueMWExEYyCMGDAAbRxfZ3B4JoYwPtSQr2p92z7srhRe │ +│ 7eXcktYu2gfu4xuP1aYfequSaV9j1rtWvbntM8U3Deue │ +│ FPQJirZF6XaBX9wcmQbPUPPX9CzbpymnF3c8vtnpHqWt │ +│ FRShsKAV7QvLecHpqYRjeeWdb74RrofAdoPrq9uY6V4q │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0xb08529c699ee47bf530f8d38aefd12232371fe26cc3517b2b89a7c51b92bea5e │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN> │ +│ │ Version: 435911713 │ +│ │ Digest: 5QmfBsdPkKoubRPH5c25Eo1KHzTrETNjgAbvK1X4Rmsy │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x76ea60827637be52cd876e59a8bb7bab9e96d137f7a05316f51cf9013cc64708 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435911713 │ +│ │ Digest: 6B5nxVJBD8Qh7ht6sa3TPLpqp1JBQzF1C25NeNjHsnfA │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0x9a7542f2b37e3217cbfdb3ed748f6017664fd1653a0fc36f695c6f7bfc20f49d │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::TreasuryCap<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN> │ +│ │ Version: 435911713 │ +│ │ Digest: JBLoN17GjUa6pCjqmWD66EbnWF8aM224BM87MHiP9mJ5 │ +│ └── │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -2145360 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN │ +│ │ Amount: 10 │ +│ └── │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ + diff --git a/mover/poshitou/code/task5/poshitou/log/publish_by_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log b/mover/poshitou/code/task5/poshitou/log/publish_by_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log new file mode 100644 index 000000000..f720348bf --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/log/publish_by_0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c.log @@ -0,0 +1,159 @@ +Transaction Digest: 7eXcktYu2gfu4xuP1aYfequSaV9j1rtWvbntM8U3Deue +╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├──────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 18334000 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x76ea60827637be52cd876e59a8bb7bab9e96d137f7a05316f51cf9013cc64708 │ +│ │ Version: 435911711 │ +│ │ Digest: E9jCoG19PLfhJ68iFgPsSgN2ykyLN9gPLPYmLSQqAMD4 │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Pure Arg: Type: address, Value: "0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c" │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭─────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├─────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Publish: │ │ +│ │ ┌ │ │ +│ │ │ Dependencies: │ │ +│ │ │ 0x0000000000000000000000000000000000000000000000000000000000000001 │ │ +│ │ │ 0x0000000000000000000000000000000000000000000000000000000000000002 │ │ +│ │ │ 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73 │ │ +│ │ └ │ │ +│ │ │ │ +│ │ 1 TransferObjects: │ │ +│ │ ┌ │ │ +│ │ │ Arguments: │ │ +│ │ │ Result 0 │ │ +│ │ │ Address: Input 0 │ │ +│ │ └ │ │ +│ ╰─────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ lNnMJZbXEDuJc3OSZ1TTKNEeTtpRn5kdVuOFHZDjeGg7VAKwfItSzIKORpOfLEJbOlnLMFYJebN1cypuDb0UWQ== │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: 7eXcktYu2gfu4xuP1aYfequSaV9j1rtWvbntM8U3Deue │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0x0b837ceb430a39bed4db230ab516560894255ec22af1c49eda1d6b6c3cc90619 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911712 │ +│ │ Digest: CZjdveMd7DDWE2sw5LePehDTdN2MRRDJgHE3j9SkewnZ │ +│ └── │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Owner: Shared( 435911712 ) │ +│ │ Version: 435911712 │ +│ │ Digest: FKHCxUPBs61VbTJZqXRFmahgukKhdopK4wDEdQoyb2m2 │ +│ └── │ +│ ┌── │ +│ │ ID: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad │ +│ │ Owner: Immutable │ +│ │ Version: 1 │ +│ │ Digest: D8A9c5zmkuS3zd6yW5XxySc8GZyJ7q1vCQaKVWcX8Cst │ +│ └── │ +│ ┌── │ +│ │ ID: 0xef5f7cb11a8e7e0cca2500a17593b20aa85f60dec398c6929480ddecb454e3e3 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911712 │ +│ │ Digest: FVNFN5AwEvTc6PRM3rLMARpH8vvMZb8oRLHngxEnYPHa │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x76ea60827637be52cd876e59a8bb7bab9e96d137f7a05316f51cf9013cc64708 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911712 │ +│ │ Digest: 5J5fLfGbRhB6BzZvrH4M9CFF8C2GyRvp3scCF7fUXFS2 │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x76ea60827637be52cd876e59a8bb7bab9e96d137f7a05316f51cf9013cc64708 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911712 │ +│ │ Digest: 5J5fLfGbRhB6BzZvrH4M9CFF8C2GyRvp3scCF7fUXFS2 │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 16834000 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 978120 MIST │ +│ Non-refundable Storage Fee: 9880 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 4ueMWExEYyCMGDAAbRxfZ3B4JoYwPtSQr2p92z7srhRe │ +│ BTSfUQ2N91rzRM9Nk98uqApK1vs2XfFMg9HHxNUAk86b │ +│ FPQJirZF6XaBX9wcmQbPUPPX9CzbpymnF3c8vtnpHqWt │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├─────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0x0b837ceb430a39bed4db230ab516560894255ec22af1c49eda1d6b6c3cc90619 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad::poshitou_swap::AdminCap │ +│ │ Version: 435911712 │ +│ │ Digest: CZjdveMd7DDWE2sw5LePehDTdN2MRRDJgHE3j9SkewnZ │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Shared( 435911712 ) │ +│ │ ObjectType: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad::poshitou_swap::Bank │ +│ │ Version: 435911712 │ +│ │ Digest: FKHCxUPBs61VbTJZqXRFmahgukKhdopK4wDEdQoyb2m2 │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0xef5f7cb11a8e7e0cca2500a17593b20aa85f60dec398c6929480ddecb454e3e3 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::package::UpgradeCap │ +│ │ Version: 435911712 │ +│ │ Digest: FVNFN5AwEvTc6PRM3rLMARpH8vvMZb8oRLHngxEnYPHa │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x76ea60827637be52cd876e59a8bb7bab9e96d137f7a05316f51cf9013cc64708 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435911712 │ +│ │ Digest: 5J5fLfGbRhB6BzZvrH4M9CFF8C2GyRvp3scCF7fUXFS2 │ +│ └── │ +│ Published Objects: │ +│ ┌── │ +│ │ PackageID: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad │ +│ │ Version: 1 │ +│ │ Digest: D8A9c5zmkuS3zd6yW5XxySc8GZyJ7q1vCQaKVWcX8Cst │ +│ │ Modules: poshitou_swap │ +│ └── │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -16605880 │ +│ └── │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/mover/poshitou/code/task5/poshitou/log/swap_faucet_coin_to_my_coin.log b/mover/poshitou/code/task5/poshitou/log/swap_faucet_coin_to_my_coin.log new file mode 100644 index 000000000..54329bb83 --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/log/swap_faucet_coin_to_my_coin.log @@ -0,0 +1,150 @@ +Transaction Digest: HVi9WNF2BnjXBxgnQ4pmiV7kK4cVvAHT8QptXNFBiQfE +╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├─────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 2455928 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Version: 435911716 │ +│ │ Digest: 8jJfgCDk5RN22WMZfP6VLdV8pucc3C9yz1mGaaqrvEbf │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├─────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Shared Object ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ │ +│ │ 1 Imm/Owned Object ID: 0xb9385eabb1083466c0833a10b9c3c705ccd183a7adf20998ef9494fcbf843249 │ │ +│ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭──────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: swap_faucet_coin_to_my_coin │ │ +│ │ │ Module: poshitou_swap │ │ +│ │ │ Package: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ └ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ tyTM80u5QlWW09dory0OQ3qiYg3L2jd+d6J5X5O0tEt8qvOwsPMlUxjr0xZYR4zkXkI9cwO5Fbaq3JJAgwE7yw== │ +│ │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: HVi9WNF2BnjXBxgnQ4pmiV7kK4cVvAHT8QptXNFBiQfE │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0x83f86e70d822508f853ccc64ee1a265853336f238838476877f42a009b10bd65 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911717 │ +│ │ Digest: 81ZLYZYjcCUF4ZZKoUGssNN2rGtxRCN5Xk3VXyD3vC1a │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Owner: Shared( 435911712 ) │ +│ │ Version: 435911717 │ +│ │ Digest: D8vi3jWWciCSRtGhtuCNfs8MuR1FS8SKWEWMhTDzFiMx │ +│ └── │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911717 │ +│ │ Digest: D6LVpoV4DqyD9e4jMRCJkerGhXRgYBCAu1YmQJKYxKEW │ +│ └── │ +│ Shared Objects: │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Version: 435911716 │ +│ │ Digest: 5CS8hiZiR6Vnqck8GJrzALzBYaw7ZuvuEE5hVoTcWQN9 │ +│ └── │ +│ Deleted Objects: │ +│ ┌── │ +│ │ ID: 0xb9385eabb1083466c0833a10b9c3c705ccd183a7adf20998ef9494fcbf843249 │ +│ │ Version: 435911717 │ +│ │ Digest: 7gyGAp71YXQRoxmFBaHxofQXAipvgHyBKPyxmdSJxyvz │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911717 │ +│ │ Digest: D6LVpoV4DqyD9e4jMRCJkerGhXRgYBCAu1YmQJKYxKEW │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 3800000 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 3822192 MIST │ +│ Non-refundable Storage Fee: 38608 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 4Aqi9Jj6NqTLhWmqK6fFPJzvAYF1KNB3Y7FpRT1ALine │ +│ 7eXcktYu2gfu4xuP1aYfequSaV9j1rtWvbntM8U3Deue │ +│ 9QcfBzooaVSxUzeGGc2YJDYRwZBMSNB7UqFyDdYBYqyC │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0x83f86e70d822508f853ccc64ee1a265853336f238838476877f42a009b10bd65 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN> │ +│ │ Version: 435911717 │ +│ │ Digest: 81ZLYZYjcCUF4ZZKoUGssNN2rGtxRCN5Xk3VXyD3vC1a │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Shared( 435911712 ) │ +│ │ ObjectType: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad::poshitou_swap::Bank │ +│ │ Version: 435911717 │ +│ │ Digest: D8vi3jWWciCSRtGhtuCNfs8MuR1FS8SKWEWMhTDzFiMx │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435911717 │ +│ │ Digest: D6LVpoV4DqyD9e4jMRCJkerGhXRgYBCAu1YmQJKYxKEW │ +│ └── │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -727808 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN │ +│ │ Amount: -1 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN │ +│ │ Amount: 10 │ +│ └── │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/mover/poshitou/code/task5/poshitou/log/swap_my_coin_to_faucet_coin.log b/mover/poshitou/code/task5/poshitou/log/swap_my_coin_to_faucet_coin.log new file mode 100644 index 000000000..db0d7c7fe --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/log/swap_my_coin_to_faucet_coin.log @@ -0,0 +1,150 @@ +Transaction Digest: CmFiFpEyBvDqckv1r3D1NKfREbQozPqYg5MV8Ex8SB6N +╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Data │ +├─────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Owner: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ Gas Budget: 2576920 MIST │ +│ Gas Price: 750 MIST │ +│ Gas Payment: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Version: 435911717 │ +│ │ Digest: D6LVpoV4DqyD9e4jMRCJkerGhXRgYBCAu1YmQJKYxKEW │ +│ └── │ +│ │ +│ Transaction Kind: Programmable │ +│ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Input Objects │ │ +│ ├─────────────────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 Shared Object ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ │ +│ │ 1 Imm/Owned Object ID: 0xb08529c699ee47bf530f8d38aefd12232371fe26cc3517b2b89a7c51b92bea5e │ │ +│ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ ╭──────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Commands │ │ +│ ├──────────────────────────────────────────────────────────────────────────────────┤ │ +│ │ 0 MoveCall: │ │ +│ │ ┌ │ │ +│ │ │ Function: swap_mycoin_to_faucet_coin │ │ +│ │ │ Module: poshitou_swap │ │ +│ │ │ Package: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad │ │ +│ │ │ Arguments: │ │ +│ │ │ Input 0 │ │ +│ │ │ Input 1 │ │ +│ │ └ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ Signatures: │ +│ 7k7QsXtiJT2xAxQnZMcr9rnA92ydZ5mhqebb3cXZQ24hDRlyK6j4XxXC6Fu0uRmPhLvfjiCZWWb7JrFbnL8e7g== │ +│ │ +╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Transaction Effects │ +├───────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Digest: CmFiFpEyBvDqckv1r3D1NKfREbQozPqYg5MV8Ex8SB6N │ +│ Status: Success │ +│ Executed Epoch: 602 │ +│ │ +│ Created Objects: │ +│ ┌── │ +│ │ ID: 0x71bb8a1747952dc6796bc6f1665d61a0c3f9270daeadfa28848548c0d861f21a │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911718 │ +│ │ Digest: 2am6c5bBV9Bz9AUQgGUbbQzZkMmGh49txk4Cnv5h7pfD │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Owner: Shared( 435911712 ) │ +│ │ Version: 435911718 │ +│ │ Digest: EiZwAgRLRnaq5PcEswoETCqBGcGj7enfh8h7wBEzRwjg │ +│ └── │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911718 │ +│ │ Digest: 9Po7CFSpEqGkMYycWtj7J3s57pHyCvbCBcxzL8rn8JMA │ +│ └── │ +│ Shared Objects: │ +│ ┌── │ +│ │ ID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Version: 435911717 │ +│ │ Digest: D8vi3jWWciCSRtGhtuCNfs8MuR1FS8SKWEWMhTDzFiMx │ +│ └── │ +│ Deleted Objects: │ +│ ┌── │ +│ │ ID: 0xb08529c699ee47bf530f8d38aefd12232371fe26cc3517b2b89a7c51b92bea5e │ +│ │ Version: 435911718 │ +│ │ Digest: 7gyGAp71YXQRoxmFBaHxofQXAipvgHyBKPyxmdSJxyvz │ +│ └── │ +│ Gas Object: │ +│ ┌── │ +│ │ ID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ Version: 435911718 │ +│ │ Digest: 9Po7CFSpEqGkMYycWtj7J3s57pHyCvbCBcxzL8rn8JMA │ +│ └── │ +│ Gas Cost Summary: │ +│ Storage Cost: 3860800 MIST │ +│ Computation Cost: 750000 MIST │ +│ Storage Rebate: 3762000 MIST │ +│ Non-refundable Storage Fee: 38000 MIST │ +│ │ +│ Transaction Dependencies: │ +│ 75AKjVhRRAfPKX8EBevymfTvmaJJPvnZxeKWPfeTGpf │ +│ 7eXcktYu2gfu4xuP1aYfequSaV9j1rtWvbntM8U3Deue │ +│ HVi9WNF2BnjXBxgnQ4pmiV7kK4cVvAHT8QptXNFBiQfE │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─────────────────────────────╮ +│ No transaction block events │ +╰─────────────────────────────╯ + +╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Object Changes │ +├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ Created Objects: │ +│ ┌── │ +│ │ ObjectID: 0x71bb8a1747952dc6796bc6f1665d61a0c3f9270daeadfa28848548c0d861f21a │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN> │ +│ │ Version: 435911718 │ +│ │ Digest: 2am6c5bBV9Bz9AUQgGUbbQzZkMmGh49txk4Cnv5h7pfD │ +│ └── │ +│ Mutated Objects: │ +│ ┌── │ +│ │ ObjectID: 0x2255714f3e6872921ff1f9c0c742c74230fee49c3f2eea5c6d5f095f52a34ff3 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Shared( 435911712 ) │ +│ │ ObjectType: 0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad::poshitou_swap::Bank │ +│ │ Version: 435911718 │ +│ │ Digest: EiZwAgRLRnaq5PcEswoETCqBGcGj7enfh8h7wBEzRwjg │ +│ └── │ +│ ┌── │ +│ │ ObjectID: 0x2f4da0b0ad39e6428ab2b919ae0ce25b7f5a238ca6b1007f96417f1327cd99d1 │ +│ │ Sender: 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ ObjectType: 0x2::coin::Coin<0x2::sui::SUI> │ +│ │ Version: 435911718 │ +│ │ Digest: 9Po7CFSpEqGkMYycWtj7J3s57pHyCvbCBcxzL8rn8JMA │ +│ └── │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Balance Changes │ +├────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x2::sui::SUI │ +│ │ Amount: -848800 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::faucet_coin::FAUCET_COIN │ +│ │ Amount: 1 │ +│ └── │ +│ ┌── │ +│ │ Owner: Account Address ( 0xd842b07687548bef8605dab499624f8aacd2c6108b7909db433a6394b435f57c ) │ +│ │ CoinType: 0x388ecc0ef7261e40f7be055c723e4bf275d3eeb33eae3525e4b7096065b19b73::my_coin::MY_COIN │ +│ │ Amount: -10 │ +│ └── │ +╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ \ No newline at end of file diff --git a/mover/poshitou/code/task5/poshitou/sources/swap.move b/mover/poshitou/code/task5/poshitou/sources/swap.move new file mode 100644 index 000000000..a731e8bf6 --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/sources/swap.move @@ -0,0 +1,89 @@ +/// Module: swap +module poshitou::poshitou_swap; +use my_coin::faucet_coin::FAUCET_COIN; +use my_coin::my_coin::MY_COIN; +use sui::balance; +use sui::balance::Balance; +use sui::coin; +use sui::coin::Coin; +use sui::transfer::share_object; +use sui::tx_context::sender; + +public struct Bank has key { + id: UID, + faucet_coin: Balance, + my_coin: Balance, +} + +public struct AdminCap has key { + id: UID +} + +fun init(ctx: &mut TxContext) { + let bank = Bank { + id: object::new(ctx), + faucet_coin: balance::zero(), + my_coin: balance::zero() + }; + + share_object(bank); + + transfer::transfer(AdminCap { + id: object::new(ctx) + }, sender(ctx)); +} + +entry fun deposit_faucet_coin(bank: &mut Bank, in: Coin, _: &mut TxContext) { + balance::join(&mut bank.faucet_coin, coin::into_balance(in)); +} + +entry fun deposit_my_coin(bank: &mut Bank, in: Coin, _: &mut TxContext) { + balance::join(&mut bank.my_coin, coin::into_balance(in)); +} + +#[allow(lint(self_transfer))] +entry fun swap_faucet_coin_to_my_coin(bank: &mut Bank, in: Coin, ctx: &mut TxContext) { + //假如 FAUCET_COIN 和 MY_COIN 的比例是 1:10 + //一个 FAUCET_COIN 可以换 10 个 MY_COIN + let faucet_coin_amt = coin::value(&in); + let my_coin_amt = faucet_coin_amt * 10; + + //银行的的faucet_coin增加,my_coin减少 + balance::join(&mut bank.faucet_coin, coin::into_balance(in)); + let my_coin_b = balance::split(&mut bank.my_coin, my_coin_amt); + + //把my_coin转给调用者 + transfer::public_transfer(coin::from_balance(my_coin_b, ctx), sender(ctx)); +} + +#[allow(lint(self_transfer))] +entry fun swap_mycoin_to_faucet_coin(bank: &mut Bank, in: Coin, ctx: &mut TxContext) { + //假如 FAUCET_COIN 和 MY_COIN 的比例是 1:10 + //一个 MY_COIN 可以换 0.1 个 MY_COIN + let my_coin_amt = coin::value(&in); + let faucet_coin_amt = my_coin_amt * 1 / 10; + + //银行的的my_coin增加,faucet_coin减少 + balance::join(&mut bank.my_coin, coin::into_balance(in)); + let faucet_coin_b = balance::split(&mut bank.faucet_coin, faucet_coin_amt); + + //把my_coin转给调用者 + transfer::public_transfer(coin::from_balance(faucet_coin_b, ctx), sender(ctx)); +} + + +//取钱 my coin +#[allow(lint(self_transfer))] +entry fun withdraw_my_coin(_admin_cap: &AdminCap, bank: &mut Bank, amt: u64, ctx: &mut TxContext) { + let my_coin_amt = balance::split(&mut bank.my_coin, amt); + + transfer::public_transfer(coin::from_balance(my_coin_amt, ctx), sender(ctx)); +} + +//取钱fauct coin +#[allow(lint(self_transfer))] +entry fun withdarw_faucet_coin(_admin_cap: & AdminCap, bank: &mut Bank, amt: u64, ctx: &mut TxContext) { + let faucet_coin_amt = balance::split(&mut bank.faucet_coin, amt); + + transfer::public_transfer(coin::from_balance(faucet_coin_amt, ctx), sender(ctx)); +} diff --git a/mover/poshitou/code/task5/poshitou/tests/swap_tests.move b/mover/poshitou/code/task5/poshitou/tests/swap_tests.move new file mode 100644 index 000000000..7d01fe2b3 --- /dev/null +++ b/mover/poshitou/code/task5/poshitou/tests/swap_tests.move @@ -0,0 +1,11 @@ +#[test_only] +module swap::swap_tests; +// uncomment this line to import the module +// use swap::swap; + + +#[test] +fun test_swap() { + // pass +} + diff --git a/mover/poshitou/readme.md b/mover/poshitou/readme.md index e31bfb5c2..43308fcf3 100644 --- a/mover/poshitou/readme.md +++ b/mover/poshitou/readme.md @@ -58,9 +58,9 @@ - [√] play game hash: E5o3oGtiRAfkrhuhCYzisSiLSxiA1ok2hgNqRhDf3p35 ## 05 Move Swap -- [] swap package id : -- [] call swap CoinA-> CoinB hash : -- [] call swap CoinB-> CoinA hash : +- [√] swap package id :0xe31d7e17f01f89b34459b467547d2febadf672f4c809742a10b08e267b3f1dad +- [√] call swap CoinA-> CoinB hash : HVi9WNF2BnjXBxgnQ4pmiV7kK4cVvAHT8QptXNFBiQfE +- [√] call swap CoinB-> CoinA hash : CmFiFpEyBvDqckv1r3D1NKfREbQozPqYg5MV8Ex8SB6N ## 06 SDK PTB - [] save hash :