Giter Club home page Giter Club logo

golden-ananas-contract's Introduction

Golden ananas contract

This repository contains a set of Ethereum smart contract use to build a game in Decentraland metaverse. Game source is there: https://github.com/julesGoullee/golden-ananas

Contracts follow OpenZeppelin implementations for: ERC20, ERC721, role-based permissioning scheme.

Contract architecture:

Designed to be modular and reduce risk by separate logic and data at the expense of transaction cost.

  • GoldenAnanasScore: Save for every player progression and score for each level.
  • GoldenAnanasRank: Using GoldenAnanasScore data, maintain a leaderboard of the best player globally, and by level.
  • TrophyToken: ERC721, mint when a player finished for the first time one level.
  • GoldenAnanas: Public and unique entry edpoint, orchestrate all the previously described contracts, no data store. Admin is allowed to withdraw ERC20 token.
Deployment addresses:
  • Dev:

    • GoldenAnanasScore: 0xFD7b28e4ff19a052A0728DC9D7Cb4f8837CFaD04
    • GoldenAnanasRank: 0x750f39ABaaadA1E8d5cf6606c300aAeb5094857C
    • TrophyToken: 0x9aEAC5B72b511e9C746D912Bf2143F7BadfE58ee
    • GoldenAnanas: 0x407De3b78F391a75fC4F5b709E5C7aFB71174e9E
    • manaToken: 0x407De3b78F391a75fC4F5b709E5C7aFB71174e9E
  • Ropsten:

    • GoldenAnanasScore: 0x3EC2dAF32773EE07A9A6B48F507F42b7bf6160D5
    • GoldenAnanasRank: 0x224210abbE87993Ae0F3d47E5e4Ca2C61e497611
    • TrophyToken: 0x74550B5817CD3be52914f0C1A40b5784D2827844
    • GoldenAnanas: 0xb0f0FE0A407E055Dc0d6C0d66421501975739dEc
    • manaToken: 0xCEAdf25c74608e8945e44EDb025b7f1F40609787 (fake), 0x2a8Fd99c19271F4F04B1B7b9c4f7cF264b626eDB (from decentraland)

golden-ananas-contract's People

Contributors

julesgoullee avatar

Watchers

James Cloos avatar  avatar  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.