truffle

2019-08-15 admin

truffle是什么

什么是truffle,Truffle - Simple development framework for Ethereum

truffle使用教程帮助文档

npm npm Join the chat at https://gitter.im/consensys/truffle


Truffle is a development environment, testing framework and asset pipeline for Ethereum, aiming to make life as an Ethereum developer easier. With Truffle, you get:

  • Built-in smart contract compilation, linking, deployment and binary management.
  • Automated contract testing with Mocha and Chai.
  • Configurable build pipeline with support for custom build processes.
  • Scriptable deployment & migrations framework.
  • Network management for deploying to many public & private networks.
  • Interactive console for direct contract communication.
  • Instant rebuilding of assets during development.
  • External script runner that executes scripts within a Truffle environment.

Install

$ npm install -g truffle

Quick Usage

For a default set of contracts and tests, run the following within an empty project directory:

$ truffle init

From there, you can run truffle compile, truffle migrate and truffle test to compile your contracts, deploy those contracts to the network, and run their associated unit tests.

Truffle comes bundled with a local development blockchain server that launches automatically when you invoke the commands above. If you’d like to configure a more advanced development environment we recommend you install the blockchain server separately by running npm install -g ganache-cli at the command line.

  • ganache-cli: a command-line version of Truffle’s blockchain server.
  • ganache: A GUI for the server that displays your transaction history and chain state.

Documentation

Please see the Official Truffle Documentation for guides, tips, and examples.

Contributing

This package is a distribution package of the Truffle command line tool. Please see truffle-core to contribute to the main core code.

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-72542.html

文章标题:truffle

相关文章
truffle-config
truffle-config是什么 什么是truffle-config,Utility for interacting with truffle-config.js files truffle-config官网:官网 truffle-co...
2019-07-21
truffle-contract-sources
truffle-contract-sources是什么 什么是truffle-contract-sources,Utility for finding all contracts within a directory truffle-co...
2019-07-21
truffle-provider
truffle-provider是什么 什么是truffle-provider,Beefed up provider module for Truffle truffle-provider官网:官网 truffle-provider源码仓...
2019-07-21
truffle-error
truffle-error是什么 什么是truffle-error,Simple module that allows native Error objects to be extended truffle-error官网:官网 truf...
2019-07-21
truffle-provisioner
truffle-provisioner是什么 什么是truffle-provisioner,Provision contract objects for use from multiple sources truffle-provisio...
2019-07-21
truffle-resolver
truffle-resolver是什么 什么是truffle-resolver,Resolve contract dependencies given multiple configurable dependency sources tr...
2019-07-21
truffle-require
truffle-require是什么 什么是truffle-require,Require and execute a Javascript module within a Truffle context truffle-require官...
2019-08-15
truffle-migrate
truffle-migrate是什么 什么是truffle-migrate,On-chain migrations management truffle-migrate官网:官网 truffle-migrate源码仓库:源码仓库 truf...
2019-08-15
truffle-init
truffle-init是什么 什么是truffle-init,Initializer for example Truffle projects truffle-init官网:官网 truffle-init源码仓库:源码仓库 truffl...
2019-08-15
truffle-workflow-compile
truffle-workflow-compile是什么 什么是truffle-workflow-compile,Core workflow behavior for truffle compile command truffle-work...
2019-08-15
回到顶部