亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

? ?? ???? IT?? ?? ?? DAPP ?? : ??? ???? ??

?? ?? DAPP ?? : ??? ???? ??

Feb 16, 2025 am 10:35 AM

Building Ethereum DApps: Voting with Custom Tokens

?? ???

?? ?? ? ????? ??? ???? ?? ??? ?? DAO?? ??? ?? ??? ???? ?? ???? ? ?? ???? ??????.

?? ?? ?? ??? ? ?? ??? ?? ???? ??? ?? ????? ???? ??? ???? ??? ?????.
    ?? ?? ???? DAO ??? ???? ?? ??? ? ??? ? ?? ??? ?? ?? ? ?? ???? ?????.
  • ??? ??? ?? ???? ???? DAO ???? ???? ???? ?? ??? ?????? ??? ? ?? ??? ?????.
  • ?? ??? ???? ???? ??? ?????? ?? ???? ???? ????? ?? ??? ??? ??? ??? ?????? ??? ??? ???? ?????.
  • ? ???? ???? ?? ?? ??? ?? ??? ???? DAPP ??? ????, ???? ??? ??? DAO?? ??? ???? ?????? ???? ???? ???? ??? ???? ??? ?? ?????. ??? DAO? ?? ?? ? ??, ?????? ??/??, ?? ?? ? ??? ?????. ??? ??? ??? ??? ?? ? ????.
  • ?? ?? ??????? ?? ?? ??? ?? ???? ?? ? ????.
  • ??? ?? ??? ??? ?? ??? ??? ??? ????. ??? ? ?? ??? ??? ????? :
  • ???? ???? ? ???? ? ? ???? ?? ?? ?? ?????? ?? ????? ? ?? ?? ???? ?????. ??? ???? ?????? ???? ??? ???, ?? ??? ???? ?? ??????? ??? ?? ??? ????. ?? ?? ?? ?????? ????? ??? ???? ??? ? ??? ??? ??? ??????.
?? ?? ???? ???? ?? ??? ?????.

?? : ?? ?? ? ?? :? ???? ??? ???? ??? ????? ???? ?? ??? ? ??? ??? ? ??? ??? ? ????. ??? ??? ??? ?? ?????!

?? ??? ?? ??? ????? ???? ??? ?? ? ??? ??? ??? ??? ????. ?? ?? ?????? ???? ?? ?? ????? ???? ??????. ??? ??? ???? ?? ??? ????. ??? ??? ?? ???? ???? ???????. ??? ???? ?? ? ? ???, ?? ?? ??? ??? ??? ???? ??? ?? ?? ??? DAO? ?? ? ????. ??? ?? ??? ???????

?? ?? ? ??? ???? ???? ?? ??? ???? ??? ?? ?? ????? ?? ???? ?????. ??? Token.increaSelockedAmount ? ??????

? ??? ???? ?? ??? ?? ??????. ? ??? ?? ??? ???? ???? ??? ? ??? (???? DAO? ? ??? ?????) ???? ??? ??? ?? ? ?? ???? ? ?? ?? ??? ??????. ? ??? ???? ????? ?? ? ?? ?????.

?? ?? ??? ?????? ??? ??? ???.

?? ? ?????? ??

? ???? ? ?? ????, ??? ? ?? ?? ?? ??? ??????.

?? ?? : ?? ?? ? ?? ??? ??????. ?? ?? : 48 ??. ?? ?? ?? [??? ?] : ????? ??????. ?? ?? ? ?? ??? ??????. ?? ?? : 24 ??. ?? ?? ?? [??? ?] : ?? ???? ?????. ???? ???? ??????. ?? ?? ? ?? ??? ??????. ?? ?? : 4 ??.

?? ??? ?? 5 ?? ??? ???? ?????? ?????.

