You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
892 B

  1. syntax = "proto3";
  2. import "google/api/annotations.proto";
  3. package rpc;
  4. option go_package = "github.com/lightninglabs/loop/rpc";
  5. service SwapServer {
  6. rpc NewUnchargeSwap(ServerUnchargeSwapRequest) returns (ServerUnchargeSwapResponse);
  7. rpc UnchargeQuote(ServerUnchargeQuoteRequest) returns (ServerUnchargeQuoteResponse);
  8. }
  9. message ServerUnchargeSwapRequest {
  10. bytes receiver_key = 1;
  11. bytes swap_hash = 2;
  12. uint64 amt = 3;
  13. }
  14. message ServerUnchargeSwapResponse {
  15. string swap_invoice= 1;
  16. string prepay_invoice = 2;
  17. bytes sender_key = 3;
  18. int32 expiry = 4;
  19. }
  20. message ServerUnchargeQuoteRequest {
  21. }
  22. message ServerUnchargeQuoteResponse {
  23. string swap_payment_dest = 1;
  24. int64 swap_fee_base = 2;
  25. int64 swap_fee_rate = 3;
  26. uint64 prepay_amt = 4;
  27. uint64 min_swap_amount = 5;
  28. uint64 max_swap_amount = 6;
  29. int32 cltv_delta = 7;
  30. }