Services Dexanode
  • Mapping Networks
    • Mapping Networks
  • Mainnet
    • Planq Network
      • Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Lambda Network
      • Installation
    • Ununifi
      • Installation
      • Manual Installation
    • Lambda Network
  • Testnet
    • CreditCoin (Polkadot)
    • BEVM Incentiviced Testnet Full Node
      • Binaries
      • Docker
    • Dymension Froopyland
      • Create Pull Request
      • Deploy NFT & Smart Contract
    • Noria
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Artela
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Empower
      • Installation
      • Manual Installation
      • Upgrade
      • Snapshot
      • Statesync
      • CLI Cheat Sheet
    • Cross Finance
      • Installation
      • Upgrade
      • Snapshot
      • Statesync
      • Tool and Services
    • Eclipse Testnet
      • Eclipse Testnet Bridge Quest
    • Polymer
      • Polymer With Docker
      • Polymer Challenge 4
      • Polymer Challenge 4 Gitpod
    • Risc Zero Contributed Phase 1
  • Page 2
  • Tooling Service
    • Create Custom Endpoint Cosmos
    • Create custom endpoint Initia Node
    • Create Snapshoot
  • Page
Powered by GitBook
On this page
  1. Testnet
  2. Dymension Froopyland

Deploy NFT & Smart Contract

PreviousCreate Pull RequestNextNoria

Last updated 1 year ago

Dymension is a home for easily deployable and lightning fast app-chains, called RollApps.

| | |

Sebelum Build smart contract pastikan address yang di pakai address yang di import rollapp ya

⌘ Build Smart Contract

  • Bikin file baru kasih nama NFT.sol

Copy file dibawah ke dalam NFT.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.19;

import "https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol";

contract NFT is ERC721 {
    uint256 public currentTokenId;

    constructor(
        string memory _name,
        string memory _symbol
    ) ERC721(_name, _symbol) {}

    function mintTo(address recipient) public payable returns (uint256) {
        uint256 newItemId = ++currentTokenId;
        _safeMint(recipient, newItemId);
        return newItemId;
    }

    function tokenURI(uint256 id) public view virtual override returns (string memory) {
        return Strings.toString(id);
    }
}

⌘ Compile the smart contract

  • Setelah paste syntax ke NFT.sol

  • Pilih compiler 0.8.19+commit.7dd6d404

  • Click Compile NFT.sol sampai button yang sebelah kiri berwarna hijau

  • Arahkan wallet ke Injected Provider - Metamask

  • Lihat di button Deploy ada panah kebawah terus click

  • Isi name menggunakan denom dan symbol

  • click transact dan approve tx

  • done

  • Click tandah panah lagi ke atas yang di deploy

  • Click Deploy dan approve tx

  • done

  • Scorll kebawah pada bagian Deployed Contracts

  • isi address kalian di mintTo

  • kalau udah click button minTo dan approve tx

  • done

DONE

Go to

Thanks for cumulo pro :

https://remix.ethereum.org/
https://medium.com/cumulo-pro/roller-guided-installation-step-by-step-dbc39e457dd6#fd89
Offical Docs
Discord
Twitter
Website
Page cover image