kulapio / libra-core Goto Github PK
View Code? Open in Web Editor NEWA javascript client for libra, works on browser and node
Home Page: https://www.npmjs.com/package/kulap-libra
A javascript client for libra, works on browser and node
Home Page: https://www.npmjs.com/package/kulap-libra
Unable to get transactions by range similar to
txn_range | tr — Get the committed transaction by range
Hello !
When doing the example, I get the following error :
/var/www/html/libra_jwt/node_modules/kulap-libra/build/client/Decoder.js:47
const signedTransaction = signedTransactionWP.getSignedTransaction();
^
TypeError: Cannot read property 'getSignedTransaction' of undefined
at ClientDecoder.decodeSignedTransactionWithProof (/var/www/html/libra_jwt/node_modules/kulap-libra/build/client/Decoder.js:47:55)
at responseTask (/var/www/html/libra_jwt/node_modules/kulap-libra/build/client/index.js:127:38)
at Object.onReceiveStatus (/var/www/html/libra_jwt/node_modules/grpc/src/client_interceptors.js:1207:9)
at InterceptingListener._callNext (/var/www/html/libra_jwt/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/var/www/html/libra_jwt/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/var/www/html/libra_jwt/node_modules/grpc/src/client_interceptors.js:845:24)
[nodemon] app crashed - waiting for file changes before starting...
can you verify it?
Thanks !
This library is not working with react-native 0.59
Can you provide a polyfill for react-native?
Next release should have release logs on release tab on Github.
transferCoins is broken again. The result shows the following error:
LibraTransactionResponse {
signedTransaction: LibraSignedTransaction {
transaction: LibraTransaction {
program: [Object],
gasContraint: [Object],
expirationTime: [BigNumber],
sendersAddress: [AccountAddress],
sequenceNumber: [BigNumber]
},
publicKey: Uint8Array [
126, 142, 165, 73, 194, 136, 153, 77,
213, 61, 211, 220, 2, 180, 195, 48,
128, 186, 113, 104, 203, 53, 60, 113,
224, 54, 74, 205, 207, 172, 13, 60
],
signature: Uint8Array [
52, 197, 179, 236, 142, 5, 10, 23, 179, 135, 58,
132, 85, 225, 203, 155, 158, 211, 37, 180, 36, 148,
176, 27, 29, 35, 74, 68, 239, 57, 78, 51, 94,
211, 86, 119, 146, 62, 195, 39, 168, 161, 46, 83,
205, 146, 67, 37, 9, 97, 243, 229, 13, 49, 27,
81, 8, 251, 190, 24, 60, 213, 197, 14
]
},
validatorId: Uint8Array [],
acStatus: -1,
mempoolStatus: -1,
vmStatus: LibraVMStatusError {
errorType: 1,
validationStatusError: { code: 11, message: 'none' },
verificationStatusErrors: undefined,
invariantViolationError: undefined,
deserializationError: undefined,
executionError: undefined
}
}
In ReactJs application running in a browser client LibraNetwork.Testnet is not working whereas ac-libra-testnet.kulpa.io is working.
Why is LibraNetwork.Testnet not working?
Hello!
First of all, thank you for your libra-core package. It is really helpful for my project.
To talk about my project, I am building a flea market website and using your package to transfer libra coin.
I want let the user to have an experience of using Libra. Also, I will release my project as an open source.
My project is almost done, and I want to release it. However, the package is not support the current version of Libra blockchain.
I understand you have tight schedule, but I just want to know when will you finish to fix the libra updated problem.
When will you finish updating?
Thank you so much in advance.
console.log test/client.test.ts:35
Account 1 address 4ab38e4fc265511766b075f3d03aa1acf91b9fe3bc48c77381d4b1beed2204e3
● LibraClient › should get accountState correctly
13 INTERNAL: Failed to parse server response
at Object.<anonymous>.exports.createStatusError (node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (node_modules/grpc/src/client_interceptors.js:1204:28)
at InterceptingListener.Object.<anonymous>.InterceptingListener._callNext (node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.Object.<anonymous>.InterceptingListener.onReceiveStatus (node_modules/grpc/src/client_interceptors.js:618:8)
at callback (node_modules/grpc/src/client_interceptors.js:845:24)
● LibraClient › should query account state and transfer
13 INTERNAL: Failed to parse server response
at Object.<anonymous>.exports.createStatusError (node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (node_modules/grpc/src/client_interceptors.js:1204:28)
at InterceptingListener.Object.<anonymous>.InterceptingListener._callNext (node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.Object.<anonymous>.InterceptingListener.onReceiveStatus (node_modules/grpc/src/client_interceptors.js:618:8)
at callback (node_modules/grpc/src/client_interceptors.js:845:24)
● LibraClient › should rotatekey and transfer correctly
13 INTERNAL: Failed to parse server response
at Object.<anonymous>.exports.createStatusError (node_modules/grpc/src/common.js:91:15)
at Object.onReceiveStatus (node_modules/grpc/src/client_interceptors.js:1204:28)
at InterceptingListener.Object.<anonymous>.InterceptingListener._callNext (node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.Object.<anonymous>.InterceptingListener.onReceiveStatus (node_modules/grpc/src/client_interceptors.js:618:8)
at callback (node_modules/grpc/src/client_interceptors.js:845:24)
Test Suites: 1 failed, 2 passed, 3 total
Tests: 3 failed, 14 passed, 17 total
Snapshots: 0 total
Time: 10.799s
I saw this repo was updated three weeks ago and such a function client.getAccountTransaction
is not worked properly with latest libra testnet.
And how about the planned update timeline for this repo (1 weeks or 2 weeks)?
Helo !
When sending a transaction, I get the following error.
validationStatusError: { code: 11, message: 'none' },
Yesterday it was working correctly.
Thanks !
Transaction.proto has been changed and RawTransaction is removed. Transfer needs to be rewritten.
I am trying to use this library in an Angular project and I am getting this error
ERROR in ./node_modules/grpc/node_modules/detect-libc/lib/detect-libc.js
Module not found: Error: Can't resolve 'child_process' in '../node_modules/grpc/node_modules/detect-libc/lib'
I am using
Node: 12.4.0
OS: darwin x64
Angular: 8.1.3
Any help on this issue?
Ahmad
https://github.com/kulapio/libra-service/issues Hi, This API seems does not work now.
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.