CN113436011A - Intelligent contract processing method, device, equipment and computer readable storage medium - Google Patents

Intelligent contract processing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113436011A
CN113436011A CN202110628323.5A CN202110628323A CN113436011A CN 113436011 A CN113436011 A CN 113436011A CN 202110628323 A CN202110628323 A CN 202110628323A CN 113436011 A CN113436011 A CN 113436011A
Authority
CN
China
Prior art keywords
intelligent contract
total
token
investment
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110628323.5A
Other languages
Chinese (zh)
Inventor
胡磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midas Technology Shenzhen Co ltd
Original Assignee
Midas Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midas Technology Shenzhen Co ltd filed Critical Midas Technology Shenzhen Co ltd
Priority to CN202110628323.5A priority Critical patent/CN113436011A/en
Publication of CN113436011A publication Critical patent/CN113436011A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Bioethics (AREA)
  • Technology Law (AREA)
  • Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an intelligent contract processing method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: when receiving a digital asset transaction request transmitted by a user node, the intelligent contract determines digital assets corresponding to the digital asset transaction request and stores the digital assets into the intelligent contract; if the intelligent contract reaches a preset recruitment period, determining a digital total asset according to the digital asset purchased by the user node; determining the total issued amount of the token, and determining the final pricing of the token according to the total issued amount of the token and the total digital assets after the intelligent contract is issued on a trading platform; and determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node. In the invention, the project party can not price the token randomly and can not change the price of the token randomly, thereby solving the technical problem of unreasonable price of the token.

Description

