1
This commit is contained in:
parent
042a1daf83
commit
199dcf02eb
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
node ../../web3sign/app.js -n1 -i1
|
node ../../web3webhooks/app.js -n1 -i1
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
const assert = require('assert');
|
|
||||||
const utils = require('j7/utils');
|
|
||||||
const bcutils = require('j7/bcutils');
|
|
||||||
const bchelper = require('common/bchelper');
|
|
||||||
const basewrap = require('./basewrap');
|
|
||||||
const factory = require('./factory');
|
|
||||||
|
|
||||||
class Item extends basewrap.BaseWrap {
|
|
||||||
|
|
||||||
getNftType() {
|
|
||||||
return bchelper.getItemMetaNftType(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = Item;
|
|
@ -1,8 +1,8 @@
|
|||||||
const utils = require('j7/utils');
|
const utils = require('j7/utils');
|
||||||
const basewrap = require('./basewrap');
|
const basewrap = require('./basewrap');
|
||||||
|
|
||||||
class Web3Service extends basewrap.BaseWrap {
|
class Web3WebHooks extends basewrap.BaseWrap {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Web3Service;
|
module.exports = Web3WebHools;
|
@ -94,21 +94,16 @@ async function init() {
|
|||||||
'',
|
'',
|
||||||
'BcEventDb'
|
'BcEventDb'
|
||||||
);
|
);
|
||||||
registerMetaClass(configDir + 'web3sign.cluster.json',
|
registerMetaClass(configDir + 'web3webhooks.cluster.json',
|
||||||
'',
|
'',
|
||||||
'Web3Sign'
|
'Web3WebHooks'
|
||||||
);
|
|
||||||
|
|
||||||
registerMetaClass(resDir + 'item@item.json',
|
|
||||||
'id',
|
|
||||||
'Item'
|
|
||||||
);
|
);
|
||||||
load();
|
load();
|
||||||
{
|
{
|
||||||
traverseMetaList('BcEventDb', (dbConf, idx) => {
|
traverseMetaList('BcEventDb', (dbConf, idx) => {
|
||||||
app.registerDb('BcEventDb' + idx, dbConf);
|
app.registerDb('BcEventDb' + idx, dbConf);
|
||||||
});
|
});
|
||||||
traverseMetaList('Web3Sign', (item, idx) => {
|
traverseMetaList('Web3WebHooks', (item, idx) => {
|
||||||
if (item['instance_id'] == app.getInstanceId()) {
|
if (item['instance_id'] == app.getInstanceId()) {
|
||||||
web3ServiceConf = item;
|
web3ServiceConf = item;
|
||||||
item['nets'].forEach((netId) => {
|
item['nets'].forEach((netId) => {
|
||||||
@ -163,7 +158,7 @@ function getWeb3Conf(netId) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getWeb3SignConf() {
|
function getWeb3WebHooksConf() {
|
||||||
return web3ServiceConf;
|
return web3ServiceConf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,7 +193,7 @@ exports.traverseMetaList = traverseMetaList;
|
|||||||
exports.callMetaStatic = callMetaStatic;
|
exports.callMetaStatic = callMetaStatic;
|
||||||
|
|
||||||
exports.getWeb3Conf = getWeb3Conf;
|
exports.getWeb3Conf = getWeb3Conf;
|
||||||
exports.getWeb3SignConf = getWeb3SignConf;
|
exports.getWeb3WebHooksConf = getWeb3WebHooksConf;
|
||||||
exports.getContractsConf = getContractsConf;
|
exports.getContractsConf = getContractsConf;
|
||||||
exports.getNetList = getNetList;
|
exports.getNetList = getNetList;
|
||||||
exports.getNetDir = getNetDir;
|
exports.getNetDir = getNetDir;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user