So, I'm looking into using libraries in order to prevent re-deployment/re-use of the same code.
I was hoping that I would be able to specify the address of a library in solidity code, using syntax along the lines of
using SomeDeployedLib at 0x1234;
but this doesn't appear to be a possibility yet. Libraries are instead swapped into the generated bytecode by the linker, initially appearing as a placeholder.
So, in which environments can I easily insert the address of an existing library and avoid deploying it again?
Solc command line allows me to do this with something like
solc --optimize --bin MyContract.sol | solc --link --libraries SomeDeployedLib:<address>
so this is one option, but it isn't eactly the most user-friendly of environments to work with.
The Remix IDE supports libraries, but as far as I can tell appears to offer no option to link libraries via an existing address, and instead deploys copies of them every time with your new contract. Not efficient, and not what I'm after.
Parity has a nice UI, but again no option to specify the address of existing libraries, everything is deployed in one go.
Are there any other options?