nos / api-functions Goto Github PK
View Code? Open in Web Editor NEWnOS API bindings and typings
Home Page: https://www.npmjs.com/package/@nosplatform/api-functions
License: MIT License
nOS API bindings and typings
Home Page: https://www.npmjs.com/package/@nosplatform/api-functions
License: MIT License
The method testInvoke
should resolve the Promise what the Smart Contract (SC) returns.
Code which calls this method:
const bookmarks = await this.props.nos.testInvoke('0xe973b31b5d8cf928916f2a30a4611b2bed31af7e', 'GetBookmarks', [address])
The address
is the CoZ wallet address (AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y
).
[DApp] Error: Invocation failed for operation "GetBookmarks" on "0xe973b31b5d8cf928916f2a30a4611b2bed31af7e"
We tried multiple encodings for the arguments passed to testInvoke
(no result):
# Code example from Discord (@DrPpr)
const addressToScriptHash = (address) => unhexlify(u.reverseHex(wallet.getScriptHashFromAddress(address)))
# Code example from dapp-neoblog
str2hexstring(address)
Details: https://github.com/Cryptopians/nos-bookmark-dapp/blob/master/README.md#setup
Smart contract: https://github.com/Cryptopians/nos-bookmark-dapp/blob/master/contracts/nos_bookmark.py
JavaScript: https://github.com/Cryptopians/nos-bookmark-dapp/blob/master/src/containers/Bookmarks.js#L25
We also tried to remove/uncomment the CheckWitness
in the smart contract.
neo-python
works as expected🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
Removing the lib folder without losing the ability to use the library
The lib folder pollutes the repo and PR requests with generated code
?? Refer to NeonJS?
Greenkeeper needs a CI and tests to work
There is no CI, there are no tests 🤷♂️
Add jest, babel-jest, codecov, ... and a travis ci setup
This fixes #2
Rollup is the best bundler for NPM packages and should be used instead of vanilla Babel.
Typescript is a nice addition that can be quickly integrated at this point.
Use rollup, typescript and rollup-plugin-typescript
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | codecov |
|
npm | tslint |
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
prop-types
, @types/prop-types
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@types/enzyme
, enzyme
, enzyme-adapter-react-16
, enzyme-to-json
)@types/react
, react
, react-dom
)@types/jest
, jest
, ts-jest
)@types/react
, react
, react-dom
).circleci/config.yml
package.json
@types/prop-types 15.7.1
prop-types 15.7.2
@types/enzyme 3.10.3
@types/jest 24.0.18
@types/react 16.9.2
codecov 3.5.0
enzyme 3.10.0
enzyme-adapter-react-16 1.14.0
enzyme-to-json 3.4.0
jest 24.9.0
prettier 1.18.2
react 16.9.0
react-dom 16.9.0
rimraf 3.0.0
ts-jest 24.0.2
tslint 5.18.0
tslint-config-prettier 1.18.0
tslint-plugin-prettier 2.0.1
typescript 3.5.3
/
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.