Giter VIP home page Giter VIP logo

paloma-pigeon-turkce-kurulumu's Introduction

Paloma Testnet-6 Pigeon Yazılımı Türkçe Kurulum Rehberi

Logo!

Pigeon

Paloma doğrulayıcılarının mesajları herhangi bir blok zincirine iletmeleri için bir Golang zincirler arası mesaj aktarma sistemidir.

Paloma, herhangi bir blok zincirinde birden fazla akıllı sözleşmenin eşzamanlı kontrolünü isteyen Crosschain yazılım mühendisleri için, herhangi bir veri kaynağıyla ölçeklenebilir, zincirler arası, akıllı sözleşme yürütmesine olanak tanıyan, merkezi olmayan ve fikir birliğine dayalı mesaj teslimi, hızlı durum farkındalığı, düşük maliyetli durum hesaplaması ve güçlü doğrulama sistemidir.

Alchemy Hesap Açma

  • Yükleme işlemine geçmeden önce Alchemy'den bir hesap oluşturup ETH Mainnet App oluşturuyoruz. Burada View Key bölümünden https ile başlayan linkimizi alıyoruz ve kurulum sırasında Alchemy linki geçen yerde kullanmak üzere bir txt dosyasına kaydediyoruz.

Pigeon Yükleme

wget -O - https://github.com/palomachain/pigeon/releases/download/v0.2.5-alpha/pigeon_0.2.5-alpha_Linux_x86_64v3.tar.gz | \
tar -C /usr/local/bin -xvzf - pigeon
chmod +x /usr/local/bin/pigeon
mkdir ~/.pigeon

EVM (ETH) Cüzdan

Yeni Cüzdan Oluşturma

  • Şifrenizi ve mnemoniclerinizi unutmayınız, kaydediniz.
pigeon evm keys generate-new ~/.pigeon/keys/evm/eth-main

Mevcut Cüzdanı İçeri Aktarma

  • Ben Paloma formunda verdiğim ETH adresimi içeri aktaracağım.
  • Cüzdanınıza ait private keyiniz var ise bu kod ile cüzdanınızı içeri aktarınız.
  • Cüzdan aktarma işlemini private key ile yapıyoruz, bunu yaparken ilk iki haneyi yani 0x kısmını yazmıyoruz. Bu şekilde kalan kısım HEX kodumuz oluyor.
pigeon evm keys import ~/.pigeon/keys/evm/eth-main

Değişkenleri Yüklüyoruz

  • Arkadaşlar aşağıda yazan bilgileri aşağıdaki kodda ilgili yerlere giriyoruz. Bu aşamadan sonra aksi belirtilmedikçe hiçbir kodda değişiklik yapılmayacaktır.
    • '$VALIDATOR' validator adınız
    • '$WALLET' paloma cüzdan adınız
    • '$ETH_RPC_URL' alchemy'den aldığınız link https ile başlayan
    • '$ETH_SIGNING_KEY' cüzdan oluşturduğunuzda sondaki rakamlardan oluşan kod
    • '$PALOMA_KEYRING_PASS' paloma cüzdan şifreniz
    • '$ETH_PASSWORD' ETH cüzdan şifreniz
echo 'export VALIDATOR='$VALIDATOR >> $HOME/.bash_profile
echo 'export ETH_RPC_URL='$ETH_RPC_URL >> $HOME/.bash_profile
echo 'export ETH_SIGNING_KEY='$ETH_SIGNING_KEY >> $HOME/.bash_profile
echo 'export PALOMA_KEYRING_PASS='$PALOMA_KEYRING_PASS >> $HOME/.bash_profile
echo 'export ETH_PASSWORD='$ETH_PASSWORD >> $HOME/.bash_profile
echo 'export WALLET='$WALLET >> $HOME/.bash_profile
source $HOME/.bash_profile

Yapılandırma Kurulumu

  • Burada Paloma cüzdanımızı içeri aktarıyoruz.
palomad keys add "$VALIDATOR" --recover
  • Eğer cüzdan adınız validator adınızdan farklı ise yukarıdaki kod yerine bu kodu giriyoruz.
palomad keys add "$WALLET" --recover 

Yukarıdaki kodu girdiğinizde şifrenizi girdiktensonra şöyle bir çıktı alacaksınız override the existing name VALIDATOR_ADINIZ [y/N]: buna yes yani y diyerek devam ediyoruz. Ardından sizden > Enter your bip39 mnemonic cüzdanınıza ait menemonicleri isteyecek onları yazıp işleme devam ediyoruz.

VALIDATOR env değişkenini ayarlama

export VALIDATOR="$(palomad keys list --list-names | head -n1)"

Yapılandırma dosyasını oluşturma

