embark/site
Pascal Precht 1612a96678
feat(@embark/specialconfigs): introduce dynamic address support
This commit introduces a new Smart Contract configuration with `address`
being an asynchronous function. This lets users define a function to "lazily"
compute the address of the Smart Contract in question.

This is useful when a third-party takes care of deploying a dependency
Smart Contract, but the address of that Smart Contract only being available
at run-time.

Example:

```
contracts: {
  SimpleStorage: {
    fromIndex: 0,
    args: [100],
  },
  OtherContract: {
    deps: ['SimpleStorage'],
    address: async (deps) => {
      // use `deps.contracts.SimpleStorage` to determine address
      return Promise.resolve(...);
    },
    abiDefinition: ABI
  },
}
```

In the example above, `OtherContract` will be deployed after `SimpleStorage`
because it uses the `deps` property to define Smart Contracts that it depends
on. All dependencies are exposed on the `address` function parameter
similar to deployment hooks.

Closes #1690
2019-07-12 10:55:19 +02:00
..
scripts chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
source feat(@embark/specialconfigs): introduce dynamic address support 2019-07-12 10:55:19 +02:00
themes/embark chore(docs): remove encoded special chars for paginator buttons 2019-06-21 10:51:14 -04:00
.gitignore fix: add missing linkjuice built 2019-05-07 17:42:32 +02:00
CNAME chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
LICENSE chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
README.md chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
_config.yml chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
deploy-site.js chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
gulpfile.js chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
package.json chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
yarn.lock chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00

README.md

Embark Official Website

The website for Embark.

Getting started

Install dependencies:

$ git clone https://github.com/status-im/embark-site.git
$ cd embark-site
$ npm install

Generate:

$ hexo generate

Run server:

$ hexo server