Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 28289059 | 24 hrs ago | 0 ETH | ||||
| 28289059 | 24 hrs ago | 0 ETH | ||||
| 28289059 | 24 hrs ago | 0 ETH | ||||
| 28289059 | 24 hrs ago | 0 ETH | ||||
| 28289059 | 24 hrs ago | 0 ETH | ||||
| 28289059 | 24 hrs ago | 0 ETH | ||||
| 28289059 | 24 hrs ago | 0 ETH | ||||
| 28265933 | 39 hrs ago | 0 ETH | ||||
| 28265933 | 39 hrs ago | 0 ETH | ||||
| 28265933 | 39 hrs ago | 0 ETH | ||||
| 28265933 | 39 hrs ago | 0 ETH | ||||
| 28265933 | 39 hrs ago | 0 ETH | ||||
| 28265933 | 39 hrs ago | 0 ETH | ||||
| 28265933 | 39 hrs ago | 0 ETH | ||||
| 28256293 | 45 hrs ago | 0 ETH | ||||
| 28256293 | 45 hrs ago | 0 ETH | ||||
| 28256293 | 45 hrs ago | 0 ETH | ||||
| 28256293 | 45 hrs ago | 0 ETH | ||||
| 28256293 | 45 hrs ago | 0 ETH | ||||
| 28256293 | 45 hrs ago | 0 ETH | ||||
| 28256293 | 45 hrs ago | 0 ETH | ||||
| 28237762 | 2 days ago | 0 ETH | ||||
| 28237762 | 2 days ago | 0 ETH | ||||
| 28237762 | 2 days ago | 0 ETH | ||||
| 28237762 | 2 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
EnsoShortcuts
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.19;
import { AbstractEnsoShortcuts } from "./AbstractEnsoShortcuts.sol";
contract EnsoShortcuts is AbstractEnsoShortcuts {
address immutable public executor;
error NotPermitted();
constructor(address executor_) {
executor = executor_;
}
function _checkMsgSender() internal override view {
if (msg.sender != executor) revert NotPermitted();
}
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.19;
import { VM } from "enso-weiroll/VM.sol";
import { ERC721Holder } from "openzeppelin-contracts/token/ERC721/utils/ERC721Holder.sol";
import { ERC1155Holder } from "openzeppelin-contracts/token/ERC1155/utils/ERC1155Holder.sol";
abstract contract AbstractEnsoShortcuts is VM, ERC721Holder, ERC1155Holder {
event ShortcutExecuted(bytes32 accountId, bytes32 requestId);
// @notice Execute a shortcut
// @param accountId The bytes32 value representing an API user
// @param requestId The bytes32 value representing an API request
// @param commands An array of bytes32 values that encode calls
// @param state An array of bytes that are used to generate call data for each command
function executeShortcut(
bytes32 accountId,
bytes32 requestId,
bytes32[] calldata commands,
bytes[] calldata state
) public virtual payable returns (bytes[] memory response) {
_checkMsgSender();
response = _execute(commands, state);
emit ShortcutExecuted(accountId, requestId);
}
//@notice Abstract function to validate msg.sender
function _checkMsgSender() internal virtual view;
receive() external virtual payable {}
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.16;
import "./CommandBuilder.sol";
abstract contract VM {
using CommandBuilder for bytes[];
uint256 constant FLAG_CT_DELEGATECALL = 0x00; // Delegate call not currently supported
uint256 constant FLAG_CT_CALL = 0x01;
uint256 constant FLAG_CT_STATICCALL = 0x02;
uint256 constant FLAG_CT_VALUECALL = 0x03;
uint256 constant FLAG_CT_MASK = 0x03;
uint256 constant FLAG_DATA = 0x20;
uint256 constant FLAG_EXTENDED_COMMAND = 0x40;
uint256 constant FLAG_TUPLE_RETURN = 0x80;
uint256 constant SHORT_COMMAND_FILL =
0x000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
error ExecutionFailed(
uint256 command_index,
address target,
string message
);
function _execute(bytes32[] calldata commands, bytes[] memory state)
internal
returns (bytes[] memory)
{
bytes32 command;
uint256 flags;
bytes32 indices;
bool success;
bytes memory outData;
uint256 commandsLength = commands.length;
uint256 indicesLength;
for (uint256 i; i < commandsLength; i = _uncheckedIncrement(i)) {
command = commands[i];
flags = uint256(uint8(bytes1(command << 32)));
if (flags & FLAG_EXTENDED_COMMAND != 0) {
i = _uncheckedIncrement(i);
indices = commands[i];
indicesLength = 32;
} else {
indices = bytes32(uint256(command << 40) | SHORT_COMMAND_FILL);
indicesLength = 6;
}
if (flags & FLAG_CT_MASK == FLAG_CT_CALL) {
(success, outData) = address(uint160(uint256(command))).call( // target
// inputs
flags & FLAG_DATA == 0
? state.buildInputs(
bytes4(command), // selector
indices,
indicesLength
)
: state[
uint8(bytes1(indices)) &
CommandBuilder.IDX_VALUE_MASK
]
);
} else if (flags & FLAG_CT_MASK == FLAG_CT_STATICCALL) {
(success, outData) = address(uint160(uint256(command))) // target
.staticcall(
// inputs
flags & FLAG_DATA == 0
? state.buildInputs(
bytes4(command), // selector
indices,
indicesLength
)
: state[
uint8(bytes1(indices)) &
CommandBuilder.IDX_VALUE_MASK
]
);
} else if (flags & FLAG_CT_MASK == FLAG_CT_VALUECALL) {
bytes memory v = state[
uint8(bytes1(indices)) &
CommandBuilder.IDX_VALUE_MASK
];
require(v.length == 32, "Value must be 32 bytes");
uint256 callEth = uint256(bytes32(v));
(success, outData) = address(uint160(uint256(command))).call{ // target
value: callEth
}(
// inputs
flags & FLAG_DATA == 0
? state.buildInputs(
bytes4(command), // selector
indices << 8, // skip value input
indicesLength - 1 // max indices length reduced by value input
)
: state[
uint8(bytes1(indices << 8)) & // first byte after value input
CommandBuilder.IDX_VALUE_MASK
]
);
} else {
revert("Invalid calltype");
}
if (!success) {
string memory message = "Unknown";
if (outData.length > 68) {
// This might be an error message, parse the outData
// Estimate the bytes length of the possible error message
uint256 estimatedLength = _estimateBytesLength(outData, 68);
// Remove selector. First 32 bytes should be a pointer that indicates the start of data in memory
assembly {
outData := add(outData, 4)
}
uint256 pointer = uint256(bytes32(outData));
if (pointer == 32) {
// Remove pointer. If it is a string, the next 32 bytes will hold the size
assembly {
outData := add(outData, 32)
}
uint256 size = uint256(bytes32(outData));
// If the size variable is the same as the estimated bytes length, we can be fairly certain
// this is a dynamic string, so convert the bytes to a string and emit the message. While an
// error function with 3 static parameters is capable of producing a similar output, there is
// low risk of a contract unintentionally emitting a message.
if (size == estimatedLength) {
// Remove size. The remaining data should be the string content
assembly {
outData := add(outData, 32)
}
message = string(outData);
}
}
}
revert ExecutionFailed({
command_index: flags & FLAG_EXTENDED_COMMAND == 0
? i
: i - 1,
target: address(uint160(uint256(command))),
message: message
});
}
if (flags & FLAG_TUPLE_RETURN != 0) {
state.writeTuple(bytes1(command << 88), outData);
} else {
state = state.writeOutputs(bytes1(command << 88), outData);
}
}
return state;
}
function _estimateBytesLength(bytes memory data, uint256 pos) internal pure returns (uint256 estimate) {
uint256 length = data.length;
estimate = length - pos; // Assume length equals alloted space
for (uint256 i = pos; i < length; ) {
if (data[i] == 0) {
// Zero bytes found, adjust estimated length
estimate = i - pos;
break;
}
unchecked {
++i;
}
}
}
function _uncheckedIncrement(uint256 i) private pure returns (uint256) {
unchecked {
++i;
}
return i;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/utils/ERC721Holder.sol)
pragma solidity ^0.8.19;
import {IERC721Receiver} from "../IERC721Receiver.sol";
/**
* @dev Implementation of the {IERC721Receiver} interface.
*
* Accepts all token transfers.
* Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or
* {IERC721-setApprovalForAll}.
*/
abstract contract ERC721Holder is IERC721Receiver {
/**
* @dev See {IERC721Receiver-onERC721Received}.
*
* Always returns `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(address, address, uint256, bytes memory) public virtual returns (bytes4) {
return this.onERC721Received.selector;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/utils/ERC1155Holder.sol)
pragma solidity ^0.8.19;
import {IERC165, ERC165} from "../../../utils/introspection/ERC165.sol";
import {IERC1155Receiver} from "../IERC1155Receiver.sol";
/**
* @dev Simple implementation of `IERC1155Receiver` that will allow a contract to hold ERC-1155 tokens.
*
* IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be
* stuck.
*/
abstract contract ERC1155Holder is ERC165, IERC1155Receiver {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
}
function onERC1155Received(
address,
address,
uint256,
uint256,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155Received.selector;
}
function onERC1155BatchReceived(
address,
address,
uint256[] memory,
uint256[] memory,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155BatchReceived.selector;
}
}// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.16;
library CommandBuilder {
uint256 constant IDX_VARIABLE_LENGTH = 0x80;
uint256 constant IDX_VALUE_MASK = 0x7f;
uint256 constant IDX_END_OF_ARGS = 0xff;
uint256 constant IDX_USE_STATE = 0xfe;
uint256 constant IDX_ARRAY_START = 0xfd;
uint256 constant IDX_TUPLE_START = 0xfc;
uint256 constant IDX_DYNAMIC_END = 0xfb;
function buildInputs(
bytes[] memory state,
bytes4 selector,
bytes32 indices,
uint256 indicesLength
) internal view returns (bytes memory ret) {
uint256 idx; // The current command index
uint256 offsetIdx; // The index of the current free offset
uint256 count; // Number of bytes in whole ABI encoded message
uint256 free; // Pointer to first free byte in tail part of message
uint256[] memory dynamicLengths = new uint256[](10); // Optionally store the length of all dynamic types (a command cannot fit more than 10 dynamic types)
bytes memory stateData; // Optionally encode the current state if the call requires it
// Determine the length of the encoded data
for (uint256 i; i < indicesLength; ) {
idx = uint8(indices[i]);
if (idx == IDX_END_OF_ARGS) {
indicesLength = i;
break;
}
if (idx & IDX_VARIABLE_LENGTH != 0) {
if (idx == IDX_USE_STATE) {
if (stateData.length == 0) {
stateData = abi.encode(state);
}
unchecked {
count += stateData.length;
}
} else {
(dynamicLengths, offsetIdx, count, i) = setupDynamicType(
state,
indices,
dynamicLengths,
idx,
offsetIdx,
count,
i
);
}
} else {
count = setupStaticVariable(state, count, idx);
}
unchecked {
free += 32;
++i;
}
}
// Encode it
ret = new bytes(count + 4);
assembly {
mstore(add(ret, 32), selector)
}
offsetIdx = 0;
// Use count to track current memory slot
assembly {
count := add(ret, 36)
}
for (uint256 i; i < indicesLength; ) {
idx = uint8(indices[i]);
if (idx & IDX_VARIABLE_LENGTH != 0) {
if (idx == IDX_USE_STATE) {
assembly {
mstore(count, free)
}
memcpy(stateData, 32, ret, free + 4, stateData.length - 32);
unchecked {
free += stateData.length - 32;
}
} else if (idx == IDX_ARRAY_START) {
// Start of dynamic type, put pointer in current slot
assembly {
mstore(count, free)
}
(offsetIdx, free, i, ) = encodeDynamicArray(
ret,
state,
indices,
dynamicLengths,
offsetIdx,
free,
i
);
} else if (idx == IDX_TUPLE_START) {
// Start of dynamic type, put pointer in current slot
assembly {
mstore(count, free)
}
(offsetIdx, free, i, ) = encodeDynamicTuple(
ret,
state,
indices,
dynamicLengths,
offsetIdx,
free,
i
);
} else {
// Variable length data
uint256 argLen = state[idx & IDX_VALUE_MASK].length;
// Put a pointer in the current slot and write the data to first free slot
assembly {
mstore(count, free)
}
memcpy(
state[idx & IDX_VALUE_MASK],
0,
ret,
free + 4,
argLen
);
unchecked {
free += argLen;
}
}
} else {
// Fixed length data (length previously checked to be 32 bytes)
bytes memory stateVar = state[idx & IDX_VALUE_MASK];
// Write the data to current slot
assembly {
mstore(count, mload(add(stateVar, 32)))
}
}
unchecked {
count += 32;
++i;
}
}
}
function setupStaticVariable(
bytes[] memory state,
uint256 count,
uint256 idx
) internal pure returns (uint256 newCount) {
require(
state[idx & IDX_VALUE_MASK].length == 32,
"Static state variables must be 32 bytes"
);
unchecked {
newCount = count + 32;
}
}
function setupDynamicVariable(
bytes[] memory state,
uint256 count,
uint256 idx
) internal pure returns (uint256 newCount) {
bytes memory arg = state[idx & IDX_VALUE_MASK];
// Validate the length of the data in state is a multiple of 32
uint256 argLen = arg.length;
require(
argLen != 0 && argLen % 32 == 0,
"Dynamic state variables must be a multiple of 32 bytes"
);
// Add the length of the value, rounded up to the next word boundary, plus space for pointer
unchecked {
newCount = count + argLen + 32;
}
}
function setupDynamicType(
bytes[] memory state,
bytes32 indices,
uint256[] memory dynamicLengths,
uint256 idx,
uint256 offsetIdx,
uint256 count,
uint256 index
) internal view returns (
uint256[] memory newDynamicLengths,
uint256 newOffsetIdx,
uint256 newCount,
uint256 newIndex
) {
if (idx == IDX_ARRAY_START) {
(newDynamicLengths, newOffsetIdx, newCount, newIndex) = setupDynamicArray(
state,
indices,
dynamicLengths,
offsetIdx,
count,
index
);
} else if (idx == IDX_TUPLE_START) {
(newDynamicLengths, newOffsetIdx, newCount, newIndex) = setupDynamicTuple(
state,
indices,
dynamicLengths,
offsetIdx,
count,
index
);
} else {
newDynamicLengths = dynamicLengths;
newOffsetIdx = offsetIdx;
newIndex = index;
newCount = setupDynamicVariable(state, count, idx);
}
}
function setupDynamicArray(
bytes[] memory state,
bytes32 indices,
uint256[] memory dynamicLengths,
uint256 offsetIdx,
uint256 count,
uint256 index
) internal view returns (
uint256[] memory newDynamicLengths,
uint256 newOffsetIdx,
uint256 newCount,
uint256 newIndex
) {
// Current idx is IDX_ARRAY_START, next idx will contain the array length
unchecked {
newIndex = index + 1;
newCount = count + 32;
}
uint256 idx = uint8(indices[newIndex]);
require(
state[idx & IDX_VALUE_MASK].length == 32,
"Array length must be 32 bytes"
);
(newDynamicLengths, newOffsetIdx, newCount, newIndex) = setupDynamicTuple(
state,
indices,
dynamicLengths,
offsetIdx,
newCount,
newIndex
);
}
function setupDynamicTuple(
bytes[] memory state,
bytes32 indices,
uint256[] memory dynamicLengths,
uint256 offsetIdx,
uint256 count,
uint256 index
) internal view returns (
uint256[] memory newDynamicLengths,
uint256 newOffsetIdx,
uint256 newCount,
uint256 newIndex
) {
uint256 idx;
uint256 offset;
newDynamicLengths = dynamicLengths;
// Progress to first index of the data and progress the next offset idx
unchecked {
newIndex = index + 1;
newOffsetIdx = offsetIdx + 1;
newCount = count + 32;
}
while (newIndex < 32) {
idx = uint8(indices[newIndex]);
if (idx & IDX_VARIABLE_LENGTH != 0) {
if (idx == IDX_DYNAMIC_END) {
newDynamicLengths[offsetIdx] = offset;
// explicit return saves gas ¯\_(ツ)_/¯
return (newDynamicLengths, newOffsetIdx, newCount, newIndex);
} else {
require(idx != IDX_USE_STATE, "Cannot use state from inside dynamic type");
(newDynamicLengths, newOffsetIdx, newCount, newIndex) = setupDynamicType(
state,
indices,
newDynamicLengths,
idx,
newOffsetIdx,
newCount,
newIndex
);
}
} else {
newCount = setupStaticVariable(state, newCount, idx);
}
unchecked {
offset += 32;
++newIndex;
}
}
revert("Dynamic type was not properly closed");
}
function encodeDynamicArray(
bytes memory ret,
bytes[] memory state,
bytes32 indices,
uint256[] memory dynamicLengths,
uint256 offsetIdx,
uint256 currentSlot,
uint256 index
) internal view returns (
uint256 newOffsetIdx,
uint256 newSlot,
uint256 newIndex,
uint256 length
) {
// Progress to array length metadata
unchecked {
newIndex = index + 1;
newSlot = currentSlot + 32;
}
// Encode array length
uint256 idx = uint8(indices[newIndex]);
// Array length value previously checked to be 32 bytes
bytes memory stateVar = state[idx & IDX_VALUE_MASK];
assembly {
mstore(add(add(ret, 36), currentSlot), mload(add(stateVar, 32)))
}
(newOffsetIdx, newSlot, newIndex, length) = encodeDynamicTuple(
ret,
state,
indices,
dynamicLengths,
offsetIdx,
newSlot,
newIndex
);
unchecked {
length += 32; // Increase length to account for array length metadata
}
}
function encodeDynamicTuple(
bytes memory ret,
bytes[] memory state,
bytes32 indices,
uint256[] memory dynamicLengths,
uint256 offsetIdx,
uint256 currentSlot,
uint256 index
) internal view returns (
uint256 newOffsetIdx,
uint256 newSlot,
uint256 newIndex,
uint256 length
) {
uint256 idx;
uint256 argLen;
uint256 freePointer = dynamicLengths[offsetIdx]; // The pointer to the next free slot
unchecked {
newSlot = currentSlot + freePointer; // Update the next slot
newOffsetIdx = offsetIdx + 1; // Progress to next offsetIdx
newIndex = index + 1; // Progress to first index of the data
}
// Shift currentSlot to correct location in memory
assembly {
currentSlot := add(add(ret, 36), currentSlot)
}
while (newIndex < 32) {
idx = uint8(indices[newIndex]);
if (idx & IDX_VARIABLE_LENGTH != 0) {
if (idx == IDX_DYNAMIC_END) {
break;
} else if (idx == IDX_ARRAY_START) {
// Start of dynamic type, put pointer in current slot
assembly {
mstore(currentSlot, freePointer)
}
(newOffsetIdx, newSlot, newIndex, argLen) = encodeDynamicArray(
ret,
state,
indices,
dynamicLengths,
newOffsetIdx,
newSlot,
newIndex
);
unchecked {
freePointer += argLen;
length += (argLen + 32); // data + pointer
}
} else if (idx == IDX_TUPLE_START) {
// Start of dynamic type, put pointer in current slot
assembly {
mstore(currentSlot, freePointer)
}
(newOffsetIdx, newSlot, newIndex, argLen) = encodeDynamicTuple(
ret,
state,
indices,
dynamicLengths,
newOffsetIdx,
newSlot,
newIndex
);
unchecked {
freePointer += argLen;
length += (argLen + 32); // data + pointer
}
} else {
// Variable length data
argLen = state[idx & IDX_VALUE_MASK].length;
// Start of dynamic type, put pointer in current slot
assembly {
mstore(currentSlot, freePointer)
}
memcpy(
state[idx & IDX_VALUE_MASK],
0,
ret,
newSlot + 4,
argLen
);
unchecked {
newSlot += argLen;
freePointer += argLen;
length += (argLen + 32); // data + pointer
}
}
} else {
// Fixed length data (length previously checked to be 32 bytes)
bytes memory stateVar = state[idx & IDX_VALUE_MASK];
// Write to first free slot
assembly {
mstore(currentSlot, mload(add(stateVar, 32)))
}
unchecked {
length += 32;
}
}
unchecked {
currentSlot += 32;
++newIndex;
}
}
}
function writeOutputs(
bytes[] memory state,
bytes1 index,
bytes memory output
) internal pure returns (bytes[] memory) {
uint256 idx = uint8(index);
if (idx == IDX_END_OF_ARGS) return state;
if (idx & IDX_VARIABLE_LENGTH != 0) {
if (idx == IDX_USE_STATE) {
state = abi.decode(output, (bytes[]));
} else {
require(idx & IDX_VALUE_MASK < state.length, "Index out-of-bounds");
// Check the first field is 0x20 (because we have only a single return value)
uint256 argPtr;
assembly {
argPtr := mload(add(output, 32))
}
require(
argPtr == 32,
"Only one return value permitted (variable)"
);
assembly {
// Overwrite the first word of the return data with the length - 32
mstore(add(output, 32), sub(mload(output), 32))
// Insert a pointer to the return data, starting at the second word, into state
mstore(
add(add(state, 32), mul(and(idx, IDX_VALUE_MASK), 32)),
add(output, 32)
)
}
}
} else {
require(idx & IDX_VALUE_MASK < state.length, "Index out-of-bounds");
// Single word
require(
output.length == 32,
"Only one return value permitted (static)"
);
state[idx & IDX_VALUE_MASK] = output;
}
return state;
}
function writeTuple(
bytes[] memory state,
bytes1 index,
bytes memory output
) internal view {
uint256 idx = uint8(index);
if (idx == IDX_END_OF_ARGS) return;
bytes memory entry = state[idx & IDX_VALUE_MASK] = new bytes(output.length + 32);
memcpy(output, 0, entry, 32, output.length);
assembly {
let l := mload(output)
mstore(add(entry, 32), l)
}
}
function memcpy(
bytes memory src,
uint256 srcIdx,
bytes memory dest,
uint256 destIdx,
uint256 len
) internal view {
assembly {
pop(
staticcall(
gas(),
4,
add(add(src, 32), srcIdx),
len,
add(add(dest, 32), destIdx),
len
)
)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.19;
/**
* @title ERC-721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC-721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be
* reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.19;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity ^0.8.19;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Interface that must be implemented by smart contracts in order to receive
* ERC-1155 token transfers.
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC-1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC-1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.19;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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);
}{
"remappings": [
"@ensdomains/=lib/shortcuts-contracts/node_modules/@ensdomains/",
"@ensofinance/=lib/shortcuts-contracts/node_modules/@ensofinance/",
"@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/",
"@layerzerolabs/lz-evm-protocol-v2/=lib/layerzero-v2/packages/layerzero-v2/evm/protocol/",
"@layerzerolabs/lz-evm-oapp-v2/=lib/layerzero-v2/packages/layerzero-v2/evm/oapp/",
"@openzeppelin/=lib/shortcuts-contracts/node_modules/@openzeppelin/",
"@rari-capital/=lib/shortcuts-contracts/node_modules/@rari-capital/",
"@uniswap/v4-core/=lib/v4-core/",
"@uniswap/v4-periphery/=lib/v4-periphery/",
"clones-with-immutable-args/=lib/shortcuts-contracts/node_modules/clones-with-immutable-args/",
"devtools/=lib/devtools/packages/toolbox-foundry/src/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"enso-weiroll/=lib/enso-weiroll/contracts/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"eth-gas-reporter/=lib/shortcuts-contracts/node_modules/eth-gas-reporter/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"hardhat-deploy/=lib/shortcuts-contracts/node_modules/hardhat-deploy/",
"hardhat/=lib/shortcuts-contracts/node_modules/hardhat/",
"layerzero-v2/=lib/layerzero-v2/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
"safe-contracts/=lib/safe-tools/lib/safe-contracts/contracts/",
"safe-tools/=lib/safe-tools/src/",
"shortcuts-contracts/=lib/shortcuts-contracts/contracts/",
"solady/=lib/solady/src/",
"solmate/=lib/solady/lib/solmate/src/",
"forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
"permit2/=lib/v4-periphery/lib/permit2/",
"v4-core/=lib/v4-core/src/",
"v4-periphery/=lib/v4-periphery/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": true,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"executor_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"command_index","type":"uint256"},{"internalType":"address","name":"target","type":"address"},{"internalType":"string","name":"message","type":"string"}],"name":"ExecutionFailed","type":"error"},{"inputs":[],"name":"NotPermitted","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"accountId","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"}],"name":"ShortcutExecuted","type":"event"},{"inputs":[{"internalType":"bytes32","name":"accountId","type":"bytes32"},{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"bytes32[]","name":"commands","type":"bytes32[]"},{"internalType":"bytes[]","name":"state","type":"bytes[]"}],"name":"executeShortcut","outputs":[{"internalType":"bytes[]","name":"response","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"executor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60a03461007157601f61157f38819003918201601f19168301916001600160401b038311848410176100765780849260209460405283398101031261007157516001600160a01b0381168103610071576080526040516114f2908161008d823960805181818161032501526104d70152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001b575b361561001957600080fd5b005b6000803560e01c90816301ffc9a71461007e57508063150b7a021461007957806395352c9f14610074578063bc197c811461006f578063c34c08e51461006a5763f23a6e610361000e57610506565b6104c1565b610438565b6102d9565b6101a8565b346100d45760203660031901126100d4576004359063ffffffff60e01b82168092036100d45750630271189760e51b81149081156100c3575b50151560805260206080f35b6301ffc9a760e01b149050816100b7565b80fd5b600435906001600160a01b03821682036100ed57565b600080fd5b602435906001600160a01b03821682036100ed57565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761014057604052565b610108565b67ffffffffffffffff811161014057601f01601f191660200190565b81601f820112156100ed5780359061017882610145565b92610186604051948561011e565b828452602083830101116100ed57816000926020809301838601378301015290565b346100ed5760803660031901126100ed576101c16100d7565b506101ca6100f2565b5060643567ffffffffffffffff81116100ed576101eb903690600401610161565b50604051630a85bd0160e11b8152602090f35b9181601f840112156100ed5782359167ffffffffffffffff83116100ed576020808501948460051b0101116100ed57565b60005b8381106102425750506000910152565b8181015183820152602001610232565b9060209161026b8151809281855285808601910161022f565b601f01601f1916010190565b602080820190808352835180925260408301928160408460051b8301019501936000915b8483106102ab5750505050505090565b90919293949584806102c9600193603f198682030187528a51610252565b980193019301919493929061029b565b60803660031901126100ed5767ffffffffffffffff6044358181116100ed576103069036906004016101fe565b90916064359081116100ed576103209036906004016101fe565b9290917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036103b05761036561036b936103ac95369161055c565b9161073b565b60408051600435815260243560208201527f049d8dd84b6a6cc45d5f68a74b23450bd3e54d84fd405d91b8b286c78d51d2499190a160405191829182610277565b0390f35b6040516339218f3b60e01b8152600490fd5b67ffffffffffffffff81116101405760051b60200190565b81601f820112156100ed578035916103f1836103c2565b926103ff604051948561011e565b808452602092838086019260051b8201019283116100ed578301905b828210610429575050505090565b8135815290830190830161041b565b346100ed5760a03660031901126100ed576104516100d7565b5061045a6100f2565b5067ffffffffffffffff6044358181116100ed5761047c9036906004016103da565b506064358181116100ed576104959036906004016103da565b506084359081116100ed576104ae903690600401610161565b5060405163bc197c8160e01b8152602090f35b346100ed5760003660031901126100ed576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b346100ed5760a03660031901126100ed5761051f6100d7565b506105286100f2565b5060843567ffffffffffffffff81116100ed57610549903690600401610161565b5060405163f23a6e6160e01b8152602090f35b92919092610569846103c2565b91610577604051938461011e565b829480845260208094019060051b8301928284116100ed5780915b8483106105a157505050505050565b823567ffffffffffffffff81116100ed5786916105c18684938601610161565b815201920191610592565b634e487b7160e01b600052603260045260246000fd5b91908110156105f25760051b0190565b6105cc565b80518210156105f25760209160051b010190565b1561061257565b60405162461bcd60e51b815260206004820152601660248201527556616c7565206d75737420626520333220627974657360501b6044820152606490fd5b602081519101519060208110610664575090565b6000199060200360031b1b1690565b634e487b7160e01b600052601160045260246000fd5b60001981019190821161069857565b610673565b601f1981019190821161069857565b3d156106d7573d906106bd82610145565b916106cb604051938461011e565b82523d6000602084013e565b606090565b604051906040820182811067ffffffffffffffff8211176101405760405260078252662ab735b737bbb760c91b6020830152565b9081526001600160a01b03909116602082015260606040820181905261073892910190610252565b90565b9060005b81811061074c5750505090565b6107578183856105e2565b604091903560d881901c838116159283610a0e576001019361077a8587896105e2565b3560205b6003848116600181036108d557506000928392602092508683166108bd576107b1916001600160e01b031989168e610a92565b905b81519101826001600160a01b0388165af1936107cd6106ac565b94905b859115610822575050506080161561080357600192916107fd9160581b6001600160f81b031916876113dc565b0161073f565b906001929561081c9260ff60f81b9060581b1690611331565b936107fd565b84918761086c92886108326106dc565b936044918281511161087f575b50505060001461087057935b5163ef3dcb2f60e01b81529384936001600160a01b03169060048501610710565b0390fd5b61087990610689565b9361084b565b6020610896600461088f8461145a565b9301610650565b0361083f576108a760248301610650565b146108b3575b8061083f565b01925086806108ad565b50607f6108ce9160f81c168c6105f7565b51906107b3565b6002810361093d575060009283926020925086831661092557610903916001600160e01b031989168e610a92565b905b815191016001600160a01b0387165afa9361091e6106ac565b94906107d0565b50607f6109369160f81c168c6105f7565b5190610905565b036109d7576000918291607f9061095a8d838560f81c16906105f7565b51928d61097460209561096f8782511461060b565b610650565b93858a161587146109be575061098c6109a293610689565b9160081b906001600160e01b03198b1690610a92565b915b82519201906001600160a01b0388165af19361091e6106ac565b9190506109d0925060f01c168d6105f7565b51916109a4565b825162461bcd60e51b815260206004820152601060248201526f496e76616c69642063616c6c7479706560801b6044820152606490fd5b93602883901b6001600160d01b0317600661077e565b60405190610160820182811067ffffffffffffffff82111761014057604052600a8252610140366020840137565b906004820180921161069857565b90610a6a82610145565b610a77604051918261011e565b8281528092610a88601f1991610145565b0190602036910137565b93929060008081610aa1610a24565b9060609281905b878210610bf6575b5050610abe610ac391610a52565b610a60565b97602094858a0152600060248a019281955b888710610ae85750505050505050505050565b878710156105f25787908c8b808a1a6080811615610bd55760fe8103610b4257505090610b2f60019392828952610b1e83610a52565b610b288b5161069d565b918b611448565b875101601f1901955b0196019593610ad5565b939795929390919060fd8103610b735750918484928860019c95610b67978a52610fc8565b50979195909593610b38565b60fc8103610b905750918484928860019c95610b67978a52611010565b610bbd925060019491607f610bce929a95989a1690610baf828b6105f7565b5151948592858d528b6105f7565b5190610bc885610a52565b91611436565b0195610b38565b84939892506001949150607f610bec9116886105f7565b5101518152610b38565b90929491602090818510156105f25789851a60ff8114610ca5578c6080821615610c91578b9060fe8303610c7357505050855115610c42575b90600191865101935b0195930190610aa8565b9450600190610c5c610c6a8d604051928391858301610277565b03601f19810183528261011e565b95909150610c2f565b98610c8595929160019895979a610d2e565b94919390939296610c38565b9060019392610c9f92610cbb565b93610c38565b509397509194929150610abe9050610ac3610ab0565b610ccc90607f6020939416906105f7565b515103610cd95760200190565b60405162461bcd60e51b815260206004820152602760248201527f537461746963207374617465207661726961626c6573206d75737420626520336044820152663220627974657360c81b6064820152608490fd5b90969594939260fd8103610d4e575095610d489596610dfd565b90919293565b60fc8103610d62575095610d489596610ed7565b9196509194939291610d7791607f16906105f7565b515180151580610df2575b15610d8e570160200191565b60405162461bcd60e51b815260206004820152603660248201527f44796e616d6963207374617465207661726961626c6573206d7573742062652060448201527561206d756c7469706c65206f6620333220627974657360501b6064820152608490fd5b50601f811615610d82565b92919093946001019360208510156105f2576020610e20607f83881a16866105f7565b515103610e34576020610d48960193610ed7565b60405162461bcd60e51b815260206004820152601d60248201527f4172726179206c656e677468206d7573742062652033322062797465730000006044820152606490fd5b15610e8057565b60405162461bcd60e51b815260206004820152602960248201527f43616e6e6f74207573652073746174652066726f6d20696e736964652064796e604482015268616d6963207479706560b81b6064820152608490fd5b6001808501976020968701978201969095600094909392915b808910610f485760405162461bcd60e51b8152602060048201526024808201527f44796e616d6963207479706520776173206e6f742070726f7065726c7920636c6044820152631bdcd95960e21b6064820152608490fd5b81891a6080811615610fae5760fb8103610f72575050505050610f6b90836105f7565b5293929190565b99849b8b83989985879e98610f91610f96989f97999a60fe1415610e79565b610d2e565b9b929b9a919a96909a9b975b01950197909291610ef0565b90610fc28495939a979b9282959385610cbb565b9a610fa2565b9392919094956001019460208610156105f25760206110029781610ff1607f868b1a16856105f7565b510151602482890101520194611010565b929391929091602090910190565b93959692909160009461102388846105f7565b51936024600180878b019b019b0198830101915b602094858a101561115957848a1a60808116156111335760fb8103611060575050505050505050565b9b8c60fd889d939598979c94969b999e146000146110ab57509061108b92918d8b52848c8988610fc8565b929c919b978301909501989101956001915b019301979291939093611037565b9091929394955060fc81146000146110e95750916110d3918b9594938d8b52848c8988611010565b929c919b9783019095019891019560019161109d565b9a89878e83949f9e95611127607f6001989b9a999b169461111c61110d87876105f7565b515196879687968794526105f7565b518b610bc885610a52565b019d019801019861109d565b9560019294998161114d607f8295979a9e999e168a6105f7565b5101518b52019861109d565b50505050505050565b1561116957565b60405162461bcd60e51b8152602060048201526013602482015272496e646578206f75742d6f662d626f756e647360681b6044820152606490fd5b156111ab57565b60405162461bcd60e51b815260206004820152602860248201527f4f6e6c79206f6e652072657475726e2076616c7565207065726d697474656420604482015267287374617469632960c01b6064820152608490fd5b1561120857565b60405162461bcd60e51b815260206004820152602a60248201527f4f6e6c79206f6e652072657475726e2076616c7565207065726d697474656420604482015269287661726961626c652960b01b6064820152608490fd5b60209081818403126100ed57805167ffffffffffffffff918282116100ed57019083601f830112156100ed578151611297816103c2565b946040926112a78451978861011e565b828752858088019360051b860101948286116100ed57868101935b8685106112d457505050505050505090565b84518381116100ed5782019084603f830112156100ed5788820151906112f982610145565b6113058951918261011e565b828152868984860101116100ed576113268b949385948b868501910161022f565b8152019401936112c2565b91908060f81c60ff81146113d657608081161561139e5760fe8103611366575050610738915060208082518301019101611260565b60209161137c610fe092607f8751911610611162565b8284019361138c84865114611201565b51601f1901845260f31c168301015290565b6113d2929150607f16906113b484518310611162565b6113c160208251146111a4565b6113cb82856105f7565b52826105f7565b5090565b50505090565b9060f81c60ff8114611431578251906020820180921161069857602092607f61140761141a94610a60565b92169161141483836105f7565b526105f7565b51918051604084018184840160045afa5051910152565b505050565b916020809185930101920160045afa50565b910160200190829060400160045afa50565b908151604319808201828111610698579360445b83811061147c575b50505050565b81518110156105f257818101602001516001600160f81b031916156114a35760010161146e565b939450509050810190811161069857903880808061147656fea264697066735822122006356c2a3a765696cf917ef98548417cc9bfb0b57666d1b9d37ae694781cb83464736f6c63430008130033000000000000000000000000a146d46823f3f594b785200102be5385cafce9b5
Deployed Bytecode
0x6080604052600436101561001b575b361561001957600080fd5b005b6000803560e01c90816301ffc9a71461007e57508063150b7a021461007957806395352c9f14610074578063bc197c811461006f578063c34c08e51461006a5763f23a6e610361000e57610506565b6104c1565b610438565b6102d9565b6101a8565b346100d45760203660031901126100d4576004359063ffffffff60e01b82168092036100d45750630271189760e51b81149081156100c3575b50151560805260206080f35b6301ffc9a760e01b149050816100b7565b80fd5b600435906001600160a01b03821682036100ed57565b600080fd5b602435906001600160a01b03821682036100ed57565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761014057604052565b610108565b67ffffffffffffffff811161014057601f01601f191660200190565b81601f820112156100ed5780359061017882610145565b92610186604051948561011e565b828452602083830101116100ed57816000926020809301838601378301015290565b346100ed5760803660031901126100ed576101c16100d7565b506101ca6100f2565b5060643567ffffffffffffffff81116100ed576101eb903690600401610161565b50604051630a85bd0160e11b8152602090f35b9181601f840112156100ed5782359167ffffffffffffffff83116100ed576020808501948460051b0101116100ed57565b60005b8381106102425750506000910152565b8181015183820152602001610232565b9060209161026b8151809281855285808601910161022f565b601f01601f1916010190565b602080820190808352835180925260408301928160408460051b8301019501936000915b8483106102ab5750505050505090565b90919293949584806102c9600193603f198682030187528a51610252565b980193019301919493929061029b565b60803660031901126100ed5767ffffffffffffffff6044358181116100ed576103069036906004016101fe565b90916064359081116100ed576103209036906004016101fe565b9290917f000000000000000000000000a146d46823f3f594b785200102be5385cafce9b56001600160a01b031633036103b05761036561036b936103ac95369161055c565b9161073b565b60408051600435815260243560208201527f049d8dd84b6a6cc45d5f68a74b23450bd3e54d84fd405d91b8b286c78d51d2499190a160405191829182610277565b0390f35b6040516339218f3b60e01b8152600490fd5b67ffffffffffffffff81116101405760051b60200190565b81601f820112156100ed578035916103f1836103c2565b926103ff604051948561011e565b808452602092838086019260051b8201019283116100ed578301905b828210610429575050505090565b8135815290830190830161041b565b346100ed5760a03660031901126100ed576104516100d7565b5061045a6100f2565b5067ffffffffffffffff6044358181116100ed5761047c9036906004016103da565b506064358181116100ed576104959036906004016103da565b506084359081116100ed576104ae903690600401610161565b5060405163bc197c8160e01b8152602090f35b346100ed5760003660031901126100ed576040517f000000000000000000000000a146d46823f3f594b785200102be5385cafce9b56001600160a01b03168152602090f35b346100ed5760a03660031901126100ed5761051f6100d7565b506105286100f2565b5060843567ffffffffffffffff81116100ed57610549903690600401610161565b5060405163f23a6e6160e01b8152602090f35b92919092610569846103c2565b91610577604051938461011e565b829480845260208094019060051b8301928284116100ed5780915b8483106105a157505050505050565b823567ffffffffffffffff81116100ed5786916105c18684938601610161565b815201920191610592565b634e487b7160e01b600052603260045260246000fd5b91908110156105f25760051b0190565b6105cc565b80518210156105f25760209160051b010190565b1561061257565b60405162461bcd60e51b815260206004820152601660248201527556616c7565206d75737420626520333220627974657360501b6044820152606490fd5b602081519101519060208110610664575090565b6000199060200360031b1b1690565b634e487b7160e01b600052601160045260246000fd5b60001981019190821161069857565b610673565b601f1981019190821161069857565b3d156106d7573d906106bd82610145565b916106cb604051938461011e565b82523d6000602084013e565b606090565b604051906040820182811067ffffffffffffffff8211176101405760405260078252662ab735b737bbb760c91b6020830152565b9081526001600160a01b03909116602082015260606040820181905261073892910190610252565b90565b9060005b81811061074c5750505090565b6107578183856105e2565b604091903560d881901c838116159283610a0e576001019361077a8587896105e2565b3560205b6003848116600181036108d557506000928392602092508683166108bd576107b1916001600160e01b031989168e610a92565b905b81519101826001600160a01b0388165af1936107cd6106ac565b94905b859115610822575050506080161561080357600192916107fd9160581b6001600160f81b031916876113dc565b0161073f565b906001929561081c9260ff60f81b9060581b1690611331565b936107fd565b84918761086c92886108326106dc565b936044918281511161087f575b50505060001461087057935b5163ef3dcb2f60e01b81529384936001600160a01b03169060048501610710565b0390fd5b61087990610689565b9361084b565b6020610896600461088f8461145a565b9301610650565b0361083f576108a760248301610650565b146108b3575b8061083f565b01925086806108ad565b50607f6108ce9160f81c168c6105f7565b51906107b3565b6002810361093d575060009283926020925086831661092557610903916001600160e01b031989168e610a92565b905b815191016001600160a01b0387165afa9361091e6106ac565b94906107d0565b50607f6109369160f81c168c6105f7565b5190610905565b036109d7576000918291607f9061095a8d838560f81c16906105f7565b51928d61097460209561096f8782511461060b565b610650565b93858a161587146109be575061098c6109a293610689565b9160081b906001600160e01b03198b1690610a92565b915b82519201906001600160a01b0388165af19361091e6106ac565b9190506109d0925060f01c168d6105f7565b51916109a4565b825162461bcd60e51b815260206004820152601060248201526f496e76616c69642063616c6c7479706560801b6044820152606490fd5b93602883901b6001600160d01b0317600661077e565b60405190610160820182811067ffffffffffffffff82111761014057604052600a8252610140366020840137565b906004820180921161069857565b90610a6a82610145565b610a77604051918261011e565b8281528092610a88601f1991610145565b0190602036910137565b93929060008081610aa1610a24565b9060609281905b878210610bf6575b5050610abe610ac391610a52565b610a60565b97602094858a0152600060248a019281955b888710610ae85750505050505050505050565b878710156105f25787908c8b808a1a6080811615610bd55760fe8103610b4257505090610b2f60019392828952610b1e83610a52565b610b288b5161069d565b918b611448565b875101601f1901955b0196019593610ad5565b939795929390919060fd8103610b735750918484928860019c95610b67978a52610fc8565b50979195909593610b38565b60fc8103610b905750918484928860019c95610b67978a52611010565b610bbd925060019491607f610bce929a95989a1690610baf828b6105f7565b5151948592858d528b6105f7565b5190610bc885610a52565b91611436565b0195610b38565b84939892506001949150607f610bec9116886105f7565b5101518152610b38565b90929491602090818510156105f25789851a60ff8114610ca5578c6080821615610c91578b9060fe8303610c7357505050855115610c42575b90600191865101935b0195930190610aa8565b9450600190610c5c610c6a8d604051928391858301610277565b03601f19810183528261011e565b95909150610c2f565b98610c8595929160019895979a610d2e565b94919390939296610c38565b9060019392610c9f92610cbb565b93610c38565b509397509194929150610abe9050610ac3610ab0565b610ccc90607f6020939416906105f7565b515103610cd95760200190565b60405162461bcd60e51b815260206004820152602760248201527f537461746963207374617465207661726961626c6573206d75737420626520336044820152663220627974657360c81b6064820152608490fd5b90969594939260fd8103610d4e575095610d489596610dfd565b90919293565b60fc8103610d62575095610d489596610ed7565b9196509194939291610d7791607f16906105f7565b515180151580610df2575b15610d8e570160200191565b60405162461bcd60e51b815260206004820152603660248201527f44796e616d6963207374617465207661726961626c6573206d7573742062652060448201527561206d756c7469706c65206f6620333220627974657360501b6064820152608490fd5b50601f811615610d82565b92919093946001019360208510156105f2576020610e20607f83881a16866105f7565b515103610e34576020610d48960193610ed7565b60405162461bcd60e51b815260206004820152601d60248201527f4172726179206c656e677468206d7573742062652033322062797465730000006044820152606490fd5b15610e8057565b60405162461bcd60e51b815260206004820152602960248201527f43616e6e6f74207573652073746174652066726f6d20696e736964652064796e604482015268616d6963207479706560b81b6064820152608490fd5b6001808501976020968701978201969095600094909392915b808910610f485760405162461bcd60e51b8152602060048201526024808201527f44796e616d6963207479706520776173206e6f742070726f7065726c7920636c6044820152631bdcd95960e21b6064820152608490fd5b81891a6080811615610fae5760fb8103610f72575050505050610f6b90836105f7565b5293929190565b99849b8b83989985879e98610f91610f96989f97999a60fe1415610e79565b610d2e565b9b929b9a919a96909a9b975b01950197909291610ef0565b90610fc28495939a979b9282959385610cbb565b9a610fa2565b9392919094956001019460208610156105f25760206110029781610ff1607f868b1a16856105f7565b510151602482890101520194611010565b929391929091602090910190565b93959692909160009461102388846105f7565b51936024600180878b019b019b0198830101915b602094858a101561115957848a1a60808116156111335760fb8103611060575050505050505050565b9b8c60fd889d939598979c94969b999e146000146110ab57509061108b92918d8b52848c8988610fc8565b929c919b978301909501989101956001915b019301979291939093611037565b9091929394955060fc81146000146110e95750916110d3918b9594938d8b52848c8988611010565b929c919b9783019095019891019560019161109d565b9a89878e83949f9e95611127607f6001989b9a999b169461111c61110d87876105f7565b515196879687968794526105f7565b518b610bc885610a52565b019d019801019861109d565b9560019294998161114d607f8295979a9e999e168a6105f7565b5101518b52019861109d565b50505050505050565b1561116957565b60405162461bcd60e51b8152602060048201526013602482015272496e646578206f75742d6f662d626f756e647360681b6044820152606490fd5b156111ab57565b60405162461bcd60e51b815260206004820152602860248201527f4f6e6c79206f6e652072657475726e2076616c7565207065726d697474656420604482015267287374617469632960c01b6064820152608490fd5b1561120857565b60405162461bcd60e51b815260206004820152602a60248201527f4f6e6c79206f6e652072657475726e2076616c7565207065726d697474656420604482015269287661726961626c652960b01b6064820152608490fd5b60209081818403126100ed57805167ffffffffffffffff918282116100ed57019083601f830112156100ed578151611297816103c2565b946040926112a78451978861011e565b828752858088019360051b860101948286116100ed57868101935b8685106112d457505050505050505090565b84518381116100ed5782019084603f830112156100ed5788820151906112f982610145565b6113058951918261011e565b828152868984860101116100ed576113268b949385948b868501910161022f565b8152019401936112c2565b91908060f81c60ff81146113d657608081161561139e5760fe8103611366575050610738915060208082518301019101611260565b60209161137c610fe092607f8751911610611162565b8284019361138c84865114611201565b51601f1901845260f31c168301015290565b6113d2929150607f16906113b484518310611162565b6113c160208251146111a4565b6113cb82856105f7565b52826105f7565b5090565b50505090565b9060f81c60ff8114611431578251906020820180921161069857602092607f61140761141a94610a60565b92169161141483836105f7565b526105f7565b51918051604084018184840160045afa5051910152565b505050565b916020809185930101920160045afa50565b910160200190829060400160045afa50565b908151604319808201828111610698579360445b83811061147c575b50505050565b81518110156105f257818101602001516001600160f81b031916156114a35760010161146e565b939450509050810190811161069857903880808061147656fea264697066735822122006356c2a3a765696cf917ef98548417cc9bfb0b57666d1b9d37ae694781cb83464736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a146d46823f3f594b785200102be5385cafce9b5
-----Decoded View---------------
Arg [0] : executor_ (address): 0xA146d46823f3F594B785200102Be5385CAfCE9B5
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a146d46823f3f594b785200102be5385cafce9b5
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
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.