Lux.Web3.Contracts.AgenticCompanyFactory (Lux v0.5.0)

View Source

Agentic Company Factory contract

Summary

Functions

Default address of the contract. Returns nil if not specified.

Prepares acceptOwnership() call parameters on the contract.

Prepares allowOnlyValidAgentTokens() call parameters on the contract.

Prepares AUTONOMOUS_AGENT_DEPLOYER() call parameters on the contract.

Prepares COMPANY_BEACON() call parameters on the contract.

Prepares companyCount() call parameters on the contract.

Prepares contract constructor values for deployment.

Prepares createCompany(string companyName, address agentToken) call parameters on the contract.

Prepares getCompanies(uint256 startIndex, uint256 count) call parameters on the contract.

Prepares getCompanyAddressAtIndex(uint256 index) call parameters on the contract.

Prepares initialize(address beacon, address initialFactoryOwner) call parameters on the contract.

Prepares isCompany(address maybeCompany) call parameters on the contract.

Prepares owner() call parameters on the contract.

Prepares pendingOwner() call parameters on the contract.

Prepares proxiableUUID() call parameters on the contract.

Prepares renounceOwnership() call parameters on the contract.

Prepares setAllowOnlyValidAgentTokens(bool allowOnlyValidAgentTokens_) call parameters on the contract.

Prepares supportsInterface(bytes4 interfaceId) call parameters on the contract.

Prepares transferOwnership(address newOwner) call parameters on the contract.

Prepares UPGRADE_INTERFACE_VERSION() call parameters on the contract.

Prepares upgradeToAndCall(address newImplementation, bytes data) call parameters on the contract.

Prepares version() call parameters on the contract.

Functions

__default_address__()

@spec __default_address__() :: Ethers.Types.t_address()

Default address of the contract. Returns nil if not specified.

To specify a default address see Ethers.Contract

accept_ownership()

@spec accept_ownership() :: Ethers.TxData.t()

Prepares acceptOwnership() call parameters on the contract.

This function can be used for a transaction or additionally called for results (Use Ethers.send_transaction/2). No amount of Ether can be sent with this function.

State mutability: non_payable

Return Types (when called with Ethers.call/2)

This function does not return any values!

allow_only_valid_agent_tokens()

@spec allow_only_valid_agent_tokens() :: Ethers.TxData.t()

Prepares allowOnlyValidAgentTokens() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • allowOnlyValidAgentTokens_: :bool

autonomous_agent_deployer()

@spec autonomous_agent_deployer() :: Ethers.TxData.t()

Prepares AUTONOMOUS_AGENT_DEPLOYER() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • :address

company_beacon()

@spec company_beacon() :: Ethers.TxData.t()

Prepares COMPANY_BEACON() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • beacon_: :address

company_count()

@spec company_count() :: Ethers.TxData.t()

Prepares companyCount() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • count_: {:uint, 256}

constructor()

@spec constructor() :: binary()

Prepares contract constructor values for deployment.

To deploy a contracts use Ethers.deploy/2 and pass the result of this function as :encoded_constructor option.

Parameters

create_company(company_name, agent_token)

@spec create_company(String.t(), Ethers.Types.t_address()) :: Ethers.TxData.t()

Prepares createCompany(string companyName, address agentToken) call parameters on the contract.

This function can be used for a transaction or additionally called for results (Use Ethers.send_transaction/2). No amount of Ether can be sent with this function.

State mutability: non_payable

Function Parameter Types

  • companyName: :string
  • agentToken: :address

Return Types (when called with Ethers.call/2)

  • companyAddress_: :address

get_companies(start_index, count)

@spec get_companies(non_neg_integer(), non_neg_integer()) :: Ethers.TxData.t()

Prepares getCompanies(uint256 startIndex, uint256 count) call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Function Parameter Types

  • startIndex: {:uint, 256}
  • count: {:uint, 256}

Return Types (when called with Ethers.call/2)

  • companies_: {:array, :address}

get_company_address_at_index(index)

