mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
393c9965ae
* fix `make grpc` on new checkouts * update proto files * add some stub * prototype with fake events * notifying about events * pass events * events are being sent * transfer headers to filters * create the “filters” struct * implement new heads * PoC of New Heads subscription * fix keep alive * fixups for the client * add “type” to the event * support header event type on client * better stage refactor * fixup for the eth backend * fixups * fix tests * fix tests * fix linters * address comments * remove unused log
47 lines
843 B
Protocol Buffer
47 lines
843 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package remote;
|
|
|
|
option go_package = "./remote;remote";
|
|
option java_multiple_files = true;
|
|
option java_package = "io.turbo-geth.db";
|
|
option java_outer_classname = "ETHBACKEND";
|
|
|
|
service ETHBACKEND {
|
|
rpc Add(TxRequest) returns (AddReply);
|
|
rpc Etherbase(EtherbaseRequest) returns (EtherbaseReply);
|
|
rpc NetVersion(NetVersionRequest) returns (NetVersionReply);
|
|
rpc Subscribe(SubscribeRequest) returns (stream SubscribeReply);
|
|
}
|
|
|
|
message TxRequest {
|
|
bytes signedtx = 1;
|
|
}
|
|
|
|
message AddReply {
|
|
bytes hash = 1;
|
|
}
|
|
|
|
message EtherbaseRequest {
|
|
}
|
|
|
|
message EtherbaseReply {
|
|
bytes hash = 1;
|
|
}
|
|
|
|
message NetVersionRequest {
|
|
}
|
|
|
|
message NetVersionReply {
|
|
uint64 id = 1;
|
|
}
|
|
|
|
message SubscribeRequest {
|
|
}
|
|
|
|
message SubscribeReply {
|
|
uint64 type = 1; // type (only header at that moment)
|
|
bytes data = 2; // serialized data
|
|
}
|
|
|