Skip to content

Commit

Permalink
feat: JSON bindings (#19)
Browse files Browse the repository at this point in the history
Automatically-generated JSON bindings and specification
  • Loading branch information
DaniPopes authored Dec 12, 2023
1 parent 6aba720 commit 013eb68
Show file tree
Hide file tree
Showing 8 changed files with 1,131 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
assets/chains.json linguist-generated
assets/chains.schema.json linguist-generated
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,30 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/alloy-rs/chains/compare/v0.1.3...HEAD)
## [Unreleased](https://github.com/alloy-rs/chains/compare/v0.1.4...HEAD)

### Added

- `is_testnet` and `native_currency_symbol` methods ([#14])
- Chain specification ([#19])

[#14]: https://github.com/alloy-rs/chains/pull/14
[#19]: https://github.com/alloy-rs/chains/pull/19

## [0.1.4](https://github.com/alloy-rs/chains/releases/tag/v0.1.4) - 2023-12-01

### Added

- Scroll sepolia chain ([#17])

### Changed

- OP stack blocktimes ([#12])
- Shanghai support for Polygon ([#16])

[#12]: https://github.com/alloy-rs/chains/pull/12
[#16]: https://github.com/alloy-rs/chains/pull/16
[#17]: https://github.com/alloy-rs/chains/pull/17

## [0.1.3](https://github.com/alloy-rs/chains/releases/tag/v0.1.3) - 2023-11-20

Expand Down
10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ num_enum = { version = "0.7", default-features = false }
strum = { version = "0.25", default-features = false, features = ["derive"] }

# serde
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
serde = { version = "1.0", default-features = false, features = [
"derive",
"alloc",
], optional = true }

# rlp
alloy-rlp = { version = "0.3", default-features = false, features = ["derive"], optional = true }
Expand All @@ -25,6 +28,9 @@ alloy-rlp = { version = "0.3", default-features = false, features = ["derive"],
arbitrary = { version = "1.3.2", default-features = false, optional = true }
proptest = { version = "1.4", default-features = false, features = ["alloc"], optional = true }

# schema
schemars = { version = "0.8", optional = true }

[dev-dependencies]
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }

Expand All @@ -34,3 +40,5 @@ std = ["strum/std", "serde?/std"]
serde = ["dep:serde"]
rlp = ["dep:alloy-rlp"]
arbitrary = ["dep:arbitrary", "dep:proptest"]

schema = ["std", "dep:schemars"]
Loading

0 comments on commit 013eb68

Please sign in to comment.