GithubHelp home page GithubHelp logo

game-x-coin / gxc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eosio/eos

8.0 8.0 0.0 116.65 MB

A blockchain well-integrated into games

Home Page: https://www.gamexcoin.io

License: MIT License

CMake 0.76% Shell 1.55% C++ 47.81% C 0.21% WebAssembly 45.98% Objective-C 0.01% Python 3.31% Makefile 0.01% JavaScript 0.14% Dockerfile 0.24%

gxc's People

Contributors

arhag avatar asiniscalchi avatar b1bart avatar brianjohnson5972 avatar bytemaster avatar cj-oci avatar conr2d avatar dskvr avatar elmato avatar heifner avatar jgiszczak avatar johndebord avatar kesar avatar kj4ezj avatar larryk85 avatar mitza-oci avatar moskvanaft avatar nathanielhourt avatar norsegaud avatar pacificcode avatar paulcalabrese avatar pmesnier avatar scottarnette avatar sergmetelin avatar spoonincode avatar taokayan avatar tbfleming avatar thomasbcox avatar wanderingbort avatar zorba80 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gxc's Issues

[testnet] withdrawal is not called automatically.

Test team call many withdraw request but 9/10 withdrawal request(delayed transaction) is not called.

You can find this issues by checking testuserxxxx(1~5) of Q@catfight, W@catfight, E@catfight, R@catfight.

some examples are

testuser1341 (R@catfight, E@catfight)
testuser3251 (R@catfight, W@catfight)
testuser4135 (E@catfight, R@catfight)
testuser3415 (R@catfight, W@catfight)

Currency balance is not displayed while withdrawing

gxcli get currency balance gxc.token user game --verbose-balance

[{
    "total": "1123.1111 LUCI@game",
    "balance": "0.0000 LUCI@game",
    "deposit": "37.0000 LUCI@game",
    "withdraw": {
      "quantity": "1086.1111 LUCI@game",
      "scheduled_time": "2019-02-15T08:55:10"
    },
    "options": {
      "frozen": false,
      "whitelist": false
    }
  }
]

In verbose-balance mode, when withdraw all token and in progress

gxcli push action gxc.token withdraw '["user", "37.0000 LUCI@game"]' -p user

gxcli get currency balance gxc.token user game --verbose-balance

Expected Ouput

[{
    "total": "1123.1111 LUCI@game",
    "balance": "0.0000 LUCI@game",
    "deposit": "0.0000 LUCI@game",
    "withdraw": {
      "quantity": "1123.1111 LUCI@game",
      "scheduled_time": "2019-02-15T08:55:10"
    },
    "options": {
      "frozen": false,
      "whitelist": false
    }
  }
]

Actual output

[]

It looks like currency balance skipped when balance and deposit are zero, but withdrawing value should be included.

Withdrawing balance can be considered when issuer transfer balance to gxc.null

When user try to withdraw more than cached balance, issuer should have a permission of revert overdrwan balance and take it.

In current progress, issuer should carry out two actions - deposit overdrawn balance and transfer it to gxc.null. It looks like can be saved if issuer is able to transfer withdrawing balance when not enough balance in deposit.

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.