0.0.4 • Published 2 years ago
@georacle/contracts v0.0.4
Georacle Smart Contracts
Installation
# via Yarn
$ yarn add @georacle/contracts
# via npm
$ npm install @georacle/contracts --save
Directory Structure
@georacle/contracts
├── examples
│ ├── Area.sol
│ ├── BBox.sol
│ ├── Proximity.sol
│ ├── Info.sol
│ ├── Geocode.sol
│ ├── ReverseGeocode.sol
│ └── Geometry.sol
└── src
├── v0.7
└── v0.8
Usage
The solidity smart contracts can be imported via the src
directory of @georacle/contracts
import '@georacle/contracts/src/v0.8/.sol';
Local Development
Use the Hardhat enviroment to interact with Georacle locally
- Clone this repo
$ git clone https://github.com/georacleapi/georacle.git && cd georacle
- Populate the environment file
# Add your API keys
$ mv .env.example .env
- Deploy examples
The test scripts will attempt to auto-fund your deployed contracts with LINK. Make sure your wallet has enough test link.
$ npx hardhat deploy
Authorize contracts
Head over to the Georacle dashboard and authorize your newly deployed contracts.
Continuing with Hardhat
# Run the examples on the Kovan testnet
$ npx hardhat test