Overview
ETH Balance
ETH Value
$10.22 (@ $2,930.54/ETH)Latest 8 from a total of 8 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Post Agent Creat... | 1701630 | 661 days ago | IN | 0 ETH | 0.00010071 | ||||
| Post Agent Creat... | 1660542 | 662 days ago | IN | 0 ETH | 0.00011975 | ||||
| Sweep | 1366383 | 668 days ago | IN | 0 ETH | 0.00006569 | ||||
| Post Agent Creat... | 1361267 | 668 days ago | IN | 0 ETH | 0.00011022 | ||||
| Post Agent Creat... | 1326358 | 669 days ago | IN | 0 ETH | 0.00020652 | ||||
| Post Agent Creat... | 1309755 | 670 days ago | IN | 0 ETH | 0.00006102 | ||||
| Post Agent Creat... | 1309747 | 670 days ago | IN | 0 ETH | 0.00004318 | ||||
| Set Max Creation... | 1309732 | 670 days ago | IN | 0 ETH | 0.00002489 |
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 4089803 | 605 days ago | 0.003 ETH | ||||
| 4089803 | 605 days ago | 0.003 ETH | ||||
| 4089764 | 605 days ago | 0.05 ETH | ||||
| 4089764 | 605 days ago | 0.05 ETH | ||||
| 4089533 | 605 days ago | 0.003 ETH | ||||
| 4089533 | 605 days ago | 0.003 ETH | ||||
| 4085211 | 605 days ago | 0.003 ETH | ||||
| 4085211 | 605 days ago | 0.003 ETH | ||||
| 3966996 | 608 days ago | 0.003 ETH | ||||
| 3966996 | 608 days ago | 0.003 ETH | ||||
| 3931187 | 609 days ago | 0.003 ETH | ||||
| 3931187 | 609 days ago | 0.003 ETH | ||||
| 3928205 | 609 days ago | 0.00817259 ETH | ||||
| 3928205 | 609 days ago | 0.00817259 ETH | ||||
| 3928127 | 609 days ago | 0.003 ETH | ||||
| 3928127 | 609 days ago | 0.003 ETH | ||||
| 3922357 | 609 days ago | 0.003 ETH | ||||
| 3922357 | 609 days ago | 0.003 ETH | ||||
| 3919627 | 609 days ago | 0.01 ETH | ||||
| 3919627 | 609 days ago | 0.01 ETH | ||||
| 3918134 | 609 days ago | 0.003 ETH | ||||
| 3918134 | 609 days ago | 0.003 ETH | ||||
| 3917727 | 609 days ago | 0.003 ETH | ||||
| 3917727 | 609 days ago | 0.003 ETH | ||||
| 3897964 | 610 days ago | 0.003 ETH |
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: none
pragma solidity 0.8.24;
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { Multicall } from "./../utils/Multicall.sol";
import { Calls } from "./../libraries/Calls.sol";
import { Errors } from "./../libraries/Errors.sol";
import { IBlastooorStrategyAgents } from "./../interfaces/tokens/IBlastooorStrategyAgents.sol";
import { IERC6551Registry } from "./../interfaces/erc6551/IERC6551Registry.sol";
import { IAgentRegistry } from "./../interfaces/utils/IAgentRegistry.sol";
import { IBlastooorStrategyFactory } from "./../interfaces/factory/IBlastooorStrategyFactory.sol";
import { Blastable } from "./../utils/Blastable.sol";
import { Ownable2Step } from "./../utils/Ownable2Step.sol";
/**
* @title BlastooorStrategyFactory
* @author AgentFi
* @notice A factory for strategy agents.
*
* Users can use [`createAgent()`](#createagent) to create a new agent. The agent will be created based on settings stored in the factory by the contract owner. These settings can be viewed via [`getAgentCreationSettings()`](#getagentcreationsettings).
*/
contract BlastooorStrategyFactory is Multicall, Blastable, Ownable2Step, IBlastooorStrategyFactory {
/***************************************
STATE VARIABLES
***************************************/
address internal _genesisAgentNft;
address internal _strategyAgentNft;
address internal _erc6551Registry;
address internal _agentRegistry;
mapping(uint256 => AgentCreationSettings) internal _agentCreationSettings;
uint256 internal _agentCreationSettingsCount;
mapping(address => uint256) internal _createCount;
uint256 internal _maxCreationsPerGenesisAgent;
/***************************************
CONSTRUCTOR
***************************************/
/**
* @notice Constructs the factory contract.
* @param owner_ The owner of the contract.
* @param blast_ The address of the blast gas reward contract.
* @param gasCollector_ The address of the gas collector.
* @param blastPoints_ The address of the blast points contract.
* @param pointsOperator_ The address of the blast points operator.
* @param genesisAgentNft_ The genesis agents contract.
* @param strategyAgentNft_ The strategy agents contract.
* @param erc6551Registry_ The erc6551 registry contract.
* @param agentRegistry_ The agent registry contract.
*/
constructor(
address owner_,
address blast_,
address gasCollector_,
address blastPoints_,
address pointsOperator_,
address genesisAgentNft_,
address strategyAgentNft_,
address erc6551Registry_,
address agentRegistry_
) Blastable(blast_, gasCollector_, blastPoints_, pointsOperator_) {
_transferOwnership(owner_);
_genesisAgentNft = genesisAgentNft_;
_strategyAgentNft = strategyAgentNft_;
_erc6551Registry = erc6551Registry_;
_agentRegistry = agentRegistry_;
}
/***************************************
VIEW FUNCTIONS
***************************************/
/**
* @notice Gets the number of agent creation settings.
* @return count The count.
*/
function getAgentCreationSettingsCount() external view override returns (uint256 count) {
return _agentCreationSettingsCount;
}
/**
* @notice Gets the agent creation settings.
* @return genesisAgentNft The genesis agents contract.
* @return strategyAgentNft The strategy agents contract.
* @return agentImplementation The agent implementation.
* @return initializationCalls The calls to initialize the agent.
* @return isActive True if these creation settings are active, false otherwise.
*/
function getAgentCreationSettings(uint256 creationSettingsID) external view override returns (
address genesisAgentNft,
address strategyAgentNft,
address agentImplementation,
bytes[] memory initializationCalls,
bool isActive
) {
if(creationSettingsID == 0 || creationSettingsID > _agentCreationSettingsCount) revert Errors.OutOfRange();
genesisAgentNft = _genesisAgentNft;
strategyAgentNft = _strategyAgentNft;
AgentCreationSettings memory creationSettings = _agentCreationSettings[creationSettingsID];
agentImplementation = creationSettings.agentImplementation;
initializationCalls = creationSettings.initializationCalls;
isActive = creationSettings.isActive;
}
/**
* @notice Gets the number of agents created by the user.
* @return count The count.
*/
function getCreateCount(address user) external view override returns (uint256 count) {
count = _createCount[user];
}
/**
* @notice Gets the maximum number of strategy agents that can be created per genesis agent.
* @return count The count.
*/
function maxCreationsPerGenesisAgent() external view override returns (uint256 count) {
count = _maxCreationsPerGenesisAgent;
}
/***************************************
CREATE AGENT FUNCTIONS
***************************************/
/**
* @notice Creates a new agent.
* The new agent will be transferred to `msg.sender`.
* @param creationSettingsID The ID of the creation settings to use.
* @return info Information about the newly created agent.
*/
function createAgent(uint256 creationSettingsID) external payable override returns (AgentInfo memory info) {
AgentCreationSettings memory creationSettings = _createAgentPrecheck(creationSettingsID);
address strategyAgentNft = _strategyAgentNft;
info = _createAgent(strategyAgentNft, creationSettings.agentImplementation);
_initCalls(info.agentAddress, creationSettings.initializationCalls);
IBlastooorStrategyAgents(strategyAgentNft).transferFrom(address(this), msg.sender, info.agentID);
}
/**
* @notice Creates a new agent.
* The new agent will be transferred to `msg.sender`.
* @param creationSettingsID The ID of the creation settings to use.
* @param callDatas Extra data to pass to the agent after it is created.
* @return info Information about the newly created agent.
*/
function createAgent(uint256 creationSettingsID, bytes[] calldata callDatas) external payable override returns (AgentInfo memory info) {
AgentCreationSettings memory creationSettings = _createAgentPrecheck(creationSettingsID);
address strategyAgentNft = _strategyAgentNft;
info = _createAgent(strategyAgentNft, creationSettings.agentImplementation);
_initCalls(info.agentAddress, creationSettings.initializationCalls);
_setupCalls(info.agentAddress, callDatas);
IBlastooorStrategyAgents(strategyAgentNft).transferFrom(address(this), msg.sender, info.agentID);
}
/**
* @notice Creates a new agent.
* The new agent will be transferred to `msg.sender`.
* @param creationSettingsID The ID of the creation settings to use.
* @param deposits Tokens to transfer from `msg.sender` to the new agent.
* @return info Information about the newly created agent.
*/
function createAgent(uint256 creationSettingsID, TokenDeposit[] calldata deposits) external payable override returns (AgentInfo memory info) {
AgentCreationSettings memory creationSettings = _createAgentPrecheck(creationSettingsID);
address strategyAgentNft = _strategyAgentNft;
info = _createAgent(strategyAgentNft, creationSettings.agentImplementation);
_deposit(info.agentAddress, deposits);
_initCalls(info.agentAddress, creationSettings.initializationCalls);
IBlastooorStrategyAgents(strategyAgentNft).transferFrom(address(this), msg.sender, info.agentID);
}
/**
* @notice Creates a new agent.
* The new agent will be transferred to `msg.sender`.
* @param creationSettingsID The ID of the creation settings to use.
* @param deposits Tokens to transfer from `msg.sender` to the new agent.
* @param callDatas Extra data to pass to the agent after it is created.
* @return info Information about the newly created agent.
*/
function createAgent(uint256 creationSettingsID, bytes[] calldata callDatas, TokenDeposit[] calldata deposits) external payable override returns (AgentInfo memory info) {
AgentCreationSettings memory creationSettings = _createAgentPrecheck(creationSettingsID);
address strategyAgentNft = _strategyAgentNft;
info = _createAgent(strategyAgentNft, creationSettings.agentImplementation);
_deposit(info.agentAddress, deposits);
_initCalls(info.agentAddress, creationSettings.initializationCalls);
_setupCalls(info.agentAddress, callDatas);
IBlastooorStrategyAgents(strategyAgentNft).transferFrom(address(this), msg.sender, info.agentID);
}
/***************************************
HELPER FUNCTIONS
***************************************/
/**
* @notice A series of checks performed before any agent is created.
* @param creationSettingsID The ID of the creation settings to use.
* @return creationSettings The creation settings to use.
*/
function _createAgentPrecheck(
uint256 creationSettingsID
) internal returns (AgentCreationSettings memory creationSettings) {
// dev: for efficiency also returns the creation settings
// can only be called from registered genesis TBAs
(address collection, ) = IAgentRegistry(_agentRegistry).getNftOfTba(msg.sender);
if(collection != _genesisAgentNft) revert Errors.NotAuthorized();
// can only create a maximum amount per sender
uint256 newCount = _createCount[msg.sender] + 1;
if(newCount > _maxCreationsPerGenesisAgent) revert Errors.OverMaxCreationsPerUser();
_createCount[msg.sender] = newCount;
// creation settings id must be valid
if(creationSettingsID == 0 || creationSettingsID > _agentCreationSettingsCount) revert Errors.OutOfRange();
creationSettings = _agentCreationSettings[creationSettingsID];
// creation settings must not be paused
if(!creationSettings.isActive) revert Errors.CreationSettingsPaused();
}
/**
* @notice Creates a new agent.
* @param strategyAgentNft The strategy agent nft contract.
* @param agentImplementation The implementation contract for the agent TBA.
* @return info Information about the newly created agent.
*/
function _createAgent(
address strategyAgentNft,
address agentImplementation
) internal returns (AgentInfo memory info) {
uint256 agentID = IBlastooorStrategyAgents(strategyAgentNft).createAgent();
info.agentID = agentID;
address agentAddress = IERC6551Registry(_erc6551Registry).createAccount(
agentImplementation,
bytes32(0),
block.chainid,
strategyAgentNft,
agentID
);
info.agentAddress = agentAddress;
IAgentRegistry(_agentRegistry).registerAgent(IAgentRegistry.RegisterAgentParam({
agentAddress: agentAddress,
implementationAddress: agentImplementation,
collection: strategyAgentNft,
agentID: agentID
}));
}
/**
* @notice Deposits tokens into the new agent.
* Assumes tokens are in this contract.
* @param agentAddress The account to deposit into.
* @param deposits Tokens to transfer from `msg.sender` to the new agent.
*/
function _deposit(address agentAddress, TokenDeposit[] calldata deposits) internal {
for(uint256 i = 0; i < deposits.length; ++i) {
address token = deposits[i].token;
uint256 amount = deposits[i].amount;
if(token == address(0)) Calls.sendValue(agentAddress, amount);
else SafeERC20.safeTransfer(IERC20(token), agentAddress, amount);
}
}
/**
* @notice Makes the initialization calls on the agent.
* @param agentAddress The account to initialize.
* @param callDatas The calls to make.
*/
function _initCalls(address agentAddress, bytes[] memory callDatas) internal {
for(uint256 i = 0; i < callDatas.length; ++i) {
Calls.functionCall(agentAddress, callDatas[i]);
}
}
/**
* @notice Makes the setup calls on the agent.
* @param agentAddress The account to setup.
* @param callDatas The calls to make.
*/
function _setupCalls(address agentAddress, bytes[] calldata callDatas) internal {
for(uint256 i = 0; i < callDatas.length; ++i) {
Calls.functionCall(agentAddress, callDatas[i]);
}
}
/***************************************
OWNER FUNCTIONS
***************************************/
/**
* @notice Posts a new AgentCreationSettings.
* Can only be called by the contract owner.
* @param creationSettings The new creation settings to post.
*/
function postAgentCreationSettings(
AgentCreationSettings calldata creationSettings
) external payable override onlyOwner returns (
uint256 creationSettingsID
) {
// checks
Calls.verifyHasCode(creationSettings.agentImplementation);
// post
creationSettingsID = ++_agentCreationSettingsCount;
_agentCreationSettings[creationSettingsID] = creationSettings;
emit AgentCreationSettingsPosted(creationSettingsID);
emit AgentCreationSettingsActivated(creationSettingsID, creationSettings.isActive);
}
/**
* @notice Sets the active state of a creationSettings.
* Can only be called by the contract owner.
* @param status True to activate, false to deactivate.
*/
function setActiveStatus(uint256 creationSettingsID, bool status) external payable override onlyOwner {
// checks
if(creationSettingsID == 0 || creationSettingsID > _agentCreationSettingsCount) revert Errors.OutOfRange();
// set
_agentCreationSettings[creationSettingsID].isActive = status;
emit AgentCreationSettingsActivated(creationSettingsID, status);
}
/**
* @notice Sets the maximum number of strategy agents that can be created per genesis agent.
* Can only be called by the contract owner.
* @param count The count to set.
*/
function setMaxCreationsPerGenesisAgent(uint256 count) external payable override onlyOwner {
_maxCreationsPerGenesisAgent = count;
emit SetMaxCreationsPerGenesisAgent(count);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.20;
import {IERC721} from "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
* {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
* a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
/**
* @title IERC6551Registry
* @notice The registry is a singleton contract that serves as the entry point for all token bound account address queries.
*/
interface IERC6551Registry {
/**
* @notice The registry MUST emit the ERC6551AccountCreated event upon successful account creation.
*/
event ERC6551AccountCreated(
address account,
address indexed implementation,
bytes32 salt,
uint256 chainId,
address indexed tokenContract,
uint256 indexed tokenId
);
/**
* @notice The registry MUST revert with AccountCreationFailed error if the create2 operation fails.
*/
error AccountCreationFailed();
/**
* @notice Creates a token bound account for a non-fungible token.
*
* If account has already been created, returns the account address without calling create2.
*
* Emits ERC6551AccountCreated event.
*
* @param implementation The address of the implementation contract.
* @param salt Arbitrary value to modify resulting address.
* @param chainId The id of the chain that the tokenContract is deployed on.
* @param tokenContract The address of the nft contract.
* @param tokenId The id of the nft.
* @return account_ The address of the token bound account.
*/
function createAccount(
address implementation,
bytes32 salt,
uint256 chainId,
address tokenContract,
uint256 tokenId
) external returns (address account_);
/**
* @notice Returns the computed token bound account address for a non-fungible token.
* @param implementation The address of the implementation contract.
* @param salt Arbitrary value to modify resulting address.
* @param chainId The id of the chain that the tokenContract is deployed on.
* @param tokenContract The address of the nft contract.
* @param tokenId The id of the nft.
* @return account_ The address of the token bound account.
*/
function account(
address implementation,
bytes32 salt,
uint256 chainId,
address tokenContract,
uint256 tokenId
) external view returns (address account_);
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
/**
* @title IBlastooorStrategyFactory
* @author AgentFi
* @notice A factory for strategy agents.
*
* Users can use [`createAgent()`](#createagent) to create a new agent. The agent will be created based on settings stored in the factory by the contract owner. These settings can be viewed via [`getAgentCreationSettings()`](#getagentcreationsettings).
*/
interface IBlastooorStrategyFactory {
/***************************************
EVENTS
***************************************/
/// @notice Emitted when a new AgentCreationSettings is posted.
event AgentCreationSettingsPosted(uint256 indexed creationSettingsID);
/// @notice Emitted when a new AgentCreationSettings is activated or deactivated.
event AgentCreationSettingsActivated(uint256 indexed creationSettingsID, bool isActive);
/// @notice Emitted when the maxCreationsPerGenesisAgent is set.
event SetMaxCreationsPerGenesisAgent(uint256 count);
/***************************************
VIEW FUNCTIONS
***************************************/
struct AgentCreationSettings {
address agentImplementation;
bytes[] initializationCalls;
bool isActive;
}
/**
* @notice Gets the number of agent creation settings.
* @return count The count.
*/
function getAgentCreationSettingsCount() external view returns (uint256 count);
/**
* @notice Gets the agent creation settings.
* @return genesisAgentNft The genesis agents contract.
* @return strategyAgentNft The strategy agents contract.
* @return agentImplementation The agent implementation.
* @return initializationCalls The calls to initialize the agent.
* @return isActive True if these creation settings are active, false otherwise.
*/
function getAgentCreationSettings(uint256 creationSettingsID) external view returns (
address genesisAgentNft,
address strategyAgentNft,
address agentImplementation,
bytes[] memory initializationCalls,
bool isActive
);
/**
* @notice Gets the number of agents created by the user.
* @return count The count.
*/
function getCreateCount(address user) external view returns (uint256 count);
/**
* @notice Gets the maximum number of strategy agents that can be created per genesis agent.
* @return count The count.
*/
function maxCreationsPerGenesisAgent() external view returns (uint256 count);
/***************************************
CREATE AGENT FUNCTIONS
***************************************/
struct TokenDeposit {
address token;
uint256 amount;
}
struct AgentInfo {
uint256 agentID;
address agentAddress;
}
/**
* @notice Creates a new agent.
* The new agent will be transferred to `msg.sender`.
* @param creationSettingsID The ID of the creation settings to use.
* @return info Information about the newly created agent.
*/
function createAgent(uint256 creationSettingsID) external payable returns (AgentInfo memory info);
/**
* @notice Creates a new agent.
* The new agent will be transferred to `msg.sender`.
* @param creationSettingsID The ID of the creation settings to use.
* @param callDatas Extra data to pass to the agent after it is created.
* @return info Information about the newly created agent.
*/
function createAgent(uint256 creationSettingsID, bytes[] calldata callDatas) external payable returns (AgentInfo memory info);
/**
* @notice Creates a new agent.
* The new agent will be transferred to `msg.sender`.
* @param creationSettingsID The ID of the creation settings to use.
* @param deposits Tokens to transfer from `msg.sender` to the new agent.
* @return info Information about the newly created agent.
*/
function createAgent(uint256 creationSettingsID, TokenDeposit[] calldata deposits) external payable returns (AgentInfo memory info);
/**
* @notice Creates a new agent.
* The new agent will be transferred to `msg.sender`.
* @param creationSettingsID The ID of the creation settings to use.
* @param callDatas Extra data to pass to the agent after it is created.
* @param deposits Tokens to transfer from `msg.sender` to the new agent.
* @return info Information about the newly created agent.
*/
function createAgent(uint256 creationSettingsID, bytes[] calldata callDatas, TokenDeposit[] calldata deposits) external payable returns (AgentInfo memory info);
/***************************************
OWNER FUNCTIONS
***************************************/
/**
* @notice Posts a new AgentCreationSettings.
* Can only be called by the contract owner.
* @param creationSettings The new creation settings to post.
*/
function postAgentCreationSettings(
AgentCreationSettings calldata creationSettings
) external payable returns (
uint256 creationSettingsID
);
/**
* @notice Sets the active state of a creationSettings.
* Can only be called by the contract owner.
* @param status True to activate, false to deactivate.
*/
function setActiveStatus(uint256 creationSettingsID, bool status) external payable;
/**
* @notice Sets the maximum number of strategy agents that can be created per genesis agent.
* Can only be called by the contract owner.
* @param count The count to set.
*/
function setMaxCreationsPerGenesisAgent(uint256 count) external payable;
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
import { IERC721Enumerable } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
/**
* @title IBlastooorStrategyAgents
* @author AgentFi
* @notice The Blastooor Strategy ERC721 token contract. Creates new agents and manages ownership of agents in the AgentFi protocol.
*
* Each agent is represented as an NFT. The owner of the NFT is the owner of the agent. Transferring the NFT means transferring the agent and its contents.
*
* Each agent is also a smart contract account. The account is created at the same time the agent is created. Ownership of the account is delegated to the owner of the NFT using ERC6551 Token Bound Accounts.
*
* Agents can be created via [`createAgent()`](#createagent). Only whitelisted accounts may create agents - these may be any address, but are designed to be smart contracts called factories. This ERC721 contract manages the creation and registration of agents. The factory contract handles any additional logic - verifying implementation, initializing the agent, etc. A user that wants to create an agent should call a factory contract, which in turn calls this contract.
*
* The list of factories can be queried via [`factoryIsWhitelisted()`](#factoryiswhitelisted) and maintained by the contract owner via [`setWhitelist()`](#setwhitelist).
*
* Agents are ERC721s with the enumerable extension. Additional information about each agent can be queried via [`getAgentInfo()`](#getagentinfo) and [`exists()`](#exists).
*/
interface IBlastooorStrategyAgents is IERC721Enumerable {
/// @notice Emitted when a factory is whitelisted or blacklisted.
event FactoryWhitelisted(address indexed factory, bool wasWhitelisted);
/// @notice Emitted when the base URI is set.
event BaseURISet(string baseURI);
/// @notice Emitted when the contract URI is set.
event ContractURISet(string contractURI);
/***************************************
VIEW FUNCTIONS
***************************************/
/**
* @notice Returns true if the agent exists.
* @param agentID The ID of the agent to query.
* @return status True if the agent exists, false otherwise.
*/
function exists(uint256 agentID) external view returns (bool status);
/***************************************
CREATE AGENT FUNCTIONS
***************************************/
/**
* @notice Creates a new agent.
* @dev The new agent will be minted to `msg.sender`. This function is designed to be called from another contract to perform additional setup.
* @return agentID The ID of the newly created agent.
*/
function createAgent() external payable returns (uint256 agentID);
/***************************************
WHITELIST FUNCTIONS
***************************************/
/**
* @notice Returns true if the factory has been whitelisted.
* All addresses are whitelisted if address zero is whitelisted.
* @param factory The address of the factory to query.
* @return isWhitelisted True if the factory has been whitelisted, false otherwise.
*/
function factoryIsWhitelisted(address factory) external view returns (bool isWhitelisted);
struct SetWhitelistParam {
address factory;
bool shouldWhitelist;
}
/**
* @notice Adds or removes factories to the whitelist.
* Can only be called by the contract owner.
* @param params The list of factories and if they should be whitelisted or blacklisted.
*/
function setWhitelist(SetWhitelistParam[] memory params) external payable;
/***************************************
METADATA FUNCTIONS
***************************************/
/**
* @notice Returns the base URI for computing tokenURI.
* @return uri The base URI.
*/
function baseURI() external view returns (string memory uri);
/**
* @notice Sets the base URI for computing tokenURI.
* Can only be called by the contract owner.
* @param uri The new base URI.
*/
function setBaseURI(string calldata uri) external payable;
/**
* @notice Returns the contract URI.
* @return uri The contract URI.
*/
function contractURI() external view returns (string memory uri);
/**
* @notice Sets the contract URI.
* Can only be called by the contract owner.
* @param uri The new contract URI.
*/
function setContractURI(string calldata uri) external payable;
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
/**
* @title IAgentRegistry
* @author AgentFi
* @notice Tracks Agents, NFTs, and TBAs in the AgentFi ecosystem.
*
* Does NOT replace the ERC6551Registry, merely an enumeration on top of it.
*/
interface IAgentRegistry {
/***************************************
STATE VARIABLES
***************************************/
/// @notice Emitted when an operator is added or removed.
event OperatorSet(address indexed account, bool isOperator);
/// @notice Emitted when an agent is registered.
event AgentRegistered(address indexed agentAddress, address indexed collection, uint256 indexed agentID);
struct AgentInfo {
address agentAddress;
address implementationAddress;
}
struct TokenInfo {
address collection;
uint256 agentID;
}
/***************************************
VIEW FUNCTIONS
***************************************/
/**
* @notice Returns true if the account is an operator.
* @param account The account to query.
* @return isAuthorized True if is an operator, false otherwise.
*/
function isOperator(address account) external view returns (bool isAuthorized);
/**
* @notice Returns the list of known agent TBAs for an agent NFT.
* @param collection The address of the collection to query.
* @param agentID The ID of the agent to query.
* @return tbas The list of registered TBAs for this agent.
*/
function getTbasOfNft(address collection, uint256 agentID) external view returns (AgentInfo[] memory tbas);
/**
* @notice Returns the NFT associated with an agent TBA.
* Returns zeros if not registered.
* @param tba The address of the TBA to query.
* @return collection The address of the NFT collection.
* @return agentID The ID of the agent.
*/
function getNftOfTba(address tba) external view returns (address collection, uint256 agentID);
/**
* @notice Returns true if the TBA is known.
* @param tba The address of the TBA to query.
* @return isRegistered True if the agent is registerd, false otherwise.
*/
function isTbaRegisteredAgent(address tba) external view returns (bool isRegistered);
/***************************************
OPERATOR FUNCTIONS
***************************************/
struct RegisterAgentParam {
address agentAddress;
address implementationAddress;
address collection;
uint256 agentID;
}
/**
* @notice Registers a new agent.
* Can only be called by an operator.
* @param params The agent to register.
*/
function registerAgent(RegisterAgentParam calldata params) external payable;
/**
* @notice Registers a new agent. Fails gracefully if the agent has already been registered.
* Can only be called by an operator.
* @param params The agent to register.
*/
function tryRegisterAgent(RegisterAgentParam calldata params) external payable;
/**
* @notice Registers a list of new agents.
* Can only be called by an operator.
* @param params The agents to register.
*/
function registerAgents(RegisterAgentParam[] calldata params) external payable;
/**
* @notice Registers a list of new agents. Fails gracefully if the agent has already been registered.
* Can only be called by an operator.
* @param params The agents to register.
*/
function tryRegisterAgents(RegisterAgentParam[] calldata params) external payable;
/***************************************
OWNER FUNCTIONS
***************************************/
struct SetOperatorParam {
address account;
bool isAuthorized;
}
/**
* @notice Sets the status of a list of operators.
* Can only be called by the contract owner.
* @param params The list to set.
*/
function setOperators(SetOperatorParam[] calldata params) external payable;
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
/**
* @title IBlastable
* @author AgentFi
* @notice An abstract contract that configures the connection to Blast during deployment
*
* This involves collecting ETH yield, gas rewards, and Blast Points. ETH yield is earned by this contract automatically, while gas rewards and Blast Points are delegated to dedicated collectors.
*/
interface IBlastable {
/**
* @notice Returns the address of the Blast contract.
* @return blast_ The adress of the Blast contract.
*/
function blast() external view returns (address blast_);
/**
* @notice Returns the address of the BlastPoints contract.
* @return blastPoints_ The adress of the BlastPoints contract.
*/
function blastPoints() external view returns (address blastPoints_);
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
/**
* @title IMulticall
* @author AgentFi
* @notice Provides a function to batch together multiple calls in a single external call.
*/
interface IMulticall {
/**
* @notice Receives and executes a batch of function calls on this contract.
* @param data A list of function calls to execute.
* @return results The results of each function call.
*/
function multicall(bytes[] calldata data) external payable returns (bytes[] memory results);
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
/**
* @title IOwnable2Step
* @author AgentFi
* @notice An abstract contract that provides a basic access control system through ERC173.
*/
interface IOwnable2Step {
/***************************************
EVENTS
***************************************/
/// @notice Emitted when the contract ownership process is started.
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/// @notice Emitted when the contract ownership process is completed.
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/***************************************
VIEW FUNCTIONS
***************************************/
/**
* @notice Returns the address of the current owner.
* @return owner_ The current owner.
*/
function owner() external view returns (address owner_);
/**
* @notice Returns the address of the pending owner.
* @return pendingOwner_ The pending owner.
*/
function pendingOwner() external view returns (address pendingOwner_);
/***************************************
MUTATOR FUNCTIONS
***************************************/
/**
* @notice Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() external payable;
/**
* @notice Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
* @param newOwner The address of the new owner.
*/
function transferOwnership(address newOwner) external payable;
/**
* @notice Completes the ownership transfer of the contract to the new account.
* Can only be called by the pending owner.
*/
function acceptOwnership() external payable;
/***************************************
TOKEN BALANCE FUNCTIONS
***************************************/
/**
* @notice Rescues tokens that may have been accidentally transferred in.
* Can only be called by the contract owner.
* @dev If the inheriting contract requires tokens in the contract, overwrite this with a revert.
* @param receiver The receiver of the rescued tokens.
* @param tokens The tokens to rescue. Can be ETH or ERC20s.
*/
function sweep(address receiver, address[] calldata tokens) external payable;
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
import { Errors } from "./Errors.sol";
/**
* @title Calls
* @author AgentFi
* @notice A library for safely making low level calls.
*/
library Calls {
/**
* @notice Safely transfers the gas token using a low level `call`.
* @dev If `target` reverts with a revert reason, it is bubbled up by this function.
* @param target The address of the contract to `call`.
* @return result The result of the function call.
*/
function sendValue(
address target,
uint256 value
) internal returns (bytes memory result) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance();
}
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{value:value}("");
if(success) {
result = returndata;
} else {
// look for revert reason and bubble it up if present
if(returndata.length > 0) {
// the easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.CallFailed();
}
}
}
/**
* @notice Safely performs a Solidity function call using a low level `call`.
* @dev If `target` reverts with a revert reason, it is bubbled up by this function.
* @param target The address of the contract to `delegatecall`.
* @param data The data to pass to the target.
* @return result The result of the function call.
*/
function functionCall(
address target,
bytes memory data
) internal returns (bytes memory result) {
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call(data);
if(success) {
result = returndata;
} else {
// look for revert reason and bubble it up if present
if(returndata.length > 0) {
// the easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.CallFailed();
}
}
}
/**
* @notice Safely performs a Solidity function call using a low level `call`.
* @dev If `target` reverts with a revert reason, it is bubbled up by this function.
* @param target The address of the contract to `delegatecall`.
* @param data The data to pass to the target.
* @return result The result of the function call.
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory result) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance();
}
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{value:value}(data);
if(success) {
result = returndata;
} else {
// look for revert reason and bubble it up if present
if(returndata.length > 0) {
// the easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.CallFailed();
}
}
}
/**
* @notice Safely performs a Solidity function call using a low level `delegatecall`.
* @dev If `target` reverts with a revert reason, it is bubbled up by this function.
* @param target The address of the contract to `delegatecall`.
* @param data The data to pass to the target.
* @return result The result of the function call.
*/
function functionDelegateCall(
address target,
bytes memory data
) internal returns (bytes memory result) {
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
if(success) {
result = returndata;
} else {
// look for revert reason and bubble it up if present
if(returndata.length > 0) {
// the easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.DelegateCallFailed();
}
}
}
/**
* @notice Verify that an address has contract code, otherwise reverts.
* @param target The address to verify.
*/
function verifyHasCode(
address target
) internal view {
// checks
uint256 contractSize;
// solhint-disable-next-line no-inline-assembly
assembly {
contractSize := extcodesize(target)
}
if(contractSize == 0) revert Errors.NotAContract();
}
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
/**
* @title Errors
* @author AgentFi
* @notice A library of custom error types used in BOOM!.
*/
library Errors {
// call errors
/// @notice Thrown when a low level call reverts without a reason.
error CallFailed();
/// @notice Thrown when a low level delegatecall reverts without a reason.
error DelegateCallFailed();
/// @notice Thrown if the owner tries to execute an operation that is not a call.
error OnlyCallsAllowed();
/// @notice Thrown when a function should not be delegatecalled.
error NoDelegateCall();
/// @notice Thrown when using an address with no code.
error NotAContract();
/// @notice Thrown when a contract deployment fails.
error ContractNotDeployed();
/// @notice Thrown when the sender has an insufficient balance of the token they are sending.
error InsufficientBalance();
// ownership & authentication errors
/// @notice Thrown when calling a function reserved for the contract owner.
error NotContractOwner();
/// @notice Thrown when calling a function reserved for the pending contract owner.
error NotPendingContractOwner();
/// @notice Thrown when calling a function reserved for the owner of a erc6551 account.
error ERC6551InvalidSigner();
/// @notice Thrown when attempting a function reserved for the owner of the agent.
error NotOwnerOfAgent();
/// @notice Thrown when a signature is invalid.
error InvalidSignature();
// generic input errors
/// @notice Thrown when address zero is used where it should not be.
error AddressZero();
/// @notice Thrown when a nonzero address is used where the zero address is expected
error AddressNotZero();
/// @notice Thrown when an address is used where it should not be.
//error AddressIllegal();
/// @notice Thrown when a zero amount used where it should not be.
error AmountZero();
/// @notice Thrown when the number of elements in an array is not what was expected.
error LengthMismatch();
/// @notice Thrown when receiving an array of length zero.
error LengthZero();
/// @notice Thrown when looking up a name that is unknown.
error UnknownName();
/// @notice Thrown when accessing an element that is out of range.
error OutOfRange();
/// @notice Thrown when gas token values do not match.
error ValueMismatch();
/// @notice Thrown when an entry has already been registered.
error AlreadyRegistered();
// execution errors
/// @notice Thrown when a call reenters illegally.
error ReentrancyGuard();
/// @notice Thrown when attempting to initialize a contract that has already been initialized.
error AlreadyInitialized();
// nft errors
/// @notice Thrown when querying an agent that does not exist.
error AgentDoesNotExist();
/// @notice Thrown when transferring an agent nft to the agent account.
error OwnershipCycle();
/// @notice Thrown when calling a function that is reserved for agents only.
//error CallerIsNotAnAgent();
// agent creation errors
/// @notice Thrown when attempting to create an agent from an account that is not whitelisted.
error FactoryNotWhitelisted();
/// @notice Thrown when call a contract that has been paused.
error ContractPaused();
/// @notice Thrown when using a factory and a creation settings that has been paused.
error CreationSettingsPaused();
/// @notice Thrown when minting an nft over the max total supply.
error OverMaxSupply();
/// @notice Thrown when minting an nft over the max public mint.
error OverMaxPublicMint();
/// @notice Thrown when minting an nft but the mint has not been started.
error MintNotStarted();
/// @notice Thrown when minting via the allowlist but the period has ended.
error AllowlistMintEnded();
/// @notice Thrown when minting too many agents at once.
error OverMaxMintPerTx();
/// @notice Thrown when minting an nft over the max allowlist mint total.
error OverMaxAllowlistMintTotal();
/// @notice Thrown when minting an nft over the max allowlist mint per user.
error OverMaxAllowlistMintPerAccount();
/// @notice Thrown when minting from the treasury allocation before treasury mint starts.
error TreasuryMintNotStarted();
/// @notice Thrown when not paying enough to mint an nft.
error InsufficientPayment();
/// @notice Thrown when minting from the treasury allocation without approval.
error NotTreasuryMinter();
/// @notice Thrown when minting more agents than allowed per user.
error OverMaxCreationsPerUser();
/// @notice Thrown when minting more agents than allowed per agent.
error OverMaxCreationsPerAgent();
// erc2535 errors
/// @notice Thrown when installing a function that is already installed.
error AddFunctionDuplicate();
/// @notice Thrown when replacing a function with itself.
error ReplaceFunctionSame();
/// @notice Thrown when removing a function that has not currently installed.
error RemoveFunctionDoesNotExist();
/// @notice Thrown when removing a function that cannot be removed.
error RemoveFunctionImmutable();
/// @notice Thrown when calling a function that does not exist in this contract.
error FunctionDoesNotExist();
/// @notice Thrown when attempting to install a module that is not whitelisted.
error ModuleNotWhitelisted();
// quoter errors
/// @notice Thrown when failing to decode an error message.
error UnknownError();
/// @notice Thrown when a revert was intentionally thrown in order to return a value.
error RevertForAmount(uint256 amount);
/// @notice Thrown when calling a function on a proxy that should only be called on the implementation.
error NotImplementation();
/// @notice Thrown when calling a function on an implementation contract that can only be called by the gas collector.
error NotGasCollector();
/// @notice Thrown when trying to mint without the minter role.
error NotMinter();
/// @notice Thrown when calling the dispatcher without the operator role.
error NotOperator();
// erc6551 errors
error InvalidOperation();
error ContractCreationFailed();
error NotAuthorized();
error InvalidInput();
error ExceedsMaxLockTime();
error AccountLocked();
error InvalidAccountProof();
error InvalidGuardian();
error InvalidImplementation();
//error AlreadyInitialized();
error InvalidEntryPoint();
error InvalidMulticallForwarder();
error InvalidERC6551Registry();
error InvalidSender();
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
import { IBlastable } from "./../interfaces/utils/IBlastable.sol";
/**
* @title Blastable
* @author AgentFi
* @notice An abstract contract that configures the connection to Blast during deployment
*
* This involves collecting ETH yield, gas rewards, and Blast Points. ETH yield is earned by this contract automatically, while gas rewards and Blast Points are delegated to dedicated collectors.
*/
abstract contract Blastable is IBlastable {
address internal immutable __blast;
address internal immutable __gasCollector;
address internal immutable __blastPoints;
address internal immutable __pointsOperator;
/**
* @notice Constructs the Blastable contract.
* Configures the contract to receive automatic yield, claimable gas, and assigns a gas collector.
* @param blast_ The address of the blast gas reward contract.
* @param gasCollector_ The address of the gas collector.
* @param blastPoints_ The address of the blast points contract.
* @param pointsOperator_ The address of the blast points operator.
*/
constructor(
address blast_,
address gasCollector_,
address blastPoints_,
address pointsOperator_
) {
__blast = blast_;
__gasCollector = gasCollector_;
__blastPoints = blastPoints_;
__pointsOperator = pointsOperator_;
// allow these calls to fail on local fork
// check success after deployment
blast_.call(abi.encodeWithSignature("configureAutomaticYield()"));
blast_.call(abi.encodeWithSignature("configureClaimableGas()"));
if(gasCollector_ != address(0)) blast_.call(abi.encodeWithSignature("configureGovernor(address)", gasCollector_));
if(pointsOperator_ != address(0)) blastPoints_.call(abi.encodeWithSignature("configurePointsOperator(address)", pointsOperator_));
}
/**
* @notice Returns the address of the Blast contract.
* @return blast_ The adress of the Blast contract.
*/
function blast() public view override returns (address blast_) {
blast_ = __blast;
}
/**
* @notice Returns the address of the BlastPoints contract.
* @return blastPoints_ The adress of the BlastPoints contract.
*/
function blastPoints() public view override returns (address blastPoints_) {
blastPoints_ = __blastPoints;
}
/**
* @notice Allows this contract to receive the gas token.
*/
// solhint-disable-next-line no-empty-blocks
receive() external payable virtual {}
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
import { Calls } from "./../libraries/Calls.sol";
import { IMulticall } from "./../interfaces/utils/IMulticall.sol";
/**
* @title Multicall
* @author AgentFi
* @notice Provides a function to batch together multiple calls in a single external call.
*/
abstract contract Multicall is IMulticall {
/**
* @notice Receives and executes a batch of function calls on this contract.
* @param data A list of function calls to execute.
* @return results The results of each function call.
*/
function multicall(bytes[] calldata data) external payable virtual returns (bytes[] memory results) {
results = new bytes[](data.length);
for (uint256 i = 0; i < data.length; ) {
results[i] = Calls.functionDelegateCall(address(this), data[i]);
unchecked { i++; }
}
return results;
}
}// SPDX-License-Identifier: none
pragma solidity 0.8.24;
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { IOwnable2Step } from "./../interfaces/utils/IOwnable2Step.sol";
import { Calls } from "./../libraries/Calls.sol";
import { Errors } from "./../libraries/Errors.sol";
/**
* @title Ownable2Step
* @author AgentFi
* @notice An abstract contract that provides a basic access control system through ERC173.
*
* Based on OpenZeppelins's implementation.
*
* Also includes [`sweep()`](#sweep) to allow the owner to rescue any tokens that may have been sent in.
*/
abstract contract Ownable2Step is IOwnable2Step {
/***************************************
VARIABLES
***************************************/
address private _owner;
address private _pendingOwner;
/**
* @notice Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/***************************************
VIEW FUNCTIONS
***************************************/
/**
* @notice Returns the address of the current owner.
* @return owner_ The current owner.
*/
function owner() public view override returns (address owner_) {
owner_ = _owner;
}
/**
* @notice Returns the address of the pending owner.
* @return pendingOwner_ The pending owner.
*/
function pendingOwner() public view override returns (address pendingOwner_) {
pendingOwner_ = _pendingOwner;
}
/***************************************
MUTATOR FUNCTIONS
***************************************/
/**
* @notice Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public payable override onlyOwner {
_transferOwnership(address(0));
}
/**
* @notice Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
* @param newOwner The address of the new owner.
*/
function transferOwnership(address newOwner) public payable override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(_owner, newOwner);
}
/**
* @notice Completes the ownership transfer of the contract to the new account.
* Can only be called by the pending owner.
*/
function acceptOwnership() public payable override {
address sender = msg.sender;
if(_pendingOwner != sender) revert Errors.NotPendingContractOwner();
_transferOwnership(sender);
}
/***************************************
TOKEN BALANCE FUNCTIONS
***************************************/
/**
* @notice Rescues tokens that may have been accidentally transferred in.
* Can only be called by the contract owner.
* @dev If the inheriting contract requires tokens in the contract, overwrite this with a revert.
* @param receiver The receiver of the rescued tokens.
* @param tokens The tokens to rescue. Can be ETH or ERC20s.
*/
function sweep(address receiver, address[] calldata tokens) external payable virtual override onlyOwner {
for(uint256 i = 0; i < tokens.length; ++i) {
address token = tokens[i];
if(token == address(0)) {
Calls.sendValue(payable(receiver), address(this).balance);
} else {
IERC20 tkn = IERC20(token);
SafeERC20.safeTransfer(tkn, receiver, tkn.balanceOf(address(this)));
}
}
}
/***************************************
HELPER FUNCTIONS
***************************************/
/**
* @notice Throws if the sender is not the owner.
*/
function _checkOwner() internal view {
if(_owner != msg.sender) revert Errors.NotContractOwner();
}
/**
* @notice Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal {
_pendingOwner = address(0);
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}{
"optimizer": {
"enabled": true,
"runs": 200000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"blast_","type":"address"},{"internalType":"address","name":"gasCollector_","type":"address"},{"internalType":"address","name":"blastPoints_","type":"address"},{"internalType":"address","name":"pointsOperator_","type":"address"},{"internalType":"address","name":"genesisAgentNft_","type":"address"},{"internalType":"address","name":"strategyAgentNft_","type":"address"},{"internalType":"address","name":"erc6551Registry_","type":"address"},{"internalType":"address","name":"agentRegistry_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"CallFailed","type":"error"},{"inputs":[],"name":"CreationSettingsPaused","type":"error"},{"inputs":[],"name":"DelegateCallFailed","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"NotAContract","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[],"name":"NotContractOwner","type":"error"},{"inputs":[],"name":"NotPendingContractOwner","type":"error"},{"inputs":[],"name":"OutOfRange","type":"error"},{"inputs":[],"name":"OverMaxCreationsPerUser","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"creationSettingsID","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"AgentCreationSettingsActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"creationSettingsID","type":"uint256"}],"name":"AgentCreationSettingsPosted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"SetMaxCreationsPerGenesisAgent","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"blast","outputs":[{"internalType":"address","name":"blast_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blastPoints","outputs":[{"internalType":"address","name":"blastPoints_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"creationSettingsID","type":"uint256"},{"internalType":"bytes[]","name":"callDatas","type":"bytes[]"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct IBlastooorStrategyFactory.TokenDeposit[]","name":"deposits","type":"tuple[]"}],"name":"createAgent","outputs":[{"components":[{"internalType":"uint256","name":"agentID","type":"uint256"},{"internalType":"address","name":"agentAddress","type":"address"}],"internalType":"struct IBlastooorStrategyFactory.AgentInfo","name":"info","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creationSettingsID","type":"uint256"}],"name":"createAgent","outputs":[{"components":[{"internalType":"uint256","name":"agentID","type":"uint256"},{"internalType":"address","name":"agentAddress","type":"address"}],"internalType":"struct IBlastooorStrategyFactory.AgentInfo","name":"info","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creationSettingsID","type":"uint256"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct IBlastooorStrategyFactory.TokenDeposit[]","name":"deposits","type":"tuple[]"}],"name":"createAgent","outputs":[{"components":[{"internalType":"uint256","name":"agentID","type":"uint256"},{"internalType":"address","name":"agentAddress","type":"address"}],"internalType":"struct IBlastooorStrategyFactory.AgentInfo","name":"info","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creationSettingsID","type":"uint256"},{"internalType":"bytes[]","name":"callDatas","type":"bytes[]"}],"name":"createAgent","outputs":[{"components":[{"internalType":"uint256","name":"agentID","type":"uint256"},{"internalType":"address","name":"agentAddress","type":"address"}],"internalType":"struct IBlastooorStrategyFactory.AgentInfo","name":"info","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creationSettingsID","type":"uint256"}],"name":"getAgentCreationSettings","outputs":[{"internalType":"address","name":"genesisAgentNft","type":"address"},{"internalType":"address","name":"strategyAgentNft","type":"address"},{"internalType":"address","name":"agentImplementation","type":"address"},{"internalType":"bytes[]","name":"initializationCalls","type":"bytes[]"},{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAgentCreationSettingsCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getCreateCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCreationsPerGenesisAgent","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"pendingOwner_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"agentImplementation","type":"address"},{"internalType":"bytes[]","name":"initializationCalls","type":"bytes[]"},{"internalType":"bool","name":"isActive","type":"bool"}],"internalType":"struct IBlastooorStrategyFactory.AgentCreationSettings","name":"creationSettings","type":"tuple"}],"name":"postAgentCreationSettings","outputs":[{"internalType":"uint256","name":"creationSettingsID","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creationSettingsID","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setActiveStatus","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"setMaxCreationsPerGenesisAgent","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"sweep","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
61010060405234801562000011575f80fd5b506040516200283938038062002839833981016040819052620000349162000387565b6001600160a01b03808916608081905281891660a05281881660c05290861660e05260408051600481526024810182526020810180516001600160e01b031663388a0bbd60e11b17905290518a928a928a928a929162000094916200043c565b5f604051808303815f865af19150503d805f8114620000cf576040519150601f19603f3d011682016040523d82523d5f602084013e620000d4565b606091505b505060408051600481526024810182526020810180516001600160e01b0316634e606c4760e01b17905290516001600160a01b03871692506200011891906200043c565b5f604051808303815f865af19150503d805f811462000153576040519150601f19603f3d011682016040523d82523d5f602084013e62000158565b606091505b5050506001600160a01b03831615620001ff576040516001600160a01b03848116602483015285169060440160408051601f198184030181529181526020820180516001600160e01b0316631d70c8d360e31b17905251620001bb91906200043c565b5f604051808303815f865af19150503d805f8114620001f6576040519150601f19603f3d011682016040523d82523d5f602084013e620001fb565b606091505b5050505b6001600160a01b03811615620002a3576040516001600160a01b03828116602483015283169060440160408051601f198184030181529181526020820180516001600160e01b03166336b91f2b60e01b179052516200025f91906200043c565b5f604051808303815f865af19150503d805f81146200029a576040519150601f19603f3d011682016040523d82523d5f602084013e6200029f565b606091505b5050505b50505050620002b8896200031260201b60201c565b600280546001600160a01b039586166001600160a01b0319918216179091556003805494861694821694909417909355600480549285169284169290921790915560058054919093169116179055506200046a9350505050565b600180546001600160a01b03199081169091555f80546001600160a01b03848116938216841783556040519116929183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811462000382575f80fd5b919050565b5f805f805f805f805f6101208a8c031215620003a1575f80fd5b620003ac8a6200036b565b9850620003bc60208b016200036b565b9750620003cc60408b016200036b565b9650620003dc60608b016200036b565b9550620003ec60808b016200036b565b9450620003fc60a08b016200036b565b93506200040c60c08b016200036b565b92506200041c60e08b016200036b565b91506200042d6101008b016200036b565b90509295985092959850929598565b5f82515f5b818110156200045d576020818601810151858301520162000441565b505f920191825250919050565b60805160a05160c05160e0516123a1620004985f395f50505f61037001525f50505f6101bc01526123a15ff3fe60806040526004361061015a575f3560e01c80638a179be4116100bb578063b2bd6b5011610071578063d536470011610057578063d5364700146103a7578063e30c3978146103ba578063f2fde38b146103e4575f80fd5b8063b2bd6b5014610362578063cb56199214610394575f80fd5b8063a4e838dc116100a1578063a4e838dc146102ff578063a61c456f1461032f578063ac9650d814610342575f80fd5b80638a179be4146102c35780638da5cb5b146102d6575f80fd5b806367e5f9c111610110578063715018a6116100f6578063715018a61461029e57806379ba5097146102a85780637fac64bd146102b0575f80fd5b806367e5f9c1146102775780636bf1073d1461028a575f80fd5b8063396d954311610140578063396d95431461020157806356e36b93146102505780635d39e84114610263575f80fd5b80631232f54714610165578063175e1a7d146101ae575f80fd5b3661016157005b5f80fd5b610178610173366004611aa6565b6103f7565b604080518251815260209283015173ffffffffffffffffffffffffffffffffffffffff1692810192909252015b60405180910390f35b3480156101b9575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000005b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a5565b34801561020c575f80fd5b5061024261021b366004611b3b565b73ffffffffffffffffffffffffffffffffffffffff165f9081526008602052604090205490565b6040519081526020016101a5565b61017861025e366004611b56565b610505565b34801561026e575f80fd5b50600754610242565b610242610285366004611b6d565b6105f1565b348015610295575f80fd5b50600954610242565b6102a66106b4565b005b6102a66106c7565b6102a66102be366004611bb1565b610726565b6102a66102d1366004611bdf565b6107ea565b3480156102e1575f80fd5b505f5473ffffffffffffffffffffffffffffffffffffffff166101dc565b34801561030a575f80fd5b5061031e610319366004611b56565b6108fd565b6040516101a5959493929190611cde565b6102a661033d366004611b56565b610a8d565b610355610350366004611d32565b610ad0565b6040516101a59190611d71565b34801561036d575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000006101dc565b6101786103a2366004611d83565b610bb9565b6101786103b5366004611dbe565b610cb6565b3480156103c5575f80fd5b5060015473ffffffffffffffffffffffffffffffffffffffff166101dc565b6102a66103f2366004611b3b565b610d20565b604080518082019091525f80825260208201525f61041487610d9d565b600354815191925073ffffffffffffffffffffffffffffffffffffffff169061043e9082906110c9565b925061044f836020015186866112d7565b61046183602001518360200151611383565b610470836020015188886113bf565b82516040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481019190915273ffffffffffffffffffffffffffffffffffffffff8216906323b872dd906064015f604051808303815f87803b1580156104e4575f80fd5b505af11580156104f6573d5f803e3d5ffd5b50505050505095945050505050565b604080518082019091525f80825260208201525f61052283610d9d565b600354815191925073ffffffffffffffffffffffffffffffffffffffff169061054c9082906110c9565b925061056083602001518360200151611383565b82516040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481019190915273ffffffffffffffffffffffffffffffffffffffff8216906323b872dd906064015f604051808303815f87803b1580156105d4575f80fd5b505af11580156105e6573d5f803e3d5ffd5b505050505050919050565b5f6105fa611433565b61060f61060a6020840184611b3b565b611483565b60075f815461061d90611e1a565b91829055505f818152600660205260409020909150829061063e82826120a4565b505060405181907fe95b57f159f969d25d454bf2c25ae4fa0b7142a468edaa36c216dcffb6fee6fa905f90a2807f9dc9d302390cc92d9eff0370520b3162832501c10ff62a747a44a3027201a71e61069c606085016040860161227c565b604051901515815260200160405180910390a2919050565b6106bc611433565b6106c55f6114c3565b565b600154339073ffffffffffffffffffffffffffffffffffffffff16811461071a576040517f3d6f519e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610723816114c3565b50565b61072e611433565b81158061073c575060075482115b15610773576040517f7db3aba700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8281526006602090815260409182902060020180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016841515908117909155915191825283917f9dc9d302390cc92d9eff0370520b3162832501c10ff62a747a44a3027201a71e910160405180910390a25050565b6107f2611433565b5f5b818110156108f7575f83838381811061080f5761080f612297565b90506020020160208101906108249190611b3b565b905073ffffffffffffffffffffffffffffffffffffffff81166108515761084b8547611541565b506108ee565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906108ec908290889073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156108c3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108e791906122c4565b611636565b505b506001016107f4565b50505050565b5f8080606081851580610911575060075486115b15610948576040517f7db3aba700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002546003545f8881526006602090815260408083208151606081018352815473ffffffffffffffffffffffffffffffffffffffff90811682526001830180548551818802810188019096528086529882169d5096169a5093959394909385840193879084015b82821015610a57578382905f5260205f200180546109cc90611edf565b80601f01602080910402602001604051908101604052809291908181526020018280546109f890611edf565b8015610a435780601f10610a1a57610100808354040283529160200191610a43565b820191905f5260205f20905b815481529060010190602001808311610a2657829003601f168201915b5050505050815260200190600101906109af565b505050908252506002919091015460ff161515602091820152815190820151604090920151979996985096909590945092505050565b610a95611433565b60098190556040518181527f131c00edde667e38c583b0b79a10c4dc72b3d9e4282ed8762c94cb98ac7f262d9060200160405180910390a150565b60608167ffffffffffffffff811115610aeb57610aeb611eb2565b604051908082528060200260200182016040528015610b1e57816020015b6060815260200190600190039081610b095790505b5090505f5b82811015610bb157610b8c30858584818110610b4157610b41612297565b9050602002810190610b539190611e51565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506116c392505050565b828281518110610b9e57610b9e612297565b6020908102919091010152600101610b23565b505b92915050565b604080518082019091525f80825260208201525f610bd685610d9d565b600354815191925073ffffffffffffffffffffffffffffffffffffffff1690610c009082906110c9565b9250610c11836020015186866112d7565b610c2383602001518360200151611383565b82516040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481019190915273ffffffffffffffffffffffffffffffffffffffff8216906323b872dd906064015f604051808303815f87803b158015610c97575f80fd5b505af1158015610ca9573d5f803e3d5ffd5b5050505050509392505050565b604080518082019091525f80825260208201525f610cd385610d9d565b600354815191925073ffffffffffffffffffffffffffffffffffffffff1690610cfd9082906110c9565b9250610d1183602001518360200151611383565b610c23836020015186866113bf565b610d28611433565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8381169182179092555f8054604051929316917f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227009190a350565b610dd760405180606001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f151581525090565b6005546040517f1e17c0ca0000000000000000000000000000000000000000000000000000000081523360048201525f9173ffffffffffffffffffffffffffffffffffffffff1690631e17c0ca906024016040805180830381865afa158015610e42573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e6691906122db565b5060025490915073ffffffffffffffffffffffffffffffffffffffff808316911614610ebe576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b335f90815260086020526040812054610ed8906001612307565b9050600954811115610f16576040517fba0e484c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b335f908152600860205260409020819055831580610f35575060075484115b15610f6c576040517f7db3aba700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8481526006602090815260408083208151606081018352815473ffffffffffffffffffffffffffffffffffffffff1681526001820180548451818702810187019095528085529195929486810194939192919084015b8282101561106b578382905f5260205f20018054610fe090611edf565b80601f016020809104026020016040519081016040528092919081815260200182805461100c90611edf565b80156110575780601f1061102e57610100808354040283529160200191611057565b820191905f5260205f20905b81548152906001019060200180831161103a57829003601f168201915b505050505081526020019060010190610fc3565b505050908252506002919091015460ff16151560209091015260408101519093506110c2576040517f680d9f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050919050565b604080518082019091525f80825260208201525f8373ffffffffffffffffffffffffffffffffffffffff1663457e8e1e6040518163ffffffff1660e01b81526004016020604051808303815f875af1158015611127573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061114b91906122c4565b808352600480546040517f8a54c52f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116938201939093525f60248201819052466044830152888416606483015260848201859052939450911690638a54c52f9060a4016020604051808303815f875af11580156111df573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611203919061231a565b73ffffffffffffffffffffffffffffffffffffffff8181166020868101829052600554604080516080810182529384528985169284019283528a85168482019081526060850189815291517f2b2ea10700000000000000000000000000000000000000000000000000000000815294518616600486015292518516602485015291518416604484015290516064830152929350911690632b2ea107906084015f604051808303815f87803b1580156112b9575f80fd5b505af11580156112cb573d5f803e3d5ffd5b50505050505092915050565b5f5b818110156108f7575f8383838181106112f4576112f4612297565b61130a9260206040909202019081019150611b3b565b90505f84848481811061131f5761131f612297565b9050604002016020013590505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361136e576113688682611541565b50611379565b611379828783611636565b50506001016112d9565b5f5b81518110156113ba576113b1838383815181106113a4576113a4612297565b602002602001015161177e565b50600101611385565b505050565b5f5b818110156108f75761142a848484848181106113df576113df612297565b90506020028101906113f19190611e51565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061177e92505050565b506001016113c1565b5f5473ffffffffffffffffffffffffffffffffffffffff1633146106c5576040517fbfcafd3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803b5f8190036114bf576040517f09ee12d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091555f805473ffffffffffffffffffffffffffffffffffffffff848116938216841783556040519116929183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608147101561157d576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f808473ffffffffffffffffffffffffffffffffffffffff16846040515f6040518083038185875af1925050503d805f81146115d4576040519150601f19603f3d011682016040523d82523d5f602084013e6115d9565b606091505b509150915081156115ec5780925061162e565b8051156115fc5780518082602001fd5b6040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505092915050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526113ba9084906117e0565b60605f808473ffffffffffffffffffffffffffffffffffffffff16846040516116ec9190612335565b5f60405180830381855af49150503d805f8114611724576040519150601f19603f3d011682016040523d82523d5f602084013e611729565b606091505b5091509150811561173c5780925061162e565b80511561174c5780518082602001fd5b6040517f18cecad500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60605f808473ffffffffffffffffffffffffffffffffffffffff16846040516117a79190612335565b5f604051808303815f865af19150503d805f81146115d4576040519150601f19603f3d011682016040523d82523d5f602084013e6115d9565b5f61180173ffffffffffffffffffffffffffffffffffffffff841683611879565b905080515f141580156118255750808060200190518101906118239190612350565b155b156113ba576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024015b60405180910390fd5b606061188683835f61188d565b9392505050565b6060814710156118cb576040517fcd786059000000000000000000000000000000000000000000000000000000008152306004820152602401611870565b5f808573ffffffffffffffffffffffffffffffffffffffff1684866040516118f39190612335565b5f6040518083038185875af1925050503d805f811461192d576040519150601f19603f3d011682016040523d82523d5f602084013e611932565b606091505b509150915061194286838361194c565b9695505050505050565b6060826119615761195c826119db565b611886565b8151158015611985575073ffffffffffffffffffffffffffffffffffffffff84163b155b156119d4576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401611870565b5080611886565b8051156119eb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8083601f840112611a2d575f80fd5b50813567ffffffffffffffff811115611a44575f80fd5b6020830191508360208260051b8501011115611a5e575f80fd5b9250929050565b5f8083601f840112611a75575f80fd5b50813567ffffffffffffffff811115611a8c575f80fd5b6020830191508360208260061b8501011115611a5e575f80fd5b5f805f805f60608688031215611aba575f80fd5b85359450602086013567ffffffffffffffff80821115611ad8575f80fd5b611ae489838a01611a1d565b90965094506040880135915080821115611afc575f80fd5b50611b0988828901611a65565b969995985093965092949392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610723575f80fd5b5f60208284031215611b4b575f80fd5b813561188681611b1a565b5f60208284031215611b66575f80fd5b5035919050565b5f60208284031215611b7d575f80fd5b813567ffffffffffffffff811115611b93575f80fd5b820160608185031215611886575f80fd5b8015158114610723575f80fd5b5f8060408385031215611bc2575f80fd5b823591506020830135611bd481611ba4565b809150509250929050565b5f805f60408486031215611bf1575f80fd5b8335611bfc81611b1a565b9250602084013567ffffffffffffffff811115611c17575f80fd5b611c2386828701611a1d565b9497909650939450505050565b5f5b83811015611c4a578181015183820152602001611c32565b50505f910152565b5f82825180855260208086019550808260051b8401018186015f5b84811015611cd1577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe080878503018a5282518051808652611cb381888801898501611c30565b9a86019a601f01909116939093018401925090830190600101611c6d565b5090979650505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff8088168352808716602084015280861660408401525060a06060830152611d1e60a0830185611c52565b905082151560808301529695505050505050565b5f8060208385031215611d43575f80fd5b823567ffffffffffffffff811115611d59575f80fd5b611d6585828601611a1d565b90969095509350505050565b602081525f6118866020830184611c52565b5f805f60408486031215611d95575f80fd5b83359250602084013567ffffffffffffffff811115611db2575f80fd5b611c2386828701611a65565b5f805f60408486031215611dd0575f80fd5b83359250602084013567ffffffffffffffff811115611c17575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611e4a57611e4a611ded565b5060010190565b5f8083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611e84575f80fd5b83018035915067ffffffffffffffff821115611e9e575f80fd5b602001915036819003821315611a5e575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b600181811c90821680611ef357607f821691505b602082108103611f2a577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b5b818110156114bf575f8155600101611f31565b601f8211156113ba57805f5260205f20601f840160051c81016020851015611f695750805b611f7b601f850160051c830182611f30565b5050505050565b67ffffffffffffffff831115611f9a57611f9a611eb2565b611fae83611fa88354611edf565b83611f44565b5f601f841160018114611ffe575f8515611fc85750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611f7b565b5f838152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08716915b8281101561204b578685013582556020948501946001909201910161202b565b5086821015612086577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f8135610bb381611ba4565b81356120af81611b1a565b73ffffffffffffffffffffffffffffffffffffffff81167fffffffffffffffffffffffff00000000000000000000000000000000000000008354161782555060018082016020808501357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1863603018112612128575f80fd5b8501803567ffffffffffffffff811115612140575f80fd5b60208201915060058160051b3603831315612159575f80fd5b6801000000000000000082111561217257612172611eb2565b8454828655808310156121f3575f868152602090208381019082015b808210156121f0576121a08254611edf565b80156121e657601f808211600181146121bb575f85556121e3565b5f858152602090206121d5838501891c82018e8301611f30565b505f85815260208120818755555b50505b509088019061218e565b50505b50505f938452602084209382905b8281101561222f576122138285611e51565b61221e81838a611f82565b505094860194908401908601612201565b505050505050506114bf61224560408401612098565b600283017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff8315151681178255505050565b5f6020828403121561228c575f80fd5b813561188681611ba4565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f602082840312156122d4575f80fd5b5051919050565b5f80604083850312156122ec575f80fd5b82516122f781611b1a565b6020939093015192949293505050565b80820180821115610bb357610bb3611ded565b5f6020828403121561232a575f80fd5b815161188681611b1a565b5f8251612346818460208701611c30565b9190910192915050565b5f60208284031215612360575f80fd5b815161188681611ba456fea26469706673582212208303a4f31e7a991c4ad4b166e0c4e4195f3ae6d4ccc6c386ec0dd33d250ec1da64736f6c63430008180033000000000000000000000000a214a4fc09c42202c404e2976c50373fe5f5b7890000000000000000000000004300000000000000000000000000000000000002000000000000000000000000f237c20584daca970498917470864f4d027de4ca0000000000000000000000002536fe9ab3f511540f2f9e2ec2a805005c3dd800000000000000000000000000454c0c1cf7be9341d82ce0f16979b8689ed4aad00000000000000000000000005066a1975be96b777dddf57b496397effddcb4a900000000000000000000000073e75e837e4f3884ed474988c304de8a437acbef000000000000000000000000000000006551c19487814612e58fe0681377575800000000000000000000000012f0a3453f63516815fe41c89fae84d218af0faf
Deployed Bytecode
0x60806040526004361061015a575f3560e01c80638a179be4116100bb578063b2bd6b5011610071578063d536470011610057578063d5364700146103a7578063e30c3978146103ba578063f2fde38b146103e4575f80fd5b8063b2bd6b5014610362578063cb56199214610394575f80fd5b8063a4e838dc116100a1578063a4e838dc146102ff578063a61c456f1461032f578063ac9650d814610342575f80fd5b80638a179be4146102c35780638da5cb5b146102d6575f80fd5b806367e5f9c111610110578063715018a6116100f6578063715018a61461029e57806379ba5097146102a85780637fac64bd146102b0575f80fd5b806367e5f9c1146102775780636bf1073d1461028a575f80fd5b8063396d954311610140578063396d95431461020157806356e36b93146102505780635d39e84114610263575f80fd5b80631232f54714610165578063175e1a7d146101ae575f80fd5b3661016157005b5f80fd5b610178610173366004611aa6565b6103f7565b604080518251815260209283015173ffffffffffffffffffffffffffffffffffffffff1692810192909252015b60405180910390f35b3480156101b9575f80fd5b507f00000000000000000000000043000000000000000000000000000000000000025b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a5565b34801561020c575f80fd5b5061024261021b366004611b3b565b73ffffffffffffffffffffffffffffffffffffffff165f9081526008602052604090205490565b6040519081526020016101a5565b61017861025e366004611b56565b610505565b34801561026e575f80fd5b50600754610242565b610242610285366004611b6d565b6105f1565b348015610295575f80fd5b50600954610242565b6102a66106b4565b005b6102a66106c7565b6102a66102be366004611bb1565b610726565b6102a66102d1366004611bdf565b6107ea565b3480156102e1575f80fd5b505f5473ffffffffffffffffffffffffffffffffffffffff166101dc565b34801561030a575f80fd5b5061031e610319366004611b56565b6108fd565b6040516101a5959493929190611cde565b6102a661033d366004611b56565b610a8d565b610355610350366004611d32565b610ad0565b6040516101a59190611d71565b34801561036d575f80fd5b507f0000000000000000000000002536fe9ab3f511540f2f9e2ec2a805005c3dd8006101dc565b6101786103a2366004611d83565b610bb9565b6101786103b5366004611dbe565b610cb6565b3480156103c5575f80fd5b5060015473ffffffffffffffffffffffffffffffffffffffff166101dc565b6102a66103f2366004611b3b565b610d20565b604080518082019091525f80825260208201525f61041487610d9d565b600354815191925073ffffffffffffffffffffffffffffffffffffffff169061043e9082906110c9565b925061044f836020015186866112d7565b61046183602001518360200151611383565b610470836020015188886113bf565b82516040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481019190915273ffffffffffffffffffffffffffffffffffffffff8216906323b872dd906064015f604051808303815f87803b1580156104e4575f80fd5b505af11580156104f6573d5f803e3d5ffd5b50505050505095945050505050565b604080518082019091525f80825260208201525f61052283610d9d565b600354815191925073ffffffffffffffffffffffffffffffffffffffff169061054c9082906110c9565b925061056083602001518360200151611383565b82516040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481019190915273ffffffffffffffffffffffffffffffffffffffff8216906323b872dd906064015f604051808303815f87803b1580156105d4575f80fd5b505af11580156105e6573d5f803e3d5ffd5b505050505050919050565b5f6105fa611433565b61060f61060a6020840184611b3b565b611483565b60075f815461061d90611e1a565b91829055505f818152600660205260409020909150829061063e82826120a4565b505060405181907fe95b57f159f969d25d454bf2c25ae4fa0b7142a468edaa36c216dcffb6fee6fa905f90a2807f9dc9d302390cc92d9eff0370520b3162832501c10ff62a747a44a3027201a71e61069c606085016040860161227c565b604051901515815260200160405180910390a2919050565b6106bc611433565b6106c55f6114c3565b565b600154339073ffffffffffffffffffffffffffffffffffffffff16811461071a576040517f3d6f519e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610723816114c3565b50565b61072e611433565b81158061073c575060075482115b15610773576040517f7db3aba700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8281526006602090815260409182902060020180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016841515908117909155915191825283917f9dc9d302390cc92d9eff0370520b3162832501c10ff62a747a44a3027201a71e910160405180910390a25050565b6107f2611433565b5f5b818110156108f7575f83838381811061080f5761080f612297565b90506020020160208101906108249190611b3b565b905073ffffffffffffffffffffffffffffffffffffffff81166108515761084b8547611541565b506108ee565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906108ec908290889073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156108c3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108e791906122c4565b611636565b505b506001016107f4565b50505050565b5f8080606081851580610911575060075486115b15610948576040517f7db3aba700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002546003545f8881526006602090815260408083208151606081018352815473ffffffffffffffffffffffffffffffffffffffff90811682526001830180548551818802810188019096528086529882169d5096169a5093959394909385840193879084015b82821015610a57578382905f5260205f200180546109cc90611edf565b80601f01602080910402602001604051908101604052809291908181526020018280546109f890611edf565b8015610a435780601f10610a1a57610100808354040283529160200191610a43565b820191905f5260205f20905b815481529060010190602001808311610a2657829003601f168201915b5050505050815260200190600101906109af565b505050908252506002919091015460ff161515602091820152815190820151604090920151979996985096909590945092505050565b610a95611433565b60098190556040518181527f131c00edde667e38c583b0b79a10c4dc72b3d9e4282ed8762c94cb98ac7f262d9060200160405180910390a150565b60608167ffffffffffffffff811115610aeb57610aeb611eb2565b604051908082528060200260200182016040528015610b1e57816020015b6060815260200190600190039081610b095790505b5090505f5b82811015610bb157610b8c30858584818110610b4157610b41612297565b9050602002810190610b539190611e51565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506116c392505050565b828281518110610b9e57610b9e612297565b6020908102919091010152600101610b23565b505b92915050565b604080518082019091525f80825260208201525f610bd685610d9d565b600354815191925073ffffffffffffffffffffffffffffffffffffffff1690610c009082906110c9565b9250610c11836020015186866112d7565b610c2383602001518360200151611383565b82516040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481019190915273ffffffffffffffffffffffffffffffffffffffff8216906323b872dd906064015f604051808303815f87803b158015610c97575f80fd5b505af1158015610ca9573d5f803e3d5ffd5b5050505050509392505050565b604080518082019091525f80825260208201525f610cd385610d9d565b600354815191925073ffffffffffffffffffffffffffffffffffffffff1690610cfd9082906110c9565b9250610d1183602001518360200151611383565b610c23836020015186866113bf565b610d28611433565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8381169182179092555f8054604051929316917f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227009190a350565b610dd760405180606001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f151581525090565b6005546040517f1e17c0ca0000000000000000000000000000000000000000000000000000000081523360048201525f9173ffffffffffffffffffffffffffffffffffffffff1690631e17c0ca906024016040805180830381865afa158015610e42573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e6691906122db565b5060025490915073ffffffffffffffffffffffffffffffffffffffff808316911614610ebe576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b335f90815260086020526040812054610ed8906001612307565b9050600954811115610f16576040517fba0e484c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b335f908152600860205260409020819055831580610f35575060075484115b15610f6c576040517f7db3aba700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8481526006602090815260408083208151606081018352815473ffffffffffffffffffffffffffffffffffffffff1681526001820180548451818702810187019095528085529195929486810194939192919084015b8282101561106b578382905f5260205f20018054610fe090611edf565b80601f016020809104026020016040519081016040528092919081815260200182805461100c90611edf565b80156110575780601f1061102e57610100808354040283529160200191611057565b820191905f5260205f20905b81548152906001019060200180831161103a57829003601f168201915b505050505081526020019060010190610fc3565b505050908252506002919091015460ff16151560209091015260408101519093506110c2576040517f680d9f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050919050565b604080518082019091525f80825260208201525f8373ffffffffffffffffffffffffffffffffffffffff1663457e8e1e6040518163ffffffff1660e01b81526004016020604051808303815f875af1158015611127573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061114b91906122c4565b808352600480546040517f8a54c52f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116938201939093525f60248201819052466044830152888416606483015260848201859052939450911690638a54c52f9060a4016020604051808303815f875af11580156111df573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611203919061231a565b73ffffffffffffffffffffffffffffffffffffffff8181166020868101829052600554604080516080810182529384528985169284019283528a85168482019081526060850189815291517f2b2ea10700000000000000000000000000000000000000000000000000000000815294518616600486015292518516602485015291518416604484015290516064830152929350911690632b2ea107906084015f604051808303815f87803b1580156112b9575f80fd5b505af11580156112cb573d5f803e3d5ffd5b50505050505092915050565b5f5b818110156108f7575f8383838181106112f4576112f4612297565b61130a9260206040909202019081019150611b3b565b90505f84848481811061131f5761131f612297565b9050604002016020013590505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361136e576113688682611541565b50611379565b611379828783611636565b50506001016112d9565b5f5b81518110156113ba576113b1838383815181106113a4576113a4612297565b602002602001015161177e565b50600101611385565b505050565b5f5b818110156108f75761142a848484848181106113df576113df612297565b90506020028101906113f19190611e51565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061177e92505050565b506001016113c1565b5f5473ffffffffffffffffffffffffffffffffffffffff1633146106c5576040517fbfcafd3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803b5f8190036114bf576040517f09ee12d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091555f805473ffffffffffffffffffffffffffffffffffffffff848116938216841783556040519116929183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608147101561157d576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f808473ffffffffffffffffffffffffffffffffffffffff16846040515f6040518083038185875af1925050503d805f81146115d4576040519150601f19603f3d011682016040523d82523d5f602084013e6115d9565b606091505b509150915081156115ec5780925061162e565b8051156115fc5780518082602001fd5b6040517f3204506f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505092915050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526113ba9084906117e0565b60605f808473ffffffffffffffffffffffffffffffffffffffff16846040516116ec9190612335565b5f60405180830381855af49150503d805f8114611724576040519150601f19603f3d011682016040523d82523d5f602084013e611729565b606091505b5091509150811561173c5780925061162e565b80511561174c5780518082602001fd5b6040517f18cecad500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60605f808473ffffffffffffffffffffffffffffffffffffffff16846040516117a79190612335565b5f604051808303815f865af19150503d805f81146115d4576040519150601f19603f3d011682016040523d82523d5f602084013e6115d9565b5f61180173ffffffffffffffffffffffffffffffffffffffff841683611879565b905080515f141580156118255750808060200190518101906118239190612350565b155b156113ba576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024015b60405180910390fd5b606061188683835f61188d565b9392505050565b6060814710156118cb576040517fcd786059000000000000000000000000000000000000000000000000000000008152306004820152602401611870565b5f808573ffffffffffffffffffffffffffffffffffffffff1684866040516118f39190612335565b5f6040518083038185875af1925050503d805f811461192d576040519150601f19603f3d011682016040523d82523d5f602084013e611932565b606091505b509150915061194286838361194c565b9695505050505050565b6060826119615761195c826119db565b611886565b8151158015611985575073ffffffffffffffffffffffffffffffffffffffff84163b155b156119d4576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401611870565b5080611886565b8051156119eb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8083601f840112611a2d575f80fd5b50813567ffffffffffffffff811115611a44575f80fd5b6020830191508360208260051b8501011115611a5e575f80fd5b9250929050565b5f8083601f840112611a75575f80fd5b50813567ffffffffffffffff811115611a8c575f80fd5b6020830191508360208260061b8501011115611a5e575f80fd5b5f805f805f60608688031215611aba575f80fd5b85359450602086013567ffffffffffffffff80821115611ad8575f80fd5b611ae489838a01611a1d565b90965094506040880135915080821115611afc575f80fd5b50611b0988828901611a65565b969995985093965092949392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610723575f80fd5b5f60208284031215611b4b575f80fd5b813561188681611b1a565b5f60208284031215611b66575f80fd5b5035919050565b5f60208284031215611b7d575f80fd5b813567ffffffffffffffff811115611b93575f80fd5b820160608185031215611886575f80fd5b8015158114610723575f80fd5b5f8060408385031215611bc2575f80fd5b823591506020830135611bd481611ba4565b809150509250929050565b5f805f60408486031215611bf1575f80fd5b8335611bfc81611b1a565b9250602084013567ffffffffffffffff811115611c17575f80fd5b611c2386828701611a1d565b9497909650939450505050565b5f5b83811015611c4a578181015183820152602001611c32565b50505f910152565b5f82825180855260208086019550808260051b8401018186015f5b84811015611cd1577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe080878503018a5282518051808652611cb381888801898501611c30565b9a86019a601f01909116939093018401925090830190600101611c6d565b5090979650505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff8088168352808716602084015280861660408401525060a06060830152611d1e60a0830185611c52565b905082151560808301529695505050505050565b5f8060208385031215611d43575f80fd5b823567ffffffffffffffff811115611d59575f80fd5b611d6585828601611a1d565b90969095509350505050565b602081525f6118866020830184611c52565b5f805f60408486031215611d95575f80fd5b83359250602084013567ffffffffffffffff811115611db2575f80fd5b611c2386828701611a65565b5f805f60408486031215611dd0575f80fd5b83359250602084013567ffffffffffffffff811115611c17575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611e4a57611e4a611ded565b5060010190565b5f8083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611e84575f80fd5b83018035915067ffffffffffffffff821115611e9e575f80fd5b602001915036819003821315611a5e575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b600181811c90821680611ef357607f821691505b602082108103611f2a577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b5b818110156114bf575f8155600101611f31565b601f8211156113ba57805f5260205f20601f840160051c81016020851015611f695750805b611f7b601f850160051c830182611f30565b5050505050565b67ffffffffffffffff831115611f9a57611f9a611eb2565b611fae83611fa88354611edf565b83611f44565b5f601f841160018114611ffe575f8515611fc85750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611f7b565b5f838152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08716915b8281101561204b578685013582556020948501946001909201910161202b565b5086821015612086577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f8135610bb381611ba4565b81356120af81611b1a565b73ffffffffffffffffffffffffffffffffffffffff81167fffffffffffffffffffffffff00000000000000000000000000000000000000008354161782555060018082016020808501357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1863603018112612128575f80fd5b8501803567ffffffffffffffff811115612140575f80fd5b60208201915060058160051b3603831315612159575f80fd5b6801000000000000000082111561217257612172611eb2565b8454828655808310156121f3575f868152602090208381019082015b808210156121f0576121a08254611edf565b80156121e657601f808211600181146121bb575f85556121e3565b5f858152602090206121d5838501891c82018e8301611f30565b505f85815260208120818755555b50505b509088019061218e565b50505b50505f938452602084209382905b8281101561222f576122138285611e51565b61221e81838a611f82565b505094860194908401908601612201565b505050505050506114bf61224560408401612098565b600283017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff8315151681178255505050565b5f6020828403121561228c575f80fd5b813561188681611ba4565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f602082840312156122d4575f80fd5b5051919050565b5f80604083850312156122ec575f80fd5b82516122f781611b1a565b6020939093015192949293505050565b80820180821115610bb357610bb3611ded565b5f6020828403121561232a575f80fd5b815161188681611b1a565b5f8251612346818460208701611c30565b9190910192915050565b5f60208284031215612360575f80fd5b815161188681611ba456fea26469706673582212208303a4f31e7a991c4ad4b166e0c4e4195f3ae6d4ccc6c386ec0dd33d250ec1da64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a214a4fc09c42202c404e2976c50373fe5f5b7890000000000000000000000004300000000000000000000000000000000000002000000000000000000000000f237c20584daca970498917470864f4d027de4ca0000000000000000000000002536fe9ab3f511540f2f9e2ec2a805005c3dd800000000000000000000000000454c0c1cf7be9341d82ce0f16979b8689ed4aad00000000000000000000000005066a1975be96b777dddf57b496397effddcb4a900000000000000000000000073e75e837e4f3884ed474988c304de8a437acbef000000000000000000000000000000006551c19487814612e58fe0681377575800000000000000000000000012f0a3453f63516815fe41c89fae84d218af0faf
-----Decoded View---------------
Arg [0] : owner_ (address): 0xA214a4fc09C42202C404E2976c50373fE5F5B789
Arg [1] : blast_ (address): 0x4300000000000000000000000000000000000002
Arg [2] : gasCollector_ (address): 0xf237c20584DaCA970498917470864f4d027de4ca
Arg [3] : blastPoints_ (address): 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800
Arg [4] : pointsOperator_ (address): 0x454c0C1CF7be9341d82ce0F16979B8689ED4AAD0
Arg [5] : genesisAgentNft_ (address): 0x5066A1975BE96B777ddDf57b496397efFdDcB4A9
Arg [6] : strategyAgentNft_ (address): 0x73E75E837e4F3884ED474988c304dE8A437aCbEf
Arg [7] : erc6551Registry_ (address): 0x000000006551c19487814612e58FE06813775758
Arg [8] : agentRegistry_ (address): 0x12F0A3453F63516815fe41c89fAe84d218Af0FAF
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000a214a4fc09c42202c404e2976c50373fe5f5b789
Arg [1] : 0000000000000000000000004300000000000000000000000000000000000002
Arg [2] : 000000000000000000000000f237c20584daca970498917470864f4d027de4ca
Arg [3] : 0000000000000000000000002536fe9ab3f511540f2f9e2ec2a805005c3dd800
Arg [4] : 000000000000000000000000454c0c1cf7be9341d82ce0f16979b8689ed4aad0
Arg [5] : 0000000000000000000000005066a1975be96b777dddf57b496397effddcb4a9
Arg [6] : 00000000000000000000000073e75e837e4f3884ed474988c304de8a437acbef
Arg [7] : 000000000000000000000000000000006551c19487814612e58fe06813775758
Arg [8] : 00000000000000000000000012f0a3453f63516815fe41c89fae84d218af0faf
Net Worth in USD
Net Worth in ETH
Token Allocations
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| BLAST | 100.00% | $2,930.25 | 0.00348801 | $10.22 |
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.