Main Functions of Contract
Main Functions of Contract 1. transfer 函数 token.transfer(recipient, amount) 含义:将指定数量的代币从调用者(msg.sender)转移到接收者(recipient)地址。 定义:此函数通常存在于 ERC20 代币合约中,用于
Tmux 常用操作和快捷键
Tmux 常用操作和快捷键 一、写在前面 我们使用 Linux 的时候,常常需要多个会话操作,这时候有个tmux 工具可以实现在同一个会话中进行多窗口的显示的功能,而且在使用如 xshell 等工具远程链接使用服务器的时候,有时会话会断开,当我们重连 tmux 后,会发现之前的操作还可以保留。某种意
Hardhat Structure
hardhat structure 在 Hardhat 项目结构中,igintion 目录通常用于存放与智能合约相关的业务逻辑或功能模块。这些模块可以是合约的一部分,也可以是独立的、可复用的代码片段。modules 目录则是用来组织这些模块的,使得项目结构更加清晰,便于管理和维护。 以 Lock.j
Build A unigrep software
Build A unigrep software Build A unigrep software Introduction What is unigrep? What is the purpose of this project? Build the project create a new ru
Rust Study Day7
Rust Study Day7 1. Trait Study using trait to limit the variable type fn add<T: std::ops::Add<Output = T>>(a:T, b:T) -> T {
a + b
}
using trait a
Rust Study Day6
Rust Study Day6 Rust Study Day6 - Summary 1. special enum type in Rust 2. Pattern Match Summary I’ve been studying Rust every day, but either due to b
Rust Study Day3
Rust Study Day3 Rust Study Day3 1. borrowing & ownership 2. Dangling References 1. borrowing & ownership The borrowing rule are simple: [1]-Two or mor
Nameing Convertions
Nameing Conventions 基本命名规范在 RFC 430 中定义。 对于 type-level 的构造,Rust 通常使用驼峰命名法,如:UpperCamelCase。 对于 value-level 的构造,Rust 通常使用蛇形命名法,如:snake_case。 Nameing Co
Symbol names
Symbol names in Programming language In programming and typography, symbols have various names. Here are some common symbols and their names: Ampersan
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