Skip to content

Commit

Permalink
Merge pull request #107 from eqlabs/latenssi/prepare-0.3.0
Browse files Browse the repository at this point in the history
Prepare 0.3.0
  • Loading branch information
latenssi authored Jun 22, 2021
2 parents 9add4a4 + bc9f131 commit 8557fc9
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Flow Wallet Service v0.0.2
# Flow Wallet Service v0.3.0

A custodial wallet service for tokens on the Flow blockchain.

Expand Down
54 changes: 53 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.3

info:
title: Flow Wallet Service API
version: 0.0.2
version: 0.3.0

servers:
- url: http://localhost:3000/v1
Expand Down Expand Up @@ -133,6 +133,27 @@ components:
type: string
example: "2021-06-16T12:05:24.617898+03:00"

tokenDeposit:
type: object
properties:
transactionId:
type: string
example: "f1e272ee125b370e5129215179705791220764bf71da2aa938c94181b2c06685"
amount:
type: string
example: "1.0"
token:
type: string
example: "FlowToken"
sender:
type: string
example: "0x01cf0e2f2f715450"
createdAt:
type: string
example: "2021-06-167T12:05:24.613704+03:00"
updatedAt:
type: string
example: "2021-06-16T12:05:24.617898+03:00"

parameters:
limit:
Expand Down Expand Up @@ -436,3 +457,34 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/tokenWithdrawal"

/accounts/{address}/fungible-tokens/{tokenName}/deposits:
parameters:
- $ref: "#/components/parameters/address"
- $ref: "#/components/parameters/tokenName"
get:
summary: List all deposits of a fungible token
responses:
"200":
description: OK
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/tokenDeposit"

/accounts/{address}/fungible-tokens/{tokenName}/deposits/{transactionId}:
parameters:
- $ref: "#/components/parameters/address"
- $ref: "#/components/parameters/tokenName"
- $ref: "#/components/parameters/transactionId"
get:
summary: Get details of a fungible token deposit
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/tokenDeposit"

0 comments on commit 8557fc9

Please sign in to comment.