??? ?? ?????? ???. ?? ??? ??????
    ?? ? ???? ?? ??? ???? ?? ??? ?? ??? ?? ?????. ??? ???? ???? ???? ?? ??? ?? ???? ??????. ??? ???? ???? ? ?? ?? ?????.
  1. ??, ???? ???? ??? ?? ?????. ?? ???? ???? ??? ??? ????? ???? ???????. ?? ??? ??? ??? ID? ?????. EVM? ? ?? ???? ?? ??? ???? ?? ??? ????. ??? ?? ??? ?? ?? ? ??? DAO? ???? ?? ??? ? ???, ?? ?? ?? ??? ?? ??? ???? ?? ??? ??? ? ????. ? ?? ? ??? ???? ??? ?? ? ??? ?? ?? ??? ???? ?? ?? ????. ??? ????? ?? ???? ??? ??? ? ????.
  2. ??? ????? ???? ??, ????? ???? ???? ?????? ??? ?? ?? ??? ???? ???? ??? ??? ? ?? ?? ?? ??? ???? ????? ??????. ? ???? ?????? (?? ??? ??). Assert Call? ?? ????? ?? ?? ???? ?????. Assert? ????? ??? ?????. ??? ?? ??? ?????. ????? ???? ?????. ???? Assert ??? ??? ??? ???? ?? ??? ?? ??? ?? ?? ? ??? ????. ? ??? ???? ?? ??? ?? ??? ?? ?????? ????.
  3. ??? ??? ??? ???? ?? ??? ???? ?? ? ? ??? ??, DeletEsubmission ??? ?????? ????? ??? ??? 5 ? ??? ??? ?????. ?? ?? ????? ???? ???? ???? ?? ?????. deletesubmission ??? ???????
    <code>struct Proposal {
        string description;
        bool executed;
        int256 currentResult;
        uint8 typeFlag; // 1 = delete
        bytes32 target; // 提案目標的ID。例如,標志1,目標XXXXXX(哈希)表示刪除submissions[hash]的提案
        uint256 creationDate;
        uint256 deadline;
        mapping (address => bool) voters;
        Vote[] votes;
        address submitter;
    }
    
    Proposal[] public proposals;
    uint256 proposalCount = 0;
    event ProposalAdded(uint256 id, uint8 typeFlag, bytes32 hash, string description, address submitter);
    event ProposalExecuted(uint256 id);
    event Voted(address voter, bool vote, uint256 power, string justification);
    
    struct Vote {
        bool inSupport;
        address voter;
        string justification;
        uint256 power;
    }</code>
    <.> ??? ? ????. ???? ????? ? 5 ? ???????. ????? ???? ?? ? ????? ?? ?? ??????. ?? ????? ?? ??? ???????. ? ? ??? ?? ???? ?? ?? ?????? 0.05 ???? ???? ?? ???? ?????.

    ????? ??? ?? ??? ?????? ???? ?? ???? ?? ??? ?? ????.
    <code>modifier tokenHoldersOnly() {
        require(token.balanceOf(msg.sender) >= 10**token.decimals());
        _;
    }
    
    function vote(uint256 _proposalId, bool _vote, string _description, uint256 _votePower) tokenHoldersOnly public returns (int256) {
    
        require(_votePower > 0, "At least some power must be given to the vote.");
        require(uint256(_votePower) <= token.balanceOf(msg.sender), "Vote power exceeds token balance.");
        Proposal storage p = proposals[_proposalId];
    
        require(p.executed == false, "Proposal must not have been executed already.");
        require(p.deadline > now, "Proposal must not have expired.");
        require(p.voters[msg.sender] == false, "User must not have already voted.");
    
        uint256 voteid = p.votes.length++;
        Vote storage pvote = p.votes[voteid];
        pvote.inSupport = _vote;
        pvote.justification = _description;
        pvote.voter = msg.sender;
        pvote.power = _votePower;
    
        p.voters[msg.sender] = true;
    
        p.currentResult = (_vote) ? p.currentResult + int256(_votePower) : p.currentResult - int256(_votePower);
        token.increaseLockedAmount(msg.sender, _votePower);
    
        emit Voted(msg.sender, _vote, _votePower, _description);
        return p.currentResult;
    }</code>

    ?? ??? ??

    ??? ? ??? ?? ??? ???? ?? ???? ??????. ????? ?? ????? GitHub ?? ??? ???? ?? ??? ???? ??????. ????, ??? ??? DAO?? ????? ?? ???? ?? ???.

    ??? ? ???? ?? ?? ? ??? ???? ???? ??? ? ????. ??? ??? ??? ?? ??? ?? ? ??? ???? ?? ? ? ????. ??, ??? Storydao ??? ???? ?????.

    ?? ?? ??? ????? :

    ?? : ?? ? ???? ????? ??? ???? ??? ?? ???? ???????. ??? ??? ??? DAO? ???? ??? ??? ??? ????. ?? ??? ? ?? ???? ????. ??? ?? ?? ? :

    ? ??? ???

    ?? ?? ??? ?? ?? ???? ??? ?? ?? ?? ???? ?????. DAO? ??? ??? ?? ???, ?? ?? ?? ??? ???? ?? ?? ??? ?? ???? ?? ??? ? ????. UnlockyTokens ??? ?? ???? ?? ??? ?? ?? ??? ?? ???? ? ?????. ?? ?? ???? ??? ??? ??? ?? ???? ?? ????????.

    ?? ?? ?? ? ??

    <code>modifier memberOnly() {
        require(whitelist[msg.sender]);
        require(!blacklist[msg.sender]);
        _;
    }
    
    function proposeDeletion(bytes32 _hash, string _description) memberOnly public {
    
        require(submissionExists(_hash), "Submission must exist to be deletable");
    
        uint256 proposalId = proposals.length++;
        Proposal storage p = proposals[proposalId];
        p.description = _description;
        p.executed = false;
        p.creationDate = now;
        p.submitter = msg.sender;
        p.typeFlag = 1;
        p.target = _hash;
    
        p.deadline = now + 2 days;
    
        emit ProposalAdded(proposalId, 1, _hash, _description, msg.sender);
        proposalCount = proposalId + 1;
    }
    
    function proposeDeletionUrgent(bytes32 _hash, string _description) onlyOwner public {
    
        require(submissionExists(_hash), "Submission must exist to be deletable");
    
        uint256 proposalId = proposals.length++;
        Proposal storage p = proposals[proposalId];
        p.description = _description;
        p.executed = false;
        p.creationDate = now;
        p.submitter = msg.sender;
        p.typeFlag = 1;
        p.target = _hash;
    
        p.deadline = now + 12 hours;
    
        emit ProposalAdded(proposalId, 1, _hash, _description, msg.sender);
        proposalCount = proposalId + 1;
    }    
    
    function proposeDeletionUrgentImage(bytes32 _hash, string _description) onlyOwner public {
    
        require(submissions[_hash].image == true, "Submission must be existing image");
    
        uint256 proposalId = proposals.length++;
        Proposal storage p = proposals[proposalId];
        p.description = _description;
        p.executed = false;
        p.creationDate = now;
        p.submitter = msg.sender;
        p.typeFlag = 1;
        p.target = _hash;
    
        p.deadline = now + 4 hours;
    
        emit ProposalAdded(proposalId, 1, _hash, _description, msg.sender);
        proposalCount = proposalId + 1;
    }</code>
    ?? ???? ????? ??? ?? ?? ? ???? ?? ?? ????? ????????. ??? ??????? ????? ?? ???? ?? ? ?? ???? ?? ? ? ????.

    ? ???? ?? ?? ?? ?? ???? ??? ???? ??? ??? ?? ? ????.

    ????,? ?? ? ??? ??? ?????, ???? ????, ???? ??? ????, ?? ?? ????? ?? ???? ?? ???? ?? ??? ?? ???? ??????. ? ??? ?? ?? ??? ???? ??? ?? ????? ?? ?? ??? ?????! ?? ?? ????? ??????. ??? ?? ?? ???? ?? ????? ??? ??? ????. ??? ???? ?????!
    <code>function executeProposal(uint256 _id) public {
        Proposal storage p = proposals[_id];
        require(now >= p.deadline && !p.executed);
    
        if (p.typeFlag == 1 && p.currentResult > 0) {
            assert(deleteSubmission(p.target));
        }
    
        uint256 len = p.votes.length;
        for (uint i = 0; i < len; i++) {
            token.decreaseLockedAmount(p.votes[i].voter, p.votes[i].power);
        }
    
        p.executed = true;
        emit ProposalExecuted(_id);
    }</code>
    <<> ?? ??

    ??? ??? ??, ?? ?/?? ???? ?? ?? ?? ??? ?? ??? ?? ? ? ????. ??? ??? ?? ????? Ethereum ????? ???? ?? ???? ????. ??? ????? ??? ?? ??? ? SOLC ??? ????? Truffle.js ??? ???? ????? ?? ?? ????? ???????.

    <code>struct Proposal {
        string description;
        bool executed;
        int256 currentResult;
        uint8 typeFlag; // 1 = delete
        bytes32 target; // 提案目標的ID。例如,標志1,目標XXXXXX(哈希)表示刪除submissions[hash]的提案
        uint256 creationDate;
        uint256 deadline;
        mapping (address => bool) voters;
        Vote[] votes;
        address submitter;
    }
    
    Proposal[] public proposals;
    uint256 proposalCount = 0;
    event ProposalAdded(uint256 id, uint8 typeFlag, bytes32 hash, string description, address submitter);
    event ProposalExecuted(uint256 id);
    event Voted(address voter, bool vote, uint256 power, string justification);
    
    struct Vote {
        bool inSupport;
        address voter;
        string justification;
        uint256 power;
    }</code>
    ?? ?? ?? ??? ????? ??? ? ??? ??? ?? ?? ???? ????? 200 ? ???? ?? ??? ?? ?? ? ????.

    ??

    ??? ??? ??? DAO ??? ??? ? ??? ?? ??? ?????! ??? ???? ???? ?? UI? ???? ???????. ???? ???? ?? ???? ??? ????? ??? ??? ??? ???? ?? ?? ????. ? ???? ? ?? ???? ??? ?? ?????. ?? ?? DAPP ?? ? ??? ???? ???? ?? ?? ?? ?? ??

    ?? ?? ??? ??? ??? ??????

    ?? ?? ??? ?? ?? ??? ???? ??? ???? ?? ?? ??????. ?????? ???? ??????? ???? ?? ??? ?????. ?? ???? ?? ?? ?? ???? ??? ??? ???? ?? ???? ? ??? ?? ??? ?????. ??? ??? ?? ?, ?? ?? ? ?? ?? ??? ??? ??? ???? ?? ??? ?? ??? ?? ? ? ????.

    DAO ?? ????? ?????? DAO (DECENTRALIZINID ACTONOMOUS ORGITOM) ?? ????? DAO? ?? ???? ?? ???? ?? ???? ?? ? ??? ??????. ?? ???? ?????? ??? ??? ??? ????, ???? ??? 50% ????? ?? ????, ??? ?? ?? ?? ??? ?? ????? ???? 2 ? ??. ?? ???? ????? ??? ??????

    ??? ??? ????? ????? ?? ???? ????? ??? ??? ?? ? ??? ?? ???? ?? ?????. ???? ???? ??, ?? ??? ? ???? ??? ??? ??? ???? ??? ??? ? ????. ?? ???? ???? ????? ??? ??? ?? ?? ?????.

    DAO ????? ???? ???

    DAO ???? ???? ??? ? ?? ????? ???? ??? ??? ???? ???? ?? ?? ?? ??? ??? ??? ???? ?? ?????. ? ??? ?? ??? ???? ???? ???? ??? ???? ?????. ?? ?? ??? ?? ??? ???? ?? ? ? ????.

    DAO ???? ??? ?? ? ??? ??????

    DAO ???? ??? ???? ?? ?? ??? ???? DAO? ??? ?? ?????? ?? ?? ? ? ????. ?? ??, CFTC (Commodity Futures Trading Commission)? ??? DAO ??? ???? ?? ?? ??? ? ??? ?? ? ? ??? ?????. ?? DAO? ??? ???? ??? ?? ??? ?????? ?? ???? ??? ?? ? ????.

    ?? ?? DAPP?? ????? ??? ??? ??? ??? ??????

    ?? ?? DAPP?? ??? ?? ??? ??? ??? ?? ?? ?? ?? ??? ??? ??? ???? ???? ?? ?????. ? ??? ??, ?? ? ? ??? ?? ??? ??? ?????. ??? ???? ??? ????? ?? ? ? ??? ?????? ???? DAPP? ???? ?? ? ? ????.

    ??? ?? ??? ???? ?? ??? ?????

    ?? ?? ??? ???, ?? ? ???? ??? ??? ??? ?????. ??? ?? ??? ??? ???? ???? ?? ?????. ?? ??? ?? ??? ?? ?? ???? ?? ??? ????? ?????.

    ?? ?? ???? ???? ?? ?? ???? ??? ??????

    ?? ?? ???? ??? ?? ?? ?? ?? ??? ??? ???? ?? ??? ? ?? ?????. ??? ?? ?? ??? ?? ??? ???? ??? ??? ?? ???? ???? ???? ? ??? ? ????.

    ?? ?? ??? ???? ? ?? ???? ?????

    ??? ???, ?? ???? ? ??? ?? ???? ?? ?? ?? ??? ???? ?? ??? ? ????. ???? ?? ??? ???? ?? ?? ?? ??? ?????? ?? ??? ?? ?? ?? ???? ???? ??? ?? ??? ?? ? ? ????.

    DAO ???? ??? ??? ??? ???? ??? ??????

    DAO ???? ??? ??? ?? ?? ?? ???? ??? DAO ??, ??? ?? ?? ? ?? ?? ??? ???? ?? ?????. ?? ?????? ????? ??? ??? ??? ? ?? ???? ?? ?? ?????.

