embark/dapps/tests/app/config
Pascal Precht a4a0e9dc33 feat(plugins/specialconfigs): adds support for Smart Contract args as functions
This commit introduces a new feature that enables users to calculate Smart Contract
constructor arguments lazily using an (async) function. Similar to normal Smart Contract
configurations, the return or resolved value from that function has to be either a list
of arguments in the order as they are needed for the constructor, or as an object with
named members that match the arguments individually.

```
...
development: {
  deploy: {
    SimpleStorage: {
      args: async ({ contracts, web3, logger}) => {
        // do something with `contracts` and `web3` to determine
        // arguments
        let someValue = await ...;
        return [someValue];

        // or
        return {
          initialValue: someValue
        };
      }
    }
  }
}
...
```

Closes #2270
2020-03-03 10:14:58 +01:00
..
privatenet build: make DApp templates member packages of the monorepo 2019-03-05 10:20:57 -06:00
rinkeby build: make DApp templates member packages of the monorepo 2019-03-05 10:20:57 -06:00
ropsten build: make DApp templates member packages of the monorepo 2019-03-05 10:20:57 -06:00
blockchain.js feat(@embark/blockchain): make GanacheCLI the default dev blockchain 2020-02-14 09:14:45 -05:00
communication.json Fix/whisper communication (#1895) 2019-09-11 14:21:53 -04:00
contracts.js feat(plugins/specialconfigs): adds support for Smart Contract args as functions 2020-03-03 10:14:58 +01:00
namesystem.js refactor: initial steps toward 5.0.0-alpha.0 (#1856) 2019-08-30 16:50:20 -04:00
storage.json refactor: initial steps toward 5.0.0-alpha.0 (#1856) 2019-08-30 16:50:20 -04:00
webserver.json build: make DApp templates member packages of the monorepo 2019-03-05 10:20:57 -06:00