TalentLayer Documentation
  • 👋Introduction
    • Value Proposition
    • Options for Integration
      • On-Demand Integration
      • Native Integration
    • TalentLayer's Functions
      • PlatformID
        • Fees & Economics
      • TalentLayerID
      • Reviews
      • Services
      • Escrow and Dispute
        • Dispute Workflow
        • Arbitration
          • Kleros Arbitration
          • Platform Managed Arbitration
    • Current Network Liquidity
    • Decentralization
  • ⚙️Technical Guides
    • Web 3 SDK & API
    • StarterKit Template
    • Technical Schemas
    • Network Support
    • Lower-Level Guides
      • Smart Contracts
        • Deployments
        • TalentLayerPlatformID.sol
        • TalentLayerID.sol
        • TalentLayerService.sol
        • TalentLayerReview.sol
        • Escrow & Dispute Contracts
      • The Graph
        • Introduction
        • Querying from an application
        • Queries examples
        • Implementing the pagination
      • Metadata
      • Third-Party Modules
        • Lens Protocol - Social
        • XMTP - Messaging
        • Sismo - Privacy
        • Iexec - Web3Mail
      • Messaging
        • Integrating XMTP
      • Standards
        • ERC-792: Arbitration standard
        • ERC-1497: Evidence Standard
      • How-To Guides
        • How to implement minting TalentLayer IDs?
        • How to implement the service creation?
        • How to implement the proposal creation?
        • How to implement the proposal validation?
    • Delegation
      • Meta Transaction
      • Delegate System
        • Setting
        • User workflow
        • Service creation example
        • How mintForAddress works
  • ⭐Get a Platform ID
  • 🧠Inspiration for Builders
  • 💬Contact The Team
  • 🦝Core Developer Guides
    • Subgraph Local Setup
    • Smart Contracts Local Setup
    • Advanced Documentation
    • Contract & Graph Deployment Guide
    • TalentLayer Improvement Proposals
    • Audit Report
Powered by GitBook
On this page
  • Requirements
  • Instructions
  • 1. Clone Repository From GitHub
  • 2. Navigate to Folder
  • 3. Install Dependencies
  • 4. Create Environment Files
  • 5. Create A Local Hardhat Chain
  • 6. Deploy Contracts to Local Chain
  • 7. Run Tests

Was this helpful?

  1. Core Developer Guides

Smart Contracts Local Setup

PreviousSubgraph Local SetupNextAdvanced Documentation

Last updated 1 year ago

Was this helpful?

ALERT: In most cases, you don't need to set up local contracts - everything is ready to use on Testnet! If you have advanced needs, we recommend contacting our team.

Requirements

. Installation instructions found

Instructions

1. Clone Repository From GitHub

git clone https://github.com/TalentLayer/talentlayer-id-contracts.git

2. Navigate to Folder

cd talentlayer-id-contracts

3. Install Dependencies

npm install

4. Create Environment Files

touch .env

Setup .env according to .

5. Create A Local Hardhat Chain

npx hardhat node 

6. Deploy Contracts to Local Chain

Please see ./talentlayer-id-contracts/Makefile for more details.

Open up a new instance of the terminal (Mac/Linux) or command line (Windows).

make install

7. Run Tests

npx hardhat test
🦝
Hardhat
here
this example