跳到主要内容

33 篇文档带有标签「智能合约」

查看所有标签

Brownie

学习如何使用 Brownie 部署 ERC-20 代币。

CRC1155 NFT 教程

本教程将指导您逐步完成在Conflux CoreSpace上使用Hardhat创建、编写和部署ERC1155 NFT智能合约的过程。 此外还将向您展示如何在ConfluxScan上查看您的合约。 您可以在Conflux-NFT-CRC1155 仓库中找到一个实际的例子。

CRC20 代币跨空间(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 教程

本教程将指导您如何使用Hardhat在 Conflux CoreSpace 上创建、编写和部署一个 CRC721 NFT 智能合约 此外,它还将向您展示如何在ConfluxScan上查看您的合约。

Gnosis Safe Wallet

Gnosis Safe Wallet 是区块链领域著名的多重签名钱包服务,提供安全的资金管理解决方案。 它在以太坊和 EVM(以太坊虚拟机)兼容的区块链生态系统中特别受欢迎。 Gnosis Safe 的全部源代码,包括其智能合约、前端和后端代码,都是开源的,确保了透明性与社区信任度。 Gnosis Safe 致力于创新,它引入了像账户抽象化这样的功能,进一步增强了用户体验并提高了安全性。

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:

Retrieve Price

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

SDKs

Conflux 拥有主流编程语言的SDK,包括JavaScript, Golang, Java 和 Python。 这只是SDK的简要介绍,详细的使用信息请查阅各自的文档。

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.

代付机制

Conflux Core 空间实现了代付机制,来补贴智能合约的使用。 这允许余额为零的新账户调用智能合约,前提是执行操作得到代付(通常由Dapp运营者提供)。 这个机制旨在降低新用户的入门门槛。

创建子图

Subgraph是一种从区块链中提取数据,处理数据并存储数据的技术,可以通过GraphQL进行查询。

堆栈简介

像任何软件堆栈一样,完整的"Conflux核心堆栈"将根据你的目标因项目而异。

智能合约

智能合约可以理解为一个运行在Conflux Core 链上的程序。 它是位于 Conflux Core 链上的一个特定地址的一系列代码(函数)和数据(状态)的集合。 想要进一步了解智能合约,请参考我们的智能合约介绍。

概览

Conflux Core Space 是 Conflux 网络的原生空间。 得益于 Conflux 创新的树图账本结构以及共识算法,Core Space 在不牺牲去中心化的前提下拥有远超比特币和以太坊的性能。 这为 Conflux 生态系统的发展提供了有力支持。

概览

This page is meant to provide a quick overview of the different SDKs you can use when developing on Conflux eSpace.

虚拟机的差异

Core Space 的虚拟机在大多数情况下与 EVM 兼容,但存在一些差异。 本页列出了两者之间的差异。

预言机

预言机为链下数据源提供了一个桥梁,使其能够在区块链内被访问,对于智能合约来说是必不可少的。

默克尔树白名单

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.