Add TrustedOnboarding RPC (#138)

* add CreateOnboardingAddress rpc

* add TrustedOnboarding rpc

* remove log.Info in notifications.go
This commit is contained in:
Louis Singer
2024-04-23 14:54:27 +02:00
committed by GitHub
parent 7a58d97a34
commit 740d4fb7b1
11 changed files with 760 additions and 249 deletions

View File

@@ -101,6 +101,38 @@
]
}
},
"/v1/onboard/address": {
"post": {
"operationId": "ArkService_TrustedOnboarding",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1TrustedOnboardingResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1TrustedOnboardingRequest"
}
}
],
"tags": [
"ArkService"
]
}
},
"/v1/payment/claim": {
"post": {
"operationId": "ArkService_ClaimPayment",
@@ -577,6 +609,30 @@
}
}
},
"v1TrustedOnboardingRequest": {
"type": "object",
"properties": {
"userPubkey": {
"type": "string"
},
"amount": {
"type": "string",
"format": "uint64"
}
}
},
"v1TrustedOnboardingResponse": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"expectedAmount": {
"type": "string",
"format": "uint64"
}
}
},
"v1Vtxo": {
"type": "object",
"properties": {