TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

TypeChain: TypeScript Bindings for Ethereum Smart Contracts

95 点作者 bobbrown超过 7 年前

4 条评论

buybackoff超过 7 年前
We wrote a library with the same code generation purpose almost on the same day (1st commit). I just found myself typing the same TS code using truffle-contract lib over ERC20 methods. Using it in production and will release v.1. as soon as web3 is v.1. (a blog post was due on v.1 date :) ) We also have a number of strongly typed helper methods included such as ethereum-utils, keythereum and fast signing for state channels implementation (implemented in a sibling repo). The concept of TypeScript code generation is very valid, saves a lot of time during rapid prototyping and contracts become self-documenting, with IDE errors after signatures change. Generated contracts are isomorphic and work well from Node.js and a browser while being simply packed with NPM. <a href="https:&#x2F;&#x2F;github.com&#x2F;dbrainio&#x2F;Soltsice" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dbrainio&#x2F;Soltsice</a>
评论 #15908632 未加载
ChrisRus超过 7 年前
I wrote ARCcore.filter to solve many of the issues discussed. And, because it works at the JavaScript function level to normalize&#x2F;validate function I&#x2F;O it works well with _everything_ to solve the runtime data problem. And, it opens up a new world of type-based runtime metatemplate programming to JavaScript developers. <a href="https:&#x2F;&#x2F;encapsule.io&#x2F;docs&#x2F;ARCcore&#x2F;filter" rel="nofollow">https:&#x2F;&#x2F;encapsule.io&#x2F;docs&#x2F;ARCcore&#x2F;filter</a>
eximius超过 7 年前
Something is not clear to me: can I use this in any way to generate EVM bytecode to deploy a contract? Or is this solely for use after deployment using the ABI generated by solc, etc?<p>I think it is the latter, but I was really hoping for the former. I welcome any improvement over solidity.
评论 #15906846 未加载
评论 #15908646 未加载
azr79超过 7 年前
TypeScript is the present and the future of web, not web assembly