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§
- Already
Voted - Custom error with signature
AlreadyVoted()and selector0x7c9a1cf9. - Post
Created - Event with signature
PostCreated(bytes32,address,bytes)and selector0xed6e6fdf99cd5e97145c7e59ade93923be1979557a77e639ed95a203c7a8e861. - Post
Voted - Event with signature
PostVoted(bytes32,address)and selector0x98b6b180756c849b5bfbbd2bbd091f3fe64b0935ac195418c0b619b9b661c78d. - Ranked
Feed Instance - A
RankedFeedinstance. - create
Post Call - Function with signature
createPost(bytes)and selector0xdfbaa2fb. - create
Post Return - Container type for the return parameters of the
createPost(bytes)function. - vote
Post Call - Function with signature
votePost(bytes32)and selector0xa1981bf1. - vote
Post Return - Container type for the return parameters of the
votePost(bytes32)function.
Enums§
- Ranked
Feed Calls - Container for all the
RankedFeedfunction calls. - Ranked
Feed Errors - Container for all the
RankedFeedcustom errors. - Ranked
Feed Events - Container for all the
RankedFeedevents.
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
providerand constructor arguments, if any. - deploy_
builder - Creates a
RawCallBuilderfor deploying this contract using the givenproviderand constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
RankedFeedcontract instance.