Verified contractExactMIT
PunksMarket
Address0x759c6c1923910930c18ef490b3c3dbeff24003ce
- Balance
4.7792 ETH
- Transactions
2,538
- Compiler
solc 0.8.11
- Same code
Only this contract
Details
- Compiler
- solc 0.8.11+commit.d7f03943
- Language
- solidity
- Optimization
- Yes, 1,000 runs
- EVM version
- london
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 14,066,948
- Creation transaction
- 0xe7335de59d…8413094d7a
Read14
- TOTAL_PUNKS() → (uint256)
- getAdmins() → (address[])
- getAllWrappedPunks() → (int256[])
- getBid(uint256) → (tuple)
- getOffer(uint256) → (tuple)
- getPunksDetails(uint256) → (tuple)
- getPunksForAddress(address) → (uint256[])
- getWrappedPunksForAddress(address) → (uint256[])
- isAdmin(address) → (bool)
- owner() → (address)
- paused() → (bool)
- punkContract() → (address)
- punksWrapperContract() → (address)
- totalVolume() → (uint256)
Write16
- acceptBidForPunk(uint256,uint256)
- approveAdmin(address)
- buyPunk(uint256)
- enterBidForPunk(uint256)
- offerPunkForSale(uint256,uint256)
- offerPunkForSaleToAddress(uint256,uint256,address)
- pause()
- punkNoLongerForSale(uint256)
- renounceOwnership()
- returnBid(uint256)
- revokeAdmin(address)
- revokeSale(uint256)
- setPunksWrapperContract(address)
- transferOwnership(address)
- unpause()
- withdrawBidForPunk(uint256)
Events10
- AdminApproved(address,address)
- AdminRevoked(address,address)
- OwnershipTransferred(address,address)
- Paused(address)
- PunkBidEntered(uint256,uint256,address)
- PunkBidWithdrawn(uint256,uint256,address)
- PunkBought(uint256,uint256,address,address)
- PunkNoLongerForSale(uint256)
- PunkOffered(uint256,uint256,address)
- Unpaused(address)
ABI as JSON
[
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"name": "AdminApproved",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "AdminRevoked",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "OwnershipTransferred",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Paused",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "PunkBidEntered",
"type": "event",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fromAddress",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "PunkBidWithdrawn",
"type": "event",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fromAddress",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "PunkBought",
"type": "event",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fromAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "toAddress",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "PunkNoLongerForSale",
"type": "event",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "PunkOffered",
"type": "event",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "minValue",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "toAddress",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Unpaused",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "fallback",
"stateMutability": "payable"
},
{
"name": "TOTAL_PUNKS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "acceptBidForPunk",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "approveAdmin",
"type": "function",
"inputs": [
{
"name": "admin",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "buyPunk",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "enterBidForPunk",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "getAdmins",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "admins",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"name": "getAllWrappedPunks",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256[]",
"internalType": "int256[]"
}
],
"stateMutability": "view"
},
{
"name": "getBid",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"components": [
{
"name": "hasBid",
"type": "bool",
"internalType": "bool"
},
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "bidder",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct PunksMarket.Bid"
}
],
"stateMutability": "view"
},
{
"name": "getOffer",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"components": [
{
"name": "isForSale",
"type": "bool",
"internalType": "bool"
},
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "seller",
"type": "address",
"internalType": "address"
},
{
"name": "minValue",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "onlySellTo",
"type": "address",
"internalType": "address"
}
],
"internalType": "struct PunksMarket.Offer"
}
],
"stateMutability": "view"
},
{
"name": "getPunksDetails",
"type": "function",
"inputs": [
{
"name": "index",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"components": [
{
"name": "wrapped",
"type": "bool",
"internalType": "bool"
},
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "bid",
"type": "tuple",
"components": [
{
"name": "hasBid",
"type": "bool",
"internalType": "bool"
},
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "bidder",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct PunksMarket.Bid"
},
{
"name": "offer",
"type": "tuple",
"components": [
{
"name": "isForSale",
"type": "bool",
"internalType": "bool"
},
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "seller",
"type": "address",
"internalType": "address"
},
{
"name": "minValue",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "onlySellTo",
"type": "address",
"internalType": "address"
}
],
"internalType": "struct PunksMarket.Offer"
}
],
"internalType": "struct PunksMarket.Punk"
}
],
"stateMutability": "view"
},
{
"name": "getPunksForAddress",
"type": "function",
"inputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"name": "getWrappedPunksForAddress",
"type": "function",
"inputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"name": "isAdmin",
"type": "function",
"inputs": [
{
"name": "admin",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "offerPunkForSale",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minSalePriceInWei",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "offerPunkForSaleToAddress",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minSalePriceInWei",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "toAddress",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "paused",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "punkContract",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract ICryptoPunk"
}
],
"stateMutability": "view"
},
{
"name": "punkNoLongerForSale",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "punksWrapperContract",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC721"
}
],
"stateMutability": "view"
},
{
"name": "renounceOwnership",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "returnBid",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "revokeAdmin",
"type": "function",
"inputs": [
{
"name": "admin",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "revokeSale",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setPunksWrapperContract",
"type": "function",
"inputs": [
{
"name": "newpunksAddress",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "totalVolume",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "unpause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "withdrawBidForPunk",
"type": "function",
"inputs": [
{
"name": "punkIndex",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "receive",
"stateMutability": "payable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.