Giter Site home page Giter Site logo

sap200 / shiaa3 Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 5.0 50.18 MB

Shiaa3 is can be used to transfer NFT (Assets) between 2 different chains using IBC. Assets can also be won by gambling in pool.

Go 3.45% Shell 0.01% JavaScript 44.89% Dockerfile 0.01% HTML 0.01% Vue 0.29% SCSS 0.01% TypeScript 51.36%

shiaa3's Introduction

shiaa3

Screenshot

shiaa3 is a blockchain built using Cosmos SDK and Tendermint and created with Starport.

Shiaa3 is an implementation of NFT in cosmos-sdk. The native NFTs of shiaa3 is called as Assets

Assets can be of 5 kinds in shiaa3

− CAMEL (50 Tokens)

− HOUSE (200 Tokens)

− FOSSIL NECKLACE (100 Tokens)

− TERACOTTA LAMP (5 Tokens)

− CERAMIC PLATE (10 Token

The Assets are non-standard NFT and is inspired from the game of catan. They are like cards in the game of catan. But nevertheless as a property of NFT its ownership can be transferred and it can be burnt.

Another important aspect of it is Assets can be transferred over assets port over a channel, given both chains at endpoints has assets module enabled in app.go

The monetary policies

◼ Assets can be transferred and sending your assets to other people earns you 20% of the base amount as a reward, always.

◼ Assets can be staked in a pool of a club. The club has got 5 pool, [0, 1, 2, 3, 4]. To enter into a pool an asset need to be staked.

◼ Pools has different limit pool-0 and pool-1 supports 2 player

◼ Pool-2 and pool-3 supports 3 players

◼ Pool-4 supports 5 players

◼ Each pool plays a game of shai . The winner in this game becomes the owner of all assets staked in the pool.

Assets

Assets are defined by type struct of golang the assets has the following fields

◼ Id

◼ Creator

◼ SerialNumberPAGE 3

◼ AssetType

◼ AssetName

◼ PriceInTokens

◼ Owner

Assets can be of 5 types as described in the introduction but internally they are represented by integers.

CAMEL = 0

HOUSE = 1

FOSSIL_NECKLACE = 2

CERAMIC_PLATE = 3

TERACOTTA_LAMP = 4

Usage

Buying an Asset

shiaa3d tx assets buy-Asset 0 --from alice --chain-id shiaa3-ibc1 --home ./.ibc1 --node http://localhost:26657

Burning an Asset

shiaa3d tx assets burn-Asset <<ASSET_SERIAL>> --from alice --chain-id shiaa3-ibc1 --home ./.ibc1 --node http://localhost:26657

Gambling in Pool

shiaa3d tx shiaa3 join-pool-and-stake-Asset pool-0 CAMEL23e005d4-5068-488b-b039-93696c0330da --from alice --home ./.ibc1 --chain-id shiaa3-ibc1 --node http://localhost:26657

Seeing the Pool Status

shiaa3d q shiaa3 list-Pool0Ticket --node http://localhost:26659

Sending an Asset across Blockchains

shiaa3d  tx assets send-IbcAsset assets channel-0 CAMELaa86d367-091b-44e0-9b49-171d5825d93c cosmos1eymf808cfrudmtczafcwzfqwm0tp9p5k9fgs03 --from alice --home $HOME/.ibc1 --chain-id shiaa3-ibc1 --node http://localhost:26657

shiaa3's People

Contributors

sap200 avatar

Stargazers

Moteesh avatar Syed Mujtaba avatar

Watchers

 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.