Fix naming

This commit is contained in:
altafan
2023-10-30 15:14:43 +01:00
parent 0055fbb7d0
commit aed92bfd7d
9 changed files with 104 additions and 59 deletions

View File

@@ -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;
}

View File

@@ -1,5 +1,5 @@
version: v1
name: buf.build/ark-network/ark
name: buf.build/ark-network/coordinator
deps:
- buf.build/googleapis/googleapis
breaking:

View 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;
}