Skip to content

Commit

Permalink
feat(ai): introduce AIServiceRegistry contract
Browse files Browse the repository at this point in the history
This commit introduces the `AIServiceRegistry` contract. This contract
serves as a registry for AI subnet orchestrators, enabling them to
register and make their services discoverable within the AI subnet. As
discussed in #642 we opted to
deploy a non-upgradable contract for now connected to LivePeer's
[mainnet controller](https://docs.livepeer.org/references/contract-addresses).
  • Loading branch information
rickstaa committed Apr 17, 2024
1 parent f225b10 commit 023d7f3
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 023d7f3

Please sign in to comment.