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§
- IStorage
Credits Instance - A
IStorageCreditsinstance. - Invalid
Mode - Custom error with signature
InvalidMode()and selector0xa0042b17. - Only
Direct Call - Custom error with signature
OnlyDirectCall()and selector0xbc592142. - balance
OfCall - Function with signature
balanceOf(address)and selector0x70a08231. - balance
OfReturn - Container type for the return parameters of the
balanceOf(address)function. - budget
OfCall - Function with signature
budgetOf(address)and selector0x7865e71f. - budget
OfReturn - Container type for the return parameters of the
budgetOf(address)function. - mode
OfCall - Function with signature
modeOf(address)and selector0x13668995. - mode
OfReturn - Container type for the return parameters of the
modeOf(address)function. - setBudget
Call - Function with signature
setBudget(uint64)and selector0xffe295c3. - setBudget
Return - Container type for the return parameters of the
setBudget(uint64)function. - setMode
Call - Function with signature
setMode(uint8)and selector0x21175b4a. - setMode
Return - Container type for the return parameters of the
setMode(uint8)function.
Enums§
- IStorage
Credits Calls - Container for all the
IStorageCreditsfunction calls. - IStorage
Credits Errors - Container for all the
IStorageCreditscustom errors. - Mode
Functions§
- new
- Creates a new wrapper around an on-chain
IStorageCreditscontract instance.