|
|
@@ -1,5 +1,4 @@
|
|
|
const Config = require('../../config/config.js')
|
|
|
-const ListenConfig = require('../../config/listen-config.js')
|
|
|
const PrivateConfig = require('../../PrivateConfig.js')
|
|
|
const TimeKit = require('../../kit/time-kit')
|
|
|
const Web3 = require('web3')
|
|
|
@@ -12,16 +11,6 @@ SimpleWeb3.init = function() {
|
|
|
if (SimpleWeb3.web3) return
|
|
|
|
|
|
SimpleWeb3.web3 = new Web3(Config.WEB3_RPC_URL)
|
|
|
-
|
|
|
- // Config.baseToken.contractModel = new SimpleWeb3.web3.eth.Contract(Config.BASE_ABI, Config.baseToken.contract, {
|
|
|
- // from: PrivateConfig.address
|
|
|
- // })
|
|
|
- //
|
|
|
- // for (const token of ListenConfig.tokenList) {
|
|
|
- // token.contractModel = new SimpleWeb3.web3.eth.Contract(token.BASE_ABI, token.contract, {
|
|
|
- // from: PrivateConfig.address
|
|
|
- // })
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
SimpleWeb3.getBalance = async function(address) {
|