Sight AI
  • 👋Overview
    • đŸĨFHE
    • 🍍The Problem
  • 🍇Sight Oracle
    • 💡Concepts
      • 🍉Architecture
      • 📔Contract
      • 🟠Decentralized Oracle Node Network
      • 📠FHE Compute Execution Virtual Machine
      • 📃RequestBuilder
    • ⏊Supported Networks
  • Sight Contracts
    • Getting Started
    • Understanding Request Model
  • SIGHT.JS
    • Getting Started
    • Make an encrypt value - CLI
    • Make an encrypt value - Frontend
  • â„šī¸Tutorial
    • Environment Setup
      • Prerequisite
      • Setup Local Development Environment
      • Fund Local Wallet
    • 👷Create Your First dAPP using Hardhat
    • đŸ› ī¸Create Your First dAPP using Foundry
    • 🎲Create a Crypto Pusher Game
      • Contract
      • Interface
    • 📄Remix FHE Demo Local Deployment Tutorial- Preparation
    • 📄Remix FHE Demo Local Deployment Tutorial- Deploying Contracts Using Remix
    • 📄Remix FHE Demo Local Deployment Tutorial- Contracts Explanation&Interaction
  • 🔎Research
    • ✅Verifiable FHE
    • 🌟SPARC
    • 📅Research Updates
  • 🍓Innovative Use Cases and dApps
    • đŸĨĨFHE On-Chain Game
    • A Fairer Prediction Markets with Sight Oracle
  • đŸģRoadmap
  • 🎨Community
    • Website
    • Twitter
    • Telegram
    • Github
  • Sight Incentive Plan - Season 1
  • Sight Incentive Plan - Season 2
Powered by GitBook
On this page
  • Create Local Sight Deployment
  • Get Sight example repository
  1. Tutorial
  2. Environment Setup

Setup Local Development Environment

PreviousPrerequisiteNextFund Local Wallet

Last updated 6 months ago

In this section, we setup a local development that offers a local blockchain with Sight Oracle stack deployed

Create Local Sight Deployment

Get Sight example repository

Sight example repository comes with Contract example and the script to automatically setup local environment.

git clone https://github.com/sight-ai/sight-oracle-contract-example-hardhat

Once the repository is completed, create the .env file then install the dependencies.

cd sight-oracle-contract-example-hardhat

cp -f .env.example .env

npm install

Now, use npm run command to setup local Sight environment

npm run sight:stop ;npm run sight:start

The process shall run for a few minutes, depending on your network condition.

Once the command finishes, following components are setup:

  • Oracle Service

  • A fhevm integrated Blockchain as backend

  • A mysql database

Congratulations, now you have Sight Oracle development environment successfully setup. You can find Sight Oracle address from .env file like this:

ORACLE_CONTRACT_ADDRESS=0x0081e1fbCAa636A1960C4C5D37330C1EB3Dab0c9

Please leave this terminal open, we will continue other operations in another terminal.

An evm Blockchain with RPC:

â„šī¸
http://localhost:18545