Closed Poafs1 closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
celatone-frontend-staging | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 26, 2024 10:50am |
The recent changes standardize transaction handling within the application by introducing a unified messages
array across various transaction interfaces and functions. This transition simplifies parameter structures, enhances code clarity, and improves maintainability. Additionally, the method for retrieving transaction results has been refined to include the contract address, reinforcing the robustness of contract interactions. Collectively, these modifications enhance the flexibility and efficiency of the system's functionalities.
Files Changed | Change Summary |
---|---|
src/lib/app-fns/tx/*.tsx |
Consolidated parameters into a messages array of EncodeObject for transaction functions. Updated to use client.signAndBroadcast for processing. Enhanced success callback to return contract address. |
src/lib/app-provider/tx/*.ts |
Enhanced transaction handling by integrating new message types and refining onTxSucceed callback to include contract address. Improved message construction in hooks. |
src/lib/pages/instantiate/*.tsx |
Updated interfaces to replace InstantiateResult with DeliverTxResponse , added contractAddress to transaction info, improving data management during instantiation. |
src/lib/utils/tx/findAttr.ts |
Modified to accept an array of events instead of a single log, enhancing the functionality of attribute retrieval. |
src/lib/app-fns/tx/storeCode.tsx |
Streamlined the logic for retrieving transaction fees and removed unnecessary imports, improving code clarity. |
sequenceDiagram
participant User
participant App
participant Client
User->>App: Initiate transaction
App->>Client: Prepare messages
Client->>Client: signAndBroadcast(messages)
Client-->>App: Return DeliverTxResponse
App->>User: Display transaction result
🐰 In a world of code and charm,
A rabbit hops with code in arm.
New messages dance, fees are found,
With each transaction, joy abounds!
Hooray for changes, bright and clever,
In this code, we thrive forever! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
messages
array in transaction parameters, allowing for multiple messages per transaction.contractAddress
parameter to callback functions for better context after contract instantiation.Bug Fixes
Documentation
Refactor