/bobyard-contract

BobYard.io Smart contract

Primary LanguageMove

The https://bobyard.io nft BobYard smart contract

Contract call

init shell value

PKG=
MK=
ADMIN=

Init Market with Coin type

sui client call --package $PKG --module BobYard --function create --type-args  0x2::sui::SUI --args $ADMIN --gas-budget 300000

List Object

sui client call --package $PKG --module BobYard --function list --type-args 0x2::devnet_nft::DevNetNFT 0x2::sui::SUI  --args $MK 0x3a892d9a6be88a60ba6489a208bad707344343a4 100000000 --gas-budget 300000

Buy Object

sui client call --package $PKG --module BobYard --function buy_one --type-args 0x2::devnet_nft::DevNetNFT 0x2::sui::SUI  --args $MK 0x15d669bcac7b018f84baaa15048acbf4c54340e7 0x377c51b45ffa1dc5ef3fb59a833cdb1dcd175634 --gas-budget 300000

Make Offer

sui client call --package $PKG --module BobYard --function make_offer --type-args 0x2::devnet_nft::DevNetNFT 0x2::sui::SUI  --args $MK 0xa4e25513b1c4ac125929c3a350590e77206ea369 0x3473808455e7c09d1496cfa5498ff4a983b6c8f6 0 --gas-budget 300000

Cancel Offer

sui client call --package $PKG --module BobYard --function cancel_offer --type-args 0x2::devnet_nft::DevNetNFT 0x2::sui::SUI  --args $MK 0x6d679cf41d10ef1e78d25e465c3f09f9908104be 
--gas-budget 300000

accept offer

sui client call --package $PKG --module BobYard --function accept_offer --type-args 0x2::devnet_nft::DevNetNFT 0x2::sui::SUI  --args $MK 0xa4e25513b1c4ac125929c3a350590e77206ea369 0x3473808455e7c09d1496cfa5498ff4a983b6c8f6 --gas-budget 300000

mint testnft

sui client call --package $PKG --module testnet --function mint --type-args 0x5c2a7f3228da0569b47065d8e0b81bbf9bae2f0e::testnet::TestNFt --args 0xc7a18c16fc27bf0c808f9cef12924beb37b42e40 --gas-budget 300000

init lanchpad

sui client call --package $PKG --module nft --function create_lanchpad --type-args 0x5c2a7f3228da0569b47065d8e0b81bbf9bae2f0e::testnet::TestNFt --args  --gas-budget 300000