Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x9498C77F...D9176b3ee The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TokuShopShim
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
// All rights reserved
// TOKU Labs Pte Ltd 2023
pragma solidity 0.8.17;
contract TokuShopShim {
address public target;
constructor(address _target) {
target = _target;
}
function purchase(
uint256 saleId,
uint16 amount,
address buyer
) external payable returns (uint256 tokenId) {
_fallback();
}
function securePurchase(
uint64 itemId,
uint32 variantId,
uint16 amount,
uint112 price,
address buyer,
uint64 signatureDeadline,
uint64 signatureNonce,
bytes calldata signature
) external payable returns (uint256 tokenId) {
_fallback();
}
function _fallback() internal {
//Forward call to the target contract
(bool success, bytes memory data) = target.call{value: msg.value}(
msg.data
);
require(success, "Forwarded call failed.");
assembly {
return(add(data, 32), mload(data))
}
}
receive() external payable {
_fallback();
}
fallback() external payable {
_fallback();
}
}{
"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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_target","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"address","name":"buyer","type":"address"}],"name":"purchase","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint64","name":"itemId","type":"uint64"},{"internalType":"uint32","name":"variantId","type":"uint32"},{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"uint112","name":"price","type":"uint112"},{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint64","name":"signatureDeadline","type":"uint64"},{"internalType":"uint64","name":"signatureNonce","type":"uint64"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"securePurchase","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"target","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
0x608060405234801561001057600080fd5b5060405161042238038061042283398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b61038f806100936000396000f3fe6080604052600436106100385760003560e01c8063d2f215de1461004f578063d4b8399214610075578063f80ffe62146100ad57610047565b36610047576100456100c0565b005b6100456100c0565b61006261005d3660046101d1565b61017b565b6040519081526020015b60405180910390f35b34801561008157600080fd5b50600054610095906001600160a01b031681565b6040516001600160a01b03909116815260200161006c565b6100626100bb36600461026e565b61018c565b6000805460405182916001600160a01b03169034906100e29084903690610349565b60006040518083038185875af1925050503d806000811461011f576040519150601f19603f3d011682016040523d82523d6000602084013e610124565b606091505b5091509150816101735760405162461bcd60e51b81526020600482015260166024820152752337b93bb0b93232b21031b0b636103330b4b632b21760511b604482015260640160405180910390fd5b805160208201f35b60006101856100c0565b9392505050565b60006101966100c0565b9998505050505050505050565b803561ffff811681146101b557600080fd5b919050565b80356001600160a01b03811681146101b557600080fd5b6000806000606084860312156101e657600080fd5b833592506101f6602085016101a3565b9150610204604085016101ba565b90509250925092565b803567ffffffffffffffff811681146101b557600080fd5b60008083601f84011261023757600080fd5b50813567ffffffffffffffff81111561024f57600080fd5b60208301915083602082850101111561026757600080fd5b9250929050565b60008060008060008060008060006101008a8c03121561028d57600080fd5b6102968a61020d565b985060208a013563ffffffff811681146102af57600080fd5b97506102bd60408b016101a3565b965060608a01356dffffffffffffffffffffffffffff811681146102e057600080fd5b95506102ee60808b016101ba565b94506102fc60a08b0161020d565b935061030a60c08b0161020d565b925060e08a013567ffffffffffffffff81111561032657600080fd5b6103328c828d01610225565b915080935050809150509295985092959850929598565b818382376000910190815291905056fea2646970667358221220ad897a033799fc4c2804e1e418d0fab3264632483801094a5ac1b829fa0fd3dc64736f6c63430008110033000000000000000000000000898f7f3e6c676d0cb5dedd04676d848788bcc38a
Deployed Bytecode
0x6080604052600436106100385760003560e01c8063d2f215de1461004f578063d4b8399214610075578063f80ffe62146100ad57610047565b36610047576100456100c0565b005b6100456100c0565b61006261005d3660046101d1565b61017b565b6040519081526020015b60405180910390f35b34801561008157600080fd5b50600054610095906001600160a01b031681565b6040516001600160a01b03909116815260200161006c565b6100626100bb36600461026e565b61018c565b6000805460405182916001600160a01b03169034906100e29084903690610349565b60006040518083038185875af1925050503d806000811461011f576040519150601f19603f3d011682016040523d82523d6000602084013e610124565b606091505b5091509150816101735760405162461bcd60e51b81526020600482015260166024820152752337b93bb0b93232b21031b0b636103330b4b632b21760511b604482015260640160405180910390fd5b805160208201f35b60006101856100c0565b9392505050565b60006101966100c0565b9998505050505050505050565b803561ffff811681146101b557600080fd5b919050565b80356001600160a01b03811681146101b557600080fd5b6000806000606084860312156101e657600080fd5b833592506101f6602085016101a3565b9150610204604085016101ba565b90509250925092565b803567ffffffffffffffff811681146101b557600080fd5b60008083601f84011261023757600080fd5b50813567ffffffffffffffff81111561024f57600080fd5b60208301915083602082850101111561026757600080fd5b9250929050565b60008060008060008060008060006101008a8c03121561028d57600080fd5b6102968a61020d565b985060208a013563ffffffff811681146102af57600080fd5b97506102bd60408b016101a3565b965060608a01356dffffffffffffffffffffffffffff811681146102e057600080fd5b95506102ee60808b016101ba565b94506102fc60a08b0161020d565b935061030a60c08b0161020d565b925060e08a013567ffffffffffffffff81111561032657600080fd5b6103328c828d01610225565b915080935050809150509295985092959850929598565b818382376000910190815291905056fea2646970667358221220ad897a033799fc4c2804e1e418d0fab3264632483801094a5ac1b829fa0fd3dc64736f6c63430008110033
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.