gemstation / gemforge

Command-line tool for building, deploying and upgrading Diamond Standard contracts on EVM chains.
https://gemforge.xyz
MIT License
17 stars 4 forks source link

feat: Add support for wallet configuration via private key #30

Closed amarinkovic closed 11 months ago

amarinkovic commented 11 months ago

Enables the wallet configuration to be done by only providing the private key.

Issue: #29

Here is how an example configuration in the gemforge.config.cjs would look like:

  // Wallets to use for deployment
  wallets: {
    ...
    walletPK: {
      type: "private-key",
      config: {
        key: process.env.PRIVATE_KEY_ACC20,
      },
    },
  },
hiddentao commented 11 months ago

Very nice. I will add a test for it.

amarinkovic commented 11 months ago

Special thanks to @mdumic for helping me out with TypeScript stuff.