diff --git a/README.md b/README.md index b5f8a825..bb2cab39 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/api/openapi.yaml b/api/openapi.yaml index 6c061c67..6e39451f 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -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 @@ -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: @@ -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"