HCA
Browse every action of the experimental @ensforge/hca package by domain, plus the route and executors that send hosted contract account calls.
21 actions · 2 domains
Since v1.0.0View source
Experimental
@ensforge/hca is experimental: its API can change in a minor release.
Every action of @ensforge/hca, by domain, and the executors that send them.
hca
| Action | Description |
|---|---|
addDeposit | Adds ETH to an HCA's ERC-4337 EntryPoint deposit. |
authorizeSession | Asks the owner to approve a session key for their HCA, with one signature and no transaction. |
checkSessionCalls (batchable) | Checks calls against the HCA session policy before anything is signed. |
deploy | Deploys the signer's HCA through the ENS factory. |
execute | Runs calls from the signer's HCA as one atomic execution. |
get (batchable) | Reads an ENS HCA (Hosted Contract Account): its address, owner, implementation, session nonce and verification problems. |
getDeposit (batchable) | Reads an HCA's ERC-4337 EntryPoint deposit, which pays for its UserOperations without a paymaster. |
getSession (batchable) | Checks whether a stored HCA session can still be used. |
getUpgrade (batchable) | Checks whether an HCA may upgrade to an implementation: it must be in the DAO's upgrade set and accept the current implementation. |
predictAddress (batchable) | Computes the address of an owner's ENS HCA, deployed or not. |
revokeSessions | Invalidates every session approval of the signer's HCA. |
upgrade | Upgrades the signer's HCA to an implementation the DAO's upgrade set and its own canUpgradeFrom check allow. |
verify (batchable) | Checks that an address is a usable ENS HCA of its owner, and returns it. |
withdrawDeposit | Withdraws ETH from the signer's HCA EntryPoint deposit. |
hcaAdmin
| Action | Description |
|---|---|
getGovernance (batchable) | Reads who governs ENS HCAs: the factory owner and whether implementations are approved. |
grantUpgradeSetRoles | Grants root roles on the HCA upgrade set (role admins only). |
renounceGovernance | Renounces ownership of the HCA factory, freezing its implementation approvals (factory owner only). |
revokeUpgradeSetRoles | Revokes root roles on the HCA upgrade set (role admins only). |
setDeploymentApproval | Approves or revokes an implementation for new HCA deployments (factory owner only). |
setUpgradeApproval | Approves or revokes an implementation in the HCA upgrade set (role holders only). |
transferGovernance | Transfers ownership of the HCA factory (factory owner only). |
Was this page helpful?