Data processing method, device and equipment based on block chain and readable storage medium
By introducing a current asset pool and an iterative coordination and processing mechanism for orders in the asset exchange contract, the problem of inefficient transaction efficiency of asset transfer orders is solved, and more efficient asset conversion is achieved.
Patent Information
- Application Number
- CN202311614387.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2025-05-30
AI Technical Summary
In the case of insufficient order liquidity in asset exchange contracts, a large number of orders that cannot be traded may appear in the order pool, resulting in inefficient transaction efficiency of asset transfer to orders.
By receiving asset transfer transactions, calling asset exchange coordination contracts to generate asset transfer orders, and obtaining asset transfer restriction order pools and current asset pools, iterative coordination processing of orders, generating iterative coordination of asset transfer orders, and finally digital asset transfer processing.
The transaction efficiency of asset transfer to orders is improved, and multiple coordination possibilities are provided by introducing a current asset pool, which avoids the problem of poor order transactions in the order pool.
Smart Images

Figure CN120069874A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technologies, and in particular, to a data processing method, apparatus, device, and readable storage medium based on a blockchain. Background Art
[0002] When blockchain users conduct exchanges of different digital assets, they can complete the exchanges through asset exchange contracts deployed in the blockchain network. Among them, digital assets can be bound to off-chain assets, and the digital assets are used to prove the ownership of the bound off-chain assets on the blockchain.
[0003] Currently, some commonly used asset exchange contracts usually complete the matching of exchange orders based on an order pool (which can also be referred to as an order book). An order pool refers to a set of currently unexecuted exchange orders, usually sorted by price. When an asset exchange contract obtains a new asset transfer-in order, it will match it with the unexecuted asset transfer-out orders in the asset transfer-out order pool. If the matching fails, it will be deposited into the asset transfer-in order pool until an asset transfer-out order that matches it is waited for. Among them, an asset transfer-in order refers to an order to exchange digital assets of an asset transfer-out type for digital assets of an asset transfer-in type; an asset transfer-out order refers to an order to exchange digital assets of an asset transfer-in type for digital assets of an asset transfer-out type. However, in the case of insufficient order liquidity in the asset exchange contract, a large number of unexecuted orders may appear in the order pool. Summary of the Invention
[0004] Embodiments of this application provide a data processing method, apparatus, device, and readable storage medium based on a blockchain, which can improve the execution efficiency of asset transfer-in orders.
[0005] On the one hand, embodiments of this application provide a data processing method based on a blockchain, including:
[0006] Receiving an asset transfer-in transaction, and invoking an asset exchange coordination contract to generate an asset transfer-in order corresponding to the asset transfer-in transaction; the asset transfer-in order is used to indicate exchanging digital assets of an asset transfer-out type for digital assets of an asset transfer-in type that transfer the target asset into an account;
[0007] Obtaining an asset transfer-out restricted order pool and a liquid asset pool; the asset transfer-out restricted order pool contains M asset transfer-out restricted orders, where M is a positive integer; one asset transfer-out restricted order is used to indicate exchanging digital assets of an asset transfer-in type for digital assets of an asset transfer-out type that transfer an asset out of an account; the liquid asset pool contains digital assets of an asset transfer-out type and digital assets of an asset transfer-in type that satisfy a constant quantity relationship;
[0008] Perform order iterative coordination processing on the asset transfer order according to the asset transfer restriction order pool and the liquid asset pool to obtain an iteratively coordinated asset transfer order; the iteratively coordinated asset transfer order includes at least one of N asset transfer restriction orders or L coordinated asset flow orders; the N asset transfer restriction orders belong to M asset transfer restriction orders; N is a positive integer, and L is a positive integer; a coordinated asset flow order is used to indicate converting the digital assets of the asset transfer type in the liquid asset pool into digital assets of the asset transfer type.
[0009] According to the iteratively coordinated asset transfer order and the asset transfer order, perform digital asset transfer processing on the iteratively coordinated asset transfer object and the target asset transfer account; the iteratively coordinated asset transfer object includes at least one of the asset transfer accounts associated with the N asset transfer restriction orders or the liquid asset pool.
[0010] One aspect of the embodiments of the present application provides a blockchain-based data processing device, including:
[0011] An order generation module, configured to receive an asset transfer transaction and call an asset exchange coordination contract to generate an asset transfer order corresponding to the asset transfer transaction; the asset transfer order is used to indicate converting the digital assets of the asset transfer type in the target asset transfer account into digital assets of the asset transfer type.
[0012] An acquisition module, configured to acquire an asset transfer restriction order pool and a liquid asset pool; the asset transfer restriction order pool includes M asset transfer restriction orders, where M is a positive integer; one asset transfer restriction order is used to indicate converting the digital assets of the asset transfer type in an asset transfer account into digital assets of the asset transfer type; the liquid asset pool includes digital assets of the asset transfer type and digital assets of the asset transfer type that satisfy a constant quantity relationship.
[0013] An iterative coordination module, configured to perform order iterative coordination processing on the asset transfer order according to the asset transfer restriction order pool and the liquid asset pool to obtain an iteratively coordinated asset transfer order; the iteratively coordinated asset transfer order includes at least one of N asset transfer restriction orders or L coordinated asset flow orders; the N asset transfer restriction orders belong to M asset transfer restriction orders; N is a positive integer, and L is a positive integer; a coordinated asset flow order is used to indicate converting the digital assets of the asset transfer type in the liquid asset pool into digital assets of the asset transfer type.
[0014] An asset transfer module, configured to perform digital asset transfer processing on the iteratively coordinated asset transfer object and the target asset transfer account according to the iteratively coordinated asset transfer order and the asset transfer order; the iteratively coordinated asset transfer object includes at least one of the asset transfer accounts associated with the N asset transfer restriction orders or the liquid asset pool.
[0015] Among them, the asset transfer-in order includes the asset transfer-in quantity;
[0016] The iterative coordination module includes:
[0017] The first order determination unit is configured to, in the i-th round of order coordination processing, determine the i-th round of coordinated asset transfer-out order according to the i-th round of iterative asset transfer-out restricted order pool and iterative current asset pool; when i is 1, the i-th round of iterative asset transfer-out restricted order pool is the asset transfer-out restricted order pool, and the i-th round of iterative current asset pool is the current asset pool; the i-th round of coordinated asset transfer-out order is the asset transfer-out restricted order belonging to the i-th round of iterative asset transfer-out restricted order pool, or the coordinated asset flow order generated according to the i-th round of iterative current asset pool;
[0018] The quantity determination unit is configured to, if the coordinated asset transfer-out quantity corresponding to the i-th round of coordinated asset transfer-out order is less than the i-th round of to-be-coordinated asset transfer-in quantity, determine the difference between the i-th round of to-be-coordinated asset transfer-in quantity and the coordinated asset transfer-out quantity corresponding to the i-th round of coordinated asset transfer-out order as the i + 1-th round of to-be-coordinated asset transfer-in quantity;
[0019] The update unit is configured to update the i-th round of iterative asset transfer-out restricted order pool and iterative current asset pool according to the i-th round of coordinated asset transfer-out order, to obtain the i + 1-th round of iterative asset transfer-out restricted order pool and iterative current asset pool;
[0020] The second order determination unit is configured to determine the i + 1-th round of coordinated asset transfer-out order according to the i + 1-th round of iterative asset transfer-out restricted order pool and iterative current asset pool;
[0021] The coordinated order determination unit is configured to, if the coordinated asset transfer-out quantity corresponding to the i + 1-th round of coordinated asset transfer-out order is greater than the i + 1-th round of to-be-coordinated asset transfer-in quantity, determine the coordinated asset transfer-out orders determined in the previous i + 1 rounds as the iterative coordinated asset transfer-out orders.
[0022] Among them, an asset transfer-out restricted order includes an asset transfer-out restriction value; an asset transfer-out restriction value is used to represent the minimum exchange quantity of the digital assets of the asset transfer-out type required to exchange the digital assets of one asset transfer-in type in one asset transfer-out account;
[0023] The first order determination unit includes:
[0024] The first acquisition subunit is configured to acquire the lowest asset transfer-out restricted order in the i-th round of iterative asset transfer-out restricted order pool; the lowest asset transfer-out restricted order is the asset transfer-out restricted order with the lowest asset transfer-out restriction value included in the i-th round of iterative asset transfer-out restricted order pool;
[0025] A second acquisition subunit, configured to acquire an asset transfer flow value corresponding to the iterative liquid asset pool in the i-th round; the asset transfer flow value is used to represent the exchange quantity of the digital assets of the asset transfer type required for exchanging a digital asset of an asset transfer-in type in the iterative liquid asset pool in the i-th round.
[0026] A first determination subunit, configured to determine the lowest asset transfer limit order as the coordinated asset transfer order in the i-th round if the asset transfer limit value included in the lowest asset transfer limit order is less than the asset transfer flow value.
[0027] A second determination subunit, configured to generate a coordinated asset flow order according to the asset transfer limit value included in the lowest asset transfer limit order and the iterative liquid asset pool in the i-th round and determine the generated coordinated asset flow order as the coordinated asset transfer order in the i-th round if the asset transfer limit value included in the lowest asset transfer limit order is greater than the asset transfer flow value.
[0028] Wherein, the second determination subunit is specifically configured to acquire an asset transfer flow quantity and an asset transfer-in flow quantity corresponding to the iterative liquid asset pool in the i-th round; the asset transfer flow quantity refers to the asset quantity of the digital assets of the asset transfer type corresponding to the iterative liquid asset pool in the i-th round; the asset transfer-in flow quantity refers to the asset quantity of the digital assets of the asset transfer-in type corresponding to the iterative liquid asset pool in the i-th round; determine a constant total asset liquidity value according to a constant quantity relationship between the asset transfer flow quantity and the asset transfer-in flow quantity; determine a remaining asset transfer-in flow quantity according to the constant total asset liquidity value and the asset transfer limit value; determine the asset transfer flow quantity and the remaining asset transfer-in flow quantity as an exchangeable asset transfer-in flow quantity, and generate a coordinated asset flow order according to the exchangeable asset transfer-in flow quantity.
[0029] Wherein, the update unit includes:
[0030] A first update subunit, configured to update the asset transfer-in flow quantity and the asset transfer flow quantity corresponding to the iterative liquid asset pool in the i-th round according to the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round and the constant total asset liquidity value when the coordinated asset transfer order in the i-th round is a coordinated asset flow order generated according to the iterative liquid asset pool in the i-th round, and determine the updated iterative liquid asset pool in the i-th round as the iterative liquid asset pool in the (i + 1)-th round.
[0031] The first update subunit is further configured to determine the iterative asset transfer limit order pool in the i-th round as the iterative asset transfer limit order pool in the (i + 1)-th round.
[0032] Among them, the first update subunit is specifically used to update the transferred asset quantity of the iterative liquid asset pool in the i-th round to the latest transferred asset quantity; the latest transferred asset quantity is the difference between the transferred asset quantity and the coordinated asset transfer quantity; according to the constant quantity relationship corresponding to the total value of constant asset liquidity and the latest transferred asset quantity, determine the latest transferred asset quantity for transfer out; update the transferred asset quantity for transfer out of the iterative liquid asset pool in the i-th round to the latest transferred asset quantity for transfer out; and determine the updated iterative liquid asset pool in the i-th round as the iterative liquid asset pool in the (i + 1)-th round.
[0033] Among them, the update unit includes:
[0034] The second update subunit is used to, when the coordinated asset transfer order in the i-th round is an asset transfer restriction order belonging to the iterative asset transfer restriction order pool in the i-th round, remove the coordinated asset transfer order in the i-th round from the iterative asset transfer restriction order pool in the i-th round, and determine the iterative asset transfer restriction order pool after removal as the iterative asset transfer restriction order pool in the (i + 1)-th round;
[0035] The second update subunit is also used to determine the iterative liquid asset pool in the i-th round as the iterative liquid asset pool in the (i + 1)-th round.
[0036] Among them, the asset transfer-in order further includes an asset transfer-in limit value; the asset transfer-in limit value is used to represent the maximum exchange quantity of the digital asset of the asset transfer-out type provided when the target asset transfer-in account exchanges for a digital asset of an asset transfer-in type.
[0037] The above data processing device further includes:
[0038] The limit processing module is used to, if the coordinated asset transfer value corresponding to the coordinated asset transfer order in the i-th round is less than or equal to the asset transfer-in limit value, call the quantity determination unit to execute the step of, if the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round is less than the to-be-coordinated asset transfer-in quantity in the i-th round, determining the difference between the to-be-coordinated asset transfer-in quantity in the i-th round and the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round as the to-be-coordinated asset transfer-in quantity in the (i + 1)-th round;
[0039] The restriction processing module is also used to, if the coordinated asset transfer value corresponding to the coordinated asset transfer order in the i-th round is greater than the asset transfer-in limit value, determine the coordinated asset transfer orders determined in the previous i - 1 rounds as iterative coordinated asset transfer orders.
[0040] Among them, the iterative coordinated asset transfer object includes X coordinated asset transfer objects; X is a positive integer;
[0041] The asset transfer module includes:
[0042] A traversal unit for traversing X coordinated asset transfer-out objects to obtain the j-th coordinated asset transfer-out object; j is a positive integer less than or equal to X;
[0043] A coordinated quantity determination unit for determining the transfer-out coordinated quantity and the transfer-in coordinated quantity corresponding to the j-th coordinated asset transfer-out object according to the iterative coordinated asset transfer order and the asset transfer-in order;
[0044] An asset transfer unit for transferring the coordinated transfer-in digital assets to the target asset transfer-in account and transferring the coordinated transfer-out digital assets to the j-th coordinated asset transfer-out object; the coordinated transfer-in digital assets refer to the digital assets of the asset transfer-in type corresponding to the transfer-out coordinated quantity; the coordinated transfer-out digital assets refer to the digital assets of the asset transfer-out type corresponding to the transfer-in coordinated quantity.
[0045] Among them, the asset transfer unit includes:
[0046] A first transfer sub-unit for, if the j-th coordinated asset transfer-out object is a liquid asset pool, transferring the coordinated transfer-in digital assets in the j-th coordinated asset transfer-out object to the target asset transfer-in account and transferring the coordinated transfer-out digital assets in the coordinated contract asset pool to the j-th coordinated asset transfer-out object; the coordinated transfer-out digital assets are transferred from the target asset transfer-in account to the coordinated contract asset pool when the asset transfer-in order is generated;
[0047] A second transfer sub-unit for, if the j-th coordinated asset transfer-out object is an asset transfer restriction order, transferring the coordinated transfer-in digital assets in the coordinated contract asset pool to the target asset transfer-in account and transferring the coordinated transfer-out digital assets in the coordinated contract asset pool to the j-th coordinated asset transfer-out object; the coordinated transfer-in digital assets are transferred from the j-th coordinated asset transfer-out object to the coordinated contract asset pool when the asset transfer restriction order associated with the j-th coordinated asset transfer-out object is generated.
[0048] Among them, the asset transfer-in order includes the asset transfer-in quantity;
[0049] The above data processing device further includes:
[0050] An order storage module for summing up the transfer-out coordinated quantities corresponding to the X coordinated asset transfer-out objects respectively to obtain the asset already transferred-in quantity corresponding to the asset transfer-in order;
[0051] The order storage module is further used for, if the asset already transferred-in quantity is less than the asset transfer-in quantity, determining the difference between the asset transfer-in quantity and the asset already transferred-in quantity as the remaining asset transfer-in quantity;
[0052] The order storage module is further configured to update the transferred asset quantity included in the asset transfer order to the remaining asset transfer quantity, and add the updated asset transfer order to the asset transfer limit order pool; the asset transfer limit order pool is used to perform order iteration coordination processing with the liquid asset pool when the asset exchange coordination contract generates an asset transfer order; the asset transfer order is used to indicate converting the digital asset of the asset transfer type transferred out of the target asset account into the digital asset of the asset transfer type.
[0053] On the one hand, an embodiment of the present application provides a computer device, including: a processor, a memory, and a network interface;
[0054] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface. Among them, the above-mentioned network interface is used to provide a data communication network element, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program to execute the method in the embodiment of the present application.
[0055] On the one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is adapted to be loaded and executed by a processor to execute the method in the embodiment of the present application.
[0056] On the one hand, an embodiment of the present application provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the embodiment of the present application.
[0057] In the embodiments of the present application, an asset transfer coordination contract can be invoked to generate an asset transfer order corresponding to an asset transfer transaction. This asset transfer order is used to indicate converting digital assets of the asset transfer-out type to be transferred into an account into digital assets of the asset transfer-in type. Then, an asset transfer restriction order pool and a liquid asset pool are obtained. The asset transfer restriction order pool contains M asset transfer restriction orders, where M is a positive integer. One asset transfer restriction order is used to indicate converting digital assets of the asset transfer-in type in an asset transfer-out account into digital assets of the asset transfer-out type. Then, based on the asset transfer restriction order pool and the liquid asset pool, order iterative coordination processing is performed on the asset transfer order to obtain an iteratively coordinated asset transfer order. Finally, based on the iteratively coordinated asset transfer order and the asset transfer order, digital asset transfer processing is performed on the iteratively coordinated asset transfer object and the target asset transfer-in account. Among them, the iteratively coordinated asset transfer order includes at least one of N asset transfer restriction orders or L coordinated asset flow orders; the N asset transfer restriction orders belong to the M asset transfer restriction orders; N is a positive integer, and L is a positive integer; one coordinated asset flow order is used to indicate converting digital assets of the asset transfer-in type in the liquid asset pool into digital assets of the asset transfer-out type; the iteratively coordinated asset transfer object includes at least one of the asset transfer-out accounts associated with the N asset transfer restriction orders or the liquid asset pool. Through the method provided in the embodiments of the present application, when coordinating the asset transfer order, in addition to using the asset transfer restriction order pool containing the unfulfilled M asset transfer restriction orders, a liquid asset pool providing liquidity support is introduced, providing multiple possibilities for coordinating the asset transfer order. The finally obtained iteratively coordinated asset transfer order is no longer limited to the fixed asset transfer restriction orders, but can also include coordinated asset flow orders flexibly generated based on the liquid asset pool, thereby improving the fulfillment efficiency of the asset transfer order. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0059] Figure 1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
[0060] Figure 2 is a schematic diagram of an application scenario of a data processing method provided by an embodiment of the present application;
[0061] Figure 3 is a schematic flowchart of a data processing method based on a blockchain provided by an embodiment of the present application;
[0062] Figure 4 It is a schematic diagram of an application scenario for digital asset transfer provided by an embodiment of the present application;
[0063] Figure 5 It is a schematic flow diagram of a method for order iteration coordination processing based on blockchain provided by an embodiment of the present application;
[0064] Figure 6 It is a schematic structural diagram of a data processing device based on blockchain provided by an embodiment of the present application;
[0065] Figure 7 It is a schematic structure of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0066] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present application.
[0067] Please refer to Figure 1 , Figure 1 It is a schematic diagram of a network architecture provided by an embodiment of the present application. Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. It is mainly used to sort data in chronological order, encrypt it into a ledger, make it unforgeable and tamper-proof, and at the same time, data verification, storage, and update can be performed. Blockchain is essentially a decentralized database, and each node in this database stores an identical blockchain. The blockchain network can distinguish nodes into consensus nodes and business nodes, where the consensus nodes are responsible for the consensus of the entire blockchain network. The process of writing transaction data into the ledger in the blockchain network can be as follows: The client sends transaction data to the business node, and then this transaction data is passed among the business nodes in the blockchain network in a relay manner until the consensus node receives this transaction data. The consensus node then packs this transaction data into a block, conducts consensus with other consensus nodes, and after the consensus is passed, the block carrying this transaction data is written into the ledger.
[0068] Among them, it can be understood that a block is a data packet carrying transaction data (i.e., transaction operations) on the blockchain network, and it is a data structure marked with a timestamp and the hash value of the previous block. The block is verified by the consensus mechanism of the network and the transactions in the block are determined.
[0069] Among them, it can be understood that a hash value, also known as an information feature value or a feature value, is generated by converting input data of any length into a cipher through a hash algorithm and performing a fixed output. The original input data cannot be retrieved by decrypting the hash value, and it is a one-way encryption function. In a blockchain, each block (except the initial block) contains the hash value of the previous block, and the previous block is called the parent block of the current block. The hash value is the potential core foundation and the most important aspect in blockchain technology. It preserves the authenticity of recording and viewing data, as well as the integrity of the blockchain as a whole.
[0070] Among them, it can be understood that a smart contract can be included in the blockchain system. In the blockchain system, a smart contract can be understood as a piece of code that can be understood and executed by each node of the blockchain (including consensus nodes), and can execute any logic and obtain results. Users can initiate a transaction service request through the client to call the smart contract that has been deployed on the blockchain. Subsequently, the business nodes on the blockchain can send the transaction service request to the consensus nodes, and each consensus node on the blockchain can run the smart contract separately. It should be understood that one or more smart contracts can be included in the blockchain, and these smart contracts can be distinguished by an identity document (ID) or a name. In the transaction service request initiated by the client, the ID or name of the smart contract can also be carried to specify the smart contract that the blockchain needs to run. If the smart contract specified by the client is a contract that needs to read data, each consensus node will access the local ledger to read the data. Finally, each consensus node will verify whether the execution results are consistent with each other (that is, perform consensus). If they are consistent, the execution results can be stored in their respective local ledgers and the execution results can be returned to the client.
[0071] As Figure 1 shown, the network architecture can include a blockchain node cluster 1000, a business server (server) cluster 100, and a terminal device (client) cluster 10. The blockchain node cluster 1000 can include at least two blockchain nodes. As Figure 1 shown, the blockchain node cluster 1000 can include blockchain node 1000a, blockchain node 1000b,..., blockchain node 1000n. The business server cluster 100 can specifically include business server 100a, business server 100b,..., business server 100n. The terminal device cluster 10 can specifically include terminal device 10a, terminal device 10b,..., terminal device 10n.
[0072] As Figure 1As shown, the terminal devices 10a, 10b, …, 10n can be respectively connected to the service servers 100a, 100b, …, 100n for data connection, so that the terminal devices can perform data interaction with the service servers through this data connection; the service servers 100a, 100b, …, 100n can be respectively connected to the blockchain nodes 1000a, 1000b, …, 1000n for data connection, so that the service servers can perform data interaction with the blockchain nodes through this data connection; the blockchain nodes 1000a, 1000b, …, 1000n are interconnected with each other, so that data interaction can be carried out between the blockchain nodes.
[0073] It can be understood that data or blocks can be transmitted between the blockchain nodes through the above data connection. The blockchain network can implement the data connection between the blockchain nodes based on the node identifiers. For each blockchain node in the blockchain network, there is a corresponding node identifier, and each of the above blockchain nodes can store the node identifiers of other blockchain nodes that are connected to itself, so as to broadcast the obtained data or generated blocks to other blockchain nodes according to the node identifiers of other blockchain nodes in the future. For example, the blockchain node 1000a can maintain a node identifier list as shown in Table 1, and this node identifier list stores the node names and node identifiers of other nodes:
[0074] Table 1
[0075] Node Name Node Identifier Blockchain Node 1000a AAA.AAA.AAA.AAA Blockchain Node 1000b BBB.BBB.BBB.BBB … … Blockchain Node 1000n CCC.CCC.CCC.CCC
[0076] Among them, the node identifier can be the Internet Protocol (IP) address for network interconnection and any other information that can be used to identify the blockchain nodes in the blockchain network. Table 1 only takes the IP address as an example for illustration. For example, the blockchain node 1000a can send information (such as transaction data) to the blockchain node 1000b through the node identifier BBB.BBB.BBB.BBB, and the blockchain node 1000b can determine that this information is sent by the blockchain node 1000a through the node identifier AAA.AAA.AAA.AAA.
[0077] In the blockchain, before a block is chained, the block must go through consensus by the consensus nodes in the blockchain network and can be added to the blockchain only after the consensus is passed. It can be understood that when the blockchain is used in some scenarios of government or commercial organizations, not all participating nodes in the blockchain (i.e., the blockchain nodes in the above blockchain node cluster 1000) have sufficient resources and necessity to become the consensus nodes of the blockchain. For example, inFigure 1 In the blockchain node cluster 1000 shown, the blockchain nodes 1000a, 1000b, and 1000n can be used as consensus nodes in the blockchain node cluster. The consensus nodes in the blockchain node cluster 1000 participate in consensus, that is, they perform consensus on blocks (including a batch of transactions), including generating blocks and voting on blocks; while non-consensus nodes do not participate in consensus, but will help spread block and voting messages, and synchronize states with each other, etc.
[0078] Among them, it can be understood that the above data connection is not limited to the connection method, and can be directly or indirectly connected through wired communication, or can be directly or indirectly connected through wireless communication, or can also be connected through other connection methods, which are not limited in this application.
[0079] It can be understood that the blockchain-based data processing method provided by the embodiments of this application can be executed by a computer device, and the computer device includes but is not limited to the above blockchain nodes (which can be terminals or servers), business servers, and terminal devices. The above server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The above terminal devices can be smartphones, tablets, laptops, desktop computers, smart speakers, smart watches, etc., but are not limited thereto.
[0080] It can be understood that the embodiments of this application can be applied to various scenarios, including but not limited to scenarios such as cloud technology, artificial intelligence, intelligent transportation, and assisted driving.
[0081] It can be understood that in the specific implementation of this application, for relevant data such as transaction data, when the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions.
[0082] Such as Figure 1As shown, each terminal device in the terminal device cluster can be installed with a business application client. When the business application client runs on each terminal device, it can perform data interaction with the business background server corresponding to the business application client respectively, so that the business background server can receive business data from each terminal device. Among them, the business background server corresponding to the business application client can be any business server in the above-mentioned business server cluster 100. Among them, the application client can be a game application, a video editing application, a social application, an instant messaging application, a live broadcast application, a short video application, a video application, a music application, a shopping application, a novel application, a payment application, a browser, etc., which have the function of displaying data information such as text, images, audio, and video. Among them, the business application client can be an independent client or an embedded sub-client integrated in a certain client (such as an instant messaging client, a social client, a video client, etc.), which is not limited here.
[0083] As Figure 1 shown, each terminal device in the terminal device cluster can also be installed with an asset client. The asset client is a tool for managing and storing user digital assets. For example, digital assets can be transferred to other blockchain accounts based on the asset client, and digital assets transferred from other blockchain accounts can be received based on the asset client. Among them, digital assets refer to new intangible assets issued, registered, stored, held, transferred, or traded based on blockchain technology. These intangible assets exist in a digital form in a specific system and serve as digital identifiers of value or rights. The asset client can be a hardware device or a software program. In this application, the asset client of the target object can establish a communication connection with the business application client to implement related operations such as authorized login of the target object. Among them, the asset client can be an independent client or an embedded sub-client integrated in the business application client, which is not limited here.
[0084] It can be understood that in addition to transferring digital assets of the same asset type through the asset client, the target object can also exchange digital assets of different digital asset types through the asset client. For example, if the target object has digital assets of the asset transfer type and wants to exchange the digital assets of the asset transfer type it owns into digital assets of the asset transfer-in type, it can perform an asset exchange operation through the asset client. The terminal device can respond to the digital asset exchange operation, generate a digital asset exchange request, and then send the digital asset exchange request to the business server. The business server can generate an asset transfer-in transaction based on the digital asset exchange request and then send the asset transfer-in transaction to the blockchain node (which can be any blockchain node in the above-mentioned blockchain node cluster 1000, such as blockchain node 1000a).
[0085] As Figure 1 shown, after receiving an asset transfer-in transaction, a blockchain node can call an asset exchange coordination contract to generate an asset transfer-in order corresponding to the asset transfer-in transaction. This asset transfer-in order is used to indicate converting digital assets of the asset transfer-out type to be transferred into an account (i.e., the blockchain account corresponding to the target object) into digital assets of the asset transfer-in type. Then, the blockchain node can obtain an asset transfer-out restriction order pool and a liquid asset pool, and perform order iterative coordination processing on the asset transfer-in order according to the asset transfer-out restriction order pool and the liquid asset pool to obtain an iteratively coordinated asset transfer-out order. Among them, the asset transfer-out restriction order pool contains M asset transfer-out restriction orders, where M is a positive integer; one asset transfer-out restriction order is used to indicate converting digital assets of the asset transfer-in type of an asset transfer-out account into digital assets of the asset transfer-out type. Among them, the liquid asset pool contains digital assets of the asset transfer-out type and digital assets of the asset transfer-in type that satisfy a constant quantity relationship. This constant quantity relationship means that the quantity of transferred-in assets corresponding to the digital assets of the asset transfer-out type and the quantity of transferred-out assets corresponding to the digital assets of the asset transfer-out type always satisfy a constant formula, such as the constant product formula, that is, the quantity of transferred-in assets * the quantity of transferred-out assets = k, where k is a constant that remains unchanged. Among them, the iteratively coordinated asset transfer-out order contains at least one of N asset transfer-out restriction orders or L coordinated asset flow orders; the N asset transfer-out restriction orders belong to the M asset transfer-out restriction orders; N is a positive integer, and L is a positive integer; one coordinated asset flow order is used to indicate converting digital assets of the asset transfer-in type in the liquid asset pool into digital assets of the asset transfer-out type. Finally, the blockchain node can perform digital asset transfer processing on the iteratively coordinated asset transfer-out object and the target asset transfer-in account according to the iteratively coordinated asset transfer-out order and the asset transfer-in order. Among them, the iteratively coordinated asset transfer-out object contains at least one of the asset transfer-out accounts associated with the N asset transfer-out restriction orders or the liquid asset pool respectively.
[0086] For ease of understanding the above process, please also refer to Figure 2 , Figure 2 which is a schematic diagram of an application scenario of a data processing method provided by an embodiment of this application. Among them, as Figure 2 shown, the blockchain node 20 can be the above Figure 1Any blockchain node in the blockchain node cluster 1000 shown, such as blockchain node 20, is blockchain node 1000a. In order to better understand the coordination process between different types of orders, in the subsequent description process, it can be assumed that the asset transfer type is digital asset type D, and a digital asset of digital asset type D is described as 1d, that is, 5 digital assets of digital asset type D are 5d; assuming that the asset transfer type is digital asset type E, a digital asset of digital asset type E is described as 1e, that is, 10 digital assets of digital asset type E are 10e.
[0087] like Figure 2 As shown, the blockchain node 20 can receive an asset transfer transaction 21 initiated by object Y. A feasible initiation process of the asset transfer transaction 21 can be: object Y uses a terminal device with an associated relationship (which can be the above Figure 1 Any terminal device in the terminal device cluster 10 shown in the figure, for example, the terminal device can be the asset client in the terminal device 10a) to perform a business operation. After the terminal device responds to the business operation, it will generate a business request, and then the terminal device will send the business request to the corresponding business server (which can be the above-mentioned Figure 1 Any business server in the business server cluster 100 shown, such as the business server 100a), will respond to the business request and perform corresponding business processing. Assuming that the business request is used to exchange the digital asset of digital asset type D of object Y on the blockchain into a digital asset of digital asset type E, the business server will generate an asset transfer transaction 21 and then send the asset transfer transaction 21 to the blockchain node 20.
[0088] like Figure 2 As shown, the blockchain node 20 includes an asset exchange coordination contract 22, and the asset exchange coordination contract 22 may include an order pool for storing unsuccessful asset transfer restriction orders, such as an asset transfer restriction order pool 221. The asset transfer restriction order pool 221 includes multiple asset transfer restriction orders, each of which is used to instruct the exchange of digital assets of digital asset type E of an asset transfer account into digital assets of digital asset type D. Figure 2As shown, the asset transfer restriction order pool 221 may include asset transfer restriction orders 221a, 221b, …, 221m. Among them, the asset transfer restriction order 221a may include an asset transfer restriction value (assumed to be 50) and an asset transfer quantity (assumed to be 10), indicating that this asset transfer restriction order 221a is used to instruct to transfer out 10e from the associated asset transfer account at an exchange ratio of at least 50d per 1e. That is to say, if an asset transfer-in order for exchanging 1e with 49d is generated, this asset transfer-in order cannot be coordinated with the asset transfer restriction order 221a. Additionally, optionally, the asset transfer restriction orders in the asset transfer restriction order pool 221 may be sorted from low to high according to the level of the asset transfer restriction value. Therefore, as Figure 2 shown, sorted according to the level of the asset transfer restriction value, in the asset transfer restriction order 221b, the asset transfer restriction value is 52 and the asset transfer quantity is 10; in the asset transfer restriction order 221m, the asset transfer restriction value is 53 and the asset transfer quantity is 20.
[0089] In addition, as Figure 2 shown, the asset exchange coordination contract 22 may also include a liquid asset pool 222. The liquid asset pool 222 contains digital assets of digital asset type D and digital assets of digital asset type E that satisfy a constant quantity relationship. For example, the liquid asset pool 222 currently contains 50000d and 1000e, and the constant quantity relationship it needs to satisfy is 50000 * 1000 = 50000000. That is to say, no matter how the digital assets of the two digital types in the liquid asset pool change, it is always necessary to ensure that the product of the asset quantity of the digital assets of digital asset type D and the asset quantity of the digital assets of digital asset type E is 50000000. Based on the constant quantity relationship, the liquid asset pool 222 can also realize the exchange of digital assets between different digital asset types. For example, when it is necessary to obtain 25000d from the liquid asset pool 222, in order to maintain this constant quantity relationship, it is necessary to transfer 1000e into the liquid asset pool 222. That is, when there are 25000d in the liquid asset pool, then there should be 2000e. However, it can be understood that it is also precisely based on the constant quantity relationship that there is an exchange slippage in the liquid asset pool 222. That is, based on the constant quantity relationship, the asset transfer flow value for exchanging 1e corresponding to the liquid asset pool 222 can be given as 50, but actually, it takes (50000000 / 999) - 50000000 ≈ 50.05d to exchange 1e, and when there are only 999e left in the liquid asset pool 222 and continue to exchange 1e, it takes (50000000 / 998) - 50000050.05 ≈ 50.15d.
[0090] As Figure 2As shown in the figure, after the blockchain node 20 receives the asset transfer transaction 21, it will first call the asset exchange coordination contract 22 to generate an asset transfer order 223 corresponding to the asset transfer transaction 21. Suppose the asset transfer quantity included in the asset transfer order 223 is 12 and the asset transfer limit value is 51. Then, the asset transfer order 223 is used to indicate obtaining 12e for object Y, and for each 1e exchanged, at most 51d owned by object Y can be given. Then, the blockchain node 20 will perform order iteration coordination processing on the asset transfer order 223 according to the asset transfer limit order pool 221 and the liquid asset pool 222.
[0091] As Figure 2 shown, since in the exchange requirements of the asset transfer order 223, at most 51d can be given for each 1e exchanged. During the order iteration coordination processing by the blockchain node 20, in principle, it will first match the order with the highest exchange cost performance for the asset transfer order 223. As can be seen from the above, the asset transfer limit value of the asset transfer limit order 221a in the asset transfer limit order pool 221 is 50, and the asset transfer liquidity value corresponding to the liquid asset pool 222 is 50. However, the actual amount required to exchange 1e in the liquid asset pool 222 usually exceeds the asset transfer liquidity value. Therefore, the blockchain node 20 will first coordinate the asset transfer limit order 221a for the asset transfer order 223. That is to say, the blockchain node 20 will first determine the asset transfer order 2241 for iterative coordination of asset transfer as the asset transfer limit order 221a. However, since the asset transfer quantity in the asset transfer limit order 221a is 10 and the asset transfer quantity in the asset transfer order 233 is 12, at this time, the asset transfer order 223 still needs to obtain 2e, that is, the blockchain node 20 still needs to continue to coordinate an order with low exchange cost performance for the asset transfer order 223. From Figure 2 this, it can be known that in the asset transfer limit order pool 221, excluding the asset transfer limit order 221a, the asset transfer limit order with the lowest asset transfer limit value is the asset transfer limit order 221b, and its asset transfer limit value is 52, which is not only much higher than the asset transfer liquidity value corresponding to the liquid asset pool 222 but also higher than the asset transfer limit value of the asset transfer order 223. The blockchain node 20 cannot continue to coordinate a suitable asset transfer limit order for the asset transfer order 223 from the asset transfer limit order pool 221. However, the blockchain node 20 can also generate a coordinated asset liquidity order based on the liquid asset pool 222, that is, the iterative coordination asset transfer order 2242. This iterative coordination asset transfer order 2242 is used to indicate that it requires 100.2d to exchange 2e from the liquid asset pool 222. It should be understood that when generating a coordinated asset liquidity order based on the liquid asset pool 222, it is necessary to ensure that the exchange of 1e does not exceed the asset transfer limit value of the asset transfer order 223.
[0092] As Figure 2As shown, after the order iteration coordination process, blockchain node 20 obtains the iterative coordination asset transfer order 224 (including iterative coordination asset transfer order 2241 and iterative coordination asset transfer order 2242). Blockchain node 20 will, based on the iterative coordination asset transfer order 224 and the asset transfer-in order 223, perform digital asset transfer processing on the iterative coordination asset transfer object associated with iterative coordination asset transfer order 2241 (i.e., the asset transfer account associated with asset transfer restriction order 221a), the iterative coordination asset transfer object associated with iterative coordination asset transfer order 2242 (i.e., the liquid asset pool), and the target asset transfer-in account associated with asset transfer order 223 (i.e., the blockchain account of object Y). From Figure 2 it can be seen that after the digital asset transfer processing is completed, both the asset quantity of digital asset type D and the asset quantity of digital asset type E in the liquid asset pool 222 have changed. In addition, in the asset transfer restriction order pool 221, the asset transfer restriction order 221a that has participated in coordination will be removed.
[0093] Thus, through the method provided in the embodiments of the present application, the existence of the liquid asset pool 222 provides liquidity support for the asset transfer restriction order pool 221. When there is no suitable asset transfer restriction order in the asset transfer restriction order pool 221 that can be coordinated with the asset transfer order 223, a coordinated asset flow order for coordinating with the asset transfer order 223 can be flexibly generated based on the liquid asset pool 222, further accelerating the transaction efficiency of the asset transfer order. In addition, when there is an asset transfer restriction order in the asset transfer restriction order pool 221 that can be coordinated with the asset transfer order 223, the size of the asset transfer restriction value and the asset transfer flow value can also be compared first to determine whether to prioritize coordinating the asset transfer restriction order or the coordinated asset flow order for the asset transfer order 223, thereby reducing the asset quantity of digital asset type D required by object Y when obtaining digital asset type E digital assets.
[0094] Further, please refer to Figure 3 , Figure 3 which is a schematic flowchart of a blockchain-based data processing method provided by the embodiments of the present application. Among them, this method can be executed by a computer device (for example, the blockchain node 1000a in the corresponding embodiment above Figure 1 ). The following will take the execution of this method by a computer device as an example for description. Among them, this blockchain-based data processing method can at least include the following steps S101 - step S104:
[0095] Step S101: Receive an asset transfer-in transaction and call an asset exchange coordination contract to generate an asset transfer-in order corresponding to the asset transfer-in transaction.
[0096] Specifically, the asset exchange coordination contract can be a smart contract in a blockchain network that helps different blockchain accounts complete asset exchanges. It is mainly responsible for processing asset exchange transactions related to digital assets, that is, generating exchange orders corresponding to asset exchange transactions, coordinating different asset exchange orders, and transferring digital assets in the blockchain accounts associated with the successfully coordinated asset exchange orders. For ease of understanding, in the subsequent description of this application, from the perspective of the target object, the type of digital asset that the target object wants to obtain is called the asset transfer-in type, and the type of digital asset used by the target object to exchange for the asset transfer-in type is called the asset transfer-out type. Therefore, an asset transfer-in transaction can be an asset exchange transaction initiated by the target object to exchange its digital assets of the asset transfer-out type into digital assets of the asset transfer-in type. Correspondingly, an asset exchange transaction initiated by other objects to exchange their digital assets of the asset transfer-in type into digital assets of the asset transfer-out type can be called an asset transfer-out transaction.
[0097] Specifically, an asset transfer-in transaction may carry an asset exchange coordination contract identifier (or asset exchange coordination contract name) corresponding to the asset exchange coordination contract. When a blockchain node receives an asset transfer-in transaction, it can call the asset exchange coordination contract through the asset exchange coordination contract identifier it contains, and then generate an asset transfer-in order corresponding to the asset transfer-in transaction through the asset exchange coordination contract. This asset transfer-in order is used to indicate the exchange of digital assets of the asset transfer-out type in the target asset transfer-in account into digital assets of the asset transfer-in type. Among them, the target asset transfer-in account refers to the asset transfer-in account of the target object. An asset transfer-in account refers to a blockchain account that wants to obtain digital assets of the asset transfer-in type during the asset exchange process. Correspondingly, a blockchain account that wants to obtain digital assets of the asset transfer-out type during the asset exchange process can be called an asset transfer-out account.
[0098] Step S102: Obtain an asset transfer-out restricted order pool and a liquid asset pool; the asset transfer-out restricted order pool contains M asset transfer-out restricted orders, where M is a positive integer.
[0099] Specifically, the asset transfer restriction order pool can also be referred to as the asset transfer restriction order book, which can be understood as a set or list for displaying the currently unexecuted asset transfer restriction orders. An asset transfer restriction order is used to indicate converting the digital assets of the asset transfer type in an asset transfer account into the digital assets of the asset transfer type. It can be understood that an asset transfer restriction order usually includes an asset transfer restriction value and an asset transfer quantity. Among them, the asset transfer quantity is used to represent the quantity of the digital assets of the asset transfer type that can be transferred from the associated asset transfer account for asset exchange; the asset transfer restriction value is used to represent the minimum exchange quantity of the digital assets of the asset transfer type required to exchange one digital asset of the asset transfer type in the associated asset transfer account. For example, when the asset transfer restriction value included in the asset transfer restriction order O1 is 20, it indicates that when trying to obtain one digital asset of the asset transfer type in the asset transfer account A1 associated with the asset transfer restriction order O1, at least 20 digital assets of the asset transfer type are required for exchange. Optionally, in order to speed up the subsequent order iteration and coordination process, the asset transfer restriction order pool can sort the asset transfer restriction orders according to the level of the asset transfer restriction value included in each asset transfer restriction order. For example, sort from low to high.
[0100] Specifically, the liquid asset pool contains digital assets of the asset transfer type and digital assets of the asset transfer type that satisfy a constant quantity relationship. This constant quantity relationship means that the quantity of the transferred-in assets corresponding to the digital assets of the asset transfer type and the quantity of the transferred-out assets corresponding to the digital assets of the asset transfer type always satisfy a constant formula, such as the constant product formula, that is, the quantity of the transferred-in assets * the quantity of the transferred-out assets = k, where k is a constant that remains unchanged. It can be understood that based on this constant formula, the asset transfer liquidity value corresponding to the liquid asset pool can be determined. This asset transfer liquidity value is used to represent the exchange quantity of the digital assets of the asset transfer type required to exchange one digital asset of the asset transfer type in the liquid asset pool. However, in fact, the exchange quantity of the digital assets of the asset transfer type required to exchange one digital asset of the asset transfer type in the liquid asset pool is usually higher than this asset transfer liquidity value, and the asset transfer liquidity value corresponding to the liquid asset pool will also change as the quantity of the transferred-in assets decreases or the quantity of the transferred-out assets increases. For example, there are 100d and 100e in the liquid asset pool. At this time, if you want to exchange 1d with the liquid asset pool to obtain the digital asset of type E, assuming that the asset quantity in the liquid asset pool satisfies the constant formula, after adding 1d to the liquid asset pool, the quantity of the remaining digital assets of type E is 100 * 100 / 101 ≈ 99.0099. Therefore, 1d can exchange 100 - 99.0099 e.
[0101] Step S103: Perform order iterative coordination processing on the asset transfer order according to the asset transfer restriction order pool and the liquid asset pool to obtain an iteratively coordinated asset transfer order; the iteratively coordinated asset transfer order includes at least one of the N asset transfer restriction orders or the L coordinated asset flow orders; the N asset transfer restriction orders belong to the M asset transfer restriction orders; N is a positive integer, and L is a positive integer.
[0102] Specifically, a feasible implementation process of the order iterative coordination processing can be as follows: perform multiple rounds of order coordination processing on the asset transfer order according to the asset transfer restriction order pool and the liquid asset pool. In each round of order coordination processing, first select the coordination object with the lowest asset transfer value for the asset transfer order, and then determine whether the quantity of the digital assets of the asset transfer type that the coordination object can provide is greater than the quantity of the digital assets of the asset transfer type that the asset transfer order still needs to obtain. If it is greater, it is determined that the iteration is completed, and the iteratively coordinated asset transfer order will be determined according to the coordination object determined in each round; if it is less, the next round of order coordination processing is still required. Among them, selecting the coordination object with the lowest asset transfer value for the asset transfer order is actually to compare the lowest asset transfer restriction value included in the asset transfer restriction order in the asset transfer restriction order pool with the asset transfer flow value corresponding to the liquid asset pool (i.e., the magnitude), and take the lower value of the two as the lowest asset transfer value, and determine the associated object as the coordination object. Therefore, when the lowest asset transfer value is the lowest asset transfer restriction value, the coordination object is the asset transfer restriction order including the lowest asset transfer restriction value; when the lowest asset transfer value is the asset transfer flow value, the coordination object is the liquid asset pool.
[0103] It can be understood that when the coordination object is an asset transfer limit order including the lowest asset transfer limit value, the asset transfer limit order will include the asset transfer quantity. The blockchain node can directly determine the quantity of the digital assets of the asset transfer type that the coordination object can provide as the asset transfer quantity included in the asset transfer limit order. When the coordination object is a liquid asset pool, although there may be a large quantity of digital assets of the asset transfer type included in the liquid asset pool, not all of the digital assets of the asset transfer type in the liquid asset pool can be used for coordination because the asset transfer liquidity value corresponding to the liquid asset pool will change with the change in the quantity of the digital assets of the asset transfer type included in the liquid asset pool. At this time, the lowest asset transfer limit value corresponding to the asset transfer limit order pool can be used as the target asset transfer liquidity value, so as to determine the quantity of the digital assets of the asset transfer type that can be provided when the asset transfer liquidity value corresponding to the liquid asset pool becomes the target asset transfer liquidity value, and determine it as the quantity of the digital assets of the asset transfer type that the coordination object can provide during the order coordination process of this round, and generate a corresponding coordinated asset liquidity order according to the quantity of the digital assets of the asset transfer type that the liquid asset pool can provide.
[0104] Therefore, according to the coordination object determined in each round, the implementation process of iteratively coordinating the asset transfer order can be as follows: traverse the coordination object determined in each round. If the currently traversed coordination object is an asset transfer limit order, determine the currently traversed coordination object as a coordinated asset transfer order. If the currently traversed coordination object is a liquid asset pool, determine the coordinated asset liquidity order corresponding to the currently traversed coordination object as a coordinated asset transfer order until all the coordination objects determined in each round are traversed, and determine all the coordinated asset transfer orders as the iteratively coordinated asset transfer order. Therefore, it can be understood that the iteratively coordinated asset transfer order will include at least one of N asset transfer limit orders or L coordinated asset liquidity orders; the N asset transfer limit orders belong to M asset transfer limit orders; N is a positive integer, and L is a positive integer. Among them, a coordinated asset liquidity order is used to indicate the conversion of the digital assets of the asset transfer type in the liquid asset pool into the digital assets of the asset transfer type.
[0105] To facilitate the understanding of the above order iteration processing process, assume that the asset transfer restriction order pool contains asset transfer restriction order O2 [asset transfer restriction value: 50, asset transfer quantity: 10], asset transfer restriction order O3 [asset transfer restriction value 52, asset transfer quantity: 20], the asset transfer flow value corresponding to the liquid asset pool is 50, and the asset transfer quantity in the asset transfer order is 15. Since the asset transfer restriction value of asset transfer restriction order O2 is the same as the asset transfer flow value of 50 corresponding to the liquid asset pool, the actual transaction of the liquid asset pool will be slightly higher than the asset transfer flow value. Then, the blockchain node will first coordinate the asset transfer order with asset transfer restriction order O2. At this time, digital assets of the asset transfer type with a transaction quantity of 10 can be traded. The asset transfer order still needs to obtain 5 digital assets of the asset transfer type. Since the asset transfer restriction value of asset transfer restriction order O3 is greater than the asset transfer flow value corresponding to the liquid asset pool, the blockchain node will determine the digital assets of the asset transfer type that can be provided when the asset transfer flow value corresponding to the liquid asset pool changes from 50 to 52. Assume that according to the constant quantity relationship of the liquid asset pool, when the asset transfer flow value corresponding to the liquid asset pool changes from 50 to 52, 10 digital assets of the asset transfer type can be provided. Then, the remaining 5 digital assets of the asset transfer type in the asset transfer order can be obtained from the liquid asset pool. The blockchain node can generate a coordinated asset flow order O4, and this coordinated asset flow order O4 is used to indicate the quantity of the asset transfer type required to obtain 5 digital assets of the asset transfer type from the liquid asset pool. Finally, the blockchain node can determine that the iterative coordinated asset transfer order for the asset transfer order is asset transfer restriction order O2 and coordinated asset flow order O4. Thus, through the feasible implementation process of the above order iteration processing process, the blockchain node can preferentially coordinate an iterative coordinated asset transfer order with a lower corresponding asset transfer value for the asset transfer order, which can save the transaction cost of the asset transfer order.
[0106] Specifically, another feasible implementation process for order iteration coordination processing can be as follows: First, prioritize the coordination of the assets transferred into the order with M asset transfer restriction orders in the asset transfer restriction order pool to obtain asset transfer restriction orders with successful coordination. However, if there is still a remaining asset transfer quantity corresponding to the asset transfer order after matching the asset transfer quantity included in the asset transfer order with the asset transfer quantity included in the asset transfer restriction order with successful coordination (i.e., the difference between the asset transfer quantity and the sum of the asset transfer quantities included in the asset transfer restriction order with successful coordination), then coordinate the asset transfer order with the liquid asset pool to generate a coordinated asset flow order for digital assets of the asset transfer type that can be exchanged for the remaining asset transfer quantity. Finally, the blockchain node can determine the asset transfer restriction order with successful coordination and the coordinated asset flow order as the iteratively coordinated asset transfer orders. For ease of understanding, assume that the asset transfer restriction order pool contains asset transfer restriction order O2 [asset transfer restriction value: 50, asset transfer quantity: 10], asset transfer restriction order O3 [asset transfer restriction value 52, asset transfer quantity: 20], the asset transfer flow value corresponding to the liquid asset pool is 50, and the asset transfer quantity in the asset transfer order is 15. Then, the blockchain node will prioritize coordinating the asset transfer order with the asset transfer restriction order. Since the asset transfer restriction value of asset transfer restriction order O2 is lower than that of asset transfer restriction order O3, the blockchain node will first coordinate the asset transfer order with asset transfer restriction order O2. At this time, digital assets of the asset transfer type with a transaction quantity of 10 can be traded. The asset transfer order still needs to obtain 5 digital assets of the asset transfer type. The blockchain node will continue to coordinate the asset transfer order with asset transfer restriction order O3. At this time, the remaining 5 digital assets of the asset transfer type in the asset transfer order can also be matched. The blockchain node can determine asset transfer restriction order O2 and asset transfer restriction order O3 as the iteratively coordinated asset transfer orders for the asset transfer order. The blockchain node does not need to continue coordinating the asset transfer order with the liquid asset pool. Thus, it can be seen that through another feasible implementation process of this order iteration coordination processing, it can prioritize ensuring the coordination of the asset transfer order associated with the blockchain account and the asset transfer restriction order, thereby reducing the blockchain objects associated with the blockchain account, that is, the waiting transaction time of blockchain users.
[0107] Step S104, perform digital asset transfer processing on the iteratively coordinated asset transfer object and the target asset transfer account according to the iteratively coordinated asset transfer order and the asset transfer order; the iteratively coordinated asset transfer object includes at least one of the asset transfer accounts respectively associated with the N asset transfer restriction orders or the liquid asset pool.
[0108] Specifically, the iterative coordination asset transfer object includes X coordination asset transfer objects; X is a positive integer; A feasible implementation process for digital asset transfer processing of the iterative coordination asset transfer object and the target asset transfer account according to the iterative coordination asset transfer order and the asset transfer order can be: Traverse the X coordination asset transfer objects to obtain the jth coordination asset transfer object; j is a positive integer less than or equal to X; According to the iterative coordination asset transfer order and the asset transfer order, determine the transfer coordination quantity and the transfer-in coordination quantity corresponding to the jth coordination asset transfer object; Transfer the coordinated transfer-in digital assets to the target asset transfer account, and transfer the coordinated transfer-out digital assets to the jth coordination asset transfer object. Among them, the coordinated transfer-in digital assets refer to the digital assets of the asset transfer-in type corresponding to the transfer coordination quantity; the coordinated transfer-out digital assets refer to the digital assets of the asset transfer-out type corresponding to the transfer-in coordination quantity.
[0109] Specifically, a feasible implementation process for transferring the coordinated transfer-in digital assets to the target asset transfer account and transferring the coordinated transfer-out digital assets to the jth coordination asset transfer object can be: If the jth coordination asset transfer object is a liquid asset pool, transfer the coordinated transfer-in digital assets in the jth coordination asset transfer object to the target asset transfer account, and transfer the coordinated transfer-out digital assets in the coordination contract asset pool to the jth coordination asset transfer object; The coordinated transfer-out digital assets are transferred from the target asset transfer account to the coordination contract asset pool when the asset transfer order is generated; If the jth coordination asset transfer object is an asset transfer restriction order, transfer the coordinated transfer-in digital assets in the coordination contract asset pool to the target asset transfer account, and transfer the coordinated transfer-out digital assets in the coordination contract asset pool to the jth coordination asset transfer object; The coordinated transfer-in digital assets are transferred from the jth coordination asset transfer object to the coordination contract asset pool when the asset transfer restriction order associated with the jth coordination asset transfer object is generated.
[0110] For ease of understanding the above-mentioned digital asset transfer process based on the jth coordination asset transfer object, please also refer to Figure 4 , Figure 4 which is a schematic diagram of an application scenario of digital asset transfer provided by an embodiment of the present application. Among them, as Figure 4 shown, the blockchain node 40 can be the above-mentioned Figure 2 shown blockchain node 20, as Figure 4 shown, the digital asset transfer process can be a feasible implementation process for digital asset transfer processing in the above-mentioned Figure 2 shown application scenario.
[0111] As Figure 4 shown, the blockchain node 40 can include an asset exchange coordination contract 41 (i.e., the above-mentioned Figure 2The asset exchange coordination contract shown (22), the asset exchange coordination contract 41 may include an asset transfer restriction order pool 411 (i.e., the asset transfer restriction order pool 221 shown above Figure 2 ), and a liquid asset pool 412 (i.e., the liquid asset pool 222 shown above Figure 2 ). In addition, the asset exchange coordination contract 41 may also include a coordination contract asset pool 413 and a coordination contract asset pool 414. Among them, the coordination contract asset pool 413 is used to store the asset transfer type, that is, the digital asset of digital asset type D. Suppose the coordination contract asset pool 413 contains 5000d; the coordination contract asset pool 414 is used to store the asset transfer-in type, that is, the digital asset of digital asset type E. Suppose the coordination contract asset pool 414 contains 1000e. It should be noted that the coordination contract asset pool is used to store the digital assets that the blockchain accounts associated with the orders need to exchange. Taking the asset transfer restriction order 411a included in the asset transfer restriction order pool 411 as an example, the asset transfer restriction order 411a is used to indicate the exchange of 10e in its associated asset transfer-out account. Then, when the asset transfer restriction order 411a is generated, the 10e in its associated asset transfer-out account needs to be transferred into the coordination contract asset pool 414 first, so that when the asset transfer restriction order 411a is coordinated successfully, the relevant digital asset transfer can be carried out immediately.
[0112] As Figure 4 shown, suppose the blockchain node 40 generates an asset transfer-in order 42 (which can be the asset transfer-in order 223 shown above Figure 2 ). Then, after iteratively coordinating and processing the asset transfer-in order 42 with the asset transfer restriction order pool 411 and the liquid asset pool 412, an iteratively coordinated asset transfer-out order 43 can be obtained, which may include an iteratively coordinated asset transfer-out order 431 and an iteratively coordinated asset transfer-out order 432. The implementation of the order iterative coordination process can refer to the order iterative coordination process described above Figure 2 . Here, it will not be elaborated. Then, the blockchain node will sequentially perform digital asset transfer processing according to the iteratively coordinated asset transfer-out order 431 and the iteratively coordinated asset transfer-out order 432, together with the asset transfer-in order 42.
[0113] As Figure 4As shown, blockchain node 40 will perform the first transfer according to the iterative coordination asset transfer order 431 and the asset transfer order 42. Specifically, blockchain node 40 will first determine the first coordinated asset transfer object according to the iterative coordination asset transfer order 431 and the asset transfer order 42, that is, the asset transfer account 44 associated with the iterative coordination asset transfer order 431. The corresponding transfer coordination quantity is 10, and the transfer-in coordination quantity is 500. Then, the blockchain node can transfer 500d (coordinated transferred digital assets, that is, the digital assets of the asset transfer type corresponding to the transfer-in coordination quantity 500) from the coordinated contract asset pool 413 to the asset transfer account 44, and then transfer 10e (coordinated transferred-in digital assets, that is, the digital assets of the asset transfer-in type corresponding to the transfer-out coordination quantity 10) from the coordinated contract asset pool 414 to the asset transfer account 45 associated with the asset transfer order 42. It can be understood that after the transfer is completed, only 4500d is included in the coordinated contract asset pool 413, and only 990e is included in the coordinated contract asset pool 414. In addition, an identifier of "exchanged 10e" can also be added to the asset transfer order 42 to indicate that the asset transfer order 42 still needs 2e to be completed. Then, blockchain node 40 will determine the second coordinated asset transfer object according to the iterative coordination asset transfer order 432 and the asset transfer order 42, that is, the liquid asset pool 412. The corresponding transfer coordination quantity is 2, and the transfer-in coordination quantity is 100.2. Then, the blockchain node can transfer 100.2d from the coordinated contract asset pool 413 to the liquid asset pool 412, and then transfer 10e from the liquid asset pool 412 to the asset transfer account 45 associated with the asset transfer order 42.
[0114] Optionally, the asset transfer order includes the asset transfer quantity. The blockchain node can sum up the transfer coordination quantities corresponding to X coordinated asset transfer objects respectively to obtain the asset transferred quantity corresponding to the asset transfer order. If the asset transferred quantity is less than the asset transfer quantity, the difference between the asset transfer quantity and the asset transferred quantity is determined as the remaining asset transfer quantity. Update the asset transfer quantity included in the asset transfer order to the remaining asset transfer quantity, and add the updated asset transfer order to the asset transfer limit order pool. The asset transfer limit order pool is used to perform order iteration coordination processing of the asset transfer order with the liquid asset pool when the asset exchange coordination contract generates an asset transfer order. The asset transfer order is used to indicate converting the digital asset of the asset transfer type in the target asset transfer account into the digital asset of the asset transfer type. It can be understood that when the asset transferred quantity is less than the asset transfer quantity, it means that there is still an unfulfilled remaining asset transfer quantity in the asset transfer order, but there are no orders that can be coordinated with the remaining asset transfer quantity at present. At this time, the blockchain node can update the asset transfer order through the asset exchange coordination contract to obtain the updated asset transfer order, and add it to the asset transfer limit order pool for waiting. It should be understood that both the asset transfer limit order pool and the asset transfer limit order pool are queues or sets for storing multiple orders. Only the asset transfer limit order pool is used to store asset transfer limit orders, while the asset transfer limit order is used to store asset transfer limit orders. It can be understood that the asset transfer limit order is the same as the updated asset transfer order, indicating converting the digital asset of the asset transfer type in the associated asset transfer account into the digital asset of the asset transfer type.
[0115] Through the method provided by the embodiments of the present application, when coordinating the asset transfer order, in addition to using the asset transfer limit order pool containing M unfulfilled asset transfer limit orders, a liquid asset pool providing liquidity support is introduced, providing multiple possibilities for coordinating the asset transfer order. The finally obtained iterative coordinated asset transfer order is no longer limited to the fixed asset transfer limit order, but can also include the coordinated asset flow order flexibly generated based on the liquid asset pool, thereby improving the transaction efficiency of the asset transfer order.
[0116] Further, please refer to Figure 5 , Figure 5 which is a schematic flowchart of a method for order iteration coordination processing based on blockchain provided by the embodiments of the present application. Among them, this method can be Figure 3 a feasible specific implementation process of step S103 in the corresponding embodiment. Among them, this method can be performed by a computer device (for example, the above Figure 1It is executed by the blockchain node 1000a) in the corresponding embodiment. Hereinafter, an example will be given in which this method is executed by a computer device. Among them, the blockchain-based data processing method may at least include the following steps S201 to step S205:
[0117] Step S201, in the i-th round of order coordination processing, determine the i-th round of coordinated asset transfer orders according to the i-th round of iterative asset transfer restricted order pool and iterative current asset pool.
[0118] Specifically, when i is 1, the i-th round of iterative asset transfer restricted order pool is the asset transfer restricted order pool, and the i-th round of iterative current asset pool is the current asset pool; the i-th round of coordinated asset transfer order is the asset transfer restricted order belonging to the i-th round of iterative asset transfer restricted order pool, or the coordinated asset flow order generated according to the i-th round of iterative current asset pool.
[0119] Specifically, an asset transfer restriction order includes an asset transfer restriction value; an asset transfer restriction value is used to represent the minimum exchange quantity of the digital assets of the asset transfer type required to exchange the digital assets of an asset transfer type in an asset transfer account; a feasible implementation process of the coordinated asset transfer order in the i-th round can be determined according to the iterative asset transfer restriction order pool and the iterative liquid asset pool in the i-th round, and it can be: obtaining the lowest asset transfer restriction order in the iterative asset transfer restriction order pool in the i-th round; obtaining the asset transfer liquidity value corresponding to the iterative liquid asset pool in the i-th round; if the asset transfer restriction value included in the lowest asset transfer restriction order is less than the asset transfer liquidity value, then determining the lowest asset transfer restriction order as the coordinated asset transfer order in the i-th round; if the asset transfer restriction value included in the lowest asset transfer restriction order is greater than the asset transfer liquidity value, then generating a coordinated asset liquidity order according to the asset transfer restriction value included in the lowest asset transfer restriction order and the iterative liquid asset pool in the i-th round, and determining the generated coordinated asset liquidity order as the coordinated asset transfer order in the i-th round. Among them, the lowest asset transfer restriction order is the asset transfer restriction order with the lowest asset transfer restriction value included in the iterative asset transfer restriction order pool in the i-th round; the asset transfer liquidity value is used to represent the exchange quantity of the digital assets of the asset transfer type required to exchange the digital assets of an asset transfer type in the iterative liquid asset pool in the i-th round. For ease of understanding, assume that the asset transfer restriction orders included in the iterative asset transfer restriction order pool in the i-th round are: asset transfer restriction order O5 [asset transfer restriction value: 100], asset transfer restriction order O6 [asset transfer restriction value: 102], then the lowest asset transfer restriction order is asset transfer restriction order O5; assume that the obtained asset transfer liquidity value corresponding to the iterative liquid asset pool in the i-th round is 99. Since the asset transfer restriction value 100 included in asset transfer restriction order O5 is greater than the asset transfer liquidity value 99, a coordinated asset liquidity order can be generated according to 100 and the iterative liquid asset pool in the i-th round, and the generated coordinated asset liquidity order is determined as the coordinated asset transfer order in the i-th round.
[0120] Specifically, a feasible implementation process for generating a coordinated asset flow order based on the asset transfer limit value included in the lowest asset transfer limit order and the iterative liquid asset pool in the i-th round can be as follows: Obtain the asset transfer flow quantity and asset transfer-in flow quantity corresponding to the iterative liquid asset pool in the i-th round; Determine the total constant asset liquidity value according to the constant quantity relationship between the asset transfer flow quantity and the asset transfer-in flow quantity; Determine the remaining asset transfer-in flow quantity according to the total constant asset liquidity value and the asset transfer limit value; Determine the difference between the asset transfer-in flow quantity and the remaining asset transfer-in flow quantity as the convertible asset transfer-in flow quantity, and generate a coordinated asset flow order based on the convertible asset transfer-in flow quantity. Among them, the asset transfer flow quantity refers to the asset quantity of the digital asset of the asset transfer type corresponding to the iterative liquid asset pool in the i-th round; the asset transfer-in flow quantity refers to the asset quantity of the digital asset of the asset transfer-in type corresponding to the iterative liquid asset pool in the i-th round. Among them, the constant quantity relationship means that the asset transfer flow quantity and the asset transfer-in flow quantity satisfy a constant formula. For example, when the constant consensus is the constant product formula, the total constant asset liquidity value = asset transfer flow quantity × asset transfer-in flow quantity.
[0121] It can be understood that the asset transfer flow value corresponding to the liquid asset pool will change with the changes in the included asset transfer flow quantity and asset transfer-in flow quantity. However, no matter how the asset transfer flow quantity and asset transfer-in flow quantity included in the liquid asset pool change, they will satisfy the constant quantity relationship. Therefore, the asset transfer limit value can be determined as the remaining asset transfer flow value corresponding to the remaining asset transfer-in flow quantity to be obtained. At this time, based on the total constant asset liquidity value and the asset transfer limit value, the remaining asset transfer-in flow quantity can be determined. For example, when the total constant asset liquidity value = asset transfer flow quantity × asset transfer-in flow quantity, the total constant asset liquidity value = remaining asset transfer flow quantity × remaining asset transfer-in flow quantity, and the remaining asset transfer flow value = remaining asset transfer flow quantity: remaining asset transfer-in flow quantity. Therefore, the remaining asset transfer flow quantity and the remaining asset transfer-in flow quantity can be determined according to the above equation relationship. In addition, it can be understood that at this time, the remaining asset transfer-in flow quantity in the i-th round is essentially the asset transfer-in flow quantity corresponding to the iterative liquid asset pool in the (i + 1)-th round, and the remaining asset transfer flow quantity in the i-th round is essentially the asset transfer flow quantity corresponding to the iterative liquid asset pool in the (i + 1)-th round.
[0122] Optionally, when generating a coordinated asset flow order, in addition to adding the convertible asset transfer-in flow quantity to the coordinated asset flow order, the convertible asset transfer-out flow quantity can also be added to the coordinated asset flow order. Among them, the convertible asset transfer-out flow quantity is equal to the absolute value of the difference between the asset transfer flow quantity and the remaining asset transfer flow quantity.
[0123] Step S202: If the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round is less than the quantity of assets to be coordinated for transfer in the i-th round, then determine the difference between the quantity of assets to be coordinated for transfer in the i-th round and the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round as the quantity of assets to be coordinated for transfer in the (i + 1)-th round.
[0124] Optionally, the asset transfer-in order further includes an asset transfer-in limit value, which is used to represent the maximum exchange quantity of the digital assets of the asset transfer-out type provided when the target asset transfer-in account exchanges for a digital asset of an asset transfer-in type. For example, if the asset transfer-in limit value is 60, it means that the target asset transfer-in account is willing to use at most 60 digital assets of the asset transfer-out limit type to exchange for a digital asset of an asset transfer-in type. If the coordinated asset transfer value corresponding to the coordinated asset transfer order in the i-th round is less than or equal to the asset transfer-in limit value, then execute Step S202; if the coordinated asset transfer value corresponding to the coordinated asset transfer order in the i-th round is greater than the asset transfer-in limit value, then determine the coordinated asset transfer orders determined in the previous i - 1 rounds as the iterative coordinated asset transfer orders.
[0125] Step S203: Update the iterative asset transfer limit order pool and the iterative current asset pool in the i-th round according to the coordinated asset transfer order in the i-th round to obtain the iterative asset transfer limit order pool and the iterative current asset pool in the (i + 1)-th round.
[0126] Specifically, a feasible implementation process for updating the iterative asset transfer limit order pool and the iterative current asset pool in the i-th round according to the coordinated asset transfer order in the i-th round to obtain the iterative asset transfer limit order pool and the iterative current asset pool in the (i + 1)-th round can be as follows: When the coordinated asset transfer order in the i-th round is a coordinated asset flow order generated according to the iterative current asset pool in the i-th round, update the asset transfer-in flow quantity and the asset transfer-out flow quantity corresponding to the iterative current asset pool in the i-th round according to the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round and the total value of constant asset liquidity, and determine the updated iterative current asset pool in the i-th round as the iterative current asset pool in the (i + 1)-th round; determine the iterative asset transfer limit order pool in the i-th round as the iterative asset transfer limit order pool in the (i + 1)-th round.
[0127] Among them, updating the asset transfer flow quantity and asset transfer-out flow quantity corresponding to the iterative liquid asset pool in the i-th round according to the coordinated asset transfer-out quantity corresponding to the coordinated asset transfer-out order in the i-th round and the total constant asset liquidity value actually means determining the difference between the asset transfer flow quantity corresponding to the iterative liquid asset pool in the i-th round and the coordinated asset transfer-out quantity corresponding to the coordinated asset transfer-out order in the i-th round as the asset transfer flow quantity corresponding to the iterative liquid asset pool in the (i + 1)-th round. Then, according to the total constant asset liquidity value and the asset transfer flow quantity corresponding to the iterative liquid asset pool in the (i + 1)-th round, the asset transfer-out flow quantity corresponding to the iterative liquid asset pool in the (i + 1)-th round can be determined. It should be noted that in this application, during the order iteration coordination process, when i is greater than 1, the iterative liquid asset pool in each i-th round can be a virtual object corresponding to the asset transfer flow quantity and asset transfer-out flow quantity, which is used to represent the quantity situation of the digital assets included in the liquid asset pool after the digital asset transfer process is carried out according to the coordinated asset transfer-out order generated in the previous round. It is not a real liquid asset pool that actually contains digital assets. After the order iteration coordination process is completed, the coordinated asset flow orders included in the finally generated iterative coordinated asset transfer-out order are actually all for the liquid asset pool.
[0128] Specifically, updating the asset transfer flow quantity and asset transfer-out flow quantity corresponding to the iterative liquid asset pool in the i-th round according to the coordinated asset transfer-out quantity corresponding to the coordinated asset transfer-out order in the i-th round and the total constant asset liquidity value, and determining the updated iterative liquid asset pool in the i-th round as a feasible implementation process of the iterative liquid asset pool in the (i + 1)-th round can be: updating the asset transfer flow quantity corresponding to the iterative liquid asset pool in the i-th round to the latest asset transfer flow quantity; the latest asset transfer flow quantity is the difference between the asset transfer flow quantity and the coordinated asset transfer-out quantity; determining the latest asset transfer-out flow quantity according to the constant quantity relationship corresponding to the total constant asset liquidity value and the latest asset transfer flow quantity; updating the asset transfer-out flow quantity corresponding to the iterative liquid asset pool in the i-th round to the latest asset transfer-out flow quantity; and determining the updated iterative liquid asset pool in the i-th round as the iterative liquid asset pool in the (i + 1)-th round.
[0129] Specifically, an implementation process for updating the iterative asset transfer restriction order pool and the iterative liquid asset pool in the i-th round according to the coordinated asset transfer order in the i-th round to obtain the iterative asset transfer restriction order pool and the iterative liquid asset pool in the (i + 1)-th round can be as follows: When the coordinated asset transfer order in the i-th round is an asset transfer restriction order belonging to the iterative asset transfer restriction order pool in the i-th round, the coordinated asset transfer order in the i-th round is removed from the iterative asset transfer restriction order pool in the i-th round, and the iterative asset transfer restriction order pool after removal is determined as the iterative asset transfer restriction order pool in the (i + 1)-th round; the iterative liquid asset pool in the i-th round is determined as the iterative liquid asset pool in the (i + 1)-th round.
[0130] Step S204: Determine the coordinated asset transfer order in the (i + 1)-th round according to the iterative asset transfer restriction order pool and the iterative liquid asset pool in the (i + 1)-th round.
[0131] Specifically, for the implementation of determining the coordinated asset transfer order in the (i + 1)-th round, reference can be made to the specific implementation process of determining the coordinated asset transfer order in the i-th round in step S201, which will not be elaborated here.
[0132] Step S205: If the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the (i + 1)-th round is greater than the quantity of assets to be coordinated for transfer in the (i + 1)-th round, then determine the coordinated asset transfer orders determined in the previous i + 1 rounds as iterative coordinated asset transfer orders.
[0133] Specifically, if the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the (i + 1)-th round is greater than the quantity of assets to be coordinated for transfer in the (i + 1)-th round, it indicates that after coordinating with the coordinated asset transfer order in the (i + 1)-th round, the asset transfer quantity of the digital assets of the asset transfer type that the asset transfer order wants to obtain has found sufficient sources (or matching parties, coordinating parties), and there is no need to perform the next round of order coordination processing.
[0134] Please refer to Figure 6 , Figure 6 FIG. is a schematic structural diagram of a data processing device based on a blockchain provided by an embodiment of the present application. The data processing device may be a computer program (including program code) running on a computer device. For example, the data processing device is an application software; the data processing device 1 can be used to execute the corresponding steps in the data processing method provided by an embodiment of the present application. As Figure 6 shown, the data processing device 1 may include: an order generation module 11, an acquisition module 12, an iterative coordination module 13, and an asset transfer module 14.
[0135] The order generation module 11 is configured to receive an asset transfer transaction and call an asset exchange coordination contract to generate an asset transfer order corresponding to the asset transfer transaction; the asset transfer order is used to indicate converting digital assets of the asset transfer type transferred from the target asset into the asset transfer type of digital assets;
[0136] The acquisition module 12 is configured to acquire an asset transfer restriction order pool and a liquid asset pool; the asset transfer restriction order pool includes M asset transfer restriction orders, where M is a positive integer; an asset transfer restriction order is used to indicate converting digital assets of the asset transfer type transferred from an asset transfer account into digital assets of the asset transfer type; the liquid asset pool includes digital assets of the asset transfer type and digital assets of the asset transfer type that satisfy a constant quantity relationship;
[0137] The iterative coordination module 13 is configured to perform order iterative coordination processing on the asset transfer order according to the asset transfer restriction order pool and the liquid asset pool to obtain an iterative coordination asset transfer order; the iterative coordination asset transfer order includes at least one of N asset transfer restriction orders or L coordinated asset flow orders; the N asset transfer restriction orders belong to the M asset transfer restriction orders; N is a positive integer, and L is a positive integer; a coordinated asset flow order is used to indicate converting digital assets of the asset transfer type in the liquid asset pool into digital assets of the asset transfer type;
[0138] The asset transfer module 14 is configured to perform digital asset transfer processing on the iterative coordination asset transfer object and the target asset transfer account according to the iterative coordination asset transfer order and the asset transfer order; the iterative coordination asset transfer object includes at least one of the asset transfer accounts associated with the N asset transfer restriction orders or the liquid asset pool.
[0139] Among them, the specific implementation manners of the order generation module 11, the acquisition module 12, the iterative coordination module 13, and the asset transfer module 14 can refer to the specific descriptions of steps S101 - S104 in the corresponding embodiments above, and will not be elaborated here. Figure 3 The corresponding embodiments of steps S101 - S104 will not be elaborated here.
[0140] Among them, the asset transfer order includes the asset transfer quantity;
[0141] The iterative coordination module 13 includes: a first order determination unit 131, a quantity determination unit 132, an update unit 133, a second order determination unit 134, and a coordinated order determination unit 135.
[0142] The first order determination unit 131 is configured to determine the coordinated asset transfer order for the i-th round during the i-th round of order coordination processing, based on the iterative asset transfer limit order pool and the iterative liquid asset pool for the i-th round; when i is 1, the iterative asset transfer limit order pool for the i-th round is the asset transfer limit order pool, and the iterative liquid asset pool for the i-th round is the liquid asset pool; the coordinated asset transfer order for the i-th round is an asset transfer limit order belonging to the iterative asset transfer limit order pool for the i-th round, or a coordinated asset flow order generated based on the iterative liquid asset pool for the i-th round.
[0143] The quantity determination unit 132 is configured to, if the coordinated asset transfer quantity corresponding to the coordinated asset transfer order for the i-th round is less than the quantity of assets to be coordinated for transfer for the i-th round, determine the difference between the quantity of assets to be coordinated for transfer for the i-th round and the coordinated asset transfer quantity corresponding to the coordinated asset transfer order for the i-th round as the quantity of assets to be coordinated for transfer for the (i + 1)-th round.
[0144] The update unit 133 is configured to perform an update process on the iterative asset transfer limit order pool and the iterative liquid asset pool for the i-th round according to the coordinated asset transfer order for the i-th round, to obtain the iterative asset transfer limit order pool and the iterative liquid asset pool for the (i + 1)-th round.
[0145] The second order determination unit 134 is configured to determine the coordinated asset transfer order for the (i + 1)-th round based on the iterative asset transfer limit order pool and the iterative liquid asset pool for the (i + 1)-th round.
[0146] The coordinated order determination unit 135 is configured to, if the coordinated asset transfer quantity corresponding to the coordinated asset transfer order for the (i + 1)-th round is greater than the quantity of assets to be coordinated for transfer for the (i + 1)-th round, determine the coordinated asset transfer orders determined in the previous (i + 1) rounds as the iterative coordinated asset transfer orders.
[0147] Among them, the specific implementation manners of the first order determination unit 131, the quantity determination unit 132, the update unit 133, the second order determination unit 134, and the coordinated order determination unit 135 can refer to the specific descriptions of steps S201 - S205 in the corresponding embodiments above, and will not be elaborated here. Figure 5
[0148] Among them, an asset transfer limit order includes an asset transfer limit value; an asset transfer limit value is used to represent the minimum exchange quantity of digital assets of the asset transfer type required to exchange digital assets of one asset transfer type in one asset transfer account.
[0149] The first order determination unit 131 includes: a first acquisition subunit 1311, a second acquisition subunit 1312, a first determination subunit 1313, and a second determination subunit 1314.
[0150] The first acquisition subunit 1311 is configured to acquire the lowest asset transfer limit order in the iterative asset transfer limit order pool of the i-th round; the lowest asset transfer limit order is the asset transfer limit order with the lowest asset transfer limit value in the iterative asset transfer limit order pool of the i-th round;
[0151] The second acquisition subunit 1312 is configured to acquire the asset transfer liquidity value corresponding to the iterative liquid asset pool of the i-th round; the asset transfer liquidity value is used to represent the exchange quantity of the digital assets of the asset transfer type required to exchange the digital assets of an asset transfer-in type in the iterative liquid asset pool of the i-th round;
[0152] The first determination subunit 1313 is configured to, if the asset transfer limit value included in the lowest asset transfer limit order is less than the asset transfer liquidity value, determine the lowest asset transfer limit order as the coordinated asset transfer order of the i-th round;
[0153] The second determination subunit 1314 is configured to, if the asset transfer limit value included in the lowest asset transfer limit order is greater than the asset transfer liquidity value, generate a coordinated asset liquidity order according to the asset transfer limit value included in the lowest asset transfer limit order and the iterative liquid asset pool of the i-th round, and determine the generated coordinated asset liquidity order as the coordinated asset transfer order of the i-th round.
[0154] Among them, the specific implementation manners of the first acquisition subunit 1311, the second acquisition subunit 1312, the first determination subunit 1313, and the second determination subunit 1314 can refer to the specific description of step S201 in the corresponding embodiment above Figure 5 and will not be elaborated here.
[0155] Among them, the second determination subunit 1314 is specifically configured to acquire the asset transfer liquidity quantity and the asset transfer-in liquidity quantity corresponding to the iterative liquid asset pool of the i-th round; the asset transfer liquidity quantity refers to the asset quantity of the digital assets of the asset transfer type corresponding to the iterative liquid asset pool of the i-th round; the asset transfer-in liquidity quantity refers to the asset quantity of the digital assets of the asset transfer-in type corresponding to the iterative liquid asset pool of the i-th round; determine the constant total asset liquidity value according to the constant quantity relationship between the asset transfer liquidity quantity and the asset transfer-in liquidity quantity; determine the remaining asset transfer-in liquidity quantity according to the constant total asset liquidity value and the asset transfer limit value; determine the asset transfer liquidity quantity and the remaining asset transfer-in liquidity quantity as the convertible asset transfer-in liquidity quantity, and generate a coordinated asset liquidity order according to the convertible asset transfer-in liquidity quantity.
[0156] Among them, the specific implementation manner of the second determination subunit 1314 can refer to the specific description of step S201 in the corresponding embodiment above Figure 5 and will not be elaborated here.
[0157] Among them, the update unit 133 includes: a first update subunit 1331.
[0158] The first update subunit 1331 is configured to, when the coordinated asset transfer order in the i-th round is a coordinated asset flow order generated according to the iterative current asset pool in the i-th round, update the asset transfer flow quantity and the asset transfer flow quantity corresponding to the iterative current asset pool in the i-th round according to the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round and the total value of the constant asset liquidity, and determine the updated iterative current asset pool in the i-th round as the iterative current asset pool in the (i + 1)-th round;
[0159] The first update subunit 1331 is further configured to determine the iterative asset transfer limit order pool in the i-th round as the iterative asset transfer limit order pool in the (i + 1)-th round.
[0160] Among them, for the specific implementation manner of the first update subunit 1331, reference may be made to the specific description of step S203 in the corresponding embodiment above. Figure 5 Details are not described herein again.
[0161] Among them, the first update subunit 1331 is specifically configured to update the asset transfer flow quantity corresponding to the iterative current asset pool in the i-th round to the latest asset transfer flow quantity; the latest asset transfer flow quantity is the difference between the asset transfer flow quantity and the coordinated asset transfer quantity; determine the latest asset transfer flow quantity according to the constant quantity relationship corresponding to the total value of the constant asset liquidity and the latest asset transfer flow quantity; update the asset transfer flow quantity corresponding to the iterative current asset pool in the i-th round to the latest asset transfer flow quantity; and determine the updated iterative current asset pool in the i-th round as the iterative current asset pool in the (i + 1)-th round.
[0162] Among them, for the specific implementation manner of the first update subunit 1331, reference may be made to the specific description of step S203 in the corresponding embodiment above. Figure 5 Details are not described herein again.
[0163] Among them, the update unit 133 includes: a second update subunit 1332.
[0164] The second update subunit 1332 is configured to, when the coordinated asset transfer order in the i-th round is an asset transfer limit order belonging to the iterative asset transfer limit order pool in the i-th round, remove the coordinated asset transfer order in the i-th round from the iterative asset transfer limit order pool in the i-th round, and determine the iterative asset transfer limit order pool in the i-th round after removal as the iterative asset transfer limit order pool in the (i + 1)-th round;
[0165] The second update subunit 1332 is further configured to determine the iterative current asset pool in the i-th round as the iterative current asset pool in the (i + 1)-th round.
[0166] Among them, for the specific implementation manner of the second update subunit 1332, reference may be made to the specific description of step S203 in the corresponding embodiment above, which will not be elaborated here. Figure 5 For the corresponding embodiment, the specific description of step S203 will not be elaborated here.
[0167] Among them, the asset transfer-in order further includes an asset transfer-in limit value; the asset transfer-in limit value is used to represent the maximum exchange quantity of the digital assets of the asset transfer-out type provided when the target asset is transferred into an account to exchange digital assets of an asset transfer-in type.
[0168] The above data processing device 1 further includes: a limit processing module 15.
[0169] The limit processing module 15 is configured to, if the coordinated asset transfer-out value corresponding to the i-th round of coordinated asset transfer-out order is less than or equal to the asset transfer-in limit value, call the quantity determination unit 132 to execute the step of determining the difference between the quantity of the coordinated asset transfer-in to be coordinated in the (i + 1)-th round as the difference between the quantity of the coordinated asset transfer-in to be coordinated in the i-th round and the quantity of the coordinated asset transfer-out corresponding to the coordinated asset transfer-out order in the i-th round when the quantity of the coordinated asset transfer-out corresponding to the i-th round of coordinated asset transfer-out order is less than the quantity of the coordinated asset transfer-in to be coordinated in the i-th round.
[0170] The limit processing module 15 is further configured to, if the coordinated asset transfer-out value corresponding to the i-th round of coordinated asset transfer-out order is greater than the asset transfer-in limit value, determine the coordinated asset transfer-out orders determined in the previous i - 1 rounds as the iterative coordinated asset transfer-out orders.
[0171] Among them, for the specific implementation manner of the limit processing module 15, reference may be made to the optional description of step S202 in the corresponding embodiment above, which will not be elaborated here. Figure 5 For the corresponding embodiment, the optional description of step S202 will not be elaborated here.
[0172] Among them, the iterative coordinated asset transfer-out object includes X coordinated asset transfer-out objects; X is a positive integer.
[0173] The asset transfer module 14 includes: a traversal unit 141, a coordinated quantity determination unit 142, and an asset transfer unit 143.
[0174] The traversal unit 141 is configured to traverse X coordinated asset transfer-out objects to obtain the j-th coordinated asset transfer-out object; j is a positive integer less than or equal to X.
[0175] The coordinated quantity determination unit 142 is configured to determine the transfer-out coordinated quantity and the transfer-in coordinated quantity corresponding to the j-th coordinated asset transfer-out object according to the iterative coordinated asset transfer-out order and the asset transfer-in order.
[0176] An asset transfer unit 143 is configured to transfer the coordinated-in digital assets to the target asset transfer-in account and transfer the coordinated-out digital assets to the j-th coordinated asset transfer-out object. The coordinated-in digital assets refer to the digital assets of the asset transfer-in type corresponding to the transferred coordination quantity. The coordinated-out digital assets refer to the digital assets of the asset transfer-out type corresponding to the transferred coordination quantity.
[0177] Among them, the specific implementation manners of the traversal unit 141, the coordination quantity determination unit 142, and the asset transfer unit 143 can refer to the specific description of step S104 in the corresponding embodiment above, and will not be elaborated here. Figure 3 The corresponding specific description of step S104 in the corresponding embodiment will not be elaborated here.
[0178] Among them, the asset transfer unit 143 includes: a first transfer subunit 1431 and a second transfer subunit 1432.
[0179] The first transfer subunit 1431 is configured to, if the j-th coordinated asset transfer-out object is a liquid asset pool, transfer the coordinated-in digital assets in the j-th coordinated asset transfer-out object to the target asset transfer-in account, and transfer the coordinated-out digital assets in the coordinated contract asset pool to the j-th coordinated asset transfer-out object. The coordinated-out digital assets are transferred from the target asset transfer-in account to the coordinated contract asset pool when the asset transfer-in order is generated.
[0180] The second transfer subunit 1432 is configured to, if the j-th coordinated asset transfer-out object is an asset transfer restriction order, transfer the coordinated-in digital assets in the coordinated contract asset pool to the target asset transfer-in account, and transfer the coordinated-out digital assets in the coordinated contract asset pool to the j-th coordinated asset transfer-out object. The coordinated-in digital assets are transferred from the j-th coordinated asset transfer-out object to the coordinated contract asset pool when the asset transfer restriction order associated with the j-th coordinated asset transfer-out object is generated.
[0181] Among them, the specific implementation manners of the first transfer subunit 1431 and the second transfer subunit 1432 can refer to the specific description of step S104 in the corresponding embodiment above, and will not be elaborated here. Figure 3 The corresponding specific description of step S104 in the corresponding embodiment will not be elaborated here.
[0182] Among them, the asset transfer-in order includes the asset transfer-in quantity.
[0183] The above data processing device 1 further includes: an order storage module 16.
[0184] The order storage module 16 is configured to sum up the transferred coordination quantities corresponding to the X coordinated asset transfer-out objects respectively to obtain the asset already transferred quantity corresponding to the asset transfer-in order.
[0185] The order storage module 16 is further configured to, if the transferred-in quantity of the asset is less than the transferred-in quantity of the asset, determine the difference between the transferred-in quantity of the asset and the transferred-in quantity of the asset that has been transferred in as the remaining transferred-in quantity of the asset;
[0186] The order storage module 16 is further configured to update the transferred-in quantity of the asset included in the asset transfer order to the remaining transferred-in quantity of the asset, and add the updated asset transfer order to the asset transfer limit order pool; the asset transfer limit order pool is used to perform order iteration coordination processing with the liquid asset pool when the asset exchange coordination contract generates an asset transfer order; the asset transfer order is used to indicate converting the digital asset of the asset transfer type transferred out of the target asset account into the digital asset of the asset transfer type.
[0187] Among them, for the specific implementation manner of the order storage module 16, reference may be made to the optional description of step S104 in the above Figure 3 corresponding embodiment, which will not be elaborated here.
[0188] Please refer to Figure 7 , Figure 7 is a schematic structural diagram of a computer device provided by an embodiment of the present application. As Figure 7 shown, the data processing device 1 in the above Figure 6 corresponding embodiment can be applied to the computer device 1000, and the computer device 1000 may include: a processor 1001, a network interface 1004, and a memory 1005. In addition, the computer device 1000 may further include: a user interface 1003 and at least one communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. Among them, the user interface 1003 may include a display screen (Display) and a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory, for example, at least one disk memory. Optionally, the memory 1005 may further be at least one storage device located far from the aforementioned processor 1001. As Figure 7 shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0189] In as Figure 7In the computer device 1000 shown, the network interface 1004 can provide a network communication network element; the user interface 1003 is mainly used to provide an interface for user input; and the processor 1001 can be used to call the device control application program stored in the memory 1005 to achieve:
[0190] Receive an asset transfer transaction, and call the asset exchange coordination contract to generate an asset transfer order corresponding to the asset transfer transaction; the asset transfer order is used to indicate converting the digital asset of the asset transfer type that transfers the target asset into the account into the digital asset of the asset transfer type.
[0191] Obtain an asset transfer limit order pool and a liquid asset pool; the asset transfer limit order pool contains M asset transfer limit orders, where M is a positive integer; an asset transfer limit order is used to indicate converting the digital asset of the asset transfer type that transfers an asset out of an account into the digital asset of the asset transfer type; the liquid asset pool contains digital assets of the asset transfer type and digital assets of the asset transfer type that satisfy a constant quantity relationship.
[0192] Perform order iterative coordination processing on the asset transfer order according to the asset transfer limit order pool and the liquid asset pool to obtain an iterative coordinated asset transfer order; the iterative coordinated asset transfer order contains at least one of N asset transfer limit orders or L coordinated asset flow orders; the N asset transfer limit orders belong to the M asset transfer limit orders; N is a positive integer and L is a positive integer; a coordinated asset flow order is used to indicate converting the digital asset of the asset transfer type in the liquid asset pool into the digital asset of the asset transfer type.
[0193] According to the iterative coordinated asset transfer order and the asset transfer order, perform digital asset transfer processing on the iterative coordinated asset transfer object and the target asset transfer account; the iterative coordinated asset transfer object contains at least one of the asset transfer accounts associated with the N asset transfer limit orders or the liquid asset pool.
[0194] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the description of the data processing method in any of the foregoing Figure 3 、 Figure 5 corresponding embodiments, which will not be elaborated here. In addition, the description of the beneficial effects of adopting the same method will not be elaborated either.
[0195] In addition, it should be pointed out here that: the embodiments of the present application also provide a computer-readable storage medium, and the above computer-readable storage medium stores the computer program executed by the foregoing data processing device 1, and the above computer program includes program instructions. When the above processor executes the above program instructions, it can execute the foregoing Figure 3 、 Figure 5The description of the above data processing method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated either. For the technical details not disclosed in the embodiment of the computer-readable storage medium involved in this application, please refer to the description of the method embodiment of this application.
[0196] The above computer-readable storage medium may be the data processing device provided in any of the foregoing embodiments or the internal storage unit of the above computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0197] In addition, it should be noted here that: The embodiment of the present application also provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the foregoing Figure 3 , Figure 5 The method provided in any corresponding embodiment.
[0198] The terms "first", "second", etc. in the description, claims and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally further includes steps or modules not listed, or optionally further includes other step units inherent to these processes, methods, devices, products or equipment.
[0199] In the embodiments of the present application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit that includes the function of that module or unit.
[0200] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of the examples have been generally described in terms of network elements in the above description. Whether these network elements are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described network elements for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0201] The foregoing disclosure is only for the preferred embodiments of the present application, and of course cannot be used to limit the scope of the rights of the present application. Therefore, equivalent changes made in accordance with the claims of the present application still fall within the scope covered by the present application.
Claims
1. A blockchain-based data processing method, characterized in that, it includes: Receiving an asset transfer transaction, and invoking an asset exchange coordination contract to generate an asset transfer order corresponding to the asset transfer transaction; The asset transfer order is used to indicate that the digital assets of the asset transfer type transferred from the target asset to the account are exchanged into the digital assets of the asset transfer-in type; Obtaining an asset transfer restriction order pool and a liquid asset pool; The asset transfer restriction order pool contains M asset transfer restriction orders, where M is a positive integer; one asset transfer restriction order is used to indicate that the digital assets of the asset transfer-in type transferred from an asset transfer-out account are exchanged into the digital assets of the asset transfer-out type; the liquid asset pool contains digital assets of the asset transfer-out type and digital assets of the asset transfer-in type that satisfy a constant quantity relationship; Performing order iterative coordination processing on the asset transfer order according to the asset transfer restriction order pool and the liquid asset pool to obtain an iterative coordinated asset transfer order; the iterative coordinated asset transfer order includes at least one of N asset transfer restriction orders or L coordinated asset flow orders; the N asset transfer restriction orders belong to the M asset transfer restriction orders; N is a positive integer, and L is a positive integer; one coordinated asset flow order is used to indicate that the digital assets of the asset transfer-in type in the liquid asset pool are exchanged into the digital assets of the asset transfer-out type; Performing digital asset transfer processing on the iterative coordinated asset transfer object and the target asset transfer-in account according to the iterative coordinated asset transfer order and the asset transfer order; the iterative coordinated asset transfer object includes at least one of the asset transfer-out accounts respectively associated with the N asset transfer restriction orders or the liquid asset pool.
2. The method according to claim 1, characterized in that, the asset transfer order includes the asset transfer quantity; The performing order iterative coordination processing on the asset transfer order according to the asset transfer restriction order pool and the liquid asset pool to obtain an iterative coordinated asset transfer order includes: In the i-th round of order coordination processing, determining the coordinated asset transfer order in the i-th round according to the iterative asset transfer restriction order pool and the iterative liquid asset pool in the i-th round; when i is 1, the iterative asset transfer restriction order pool in the i-th round is the asset transfer restriction order pool, and the iterative liquid asset pool in the i-th round is the liquid asset pool; the coordinated asset transfer order in the i-th round is an asset transfer restriction order belonging to the iterative asset transfer restriction order pool in the i-th round, or a coordinated asset flow order generated according to the iterative liquid asset pool in the i-th round; If the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round is less than the coordinated asset transfer-in quantity in the i-th round, then determining the difference between the coordinated asset transfer-in quantity in the i-th round and the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round as the coordinated asset transfer-in quantity in the (i + 1)-th round; Update the iterative asset transfer restriction order pool and iterative liquid asset pool of the i-th round according to the coordinated asset transfer order of the i-th round to obtain the iterative asset transfer restriction order pool and iterative liquid asset pool of the (i + 1)-th round; Determine the coordinated asset transfer order of the (i + 1)-th round according to the iterative asset transfer restriction order pool and iterative liquid asset pool of the (i + 1)-th round; If the coordinated asset transfer quantity corresponding to the coordinated asset transfer order of the (i + 1)-th round is greater than the coordinated asset transfer quantity to be coordinated in the (i + 1)-th round, determine the coordinated asset transfer orders determined in the previous (i + 1) rounds as iterative coordinated asset transfer orders.
3. The method according to claim 2, wherein, An asset transfer restriction order includes an asset transfer restriction value; an asset transfer restriction value is used to represent the minimum exchange quantity of the digital assets of the asset transfer type required to exchange the digital assets of one asset transfer type in one asset transfer account; The determining the coordinated asset transfer order of the i-th round according to the iterative asset transfer restriction order pool and iterative liquid asset pool of the i-th round includes: Obtain the lowest asset transfer restriction order in the iterative asset transfer restriction order pool of the i-th round; the lowest asset transfer restriction order is the asset transfer restriction order with the lowest asset transfer restriction value included in the iterative asset transfer restriction order pool of the i-th round; Obtain the asset transfer flow value corresponding to the iterative liquid asset pool of the i-th round; the asset transfer flow value is used to represent the exchange quantity of the digital assets of the asset transfer type required to exchange the digital assets of one asset transfer type in the iterative liquid asset pool of the i-th round; If the asset transfer restriction value included in the lowest asset transfer restriction order is less than the asset transfer flow value, determine the lowest asset transfer restriction order as the coordinated asset transfer order of the i-th round; If the asset transfer restriction value included in the lowest asset transfer restriction order is greater than the asset transfer flow value, generate a coordinated asset flow order according to the asset transfer restriction value included in the lowest asset transfer restriction order and the iterative liquid asset pool of the i-th round, and determine the generated coordinated asset flow order as the coordinated asset transfer order of the i-th round.
4. The method according to claim 3, wherein, The generating a coordinated asset flow order according to the asset transfer restriction value included in the lowest asset transfer restriction order and the iterative liquid asset pool of the i-th round includes: Obtain the asset transfer flow quantity and asset transfer inflow quantity corresponding to the iterative liquid asset pool of the i-th round; the asset transfer flow quantity refers to the asset quantity of the digital assets of the asset transfer type corresponding to the iterative liquid asset pool of the i-th round; the asset transfer inflow quantity refers to the asset quantity of the digital assets of the asset transfer type corresponding to the iterative liquid asset pool of the i-th round; Determine the total constant asset liquidity value according to the constant quantity relationship between the asset transfer flow quantity and the asset transfer inflow quantity; Determine the remaining asset transfer inflow quantity according to the total constant asset liquidity value and the asset transfer restriction value; Determine the difference between the transferred quantity of the assets and the transferred quantity of the remaining assets transferred into liquidity as the transferred quantity of convertible assets into liquidity, and generate a coordinated asset liquidity order based on the transferred quantity of convertible assets into liquidity.
5. The method according to claim 2, wherein, the updating process of the iterative asset transfer restriction order pool and the iterative liquid asset pool in the i-th round according to the coordinated asset transfer order in the i-th round to obtain the iterative asset transfer restriction order pool and the iterative liquid asset pool in the (i + 1)-th round includes: When the coordinated asset transfer order in the i-th round is a coordinated asset liquidity order generated based on the iterative liquid asset pool in the i-th round, update the asset transferred-in liquidity quantity and the asset transferred-out liquidity quantity corresponding to the iterative liquid asset pool in the i-th round according to the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round and the total value of constant asset liquidity, and determine the updated iterative liquid asset pool in the i-th round as the iterative liquid asset pool in the (i + 1)-th round; Determine the iterative asset transfer restriction order pool in the i-th round as the iterative asset transfer restriction order pool in the (i + 1)-th round.
6. The method according to claim 5, wherein, the updating process of the asset transferred-in liquidity quantity and the asset transferred-out liquidity quantity corresponding to the iterative liquid asset pool in the i-th round according to the coordinated asset transfer quantity corresponding to the coordinated asset transfer order in the i-th round and the total value of constant asset liquidity, and determining the updated iterative liquid asset pool in the i-th round as the iterative liquid asset pool in the (i + 1)-th round includes: Update the asset transferred-in liquidity quantity corresponding to the iterative liquid asset pool in the i-th round to the latest asset transferred-in liquidity quantity; the latest asset transferred-in liquidity quantity is the difference between the asset transferred-in liquidity quantity and the coordinated asset transfer quantity; Determine the latest asset transferred-out liquidity quantity according to the constant quantity relationship corresponding to the total value of constant asset liquidity and the latest asset transferred-in liquidity quantity; Update the asset transferred-out liquidity quantity corresponding to the iterative liquid asset pool in the i-th round to the latest asset transferred-out liquidity quantity; Determine the updated iterative liquid asset pool in the i-th round as the iterative liquid asset pool in the (i + 1)-th round.
7. The method according to claim 2, wherein, the updating process of the iterative asset transfer restriction order pool and the iterative liquid asset pool in the i-th round according to the coordinated asset transfer order in the i-th round to obtain the iterative asset transfer restriction order pool and the iterative liquid asset pool in the (i + 1)-th round includes: When the coordinated asset transfer order in the i-th round is an asset transfer restriction order belonging to the iterative asset transfer restriction order pool in the i-th round, remove the coordinated asset transfer order in the i-th round from the iterative asset transfer restriction order pool in the i-th round, and determine the iterative asset transfer restriction order pool after removal in the i-th round as the iterative asset transfer restriction order pool in the (i + 1)-th round; Determine the iterative liquid asset pool in the i-th round as the iterative liquid asset pool in the (i + 1)-th round.
8. The method according to claim 2, wherein, The asset transfer-in order further includes an asset transfer-in limit value; the asset transfer-in limit value is used to represent the maximum exchange quantity of the digital assets of the asset transfer-out type provided when the target assets are transferred into the account to exchange the digital assets of an asset transfer-in type; The method further includes: If the coordinated asset transfer-out value corresponding to the i-th round of coordinated asset transfer-out order is less than or equal to the asset transfer-in limit value, then execute the step of determining the difference between the quantity of the coordinated asset transfer-in to be coordinated in the i-th round and the quantity of the coordinated asset transfer-out corresponding to the i-th round of coordinated asset transfer-out order as the quantity of the coordinated asset transfer-in to be coordinated in the (i + 1)-th round if the quantity of the coordinated asset transfer-out corresponding to the i-th round of coordinated asset transfer-out order is less than the quantity of the coordinated asset transfer-in to be coordinated in the i-th round; If the coordinated asset transfer-out value corresponding to the i-th round of coordinated asset transfer-out order is greater than the asset transfer-in limit value, then determine the coordinated asset transfer-out orders determined in the previous i - 1 rounds as the iterative coordinated asset transfer-out orders.
9. The method according to claim 1, wherein, The iterative coordinated asset transfer-out object includes X coordinated asset transfer-out objects; X is a positive integer; The digital asset transfer processing of the iterative coordinated asset transfer-out object and the target asset transfer-in account according to the iterative coordinated asset transfer-out order and the asset transfer-in order includes: Traverse the X coordinated asset transfer-out objects to obtain the j-th coordinated asset transfer-out object; j is a positive integer less than or equal to X; Determine the transfer-out coordinated quantity and the transfer-in coordinated quantity corresponding to the j-th coordinated asset transfer-out object according to the iterative coordinated asset transfer-out order and the asset transfer-in order; Transfer the coordinated transfer-in digital assets to the target asset transfer-in account, and transfer the coordinated transfer-out digital assets to the j-th coordinated asset transfer-out object; the coordinated transfer-in digital assets refer to the digital assets of the asset transfer-in type corresponding to the transfer-out coordinated quantity; the coordinated transfer-out digital assets refer to the digital assets of the asset transfer-out type corresponding to the transfer-in coordinated quantity.
10. The method according to claim 9, wherein, The transferring the coordinated transfer-in digital assets to the target asset transfer-in account and transferring the coordinated transfer-out digital assets to the j-th coordinated asset transfer-out object includes: If the j-th coordinated asset transfer-out object is a liquid asset pool, then transfer the coordinated transfer-in digital assets in the j-th coordinated asset transfer-out object to the target asset transfer-in account, and transfer the coordinated transfer-out digital assets in the coordinated contract asset pool to the j-th coordinated asset transfer-out object; the coordinated transfer-out digital assets are transferred from the target asset transfer-in account to the coordinated contract asset pool when the asset transfer-in order is generated; If the j-th coordinated asset transfer-out object is an asset transfer restriction order, transfer the coordinated transferred digital assets in the coordinated contract asset pool to the target asset transfer-in account, and transfer the coordinated transferred-out digital assets in the coordinated contract asset pool to the j-th coordinated asset transfer-out object; the coordinated transferred digital assets are transferred from the j-th coordinated asset transfer-out object to the coordinated contract asset pool when the asset transfer restriction order associated with the j-th coordinated asset transfer-out object is generated.
11. The method according to claim 9, wherein, the asset transfer-in order includes an asset transfer-in quantity; the method further includes: performing a summation process on the transfer coordination quantities respectively corresponding to X coordinated asset transfer-out objects to obtain the asset already transferred quantity corresponding to the asset transfer-in order; if the asset already transferred quantity is less than the asset transfer-in quantity, determining the difference between the asset transfer-in quantity and the asset already transferred quantity as the remaining asset transfer-in quantity; updating the asset transfer-in quantity included in the asset transfer-in order to the remaining asset transfer-in quantity, and adding the updated asset transfer-in order to the asset transfer restriction order pool; the asset transfer restriction order pool is used to perform order iteration coordination processing with the liquid asset pool when the asset transfer-out order is generated by the asset exchange coordination contract; the asset transfer-out order is used to indicate converting the digital assets of the asset transfer-in type in the target asset transfer-out account into digital assets of the asset transfer-out type.
12. A blockchain-based data processing device, wherein, it includes: an order generation module, configured to receive an asset transfer-in transaction and call an asset exchange coordination contract to generate an asset transfer-in order corresponding to the asset transfer-in transaction; the asset transfer-in order is used to indicate converting the digital assets of the asset transfer-out type in the target asset transfer-in account into digital assets of the asset transfer-in type; an acquisition module, configured to acquire an asset transfer restriction order pool and a liquid asset pool; the asset transfer restriction order pool includes M asset transfer restriction orders, where M is a positive integer; one asset transfer restriction order is used to indicate converting the digital assets of the asset transfer-in type in one asset transfer-out account into digital assets of the asset transfer-out type; an iteration coordination module, configured to perform order iteration coordination processing on the asset transfer-in order according to the asset transfer restriction order pool and the liquid asset pool to obtain an iteration coordination asset transfer-out order; the iteration coordination asset transfer-out order includes at least one of N asset transfer restriction orders or L coordinated asset flow orders; the N asset transfer restriction orders belong to the M asset transfer restriction orders; N is a positive integer and L is a positive integer; one coordinated asset flow order is used to indicate converting the digital assets of the asset transfer-in type in the liquid asset pool into digital assets of the asset transfer-out type; An asset transfer module, configured to perform digital asset transfer processing on the iteratively coordinated asset transfer object and the target asset transfer-in account according to the iteratively coordinated asset transfer-out order and the asset transfer-in order; the iteratively coordinated asset transfer object includes at least one of the asset transfer-out accounts respectively associated with the N asset transfer-out restriction orders or the liquid asset pool.
13. A computer device, characterized in that it includes: a processor, a memory, and a network interface; the processor is connected to the memory and the network interface, wherein the network interface is used to provide data communication functions, the memory is used to store program codes, and the processor is used to call the program codes to execute the method according to any one of claims 1-11.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and the computer program is adapted to be loaded and executed by a processor to execute the method according to any one of claims 1-11.
15. A computer program product, including a computer program / instructions, characterized in that when the computer program / instructions are executed by a processor, the method according to any one of claims 1-11 can be executed.