Skip to content

Commit

Permalink
feat: add files
Browse files Browse the repository at this point in the history
  • Loading branch information
ts0yu authored Aug 29, 2024
1 parent bd9ba2e commit 2fefa3b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arena-core"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
repository = "https://github.com/arena-rs/arena"
description = "Framework for holistic economic modelling and simulation of Uniswap v4 strategies, hooks and pools."
Expand Down
1 change: 1 addition & 0 deletions src/artifacts/PoolModifyLiquidityTest.json

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use thiserror::Error;

/// Error type for Arena.
#[derive(Error, Debug)]
pub enum ArenaError {
/// Contract interaction failed.
#[error("alloy contract error {0}")]
ContractError(#[from] alloy_contract::Error),

/// Conversion error when parsing ether values.
#[error("alloy conversion error {0}")]
ConversionError(#[from] alloy::primitives::utils::UnitsError),
}

0 comments on commit 2fefa3b

Please sign in to comment.