12.0.0 • Published 4 months ago

@zetachain/toolkit v12.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

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
13.0.0-rc19

4 months ago

13.0.0-rc18

4 months ago

13.0.0-rc16

4 months ago

13.0.0-rc17

4 months ago

13.0.0-rc15

5 months ago

13.0.0-rc12

5 months ago

13.0.0-rc14

5 months ago

13.0.0-rc13

5 months ago

13.0.0-rc11

6 months ago

13.0.0-rc10

6 months ago

13.0.0-rc9

6 months ago

13.0.0-rc8

7 months ago

13.0.0-rc7

8 months ago

13.0.0-rc6

8 months ago

13.0.0-rc5

9 months ago

13.0.0-rc4

10 months ago

13.0.0-rc2

10 months ago

13.0.0-rc3

10 months ago

12.0.0

11 months ago

12.0.0-rc1

11 months ago

11.0.0

11 months ago

11.0.0-rc3

12 months ago

11.0.0-rc2

12 months ago

11.0.0-rc4

12 months ago

11.0.0-rc1

12 months ago

10.0.0

1 year ago

9.0.1-rc1

1 year ago

9.0.1

1 year ago

9.0.0

1 year ago

9.0.0-rc3

1 year ago

9.0.0-rc4

1 year ago

9.0.0-rc5

1 year ago

9.0.0-rc2

1 year ago

9.0.0-rc1

1 year ago

8.0.0

1 year ago

8.0.0-rc3

1 year ago

8.0.0-rc2

1 year ago

8.0.0-rc1

1 year ago

7.0.0

1 year ago

7.0.1

1 year ago

7.0.0-rc3

1 year ago

7.0.0-rc2

1 year ago

7.0.0-rc1

1 year ago

6.0.0

1 year ago

6.0.0-rc7

1 year ago

6.0.0-rc6

1 year ago

6.0.0-rc5

1 year ago

6.0.0-rc4

1 year ago

6.0.0-rc3

1 year ago

6.0.0-rc1

1 year ago

6.0.0-rc2

1 year ago

5.0.1-rc1

1 year ago

5.0.0

2 years ago

5.0.0-rc10

2 years ago

5.0.0-rc9

2 years ago

5.0.0-rc8

2 years ago

1.0.7-athens3

2 years ago

2.1.2-rc1

2 years ago

1.0.8-athens3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

1.0.4-athens3

2 years ago

1.0.3-athens3

2 years ago

2.2.4

2 years ago

1.0.6-athens3

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.5-athens3

2 years ago

5.0.0-rc7

2 years ago

5.0.0-rc5

2 years ago

5.0.0-rc6

2 years ago

3.0.0

2 years ago

5.0.0-rc3

2 years ago

5.0.0-rc4

2 years ago

4.0.0

2 years ago

5.0.0-rc1

2 years ago

5.0.0-rc2

2 years ago

1.0.1-athens3

2 years ago

1.0.2-athens3

2 years ago

1.0.0-athens3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago