embark/packages/core/utils/src
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
..
solidity build: implement collective typecheck 2019-12-13 13:59:47 -05:00
accountParser.js chore: update site urls 2020-01-28 12:07:17 -05:00
addressUtils.ts refactor(@embark/core): move Engine into embark-core 2019-11-11 17:00:01 +01:00
check.js feat(@embark/nethermind): add Nethermind blockchain client plugin 2020-01-16 10:15:18 -05:00
collections.ts refactor(@embark/core): move Engine into embark-core 2019-11-11 17:00:01 +01:00
constants.ts move embarkjs packages & remove embark- prefix from some folders (#1879) 2019-09-06 18:26:08 -04:00
env.js build(deps): move deps needed by embark-basic-pipeline from packages/embark 2019-10-25 11:13:49 -05:00
file.ts fix(@embark/blockchain-api): add back contract event listen and log 2020-02-07 14:24:03 -05:00
host.ts refactor(@embark/core): move Engine into embark-core 2019-11-11 17:00:01 +01:00
index.ts feat(plugins/specialconfigs): adds support for Smart Contract args as functions 2020-03-03 10:14:58 +01:00
log-utils.js move embarkjs packages & remove embark- prefix from some folders (#1879) 2019-09-06 18:26:08 -04:00
logHandler.js refactor(@embark/core): move Engine into embark-core 2019-11-11 17:00:01 +01:00
longRunningProcessTimer.ts refactor(@embark/core): move Engine into embark-core 2019-11-11 17:00:01 +01:00
monorepo.js fix: ensure that packages properly specify their dependencies 2020-02-25 14:52:10 -06:00
network.ts fix(@embark/proxy): fix conflict for WS port in the proxy 2019-12-11 11:05:12 -05:00
pathUtils.js move embarkjs packages & remove embark- prefix from some folders (#1879) 2019-09-06 18:26:08 -04:00
serialize.ts fix(@embark/contracts-manager): Remove `logger` from serialized contract 2020-02-06 12:37:29 -05:00
toposort.js move embarkjs packages & remove embark- prefix from some folders (#1879) 2019-09-06 18:26:08 -04:00
web3Utils.ts move embarkjs packages & remove embark- prefix from some folders (#1879) 2019-09-06 18:26:08 -04:00