? ??? ?? ?? DAPP ?? : ??? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1597
29
PHP ????
1488
72
???
??? ??? AI ???? ???? ?? ???? ?????? ?? ???? ?????. ??? ???? ?? ?? ??? ??? ????. ??? ??? AI ???? ???? ?? ???? ?????? ?? ???? ?????. ??? ???? ?? ?? ??? ??? ????. Jul 05, 2025 am 01:12 AM

??? ??, ?? ??? ?? ??? ????????. ?? ??? ? ??? ??? ?? ??? AI ????????.

????? ?? ??? ??? Microsoft AI ?? ??? 5,000 ? ? ?? ??? ? ????. ????? ?? ??? ??? Microsoft AI ?? ??? 5,000 ? ? ?? ??? ? ????. Jul 05, 2025 am 12:44 AM

??? ?? ?? (AI) ??? ?? ?? ???? ??? ?? ????? ?? ?? ?????? ??? ???? ??? ??? ??? ???????.

?? AI ??? ?? 50 ? ? ?? CO ₂? ?????. ?? ??? ?? ? ? ? ???? LLM?? ?? ?? AI ??? ?? 50 ? ? ?? CO ₂? ?????. ?? ??? ?? ? ? ? ???? LLM?? ?? Jul 06, 2025 am 12:37 AM

