GithubHelp home page GithubHelp logo

fomo3d-contract's Introduction

fomo3D

生成单文件合约

npx waffle flatten

编译合约

yarn build

测试用例

yarn test

新合约地址

  • 0xe7c5F699d528716F4809029a4b518BEd6030BE21

个人账户查询

function Infos2(address addr) public view returns(uint withd,uint spend,uint spend_s,uint numKey,uint numKey_s,uint utc)
  • withd 提现的金额
  • spend 本轮花费的金额
  • spend_s 所有轮的花费金额汇总
  • numKey 本轮Key的数量
  • numKey_s 所有轮的Key数量汇总
  • utc 上次出块时间(无法得到当前准确时间)

可提现金额

function balanceOf(address addr) public view returns(uint)

全局游戏查询

function rounds() public view returns(uint totalKeysSold,uint totalKeysSold_s,uint totalHAH,uint totalHAH_s) 
  • totalKeysSold: 本轮卖出的Key数量
  • totalKeysSold_s:所有轮卖出的Key数量合计
  • totalHAH: 本轮购买Key花费的金额
  • totalHAH_s: 所有轮购买Key花费金额合计

提现操作

function withdrawal(uint v)

推广信息

function Inviter(address addr) public view returns(uint Amount,uint Number)
  • Amount: 推广的盈利金额
  • Number: 推广的数量

当前轮指定地址的购买Keys收益

function expectIncome(address addr) public view returns (uint) 
  • addr: 指定地址
  • 返回值:收益大小

fomo3d-contract's People

Contributors

shangqd avatar

Watchers

 avatar M1n 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.