memtrip / eos-jvm Goto Github PK
View Code? Open in Web Editor NEWEOS libraries for the JVM, designed primarily for Android development.
Home Page: http://www.memtrip.com
License: Apache License 2.0
EOS libraries for the JVM, designed primarily for Android development.
Home Page: http://www.memtrip.com
License: Apache License 2.0
there is a leaked private key!
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.
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
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.
/v1/send_transaction should be added to eventually deprecate the legacy /v1/push_transaction.
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
val bytesToSign = ByteArray()
val privateKey = EosPrivateKey()
val signature: String = PrivateKeySigning().sign(bytesToSign, privateKey)
// how to verify signature using public key?
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.