Lux.Prisms.AgenticCompany.CreateCompanyPrism (Lux v0.5.0)

View Source

A prism that creates a new company using the AgenticCompanyFactory contract.

Example

iex> Lux.Prisms.AgenticCompany.CreateCompanyPrism.run(%{
...>   company_name: "Some Test Company",
...>   agent_token: "0x0000000000000000000000000000000000000000",  # zero address for no token
...>   ceo_wallet_address: "0x1234..."  # optional, defaults to WALLET_ADDRESS set in the environment variable.
...> })
{:ok, %{
  company_address: "0x5678..."  # The address of the newly created company contract
}}

Summary

Functions

Callback implementation for Lux.Prism.handler/2.

Returns the Prism struct for this module.

Functions

handler(input, ctx)

Callback implementation for Lux.Prism.handler/2.

run(input, context \\ nil)

view()

Returns the Prism struct for this module.