6.0.0 • Published 2 months ago

@zetachain/protocol-contracts v6.0.0

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

ZetaChain Protocol Contracts

This repository contains the smart contracts for ZetaChain. The smart contracts are written in Solidity, and the repository includes scripts to compile the contracts and generate Go bindings.

Importing Protocol Contracts

As a dApp developer, you can install the protocol contracts package into your project:

yarn add --dev @zetachain/protocol-contracts

Importing ZetaInterfaces and ZetaInteractor for cross-chain messaging:

import "@zetachain/protocol-contracts/contracts/evm/interfaces/ZetaInterfaces.sol";
import "@zetachain/protocol-contracts/contracts/evm/tools/ZetaInteractor.sol";

Importing ZRC20 and the system contract for omni-chain smart contracts:

import "@zetachain/protocol-contracts/contracts/zevm/interfaces/IZRC20.sol";
import "@zetachain/protocol-contracts/contracts/zevm/interfaces/zContract.sol";
import "@zetachain/protocol-contracts/contracts/zevm/SystemContract.sol";

Prerequisites

Before you can contribute to this project, you must have the following installed:

Getting Started

To get started with this project, you should first clone the repository:

git clone https://github.com/zeta-chain/protocol

Once you have cloned the repository, you can navigate to the project directory and run the following command to install the project dependencies:

yarn

Compiling Contracts

To compile the contracts, run the following command:

yarn compile

This will compile the Solidity contracts and output the resulting JSON artifacts to the artifacts directory.

Generating Go Bindings

To generate Go bindings for the Solidity contracts, run the following command:

yarn generate:go

This will use abigen to generate Go bindings for the contracts and output the resulting Go files to the pkg directory.

Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request. All contributions are welcome!

7.0.0-rc1

2 months ago

6.0.0

2 months ago

5.0.0-rc7

2 months ago

5.0.0-rc5

3 months ago

5.0.0-rc6

3 months ago

5.0.0-rc3

3 months ago

5.0.0-rc1

3 months ago

5.0.0-rc2

3 months ago

4.0.1

3 months ago

4.0.0-rc1

3 months ago

3.0.2

5 months ago

1.0.1-athens3

11 months ago

3.0.1

6 months ago

1.0.2-athens3

10 months ago

3.0.0

6 months ago

0.0.8

10 months ago

2.1.0

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.0.0-athens3

11 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago