Skip to content
Iuri Matias edited this page Dec 24, 2019 · 19 revisions

Core

  • code-runner
  • console
  • core
  • engine
  • i18n
  • logger
  • reset
  • utils

Stack

  • api
  • authenticator
  • blockchain-client
  • blockchain
  • communication
  • compiler
  • contracts-manager
  • deployment
  • embarkjs
  • library-manager
  • namesystem
  • pipeline
  • process-logs-api-manager
  • proxy
  • storage
  • test-runner
  • watcher
  • webserver

Plugins

  • accounts-manager
  • basic-pipeline
  • coverage
  • debugger
  • deploy-tracker
  • ens
  • ethereum-blockchain-client
  • ganache
  • geth
  • graph
  • ipfs
  • mocha-tests
  • parity
  • plugin-cmd
  • profiler
  • rpc-manager
  • scaffolding
  • snark
  • solc
  • solidity-tests
  • solidity
  • specialconfigs
  • swarm
  • transaction-logger
  • transaction-tracker
  • vyper
  • web3
  • whisper-geth
  • whisper-parity

EmbarkJS

  • embarkjs
  • embarkjs-ens
  • embarkjs-ipfs
  • embarkjs-swarm
  • embarkjs-web3
  • embarkjs-whisper

Cockpit


accounts-manager

module type: plugin

Description

  • generates wallet from accounts configuration
  • fund accounts according to the accounts configuration
  • signs transactions for accounts present in its wallet
    • if it's a node account it just ignores it (since it will be processed at the node)
  • overrides eth_getAccounts to return the correct list of accounts

actions used

  • blockchain:proxy:request - to sign the transactions
  • blockchain:proxy:response - to modify accounts list

proxy

module type: stack

requests

name: proxy:endpoint arguments: no arguments

returns the endpoint (string)

actions

name: blockchain:proxy:request params: {reqData: } description: actions run when a request is made to the blockchain node. In case the plugin hangs (5 seconds), the action continues.

name: blockchain:proxy:response params: {respData: , reqData: } description: actions run when a response is returned from the blockchain node. In case the plugin hangs (5 seconds), the action continues.

api-client

Requests

name: compiler:url description: Returns API URL. params:

  • callback - (url) => {} - a callback function with access to the API url

name: logs:api:enable description: Enables api server log output params: -


name: logs:api:disable description: Disables api server log output params:

blockchain

module type: stack component

API

requests

name: blockchain:node:register arguments:

  • clientName {string} - name of the client (e.g 'geth')
  • startCb {function} - function that starts the node

registers a client and the function that starts it

name: blockchain:node:start arguments:

  • blockchainConfig {object} - blockchain config (taken from dapp config/blockchain.js)
  • doneCb {function} - function that is fired once the blockchain node has started

starts a blockchain name according to the config given. will start one of the nodes previously registered with blockchain:node:register

actions used

  • pipeline:generateAll:before - to generate blockchain.json config artifact

*events emited

  • blockchain:started - emitted when blockchain node starts

blockchain-client

module type: stack component

name: blockchain:client:register (not being used should be removed)

name: blockchain:client:provider arguments:

  • clientName {string} - name of blockchain technology (e.g "ethereum")
  • cb {function(err, provider)} - callback that returns the blockchain provider

Returns a provider object that allows libraries to connect to the embark's blockchain node

communication

module type: stack component

API

requests

name: communication:node:register arguments:

  • clientName {string} - name of the client (e.g 'ipfs')
  • startCb {function} - function that starts the node

registers a node and the function that starts it

name: communication:node:start arguments:

  • communicationConfig {object} - communication config (taken from dapp config/communication.js)
  • doneCb {function} - function that is fired once the blockchain node has started

starts a communication node according to the config given. will start one of the nodes previously registered with communication:node:register

actions used

  • pipeline:generateAll:before - to generate communication.json config artifact

*events emited

  • communication:started - emitted when communication node starts

whisper

module type: plugin

Description

  • whitelists embarkjs & embarkjs-whisper packages in the vm
  • generates whisper artifacts
  • makes whisper work in the console
  • registers api endpoints

actions used

  • pipeline:generateAll:after - to register whisper artifact

events used

  • blockchain:started - to connect embarkjs whisper to node in the console

compiler

module type: ???

API

Requests

name: compiler:contracts:compile description: Compiles Smart Contracts given a list of Smart Contract files and returns the compilation data. params:

  • { contractsFiles: any[], cb: function }module type: ???

API

Requests

name: compiler:contracts:compile description: Compiles Smart Contracts given a list of Smart Contract files and returns the compilation data. params:

  • { contractsFiles: any[], cb: function }
Clone this wiki locally