embark/packages/plugins/specialconfigs
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
..
src feat(plugins/specialconfigs): adds support for Smart Contract args as functions 2020-03-03 10:14:58 +01:00
test chore(plugins/specialconfigs): update dependencies and add missing tests 2020-02-26 16:42:10 -05:00
CHANGELOG.md chore(prerelease): 5.3.0-nightly.2 2020-03-03 00:14:47 +00:00
README.md chore: update site urls 2020-01-28 12:07:17 -05:00
index.js fix: ensure that packages properly specify their dependencies 2020-02-25 14:52:10 -06:00
package.json chore(prerelease): 5.3.0-nightly.2 2020-03-03 00:14:47 +00:00
tsconfig.json chore(plugins/specialconfigs): update dependencies and add missing tests 2020-02-26 16:42:10 -05:00

README.md

embark-specialconfigs

Adds various configs to embark's contract.js config file

Visit framework.embarklabs.io to get started with Embark.