From 3922f2ec805edb6e58320b0594511ef2d4283bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Schie=C3=9Fl?= Date: Sun, 30 Dec 2018 22:58:51 +0100 Subject: [PATCH 01/41] refactor chain config to facilitate multi chain usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Schießl --- package.json | 1 + src/components/node-select.vue | 55 +- src/config/config.js | 711 ++++++++++++----------- src/lib/blockchains/BitShares.js | 45 ++ src/lib/blockchains/BlockchainAPI.js | 25 + src/lib/blockchains/Steem.js | 51 ++ src/lib/blockchains/blockchainFactory.js | 14 + 7 files changed, 521 insertions(+), 381 deletions(-) create mode 100644 src/lib/blockchains/BitShares.js create mode 100644 src/lib/blockchains/BlockchainAPI.js create mode 100644 src/lib/blockchains/Steem.js create mode 100644 src/lib/blockchains/blockchainFactory.js diff --git a/package.json b/package.json index 6bcdb545..5567bbee 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "readline": "^1.3.0", "secure-ls": "^1.2.1", "socket.io": "^2.1.1", + "steem": "^0.7.3", "typeface-rajdhani": "0.0.54", "typeface-roboto": "0.0.54", "uuid": "^3.3.2", diff --git a/src/components/node-select.vue b/src/components/node-select.vue index fa2f2d0f..3d9ef4d0 100644 --- a/src/components/node-select.vue +++ b/src/components/node-select.vue @@ -5,22 +5,22 @@
-
-
@@ -28,8 +28,7 @@ diff --git a/src/config/config.js b/src/config/config.js index 4b380a7a..aa6e0c97 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -2,352 +2,369 @@ export const version = { release: 2, name: '0.5.0' }; -export const chainList = [{ - short: 'BTS', - name: 'BitShares', - chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8' -}]; -export const nodeList = [ +export const blockchains = { + BTS: { + short: 'BTS', + name: 'BitShares', + chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8', + nodeList: [ - { - url: "ws://127.0.0.1:8090", - location: "Locally hosted" - }, - { - url: "wss://bitshares.openledger.info/ws", - location: "Nuremberg", - region: "Western Europe", - country: "Germany", - operator: "Witness: openledger-dc", - contact: "telegram:mtopenledger" - }, - { - url: "wss://openledger.hk/ws", - region: "Southeastern Asia", - country: "Singapore", - operator: "Witness: openledger-dc", - contact: "telegram:mtopenledger" - }, - { - url: "wss://na.openledger.info/ws", - location: "Quebec", - region: "Northern America", - country: "Canada", - operator: "Witness: openledger-dc", - contact: "telegram:mtopenledger" - }, - { - url: "wss://bitshares.nu/ws", - location: "Stockholm", - region: "Northern Europe", - country: "Sweden" - }, - { - url: "wss://bit.btsabc.org/ws", - region: "Eastern Asia", - country: "China", - location: "Hong Kong", - operator: "Witness: abc123", - contact: "QQ:58291;email:58291@qq.com" - }, - { - url: "wss://node.btscharts.com/ws", - region: "Eastern Asia", - country: "China", - location: "Beijing", - operator: "leo2017", - contact: "wechat:wx8855221;email:8855221@qq.com" - }, - { - url: "wss://japan.bitshares.apasia.tech/ws", - country: "Japan", - region: "Southeastern Asia", - operator: "APAsia", - contact: "telegram:murda_ra" - }, - { - url: "wss://bitshares.crypto.fans/ws", - region: "Western Europe", - country: "Germany", - location: "Munich", - operator: "Witness: sc-ol", - contact: "telegram:startail" - }, - { - url: "wss://ws.gdex.top", - region: "Eastern Asia", - country: "China", - location: "Shanghai", - operator: "Witness: gdex-witness", - contact: "telegram:BrianZhang" - }, - { - url: "wss://dex.rnglab.org", - location: "Netherlands", - operator: "Witness: rnglab" - }, - { - url: "wss://la.dexnode.net/ws", - region: "Northern America", - country: "U.S.A.", - location: "Los Angeles", - operator: "Witness: Sahkan", - contact: "telegram:Sahkan_bitshares" - }, - { - url: "wss://dexnode.net/ws", - region: "Northern America", - country: "U.S.A.", - location: "Dallas", - operator: "Witness: Sahkan", - contact: "telegram:Sahkan_bitshares" - }, - { - url: "wss://kc-us-dex.xeldal.com/ws", - region: "North America", - country: "U.S.A.", - location: "Kansas City", - operator: "Witness: xeldal", - contact: "telegram:xeldal" - }, - { - url: "wss://btsza.co.za:8091/ws", - location: "Cape Town, South Africa" - }, - { - url: "wss://api.bts.blckchnd.com", - region: "Western Europe", - country: "Germany", - location: "Falkenstein", - operator: "Witness: blckchnd", - contact: "email:admin@blckchnd.com;telegram:ruslansalikhov;github:blckchnd" - }, - { - url: "wss://api-ru.bts.blckchnd.com", - region: "Eastern Europe", - country: "Russia", - location: "Moscow", - operator: "Witness: blckchnd", - contact: "email:admin@blckchnd.com;telegram:ruslansalikhov;github:blckchnd" - }, - { - url: "wss://node.market.rudex.org", - region: "Western Europe", - country: "Germany", - location: "Falkenstein", - operator: "Witness: blckchnd", - contact: "email:admin@blckchnd.com;telegram:ruslansalikhov;github:blckchnd" - }, - { - url: "wss://api.bitsharesdex.com", - region: "Northern America", - country: "U.S.A.", - location: "Kansas City", - operator: "Witness: delegate.ihashfury", - contact: "telegram:ihashfury" - }, - { - url: "wss://api.fr.bitsharesdex.com", - region: "Western Europe", - country: "France", - location: "Paris", - operator: "Witness: delegate.ihashfury", - contact: "telegram:ihashfury" - }, - { - url: "wss://blockzms.xyz/ws ", - region: "North America", - country: "U.S.A.", - location: "New Jersey", - operator: "Witness: delegate-zhaomu", - contact: "telegram:lzmlam;wechat:lzmlam" - }, - { - url: "wss://eu.nodes.bitshares.ws", - region: "Western Europe", - country: "Germany", - operator: "Infrastructure Worker", - contact: "email:info@blockchainprojectsbv.com" - }, - { - url: "wss://us.nodes.bitshares.ws", - region: "North America", - country: "U.S.A.", - operator: "Infrastructure Worker", - contact: "email:info@blockchainprojectsbv.com" - }, - { - url: "wss://sg.nodes.bitshares.ws", - region: "Southeastern Asia", - country: "Singapore", - operator: "Infrastructure Worker", - contact: "email:info@blockchainprojectsbv.com" - }, - { - url: "wss://ws.winex.pro", - region: "Southeastern Asia", - location: "Singapore", - operator: "Witness: winex.witness", - contact: "telegram:zmaxin" - }, - { - url: "wss://api.bts.mobi/ws", - region: "Northern America", - country: "U.S.A.", - location: "Virginia", - operator: "Witness: in.abit", - contact: "telegram:abitmore" - }, - { - url: "wss://api.btsxchng.com", - location: "Global (Asia Pacific (Singapore) / US East (N. Virginia) / EU (London))", - operator: "Witness: elmato" - }, - { - url: "wss://api.bts.network/", - region: "North America", - country: "U.S.A.", - location: "Virginia", - operator: "Witness: fox", - contact: "telegram:ryanRfox" - }, - { - url: "wss://btsws.roelandp.nl/ws", - region: "Northern Europe", - country: "Finland", - location: "Helsinki", - operator: "Witness: roelandp", - contact: "telegram:roelandp" - }, - { - url: "wss://api.bitshares.bhuz.info/ws", - region: "Northern America", - country: "Canada", - operator: "Witness: bhuz", - contact: "telegram:bhuzor" - }, - { - url: "wss://bts-api.lafona.net/ws", - region: "Northern America", - country: "Canada", - location: "Montreal", - operator: "Witness: delegate-1.lafona", - contact: "telegram:lafona" - }, - { - url: "wss://kimziv.com/ws", - region: "North America", - country: "U.S.A.", - location: "New Jersey", - operator: "Witness: witness.yao", - contact: "telegram:imyao" - }, - { - url: "wss://api.btsgo.net/ws", - region: "Asia", - location: "Singapore", - operator: "Witness: xn-delegate", - contact: "wechat:Necklace" - }, - { - url: "wss://bts.proxyhosts.info/wss", - location: "Germany", - operator: "Witness: verbaltech2" - }, - { - url: "wss://bts.open.icowallet.net/ws", - region: "Eastern Asia", - country: "China", - location: "Hangzhou", - operator: "Witness: magicwallet.witness", - contact: "telegram:plus_wave" - }, - { - url: "wss://crazybit.online", - region: "Asia", - country: "China", - location: "Shenzhen", - operator: "Witness: crazybit", - contact: "telegram:crazybits;wechat:JamesCai" - }, - { - url: "wss://freedom.bts123.cc:15138/", - region: "South China", - country: "China", - location: "Changsha", - operator: "Witness: delegate.freedom", - contact: "telegram:eggplant" - }, - { - url: "wss://bitshares.bts123.cc:15138/", - region: "North China", - country: "China", - location: "Hangzhou", - operator: "Witness: delegate.freedom", - contact: "telegram:eggplant" - }, - { - url: "wss://api.bts.ai", - region: "Eastern Asia", - country: "China", - location: "Beijing", - operator: "Witness: witness.hiblockchain", - contact: "telegram:vianull;wechat:strugglingl" - }, - { - url: "wss://ws.hellobts.com", - region: "Eastern Asia", - country: "Japan", - location: "Tokyo", - operator: "Witness: xman", - contact: "wechat:hidpos;email:hellobts@qq.com" - }, - { - url: "wss://bitshares.cyberit.io", - region: "Eastern Asia", - country: "China", - location: "Hong Kong", - operator: "Witness: witness.still", - contact: "telegram:gordoor;wechat:overyard" - }, - { - url: "wss://bts-seoul.clockwork.gr", - region: "Southeastern Asia", - country: "Korea", - location: "Seoul", - operator: "Witness: clockwork", - contact: "telegram:clockworkgr" - }, - { - url: "wss://bts.to0l.cn:4443/ws", - region: "Eastern Asia", - country: "China", - location: "Shandong", - operator: "Witness: liuye", - contact: "email:work@liuye.tech" - }, - { - url: "wss://btsfullnode.bangzi.info/ws", - region: "Western Europe", - country: "Germany", - location: "Munich", - operator: "Witness: Bangzi", - contact: "telegram:Bangzi" - }, - { - url: "wss://api.dex.trading/", - region: "Western Europe", - country: "France", - location: "Paris", - operator: "Witness: zapata42-witness", - contact: "telegram:Zapata_42" - }, - { - url: "wss://node.bitshares.eu", - location: "Nuremberg", - region: "Western Europe", - country: "Germany", - operator: "ChainSquad GmbH (xeroc)", - contact: "info@chainsquad.com" + { + url: "ws://127.0.0.1:8090", + location: "Locally hosted" + }, + { + url: "wss://bitshares.openledger.info/ws", + location: "Nuremberg", + region: "Western Europe", + country: "Germany", + operator: "Witness: openledger-dc", + contact: "telegram:mtopenledger" + }, + { + url: "wss://openledger.hk/ws", + region: "Southeastern Asia", + country: "Singapore", + operator: "Witness: openledger-dc", + contact: "telegram:mtopenledger" + }, + { + url: "wss://na.openledger.info/ws", + location: "Quebec", + region: "Northern America", + country: "Canada", + operator: "Witness: openledger-dc", + contact: "telegram:mtopenledger" + }, + { + url: "wss://bitshares.nu/ws", + location: "Stockholm", + region: "Northern Europe", + country: "Sweden" + }, + { + url: "wss://bit.btsabc.org/ws", + region: "Eastern Asia", + country: "China", + location: "Hong Kong", + operator: "Witness: abc123", + contact: "QQ:58291;email:58291@qq.com" + }, + { + url: "wss://node.btscharts.com/ws", + region: "Eastern Asia", + country: "China", + location: "Beijing", + operator: "leo2017", + contact: "wechat:wx8855221;email:8855221@qq.com" + }, + { + url: "wss://japan.bitshares.apasia.tech/ws", + country: "Japan", + region: "Southeastern Asia", + operator: "APAsia", + contact: "telegram:murda_ra" + }, + { + url: "wss://bitshares.crypto.fans/ws", + region: "Western Europe", + country: "Germany", + location: "Munich", + operator: "Witness: sc-ol", + contact: "telegram:startail" + }, + { + url: "wss://ws.gdex.top", + region: "Eastern Asia", + country: "China", + location: "Shanghai", + operator: "Witness: gdex-witness", + contact: "telegram:BrianZhang" + }, + { + url: "wss://dex.rnglab.org", + location: "Netherlands", + operator: "Witness: rnglab" + }, + { + url: "wss://la.dexnode.net/ws", + region: "Northern America", + country: "U.S.A.", + location: "Los Angeles", + operator: "Witness: Sahkan", + contact: "telegram:Sahkan_bitshares" + }, + { + url: "wss://dexnode.net/ws", + region: "Northern America", + country: "U.S.A.", + location: "Dallas", + operator: "Witness: Sahkan", + contact: "telegram:Sahkan_bitshares" + }, + { + url: "wss://kc-us-dex.xeldal.com/ws", + region: "North America", + country: "U.S.A.", + location: "Kansas City", + operator: "Witness: xeldal", + contact: "telegram:xeldal" + }, + { + url: "wss://btsza.co.za:8091/ws", + location: "Cape Town, South Africa" + }, + { + url: "wss://api.bts.blckchnd.com", + region: "Western Europe", + country: "Germany", + location: "Falkenstein", + operator: "Witness: blckchnd", + contact: "email:admin@blckchnd.com;telegram:ruslansalikhov;github:blckchnd" + }, + { + url: "wss://api-ru.bts.blckchnd.com", + region: "Eastern Europe", + country: "Russia", + location: "Moscow", + operator: "Witness: blckchnd", + contact: "email:admin@blckchnd.com;telegram:ruslansalikhov;github:blckchnd" + }, + { + url: "wss://node.market.rudex.org", + region: "Western Europe", + country: "Germany", + location: "Falkenstein", + operator: "Witness: blckchnd", + contact: "email:admin@blckchnd.com;telegram:ruslansalikhov;github:blckchnd" + }, + { + url: "wss://api.bitsharesdex.com", + region: "Northern America", + country: "U.S.A.", + location: "Kansas City", + operator: "Witness: delegate.ihashfury", + contact: "telegram:ihashfury" + }, + { + url: "wss://api.fr.bitsharesdex.com", + region: "Western Europe", + country: "France", + location: "Paris", + operator: "Witness: delegate.ihashfury", + contact: "telegram:ihashfury" + }, + { + url: "wss://blockzms.xyz/ws ", + region: "North America", + country: "U.S.A.", + location: "New Jersey", + operator: "Witness: delegate-zhaomu", + contact: "telegram:lzmlam;wechat:lzmlam" + }, + { + url: "wss://eu.nodes.bitshares.ws", + region: "Western Europe", + country: "Germany", + operator: "Infrastructure Worker", + contact: "email:info@blockchainprojectsbv.com" + }, + { + url: "wss://us.nodes.bitshares.ws", + region: "North America", + country: "U.S.A.", + operator: "Infrastructure Worker", + contact: "email:info@blockchainprojectsbv.com" + }, + { + url: "wss://sg.nodes.bitshares.ws", + region: "Southeastern Asia", + country: "Singapore", + operator: "Infrastructure Worker", + contact: "email:info@blockchainprojectsbv.com" + }, + { + url: "wss://ws.winex.pro", + region: "Southeastern Asia", + location: "Singapore", + operator: "Witness: winex.witness", + contact: "telegram:zmaxin" + }, + { + url: "wss://api.bts.mobi/ws", + region: "Northern America", + country: "U.S.A.", + location: "Virginia", + operator: "Witness: in.abit", + contact: "telegram:abitmore" + }, + { + url: "wss://api.btsxchng.com", + location: "Global (Asia Pacific (Singapore) / US East (N. Virginia) / EU (London))", + operator: "Witness: elmato" + }, + { + url: "wss://api.bts.network/", + region: "North America", + country: "U.S.A.", + location: "Virginia", + operator: "Witness: fox", + contact: "telegram:ryanRfox" + }, + { + url: "wss://btsws.roelandp.nl/ws", + region: "Northern Europe", + country: "Finland", + location: "Helsinki", + operator: "Witness: roelandp", + contact: "telegram:roelandp" + }, + { + url: "wss://api.bitshares.bhuz.info/ws", + region: "Northern America", + country: "Canada", + operator: "Witness: bhuz", + contact: "telegram:bhuzor" + }, + { + url: "wss://bts-api.lafona.net/ws", + region: "Northern America", + country: "Canada", + location: "Montreal", + operator: "Witness: delegate-1.lafona", + contact: "telegram:lafona" + }, + { + url: "wss://kimziv.com/ws", + region: "North America", + country: "U.S.A.", + location: "New Jersey", + operator: "Witness: witness.yao", + contact: "telegram:imyao" + }, + { + url: "wss://api.btsgo.net/ws", + region: "Asia", + location: "Singapore", + operator: "Witness: xn-delegate", + contact: "wechat:Necklace" + }, + { + url: "wss://bts.proxyhosts.info/wss", + location: "Germany", + operator: "Witness: verbaltech2" + }, + { + url: "wss://bts.open.icowallet.net/ws", + region: "Eastern Asia", + country: "China", + location: "Hangzhou", + operator: "Witness: magicwallet.witness", + contact: "telegram:plus_wave" + }, + { + url: "wss://crazybit.online", + region: "Asia", + country: "China", + location: "Shenzhen", + operator: "Witness: crazybit", + contact: "telegram:crazybits;wechat:JamesCai" + }, + { + url: "wss://freedom.bts123.cc:15138/", + region: "South China", + country: "China", + location: "Changsha", + operator: "Witness: delegate.freedom", + contact: "telegram:eggplant" + }, + { + url: "wss://bitshares.bts123.cc:15138/", + region: "North China", + country: "China", + location: "Hangzhou", + operator: "Witness: delegate.freedom", + contact: "telegram:eggplant" + }, + { + url: "wss://api.bts.ai", + region: "Eastern Asia", + country: "China", + location: "Beijing", + operator: "Witness: witness.hiblockchain", + contact: "telegram:vianull;wechat:strugglingl" + }, + { + url: "wss://ws.hellobts.com", + region: "Eastern Asia", + country: "Japan", + location: "Tokyo", + operator: "Witness: xman", + contact: "wechat:hidpos;email:hellobts@qq.com" + }, + { + url: "wss://bitshares.cyberit.io", + region: "Eastern Asia", + country: "China", + location: "Hong Kong", + operator: "Witness: witness.still", + contact: "telegram:gordoor;wechat:overyard" + }, + { + url: "wss://bts-seoul.clockwork.gr", + region: "Southeastern Asia", + country: "Korea", + location: "Seoul", + operator: "Witness: clockwork", + contact: "telegram:clockworkgr" + }, + { + url: "wss://bts.to0l.cn:4443/ws", + region: "Eastern Asia", + country: "China", + location: "Shandong", + operator: "Witness: liuye", + contact: "email:work@liuye.tech" + }, + { + url: "wss://btsfullnode.bangzi.info/ws", + region: "Western Europe", + country: "Germany", + location: "Munich", + operator: "Witness: Bangzi", + contact: "telegram:Bangzi" + }, + { + url: "wss://api.dex.trading/", + region: "Western Europe", + country: "France", + location: "Paris", + operator: "Witness: zapata42-witness", + contact: "telegram:Zapata_42" + }, + { + url: "wss://node.bitshares.eu", + location: "Nuremberg", + region: "Western Europe", + country: "Germany", + operator: "ChainSquad GmbH (xeroc)", + contact: "info@chainsquad.com" + } + ] + }, + STEEM: { + short: 'STEEM', + name: 'Steem', + chainId: '0', + nodeList: [ + { + url: "api.steemit.com", + location: "Unknown", + region: "Unknown", + country: "Unknown", + operator: "Steemit Inc.", + contact: "https://steem.com" + } + ] } -]; +}; \ No newline at end of file diff --git a/src/lib/blockchains/BitShares.js b/src/lib/blockchains/BitShares.js new file mode 100644 index 00000000..2e080b35 --- /dev/null +++ b/src/lib/blockchains/BitShares.js @@ -0,0 +1,45 @@ +import BlockchainAPI from "./BlockchainAPI"; +import { Apis } from "bitsharesjs-ws"; + +export default class BitShares extends BlockchainAPI { + + _onCloseWrapper(onClose) { + this._isConnected = false; + if (onClose) onClose(); + } + + connect(nodeToConnect, onClose = null) { + return new Promise((resolve, reject) => { + if (this._isConnected) { + Apis.close().then(() => { + this._isConnected = false; + Apis.instance( + nodeToConnect, + true, + 10000, + {enableCrypto: false, enableOrders: false}, + this._onCloseWrapper.bind(this, onClose) + ).init_promise.then(() => { + this._connectionEstablished(resolve, nodeToConnect); + }).catch((err) => { + this._isConnected = false; + reject(err); + }); + }); + } else { + Apis.instance( + nodeToConnect, + true, + 10000, + { enableCrypto: false, enableOrders: false }, + this._onCloseWrapper.bind(this, onClose) + ).init_promise.then(() => { + this._connectionEstablished(resolve, nodeToConnect); + }).catch((err) => { + this._isConnected = false; + reject(err); + }); + } + }); + } +} \ No newline at end of file diff --git a/src/lib/blockchains/BlockchainAPI.js b/src/lib/blockchains/BlockchainAPI.js new file mode 100644 index 00000000..cbbd6aad --- /dev/null +++ b/src/lib/blockchains/BlockchainAPI.js @@ -0,0 +1,25 @@ +export default class BlockchainAPI { + + constructor(config) { + this._config = config; + this._isConnected = false; + } + + isConnected() { + return this._isConnected; + } + + connect(nodeToConnect, onClose, onError) { + return new Promise(() => {}); + } + + _connectionEstablished(resolveCallback, node) { + this._isConnected = true; + console.log("connected to ", node) + resolveCallback(); + } + + getNodes() { + return this._config.nodeList; + } +} diff --git a/src/lib/blockchains/Steem.js b/src/lib/blockchains/Steem.js new file mode 100644 index 00000000..294494e6 --- /dev/null +++ b/src/lib/blockchains/Steem.js @@ -0,0 +1,51 @@ +import steem from "steem"; + +export default class Steem extends BlockchainAPI { + + _onCloseWrapper(onClose) { + this._isConnected = false; + if (onClose) onClose(); + } + + isConnected() { + return this._isConnected; + } + + connect(nodeToConnect, onClose = null) { + return new Promise((resolve, reject) => { + if (this._isConnected) { + Apis.close().then(() => { + this._isConnected = false; + Apis.instance( + nodeToConnect, + true, + 10000, + {enableCrypto: false, enableOrders: false}, + this._onCloseWrapper.bind(this, onClose) + ).init_promise.then(() => { + this._isConnected = true; + resolve(); + }).catch((err) => { + this._isConnected = false; + reject(err); + }); + }); + } else { + Apis.instance( + nodeToConnect, + true, + 10000, + { enableCrypto: false, enableOrders: false }, + this._onCloseWrapper.bind(this, onClose) + ).init_promise.then(() => { + this._isConnected = true; + resolve(); + }).catch((err) => { + this._isConnected = false; + reject(err); + }); + } + + }); + } +} \ No newline at end of file diff --git a/src/lib/blockchains/blockchainFactory.js b/src/lib/blockchains/blockchainFactory.js new file mode 100644 index 00000000..0282cc33 --- /dev/null +++ b/src/lib/blockchains/blockchainFactory.js @@ -0,0 +1,14 @@ +import { blockchains } from "../../config/config.js"; + +let apiCache = {} + +import BitShares from "./BitShares" + +export default function getBlockchainAPI(chain) { + if (chain == "BTS") { + if (!apiCache.BTS) { + apiCache.BTS = new BitShares(blockchains[chain]); + } + return apiCache.BTS; + } +} \ No newline at end of file From 4baa24c3146108d60e5b2e97d15018d20520c29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Schie=C3=9Fl?= Date: Mon, 31 Dec 2018 11:23:19 +0100 Subject: [PATCH 02/41] - refactor create.vue to use blockchain api - add getAccount(accountname) and getPublicKey(privateKey) to blockchain api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Schießl --- src/components/create.vue | 75 ++++++++++++---------------- src/lib/blockchains/BitShares.js | 37 +++++++++++++- src/lib/blockchains/BlockchainAPI.js | 11 +++- 3 files changed, 78 insertions(+), 45 deletions(-) diff --git a/src/components/create.vue b/src/components/create.vue index 8dc172a5..384e8bbf 100644 --- a/src/components/create.vue +++ b/src/components/create.vue @@ -180,11 +180,11 @@