Skip to content

Commit

Permalink
feat: customizable gas markets (with EIP-1559 default), base fee osci…
Browse files Browse the repository at this point in the history
…llation, premium distribution (#1173)

Co-authored-by: cryptoAtwill <willes.lau@protocol.ai>
raulk and cryptoAtwill authored Oct 17, 2024
1 parent 9b4df00 commit 702d49b
Showing 33 changed files with 1,533 additions and 153 deletions.
112 changes: 83 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -34,7 +34,10 @@ members = [
"fendermint/tracing",
"fendermint/vm/*",
"fendermint/actors",
"fendermint/actors/api",
"fendermint/actors/chainmetadata",
"fendermint/actors/eam",
"fendermint/actors/gas_market/eip1559",
]

[workspace.package]
@@ -179,6 +182,7 @@ ipc_ipld_resolver = { path = "ipld/resolver" }
ipc-types = { path = "ipc/types" }
ipc-observability = { path = "ipc/observability" }
ipc_actors_abis = { path = "contracts/binding" }
fendermint_actors_api = { path = "fendermint/actors/api" }

# Vendored for cross-compilation, see https://github.com/cross-rs/cross/wiki/Recipes#openssl
# Make sure every top level build target actually imports this dependency, and don't end up
8 changes: 5 additions & 3 deletions fendermint/actors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -6,9 +6,8 @@ edition.workspace = true
license.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
fendermint_actor_chainmetadata = { path = "chainmetadata", features = [
"fil-actor",
] }
fendermint_actor_chainmetadata = { path = "chainmetadata", features = ["fil-actor"] }
fendermint_actor_gas_market_eip1559 = { path = "gas_market/eip1559", features = ["fil-actor"] }
fendermint_actor_eam = { path = "eam", features = ["fil-actor"] }

[dependencies]
@@ -18,8 +17,11 @@ fvm_ipld_blockstore = { workspace = true }
fvm_ipld_encoding = { workspace = true }
fendermint_actor_chainmetadata = { path = "chainmetadata" }
fendermint_actor_eam = { path = "eam" }
fendermint_actor_gas_market_eip1559 = { path = "gas_market/eip1559" }

[build-dependencies]
anyhow = { workspace = true }
fil_actors_runtime = { workspace = true, features = ["test_utils"] }
fil_actor_bundler = "6.1.0"
num-traits = { workspace = true }
toml = "0.8.19"
34 changes: 34 additions & 0 deletions fendermint/actors/api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[package]
name = "fendermint_actors_api"
description = "API and interface types for pluggable actors."
license.workspace = true
edition.workspace = true
authors.workspace = true
version = "0.1.0"

[lib]
## lib is necessary for integration tests
## cdylib is necessary for Wasm build
crate-type = ["cdylib", "lib"]

[dependencies]
anyhow = { workspace = true }
cid = { workspace = true }
fil_actors_runtime = { workspace = true }
fvm_ipld_blockstore = { workspace = true }
fvm_ipld_encoding = { workspace = true }
fvm_shared = { workspace = true }
log = { workspace = true }
multihash = { workspace = true }
num-derive = { workspace = true }
num-traits = { workspace = true }
serde = { workspace = true }
hex-literal = { workspace = true }
frc42_dispatch = { workspace = true }

[dev-dependencies]
fil_actors_evm_shared = { workspace = true }
fil_actors_runtime = { workspace = true, features = ["test_utils"] }

[features]
fil-actor = ["fil_actors_runtime/fil-actor"]
Loading

0 comments on commit 702d49b

Please sign in to comment.