Skip to content

Commit

Permalink
Merge pull request #1044 from yanyanho/main
Browse files Browse the repository at this point in the history
add some task
  • Loading branch information
yingjingyang authored Mar 18, 2024
2 parents 0dff6a6 + b84afad commit d53158d
Show file tree
Hide file tree
Showing 56 changed files with 1,699 additions and 490 deletions.
2 changes: 1 addition & 1 deletion basic/07-hardhat/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function mnemonic() {
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: '0.8.0',
solidity: '0.8.20',
networks: {
hardhat: {
forking: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ contract EtherDelta {
tokens[tokenGet][feeAccount],
SafeMath.sub(SafeMath.add(feeMakeXfer, feeTakeXfer), feeRebateXfer)
);
// 对maker买入token收费,
tokens[tokenGive][user] = SafeMath.sub(
tokens[tokenGive][user],
SafeMath.mul(amountGive, amount) / amountGet
Expand Down
7 changes: 4 additions & 3 deletions basic/17-etherjs-wallet-develop/README-CN.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
中文 / [English](./README.md)
# 钱包开发

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

## 钱包类型

1. 随机数创建
2. 私钥创建
3. 助记词创建
Expand All @@ -14,7 +16,6 @@ HD 钱包(分层确定性钱包),钱包协议:BIP32、BIP44、BIP39
5. 脑记忆钱包(etherjs 5 已经移除)

## provider 类型

1. Etherscan Provider:连接 Etherscan API 的 provider,需要 2 个参数,一个是网络名称,一个查询 API 所需的 token(之前的文章 有讲过,查询 Etherscan 的 API 时 apitoken 不是必须的,但如果没有的话会受到每秒 5 次的调用限制)。
2. Json Rpc Provider:连接本地以太坊网点的 Provider。
3. Infura Provider:连接 Infura 网络的 Provider,Infura 是一套以太坊的基础设施服务,同样有以太坊的主网络和测试网络。
Expand Down
2 changes: 1 addition & 1 deletion basic/23-erc865-and-erc875/contracts/VerifySignature.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity ^0.8.8;
pragma experimental ABIEncoderV2;

import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
Expand Down
Loading

0 comments on commit d53158d

Please sign in to comment.