개발자 리소스
ZetaChain is the first ever L1 blockchain to enable fully interoperable smart contracts, or universal smart contracts, that connect all blockchains and bring the power of programmability to non-smart contract chains like Bitcoin and Dogecoin. We provide an unparalleled combination of security, simplicity, and flexibility for developers.
어디에도 비할 데 없는 개발자 경험을 위해 만들었습니다.
한 번 배치하여, 모든 체인에 액세스
Manage a single universal contract for all chains, instead of one contract for each supported chain. Experience the simplicity of building on Ethereum with access to assets on any chain, even non-smart contract chains like Bitcoin.
거래는 감소하고, 수수료도 절감
ZetaChain의 복잡한 계약 로직은 간단한 전송과 단일 트랜잭션을 통해 연결된 모든 외부 체인 상에 걸쳐 있는 자산들을 조정할 수 있어서 사용자의 총 가스 지출과 슬리피지를 최소화할 수 있습니다.
더 안전하고, 더 나은 사용자 경험
거래 로직은 스마트 계약에서 원자적으로 발생하므로 슬리피지가 적고, 공격 면이 감소하며, 레이스 조건에 대한 민감도가 낮습니다. 체인 간에 운영되는 경우에도 진정한 원스텝 트랜잭션(및 수수료)을 경험할 수 있습니다.
최고의 DevX = 최고의 UX (최고의 개발자 경험 = 최고의 사용자 경험)
Universal Smart Contracts and Messaging give you a complete toolkit to easily build intuitive, traceable, single-step transactions so your users don’t get stuck or risk their funds.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "@zetachain/protocol-contracts/contracts/zevm/SystemContract.sol";
import "@zetachain/protocol-contracts/contracts/zevm/interfaces/zContract.sol";
import "../shared/SwapHelperLib.sol";
contract ZetaSwap is zContract {
SystemContract public immutable systemContract;
constructor(address systemContractAddress) {
systemContract = SystemContract(systemContractAddress);
}
modifier onlySystem() {
require(msg.sender == address(systemContract), "Only system contract can call this function");
_;
}
function onCrossChainCall(
zContext calldata context,
address zrc20,
uint256 amount,
bytes calldata message
) external virtual override onlySystem {
(address targetZRC20, bytes32 receipient, uint256 minAmountOut) = abi.decode(
message,
(address, bytes32, uint256)
);
uint256 outputAmount = SwapHelperLib._doSwap(
systemContract.wZetaContractAddress(),
systemContract.uniswapv2FactoryAddress(),
systemContract.uniswapv2Router02Address(),
zrc20,
amount,
targetZRC20,
minAmountOut
);
SwapHelperLib._doWithdrawal(targetZRC20, outputAmount, receipient);
}
}
가장 쉽고도 가장 다재다능한 크로스-체인 플랫폼
ZetaChain 블록체인과 상호작용을하려 한다면, '분산형 앱'(dApp) 안에 3가지 기능을 구현함으로써 직관적이고 추적 가능하며 되돌릴 수 있는 동작을 수행하도록 하여 사용자의 자금이 묶이거나 위기에 처하지 않게 하십시오.
컨넥터 API를 사용하여 시작하기 →/**
/* Sending value and data cross-chain */
function send(ZetaInterfaces.SendInput calldata input) external;
/* onZetaMessage is called when cross-chain message reaches contract */
function onZetaMessage(ZetaInterfaces.ZetaMessage calldata zetaMessage) external;
/* onZetaRevert is called when cross-chain message reverts */
function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external;
Universal Primitives
ZetaChain's universal primitives give developers the ability to deploy applications once and orchestrate assets on any connected chain from a single place of logic.
Universal Smart Contracts
Leverage the existing Ethereum smart contract ecosystem and build truly interoperable apps on ZetaChain as if everything were on a single chain.
더 알아보기 →Universal Accounts
ZetaChain’s novel TSS architecture lets users and contracts custody and manage assets from a single place, in a secure and decentralized manner.
곧 출시익스플로러
모든 트랜잭션 완벽하게 탐색 가능: ZetaChain 내부 트랜잭션뿐만 아니라 한 체인에서 다른 체인으로 발생하는 모든 트랜잭션을 보고 모니터링합니다.
ZetaChain을 어디다 비교하시겠습니까?
As a blockchain and smart contract platform, ZetaChain provides a fully public, transparent, decentralized interoperability solution that supports both universal messaging and smart contracts. Developers on ZetaChain only need to implement their dApp logic, while ZetaChain handles the transaction of data and value across chains in a trust-minimized way.
위험 최소화
ZetaChain은 TSS 및 PoS 텐더민트 컨센서스로 구축되어 공격 면이 최소화된 분산형 네트워크입니다.
통합된 유동성
래핑된 자산, 중앙집중식 브리지 또는 상호의존 리스크의 증가가 없습니다. 더 많은 자유와 더 저렴한 거래가 있습니다.
무한한 호환성
ZetaChain은 모든 기존의 또는 새로운 블록체인을 지원할 수 있으며, 심지어 비-스마트 계약인 비트코인과 도지코인도 지원합니다.
구축 시작하기 (작성 시작하기)
사용된 실제 계약들로 점점 커지고 있는 예제 라이브러리를 활용하여 개발 작업을 시작하세요.
협업을 원하시나요?
Share ideas and find collaborators to build universal dApps on ZetaChain in our Discord Development Zone. Our team is always ready to help out.
최신 (최근)
최신 ZetaChain 업데이트 확인하기