Intelligent contract processing method, device, equipment and computer readable storage medium
Technical Field
The invention relates to the technical field of block chains, in particular to an intelligent contract processing method, an intelligent contract processing device, intelligent contract processing equipment and a computer readable storage medium.
Background
The general intelligent contract public offering process establishes a public offering price and a public offering quantity for a project party, a participant transfers assets to the project party in a transfer or intelligent contract calling mode, and the project party sends tokens to the participant. However, in such intelligent contract public offering process, a strong centralized mode is adopted, namely that the tokens are priced independently by project parties, are quantified independently, can be changed freely, and lack effective supervision, so that the pricing of the tokens in the digital currency market is unreasonable.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an intelligent contract processing method, device, equipment and computer readable storage medium, aiming at solving the technical problem that the pricing of a token is changed by a project party at will, so that the price of the token is unreasonable.
In order to achieve the above object, the present invention provides an intelligent contract processing method, where the intelligent contract processing method is applied to a blockchain server, and an intelligent contract is deployed in the blockchain server, and the intelligent contract processing method includes the following steps:
when receiving a digital asset transaction request transmitted by a user node, the intelligent contract determines digital assets corresponding to the digital asset transaction request and stores the digital assets into the intelligent contract;
if the intelligent contract reaches a preset recruitment period, determining a digital total asset according to the digital asset purchased by the user node;
determining the total issued amount of the token, and determining the final pricing of the token according to the total issued amount of the token and the total digital assets after the intelligent contract is issued on a trading platform;
and determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node.
Optionally, the step of determining a total amount of token issuance comprises:
determining the intelligent contracts of the same category matched with the intelligent contracts;
if the number of the intelligent contracts of the same category is smaller than a preset threshold value, determining the total fund raising amount of the intelligent contracts of the same category and the total token issuing amount of the intelligent contracts of the same category;
determining a total token issuance amount according to the total recruitment amount of the intelligent contracts of the same category, the total token issuance amount of the intelligent contracts of the same category, and the digital total assets of the intelligent contracts.
Optionally, after the step of determining the same category of intelligent contracts matching the intelligent contracts, the method further includes:
if the number of the intelligent contracts of the same category is larger than or equal to the preset threshold value, sorting the investment amount according to the investment amount corresponding to the investment users of the intelligent contracts of the same category and the size sequence of the investment amount to obtain a first investment set;
according to the digital assets purchased by each user node in the intelligent contract, sequencing the digital assets according to the size sequence of the digital assets to obtain a second investment set;
determining investment similarity between the intelligent contracts of the same category and the intelligent contracts according to the first investment set and the second investment set;
taking the intelligent contracts of the same category corresponding to the investment similarity larger than a preset threshold value as target intelligent contracts, and determining the total fund raising amount of the target intelligent contracts and the token issuing total amount of the target intelligent contracts;
determining a total amount of token issuance based on the total fund raising amount for the target intelligent contract, the total amount of token issuance for the target intelligent contract, and the digital total assets for the intelligent contract.
Optionally, the step of determining investment similarity between the intelligent contracts of the same category and the intelligent contracts according to the first investment set and the second investment set comprises:
acquiring a preset investment interval, and respectively counting the number of investment users corresponding to each preset investment interval in the first investment set and the second investment set according to the preset investment interval to obtain a first investment user distribution corresponding to the first investment set and a second investment user distribution corresponding to the second investment set;
and determining the investment similarity of the first investment user distribution and the second investment user distribution according to the first investment user distribution corresponding to the same-class intelligent contract and the second investment user distribution corresponding to the intelligent contract.
Optionally, the step of determining a total amount of token issuance based on the total fund raising amount of the target intelligent contract, the total amount of token issuance of the target intelligent contract, and the digital total assets of the intelligent contract comprises:
determining pricing of the target intelligent contract according to the total fund raising amount of the target intelligent contract and the token issuing total amount of the target intelligent contract;
determining average pricing of the target intelligent contracts according to the pricing of each target intelligent contract and the number of the target intelligent contracts;
determining a total amount of tokens issued based on the average pricing of the target smart contract and the digital total assets.
Optionally, before the step of determining a final pricing of the token according to the total amount of issued tokens and the total digital assets after the intelligent contract is issued on the trading platform, the method further comprises:
acquiring the number of tokens corresponding to the intelligent contract in the recruitment term;
determining the initial price of the token in the intelligent contract according to the total digital assets and the token quantity corresponding to the recruitment period;
acquiring contract information of the intelligent contract, and outputting the contract information of the intelligent contract to a trading platform to be issued on the trading platform, wherein the contract information comprises the initial price, the digital total assets and the token issuing total amount.
Optionally, the step of determining a total amount of token issuance comprises:
a contract issuer receiving the intelligent contract inputs a token issuance ratio based on the blockchain server;
and acquiring the token quantity corresponding to the recruitment period, and determining the total token release amount according to the token quantity corresponding to the recruitment period and the token release ratio.
In addition, to achieve the above object, the present invention also provides an intelligent contract processing apparatus, including:
the digital asset determining module is used for determining the digital asset corresponding to the digital asset trading request when the intelligent contract receives the digital asset trading request transmitted by the user node, and storing the digital asset into the intelligent contract;
a digital total asset determining module, configured to determine a digital total asset according to the digital asset purchased by the user node if the intelligent contract reaches a preset recruitment deadline;
the token pricing module is used for determining the total issued quantity of the tokens and determining the final pricing of the tokens according to the total issued quantity of the tokens and the total digital assets after the intelligent contract is issued on a trading platform;
and the token distribution module is used for determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node.
Further, to achieve the above object, the present invention also provides an intelligent contract processing apparatus including: the intelligent contract processing program comprises a memory, a processor and an intelligent contract processing program which is stored on the memory and can run on the processor, wherein the intelligent contract processing program realizes the steps of the intelligent contract processing method when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having an intelligent contract processing program stored thereon, which when executed by a processor implements the steps of the intelligent contract processing method as described above.
When a digital asset transaction request transmitted by a user node is received through an intelligent contract, the digital asset corresponding to the digital asset transaction request is determined, and the digital asset is stored in the intelligent contract; if the intelligent contract reaches a preset recruitment period, determining a digital total asset according to the digital asset purchased by the user node; determining the total issued amount of the token, and determining the final pricing of the token according to the total issued amount of the token and the total digital assets after the intelligent contract is issued on a trading platform; and determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node. In the embodiment, the blockchain server automatically recruits resources through the intelligent contract, issues the intelligent contract and automatically distributes the purchased tokens to each user, the processes are automatically executed by the intelligent contract, the pricing of the tokens is automatically calculated by the intelligent contract according to the total digital assets and the token issuance amount obtained by the recruited resources, once the pricing is finished, the pricing cannot be changed, a project party cannot freely price the tokens and cannot freely change the pricing of the tokens, and the technical problem that the pricing of the tokens is unreasonable is solved.
Drawings
FIG. 1 is a diagram of an intelligent contract processing device architecture for a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the intelligent contract processing method of the present invention;
fig. 3 is a flowchart illustrating a second embodiment of the intelligent contract processing method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of an intelligent contract processing device of a hardware operating environment according to an embodiment of the present invention.
The intelligent contract processing device in the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as an intelligent mobile phone, a tablet personal computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a portable computer and the like.
As shown in fig. 1, the intelligent contract processing apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the smart contract processing device may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors.
Those skilled in the art will appreciate that the intelligent contract processing apparatus configuration shown in FIG. 1 does not constitute a limitation of intelligent contract processing apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an intelligent contract processing program.
In the intelligent contract processing device shown in fig. 1, the network interface 1004 is mainly used for connecting with a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the intelligent contract processing program stored in the memory 1005 and execute the intelligent contract processing method provided by the embodiment of the present invention.
The invention also provides an intelligent contract processing method, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the intelligent contract processing method of the invention.
In this embodiment, the intelligent contract processing method includes the following steps:
step S10, when the intelligent contract receives the digital asset transaction request transmitted by the user node, the intelligent contract determines the digital asset corresponding to the digital asset transaction request and stores the digital asset into the intelligent contract;
the intelligent contract processing method provided by the invention is applied to the blockchain server, the intelligent contract is developed by a contract developer, and the intelligent contract is deployed in the blockchain server, so that the blockchain server can automatically process the public fund raising process according to the intelligent contract developed by the contract developer. Furthermore, the intelligent contract is deployed in the blockchain server, the user node is a blockchain link point in a blockchain network, the user node can be a user terminal, and the user terminal is accessed into the blockchain network and then used as the user node to communicate with the blockchain network.
In this embodiment, when a user needs to participate in the public fund raising of an intelligent contract, the user may purchase digital money (hereinafter referred to as "tokens") issued by the intelligent contract with a blockchain server through a user node on a blockchain network to participate in the public fund raising of the intelligent contract, that is, the user node participates in the public fund raising of the intelligent contract by transmitting a digital asset transaction request to the intelligent contract of the blockchain server, where the digital asset transaction request is used for participating in the public fund raising of the intelligent contract. Specifically, when a user needs to participate in the public fund raising of an intelligent contract, a user node initiates a digital asset transaction request; when receiving a digital asset transaction request transmitted by a user node, the intelligent contract determines the digital asset to be purchased by the user node according to the digital asset transaction request transmitted by the user node, and associates and stores the digital asset to be purchased by the user node and user information corresponding to the user node into the intelligent contract.
If the digital asset transaction request contains the digital asset to be purchased by the user node, the digital asset transaction request is directly analyzed to obtain the digital asset. If the digital asset transaction request does not contain the digital asset to be purchased by the user node, the intelligent contract transmits a digital asset confirmation request to the user node based on the digital asset transaction request; and the user node receives the digital asset confirmation request transmitted by the intelligent contract and feeds back the digital asset to the intelligent contract so that the intelligent contract can determine the digital asset to be purchased by the user node.
Step S20, if the intelligent contract reaches the preset recruitment period, determining the digital total assets according to the digital assets purchased by the user node;
in this embodiment, it should be noted that the intelligent contract starts the public fund raising process approximately before the intelligent contract is released formally, and the public fund raising process continues for a certain recruitment period, where the recruitment period is approximately the fund raising duration of the fund raising process, and a user needs to participate in the public fund raising of the intelligent contract before the recruitment period reaches, otherwise, the user cannot participate in the public fund raising of the intelligent contract after the recruitment duration reaches the recruitment period. The method comprises the steps that before the recruitment period of the intelligent contract expires, a plurality of user nodes participate in purchasing digital assets in the intelligent contract, the intelligent contract finishes open recruitment when the recruitment period reaches, and all digital total assets are calculated according to the digital assets purchased by the user nodes before the recruitment period so as to count the digital total assets capable of being recruited by the intelligent contract. The digital assets purchased by each user node are summed, and the digital total assets which can be collected by the intelligent collection in the collection period can be calculated. Wherein the digital total assets are total assets that the intelligent aggregation is aggregated in the aggregation period.
Step S30, determining the total amount of issued tokens, and determining the final pricing of the tokens according to the total amount of issued tokens and the total digital assets after the intelligent contract is issued on a trading platform;
it should be noted that the intelligent contract needs to be issued on the trading platform after the recruitment term is reached, because other users can make the next investment on the intelligent contract after the intelligent contract is issued on the trading platform with public confidence. The trading platform is a digital currency trading platform with public trust, for example, the trading platform can be a trading exchange with public trust.
In this embodiment, after the funding is completed, the total token issuance amount of the intelligent contract is set, and the total token issuance amount of the intelligent contract may be set according to the digital total assets collected, may be set by the contract issuer itself, may be calculated according to the issuance ratio, and the like, and is not particularly limited in this embodiment. In this embodiment, after the intelligent contract is issued, the token is priced automatically, and the process of pricing the token specifically includes: after the smart contract is issued on the trading platform, the final pricing of the tokens is determined based on the determined total amount of tokens issued and the digital total assets recruited. Wherein the final pricing of the token is the ratio of the total digital assets collected to the total amount of issued tokens, the final pricing of the token can be calculated as: the final pricing of tokens is the total digital asset/token issuance.
Further, before the step of determining the final pricing of the token according to the total token issuance amount and the total digital asset after the intelligent contract is issued on the trading platform, the method further comprises:
step A1, obtaining a total token recruitment amount for the intelligent contract;
step A2, determining an initial price of a token in the intelligent contract based on the digital total assets and the total token recruitment amount;
step A3, acquiring contract information of the intelligent contract, and outputting the contract information of the intelligent contract to a trading platform for issuing on the trading platform, wherein the contract information comprises the initial price, the digital total assets and the token issuing total amount.
In this embodiment, the total amount of collected tokens of the intelligent contract is set before the intelligent contract publicly recruits, for example, the total amount of collected tokens before issue is 10 ten thousand, so that the intelligent contract publicly sells only 10 ten thousand tokens at the time of the public recruiting. After the intelligent contract reaches the recruitment deadline, the intelligent contract needs to be issued on a trading platform, and the specific process of issuing the intelligent contract is as follows: acquiring contract information of the intelligent contract, and transmitting the contract information of the intelligent contract to the transaction platform so that the transaction platform can verify the contract information of the intelligent contract; after the intelligent contract is approved by the trading platform, the related contract information of the intelligent contract is published on the trading platform so as to provide the contract information of the intelligent contract to a user on the trading platform for real-time viewing, thereby realizing the issuing process of the intelligent contract. Wherein the contract information at least comprises the initial price of the token, the collected digital total assets and the total amount of the token issued after the intelligent contract is issued. The initial price is calculated according to the total digital assets and the total token recruiting amount, specifically, the initial price of the token is the ratio of the total digital assets and the total token recruiting amount, and the initial price of the token can be calculated by the following steps: the initial price of a token is the total digital assets/token recruitments.
And step S40, determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node.
In this embodiment, after the pricing of the tokens is completed, the tokens are issued to the users who have participated in the fund raising, specifically: and respectively determining the token purchase amount purchased by each user according to the final pricing of the tokens and the digital assets corresponding to each user, and respectively distributing the tokens corresponding to the token purchase amount to each user node.
In the intelligent contract processing method provided by the embodiment, when a digital asset transaction request transmitted by a user node is received through an intelligent contract, a digital asset corresponding to the digital asset transaction request is determined, and the digital asset is stored in the intelligent contract; if the intelligent contract reaches a preset recruitment period, determining a digital total asset according to the digital asset purchased by the user node; determining the total issued amount of the token, and determining the final pricing of the token according to the total issued amount of the token and the total digital assets after the intelligent contract is issued on a trading platform; and determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node. In the embodiment, the blockchain server automatically recruits resources through the intelligent contract, issues the intelligent contract and automatically distributes the purchased tokens to each user, the processes are automatically executed by the intelligent contract, the pricing of the tokens is automatically calculated by the intelligent contract according to the total digital assets and the token issuance amount obtained by the recruited resources, once the pricing is finished, the pricing cannot be changed, a project party cannot freely price the tokens and cannot freely change the pricing of the tokens, and the technical problem that the pricing of the tokens is unreasonable is solved.
Based on the first embodiment, a second embodiment of the intelligent contract processing method of the present invention is proposed, and referring to fig. 3, in this embodiment, step S30 includes:
step S301, determining the intelligent contracts of the same category matched with the intelligent contracts;
step S302, if the number of the intelligent contracts of the same category is smaller than a preset threshold value, determining the total recruitment amount of the intelligent contracts of the same category and the total token issuing amount of the intelligent contracts of the same category;
step S303, determining the total token issuing amount according to the total recruitment amount of the intelligent contracts of the same category, the total token issuing amount of the intelligent contracts of the same category and the digital total assets of the intelligent contracts.
The amount of tokens issued may be set by the digital total assets recruited, or set by the contract issuer itself, or calculated based on the proportion of issues, etc. In this embodiment, the total token issuance amount is set with reference to the total token issuance amount of the intelligent contracts of the same category, which is specifically as follows:
first, the intelligent contracts of the same category matched with the intelligent contracts can be determined on the trading platform, the intelligent contracts of the same category matched with the intelligent contracts can be determined in historical intelligent contract data developed by a contract developer in history, and the mode of determining the intelligent contracts of the same category is not specifically limited in this embodiment. The intelligent contracts of the same category belong to the same technical field as the intelligent contracts, and it should be noted that the intelligent contracts include intelligent contracts of a plurality of different technical fields, for example, the fields to which the intelligent contracts belong include storage technology, innovation technology, right certification mechanism technology, and the like. And then, judging whether the number of the intelligent contracts of the same type belonging to the same technical field with the intelligent contracts is smaller than a preset threshold value or not so as to judge the number scale of the intelligent contracts of the same type. If the number of the intelligent contracts of the same category is smaller than the preset threshold value, the number scale of the intelligent contracts of the same category of the intelligent contracts is smaller, and the total token issuing amount can be directly calculated according to the determined relevant data of all the intelligent contracts of the same category. Specifically, the total fund raising amount of the intelligent contracts of the same category and the total token issuing amount of the intelligent contracts of the same category are obtained, the total fund raising amount of the intelligent contracts of the same category and the total token issuing amount of the intelligent contracts of the same category are referred, and the total token issuing amount of the intelligent contracts is set by combining the digital total assets of the intelligent contracts. The reference principle of the measurement is as follows: the gap between token value of an intelligent contract and a same category of intelligent contracts should not be too large.
Further, the calculation formula for calculating the total token issuing amount of the intelligent contract according to the total recruitment amount of the intelligent contracts of the same category, the total token issuing amount of the intelligent contracts of the same category and the digital total assets of the intelligent contracts is as follows:
Figure BDA0003100482910000101
further, after the step of determining the same category of intelligent contracts matching the intelligent contracts, the method further comprises:
step S304, if the number of the intelligent contracts of the same category is larger than or equal to the preset threshold value, sorting the investment amounts according to the investment amounts corresponding to the investment users of the intelligent contracts of the same category and the size sequence of the investment amounts to obtain a first investment set;
step S305, according to the digital assets purchased by each user node in the intelligent contract, sequencing the digital assets according to the size sequence of the digital assets to obtain a second investment set;
step S306, determining the investment similarity between the intelligent contracts of the same category and the intelligent contracts according to the first investment set and the second investment set;
step S307, using the same-class intelligent contracts with the investment similarity larger than a preset threshold value as target intelligent contracts, and determining the total fund raising amount of the target intelligent contracts and the token issuing total amount of the target intelligent contracts;
step S308, determining the total token issuing amount according to the total recruitment amount of the target intelligent contract, the total token issuing amount of the target intelligent contract and the digital total assets of the intelligent contract.
In this embodiment, if the number of the intelligent contracts of the same category is greater than or equal to the preset threshold, which indicates that the number of the intelligent contracts of the same category of the intelligent contracts is large in scale, the intelligent contracts of the same category need to be further screened to obtain a target intelligent contract with a greater investment similarity to the intelligent contract, and then the total token issuance amount is calculated according to the determined relevant data of the target intelligent contract. Wherein the predetermined threshold is generally 7-10.
Specifically, for the same-class intelligent contracts, according to the investment amount corresponding to the investment users of the same-class intelligent contracts, the investment amounts of the investment users in the same-class intelligent contracts are sequenced according to the size sequence of the investment amounts, and a first investment set is obtained. And for the intelligent contract, according to the digital assets purchased by each user node in the intelligent contract and the size sequence of the digital assets corresponding to each user node in the intelligent contract, sequencing the digital assets corresponding to each user node in the intelligent contract to obtain a second investment set. And then comparing the first investment set corresponding to each intelligent contract of the same category with the second investment set corresponding to the intelligent contract to determine the investment similarity between each intelligent contract of the same category and the intelligent contract. After the investment similarity between each intelligent contract of the same type and the intelligent contract is obtained, the intelligent contracts of the same type corresponding to the investment similarity larger than the preset threshold value in the intelligent contracts of the same type are screened out, and the intelligent contracts of the same type corresponding to the screened investment similarity larger than the preset threshold value are used as target intelligent contracts. Finally, the total token issuance amount is calculated based on the total fund raising amount of the target intelligent contract, the total token issuance amount of the target intelligent contract, and the digital total assets of the intelligent contract.
In this embodiment, when the number of the intelligent contracts of the same category is large, the total issued amount of the token is calculated according to the target intelligent contract which is further screened and has a large similarity with the intelligent contract after the intelligent contracts of the same category are further screened, so that the accuracy of setting the total issued amount of the token is improved.
Further, the step of determining investment similarity between the intelligent contracts of the same category and the intelligent contracts according to the first investment set and the second investment set comprises:
step S3061, acquiring a preset investment interval, and respectively counting the number of investment users corresponding to each preset investment interval in the first investment set and the second investment set according to the preset investment interval to obtain a first investment user distribution corresponding to the first investment set and a second investment user distribution corresponding to the second investment set;
step S3062, determining the investment similarity between the first investment user distribution and the second investment user distribution according to the first investment user distribution corresponding to the same category intelligent contract and the second investment user distribution corresponding to the intelligent contract.
In this embodiment, the first investment set corresponding to each intelligent contract of the same category is compared with the second investment set corresponding to the intelligent contract to determine the investment similarity between each intelligent contract of the same category and the intelligent contract. Specifically, the method includes the steps of firstly counting the number of investment users of each investment set in different preset investment intervals according to preset investment intervals to determine the investment user distribution of the investment sets, and specifically including counting the number of investment users of a first investment set in different preset investment intervals to obtain a first investment user distribution result corresponding to the first investment set, and counting the number of investment users of a second investment set in different preset investment intervals to obtain a second investment user distribution result corresponding to the second investment set. And then, calculating the investment similarity of the first investment user distribution and the second investment user distribution according to the first investment user distribution and the second investment user distribution, specifically, calculating the difference value of the number of the investment users of the first investment user distribution and the second investment user distribution in different preset investment intervals, and then carrying out weighted summation on the difference value of the number of the investment users in the preset investment intervals according to the weight values corresponding to the different preset investment intervals to obtain the investment similarity of the first investment user distribution and the second investment user distribution.
Further, the step of determining a total token issuance amount based on the total fund raising amount of the target intelligent contract, the total token issuance amount of the target intelligent contract, and the total digital assets of the intelligent contract comprises:
step S3081, determining the pricing of the target intelligent contract according to the total resource recruitment of the target intelligent contract and the total token issuing amount of the target intelligent contract;
step S3082, determining average pricing of the target intelligent contracts according to pricing of each target intelligent contract and the number of the target intelligent contracts;
and S3083, determining the total amount of issued tokens according to the average pricing of the target intelligent contract and the digital total assets.
In this embodiment, for each target intelligent contract, the pricing of the token of each target intelligent contract is calculated respectively, then the average pricing of the target intelligent contracts is calculated according to the pricing of each target intelligent contract and the number of the target intelligent contracts, and finally the total token issuing amount is determined according to the average pricing of the target intelligent contracts and the digital total assets of the intelligent contracts. Specifically, according to the total fund raising amount of the target intelligent contract, the total token issuing amount of the target intelligent contract, and the digital total assets of the intelligent contract, the calculation formula for calculating the total token issuing amount is as follows:
Figure BDA0003100482910000121
further, the step of determining a total amount of token issuance includes:
step S311, receiving the token issuing proportion input by the contract issuer of the intelligent contract based on the block chain server;
step S312, obtaining the token quantity corresponding to the recruitment period, and determining the total token issue quantity according to the token quantity corresponding to the recruitment period and the token issue proportion.
The amount of tokens issued may be set by the digital total assets recruited, or set by the contract issuer itself, or calculated based on the proportion of issues, etc. In this embodiment, the token issuance amount of the smart contract is set by the contract issuer itself. Specifically, the contract publisher may set a token issuance ratio of the intelligent contract through the blockchain server, then receive the number of tokens purchased by the user in the fund recruitment process by the intelligent contract set by the user, and calculate the total token issuance amount according to the token number and the token issuance ratio corresponding to the fund recruitment term, and specifically, multiply the token number by the token issuance ratio to obtain the total token issuance amount of the intelligent contract. The number of tokens corresponding to the collection period is the number of tokens set for purchase by the user in the funding process of the intelligent contract, and the total amount of tokens issued in the subsequent official release is different from the number of tokens in the funding process.
The intelligent contract processing method provided by the embodiment determines the intelligent contracts of the same category matched with the intelligent contracts; if the number of the intelligent contracts of the same category is smaller than a preset threshold value, determining the total fund raising amount of the intelligent contracts of the same category and the total token issuing amount of the intelligent contracts of the same category; determining a total token issuance amount according to the total recruitment amount of the intelligent contracts of the same category, the total token issuance amount of the intelligent contracts of the same category, and the digital total assets of the intelligent contracts. In this embodiment, when the number of the same-category intelligent contracts of the intelligent contracts is small in scale, the token issuing amount can be directly calculated according to the determined relevant data of all the same-category intelligent contracts.
In addition, an embodiment of the present invention further provides an intelligent contract processing apparatus, where the intelligent contract processing apparatus includes:
the digital asset determining module is used for determining the digital asset corresponding to the digital asset trading request when the intelligent contract receives the digital asset trading request transmitted by the user node, and storing the digital asset into the intelligent contract;
a digital total asset determining module, configured to determine a digital total asset according to the digital asset purchased by the user node if the intelligent contract reaches a preset recruitment deadline;
the token pricing module is used for determining the total issued quantity of the tokens and determining the final pricing of the tokens according to the total issued quantity of the tokens and the total digital assets after the intelligent contract is issued on a trading platform;
and the token distribution module is used for determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node.
Further, the token pricing module is further to:
determining the intelligent contracts of the same category matched with the intelligent contracts;
if the number of the intelligent contracts of the same category is smaller than a preset threshold value, determining the total fund raising amount of the intelligent contracts of the same category and the total token issuing amount of the intelligent contracts of the same category;
determining a total token issuance amount according to the total recruitment amount of the intelligent contracts of the same category, the total token issuance amount of the intelligent contracts of the same category, and the digital total assets of the intelligent contracts.
Further, the token pricing module is further to:
if the number of the intelligent contracts of the same category is larger than or equal to the preset threshold value, sorting the investment amount according to the investment amount corresponding to the investment users of the intelligent contracts of the same category and the size sequence of the investment amount to obtain a first investment set;
according to the digital assets purchased by each user node in the intelligent contract, sequencing the digital assets according to the size sequence of the digital assets to obtain a second investment set;
determining investment similarity between the intelligent contracts of the same category and the intelligent contracts according to the first investment set and the second investment set;
taking the intelligent contracts of the same category corresponding to the investment similarity larger than a preset threshold value as target intelligent contracts, and determining the total fund raising amount of the target intelligent contracts and the token issuing total amount of the target intelligent contracts;
determining a total amount of token issuance based on the total fund raising amount for the target intelligent contract, the total amount of token issuance for the target intelligent contract, and the digital total assets for the intelligent contract.
Further, the token pricing module is further to:
acquiring a preset investment interval, and respectively counting the number of investment users corresponding to each preset investment interval in the first investment set and the second investment set according to the preset investment interval to obtain a first investment user distribution corresponding to the first investment set and a second investment user distribution corresponding to the second investment set;
and determining the investment similarity of the first investment user distribution and the second investment user distribution according to the first investment user distribution corresponding to the same-class intelligent contract and the second investment user distribution corresponding to the intelligent contract.
Further, the token pricing module is further to:
determining pricing of the target intelligent contract according to the total fund raising amount of the target intelligent contract and the token issuing total amount of the target intelligent contract;
determining average pricing of the target intelligent contracts according to the pricing of each target intelligent contract and the number of the target intelligent contracts;
determining a total amount of tokens issued based on the average pricing of the target smart contract and the digital total assets.
Further, the intelligent contract processing apparatus further includes:
the token quantity acquisition module is used for acquiring the token quantity corresponding to the recruitment term of the intelligent contract;
the initial price determining module is used for determining the initial price of the token in the intelligent contract according to the total digital assets and the token quantity corresponding to the recruitment period;
the issuing module is used for acquiring contract information of the intelligent contract and outputting the contract information of the intelligent contract to a trading platform so as to issue the contract information on the trading platform, wherein the contract information comprises the initial price, the digital total assets and the token issuing total amount.
Further, the token pricing module is further to:
a contract issuer receiving the intelligent contract inputs a token issuance ratio based on the blockchain server;
and acquiring the token quantity corresponding to the recruitment period, and determining the total token release amount according to the token quantity corresponding to the recruitment period and the token release ratio.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where an intelligent contract processing program is stored, and the intelligent contract processing program, when executed by a processor, implements the steps of the intelligent contract processing method according to any one of the above.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the intelligent contract processing method described above, and details are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An intelligent contract processing method, wherein the intelligent contract processing method is applied to a blockchain server, and an intelligent contract is deployed on the blockchain server, and the intelligent contract processing method comprises the following steps:
when receiving a digital asset transaction request transmitted by a user node, the intelligent contract determines digital assets corresponding to the digital asset transaction request and stores the digital assets into the intelligent contract;
if the intelligent contract reaches a preset recruitment period, determining a digital total asset according to the digital asset purchased by the user node;
determining the total issued amount of the token, and determining the final pricing of the token according to the total issued amount of the token and the total digital assets after the intelligent contract is issued on a trading platform;
and determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node.
2. The intelligent contract processing method of claim 1, wherein the step of determining the total amount of issued tokens includes:
determining the intelligent contracts of the same category matched with the intelligent contracts;
if the number of the intelligent contracts of the same category is smaller than a preset threshold value, determining the total fund raising amount of the intelligent contracts of the same category and the total token issuing amount of the intelligent contracts of the same category;
determining a total token issuance amount according to the total recruitment amount of the intelligent contracts of the same category, the total token issuance amount of the intelligent contracts of the same category, and the digital total assets of the intelligent contracts.
3. The intelligent contract processing method of claim 2, wherein said step of determining the same category of intelligent contracts that match the intelligent contracts further comprises:
if the number of the intelligent contracts of the same category is larger than or equal to the preset threshold value, sorting the investment amount according to the investment amount corresponding to the investment users of the intelligent contracts of the same category and the size sequence of the investment amount to obtain a first investment set;
according to the digital assets purchased by each user node in the intelligent contract, sequencing the digital assets according to the size sequence of the digital assets to obtain a second investment set;
determining investment similarity between the intelligent contracts of the same category and the intelligent contracts according to the first investment set and the second investment set;
taking the intelligent contracts of the same category corresponding to the investment similarity larger than a preset threshold value as target intelligent contracts, and determining the total fund raising amount of the target intelligent contracts and the token issuing total amount of the target intelligent contracts;
determining a total amount of token issuance based on the total fund raising amount for the target intelligent contract, the total amount of token issuance for the target intelligent contract, and the digital total assets for the intelligent contract.
4. A smart contract processing method according to claim 3, wherein said step of determining investment similarities between said same category smart contracts and said smart contracts based on said first investment set and said second investment set comprises:
acquiring a preset investment interval, and respectively counting the number of investment users corresponding to each preset investment interval in the first investment set and the second investment set according to the preset investment interval to obtain a first investment user distribution corresponding to the first investment set and a second investment user distribution corresponding to the second investment set;
and determining the investment similarity of the first investment user distribution and the second investment user distribution according to the first investment user distribution corresponding to the same-class intelligent contract and the second investment user distribution corresponding to the intelligent contract.
5. The intelligent contract processing method of claim 3, wherein the step of determining a total amount of token issuance based on the total fund raising amount of the target intelligent contract, the total amount of token issuance of the target intelligent contract, and the digital total assets of the intelligent contract comprises:
determining pricing of the target intelligent contract according to the total fund raising amount of the target intelligent contract and the token issuing total amount of the target intelligent contract;
determining average pricing of the target intelligent contracts according to the pricing of each target intelligent contract and the number of the target intelligent contracts;
determining a total amount of tokens issued based on the average pricing of the target smart contract and the digital total assets.
6. The intelligent contract processing method of claim 1, wherein before the step of determining a final pricing of a token based on the total amount of tokens issued and the total digital assets after the intelligent contract is issued on a trading platform, further comprising:
acquiring the number of tokens corresponding to the intelligent contract in the recruitment term;
determining the initial price of the token in the intelligent contract according to the total digital assets and the token quantity corresponding to the recruitment period;
acquiring contract information of the intelligent contract, and outputting the contract information of the intelligent contract to a trading platform to be issued on the trading platform, wherein the contract information comprises the initial price, the digital total assets and the token issuing total amount.
7. The intelligent contract processing method according to any one of claims 1 to 6, wherein the step of determining a total amount of issued tokens includes:
a contract issuer receiving the intelligent contract inputs a token issuance ratio based on the blockchain server;
and acquiring the token quantity corresponding to the recruitment period, and determining the total token release amount according to the token quantity corresponding to the recruitment period and the token release ratio.
8. An intelligent contract processing apparatus, characterized by comprising:
the digital asset determining module is used for determining the digital asset corresponding to the digital asset trading request when the intelligent contract receives the digital asset trading request transmitted by the user node, and storing the digital asset into the intelligent contract;
a digital total asset determining module, configured to determine a digital total asset according to the digital asset purchased by the user node if the intelligent contract reaches a preset recruitment deadline;
the token pricing module is used for determining the total issued quantity of the tokens and determining the final pricing of the tokens according to the total issued quantity of the tokens and the total digital assets after the intelligent contract is issued on a trading platform;
and the token distribution module is used for determining the token purchase amount corresponding to the user node according to the final pricing and the digital assets, and distributing the token corresponding to the token purchase amount to the user node.
9. An intelligent contract processing apparatus, comprising: a memory, a processor, and an intelligent contract processing program stored on the memory and executable on the processor, the intelligent contract processing program when executed by the processor implementing the steps of the intelligent contract processing method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon an intelligent contract processing program which, when executed by a processor, performs the steps of the intelligent contract processing method of any of claims 1-7.
CN202110628323.5A 2021-06-04 2021-06-04 Intelligent contract processing method, device, equipment and computer readable storage medium Pending CN113436011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110628323.5A CN113436011A (en) 2021-06-04 2021-06-04 Intelligent contract processing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110628323.5A CN113436011A (en) 2021-06-04 2021-06-04 Intelligent contract processing method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113436011A true CN113436011A (en) 2021-09-24

