Skip to content

Commit 0fb2be3

Browse files
authored
RPC Delete intent (#563)
* DeleteIntent RPC * delete intent by bip322 proof * add DeleteIntent to sdk client * pr review
1 parent 6246f89 commit 0fb2be3

File tree

19 files changed

+1269
-294
lines changed

19 files changed

+1269
-294
lines changed

api-spec/openapi/swagger/ark/v1/service.swagger.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,38 @@
133133
]
134134
}
135135
},
136+
"/v1/round/deleteIntent": {
137+
"post": {
138+
"operationId": "ArkService_DeleteIntent",
139+
"responses": {
140+
"200": {
141+
"description": "A successful response.",
142+
"schema": {
143+
"$ref": "#/definitions/v1DeleteIntentResponse"
144+
}
145+
},
146+
"default": {
147+
"description": "An unexpected error response.",
148+
"schema": {
149+
"$ref": "#/definitions/rpcStatus"
150+
}
151+
}
152+
},
153+
"parameters": [
154+
{
155+
"name": "body",
156+
"in": "body",
157+
"required": true,
158+
"schema": {
159+
"$ref": "#/definitions/v1DeleteIntentRequest"
160+
}
161+
}
162+
],
163+
"tags": [
164+
"ArkService"
165+
]
166+
}
167+
},
136168
"/v1/round/ping/{requestId}": {
137169
"get": {
138170
"operationId": "ArkService_Ping",
@@ -428,6 +460,20 @@
428460
}
429461
}
430462
},
463+
"v1DeleteIntentRequest": {
464+
"type": "object",
465+
"properties": {
466+
"requestId": {
467+
"type": "string"
468+
},
469+
"bip322Signature": {
470+
"$ref": "#/definitions/v1Bip322Signature"
471+
}
472+
}
473+
},
474+
"v1DeleteIntentResponse": {
475+
"type": "object"
476+
},
431477
"v1GetBoardingAddressRequest": {
432478
"type": "object",
433479
"properties": {

api-spec/protobuf/ark/v1/service.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ service ArkService {
2626
body: "*"
2727
};
2828
};
29+
rpc DeleteIntent(DeleteIntentRequest) returns (DeleteIntentResponse) {
30+
option (google.api.http) = {
31+
post: "/v1/round/deleteIntent"
32+
body: "*"
33+
};
34+
}
2935
rpc RegisterInputsForNextRound(RegisterInputsForNextRoundRequest) returns (RegisterInputsForNextRoundResponse) {
3036
option (google.api.http) = {
3137
post: "/v1/round/registerInputs"
@@ -119,6 +125,12 @@ message RegisterIntentResponse {
119125
string request_id = 1;
120126
}
121127

128+
message DeleteIntentRequest {
129+
string request_id = 1;
130+
Bip322Signature bip322_signature = 2;
131+
}
132+
message DeleteIntentResponse {}
133+
122134
message RegisterInputsForNextRoundRequest {
123135
repeated Input inputs = 1;
124136
}

0 commit comments

Comments
 (0)