Skip to content

Commit

Permalink
Merge pull request #36 from shuhuiluo/derive
Browse files Browse the repository at this point in the history
Update various dependencies and derive traits for `TradeType` and `Ro…
  • Loading branch information
malik672 authored Feb 4, 2024
2 parents 52dff9d + d99621c commit 552a471
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 61 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/.DS_Store
/.DS_Store
.idea
89 changes: 32 additions & 57 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uniswap-sdk-core"
version = "0.11.0"
version = "0.12.0"
edition = "2021"
authors = ["malik <[email protected]>", "Shuhui Luo <twitter.com/aureliano_law>"]
description = "The Uniswap SDK Core in Rust provides essential functionality for interacting with the Uniswap decentralized exchange"
Expand All @@ -9,7 +9,7 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
alloy-primitives = "0.6.0"
alloy-primitives = "0.6"
bigdecimal = "0.4.2"
eth_checksum = "0.1.2"
lazy_static = "1.4.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add this to your Cargo.toml

```
[dependencies]
uniswap-sdk-core = "0.10.0";
uniswap-sdk-core = "0.12.0";
```

And this to your code:
Expand Down
2 changes: 2 additions & 0 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ use crate::prelude::*;
use alloy_primitives::U256;
use num_bigint::Sign;

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TradeType {
ExactInput,
ExactOutput,
}

#[derive(Clone, Copy, Debug, PartialEq)]
pub enum Rounding {
RoundDown,
RoundHalfUp,
Expand Down

0 comments on commit 552a471

Please sign in to comment.