CN116307343A - User asset management method, device, computer equipment and storage medium - Google Patents

User asset management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116307343A
CN116307343A CN202310240193.7A CN202310240193A CN116307343A CN 116307343 A CN116307343 A CN 116307343A CN 202310240193 A CN202310240193 A CN 202310240193A CN 116307343 A CN116307343 A CN 116307343A
Authority
CN
China
Prior art keywords
asset
target
bin
lock bin
lock
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
CN202310240193.7A
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202310240193.7A priority Critical patent/CN116307343A/en
Publication of CN116307343A publication Critical patent/CN116307343A/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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • 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/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Abstract

The embodiment of the application discloses a user asset management method, a user asset management device, computer equipment and a storage medium. According to the scheme, through deploying a token contract, an asset management strategy that a blockchain user participates in proposal voting is set in the token contract, and after a voting request of the blockchain user for a target proposal is received, the highest lock warehouse asset quantity corresponding to the blockchain user and the target lock warehouse asset yield required by the target proposal are obtained; and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request. The highest lock bin asset quantity of the blockchain user participating in proposal voting is used as the asset quantity of the locked bin of the user, so that the user can participate in the voting of a plurality of proposals at the same time, and the enthusiasm of the blockchain user for voting the proposal can be improved.

Description

User asset management method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a user asset management method, a device, a computer device, and a storage medium.
Background
Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. DAO (Distributed Autonomous Organization, decentralised autonomous organization) is a block-chain based organization form. DAO provides organization members with the ability to vote on proposal decisions related to the organization by issuing token tokens, thereby achieving organization autonomy.
In the related art, when a DAO organization member votes for a proposal, the voting for the proposal is completed by deducting a corresponding number of token tokens in the DAO organization member account. When DAO organization members want to vote on a plurality of proposals, token tokens to be deducted from each proposal need to be reasonably distributed according to the total amount of token tokens owned, but DAO organization members with fewer total amounts of token tokens owned cannot participate in voting on a plurality of proposals at the same time, so that the enthusiasm of the DAO organization members to participate in voting decisions is reduced.
Disclosure of Invention
The embodiment of the application provides a user asset management method, a user asset management device, computer equipment and a storage medium, which can improve the enthusiasm of a blockchain user for voting on a proposal.
The embodiment of the application provides a user asset management method, which comprises the following steps:
receiving a voting request of a blockchain user aiming at a target proposal;
acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish yet;
and if the target lock bin asset quantity is not smaller than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
Correspondingly, the embodiment of the application also provides a user asset management device, which comprises:
the first receiving unit is used for receiving a voting request of a blockchain user aiming at a target proposal;
the first acquisition unit is used for acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish;
And the first updating unit is used for updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity and voting the target proposal in response to the voting request if the target lock bin asset quantity is not smaller than the highest lock bin asset quantity.
In some embodiments, the apparatus further comprises:
and the first response unit is used for voting the target proposal in response to the voting request if the target lock bin asset quantity is smaller than the highest lock bin asset quantity.
In some embodiments, the first updating unit comprises:
and the updating subunit is used for taking the target lock bin asset quantity as a new highest lock bin asset quantity of the blockchain user.
In some embodiments, the apparatus further comprises:
and the second updating unit is used for updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity and voting the target proposal in response to the voting request if the target lock bin asset quantity is not smaller than the highest lock bin asset quantity and the target lock bin asset quantity is not larger than the total resource output of the blockchain user.
In some embodiments, the apparatus further comprises:
The second acquisition unit is used for acquiring the lock bin duration corresponding to the target lock bin asset quantity;
in some embodiments, the apparatus further comprises:
and the unlocking unit is used for unlocking the target lock bin asset amount after the lock bin duration.
In some embodiments, the apparatus further comprises:
and the third updating unit is used for updating the highest lock bin asset quantity corresponding to the blockchain user based on the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user currently participates in and does not finish.
In some embodiments, the apparatus further comprises:
the second receiving unit is used for receiving an asset transfer request aiming at the blockchain user and acquiring a target transfer resource yield corresponding to the asset transfer request;
the determining unit is used for determining the transferable resource output of the blockchain user according to the highest lock bin asset quantity corresponding to the blockchain user;
and a second response unit for transferring the target transfer asset yield of the blockchain user in response to the asset transfer request if the target transfer asset yield is less than the transferable asset yield.
In some embodiments, the determining unit comprises:
An acquisition subunit, configured to acquire a total resource yield of the blockchain user;
and the determining subunit is used for determining the transferable resource output according to the difference value between the total resource output and the highest lock-bin asset quantity.
Accordingly, embodiments of the present application further provide a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any one of the methods for user asset management provided in the embodiments of the present application.
Accordingly, embodiments of the present application also provide a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform a user asset management method as above.
According to the embodiment of the application, through deploying a token contract, an asset management strategy that a blockchain user participates in proposal voting is set in the token contract, after a voting request of the blockchain user for a target proposal is received, the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal are obtained, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantities corresponding to the proposals which the blockchain user participates in and does not finish yet; and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request. The highest lock bin asset quantity of the blockchain user participating in proposal voting is used as the asset quantity of the locked bin of the user, so that the user can participate in the voting of a plurality of proposals at the same time, and the enthusiasm of the blockchain user for voting the proposal can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a distributed system applied to a blockchain platform according to an embodiment of the present application.
Fig. 2 is a flow chart of a user asset management method according to an embodiment of the present application.
Fig. 3 is a flowchart of another method for user asset management according to an embodiment of the present application.
Fig. 4 is a block diagram of another user asset management device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Those skilled in the art will appreciate that embodiments of the invention may be implemented as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the following forms, namely: complete hardware, complete software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
Some basic concepts involved in the embodiments of the present application are first described below:
blockchain: the blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, is an important concept of bit coin, is essentially a de-intermediated database, is used as a bottom technology of the bit coin, is a series of data blocks which are generated by correlation by using a cryptography method, contains information of one bit coin network transaction in each data block and is used for verifying the validity of the information and generating the next block, and generally speaking, the blockchain multi-chain system consists of a data layer, a network layer, a consensus layer, an incentive layer, a contract layer and an application layer. In a narrow sense, a blockchain is a distributed ledger that combines blocks of data in a sequential manner in time order into a chain data structure, and that is cryptographically secured against tampering and counterfeiting. In broad terms, blockchain technology is a completely new distributed infrastructure and computing method that uses a blockchain data structure to verify and store data, a distributed node consensus algorithm to generate and update data, a cryptographic way to secure data transmission and access, and an intelligent contract consisting of automated script code to program and manipulate data.
Intelligent contract: is a set of conventions that are defined, propagated, validated, or executed in digital form, including protocols on which contract participants may execute such conventions. Smart contracts allow trusted transactions to be made without third parties, which transactions are traceable and irreversible.
DAO is a de-centralized autonomous organization, a tool that serves an organization. DAO provides organization members with the ability to vote on proposal decisions related to the organization by issuing token tokens, thereby achieving organization autonomy. In the field of blockchain, DAO mainly exists and operates in the form of intelligent contracts, is public, transparent, avoids artificial interference and management, is an organization controlled by codes, is not controlled by any organization or person, and can automatically evolve and develop.
In the related art, lock bins are performed when DAO organization members vote on a proposal, and a corresponding number of tokens are deducted. However, the existing voting mode limits the initiative of DAO organization members when facing a plurality of proposals, and when desiring to participate in the plurality of proposals, the members are required to carry out token allocation, so that the enthusiasm of participating in community autonomy is reduced for the members with small holding quantity.
Based on the above problems, the embodiments of the present application provide a first user asset management method, apparatus, computer device and storage medium, which can improve the enthusiasm of a blockchain user to vote on a proposal.
The system according to the embodiments of the present application may be a distributed system formed by connecting a client and a plurality of nodes (access to any form of computer devices in a network, such as servers and user terminals) through a form of network communication.
Taking a distributed system as an example of a blockchain platform, referring To fig. 1, fig. 1 is a schematic structural diagram of a distributed system applied To the blockchain platform according To an embodiment of the present application, where the distributed system 100 is formed by a plurality of nodes 200 (access To any type of computer devices in a network, such as servers and user terminals) and clients 300, a Peer-To-Peer (P2P, peer To Peer) network is formed between the nodes 200, and the P2P protocol is an application layer protocol running on top of a transmission control protocol (TCP, transmission Control Protocol) protocol. In the distributed system 100, any machine such as a server, a terminal may be added to become the node 200, and the node 200 includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.
Referring to the functionality of each node 200 in the blockchain platform shown in fig. 1, the functionality involved includes: the node 200 has basic functions for supporting communication between the nodes 200. The node 200 may have the following functions in addition to the routing function:
the application is used for being deployed in a blockchain to realize specific service according to actual service requirements, recording data related to the realization function to form recorded data, carrying a digital signature in the recorded data to represent the source of task data, sending the recorded data to other nodes in the blockchain platform, and adding the recorded data into a temporary block when the source and the integrity of the recorded data are verified by the other nodes.
For example, the services implemented by the application include:
the wallet is used for providing the function of conducting electronic money transaction, and comprises a transaction initiating function (namely, sending a transaction record of the current transaction to other nodes in the blockchain platform, and after the other nodes are verified successfully, storing record data of the transaction into a temporary block of the blockchain as a response for acknowledging that the transaction is valid;
the shared account book is used for providing functions of operations such as storage, inquiry and modification of account data, sending record data of the operations on the account data to other nodes in the blockchain platform, and after the other nodes verify that the account data is valid, storing the record data into the temporary block as a response for acknowledging that the account data is valid, and can also send acknowledgement to the node initiating the operations.
Intelligent contracts, computerized agreements, which may execute terms of a contract, implemented by code deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions based on actual business demand codes, such as querying the physical distribution status of goods purchased by a buyer, transferring electronic money of the buyer to the merchant's address after the buyer signs for goods; of course, the smart contract is not limited to executing the contract for the transaction, and may execute a contract that processes the received information.
The blockchain comprises a series of blocks (blocks) which are mutually connected according to the sequence of the generation time, the new blocks can not be removed once being added into the blockchain, and record data submitted by nodes in a blockchain platform are recorded in the blocks.
The embodiment of the application provides a user asset management method, a user asset management device, a storage medium and computer equipment. In particular, the user asset management method of the embodiments of the present application may be performed by a computer device, which may be a terminal or a server. The server may be an independent server, or may be a server network or a server cluster formed by servers, for example, a server described in the embodiments of the present application, which includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud server formed by a plurality of servers. The terminal may be a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, or a fixed terminal such as a desktop computer.
For example, the computer device may be a server that may receive a request for a vote by a blockchain user for a target proposal; acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish; and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The embodiment of the application provides a user asset management method, which can be executed by a terminal or a server, and the embodiment of the application is described by taking the user asset management method executed by the server as an example.
Referring to fig. 2, fig. 2 is a flow chart of a user asset management method according to an embodiment of the present application. The specific flow of the user asset management method can be as follows:
101. A request for a vote by a blockchain user for a target proposal is received.
In embodiments of the present application, an organization contract is deployed on the blockchain, which may be a running form of DAO on the blockchain that gives the DAO organization members the ability to vote decisions by issuing token tokens. DAO acts as a de-centralized autonomous organization, maintaining internal democracy by voting. Generally, the DAO has a pass with a voting right, and the member can treat the DAO by holding the pass.
Wherein the blockchain users are DAO organization members. The target proposal refers to a proposal that the blockchain user currently wants to vote.
102. And obtaining the highest lock warehouse asset quantity corresponding to the blockchain user and the target lock warehouse asset yield required by the target proposal.
In the embodiment of the application, when the blockchain user votes on the proposal, the asset of the blockchain user can be locked and the asset transfer can not be carried out. Where lock bin refers to locking an asset, the locked asset is not available for transfer, etc. during the lock bin of the asset. Different proposals in the blockchain may correspond to different lock asset yields, i.e., the number of assets of the locked blockchain user.
The assets of the blockchain user can be token tokens, and voting on the proposal is completed by locking the token tokens of the blockchain user.
Specifically, the highest lock asset amount is the highest lock asset amount in the lock asset yields corresponding to each proposal that the blockchain user has participated in and has not finished. The lock warehouse asset quantity corresponding to each proposal refers to lock warehouse asset quantity required by the block chain to vote on each proposal.
For example, proposals that a blockchain user has participated in and has not yet ended may include: proposal a, proposal B, proposal C, and proposal D. The yield of the lock warehouse resource corresponding to the proposal A can be as follows: 10, the lock warehouse resource yield corresponding to proposal B may be: 20, the lock warehouse resource yield corresponding to proposal C may be: 30, and the lock warehouse resource yield corresponding to proposal D may be: 15. the determination of the highest lock asset amount from the lock asset yields corresponding to each proposal may be: 30, obtaining the highest lock warehouse resource output corresponding to the blockchain user can be: 30.
the target lock bin asset amount refers to the lock bin asset yield required by the blockchain user to vote on the target proposal.
In embodiments of the present application, token contracts, i.e., token contracts, are deployed in the blockchain, which may be used to execute asset lock bins when blockchain users participate in voting decisions.
Specifically, lock bin information may be added to the token contract prior to deployment in the blockchain platform, as follows:
recording the account lock bin asset quantity in a token contract;
Struct lockedToken{
expire// expiration time
amountj/number of locks }
mapping (address= > lockedworking) locks// number of lock bins for a certain volt
uint256 lockExpire// lock bin duration
function lockToken(uint256 amount,address voter)
{
uint256balance=balanceOf(voter);
require(amount<=balance”insufficient balance”);
lockedToken storage lt=locks[msg.sender];
If(amount>lt.amount){
lt/amountj// updated only if the total lock bin amount is less than this lock bin amount
lt.expire+=lockExpire;
}}
function unlockToken(uint256 amount){
lockedToken storage lt=locks[msg.sender];
If(block.timestamp>lt.expire){
require(amount<=lt.amount,“insufficient balance”);
lt.amount-=amount
}else{
revert(“can’t unlock”);}
};
The account lock bin asset quantity refers to the total quantity of lock bin assets which are voted by the blockchain user, and in the embodiment of the application, the highest lock bin asset quantity corresponding to the blockchain user can be obtained; the expiration time refers to the locked end time of lock asset yield; the lock bin duration refers to the locked duration of the lock bin resource output; the number of locks refers to the number of assets that the blockchain user votes for a locked bin; the number of lock bins for a certain vot refers to the amount of lock bin resources that the blockchain user votes on the proposal.
In the embodiment of the application, when the total lock bin amount is smaller than the lock bin amount, the lock bin asset amount of the blockchain user is updated when the highest lock bin asset amount corresponding to the blockchain user is smaller than the lock bin asset amount required by the current voting. Further, the token contracts after adding the lock bin rules are deployed into the blockchain to perform asset lock bins through the token contracts. Wherein rules of token contracts deployed into a blockchain are not modifiable.
103. And if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
In the embodiment of the present application, the rule that the blockchain user votes for the proposal may be: the DAO organization members, i.e., blockchain users, lock the asset when voting, can be embodied as follows:
function vote(uint256 vote_id,uint256 amount){
balance/judge
let balance=token.balanceOf(msg.sender);
require(amount<=balance,“insufficient balance”);
Lock bin
token.lockToken(amount,msg.sender);
Voting execution logic
...}
Specifically, by comparing the target lock bin asset amount with the highest lock bin asset amount, when the target lock bin asset amount is not less than the highest lock bin asset amount corresponding to the blockchain user, the highest lock bin asset amount corresponding to the blockchain user can be updated based on the target lock bin asset amount to respond to the voting request, thereby completing the voting on the target proposal.
In some embodiments, the step of "updating the highest lock bin asset amount corresponding to the blockchain user based on the target lock bin asset amount" may include the following operations:
the target lock bin asset amount is taken as the new highest lock bin asset amount of the blockchain user.
For example, the highest lock asset yield corresponding to a blockchain user may be: 30, the lock warehouse resource yield required by the target decision may be: 35, the highest lock bin asset amount corresponding to the blockchain user may be updated as: 35, new highest lock bin asset amount as blockchain user.
In some embodiments, to ensure that blockchain users participate in decision voting, the method may further include the steps of:
and if the target lock bin asset quantity is not less than the highest lock bin asset quantity and the target lock bin asset quantity is not greater than the total asset quantity of the blockchain user, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
Where the total amount of assets of a blockchain user refers to the total amount of account assets of the blockchain user. If the blockchain user wants to participate in the voting of the decision, the total asset quantity of the blockchain user needs to be ensured to be larger than the lock warehouse resource yield required by the voting of the decision.
Specifically, after comparing the target lock bin asset amount with the highest lock bin asset amount, determining that the target lock bin asset amount is greater than the highest lock bin asset amount corresponding to the blockchain user, comparing the target lock bin asset amount with the total asset amount of the blockchain user, and if the target lock bin asset amount is not greater than the total asset amount of the blockchain user, updating the highest lock bin asset amount corresponding to the blockchain user based on the target lock bin asset amount to respond to the voting request, thereby completing the voting on the target proposal.
For example, the target lock asset yield may be: 35, the highest lock resource yield corresponding to the blockchain user may be: 30. by comparing the target lock bin asset amount to the highest lock bin asset amount, it may be determined that the target lock bin asset amount is greater than the highest lock bin asset amount. Then, the total resource yield of the acquired blockchain user may be: 50, comparing the total asset yield with the target lock-bin asset yield, determining that the target lock-bin asset yield is less than the total asset yield, determining that the target lock-bin asset yield is not less than the highest lock-bin asset yield, and that the target lock-bin asset yield is not greater than the total asset yield of the blockchain user, further, updating the highest lock-bin asset yield of the blockchain user based on the target lock-bin asset yield, and obtaining the new highest lock-bin asset yield may be: 35.
for another example, the target lock asset yield may be: 35, the highest lock resource yield corresponding to the blockchain user may be: 30. by comparing the target lock bin asset amount to the highest lock bin asset amount, it may be determined that the target lock bin asset amount is greater than the highest lock bin asset amount. Then, the total resource yield of the acquired blockchain user may be: and 33, comparing the total asset yield with the target lock bin asset yield, and determining that the target lock bin asset yield is larger than the total asset yield, wherein the total asset yield of the blockchain user does not meet the target lock bin asset yield at the moment, and indicating that the blockchain user cannot participate in voting of a target decision.
In some embodiments, the lock bin logic may further comprise: if the highest lock bin asset amount corresponding to the blockchain user is greater than the lock bin asset amount required for voting currently, the highest lock bin asset amount of the blockchain user is not required to be updated, and the target proposal can be voted directly in response to the voting request, the method can further comprise the following steps:
if the target lock bin asset amount is less than the highest lock bin asset amount, voting the target proposal in response to the voting request.
Specifically, by comparing the target lock bin asset amount with the highest lock bin asset amount, when the target lock bin asset amount is smaller than the highest lock bin asset amount corresponding to the blockchain user, the voting request can be directly responded, and the voting on the target proposal can be completed.
In some embodiments, to facilitate use of the locked asset by a blockchain user, the method may further include the steps of:
and acquiring the lock bin time length corresponding to the target lock bin asset quantity.
In this embodiment of the present application, the lock bin duration refers to a locking time length for locking the asset of the blockchain user, and when the blockchain user participates in the vote of the proposal, the lock bin information may include the number of lock bins and the lock bin duration, and the number of lock bins is also the number of lock bin assets.
For example, acquiring lock bin information for a target proposal may include: the number of the lock bins is as follows: 10, lock bin duration can be: 20 hours, etc., then the blockchain user may lock 10 of the blockchain user's asset numbers when participating in the vote of the target proposal, with a lock time length of 20 hours.
In some embodiments, after the step of "voting for a target proposal in response to a voting request", the following operations may be further included:
and unlocking the target lock bin asset amount after the lock bin duration.
Unlocking means unlocking the locked asset quantity, and the unlocked asset quantity can be used for operations such as transferring by a blockchain user. For example, after locking the lock bin asset amount of the blockchain user for a lock bin duration, the lock bin asset amount is unlocked.
In some embodiments, when the target lock bin asset amount is the highest lock bin asset amount of the blockchain user, in order to facilitate the blockchain user to participate in voting of a plurality of proposals at the same time, after the step of "unlocking the target lock bin asset amount", the following procedure may be further included:
and updating the highest lock bin asset quantity corresponding to the blockchain user based on the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal in which the blockchain user currently participates and does not finish.
For example, the target lock asset yield for which the blockchain user participates in the target proposal to be locked may be: 35, may also be the new highest lock bin asset amount for the blockchain user. When the target proposal is finished, that is, the time when the target lock bin asset quantity is locked reaches the lock bin duration, after the target lock bin quantity is unlocked, the highest lock bin asset quantity corresponding to the blockchain user can be updated again according to the lock bin asset quantity corresponding to the proposal in which the blockchain user participates and is not finished yet.
For example, proposals that a blockchain user has participated in and has not yet ended may include: proposal a, proposal B, proposal C, and proposal D. The yield of the lock warehouse resource corresponding to the proposal A can be as follows: 10, the lock warehouse resource yield corresponding to proposal B may be: 20, the lock warehouse resource yield corresponding to proposal C may be: 30, and the lock warehouse resource yield corresponding to proposal D may be: 15. the determination of the highest lock asset amount from the lock asset yields corresponding to each proposal may be: 30, further, updating the highest lock bin asset amount corresponding to the blockchain user as follows: 30.
in some embodiments, to enable management of assets of blockchain users during asset lock bins, the method may further include the steps of:
Receiving an asset transfer request aiming at a blockchain user, and acquiring a target transfer asset yield corresponding to the asset transfer request;
determining the transferable resource yield of the blockchain user according to the highest lock bin asset quantity corresponding to the blockchain user;
if the target transfer asset yield is less than the transferable asset yield, transferring the target transfer asset yield of the blockchain user in response to the asset transfer request.
In embodiments of the present application, the asset transfer request indicates to transfer assets of the blockchain user, the asset transfer request may be triggered by a business transaction on the blockchain platform, such as a transfer transaction or the like.
Wherein the target transfer asset yield refers to the number of assets for which the asset transfer request indicates a transfer blockchain user; transferable asset yield refers to the number of assets that can be transferred among the assets of a blockchain user.
In some embodiments, the step of determining the transferable asset quantity of the blockchain user based on the highest lock bin asset quantity corresponding to the blockchain user may include the following operations:
acquiring the total resource output of the blockchain user;
and determining the transferable resource yield according to the difference value between the total asset quantity and the highest lock-out resource yield.
For example, the total resource yield of a blockchain user may be obtained as: 50, the highest lock warehouse resource yield may be: 35; calculating a transferable asset yield based on the total asset yield and the highest locked asset yield as: 50-35=15, and the yield of transferable resources may be 35.
Further, comparing the target transfer asset yield with the transferable asset yield of the blockchain user, and transferring the target transfer asset amount of the blockchain user if the target transfer asset yield is smaller than the transferable asset yield; if the target transfer asset yield is not less than the transferable asset yield, the asset transfer request fails. If the blockchain user still needs to execute the asset transfer request, the asset transfer request is completed after the lock bin asset amount is unlocked, indicating the transferred asset amount.
The embodiment of the application discloses a user asset management method, which comprises the following steps: receiving a voting request of a blockchain user aiming at a target proposal; acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish; and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request. Therefore, the enthusiasm of the blockchain user for voting on the proposal can be improved.
In light of the foregoing, the user asset management methods of the present application will be further described by way of example. Referring to fig. 3, fig. 3 is a flow chart of another user asset management method provided in an embodiment of the present application, where the user asset management method is applied to a server, and the specific flow may be as follows:
201. and receiving a voting request of the target user for the target proposal.
In the embodiment of the application, the target user may be a member user in a DAO organization in the blockchain, and the target user may participate in voting on the proposal.
Wherein the voting request instructs the target user to vote on the target proposal.
202. And obtaining the total amount of the lock warehouse assets of the target user and the target lock warehouse asset output required by the target proposal.
In the embodiment of the application, the recorded total lock-bin asset amount of the target user may be the highest lock-bin asset amount of the target user.
For example, the total amount of lock bin assets acquired by the target user may be: 10, the target lock warehouse resource output required by the target proposal can be 5, etc.
Specifically, the method for locking the bin of the asset of the target user can be as follows: the highest amount of lock-bin assets that the target user participates in the vote is recorded. For example, if the target user votes for vote a, the required lock asset yield may be: and 6, voting the votes B, wherein the required lock warehouse resource yield can be 5. Since voting B requires a lock bin resource yield of 5, less than the target user's locked bin resource yield: 6, no additional lock bin is needed to be carried out on the target user; if vote B is first voted and then vote a is voted, then the lock bin asset amount needs to be set to 6.
203. The lock bin asset inventory is compared to the target lock bin asset inventory.
Further, the total lock bin asset amount is compared with the target lock bin asset amount, whether the total lock bin asset amount is larger than the target lock bin asset amount is judged, and further the lock bin request can be responded according to the judging result.
204. And if the total amount of the lock bin assets is smaller than the target lock bin asset yield, updating the total amount of the lock bin assets of the target user based on the target lock bin asset yield, and voting the target proposal according to the voting request.
Specifically, by comparing the total lock bin asset amount with the target lock bin asset amount, if the lock bin asset amount is smaller than the target lock bin asset amount, the highest lock bin asset amount of the current target user does not meet the target lock bin asset amount, and at this time, the lock bin asset amount of the target user can be adjusted according to the target lock bin asset amount, for example, the target lock bin asset amount can be used as the updated lock bin asset amount of the target user. And then finishing the voting of the target user on the target proposal.
205. And if the total amount of the lock bin assets is not smaller than the target lock bin assets, voting the target proposal according to the voting request.
Specifically, by comparing the total amount of lock bin assets with the total amount of target lock bin assets, if the total amount of lock bin assets is not smaller than the target lock bin assets, the highest lock bin assets of the current target user is enough to the target lock bin assets, and at this time, the voting of the target user on the target proposal can be directly completed without adjusting the lock bin assets of the target user.
In the embodiment of the application, when the target user votes on the proposal, only the asset of the target user is locked and the asset of the target user is not transferred. Specifically, the target user only records the asset amount of the lock bin when voting, and does not move the asset of the target user. For example, the number of assets of the target user may be 10, the current voting for the vote a requires that the lock warehouse resource yield is 6, and only the lock warehouse asset yield 6 of the target user is recorded at this time, but the number of assets 10 in the account of the target user still exists, and if the target user wants to transfer a part of assets to the user B, the number of assets that the user can transfer at this time is only 4, namely the number of assets that are not locked in the account of the target user.
In some embodiments, there is a requirement for the number of DAO organization members participating in the proposal voting in the blockchain that the number of DAO organization members participating in the proposal voting meets the minimum number requirement, at which time there may be a hacker lending a large number of tokens in the DAO organization by lightning lending, creating a plurality of members holding the DAO organization token, and then voting on the proposal of the stolen organization asset, and after the proposal passes and executes, the hacker returns the lended token by stealing the token, resulting in the malicious proposal being passed, causing loss of the organization asset. In the scheme, the assets of the member users participating in voting are locked and unlocked after the lock bin duration expires, so that a hacker cannot immediately return the borrowed assets after participating in the proposal voting, and attack of the hacker on a malicious proposal can be avoided.
The embodiment of the application discloses a user asset management method, which comprises the following steps: receiving a voting request of a target user for a target proposal, acquiring the total amount of lock bin assets of the target user and the target lock bin asset yield required by the target proposal, comparing the total amount of lock bin assets with the target lock bin asset yield, if the total amount of lock bin assets is smaller than the target lock bin asset yield, updating the total amount of lock bin assets of the target user based on the target lock bin asset yield, and voting the target proposal according to the voting request; and if the total amount of the lock bin assets is not smaller than the target lock bin assets, voting the target proposal according to the voting request. Therefore, the enthusiasm of the blockchain user for voting on the proposal can be improved.
In order to facilitate better implementation of the user asset management method provided by the embodiment of the application, the embodiment of the application also provides a user asset management device based on the user asset management method. Where nouns have the same meaning as in the user asset management method described above, specific implementation details may be referred to in the description of the method embodiments.
Referring to fig. 4, fig. 4 is a block diagram of a user asset management device according to an embodiment of the present application, where the device includes:
A first receiving unit 301, configured to receive a voting request of a blockchain user for a target proposal;
a first obtaining unit 302, configured to obtain a highest lock bin asset amount corresponding to the blockchain user and a target lock bin asset yield required by the target proposal, where the highest lock bin asset amount is a highest lock bin asset amount in lock bin asset yields corresponding to proposals that have been participated in by the blockchain user and have not yet ended;
and the first updating unit 303 is configured to update, if the target lock bin asset amount is not less than the highest lock bin asset amount, the highest lock bin asset amount corresponding to the blockchain user based on the target lock bin asset amount, and vote on the target proposal in response to the voting request.
In some embodiments, the apparatus may further comprise:
and the first response unit is used for voting the target proposal in response to the voting request if the target lock bin asset quantity is smaller than the highest lock bin asset quantity.
In some embodiments, the first updating unit 303 may include:
and the updating subunit is used for taking the target lock bin asset quantity as a new highest lock bin asset quantity of the blockchain user.
In some embodiments, the apparatus may further comprise:
And the second updating unit is used for updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity and voting the target proposal in response to the voting request if the target lock bin asset quantity is not smaller than the highest lock bin asset quantity and the target lock bin asset quantity is not larger than the total resource output of the blockchain user.
In some embodiments, the apparatus may further comprise:
the second acquisition unit is used for acquiring the lock bin duration corresponding to the target lock bin asset quantity;
in some embodiments, the apparatus further comprises:
and the unlocking unit is used for unlocking the target lock bin asset amount after the lock bin duration.
In some embodiments, the apparatus may further comprise:
and the third updating unit is used for updating the highest lock bin asset quantity corresponding to the blockchain user based on the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user currently participates in and does not finish.
In some embodiments, the apparatus may further comprise:
the second receiving unit is used for receiving an asset transfer request aiming at the blockchain user and acquiring a target transfer resource yield corresponding to the asset transfer request;
The determining unit is used for determining the transferable resource output of the blockchain user according to the highest lock bin asset quantity corresponding to the blockchain user;
and a second response unit for transferring the target transfer asset yield of the blockchain user in response to the asset transfer request if the target transfer asset yield is less than the transferable asset yield.
In some embodiments, the determining unit may include:
an acquisition subunit, configured to acquire a total resource yield of the blockchain user;
and the determining subunit is used for determining the transferable resource output according to the difference value between the total resource output and the highest lock-bin asset quantity.
The embodiment of the application discloses a user asset management device, which receives a voting request of a blockchain user for a target proposal through a first receiving unit 301; the first obtaining unit 302 obtains the highest lock bin asset amount corresponding to the blockchain user and the target lock bin asset amount required by the target proposal, wherein the highest lock bin asset amount is the highest lock bin asset amount in the lock bin asset amounts corresponding to the proposals which the blockchain user participates in and does not finish yet; and if the target lock bin asset amount is not less than the highest lock bin asset amount, the first updating unit 303 updates the highest lock bin asset amount corresponding to the blockchain user based on the target lock bin asset amount, and votes on the target proposal in response to the voting request. Therefore, the enthusiasm of the blockchain user for voting on the proposal can be improved.
Correspondingly, the embodiment of the application also provides computer equipment, which can be a server. Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application, as shown in fig. 5. The computer device 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer readable storage media, and a computer program stored on the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. It will be appreciated by those skilled in the art that the computer device structure shown in the figures is not limiting of the computer device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The processor 601 is a control center of the computer device 600, connects various parts of the entire computer device 600 using various interfaces and lines, and performs various functions of the computer device 600 and processes data by running or loading software programs and/or modules stored in the memory 602, and calling data stored in the memory 602, thereby performing overall monitoring of the computer device 600.
In the embodiment of the present application, the processor 601 in the computer device 600 loads the instructions corresponding to the processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 executes the application programs stored in the memory 602, so as to implement various functions:
receiving a voting request of a blockchain user aiming at a target proposal;
acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish;
and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
In some embodiments, the method further comprises:
if the target lock bin asset amount is less than the highest lock bin asset amount, voting the target proposal in response to the voting request.
In some embodiments, updating the highest lock bin asset amount corresponding to the blockchain user based on the target lock bin asset amount includes:
The target lock bin asset amount is taken as the new highest lock bin asset amount of the blockchain user.
In some embodiments, the method further comprises:
and if the target lock bin asset quantity is not less than the highest lock bin asset quantity and the target lock bin asset quantity is not greater than the total asset quantity of the blockchain user, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
In some embodiments, the method further comprises:
acquiring a lock bin duration corresponding to the target lock bin asset quantity;
after voting on the target proposal in response to the voting request, further comprising:
and unlocking the target lock bin asset amount after the lock bin duration.
In some embodiments, after unlocking the target lock bin asset amount, further comprising:
and updating the highest lock bin asset quantity corresponding to the blockchain user based on the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal in which the blockchain user currently participates and does not finish.
In some embodiments, the method further comprises:
receiving an asset transfer request aiming at a blockchain user, and acquiring a target transfer asset yield corresponding to the asset transfer request;
Determining the transferable resource yield of the blockchain user according to the highest lock bin asset quantity corresponding to the blockchain user;
if the target transfer asset yield is less than the transferable asset yield, transferring the target transfer asset yield of the blockchain user in response to the asset transfer request.
In some embodiments, determining the transferable asset yield of the blockchain user from the highest lock bin asset amount corresponding to the blockchain user includes:
acquiring the total resource output of the blockchain user;
and determining the transferable resource yield according to the difference value between the total asset quantity and the highest lock-out resource yield.
According to the scheme, through deploying a token contract, an asset management strategy that a blockchain user participates in proposal voting is set in the token contract, after a voting request of the blockchain user for a target proposal is received, the highest lock warehouse asset quantity corresponding to the blockchain user and the target lock warehouse asset quantity required by the target proposal are obtained, wherein the highest lock warehouse asset quantity is the highest lock warehouse asset quantity in the lock warehouse asset quantity corresponding to each proposal which the blockchain user participates in and does not finish yet; and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request. The highest lock bin asset quantity of the blockchain user participating in proposal voting is used as the asset quantity of the locked bin of the user, so that the user can participate in the voting of a plurality of proposals at the same time, and the enthusiasm of the blockchain user for voting the proposal can be improved.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 5, the computer device 600 further includes: a touch display 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the touch display 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG. 5 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components.
The touch display 603 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display 603 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 601, and can receive and execute commands sent from the processor 601. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is passed to the processor 601 to determine the type of touch event, and the processor 601 then provides a corresponding visual output on the display panel based on the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 603 to implement input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch display 603 may also implement an input function as part of the input unit 606.
The radio frequency circuit 604 may be configured to receive and transmit radio frequency signals to and from a network device or other computer device via wireless communication to and from the network device or other computer device.
The audio circuit 605 may be used to provide an audio interface between a user and a computer device through speakers, microphones, and so on. The audio circuit 605 may transmit the received electrical signal converted from audio data to a speaker, and convert the electrical signal into a sound signal for output by the speaker; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 605 and converted into audio data, which are processed by the audio data output processor 601 for transmission to, for example, another computer device via the radio frequency circuit 604, or which are output to the memory 602 for further processing. The audio circuit 605 may also include an ear bud jack to provide communication of the peripheral headphones with the computer device.
The input unit 606 may be used to receive entered numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), as well as to generate keyboard, mouse, joystick, optical, or trackball signal inputs associated with user settings and function control.
The power supply 607 is used to power the various components of the computer device 600. Alternatively, the power supply 607 may be logically connected to the processor 601 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system. The power supply 607 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 5, the computer device 600 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the computer device provided in this embodiment receives a voting request of a blockchain user for a target proposal; acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish; and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of computer programs that can be loaded by a processor to perform steps in any of the user asset management methods provided by embodiments of the present application. For example, the computer program may perform the steps of:
receiving a voting request of a blockchain user aiming at a target proposal;
acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish;
and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
In some embodiments, the method further comprises:
if the target lock bin asset amount is less than the highest lock bin asset amount, voting the target proposal in response to the voting request.
In some embodiments, updating the highest lock bin asset amount corresponding to the blockchain user based on the target lock bin asset amount includes:
the target lock bin asset amount is taken as the new highest lock bin asset amount of the blockchain user.
In some embodiments, the method further comprises:
and if the target lock bin asset quantity is not less than the highest lock bin asset quantity and the target lock bin asset quantity is not greater than the total asset quantity of the blockchain user, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
In some embodiments, the method further comprises:
acquiring a lock bin duration corresponding to the target lock bin asset quantity;
after voting on the target proposal in response to the voting request, further comprising:
and unlocking the target lock bin asset amount after the lock bin duration.
In some embodiments, after unlocking the target lock bin asset amount, further comprising:
and updating the highest lock bin asset quantity corresponding to the blockchain user based on the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal in which the blockchain user currently participates and does not finish.
In some embodiments, the method further comprises:
receiving an asset transfer request aiming at a blockchain user, and acquiring a target transfer asset yield corresponding to the asset transfer request;
determining the transferable resource yield of the blockchain user according to the highest lock bin asset quantity corresponding to the blockchain user;
if the target transfer asset yield is less than the transferable asset yield, transferring the target transfer asset yield of the blockchain user in response to the asset transfer request.
In some embodiments, determining the transferable asset yield of the blockchain user from the highest lock bin asset amount corresponding to the blockchain user includes:
acquiring the total resource output of the blockchain user;
and determining the transferable resource yield according to the difference value between the total asset quantity and the highest lock-out resource yield.
According to the scheme, through deploying a token contract, an asset management strategy that a blockchain user participates in proposal voting is set in the token contract, after a voting request of the blockchain user for a target proposal is received, the highest lock warehouse asset quantity corresponding to the blockchain user and the target lock warehouse asset quantity required by the target proposal are obtained, wherein the highest lock warehouse asset quantity is the highest lock warehouse asset quantity in the lock warehouse asset quantity corresponding to each proposal which the blockchain user participates in and does not finish yet; and if the target lock bin asset quantity is not less than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request. The highest lock bin asset quantity of the blockchain user participating in proposal voting is used as the asset quantity of the locked bin of the user, so that the user can participate in the voting of a plurality of proposals at the same time, and the enthusiasm of the blockchain user for voting the proposal can be improved.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any of the user asset management methods provided in the embodiments of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that any of the user asset management methods provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing has described in detail the methods, apparatuses, storage media and computer devices for user asset management provided by the embodiments of the present application, and specific examples have been applied herein to illustrate the principles and embodiments of the present application, where the foregoing examples are provided to assist in understanding the methods and core ideas of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (11)

