alireza-gsh / Excalibur

YourJustice Smart Contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Excalibur Protocol

Version 0.2

Using the magic of cryptographic technology to bring balance to the world and promote decentralized justice.

Overview

The Excalibur Protocol is an on-chain justice system, carefully designed to imitate the same innate human social structures that the traditional justice system is based on.

Technical info

Getting Started

.env file

Create an .env file and fill in your infura API key and the private key of the account which will send the deployment transaction.

INFURA_KEY = 
PRIVATE_KEY = 
ETHERSCAN_API_KEY = 

Some Basic Commands

  • Install environemnt: npm install
  • Run tests: npx hardhat test
  • Check contract size: npx hardhat size-contracts
  • Deploy (to rinkeby): npx hardhat run scripts/deploy.ts --network rinkeby
  • Compile contracts: npx hardhat compile
  • Cleanup: npx hardhat clean

Etherscan verification

Enter your Etherscan API key into the .env file and run the following command (replace DEPLOYED_CONTRACT_ADDRESS with the contract's address ans "Hello, Hardhat!" with the parameters you sent the contract upon deployment:

npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS "Hello, Hardhat!"

About

YourJustice Smart Contracts

License:MIT License


Languages

Language:TypeScript 74.1%Language:Solidity 25.8%Language:JavaScript 0.1%Language:Shell 0.0%