https://github.com/devalpha18/xyo-solidity
Solidity smart contract library for building dApps connected to the XY Oracle Network
https://github.com/devalpha18/xyo-solidity
Last synced: 10 months ago
JSON representation
Solidity smart contract library for building dApps connected to the XY Oracle Network
- Host: GitHub
- URL: https://github.com/devalpha18/xyo-solidity
- Owner: devalpha18
- Created: 2023-01-03T09:36:42.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:10:24.000Z (about 3 years ago)
- Last Synced: 2025-02-03T11:51:12.094Z (12 months ago)
- Language: Solidity
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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://if-eth.com.
## 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:

You can also run the simple unit tests over the XY.sol file with `truffle test`
## License
The xyo-node library (i.e. all code outside of the `cmd` directory) is licensed under the
[GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html), also
included in our repository in the `COPYING.LESSER` file.
The xyo-node binaries (i.e. all code inside of the `cmd` directory) is licensed under the
[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html), also included
in our repository in the `COPYING` file.