Harmony one faucet1/7/2024 ![]() ![]() You can now go ahead and deploy these contracts to Harmony: The above will configure Truffle to deploy smart contracts to Harmony's testnet and mainnet. ,Ĭonst newAcc = truffleProvider.addByPrivateKey(_PRIVATE_KEY) In order to deploy the smart contracts you need to add a custom provider in truffle-config.js:Ĭonst truffleProvider = new TruffleProvider( env and add the private keys you intend to use to perform smart contract deployments on Harmony. env-example file is included in this repository by default, copy it to. If you intend to use the same deployer wallet for all networks (localnet, testnet & mainnet), you can use the same private key for all these three separate networks.Ī. env file being populated with a correct private key for a deployer wallet on each respective network. Credentials & private keysīoth deployment methods in this repository depend on a. Harmony also has a fork of the Remix IDE which is available here. This repository contains examples for deploying contracts using both methods. Smart contract deploymentĪs previously mentioned smart contracts can be deployed using Truffle or If you're used to Truffle deployments you can continue to use that for deploying smart contracts on Harmony as can be used to perform more advanced and custom deployments. ![]() It's a configurable contract that can be deployed for any ERC-20 token and the amount as well as the frequency for requesting funds from the faucet can be configured. Faucet.solįaucet.sol is the actual faucet contract. The token contract will automatically mint 100,000,000 tokens when deployed. TestToken.sol is a simple ERC-20 token that is implemented using smart contract suite. ĭeployment of these contracts can be done using either Truffle or (more on this later). Solidity 0.6.12 is used as the compiler for these contracts, primarily due to dependency on pragma solidity ^0.6.0. This repo contains two implementation contracts: TestToken.sol and Faucet.sol. The intention of this dApp is to showcase how to build a simple dApp on Harmony. This repo contains a simple ERC-20 faucet dApp that will distribute a ERC-20 token called TestToken to whomever interacts with the dApp. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |