Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 117 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Payment | 22438508 | 318 days ago | IN | 0.00253592 ETH | 0.0001793 | ||||
| Payment | 22279812 | 340 days ago | IN | 0.00062861 ETH | 0.0000312 | ||||
| Payment | 22277843 | 341 days ago | IN | 0.00062341 ETH | 0.00002835 | ||||
| Payment | 22239104 | 346 days ago | IN | 0.00063203 ETH | 0.00079622 | ||||
| Payment | 22121795 | 362 days ago | IN | 0.0024215 ETH | 0.00006379 | ||||
| Payment | 22119232 | 363 days ago | IN | 0.00094843 ETH | 0.00008053 | ||||
| Payment | 22081675 | 368 days ago | IN | 0 ETH | 0.00018726 | ||||
| Payment | 22068516 | 370 days ago | IN | 0.00050788 ETH | 0.00018675 | ||||
| Payment | 21988639 | 381 days ago | IN | 0.00044285 ETH | 0.00014258 | ||||
| Payment | 21950784 | 386 days ago | IN | 0.00088482 ETH | 0.0001124 | ||||
| Payment | 21896744 | 394 days ago | IN | 0.00001 ETH | 0.00019292 | ||||
| Payment | 21679557 | 424 days ago | IN | 0.00149704 ETH | 0.00060473 | ||||
| Payment | 21595434 | 436 days ago | IN | 0.0015231 ETH | 0.00055582 | ||||
| Payment | 21587619 | 437 days ago | IN | 0 ETH | 0.00125485 | ||||
| Payment | 21587542 | 437 days ago | IN | 0.00030889 ETH | 0.00102661 | ||||
| Payment | 21587530 | 437 days ago | IN | 0.00030889 ETH | 0.00097071 | ||||
| Payment | 21586792 | 437 days ago | IN | 0 ETH | 0.00052221 | ||||
| Payment | 21586786 | 437 days ago | IN | 0 ETH | 0.00050527 | ||||
| Payment | 21586781 | 437 days ago | IN | 0 ETH | 0.00047667 | ||||
| Payment | 21586775 | 437 days ago | IN | 0 ETH | 0.00045838 | ||||
| Payment | 21586769 | 437 days ago | IN | 0 ETH | 0.00049198 | ||||
| Payment | 21586756 | 437 days ago | IN | 0.00030305 ETH | 0.00038536 | ||||
| Payment | 21586751 | 437 days ago | IN | 0.00030305 ETH | 0.00037088 | ||||
| Payment | 21586745 | 437 days ago | IN | 0.00030305 ETH | 0.00041248 | ||||
| Payment | 21586741 | 437 days ago | IN | 0.00030305 ETH | 0.00039005 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 22438508 | 318 days ago | 0.00253592 ETH | ||||
| Transfer | 22279812 | 340 days ago | 0.00062861 ETH | ||||
| Transfer | 22277843 | 341 days ago | 0.00062341 ETH | ||||
| Transfer | 22239104 | 346 days ago | 0.00063203 ETH | ||||
| Transfer | 22121795 | 362 days ago | 0.0024215 ETH | ||||
| Transfer | 22119232 | 363 days ago | 0.00094843 ETH | ||||
| Transfer | 22068516 | 370 days ago | 0.00050788 ETH | ||||
| Transfer | 21988639 | 381 days ago | 0.00044285 ETH | ||||
| Transfer | 21950784 | 386 days ago | 0.00088482 ETH | ||||
| Transfer | 21896744 | 394 days ago | 0.00001 ETH | ||||
| Transfer | 21679557 | 424 days ago | 0.00149704 ETH | ||||
| Transfer | 21595434 | 436 days ago | 0.0015231 ETH | ||||
| Transfer | 21587542 | 437 days ago | 0.00030889 ETH | ||||
| Transfer | 21587530 | 437 days ago | 0.00030889 ETH | ||||
| Transfer | 21586756 | 437 days ago | 0.00030305 ETH | ||||
| Transfer | 21586751 | 437 days ago | 0.00030305 ETH | ||||
| Transfer | 21586745 | 437 days ago | 0.00030305 ETH | ||||
| Transfer | 21586741 | 437 days ago | 0.00030305 ETH | ||||
| Transfer | 21586737 | 437 days ago | 0.00030305 ETH | ||||
| Transfer | 21586656 | 437 days ago | 0.00030147 ETH | ||||
| Transfer | 21586652 | 437 days ago | 0.00030147 ETH | ||||
| Transfer | 21586649 | 437 days ago | 0.00030147 ETH | ||||
| Transfer | 21586642 | 437 days ago | 0.00030147 ETH | ||||
| Transfer | 21586638 | 437 days ago | 0.00030147 ETH | ||||
| Transfer | 21586026 | 437 days ago | 0.0003011 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TicketPayment
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract TicketPayment is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
mapping(address => mapping(uint256 => bool)) public processedNonces;
address private verifierAddress;
// Supported payment methods
mapping(address => bool) public supportedPaymentMethods;
address public treasury;
event Payment(
address indexed buyer,
address indexed paymentToken,
uint256 cost
);
/**
* @dev Initializes the contract with the initial owner.
* @param initialOwner Address of the initial owner.
* @param _verifierAddress Address of the signature verifier.
*/
constructor(address initialOwner, address _verifierAddress)
Ownable(initialOwner)
{
verifierAddress = _verifierAddress;
}
/**
* @notice Payment function
* @param _paymentToken IERC20 token to pay with
* @param _cost Amount to pay in the given payment token
*/
function payment(
bytes memory _signature,
uint256 nonce,
address _paymentToken,
uint256 _cost
) external payable nonReentrant {
bytes32 message = prefixed(
keccak256(
abi.encodePacked(address(this), msg.sender, nonce)
)
);
require(
recoverSigner(message, _signature) == verifierAddress,
"wrong signature"
);
require(
processedNonces[msg.sender][nonce] == false,
"transfer already processed"
);
processedNonces[msg.sender][nonce] = true;
if (msg.value > 0) {
require(
address(_paymentToken) == address(0),
"Cannot Have Both ETH & ERC20 Payment Methodd!"
);
require(msg.value >= _cost, "Insufficient Funds Sent!");
(bool sent, ) = payable(treasury).call{value: _cost}("");
require(sent, "Payment Failed!");
uint256 remainder = msg.value - _cost;
if (remainder > 0) {
(sent, ) = payable(msg.sender).call{value: remainder}("");
require(sent, "Failed To Refund Extra!");
}
} else {
require(
supportedPaymentMethods[_paymentToken],
"Unsupported Payment Method!"
);
require(
IERC20(_paymentToken).allowance(msg.sender, address(this)) >=
_cost,
"Not Enough Allowance!"
);
IERC20(_paymentToken).safeTransferFrom(msg.sender, treasury, _cost);
}
// Emit event
emit Payment(msg.sender, _paymentToken, _cost);
}
/**
* @notice Allows contract owner to set treasury address.
* @param _treasuryAddress The address of the new treasury.
*/
function setTreasury(address _treasuryAddress) external onlyOwner {
require(_treasuryAddress != address(0), "Invalid address"); // Ensuring the provided address is not the zero address.
treasury = _treasuryAddress; // Setting the new treasury address.
}
/**
* @notice Allows owner to set a payment method
* @param _paymentToken IERC20 token to set payment method
*/
function setPaymentMethod(address _paymentToken) external onlyOwner {
require(_paymentToken != address(0), "Invalid Address!");
supportedPaymentMethods[_paymentToken] = true;
}
/**
* @dev Recovers the address of the signer from a signed message.
* @param message The hashed message that was signed.
* @param sig The signature containing the `v`, `r`, and `s` components.
* @return The address of the signer.
*/
function recoverSigner(bytes32 message, bytes memory sig)
internal
pure
returns (address)
{
uint8 v;
bytes32 r;
bytes32 s;
(v, r, s) = splitSignature(sig);
return ecrecover(message, v, r, s);
}
/**
* @dev Splits a signature into its `v`, `r`, and `s` components.
* @param sig The signature to be split.
* @return The `v`, `r`, and `s` components of the signature.
*/
function splitSignature(bytes memory sig)
internal
pure
returns (
uint8,
bytes32,
bytes32
)
{
require(sig.length == 65);
bytes32 r;
bytes32 s;
uint8 v;
assembly {
// first 32 bytes, after the length prefix
r := mload(add(sig, 32))
// second 32 bytes
s := mload(add(sig, 64))
// final byte (first byte of the next 32 bytes)
v := byte(0, mload(add(sig, 96)))
}
return (v, r, s);
}
/**
* @dev Adds the Ethereum signed message prefix to a hashed message.
* @param hash The hashed message to be prefixed.
* @return The message with the Ethereum signed message prefix.
*/
function prefixed(bytes32 hash) internal pure returns (bytes32) {
return
keccak256(
abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)
);
}
/**
* Revert any funds sent to the contract directly
*/
receive() external payable {
revert();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 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.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
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.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
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.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
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 Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
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 silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev 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 virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @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 Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert Errors.FailedCall();
}
}
/**
* @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
* {Errors.FailedCall} 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 Errors.InsufficientBalance(address(this).balance, value);
}
(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 {Errors.FailedCall}) 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 {Errors.FailedCall} 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 {Errors.FailedCall}.
*/
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
assembly ("memory-safe") {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.FailedCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @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);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"address","name":"_verifierAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"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":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":true,"internalType":"address","name":"paymentToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"Payment","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"_paymentToken","type":"address"},{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"payment","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"processedNonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_paymentToken","type":"address"}],"name":"setPaymentMethod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supportedPaymentMethods","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561000f575f80fd5b50604051610d3d380380610d3d83398101604081905261002e916100fa565b816001600160a01b03811661005c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61006581610090565b5060018055600380546001600160a01b0319166001600160a01b03929092169190911790555061012b565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100f5575f80fd5b919050565b5f806040838503121561010b575f80fd5b610114836100df565b9150610122602084016100df565b90509250929050565b610c05806101385f395ff3fe608060405260043610610087575f3560e01c80637cc70240116100575780637cc70240146101435780638da5cb5b1461017c578063ebc8663914610198578063f0f44260146101ab578063f2fde38b146101ca575f80fd5b80635ad9ff241461009457806361d027b3146100d7578063715018a61461010e57806374910a8714610124575f80fd5b36610090575f80fd5b5f80fd5b34801561009f575f80fd5b506100c26100ae366004610a71565b60046020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156100e2575f80fd5b506005546100f6906001600160a01b031681565b6040516001600160a01b0390911681526020016100ce565b348015610119575f80fd5b506101226101e9565b005b34801561012f575f80fd5b5061012261013e366004610a71565b6101fc565b34801561014e575f80fd5b506100c261015d366004610a91565b600260209081525f928352604080842090915290825290205460ff1681565b348015610187575f80fd5b505f546001600160a01b03166100f6565b6101226101a6366004610acd565b610275565b3480156101b6575f80fd5b506101226101c5366004610a71565b610796565b3480156101d5575f80fd5b506101226101e4366004610a71565b610808565b6101f1610845565b6101fa5f610871565b565b610204610845565b6001600160a01b0381166102525760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420416464726573732160801b60448201526064015b60405180910390fd5b6001600160a01b03165f908152600460205260409020805460ff19166001179055565b61027d6108c0565b6040516bffffffffffffffffffffffff1930606090811b8216602084015233901b166034820152604881018490525f9061031c90606801604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018290525f90605c01604051602081830303815290604052805190602001209050919050565b6003549091506001600160a01b031661033582876108ea565b6001600160a01b03161461037d5760405162461bcd60e51b815260206004820152600f60248201526e77726f6e67207369676e617475726560881b6044820152606401610249565b335f90815260026020908152604080832087845290915290205460ff16156103e75760405162461bcd60e51b815260206004820152601a60248201527f7472616e7366657220616c72656164792070726f6365737365640000000000006044820152606401610249565b335f9081526002602090815260408083208784529091529020805460ff19166001179055341561060f576001600160a01b0383161561047e5760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f74204861766520426f74682045544820262045524332302050617960448201526c6d656e74204d6574686f64642160981b6064820152608401610249565b813410156104ce5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e742046756e64732053656e742100000000000000006044820152606401610249565b6005546040515f916001600160a01b03169084908381818185875af1925050503d805f8114610518576040519150601f19603f3d011682016040523d82523d5f602084013e61051d565b606091505b50509050806105605760405162461bcd60e51b815260206004820152600f60248201526e5061796d656e74204661696c65642160881b6044820152606401610249565b5f61056b8434610b99565b9050801561060857604051339082905f81818185875af1925050503d805f81146105b0576040519150601f19603f3d011682016040523d82523d5f602084013e6105b5565b606091505b505080925050816106085760405162461bcd60e51b815260206004820152601760248201527f4661696c656420546f20526566756e64204578747261210000000000000000006044820152606401610249565b5050610746565b6001600160a01b0383165f9081526004602052604090205460ff166106765760405162461bcd60e51b815260206004820152601b60248201527f556e737570706f72746564205061796d656e74204d6574686f642100000000006044820152606401610249565b604051636eb1769f60e11b815233600482015230602482015282906001600160a01b0385169063dd62ed3e90604401602060405180830381865afa1580156106c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e49190610bb8565b101561072a5760405162461bcd60e51b81526020600482015260156024820152744e6f7420456e6f75676820416c6c6f77616e63652160581b6044820152606401610249565b600554610746906001600160a01b038581169133911685610965565b6040518281526001600160a01b0384169033907f8ed7db30df47fbd87811a5e8a95a94838f0c0241263d9a1865d6a2a3e10516e29060200160405180910390a35061079060018055565b50505050565b61079e610845565b6001600160a01b0381166107e65760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610249565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610810610845565b6001600160a01b03811661083957604051631e4fbdf760e01b81525f6004820152602401610249565b61084281610871565b50565b5f546001600160a01b031633146101fa5760405163118cdaa760e01b8152336004820152602401610249565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6002600154036108e357604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b5f805f806108f7856109bf565b604080515f8152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa15801561094f573d5f803e3d5ffd5b5050506020604051035193505050505b92915050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526107909085906109ea565b5f805f83516041146109cf575f80fd5b505050602081015160408201516060909201515f1a92909190565b5f8060205f8451602086015f885af180610a09576040513d5f823e3d81fd5b50505f513d91508115610a20578060011415610a2d565b6001600160a01b0384163b155b1561079057604051635274afe760e01b81526001600160a01b0385166004820152602401610249565b80356001600160a01b0381168114610a6c575f80fd5b919050565b5f60208284031215610a81575f80fd5b610a8a82610a56565b9392505050565b5f8060408385031215610aa2575f80fd5b610aab83610a56565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f805f8060808587031215610ae0575f80fd5b843567ffffffffffffffff80821115610af7575f80fd5b818701915087601f830112610b0a575f80fd5b813581811115610b1c57610b1c610ab9565b604051601f8201601f19908116603f01168101908382118183101715610b4457610b44610ab9565b816040528281528a6020848701011115610b5c575f80fd5b826020860160208301375f60208483010152809850505050505060208501359250610b8960408601610a56565b9396929550929360600135925050565b8181038181111561095f57634e487b7160e01b5f52601160045260245ffd5b5f60208284031215610bc8575f80fd5b505191905056fea2646970667358221220dd9a6dad493c65b867a38439209d876cf71703eb4003dd720c23d085c54156d964736f6c63430008140033000000000000000000000000dc9b35cd033c30f253e50c63764cbb7e0db6ee9400000000000000000000000074a3f8bfeca8b2410f77a34a1a634e934b0b716c
Deployed Bytecode
0x608060405260043610610087575f3560e01c80637cc70240116100575780637cc70240146101435780638da5cb5b1461017c578063ebc8663914610198578063f0f44260146101ab578063f2fde38b146101ca575f80fd5b80635ad9ff241461009457806361d027b3146100d7578063715018a61461010e57806374910a8714610124575f80fd5b36610090575f80fd5b5f80fd5b34801561009f575f80fd5b506100c26100ae366004610a71565b60046020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156100e2575f80fd5b506005546100f6906001600160a01b031681565b6040516001600160a01b0390911681526020016100ce565b348015610119575f80fd5b506101226101e9565b005b34801561012f575f80fd5b5061012261013e366004610a71565b6101fc565b34801561014e575f80fd5b506100c261015d366004610a91565b600260209081525f928352604080842090915290825290205460ff1681565b348015610187575f80fd5b505f546001600160a01b03166100f6565b6101226101a6366004610acd565b610275565b3480156101b6575f80fd5b506101226101c5366004610a71565b610796565b3480156101d5575f80fd5b506101226101e4366004610a71565b610808565b6101f1610845565b6101fa5f610871565b565b610204610845565b6001600160a01b0381166102525760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420416464726573732160801b60448201526064015b60405180910390fd5b6001600160a01b03165f908152600460205260409020805460ff19166001179055565b61027d6108c0565b6040516bffffffffffffffffffffffff1930606090811b8216602084015233901b166034820152604881018490525f9061031c90606801604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018290525f90605c01604051602081830303815290604052805190602001209050919050565b6003549091506001600160a01b031661033582876108ea565b6001600160a01b03161461037d5760405162461bcd60e51b815260206004820152600f60248201526e77726f6e67207369676e617475726560881b6044820152606401610249565b335f90815260026020908152604080832087845290915290205460ff16156103e75760405162461bcd60e51b815260206004820152601a60248201527f7472616e7366657220616c72656164792070726f6365737365640000000000006044820152606401610249565b335f9081526002602090815260408083208784529091529020805460ff19166001179055341561060f576001600160a01b0383161561047e5760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f74204861766520426f74682045544820262045524332302050617960448201526c6d656e74204d6574686f64642160981b6064820152608401610249565b813410156104ce5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e742046756e64732053656e742100000000000000006044820152606401610249565b6005546040515f916001600160a01b03169084908381818185875af1925050503d805f8114610518576040519150601f19603f3d011682016040523d82523d5f602084013e61051d565b606091505b50509050806105605760405162461bcd60e51b815260206004820152600f60248201526e5061796d656e74204661696c65642160881b6044820152606401610249565b5f61056b8434610b99565b9050801561060857604051339082905f81818185875af1925050503d805f81146105b0576040519150601f19603f3d011682016040523d82523d5f602084013e6105b5565b606091505b505080925050816106085760405162461bcd60e51b815260206004820152601760248201527f4661696c656420546f20526566756e64204578747261210000000000000000006044820152606401610249565b5050610746565b6001600160a01b0383165f9081526004602052604090205460ff166106765760405162461bcd60e51b815260206004820152601b60248201527f556e737570706f72746564205061796d656e74204d6574686f642100000000006044820152606401610249565b604051636eb1769f60e11b815233600482015230602482015282906001600160a01b0385169063dd62ed3e90604401602060405180830381865afa1580156106c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e49190610bb8565b101561072a5760405162461bcd60e51b81526020600482015260156024820152744e6f7420456e6f75676820416c6c6f77616e63652160581b6044820152606401610249565b600554610746906001600160a01b038581169133911685610965565b6040518281526001600160a01b0384169033907f8ed7db30df47fbd87811a5e8a95a94838f0c0241263d9a1865d6a2a3e10516e29060200160405180910390a35061079060018055565b50505050565b61079e610845565b6001600160a01b0381166107e65760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610249565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610810610845565b6001600160a01b03811661083957604051631e4fbdf760e01b81525f6004820152602401610249565b61084281610871565b50565b5f546001600160a01b031633146101fa5760405163118cdaa760e01b8152336004820152602401610249565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6002600154036108e357604051633ee5aeb560e01b815260040160405180910390fd5b6002600155565b5f805f806108f7856109bf565b604080515f8152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa15801561094f573d5f803e3d5ffd5b5050506020604051035193505050505b92915050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526107909085906109ea565b5f805f83516041146109cf575f80fd5b505050602081015160408201516060909201515f1a92909190565b5f8060205f8451602086015f885af180610a09576040513d5f823e3d81fd5b50505f513d91508115610a20578060011415610a2d565b6001600160a01b0384163b155b1561079057604051635274afe760e01b81526001600160a01b0385166004820152602401610249565b80356001600160a01b0381168114610a6c575f80fd5b919050565b5f60208284031215610a81575f80fd5b610a8a82610a56565b9392505050565b5f8060408385031215610aa2575f80fd5b610aab83610a56565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f805f8060808587031215610ae0575f80fd5b843567ffffffffffffffff80821115610af7575f80fd5b818701915087601f830112610b0a575f80fd5b813581811115610b1c57610b1c610ab9565b604051601f8201601f19908116603f01168101908382118183101715610b4457610b44610ab9565b816040528281528a6020848701011115610b5c575f80fd5b826020860160208301375f60208483010152809850505050505060208501359250610b8960408601610a56565b9396929550929360600135925050565b8181038181111561095f57634e487b7160e01b5f52601160045260245ffd5b5f60208284031215610bc8575f80fd5b505191905056fea2646970667358221220dd9a6dad493c65b867a38439209d876cf71703eb4003dd720c23d085c54156d964736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dc9b35cd033c30f253e50c63764cbb7e0db6ee9400000000000000000000000074a3f8bfeca8b2410f77a34a1a634e934b0b716c
-----Decoded View---------------
Arg [0] : initialOwner (address): 0xDc9B35cd033c30F253e50C63764cBb7E0DB6eE94
Arg [1] : _verifierAddress (address): 0x74a3f8BFECa8B2410F77A34a1A634E934b0b716C
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000dc9b35cd033c30f253e50c63764cbb7e0db6ee94
Arg [1] : 00000000000000000000000074a3f8bfeca8b2410f77a34a1a634e934b0b716c
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.