💙1.2 - HRC-20 Harmony Token

This is a guide to Launch a Token on the Harmony Blockchain || Remix, Solidity, Google Chrome, Metamask.

Harmony Coins

Harmony's Block Explorer - Every contract that has ever transacted on the Harmony network can be found on this Block Explorer. If you need help Navigating the Explorer, we made a video explaining how to navigate it HERE --> Explore

The Harmony blockchain offers its own native tokens that have their own shared economy's. Token created on the harmony blockchain have the ability to swap cheaply and fluidly with Harmony ONE tokens.

Transaction Cost

Speed

with this many transactions, they clock in a 2.31 seconds at high volumes. Low volume metrics have show 1.97 seconds. Harmony has plans for 2022 according to their roadmap, to reach a 1 second finality.

To achieve such speeds, the Harmony foundation intends to implement what's known as "re-sharding" for their blockchain. There are still very little details on this; design updates will be found here --> Harmony Roadmap

Effective Proof of Stake

Harmony offers delegators the option to stake to a validator on their staking dashboard --> Harmony Staking

The "effective" part is the equivalent to say "equal". If a Validator owns a large stake and occupies many slots with what are known as a BLS Keys, there is an algorithm in the Harmony Protocol that balances out the token reward distribution between all the validators. This gives many Delegators (Coin investors) the freedom to choose to stake to any number of Validators and expect the same return in ONE tokens.

Bridging

The Harmony foundation has worked hard to release Ethereum light clients to the Ethereum blockchain to natively transfer any EVM compatible token to the Harmony network. ONE tokens are the bridged asset for many Blockchains, including Ethereum, Cosmos, Polygon, Bitcoin, Avalanche, Terra, the Binance Smart Chain and Chainlink

Governance

HRC-20 come equipped DAO (Decentralized Autonomous Organization) governing options. Token holders can influence the foundations most critical decisions as a business and as an ecosystem. Some believe this to be a risk for any foundation to take, but the harmony foundation intends to be community led by year 2025.

  • Vote for Harmony (100 ONE == 1 vote) --> Snapshot

Create a HRC-20

Harmony has their own token standards that can be followed on their documentation site. HRC-20 tokens will work on any Harmony.one Decentralized application. The EVM's compiler is built into the mainframe of the harmony blockchain, so the the native coding language for Harmony is Solidity

Launch in 10 minutes

Workshop - Start

A. Open Remix IDE --> REMIX

B. Locate Contracts folder

C. Name your contract .sol file

D. Write your Smart Contract

Copy and paste this Text File into the IDE

You will have a Full Contract with //green comments that explain everything. You are welcome to experiment and change the values as you see fit.

Compile 📝

E. Compile the Contract

Typically you will configure your truffle or hardhat file that is in your code editor to choose the version of solidity you want to run. That is if you are testing and compiling the contract on your local test net.

F. Use Meta Mask

You'll need to import Meta Mask for Harmony -->

Deploy Contract

G. Write your contract

Before Transacting, make the contract unique to you. When you are ready, press Transact

In order to use Test Net you will need Test Tokens --> Get Some HERE

  • Copy and paste your MetaMask (0x...#) address and press 'send me'

H. Confirm Transaction

I. Approve the Contract

  1. Copy and paste your address in the _spender

  2. _value is the amount allowed to be transacted for any given transaction outside of your behalf. If you want to limit spending to 0, it will be non-transferable; as will _value 5000 will limit spending to 5k for others.

  3. transfer will send the currency too someone with a given value

  4. transferFrom will send it from you, to someone else with a given amount.

  5. Blue buttons are your Contract Public Variables

Importing your Token Meta Mask

Your friends may want to see their token creation. Just add the Transaction or Ethereum hash to MetaMask by importing a token

End of Lesson 1.1 - Harmony ONE/HRC-20 launch

If you've made it this far, congratulations. The process is pretty much the same for release mostly any contract. Using remix is a great way to get your feet wet using solidity. The real challenge is setting up your own environment to program an entire Dapp around your contract. This won't be done until you've practiced familiarizing yourself with the basics of Solidity. Your Goal would be to start learning contracts, and interacting with them using javascript. check the Full Stack dApp's section to practice making an entire web application.

Last updated