Delete old peer rpc proto (#986)

This commit is contained in:
Jonathan Zernik 2021-08-20 00:30:50 -07:00 committed by GitHub
parent 1d4ec43a10
commit d9150be433
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 130 deletions

View file

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

View file

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