@spec get_company_address_at_index(non_neg_integer()) :: Ethers.TxData.t()

Prepares getCompanyAddressAtIndex(uint256 index) call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Function Parameter Types

  • index: {:uint, 256}

Return Types (when called with Ethers.call/2)

  • companyAddress_: :address

initialize(beacon, initial_factory_owner)

Prepares initialize(address beacon, address initialFactoryOwner) call parameters on the contract.

This function can be used for a transaction or additionally called for results (Use Ethers.send_transaction/2). No amount of Ether can be sent with this function.

State mutability: non_payable

Function Parameter Types

  • beacon: :address
  • initialFactoryOwner: :address

Return Types (when called with Ethers.call/2)

This function does not return any values!

is_company(maybe_company)

@spec is_company(Ethers.Types.t_address()) :: Ethers.TxData.t()

Prepares isCompany(address maybeCompany) call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Function Parameter Types

  • maybeCompany: :address

Return Types (when called with Ethers.call/2)

  • isCompany_: :bool

owner()

@spec owner() :: Ethers.TxData.t()

Prepares owner() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • :address

pending_owner()

@spec pending_owner() :: Ethers.TxData.t()

Prepares pendingOwner() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • :address

proxiable_uuid()

@spec proxiable_uuid() :: Ethers.TxData.t()

Prepares proxiableUUID() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • {:bytes, 32}

renounce_ownership()

@spec renounce_ownership() :: Ethers.TxData.t()

Prepares renounceOwnership() call parameters on the contract.

This function can be used for a transaction or additionally called for results (Use Ethers.send_transaction/2). No amount of Ether can be sent with this function.

State mutability: non_payable

Return Types (when called with Ethers.call/2)

This function does not return any values!

set_allow_only_valid_agent_tokens(allow_only_valid_agent_tokens_)

@spec set_allow_only_valid_agent_tokens(boolean()) :: Ethers.TxData.t()

Prepares setAllowOnlyValidAgentTokens(bool allowOnlyValidAgentTokens_) call parameters on the contract.

This function can be used for a transaction or additionally called for results (Use Ethers.send_transaction/2). No amount of Ether can be sent with this function.

State mutability: non_payable

Function Parameter Types

  • allowOnlyValidAgentTokens_: :bool

Return Types (when called with Ethers.call/2)

This function does not return any values!

supports_interface(interface_id)

@spec supports_interface(<<_::32>>) :: Ethers.TxData.t()

Prepares supportsInterface(bytes4 interfaceId) call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Function Parameter Types

  • interfaceId: {:bytes, 4}

Return Types (when called with Ethers.call/2)

  • supported_: :bool

transfer_ownership(new_owner)

@spec transfer_ownership(Ethers.Types.t_address()) :: Ethers.TxData.t()

Prepares transferOwnership(address newOwner) call parameters on the contract.

This function can be used for a transaction or additionally called for results (Use Ethers.send_transaction/2). No amount of Ether can be sent with this function.

State mutability: non_payable

Function Parameter Types

  • newOwner: :address

Return Types (when called with Ethers.call/2)

This function does not return any values!

upgrade_interface_version()

@spec upgrade_interface_version() :: Ethers.TxData.t()

Prepares UPGRADE_INTERFACE_VERSION() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • :string

upgrade_to_and_call(new_implementation, data)

@spec upgrade_to_and_call(Ethers.Types.t_address(), binary()) :: Ethers.TxData.t()

Prepares upgradeToAndCall(address newImplementation, bytes data) call parameters on the contract.

This function can be used for a transaction or additionally called for results (Use Ethers.send_transaction/2). It also supports receiving ether from the transaction origin.

State mutability: payable

Function Parameter Types

  • newImplementation: :address
  • data: :bytes

Return Types (when called with Ethers.call/2)

This function does not return any values!

version()

@spec version() :: Ethers.TxData.t()

Prepares version() call parameters on the contract.

This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2)

State mutability: view

Return Types (when called with Ethers.call/2)

  • version_: {:uint, 64}