?? ???? AI ?? ??? ???????, ??? ??? ???, Anthropic 's Claude? ?? ?? ??? ???, ?? ????? ?? ??? ?? 50 ? ? ?? ?????? ????? ?? ???? ????.

ai '??'? ???? ??? ???? ???? ai '??'? ???? ??? ???? ???? Jul 07, 2025 am 01:26 AM

?? ?? (AI)? ??? ??? ??? ?? ???? ??? ??? ?? ? ? ??? ?? ????. ?? ??? Open AI? Chatgpt, Google? Gemini ?? ?? ?? ?? ?? (LLM)? ???? ????? ????.

? AI hallucinated? ? ??, ??? ?? ? ????? ? AI hallucinated? ? ??, ??? ?? ? ????? Jul 08, 2025 am 01:44 AM

?? ?? ?? (AI)? ??? "??"?? ?? ?? ??? ? ??? ???? ??? ? ??

Openai? Deepseek? ??? AI ??? ??? ?? ????? '??? ??'? ????. Openai? Deepseek? ??? AI ??? ??? ?? ????? '??? ??'? ????. Jul 07, 2025 am 01:02 AM

?? ?? (AI) ?? ??? ?????? ??? ????. Apple? ????? ???, Apple 's Claude? ?? ?? ?? ? Open? ??? ??? ?? ????? ??? ??? ?????.

M & S? Co-op? ?? ??? ?? ?? ??? ?? ? ?? M & S? Co-op? ?? ??? ?? ?? ??? ?? ? ?? Jul 11, 2025 pm 01:36 PM

??? ?? ?? ?? (NCA)? ??? ??? (M & S), ?? ?? ? ????? ????? ??? ??? ?? ? ??? ???? 4 ?? ??? ??????.

?? ??? ? ???? ?? ??? ?? ???? ??? ?????. ?? ??? ? ???? ?? ??? ?? ???? ??? ?????. Jul 11, 2025 pm 01:38 PM

?? ? ???? ??? ?? ???? ??? ??????? ??? ??? ?? ????? ?? ??? ???? ????? ??? ???? ?? ??? ??????.

See all articles