Skip to content

Commit d53158d

Browse files
authored
Merge pull request #1044 from yanyanho/main
add some task
2 parents 0dff6a6 + b84afad commit d53158d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1699
-490
lines changed

basic/07-hardhat/hardhat.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function mnemonic() {
1919
* @type import('hardhat/config').HardhatUserConfig
2020
*/
2121
module.exports = {
22-
solidity: '0.8.0',
22+
solidity: '0.8.20',
2323
networks: {
2424
hardhat: {
2525
forking: {

basic/13-decentralized-exchange/EtherDelta/contracts/EtherDelta.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ contract EtherDelta {
471471
tokens[tokenGet][feeAccount],
472472
SafeMath.sub(SafeMath.add(feeMakeXfer, feeTakeXfer), feeRebateXfer)
473473
);
474-
// 对maker买入token收费,
475474
tokens[tokenGive][user] = SafeMath.sub(
476475
tokens[tokenGive][user],
477476
SafeMath.mul(amountGive, amount) / amountGet

basic/17-etherjs-wallet-develop/README-CN.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
中文 / [English](./README.md)
22
# 钱包开发
33

4-
HD 钱包(分层确定性钱包),钱包协议:BIP32、BIP44、BIP39
4+
HD 钱包(分层确定性钱包),钱包协议:BIP32、BIP44、BIP39。
5+
BIP32中提出的为了避免管理一堆私钥的麻烦提出的分层推导方案。
6+
而BIP44是给BIP32的分层增强了路径定义规范,同时增加了对多币种的支持。
7+
BIP39则通过定义助记词让种子的备份更友好。
58
[钱包原理](https://learnblockchain.cn/2018/09/28/hdwallet/)
69

710
## 钱包类型
8-
911
1. 随机数创建
1012
2. 私钥创建
1113
3. 助记词创建
@@ -14,7 +16,6 @@ HD 钱包(分层确定性钱包),钱包协议:BIP32、BIP44、BIP39
1416
5. 脑记忆钱包(etherjs 5 已经移除)
1517

1618
## provider 类型
17-
1819
1. Etherscan Provider:连接 Etherscan API 的 provider,需要 2 个参数,一个是网络名称,一个查询 API 所需的 token(之前的文章 有讲过,查询 Etherscan 的 API 时 apitoken 不是必须的,但如果没有的话会受到每秒 5 次的调用限制)。
1920
2. Json Rpc Provider:连接本地以太坊网点的 Provider。
2021
3. Infura Provider:连接 Infura 网络的 Provider,Infura 是一套以太坊的基础设施服务,同样有以太坊的主网络和测试网络。

basic/23-erc865-and-erc875/contracts/VerifySignature.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.0;
2+
pragma solidity ^0.8.8;
33
pragma experimental ABIEncoderV2;
44

55
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';

0 commit comments

Comments
 (0)