Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 92 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create Instant T... | 20341968 | 10 hrs ago | IN | 0 ETH | 0.00073062 | ||||
Withdraw Instant | 20335445 | 31 hrs ago | IN | 0 ETH | 0.00072508 | ||||
Withdraw Instant | 20319638 | 3 days ago | IN | 0 ETH | 0.00077163 | ||||
Create Instant T... | 20271261 | 10 days ago | IN | 0 ETH | 0.00030551 | ||||
Create Instant T... | 20259868 | 11 days ago | IN | 0 ETH | 0.00013175 | ||||
Withdraw Instant | 20247921 | 13 days ago | IN | 0 ETH | 0.00025235 | ||||
Withdraw Instant | 20219900 | 17 days ago | IN | 0 ETH | 0.00055228 | ||||
Withdraw Instant | 20213101 | 18 days ago | IN | 0 ETH | 0.00063651 | ||||
Create Instant T... | 20209885 | 18 days ago | IN | 0 ETH | 0.00025346 | ||||
Create Instant T... | 20209870 | 18 days ago | IN | 0 ETH | 0.00023563 | ||||
Create Instant T... | 20209865 | 18 days ago | IN | 0 ETH | 0.0002364 | ||||
Withdraw Instant | 20208628 | 19 days ago | IN | 0 ETH | 0.00031695 | ||||
Withdraw Instant | 20167968 | 24 days ago | IN | 0 ETH | 0.00027815 | ||||
Withdraw Instant | 20163527 | 25 days ago | IN | 0 ETH | 0.00037661 | ||||
Create Instant T... | 20162886 | 25 days ago | IN | 0 ETH | 0.00166393 | ||||
Create Instant T... | 20162832 | 25 days ago | IN | 0 ETH | 0.00114619 | ||||
Create Instant T... | 20162803 | 25 days ago | IN | 0 ETH | 0.00151333 | ||||
Create Instant T... | 20162784 | 25 days ago | IN | 0 ETH | 0.00119758 | ||||
Withdraw Instant | 20161211 | 25 days ago | IN | 0 ETH | 0.00024752 | ||||
Withdraw Instant | 20161159 | 25 days ago | IN | 0 ETH | 0.00025152 | ||||
Create Instant T... | 20135502 | 29 days ago | IN | 0 ETH | 0.00037384 | ||||
Create Instant T... | 20135480 | 29 days ago | IN | 0 ETH | 0.00039181 | ||||
Withdraw Instant | 20092132 | 35 days ago | IN | 0 ETH | 0.00073005 | ||||
Create Instant T... | 20085020 | 36 days ago | IN | 0 ETH | 0.00088383 | ||||
Create Instant T... | 20049706 | 41 days ago | IN | 0 ETH | 0.00049417 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MoneyInstant
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
byzantium EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // File: MoneyInstant.sol pragma solidity 0.8.17; // Libs Dependencies import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; // Protocol Components import './IMoneyInstant.sol'; import './Types.sol'; /** * @title MoneyInstant * @notice MoneyInstant implementation for ERC20 tokens. */ contract MoneyInstant is IMoneyInstant, ReentrancyGuard, Ownable { using SafeERC20 for IERC20; mapping(address => mapping(address => uint256)) private userToTokens; mapping(address => uint256) private userToNative; function createInstantTransfer( string calldata id, address tokenAddress, Types.Payment[] memory payments ) external { require(payments.length > 0, 'no any payments'); uint256 totalDeposit; for (uint256 i = 0; i < payments.length; i++) { address recipient = payments[i].recipient; require( recipient != address(0x00), 'cannot send to the zero address' ); require( recipient != address(this), 'cannot send to the contract itself' ); require( recipient != msg.sender, 'cannot send to the caller address' ); uint256 deposit = payments[i].deposit; require(deposit > 0, 'deposit is zero'); totalDeposit += deposit; userToTokens[recipient][tokenAddress] += deposit; } emit InstantTransfer(id, msg.sender, tokenAddress, totalDeposit); IERC20(tokenAddress).safeTransferFrom( msg.sender, address(this), totalDeposit ); } function withdrawInstant(address tokenAddress, uint256 amount) external nonReentrant { require(amount > 0, 'amount is zero'); uint256 balance = userToTokens[msg.sender][tokenAddress]; require(balance >= amount, 'amount exceeds the available balance'); unchecked { userToTokens[msg.sender][tokenAddress] = balance - amount; } emit InstantWithdraw(msg.sender, tokenAddress, amount); IERC20(tokenAddress).safeTransfer(msg.sender, amount); } function getTokenBalance(address recipient, address tokenAddress) external view returns (uint256 balance) { balance = userToTokens[recipient][tokenAddress]; } function createNativeTokenTransfer( string calldata id, Types.Payment[] memory payments ) external payable { require(payments.length > 0, 'no any payments'); uint256 totalDeposit; for (uint256 i = 0; i < payments.length; i++) { address recipient = payments[i].recipient; require( recipient != address(0x00), 'cannot send to the zero address' ); require( recipient != address(this), 'cannot send to the contract itself' ); require( recipient != msg.sender, 'cannot send to the caller address' ); uint256 deposit = payments[i].deposit; require(deposit > 0, 'deposit is zero'); totalDeposit += deposit; userToNative[recipient] += deposit; } require(totalDeposit == msg.value, 'not enough balance passed'); emit NativeInstantTransfer(id, msg.sender, msg.value); } function withdrawNativeInstant(uint256 amount) external nonReentrant { require(amount > 0, 'amount is zero'); uint256 balance = userToNative[msg.sender]; require(balance >= amount, 'amount exceeds the available balance'); unchecked { userToNative[msg.sender] = balance - amount; } (bool success, ) = msg.sender.call{value: amount}(''); require(success, 'Transfer failed.'); emit NativeInstantWithdraw(msg.sender, amount); } function getNativeBalance(address recipient) external view returns (uint256 balance) { balance = userToNative[recipient]; } function payNiural( string calldata id, address tokenAddress, uint256 amount ) public { require(amount > 0, 'amount is zero'); emit PayNiural(id, msg.sender, tokenAddress, amount); IERC20(tokenAddress).safeTransferFrom(msg.sender, owner(), amount); } function pay( string calldata id, address tokenAddress, address recipient, uint256 amount ) public { require(amount > 0, 'amount is zero'); require(recipient != address(0x00), 'cannot send to the zero address'); require(recipient != msg.sender, 'cannot send to the caller address'); emit Pay(id, msg.sender, tokenAddress, recipient, amount); IERC20(tokenAddress).safeTransferFrom(msg.sender, recipient, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` 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 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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 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; 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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../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. * * By default, the owner account will be the one that deploys the contract. 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; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _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 pragma solidity 0.8.17; // File: IMoneyInstant.sol import './Types.sol'; /** * @title IMoneyInstant provides an interface to receive tokens and disburse tokens to multiple recipients at once. */ interface IMoneyInstant { /** * @notice Emits when an instant transfer is successfully created. */ event InstantTransfer( string indexed id, address indexed sender, address indexed tokenAddress, uint256 deposit ); /** * @notice Emits when the recipient withdraws a portion or all their tokens. */ event InstantWithdraw( address indexed recipient, address indexed tokenAddress, uint256 amount ); /** * @notice Emits when an native instant transfer is successfully created. */ event NativeInstantTransfer( string indexed id, address indexed sender, uint256 deposit ); /** * @notice Emits when the recipient withdraws a portion or all their native tokens. */ event NativeInstantWithdraw(address indexed recipient, uint256 amount); /** * @notice Emits when the Owner gets paid. */ event PayNiural( string indexed id, address indexed sender, address indexed tokenAddress, uint256 amount ); /** * @notice Emits when the recipient receives the token through pay function. */ event Pay( string indexed id, address indexed sender, address indexed tokenAddress, address recipient, uint256 amount ); /** * @notice Creates a new instant transfer funded by `msg.sender` and paid towards `recipients`. * @dev The length of the payments is capped by the block gas limit. * Emits an {InstantTransfer} event * Throws if the payments size is zero * Throws if the recipient is the zero address, the contract itself or the caller. * Throws if the contract is not allowed to transfer enough tokens. * Throws if there is a token transfer failure. * @param tokenAddress The ERC20 token to used. * @param payments Array of recipient address and corresponding deposit */ function createInstantTransfer( string calldata id, address tokenAddress, Types.Payment[] memory payments ) external; /** * @notice Withdraws from the contract to the recipient's account. * @dev Emits an {InstantWithdraw} event * Throws if the amount is zero. * Throws if the amount exceeds the available balance for the token. * Throws if there is a token transfer failure. * @param tokenAddress The id of the stream to withdraw tokens from. * @param amount The amount of tokens to withdraw. */ function withdrawInstant(address tokenAddress, uint256 amount) external; /** * @notice Gets TokenBalance of a specific token for the user. * @param recipient The address of the receiver wallet. * @param tokenAddress The address of the token to check balance of. * @return balance TokenBalance for the token. */ function getTokenBalance(address recipient, address tokenAddress) external view returns (uint256 balance); /** * @notice Creates a new native token instant transfer funded by `msg.sender` and paid towards `recipients`. * The length of the deposits is capped by the block gas limit. * Emits an {nativeInstantTransfer} event * Throws if the payments size is zero * Throws if the recipient is the zero address, the contract itself or the caller. * Throws if the contract did not receive native token as sum of payment tokens. * Throws if there is a token transfer failure. * @param payments Array of recipient address and corresponding deposit */ function createNativeTokenTransfer( string calldata id, Types.Payment[] memory payments ) external payable; /** * @notice Withdraws from the contract to the recipient's account. * @dev Emits an {NativeInstantWithdraw} event * Throws if the amount is zero. * Throws if the amount exceeds the available balance for the native token. * Throws if there is a token transfer failure. * @param amount The amount of tokens to withdraw. */ function withdrawNativeInstant(uint256 amount) external; /** * @notice Gets Native TokenBalance of user. * @param recipient The address of the receiver wallet. * @return balance TokenBalance for the token. */ function getNativeBalance(address recipient) external view returns (uint256 balance); /** * @notice Pay niural fee to owner. * @dev Emits an {Payniural} event * Throws if the amount is zero. * @param amount The amount of tokens to pay. * @param tokenAddress The ERC20 token to be used. */ function payNiural( string calldata id, address tokenAddress, uint256 amount ) external; /** * @notice Pay @param recipient @param amount. * Throws if the amount is zero. * @param amount The amount of tokens to pay. * @param tokenAddress The ERC20 token to be used. * @param recipient The address of the recipient */ function pay( string calldata id, address tokenAddress, address recipient, uint256 amount ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; // File: Types.sol /** * @title MoneyInstant Types */ library Types { struct Payment { address recipient; uint256 deposit; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @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, it is bubbled up by this * function (like regular Solidity function calls). * * 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. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @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`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } }
{ "evmVersion": "byzantium", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"id","type":"string"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"deposit","type":"uint256"}],"name":"InstantTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InstantWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"id","type":"string"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"deposit","type":"uint256"}],"name":"NativeInstantTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NativeInstantWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"id","type":"string"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Pay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"id","type":"string"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PayNiural","type":"event"},{"inputs":[{"internalType":"string","name":"id","type":"string"},{"internalType":"address","name":"tokenAddress","type":"address"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deposit","type":"uint256"}],"internalType":"struct Types.Payment[]","name":"payments","type":"tuple[]"}],"name":"createInstantTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"id","type":"string"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deposit","type":"uint256"}],"internalType":"struct Types.Payment[]","name":"payments","type":"tuple[]"}],"name":"createNativeTokenTransfer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"getNativeBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"getTokenBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"id","type":"string"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"pay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"id","type":"string"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"payNiural","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawInstant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawNativeInstant","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600160005561003861002a64010000000061003d810204565b640100000000610041810204565b610093565b3390565b60018054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611759806100a26000396000f3fe6080604052600436106100b9576000357c0100000000000000000000000000000000000000000000000000000000900480638c70978d116100815780638c70978d146101485780638da5cb5b14610168578063c489744b14610195578063e024c908146101e9578063efd8be6214610209578063f2fde38b1461023f57600080fd5b8063363983b0146100be5780634f24ec11146100e0578063575cb2ff146100f3578063715018a6146101135780637f62980914610128575b600080fd5b3480156100ca57600080fd5b506100de6100d9366004611091565b61025f565b005b6100de6100ee366004611242565b6103fc565b3480156100ff57600080fd5b506100de61010e3660046112ab565b61066b565b34801561011f57600080fd5b506100de6107a7565b34801561013457600080fd5b506100de6101433660046112d5565b6107bb565b34801561015457600080fd5b506100de610163366004611342565b6108bb565b34801561017457600080fd5b50600154604051600160a060020a0390911681526020015b60405180910390f35b3480156101a157600080fd5b506101db6101b036600461139e565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60405190815260200161018c565b3480156101f557600080fd5b506100de6102043660046113d1565b61096a565b34801561021557600080fd5b506101db61022436600461144e565b600160a060020a031660009081526003602052604090205490565b34801561024b57600080fd5b506100de61025a36600461144e565b610bb7565b6002600054036102b95760405160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055806102de5760405160e560020a62461bcd0281526004016102b090611469565b33600090815260036020526040902054818110156103115760405160e560020a62461bcd0281526004016102b0906114a0565b3360008181526003602052604080822085850390555190919084908381818185875af1925050503d8060008114610364576040519150601f19603f3d011682016040523d82523d6000602084013e610369565b606091505b50509050806103bd5760405160e560020a62461bcd02815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016102b0565b60405183815233907fe48ce20052356636f8c8885530ee91556d7fecdf5ea2d88bfe6dd04b356338fd9060200160405180910390a25050600160005550565b60008151116104505760405160e560020a62461bcd02815260206004820152600f60248201527f6e6f20616e79207061796d656e7473000000000000000000000000000000000060448201526064016102b0565b6000805b82518110156105c6576000838281518110610471576104716114fd565b6020908102919091010151519050600160a060020a0381166104a85760405160e560020a62461bcd0281526004016102b09061152c565b30600160a060020a038216036104d35760405160e560020a62461bcd0281526004016102b090611563565b33600160a060020a038216036104fe5760405160e560020a62461bcd0281526004016102b0906115c0565b6000848381518110610512576105126114fd565b6020026020010151602001519050600081116105735760405160e560020a62461bcd02815260206004820152600f60248201527f6465706f736974206973207a65726f000000000000000000000000000000000060448201526064016102b0565b61057d818561164c565b600160a060020a0383166000908152600360205260408120805492965083929091906105aa90849061164c565b92505081905550505080806105be90611665565b915050610454565b503481146106195760405160e560020a62461bcd02815260206004820152601960248201527f6e6f7420656e6f7567682062616c616e6365207061737365640000000000000060448201526064016102b0565b604051339061062b908690869061167e565b604051908190038120348252907f3c0baca7bcd08e0ea162863d7ab8e4ce9f59edb5ed8e433ac6503468207f57b09060200160405180910390a350505050565b6002600054036106c05760405160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102b0565b6002600055806106e55760405160e560020a62461bcd0281526004016102b090611469565b336000908152600260209081526040808320600160a060020a03861684529091529020548181101561072c5760405160e560020a62461bcd0281526004016102b0906114a0565b336000818152600260209081526040808320600160a060020a038816808552908352928190208686039055518581529192917f7d2d6e40dec1eb7532f0d721bf80b2f06c0b9e51af7a31800ecf267862ebde63910160405180910390a361079d600160a060020a0384163384610c4a565b5050600160005550565b6107af610cf8565b6107b96000610d55565b565b600081116107de5760405160e560020a62461bcd0281526004016102b090611469565b600160a060020a0382166108075760405160e560020a62461bcd0281526004016102b09061152c565b33600160a060020a038316036108325760405160e560020a62461bcd0281526004016102b0906115c0565b82600160a060020a031633600160a060020a0316868660405161085692919061167e565b60408051918290038220600160a060020a038716835260208301869052917f39296dbf32218993063845152381e7659979b64c3ce2d0f4c8eb06a25581eb6a910160405180910390a46108b4600160a060020a038416338484610db4565b5050505050565b600081116108de5760405160e560020a62461bcd0281526004016102b090611469565b81600160a060020a031633600160a060020a0316858560405161090292919061167e565b604051908190038120848252907fc653383a301f74474f1460784488e851d1b7a163225f8ee779fb3cc5b175e7829060200160405180910390a461096433610952600154600160a060020a031690565b600160a060020a038516919084610db4565b50505050565b60008151116109be5760405160e560020a62461bcd02815260206004820152600f60248201527f6e6f20616e79207061796d656e7473000000000000000000000000000000000060448201526064016102b0565b6000805b8251811015610b435760008382815181106109df576109df6114fd565b6020908102919091010151519050600160a060020a038116610a165760405160e560020a62461bcd0281526004016102b09061152c565b30600160a060020a03821603610a415760405160e560020a62461bcd0281526004016102b090611563565b33600160a060020a03821603610a6c5760405160e560020a62461bcd0281526004016102b0906115c0565b6000848381518110610a8057610a806114fd565b602002602001015160200151905060008111610ae15760405160e560020a62461bcd02815260206004820152600f60248201527f6465706f736974206973207a65726f000000000000000000000000000000000060448201526064016102b0565b610aeb818561164c565b600160a060020a038084166000908152600260209081526040808320938b16835292905290812080549296508392909190610b2790849061164c565b9250508190555050508080610b3b90611665565b9150506109c2565b5082600160a060020a031633600160a060020a03168686604051610b6892919061167e565b604051908190038120848252907f25cf9246575c49dbe89764f61f1b32374872fa12a054a1c58c0f0d1a49c834369060200160405180910390a46108b4600160a060020a038416333084610db4565b610bbf610cf8565b600160a060020a038116610c3e5760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102b0565b610c4781610d55565b50565b604051600160a060020a038316602482015260448101829052610cf39084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610e05565b505050565b600154600160a060020a031633146107b95760405160e560020a62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b0565b60018054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051600160a060020a03808516602483015283166044820152606481018290526109649085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610c8f565b6000610e5a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525085600160a060020a0316610eed9092919063ffffffff16565b805190915015610cf35780806020019051810190610e78919061168e565b610cf35760405160e560020a62461bcd02815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102b0565b6060610efc8484600085610f06565b90505b9392505050565b60603031831115610f825760405160e560020a62461bcd02815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102b0565b600160a060020a0385163b610fdc5760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b0565b60008086600160a060020a03168587604051610ff891906116d4565b60006040518083038185875af1925050503d8060008114611035576040519150601f19603f3d011682016040523d82523d6000602084013e61103a565b606091505b509150915061104a828286611055565b979650505050505050565b60608315611064575081610eff565b8251156110745782518084602001fd5b8160405160e560020a62461bcd0281526004016102b091906116f0565b6000602082840312156110a357600080fd5b5035919050565b60008083601f8401126110bc57600080fd5b50813567ffffffffffffffff8111156110d457600080fd5b6020830191508360208285010111156110ec57600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715611145576111456110f3565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611174576111746110f3565b604052919050565b8035600160a060020a038116811461119357600080fd5b919050565b600082601f8301126111a957600080fd5b8135602067ffffffffffffffff8211156111c5576111c56110f3565b6111d2818284020161114b565b828152604092830285018201928282019190878511156111f157600080fd5b8387015b858110156112355781818a03121561120d5760008081fd5b611215611122565b61121e8261117c565b8152818601358682015284529284019281016111f5565b5090979650505050505050565b60008060006040848603121561125757600080fd5b833567ffffffffffffffff8082111561126f57600080fd5b61127b878388016110aa565b9095509350602086013591508082111561129457600080fd5b506112a186828701611198565b9150509250925092565b600080604083850312156112be57600080fd5b6112c78361117c565b946020939093013593505050565b6000806000806000608086880312156112ed57600080fd5b853567ffffffffffffffff81111561130457600080fd5b611310888289016110aa565b909650945061132390506020870161117c565b92506113316040870161117c565b949793965091946060013592915050565b6000806000806060858703121561135857600080fd5b843567ffffffffffffffff81111561136f57600080fd5b61137b878288016110aa565b909550935061138e90506020860161117c565b9396929550929360400135925050565b600080604083850312156113b157600080fd5b6113ba8361117c565b91506113c86020840161117c565b90509250929050565b600080600080606085870312156113e757600080fd5b843567ffffffffffffffff808211156113ff57600080fd5b61140b888389016110aa565b909650945084915061141f6020880161117c565b9350604087013591508082111561143557600080fd5b5061144287828801611198565b91505092959194509250565b60006020828403121561146057600080fd5b610eff8261117c565b6020808252600e908201527f616d6f756e74206973207a65726f000000000000000000000000000000000000604082015260600190565b60208082526024908201527f616d6f756e7420657863656564732074686520617661696c61626c652062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020808252601f908201527f63616e6e6f742073656e6420746f20746865207a65726f206164647265737300604082015260600190565b60208082526022908201527f63616e6e6f742073656e6420746f2074686520636f6e7472616374206974736560408201527f6c66000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f63616e6e6f742073656e6420746f207468652063616c6c65722061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561165f5761165f61161d565b92915050565b6000600182016116775761167761161d565b5060010190565b8183823760009101908152919050565b6000602082840312156116a057600080fd5b81518015158114610eff57600080fd5b60005b838110156116cb5781810151838201526020016116b3565b50506000910152565b600082516116e68184602087016116b0565b9190910192915050565b602081526000825180602084015261170f8160408501602087016116b0565b601f01601f1916919091016040019291505056fea26469706673582212203ad6047ab07cb4be67e05a60e0d7528e856cfec144f599f2703e9eaf337050ec64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106100b9576000357c0100000000000000000000000000000000000000000000000000000000900480638c70978d116100815780638c70978d146101485780638da5cb5b14610168578063c489744b14610195578063e024c908146101e9578063efd8be6214610209578063f2fde38b1461023f57600080fd5b8063363983b0146100be5780634f24ec11146100e0578063575cb2ff146100f3578063715018a6146101135780637f62980914610128575b600080fd5b3480156100ca57600080fd5b506100de6100d9366004611091565b61025f565b005b6100de6100ee366004611242565b6103fc565b3480156100ff57600080fd5b506100de61010e3660046112ab565b61066b565b34801561011f57600080fd5b506100de6107a7565b34801561013457600080fd5b506100de6101433660046112d5565b6107bb565b34801561015457600080fd5b506100de610163366004611342565b6108bb565b34801561017457600080fd5b50600154604051600160a060020a0390911681526020015b60405180910390f35b3480156101a157600080fd5b506101db6101b036600461139e565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60405190815260200161018c565b3480156101f557600080fd5b506100de6102043660046113d1565b61096a565b34801561021557600080fd5b506101db61022436600461144e565b600160a060020a031660009081526003602052604090205490565b34801561024b57600080fd5b506100de61025a36600461144e565b610bb7565b6002600054036102b95760405160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055806102de5760405160e560020a62461bcd0281526004016102b090611469565b33600090815260036020526040902054818110156103115760405160e560020a62461bcd0281526004016102b0906114a0565b3360008181526003602052604080822085850390555190919084908381818185875af1925050503d8060008114610364576040519150601f19603f3d011682016040523d82523d6000602084013e610369565b606091505b50509050806103bd5760405160e560020a62461bcd02815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016102b0565b60405183815233907fe48ce20052356636f8c8885530ee91556d7fecdf5ea2d88bfe6dd04b356338fd9060200160405180910390a25050600160005550565b60008151116104505760405160e560020a62461bcd02815260206004820152600f60248201527f6e6f20616e79207061796d656e7473000000000000000000000000000000000060448201526064016102b0565b6000805b82518110156105c6576000838281518110610471576104716114fd565b6020908102919091010151519050600160a060020a0381166104a85760405160e560020a62461bcd0281526004016102b09061152c565b30600160a060020a038216036104d35760405160e560020a62461bcd0281526004016102b090611563565b33600160a060020a038216036104fe5760405160e560020a62461bcd0281526004016102b0906115c0565b6000848381518110610512576105126114fd565b6020026020010151602001519050600081116105735760405160e560020a62461bcd02815260206004820152600f60248201527f6465706f736974206973207a65726f000000000000000000000000000000000060448201526064016102b0565b61057d818561164c565b600160a060020a0383166000908152600360205260408120805492965083929091906105aa90849061164c565b92505081905550505080806105be90611665565b915050610454565b503481146106195760405160e560020a62461bcd02815260206004820152601960248201527f6e6f7420656e6f7567682062616c616e6365207061737365640000000000000060448201526064016102b0565b604051339061062b908690869061167e565b604051908190038120348252907f3c0baca7bcd08e0ea162863d7ab8e4ce9f59edb5ed8e433ac6503468207f57b09060200160405180910390a350505050565b6002600054036106c05760405160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102b0565b6002600055806106e55760405160e560020a62461bcd0281526004016102b090611469565b336000908152600260209081526040808320600160a060020a03861684529091529020548181101561072c5760405160e560020a62461bcd0281526004016102b0906114a0565b336000818152600260209081526040808320600160a060020a038816808552908352928190208686039055518581529192917f7d2d6e40dec1eb7532f0d721bf80b2f06c0b9e51af7a31800ecf267862ebde63910160405180910390a361079d600160a060020a0384163384610c4a565b5050600160005550565b6107af610cf8565b6107b96000610d55565b565b600081116107de5760405160e560020a62461bcd0281526004016102b090611469565b600160a060020a0382166108075760405160e560020a62461bcd0281526004016102b09061152c565b33600160a060020a038316036108325760405160e560020a62461bcd0281526004016102b0906115c0565b82600160a060020a031633600160a060020a0316868660405161085692919061167e565b60408051918290038220600160a060020a038716835260208301869052917f39296dbf32218993063845152381e7659979b64c3ce2d0f4c8eb06a25581eb6a910160405180910390a46108b4600160a060020a038416338484610db4565b5050505050565b600081116108de5760405160e560020a62461bcd0281526004016102b090611469565b81600160a060020a031633600160a060020a0316858560405161090292919061167e565b604051908190038120848252907fc653383a301f74474f1460784488e851d1b7a163225f8ee779fb3cc5b175e7829060200160405180910390a461096433610952600154600160a060020a031690565b600160a060020a038516919084610db4565b50505050565b60008151116109be5760405160e560020a62461bcd02815260206004820152600f60248201527f6e6f20616e79207061796d656e7473000000000000000000000000000000000060448201526064016102b0565b6000805b8251811015610b435760008382815181106109df576109df6114fd565b6020908102919091010151519050600160a060020a038116610a165760405160e560020a62461bcd0281526004016102b09061152c565b30600160a060020a03821603610a415760405160e560020a62461bcd0281526004016102b090611563565b33600160a060020a03821603610a6c5760405160e560020a62461bcd0281526004016102b0906115c0565b6000848381518110610a8057610a806114fd565b602002602001015160200151905060008111610ae15760405160e560020a62461bcd02815260206004820152600f60248201527f6465706f736974206973207a65726f000000000000000000000000000000000060448201526064016102b0565b610aeb818561164c565b600160a060020a038084166000908152600260209081526040808320938b16835292905290812080549296508392909190610b2790849061164c565b9250508190555050508080610b3b90611665565b9150506109c2565b5082600160a060020a031633600160a060020a03168686604051610b6892919061167e565b604051908190038120848252907f25cf9246575c49dbe89764f61f1b32374872fa12a054a1c58c0f0d1a49c834369060200160405180910390a46108b4600160a060020a038416333084610db4565b610bbf610cf8565b600160a060020a038116610c3e5760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102b0565b610c4781610d55565b50565b604051600160a060020a038316602482015260448101829052610cf39084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610e05565b505050565b600154600160a060020a031633146107b95760405160e560020a62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b0565b60018054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051600160a060020a03808516602483015283166044820152606481018290526109649085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610c8f565b6000610e5a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525085600160a060020a0316610eed9092919063ffffffff16565b805190915015610cf35780806020019051810190610e78919061168e565b610cf35760405160e560020a62461bcd02815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102b0565b6060610efc8484600085610f06565b90505b9392505050565b60603031831115610f825760405160e560020a62461bcd02815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102b0565b600160a060020a0385163b610fdc5760405160e560020a62461bcd02815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b0565b60008086600160a060020a03168587604051610ff891906116d4565b60006040518083038185875af1925050503d8060008114611035576040519150601f19603f3d011682016040523d82523d6000602084013e61103a565b606091505b509150915061104a828286611055565b979650505050505050565b60608315611064575081610eff565b8251156110745782518084602001fd5b8160405160e560020a62461bcd0281526004016102b091906116f0565b6000602082840312156110a357600080fd5b5035919050565b60008083601f8401126110bc57600080fd5b50813567ffffffffffffffff8111156110d457600080fd5b6020830191508360208285010111156110ec57600080fd5b9250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715611145576111456110f3565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611174576111746110f3565b604052919050565b8035600160a060020a038116811461119357600080fd5b919050565b600082601f8301126111a957600080fd5b8135602067ffffffffffffffff8211156111c5576111c56110f3565b6111d2818284020161114b565b828152604092830285018201928282019190878511156111f157600080fd5b8387015b858110156112355781818a03121561120d5760008081fd5b611215611122565b61121e8261117c565b8152818601358682015284529284019281016111f5565b5090979650505050505050565b60008060006040848603121561125757600080fd5b833567ffffffffffffffff8082111561126f57600080fd5b61127b878388016110aa565b9095509350602086013591508082111561129457600080fd5b506112a186828701611198565b9150509250925092565b600080604083850312156112be57600080fd5b6112c78361117c565b946020939093013593505050565b6000806000806000608086880312156112ed57600080fd5b853567ffffffffffffffff81111561130457600080fd5b611310888289016110aa565b909650945061132390506020870161117c565b92506113316040870161117c565b949793965091946060013592915050565b6000806000806060858703121561135857600080fd5b843567ffffffffffffffff81111561136f57600080fd5b61137b878288016110aa565b909550935061138e90506020860161117c565b9396929550929360400135925050565b600080604083850312156113b157600080fd5b6113ba8361117c565b91506113c86020840161117c565b90509250929050565b600080600080606085870312156113e757600080fd5b843567ffffffffffffffff808211156113ff57600080fd5b61140b888389016110aa565b909650945084915061141f6020880161117c565b9350604087013591508082111561143557600080fd5b5061144287828801611198565b91505092959194509250565b60006020828403121561146057600080fd5b610eff8261117c565b6020808252600e908201527f616d6f756e74206973207a65726f000000000000000000000000000000000000604082015260600190565b60208082526024908201527f616d6f756e7420657863656564732074686520617661696c61626c652062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020808252601f908201527f63616e6e6f742073656e6420746f20746865207a65726f206164647265737300604082015260600190565b60208082526022908201527f63616e6e6f742073656e6420746f2074686520636f6e7472616374206974736560408201527f6c66000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f63616e6e6f742073656e6420746f207468652063616c6c65722061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561165f5761165f61161d565b92915050565b6000600182016116775761167761161d565b5060010190565b8183823760009101908152919050565b6000602082840312156116a057600080fd5b81518015158114610eff57600080fd5b60005b838110156116cb5781810151838201526020016116b3565b50506000910152565b600082516116e68184602087016116b0565b9190910192915050565b602081526000825180602084015261170f8160408501602087016116b0565b601f01601f1916919091016040019291505056fea26469706673582212203ad6047ab07cb4be67e05a60e0d7528e856cfec144f599f2703e9eaf337050ec64736f6c63430008110033
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.