Skip to content

Commit f1dc15a

Browse files
authored
api(spec): update def. (#4)
1 parent 42bbd7c commit f1dc15a

File tree

3 files changed

+214
-1
lines changed

3 files changed

+214
-1
lines changed

dist.yaml

+198-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@ openapi: 3.0.0
22
info:
33
title: Gateway LayerZero API
44
description: Tannhauser Gateway LayerZero API
5-
version: 1.0.0
5+
version: 1.0.1
66
contact: {}
77
tags: []
88
servers: []
9+
schemes:
10+
- https
11+
basePath: /api
12+
consumes:
13+
- application/json
14+
produces:
15+
- application/json
916
components:
1017
securitySchemes:
1118
bearer:
@@ -145,6 +152,196 @@ components:
145152
example: 42
146153
required:
147154
- counter
155+
definitions:
156+
EthereumTx:
157+
required:
158+
- txHash
159+
- to
160+
- data
161+
- gas
162+
- gasPrice
163+
- nonce
164+
- value
165+
- from
166+
type: object
167+
properties:
168+
txHash:
169+
title: Tx hash
170+
type: string
171+
to:
172+
title: To
173+
type: string
174+
x-nullable: true
175+
data:
176+
title: Data
177+
type: string
178+
blockNumber:
179+
title: Block number
180+
type: string
181+
readOnly: true
182+
blockTimestamp:
183+
title: Block timestamp
184+
type: string
185+
readOnly: true
186+
created:
187+
title: Created
188+
type: string
189+
format: date-time
190+
readOnly: true
191+
modified:
192+
title: Modified
193+
type: string
194+
format: date-time
195+
readOnly: true
196+
gasUsed:
197+
title: Gas used
198+
type: string
199+
format: decimal
200+
x-nullable: true
201+
status:
202+
title: Status
203+
type: integer
204+
maximum: 2147483647
205+
minimum: -2147483648
206+
x-nullable: true
207+
transactionIndex:
208+
title: Transaction index
209+
type: integer
210+
maximum: 2147483647
211+
minimum: 0
212+
x-nullable: true
213+
gas:
214+
title: Gas
215+
type: string
216+
format: decimal
217+
gasPrice:
218+
title: Gas price
219+
type: string
220+
format: decimal
221+
nonce:
222+
title: Nonce
223+
type: string
224+
format: decimal
225+
value:
226+
title: Value
227+
type: string
228+
format: decimal
229+
from:
230+
title: From
231+
type: string
232+
ERC20:
233+
required:
234+
- ethereumTx
235+
- logIndex
236+
- tokenAddress
237+
- to
238+
- value
239+
- from
240+
type: object
241+
properties:
242+
id:
243+
title: ID
244+
type: integer
245+
readOnly: true
246+
ethereumTx:
247+
$ref: '#/definitions/EthereumTx'
248+
logIndex:
249+
title: Log index
250+
type: integer
251+
minimum: 0
252+
tokenAddress:
253+
title: Token address
254+
type: string
255+
to:
256+
title: To
257+
type: string
258+
value:
259+
title: Value
260+
type: string
261+
minLength: 1
262+
from:
263+
title: From
264+
type: string
265+
ERC721:
266+
required:
267+
- ethereumTx
268+
- logIndex
269+
- tokenAddress
270+
- to
271+
- tokenId
272+
- from
273+
type: object
274+
properties:
275+
id:
276+
title: ID
277+
type: integer
278+
readOnly: true
279+
ethereumTx:
280+
$ref: '#/definitions/EthereumTx'
281+
logIndex:
282+
title: Log index
283+
type: integer
284+
minimum: 0
285+
tokenAddress:
286+
title: Token address
287+
type: string
288+
to:
289+
title: To
290+
type: string
291+
tokenId:
292+
title: Token id
293+
type: string
294+
minLength: 1
295+
from:
296+
title: From
297+
type: string
298+
Token:
299+
required:
300+
- address
301+
- name
302+
- symbol
303+
- decimals
304+
type: object
305+
properties:
306+
address:
307+
title: Address
308+
type: string
309+
maxLength: 42
310+
minLength: 1
311+
logoUri:
312+
title: Logo uri
313+
type: string
314+
readOnly: true
315+
default:
316+
title: Default
317+
type: string
318+
readOnly: true
319+
name:
320+
title: Name
321+
type: string
322+
maxLength: 60
323+
minLength: 1
324+
symbol:
325+
title: Symbol
326+
type: string
327+
maxLength: 60
328+
minLength: 1
329+
description:
330+
title: Description
331+
type: string
332+
decimals:
333+
title: Decimals
334+
type: integer
335+
maximum: 32767
336+
minimum: 0
337+
websiteUri:
338+
title: Website uri
339+
type: string
340+
format: uri
341+
maxLength: 200
342+
gas:
343+
title: Gas
344+
type: boolean
148345
paths:
149346
/auth/login:
150347
post:

optic.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
files:
2+
- path: dist.yaml
3+
id: Gateway-LayerZero-API
4+
- path: generator/api.json
5+
id: Gateway-LayerZero-API-1
6+
- path: generator/base.api.json
7+
id: Gateway-LayerZero-API-2
8+
- path: generator/gateway.json
9+
id: Gateway-LayerZero-API-3
10+
- path: openapi/openapi.yaml
11+
id: Gateway-LayerZero-API-4
12+
- path: output.swagger.json
13+
id: Gateway-LayerZero-API-5
14+
ruleset:
15+
- breaking-changes

swagger.json

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)