deploy(contract, [libraries], [params])
function.contract
- descriptor object for contract to be deployed. Morelibraries
- key-value object containing all libraries which willparams
- the constructor params you'd need to pass on deploy (ifcontractName
- the name of the contractabi
- the abi interface of the contractbytecode
- the compiled bytecode{}
, undefined
, null
, false
or 0
can be passed. For convenience we have made the deploy function to work even without this parameter passed.deploy
method, but in addition automatically verifies the deployed smart contract using Etherscan/Blockscout APIs.deployAndVerify
method of the deployer for Etherscan platform, an API Key is required. You can create your Etherscan API Key here.platform
- point the platform you want to verify your contract. Choices: etherscan
, blockscout
contract
- descriptor object for contract to be deployed. Morelibraries
- key-value object containing all libraries which willparams
- the constructor params you'd need to pass on deploy (ifdefaultOverrides
object.defaultOverrides
object:setVerifierApiKey
setter:etherlime deploy
command with optional parametermainnet
ropsten
rinkeby
kovan
goerli
contract
- descriptor object for contract to be deployedlibraries
- key-value object containing all libraries which willparams
- the constructor params you'd need to pass on deploy (ifprivateKey
- The private key to the deployment wallet/signernetwork
- network as found in ethers.providers.networks
apiKey
- your Infura API keydefaultOverrides
- [Optional] object overriding the deploymentgasPrice
, gasLimit
and chainId
.
provider . setPrivateKey (privateKey)
privateKey
- The private key to the deployment wallet/signerinstance provider . setNetwork (network)
network
- network as found inethers.providers.networks
provider . setApiKey (apiKey)
apiKey
- your Infura API key provider . setDefaultOverrides (defaultOverrides)
defaultOverrides
- object overriding the deployment settingsforgasPrice
,gasLimit
andchainId
. provider . setSigner (signer)
signer
- ethers.Wallet instance provider . setProvider (provider)
provider
- ethers.provider instance
privateKey
- The private key to the deployment wallet/signernodeUrl
- the url to the node you are trying to connect (local ornodeUrl
may also be specified as an object with properties:defaultOverrides
- [Optional] object overriding the deploymentgasPrice
, gasLimit
and chainId
.
provider . setPrivateKey (privateKey)
privateKey
- The private key to the deployment wallet/signerinstance provider . setNodeUrl (nodeUrl)
nodeUrl
- the url to the node you are trying to connect(local or remote) provider . setDefaultOverrides (defaultOverrides)
defaultOverrides
- object overriding the deployment settingsforgasPrice
,gasLimit
andchainId
. provider . setSigner (signer)
signer
- ethers.Wallet instance provider . setProvider (provider)
provider
- ethers.provider instance
privateKey
- [Optional] The private key to the deploymentport
- [Optional] the port you've ran the etherlime ganache on.defaultOverrides
- [Optional] object overriding the deploymentgasPrice
, gasLimit
and chainId
.
provider . setPrivateKey (privateKey)
privateKey
- The private key to the deployment wallet/signerinstance provider . setPort (port)
port
- the port you've ran the etherlime ganache on. provider . setDefaultOverrides (defaultOverrides)
defaultOverrides
- object overriding the deployment settingsforgasPrice
,gasLimit
andchainId
. provider . setNodeUrl (nodeUrl)
nodeUrl
- the url to the node you are trying to connect(local or remote) provider . setSigner (signer)
signer
- ethers.Wallet instance provider . setProvider (provider)
provider
- ethers.provider instance
etherlime-zos-deployer
as a dependency in your project with npm install
.privateKey
- The private key to the deployment wallet/signer instancenodeUrl
- the url to the node you are trying to connect (local or remote)defaultOverrides
- [Optional] object overriding the deployment settings for gasPrice
, gasLimit
and chainId
.
provider.setPrivateKey(privateKey)
privateKey
- The private key to the deployment wallet/signer instance provider.setNodeUrl(nodeUrl)
nodeUrl
- the url to the node you are trying to connect (local or remote) provider.setDefaultOverrides(defaultOverrides)
defaultOverrides
- object overriding the deployment settings forgasPrice
,gasLimit
andchainId
. provider.setSigner(signer)
signer
- ethers.Wallet instance provider.setProvider(provider)
provider
- ethers.provider instance