fibosio / fibos.js Goto Github PK
View Code? Open in Web Editor NEWGeneral purpose library for FIBOS and EOSIO blockchains.
License: MIT License
General purpose library for FIBOS and EOSIO blockchains.
License: MIT License
client.transaction(tr => {
tr.buyrambytes({
payer: foaccount,
receiver: receiver,
bytes: ramnum
})
}).then((result) => {
console.info(result);
req.response.write(JSON.stringify(result));
}).catch((err) => {
// console.log(err);
});
这段代码会导致http请求自动挂断。
还没等then里面req.response.write执行
浏览器端http请求已经挂断了。
curl -s https://fibos.io/download/installer.sh |sh
fibos --version
fibos: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
env:
version centos7
最小用例:
it('destroy asset missing contract suffix', () => {
let ctx = fibos.contractSync("eosio.token");
assert.throws(() => {
let r = ctx.exdestroySync(`0.0000 FO`, {
authorization: "fibos"
});
});
})
此处,缺少了contract
。正确参数应为0.0000 FO@eosio
,但是 fibos.js 未能抛出类型不匹配的错误,导致 catch 不到。
ubuntu-18.04
fibos: error while loading shared libraries: libicuuc.so.55: cannot open shared object file: No such file or directory
Hi !
How to Support Exchange Deposit?
/home/src/fibos/node_modules/@noble/curves/secp256k1.js:8:26
const weierstrass_js_1 = require("./abstract/weierstrass.js");
^
Error: /home/src/fibos/node_modules/@noble/curves/abstract/weierstrass.js:920:62
const R = Point.BASE.multiplyAndAddUnsafe(P, u1, u2)?.toAffine(); // R = u1⋅G + u2⋅P
^
SyntaxError: Unexpected token .
at /home/src/fibos/node_modules/@noble/curves/secp256k1.js:8:26
at /home/src/fibos/node_modules/ethereum-cryptography/secp256k1.js:4:19
at /home/src/fibos/node_modules/@ethereumjs/util/dist/constants.js:5:21
at /home/src/fibos/node_modules/@ethereumjs/util/dist/index.js:21:14
at /home/src/fibos/node_modules/web3-utils/lib/utils.js:25:22
at /home/src/fibos/node_modules/web3-utils/lib/index.js:24:13
at /home/src/fibos/node_modules/web3-eth-abi/lib/index.js:24:13
at /home/src/fibos/node_modules/fibos.js/lib/patch_api.js:1:85
at /home/src/fibos/node_modules/fibos.js/lib/index.js:5:11
at /home/src/fibos/claim.js:1:88
at /home/src/fibos/node_modules/@noble/curves/secp256k1.js:8:26
at /home/src/fibos/node_modules/ethereum-cryptography/secp256k1.js:4:19
at /home/src/fibos/node_modules/@ethereumjs/util/dist/constants.js:5:21
at /home/src/fibos/node_modules/@ethereumjs/util/dist/index.js:21:14
at /home/src/fibos/node_modules/web3-utils/lib/utils.js:25:22
at /home/src/fibos/node_modules/web3-utils/lib/index.js:24:13
at /home/src/fibos/node_modules/web3-eth-abi/lib/index.js:24:13
at /home/src/fibos/node_modules/fibos.js/lib/patch_api.js:1:85
at /home/src/fibos/node_modules/fibos.js/lib/index.js:5:11
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.