embark/site/source
Pascal Precht 86ee867689 feat(@embark/specialconfigs): introduce dynamic addresses (#1873)
* fix embarkjs generation

fix ens setProvider

fix embarkjs objects

fix generated embarkjs provider

generate contracts

fix embarkjs-ens

* address some of the issues in the code review

* feat(@embark/specialconfigs): introduce dynamic addresses

This commit introduces a new Smart Contract configuration addressHandler
that 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:
```
deploy: {
  SimpleStorage: {
    fromIndex: 0,
    args: [100],
  },
  OtherContract: {
    deps: ['SimpleStorage'],
    address: async (deps) => {
      // use `deps.contracts.SimpleStorage` to determine address
    },
    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 addressHandler function parameter
similar to deployment hooks.

Closes #1690
2019-09-06 15:02:51 -04:00
..
_data chore: localize static sites 2019-06-20 10:49:26 +02:00
_posts site: add redirects to not break the web 2019-08-26 09:44:01 -05:00
assets/images chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
chat chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
community chore: localize static sites 2019-06-20 10:49:26 +02:00
docs feat(@embark/specialconfigs): introduce dynamic addresses (#1873) 2019-09-06 15:02:51 -04:00
news chore: localize static sites 2019-06-20 10:49:26 +02:00
plugins chore: localize static sites 2019-06-20 10:49:26 +02:00
templates chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
tutorials chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
CNAME chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
browserconfig.xml chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
coverage-files.png chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
coverage-report.png chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
embark-logo.svg chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
favicon.ico chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00
index.md chore: localize static sites 2019-06-20 10:49:26 +02:00
robots.txt chore: move embark site into mono repo 2019-04-29 13:00:58 +02:00