I256 implementation (#175)
* Resolve: add I256 implementation * Resolve: add I256 implementation - Untracked files * fix: make i256 tests work Co-authored-by: 1saf <me@ansaf.net>
This commit is contained in:
parent
2769c97018
commit
1b12fd8aff
|
@ -678,6 +678,7 @@ dependencies = [
|
||||||
"glob",
|
"glob",
|
||||||
"hex",
|
"hex",
|
||||||
"k256",
|
"k256",
|
||||||
|
"once_cell",
|
||||||
"rand 0.7.3",
|
"rand 0.7.3",
|
||||||
"rlp",
|
"rlp",
|
||||||
"serde",
|
"serde",
|
||||||
|
|
|
@ -37,6 +37,8 @@ ethers = { version = "0.2", path = "../ethers" }
|
||||||
|
|
||||||
serde_json = { version = "1.0.53", default-features = false }
|
serde_json = { version = "1.0.53", default-features = false }
|
||||||
bincode = { version = "1.2.1", default-features = false }
|
bincode = { version = "1.2.1", default-features = false }
|
||||||
|
once_cell = { version = "1.5.2", default-features = false }
|
||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
celo = [] # celo support extends the transaction format with extra fields
|
celo = [] # celo support extends the transaction format with extra fields
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#![allow(clippy::all)]
|
#![allow(clippy::all)]
|
||||||
use crate::{
|
use crate::{
|
||||||
abi::Token,
|
abi::Token,
|
||||||
types::{Address, Bytes, H256, U128, U256},
|
types::{Address, Bytes, H256, I256, U128, U256},
|
||||||
};
|
};
|
||||||
|
|
||||||
use arrayvec::ArrayVec;
|
use arrayvec::ArrayVec;
|
||||||
|
@ -302,7 +302,7 @@ macro_rules! tokenizable_item {
|
||||||
}
|
}
|
||||||
|
|
||||||
tokenizable_item! {
|
tokenizable_item! {
|
||||||
Token, String, Address, H256, U256, U128, bool, Vec<u8>,
|
Token, String, Address, H256, U256, I256, U128, bool, Vec<u8>,
|
||||||
i8, i16, i32, i64, i128, u16, u32, u64, u128,
|
i8, i16, i32, i64, i128, u16, u32, u64, u128,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -10,6 +10,9 @@ pub use ethereum_types::{Address, Bloom, H160, H256, U128, U256, U64};
|
||||||
mod transaction;
|
mod transaction;
|
||||||
pub use transaction::{Transaction, TransactionReceipt, TransactionRequest};
|
pub use transaction::{Transaction, TransactionReceipt, TransactionRequest};
|
||||||
|
|
||||||
|
mod i256;
|
||||||
|
pub use i256::I256;
|
||||||
|
|
||||||
mod bytes;
|
mod bytes;
|
||||||
pub use self::bytes::Bytes;
|
pub use self::bytes::Bytes;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue