Inkonchain - The Break

Testnet

Inkonchain - The Break Testnet

🎁 Potensi Hadiah

Ikuti langkah-langkah berikut untuk berinteraksi di Testnet Inkonchain dan berpotensi mendapatkan reward!


Langkah 1: Klaim Faucet

  1. Kunjungi Alchemy Faucet untuk mendapatkan ETH di Sepolia.

  2. Bridge Sepolia ETH ke Ink Sepolia melalui Ink Bridge.


Langkah 2: Deploy Token di Ink

  1. Buat Token ERC20 dengan bantuan OpenZeppelin Wizard:

    • Pilih ERC20 - Name & Symbol.

    • Klik "Open in Remix".

  2. Deploy Token Menggunakan Remix:

    • Masuk ke Remix.

    • Pilih Solidity Compiler, centang Enable Optimization, dan klik Compile.

    • Setelah berhasil kompilasi (tanda centang hijau), klik Deploy | Injected Provider Metamask.

    • Konfirmasi transaksi di Metamask.

  3. Setelah deploy berhasil, Anda akan melihat kontrak yang telah dideploy.


Langkah 3: Tambahkan Jaringan Ink Sepolia ke Wallet

  1. Ikuti instruksi di sini untuk menambahkan jaringan Ink Sepolia.


Langkah 4: Deploy Kontrak Smart di Ink Sepolia

  1. Buka Remix dan buat file baru bernama InkContract.sol.

  2. Tempelkan kode berikut:

    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.19;
     
    contract InkContract {
        string public greeting = "Hello, Ink!";
        
        function setGreeting(string memory _greeting) public {
            greeting = _greeting;
        }
    }
  3. Compile file InkContract.sol dengan Enable Optimization diaktifkan.

  4. Deploy kontrak dan konfirmasi transaksi di wallet Anda.


Langkah 5: Mengirim Pesan di Kontrak

  1. Buka Deployed Contracts di Remix dan temukan kontrak yang telah dideploy.

  2. Ketik pesan di kolom input setGreeting dan klik tombolnya.

  3. Konfirmasi transaksi di wallet Anda.


Langkah 6: Verifikasi Kontrak

  1. Kunjungi Ink Sepolia Explorer dan cari alamat kontrak yang telah Anda buat.

  2. Klik Verify & Publish.

  3. Isi detail verifikasi kontrak:

    • Pilih Solidity (Single file).

    • Pilih versi compiler yang digunakan di Remix.

    • Aktifkan optimasi dengan 200 runs.

    • Tempelkan kode kontrak Anda.

  4. Klik Verify & Publish untuk menyelesaikan proses verifikasi.


Sumber: Inkonchain on X (Twitter)


English Version


Inkonchain - The Break Testnet

🎁 Reward Potential

Follow these steps to interact with the Inkonchain Testnet and potentially earn rewards!


Step 1: Claim Faucet

  1. Visit Alchemy Faucet to get Sepolia ETH.

  2. Bridge Sepolia ETH to Ink Sepolia through the Ink Bridge.


Step 2: Deploy a Token on Ink

  1. Create an ERC20 Token using OpenZeppelin Wizard:

    • Select ERC20 - Name & Symbol.

    • Click "Open in Remix".

  2. Deploy Token Using Remix:

    • Go to Remix.

    • Choose Solidity Compiler, enable Optimization, and click Compile.

    • After successful compilation (green checkmark), click Deploy | Injected Provider Metamask.

    • Confirm the transaction in Metamask.

  3. Once deployed, you’ll see your deployed contract.


Step 3: Add Ink Sepolia Network to Wallet

  1. Follow the instructions here to add the Ink Sepolia network.


Step 4: Deploy Smart Contract on Ink Sepolia

  1. Open Remix and create a new file named InkContract.sol.

  2. Paste the following code:

    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.19;
     
    contract InkContract {
        string public greeting = "Hello, Ink!";
        
        function setGreeting(string memory _greeting) public {
            greeting = _greeting;
        }
    }
  3. Compile the InkContract.sol file with Enable Optimization checked.

  4. Deploy the contract and confirm the transaction in your wallet.


Step 5: Send a Greeting Message on the Contract

  1. Go to Deployed Contracts in Remix and locate your deployed contract.

  2. Type a message in the setGreeting input field and click the button.

  3. Confirm the transaction in your wallet.


Step 6: Verify the Contract

  1. Visit Ink Sepolia Explorer and search for your contract address.

  2. Click Verify & Publish.

  3. Fill in the contract verification details:

    • Select Solidity (Single file).

    • Choose the same compiler version used in Remix.

    • Enable optimization with 200 runs.

    • Paste your contract code.

  4. Click Verify & Publish to complete verification.


Source: Inkonchain on X (Twitter)


Last updated