Giter Site home page Giter Site logo

f-rabbit16g / zeta-chain-toolkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zeta-chain/toolkit

0.0 0.0 0.0 527 KB

A library of ZetaChain helper utilities, contracts, and Hardhat tasks for smart-contract development

License: MIT License

Shell 0.38% JavaScript 0.19% TypeScript 96.09% Handlebars 1.95% Solidity 1.39%

zeta-chain-toolkit's Introduction

ZetaChain Toolkit

This repository contains a collection of helper contracts, Hardhat tasks, and utility functions that make it easier to build with ZetaChain.

Building a dApp on ZetaChain

If you're looking to build a dapp on ZetaChain, we recommend using the Hardhat template. This template has all the toolkit featured imported, so you don't need to install this package manually.

Prerequisites

Before getting started, ensure that you have Node.js and Yarn installed on your system.

Installation

To install this package in Hardhat project, add it as a development dependency:

yarn add --dev @zetachain/toolkit

Installing tasks

To install all the the tasks into a Hardhat template, add the following import statement to hardhat.config.js:

import "@zetachain/toolkit/tasks";

Importing Helper Functions

import {
  deployZetaConnectorMock,
  deployZetaEthMock,
  prepareData,
  prepareParams,
  evmSetup,
} from "@zetachain/toolkit/helpers";

Importing Helper Contracts

pragma solidity 0.8.7;

import "@zetachain/toolkit/contracts/BytesHelperLib.sol";
import "@zetachain/toolkit/contracts/TestSystemContract.sol";
import "@zetachain/toolkit/contracts/TestZRC20.sol";
import "@zetachain/toolkit/contracts/SwapHelperLib.sol";
import "@zetachain/toolkit/contracts/ZetaConnectorMock.sol";
import "@zetachain/toolkit/contracts/EthZetaMock.sol";

Contributing to the Project

To get started, install the necessary dependencies by running the following command in your terminal:

yarn
yarn build

zeta-chain-toolkit's People

Contributors

fadeev avatar lucas-janon avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.