Skip to main content

Module IStorageCredits

Module IStorageCredits 

Source
Expand description

Module containing a contract’s types and functions.

interface IStorageCredits {
    enum Mode { Refund, Preserve, Direct }
    error InvalidMode();
    error OnlyDirectCall();
    function balanceOf(address account) external view returns (uint64);
    function modeOf(address account) external view returns (Mode);
    function budgetOf(address account) external view returns (uint64);
    function setMode(Mode newMode) external;
    function setBudget(uint64 creditBudget) external;
}

Modules§

abi
Contains dynamic ABI definitions for this contract.

Structs§

IStorageCreditsInstance
A IStorageCredits instance.
InvalidMode
Custom error with signature InvalidMode() and selector 0xa0042b17.
OnlyDirectCall
Custom error with signature OnlyDirectCall() and selector 0xbc592142.
balanceOfCall
Function with signature balanceOf(address) and selector 0x70a08231.
balanceOfReturn
Container type for the return parameters of the balanceOf(address) function.
budgetOfCall
Function with signature budgetOf(address) and selector 0x7865e71f.
budgetOfReturn
Container type for the return parameters of the budgetOf(address) function.
modeOfCall
Function with signature modeOf(address) and selector 0x13668995.
modeOfReturn
Container type for the return parameters of the modeOf(address) function.
setBudgetCall
Function with signature setBudget(uint64) and selector 0xffe295c3.
setBudgetReturn
Container type for the return parameters of the setBudget(uint64) function.
setModeCall
Function with signature setMode(uint8) and selector 0x21175b4a.
setModeReturn
Container type for the return parameters of the setMode(uint8) function.

Enums§

IStorageCreditsCalls
Container for all the IStorageCredits function calls.
IStorageCreditsErrors
Container for all the IStorageCredits custom errors.
Mode

Functions§

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