TypeChain[9] 是一款非常酷的工具,可为智能合约提供完整的类型接口。 可以通过我构建的Typechain插件使用,先安装: $ npm install --save-dev buidler-typechain typechain ts-generator @typechain /ethers-v4 @typechain/truffle-v4 @typechain/web3-v1 Builder配置文件中添加 typechain以配置插件: import { BuidlerConfig "); const config: BuidlerConfig = { solc: { version: "0.6.8" }, typechain: { outDir: "typechain 通过运行命令npx buidler typechain来生成类型文件。 现在在typechain/目录中,您应该看到生成了一些文件,其中最主要的是Counter.d.ts。
v5.8.0[25]: 支持 Kiln v2 , EIP3540 EVM 对象格式化, EIP3670 EOF – 代码验证, EIP3860 限制并计量初始化代码以及改进 Layer 2 的支持 TypeChain /ethereumjs-monorepo/releases/tag/%40ethereumjs%2Fvm%405.8.0 [26] v8: https://github.com/dethcrypto/TypeChain /releases/tag/typechain%408.0.0 [27] v0.2.0: https://twitter.com/hardhathq/status/1507393377490415617
0x01 事件描述 12月23号 03:32 攻击者在NPM官方仓库上传了radar-cms 恶意包(https://www.npmjs.com/package/radar-cms),包代码和主页完全复制TypeChain
/typechain" const base64 = require( "base-64") const _name='BadgeToken' const _symbol='BADGE' describe /typechain" import { TransactionResponse, TransactionReceipt } from "@ethersproject/providers" const /typechain" const _name='BadgeToken' const _symbol='BADGE' describe("NFTMarketplace Fetch functions /typechain" const base64 = require( "base-64") const _name='BadgeToken' const _symbol='BADGE' async /typechain" import { tokenAddress, marketAddress } from ".
[237] - Truffle 框架下,合并 Solidity 的所有依赖项 Decode[238] - npm 软件包,它将 tx 提交到本地 testrpc 节点的解析,使它们更具可读性和易懂性 TypeChain https://github.com/nomiclabs/truffle-flattener [238] Decode: https://github.com/hacker-DOM/decode [239] TypeChain : https://github.com/ethereum-ts/TypeChain [240] EthSum: https://ethsum.netlify.com/ [241] PHP based
truffle-flattener -在Truffle下开发的Concats solidity文件及其所有依赖项 Decode - npm包解析提交给本地testrpc节点的tx,使其更易读,更易于理解 TypeChain