Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: protobuf updates to v3.3.0 #129

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ forest_encoding = "0.2.2"
cid = "0.8.6"
base64 = "0.13.0"
bytes = "1.0"
protobuf = { version = "3.1.0" }
protobuf = { version = "3.3.0" }
chrono = "0.4"
ethabi = "17.2.0"
regex = { version = "1.3" }
Expand Down
187 changes: 104 additions & 83 deletions anychain-tron/src/protocol/Discover.rs

Large diffs are not rendered by default.

5,105 changes: 2,640 additions & 2,465 deletions anychain-tron/src/protocol/Tron.rs

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions anychain-tron/src/protocol/account_contract.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is generated by rust-protobuf 3.2.0. Do not edit
// This file is generated by rust-protobuf 3.3.0. Do not edit
// .proto file is parsed by protoc --rust-out=...
// @generated

Expand All @@ -23,10 +23,10 @@

/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0;

#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.AccountCreateContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct AccountCreateContract {
// message fields
// @@protoc_insertion_point(field:protocol.AccountCreateContract.owner_address)
Expand Down Expand Up @@ -184,8 +184,8 @@ impl ::protobuf::reflect::ProtobufValue for AccountCreateContract {
}

/// Update account name. Account name is not unique now.
#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.AccountUpdateContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct AccountUpdateContract {
// message fields
// @@protoc_insertion_point(field:protocol.AccountUpdateContract.account_name)
Expand Down Expand Up @@ -325,8 +325,8 @@ impl ::protobuf::reflect::ProtobufValue for AccountUpdateContract {
}

/// Set account id if the account has no id. Account id is unique and case insensitive.
#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.SetAccountIdContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct SetAccountIdContract {
// message fields
// @@protoc_insertion_point(field:protocol.SetAccountIdContract.account_id)
Expand Down Expand Up @@ -465,8 +465,8 @@ impl ::protobuf::reflect::ProtobufValue for SetAccountIdContract {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}

#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.AccountPermissionUpdateContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct AccountPermissionUpdateContract {
// message fields
// @@protoc_insertion_point(field:protocol.AccountPermissionUpdateContract.owner_address)
Expand Down
16 changes: 8 additions & 8 deletions anychain-tron/src/protocol/asset_issue_contract.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is generated by rust-protobuf 3.2.0. Do not edit
// This file is generated by rust-protobuf 3.3.0. Do not edit
// .proto file is parsed by protoc --rust-out=...
// @generated

Expand All @@ -23,10 +23,10 @@
/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0;

#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.AssetIssueContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct AssetIssueContract {
// message fields
// @@protoc_insertion_point(field:protocol.AssetIssueContract.id)
Expand Down Expand Up @@ -474,8 +474,8 @@ impl ::protobuf::reflect::ProtobufValue for AssetIssueContract {

/// Nested message and enums of message `AssetIssueContract`
pub mod asset_issue_contract {
#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.AssetIssueContract.FrozenSupply)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct FrozenSupply {
// message fields
// @@protoc_insertion_point(field:protocol.AssetIssueContract.FrozenSupply.frozen_amount)
Expand Down Expand Up @@ -615,8 +615,8 @@ pub mod asset_issue_contract {
}
}

#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.TransferAssetContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct TransferAssetContract {
// message fields
// @@protoc_insertion_point(field:protocol.TransferAssetContract.asset_name)
Expand Down Expand Up @@ -791,8 +791,8 @@ impl ::protobuf::reflect::ProtobufValue for TransferAssetContract {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}

#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.UnfreezeAssetContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct UnfreezeAssetContract {
// message fields
// @@protoc_insertion_point(field:protocol.UnfreezeAssetContract.owner_address)
Expand Down Expand Up @@ -913,8 +913,8 @@ impl ::protobuf::reflect::ProtobufValue for UnfreezeAssetContract {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}

#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.UpdateAssetContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct UpdateAssetContract {
// message fields
// @@protoc_insertion_point(field:protocol.UpdateAssetContract.owner_address)
Expand Down Expand Up @@ -1107,8 +1107,8 @@ impl ::protobuf::reflect::ProtobufValue for UpdateAssetContract {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}

#[derive(PartialEq,Clone,Default,Debug)]
// @@protoc_insertion_point(message:protocol.ParticipateAssetIssueContract)
#[derive(PartialEq,Clone,Default,Debug)]
pub struct ParticipateAssetIssueContract {
// message fields
// @@protoc_insertion_point(field:protocol.ParticipateAssetIssueContract.owner_address)
Expand Down
Loading