@layerzerolabs/hardhat-deploy-mnemonic
TypeScript icon, indicating that this package has built-in type declarations

2.3.45-oft-rc.0 • Public • Published

hardhat-workspace

files

  • index.ts: the entry point to this module, can be imported in the hardhat.config.ts, and will change the HardhatContext.
  • utils.ts: utility functions, can be imported individually, and will not change the HardhatContext.

usage

use mnemonics field to overwrite the setting of namedAccounts.

overwrite the mnemonic

const config: HardhatUserConfig = {
    namedAccounts: {
        deployer: 0
    },
    mnemonics: {
        deployer: {
            mnemonic: 'test test test test test test test test test test test junk',
            path: `m/44'/60'/0'/0'/0'`,
        }
    }
}

it will be equivalent to

const config: HardhatUserConfig = {
    namedAccounts: {
        deployer: 'privatekey://0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
    },
}

overwrite with address

const config: HardhatUserConfig = {
    namedAccounts: {
        deployer: 0
    },
    mnemonics: {
        deployer: {
            address: '0x0000000000000000000000000000000000000001',
        }
    }
}

it will be equivalent to

const config: HardhatUserConfig = {
    namedAccounts: {
        deployer: '0x0000000000000000000000000000000000000001'
    },
}

TODO

  • [ ] specialized for networks

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.45-oft-rc.00latest
2.3.35-aptos.00dev
2.0.12-tron-rc.30tron

Version History

VersionDownloads (Last 7 Days)Published
2.3.45-oft-rc.00
2.3.4456
2.3.4355
2.3.422
2.3.412
2.3.400
2.3.390
2.3.380
2.3.370
2.3.360
2.3.350
2.3.35-aptos.00
2.3.340
2.3.330
2.3.320
2.3.310
2.3.300
2.3.290
2.3.280
2.3.270
2.3.260
2.3.250
2.3.240
2.3.230
2.3.220
2.3.210
2.3.200
2.3.190
2.3.180
2.3.170
2.3.160
2.3.150
2.3.140
2.3.130
2.3.120
2.3.110
2.3.100
2.3.90
2.3.80
2.3.70
2.3.60
2.3.50
2.3.40
2.3.30
2.3.20
2.3.10
2.2.60
2.2.50
2.2.40
2.2.30
2.2.20
2.2.10
2.2.00
2.1.270
2.1.260
2.1.250
2.1.240
2.1.230
2.1.220
2.1.210
2.1.200
2.1.191
2.1.180
2.1.170
2.1.160
2.1.150
2.1.140
2.1.130
2.1.120
2.1.110
2.1.100
2.1.90
2.1.80
2.1.70
2.1.60
2.1.50
2.1.40
2.1.30
2.1.20
2.1.10
2.1.00
2.0.250
2.0.240
2.0.230
2.0.23-rc.00
2.0.220
2.0.210
2.0.200
2.0.19-rc.10
2.0.19-00
2.0.19-rc.00
2.0.180
2.0.170
2.0.160
2.0.150
2.0.140
2.0.130
2.0.12-tron-rc.30
2.0.120
2.0.12-tron-rc.20
2.0.110
2.0.10-tron0
2.0.90
2.0.80
2.0.70
2.0.60
2.0.50
2.0.40
2.0.4-rc.00
2.0.30
2.0.20
2.0.10
1.5.780
1.5.770
1.5.760
1.5.750
1.5.74-rc.10
1.5.730
1.5.720
1.5.710
1.5.700
1.5.690
1.5.69-testnet-v20
1.5.680
1.5.670
1.5.660
1.5.650
1.5.640
1.5.630
1.5.61-tron0
1.5.610
1.5.600
1.5.540
1.5.53-rc.10
1.5.47-rc.40
1.5.47-rc.20
1.5.320

Package Sidebar

Install

npm i @layerzerolabs/hardhat-deploy-mnemonic

Weekly Downloads

116

Version

2.3.45-oft-rc.0

License

BUSL-1.1

Unpacked Size

14.1 kB

Total Files

15

Last publish

Collaborators

  • layerzero-bot