Skip to content

Commit

Permalink
Merge pull request #642 from livepeer/add_ai_service_registery
Browse files Browse the repository at this point in the history
feat(ai): introduce AIServiceRegistry contract
  • Loading branch information
rickstaa committed May 5, 2024
2 parents ab4ee17 + 8a690c6 commit 75d0b32
Show file tree
Hide file tree
Showing 3 changed files with 789 additions and 0 deletions.
21 changes: 21 additions & 0 deletions deploy/deploy_ai_service_registry.ts
@@ -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

0 comments on commit 75d0b32

Please sign in to comment.