<?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>ZhangSL</title>
        <link>https://paragraph.com/@zhangsl</link>
        <description>develop</description>
        <lastBuildDate>Wed, 06 May 2026 19:04:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[区块链的一些基础]]></title>
            <link>https://paragraph.com/@zhangsl/t4f1ivmHvH4AR5IJ4Woi</link>
            <guid>t4f1ivmHvH4AR5IJ4Woi</guid>
            <pubDate>Tue, 27 Sep 2022 03:29:15 GMT</pubDate>
            <description><![CDATA[概念名词什么是Layer1和Layer2根据计算机网络通信体系架构的OSI模型（Open System Interconnection Reference Model，即开放式系统互联通信参考模型），将区块链逻辑架构划分为三层——Layer0、Layer1和Layer2。Layer0对应OSI模型的底层协议，大致包括物理层、数据链路层、网络层和传输层。Layer1大致包括数据层、共识层和激励层。Layer 2则主要包括合约层和应用层。什么是NFT NFT 全称Non-Fungible Token，通常译为非同质化代币，是指具有独特唯一性且彼此不可替换属性的数字资产，即每一种NFT都是独特的，它们提供了不同的用途和价值。NFT 是在区块链上控制的加密代币。NFT 的功能依赖于支撑它的智能合约。NFT+加密游戏NFT+收藏品NFT+艺术品NFT+Defi NFT最大的交易平台https://opensea.io/什么是GameFi GameFi由Game（游戏）和Finance（金融）两个词组合而成，意指为玩家提供经济激励，可以边玩边赚的区块链游戏。GameFi生态系统使用加密货币、...]]></description>
            <content:encoded><![CDATA[<h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">概念名词</h2><h3 id="h-layer1layer2" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">什么是Layer1和Layer2</h3><p>根据计算机网络通信体系架构的OSI模型（Open System Interconnection Reference Model，即开放式系统互联通信参考模型），将区块链逻辑架构划分为三层——Layer0、Layer1和Layer2。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/52eec93a90d933d83f81bd6944e9bf17ab3fed3366b7c5075f80ebeffaacd786.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><ul><li><p>Layer0对应OSI模型的底层协议，大致包括物理层、数据链路层、网络层和传输层。</p></li><li><p>Layer1大致包括数据层、共识层和激励层。</p></li><li><p>Layer 2则主要包括合约层和应用层。</p></li></ul><p><strong>什么是NFT</strong></p><p>NFT 全称Non-Fungible Token，通常译为非同质化代币，是指具有独特唯一性且彼此不可替换属性的数字资产，即每一种NFT都是独特的，它们提供了不同的用途和价值。NFT 是在区块链上控制的加密代币。NFT 的功能依赖于支撑它的智能合约。</p><pre data-type="codeBlock" text="  领域方向
"><code></code></pre><ul><li><p>NFT+加密游戏</p></li><li><p>NFT+收藏品</p></li><li><p>NFT+艺术品</p></li><li><p>NFT+Defi</p><p>NFT最大的交易平台<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://opensea.io/">https://opensea.io/</a></p></li></ul><p><strong>什么是GameFi</strong></p><p>GameFi由Game（游戏）和Finance（金融）两个词组合而成，意指为玩家提供经济激励，可以边玩边赚的区块链游戏。GameFi生态系统使用加密货币、非同质化代币(NFT)和区块链技术打造虚拟游戏环境。玩家通常可以通过完成任务、与其他玩家对战以及通关升级来赚取游戏内奖励，还可以将游戏资产转出，在加密货币交易平台和NFT市场进行交易。GameFi可持续发展的关键在于持续为玩家产生收益。</p><pre data-type="codeBlock" text="  链上游戏应用查看：https://dappradar.com/rankings/category/games/1

  玩法模式 主要是X to Earn模式，介绍两种目前比较火热的模式
"><code>  链上游戏应用查看：<span class="hljs-symbol">https:</span>/<span class="hljs-regexp">/dappradar.com/rankings</span><span class="hljs-regexp">/category/games</span><span class="hljs-regexp">/1

  玩法模式 主要是X to Earn模式，介绍两种目前比较火热的模式
</span></code></pre><ul><li><p>P2E（Play 2 Earn） 游戏行为经济，代表项目Axie Infinity，The Sandbox</p></li><li><p>M2E（Move to Earn）运动行为经济，代表项目StepN</p></li></ul><p><strong>其他名词</strong></p><ul><li><p>DAO （Distributed Autonomous Organization） 去中心化自治</p></li><li><p>DApp（Decentralized Application）去中心化应用</p></li></ul><h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">基础链</h2><p><strong>共识机制</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e91bd1fc110cc7075dd327604683bdf2b1446b4a77998119a05fa4330927989e.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><strong>数字钱包</strong></p><p>数字钱包中包含成对的私钥和公钥，公钥用于交易转账，私钥用于签名和解密。加密货币钱包不会真正存储数字资产。</p><p>钱包目前类型有App钱包，浏览器插件钱包，桌面钱包，热钱包。</p><p><strong>公链</strong></p><p>以太坊以及智能合约带来了DeFi，NFT，GameFi，以至于metaverse等领域的发展，但以太坊链上应用的爆炸式增长也导致了链上容量不足的问题，从而造成高昂的gas fee费用。目前以太坊2.0正在升级中，由PoW(工作量证明)区块链转向PoS(权益证明)区块链的技术升级中，升级后的以太坊2.0将会大幅提高容量和速度。目前新兴的L1公链主要是Pos技术，主要包括Binance Smart Chain, Solana, Avalanche, Terra等。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ce134578424ef86f4ee7fafb3d92a9f2d149a74c83c2e1e838b89b37896c0353.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><strong>WEB3.0</strong></p><p>目前将Web 3大致划分为了四个层级：网络层、区快链交互层、表示层和应用层。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e040f74f566c85e16eb06dcb0b8c22c56f708e313102503b43d1949fd2f265ab.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><strong>Web3 网络层</strong></p><p>Web3 技术栈的基础是区块链网络层。虽然 Web2 应用程序依赖于集中式数据库，但 Web3 应用程序构建在区块链架构之上，可实现无信任和无许可访问。 基于以太坊虚拟机或EVM 的区块链</p><ul><li><p>以太坊- 原创 EVM 智能合约平台</p></li><li><p>Polygon - 以太坊侧链</p></li><li><p>Arbitrum - 使用乐观汇总和多轮欺诈证明的第 2 层区块链</p></li><li><p>Optimism - 使用 Optimistic rollups 和单轮欺诈证明的第 2 层区块链</p></li><li><p>Hermez - 由 Polygon 管理的 ZK 汇总以太坊第 2 层网络</p></li><li><p>ZKSync - 使用 SNARK 的 ZK 汇总以太坊第 2 层网络</p></li><li><p>Starknet - 使用 STARK 的 ZK 汇总以太坊第 2 层网络</p></li><li><p>Avalanche - 与 EVM 兼容的第 1 层</p></li><li><p>Cronos - EVM 兼容的第 1 层 非EVM 的区块链</p></li><li><p>Flow - 第 1 层使用 Cadence，Flow 的原生面向资源的编程语言没，主要专注NFT区块链</p></li><li><p>NEAR - 第 1 层使用 Rust 或 Assemblyscript 进行智能合约</p></li><li><p>Solana - 使用 Rust C、C++ 的第 1 层智能合约</p></li><li><p>Terra - 将 Rust 用于智能合约的第 1 层</p></li></ul><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">参考资料</h3><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethereum.org/zh/nft/">https://ethereum.org/zh/nft/</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethereum.org/zh/defi/">https://ethereum.org/zh/defi/</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethereum.org/zh/layer-2/">https://ethereum.org/zh/layer-2/</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethereum.org/zh/web3/">https://ethereum.org/zh/web3/</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://yeasy.gitbook.io/blockchain_guide/">https://yeasy.gitbook.io/blockchain_guide/</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gamefi.org/">https://gamefi.org/</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.web3.university/article/web3-stack">https://www.web3.university/article/web3-stack</a></p></li></ul>]]></content:encoded>
            <author>zhangsl@newsletter.paragraph.com (ZhangSL)</author>
        </item>
        <item>
            <title><![CDATA[基础知识]]></title>
            <link>https://paragraph.com/@zhangsl/F32rgKKsZKkjDVIaT4Ms</link>
            <guid>F32rgKKsZKkjDVIaT4Ms</guid>
            <pubDate>Tue, 27 Sep 2022 03:14:32 GMT</pubDate>
            <description><![CDATA[一些基础的原理NFTNFT NFT 全称Non-Fungible Token，通常译为非同质化代币，是指具有独特唯一性且彼此不可替换属性的数字资产，即每一种NFT都是独特的，它们提供了不同的用途和价值。 NFT 是在区块链上控制的加密代币。NFT 的功能依赖于支撑它的智能合约。 领域方向NFT+加密游戏NFT+收藏品NFT+艺术品NFT+Defi例子基于以太坊合约 以太坊NFT合约常用的标注协议是 ERC 1155 标准 ERC 721 标准。以太坊合约语言Solidity 代币ERC-20(ERC-20中文版) - 同质化代币合约标准，开发token的合约协议ERC-721(ERC-721中文版) - 非同质化代币合约标准，开发NFT的合约协议ERC-777 (ERC-777中文版) - 同质化代币合约改进标准ERC-918 - 可铸造代币标准ERC-165 - 发布和检测智能合约所实现接口的标准ERC-725 - 密钥管理和执行的代理合约，目的是建立基于区块链的身份识别ERC-173 - 合约持有者判定接口标准 链上NFTETH 链上 NFT 数据：etherscan.io/...]]></description>
            <content:encoded><![CDATA[<h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">一些基础的原理</h2><ul><li><p>NFT</p></li></ul><h3 id="h-nft" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">NFT</h3><pre data-type="codeBlock" text="  NFT 全称Non-Fungible Token，通常译为非同质化代币，是指具有独特唯一性且彼此不可替换属性的数字资产，即每一种NFT都是独特的，它们提供了不同的用途和价值。

  NFT 是在区块链上控制的加密代币。NFT 的功能依赖于支撑它的智能合约。
"><code>  NFT 全称Non<span class="hljs-operator">-</span>Fungible Token，通常译为非同质化代币，是指具有独特唯一性且彼此不可替换属性的数字资产，即每一种NFT都是独特的，它们提供了不同的用途和价值。

  NFT 是在区块链上控制的加密代币。NFT 的功能依赖于支撑它的智能合约。
</code></pre><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">领域方向</h3><ul><li><p>NFT+加密游戏</p></li><li><p>NFT+收藏品</p></li><li><p>NFT+艺术品</p></li><li><p>NFT+Defi</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/5159783a760c95293a5b15b88a706cbdb44125a199a92265d33ff89e9e9af3dd.png" alt="例子" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">例子</figcaption></figure><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">基于以太坊合约</h3><pre data-type="codeBlock" text="   以太坊NFT合约常用的标注协议是 ERC 1155 标准 ERC 721 标准。以太坊合约语言Solidity
"><code>   <span class="hljs-string">以太坊NFT合约常用的标注协议是</span> <span class="hljs-string">ERC</span> <span class="hljs-number">1155</span> <span class="hljs-string">标准</span> <span class="hljs-string">ERC</span> <span class="hljs-number">721</span> <span class="hljs-string">标准。以太坊合约语言Solidity</span>
</code></pre><ul><li><p>代币</p></li><li><p>ERC-20(ERC-20中文版) - 同质化代币合约标准，开发token的合约协议</p></li><li><p>ERC-721(ERC-721中文版) - 非同质化代币合约标准，开发NFT的合约协议</p></li><li><p>ERC-777 (ERC-777中文版) - 同质化代币合约改进标准</p></li><li><p>ERC-918 - 可铸造代币标准</p></li><li><p>ERC-165 - 发布和检测智能合约所实现接口的标准</p></li><li><p>ERC-725 - 密钥管理和执行的代理合约，目的是建立基于区块链的身份识别</p></li><li><p>ERC-173 - 合约持有者判定接口标准 链上NFT</p></li><li><p>ETH 链上 NFT 数据：<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://etherscan.io/tokens-nft">etherscan.io/tokens-nft</a></p></li><li><p>BSC 链上 NFT 数据：<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://bscscan.com/tokens-nft">bscscan.com/tokens-nft</a></p></li><li><p>Heco 链上 NFT 数据：<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://hecoinfo.com/tokentxns-nft">hecoinfo.com/tokentxns-nft</a></p></li></ul>]]></content:encoded>
            <author>zhangsl@newsletter.paragraph.com (ZhangSL)</author>
        </item>
        <item>
            <title><![CDATA[ hardhat 框架本地搭建]]></title>
            <link>https://paragraph.com/@zhangsl/hardhat</link>
            <guid>yZh0I0PPAns6E8ctUiCk</guid>
            <pubDate>Tue, 24 May 2022 02:04:04 GMT</pubDate>
            <description><![CDATA[环境搭建nodejswallet （metamask）IDE （vscode）部署//创建空的文件夹，执行 npm init //安装本地hardhat npm install --save-dev hardhat //创建项目 npx hardhat //创建测试虚拟账户 npx hardhat accounts //编译合约 npx hardhat compile //执行合约 npx hardhat run scripts/sample-script.js //启动本地网络 npx hardhat node //TODO Started HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/ //链接到本地网络，后者链接到测试网络 npx hardhat run scripts/sample-script.js --network localhost npx hardhat run scripts/sample-script.js --network Ropsten]]></description>
            <content:encoded><![CDATA[<h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">环境搭建</h2><ul><li><p>nodejs</p></li><li><p>wallet （metamask）</p></li><li><p>IDE （vscode）</p></li></ul><h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">部署</h2><pre data-type="codeBlock" text="//创建空的文件夹，执行
npm init
//安装本地hardhat
npm install --save-dev hardhat
//创建项目
npx hardhat
//创建测试虚拟账户
npx hardhat accounts
//编译合约
npx hardhat compile
//执行合约
npx hardhat run scripts/sample-script.js
//启动本地网络
npx hardhat node
      //TODO Started HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/
//链接到本地网络，后者链接到测试网络
npx hardhat run scripts/sample-script.js --network localhost

npx hardhat run scripts/sample-script.js --network Ropsten
"><code><span class="hljs-comment">//创建空的文件夹，执行</span>
npm init
<span class="hljs-comment">//安装本地hardhat</span>
npm install <span class="hljs-operator">-</span><span class="hljs-operator">-</span>save<span class="hljs-operator">-</span>dev hardhat
<span class="hljs-comment">//创建项目</span>
npx hardhat
<span class="hljs-comment">//创建测试虚拟账户</span>
npx hardhat accounts
<span class="hljs-comment">//编译合约</span>
npx hardhat compile
<span class="hljs-comment">//执行合约</span>
npx hardhat run scripts<span class="hljs-operator">/</span>sample<span class="hljs-operator">-</span>script.js
<span class="hljs-comment">//启动本地网络</span>
npx hardhat node
      <span class="hljs-comment">//TODO Started HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/</span>
<span class="hljs-comment">//链接到本地网络，后者链接到测试网络</span>
npx hardhat run scripts<span class="hljs-operator">/</span>sample<span class="hljs-operator">-</span>script.js <span class="hljs-operator">-</span><span class="hljs-operator">-</span>network localhost

npx hardhat run scripts<span class="hljs-operator">/</span>sample<span class="hljs-operator">-</span>script.js <span class="hljs-operator">-</span><span class="hljs-operator">-</span>network Ropsten
</code></pre>]]></content:encoded>
            <author>zhangsl@newsletter.paragraph.com (ZhangSL)</author>
        </item>
    </channel>
</rss>