Blockchain Proxy Contract Reduces Deployment Costs
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The current method of managing service logic contracts on blockchain through proxy contracts results in high deployment costs and wastage of system resources due to repeated deployments of the same contract code, especially for contracts with fixed service functions.
Innovation Solution
A blockchain-based data processing method that involves receiving a service-logic-contract calling transaction, acquiring a management contract to retrieve proxy contract addresses, identifying the target proxy contract address, and executing the transaction through the associated service logic contract, thereby reducing the need for repeated deployments of service logic contracts.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If service logic contracts are deployed separately for each user or service needing fixed service functions, then each user can have dedicated contract access, but deployment cost and system resource consumption increase significantly
Solution Approach 1:
The patent implements a universal proxy contract that can serve multiple users and services by storing multiple service logic contract addresses. This single proxy contract replaces the need for separate contract deployments for each user, achieving multi-functionality while reducing overall system resource consumption and deployment costs.
Solution Approach 2:
The patent uses a copying mechanism where instead of deploying the entire service logic contract code multiple times, the system stores only the contract addresses in the proxy contract. This allows multiple users to access the same service logic contract through different proxy contract instances, reducing the quantity of actual contract code deployed.
2Reliability
If the same service logic contract code is deployed repeatedly for different users, then each user gets dedicated contract instances, but network storage usage and system resources are wasted
Solution Approach 1:
The proxy contract serves multiple users universally by maintaining a list of service logic contract addresses. This allows different users to access the same service logic contract through the proxy contract interface, eliminating redundant deployments and reducing network storage usage while maintaining reliable dedicated access for each user.
Solution Approach 2:
The system creates a reference copy mechanism where the proxy contract stores addresses of service logic contracts rather than copying the entire contract code. This allows multiple users to share the same service logic contract instances, reducing network storage requirements and system resource consumption.
3Productivity
If proxy contracts store multiple service logic contract addresses, then contract reusability increases, but contract management complexity increases
Solution Approach 1:
The patent segments the contract management into two distinct parts: the proxy contract that manages multiple service logic contract addresses, and the individual service logic contracts that contain the actual business logic. This segmentation allows the proxy contract to handle reusability efficiently while keeping the service logic contracts simple and maintainable, reducing overall management complexity.
Solution Approach 2:
The proxy contract acts as an intermediary between users and service logic contracts. It manages the complexity of storing multiple contract addresses and handling different user requests, while presenting a simplified interface to users. This intermediary role reduces the complexity at the user level while enabling efficient contract reusability.
Data Source
AI summary
A blockchain-based data processing method includes: receiving a service-logic-contract calling transaction associated with a first object; acquiring a management contract when a consensus on the service-logic-contract calling transaction is passed, a proxy contract corresponding to each proxy contract address being associated with a service logic contract in the management contract; acquiring, through the management contract, a proxy contract address associated with a first object on-chain address as a target proxy contract address; acquiring a target proxy contract corresponding to the target proxy contract address, and acquiring the service logic contract through the target proxy contract, the service logic contract being associated with the target proxy contract; and executing the service-logic-contract calling transaction through the service logic contract to obtain a transaction execution result, and writing the transaction execution result into the target proxy contract, the transaction execution result in the target proxy contract being associated with the first object.