Family

ID=77803763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110628323.5A Pending CN113436011A (en) 2021-06-04 2021-06-04 Intelligent contract processing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113436011A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI832119B (en) * 2021-11-26 2024-02-11 香港商元睿資本有限公司 Creating and trading system for tokenized open-end funds and method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI832119B (en) * 2021-11-26 2024-02-11 香港商元睿資本有限公司 Creating and trading system for tokenized open-end funds and method thereof

Similar Documents

Publication Publication Date Title
Sun et al. Joint resource allocation and incentive design for blockchain-based mobile edge computing
US20190347655A1 (en) Computer implemented method and system
US20220164791A1 (en) Method for distributing collectables ownership based on blockchain networks and online transaction server using the same
CN108762907B (en) Task processing method and system based on multiple clients
CN109948882B (en) Task processing method based on block data structure and related equipment
CN109102324B (en) Model training method, and red packet material laying prediction method and device based on model
CN112465594A (en) Live broadcast interaction method, device, equipment and storage medium
Shang et al. Need for speed, but how much does it cost? Unpacking the fee‐speed relationship in Bitcoin transactions
CN113436011A (en) Intelligent contract processing method, device, equipment and computer readable storage medium
CN109993584A (en) A kind of user management method of commodity, electronic equipment and storage medium
KR20220009791A (en) Real estate direct transaction system and method using artificial intelligence
CN116185731A (en) Terminal test system and method based on blockchain network and electronic equipment
CN116308505A (en) Resource allocation method, device, storage medium and computer equipment
CN110009397A (en) A kind of method and device of precision marketing
CN111260266A (en) Logistics management method and device, storage medium and electronic equipment
CN113128597B (en) Method and device for extracting user behavior characteristics and classifying and predicting user behavior characteristics
CN111985900B (en) Information processing method and device
CN114429371A (en) Unmanned vehicle-based commodity marketing method and device, electronic equipment and storage medium
US20050289038A1 (en) Method and system for voting for a future price of an asset
CN109714381B (en) Consumption tracking based information pushing method, equipment, storage medium and device
CN113011912A (en) Media information processing method, device, electronic equipment and storage medium
CN111553595A (en) Commodity distribution method, commodity distribution device, commodity distribution equipment and storage medium
CN112163851A (en) Shopping method and device and electronic equipment
CN110874331A (en) Storage address allocation method and device and electronic equipment
CN111951110A (en) Economic model based on excitation of block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210924

RJ01 Rejection of invention patent application after publication