Giter Site home page Giter Site logo

sui-tales-marketplace's Introduction

Sui Tales Marketplace

Marketplace for trading tales using the Kiosk framework

Publish the package to the Sui testnet

sui client publish --gas-budget 100000000

Usage

# mint a tale
sui client call --function mint_tale --module tale --package $PACKAGE_ID --args $AUTHOR $TITLE $CATEGORY $STORY --gas-budget 10000000

# create tales marketplace "kiosk"
sui client call --function create_tale_marketplace --module talesmarket --package $PACKAGE_ID --gas-budget 10000000

# place a tale
sui client call --function place_tale --module talesmarket --package $PACKAGE_ID --args $KIOSK_ID $KIOSKOWNERCAP_ID $TALE_ID --type-args $TYPE_ARGS --gas-budget 10000000

# list a tale
sui client call --function list_tale --module talesmarket --package $PACKAGE_ID --args $KIOSK_ID $KIOSKOWNERCAP_ID $TALE_ID $PRICE --type-args $TYPE_ARGS --gas-budget 10000000

# buy a tale 
sui client call --function purchase_tale --module talesmarket --package $PACKAGE_ID --args $KIOSK_ID $KIOSKOWNERCAP_ID $TALE_ID $PAYMENT_ID --type-args $TYPE_ARGS --gas-budget 10000000

## transferpolicy
# new policy
sui client call --function new_policy --module talestransferpolicy --package $PACKAGE_ID --args $KIOSK_PUBLISHER --gas-budget 10000000

# add a rule
sui client call --function add_tale_rule --module talesrules --package $PACKAGE_ID --args $KIOSK_TRANSFER_POLICY $KIOSK_TRANSFER_POLICY_CAP $AMOUNT_BP --type-args $TYPE_ARGS --gas-budget 10000000

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

sui-tales-marketplace's People

Contributors

0xriazaka avatar coolestnick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.