UNPKG

@openzeppelin/hardhat-upgrades

Version:

[![Docs](https://img.shields.io/badge/docs-%F0%9F%93%84-blue)](https://docs.openzeppelin.com/upgrades-plugins/hardhat-upgrades) [![NPM Package](https://img.shields.io/npm/v/@openzeppelin/hardhat-upgrades.svg)](https://www.npmjs.org/package/@openzeppelin/h

13 lines • 696 B
import { deployBeaconImpl } from './deploy-impl.js'; import { getInitialOwner } from './initial-owner.js'; import { getUpgradeableBeaconContractInfo } from './artifacts.js'; /** * Client-neutral orchestration of `deployBeacon`: deploys (or reuses) the implementation and * deploys an `UpgradeableBeacon` for it. Returns the beacon deployment record. */ export async function deployBeacon(binding, implInfo, opts) { const { impl } = await deployBeaconImpl(binding, implInfo, opts, undefined); const initialOwner = await getInitialOwner(binding, opts); return await binding.deploy(getUpgradeableBeaconContractInfo(), [impl, initialOwner]); } //# sourceMappingURL=deploy-beacon.js.map