1. A method of user asset management, applied to a blockchain having an organization contract disposed thereon, the organization contract configured to give blockchain user proposal decision rights, the method comprising:
receiving a voting request of a blockchain user aiming at a target proposal;
acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish yet;
and if the target lock bin asset quantity is not smaller than the highest lock bin asset quantity, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
2. The method according to claim 1, wherein the method further comprises:
and if the target lock bin asset amount is smaller than the highest lock bin asset amount, voting the target proposal in response to the voting request.
3. The method of claim 1, wherein the updating the highest lock bin asset amount corresponding to the blockchain user based on the target lock bin asset amount comprises:
The target lock bin asset amount is taken as the new highest lock bin asset amount of the blockchain user.
4. The method according to claim 1, wherein the method further comprises:
and if the target lock bin asset quantity is not smaller than the highest lock bin asset quantity and the target lock bin asset quantity is not larger than the total asset quantity of the blockchain user, updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity, and voting the target proposal in response to the voting request.
5. The method according to claim 1, wherein the method further comprises:
acquiring a bin locking time length corresponding to the target bin locking asset quantity;
after the voting of the target proposal in response to the voting request, further comprising:
and unlocking the target lock bin asset amount after the lock bin duration.
6. The method of claim 5, further comprising, after said unlocking the target lock bin asset amount:
and updating the highest lock bin asset amount corresponding to the blockchain user based on the highest lock bin asset amount in the lock bin asset amounts corresponding to the proposals which the blockchain user currently participates in and does not finish.
7. The method according to claim 1, wherein the method further comprises:
receiving an asset transfer request aiming at the blockchain user, and acquiring a target transfer resource yield corresponding to the asset transfer request;
determining the transferable resource output of the blockchain user according to the highest lock bin asset quantity corresponding to the blockchain user;
and if the target transfer asset yield is less than the transferable asset yield, transferring the target transfer asset yield of the blockchain user in response to the asset transfer request.
8. The method of claim 7, wherein said determining the transferable asset yield of the blockchain user from the highest lock bin asset amount corresponding to the blockchain user comprises:
acquiring the total resource output of the blockchain user;
and determining the transferable resource yield according to the difference value between the total resource yield and the highest lock warehouse asset quantity.
9. A user asset management device for use with a blockchain having an organization contract disposed thereon, the organization contract configured to give blockchain user proposal decision rights, the device comprising:
the first receiving unit is used for receiving a voting request of a blockchain user aiming at a target proposal;
The first acquisition unit is used for acquiring the highest lock bin asset quantity corresponding to the blockchain user and the target lock bin asset quantity required by the target proposal, wherein the highest lock bin asset quantity is the highest lock bin asset quantity in the lock bin asset quantity corresponding to each proposal which the blockchain user participates in and does not finish;
and the first updating unit is used for updating the highest lock bin asset quantity corresponding to the blockchain user based on the target lock bin asset quantity and voting the target proposal in response to the voting request if the target lock bin asset quantity is not smaller than the highest lock bin asset quantity.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the user asset management method of any of claims 1 to 8 when the program is executed.
11. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the user asset management method of any one of claims 1 to 8.
CN202310240193.7A 2023-03-13 2023-03-13 User asset management method, device, computer equipment and storage medium Pending CN116307343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310240193.7A CN116307343A (en) 2023-03-13 2023-03-13 User asset management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310240193.7A CN116307343A (en) 2023-03-13 2023-03-13 User asset management method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116307343A true CN116307343A (en) 2023-06-23

