> For the complete documentation index, see [llms.txt](https://stellar-contract-invoker.gitbook.io/sci-stellar-contract-invoker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stellar-contract-invoker.gitbook.io/sci-stellar-contract-invoker/changelog.md).

# Changelog

## 📅 2025-04-24

## 🚀 Load Contract Interface Dynamically

### 📌 Summary of Changes

#### 1. **New Interface Loading Feature**

* Added a **"Load Contract"** button to fetch the interface of a smart contract.
* When the interface is successfully fetched:
  * The **function input field** is replaced by a **dropdown (select)** listing all available contract functions.
  * If the selected function requires parameters, **dynamic input fields** are automatically generated in the form.

#### 2. **Improved Interaction Flow**

* Simplifies the process of selecting and interacting with contract functions.
* Automatically adapts the UI based on the contract’s interface.

### 🔥 Impact of Changes

✅ Improved UX by reducing manual input.\
✅ Enables dynamic form generation based on contract structure.\
✅ Enhances flexibility and ease of use for interacting with smart contracts.

***

## 📅 2025-04-01

## 🚀 Re invoke Contract from History

### 📌 Summary of Changes

#### 1. **New Re-execution Feature**

* Enabled the ability to **re invoke contract functions** directly from the history.
* When clicking the **"Execute on Explorer"** button in the history modal, the following data is automatically loaded into the explorer:
  * `contractId`
  * `function`
  * `parameters`

#### 2. **Improved User Experience**

* Provides a faster and more efficient way to re-run previous contract calls.
* Streamlined the process of testing and debugging repeated interactions.

### 🔥 Impact of Changes

✅ Enhanced usability by allowing quick re-execution from history.\
✅ Better workflow for users needing to interact with contracts repeatedly.

***

## 📅 2025-03-17

## 🚀 Improve History Tracking with Detailed Response and Modal View

### 📌 Summary of Changes

#### 1. **Enhanced History Storage**

* Updated `contract-invoker` to send a **detailed response** to the Zustand store.
* `response` field now includes the full execution result.

#### 2. **Implemented History Details Modal**

* Created a modal to display full contract interaction details.
* Allows users to inspect stored responses more easily.

#### 3. **Improved UI/UX**

* Better visibility of contract execution history.
* Optimized navigation and data presentation.

### 🔥 Impact of Changes

✅ More transparent and detailed contract execution tracking.\
✅ Better debugging capabilities with stored response data.\
✅ Enhanced user experience with modal for history details.

***

## 📅 2025-02-27

### 🚀 Enhance UX with Persistent History, Mobile Fixes, and Changelog Access

### 📌 Summary of Changes

#### 1. Added contract execution history persistence

* Created a Zustand store (`useHistoryStore`) to store interactions with Stellar contracts.
* History is saved in `localStorage`, keeping a maximum of 10 records.

#### 2. Implemented history display in the UI

* Created the `History.tsx` component to list stored interactions.
* Displays contract ID, function name, network, timestamp, and execution status (`SUCCESS` or `FAILURE`).

#### 3. Fixed mobile navigation issues

* Resolved a responsiveness bug using `useMediaQuery` for better mobile experience.

#### 4. Added Changelog link to the landing page

* New link to **GitBook** on the landing page for easy access to the changelog.

### 🔥 Impact of Changes

✅ Improved user experience with persistent history and UI visibility.\
✅ Fixed mobile navigation issues.\
✅ Increased transparency with direct access to the changelog.

***

## 📅 2025-02-13

### 🚀 Enable Public and Testnet Network Communication

### 📌 Summary of Changes

#### 1. Enabled communication with both Public and Testnet networks

* Updated network handling logic to communicate based on the network connected to **Freighter Wallet**.
* Automatically switches between **Public** and **Testnet** environments according to the wallet's connection.

#### 2. Improved connection handling

* Ensured contract invocations work correctly on both networks based on **Freighter Wallet's** network.
* Optimized API calls to fetch network-specific data efficiently.

### 🔥 Impact of Changes

✅ Users can now interact with contracts on both **Public** and **Testnet** networks, depending on the **Freighter Wallet** connection.\
✅ Improved flexibility and usability for developers and testers.\
✅ Enhanced reliability of network switching without interruptions.

***

## 📅 2025-02-12

### 🚀 Changelog Page and State Management Enhancements

### 📌 Summary of Changes

#### 1. Created a Changelog Page

* Added a dedicated **Changelog** page for better transparency on updates.
* Allows users to easily track and review application changes directly within the app.

#### 2. Enhanced State Management

* Refined the state management architecture for smoother user experience and more efficient data flow throughout the app.

### 🔥 Impact of Changes

✅ Greater transparency and user empowerment with an accessible **Changelog** page.\
✅ More responsive app performance and improved user experience with the enhanced state management.
