GithubHelp home page GithubHelp logo

eosspark / geos Goto Github PK

View Code? Open in Web Editor NEW
66.0 13.0 15.0 44.54 MB

golang implementation of the EOS protocol

License: MIT License

Go 50.09% Shell 0.01% WebAssembly 41.74% JavaScript 0.14% Makefile 0.01% C++ 8.00% Python 0.01% Rust 0.03%
eos eosio blockchain geos

geos's People

Contributors

beyondev avatar crazybits avatar fortyfourz avatar orientlu avatar sparkpain avatar walker1992 avatar xiaoyu1998 avatar xyh393 avatar

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

geos's Issues

How to compile it?

I tried to compile eos-go, but have too many errors.
May you make some guide for doing it?

GetTableRows failed!

I have one table:
root@gytan-VirtualBox:~# cleos get table pegzone pegzone transferinfo
{
"rows": [{
"id": 0,
"from": "user",
"to": "pegzone",
"quantity": "1.0000 SYS",
"memo": "xxxxx"
},{
"id": 1,
"from": "pegzone",
"to": "user",
"quantity": "1.0000 SYS",
"memo": "xxx"
},{
"id": 2,
"from": "user",
"to": "pegzone",
"quantity": "1.0000 SYS",
"memo": "cccc"
},{
"id": 3,
"from": "user",
"to": "pegzone",
"quantity": "1.0000 SYS",
"memo": "AAAA"
},{
"id": 4,
"from": "user",
"to": "pegzone",
"quantity": "1.0000 SYS",
"memo": "AAAA"
},{
"id": 5,
"from": "user",
"to": "pegzone",
"quantity": "1.0000 SYS",
"memo": "AAAA"
}
],
"more": false
}

I get data by the following way:

//
type eostransfer struct {
id uint64 json:"id"
from eos.AccountName json:"from"
to eos.AccountName json:"to"
quantity eos.Asset json:"quantity"
memo string json:"memo"
}

//
eos_api := eos.New("http://127.0.0.1:8888")
eos_info, _ := eos_api.GetInfo() // successful

//
gettable_request := eos.GetTableRowsRequest {
Code: "pegzone",
Scope: "pegzone",
Table: "transferinfo",
LowerBound: strconv.FormatInt(0, 10),
}

//
gettable_response, eos_err := eos_api.GetTableRows(gettable_request)
if eos_err != nil {
panic("eos get table failed")
}

//
var transfers []*eostransfer
err_json := gettable_response.BinaryToStructs(&transfers)
if err_json != nil {
panic("eos get table failed")
}

//
c.logger.Info("query chain table", "total", len(transfers)) // 6

for i, tran := range transfers {
c.logger.Info("eos transfer", "id", tran.id)
c.logger.Info("eos transfer", "from", tran.from)
c.logger.Info("eos transfer", "to", tran.to)
c.logger.Info("eos transfer", "quantity", tran.quantity.String())
c.logger.Info("eos transfer", "memo", tran.memo)
}
// id = 0, from & to & memo is empty

what's going wrong?

failed to get the dependencies

[INFO]  --> Fetching github.com/pmezard/go-difflib
[ERROR] Error scanning github.com/eosspark/eos-go/btcsuite/btcd/btcec: cannot find package "." in:
        /data/go/src/github.com/eosspark/eos-go/btcsuite/btcd/btcec
[ERROR] Error scanning github.com/eosspark/eos-go/btcsuite/btcutil: cannot find package "." in:
        /data/go/src/github.com/eosspark/eos-go/btcsuite/btcutil
[ERROR] Error scanning github.com/eosspark/eos-go/btcsuite/btcutil/base58: cannot find package "." in:
        /data/go/src/github.com/eosspark/eos-go/btcsuite/btcutil/base58
[ERROR] Failed to retrieve a list of test dependencies: Error resolving imports

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.