Skip to main content

Crate libid_contracts

Crate libid_contracts 

Source
Expand description

Typed bindings, embedded forge artifacts, and deploy/upgrade helpers for the libid identity stack. Every helper takes a provider already wired with a wallet.

  • bindings — alloy::sol! bindings, read from the compiled ABIs, for every contract a consumer talks to.
  • artifacts — creation bytecode of every deployable contract, embedded at compile time (Artifacts::embedded) or read from a forge out/ tree (Artifacts::from_dir).
  • deploy — deploy and upgrade over any alloy Provider: plain deploys, constructor args, ERC1967 proxies and UUPS upgrades.
  • factory — install the canonical cross-network factory and its keyless CREATE2 deployer where missing, and deploy protocol proxies through it at name-derived CREATE3 addresses.
  • platform_verifier — the Platform Verifier initializer, checked against its platform’s circuit and PlatformVerifierBase’s rules.
  • bind_error — a refused bind, decoded by name.
  • operation_list — the transaction data of one ceremony authorizing several Consumers’ operations.
  • circuits — the ceremony circuits’ vendored UltraHonk verifiers: which circuit a platform proves under, and the deploy of its verifier.
  • testing (feature testing) — a stand-in Platform Verifier for a consumer’s tests: its binding, payload and deploy.

Re-exports§

pub use artifacts::Artifacts;
pub use bind_error::BindError;

Modules§

artifacts
The compiled forge artifacts the crate ships.
bind_error
A refused bind, decoded by name.
bindings
alloy::sol! bindings read from the compiled ABIs that scripts/vendor-artifacts.sh vendors into abi/. One module per contract directory.
circuits
The ceremony circuits’ UltraHonk verifiers: which circuit each platform proves under, and the deploy of a circuit’s verifier.
deploy
Generic deploy and upgrade primitives, usable over any alloy Provider that has a wallet wired in. Signing is the consumer’s concern; nothing here constructs or holds keys.
factory
Bootstrap and use of the deterministic deployment factory.
operation_list
The Operation List of chain profiles §3.3: one ceremony’s transaction data carrying an entry for each of several Consumers. A bind under OPERATIONS_DOMAIN is vec![Operation::bind(target)].abi_encode(); the registry also takes the single form, abi.encode(target) under BIND_DOMAIN.
platform_verifier
Deploying a launch Platform Verifier: which contract serves which platform, and its initialize rules checked off chain first.

Macros§

send_with_nonce_retry
Send a contract call with automatic retry on “nonce too low” errors.

Enums§

Error
Crate error type.

Type Aliases§

Result
Crate result alias.