Coder Social home page Coder Social logo

renzhou-r / suizino Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manolisliolios/suizino

0.0 0.0 0.0 1.5 MB

A small casino-like running on Sui Blockchain. Front-end made with Vue3.

Shell 1.42% JavaScript 25.24% CSS 1.78% HTML 3.32% Vue 44.05% Move 24.19%

suizino's Introduction

Suizino Wallet Design

Suizino dApp - Built on Sui Blockchain

This project is built on-top of Sui blockchain using a Sui smart contract.

The front-end of the project is built using Vue3 and tailwind.

The front-end integrates with Sui Wallet to execute signed transactions

Please do not use in production (well, you actually can't because Sui is on devnet, but just to make sure this is future-compatible). The random generation of numbers in the smart contract is unsafe.

Personal notes about the project

  • It's the first dApp I ever created and first smart contract I've ever worked on. Constructive feedback is highly appreciated.
  • It's the first Vue3 application I created. Been working professionally using Vue2 with the Options API. It was fun to work with Vue3. Love the speed. Still not 100% sure whether I like the composition API or not.
  • It was really fun determining how to create these animated slots. I came across a fun interval based way.

Functionality

  • The front-end gives you connection capabilities with Sui Wallet or Ethos Wallet.
  • If your address is the publishing address of the Casino, the client gives you a "deposit to casino" button to top-it up so users can play
  • If your address is the publishing address of the Casino, you have a "withdraw from casino" capability.
  • Client auto-fetches your CasinoOwnership (in case you have it of course) and your available Coin Tokens. It uses a (~random (the first that has enough balance from the jsonrpc response)) coin with enough funds to process the payment.
  • The client doesn't auto merge coins since this will be an option from Sui Wallet in upcoming updates. If you want to deposit more mist than each object holds, please do it manually.

Smart Contract Running Instructions

  • You can use sui move test to run the test sets located on /move/tests subfolder.
  • You can use sui move build to build the package
  • You can run sui client publish --gas-budget 30000 to deploy the smart contract on the blockchain. Don't forget to follow these instructions to switch to DevNet if you plan to use it live. (https://docs.sui.io/build/devnet)

Front-end installation instructions

Sui wallet Link: https://chrome.google.com/webstore/detail/sui-wallet/opcgpfmipidbgpenhmajoajpbobppdil

suizino's People

Contributors

manolisliolios avatar e274426380 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.