Closed maxrobot closed 1 month ago
The changes include updates to the injective-testing
package, specifically versions 1.1.1 and 1.1.2, released on August 30, 2024. These versions address issues with denominators, particularly in calculations and spot markets. Additionally, the base denomination constant in the mock setup was changed, and hardcoded strings in the exchange.rs
file were replaced with constants for better maintainability.
File | Change Summary |
---|---|
packages/injective-testing/CHANGELOG.md |
Updated changelog for versions 1.1.1 and 1.1.2, detailing fixes for incorrect denominators. |
packages/injective-testing/Cargo.toml |
Updated version number from 1.1.0 to 1.1.2. |
packages/injective-testing/src/mocks.rs |
Changed MOCK_BASE_DENOM from "ubase" to "inj" . |
packages/injective-testing/src/test_tube/exchange.rs |
Replaced hardcoded strings with constants for denominators in various functions. |
sequenceDiagram
participant User
participant Exchange
participant Mocks
User->>Exchange: Launch Market
Exchange->>Mocks: Use MOCK_BASE_DENOM
Mocks-->>Exchange: Return "inj"
Exchange->>User: Market Launched
🐇
In the meadow, changes bloom,
With "inj" now, there's more room.
Constants guide the way we play,
No more strings to lead astray.
Hops of joy, the code's refined,
In our burrow, peace of mind! 🌼
See changelog
Summary by CodeRabbit
New Features
Bug Fixes
Chores
injective-testing
package to reflect new releases.