P2PSwap contract prototype
P2PSwap contract prototype P2PSwap logic overview P2PSwap 是一个基于以太坊的跨链代币交换合约,允许用户创建一个代币交换合约,存入特定数量的一种代币 A,并在将来某个时间点用另一种代币 B 进行交换。 以下是 P2PSwap 合约从编写、部署到
Contract deploy
Contracts deploy The tutorial links for Deploying your contracts Hardhat Openzeppelin Besu
One-stop with Hardhat
One-stop with Hardhat (Hardhat 操作总结) 简介 Hardhat 是一个以太坊开发环境,专为智能合约开发、部署、测试和调试而设计。它提供了一套工具,使得与以太坊网络的交互变得更加简单高效。 环境准备 安装 Node.js (版本 v18.16.0 以上) 安装 npm
Main Functions of Contract
Main Functions of Contract 1. transfer 函数 token.transfer(recipient, amount) 含义:将指定数量的代币从调用者(msg.sender)转移到接收者(recipient)地址。 定义:此函数通常存在于 ERC20 代币合约中,用于
Hardhat Structure
hardhat structure 在 Hardhat 项目结构中,igintion 目录通常用于存放与智能合约相关的业务逻辑或功能模块。这些模块可以是合约的一部分,也可以是独立的、可复用的代码片段。modules 目录则是用来组织这些模块的,使得项目结构更加清晰,便于管理和维护。 以 Lock.j
Rust study Day2
Rust study Day2 Rust study Day2 1. Owership 1.2 Pre-knowledge 2.1 Owership rules 2.2 Variables scope 1. Owership 1.2 Pre-knowledge
Rust Playground
Rust Playground Rust has an official online playground where you can directly write, compile, and run Rust code through your browser without needing t
Rust Study Day1
Rust Study Day1 Rust Study Day1 1. Hello, world! 1.2. Run Hello, world! 2. Variables, functions and process controls 2.1. Variables 2.2. Functions
Rust Installtion
Rust Installation Open the WSL2 Install rust curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
Some info pops up when installation done.
Web3 Pre-Study
In my intermittent engagement with the realm of Web3 technology, I have come across a plethora of untapped areas ripe for exploration and contribution