Burada belirtilen dizine ~/.pigeon/config.yaml config.yaml dosyası oluşturuyoruz. !! Bu ilemi yapmadan önce ~/.paloma/config/client.toml dosyası içerisinde keyring-backend bölümünde ne yazdığına bakıyoruz eğer keyring-backend = "os" yazıyorsa aşağıda keyring-type bölümünü de os yapıyoruz, şu şekilde keyring-type: os eğer keyring-backend = "test" yazıyorsa aşağıda keyring-type bölümünü de test yapıyoruz, şu şekilde keyring-type: test

Bu dosyaya terminalden cat .paloma/config/client.toml yazarak ulaşıp çıktıda keyring-backend bölümünde ne yazdığını görebilirsiniz. Aşağıdaki kodda hiçbir değişiklik yapmıyoruz!

cat <<EOT >~/.pigeon/config.yaml

loop-timeout: 5s

paloma:
  chain-id: paloma-testnet-6
  call-timeout: 20s
  keyring-dir: ~/.paloma
  keyring-pass-env-name: PALOMA_KEYRING_PASS
  keyring-type: os
  signing-key: ${VALIDATOR}
  base-rpc-url: http://localhost:26657
  gas-adjustment: 1.5
  gas-prices: 0.001ugrain
  account-prefix: paloma

evm:
  eth-main:
    chain-id: 1
    base-rpc-url: ${ETH_RPC_URL}
    keyring-pass-env-name: ETH_PASSWORD
    signing-key: ${ETH_SIGNING_KEY}
    keyring-dir: ~/.pigeon/keys/evm/eth-main
EOT

Pigeon'u Başlatma

İlk güvercinimiz birkaç anahtara ihtiyacı vardır, bunun için 'env.sh' doyası oluşturuyoruz:

cat <<EOT >~/.pigeon/env.sh
PALOMA_KEYRING_PASS=${PALOMA_KEYRING_PASS}
ETH_RPC_URL=${ETH_RPC_URL}
ETH_PASSWORD=${ETH_PASSWORD}
ETH_SIGNING_KEY=${ETH_SIGNING_KEY}
VALIDATOR=${VALIDATOR}
EOT

Güvercini Çalıştırma

source ~/.pigeon/env.sh
pigeon start

Servis Dosyası Oluşturma

cat <<EOT >/etc/systemd/system/pigeond.service
[Unit]
Description=Pigeon daemon
After=network-online.target
ConditionPathExists=/usr/local/bin/pigeon

[Service]
Type=simple
Restart=always
RestartSec=5
User=${USER}
WorkingDirectory=~
EnvironmentFile=${HOME}/.pigeon/env.sh
ExecStart=/usr/local/bin/pigeon start
ExecReload=

[Install]
WantedBy=multi-user.target
EOT

Güvercini Tekrar Başlatma

systemctl daemon-reload
systemctl enable pigeond
systemctl restart pigeond
service pigeond start

Servis Durumunu Görme:

service pigeond status

ChainInfos Bilgilerini Alma

palomavaloper yazan yere palomavaloper ile başlayan adresimizi yazıyoruz.

palomad q valset validator-info palomavaloper

Logları İzleme:

journalctl -u pigeond.service -f -n 100

Pigeon Değişkenlerinin Tanımları ve Açıklamaları

  • Bu bölümü daha sonra Türkçeleştireceğim.
    • for paloma key:
      • keyring-dir
        • right now it's not really super important where this points. The important things for the future is that pigeon needs to send transactions to Paloma using it's validator (operator) key!
        • it's best to leave it as is
      • keyring-pass-env-name
        • this one is super important!
        • it is the name of the ENV variable where password to unlock the keyring is stored!
        • you are not writing password here!! You are writing the ENV variable's name where the password is stored.
        • you should obviously use a bit more advanced method than shown here, but here is the example:
          • if the keyring-pass-env-name is set to MY_SUPER_SECRET_PASS then you should provide ENV variable MY_SUPER_SECRET_PASS and store the password there
          • e.g. MY_SUPER_SECRET_PASS=abcd pigeon start
      • keyring-type
        • it should be the same as it's defined for paloma's client. Look under the ~/.paloma/config/client.toml
      • signing-key
        • right now it's again not important which key we are using. It can be any key that has enough balance to submit TXs to Paloma. It's best to use the same key that's set up for the validator.
      • gas-adustment:
        • gas multiplier. The pigeon will estimate the gas to run a TX and then it will multiply it with gas-adjustment (if it's a positive number)
  • for evm -> eth-main:
    • keyring-pass-env-name: as as above for paloma.
    • signing-key
      • address of the key from the keyring used to sign and send TXs to EVM network (one that you got when running pigeon evm keys generate-new from the install section)
    • keyring-dir:
      • a directory where keys to communicate with the EVM network is stored

paloma-pigeon-turkce-kurulumu's People

Contributors

vizualni avatar taariq avatar koltigin avatar measure-fi avatar aditya-manit 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.