Skip to main content

6-9

1 搭建uniswapV2的info

部署subgraph到hosted-service

graph deploy --product hosted-service --access-token 309801ec985740a49bcae7f6ddcdcbb4 --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ ginlink/Ginlink99

2 a16z: 适用于 Web3 开发的简易安全考量框架

[1] a16z: 适用于 Web3 开发的简易安全考量框架.https://www.wu-talk.com/index.php?m=content&c=index&a=show&catid=46&id=4539

3 CSS3 flex 如何让高度不等的同排等高?

调整交叉轴的表现即可:

图片描述

.box {
justify-content: space-between;
align-items: stretch;
}

[1] CSS3 flex 如何让高度不等的同排等高?.https://segmentfault.com/q/1010000009115505

4 媒体查询

媒体查询一共有三个重点:1.媒体类型 2.媒体特性 3.逻辑运算符

interface CSSMediaRule : CSSConditionRule {
readonly attribute MediaList media;
}

[1] 使用媒体查询

5 docker查看日志

docker logs ID --follow

--follow表示持续输出

示例

TODO

[1] docker logs.https://docs.docker.com/engine/reference/commandline/logs/

6 搭建Blocklytics Ethereum Blocks | ConverterRegistryContract

以太坊合约地址:0x0ddff327ddf7fe838e3e63d02001ef23ad1ede8e

[1] Blocklytics Ethereum Blocks.https://thegraph.com/explorer/subgraph?id=drD3RZMJKZyZRvAySx4wCAibs6h2rc6boCX85qmR5cs&view=Overview

[2] https://github.com/blocklytics/ethereum-blocks

7 react的context

TODO

[1] Hook API 索引.https://zh-hans.reactjs.org/docs/hooks-reference.html#usecontext

8 standard-version

运行命令不要用yarn,否则会出错,改用npm即可,例如第一次发布:

npm run release -- --first-release

注意,第一次发布不会增加tag

一些脚本命令:

{
"scripts": {
"release:dry": "standard-version --dry-run",
"release": "standard-version",
"release:prerelease": "npm run release -- --prerelease alpha",
"release:major": "npm run release -- --release-as major",
"release:minor": "npm run release -- --release-as minor",
"release:patch": "npm run release -- --release-as patch"
}
}

一些常用命令

TODO

[1] https://github.com/conventional-changelog/standard-version

9 Invalid EVM version requested & Error: Truffle is currently using solc 0.5.0

场景

remix中无法编译sol文件

解决方案

选错了 EVM version,纠正即可

changing the EVM version from "petersburg" to "byzantium" and the compiler version to "0.5.0" worked for me.

[1] Invalid EVM version requested & Error: Truffle is currently using solc 0.5.0.https://ethereum.stackexchange.com/questions/113056/invalid-evm-version-requested-error-truffle-is-currently-using-solc-0-5-0

10 查询curve池子信息

{
pools(first: 1, orderBy: addedAt, orderDirection: desc) {
id
name
virtualPrice
lpToken{
id
}
addedAt
addedAtBlock
addedAtTransaction
registryAddress
dailyVolumes {
id
pool{
name
}
volume
}
fee
adminFee
# weeklyVolumes {
# id
# volume
# }
# hourlyVolumes {
# id
# volume
# }
}
}

11 git的一些操作

vscode的一些操作,以及对应的git命令:

  • 提交暂存区:git add .
  • 提交:git commit -m "desc"
  • 放弃所有更改:git checkout .
  • 发布分支:git push origin dev
  • 同步分支:git pull

12 列出vscode所有插件名称

code --list-extensions

[1] VsCode插件导出若干讨论.https://cloud.tencent.com/developer/article/1738809

13 软件测试

[1][读Google是如何做软件测试的](https://zhuanlan.zhihu.com/p/43846016)