Install NodeJS and NPM:
$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install npm
Verify that everything is working:
| I'm @fbslo on https://trybe.one |
| pragma solidity ^0.4.24; | |
| // ---------------------------------------------------------------------------- | |
| // 'Ether Steem' token contract | |
| // | |
| // Deployed to : 0x3693f7449BD461F74975D571E7e3Bc031eF73586 | |
| // Symbol : ETHSTEEM | |
| // Name : Ether Steem | |
| // Total supply: 300000000 | |
| // Decimals : 3 |
Install NodeJS and NPM:
$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install npm
Verify that everything is working:
| var hive = require('steem-js-patched') | |
| hive.api.setOptions({ url: 'https://api.hive.blog' }); | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| var balance = 0.000 | |
| var sbd_balance = 0.000 |
| I am http://forum.notebookreview.com/members/fbslo.730442/ on http://forum.notebookreview.com |
As some of you might be aware, I've been working on Wrapped tokens for the last 3 months. First Wrapped Hive, then modified oracle for wLEO and now I'm presenting an out-of-a-box solution for anyone to create their own Hive Engine Wrapped Token. It's meant mostly for "owners" of HE tribes, but anyone can start one if they want.
I tried to make setup as easy as possible, but you will still need to follow some instructions. But it's as close to no-code as possible. I tried to create the same experience as the hive-in-a-box does for the witness setup.
| pragma solidity ^0.5.11; | |
| library SafeMath { | |
| /** | |
| * @dev Returns the addition of two unsigned integers, reverting on | |
| * overflow. | |
| * | |
| * Counterpart to Solidity's `+` operator. | |
| * | |
| * Requirements: | |
| * - Addition cannot overflow. |
| /* I threw this together in one hour, so it's not pretty, no error handling, | |
| * not tested... | |
| * Enjoy ;) | |
| */ | |
| const abi = [{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_account","type":"address"}],"name":"unBlacklist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutabilit |
| const Twit = require('twit') | |
| const USERNAME = 'GPujs' | |
| //get this from https://developer.twitter.com/en/portal/dashboard | |
| const CONSUMER_KEY = '' | |
| const CONSUMER_SECRET = '' | |
| const ACCESS_TOKEN = '' | |
| const ACCESS_TOKEN_SECRET = '' |