Lux.Prisms.AgenticCompany.CreateCompanyPrism (Lux v0.4.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
...> })
{: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(map, ctx)

Callback implementation for Lux.Prism.handler/2.

run(input, context \\ nil)

view()

Returns the Prism struct for this module.