update
This commit is contained in:
@@ -12,14 +12,7 @@ export const extendedActions = new Set([
|
||||
"buyrambytes",
|
||||
"delegatebw",
|
||||
"undelegatebw",
|
||||
"voteproducer",
|
||||
'statement',
|
||||
'decision',
|
||||
'batch'
|
||||
'act',
|
||||
'exec',
|
||||
'votefor',
|
||||
'voteagainst'
|
||||
"voteproducer"
|
||||
]);
|
||||
|
||||
export const primaryTerms = [
|
||||
|
||||
@@ -185,72 +185,6 @@ export const action = {
|
||||
}
|
||||
},
|
||||
|
||||
// eosio::undelegatebw
|
||||
"@exec": {
|
||||
"properties": {
|
||||
"executer": {"type": "keyword"},
|
||||
"coopname": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"},
|
||||
}
|
||||
},
|
||||
|
||||
"@statement": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"username": {"type": "keyword"},
|
||||
"action": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"},
|
||||
"batch_id": {"type": "long"},
|
||||
"statement": {"enabled": false},
|
||||
}
|
||||
},
|
||||
|
||||
"@act": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"username": {"type": "keyword"},
|
||||
"action": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"},
|
||||
"batch_id": {"type": "long"},
|
||||
"act": {"enabled": false},
|
||||
}
|
||||
},
|
||||
|
||||
"@decision": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"username": {"type": "keyword"},
|
||||
"action": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"},
|
||||
"batch_id": {"type": "long"},
|
||||
"decision": {"enabled": false},
|
||||
}
|
||||
},
|
||||
"@batch": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"action": {"type": "keyword"},
|
||||
"batch_id": {"type": "long"},
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// eosio::votefor
|
||||
"@votefor": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"member": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"}
|
||||
}
|
||||
},
|
||||
|
||||
"@voteagainst": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"member": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -4,6 +4,22 @@ const hyperionModule = {
|
||||
action: 'act',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'act',
|
||||
|
||||
mappings: {
|
||||
action: {
|
||||
"@act": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"username": {"type": "keyword"},
|
||||
"action": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"},
|
||||
"batch_id": {"type": "long"},
|
||||
"act": {"enabled": false},
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
|
||||
@@ -4,6 +4,19 @@ const hyperionModule = {
|
||||
action: 'batch',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'batch',
|
||||
|
||||
mappings: {
|
||||
action: {
|
||||
"@batch": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"action": {"type": "keyword"},
|
||||
"batch_id": {"type": "long"},
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
|
||||
@@ -4,6 +4,22 @@ const hyperionModule = {
|
||||
action: 'decision',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'decision',
|
||||
|
||||
mappings: {
|
||||
action: {
|
||||
"@decision": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"username": {"type": "keyword"},
|
||||
"action": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"},
|
||||
"batch_id": {"type": "long"},
|
||||
"decision": {"enabled": false},
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
|
||||
@@ -4,6 +4,19 @@ const hyperionModule = {
|
||||
action: 'exec',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'exec',
|
||||
|
||||
mappings: {
|
||||
action: {
|
||||
"@exec": {
|
||||
"properties": {
|
||||
"executer": {"type": "keyword"},
|
||||
"coopname": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"},
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
|
||||
@@ -4,6 +4,22 @@ const hyperionModule = {
|
||||
action: 'statement',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'statement',
|
||||
|
||||
mappings: {
|
||||
action: {
|
||||
"@statement": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"username": {"type": "keyword"},
|
||||
"action": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"},
|
||||
"batch_id": {"type": "long"},
|
||||
"statement": {"enabled": false},
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
|
||||
@@ -4,6 +4,19 @@ const hyperionModule = {
|
||||
action: 'voteagainst',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'voteagainst',
|
||||
|
||||
mappings: {
|
||||
action: {
|
||||
"@voteagainst": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"member": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
|
||||
@@ -4,6 +4,19 @@ const hyperionModule = {
|
||||
action: 'votefor',
|
||||
parser_version: ['3.2', '2.1','1.8','1.7'],
|
||||
defineQueryPrefix: 'votefor',
|
||||
|
||||
mappings: {
|
||||
action: {
|
||||
"@votefor": {
|
||||
"properties": {
|
||||
"coopname": {"type": "keyword"},
|
||||
"member": {"type": "keyword"},
|
||||
"decision_id": {"type": "long"}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
handler: (action) => {
|
||||
const data = action['act']['data'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user