mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
Fix naming
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package arkd.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
// TODO: Edit this proto to something more meaningful for your application.
|
||||
service Service {
|
||||
rpc GetVersion(GetVersionRequest) returns (GetVersionResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/hello"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message GetVersionRequest {
|
||||
string name = 1;
|
||||
}
|
||||
message GetVersionResponse {
|
||||
string message = 1;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
version: v1
|
||||
name: buf.build/ark-network/ark
|
||||
name: buf.build/ark-network/coordinator
|
||||
deps:
|
||||
- buf.build/googleapis/googleapis
|
||||
breaking:
|
||||
|
||||
68
api-spec/protobuf/coordinator/v1/service.proto
Executable file
68
api-spec/protobuf/coordinator/v1/service.proto
Executable file
@@ -0,0 +1,68 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package coordinator.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
service CoordinatorService {
|
||||
rpc RegisterPayment(RegisterPaymentRequest) returns (RegisterPaymentResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/payment/register"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc FinalizePayment(FinalizePaymentRequest) returns (FinalizePaymentResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/payment/finalize"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ListPoolTransactions(ListPoolTransactionsRequest) returns (ListPoolTransactionsResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/v1/pools"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc GetPoolTransaction(GetPoolTransactionRequest) returns (GetPoolTransactionResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/pool/{txid}"
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
message RegisterPaymentRequest {
|
||||
repeated Input inputs = 1;
|
||||
repeated Output outputs = 2;
|
||||
}
|
||||
message RegisterPaymentResponse {
|
||||
string vtx = 1;
|
||||
}
|
||||
|
||||
message FinalizePaymentRequest {
|
||||
string signed_vtx = 1;
|
||||
}
|
||||
message FinalizePaymentResponse {}
|
||||
|
||||
message ListPoolTransactionsRequest {
|
||||
int64 start = 1;
|
||||
int64 end = 2;
|
||||
}
|
||||
message ListPoolTransactionsResponse {
|
||||
repeated string txs = 1;
|
||||
}
|
||||
|
||||
message GetPoolTransactionRequest {
|
||||
string txid = 1;
|
||||
}
|
||||
message GetPoolTransactionResponse {
|
||||
string txhex = 1;
|
||||
}
|
||||
|
||||
message Input {
|
||||
string txid = 1;
|
||||
uint32 vout = 2;
|
||||
}
|
||||
message Output {
|
||||
string pubkey = 1;
|
||||
uint64 amount = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user