-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
104 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters