# Inkonchain - The Break

## 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](https://www.alchemy.com/faucets/ethereum-sepolia) untuk mendapatkan ETH di Sepolia.
2. Bridge Sepolia ETH ke Ink Sepolia melalui [Ink Bridge](https://inkonchain.com/en-US/bridge).

***

### Langkah 2: Deploy Token di Ink

1. **Buat Token ERC20** dengan bantuan [OpenZeppelin Wizard](https://wizard.openzeppelin.com/):
   * Pilih **ERC20 - Name & Symbol**.
   * Klik "Open in Remix".
2. **Deploy Token Menggunakan Remix**:
   * Masuk ke [Remix](https://remix.ethereum.org/).
   * 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](https://docs.inkonchain.com/quick-start/get-connected) 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:

   ```solidity
   // 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](https://explorer-sepolia.inkonchain.com/) 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)](https://x.com/inkonchain/status/1852473471873233311)

***

### 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](https://www.alchemy.com/faucets/ethereum-sepolia) to get Sepolia ETH.
2. Bridge Sepolia ETH to Ink Sepolia through the [Ink Bridge](https://inkonchain.com/en-US/bridge).

***

### Step 2: Deploy a Token on Ink

1. **Create an ERC20 Token** using [OpenZeppelin Wizard](https://wizard.openzeppelin.com/):
   * Select **ERC20 - Name & Symbol**.
   * Click "Open in Remix".
2. **Deploy Token Using Remix**:
   * Go to [Remix](https://remix.ethereum.org/).
   * 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](https://docs.inkonchain.com/quick-start/get-connected) 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:

   ```solidity
   // 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](https://explorer-sepolia.inkonchain.com/) 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)](https://x.com/inkonchain/status/1852473471873233311)

***
