Skip to content

Commit 84a6202

Browse files
janezicmatejGrePod
authored andcommitted
feat: add jq type abi
1 parent 1fe8b0a commit 84a6202

File tree

2 files changed

+143
-0
lines changed

2 files changed

+143
-0
lines changed

configs/abis/IJsonApi.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"components": [
3+
{
4+
"internalType": "bytes32",
5+
"name": "attestationType",
6+
"type": "bytes32"
7+
},
8+
{
9+
"internalType": "bytes32",
10+
"name": "sourceId",
11+
"type": "bytes32"
12+
},
13+
{
14+
"internalType": "uint64",
15+
"name": "votingRound",
16+
"type": "uint64"
17+
},
18+
{
19+
"internalType": "uint64",
20+
"name": "lowestUsedTimestamp",
21+
"type": "uint64"
22+
},
23+
{
24+
"components": [
25+
{
26+
"internalType": "string",
27+
"name": "url",
28+
"type": "string"
29+
},
30+
{
31+
"internalType": "string",
32+
"name": "postprocessJq",
33+
"type": "string"
34+
},
35+
{
36+
"internalType": "string",
37+
"name": "abi_signature",
38+
"type": "string"
39+
}
40+
],
41+
"internalType": "struct IJsonApi.RequestBody",
42+
"name": "requestBody",
43+
"type": "tuple"
44+
},
45+
{
46+
"components": [
47+
{
48+
"internalType": "bytes",
49+
"name": "abi_encoded_data",
50+
"type": "bytes"
51+
}
52+
],
53+
"internalType": "struct IJsonApi.ResponseBody",
54+
"name": "responseBody",
55+
"type": "tuple"
56+
}
57+
],
58+
"internalType": "struct IJsonApi.Response",
59+
"name": "data",
60+
"type": "tuple"
61+
}

configs/abis/Web2Json.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"components": [
3+
{
4+
"internalType": "bytes32",
5+
"name": "attestationType",
6+
"type": "bytes32"
7+
},
8+
{
9+
"internalType": "bytes32",
10+
"name": "sourceId",
11+
"type": "bytes32"
12+
},
13+
{
14+
"internalType": "uint64",
15+
"name": "votingRound",
16+
"type": "uint64"
17+
},
18+
{
19+
"internalType": "uint64",
20+
"name": "lowestUsedTimestamp",
21+
"type": "uint64"
22+
},
23+
{
24+
"components": [
25+
{
26+
"internalType": "string",
27+
"name": "url",
28+
"type": "string"
29+
},
30+
{
31+
"internalType": "string",
32+
"name": "httpMethod",
33+
"type": "string"
34+
},
35+
{
36+
"internalType": "string",
37+
"name": "headers",
38+
"type": "string"
39+
},
40+
{
41+
"internalType": "string",
42+
"name": "queryParams",
43+
"type": "string"
44+
},
45+
{
46+
"internalType": "string",
47+
"name": "body",
48+
"type": "string"
49+
},
50+
{
51+
"internalType": "string",
52+
"name": "postProcessJq",
53+
"type": "string"
54+
},
55+
{
56+
"internalType": "string",
57+
"name": "abiSignature",
58+
"type": "string"
59+
}
60+
],
61+
"internalType": "struct Web2Json.RequestBody",
62+
"name": "requestBody",
63+
"type": "tuple"
64+
},
65+
{
66+
"components": [
67+
{
68+
"internalType": "bytes",
69+
"name": "abiEncodedData",
70+
"type": "bytes"
71+
}
72+
],
73+
"internalType": "struct Web2Json.ResponseBody",
74+
"name": "responseBody",
75+
"type": "tuple"
76+
}
77+
],
78+
"internalType": "struct Web2Json.Response",
79+
"name": "data",
80+
"type": "tuple"
81+
}
82+

0 commit comments

Comments
 (0)