Module RankedFeed

Module RankedFeed 

Source
Expand description

Generated by the following Solidity interface…

interface RankedFeed {
    error AlreadyVoted();

    event PostCreated(bytes32 indexed post_id, address indexed poster, bytes post_data);
    event PostVoted(bytes32 indexed post_id, address indexed voter);

    function createPost(bytes memory post_data) external;
    function votePost(bytes32 post_id) external;
}

…which was generated by the following JSON ABI:

[
  {
    "type": "function",
    "name": "createPost",
    "inputs": [
      {
        "name": "post_data",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "votePost",
    "inputs": [
      {
        "name": "post_id",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "event",
    "name": "PostCreated",
    "inputs": [
      {
        "name": "post_id",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "poster",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "post_data",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "PostVoted",
    "inputs": [
      {
        "name": "post_id",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "voter",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "type": "error",
    "name": "AlreadyVoted",
    "inputs": []
  }
]

Structs§

AlreadyVoted
Custom error with signature AlreadyVoted() and selector 0x7c9a1cf9.
PostCreated
Event with signature PostCreated(bytes32,address,bytes) and selector 0xed6e6fdf99cd5e97145c7e59ade93923be1979557a77e639ed95a203c7a8e861.
PostVoted
Event with signature PostVoted(bytes32,address) and selector 0x98b6b180756c849b5bfbbd2bbd091f3fe64b0935ac195418c0b619b9b661c78d.
RankedFeedInstance
A RankedFeed instance.
createPostCall
Function with signature createPost(bytes) and selector 0xdfbaa2fb.
createPostReturn
Container type for the return parameters of the createPost(bytes) function.
votePostCall
Function with signature votePost(bytes32) and selector 0xa1981bf1.
votePostReturn
Container type for the return parameters of the votePost(bytes32) function.

Enums§

RankedFeedCalls
Container for all the RankedFeed function calls.
RankedFeedErrors
Container for all the RankedFeed custom errors.
RankedFeedEvents
Container for all the RankedFeed 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 RankedFeed contract instance.