Update naming
This commit is contained in:
42
bdchain/api/tx_ledger.proto
Normal file
42
bdchain/api/tx_ledger.proto
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bdchain.api;
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
import "bdchain/api/common.proto";
|
||||
|
||||
option go_package = "bdchain/api/protobuf/tx_ledger";
|
||||
option java_package = "bdchain.protobuf";
|
||||
option java_outer_classname = "TransactionLedgerProto";
|
||||
option java_multiple_files = true;
|
||||
|
||||
service TransactionLedger {
|
||||
rpc CreateLedger (CreateLedgerRequest) returns (CreateLedgerResponse);
|
||||
rpc GetLedgers (google.protobuf.Empty) returns (GetLedgersResponse);
|
||||
rpc SendTransaction (SendTransactionRequest) returns (SendTransactionResponse);
|
||||
}
|
||||
|
||||
message CreateLedgerRequest {
|
||||
string name = 1;
|
||||
}
|
||||
message CreateLedgerResponse {
|
||||
bool ok = 1;
|
||||
}
|
||||
|
||||
message GetLedgersResponse {
|
||||
repeated string ledgers = 1;
|
||||
}
|
||||
|
||||
message SendTransactionRequest {
|
||||
string ledger = 1;
|
||||
message Transaction {
|
||||
TransactionType type = 1;
|
||||
bytes from = 2;
|
||||
bytes to = 3;
|
||||
bytes data = 4;
|
||||
}
|
||||
Transaction transaction = 2;
|
||||
}
|
||||
message SendTransactionResponse {
|
||||
bytes hash = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user