cityofzion / dora-sdk-ts Goto Github PK
View Code? Open in Web Editor NEWa typescript sdk for dora
License: Apache License 2.0
a typescript sdk for dora
License: Apache License 2.0
This implements the committee method in the sdk: dora.coz.io/api/v1/neo3/mainnet/committee
This feature will implement an optional referrer field to all requests. The value will default when not populated.
This enhancement implements the address_txfull endpoint.
this commit needs to be updated because the endpoint is no longer /nfi
but /token_provenance
This issue incorporates the voter endpoint: dora.coz.io/api/v1/neo3/mainnet/voter/{address}
example:
curl -v 'https://dora.coz.io/api/v1/neo3/testnet/balance/NXx9xwpH5tmAjsqbTyfZqFnQd74ME2eat5'
answer:
...
< HTTP/2 500
...
'NoneType' object has no attribute 'keys'
@hal0x2328 made a websocket service on Dora that is very useful: It simply send a single message with transaction information right when it gots it and then it closes the websocket connection.
This is very useful because after a invokefunction is important to be sure if the transaction was successful and which information was sent via notification by the smart contract, so, you could do something like this:
const resp = await walletConnectCtx.invokeFunction(scripthash, method, params)
const transaction = await dora.waitForTransaction(resp.result) // new method to open, listen and close a websocket
const notifications = transaction.filterNotifications(scripthash, eventname) // new method to make it easier to get a notification
I believe the endpoint of the Websocket is:
wss://dora.coz.io/ws/v1/neo3/testnet/log/<transaction_id>
I would be happy to implement this issue, but probably there is a lot of decisions to be made regarding the responses of those methods
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.