Skip to content

Commit

Permalink
Merge pull request #132 from 0xcregis/main
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
aya015757881 authored Oct 9, 2023
2 parents 075ca71 + af59bcd commit 6df958f
Show file tree
Hide file tree
Showing 17 changed files with 3,093 additions and 2,713 deletions.
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
4 changes: 2 additions & 2 deletions anychain-tron/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "anychain-tron"
description = "A Rust library for Tron-focused cryptocurrency wallets, enabling seamless transactions on the Tron blockchain"
version = "0.1.2"
version = "0.2.0"
keywords = ["tron", "blockchain", "cryptocurrency", "wallet", "transactions"]

# Workspace inherited keys
Expand All @@ -14,7 +14,7 @@ repository = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anychain-core = { path = "../anychain-core", version = "0.1.1" }
anychain-core = { path = "../anychain-core", version = "0.1.2" }
serde = { workspace = true }
sha3 = { workspace = true }
sha2 = { workspace = true }
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

0 comments on commit 6df958f

Please sign in to comment.