Skip to content

gnosis/singleton-deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Singleton deployer

Usage with truffle migrations

Install with yarn:

yarn add @gnosis.pm/singleton-deployer-truffle

Example migration

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.

Security and Liability

All contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

License

All smart contracts are released under MIT.

Contributors

About

Utils to use singleton factories to deploy a contract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published