Al-Qa-qa / time-lock

Time Lock Smart Contract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time Lock Solidity Contract

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact
  6. Acknowledgments

About The Project

Timelock is one of the smart contracts that are used a lot in the blockchain space. TimeLock delays transaction execution for a given time, it is a must in building any DAO or governance system.

We built a simple TimeLock contract that stores transactions, and open their execution after a period of time.

We used blockchain technology, the Ethereum network, and smart contract development technology to achieve our goal.

The smart contract is written in solidity, and we used JS/TS to test and interact with the contract.

Built With

The smart contract is built using hardhat framework, ethersjs, and some other packages and dependencies that speed up in development process.

  • Soliditylang
  • Hardhat
  • Openzeppelin-contracts

Getting Started

This is an example of how to run the smart contract locally on your computer.

Prerequisites

You need to check if nodejs and npm are installed on your computer first.

npm --version
node --version

If you don't have node, you can install it from there official website

Installation

Below is an example of how to start interacting with the smart contract locally.

  1. Clone the repo
    git clone https://github.com/Al-Qa-qa/time-lock.git
  2. Install NPM packages (remember to move to the directory time-lock first)
    npm install
  3. Code installed successfully, you can start testing it.

Usage

You can interact with the smart contract on the local network now.

  • npm run compile to compile the solidity code
  • npm run deploy to deploy the contract on the hardhat network
  • npm run test to run the unit testing of the contract

License

This project is under the MIT License. See LICENSE for more information.

Contact

Al-Qa'qa' - @Al_Qa_qa - alqaqa.fighter@gmail.com

Project Link: https://github.com/Al-Qa-qa/time-lock

Acknowledgments

We used some web services, open-source projects, and packages that helped us in our development process, which will be listed below.

We would like to apologize if we used a free package or service and forgot to mention it.

About

Time Lock Smart Contract

License:MIT License


Languages

Language:TypeScript 82.4%Language:Solidity 17.6%