Skip to content

Commit

Permalink
feat(ai): introduce AIServiceRegistry contract
Browse files Browse the repository at this point in the history
This commit adds the AIServiceRegistry contract, facilitating the
registration and discoverability of AI subnet orchestrators'
services. As discussed in #642, we've chosen to deploy a
non-upgradable contract for now, linked to LivePeer's mainnet
controller (https://docs.livepeer.org/references/contract-addresses).
  • Loading branch information
rickstaa committed Apr 17, 2024
1 parent f225b10 commit 8a690c6
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
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

0 comments on commit 8a690c6

Please sign in to comment.