Conversation
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
howardwu
left a comment
There was a problem hiding this comment.
Change requests:
- Can you utilize the Ethereum types for Tron where they overlap? For example, one can define the TronAmount as EthereumAmount as follows:
pub type TronAmount = EthereumAmount;- Can you confirm the mnemonics are different in Tron than Ethereum?
Since Tron is a shameless clone of Ethereum, I believe you can share many of the resources, structs, and methods provided from the Ethereum implementation here.
| // "chinese_simplified" => output::<TronMainnet, ChineseSimplified>(options), | ||
| // "chinese_traditional" => output::<TronMainnet, ChineseTraditional>(options), | ||
| // "english" => output::<TronMainnet, English>(options), | ||
| // "french" => output::<TronMainnet, French>(options), | ||
| // "italian" => output::<TronMainnet, Italian>(options), | ||
| // "japanese" => output::<TronMainnet, Japanese>(options), | ||
| // "korean" => output::<TronMainnet, Korean>(options), | ||
| // "spanish" => output::<TronMainnet, Spanish>(options), | ||
| // _ => output::<TronMainnet, English>(options), |
| pub extern crate wagyu_model as model; | ||
| pub extern crate wagyu_monero as monero; | ||
| pub extern crate wagyu_zcash as zcash; | ||
| pub extern crate wagyu_tron as tron; |
There was a problem hiding this comment.
nit: please order alphabetically
| use wagyu::cli::ethereum::EthereumCLI; | ||
| use wagyu::cli::monero::MoneroCLI; | ||
| use wagyu::cli::zcash::ZcashCLI; | ||
| use wagyu::cli::tron::TronCLI; |
There was a problem hiding this comment.
nit: please order alphabetically
| EthereumCLI::new(), | ||
| MoneroCLI::new(), | ||
| ZcashCLI::new(), | ||
| TronCLI::new(), |
There was a problem hiding this comment.
nit: please order alphabetically
| ("ethereum", Some(arguments)) => EthereumCLI::print(EthereumCLI::parse(arguments)?), | ||
| ("monero", Some(arguments)) => MoneroCLI::print(MoneroCLI::parse(arguments)?), | ||
| ("zcash", Some(arguments)) => ZcashCLI::print(ZcashCLI::parse(arguments)?), | ||
| ("tron", Some(arguments)) => TronCLI::print(TronCLI::parse(arguments)?), |
There was a problem hiding this comment.
nit: please order alphabetically
|
|
||
| /// Returns a randomly-generated Tron private key. | ||
| fn new<R: Rng>(rng: &mut R) -> Result<Self, PrivateKeyError> { | ||
| // let random: [u8; 32] = rng.gen(); |
| - [3.1.2 Ethereum](#312-ethereum) | ||
| - [3.1.3 Monero](#313-monero) | ||
| - [3.1.4 Zcash](#314-zcash) | ||
| - [3.1.5 Tron](#315-tron) |
There was a problem hiding this comment.
nit: please order alphabetically
|
|
||
| [workspace] | ||
| members = [ "bitcoin", "ethereum", "model", "monero", "zcash" ] | ||
| members = [ "bitcoin", "ethereum", "model", "monero", "zcash", "tron" ] |
There was a problem hiding this comment.
nit: please order alphabetically
| wagyu-model = { path = "./model", version = "0.6.3" } | ||
| wagyu-monero = { path = "./monero", version = "0.6.3" } | ||
| wagyu-zcash = { path = "./zcash", version = "0.6.3" } | ||
| wagyu-tron = { path = "./tron", version = "0.6.3" } |
There was a problem hiding this comment.
nit: please order alphabetically
|
|
||
| [profile.release] | ||
| opt-level = 3 | ||
| opt-level = "z" |
There was a problem hiding this comment.
Can you help me understand the purpose of changing opt-level and codegen-units here?
Signed-off-by: Joeky <joeky5888@gmail.com>
As much as I understand your stand on DRY (don't repeat yourself). Here are some thoughts, I would like to keep them independent.
|
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Signed-off-by: Joeky <joeky5888@gmail.com>
Started out quite a while ago, I think it's time for contributing.
With this PR wagyu can generate or import standard/HD trx/trc20 wallets. However, tron transaction isn't implemented yet.