Giter VIP home page Giter VIP logo

eos-jvm's People

Contributors

akurdyukov avatar rvit34 avatar samkirton avatar vladmelnyk avatar zdgeier 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eos-jvm's Issues

Implementing push, same as `cleos push action`

Hello
I'm currenlty following the EOS tutorial, and trying to send event from android application same as cleos push action ... . I just looked on eos-chain-action, but couldn't found detail implementation about this.

Could you give me a guide about this? Or I'm also looking on eosreach project, so it is okay to let me know the file name that includes push handling if it has been implemented here.

Thanks.

Preprocessor.java

annoations in 48
public boolean process(Set<? extends TypeElement> annotations should be or not?
P.S. i don't know how this mistape affect the app or preprocessor's work

CollectionCompress doesn't work

Code sample:

@Abi
public class MyArgs {
    private List<Argument> arguments;

    public MyArgs(List<Argument> arguments) {
        this.arguments = arguments;
    }

    @CollectionCompress
    public List<Argument> getArgument() {
        return arguments;
    }
}

@Abi
public class Argument {
    private String data;

    @NameCompress
    public String getData() {
        return data;
    }
}

String hex = abiBinaryGenTransferWriter
				.squishMyArgs(args)
				.toHex();

If I pass that hex data to abi_bin_to_json I get json with empty list of arguments.

Transfer memo gets cut off with Cyrillic letters

I'm not sure why, but transfer memo gets cut off when cyrillic letters are present.
String in memory doesn't get cut off, so it's probably something to do with DefaultByteWriter's method fun putString(value: String).

Here are examples of incorrect transactions:

expected: тест
actual: те
trx link

expected: тестируем testing 1234567890
actual: тестируем testing 1
trx link

How to verify signdata?

val bytesToSign = ByteArray()
val privateKey = EosPrivateKey()
val signature: String = PrivateKeySigning().sign(bytesToSign, privateKey)

// how to verify signature using public key?

Crashing without internet connection

My app crashes when there is no internet connection using your library.

I can see that the problem is somewhere in rxjava and not exactly your code but I can't seem to catch this exception.

Any suggestions?

 Process: [process_name], PID: 10522
    io.reactivex.exceptions.CompositeException: 2 exceptions occurred. 
        at io.reactivex.internal.observers.ConsumerSingleObserver.onError(ConsumerSingleObserver.java:47)
        at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.onError(SingleSubscribeOn.java:73)
        at io.reactivex.internal.operators.observable.ObservableSingleSingle$SingleElementObserver.onError(ObservableSingleSingle.java:95)
        at com.jakewharton.retrofit2.adapter.rxjava2.CallObservable.subscribeActual(CallObservable.java:55)
        at io.reactivex.Observable.subscribe(Observable.java:10151)
        at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35)
        at io.reactivex.Single.subscribe(Single.java:2517)
        at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
        at io.reactivex.Scheduler$1.run(Scheduler.java:131)
        at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:59)
        at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:51)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
        at java.lang.Thread.run(Thread.java:818)
      ComposedException 1 :
    	java.net.ConnectException: Failed to connect to /[our_node_host:port]
        at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:248)
        at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:166)
        at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)
        at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
        at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
        at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:212)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254)
        at okhttp3.RealCall.execute(RealCall.java:92)
        at retrofit2.OkHttpCall.execute(OkHttpCall.java:186)
        at com.jakewharton.retrofit2.adapter.rxjava2.CallObservable.subscribeActual(CallObservable.java:41)
        at io.reactivex.Observable.subscribe(Observable.java:10151)
        at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35)
        at io.reactivex.Single.subscribe(Single.java:2517)
    		at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:

Can't find source of AbiBinaryGenTransactionWriter

I tend to convert transaction object into buffer as eosjs did:
`rawTx.context_free_actions = arg.context_free_actions;
rawTx.actions = arg.actions;
rawTx.transaction_extensions = arg.transaction_extensions;

        // Resolve shorthand
        txObject = Transaction.fromObject(rawTx);
        // console.log('txObject', txObject)

        buf = Fcbuffer.toBuffer(Transaction, txObject);`

Before impl by my self I found your project, there's a missing class that I assume it contains the logical I need.

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.