forked from ChrisKlinkmueller/Ethereum-Logging-Framework
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Bockrath_Forsage.bcql
78 lines (69 loc) · 3.21 KB
/
Bockrath_Forsage.bcql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Author: Hendrik Bockrath
SET BLOCKCHAIN "Ethereum";
SET OUTPUT FOLDER "./test_output";
SET CONNECTION "ws://localhost:8546/";
BLOCKS (10310000) (10310100) {
LOG ENTRIES (0x5acc84a3e955bdd76467d3348077d003f00ffb97) (
Registration(address indexed user, address indexed referrer,
uint indexed userId, uint referrerId)
){
EMIT XES EVENT ("forsage-0xd73b")(user)()("Registered" as xs:string concept:name);
EMIT XES EVENT ("forsage-0xd73b")(referrer)()("Reffered New User" as xs:string concept:name);
}
LOG ENTRIES (0x5acc84a3e955bdd76467d3348077d003f00ffb97) (
Reinvest(address indexed user, address indexed currentReferrer,
address indexed caller, uint8 matrix, uint8 level)
){
IF (matrix == 1) {
EMIT XES EVENT ("forsage-0xd73b")(user)()("Reinvest Matrix-1" as xs:string concept:name, level as xs:int level);
}
IF (matrix == 2) {
EMIT XES EVENT ("forsage-0xd73b")(user)()("Reinvest Matrix-2" as xs:string concept:name, level as xs:int level);
}
}
LOG ENTRIES (0x5acc84a3e955bdd76467d3348077d003f00ffb97) (
Upgrade(address indexed user, address indexed referrer,
uint8 matrix, uint8 level)
){
IF (matrix == 1) {
EMIT XES EVENT ("forsage-0xd73b")(user)()("Upgrade Matrix-1"
as xs:string concept:name, level as xs:int level);
}
IF (matrix == 2) {
EMIT XES EVENT ("forsage-0xd73b")(user)()("Upgrade Matrix-2"
as xs:string concept:name, level as xs:int level);
}
}
LOG ENTRIES (0x5acc84a3e955bdd76467d3348077d003f00ffb97) (
NewUserPlace(address indexed user, address indexed referrer, uint8 matrix, uint8 level, uint8 place)
){
IF (matrix == 1) {
EMIT XES EVENT ("forsage-0xd73b")(user)()("New User-Place Matrix-1" as xs:string concept:name, level as xs:int level, place as xs:int place);
}
IF (matrix == 2) {
EMIT XES EVENT ("forsage-0xd73b")(user)()("New User-Place Matrix-2" as xs:string concept:name, level as xs:int level, place as xs:int place);
}
}
LOG ENTRIES (0x5acc84a3e955bdd76467d3348077d003f00ffb97) (
MissedEthReceive(address indexed receiver, address indexed from, uint8 matrix, uint8 level)
){
IF (matrix == 1) {
EMIT XES EVENT ("forsage-0xd73b")(receiver)()("Missed Eth-Receive Matrix-1" as xs:string concept:name, level as xs:int level);
}
IF (matrix == 2) {
EMIT XES EVENT ("forsage-0xd73b")(receiver)()("Missed Eth-Receive Matrix-2" as xs:string concept:name, level as xs:int level);
}
}
LOG ENTRIES (0x5acc84a3e955bdd76467d3348077d003f00ffb97) (
SentExtraEthDividends(address indexed from, address indexed receiver, uint8 matrix, uint8 level)
){
IF (matrix == 1) {
EMIT XES EVENT ("forsage-0xd73b")(receiver)()(
"Recieved Extra Eth-Dividends Matrix-1" as xs:string
concept:name, level as xs:int level);
}
IF (matrix == 2) {
EMIT XES EVENT ("forsage-0xd73b")(receiver)()("Recieved Extra Eth-Dividends Matrix-2" as xs:string concept:name, level as xs:int level);
}
}
}