Module Auction

Module Auction 

Source
Expand description

Generated by the following Solidity interface…

library Time {
    type Timestamp is uint64;
}

interface Auction {
    event BidSubmitted(uint256 indexed auction_id, address indexed bidder, Time.Timestamp indexed deadline, uint256 value, bytes data);

    function submitBid(uint256 auction_id, Time.Timestamp deadline, uint256 value, bytes memory data) external;
}

…which was generated by the following JSON ABI:

[
  {
    "type": "function",
    "name": "submitBid",
    "inputs": [
      {
        "name": "auction_id",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "deadline",
        "type": "uint64",
        "internalType": "Time.Timestamp"
      },
      {
        "name": "value",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "data",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "event",
    "name": "BidSubmitted",
    "inputs": [
      {
        "name": "auction_id",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      },
      {
        "name": "bidder",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "deadline",
        "type": "uint64",
        "indexed": true,
        "internalType": "Time.Timestamp"
      },
      {
        "name": "value",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "data",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      }
    ],
    "anonymous": false
  }
]

Structs§

AuctionInstance
A Auction instance.
BidSubmitted
Event with signature BidSubmitted(uint256,address,uint64,uint256,bytes) and selector 0xfa9544cad94ab8507946215078af54be3ed0a1f19911d5dab2037baf8e064fb0.
submitBidCall
Function with signature submitBid(uint256,uint64,uint256,bytes) and selector 0x4a19067e.
submitBidReturn
Container type for the return parameters of the submitBid(uint256,uint64,uint256,bytes) function.

Enums§

AuctionCalls
Container for all the Auction function calls.
AuctionEvents
Container for all the Auction events.

Statics§

BYTECODE
The creation / init bytecode of the contract.
DEPLOYED_BYTECODE
The runtime bytecode of the contract, as deployed on the network.

Functions§

deploy
Deploys this contract using the given provider and constructor arguments, if any.
deploy_builder
Creates a RawCallBuilder for deploying this contract using the given provider and constructor arguments, if any.
new
Creates a new wrapper around an on-chain Auction contract instance.