update
This commit is contained in:
+2
-2
@@ -68,8 +68,8 @@ helpers/**/*.js.map
|
||||
interfaces/**/*.js
|
||||
interfaces/**/*.js.map
|
||||
|
||||
modules/**/*.js
|
||||
modules/**/*.js.map
|
||||
#modules/**/*.js
|
||||
#modules/**/*.js.map
|
||||
|
||||
addons/**/*.js
|
||||
addons/**/*.js.map
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
const hyperionModule = {
|
||||
chain: "*",
|
||||
contract: '*',
|
||||
action: 'act',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'act',
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
action['@act'] = {
|
||||
coopname: data.coopname,
|
||||
username: data.username,
|
||||
action: data.action,
|
||||
decision_id: data.decision_id,
|
||||
batch_id: data.batch_id,
|
||||
act: data.act
|
||||
};
|
||||
|
||||
delete action['act']['data'];
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {hyperionModule};
|
||||
@@ -0,0 +1,20 @@
|
||||
const hyperionModule = {
|
||||
chain: "*",
|
||||
contract: '*',
|
||||
action: 'batch',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'batch',
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
action['@batch'] = {
|
||||
coopname: data.coopname,
|
||||
action: data.action,
|
||||
batch_id: data.batch_id,
|
||||
};
|
||||
|
||||
delete action['act']['data'];
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {hyperionModule};
|
||||
@@ -0,0 +1,23 @@
|
||||
const hyperionModule = {
|
||||
chain: "*",
|
||||
contract: '*',
|
||||
action: 'decision',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'decision',
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
action['@decision'] = {
|
||||
coopname: data.coopname,
|
||||
username: data.username,
|
||||
action: data.action,
|
||||
decision_id: data.decision_id,
|
||||
batch_id: data.batch_id,
|
||||
decision: data.decision
|
||||
};
|
||||
|
||||
delete action['act']['data'];
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {hyperionModule};
|
||||
@@ -0,0 +1,20 @@
|
||||
const hyperionModule = {
|
||||
chain: "*",
|
||||
contract: '*',
|
||||
action: 'exec',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'exec',
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
action['@exec'] = {
|
||||
executer: data.executer,
|
||||
coopname: data.coopname,
|
||||
decision_id: data.decision_id,
|
||||
};
|
||||
|
||||
delete action['act']['data'];
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {hyperionModule};
|
||||
@@ -0,0 +1,23 @@
|
||||
const hyperionModule = {
|
||||
chain: "*",
|
||||
contract: '*',
|
||||
action: 'statement',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'statement',
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
action['@statement'] = {
|
||||
coopname: data.coopname,
|
||||
username: data.username,
|
||||
action: data.action,
|
||||
decision_id: data.decision_id,
|
||||
batch_id: data.batch_id,
|
||||
statement: data.statement
|
||||
};
|
||||
|
||||
delete action['act']['data'];
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {hyperionModule};
|
||||
@@ -0,0 +1,20 @@
|
||||
const hyperionModule = {
|
||||
chain: "*",
|
||||
contract: '*',
|
||||
action: 'voteagainst',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'voteagainst',
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
action['@voteagainst'] = {
|
||||
coopname: data.coopname,
|
||||
member: data.member,
|
||||
decision_id: decision_id
|
||||
};
|
||||
|
||||
delete action['act']['data'];
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {hyperionModule};
|
||||
@@ -0,0 +1,20 @@
|
||||
const hyperionModule = {
|
||||
chain: "*",
|
||||
contract: '*',
|
||||
action: 'votefor',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'votefor',
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
action['@votefor'] = {
|
||||
coopname: data.coopname,
|
||||
member: data.member,
|
||||
decision_id: decision_id
|
||||
};
|
||||
|
||||
delete action['act']['data'];
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {hyperionModule};
|
||||
Reference in New Issue
Block a user