Family

ID=86821888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310240193.7A Pending CN116307343A (en) 2023-03-13 2023-03-13 User asset management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116307343A (en)

Similar Documents

Publication Publication Date Title
US11669811B2 (en) Blockchain-based digital token utilization
US20230360036A1 (en) Blockchain-implemented method and system for access control on remote internet-enabled resources
US11469891B2 (en) Expendable cryptographic key access
CN108696514B (en) Resource collection task management method, device, storage medium and system
WO2019158001A1 (en) Blockchain generating method, and related device and system
GB2565411A (en) Improved hardware security module management
CN108959621A (en) A kind of implementation method, device, equipment and the storage medium of block chain network
CN110601858B (en) Certificate management method and device
CN110602097B (en) Block chain-based task processing method, device, equipment and storage medium
CN113506100B (en) Alliance chain data processing method, device, computer equipment and storage medium
CN114820188A (en) Virtual asset transaction method and device, electronic equipment and readable storage medium
CN111222885B (en) Data processing request endorsement method and device, computer equipment and storage medium
CN113746640B (en) Digital certificate using method, device, computer equipment and storage medium
CN114511321B (en) Point-to-point based data processing method, system, computing device and storage medium
CN116307343A (en) User asset management method, device, computer equipment and storage medium
US11477279B1 (en) Digital assets exchange coordination
CN116071070A (en) Resource transfer method and related device
CN113360883B (en) Intelligent contract processing method and device, computer equipment and storage medium
CN105474591A (en) Content distribution using social relationships
CN116756400A (en) Asset query method and device for blockchain, computer equipment and storage medium
CN116308786A (en) Processing method, system, electronic equipment and readable storage medium for blockchain transaction
CN116233130A (en) Block chain-based registration method, device, electronic equipment and readable storage medium
US11798358B2 (en) Casino decentralized management to collect and share player credit data
KR102510353B1 (en) Method and system for providing golf service based blockchain
CN113506108A (en) Account management method, device, terminal and storage medium

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