Skip to content

Commit

Permalink
I256 CoreArith v0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-soshte committed Aug 29, 2024
1 parent c41710e commit 300441a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
workspace = { members = ["example"] }
[package]
name = "soroban-math"
version = "0.2.5"
version = "0.2.6"
edition = "2021"
description = "Fixed-Point Math Library for soroban smart contracts with advanced math and high precision"
license = "Apache-2.0"
Expand All @@ -13,4 +13,4 @@ authors = ["Rahul Soshte <[email protected]>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
soroban-sdk = "21.5.0"
soroban-sdk = "21.6.0"
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add this to your Cargo.toml:

```toml
[dependencies]
soroban-math = "0.2.5"
soroban-math = "0.2.6"
```

And this to your code:
Expand All @@ -26,11 +26,14 @@ use soroban_math::*;
```

## Features
1. High-Precision Arithmetic: Perform calculations with numbers using the i128 type, ensuring precision and accuracy.
1. High-Precision Arithmetic: Perform calculations with numbers using the i128/I256 type, ensuring precision and accuracy.
2. Advanced Math Functions: Access advanced mathematical functions like logarithms, exponentiation, and more.
3. Ergonomic API: An intuitive API for easy integration into Soroban smart contracts.
4. Minimized Rounding Losses: Specialized techniques to reduce rounding errors during calculations.
5. Security: Audit-ready code to ensure the safety and correctness of calculations.

## Some Notes

I am monitoring and maintaining this repo closely. Writing test cases. I cannot ask you to assume that the library is 100% safe to use in all scenarios. If you need my consultation while integrating this library and implementing it as safely as possible in your project / hands-on custom implementation, I sure can do it, of course that will be come with some price tag, please DM me on [Twitter](https://twitter.com/RahulSoshte) or mail me here, [email protected].

## Use Cases

Expand Down
2 changes: 1 addition & 1 deletion example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
doctest = false

[dependencies]
soroban-sdk = { version = "21.5.0", features = ["testutils"] }
soroban-sdk = { version = "21.6.0", features = ["testutils"] }
soroban-math = { path = "../" }

# [dev-dependencies]
Expand Down

0 comments on commit 300441a

Please sign in to comment.