Saltar al contenido principal

22 documentos etiquetados con "Solidity"

Ver Todas las Etiquetas

Contratos Inteligentes

A "smart contract" is simply a program that runs on the Conflux Core blockchain. It's a collection of code (its functions) and data (its state) that resides at a specific address on the Conflux Core blockchain. To learn more about smart contracts, see our Introduction to Smart Contracts.

CRC1155 NFT Tutorial

This tutorial will guide you through the steps to create, write, and deploy an ERC1155 NFT smart contract on Conflux CoreSpace using Hardhat. Additionally, it will show you how to view your contract on ConfluxScan. You can find a practical example in the Conflux-NFT-CRC1155 repository.

CRC20 Tokens Cross Space

This tutorial guides developers on transferring any CRC20 token from Core Space to eSpace, The goal is to transfer a CRC20 token (A) issued on coreSpace to become an ERC20 token (eA) in eSpace. Currently, if there is no corresponding token in eSpace, it's not possible to use the official cross-space bridge directly.

CRC721 NFT Tutorial

This tutorial will guide you through the steps to create, write, and deploy an CRC721 NFT smart contract on Conflux CoreSpace using Hardhat. Additionally, it will show you how to view your contract on ConfluxScan.

How to use ECDSA Signature

ECDSA (Elliptic Curve Digital Signature Algorithm) is a widely used digital signature algorithm in blockchain and cryptocurrency. It has the following characteristics:

Merkle Tree Whitelist

Using a Merkle Tree whitelist provides a cost-efficient way to distribute NFTs to a predefined list of addresses. It ensures that only whitelisted addresses can mint the NFTs, enhancing security and efficiency. Writing a whitelist of thousands of addresses directly within a smart contract would result in significant gas costs, and additionally, due to the maximum transaction gas limit restriction, it might be impractical to update such a large whitelist in a single transaction. However, since in the Merkle Tree verification process, leaf nodes and proofs can be stored off-chain while only the root value needs to be stored on-chain, this method significantly saves on gas costs and enables whitelist setup with only one transaction.

Overview

Conflux Core Space is the native space of the Conflux network. Thanks to Conflux's innovative Tree-Graph ledger structure and consensus algorithm, Core Space achieves performance far surpassing that of Bitcoin and Ethereum without sacrificing decentralization. This provides strong support for the development of the Conflux ecosystem.

Remix IDE

Deploying an ERC-20 Token using Remix IDE

Retrieve Price

Learn how to Use Pyth Oracle on Conflux eSpace to Retrieve CFX Price

SDKs

Conflux has SDKs for mainstream programming languages, including JavaScript, Golang, Java and Python. This is just a short introduction to the SDKs, for detailed usage info, check their respective documentation.

thirdweb

Deploying contract using thirdweb

Tools

Conflux has tools that can help developers quickly build a dapp.

VM Differences

The Core Space VM is compatible with the EVM in most cases, but there are some differences. This page lists the differences between the two.

web3.js

This page is meant to guide you through the basics on how to use web3.js when developing on Conflux eSpace.

web3.py

This page is meant to guide you through the basics on how to use web3.py when developing on Conflux eSpace.