Skip to content

Instantly share code, notes, and snippets.

@kuyawa
kuyawa / createtoken.js
Last active September 9, 2020 17:35
Create Harmony HRC20 tokens
const { Harmony } = require("@harmony-js/core");
const { ChainID, ChainType } = require("@harmony-js/utils");
const TESTNET = 'https://api.s0.b.hmny.io';
const MAINNET = 'https://api.s0.t.hmny.io';
const TESTOPT = {chainType: ChainType.Harmony, chainId: ChainID.HmyTestnet};
const MAINOPT = {chainType: ChainType.Harmony, chainId: ChainID.HmyMainnet};
const HRC20 = require("./contracts/HRC20.json");
const PRIVKEY = process.env.PRIVATEKEY; // $ export PRIVKEY=0x123456...
@kuyawa
kuyawa / keybase.md
Created October 1, 2019 02:25
Keybase verification

Keybase proof

I hereby claim:

  • I am kuyawa on github.
  • I am kuyawa (https://keybase.io/kuyawa) on keybase.
  • I have a public key ASAOVu_gHWTwgQjznDXFJ-vZr1ljkG_Ptk_4GnWABACoxQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kuyawa on github.
  • I am kuyawa (https://keybase.io/kuyawa) on keybase.
  • I have a public key ASAOVu_gHWTwgQjznDXFJ-vZr1ljkG_Ptk_4GnWABACoxQo

To claim this, I am signing this object: