Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 committed Nov 10, 2022
0 parents commit c34e112
Show file tree
Hide file tree
Showing 22 changed files with 2,111 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
on:
pull_request:
push:
branches:
- master

name: CI

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- uses: actions-rs/[email protected]
with:
crate: cargo-hack
version: latest
use-tool-cache: true

- uses: actions-rs/cargo@v1
with:
command: hack
args: check --workspace --ignore-private --each-feature --no-dev-deps

- uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --all-targets --all-features

- uses: actions-rs/cargo@v1
with:
command: test

- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
Cargo.lock
26 changes: 26 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "ethereum-jsonrpc"
version = "0.1.0"
edition = "2021"
description = "Definitions for various Ethereum JSONRPC APIs"
license = "MPL-2.0"

[dependencies]
arrayvec = { version = "0.7", features = ["serde"] }
ethereum-types = "0.14"
ethnum = { version = "1", default-features = false, features = ["serde"] }
jsonrpsee = { version = "0.16", features = ["macros"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_with = "2"
bytes = "1"
hex = "0.4"

[dev-dependencies]
ethereum-jsonrpc = { path = ".", features = ["client"] }
hex-literal = "0.3"
tokio = { version = "1", features = ["full"] }

[features]
client = ["jsonrpsee/client", "jsonrpsee/async-client"]
server = ["jsonrpsee/server"]
Loading

0 comments on commit c34e112

Please sign in to comment.