Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforgeHCA

hcaAdmin.renounceGovernance

Renounces ownership of the HCA factory, freezing its implementation approvals (factory owner only). Errors and examples for hcaAdmin.renounceGovernance.

Writeexperimental
Since v1.0.0View source

Experimental

@ensforge/hca is experimental: its API can change in a minor release.

Renounces ownership of the HCA factory, freezing its implementation approvals (factory owner only). Resolves once the transaction is submitted.

When to use

Use to make the set of deployable HCA implementations permanent.

Signature

function renounceGovernance(
  client: Like,
  options: renounceGovernance.Options & Write.Options,
): Promise<renounceGovernance.ReturnType>

Call it as ens.hcaAdmin.renounceGovernance(options) on a client, or Actions.hcaAdmin.renounceGovernance(client, options).

Parameters

Also takes the write options.

Returns

Resolves to Write.Result. Submitted transaction hashes and the plan that produced them.

FieldTypeDescription
hashHexHash of the last transaction.
hashesreadonly Hex[]Every submitted transaction, in order.
idstringEIP-5792 bundle id when the calls were sent as one batch.
planPlanThe plan the write executed: its steps, in order, as they were submitted.

Errors

ErrorCodesWhen
HcaErrorHCA_UNAVAILABLEon chains without an HCA deployment.

It can also fail with the errors every write can (Errors.WriteError: the common errors plus InsufficientFundsError, TransactionError, UnsupportedError, UserRejectedError, WalletError).

See How errors work.

Examples

Renouncing the factory
const { hash } = await ens.hcaAdmin.renounceGovernance({})

Plan methods

Each method takes the same options as hcaAdmin.renounceGovernance and sends nothing. See Preview before sending.

MethodDescription
hcaAdmin.renounceGovernance.prepare(options)Builds the plan without sending anything.
hcaAdmin.renounceGovernance.simulate(options)Simulates the plan with eth_call, reporting each step.
hcaAdmin.renounceGovernance.estimateGas(options)Estimates the gas and ETH the plan needs.

Wait for the receipt with renounceGovernanceSync

Renounces ownership of the HCA factory, freezing its implementation approvals (factory owner only). Resolves once the receipt is in.

Use when the next step depends on the change being on-chain.

hcaAdmin.renounceGovernanceSync takes the same options plus confirmations and timeout.

Resolves to Write.SyncResult. Receipts plus the submitted hashes and plan.

Renouncing the factory and waiting
const { receipt } = await ens.hcaAdmin.renounceGovernanceSync({})

Was this page helpful?