GithubHelp home page GithubHelp logo

decentralcardgame / cardchain Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 35.0 276.97 MB

Cosmos based blockchain for handling card ownership, card creation and voting on cards.

Home Page: https://crowdcontrol.network/

Go 88.68% Shell 8.72% Python 2.16% Dockerfile 0.27% Makefile 0.16%

cardchain's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cardchain's Issues

Voting Epoch time based

currently the voting epochs depend on blocks, which works for now, but we should change this to once a week based on timestamp rather than block height, so that the varying block times do not make a difference here

necessary things for the incentivized testnet

this is a list, where we add things that should be taken care of before the incentivized testnet starts (constantly update):

AddVoteRightToAllUsers remove this on acc creation
add voteRight after match
fees

Add description and website to account

Enable the user to add a description and a website link to the users profile.

This can easily be added afterwards and be modified by getters and setters.

Errors from cardobject are not chained through the API

If the cardobject rejects a card, then there is only this info in the tx:

"codespace": "undefined",
"code": 1,
"data": "",
"raw_log": "internal",

which does not really help

A reason why this is not showing the error message from the cardobject might be, that the error is not properly registered:
Register Error https://docs.cosmos.network/master/building-modules/errors.html

We should check if this behavior changes if we properly register the error

create representation for cards

the object representing cards needs:

serialized_contend - this is everything which is never changed after the card is permanent
owner - whoever owns the copyright of the card
nerf_level - whatever nerf_level applies because of votes given on the card
votes - an array with all relevant votes given for this card
credit_pool - a pool of credits incentivizing votes on the card
status - is the card permanent, in draft / ready for council, awaiting rework, or on trial?

create representation for users

users have:

card_instances - an array with all instances of specific cards
credits - how many credits does this player have?
stake - how many stake has the user?
owned_cards - author of which cards?

Split Owner of Card and Artist into separate sdk.addresses

Currently a card has only owner. The owner can upload an image and card content etc.
In the future we want a dedicated artist on the card. The card owner can set this artist, the artist can upload card image. The artist can only change the image as long as the card is not in permanent state. The same applies for changing the artist. When the owner changes the artist, the image is removed.

Card change hashing

put a hash onto a card that allows to check, if the image has changed

a hash method should be proposed to the game client guys and if it fits then we implement it

Booster Pack as transferable item

It makes sense to have booster packs as transferable items, so you can theoretically buy a pack, transfer it to someone and he/she opens it. You can also store a booster pack then over a long time and open it later or use it as a reward in a tournament etc.

enable fees

fees are currently disabled, but for the incentivized testnet we want this

built-in Airdrops

automated airdrops for:

user creates account
user plays a game
user votes on a card
user creates a card draft
user buys a booster pack

we should also indicate on an account who many airdrops an account claimed, so we can use the testnet data for the mainnet later and can have a pre-mainnet airdrop

Add chain-params

Some Values used in the chain should be made chain-params:

  • votingRightsExpirationTime
  • collectionSize

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.