<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Danh Suneo</title>
        <link>https://paragraph.com/@danh-suneo</link>
        <description>undefined</description>
        <lastBuildDate>Sun, 12 Apr 2026 13:47:48 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Danh Suneo</title>
            <url>https://storage.googleapis.com/papyrus_images/a7e9126680104a5fe3521463b36f9344211a15501dc9b1001966294bd83bba68.jpg</url>
            <link>https://paragraph.com/@danh-suneo</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[Hưỡng dẫn Deploy Contrac]]></title>
            <link>https://paragraph.com/@danh-suneo/h-ng-d-n-deploy-contrac-2</link>
            <guid>I53nUQfD1hGSVL9Ly130</guid>
            <pubDate>Sat, 28 Oct 2023 14:30:38 GMT</pubDate>
            <description><![CDATA[1/ Truy cập Link https://remix.ethereum.org/ 2/ Tạo 1 thư mục mới trên remix click vào trên ảnh3/ Đặt tên cho mục này rồi ấn Enter4/ Copy code dưới dân dán vào mục trống// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; contract FunctionTypes{ uint256 public number = 5; constructor() payable {} // 函数类型 // function (&#x3C;parameter types>) {internal|external} [pure|view|payable] [returns (&#x3C;return types>)] // 默认function function add() external{ number = number + 1; } // pure: 纯纯牛马 fun...]]></description>
            <content:encoded><![CDATA[<p>1/ Truy cập Link</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://remix.ethereum.org/">https://remix.ethereum.org/</a></p><p>2/ Tạo 1 thư mục mới trên remix click vào trên ảnh</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ee393d57b8aff77d9723a1153b9e6b4db00a6887bfb8fbc0a74e4b97b60b395d.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>3/ Đặt tên cho mục này rồi ấn Enter</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/3b4950f6f8c8711656c5062a08319d68cc8ab818f3dcee6cc13b0088e8ed6d59.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>4/ Copy code dưới dân dán vào mục trống</p><pre data-type="codeBlock" text="// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
contract FunctionTypes{
    uint256 public number = 5;
    
    constructor() payable {}

    // 函数类型
    // function (&lt;parameter types&gt;) {internal|external} [pure|view|payable] [returns (&lt;return types&gt;)]
    // 默认function
    function add() external{
        number = number + 1;
    }

    // pure: 纯纯牛马
    function addPure(uint256 _number) external pure returns(uint256 new_number){
        new_number = _number+1;
    }
    
    // view: 看客
    function addView() external view returns(uint256 new_number) {
        new_number = number + 1;
    }

    // internal: 内部
    function minus() internal {
        number = number - 1;
    }

    // 合约内的函数可以调用内部函数
    function minusCall() external {
        minus();
    }

    // payable: 递钱，能给合约支付eth的函数
    function minusPayable() external payable returns(uint256 balance) {
        minus();    
        balance = address(this).balance;
    }
}
"><code><span class="hljs-comment">// SPDX-License-Identifier: MIT</span>
<span class="hljs-meta"><span class="hljs-keyword">pragma</span> <span class="hljs-keyword">solidity</span> ^0.8.4;</span>
<span class="hljs-class"><span class="hljs-keyword">contract</span> <span class="hljs-title">FunctionTypes</span></span>{
    <span class="hljs-keyword">uint256</span> <span class="hljs-keyword">public</span> number <span class="hljs-operator">=</span> <span class="hljs-number">5</span>;
    
    <span class="hljs-function"><span class="hljs-keyword">constructor</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">payable</span></span> </span>{}

    <span class="hljs-comment">// 函数类型</span>
    <span class="hljs-comment">// function (&#x3C;parameter types>) {internal|external} [pure|view|payable] [returns (&#x3C;return types>)]</span>
    <span class="hljs-comment">// 默认function</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">add</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span></span>{
        number <span class="hljs-operator">=</span> number <span class="hljs-operator">+</span> <span class="hljs-number">1</span>;
    }

    <span class="hljs-comment">// pure: 纯纯牛马</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">addPure</span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> _number</span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> <span class="hljs-title"><span class="hljs-keyword">pure</span></span> <span class="hljs-title"><span class="hljs-keyword">returns</span></span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> new_number</span>)</span>{
        new_number <span class="hljs-operator">=</span> _number<span class="hljs-operator">+</span><span class="hljs-number">1</span>;
    }
    
    <span class="hljs-comment">// view: 看客</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">addView</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> <span class="hljs-title"><span class="hljs-keyword">view</span></span> <span class="hljs-title"><span class="hljs-keyword">returns</span></span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> new_number</span>) </span>{
        new_number <span class="hljs-operator">=</span> number <span class="hljs-operator">+</span> <span class="hljs-number">1</span>;
    }

    <span class="hljs-comment">// internal: 内部</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">minus</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">internal</span></span> </span>{
        number <span class="hljs-operator">=</span> number <span class="hljs-operator">-</span> <span class="hljs-number">1</span>;
    }

    <span class="hljs-comment">// 合约内的函数可以调用内部函数</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">minusCall</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> </span>{
        minus();
    }

    <span class="hljs-comment">// payable: 递钱，能给合约支付eth的函数</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">minusPayable</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> <span class="hljs-title"><span class="hljs-keyword">payable</span></span> <span class="hljs-title"><span class="hljs-keyword">returns</span></span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> balance</span>) </span>{
        minus();    
        balance <span class="hljs-operator">=</span> <span class="hljs-keyword">address</span>(<span class="hljs-built_in">this</span>).<span class="hljs-built_in">balance</span>;
    }
}
</code></pre><p>5/ Click như trên Hình</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ed5dfccd4f7176cf2d9440acc2a10b5d827ea914a10b3c51f89eb5e66aad8ba6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>6/ Bước cuối Click vào Logo Eth xong chọn vào mục metamask kết nối ví nhớ chuyển qua mạng #Scorll nhé sau đó depoly trả 0.3$ fee mạng Scroll</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0c0c21451fcff4baf72528055bf1f9480750490e30bc763b5fc63c21b8faabcb.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>7/ vào check xem đủ điều kiện chưa nhé :</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://scroll.io/developer-nft/check-eligibility"><strong>Scroll – Native zkEVM Layer 2 for Ethereum</strong></a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://scroll.io/developer-nft/check-eligibility">https://scroll.io/developer-nft/check-eligibility</a></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7ab6734ffc7bbc26bff934a35d123d312d42b28a61166038ff446a426dc74cf1.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure>]]></content:encoded>
            <author>danh-suneo@newsletter.paragraph.com (Danh Suneo)</author>
        </item>
        <item>
            <title><![CDATA[Hưỡng dẫn Deploy Contrac]]></title>
            <link>https://paragraph.com/@danh-suneo/h-ng-d-n-deploy-contrac</link>
            <guid>HGIllNawJjiV5Sw6fP9Q</guid>
            <pubDate>Sat, 28 Oct 2023 14:04:58 GMT</pubDate>
            <description><![CDATA[1/ Truy cập Link https://remix.ethereum.org/ 2/ Tạo 1 thư mục mới trên remix click vào trên ảnh3/ Đặt tên cho mục này rồi ấn Enter4/ Copy code dưới dân dán vào mục trống// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; contract FunctionTypes{ uint256 public number = 5; constructor() payable {} // 函数类型 // function (&#x3C;parameter types>) {internal|external} [pure|view|payable] [returns (&#x3C;return types>)] // 默认function function add() external{ number = number + 1; } // pure: 纯纯牛马 fun...]]></description>
            <content:encoded><![CDATA[<p>1/ Truy cập Link</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://remix.ethereum.org/">https://remix.ethereum.org/</a></p><p>2/ Tạo 1 thư mục mới trên remix click vào trên ảnh</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ee393d57b8aff77d9723a1153b9e6b4db00a6887bfb8fbc0a74e4b97b60b395d.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>3/ Đặt tên cho mục này rồi ấn Enter</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/3b4950f6f8c8711656c5062a08319d68cc8ab818f3dcee6cc13b0088e8ed6d59.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>4/ Copy code dưới dân dán vào mục trống</p><pre data-type="codeBlock" text="// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
contract FunctionTypes{
    uint256 public number = 5;
    
    constructor() payable {}

    // 函数类型
    // function (&lt;parameter types&gt;) {internal|external} [pure|view|payable] [returns (&lt;return types&gt;)]
    // 默认function
    function add() external{
        number = number + 1;
    }

    // pure: 纯纯牛马
    function addPure(uint256 _number) external pure returns(uint256 new_number){
        new_number = _number+1;
    }
    
    // view: 看客
    function addView() external view returns(uint256 new_number) {
        new_number = number + 1;
    }

    // internal: 内部
    function minus() internal {
        number = number - 1;
    }

    // 合约内的函数可以调用内部函数
    function minusCall() external {
        minus();
    }

    // payable: 递钱，能给合约支付eth的函数
    function minusPayable() external payable returns(uint256 balance) {
        minus();    
        balance = address(this).balance;
    }
}
"><code><span class="hljs-comment">// SPDX-License-Identifier: MIT</span>
<span class="hljs-meta"><span class="hljs-keyword">pragma</span> <span class="hljs-keyword">solidity</span> ^0.8.4;</span>
<span class="hljs-class"><span class="hljs-keyword">contract</span> <span class="hljs-title">FunctionTypes</span></span>{
    <span class="hljs-keyword">uint256</span> <span class="hljs-keyword">public</span> number <span class="hljs-operator">=</span> <span class="hljs-number">5</span>;
    
    <span class="hljs-function"><span class="hljs-keyword">constructor</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">payable</span></span> </span>{}

    <span class="hljs-comment">// 函数类型</span>
    <span class="hljs-comment">// function (&#x3C;parameter types>) {internal|external} [pure|view|payable] [returns (&#x3C;return types>)]</span>
    <span class="hljs-comment">// 默认function</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">add</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span></span>{
        number <span class="hljs-operator">=</span> number <span class="hljs-operator">+</span> <span class="hljs-number">1</span>;
    }

    <span class="hljs-comment">// pure: 纯纯牛马</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">addPure</span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> _number</span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> <span class="hljs-title"><span class="hljs-keyword">pure</span></span> <span class="hljs-title"><span class="hljs-keyword">returns</span></span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> new_number</span>)</span>{
        new_number <span class="hljs-operator">=</span> _number<span class="hljs-operator">+</span><span class="hljs-number">1</span>;
    }
    
    <span class="hljs-comment">// view: 看客</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">addView</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> <span class="hljs-title"><span class="hljs-keyword">view</span></span> <span class="hljs-title"><span class="hljs-keyword">returns</span></span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> new_number</span>) </span>{
        new_number <span class="hljs-operator">=</span> number <span class="hljs-operator">+</span> <span class="hljs-number">1</span>;
    }

    <span class="hljs-comment">// internal: 内部</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">minus</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">internal</span></span> </span>{
        number <span class="hljs-operator">=</span> number <span class="hljs-operator">-</span> <span class="hljs-number">1</span>;
    }

    <span class="hljs-comment">// 合约内的函数可以调用内部函数</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">minusCall</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> </span>{
        minus();
    }

    <span class="hljs-comment">// payable: 递钱，能给合约支付eth的函数</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">minusPayable</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">external</span></span> <span class="hljs-title"><span class="hljs-keyword">payable</span></span> <span class="hljs-title"><span class="hljs-keyword">returns</span></span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> balance</span>) </span>{
        minus();    
        balance <span class="hljs-operator">=</span> <span class="hljs-keyword">address</span>(<span class="hljs-built_in">this</span>).<span class="hljs-built_in">balance</span>;
    }
}
</code></pre><p>5/ Click như trên Hình</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ed5dfccd4f7176cf2d9440acc2a10b5d827ea914a10b3c51f89eb5e66aad8ba6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>6/ Bước cuối Click vào Logo Eth xong chọn vào mục metamask kết nối ví nhớ chuyển qua mạng #Scorll nhé sau đó depoly trả 0.3$ fee mạng Scroll</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0c0c21451fcff4baf72528055bf1f9480750490e30bc763b5fc63c21b8faabcb.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>7/ vào check xem đủ điều kiện chưa nhé :</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://scroll.io/developer-nft/check-eligibility"><strong>Scroll – Native zkEVM Layer 2 for Ethereum</strong></a></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://scroll.io/developer-nft/check-eligibility">https://scroll.io/developer-nft/check-eligibility</a></p>]]></content:encoded>
            <author>danh-suneo@newsletter.paragraph.com (Danh Suneo)</author>
        </item>
    </channel>
</rss>