Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task2 #1985

Closed
wants to merge 1 commit into from
Closed

task2 #1985

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions mover/LiGuoV/code/task3/my_coin/sources/LiGuoV_coin.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module my_coin::LiGuoV_coin;
use std::option::some;
use sui::coin::create_currency;
use sui::transfer::{public_freeze_object, public_transfer};
use sui::url;
public struct LIGUOV_COIN has drop {

}
fun init(coin:LIGUOV_COIN,ctx:&mut TxContext){
let url = url::new_unsafe_from_bytes(b"https://static.wikia.nocookie.net/sanrio/images/1/10/Hello-kitty.png/revision/latest/scale-to-width-down/280?cb=20171105235741");
let url = some(url);
let (treasury_cap,coin_metadata) = create_currency(
coin,
2,
b"LiGuoVCoin",b"liguowei coin",b"玩玩",
url,ctx
);
public_freeze_object(coin_metadata);
public_transfer(treasury_cap,ctx.sender());
}
20 changes: 20 additions & 0 deletions mover/LiGuoV/code/task3/my_coin/sources/LiGuoV_faucet_coin.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module my_coin::LiGuoV_faucet_coin;
use std::option::some;
use sui::coin::create_currency;
use sui::transfer::{public_freeze_object, public_share_object};
use sui::url;
public struct LIGUOV_FAUCET_COIN has drop {

}
fun init(coin:LIGUOV_FAUCET_COIN,ctx:&mut TxContext){
let url = url::new_unsafe_from_bytes(b"https://static.wikia.nocookie.net/sanrio/images/1/10/Hello-kitty.png/revision/latest/scale-to-width-down/280?cb=20171105235741");
let url = some(url);
let (treasury_cap,coin_metadata) = create_currency(
coin,
2,
b"LiGuoV FAUCET Coin",b"liguowei faucet coin",b"玩玩",
url,ctx
);
public_freeze_object(coin_metadata);
public_share_object(treasury_cap);
}
10 changes: 5 additions & 5 deletions mover/LiGuoV/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
- [x] package id 在 scan上的查看截图:![Scan截图](./images/packge-hello.png)

## 02 move coin
- [] My Coin package id :
- [] Faucet package id :
- [] 转账 `My Coin` hash:
- [] `Faucet Coin` address1 mint hash:
- [] `Faucet Coin` address2 mint hash:
- [x] My Coin package id : `0xdbea0c4b512a56eac595048cc953d702fbc288ab16ad4d82cc9a2eb0926c7845`
- [x] Faucet package id : `0x0b2014a140f3b5bcc3c2e09d7a885b12ff0db06fa0db8ffd1f281087b6258e0f`
- [x] 转账 `My Coin` hash: `5WNLwfxA82XaxEBLwEGWuoZf1h41ERvTFJ1mrfGFXjm9`
- [x] `Faucet Coin` address1 mint hash: `2NozQHG5xNFaGTL5mEBiY8w8xZZEKtQnyg3mTShy4RPG`
- [x] `Faucet Coin` address2 mint hash: `8ebiVkrFK6wHLirZFTztY1yAws9TnEck7VR8vCY3AUDM`

## 03 move NFT
- [x] nft package id : `0xb93943a2d3ae7cf2c92bbe10bb11adc00052190701ef492c0e2c0eeaf70ea52d`
Expand Down