Skip to main content
Version: 1.0

Remix

Remix is a powerful, open-source web and desktop application that greatly simplifies the process of smart contract development for Wireshape blockchain. It is designed to cater to the needs of developers at all levels, from beginners to advanced users, providing a comprehensive suite of tools for writing, testing, debugging, and deploying smart contracts. As part of the Remix Project, it is aimed at enhancing the entire journey of contract development, ensuring that users have access to a rich toolset that supports them from initial coding to final deployment.

Remix's interface is user-friendly and highly intuitive, allowing developers to easily navigate through its features. It supports languages like Cairo, Vyper, and Solidity, making it versatile for Ethereum and EVM-compatible development. The IDE includes features such as static analysis, a unit testing suite, and a debugger, all of which are essential for developing secure and efficient smart contracts.

Deploying Smart Contracts on Wireshape Floripa Testnet with Remix and MetaMask

Start using Remix for smart contract development and deployment on the Wireshape blockchain is an exciting step for developers. The Wireshape Floripa Testnet provides a great environment for testing your contracts before launching them on the main network. This tutorial will guide you through the process of development and deployment of smart contracts on the Floripa Testnet using Remix IDE and MetaMask as the Injected Web3 Provider.

Prerequisites

Remix Ethereum IDE: To access Remix using your web browser. No installation is required for the web version, making it easily accessible from anywhere.

MetaMask Wallet: A MetaMask wallet installed on your browser and an understanding of how to use it.

Testnet WIRE Token: Ensure you have enough testnet WIRE in your wallet.

tip

You can fund your wallet with testnet WIRE tokens for free on Wireshape Faucet.

Step 1: Setting Up Floripa Testnet on MetaMask

Before deploying your contract, you need to configure MetaMask to connect to the Floripa Testnet. Follow these steps:

Open MetaMask: Click on the MetaMask extension icon in your browser.

Network Selection: At the top left of the MetaMask window, you'll see the network selection dropdown. Click on it, then select "Add Network" at the bottom.

Add Network: A MetaMask Add a Network page will open in your browser. Then click "Add a network manually" at the bottom.

Network Details: In the fields, enter the Floripa Testnet details as follows:

Network Name: Floripa Testnet
RPC URL: https://rpc-floripa.wireshape.org/
Chain ID: 49049
Currency Symbol: WIRE
Block Explorer URL: https://floripa-explorer.wireshape.org

Save: Click "Save" to add the Floripa Testnet to your MetaMask.

Step 2: Writing Your Smart Contract

Open Remix: Go to Remix Ethereum IDE in your web browser.

Create a New Contract: In the "File Explorers" tab, click the "Start Coding" button to create a new file. Name it with a .sol extension, for example, MyContract.sol.

Write Your Contract: Enter your Solidity contract code in the editor. If you're new to Solidity, you can begin with a simple "Hello World" contract to get the hang of it:

// SPDX-License-Identifier: MIT
pragma solidity >=0.6.12 <0.9.0;

contract HelloWorld {
/**
* @dev Prints Hello World string
*/
function print() public pure returns (string memory) {
return "Hello World!";
}
}

Step 3: Compiling Your Contract

Navigate to Solidity Compiler: Once your contract is written, click on the "Solidity Compiler" tab in Remix.

Compile: Select the correct compiler version that matches your contract's pragma statement and click the "Compile MyContract.sol" button. This will check your code for errors and prepare it for deployment.

Step 4: Deploying Your Contract Using MetaMask

Connect to MetaMask: Ensure MetaMask is set to the Floripa Testnet.

Deploy & Run Transactions: Switch to the "Deploy & Run Transactions" tab in Remix.

Environment Selection: From the "Environment" dropdown, select "Injected Provider - MetaMask". Remix will connect to MetaMask. If prompted, allow Remix to access your MetaMask account.

Deploy: From the "Contract" dropdown, select your contract and click the "Deploy" button. MetaMask will pop up, asking for transaction confirmation. You'll see the gas fee required for deployment. Ensure you have enough test WIRE in your MetaMask wallet for the Floripa Testnet.

Confirm Transaction: Review the transaction details in MetaMask and click "Confirm" to deploy your contract.

Step 5: Interacting with Your Deployed Contract

Once deployed, your contract will appear under the "Deployed Contracts" section in Remix "Deploy & Run Transactions" tab. Here, you can interact with it by calling its functions directly from the Remix interface.

note

Always test thoroughly before deploying to the mainnet to avoid potential issues and ensure the security of your contracts.

By following these steps, you can ensure your contracts are ready for production with confidence.