mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-19 05:04:21 +01:00
Update protos (#3)
This commit is contained in:
committed by
GitHub
parent
e221f834ec
commit
26e8db1d6e
@@ -11,57 +11,78 @@ service CoordinatorService {
|
|||||||
body: "*"
|
body: "*"
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
rpc ClaimPayment(ClaimPaymentRequest) returns (ClaimPaymentResponse) {
|
||||||
|
option (google.api.http) = {
|
||||||
|
post: "/v1/payment/claim"
|
||||||
|
body: "*"
|
||||||
|
};
|
||||||
|
};
|
||||||
rpc FinalizePayment(FinalizePaymentRequest) returns (FinalizePaymentResponse) {
|
rpc FinalizePayment(FinalizePaymentRequest) returns (FinalizePaymentResponse) {
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
post: "/v1/payment/finalize"
|
post: "/v1/payment/finalize"
|
||||||
body: "*"
|
body: "*"
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
rpc ListPoolTransactions(ListPoolTransactionsRequest) returns (ListPoolTransactionsResponse) {
|
rpc ListRounds(ListRoundsRequest) returns (ListRoundsResponse) {
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
post: "/v1/pools"
|
post: "/v1/rounds"
|
||||||
body: "*"
|
body: "*"
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
rpc GetPoolTransaction(GetPoolTransactionRequest) returns (GetPoolTransactionResponse) {
|
rpc GetRound(GetRoundRequest) returns (GetRoundResponse) {
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
get: "/v1/pool/{txid}"
|
get: "/v1/round/{txid}"
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
message RegisterPaymentRequest {
|
message RegisterPaymentRequest {
|
||||||
repeated Input inputs = 1;
|
// Unsigned forfeit tx sending all funds back to the ASP.
|
||||||
repeated Output outputs = 2;
|
|
||||||
}
|
|
||||||
message RegisterPaymentResponse {
|
|
||||||
string vtx = 1;
|
string vtx = 1;
|
||||||
}
|
}
|
||||||
|
message RegisterPaymentResponse {
|
||||||
|
// Mocks wabisabi's credentials.
|
||||||
|
string id = 1;
|
||||||
|
// Forfeit tx signed by the ASP.
|
||||||
|
string signed_vtx = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message ClaimPaymentRequest {
|
||||||
|
// Mocks wabisabi's credentials.
|
||||||
|
string id = 1;
|
||||||
|
// List of receivers for a registered payment.
|
||||||
|
repeated Output outputs = 2;
|
||||||
|
}
|
||||||
|
message ClaimPaymentResponse {}
|
||||||
|
|
||||||
message FinalizePaymentRequest {
|
message FinalizePaymentRequest {
|
||||||
|
// Forfeit tx signed also by the user.
|
||||||
string signed_vtx = 1;
|
string signed_vtx = 1;
|
||||||
}
|
}
|
||||||
message FinalizePaymentResponse {}
|
message FinalizePaymentResponse {}
|
||||||
|
|
||||||
message ListPoolTransactionsRequest {
|
message ListRoundsRequest {
|
||||||
int64 start = 1;
|
int64 start = 1;
|
||||||
int64 end = 2;
|
int64 end = 2;
|
||||||
}
|
}
|
||||||
message ListPoolTransactionsResponse {
|
message ListRoundsResponse {
|
||||||
repeated string txs = 1;
|
repeated Round rounds = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetPoolTransactionRequest {
|
message GetRoundRequest {
|
||||||
string txid = 1;
|
string txid = 1;
|
||||||
}
|
}
|
||||||
message GetPoolTransactionResponse {
|
message GetRoundResponse {
|
||||||
string txhex = 1;
|
Round round = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Input {
|
message Round {
|
||||||
string txid = 1;
|
int64 start = 1;
|
||||||
uint32 vout = 2;
|
int64 end = 2;
|
||||||
|
string txid = 3;
|
||||||
|
repeated Output outputs = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Output {
|
message Output {
|
||||||
string pubkey = 1;
|
string pubkey = 1;
|
||||||
uint64 amount = 2;
|
uint64 amount = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user