futureversecom / trn-js-api Goto Github PK
View Code? Open in Web Editor NEWThe Root Network JS/TS API library for browsers and Node environments
License: Apache License 2.0
The Root Network JS/TS API library for browsers and Node environments
License: Apache License 2.0
As per the conversation here https://futureverse.slack.com/archives/C04CSC7SGD8/p1718577232284409?thread_ts=1718346059.147479&cid=C04CSC7SGD8
client.js:1 Error: Wrap::Cannot convert 3.1204634625585274e+21 to a BigInt
at eval (index.js:1:1806)
at eval (index.js:1:4892)
at Generator.throw (<anonymous>)
at s (index.js:1:875)Caused by: SyntaxError: Cannot convert 3.1204634625585274e+21 to a BigInt (at index.js:1:10158)
at BigInt (<anonymous>)
at eval (index.js:1:10158)
at Generator.next (<anonymous>)
at a (index.js:1:836)
That "describe" the extrinsic that about to be sent
Things to describe
At the moment the getPublicProvider
function only returns archive nodes, which can be a lot slower than full nodes. It would be nice to pass an option to this function to get the full nodes back instead.
Currently, if call wrapped around Futurepass failed, it's a silent one. The error details is tucked inside the proxy.ProxyExecuted
which is easy to miss.
We should look at adding option to fail the extrinsic when that happen just like when any other failed extrinsic https://github.com/futureversecom/trn-js-api/blob/main/packages/extrinsic/src/libs/send.ts#L36
It needs to be optional flag to avoid breaking changes downstream, as they might have had their own error catching logic.
The proposed location is a 3rd parameter to the send
function
export async function send(
extrinsicOrResult: Extrinsic | Result<Extrinsic, Error>,
onProgress?: ProgressCallback,
options: { failedIfProxyError: boolean } = { failedIfProxyError: false }
)
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.