Module HoprLedger

Source
Expand description

Generated by the following Solidity interface…

interface HoprLedger {
    event LedgerDomainSeparatorUpdated(bytes32 indexed ledgerDomainSeparator);

    function LEDGER_VERSION() external view returns (string memory);
    function ledgerDomainSeparator() external view returns (bytes32);
    function updateLedgerDomainSeparator() external;
}

…which was generated by the following JSON ABI:

[
  {
    "type": "function",
    "name": "LEDGER_VERSION",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "ledgerDomainSeparator",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "updateLedgerDomainSeparator",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "event",
    "name": "LedgerDomainSeparatorUpdated",
    "inputs": [
      {
        "name": "ledgerDomainSeparator",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      }
    ],
    "anonymous": false
  }
]

Structs§

HoprLedgerInstance
A HoprLedger instance.
LEDGER_VERSIONCall
Function with signature LEDGER_VERSION() and selector 0xddad1902.
LEDGER_VERSIONReturn
Container type for the return parameters of the LEDGER_VERSION() function.
LedgerDomainSeparatorUpdated
Event with signature LedgerDomainSeparatorUpdated(bytes32) and selector 0xa43fad83920fd09445855e854e73c9c532e17402c9ceb09993a2392843a5bdb9.
ledgerDomainSeparatorCall
Function with signature ledgerDomainSeparator() and selector 0xc966c4fe.
ledgerDomainSeparatorReturn
Container type for the return parameters of the ledgerDomainSeparator() function.
updateLedgerDomainSeparatorCall
Function with signature updateLedgerDomainSeparator() and selector 0xdc96fd50.
updateLedgerDomainSeparatorReturn
Container type for the return parameters of the updateLedgerDomainSeparator() function.

Enums§

HoprLedgerCalls
Container for all the HoprLedger function calls.
HoprLedgerEvents
Container for all the HoprLedger 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 HoprLedger contract instance.