Framework for serverless Decentralized Applications using Ethereum, IPFS and other platforms https://framework.embarklabs.io/
Go to file
Pascal Precht 90aac8343e feat(@embark/plugins): introduce API to register a contract factory
This commit introduces two new plugin APIs `registerTestContractFactory()` and
`registerCustomContractGenerator()`, which can be used to register a factory function
for the creation of web3 contract instances within tests, and custom code generation
  for `embark console` respectively.

Example:

```
// some.plugin.js

module.exports = function (embark) {
  embark.registerTestContractFactory(function (contractRecipe, web3) {
    // do something with web3 and contractRecipe and return contract instance here
  });
};
```

**Notice that**:

- This factory function is used for contract instance creation within tests.
  A `contractRecipe` and a `web3` instance is accessible within the factory.

Example:

```
// some.plugin.js

module.exports = function (embark) {
  embark.registerCustomContractGenerator(function (contractRecipe) {
    // returns code string that will be eval'ed
  });
};
```

**Notice that**:

- Once registered, this generator will be used for **all** contract instances
  that will be created for `embark console`, including built-in once like
  ENSRegistry.

- While this does affect contract creation in client-side code, it doesn't
  actually affect the instances created for deployment hooks **if** deployment
  hooks are written as functions.

Closes #1066

Always use custom generator and fallback to vanilla
2018-12-05 12:33:31 +01:00
.github chore: introduce issue and pull request templates 2018-11-07 17:31:17 +01:00
bin build(packaging): reorg sources for transpilation with Babel 2018-11-11 15:08:55 -06:00
embark-ui build: introduce a `prepare` script in embark's package.json 2018-12-03 16:24:10 -06:00
locales Add Slovenian translation 2018-11-21 15:53:37 -05:00
scripts build: introduce a `prepare` script in embark's package.json 2018-12-03 16:24:10 -06:00
src feat(@embark/plugins): introduce API to register a contract factory 2018-12-05 12:33:31 +01:00
templates feat: update to solc 0.5.0 2018-11-21 08:50:43 +00:00
test_apps refactor(test): make embarkJS importable in tests 2018-11-30 15:45:19 -05:00
.editorconfig Add editor config 2018-10-22 19:25:16 +02:00
.eslintrc.json refactor(@embark/console): convert suggestions class into typescript 2018-11-15 13:51:05 -05:00
.gitignore build: use yarn for reproducible builds and CI 2018-11-20 09:25:42 -06:00
.npmignore build: introduce a `prepare` script in embark's package.json 2018-12-03 16:24:10 -06:00
.npmrc build: introduce a `prepare` script in embark's package.json 2018-12-03 16:24:10 -06:00
.travis.yml build: introduce a `prepare` script in embark's package.json 2018-12-03 16:24:10 -06:00
.yarnrc build: introduce a `prepare` script in embark's package.json 2018-12-03 16:24:10 -06:00
CODE_OF_CONDUCT.md docs: fix typo in filename 2018-11-11 15:09:11 -06:00
CONTRIBUTING.md docs: align with angular/conventional commit config 2018-11-15 12:12:43 +01:00
LICENSE add license 2015-07-10 20:41:45 -04:00
README.md update badges to use master instead of develop 2018-11-09 04:18:55 -05:00
appveyor.yml build: introduce a `prepare` script in embark's package.json 2018-12-03 16:24:10 -06:00
babel.config.js build(packaging): reorg sources for transpilation with Babel 2018-11-11 15:08:55 -06:00
header.png Update header 2018-09-27 10:23:03 -04:00
package.json build: introduce a `prepare` script in embark's package.json 2018-12-03 16:24:10 -06:00
tsconfig.json feat(scaffold): allow association/file 2018-12-03 09:38:22 +00:00
tslint.json refactor(core): convert i18n to TS 2018-11-18 12:30:36 -05:00
yarn.lock feat(scaffold): allow association/file 2018-12-03 09:38:22 +00:00

README.md

Embark

npm Gitter Build Status Build status Open PRs Closed PRs GitHub commit activity the past week, 4 weeks, year

What is Embark

Embark is a framework that allows you to easily develop and deploy Decentralized Applications (DApps).

A Decentralized Application is a serverless html5 application that uses one or more decentralized technologies.

Embark currently integrates with EVM blockchains (Ethereum), Decentralized Storages (IPFS), and Decentralized communication platforms (Whisper and Orbit). Swarm is supported for deployment.

With Embark you can:

Blockchain (Ethereum)

  • Automatically deploy contracts and make them available in your JS code. Embark watches for changes, and if you update a contract, Embark will automatically redeploy the contracts (if needed) and the dapp.
  • Contracts are available in JS with Promises.
  • Do Test Driven Development with Contracts using Javascript.
  • Keep track of deployed contracts; deploy only when truly needed.
  • Manage different chains (e.g testnet, private net, livenet)
  • Easily manage complex systems of interdependent contracts.

Decentralized Storage (IPFS, Swarm)

  • Easily Store & Retrieve Data on the DApp through EmbarkJS. Including uploading and retrieving files.
  • Deploy the full application to IPFS or Swarm.
  • Import and deploy contracts hosted on Swarm.

Decentralized Communication (Whisper, Orbit)

  • Easily send/receive messages through channels in P2P through Whisper or Orbit.

Web Technologies

  • Integrate with any web technology including React, Foundation, etc..
  • Use any build pipeline or tool you wish, including grunt, gulp and webpack.
$ npm -g install embark

See Complete Documentation.