/talentlayer-contracts

Primary LanguageTypeScriptApache License 2.0Apache-2.0

TalentLayer

An interoperable identity system for freelancing marketplaces. Leverage one unified, self-owned, identity across many freelancing marketplaces. Realize #WorkSovereignty by owning your work reputation.

Learn more about the project: https://www.talentlayer.org

Documentations

Our documentations are in Notion and Gitbook. Here are some links to the most important pages:

Start integrating TalentLayer:

Understand the protocol and how we tackle our main problems:

Deployment addresses:

Audits

Setup locally

  • Create your env file config: mv .env.example .env
  • Complete all the variables in the .env file
  • Install dependencies: npm install
  • Launch your local node: npx hardhat node
  • Deploy contract: npx hardhat deploy-full --use-test-erc20 --network localhost

Tests

Coverage

image

Run

  • npx hardhat test

Scripts

Folder structure

  • playground: use on local or testnet to create fake data and test the protocol
  • tasks: configurable commands to use in mainnet
    • protocol: Used to manage the protocol by TalentLayer (mint a platform, allow a new arbitrator...)
    • platform: Used to manage a platform by there owner (update fee)
    • deploy: Used to deploy the protocol and his upgrades
  • utils: common functions

Commands

  • run npx hardhat to see all the commands
  • use Makefile for easier commands
    • make deploy to deploy the protocol
    • then make setup-fakedata to create fake data with playgrounds scripts