Skip to content
Verified contractExactMIT

PellarNftAuction

Address0xaa4802ee48594c6bc334d5ea67dfd8d80a58ddfe
Balance

0 ETH

 

Transactions

21

 

Compiler

solc 0.8.9

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.9+commit.e5eed63a
Language
solidity
Optimization
Yes, 200 runs
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
14,182,339
Creation transaction
0xf5a8c0eb05…fda9be4616

Read7

  • auctionEntered(bytes32) → (bool)
  • auctionItems(bytes32) → (address,address,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256)
  • getAuctionAndBid(address,uint256) → (bytes32,tuple)
  • latestPrice(bytes32) → (uint256)
  • owner() → (address)
  • supportsInterface(bytes4) → (bool)
  • windowTime() → (uint256)

Write11

  • bid(address,uint256)
  • createAuction(address,uint256,uint256,uint256,uint256)
  • onERC1155BatchReceived(address,address,uint256[],uint256[],bytes) → (bytes4)
  • onERC1155Received(address,address,uint256,uint256,bytes) → (bytes4)
  • onERC721Received(address,address,uint256,bytes) → (bytes4)
  • renounceOwnership()
  • setWindowTime(uint256)
  • transferOwnership(address)
  • withdraw(address,uint256)
  • withdrawFailedAuction(address,uint256)
  • withdrawProductWon(address,uint256)

Events4

  • AuctionWinnerWithdrawals(address,uint256,address,uint256)
  • ItemBidded(address,uint256,address,uint256,address,uint256,uint256)
  • ItemListed(address,uint256,address,uint256,uint256,uint256)
  • OwnershipTransferred(address,address)

ABI as JSON

[
  {
    "name": "AuctionWinnerWithdrawals",
    "type": "event",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      },
      {
        "name": "_winner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "_highestBid",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "ItemBidded",
    "type": "event",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      },
      {
        "name": "_newBidder",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "_newAmount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "_oldBidder",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "_oldAmount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "_bidCount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "ItemListed",
    "type": "event",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      },
      {
        "name": "_sender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "_reservePrice",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "_startAt",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "_endAt",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "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": "auctionEntered",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "auctionItems",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "owner",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "contractId",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "tokenId",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "reservePrice",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "startAt",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "endAt",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "highestBidder",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "highestBid",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "bidCount",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "blockNumber",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "bid",
    "type": "function",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "createAuction",
    "type": "function",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_reservePrice",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_startAt",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_endAt",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "getAuctionAndBid",
    "type": "function",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "_auctionId",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "_auctionItem",
        "type": "tuple",
        "components": [
          {
            "name": "owner",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "contractId",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "tokenId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "reservePrice",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "startAt",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "endAt",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "highestBidder",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "highestBid",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "bidCount",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "blockNumber",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct PellarNftAuction.AuctionItem"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "latestPrice",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "onERC1155BatchReceived",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "",
        "type": "uint256[]",
        "internalType": "uint256[]"
      },
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "onERC1155Received",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "onERC721Received",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "renounceOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setWindowTime",
    "type": "function",
    "inputs": [
      {
        "name": "_time",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "supportsInterface",
    "type": "function",
    "inputs": [
      {
        "name": "interfaceId",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "windowTime",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "withdraw",
    "type": "function",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "withdrawFailedAuction",
    "type": "function",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "withdrawProductWon",
    "type": "function",
    "inputs": [
      {
        "name": "_contractId",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_tokenId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.