Lux.Web3.Contracts.AgenticCompanyFactory (Lux v0.5.0)
View SourceAgentic 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
@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
@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!
@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
@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
@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
@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}
@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
@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
@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}
@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
@spec initialize(Ethers.Types.t_address(), Ethers.Types.t_address()) :: Ethers.TxData.t()
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!
@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
@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
@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
@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}
@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!
@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!
@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
@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!
@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
@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!
@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}