Giter VIP home page Giter VIP logo

layerzero-tr's Introduction

LayerZero - an Omnichain Interoperability Protocol (Omnichain Birlikte Çalışabilirlik Protokolü)

Bu repo, LayerZero Endpoints için akıllı sözleşmeleri içerir. LayerZero'nun üzerine inşa etmek isteyen geliştiriciler için lütfen şuraya bakın: docs

Overview

LayerZero, zincirler arasında hafif ileti aktarımı için tasarlanmış bir Omnichain Birlikte Çalışabilirlik Protokolüdür. LayerZero, yapılandırılabilir güvenilmezlik ile özgün ve garantili mesaj teslimi sağlar. Protokol, gaz açısından verimli, yükseltilemeyen bir dizi akıllı sözleşme olarak uygulanmaktadır.

Development (Gelişim)

Interfaces (Arayüzler)

bunu ekleyin package.json

"@layerzerolabs/contracts": "latest",

Setup (kurulum)

  • copy .env.example to .env and fill in variables
  • yarn install

Testing

yarn test

Single Test File (Tek Test Dosyası)

yarn test test/Endpoint.test.js

Gas Uasge (Gaz Kullanımı)

yarn test:gas

Coverage

yarn test:coverage

Lint

yarn lint

only lints .js/.ts files

Deployment

Deploy networks are generated based on tags.

Dağıtım ağları, etiketlere göre oluşturulur.

Hardhat

yarn dev

local ortamı harekete geçirir ve sözleşmeleri devreye

Development

hardhat --network rinkeby-testnet deploy
hardhat --network rinkeby-sandbox deploy

Production (üretim)

hardhat --network ethereum deploy

Adding a new network (Yeni bir ağ ekleme)

  1. Güncelleme hardhat config ağ ile
    1. başvurun STAGING_MAP desteklenen hazırlama ortamları için
  2. Güncelleme endpoints.json with network
  3. endpoints.json'daki anahtarın hardhat'taki ağ adıyla eşleştiğinden emin olun

Example: One LayerZero Network (Örnek: Tek Katmanlı Sıfır Ağ)

//hardhat.config.ts
ethereum: {
    url: `{rpc address}`,
    chainId: 1, //chainlist id
}

//endpoints.json
"production": {
   ...
   "ethereum": {
     "id": 1 //layerzero chain id
   }
}

Örnek: Aynı zincir üzerinde birden fazla LayerZero Ağı (using expandNetwork)

//hardhat.config.ts
...expandNetwork({
    ropsten: {
        url: `{rpc address}`,
        chainId: 3, //chainlist id
    }
}, ["testnet", "sandbox"]),

//endpoints.json
"development": {
   ...
   "ropsten": {
     "id": 4 //layerzero chain id
   }
}

Teşekkürler

LayerZero Endpoints'i oluşturan çekirdek geliştirme ekibine teşekkür ederiz: Ryan Zarick, Isaac Zhang, Caleb Banister, Carmen Cheng ve T. Riley Schwarz

LİSANSLAMA

The primary license for LayerZero is the Business Source License 1.1 (BUSL-1.1). see LICENSE.

layerzero-tr's People

Contributors

cowboyisaac avatar ryanzarick avatar ruesandora avatar calebbanister avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.