import { deployPublishedContract } from "thirdweb/deploys";
 
const address = await deployedPublishedContract({
  client,
  chain,
  account,
  contractId: "MyPublishedContract",
  contractParams: {
    param1: "value1",
    param2: 123,
  },
  publisher: "0x...", // optional, defaults to the thirdweb deployer
});