# Scroll空投

By [maoming.eth](https://paragraph.com/@maoming) · 2023-06-19

---

1\. 领水
------

钱包添加测试网 进入官网：[https://scroll.io/portal](https://t.co/eAAg4YZ82D) 点击“Connect Wallet”，添加Goerli Testnet（如图） 点击“Connect Wallet”，添加Scroll Alpha Testnet（如图）

为了完成交互，Goerli Testnet必须要有测试的以太币。两种方式获得👇

1⃣ 付费方式：[https://testnetbridge.com](https://testnetbridge.com)

*   可直接用Arbitrum/Optimism上的ETH购买测试币
    

2⃣ 免费方式：[https://goerlifaucet.com](https://goerlifaucet.com)

*   可每天少量领取0.02测试币
    

2\. 跨桥
------

跨链测试币 进入官方跨链桥：[https://scroll.io/bridge](https://t.co/Ye6Pp0hc4Q) 把ETH测试币，从Goerli Testnet跨到Scroll Alpha Testnet

3\. dapp交互
----------

1.  交互Uniswap（1） 进入官网：[uniswap-v3.scroll.io](https://uniswap-v3.scroll.io) 连接钱包 在“兑换”界面，将0.001ETH兑换为USDC
    
    在“流动性池”界面，点击“新仓位” 选择“ETH”及“USDC” 其余设定可随意，或跟随下图 点击“批准USDC”/“预览”，钱包确认 完成
    
2.  交互Aave（1） 进入官网：[https://app.aave.com](https://t.co/Xy1W8qMp3O) 连接钱包 点击右上角的设定，打开“Testnet mode”选项
    

如图点击两个框框，选择Scroll Alpha Testnet的公链 点击Supply，质押ETH 点击Borrow，借贷DAI 完成

4.合约交互
------

部署NFT合约（1）

1.  进入Openzeppelin官网：[https://docs.openzeppelin.com/contracts/4.x/wizard](https://docs.openzeppelin.com/contracts/4.x/wizard)
    
2.  如图设置，选择“ERC721”/“Mintable”
    
3.  点击“Open in Remix”
    
    [https://remix.ethereum.org/](https://remix.ethereum.org/)
    

    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.9;
    
    import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
    import "@openzeppelin/contracts/access/Ownable.sol";
    import "@openzeppelin/contracts/utils/Counters.sol";
    
    contract MyToken is ERC721, Ownable {
        using Counters for Counters.Counter;
    
        Counters.Counter private _tokenIdCounter;
    
        constructor() ERC721("MyToken", "MTK") {}
    
        function safeMint(address to) public onlyOwner {
            uint256 tokenId = _tokenIdCounter.current();
            _tokenIdCounter.increment();
            _safeMint(to, tokenId);
        }
    }
    

编译 部署NFT合约

点击“SafeMint”

在“to”的栏目中，输入自己的钱包地址

在“tokenId”中，输入“20”

点击“transact”

钱包点击确认就完成了

---

*Originally published on [maoming.eth](https://paragraph.com/@maoming/scroll)*
