Module ProfileRegistry

Source
Expand description

Generated by the following Solidity interface…

interface ProfileRegistry {
    event HandleUpdated(address indexed user, bytes32 indexed handle);
    event PictureUpdated(address indexed user, bytes32 picture);

    function getProfile(address user) external view returns (bytes32 handle, bytes32 picture);
    function handles(bytes32) external view returns (address);
    function resolveHandle(bytes32 handle) external view returns (address);
    function setHandle(bytes32 handle) external;
    function setPicture(bytes32 picture) external;
}

…which was generated by the following JSON ABI:

[
  {
    "type": "function",
    "name": "getProfile",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "handle",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "picture",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "handles",
    "inputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "resolveHandle",
    "inputs": [
      {
        "name": "handle",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "setHandle",
    "inputs": [
      {
        "name": "handle",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "setPicture",
    "inputs": [
      {
        "name": "picture",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "event",
    "name": "HandleUpdated",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "handle",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "PictureUpdated",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "picture",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      }
    ],
    "anonymous": false
  }
]

Structs§

HandleUpdated
Event with signature HandleUpdated(address,bytes32) and selector 0x4b8df1bb0e16405b186540fc9d887fe0c5976286be87aea97c186956548c6efb.
PictureUpdated
Event with signature PictureUpdated(address,bytes32) and selector 0xacbf1b0770c0925c7d13c92ff79c115853d5faabd61509ce8aa766841bc348e4.
ProfileRegistryInstance
A ProfileRegistry instance.
getProfileCall
Function with signature getProfile(address) and selector 0x0f53a470.
getProfileReturn
Container type for the return parameters of the getProfile(address) function.
handlesCall
Function with signature handles(bytes32) and selector 0x9e087431.
handlesReturn
Container type for the return parameters of the handles(bytes32) function.
resolveHandleCall
Function with signature resolveHandle(bytes32) and selector 0x8d531c3d.
resolveHandleReturn
Container type for the return parameters of the resolveHandle(bytes32) function.
setHandleCall
Function with signature setHandle(bytes32) and selector 0xfd8ff3a3.
setHandleReturn
Container type for the return parameters of the setHandle(bytes32) function.
setPictureCall
Function with signature setPicture(bytes32) and selector 0xc9a3b592.
setPictureReturn
Container type for the return parameters of the setPicture(bytes32) function.

Enums§

ProfileRegistryCalls
Container for all the ProfileRegistry function calls.
ProfileRegistryEvents
Container for all the ProfileRegistry events.

Functions§

new
Creates a new wrapper around an on-chain ProfileRegistry contract instance.