-
Notifications
You must be signed in to change notification settings - Fork 33
/
abicoderv2_example.swagger.json
256 lines (256 loc) · 7.16 KB
/
abicoderv2_example.swagger.json
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{
"schemes": [
"http",
"https"
],
"swagger": "2.0",
"info": {
"description": "Challenges the swagger generator to use lots of types",
"title": "abicoderv2",
"version": "1.0"
},
"host": "localhost",
"basePath": "/contracts/0x0123456789abcdef0123456789abcdef0123456",
"paths": {
"/inOutType1": {
"get": {
"produces": [
"application/json"
],
"summary": "inOutType1((string,uint232,(string,string,address,bytes),(string,string,address,bytes)[])) [read only]",
"operationId": "inOutType1_get",
"parameters": [
{
"type": "string",
"description": "(string,uint232,(string,string,address,bytes),(string,string,address,bytes)[])",
"name": "arg1",
"in": "query",
"required": true
},
{
"$ref": "#/parameters/idParam"
},
{
"$ref": "#/parameters/fromParam"
},
{
"$ref": "#/parameters/valueParam"
},
{
"$ref": "#/parameters/gasParam"
},
{
"$ref": "#/parameters/gaspriceParam"
},
{
"$ref": "#/parameters/transactionParam"
}
],
"responses": {
"200": {
"description": "successful response",
"schema": {
"$ref": "#/definitions/inOutType1_outputs"
}
},
"default": {
"description": "error",
"schema": {
"$ref": "#/definitions/error"
}
}
}
},
"post": {
"consumes": [
"application/json",
"application/x-yaml"
],
"produces": [
"application/json"
],
"summary": "inOutType1((string,uint232,(string,string,address,bytes),(string,string,address,bytes)[])) [read only]",
"operationId": "inOutType1_post",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/inOutType1_inputs"
}
},
{
"$ref": "#/parameters/idParam"
},
{
"$ref": "#/parameters/fromParam"
},
{
"$ref": "#/parameters/valueParam"
},
{
"$ref": "#/parameters/gasParam"
},
{
"$ref": "#/parameters/gaspriceParam"
},
{
"$ref": "#/parameters/syncParam"
},
{
"$ref": "#/parameters/callParam"
},
{
"$ref": "#/parameters/privateFromParam"
},
{
"$ref": "#/parameters/privateForParam"
},
{
"$ref": "#/parameters/blocknumberParam"
},
{
"$ref": "#/parameters/acktypeParam"
}
],
"responses": {
"200": {
"description": "successful response",
"schema": {
"$ref": "#/definitions/inOutType1_outputs"
}
},
"default": {
"description": "error",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
}
},
"definitions": {
"error": {
"properties": {
"error": {
"description": "Error message",
"type": "string"
}
}
},
"inOutType1_inputs": {
"type": "object",
"properties": {
"arg1": {
"description": "(string,uint232,(string,string,address,bytes),(string,string,address,bytes)[])",
"type": "object"
}
}
},
"inOutType1_outputs": {
"type": "object",
"properties": {
"out1": {
"description": "(string,uint232,(string,string,address,bytes),(string,string,address,bytes)[])",
"type": "object"
}
}
}
},
"parameters": {
"acktypeParam": {
"type": "string",
"description": "Set to 'receipt' to store a receipt before acknowledging an async request (header: x-firefly-acktype)",
"name": "fly-acktype",
"in": "query",
"allowEmptyValue": true
},
"blocknumberParam": {
"type": "string",
"description": "The target block number for eth_call requests. One of 'earliest/latest/pending', a number or a hex string (header: x-firefly-blocknumber)",
"name": "fly-blocknumber",
"in": "query"
},
"callParam": {
"type": "boolean",
"description": "Perform a read-only call with the same parameters that would be used to invoke, and return result (header: x-firefly-call)",
"name": "fly-call",
"in": "query",
"allowEmptyValue": true
},
"fromParam": {
"type": "string",
"description": "The 'from' address (header: x-firefly-from)",
"name": "fly-from",
"in": "query"
},
"gasParam": {
"type": "integer",
"description": "Gas to send with the transaction (auto-calculated if not set) (header: x-firefly-gas)",
"name": "fly-gas",
"in": "query",
"allowEmptyValue": true
},
"gaspriceParam": {
"type": "integer",
"description": "Gas Price offered (header: x-firefly-gasprice)",
"name": "fly-gasprice",
"in": "query",
"allowEmptyValue": true
},
"idParam": {
"type": "string",
"description": "Optionally set the ID for this request - must be unique if set (header: x-firefly-id)",
"name": "fly-id",
"in": "query"
},
"privacyGroupIdParam": {
"type": "string",
"description": "Private transaction group ID (header: x-firefly-privacyGroupId)",
"name": "fly-privacygroupid",
"in": "query"
},
"privateForParam": {
"type": "string",
"description": "Private transaction recipients (comma separated or multiple params) (header: x-firefly-privatefor)",
"name": "fly-privatefor",
"in": "query"
},
"privateFromParam": {
"type": "string",
"description": "Private transaction sender (header: x-firefly-privatefrom)",
"name": "fly-privatefrom",
"in": "query"
},
"registerParam": {
"type": "string",
"description": "Register the installed contract on a friendly path (overwrites existing) (header: x-firefly-register)",
"name": "fly-register",
"in": "query"
},
"syncParam": {
"type": "boolean",
"default": true,
"description": "Block the HTTP request until the tx is mined (does not store the receipt) (header: x-firefly-sync)",
"name": "fly-sync",
"in": "query",
"allowEmptyValue": true
},
"transactionParam": {
"type": "string",
"description": "Query the details for the provided transaction hash (header: x-firefly-transaction)",
"name": "fly-transaction",
"in": "query",
"allowEmptyValue": true
},
"valueParam": {
"type": "integer",
"description": "Ether value to send with the transaction (header: x-firefly-ethvalue)",
"name": "fly-ethvalue",
"in": "query",
"allowEmptyValue": true
}
}
}