diff --git a/docs/contract_metadata.md b/docs/contract_metadata.md index 763c5deee1..4806e30cd3 100644 --- a/docs/contract_metadata.md +++ b/docs/contract_metadata.md @@ -14,13 +14,56 @@ Values are addresses of libraries used for linking the contract. `autoDeployLib` defines if the libraries should be auto deployed by Remix or if the contract should be linked with libraries described in `linkReferences` +Note that Remix will resolve addresses corresponding to the current network. +By default, a configuration key follow the form: `:`, but it is also possible +to define `` or `` as keys. + ``` { - "linkReferences": { - "browser/Untitled.sol": { - "lib": "0x8c1ed7e19abaa9f23c476da86dc1577f1ef401f5" - } + "VM:-": { + "linkReferences": { + "browser/Untitled.sol": { + "lib": "
", + "lib2": "
" + } + }, + "autoDeployLib": true + }, + "main:1": { + "linkReferences": { + "browser/Untitled.sol": { + "lib": "
", + "lib2": "
" + } + }, + "autoDeployLib": true + }, + "ropsten:3": { + "linkReferences": { + "browser/Untitled.sol": { + "lib": "
", + "lib2": "
" + } + }, + "autoDeployLib": true + }, + "rinkeby:4": { + "linkReferences": { + "browser/Untitled.sol": { + "lib": "
", + "lib2": "
" + } + }, + "autoDeployLib": true }, - "autoDeployLib": false + "kovan:42": { + "linkReferences": { + "browser/Untitled.sol": { + "lib": "
", + "lib2": "
" + } + }, + "autoDeployLib": true + } } ```