Skip to content

Commit

Permalink
feat(@embark/site): add documentation on minimalContractSize
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville committed Aug 1, 2019
1 parent b0cccae commit f9fb302
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions site/source/docs/contracts_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,17 @@ tracking: 'path/to/some/file'

Having the file referenced above under version control ensures that other users of our project don't redeploy the Smart Contracts on different platforms.


### Reducing contract size

To reduce the size of the contract JSON files that are included in the build directory, you can set `minimalContractSize` to `true`. It defaults to `false`.
When set to `true`, Embark will not put te bytecode, gas estimates and other big configurations in the JSON file.

```
minimalContractSize: true
```


## Deployment hooks

Sometimes we want to execute certain logic when Smart Contracts are being deployed or after all of them have been deployed. In other cases, we'd even like to control whether a Smart Contract should be deployed in the first place. For those scenarios, Embark lets us define the deployment hooks `beforeDeploy`, `deployIf`, `onDeploy` and `afterDeploy`.
Expand Down

0 comments on commit f9fb302

Please sign in to comment.