To deploy Opti.domains V1 on your chain, follow this simple steps
npm install -g ts-node
npm install -g yarn
Copy .env.example
to .env
and input your deployer private key
DEPLOYER_KEY=<Deployer private key>
Append config.ts with your chain config like this
[Chain Name]: {
type: "evm",
rpc: "[RPC URL]",
chainId: [Chain ID],
}
Simply run below command to deploy Seaport's Immutable CREATE2 Factory
ts-node setupFactory.ts <CHAIN_NAME>
Note: In case some component is already deployed, it will revert on an attempt to redeploy. You need to manually comment that line out from the setupFactory.ts code.
Follow Seaport document on how to deploy a Seaport's Immutable CREATE2 Factory
https://github.com/ProjectOpenSea/seaport/blob/main/docs/Deployment.md
Note: You don't need to deploy ConduitController and Seaport 1.5. Only Immutable CREATE2 Factory is needed
Simply run below command to deploy Opti.domains on any OP Stack chains
ts-node deploy.ts <CHAIN_NAME>
For example
ts-node deploy.ts base
Simply run below command to set up required Opti.domains EAS Schema
ts-node setupSchema.ts <CHAIN_NAME>
Note: In case some schema is already registered, it will revert. You need to manually comment that line out from the deploy-factory.ts code.