yarn add @gnosis.pm/singleton-deployer-truffle
const { deployTruffleContract } = require('@gnosis.pm/singleton-deployer-truffle');
const UserContract = artifacts.require("UserContract");
module.exports = function(deployer) {
deployer.then(async () => {
await deployTruffleContract(web3, UserContract, contructorArg1, contructorArg2);
})
};
See tests in example package for more details.
All contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
All smart contracts are released under MIT.
- Richard Meissner (rmeissner)