
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@zetachain/protocol-contracts
Advanced tools
This repository contains ZetaChain protocol contracts: Solidity source code, generated Go bindings, deployed contract addresses and helper utilities.
This repository contains ZetaChain protocol contracts: Solidity source code, generated Go bindings, deployed contract addresses and helper utilities.
As a dApp developer, you can install the protocol contracts package into your project:
yarn add --dev @zetachain/protocol-contracts
Getting the TSS address on BSC testnet:
import { getAddress } from "@zetachain/protocol-contracts";
getAddress("tss", "zeta_testnet");
Getting a ZRC-20 BSC USDT on ZetaChain Mainnet Beta:
import { getAddress } from "@zetachain/protocol-contracts";
getAddress("zrc20", "zeta_mainnet", "USDT.BSC");
The third argument (symbol) is only used when querying ZRC-20 addresses to specify which token address is needed.
To view a table of all contracts visit the Contract Addresses page in the docs.
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";
Before you can contribute to this project, you must have the following installed:
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.
To generate Go bindings for the Solidity contracts and fetch, run the following command:
yarn generate
This will use abigen
to generate Go bindings for the contracts and output the
resulting Go files to the pkg
directory.
To generate the docs from protocol contracts, run the following command:
yarn docs
This script uses forge doc
to generate the docs.
If you would like to contribute to this project, please fork the repository and submit a pull request. All contributions are welcome!
FAQs
Contracts of official protocol contracts deployed by the core ZetaChain team.
The npm package @zetachain/protocol-contracts receives a total of 806 weekly downloads. As such, @zetachain/protocol-contracts popularity was classified as not popular.
We found that @zetachain/protocol-contracts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.