...
 
Commits (2)
This diff is collapsed.
......@@ -13,7 +13,7 @@
"license": "ISC",
"dependencies": {
"bootstrap": "^4.1.3",
"dsteem": "^0.10.1",
"@hivechain/dhive": "^0.13.4",
"koa": "^2.5.3",
"koa-static": "^5.0.0"
},
......
import { Client, PrivateKey } from 'dsteem'; //import the api client library
import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain.
import { Client, PrivateKey } from '@hivechain/dhive'; //import the api client library
import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain.
let opts = { ...NetConfig.net };
const client = new Client(NetConfig.url, opts);
......
/**
* This is the main configuration file for the Steem developer Javascript tutorials
*
* In this configuration file we use 'address' to refer to what in many other contexts are called
* user,
* author,
* account,
* account name
*
* Address is a fairly accurate term, and hasn't been overloaded, it also has at-least exactly the properties of addresses on other blockchains.
*
*/
export const TestnetSteemit = {
accounts: [
{
address: 'demo',
privActive: '5Jtbfge4Pk5RyhgzvmZhGE5GeorC1hbaHdwiM7pb5Z5CZz2YKUC',
},
{
address: 'demo1',
privActive: '5Ju3fhTY25Tsseyk4c1PUpH2bTLC8eLbdFRjytmnvU9ZLEQBmsf',
},
{
address: 'demo2',
privActive: '5JZDEAXjANq9isYa66g9tYbeuo4wWXhwXPfujwt9s4DaK4b38R9',
},
{
address: 'demo3',
privActive: '5J6bzy9TM3kBRibXmFi7ZvThrWGMN3epg7aCXLKazTLsJnmw6Mq',
},
{
address: 'demo4',
privActive: '5KQQKVHJBpygcBrqKF6TLQSBX5zHbPRgNEAuojb6fK2C94NX3kJ',
},
{
address: 'demo5',
privActive: '5K7QWGuAAX27yvQRPBMBDA4BbXVpdtmALxoM8CoRdZAsPew5hJd',
},
],
url: 'https://testnet.hive.blog',
net: {
addressPrefix: 'TST',
chainId:
'46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32',
},
};
export const TestnetVC = {
accounts: [
{
address: 'demo01',
privPosting: '5KNckabfv4i793ymx4NWrTLDQZMjhgQTJbPSTroeBY4Bh5Eg6Tm',
privActive: '5HxTntgeoLm4trnTz94YBsY6MpAap1qRVXEKsU5n1v2du1gAgVH',
},
{
address: 'demo02',
privPosting: '5KHUais1mfUn7A3M6pLZw1WF1v6WetFGCB1YDNctcPizLyCT1vW',
privActive: '5KgMKfnTQTzrmZP3RxrQs3CEckHTPXxFzJWHV3cJjetmXwLUWZj',
},
],
url: 'https://testnet.steem.vc',
net: {
addressPrefix: 'STX',
chainId:
'79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673',
},
};
export const Testnet = TestnetVC;
export const Mainnet = {
accounts: [],
url: 'https://api.openhive.network',
net: {
addressPrefix: 'STM',
chainId:
'0000000000000000000000000000000000000000000000000000000000000000',
},
};
export default {};