1.3.3 • Published 2 years ago

@leofcoin/project-deploy v1.3.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

#project-deploy

install

cli usage

npm i -g @leofcoin/project-deploy

module usage

npm i --save @leofcoin/project-deploy

examples

config

project-deploy.config.json

{
  "deploy": {
    "contracts/TestContract.sol": ["0x4eCfe05bAe2535f13a92A16E60Be1b68BdEDEDb7"]
  },
  "autoFix": true,
  "license": "MIT",
  "networks": {
    "binance-smartchain-testnet": {
      "rpcUrl": "https://data-seed-prebsc-1-s1.binance.org:8545",
      "chainId": 97
    },
    "binance-smartchain": {
      "rpcUrl": "https://bsc-dataseed.binance.org",
      "chainId": 56
    },
    "goerli": {
      "rpcUrl": "https://goerli.prylabs.net",
      "chainId": "5"
    }
  }
}

solc

When using another solc verion then the package uses, install the desired version yourself with

npm i solc@0.8.10

.env

binance-smartchain-testnet_PRIVATE_KEY="...."
goerli_PRIVATE_KEY="...."

secure-securenv

npx secure-env .env -s mySecretPassword

using config file in project folder and cli (with secure-env)

Checkout secure-env to learn more

project-deploy --network goerli --secret mySecretPassword

using config file in project folder and cli (without secure-env)

Fallsback to dotenv

project-deploy --network goerli

using config file in project and module deployment for more advanced setups

import deploy from 'project-deploy.js';

const testContract = await deploy('contracts/TestContract.sol', ["0x4eCfe05bAe2535f13a92A16E60Be1b68BdEDEDb7"], 'goerli', 'mySecretPassword')

const anotherContract = await deploy('contracts/AnotherContract.sol', [testContract.address], 'goerli', 'mySecretPassword')
1.2.0

2 years ago

1.1.0

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.3.3

2 years ago

1.2.4

2 years ago

1.3.2

2 years ago

1.2.3

2 years ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.0.0

2 years ago