From d9150be433afb4ef6173e51f192e03633172a644 Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Fri, 20 Aug 2021 00:30:50 -0700 Subject: [PATCH] Delete old peer rpc proto (#986) --- docker/test/Dockerfile | 1 - proto/squeak_server.proto | 129 -------------------------------------- 2 files changed, 130 deletions(-) delete mode 100644 proto/squeak_server.proto diff --git a/docker/test/Dockerfile b/docker/test/Dockerfile index 48e40f59..e096b80b 100644 --- a/docker/test/Dockerfile +++ b/docker/test/Dockerfile @@ -12,7 +12,6 @@ COPY itests/tests ./tests RUN python3 -m grpc_tools.protoc --proto_path=. --python_out=. --grpc_python_out=. \ proto/lnd.proto \ - proto/squeak_server.proto \ proto/squeak_admin.proto RUN chmod +x test.sh diff --git a/proto/squeak_server.proto b/proto/squeak_server.proto deleted file mode 100644 index 4a71b6d4..00000000 --- a/proto/squeak_server.proto +++ /dev/null @@ -1,129 +0,0 @@ -syntax = "proto3"; - -option java_multiple_files = true; -option java_package = "io.github.yzernik.squeaknode"; -option java_outer_classname = "SqueakProto"; -option objc_class_prefix = "SQK"; - -package squeaknode; - -// Interface exported by the server. -service SqueakServer { - - /** sqk: `uploadsqueak` - */ - rpc UploadSqueak (UploadSqueakRequest) returns (UploadSqueakReply) {} - - /** sqk: `downloadsqueak` - */ - rpc DownloadSqueak (DownloadSqueakRequest) returns (DownloadSqueakReply) {} - - /** sqk: `lookupsqueakstodownload` - */ - rpc LookupSqueaksToDownload (LookupSqueaksToDownloadRequest) returns (LookupSqueaksToDownloadReply) {} - - /** sqk: `lookupsqueakstoupload` - */ - rpc LookupSqueaksToUpload (LookupSqueaksToUploadRequest) returns (LookupSqueaksToUploadReply) {} - - /** sqk: `downloadoffer` - */ - rpc DownloadOffer (DownloadOfferRequest) returns (DownloadOfferReply) {} - -} - -message UploadSqueakRequest { - /// Content of the squeak to be made. - Squeak squeak = 1; -} - -message DownloadSqueakRequest { - /// Hash of the squeak to get. - bytes hash = 1; -} - -message LookupSqueaksToDownloadRequest { - /// The bitcoin network - string network = 1; - /// List of the author addresses - repeated string addresses = 2; - /// Minimum block to look for - int32 min_block = 3; - /// Maximum block to look for - int32 max_block = 4; -} - -message LookupSqueaksToUploadRequest { - /// The bitcoin network - string network = 1; - /// List of the author addresses - repeated string addresses = 2; -} - -message DownloadOfferRequest { - /// Hash of the squeak to buy. - bytes hash = 1; -} - -message UploadSqueakReply { -} - -message DownloadSqueakReply { - /// The squeak. - Squeak squeak = 1; -} - -message LookupSqueaksToDownloadReply { - /// Hash of the squeak to get. - repeated bytes hashes = 1; -} - -message LookupSqueaksToUploadReply { - /// Hash of the squeak to get. - repeated bytes hashes = 1; - /// List of the author addresses - repeated string addresses = 2; - /// Minimum block to look for - int32 min_block = 3; - /// Maximum block to look for - int32 max_block = 4; -} - -message DownloadOfferReply { - /// The offer - Offer offer = 1; -} - -message Squeak { - /// Hash of the squeak. - bytes hash = 1; - - /// Serialized squeak. - bytes serialized_squeak = 2; -} - -message Offer { - /// The squeak hash. - bytes squeak_hash = 1; - - /// Nonce - bytes nonce = 2; - - /// The invoice - string payment_request = 3; - - /// The host of the seller lightning node - string host = 4; - - /// The port of the seller lightning node - int32 port = 5; -} - -// message Interested { -// /// List of the author addresses -// repeated string addresses = 1; -// /// Minimum block to look for -// int32 min_block = 2; -// /// Maximum block to look for -// int32 max_block = 3; -// }