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

Porting transaction examples from ethers #302

Closed
wants to merge 3 commits into from
Closed
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
31 changes: 22 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["crates/*"]
members = ["crates/*", "examples/*"]
resolver = "2"

[workspace.package]
Expand All @@ -10,7 +10,7 @@ authors = ["Alloy Contributors"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/alloy-rs/next"
repository = "https://github.com/alloy-rs/next"
exclude = ["benches/", "tests/"]
exclude = ["benches/", "tests/", "examples/"]

[workspace.metadata.docs.rs]
all-features = true
Expand Down Expand Up @@ -44,10 +44,18 @@ alloy-transport-ws = { version = "0.1.0", default-features = false, path = "crat
test-utils = { version = "0.1.0", default-features = false, path = "crates/internal-test-utils", package = "alloy-internal-test-utils" }

alloy-core = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-dyn-abi = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-json-abi = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-primitives = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-sol-types = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-dyn-abi = { version = "0.6.4", default-features = false, features = [
"std",
] }
alloy-json-abi = { version = "0.6.4", default-features = false, features = [
"std",
] }
alloy-primitives = { version = "0.6.4", default-features = false, features = [
"std",
] }
alloy-sol-types = { version = "0.6.4", default-features = false, features = [
"std",
] }

alloy-rlp = "0.3"

Expand All @@ -56,8 +64,13 @@ ethereum_ssz_derive = "0.5"
ethereum_ssz = "0.5"

# crypto
elliptic-curve = { version = "0.13", default-features = false, features = ["std"] }
k256 = { version = "0.13", default-features = false, features = ["ecdsa", "std"] }
elliptic-curve = { version = "0.13", default-features = false, features = [
"std",
] }
k256 = { version = "0.13", default-features = false, features = [
"ecdsa",
"std",
] }
sha2 = { version = "0.10", default-features = false, features = ["std"] }
spki = { version = "0.7", default-features = false, features = ["std"] }

Expand Down Expand Up @@ -107,4 +120,4 @@ tempfile = "3.10"
# This should only be used in `alloy-contract` tests.
[patch.crates-io]
# alloy-sol-macro = { git = "https://github.com/alloy-rs/core", rev = "ab0cab1047a088be6cffa4e7a2fcde7cf77aa460" }
alloy-sol-macro = { git = "https://github.com/alloy-rs/core", branch = "dani/sol-event-filters" }
# alloy-sol-macro = { git = "https://github.com/alloy-rs/core", branch = "dani/sol-event-filters" }
29 changes: 29 additions & 0 deletions examples/transactions/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "examples-transactions"
version = "0.0.0"
publish = false

authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
exclude.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dev-dependencies]
alloy-primitives.workspace = true
alloy-sol-types = { workspace = true, features = ["json"] }
alloy-provider.workspace = true
alloy-rpc-types.workspace = true
alloy-rpc-client.workspace = true
alloy-rpc-trace-types.workspace = true
alloy-node-bindings.workspace = true
alloy-transport.workspace = true
alloy-transport-http.workspace = true
alloy-network.workspace = true
tokio = { version = "1.36.0", features = ["rt-multi-thread", "macros"] }
eyre = "0.6.12"
reqwest = "0.11.26"
698 changes: 698 additions & 0 deletions examples/transactions/examples/contracts/ERC20Example.json

Large diffs are not rendered by default.

Loading