Ocean connection support (#9)

* Update protos & Add ocean protos

* Add adapters & config entry for ocean wallet addr

* Update deps
This commit is contained in:
Pietralberto Mazza
2023-11-20 13:39:15 +01:00
committed by GitHub
parent 19cbaeba40
commit b0bd610944
30 changed files with 12956 additions and 16 deletions

View File

@@ -0,0 +1,326 @@
{
"swagger": "2.0",
"info": {
"title": "coordinator/v1/service.proto",
"version": "version not set"
},
"tags": [
{
"name": "CoordinatorService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1/payment/claim": {
"post": {
"operationId": "CoordinatorService_ClaimPayment",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ClaimPaymentResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1ClaimPaymentRequest"
}
}
],
"tags": [
"CoordinatorService"
]
}
},
"/v1/payment/finalize": {
"post": {
"operationId": "CoordinatorService_FinalizePayment",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1FinalizePaymentResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1FinalizePaymentRequest"
}
}
],
"tags": [
"CoordinatorService"
]
}
},
"/v1/payment/register": {
"post": {
"operationId": "CoordinatorService_RegisterPayment",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1RegisterPaymentResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1RegisterPaymentRequest"
}
}
],
"tags": [
"CoordinatorService"
]
}
},
"/v1/round/{txid}": {
"get": {
"operationId": "CoordinatorService_GetRound",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1GetRoundResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "txid",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"CoordinatorService"
]
}
},
"/v1/rounds": {
"post": {
"operationId": "CoordinatorService_ListRounds",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ListRoundsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1ListRoundsRequest"
}
}
],
"tags": [
"CoordinatorService"
]
}
}
},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v1ClaimPaymentRequest": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Mocks wabisabi's credentials."
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1Output"
},
"description": "List of receivers for a registered payment."
}
}
},
"v1ClaimPaymentResponse": {
"type": "object"
},
"v1FinalizePaymentRequest": {
"type": "object",
"properties": {
"signedVtx": {
"type": "string",
"description": "Forfeit tx signed also by the user."
}
}
},
"v1FinalizePaymentResponse": {
"type": "object"
},
"v1GetRoundResponse": {
"type": "object",
"properties": {
"round": {
"$ref": "#/definitions/v1Round"
}
}
},
"v1ListRoundsRequest": {
"type": "object",
"properties": {
"start": {
"type": "string",
"format": "int64"
},
"end": {
"type": "string",
"format": "int64"
}
}
},
"v1ListRoundsResponse": {
"type": "object",
"properties": {
"rounds": {
"type": "array",
"items": {
"$ref": "#/definitions/v1Round"
}
}
}
},
"v1Output": {
"type": "object",
"properties": {
"pubkey": {
"type": "string"
},
"amount": {
"type": "string",
"format": "uint64"
}
}
},
"v1RegisterPaymentRequest": {
"type": "object",
"properties": {
"vtx": {
"type": "string",
"description": "Unsigned forfeit tx sending all funds back to the ASP."
}
}
},
"v1RegisterPaymentResponse": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Mocks wabisabi's credentials."
},
"signedVtx": {
"type": "string",
"description": "Forfeit tx signed by the ASP."
}
}
},
"v1Round": {
"type": "object",
"properties": {
"start": {
"type": "string",
"format": "int64"
},
"end": {
"type": "string",
"format": "int64"
},
"txid": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/definitions/v1Output"
}
}
}
}
}
}