gnolang / gno-js-client Goto Github PK
View Code? Open in Web Editor NEWGnoland JS / TS Client (SDK)
Home Page: https://gno.land/
License: Apache License 2.0
Gnoland JS / TS Client (SDK)
Home Page: https://gno.land/
License: Apache License 2.0
There would be a lot of interesting experimentations (leading to many use cases) if that was the case,
but for now I can only use this locally.
That lib is sooo where web3 is. It needs some endpoints!
The documentation link in the README of the NPM package points to
https://onbloc.gitbook.io/gnoland-developer-portal/docs/gno-js-client
which redirects to
https://docs.gno.land/docs/gno-js-client (404)
It should be https://docs.gno.land/reference/gno-js-client as in the README of this repository, should be solved automatically with the next package publish
In the documentation, the Provider methods (getRenderOutput
, getFunctionSignatures
, evaluateExpression
, getFileContent
) all take an optional height
param.
There are 2 problems with it:
If omitted, the latest height is used (optional, default 0)
So is it the latest height or 0 ??
currently, evaluateExpression
throws a "constant" error here if the query failed, where the gnokey
cli returns the actual go error
this is a pain for dev where you have to run a modified client or the cli to know the actual error message
Add the ability to load modules that provide type-safe methods (arguments and return types) corresponding to exposed contract methods to interact with contracts in a type-safe and controlled manner while enjoying dev perks such as coe-completion type lookups etc.
Please expose the original ABCIResponse
from GnoJSONRPCProvider.evaluateExpression as it's quite useful to have a uniform response type in logic that allow both running tx calls and eval commands.
To enhance interoperability and simplify the development of dApps on the Gno.land, I propose the creation of a common TypeScript interface. This interface will standardize the methods, properties and responses required to interact with the Gno.land, ensuring that different implementations can be easily integrated and maintained.
This proposal is similar to what viem and abitype offers to Ethereum. The ultimate goal is to create a toolbox of Typescript like wevm
The common interface will define the essential methods and properties that any Gno.land blockchain client should implement.
To facilitate detailed discussion, I propose creating an issue for each method as outlined below:
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.