Inspiration

Our inspiration was to challenge our self to optimize the Sira contracts to manage user orders.

What it does

The project utilizes blockchain technology, specifically leveraging Ethereum Improvement Proposals (EIP) such as EIP-4337, EIP-712, and EIP-2612, to optimize the gas cost of contract transactions within the context of managing an order book. By implementing these standards and protocols, the system aims to achieve more efficient and cost-effective transaction processing on the blockchain network.

By incorporating these blockchain solutions and infrastructure, the project streamlines the execution of transactions related to order book management, leading to reduced gas costs and improved overall performance. This optimization not only enhances the user experience by making transactions more affordable but also contributes to the scalability and sustainability of blockchain-based systems.

In addition to transaction optimization and order management, we've developed a dividend contract that enables the allocation of funds in stablecoins, which can be claimed by shareholders. This contract enhances the financial flexibility of the system, providing shareholders with a mechanism to receive dividends in a stable and easily accessible form

How we built it

To address this inefficiency, we've implemented a novel approach by shifting certain transaction logic off-chain and entrusting it to a designated Broker entity. Through the use of abstract accounts and permit signatures provided by users off-chain, we facilitate batch transactions that consolidate multiple orders into a single transaction. This enables us to significantly reduce the frequency of on-chain interactions, consolidating them into a single day transaction (or any other frequency depend on business decisions)

When transactions are recorded on chain , salesmen can access the transaction data through our application. They have the capability to create sales orders off-chain, providing the necessary permit signature for authorization.

Our designated Broker entity, referred to as PPRA, maintains a comprehensive list of sales orders. Upon receipt of a sales order, the Broker verifies the details and may optionally apply additional fees. Any additional fees require confirmation from the salesman before being accepted. These confirmation processes occur off-chain to streamline operations.

Once both parties—the salesman and the Broker—have confirmed the sales orders, the Broker initiates the necessary actions using the same abstract account initially used for confirming booked orders.

Before the sales is confirmed by the Broker, the salesman or buyer retains the option to decline the transaction. If declined, the transaction will be subsequently aborted on the blockchain by the Broker in multi batch transaction. Additionally, permit operations include a deadline parameter, which specifies the validity period of the offer. The Broker is responsible for tracking these deadlines off-chain to ensure timely processing and management of offers.

In addition to the main project functionalities, we've abstracted the dividend feature as a separate contract. This modular design allows for flexibility in integrating dividend functionality into the platform as needed, without impacting the core project.

Challenges we ran into

The main problem was to decide what should stay on chain and what could be move to offchain logic. Also we spend allot of time trying to find a way to use (eip 4844) Proto-Danksharding

Accomplishments that we're proud of

  • gas optimization - with the idea of batch transactions and using permit to transfer the responsibility off chain
  • dividend feature to extend the system
  • add app simplicity for users
  • flexibility to adjust the core contracts for client demands

What we learned

Coordinating team operations within a short timeframe and adapting to dynamically changing project concepts provides a unique perspective on our usual work processes. It challenges us to be more agile, responsive, and adaptable in our approach, fostering a culture of innovation and collaboration. By embracing these changes, we gain valuable insights into our capabilities, strengths, and areas for improvement

What's next for Rumblefish_team

  • Finish what we started with full implementation
  • optimize the signature with Schnorr multisignature
Share this project:

Updates