Skip to content

Commit

Permalink
refactor(api): merge (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha authored May 27, 2022
1 parent d078fca commit 42bbd7c
Show file tree
Hide file tree
Showing 15 changed files with 3,947 additions and 49 deletions.
32 changes: 16 additions & 16 deletions dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@ components:
access_token:
type: string
example: >-
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZGRyZXNzIjoiMHg5ZDgyYTZjOTgxMTE0OTQzYmQ0MmI5ZTMzOTM2MWFmYjgyYjUwNTk2IiwiaWF0IjoxNjAzMzU4Nzk2LCJleHAiOjE2MDM5NjM1OTZ9.BzHFBvadgYlS8y43gX0VjbPmKLRuQOYm0oMdO2o3F-Y
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
required:
- access_token
TransferDto:
type: object
properties:
ethAddress:
type: string
example: '0x9d82a6c981114943bd42b9e339361afb82b50596'
example: '0x000000618E8ea9DcA789ba7978fE67CdD76Efaf0'
asset:
type: string
example: FIL
example: FOLD
to:
type: string
example: ETH
nonce:
type: string
example: '0x2f485473ae47edb4d6fe4144f00dd0860555db21bd3a9ce4222f17f08069106d'
example: '0xd2549e0a95762fcc2b8a1bbf9bd081c12a8e6e783d1dad238d95cad26a65ee46af'
required:
- ethAddress
- asset
Expand All @@ -60,7 +60,7 @@ components:
example: '2020-10-16T20:48:18.476Z'
address:
type: string
example: '0x9d82a6c981114943bd42b9e339361afb82b50596'
example: '0x000000618E8ea9DcA789ba7978fE67CdD76Efaf0'
type:
type: string
example: deposit
Expand All @@ -69,22 +69,22 @@ components:
example: pending
transfer:
$ref: '#/components/schemas/TransferDto'
filAddress:
namespace:
type: string
example: t1cfxqaivmpcv2rxdd2ew75u5duyabpkri2f6lddy
example: relay.bond
amount:
type: number
example: '0.01'
ethTxHash:
type: string
example: '0xf5dbaf357e09abf2d4151974bdfae5e20317043b155ff653b03fbd137c940a84'
example: '0xafda5e4205b21292df4faa6a70e989a05438d67c8890b35c5d0c765c4a4ad734'
required:
- createdAt
- address
- type
- status
- transfer
- filAddress
- namespace
- amount
- ethTxHash
TransactionUpdateDto:
Expand All @@ -95,7 +95,7 @@ components:
example: confirmed
ethTxHash:
type: string
example: '0xf5dbaf357e09abf2d4151974bdfae5e20317043b155ff653b03fbd137c940a84'
example: '0xafda5e4205b21292df4faa6a70e989a05438d67c8890b35c5d0c765c4a4ad734'
message:
type: string
example: Unhandled rejection
Expand All @@ -108,10 +108,10 @@ components:
properties:
address:
type: string
example: t1cfxqaivmpcv2rxdd2ew75u5duyabpkri2f6lddy
example: relay.bond
params:
type: string
example: bFdWUU9MbWVXdWtSaW1HbV9hNVhzZWlFY1R1NDEyTloxRUpYQ2Y3bm1PWQ==
example: 0x000000F2869469220b6c2EdFF2d685bd5e74f784==
required:
- address
- params
Expand All @@ -122,19 +122,19 @@ components:
$ref: '#/components/schemas/TransferDto'
gatewayAddress:
$ref: '#/components/schemas/GatewayAddressDto'
filAddress:
namespace:
type: string
example: t1cfxqaivmpcv2rxdd2ew75u5duyabpkri2f6lddy
example: relay.bond
amount:
type: number
example: '0.01'
ethTxHash:
type: string
example: '0xf5dbaf357e09abf2d4151974bdfae5e20317043b155ff653b03fbd137c940a84'
example: '0xafda5e4205b21292df4faa6a70e989a05438d67c8890b35c5d0c765c4a4ad734'
required:
- transfer
- gatewayAddress
- filAddress
- namespace
- amount
- ethTxHash
TransactionCounterResponseDto:
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config = {
// Plugin Options for loading OpenAPI files
specs: [
{
spec: 'openapi.json',
spec: 'output.swagger.json',
route: '/api/',
},
],
Expand Down
Loading

0 comments on commit 42bbd7c

Please sign in to comment.