From 649d11774b43b33a9c3c4570401886698885e8b7 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Fri, 8 Jan 2021 13:57:52 +0100 Subject: [PATCH] update uint and ethereum-types (#201) --- cli/Cargo.toml | 4 ++-- derive/Cargo.toml | 4 ++-- derive/src/event.rs | 3 +-- derive/src/function.rs | 3 +-- derive/src/lib.rs | 2 +- ethabi/Cargo.toml | 6 +++--- 6 files changed, 10 insertions(+), 12 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 9c0252c89..653e65901 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ethabi-cli" -version = "12.0.0" +version = "13.0.0" authors = [ "Parity Technologies ", "Artem Vorotnikov ", @@ -14,7 +14,7 @@ edition = "2018" [dependencies] anyhow = "1" -ethabi = { version = "12.0.0", path = "../ethabi" } +ethabi = { version = "13.0.0", path = "../ethabi" } hex = "0.4" sha3 = "0.9" structopt = "0.3" diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 3b3d8794d..ed51d902d 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ethabi-derive" -version = "12.0.0" +version = "13.0.0" authors = ["Parity Technologies "] homepage = "https://github.com/paritytech/ethabi" license = "Apache-2.0" @@ -13,7 +13,7 @@ proc-macro = true [dependencies] anyhow = "1" -ethabi = { path = "../ethabi", version = "12.0.0" } +ethabi = { path = "../ethabi", version = "13.0.0" } heck = "0.3.1" syn = { version = "1.0.13", default-features = false, features = ["derive", "parsing", "printing", "proc-macro"] } quote = "1.0.2" diff --git a/derive/src/event.rs b/derive/src/event.rs index 875d41e28..079ce7ac0 100644 --- a/derive/src/event.rs +++ b/derive/src/event.rs @@ -7,9 +7,8 @@ // except according to those terms. use heck::{CamelCase, SnakeCase}; -use proc_macro2::TokenStream; +use proc_macro2::{Span, TokenStream}; use quote::quote; -use syn::export::Span; use super::{from_token, get_template_names, rust_type, to_syntax_string, to_token}; diff --git a/derive/src/function.rs b/derive/src/function.rs index 643631bed..0021061f4 100644 --- a/derive/src/function.rs +++ b/derive/src/function.rs @@ -7,9 +7,8 @@ // except according to those terms. use heck::SnakeCase; -use proc_macro2::TokenStream; +use proc_macro2::{Span, TokenStream}; use quote::quote; -use syn::export::Span; use super::{ from_template_param, from_token, get_output_kinds, get_template_names, input_names, rust_type, template_param_type, diff --git a/derive/src/lib.rs b/derive/src/lib.rs index 1fb127166..d44e8a4dd 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -18,9 +18,9 @@ mod function; use anyhow::anyhow; use ethabi::{Contract, Param, ParamType, Result}; use heck::SnakeCase; +use proc_macro2::Span; use quote::quote; use std::{env, fs, path::PathBuf}; -use syn::export::Span; const ERROR_MSG: &str = "`derive(EthabiContract)` failed"; diff --git a/ethabi/Cargo.toml b/ethabi/Cargo.toml index bc0773e4a..469554d9e 100644 --- a/ethabi/Cargo.toml +++ b/ethabi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ethabi" -version = "12.0.0" +version = "13.0.0" authors = [ "Parity Technologies ", "Artem Vorotnikov ", @@ -18,9 +18,9 @@ hex = "0.4" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" sha3 = "0.9" -ethereum-types = "0.9.0" +ethereum-types = "0.10.0" thiserror = "1" -uint = "0.8.2" +uint = "0.9.0" [dev-dependencies] hex-literal = "0.3"