New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zetachain/protocol-contracts

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zetachain/protocol-contracts

Contracts of official protocol contracts deployed by the core ZetaChain team.

  • 11.0.0-rc5
  • rc5
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by25.25%
Maintainers
0
Weekly downloads
 
Created
Source

ZetaChain Protocol Contracts

Contracts of official protocol contracts deployed by the core ZetaChain team.

Learn more about ZetaChain

  • Check our website.
  • Read our docs.

Codebase

The protocol contracts codebase is separated into two sections:

  • zevm: contracts deployed on ZetaChain
  • evm: contracts deployed on EVM connected chains (Ethereum, Base, etc..)

ZEVM Contracts

  • GatewayZEVM: entrypoints for interaction. The users call the gateway contract to initiate cctx. The gateway contract is also the contract calling the target when a smart contract call is initiated on a connected chain
  • ZRC20: is a ERC20 compliant contract that represents fungible assets from connected chains
  • WZETA: wrapped ZETA (fork of WETH)

EVM Contracts

  • GatewayEVM: similar to GatewayZEVM for connected chains. Entrypoint for users.
  • ERC20Custody: hold ERC20 assets being sent to ZetaChain
  • ZetaConnector: manage ZETA for connected chains. There are two version of the contract:
    • Native: when the ZETA tokens are native to the chain (ZETA where initially deployed as a ERC20 on Ethereum, not emitted fully on ZetaChain). Use lock/unlock model.
    • Non-Native: when ZETA tokens where never native to the chains but withdrawn from ZetaChain. Use mint/burn model.
  • TSS (EOA): Threshold-signature-scheme wallet, this address holds the gas token sent to ZetaChain (like Ethers)

Learn more about the Gateway contracts

Usage

Install dependencies

$ yarn
$ forge soldeer update

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Deploy

$ forge script script/<DeployScript>.s.sol:<DeployScript> --rpc-url <your_rpc_url> --private-key <your_private_key>

To view detailed instructions on how to deploy the contracts, please refer to the Deployment Guide.

This guide covers all steps required to deploy the contracts, including environment setup, commands, and best practices.

Community

X | Discord | Telegram | Website

FAQs

Package last updated on 10 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc