Skip to content

Commit

Permalink
fix: update rpc.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWad3r committed Jan 23, 2025
1 parent 364fd9a commit 4f6cb16
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
12 changes: 12 additions & 0 deletions nekoton-proto/src/protos/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import "google/protobuf/struct.proto";
package rpc;

message Request {

message GetLibraryCell {
bytes hash = 1;
}

message GetContractState {
bytes address = 1;
optional uint64 last_transaction_lt = 2;
Expand Down Expand Up @@ -48,6 +53,8 @@ message Request {
GetTransactionsList get_transactions_list = 9;
GetAccountsByCodeHash get_accounts_by_code_hash = 10;
SendMessage send_message = 11;

GetLibraryCell get_library_cell = 12;
}
}

Expand Down Expand Up @@ -91,6 +98,10 @@ message Response {
repeated bytes account= 1;
}

message GetLibraryCell {
optional bytes cell = 1;
}

message GetContractState {
message Timings {
uint64 gen_lt = 1;
Expand Down Expand Up @@ -141,6 +152,7 @@ message Response {
GetAccountsByCodeHash get_accounts = 8;
GetContractState get_contract_state = 9;
google.protobuf.Empty send_message = 10;
GetLibraryCell get_library_cell = 11;
}
}

Expand Down
28 changes: 14 additions & 14 deletions nekoton-proto/src/protos/rpc.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(oneof = "request::Call", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11")]
#[prost(oneof = "request::Call", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12")]
pub call: ::core::option::Option<request::Call>,
}
/// Nested message and enum types in `Request`.
pub mod request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLibraryCell {
#[prost(bytes = "bytes", tag = "1")]
pub hash: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetContractState {
Expand Down Expand Up @@ -52,13 +58,6 @@ pub mod request {
#[prost(bytes = "bytes", tag = "1")]
pub message: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLibraryCell {
#[prost(bytes = "bytes", tag = "1")]
pub hash: ::prost::bytes::Bytes,
}

#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Call {
Expand Down Expand Up @@ -161,15 +160,16 @@ pub mod response {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetContractState {
#[prost(oneof = "get_contract_state::State", tags = "1, 2, 3")]
pub state: ::core::option::Option<get_contract_state::State>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLibraryCell {
#[prost(bytes = "bytes", optional, tag = "1")]
pub cell: ::core::option::Option<::prost::bytes::Bytes>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetContractState {
#[prost(oneof = "get_contract_state::State", tags = "1, 2, 3")]
pub state: ::core::option::Option<get_contract_state::State>,
}
/// Nested message and enum types in `GetContractState`.
pub mod get_contract_state {
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down Expand Up @@ -267,7 +267,7 @@ pub mod response {
#[prost(message, tag = "10")]
SendMessage(()),
#[prost(message, tag = "11")]
GetLibraryCell(GetLibraryCell)
GetLibraryCell(GetLibraryCell),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down

0 comments on commit 4f6cb16

Please sign in to comment.