mirror of
https://github.com/dap-ps/discover.git
synced 2025-02-07 15:05:07 +00:00
Change id() to version()
This commit is contained in:
parent
392a3bcd5b
commit
8cfc2a15a7
@ -1,10 +1,13 @@
|
||||
/* eslint-disable */
|
||||
|
||||
const EmbarkJS = require('embarkjs').default
|
||||
const EmbarkJS = require('/home/cryptowander/Status/discover/src/embarkArtifacts/modules/embarkjs')
|
||||
.default
|
||||
export default EmbarkJS
|
||||
global.EmbarkJS = EmbarkJS
|
||||
|
||||
const Web3 = global.__Web3 || require('web3')
|
||||
const Web3 =
|
||||
global.__Web3 ||
|
||||
require('/home/cryptowander/Status/discover/src/embarkArtifacts/modules/web3')
|
||||
global.Web3 = Web3 /*global Web3*/
|
||||
const embarkJSConnectorWeb3 = {}
|
||||
|
||||
@ -67,14 +70,16 @@ embarkJSConnectorWeb3.getNetworkId = function() {
|
||||
EmbarkJS.Blockchain.registerProvider('web3', embarkJSConnectorWeb3)
|
||||
EmbarkJS.Blockchain.setProvider('web3', {})
|
||||
if (!global.__Web3) {
|
||||
const web3ConnectionConfig = require('./config/blockchain.json')
|
||||
const web3ConnectionConfig = require('/home/cryptowander/Status/discover/src/embarkArtifacts/config/blockchain.json')
|
||||
EmbarkJS.Blockchain.connect(web3ConnectionConfig, err => {
|
||||
if (err) {
|
||||
console.error(err)
|
||||
}
|
||||
})
|
||||
}
|
||||
const namehash = global.namehash || require('./modules/eth-ens-namehash')
|
||||
const namehash =
|
||||
global.namehash ||
|
||||
require('/home/cryptowander/Status/discover/src/embarkArtifacts/modules/eth-ens-namehash')
|
||||
;('use strict')
|
||||
|
||||
/*global namehash*/
|
||||
@ -593,7 +598,9 @@ __embarkENS.isAvailable = function() {
|
||||
}
|
||||
//# sourceMappingURL=embarkjs.js.map
|
||||
EmbarkJS.Names.registerProvider('ens', __embarkENS)
|
||||
const IpfsApi = global.IpfsApi || require('ipfs-api')
|
||||
const IpfsApi =
|
||||
global.IpfsApi ||
|
||||
require('/home/cryptowander/Status/discover/src/embarkArtifacts/modules/ipfs-api')
|
||||
;('use strict')
|
||||
|
||||
var _interopRequireDefault = require('@babel/runtime-corejs2/helpers/interopRequireDefault')
|
||||
|
Loading…
x
Reference in New Issue
Block a user