Solidity smart contract library for building dApps connected to the XY Oracle Network
Clone or download
Carter Harrison
Carter Harrison package version
Latest commit fb68017 May 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist gamma sale May 24, 2018
examples 0.2.4 Apr 30, 2018
gulp Properly Builds May 19, 2018
migrations Updated XYUncalibrated Apr 13, 2018
src gamma sale May 24, 2018
test Updated XYUncalibrated Apr 13, 2018
.DS_Store gamma sale May 24, 2018
.babelrc WebPack version Apr 28, 2018
.eslintignore 0.2.4 Apr 30, 2018
.eslintrc WebPack version Apr 28, 2018
.gitignore Published w/contracts Mar 11, 2018
.solhint.json Added Ability to Block Wallets and added Eligibility address Mar 11, 2018
README.md Update README.md Apr 13, 2018
gulpfile.js Properly Builds May 19, 2018
package-lock.json gamma sale May 24, 2018
package.json package version May 24, 2018
truffle.js Variable Math Complete Mar 19, 2018
webpack.config.js 0.2.4 Apr 30, 2018

README.md

XY Oracle Network Smart Contract API

Library toolkit for developing dApps connected to the XY Oracle Network. Users can subscribe to webhooks for event listeners from the XY contract using https://ethercast.io/.

Requirements

Installing Ganache as a local, Ethereum blockchain node:

  • Make sure you have Node.js installed, then run npm install -g ganache-cli
  • Then, run ganache-cli. It will start a local Ethereum simulation on port 8545.

Now that you have Ganache, you can clone the xyo-solidity repo and deploy the XY core smart contract to the local node as follows:

  • Install truffle with npm i truffle -g
  • Clone the xyo-solidity repo git clone https://github.com/XYOracleNetwork/xyo-solidity
  • While ganache is running, compile and deploy the contract: truffle compile && truffle migrate
  • You should see the following in your command line:

Truffle Migrate

You can also run the simple unit tests over the XY.sol file with truffle test

Project Structure

All of the Ethereum smart contracts used are under contracts/, and the compiled JSON artifacts are under dist/contracts/.

Unit tests can be found at test/, and example smart contracts that communicate with the XY contract are under examples/.

The migration scripts are under migrations/.

The gulp files are under gulp/.

Milestones

Done

  • Basic interface for sending location queries and receiving answers
  • Multiple types of location query

Planned

  • Verify answers provided by Diviners

Authors

See the list of contributors who participated in this project.

License

TODO