Skip to content

Commit 2f70f7f

Browse files
authored
feat(tron): contract indexer (#7829)
1 parent b5123d4 commit 2f70f7f

16 files changed

Lines changed: 2078 additions & 7 deletions
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[
2+
{
3+
"inputs": [],
4+
"name": "moduleType",
5+
"outputs": [
6+
{
7+
"internalType": "uint8",
8+
"name": "",
9+
"type": "uint8"
10+
}
11+
],
12+
"stateMutability": "view",
13+
"type": "function"
14+
},
15+
{
16+
"inputs": [
17+
{
18+
"internalType": "bytes",
19+
"name": "_message",
20+
"type": "bytes"
21+
}
22+
],
23+
"name": "modulesAndThreshold",
24+
"outputs": [
25+
{
26+
"internalType": "address[]",
27+
"name": "modules",
28+
"type": "address[]"
29+
},
30+
{
31+
"internalType": "uint8",
32+
"name": "threshold",
33+
"type": "uint8"
34+
}
35+
],
36+
"stateMutability": "view",
37+
"type": "function"
38+
},
39+
{
40+
"inputs": [
41+
{
42+
"internalType": "bytes",
43+
"name": "_metadata",
44+
"type": "bytes"
45+
},
46+
{
47+
"internalType": "bytes",
48+
"name": "_message",
49+
"type": "bytes"
50+
}
51+
],
52+
"name": "verify",
53+
"outputs": [
54+
{
55+
"internalType": "bool",
56+
"name": "",
57+
"type": "bool"
58+
}
59+
],
60+
"stateMutability": "nonpayable",
61+
"type": "function"
62+
}
63+
]
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
[
2+
{
3+
"anonymous": false,
4+
"inputs": [
5+
{
6+
"indexed": true,
7+
"internalType": "bytes32",
8+
"name": "messageId",
9+
"type": "bytes32"
10+
},
11+
{
12+
"indexed": true,
13+
"internalType": "uint32",
14+
"name": "destinationDomain",
15+
"type": "uint32"
16+
},
17+
{
18+
"indexed": false,
19+
"internalType": "uint256",
20+
"name": "gasAmount",
21+
"type": "uint256"
22+
},
23+
{
24+
"indexed": false,
25+
"internalType": "uint256",
26+
"name": "payment",
27+
"type": "uint256"
28+
}
29+
],
30+
"name": "GasPayment",
31+
"type": "event"
32+
},
33+
{
34+
"inputs": [
35+
{
36+
"internalType": "bytes32",
37+
"name": "_messageId",
38+
"type": "bytes32"
39+
},
40+
{
41+
"internalType": "uint32",
42+
"name": "_destinationDomain",
43+
"type": "uint32"
44+
},
45+
{
46+
"internalType": "uint256",
47+
"name": "_gasAmount",
48+
"type": "uint256"
49+
},
50+
{
51+
"internalType": "address",
52+
"name": "_refundAddress",
53+
"type": "address"
54+
}
55+
],
56+
"name": "payForGas",
57+
"outputs": [],
58+
"stateMutability": "payable",
59+
"type": "function"
60+
},
61+
{
62+
"inputs": [
63+
{
64+
"internalType": "uint32",
65+
"name": "_destinationDomain",
66+
"type": "uint32"
67+
},
68+
{
69+
"internalType": "uint256",
70+
"name": "_gasAmount",
71+
"type": "uint256"
72+
}
73+
],
74+
"name": "quoteGasPayment",
75+
"outputs": [
76+
{
77+
"internalType": "uint256",
78+
"name": "",
79+
"type": "uint256"
80+
}
81+
],
82+
"stateMutability": "view",
83+
"type": "function"
84+
}
85+
]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[
2+
{
3+
"inputs": [],
4+
"name": "moduleType",
5+
"outputs": [
6+
{
7+
"internalType": "uint8",
8+
"name": "",
9+
"type": "uint8"
10+
}
11+
],
12+
"stateMutability": "view",
13+
"type": "function"
14+
},
15+
{
16+
"inputs": [
17+
{
18+
"internalType": "bytes",
19+
"name": "_metadata",
20+
"type": "bytes"
21+
},
22+
{
23+
"internalType": "bytes",
24+
"name": "_message",
25+
"type": "bytes"
26+
}
27+
],
28+
"name": "verify",
29+
"outputs": [
30+
{
31+
"internalType": "bool",
32+
"name": "",
33+
"type": "bool"
34+
}
35+
],
36+
"stateMutability": "nonpayable",
37+
"type": "function"
38+
}
39+
]

0 commit comments

Comments
 (0)