-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #642 from livepeer/add_ai_service_registery
feat(ai): introduce AIServiceRegistry contract
- Loading branch information
Showing
3 changed files
with
789 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import {HardhatRuntimeEnvironment} from "hardhat/types" | ||
import {DeployFunction} from "hardhat-deploy/types" | ||
|
||
const func: DeployFunction = async function(hre: HardhatRuntimeEnvironment) { | ||
const {deployments, getNamedAccounts} = hre | ||
const {deploy} = deployments | ||
|
||
const {deployer} = await getNamedAccounts() | ||
|
||
const controllerDeployment = await deployments.get("Controller") | ||
|
||
const deployResult = await deploy("ServiceRegistry", { | ||
from: deployer, | ||
args: [controllerDeployment.address], | ||
log: true | ||
}) | ||
await deployments.save("AIServiceRegistry", deployResult) | ||
} | ||
|
||
func.tags = ["AI_SERVICE_REGISTRY"] | ||
export default func |
Oops, something went wrong.